OZE_Main.list 4.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902889038890488905889068890788908889098891088911889128891388914889158891688917889188891988920889218892288923889248892588926889278892888929889308893188932889338893488935889368893788938889398894088941889428894388944889458894688947889488894988950889518895288953889548895588956889578895888959889608896188962889638896488965889668896788968889698897088971889728897388974889758897688977889788897988980889818898288983889848898588986889878898888989889908899188992889938899488995889968899788998889998900089001890028900389004890058900689007890088900989010890118901289013890148901589016890178901889019890208902189022890238902489025890268902789028890298903089031890328903389034890358903689037890388903989040890418904289043890448904589046890478904889049890508905189052890538905489055890568905789058890598906089061890628906389064890658906689067890688906989070890718907289073890748907589076890778907889079890808908189082890838908489085890868908789088890898909089091890928909389094890958909689097890988909989100891018910289103891048910589106891078910889109891108911189112891138911489115891168911789118891198912089121891228912389124891258912689127891288912989130891318913289133891348913589136891378913889139891408914189142891438914489145891468914789148891498915089151891528915389154891558915689157891588915989160891618916289163891648916589166891678916889169891708917189172891738917489175891768917789178891798918089181891828918389184891858918689187891888918989190891918919289193891948919589196891978919889199892008920189202892038920489205892068920789208892098921089211892128921389214892158921689217892188921989220892218922289223892248922589226892278922889229892308923189232892338923489235892368923789238892398924089241892428924389244892458924689247892488924989250892518925289253892548925589256892578925889259892608926189262892638926489265892668926789268892698927089271892728927389274892758927689277892788927989280892818928289283892848928589286892878928889289892908929189292892938929489295892968929789298892998930089301893028930389304893058930689307893088930989310893118931289313893148931589316893178931889319893208932189322893238932489325893268932789328893298933089331893328933389334893358933689337893388933989340893418934289343893448934589346893478934889349893508935189352893538935489355893568935789358893598936089361893628936389364893658936689367893688936989370893718937289373893748937589376893778937889379893808938189382893838938489385893868938789388893898939089391893928939389394893958939689397893988939989400894018940289403894048940589406894078940889409894108941189412894138941489415894168941789418894198942089421894228942389424894258942689427894288942989430894318943289433894348943589436894378943889439894408944189442894438944489445894468944789448894498945089451894528945389454894558945689457894588945989460894618946289463894648946589466894678946889469894708947189472894738947489475894768947789478894798948089481894828948389484894858948689487894888948989490894918949289493894948949589496894978949889499895008950189502895038950489505895068950789508895098951089511895128951389514895158951689517895188951989520895218952289523895248952589526895278952889529895308953189532895338953489535895368953789538895398954089541895428954389544895458954689547895488954989550895518955289553895548955589556895578955889559895608956189562895638956489565895668956789568895698957089571895728957389574895758957689577895788957989580895818958289583895848958589586895878958889589895908959189592895938959489595895968959789598895998960089601896028960389604896058960689607896088960989610896118961289613896148961589616896178961889619896208962189622896238962489625896268962789628896298963089631896328963389634896358963689637896388963989640896418964289643896448964589646896478964889649896508965189652896538965489655896568965789658896598966089661896628966389664896658966689667896688966989670896718967289673896748967589676896778967889679896808968189682896838968489685896868968789688896898969089691896928969389694896958969689697896988969989700897018970289703897048970589706897078970889709897108971189712897138971489715897168971789718897198972089721897228972389724897258972689727897288972989730897318973289733897348973589736897378973889739897408974189742897438974489745897468974789748897498975089751897528975389754897558975689757897588975989760897618976289763897648976589766897678976889769897708977189772897738977489775897768977789778897798978089781897828978389784897858978689787897888978989790897918979289793897948979589796897978979889799898008980189802898038980489805898068980789808898098981089811898128981389814898158981689817898188981989820898218982289823898248982589826898278982889829898308983189832898338983489835898368983789838898398984089841898428984389844898458984689847898488984989850898518985289853898548985589856898578985889859898608986189862898638986489865898668986789868898698987089871898728987389874898758987689877898788987989880898818988289883898848988589886898878988889889898908989189892898938989489895898968989789898898998990089901899028990389904899058990689907899088990989910899118991289913899148991589916899178991889919899208992189922899238992489925899268992789928899298993089931899328993389934899358993689937899388993989940899418994289943899448994589946899478994889949899508995189952899538995489955899568995789958899598996089961899628996389964899658996689967899688996989970899718997289973899748997589976899778997889979899808998189982899838998489985899868998789988899898999089991899928999389994899958999689997899988999990000900019000290003900049000590006900079000890009900109001190012900139001490015900169001790018900199002090021900229002390024900259002690027900289002990030900319003290033900349003590036900379003890039900409004190042900439004490045900469004790048900499005090051900529005390054900559005690057900589005990060900619006290063900649006590066900679006890069900709007190072900739007490075900769007790078900799008090081900829008390084900859008690087900889008990090900919009290093900949009590096900979009890099901009010190102901039010490105901069010790108901099011090111901129011390114901159011690117901189011990120901219012290123901249012590126901279012890129901309013190132901339013490135901369013790138901399014090141901429014390144901459014690147901489014990150901519015290153901549015590156901579015890159901609016190162901639016490165901669016790168901699017090171901729017390174901759017690177901789017990180901819018290183901849018590186901879018890189901909019190192901939019490195901969019790198901999020090201902029020390204902059020690207902089020990210902119021290213902149021590216902179021890219902209022190222902239022490225902269022790228902299023090231902329023390234902359023690237902389023990240902419024290243902449024590246902479024890249902509025190252902539025490255902569025790258902599026090261902629026390264902659026690267902689026990270902719027290273902749027590276902779027890279902809028190282902839028490285902869028790288902899029090291902929029390294902959029690297902989029990300903019030290303903049030590306903079030890309903109031190312903139031490315903169031790318903199032090321903229032390324903259032690327903289032990330903319033290333903349033590336903379033890339903409034190342903439034490345903469034790348903499035090351903529035390354903559035690357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903889038990390903919039290393903949039590396903979039890399904009040190402904039040490405904069040790408904099041090411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904429044390444904459044690447904489044990450904519045290453904549045590456904579045890459904609046190462904639046490465904669046790468904699047090471904729047390474904759047690477904789047990480904819048290483904849048590486904879048890489904909049190492904939049490495904969049790498904999050090501905029050390504905059050690507905089050990510905119051290513905149051590516905179051890519905209052190522905239052490525905269052790528905299053090531905329053390534905359053690537905389053990540905419054290543905449054590546905479054890549905509055190552905539055490555905569055790558905599056090561905629056390564905659056690567905689056990570905719057290573905749057590576905779057890579905809058190582905839058490585905869058790588905899059090591905929059390594905959059690597905989059990600906019060290603906049060590606906079060890609906109061190612906139061490615906169061790618906199062090621906229062390624906259062690627906289062990630906319063290633906349063590636906379063890639906409064190642906439064490645906469064790648906499065090651906529065390654906559065690657906589065990660906619066290663906649066590666906679066890669906709067190672906739067490675906769067790678906799068090681906829068390684906859068690687906889068990690906919069290693906949069590696906979069890699907009070190702907039070490705907069070790708907099071090711907129071390714907159071690717907189071990720907219072290723907249072590726907279072890729907309073190732907339073490735907369073790738907399074090741907429074390744907459074690747907489074990750907519075290753907549075590756907579075890759907609076190762907639076490765907669076790768907699077090771907729077390774907759077690777907789077990780907819078290783907849078590786907879078890789907909079190792907939079490795907969079790798907999080090801908029080390804908059080690807908089080990810908119081290813908149081590816908179081890819908209082190822908239082490825908269082790828908299083090831908329083390834908359083690837908389083990840908419084290843908449084590846908479084890849908509085190852908539085490855908569085790858908599086090861908629086390864908659086690867908689086990870908719087290873908749087590876908779087890879908809088190882908839088490885908869088790888908899089090891908929089390894908959089690897908989089990900909019090290903909049090590906909079090890909909109091190912909139091490915909169091790918909199092090921909229092390924909259092690927909289092990930909319093290933909349093590936909379093890939909409094190942909439094490945909469094790948909499095090951909529095390954909559095690957909589095990960909619096290963909649096590966909679096890969909709097190972909739097490975909769097790978909799098090981909829098390984909859098690987909889098990990909919099290993909949099590996909979099890999910009100191002910039100491005910069100791008910099101091011910129101391014910159101691017910189101991020910219102291023910249102591026910279102891029910309103191032910339103491035910369103791038910399104091041910429104391044910459104691047910489104991050910519105291053910549105591056910579105891059910609106191062910639106491065910669106791068910699107091071910729107391074910759107691077910789107991080910819108291083910849108591086910879108891089910909109191092910939109491095910969109791098910999110091101911029110391104911059110691107911089110991110911119111291113911149111591116911179111891119911209112191122911239112491125911269112791128911299113091131911329113391134911359113691137911389113991140911419114291143911449114591146911479114891149911509115191152911539115491155911569115791158911599116091161911629116391164911659116691167911689116991170911719117291173911749117591176911779117891179911809118191182911839118491185911869118791188911899119091191911929119391194911959119691197911989119991200912019120291203912049120591206912079120891209912109121191212912139121491215912169121791218912199122091221912229122391224912259122691227912289122991230912319123291233912349123591236912379123891239912409124191242912439124491245912469124791248912499125091251912529125391254912559125691257912589125991260912619126291263912649126591266912679126891269912709127191272912739127491275912769127791278912799128091281912829128391284912859128691287912889128991290912919129291293912949129591296912979129891299913009130191302913039130491305913069130791308913099131091311913129131391314913159131691317913189131991320913219132291323913249132591326913279132891329913309133191332913339133491335913369133791338913399134091341913429134391344913459134691347913489134991350913519135291353913549135591356913579135891359913609136191362913639136491365913669136791368913699137091371913729137391374913759137691377913789137991380913819138291383913849138591386913879138891389913909139191392913939139491395913969139791398913999140091401914029140391404914059140691407914089140991410914119141291413914149141591416914179141891419914209142191422914239142491425914269142791428914299143091431914329143391434914359143691437914389143991440914419144291443914449144591446914479144891449914509145191452914539145491455914569145791458914599146091461914629146391464914659146691467914689146991470914719147291473914749147591476914779147891479914809148191482914839148491485914869148791488914899149091491914929149391494914959149691497914989149991500915019150291503915049150591506915079150891509915109151191512915139151491515915169151791518915199152091521915229152391524915259152691527915289152991530915319153291533915349153591536915379153891539915409154191542915439154491545915469154791548915499155091551915529155391554915559155691557915589155991560915619156291563915649156591566915679156891569915709157191572915739157491575915769157791578915799158091581915829158391584915859158691587915889158991590915919159291593915949159591596915979159891599916009160191602916039160491605916069160791608916099161091611916129161391614916159161691617916189161991620916219162291623916249162591626916279162891629916309163191632916339163491635916369163791638916399164091641916429164391644916459164691647916489164991650916519165291653916549165591656916579165891659916609166191662916639166491665916669166791668916699167091671916729167391674916759167691677916789167991680916819168291683916849168591686916879168891689916909169191692916939169491695916969169791698916999170091701917029170391704917059170691707917089170991710917119171291713917149171591716917179171891719917209172191722917239172491725917269172791728917299173091731917329173391734917359173691737917389173991740917419174291743917449174591746917479174891749917509175191752917539175491755917569175791758917599176091761917629176391764917659176691767917689176991770917719177291773917749177591776917779177891779917809178191782917839178491785917869178791788917899179091791917929179391794917959179691797917989179991800918019180291803918049180591806918079180891809918109181191812918139181491815918169181791818918199182091821918229182391824918259182691827918289182991830918319183291833918349183591836918379183891839918409184191842918439184491845918469184791848918499185091851918529185391854918559185691857918589185991860918619186291863918649186591866918679186891869918709187191872918739187491875918769187791878918799188091881918829188391884918859188691887918889188991890918919189291893918949189591896918979189891899919009190191902919039190491905919069190791908919099191091911919129191391914919159191691917919189191991920919219192291923919249192591926919279192891929919309193191932919339193491935919369193791938919399194091941919429194391944919459194691947919489194991950919519195291953919549195591956919579195891959919609196191962919639196491965919669196791968919699197091971919729197391974919759197691977919789197991980919819198291983919849198591986919879198891989919909199191992919939199491995919969199791998919999200092001920029200392004920059200692007920089200992010920119201292013920149201592016920179201892019920209202192022920239202492025920269202792028920299203092031920329203392034920359203692037920389203992040920419204292043920449204592046920479204892049920509205192052920539205492055920569205792058920599206092061920629206392064920659206692067920689206992070920719207292073920749207592076920779207892079920809208192082920839208492085920869208792088920899209092091920929209392094920959209692097920989209992100921019210292103921049210592106921079210892109921109211192112921139211492115921169211792118921199212092121921229212392124921259212692127921289212992130921319213292133921349213592136921379213892139921409214192142921439214492145921469214792148921499215092151921529215392154921559215692157921589215992160921619216292163921649216592166921679216892169921709217192172921739217492175921769217792178921799218092181921829218392184921859218692187921889218992190921919219292193921949219592196921979219892199922009220192202922039220492205922069220792208922099221092211922129221392214922159221692217922189221992220922219222292223922249222592226922279222892229922309223192232922339223492235922369223792238922399224092241922429224392244922459224692247922489224992250922519225292253922549225592256922579225892259922609226192262922639226492265922669226792268922699227092271922729227392274922759227692277922789227992280922819228292283922849228592286922879228892289922909229192292922939229492295922969229792298922999230092301923029230392304923059230692307923089230992310923119231292313923149231592316923179231892319923209232192322923239232492325923269232792328923299233092331923329233392334923359233692337923389233992340923419234292343923449234592346923479234892349923509235192352923539235492355923569235792358923599236092361923629236392364923659236692367923689236992370923719237292373923749237592376923779237892379923809238192382923839238492385923869238792388923899239092391923929239392394923959239692397923989239992400924019240292403924049240592406924079240892409924109241192412924139241492415924169241792418924199242092421924229242392424924259242692427924289242992430924319243292433924349243592436924379243892439924409244192442924439244492445924469244792448924499245092451924529245392454924559245692457924589245992460924619246292463924649246592466924679246892469924709247192472924739247492475924769247792478924799248092481924829248392484924859248692487924889248992490924919249292493924949249592496924979249892499925009250192502925039250492505925069250792508925099251092511925129251392514925159251692517925189251992520925219252292523925249252592526925279252892529925309253192532925339253492535925369253792538925399254092541925429254392544925459254692547925489254992550925519255292553925549255592556925579255892559925609256192562925639256492565925669256792568925699257092571925729257392574925759257692577925789257992580925819258292583925849258592586925879258892589925909259192592925939259492595925969259792598925999260092601926029260392604926059260692607926089260992610926119261292613926149261592616926179261892619926209262192622926239262492625926269262792628926299263092631926329263392634926359263692637926389263992640926419264292643926449264592646926479264892649926509265192652926539265492655926569265792658926599266092661926629266392664926659266692667926689266992670926719267292673926749267592676926779267892679926809268192682926839268492685926869268792688926899269092691926929269392694926959269692697926989269992700927019270292703927049270592706927079270892709927109271192712927139271492715927169271792718927199272092721927229272392724927259272692727927289272992730927319273292733927349273592736927379273892739927409274192742927439274492745927469274792748927499275092751927529275392754927559275692757927589275992760927619276292763927649276592766927679276892769927709277192772927739277492775927769277792778927799278092781927829278392784927859278692787927889278992790927919279292793927949279592796927979279892799928009280192802928039280492805928069280792808928099281092811928129281392814928159281692817928189281992820928219282292823928249282592826928279282892829928309283192832928339283492835928369283792838928399284092841928429284392844928459284692847928489284992850928519285292853928549285592856928579285892859928609286192862928639286492865928669286792868928699287092871928729287392874928759287692877928789287992880928819288292883928849288592886928879288892889928909289192892928939289492895928969289792898928999290092901929029290392904929059290692907929089290992910929119291292913929149291592916929179291892919929209292192922929239292492925929269292792928929299293092931929329293392934929359293692937929389293992940929419294292943929449294592946929479294892949929509295192952929539295492955929569295792958929599296092961929629296392964929659296692967929689296992970929719297292973929749297592976929779297892979929809298192982929839298492985929869298792988929899299092991929929299392994929959299692997929989299993000930019300293003930049300593006930079300893009930109301193012930139301493015930169301793018930199302093021930229302393024930259302693027930289302993030930319303293033930349303593036930379303893039930409304193042930439304493045930469304793048930499305093051930529305393054930559305693057930589305993060930619306293063930649306593066930679306893069930709307193072930739307493075930769307793078930799308093081930829308393084930859308693087930889308993090930919309293093930949309593096930979309893099931009310193102931039310493105931069310793108931099311093111931129311393114931159311693117931189311993120931219312293123931249312593126931279312893129931309313193132931339313493135931369313793138931399314093141931429314393144931459314693147931489314993150931519315293153931549315593156931579315893159931609316193162931639316493165931669316793168931699317093171931729317393174931759317693177931789317993180931819318293183931849318593186931879318893189931909319193192931939319493195931969319793198931999320093201932029320393204932059320693207932089320993210932119321293213932149321593216932179321893219932209322193222932239322493225932269322793228932299323093231932329323393234932359323693237932389323993240932419324293243932449324593246932479324893249932509325193252932539325493255932569325793258932599326093261932629326393264932659326693267932689326993270932719327293273932749327593276932779327893279932809328193282932839328493285932869328793288932899329093291932929329393294932959329693297932989329993300933019330293303933049330593306933079330893309933109331193312933139331493315933169331793318933199332093321933229332393324933259332693327933289332993330933319333293333933349333593336933379333893339933409334193342933439334493345933469334793348933499335093351933529335393354933559335693357933589335993360933619336293363933649336593366933679336893369933709337193372933739337493375933769337793378933799338093381933829338393384933859338693387933889338993390933919339293393933949339593396933979339893399934009340193402934039340493405934069340793408934099341093411934129341393414934159341693417934189341993420934219342293423934249342593426934279342893429934309343193432934339343493435934369343793438934399344093441934429344393444934459344693447934489344993450934519345293453934549345593456934579345893459934609346193462934639346493465934669346793468934699347093471934729347393474934759347693477934789347993480934819348293483934849348593486934879348893489934909349193492934939349493495934969349793498934999350093501935029350393504935059350693507935089350993510935119351293513935149351593516935179351893519935209352193522935239352493525935269352793528935299353093531935329353393534935359353693537935389353993540935419354293543935449354593546935479354893549935509355193552935539355493555935569355793558935599356093561935629356393564935659356693567935689356993570935719357293573935749357593576935779357893579935809358193582935839358493585935869358793588935899359093591935929359393594935959359693597935989359993600936019360293603936049360593606936079360893609936109361193612936139361493615936169361793618936199362093621936229362393624936259362693627936289362993630936319363293633936349363593636936379363893639936409364193642936439364493645936469364793648936499365093651936529365393654936559365693657936589365993660936619366293663936649366593666936679366893669936709367193672936739367493675936769367793678936799368093681936829368393684936859368693687936889368993690936919369293693936949369593696936979369893699937009370193702937039370493705937069370793708937099371093711937129371393714937159371693717937189371993720937219372293723937249372593726937279372893729937309373193732937339373493735937369373793738937399374093741937429374393744937459374693747937489374993750937519375293753937549375593756937579375893759937609376193762937639376493765937669376793768937699377093771937729377393774937759377693777937789377993780937819378293783937849378593786937879378893789937909379193792937939379493795937969379793798937999380093801938029380393804938059380693807938089380993810938119381293813938149381593816938179381893819938209382193822938239382493825938269382793828938299383093831938329383393834938359383693837938389383993840938419384293843938449384593846938479384893849938509385193852938539385493855938569385793858938599386093861938629386393864938659386693867938689386993870938719387293873938749387593876938779387893879938809388193882938839388493885938869388793888938899389093891938929389393894938959389693897938989389993900939019390293903939049390593906939079390893909939109391193912939139391493915939169391793918939199392093921939229392393924939259392693927939289392993930939319393293933939349393593936939379393893939939409394193942939439394493945939469394793948939499395093951939529395393954939559395693957939589395993960939619396293963939649396593966939679396893969939709397193972939739397493975939769397793978939799398093981939829398393984939859398693987939889398993990939919399293993939949399593996939979399893999940009400194002940039400494005940069400794008940099401094011940129401394014940159401694017940189401994020940219402294023940249402594026940279402894029940309403194032940339403494035940369403794038940399404094041940429404394044940459404694047940489404994050940519405294053940549405594056940579405894059940609406194062940639406494065940669406794068940699407094071940729407394074940759407694077940789407994080940819408294083940849408594086940879408894089940909409194092940939409494095940969409794098940999410094101941029410394104941059410694107941089410994110941119411294113941149411594116941179411894119941209412194122941239412494125941269412794128941299413094131941329413394134941359413694137941389413994140941419414294143941449414594146941479414894149941509415194152941539415494155941569415794158941599416094161941629416394164941659416694167941689416994170941719417294173941749417594176941779417894179941809418194182941839418494185941869418794188941899419094191941929419394194941959419694197941989419994200942019420294203942049420594206942079420894209942109421194212942139421494215942169421794218942199422094221942229422394224942259422694227942289422994230942319423294233942349423594236942379423894239942409424194242942439424494245942469424794248942499425094251942529425394254942559425694257942589425994260942619426294263942649426594266942679426894269942709427194272942739427494275942769427794278942799428094281942829428394284942859428694287942889428994290942919429294293942949429594296942979429894299943009430194302943039430494305943069430794308943099431094311943129431394314943159431694317943189431994320943219432294323943249432594326943279432894329943309433194332943339433494335943369433794338943399434094341943429434394344943459434694347943489434994350943519435294353943549435594356943579435894359943609436194362943639436494365943669436794368943699437094371943729437394374943759437694377943789437994380943819438294383943849438594386943879438894389943909439194392943939439494395943969439794398943999440094401944029440394404944059440694407944089440994410944119441294413944149441594416944179441894419944209442194422944239442494425944269442794428944299443094431944329443394434944359443694437944389443994440944419444294443944449444594446944479444894449944509445194452944539445494455944569445794458944599446094461944629446394464944659446694467944689446994470944719447294473944749447594476944779447894479944809448194482944839448494485944869448794488944899449094491944929449394494944959449694497944989449994500945019450294503945049450594506945079450894509945109451194512945139451494515945169451794518945199452094521945229452394524945259452694527945289452994530945319453294533945349453594536945379453894539945409454194542945439454494545945469454794548945499455094551945529455394554945559455694557945589455994560945619456294563945649456594566945679456894569945709457194572945739457494575945769457794578945799458094581945829458394584945859458694587945889458994590945919459294593945949459594596945979459894599946009460194602946039460494605946069460794608946099461094611946129461394614946159461694617946189461994620946219462294623946249462594626946279462894629946309463194632946339463494635946369463794638946399464094641946429464394644946459464694647946489464994650946519465294653946549465594656946579465894659946609466194662946639466494665946669466794668946699467094671946729467394674946759467694677946789467994680946819468294683946849468594686946879468894689946909469194692946939469494695946969469794698946999470094701947029470394704947059470694707947089470994710947119471294713947149471594716947179471894719947209472194722947239472494725947269472794728947299473094731947329473394734947359473694737947389473994740947419474294743947449474594746947479474894749947509475194752947539475494755947569475794758947599476094761947629476394764947659476694767947689476994770947719477294773947749477594776947779477894779947809478194782947839478494785947869478794788947899479094791947929479394794947959479694797947989479994800948019480294803948049480594806948079480894809948109481194812948139481494815948169481794818948199482094821948229482394824948259482694827948289482994830948319483294833948349483594836948379483894839948409484194842948439484494845948469484794848948499485094851948529485394854948559485694857948589485994860948619486294863948649486594866948679486894869948709487194872948739487494875948769487794878948799488094881948829488394884948859488694887948889488994890948919489294893948949489594896948979489894899949009490194902949039490494905949069490794908949099491094911949129491394914949159491694917949189491994920949219492294923949249492594926949279492894929949309493194932949339493494935949369493794938949399494094941949429494394944949459494694947949489494994950949519495294953949549495594956949579495894959949609496194962949639496494965949669496794968949699497094971949729497394974949759497694977949789497994980949819498294983949849498594986949879498894989949909499194992949939499494995949969499794998949999500095001950029500395004950059500695007950089500995010950119501295013950149501595016950179501895019950209502195022950239502495025950269502795028950299503095031950329503395034950359503695037950389503995040950419504295043950449504595046950479504895049950509505195052950539505495055950569505795058950599506095061950629506395064950659506695067950689506995070950719507295073950749507595076950779507895079950809508195082950839508495085950869508795088950899509095091950929509395094950959509695097950989509995100951019510295103951049510595106951079510895109951109511195112951139511495115951169511795118951199512095121951229512395124951259512695127951289512995130951319513295133951349513595136951379513895139951409514195142951439514495145951469514795148951499515095151951529515395154951559515695157951589515995160951619516295163951649516595166951679516895169951709517195172951739517495175951769517795178951799518095181951829518395184951859518695187951889518995190951919519295193951949519595196951979519895199952009520195202952039520495205952069520795208952099521095211952129521395214952159521695217952189521995220952219522295223952249522595226952279522895229952309523195232952339523495235952369523795238952399524095241952429524395244952459524695247952489524995250952519525295253952549525595256952579525895259952609526195262952639526495265952669526795268952699527095271952729527395274952759527695277952789527995280952819528295283952849528595286952879528895289952909529195292952939529495295952969529795298952999530095301953029530395304953059530695307953089530995310953119531295313953149531595316953179531895319953209532195322953239532495325953269532795328953299533095331953329533395334953359533695337953389533995340953419534295343953449534595346953479534895349953509535195352953539535495355953569535795358953599536095361953629536395364953659536695367953689536995370953719537295373953749537595376953779537895379953809538195382953839538495385953869538795388953899539095391953929539395394953959539695397953989539995400954019540295403954049540595406954079540895409954109541195412954139541495415954169541795418954199542095421954229542395424954259542695427954289542995430954319543295433954349543595436954379543895439954409544195442954439544495445954469544795448954499545095451954529545395454954559545695457954589545995460954619546295463954649546595466954679546895469954709547195472954739547495475954769547795478954799548095481954829548395484954859548695487954889548995490954919549295493954949549595496954979549895499955009550195502955039550495505955069550795508955099551095511955129551395514955159551695517955189551995520955219552295523955249552595526955279552895529955309553195532955339553495535955369553795538955399554095541955429554395544955459554695547955489554995550955519555295553955549555595556955579555895559955609556195562955639556495565955669556795568955699557095571955729557395574955759557695577955789557995580955819558295583955849558595586955879558895589955909559195592955939559495595955969559795598955999560095601956029560395604956059560695607956089560995610956119561295613956149561595616956179561895619956209562195622956239562495625956269562795628956299563095631956329563395634956359563695637956389563995640956419564295643956449564595646956479564895649956509565195652956539565495655956569565795658956599566095661956629566395664956659566695667956689566995670956719567295673956749567595676956779567895679956809568195682956839568495685956869568795688956899569095691956929569395694956959569695697956989569995700957019570295703957049570595706957079570895709957109571195712957139571495715957169571795718957199572095721957229572395724957259572695727957289572995730957319573295733957349573595736957379573895739957409574195742957439574495745957469574795748957499575095751957529575395754957559575695757957589575995760957619576295763957649576595766957679576895769957709577195772957739577495775957769577795778957799578095781957829578395784957859578695787957889578995790957919579295793957949579595796957979579895799958009580195802958039580495805958069580795808958099581095811958129581395814958159581695817958189581995820958219582295823958249582595826958279582895829958309583195832958339583495835958369583795838958399584095841958429584395844958459584695847958489584995850958519585295853958549585595856958579585895859958609586195862958639586495865958669586795868958699587095871958729587395874958759587695877958789587995880958819588295883958849588595886958879588895889958909589195892958939589495895958969589795898958999590095901959029590395904959059590695907959089590995910959119591295913959149591595916959179591895919959209592195922959239592495925959269592795928959299593095931959329593395934959359593695937959389593995940959419594295943959449594595946959479594895949959509595195952959539595495955959569595795958959599596095961959629596395964959659596695967959689596995970959719597295973959749597595976959779597895979959809598195982959839598495985959869598795988959899599095991959929599395994959959599695997959989599996000960019600296003960049600596006960079600896009960109601196012960139601496015960169601796018960199602096021960229602396024960259602696027960289602996030960319603296033960349603596036960379603896039960409604196042960439604496045960469604796048960499605096051960529605396054960559605696057960589605996060960619606296063960649606596066960679606896069960709607196072960739607496075960769607796078960799608096081960829608396084960859608696087960889608996090960919609296093960949609596096960979609896099961009610196102961039610496105961069610796108961099611096111961129611396114961159611696117961189611996120961219612296123961249612596126961279612896129961309613196132961339613496135961369613796138961399614096141961429614396144961459614696147961489614996150961519615296153961549615596156961579615896159961609616196162961639616496165961669616796168961699617096171961729617396174961759617696177961789617996180961819618296183961849618596186961879618896189961909619196192961939619496195961969619796198961999620096201962029620396204962059620696207962089620996210962119621296213962149621596216962179621896219962209622196222962239622496225962269622796228962299623096231962329623396234962359623696237962389623996240962419624296243962449624596246962479624896249962509625196252962539625496255962569625796258962599626096261962629626396264962659626696267962689626996270962719627296273962749627596276962779627896279962809628196282962839628496285962869628796288962899629096291962929629396294962959629696297962989629996300963019630296303963049630596306963079630896309963109631196312963139631496315963169631796318963199632096321963229632396324963259632696327963289632996330963319633296333963349633596336963379633896339963409634196342963439634496345963469634796348963499635096351963529635396354963559635696357963589635996360963619636296363963649636596366963679636896369963709637196372963739637496375963769637796378963799638096381963829638396384963859638696387963889638996390963919639296393963949639596396963979639896399964009640196402964039640496405964069640796408964099641096411964129641396414964159641696417964189641996420964219642296423964249642596426964279642896429964309643196432964339643496435964369643796438964399644096441964429644396444964459644696447964489644996450964519645296453964549645596456964579645896459964609646196462964639646496465964669646796468964699647096471964729647396474964759647696477964789647996480964819648296483964849648596486964879648896489964909649196492964939649496495964969649796498964999650096501965029650396504965059650696507965089650996510965119651296513965149651596516965179651896519965209652196522965239652496525965269652796528965299653096531965329653396534965359653696537965389653996540965419654296543965449654596546965479654896549965509655196552965539655496555965569655796558965599656096561965629656396564965659656696567965689656996570965719657296573965749657596576965779657896579965809658196582965839658496585965869658796588965899659096591965929659396594965959659696597965989659996600966019660296603966049660596606966079660896609966109661196612966139661496615966169661796618966199662096621966229662396624966259662696627966289662996630966319663296633966349663596636966379663896639966409664196642966439664496645966469664796648966499665096651966529665396654966559665696657966589665996660966619666296663966649666596666966679666896669966709667196672966739667496675966769667796678966799668096681966829668396684966859668696687966889668996690966919669296693966949669596696966979669896699967009670196702967039670496705967069670796708967099671096711967129671396714967159671696717967189671996720967219672296723967249672596726967279672896729967309673196732967339673496735967369673796738967399674096741967429674396744967459674696747967489674996750967519675296753967549675596756967579675896759967609676196762967639676496765967669676796768967699677096771967729677396774967759677696777967789677996780967819678296783967849678596786967879678896789967909679196792967939679496795967969679796798967999680096801968029680396804968059680696807968089680996810968119681296813968149681596816968179681896819968209682196822968239682496825968269682796828968299683096831968329683396834968359683696837968389683996840968419684296843968449684596846968479684896849968509685196852968539685496855968569685796858968599686096861968629686396864968659686696867968689686996870968719687296873968749687596876968779687896879968809688196882968839688496885968869688796888968899689096891968929689396894968959689696897968989689996900969019690296903969049690596906969079690896909969109691196912969139691496915969169691796918969199692096921969229692396924969259692696927969289692996930969319693296933969349693596936969379693896939969409694196942969439694496945969469694796948969499695096951969529695396954969559695696957969589695996960969619696296963969649696596966969679696896969969709697196972969739697496975969769697796978969799698096981969829698396984969859698696987969889698996990969919699296993969949699596996969979699896999970009700197002970039700497005970069700797008970099701097011970129701397014970159701697017970189701997020970219702297023970249702597026970279702897029970309703197032970339703497035970369703797038970399704097041970429704397044970459704697047970489704997050970519705297053970549705597056970579705897059970609706197062970639706497065970669706797068970699707097071970729707397074970759707697077970789707997080970819708297083970849708597086970879708897089970909709197092970939709497095970969709797098970999710097101971029710397104971059710697107971089710997110971119711297113971149711597116971179711897119971209712197122971239712497125971269712797128971299713097131971329713397134971359713697137971389713997140971419714297143971449714597146971479714897149971509715197152971539715497155971569715797158971599716097161971629716397164971659716697167971689716997170971719717297173971749717597176971779717897179971809718197182971839718497185971869718797188971899719097191971929719397194971959719697197971989719997200972019720297203972049720597206972079720897209972109721197212972139721497215972169721797218972199722097221972229722397224972259722697227972289722997230972319723297233972349723597236972379723897239972409724197242972439724497245972469724797248972499725097251972529725397254972559725697257972589725997260972619726297263972649726597266972679726897269972709727197272972739727497275972769727797278972799728097281972829728397284972859728697287972889728997290972919729297293972949729597296972979729897299973009730197302973039730497305973069730797308973099731097311973129731397314973159731697317973189731997320973219732297323973249732597326973279732897329973309733197332973339733497335973369733797338973399734097341973429734397344973459734697347973489734997350973519735297353973549735597356973579735897359973609736197362973639736497365973669736797368973699737097371973729737397374973759737697377973789737997380973819738297383973849738597386973879738897389973909739197392973939739497395973969739797398973999740097401974029740397404974059740697407974089740997410974119741297413974149741597416974179741897419974209742197422974239742497425974269742797428974299743097431974329743397434974359743697437974389743997440974419744297443974449744597446974479744897449974509745197452974539745497455974569745797458974599746097461974629746397464974659746697467974689746997470974719747297473974749747597476974779747897479974809748197482974839748497485974869748797488974899749097491974929749397494974959749697497974989749997500975019750297503975049750597506975079750897509975109751197512975139751497515975169751797518975199752097521975229752397524975259752697527975289752997530975319753297533975349753597536975379753897539975409754197542975439754497545975469754797548975499755097551975529755397554975559755697557975589755997560975619756297563975649756597566975679756897569975709757197572975739757497575975769757797578975799758097581975829758397584975859758697587975889758997590975919759297593975949759597596975979759897599976009760197602976039760497605976069760797608976099761097611976129761397614976159761697617976189761997620976219762297623976249762597626976279762897629976309763197632976339763497635976369763797638976399764097641976429764397644976459764697647976489764997650976519765297653976549765597656976579765897659976609766197662976639766497665976669766797668976699767097671976729767397674976759767697677976789767997680976819768297683976849768597686976879768897689976909769197692976939769497695976969769797698976999770097701977029770397704977059770697707977089770997710977119771297713977149771597716977179771897719977209772197722977239772497725977269772797728977299773097731977329773397734977359773697737977389773997740977419774297743977449774597746977479774897749977509775197752977539775497755977569775797758977599776097761977629776397764977659776697767977689776997770977719777297773977749777597776977779777897779977809778197782977839778497785977869778797788977899779097791977929779397794977959779697797977989779997800978019780297803978049780597806978079780897809978109781197812978139781497815978169781797818978199782097821978229782397824978259782697827978289782997830978319783297833978349783597836978379783897839978409784197842978439784497845978469784797848978499785097851978529785397854978559785697857978589785997860978619786297863978649786597866978679786897869978709787197872978739787497875978769787797878978799788097881978829788397884978859788697887978889788997890978919789297893978949789597896978979789897899979009790197902979039790497905979069790797908979099791097911979129791397914979159791697917979189791997920979219792297923979249792597926979279792897929979309793197932979339793497935979369793797938979399794097941979429794397944979459794697947979489794997950979519795297953979549795597956979579795897959979609796197962979639796497965979669796797968979699797097971979729797397974979759797697977979789797997980979819798297983979849798597986979879798897989979909799197992979939799497995979969799797998979999800098001980029800398004980059800698007980089800998010980119801298013980149801598016980179801898019980209802198022980239802498025980269802798028980299803098031980329803398034980359803698037980389803998040980419804298043980449804598046980479804898049980509805198052980539805498055980569805798058980599806098061980629806398064980659806698067980689806998070980719807298073980749807598076980779807898079980809808198082980839808498085980869808798088980899809098091980929809398094980959809698097980989809998100981019810298103981049810598106981079810898109981109811198112981139811498115981169811798118981199812098121981229812398124981259812698127981289812998130981319813298133981349813598136981379813898139981409814198142981439814498145981469814798148981499815098151981529815398154981559815698157981589815998160981619816298163981649816598166981679816898169981709817198172981739817498175981769817798178981799818098181981829818398184981859818698187981889818998190981919819298193981949819598196981979819898199982009820198202982039820498205982069820798208982099821098211982129821398214982159821698217982189821998220982219822298223982249822598226982279822898229982309823198232982339823498235982369823798238982399824098241982429824398244982459824698247982489824998250982519825298253982549825598256982579825898259982609826198262982639826498265982669826798268982699827098271982729827398274982759827698277982789827998280982819828298283982849828598286982879828898289982909829198292982939829498295982969829798298982999830098301983029830398304983059830698307983089830998310983119831298313983149831598316983179831898319983209832198322983239832498325983269832798328983299833098331983329833398334983359833698337983389833998340983419834298343983449834598346983479834898349983509835198352983539835498355983569835798358983599836098361983629836398364983659836698367983689836998370983719837298373983749837598376983779837898379983809838198382983839838498385983869838798388983899839098391983929839398394983959839698397983989839998400984019840298403984049840598406984079840898409984109841198412984139841498415984169841798418984199842098421984229842398424984259842698427984289842998430984319843298433984349843598436984379843898439984409844198442984439844498445984469844798448984499845098451984529845398454984559845698457984589845998460984619846298463984649846598466984679846898469984709847198472984739847498475984769847798478984799848098481984829848398484984859848698487984889848998490984919849298493984949849598496984979849898499985009850198502985039850498505985069850798508985099851098511985129851398514985159851698517985189851998520985219852298523985249852598526985279852898529985309853198532985339853498535985369853798538985399854098541985429854398544985459854698547985489854998550985519855298553985549855598556985579855898559985609856198562985639856498565985669856798568985699857098571985729857398574985759857698577985789857998580985819858298583985849858598586985879858898589985909859198592985939859498595985969859798598985999860098601986029860398604986059860698607986089860998610986119861298613986149861598616986179861898619986209862198622986239862498625986269862798628986299863098631986329863398634986359863698637986389863998640986419864298643986449864598646986479864898649986509865198652986539865498655986569865798658986599866098661986629866398664986659866698667986689866998670986719867298673986749867598676986779867898679986809868198682986839868498685986869868798688986899869098691986929869398694986959869698697986989869998700987019870298703987049870598706987079870898709987109871198712987139871498715987169871798718987199872098721987229872398724987259872698727987289872998730987319873298733987349873598736987379873898739987409874198742987439874498745987469874798748987499875098751987529875398754987559875698757987589875998760987619876298763987649876598766987679876898769987709877198772987739877498775987769877798778987799878098781987829878398784987859878698787987889878998790987919879298793987949879598796987979879898799988009880198802988039880498805988069880798808988099881098811988129881398814988159881698817988189881998820988219882298823988249882598826988279882898829988309883198832988339883498835988369883798838988399884098841988429884398844988459884698847988489884998850988519885298853988549885598856988579885898859988609886198862988639886498865988669886798868988699887098871988729887398874988759887698877988789887998880988819888298883988849888598886988879888898889988909889198892988939889498895988969889798898988999890098901989029890398904989059890698907989089890998910989119891298913989149891598916989179891898919989209892198922989239892498925989269892798928989299893098931989329893398934989359893698937989389893998940989419894298943989449894598946989479894898949989509895198952989539895498955989569895798958989599896098961989629896398964989659896698967989689896998970989719897298973989749897598976989779897898979989809898198982989839898498985989869898798988989899899098991989929899398994989959899698997989989899999000990019900299003990049900599006990079900899009990109901199012990139901499015990169901799018990199902099021990229902399024990259902699027990289902999030990319903299033990349903599036990379903899039990409904199042990439904499045990469904799048990499905099051990529905399054990559905699057990589905999060990619906299063990649906599066990679906899069990709907199072990739907499075990769907799078990799908099081990829908399084990859908699087990889908999090990919909299093990949909599096990979909899099991009910199102991039910499105991069910799108991099911099111991129911399114991159911699117991189911999120991219912299123991249912599126991279912899129991309913199132991339913499135991369913799138991399914099141991429914399144991459914699147991489914999150991519915299153991549915599156991579915899159991609916199162991639916499165991669916799168991699917099171991729917399174991759917699177991789917999180991819918299183991849918599186991879918899189991909919199192991939919499195991969919799198991999920099201992029920399204992059920699207992089920999210992119921299213992149921599216992179921899219992209922199222992239922499225992269922799228992299923099231992329923399234992359923699237992389923999240992419924299243992449924599246992479924899249992509925199252992539925499255992569925799258992599926099261992629926399264992659926699267992689926999270992719927299273992749927599276992779927899279992809928199282992839928499285992869928799288992899929099291992929929399294992959929699297992989929999300993019930299303993049930599306993079930899309993109931199312993139931499315993169931799318993199932099321993229932399324993259932699327993289932999330993319933299333993349933599336993379933899339993409934199342993439934499345993469934799348993499935099351993529935399354993559935699357993589935999360993619936299363993649936599366993679936899369993709937199372993739937499375993769937799378993799938099381993829938399384993859938699387993889938999390993919939299393993949939599396993979939899399994009940199402994039940499405994069940799408994099941099411994129941399414994159941699417994189941999420994219942299423994249942599426994279942899429994309943199432994339943499435994369943799438994399944099441994429944399444994459944699447994489944999450994519945299453994549945599456994579945899459994609946199462994639946499465994669946799468994699947099471994729947399474994759947699477994789947999480994819948299483994849948599486994879948899489994909949199492994939949499495994969949799498994999950099501995029950399504995059950699507995089950999510995119951299513995149951599516995179951899519995209952199522995239952499525995269952799528995299953099531995329953399534995359953699537995389953999540995419954299543995449954599546995479954899549995509955199552995539955499555995569955799558995599956099561995629956399564995659956699567995689956999570995719957299573995749957599576995779957899579995809958199582995839958499585995869958799588995899959099591995929959399594995959959699597995989959999600996019960299603996049960599606996079960899609996109961199612996139961499615996169961799618996199962099621996229962399624996259962699627996289962999630996319963299633996349963599636996379963899639996409964199642996439964499645996469964799648996499965099651996529965399654996559965699657996589965999660996619966299663996649966599666996679966899669996709967199672996739967499675996769967799678996799968099681996829968399684996859968699687996889968999690996919969299693996949969599696996979969899699997009970199702997039970499705997069970799708997099971099711997129971399714997159971699717997189971999720997219972299723997249972599726997279972899729997309973199732997339973499735997369973799738997399974099741997429974399744997459974699747997489974999750997519975299753997549975599756997579975899759997609976199762997639976499765997669976799768997699977099771997729977399774997759977699777997789977999780997819978299783997849978599786997879978899789997909979199792997939979499795997969979799798997999980099801998029980399804998059980699807998089980999810998119981299813998149981599816998179981899819998209982199822998239982499825998269982799828998299983099831998329983399834998359983699837998389983999840998419984299843998449984599846998479984899849998509985199852998539985499855998569985799858998599986099861998629986399864998659986699867998689986999870998719987299873998749987599876998779987899879998809988199882998839988499885998869988799888998899989099891998929989399894998959989699897998989989999900999019990299903999049990599906999079990899909999109991199912999139991499915999169991799918999199992099921999229992399924999259992699927999289992999930999319993299933999349993599936999379993899939999409994199942999439994499945999469994799948999499995099951999529995399954999559995699957999589995999960999619996299963999649996599966999679996899969999709997199972999739997499975999769997799978999799998099981999829998399984999859998699987999889998999990999919999299993999949999599996999979999899999100000100001100002100003100004100005100006100007100008100009100010100011100012100013100014100015100016100017100018100019100020100021100022100023100024100025100026100027100028100029100030100031100032100033100034100035100036100037100038100039100040100041100042100043100044100045100046100047100048100049100050100051100052100053100054100055100056100057100058100059100060100061100062100063100064100065100066100067100068100069100070100071100072100073100074100075100076100077100078100079100080100081100082100083100084100085100086100087100088100089100090100091100092100093100094100095100096100097100098100099100100100101100102100103100104100105100106100107100108100109100110100111100112100113100114100115100116100117100118100119100120100121100122100123100124100125100126100127100128100129100130100131100132100133100134100135100136100137100138100139100140100141100142100143100144100145100146100147100148100149100150100151100152100153100154100155100156100157100158100159100160100161100162100163100164100165100166100167100168100169100170100171100172100173100174100175100176100177100178100179100180100181100182100183100184100185100186100187100188100189100190100191100192100193100194100195100196100197100198100199100200100201100202100203100204100205100206100207100208100209100210100211100212100213100214100215100216100217100218100219100220100221100222100223100224100225100226100227100228100229100230100231100232100233100234100235100236100237100238100239100240100241100242100243100244100245100246100247100248100249100250100251100252100253100254100255100256100257100258100259100260100261100262100263100264100265100266100267100268100269100270100271100272100273100274100275100276100277100278100279100280100281100282100283100284100285100286100287100288100289100290100291100292100293100294100295100296100297100298100299100300100301100302100303100304100305100306100307100308100309100310100311100312100313100314100315100316100317100318100319100320100321100322100323100324100325100326100327100328100329100330100331100332100333100334100335100336100337100338100339100340100341100342100343100344100345100346100347100348100349100350100351100352100353100354100355100356100357100358100359100360100361100362100363100364100365100366100367100368100369100370100371100372100373100374100375100376100377100378100379100380100381100382100383100384100385100386100387100388100389100390100391100392100393100394100395100396100397100398100399100400100401100402100403100404100405100406100407100408100409100410100411100412100413100414100415100416100417100418100419100420100421100422100423100424100425100426100427100428100429100430100431100432100433100434100435100436100437100438100439100440100441100442100443100444100445100446100447100448100449100450100451100452100453100454100455100456100457100458100459100460100461100462100463100464100465100466100467100468100469100470100471100472100473100474100475100476100477100478100479100480100481100482100483100484100485100486100487100488100489100490100491100492100493100494100495100496100497100498100499100500100501100502100503100504100505100506100507100508100509100510100511100512100513100514100515100516100517100518100519100520100521100522100523100524100525100526100527100528100529100530100531100532100533100534100535100536100537100538100539100540100541100542100543100544100545100546100547100548100549100550100551100552100553100554100555100556100557100558100559100560100561100562100563100564100565100566100567100568100569100570100571100572100573100574100575100576100577100578100579100580100581100582100583100584100585100586100587100588100589100590100591100592100593100594100595100596100597100598100599100600100601100602100603100604100605100606100607100608100609100610100611100612100613100614100615100616100617100618100619100620100621100622100623100624100625100626100627100628100629100630100631100632100633100634100635100636100637100638100639100640100641100642100643100644100645100646100647100648100649100650100651100652100653100654100655100656100657100658100659100660100661100662100663100664100665100666100667100668100669100670100671100672100673100674100675100676100677100678100679100680100681100682100683100684100685100686100687100688100689100690100691100692100693100694100695100696100697100698100699100700100701100702100703100704100705100706100707100708100709100710100711100712100713100714100715100716100717100718100719100720100721100722100723100724100725100726100727100728100729100730100731100732100733100734100735100736100737100738100739100740100741100742100743100744100745100746100747100748100749100750100751100752100753100754100755100756100757100758100759100760100761100762100763100764100765100766100767100768100769100770100771100772100773100774100775100776100777100778100779100780100781100782100783100784100785100786100787100788100789100790100791100792100793100794100795100796100797100798100799100800100801100802100803100804100805100806100807100808100809100810100811100812100813100814100815100816100817100818100819100820100821100822100823100824100825100826100827100828100829100830100831100832100833100834100835100836100837100838100839100840100841100842100843100844100845100846100847100848100849100850100851100852100853100854100855100856100857100858100859100860100861100862100863100864100865100866100867100868100869100870100871100872100873100874100875100876100877100878100879100880100881100882100883100884100885100886100887100888100889100890100891100892100893100894100895100896100897100898100899100900100901100902100903100904100905100906100907100908100909100910100911100912100913100914100915100916100917100918100919100920100921100922100923100924100925100926100927100928100929100930100931100932100933100934100935100936100937100938100939100940100941100942100943100944100945100946100947100948100949100950100951100952100953100954100955100956100957100958100959100960100961100962100963100964100965100966100967100968100969100970100971100972100973100974100975100976100977100978100979100980100981100982100983100984100985100986100987100988100989100990100991100992100993100994100995100996100997100998100999101000101001101002101003101004101005101006101007101008101009101010101011101012101013101014101015101016101017101018101019101020101021101022101023101024101025101026101027101028101029101030101031101032101033101034101035101036101037101038101039101040101041101042101043101044101045101046101047101048101049101050101051101052101053101054101055101056101057101058101059101060101061101062101063101064101065101066101067101068101069101070101071101072101073101074101075101076101077101078101079101080101081101082101083101084101085101086101087101088101089101090101091101092101093101094101095101096101097101098101099101100101101101102101103101104101105101106101107101108101109101110101111101112101113101114101115101116101117101118101119101120101121101122101123101124101125101126101127101128101129101130101131101132101133101134101135101136101137101138101139101140101141101142101143101144101145101146101147101148101149101150101151101152101153101154101155101156101157101158101159101160101161101162101163101164101165101166101167101168101169101170101171101172101173101174101175101176101177101178101179101180101181101182101183101184101185101186101187101188101189101190101191101192101193101194101195101196101197101198101199101200101201101202101203101204101205101206101207101208101209101210101211101212101213101214101215101216101217101218101219101220101221101222101223101224101225101226101227101228101229101230101231101232101233101234101235101236101237101238101239101240101241101242101243101244101245101246101247101248101249101250101251101252101253101254101255101256101257101258101259101260101261101262101263101264101265101266101267101268101269101270101271101272101273101274101275101276101277101278101279101280101281101282101283101284101285101286101287101288101289101290101291101292101293101294101295101296101297101298101299101300101301101302101303101304101305101306101307101308101309101310101311101312101313101314101315101316101317101318101319101320101321101322101323101324101325101326101327101328101329101330101331101332101333101334101335101336101337101338101339101340101341101342101343101344101345101346101347101348101349101350101351101352101353101354101355101356101357101358101359101360101361101362101363101364101365101366101367101368101369101370101371101372101373101374101375101376101377101378101379101380101381101382101383101384101385101386101387101388101389101390101391101392101393101394101395101396101397101398101399101400101401101402101403101404101405101406101407101408101409101410101411101412101413101414101415101416101417101418101419101420101421101422101423101424101425101426101427101428101429101430101431101432101433101434101435101436101437101438101439101440101441101442101443101444101445101446101447101448101449101450101451101452101453101454101455101456101457101458101459101460101461101462101463101464101465101466101467101468101469101470101471101472101473101474101475101476101477101478101479101480101481101482101483101484101485101486101487101488101489101490101491101492101493101494101495101496101497101498101499101500101501101502101503101504101505101506101507101508101509101510101511101512101513101514101515101516101517101518101519101520101521101522101523101524101525101526101527101528101529101530101531101532101533101534101535101536101537101538101539101540101541101542101543101544101545101546101547101548101549101550101551101552101553101554101555101556101557101558101559101560101561101562101563101564101565101566101567101568101569101570101571101572101573101574101575101576101577101578101579101580101581101582101583101584101585101586101587101588101589101590101591101592101593101594101595101596101597101598101599101600101601101602101603101604101605101606101607101608101609101610101611101612101613101614101615101616101617101618101619101620101621101622101623101624101625101626101627101628101629101630101631101632101633101634101635101636101637101638101639101640101641101642101643101644101645101646101647101648101649101650101651101652101653101654101655101656101657101658101659101660101661101662101663101664101665101666101667101668101669101670101671101672101673101674101675101676101677101678101679101680101681101682101683101684101685101686101687101688101689101690101691101692101693101694101695101696101697101698101699101700101701101702101703101704101705101706101707101708101709101710101711101712101713101714101715101716101717101718101719101720101721101722101723101724101725101726101727101728101729101730101731101732101733101734101735101736101737101738101739101740101741101742101743101744101745101746101747101748101749101750101751101752101753101754101755101756101757101758101759101760101761101762101763101764101765101766101767101768101769101770101771101772101773101774101775101776101777101778101779101780101781101782101783101784101785101786101787101788101789101790101791101792101793101794101795101796101797101798101799101800101801101802101803101804101805101806101807101808101809101810101811101812101813101814101815101816101817101818101819101820101821101822101823101824101825101826101827101828101829101830101831101832101833101834101835101836101837101838101839101840101841101842101843101844101845101846101847101848101849101850101851101852101853101854101855101856101857101858101859101860101861101862101863101864101865101866101867101868101869101870101871101872101873101874101875101876101877101878101879101880101881101882101883101884101885101886101887101888101889101890101891101892101893101894101895101896101897101898101899101900101901101902101903101904101905101906101907101908101909101910101911101912101913101914101915101916101917101918101919101920101921101922101923101924101925101926101927101928101929101930101931101932101933101934101935101936101937101938101939101940101941101942101943101944101945101946101947101948101949101950101951101952101953101954101955101956101957101958101959101960101961101962101963101964101965101966101967101968101969101970101971101972101973101974101975101976101977101978101979101980101981101982101983101984101985101986101987101988101989101990101991101992101993101994101995101996101997101998101999102000102001102002102003102004102005102006102007102008102009102010102011102012102013102014102015102016102017102018102019102020102021102022102023102024102025102026102027102028102029102030102031102032102033102034102035102036102037102038102039102040102041102042102043102044102045102046102047102048102049102050102051102052102053102054102055102056102057102058102059102060102061102062102063102064102065102066102067102068102069102070102071102072102073102074102075102076102077102078102079102080102081102082102083102084102085102086102087102088102089102090102091102092102093102094102095102096102097102098102099102100102101102102102103102104102105102106102107102108102109102110102111102112102113102114102115102116102117102118102119102120102121102122102123102124102125102126102127102128102129102130102131102132102133102134102135102136102137102138102139102140102141102142102143102144102145102146102147102148102149102150102151102152102153102154102155102156102157102158102159102160102161102162102163102164102165102166102167102168102169102170102171102172102173102174102175102176102177102178102179102180102181102182102183102184102185102186102187102188102189102190102191102192102193102194102195102196102197102198102199102200102201102202102203102204102205102206102207102208102209102210102211102212102213102214102215102216102217102218102219102220102221102222102223102224102225102226102227102228102229102230102231102232102233102234102235102236102237102238102239102240102241102242102243102244102245102246102247102248102249102250102251102252102253102254102255102256102257102258102259102260102261102262102263102264102265102266102267102268102269102270102271102272102273102274102275102276102277102278102279102280102281102282102283102284102285102286102287102288102289102290102291102292102293102294102295102296102297102298102299102300102301102302102303102304102305102306102307102308102309102310102311102312102313102314102315102316102317102318102319102320102321102322102323102324102325102326102327102328102329102330102331102332102333102334102335102336102337102338102339102340102341102342102343102344102345102346102347102348102349102350102351102352102353102354102355102356102357102358102359102360102361102362102363102364102365102366102367102368102369102370102371102372102373102374102375102376102377102378102379102380102381102382102383102384102385102386102387102388102389102390102391102392102393102394102395102396102397102398102399102400102401102402102403102404102405102406102407102408102409102410102411102412102413102414102415102416102417102418102419102420102421102422102423102424102425102426102427102428102429102430102431102432102433102434102435102436102437102438102439102440102441102442102443102444102445102446102447102448102449102450102451102452102453102454102455102456102457102458102459102460102461102462102463102464102465102466102467102468102469102470102471102472102473102474102475102476102477102478102479102480102481102482102483102484102485102486102487102488102489102490102491102492102493102494102495102496102497102498102499102500102501102502102503102504102505102506102507102508102509102510102511102512102513102514102515102516102517102518102519102520102521102522102523102524102525102526102527102528102529102530102531102532102533102534102535102536102537102538102539102540102541102542102543102544102545102546102547102548102549102550102551102552102553102554102555102556102557102558102559102560102561102562102563102564102565102566102567102568102569102570102571102572102573102574102575102576102577102578102579102580102581102582102583102584102585102586102587102588102589102590102591102592102593102594102595102596102597102598102599102600102601102602102603102604102605102606102607102608102609102610102611102612102613102614102615102616102617102618102619102620102621102622102623102624102625102626102627102628102629102630102631102632102633102634102635102636102637102638102639102640102641102642102643102644102645102646102647102648102649102650102651102652102653102654102655102656102657102658102659102660102661102662102663102664102665102666102667102668102669102670102671102672102673102674102675102676102677102678102679102680102681102682102683102684102685102686102687102688102689102690102691102692102693102694102695102696102697102698102699102700102701102702102703102704102705102706102707102708102709102710102711102712102713102714102715102716102717102718102719102720102721102722102723102724102725102726102727102728102729102730102731102732102733102734102735102736102737102738102739102740102741102742102743102744102745102746102747102748102749102750102751102752102753102754102755102756102757102758102759102760102761102762102763102764102765102766102767102768102769102770102771102772102773102774102775102776102777102778102779102780102781102782102783102784102785102786102787102788102789102790102791102792102793102794102795102796102797102798102799102800102801102802102803102804102805102806102807102808102809102810102811102812102813102814102815102816102817102818102819102820102821102822102823102824102825102826102827102828102829102830102831102832102833102834102835102836102837102838102839102840102841102842102843102844102845102846102847102848102849102850102851102852102853102854102855102856102857102858102859102860102861102862102863102864102865102866102867102868102869102870102871102872102873102874102875102876102877102878102879102880102881102882102883102884102885102886102887102888102889102890102891102892102893102894102895102896102897102898102899102900102901102902102903102904102905102906102907102908102909102910102911102912102913102914102915102916102917102918102919102920102921102922102923102924102925102926102927102928102929102930102931102932102933102934102935102936102937102938102939102940102941102942102943102944102945102946102947102948102949102950102951102952102953102954102955102956102957102958102959102960102961102962102963102964102965102966102967102968102969102970102971102972102973102974102975102976102977102978102979102980102981102982102983102984102985102986102987102988102989102990102991102992102993102994102995102996102997102998102999103000103001103002103003103004103005103006103007103008103009103010103011103012103013103014103015103016103017103018103019103020103021103022103023103024103025103026103027103028103029103030103031103032103033103034103035103036103037103038103039103040103041103042103043103044103045103046103047103048103049103050103051103052103053103054103055103056103057103058103059103060103061103062103063103064103065103066103067103068103069103070103071103072103073103074103075103076103077103078103079103080103081103082103083103084103085103086103087103088103089103090103091103092103093103094103095103096103097103098103099103100103101103102103103103104103105103106103107103108103109103110103111103112103113103114103115103116103117103118103119103120103121103122103123103124103125103126103127103128103129103130103131103132103133103134103135103136103137103138103139103140103141103142103143103144103145103146103147103148103149103150103151103152103153103154103155103156103157103158103159103160103161103162103163103164103165103166103167103168103169103170103171103172103173103174103175103176103177103178103179103180103181103182103183103184103185103186103187103188103189103190103191103192103193103194103195103196103197103198103199103200103201103202103203103204103205103206103207103208103209103210103211103212103213103214103215103216103217103218103219103220103221103222103223103224103225103226103227103228103229103230103231103232103233103234103235103236103237103238103239103240103241103242103243103244103245103246103247103248103249103250103251103252103253103254103255103256103257103258103259103260103261103262103263103264103265103266103267103268103269103270103271103272103273103274103275103276103277103278103279103280103281103282103283103284103285103286103287103288103289103290103291103292103293103294103295103296103297103298103299103300103301103302103303103304103305103306103307103308103309103310103311103312103313103314103315103316103317103318103319103320103321103322103323103324103325103326103327103328103329103330103331103332103333103334103335103336103337103338103339103340103341103342103343103344103345103346103347103348103349103350103351103352103353103354103355103356103357103358103359103360103361103362103363103364103365103366103367103368103369103370103371103372103373103374103375103376103377103378103379103380103381103382103383103384103385103386103387103388103389103390103391103392103393103394103395103396103397103398103399103400103401103402103403103404103405103406103407103408103409103410103411103412103413103414103415103416103417103418103419103420103421103422103423103424103425103426103427103428103429103430103431103432103433103434103435103436103437103438103439103440103441103442103443103444103445103446103447103448103449103450103451103452103453103454103455103456103457103458103459103460103461103462103463103464103465103466103467103468103469103470103471103472103473103474103475103476103477103478103479103480103481103482103483103484103485103486103487103488103489103490103491103492103493103494103495103496103497103498103499103500103501103502103503103504103505103506103507103508103509103510103511103512103513103514103515103516103517103518103519103520103521103522103523103524103525103526103527103528103529103530103531103532103533103534103535103536103537103538103539103540103541103542103543103544103545103546103547103548103549103550103551103552103553103554103555103556103557103558103559103560103561103562103563103564103565103566103567103568103569103570103571103572103573103574103575103576103577103578103579103580103581103582103583103584103585103586103587103588103589103590103591103592103593103594103595103596103597103598103599103600103601103602103603103604103605103606103607103608103609103610103611103612103613103614103615103616103617103618103619103620103621103622103623103624103625103626103627103628103629103630103631103632103633103634103635103636103637103638103639103640103641103642103643103644103645103646103647103648103649103650103651103652103653103654103655103656103657103658103659103660103661103662103663103664103665103666103667103668103669103670103671103672103673103674103675103676103677103678103679103680103681103682103683103684103685103686103687103688103689103690103691103692103693103694103695103696103697103698103699103700103701103702103703103704103705103706103707103708103709103710103711103712103713103714103715103716103717103718103719103720103721103722103723103724103725103726103727103728103729103730103731103732103733103734103735103736103737103738103739103740103741103742103743103744103745103746103747103748103749103750103751103752103753103754103755103756103757103758103759103760103761103762103763103764103765103766103767103768103769103770103771103772103773103774103775103776103777103778103779103780103781103782103783103784103785103786103787103788103789103790103791103792103793103794103795103796103797103798103799103800103801103802103803103804103805103806103807103808103809103810103811103812103813103814103815103816103817103818103819103820103821103822103823103824103825103826103827103828103829103830103831103832103833103834103835103836103837103838103839103840103841103842103843103844103845103846103847103848103849103850103851103852103853103854103855103856103857103858103859103860103861103862103863103864103865103866103867103868103869103870103871103872103873103874103875103876103877103878103879103880103881103882103883103884103885103886103887103888103889103890103891103892103893103894103895103896103897103898103899103900103901103902103903103904103905103906103907103908103909103910103911103912103913103914103915103916103917103918103919103920103921103922103923103924103925103926103927103928103929103930103931103932103933103934103935103936103937103938103939103940103941103942103943103944103945103946103947103948103949103950103951103952103953103954103955103956103957103958103959103960103961103962103963103964103965103966103967103968103969103970103971103972103973103974103975103976103977103978103979103980103981103982103983103984103985103986103987103988103989103990103991103992103993103994103995103996103997103998103999104000104001104002104003104004104005104006104007104008104009104010104011104012104013104014104015104016104017104018104019104020104021104022104023104024104025104026104027104028104029104030104031104032104033104034104035104036104037104038104039104040104041104042104043104044104045104046104047104048104049104050104051104052104053104054104055104056104057104058104059104060104061104062104063104064104065104066104067104068104069104070104071104072104073104074104075104076104077104078104079104080104081104082104083104084104085104086104087104088104089104090104091104092104093104094104095104096104097104098104099104100104101104102104103104104104105104106104107104108104109104110104111104112104113104114104115104116104117104118104119104120104121104122104123104124104125104126104127104128104129104130104131104132104133104134104135104136104137104138104139104140104141104142104143104144104145104146104147104148104149104150104151104152104153104154104155104156104157104158104159104160104161104162104163104164104165104166104167104168104169104170104171104172104173104174104175104176104177104178104179104180104181104182104183104184104185104186104187104188104189104190104191104192104193104194104195104196104197104198104199104200104201104202104203104204104205104206104207104208104209104210104211104212104213104214104215104216104217104218104219104220104221104222104223104224104225104226104227104228104229104230104231104232104233104234104235104236104237104238104239104240104241104242104243104244104245104246104247104248104249104250104251104252104253104254104255104256104257104258104259104260104261104262104263104264104265104266104267104268104269104270104271104272104273104274104275104276104277104278104279104280104281104282104283104284104285104286104287104288104289104290104291104292104293104294104295104296104297104298104299104300104301104302104303104304104305104306104307104308104309104310104311104312104313104314104315104316104317104318104319104320104321104322104323104324104325104326104327104328104329104330104331104332104333104334104335104336104337104338104339104340104341104342104343104344104345104346104347104348104349104350104351104352104353104354104355104356104357104358104359104360104361104362104363104364104365104366104367104368104369104370104371104372104373104374104375104376104377104378104379104380104381104382104383104384104385104386104387104388104389104390104391104392104393104394104395104396104397104398104399104400104401104402104403104404104405104406104407104408104409104410104411104412104413104414104415104416104417104418104419104420104421104422104423104424104425104426104427104428104429104430104431104432104433104434104435104436104437104438104439104440104441104442104443104444104445104446104447104448104449104450104451104452104453104454104455104456104457104458104459104460104461104462104463104464104465104466104467104468104469104470104471104472104473104474104475104476104477104478104479104480104481104482104483104484104485104486104487104488104489104490104491104492104493104494104495104496104497104498104499104500104501104502104503104504104505104506104507104508104509104510104511104512104513104514104515104516104517104518104519104520104521104522104523104524104525104526104527104528104529104530104531104532104533104534104535104536104537104538104539104540104541104542104543104544104545104546104547104548104549104550104551104552104553104554104555104556104557104558104559104560104561104562104563104564104565104566104567104568104569104570104571104572104573104574104575104576104577104578104579104580104581104582104583104584104585104586104587104588104589104590104591104592104593104594104595104596104597104598104599104600104601104602104603104604104605104606104607104608104609104610104611104612104613104614104615104616104617104618104619104620104621104622104623104624104625104626104627104628104629104630104631104632104633104634104635104636104637104638104639104640104641104642104643104644104645104646104647104648104649104650104651104652104653104654104655104656104657104658104659104660104661104662104663104664104665104666104667104668104669104670104671104672104673104674104675104676104677104678104679104680104681104682104683104684104685104686104687104688104689104690104691104692104693104694104695104696104697104698104699104700104701104702104703104704104705104706104707104708104709104710104711104712104713104714104715104716104717104718104719104720104721104722104723104724104725104726104727104728104729104730104731104732104733104734104735104736104737104738104739104740104741104742104743104744104745104746104747104748104749104750104751104752104753104754104755104756104757104758104759104760104761104762104763104764104765104766104767104768104769104770104771104772104773104774104775104776104777104778104779104780104781104782104783104784104785104786104787104788104789104790104791104792104793104794104795104796104797104798104799104800104801104802104803104804104805104806104807104808104809104810104811104812104813104814104815104816104817104818104819104820104821104822104823104824104825104826104827104828104829104830104831104832104833104834104835104836104837104838104839104840104841104842104843104844104845104846104847104848104849104850104851104852104853104854104855104856104857104858104859104860104861104862104863104864104865104866104867104868104869104870104871104872104873104874104875104876104877104878104879104880104881104882104883104884104885104886104887104888104889104890104891104892104893104894104895104896104897104898104899104900104901104902104903104904104905104906104907104908104909104910104911104912104913104914104915104916104917104918104919104920104921104922104923104924104925104926104927104928104929104930104931104932104933104934104935104936104937104938104939104940104941104942104943104944104945104946104947104948104949104950104951104952104953104954104955104956104957104958104959104960104961104962104963104964104965104966104967104968104969104970104971104972104973104974104975104976104977104978104979104980104981104982104983104984104985104986104987104988104989104990104991104992104993104994104995104996104997104998104999105000105001105002105003105004105005105006105007105008105009105010105011105012105013105014105015105016105017105018105019105020105021105022105023105024105025105026105027105028105029105030105031105032105033105034105035105036105037105038105039105040105041105042105043105044105045105046105047105048105049105050105051105052105053105054105055105056105057105058105059105060105061105062105063105064105065105066105067105068105069105070105071105072105073105074105075105076105077105078105079105080105081105082105083105084105085105086105087105088105089105090105091105092105093105094105095105096105097105098105099105100105101105102105103105104105105105106105107105108105109105110105111105112105113105114105115105116105117105118105119105120105121105122105123105124105125105126105127105128105129105130105131105132105133105134105135105136105137105138105139105140105141105142105143105144105145105146105147105148105149105150105151105152105153105154105155105156105157105158105159105160105161105162105163105164105165105166105167105168105169105170105171105172105173105174105175105176105177105178105179105180105181105182105183105184105185105186105187105188105189105190105191105192105193105194105195105196105197105198105199105200105201105202105203105204105205105206105207105208105209105210105211105212105213105214105215105216105217105218105219105220105221105222105223105224105225105226105227105228105229105230105231105232105233105234105235105236105237105238105239105240105241105242105243105244105245105246105247105248105249105250105251105252105253105254105255105256105257105258105259105260105261105262105263105264105265105266105267105268105269105270105271105272105273105274105275105276105277105278105279105280105281105282105283105284105285105286105287105288105289105290105291105292105293105294105295105296105297105298105299105300105301105302105303105304105305105306105307105308105309105310105311105312105313105314105315105316105317105318105319105320105321105322105323105324105325105326105327105328105329105330105331105332105333105334105335105336105337105338105339105340105341105342105343105344105345105346105347105348105349105350105351105352105353105354105355105356105357105358105359105360105361105362105363105364105365105366105367105368105369105370105371105372105373105374105375105376105377105378105379105380105381105382105383105384105385105386105387105388105389105390105391105392105393105394105395105396105397105398105399105400105401105402105403105404105405105406105407105408105409105410105411105412105413105414105415105416105417105418105419105420105421105422105423105424105425105426105427105428105429105430105431105432105433105434105435105436105437105438105439105440105441105442105443105444105445105446105447105448105449105450105451105452105453105454105455105456105457105458105459105460105461105462105463105464105465105466105467105468105469105470105471105472105473105474105475105476105477105478105479105480105481105482105483105484105485105486105487105488105489105490105491105492105493105494105495105496105497105498105499105500105501105502105503105504105505105506105507105508105509105510105511105512105513105514105515105516105517105518105519105520105521105522105523105524105525105526105527105528105529105530105531105532105533105534105535105536105537105538105539105540105541105542105543105544105545105546105547105548105549105550105551105552105553105554105555105556105557105558105559105560105561105562105563105564105565105566105567105568105569105570105571105572105573105574105575105576105577105578105579105580105581105582105583105584105585105586105587105588105589105590105591105592105593105594105595105596105597105598105599105600105601105602105603105604105605105606105607105608105609105610105611105612105613105614105615105616105617105618105619105620105621105622105623105624105625105626105627105628105629105630105631105632105633105634105635105636105637105638105639105640105641105642105643105644105645105646105647105648105649105650105651105652105653105654105655105656105657105658105659105660105661105662105663105664105665105666105667105668105669105670105671105672105673105674105675105676105677105678105679105680105681105682105683105684105685105686105687105688105689105690105691105692105693105694105695105696105697105698105699105700105701105702105703105704105705105706105707105708105709105710105711105712105713105714105715105716105717105718105719105720105721105722105723105724105725105726105727105728105729105730105731105732105733105734105735105736105737105738105739105740105741105742105743105744105745105746105747105748105749105750105751105752105753105754105755105756105757105758105759105760105761105762105763105764105765105766105767105768105769105770105771105772105773105774105775105776105777105778105779105780105781105782105783105784105785105786105787105788105789105790105791105792105793105794105795105796105797105798105799105800105801105802105803105804105805105806105807105808105809105810105811105812105813105814105815105816105817105818105819105820105821105822105823105824105825105826105827105828105829105830105831105832105833105834105835105836105837105838105839105840105841105842105843105844105845105846105847105848105849105850105851105852105853105854105855105856105857105858105859105860105861105862105863105864105865105866105867105868105869105870105871105872105873105874105875105876105877105878105879105880105881105882105883105884105885105886105887105888105889105890105891105892105893105894105895105896105897105898105899105900105901105902105903105904105905105906105907105908105909105910105911105912105913105914105915105916105917105918105919105920105921105922105923105924105925105926105927105928105929105930105931105932105933105934105935105936105937105938105939105940105941105942105943105944105945105946105947105948105949105950105951105952105953105954105955105956105957105958105959105960105961105962105963105964105965105966105967105968105969105970105971105972105973105974105975105976105977105978105979105980105981105982105983105984105985105986105987105988105989105990105991105992105993105994105995105996105997105998105999106000106001106002106003106004106005106006106007106008106009106010106011106012106013106014106015106016106017106018106019106020106021106022106023106024106025106026106027106028106029106030106031106032106033106034106035106036106037106038106039106040106041106042106043106044106045106046106047106048106049106050106051106052106053106054106055106056106057106058106059106060106061106062106063106064106065106066106067106068106069106070106071106072106073106074106075106076106077106078106079106080106081106082106083106084106085106086106087106088106089106090106091106092106093106094106095106096106097106098106099106100106101106102106103106104106105106106106107106108106109106110106111106112106113106114106115106116106117106118106119106120106121106122106123106124106125106126106127106128106129106130106131106132106133106134106135106136106137106138106139106140106141106142106143106144106145106146106147106148106149106150106151106152106153106154106155106156106157106158106159106160106161106162106163106164106165106166106167106168106169106170106171106172106173106174106175106176106177106178106179106180106181106182106183106184106185106186106187106188106189106190106191106192106193106194106195106196106197106198106199106200106201106202106203106204106205106206106207106208106209106210106211106212106213106214106215106216106217106218106219106220106221106222106223106224106225106226106227106228106229106230106231106232106233106234106235106236106237106238106239106240106241106242106243106244106245106246106247106248106249106250106251106252106253106254106255106256106257106258106259106260106261106262106263106264106265106266106267106268106269106270106271106272106273106274106275106276106277106278106279106280106281106282106283106284106285106286106287106288106289106290106291106292106293106294106295106296106297106298106299106300106301106302106303106304106305106306106307106308106309106310106311106312106313106314106315106316106317106318106319106320106321106322106323106324106325106326106327106328106329106330106331106332106333106334106335106336106337106338106339106340106341106342106343106344106345106346106347106348106349106350106351106352106353106354106355106356106357106358106359106360106361106362106363106364106365106366106367106368106369106370106371106372106373106374106375106376106377106378106379106380106381106382106383106384106385106386106387106388106389106390106391106392106393106394106395106396106397106398106399106400106401106402106403106404106405106406106407106408106409106410106411106412106413106414106415106416106417106418106419106420106421106422106423106424106425106426106427106428106429106430106431106432106433106434106435106436106437106438106439106440106441106442106443106444106445106446106447106448106449106450106451106452106453106454106455106456106457106458106459106460106461106462106463106464106465106466106467106468106469106470106471106472106473106474106475106476106477106478106479106480106481106482106483106484106485106486106487106488106489106490106491106492106493106494106495106496106497106498106499106500106501106502106503106504106505106506106507106508106509106510106511106512106513106514106515106516106517106518106519106520106521106522106523106524106525106526106527106528106529106530106531106532106533106534106535106536106537106538106539106540106541106542106543106544106545106546106547106548106549106550106551106552106553106554106555106556106557106558106559106560106561106562106563106564106565106566106567106568106569106570106571106572106573106574106575106576106577106578106579106580106581106582106583106584106585106586106587106588106589106590106591106592106593106594106595106596106597106598106599106600106601106602106603106604106605106606106607106608106609106610106611106612106613106614106615106616106617106618106619106620106621106622106623106624106625106626106627106628106629106630106631106632106633106634106635106636106637106638106639106640106641106642106643106644106645106646106647106648106649106650106651106652106653106654106655106656106657106658106659106660106661106662106663106664106665106666106667106668106669106670106671106672106673106674106675106676106677106678106679106680106681106682106683106684106685106686106687106688106689106690106691106692106693106694106695106696106697106698106699106700106701106702106703106704106705106706106707106708106709106710106711106712106713106714106715106716106717106718106719106720106721106722106723106724106725106726106727106728106729106730106731106732106733106734106735106736106737106738106739106740106741106742106743106744106745106746106747106748106749106750106751106752106753106754106755106756106757106758106759106760106761106762106763106764106765106766106767106768106769106770106771106772106773106774106775106776106777106778106779106780106781106782106783106784106785106786106787106788106789106790106791106792106793106794106795106796106797106798106799106800106801106802106803106804106805106806106807106808106809106810106811106812106813106814106815106816106817106818106819106820106821106822106823106824106825106826106827106828106829106830106831106832106833106834106835106836106837106838106839106840106841106842106843106844106845106846106847106848106849106850106851106852106853106854106855106856106857106858106859106860106861106862106863106864106865106866106867106868106869106870106871106872106873106874106875106876106877106878106879106880106881106882106883106884106885106886106887106888106889106890106891106892106893106894106895106896106897106898106899106900106901106902106903106904106905106906106907106908106909106910106911106912106913106914106915106916106917106918106919106920106921106922106923106924106925106926106927106928106929106930106931106932106933106934106935106936106937106938106939106940106941106942106943106944106945106946106947106948106949106950106951106952106953106954106955106956106957106958106959106960106961106962106963106964106965106966106967106968106969106970106971106972106973106974106975106976106977106978106979106980106981106982106983106984106985106986106987106988106989106990106991106992106993106994106995106996106997106998106999107000107001107002107003107004107005107006107007107008107009107010107011107012107013107014107015107016107017107018107019107020107021107022107023107024107025107026107027107028107029107030107031107032107033107034107035107036107037107038107039107040107041107042107043107044107045107046107047107048107049107050107051107052107053107054107055107056107057107058107059107060107061107062107063107064107065107066107067107068107069107070107071107072107073107074107075107076107077107078107079107080107081107082107083107084107085107086107087107088107089107090107091107092107093107094107095107096107097107098107099107100107101107102107103107104107105107106107107107108107109107110107111107112107113107114107115107116107117107118107119107120107121107122107123107124107125107126107127107128107129107130107131107132107133107134107135107136107137107138107139107140107141107142107143107144107145107146107147107148107149107150107151107152107153107154107155107156107157107158107159107160107161107162107163107164107165107166107167107168107169107170107171107172107173107174107175107176107177107178107179107180107181107182107183107184107185107186107187107188107189107190107191107192107193107194107195107196107197107198107199107200107201107202107203107204107205107206107207107208107209107210107211107212107213107214107215107216107217107218107219107220107221107222107223107224107225107226107227107228107229107230107231107232107233107234107235107236107237107238107239107240107241107242107243107244107245107246107247107248107249107250107251107252107253107254107255107256107257107258107259107260107261107262107263107264107265107266107267107268107269107270107271107272107273107274107275107276107277107278107279107280107281107282107283107284107285107286107287107288107289107290107291107292107293107294107295107296107297107298107299107300107301107302107303107304107305107306107307107308107309107310107311107312107313107314107315107316107317107318107319107320107321107322107323107324107325107326107327107328107329107330107331107332107333107334107335107336107337107338107339107340107341107342107343107344107345107346107347107348107349107350107351107352107353107354107355107356107357107358107359107360107361107362107363107364107365107366107367107368107369107370107371107372107373107374107375107376107377107378107379107380107381107382107383107384107385107386107387107388107389107390107391107392107393107394107395107396107397107398107399107400107401107402107403107404107405107406107407107408107409107410107411107412107413107414107415107416107417107418107419107420107421107422107423107424107425107426107427107428107429107430107431107432107433107434107435107436107437107438107439107440107441107442107443107444107445107446107447107448107449107450107451107452107453107454107455107456107457107458107459107460107461107462107463107464107465107466107467107468107469107470107471107472107473107474107475107476107477107478107479107480107481107482107483107484107485107486107487107488107489107490107491107492107493107494107495107496107497107498107499107500107501107502107503107504107505107506107507107508107509107510107511107512107513107514107515107516107517107518107519107520107521107522107523107524107525107526107527107528107529107530107531107532107533107534107535107536107537107538107539107540107541107542107543107544107545107546107547107548107549107550107551107552107553107554107555107556107557107558107559107560107561107562107563107564107565107566107567107568107569107570107571107572107573107574107575107576107577107578107579107580107581107582107583107584107585107586107587107588107589107590107591107592107593107594107595107596107597107598107599107600107601107602107603107604107605107606107607107608107609107610107611107612107613107614107615107616107617107618107619107620107621107622107623107624107625107626107627107628107629107630107631107632107633107634107635107636107637107638107639107640107641107642107643107644107645107646107647107648107649107650107651107652107653107654107655107656107657107658107659107660107661107662107663107664107665107666107667107668107669107670107671107672107673107674107675107676107677107678107679107680107681107682107683107684107685107686107687107688107689107690107691107692107693107694107695107696107697107698107699107700107701107702107703107704107705107706107707107708107709107710107711107712107713107714107715107716107717107718107719107720107721107722107723107724107725107726107727107728107729107730107731107732107733107734107735107736107737107738107739107740107741107742107743107744107745107746107747107748107749107750107751107752107753107754107755107756107757107758107759107760107761107762107763107764107765107766107767107768107769107770107771107772107773107774107775107776107777107778107779107780107781107782107783107784107785107786107787107788107789107790107791107792107793107794107795107796107797107798107799107800107801107802107803107804107805107806107807107808107809107810107811107812107813107814107815107816107817107818107819107820107821107822107823107824107825107826107827107828107829107830107831107832107833107834107835107836107837107838107839107840107841107842107843107844107845107846107847107848107849107850107851107852107853107854107855107856107857107858107859107860107861107862107863107864107865107866107867107868107869107870107871107872107873107874107875107876107877107878107879107880107881107882107883107884107885107886107887107888107889107890107891107892107893107894107895107896107897107898107899107900107901107902107903107904107905107906107907107908107909107910107911107912107913107914107915107916107917107918107919107920107921107922107923107924107925107926107927107928107929107930107931107932107933107934107935107936107937107938107939107940107941107942107943107944107945107946107947107948107949107950107951107952107953107954107955107956107957107958107959107960107961107962107963107964107965107966107967107968107969107970107971107972107973107974107975107976107977107978107979107980107981107982107983107984107985107986107987107988107989107990107991107992107993107994107995107996107997107998107999108000108001108002108003108004108005108006108007108008108009108010108011108012108013108014108015108016108017108018108019108020108021108022108023108024108025108026108027108028108029108030108031108032108033108034108035108036108037108038108039108040108041108042108043108044108045108046108047108048108049108050108051108052108053108054108055108056108057108058108059108060108061108062108063108064108065108066108067108068108069108070108071108072108073108074108075108076108077108078108079108080108081108082108083108084108085108086108087108088108089108090108091108092108093108094108095108096108097108098108099108100108101108102108103108104108105108106108107108108108109108110108111108112108113108114108115108116108117108118108119108120108121108122108123108124108125108126108127108128108129108130108131108132108133108134108135108136108137108138108139108140108141108142108143108144108145108146108147108148108149108150108151108152108153108154108155108156108157108158108159108160108161108162108163108164108165108166108167108168108169108170108171108172108173108174108175108176108177108178108179108180108181108182108183108184108185108186108187108188108189108190108191108192108193108194108195108196108197108198108199108200108201108202108203108204108205108206108207108208108209108210108211108212108213108214108215108216108217108218108219108220108221108222108223108224108225108226108227108228108229108230108231108232108233108234108235108236108237108238108239108240108241108242108243108244108245108246108247108248108249108250108251108252108253108254108255108256108257108258108259108260108261108262108263108264108265108266108267108268108269108270108271108272108273108274108275108276108277108278108279108280108281108282108283108284108285108286108287108288108289108290108291108292108293108294108295108296108297108298108299108300108301108302108303108304108305108306108307108308108309108310108311108312108313108314108315108316108317108318108319108320108321108322108323108324108325108326108327108328108329108330108331108332108333108334108335108336108337108338108339108340108341108342108343108344108345108346108347108348108349108350108351108352108353108354108355108356108357108358108359108360108361108362108363108364108365108366108367108368108369108370108371108372108373108374108375108376108377108378108379108380108381108382108383108384108385108386108387108388108389108390108391108392108393108394108395108396108397108398108399108400108401108402108403108404108405108406108407108408108409108410108411108412108413108414108415108416108417108418108419108420108421108422108423108424108425108426108427108428108429108430108431108432108433108434108435108436108437108438108439108440108441108442108443108444108445108446108447108448108449108450108451108452108453108454108455108456108457108458108459108460108461108462108463108464108465108466108467108468108469108470108471108472108473108474108475108476108477108478108479108480108481108482108483108484108485108486108487108488108489108490108491108492108493108494108495108496108497108498108499108500108501108502108503108504108505108506108507108508108509108510108511108512108513108514108515108516108517108518108519108520108521108522108523108524108525108526108527108528108529108530108531108532108533108534108535108536108537108538108539108540108541108542108543108544108545108546108547108548108549108550108551108552108553108554108555108556108557108558108559108560108561108562108563108564108565108566108567108568108569108570108571108572108573108574108575108576108577108578108579108580108581108582108583108584108585108586108587108588108589108590108591108592108593108594108595108596108597108598108599108600108601108602108603108604108605108606108607108608108609108610108611108612108613108614108615108616108617108618108619108620108621108622108623108624108625108626108627108628108629108630108631108632108633108634108635108636108637108638108639108640108641108642108643108644108645108646108647108648108649108650108651108652108653108654108655108656108657108658108659108660108661108662108663108664108665108666108667108668108669108670108671108672108673108674108675108676108677108678108679108680108681108682108683108684108685108686108687108688108689108690108691108692108693108694108695108696108697108698108699108700108701108702108703108704108705108706108707108708108709108710108711108712108713108714108715108716108717108718108719108720108721108722108723108724108725108726108727108728108729108730108731108732108733108734108735108736108737108738108739108740108741108742108743108744108745108746108747108748108749108750108751108752108753108754108755108756108757108758108759108760108761108762108763108764108765108766108767108768108769108770108771108772108773108774108775108776108777108778108779108780108781108782108783108784108785108786108787108788108789108790108791108792108793108794108795108796108797108798108799108800108801108802108803108804108805108806108807108808108809108810108811108812108813108814108815108816108817108818108819108820108821108822108823108824108825108826108827108828108829108830108831108832108833108834108835108836108837108838108839108840108841108842108843108844108845108846108847108848108849108850108851108852108853108854108855108856108857108858108859108860108861108862108863108864108865108866108867108868108869108870108871108872108873108874108875108876108877108878108879108880108881108882108883108884108885108886108887108888108889108890108891108892108893108894108895108896108897108898108899108900108901108902108903108904108905108906108907108908108909108910108911108912108913108914108915108916108917108918108919108920108921108922108923108924108925108926108927108928108929108930108931108932108933108934108935108936108937108938108939108940108941108942108943108944108945108946108947108948108949108950108951108952108953108954108955108956108957108958108959108960108961108962108963108964108965108966108967108968108969108970108971108972108973108974108975108976108977108978108979108980108981108982108983108984108985108986108987108988108989108990108991108992108993108994108995108996108997108998108999109000109001109002109003109004109005109006109007109008109009109010109011109012109013109014109015109016109017109018109019109020109021109022109023109024109025109026109027109028109029109030109031109032109033109034109035109036109037109038109039109040109041109042109043109044109045109046109047109048109049109050109051109052109053109054109055109056109057109058109059109060109061109062109063109064109065109066109067109068109069109070109071109072109073109074109075109076109077109078109079109080109081109082109083109084109085109086109087109088109089109090109091109092109093109094109095109096109097109098109099109100109101109102109103109104109105109106109107109108109109109110109111109112109113109114109115109116109117109118109119109120109121109122109123109124109125109126109127109128109129109130109131109132109133109134109135109136109137109138109139109140109141109142109143109144109145109146109147109148109149109150109151109152109153109154109155109156109157109158109159109160109161109162109163109164109165109166109167109168109169109170109171109172109173109174109175109176109177109178109179109180109181109182109183109184109185109186109187109188109189109190109191109192109193109194109195109196109197109198109199109200109201109202109203109204109205109206109207109208109209109210109211109212109213109214109215109216109217109218109219109220109221109222109223109224109225109226109227109228109229109230109231109232109233109234109235109236109237109238109239109240109241109242109243109244109245109246109247109248109249109250109251109252109253109254109255109256109257109258109259109260109261109262109263109264109265109266109267109268109269109270109271109272109273109274109275109276109277109278109279109280109281109282109283109284109285109286109287109288109289109290109291109292109293109294109295109296109297109298109299109300109301109302109303109304109305109306109307109308109309109310109311109312109313109314109315109316109317109318109319109320109321109322109323109324109325109326109327109328109329109330109331109332109333109334109335109336109337109338109339109340109341109342109343109344109345109346109347109348109349109350109351109352109353109354109355109356109357109358109359109360109361109362109363109364109365109366109367109368109369109370109371109372109373109374109375109376109377109378109379109380109381109382109383109384109385109386109387109388109389109390109391109392109393109394109395109396109397109398109399109400109401109402109403109404109405109406109407109408109409109410109411109412109413109414109415109416109417109418109419109420109421109422109423109424109425109426109427109428109429109430109431109432109433109434109435109436109437109438109439109440109441109442109443109444109445109446109447109448109449109450109451109452109453109454109455109456109457109458109459109460109461109462109463109464109465109466109467109468109469109470109471109472109473109474109475109476109477109478109479109480109481109482109483109484109485109486109487109488109489109490109491109492109493109494109495109496109497109498109499109500109501109502109503109504109505109506109507109508109509109510109511109512109513109514109515109516109517109518109519109520109521109522109523109524109525109526109527109528109529109530109531109532109533109534109535109536109537109538109539109540109541109542109543109544109545109546109547109548109549109550109551109552109553109554109555109556109557109558109559109560109561109562109563109564109565109566109567109568109569109570109571109572109573109574109575109576109577109578109579109580109581109582109583109584109585109586109587109588109589109590109591109592109593109594109595109596109597109598109599109600109601109602109603109604109605109606109607109608109609109610109611109612109613109614109615109616109617109618109619109620109621109622109623109624109625109626109627109628109629109630109631109632109633109634109635109636109637109638109639109640109641109642109643109644109645109646109647109648109649109650109651109652109653109654109655109656109657109658109659109660109661109662109663109664109665109666109667109668109669109670109671109672109673109674109675109676109677109678109679109680109681109682109683109684109685109686109687109688109689109690109691109692109693109694109695109696109697109698109699109700109701109702109703109704109705109706109707109708109709109710109711109712109713109714109715109716109717109718109719109720109721109722109723109724109725109726109727109728109729109730109731109732109733109734109735109736109737109738109739109740109741109742109743109744109745109746109747109748109749109750109751109752109753109754109755109756109757109758109759109760109761109762109763109764109765109766109767109768109769109770109771109772109773109774109775109776109777109778109779109780109781109782109783109784109785109786109787109788109789109790109791109792109793109794109795109796109797109798109799109800109801109802109803109804109805109806109807109808109809109810109811109812109813109814109815109816109817109818109819109820109821109822109823109824109825109826109827109828109829109830109831109832109833109834109835109836109837109838109839109840109841109842109843109844109845109846109847109848109849109850109851109852109853109854109855109856109857109858109859109860109861109862109863109864109865109866109867109868109869109870109871109872109873109874109875109876109877109878109879109880109881109882109883109884109885109886109887109888109889109890109891109892109893109894109895109896109897109898109899109900109901109902109903109904109905109906109907109908109909109910109911109912109913109914109915109916109917109918109919109920109921109922109923109924109925109926109927109928109929109930109931109932109933109934109935109936109937109938109939109940109941109942109943109944109945109946109947109948109949109950109951109952109953109954109955109956109957109958109959109960109961109962109963109964109965109966109967109968109969109970109971109972109973109974109975109976109977109978109979109980109981109982109983109984109985109986109987109988109989109990109991109992109993109994109995109996109997109998109999110000110001110002110003110004110005110006110007110008110009110010110011110012110013110014110015110016110017110018110019110020110021110022110023110024110025110026110027110028110029110030110031110032110033110034110035110036110037110038110039110040110041110042110043110044110045110046110047110048110049110050110051110052110053110054110055110056110057110058110059110060110061110062110063110064110065110066110067110068110069110070110071110072110073110074110075110076110077110078110079110080110081110082110083110084110085110086110087110088110089110090110091110092110093110094110095110096110097110098110099110100110101110102110103110104110105110106110107110108110109110110110111110112110113110114110115110116110117110118110119110120110121110122110123110124110125110126110127110128110129110130110131110132110133110134110135110136110137110138110139110140110141110142110143110144110145110146110147110148110149110150110151110152110153110154110155110156110157110158110159110160110161110162110163110164110165110166110167110168110169110170110171110172110173110174110175110176110177110178110179110180110181110182110183110184110185110186110187110188110189110190110191110192110193110194110195110196110197110198110199110200110201110202110203110204110205110206110207110208110209110210110211110212110213110214110215110216110217110218110219110220110221110222110223110224110225110226110227110228110229110230110231110232110233110234110235110236110237110238110239110240110241110242110243110244110245110246110247110248110249110250110251110252110253110254110255110256110257110258110259110260110261110262110263110264110265110266110267110268110269110270110271110272110273110274110275110276110277110278110279110280110281110282110283110284110285110286110287110288110289110290110291110292110293110294110295110296110297110298110299110300110301110302110303110304110305110306110307110308110309110310110311110312110313110314110315110316110317110318110319110320110321110322110323110324110325110326110327110328110329110330110331110332110333110334110335110336110337110338110339110340110341110342110343110344110345110346110347110348110349110350110351110352110353110354110355110356110357110358110359110360110361110362110363110364110365110366110367110368110369110370110371110372110373110374110375110376110377110378110379110380110381110382110383110384110385110386110387110388110389110390110391110392110393110394110395110396110397110398110399110400110401110402110403110404110405110406110407110408110409110410110411110412110413110414110415110416110417110418110419110420110421110422110423110424110425110426110427110428110429110430110431110432110433110434110435110436110437110438110439110440110441110442110443110444110445110446110447110448110449110450110451110452110453110454110455110456110457110458110459110460110461110462110463110464110465110466110467110468110469110470110471110472110473110474110475110476110477110478110479110480110481110482110483110484110485110486110487110488110489110490110491110492110493110494110495110496110497110498110499110500110501110502110503110504110505110506110507110508110509110510110511110512110513110514110515110516110517110518110519110520110521110522110523110524110525110526110527110528110529110530110531110532110533110534110535110536110537110538110539110540110541110542110543110544110545110546110547110548110549110550110551110552110553110554110555110556110557110558110559110560110561110562110563110564110565110566110567110568110569110570110571110572110573110574110575110576110577110578110579110580110581110582110583110584110585110586110587110588110589110590110591110592110593110594110595110596110597110598110599110600110601110602110603110604110605110606110607110608110609110610110611110612110613110614110615110616110617110618110619110620110621110622110623110624110625110626110627110628110629110630110631110632110633110634110635110636110637110638110639110640110641110642110643110644110645110646110647110648110649110650110651110652110653110654110655110656110657110658110659110660110661110662110663110664110665110666110667110668110669110670110671110672110673110674110675110676110677110678110679110680110681110682110683110684110685110686110687110688110689110690110691110692110693110694110695110696110697110698110699110700110701110702110703110704110705110706110707110708110709110710110711110712110713110714110715110716110717110718110719110720110721110722110723110724110725110726110727110728110729110730110731110732110733110734110735110736110737110738110739110740110741110742110743110744110745110746110747110748110749110750110751110752110753110754110755110756110757110758110759110760110761110762110763110764110765110766110767110768110769110770110771110772110773110774110775110776110777110778110779110780110781110782110783110784110785110786110787110788110789110790110791110792110793110794110795110796110797110798110799110800110801110802110803110804110805110806110807110808110809110810110811110812110813110814110815110816110817110818110819110820110821110822110823110824110825110826110827110828110829110830110831110832110833110834110835110836110837110838110839110840110841110842110843110844110845110846110847110848110849110850110851110852110853110854110855110856110857110858110859110860110861110862110863110864110865110866110867110868110869110870110871110872110873110874110875110876110877110878110879110880110881110882110883110884110885110886110887110888110889110890110891110892110893110894110895110896110897110898110899110900110901110902110903110904110905110906110907110908110909110910110911110912110913110914110915110916110917110918110919110920110921110922110923110924110925110926110927110928110929110930110931110932110933110934110935110936110937110938110939110940110941110942110943110944110945110946110947110948110949110950110951110952110953110954110955110956110957110958110959110960110961110962110963110964110965110966110967110968110969110970110971110972110973110974110975110976110977110978110979110980110981110982110983110984110985110986110987110988110989110990110991110992110993110994110995110996110997110998110999111000111001111002111003111004111005111006111007111008111009111010111011111012111013111014111015111016111017111018111019111020111021111022111023111024111025111026111027111028111029111030111031111032111033111034111035111036111037111038111039111040111041111042111043111044111045111046111047111048111049111050111051111052111053111054111055111056111057111058111059111060111061111062111063111064111065111066111067111068111069111070111071111072111073111074111075111076111077111078111079111080111081111082111083111084111085111086111087111088111089111090111091111092111093111094111095111096111097111098111099111100111101111102111103111104111105111106111107111108111109111110111111111112111113111114111115111116111117111118111119111120111121111122111123111124111125111126111127111128111129111130111131111132111133111134111135111136111137111138111139111140111141111142111143111144111145111146111147111148111149111150111151111152111153111154111155111156111157111158111159111160111161111162111163111164111165111166111167111168111169111170111171111172111173111174111175111176111177111178111179111180111181111182111183111184111185111186111187111188111189111190111191111192111193111194111195111196111197111198111199111200111201111202111203111204111205111206111207111208111209111210111211111212111213111214111215111216111217111218111219111220111221111222111223111224111225111226111227111228111229111230111231111232111233111234111235111236111237111238111239111240111241111242111243111244111245111246111247111248111249111250111251111252111253111254111255111256111257111258111259111260111261111262111263111264111265111266111267111268111269111270111271111272111273111274111275111276111277111278111279111280111281111282111283111284111285111286111287111288111289111290111291111292111293111294111295111296111297111298111299111300111301111302111303111304111305111306111307111308111309111310111311111312111313111314111315111316111317111318111319111320111321111322111323111324111325111326111327111328111329111330111331111332111333111334111335111336111337111338111339111340111341111342111343111344111345111346111347111348111349111350111351111352111353111354111355111356111357111358111359111360111361111362111363111364111365111366111367111368111369111370111371111372111373111374111375111376111377111378111379111380111381111382111383111384111385111386111387111388111389111390111391111392111393111394111395111396111397111398111399111400111401111402111403111404111405111406111407111408111409111410111411111412111413111414111415111416111417111418111419111420111421111422111423111424111425111426111427111428111429111430111431111432111433111434111435111436111437111438111439111440111441111442111443111444111445111446111447111448111449111450111451111452111453111454111455111456111457111458111459111460111461111462111463111464111465111466111467111468111469111470111471111472111473111474111475111476111477111478111479111480111481111482111483111484111485111486111487111488111489111490111491111492111493111494111495111496111497111498111499111500111501111502111503111504111505111506111507111508111509111510111511111512111513111514111515111516111517111518111519111520111521111522111523111524111525111526111527111528111529111530111531111532111533111534111535111536111537111538111539111540111541111542111543111544111545111546111547111548111549111550111551111552111553111554111555111556111557111558111559111560111561111562111563111564111565111566111567111568111569111570111571111572111573111574111575111576111577111578111579111580111581111582111583111584111585111586111587111588111589111590111591111592111593111594111595111596111597111598111599111600111601111602111603111604111605111606111607111608111609111610111611111612111613111614111615111616111617111618111619111620111621111622111623111624111625111626111627111628111629111630111631111632111633111634111635111636111637111638111639111640111641111642111643111644111645111646111647111648111649111650111651111652111653111654111655111656111657111658111659111660111661111662111663111664111665111666111667111668111669111670111671111672111673111674111675111676111677111678111679111680111681111682111683111684111685111686111687111688111689111690111691111692111693111694111695111696111697111698111699111700111701111702111703111704111705111706111707111708111709111710111711111712111713111714111715111716111717111718111719111720111721111722111723111724111725111726111727111728111729111730111731111732111733111734111735111736111737111738111739111740111741111742111743111744111745111746111747111748111749111750111751111752111753111754111755111756111757111758111759111760111761111762111763111764111765111766111767111768111769111770111771111772111773111774111775111776111777111778111779111780111781111782111783111784111785111786111787111788111789111790111791111792111793111794111795111796111797111798111799111800111801111802111803111804111805111806111807111808111809111810111811111812111813111814111815111816111817111818111819111820111821111822111823111824111825111826111827111828111829111830111831111832111833111834111835111836111837111838111839111840111841111842111843111844111845111846111847111848111849111850111851111852111853111854111855111856111857111858111859111860111861111862111863111864111865111866111867111868111869111870111871111872111873111874111875111876111877111878111879111880111881111882111883111884111885111886111887111888111889111890111891111892111893111894111895111896111897111898111899111900111901111902111903111904111905111906111907111908111909111910111911111912111913111914111915111916111917111918111919111920111921111922111923111924111925111926111927111928111929111930111931111932111933111934111935111936111937111938111939111940111941111942111943111944111945111946111947111948111949111950111951111952111953111954111955111956111957111958111959111960111961111962111963111964111965111966111967111968111969111970111971111972111973111974111975111976111977111978111979111980111981111982111983111984111985111986111987111988111989111990111991111992111993111994111995111996111997111998111999112000112001112002112003112004112005112006112007112008112009112010112011112012112013112014112015112016112017112018112019112020112021112022112023112024112025112026112027112028112029112030112031112032112033112034112035112036112037112038112039112040112041112042112043112044112045112046112047112048112049112050112051112052112053112054112055112056112057112058112059112060112061112062112063112064112065112066112067112068112069112070112071112072112073112074112075112076112077112078112079112080112081112082112083112084112085112086112087112088112089112090112091112092112093112094112095112096112097112098112099112100112101112102112103112104112105112106112107112108112109112110112111112112112113112114112115112116112117112118112119112120112121112122112123112124112125112126112127112128112129112130112131112132112133112134112135112136112137112138112139112140112141112142112143112144112145112146112147112148112149112150112151112152112153112154112155112156112157112158112159112160112161112162112163112164112165112166112167112168112169112170112171112172112173112174112175112176112177112178112179112180112181112182112183112184112185112186112187112188112189112190112191112192112193112194112195112196112197112198112199112200112201112202112203112204112205112206112207112208112209112210112211112212112213112214112215112216112217112218112219112220112221112222112223112224112225112226112227112228112229112230112231112232112233112234112235112236112237112238112239112240112241112242112243112244112245112246112247112248112249112250112251112252112253112254112255112256112257112258112259112260112261112262112263112264112265112266112267112268112269112270112271112272112273112274112275112276112277112278112279112280112281112282112283112284112285112286112287112288112289112290112291112292112293112294112295112296112297112298112299112300112301112302112303112304112305112306112307112308112309112310112311112312112313112314112315112316112317112318112319112320112321112322112323112324112325112326112327112328112329112330112331112332112333112334112335112336112337112338112339112340112341112342112343112344112345112346112347112348112349112350112351112352112353112354112355112356112357112358112359112360112361112362112363112364112365112366112367112368112369112370112371112372112373112374112375112376112377112378112379112380112381112382112383112384112385112386112387112388112389112390112391112392112393112394112395112396112397112398112399112400112401112402112403112404112405112406112407112408112409112410112411112412112413112414112415112416112417112418112419112420112421112422112423112424112425112426112427112428112429112430112431112432112433112434112435112436112437112438112439112440112441112442112443112444112445112446112447112448112449112450112451112452112453112454112455112456112457112458112459112460112461112462112463112464112465112466112467112468112469112470112471112472112473112474112475112476112477112478112479112480112481112482112483112484112485112486112487112488112489112490112491112492112493112494112495112496112497112498112499112500112501112502112503112504112505112506112507112508112509112510112511112512112513112514112515112516112517112518112519112520112521112522112523112524112525112526112527112528112529112530112531112532112533112534112535112536112537112538112539112540112541112542112543112544112545112546112547112548112549112550112551112552112553112554112555112556112557112558112559112560112561112562112563112564112565112566112567112568112569112570112571112572112573112574112575112576112577112578112579112580112581112582112583112584112585112586112587112588112589112590112591112592112593112594112595112596112597112598112599112600112601112602112603112604112605112606112607112608112609112610112611112612112613112614112615112616112617112618112619112620112621112622112623112624112625112626112627112628112629112630112631112632112633112634112635112636112637112638112639112640112641112642112643112644112645112646112647112648112649112650112651112652112653112654112655112656112657112658112659112660112661112662112663112664112665112666112667112668112669112670112671112672112673112674112675112676112677112678112679112680112681112682112683112684112685112686112687112688112689112690112691112692112693112694112695112696112697112698112699112700112701112702112703112704112705112706112707112708112709112710112711112712112713112714112715112716112717112718112719112720112721112722112723112724112725112726112727112728112729112730112731112732112733112734112735112736112737112738112739112740112741112742112743112744112745112746112747112748112749112750112751112752112753112754112755112756112757112758112759112760112761112762112763112764112765112766112767112768112769112770112771112772112773112774112775112776112777112778112779112780112781112782112783112784112785112786112787112788112789112790112791112792112793112794112795112796112797112798112799112800112801112802112803112804112805112806112807112808112809112810112811112812112813112814112815112816112817112818112819112820112821112822112823112824112825112826112827112828112829112830112831112832112833112834112835112836112837112838112839112840112841112842112843112844112845112846112847112848112849112850112851112852112853112854112855112856112857112858112859112860112861112862112863112864112865112866112867112868112869112870112871112872112873112874112875112876112877112878112879112880112881112882112883112884112885112886112887112888112889112890112891112892112893112894112895112896112897112898112899112900112901112902112903112904112905112906112907112908112909112910112911112912112913112914112915112916112917112918112919112920112921112922112923112924112925112926112927112928112929112930112931112932112933112934112935112936112937112938112939112940112941112942112943112944112945112946112947112948112949112950112951112952112953112954112955112956112957112958112959112960112961112962112963112964112965112966112967112968112969112970112971112972112973112974112975112976112977112978112979112980112981112982112983112984112985112986112987112988112989112990112991112992112993112994112995112996112997112998112999113000113001113002113003113004113005113006113007113008113009113010113011113012113013113014113015113016113017113018113019113020113021113022113023113024113025113026113027113028113029113030113031113032113033113034113035113036113037113038113039113040113041113042113043113044113045113046113047113048113049113050
  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 0002cf40 080002a0 080002a0 000012a0 2**4
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 00004e0c 0802d1e0 0802d1e0 0002e1e0 2**3
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM 00000008 08031fec 08031fec 00032fec 2**2
  11. CONTENTS, ALLOC, LOAD, READONLY, DATA
  12. 4 .init_array 00000004 08031ff4 08031ff4 00032ff4 2**2
  13. CONTENTS, ALLOC, LOAD, READONLY, DATA
  14. 5 .fini_array 00000004 08031ff8 08031ff8 00032ff8 2**2
  15. CONTENTS, ALLOC, LOAD, READONLY, DATA
  16. 6 .data 00000224 24000000 08031ffc 00033000 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .bss 0002b044 24000224 08032220 00033224 2**2
  19. ALLOC
  20. 8 ._user_heap_stack 00000600 2402b268 08032220 00033268 2**0
  21. ALLOC
  22. 9 .lwip_sec 0001931b 2402b868 08032220 00033868 2**2
  23. ALLOC
  24. 10 .ARM.attributes 0000002e 00000000 00000000 00033224 2**0
  25. CONTENTS, READONLY
  26. 11 .debug_info 00051d1d 00000000 00000000 00033252 2**0
  27. CONTENTS, READONLY, DEBUGGING, OCTETS
  28. 12 .debug_abbrev 0000b72e 00000000 00000000 00084f6f 2**0
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_aranges 00003848 00000000 00000000 000906a0 2**3
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_rnglists 00002cf9 00000000 00000000 00093ee8 2**0
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_macro 0004f343 00000000 00000000 00096be1 2**0
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .debug_line 00057cb9 00000000 00000000 000e5f24 2**0
  37. CONTENTS, READONLY, DEBUGGING, OCTETS
  38. 17 .debug_str 0018eb0b 00000000 00000000 0013dbdd 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .comment 00000043 00000000 00000000 002cc6e8 2**0
  41. CONTENTS, READONLY
  42. 19 .debug_frame 0000fc30 00000000 00000000 002cc72c 2**2
  43. CONTENTS, READONLY, DEBUGGING, OCTETS
  44. 20 .debug_line_str 00000064 00000000 00000000 002dc35c 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: 0802d1c8 .word 0x0802d1c8
  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: 0802d1c8 .word 0x0802d1c8
  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: 08031c30 .word 0x08031c30
  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 ff7f bl 802aa80 <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: f029 f80c bl 8029d54 <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 fb63 bl 802aa90 <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: 0802d218 .word 0x0802d218
  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: f029 fa6e bl 802aa90 <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: f029 fa4d bl 802aa90 <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: f029 fa2c bl 802aa90 <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: 0802d1ec .word 0x0802d1ec
  2780. 8001740: 0802d21c .word 0x0802d21c
  2781. 8001744: 0802d224 .word 0x0802d224
  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. #ifdef UART_TASK_LOGS
  3772. HAL_UART_Transmit(&huart8, (uint8_t *)&ch, 1, 0xFFFF); // Use UART8 as debug interface
  3773. 8001cc0: 1d39 adds r1, r7, #4
  3774. 8001cc2: f64f 73ff movw r3, #65535 @ 0xffff
  3775. 8001cc6: 2201 movs r2, #1
  3776. 8001cc8: 4803 ldr r0, [pc, #12] @ (8001cd8 <__io_putchar+0x20>)
  3777. 8001cca: f00b fd4d bl 800d768 <HAL_UART_Transmit>
  3778. // ITM_SendChar(ch); // Use SWV as debug interface
  3779. #endif
  3780. return ch;
  3781. 8001cce: 687b ldr r3, [r7, #4]
  3782. }
  3783. 8001cd0: 4618 mov r0, r3
  3784. 8001cd2: 3708 adds r7, #8
  3785. 8001cd4: 46bd mov sp, r7
  3786. 8001cd6: bd80 pop {r7, pc}
  3787. 8001cd8: 24000280 .word 0x24000280
  3788. 08001cdc <main>:
  3789. /**
  3790. * @brief The application entry point.
  3791. * @retval int
  3792. */
  3793. int main(void)
  3794. {
  3795. 8001cdc: b580 push {r7, lr}
  3796. 8001cde: b084 sub sp, #16
  3797. 8001ce0: af00 add r7, sp, #0
  3798. /* USER CODE BEGIN 1 */
  3799. /* USER CODE END 1 */
  3800. /* MPU Configuration--------------------------------------------------------*/
  3801. MPU_Config();
  3802. 8001ce2: f000 fc69 bl 80025b8 <MPU_Config>
  3803. \details Turns on I-Cache
  3804. */
  3805. __STATIC_FORCEINLINE void SCB_EnableICache (void)
  3806. {
  3807. #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U)
  3808. if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */
  3809. 8001ce6: 4b5e ldr r3, [pc, #376] @ (8001e60 <main+0x184>)
  3810. 8001ce8: 695b ldr r3, [r3, #20]
  3811. 8001cea: f403 3300 and.w r3, r3, #131072 @ 0x20000
  3812. 8001cee: 2b00 cmp r3, #0
  3813. 8001cf0: d11b bne.n 8001d2a <main+0x4e>
  3814. \details Acts as a special kind of Data Memory Barrier.
  3815. It completes when all explicit memory accesses before this instruction complete.
  3816. */
  3817. __STATIC_FORCEINLINE void __DSB(void)
  3818. {
  3819. __ASM volatile ("dsb 0xF":::"memory");
  3820. 8001cf2: f3bf 8f4f dsb sy
  3821. }
  3822. 8001cf6: bf00 nop
  3823. __ASM volatile ("isb 0xF":::"memory");
  3824. 8001cf8: f3bf 8f6f isb sy
  3825. }
  3826. 8001cfc: bf00 nop
  3827. __DSB();
  3828. __ISB();
  3829. SCB->ICIALLU = 0UL; /* invalidate I-Cache */
  3830. 8001cfe: 4b58 ldr r3, [pc, #352] @ (8001e60 <main+0x184>)
  3831. 8001d00: 2200 movs r2, #0
  3832. 8001d02: f8c3 2250 str.w r2, [r3, #592] @ 0x250
  3833. __ASM volatile ("dsb 0xF":::"memory");
  3834. 8001d06: f3bf 8f4f dsb sy
  3835. }
  3836. 8001d0a: bf00 nop
  3837. __ASM volatile ("isb 0xF":::"memory");
  3838. 8001d0c: f3bf 8f6f isb sy
  3839. }
  3840. 8001d10: bf00 nop
  3841. __DSB();
  3842. __ISB();
  3843. SCB->CCR |= (uint32_t)SCB_CCR_IC_Msk; /* enable I-Cache */
  3844. 8001d12: 4b53 ldr r3, [pc, #332] @ (8001e60 <main+0x184>)
  3845. 8001d14: 695b ldr r3, [r3, #20]
  3846. 8001d16: 4a52 ldr r2, [pc, #328] @ (8001e60 <main+0x184>)
  3847. 8001d18: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  3848. 8001d1c: 6153 str r3, [r2, #20]
  3849. __ASM volatile ("dsb 0xF":::"memory");
  3850. 8001d1e: f3bf 8f4f dsb sy
  3851. }
  3852. 8001d22: bf00 nop
  3853. __ASM volatile ("isb 0xF":::"memory");
  3854. 8001d24: f3bf 8f6f isb sy
  3855. }
  3856. 8001d28: e000 b.n 8001d2c <main+0x50>
  3857. if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */
  3858. 8001d2a: bf00 nop
  3859. #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
  3860. uint32_t ccsidr;
  3861. uint32_t sets;
  3862. uint32_t ways;
  3863. if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */
  3864. 8001d2c: 4b4c ldr r3, [pc, #304] @ (8001e60 <main+0x184>)
  3865. 8001d2e: 695b ldr r3, [r3, #20]
  3866. 8001d30: f403 3380 and.w r3, r3, #65536 @ 0x10000
  3867. 8001d34: 2b00 cmp r3, #0
  3868. 8001d36: d138 bne.n 8001daa <main+0xce>
  3869. SCB->CSSELR = 0U; /* select Level 1 data cache */
  3870. 8001d38: 4b49 ldr r3, [pc, #292] @ (8001e60 <main+0x184>)
  3871. 8001d3a: 2200 movs r2, #0
  3872. 8001d3c: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  3873. __ASM volatile ("dsb 0xF":::"memory");
  3874. 8001d40: f3bf 8f4f dsb sy
  3875. }
  3876. 8001d44: bf00 nop
  3877. __DSB();
  3878. ccsidr = SCB->CCSIDR;
  3879. 8001d46: 4b46 ldr r3, [pc, #280] @ (8001e60 <main+0x184>)
  3880. 8001d48: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  3881. 8001d4c: 60fb str r3, [r7, #12]
  3882. /* invalidate D-Cache */
  3883. sets = (uint32_t)(CCSIDR_SETS(ccsidr));
  3884. 8001d4e: 68fb ldr r3, [r7, #12]
  3885. 8001d50: 0b5b lsrs r3, r3, #13
  3886. 8001d52: f3c3 030e ubfx r3, r3, #0, #15
  3887. 8001d56: 60bb str r3, [r7, #8]
  3888. do {
  3889. ways = (uint32_t)(CCSIDR_WAYS(ccsidr));
  3890. 8001d58: 68fb ldr r3, [r7, #12]
  3891. 8001d5a: 08db lsrs r3, r3, #3
  3892. 8001d5c: f3c3 0309 ubfx r3, r3, #0, #10
  3893. 8001d60: 607b str r3, [r7, #4]
  3894. do {
  3895. SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) |
  3896. 8001d62: 68bb ldr r3, [r7, #8]
  3897. 8001d64: 015a lsls r2, r3, #5
  3898. 8001d66: f643 73e0 movw r3, #16352 @ 0x3fe0
  3899. 8001d6a: 4013 ands r3, r2
  3900. ((ways << SCB_DCISW_WAY_Pos) & SCB_DCISW_WAY_Msk) );
  3901. 8001d6c: 687a ldr r2, [r7, #4]
  3902. 8001d6e: 0792 lsls r2, r2, #30
  3903. SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) |
  3904. 8001d70: 493b ldr r1, [pc, #236] @ (8001e60 <main+0x184>)
  3905. 8001d72: 4313 orrs r3, r2
  3906. 8001d74: f8c1 3260 str.w r3, [r1, #608] @ 0x260
  3907. #if defined ( __CC_ARM )
  3908. __schedule_barrier();
  3909. #endif
  3910. } while (ways-- != 0U);
  3911. 8001d78: 687b ldr r3, [r7, #4]
  3912. 8001d7a: 1e5a subs r2, r3, #1
  3913. 8001d7c: 607a str r2, [r7, #4]
  3914. 8001d7e: 2b00 cmp r3, #0
  3915. 8001d80: d1ef bne.n 8001d62 <main+0x86>
  3916. } while(sets-- != 0U);
  3917. 8001d82: 68bb ldr r3, [r7, #8]
  3918. 8001d84: 1e5a subs r2, r3, #1
  3919. 8001d86: 60ba str r2, [r7, #8]
  3920. 8001d88: 2b00 cmp r3, #0
  3921. 8001d8a: d1e5 bne.n 8001d58 <main+0x7c>
  3922. __ASM volatile ("dsb 0xF":::"memory");
  3923. 8001d8c: f3bf 8f4f dsb sy
  3924. }
  3925. 8001d90: bf00 nop
  3926. __DSB();
  3927. SCB->CCR |= (uint32_t)SCB_CCR_DC_Msk; /* enable D-Cache */
  3928. 8001d92: 4b33 ldr r3, [pc, #204] @ (8001e60 <main+0x184>)
  3929. 8001d94: 695b ldr r3, [r3, #20]
  3930. 8001d96: 4a32 ldr r2, [pc, #200] @ (8001e60 <main+0x184>)
  3931. 8001d98: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  3932. 8001d9c: 6153 str r3, [r2, #20]
  3933. __ASM volatile ("dsb 0xF":::"memory");
  3934. 8001d9e: f3bf 8f4f dsb sy
  3935. }
  3936. 8001da2: bf00 nop
  3937. __ASM volatile ("isb 0xF":::"memory");
  3938. 8001da4: f3bf 8f6f isb sy
  3939. }
  3940. 8001da8: e000 b.n 8001dac <main+0xd0>
  3941. if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */
  3942. 8001daa: bf00 nop
  3943. SCB_EnableDCache();
  3944. /* MCU Configuration--------------------------------------------------------*/
  3945. /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  3946. HAL_Init();
  3947. 8001dac: f003 fc22 bl 80055f4 <HAL_Init>
  3948. /* USER CODE BEGIN Init */
  3949. /* USER CODE END Init */
  3950. /* Configure the system clock */
  3951. SystemClock_Config();
  3952. 8001db0: f000 f87a bl 8001ea8 <SystemClock_Config>
  3953. /* USER CODE BEGIN SysInit */
  3954. /* USER CODE END SysInit */
  3955. /* Initialize all configured peripherals */
  3956. MX_GPIO_Init();
  3957. 8001db4: f000 fae8 bl 8002388 <MX_GPIO_Init>
  3958. MX_DMA_Init();
  3959. 8001db8: f000 fabe bl 8002338 <MX_DMA_Init>
  3960. MX_UART8_Init();
  3961. 8001dbc: f000 f930 bl 8002020 <MX_UART8_Init>
  3962. MX_CRC_Init();
  3963. 8001dc0: f000 f8ee bl 8001fa0 <MX_CRC_Init>
  3964. MX_RNG_Init();
  3965. 8001dc4: f000 f916 bl 8001ff4 <MX_RNG_Init>
  3966. MX_USART1_UART_Init();
  3967. 8001dc8: f000 f976 bl 80020b8 <MX_USART1_UART_Init>
  3968. MX_USART2_UART_Init();
  3969. 8001dcc: f000 f9c4 bl 8002158 <MX_USART2_UART_Init>
  3970. MX_USART3_UART_Init();
  3971. 8001dd0: f000 fa12 bl 80021f8 <MX_USART3_UART_Init>
  3972. MX_USART6_UART_Init();
  3973. 8001dd4: f000 fa60 bl 8002298 <MX_USART6_UART_Init>
  3974. // HAL_DMA_RegisterCallback(&hdma_uart8_rx, HAL_DMA_XFER_CPLT_CB_ID, dmaCallback);
  3975. /* USER CODE END 2 */
  3976. /* Init scheduler */
  3977. osKernelInitialize();
  3978. 8001dd8: f00f f9be bl 8011158 <osKernelInitialize>
  3979. /* USER CODE BEGIN RTOS_MUTEX */
  3980. /* add mutexes, ... */
  3981. resMeasurementsMutex = osMutexNew (NULL);
  3982. 8001ddc: 2000 movs r0, #0
  3983. 8001dde: f00f fbca bl 8011576 <osMutexNew>
  3984. 8001de2: 4603 mov r3, r0
  3985. 8001de4: 4a1f ldr r2, [pc, #124] @ (8001e64 <main+0x188>)
  3986. 8001de6: 6013 str r3, [r2, #0]
  3987. sensorsInfoMutex = osMutexNew (NULL);
  3988. 8001de8: 2000 movs r0, #0
  3989. 8001dea: f00f fbc4 bl 8011576 <osMutexNew>
  3990. 8001dee: 4603 mov r3, r0
  3991. 8001df0: 4a1d ldr r2, [pc, #116] @ (8001e68 <main+0x18c>)
  3992. 8001df2: 6013 str r3, [r2, #0]
  3993. /* add semaphores, ... */
  3994. /* USER CODE END RTOS_SEMAPHORES */
  3995. /* Create the timer(s) */
  3996. /* creation of relay1Timer */
  3997. relay1TimerHandle = osTimerNew(relay1TimerCallback, osTimerOnce, NULL, &relay1Timer_attributes);
  3998. 8001df4: 4b1d ldr r3, [pc, #116] @ (8001e6c <main+0x190>)
  3999. 8001df6: 2200 movs r2, #0
  4000. 8001df8: 2100 movs r1, #0
  4001. 8001dfa: 481d ldr r0, [pc, #116] @ (8001e70 <main+0x194>)
  4002. 8001dfc: f00f fada bl 80113b4 <osTimerNew>
  4003. 8001e00: 4603 mov r3, r0
  4004. 8001e02: 4a1c ldr r2, [pc, #112] @ (8001e74 <main+0x198>)
  4005. 8001e04: 6013 str r3, [r2, #0]
  4006. /* creation of relay2Timer */
  4007. relay2TimerHandle = osTimerNew(relay2TimerCallback, osTimerOnce, NULL, &relay2Timer_attributes);
  4008. 8001e06: 4b1c ldr r3, [pc, #112] @ (8001e78 <main+0x19c>)
  4009. 8001e08: 2200 movs r2, #0
  4010. 8001e0a: 2100 movs r1, #0
  4011. 8001e0c: 481b ldr r0, [pc, #108] @ (8001e7c <main+0x1a0>)
  4012. 8001e0e: f00f fad1 bl 80113b4 <osTimerNew>
  4013. 8001e12: 4603 mov r3, r0
  4014. 8001e14: 4a1a ldr r2, [pc, #104] @ (8001e80 <main+0x1a4>)
  4015. 8001e16: 6013 str r3, [r2, #0]
  4016. /* creation of relay3Timer */
  4017. relay3TimerHandle = osTimerNew(relay3TimerCallback, osTimerOnce, NULL, &relay3Timer_attributes);
  4018. 8001e18: 4b1a ldr r3, [pc, #104] @ (8001e84 <main+0x1a8>)
  4019. 8001e1a: 2200 movs r2, #0
  4020. 8001e1c: 2100 movs r1, #0
  4021. 8001e1e: 481a ldr r0, [pc, #104] @ (8001e88 <main+0x1ac>)
  4022. 8001e20: f00f fac8 bl 80113b4 <osTimerNew>
  4023. 8001e24: 4603 mov r3, r0
  4024. 8001e26: 4a19 ldr r2, [pc, #100] @ (8001e8c <main+0x1b0>)
  4025. 8001e28: 6013 str r3, [r2, #0]
  4026. /* creation of relay4Timer */
  4027. relay4TimerHandle = osTimerNew(relay4TimerCallback, osTimerOnce, NULL, &relay4Timer_attributes);
  4028. 8001e2a: 4b19 ldr r3, [pc, #100] @ (8001e90 <main+0x1b4>)
  4029. 8001e2c: 2200 movs r2, #0
  4030. 8001e2e: 2100 movs r1, #0
  4031. 8001e30: 4818 ldr r0, [pc, #96] @ (8001e94 <main+0x1b8>)
  4032. 8001e32: f00f fabf bl 80113b4 <osTimerNew>
  4033. 8001e36: 4603 mov r3, r0
  4034. 8001e38: 4a17 ldr r2, [pc, #92] @ (8001e98 <main+0x1bc>)
  4035. 8001e3a: 6013 str r3, [r2, #0]
  4036. /* add queues, ... */
  4037. /* USER CODE END RTOS_QUEUES */
  4038. /* Create the thread(s) */
  4039. /* creation of defaultTask */
  4040. defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes);
  4041. 8001e3c: 4a17 ldr r2, [pc, #92] @ (8001e9c <main+0x1c0>)
  4042. 8001e3e: 2100 movs r1, #0
  4043. 8001e40: 4817 ldr r0, [pc, #92] @ (8001ea0 <main+0x1c4>)
  4044. 8001e42: f00f f9e8 bl 8011216 <osThreadNew>
  4045. 8001e46: 4603 mov r3, r0
  4046. 8001e48: 4a16 ldr r2, [pc, #88] @ (8001ea4 <main+0x1c8>)
  4047. 8001e4a: 6013 str r3, [r2, #0]
  4048. /* USER CODE BEGIN RTOS_THREADS */
  4049. /* add threads, ... */
  4050. mqtt_cli_init();
  4051. 8001e4c: f001 fb3c bl 80034c8 <mqtt_cli_init>
  4052. // Uart8TasksInit();
  4053. UartTasksInit();
  4054. 8001e50: f002 fa62 bl 8004318 <UartTasksInit>
  4055. #ifdef USER_MOCKS
  4056. MockMeasurmetsTaskInit();
  4057. #else
  4058. MeasurmentsReqSchedulerTaskInit();
  4059. 8001e54: f003 fa14 bl 8005280 <MeasurmentsReqSchedulerTaskInit>
  4060. /* USER CODE BEGIN RTOS_EVENTS */
  4061. /* add events, ... */
  4062. /* USER CODE END RTOS_EVENTS */
  4063. /* Start scheduler */
  4064. osKernelStart();
  4065. 8001e58: f00f f9a2 bl 80111a0 <osKernelStart>
  4066. /* We should never get here as control is now taken by the scheduler */
  4067. /* Infinite loop */
  4068. /* USER CODE BEGIN WHILE */
  4069. while (1)
  4070. 8001e5c: bf00 nop
  4071. 8001e5e: e7fd b.n 8001e5c <main+0x180>
  4072. 8001e60: e000ed00 .word 0xe000ed00
  4073. 8001e64: 24002248 .word 0x24002248
  4074. 8001e68: 2400224c .word 0x2400224c
  4075. 8001e6c: 08031898 .word 0x08031898
  4076. 8001e70: 08002539 .word 0x08002539
  4077. 8001e74: 24000658 .word 0x24000658
  4078. 8001e78: 080318a8 .word 0x080318a8
  4079. 8001e7c: 08002559 .word 0x08002559
  4080. 8001e80: 24000688 .word 0x24000688
  4081. 8001e84: 080318b8 .word 0x080318b8
  4082. 8001e88: 08002579 .word 0x08002579
  4083. 8001e8c: 240006b8 .word 0x240006b8
  4084. 8001e90: 080318c8 .word 0x080318c8
  4085. 8001e94: 08002599 .word 0x08002599
  4086. 8001e98: 240006e8 .word 0x240006e8
  4087. 8001e9c: 08031874 .word 0x08031874
  4088. 8001ea0: 08002521 .word 0x08002521
  4089. 8001ea4: 24000654 .word 0x24000654
  4090. 08001ea8 <SystemClock_Config>:
  4091. /**
  4092. * @brief System Clock Configuration
  4093. * @retval None
  4094. */
  4095. void SystemClock_Config(void)
  4096. {
  4097. 8001ea8: b580 push {r7, lr}
  4098. 8001eaa: b09c sub sp, #112 @ 0x70
  4099. 8001eac: af00 add r7, sp, #0
  4100. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  4101. 8001eae: f107 0324 add.w r3, r7, #36 @ 0x24
  4102. 8001eb2: 224c movs r2, #76 @ 0x4c
  4103. 8001eb4: 2100 movs r1, #0
  4104. 8001eb6: 4618 mov r0, r3
  4105. 8001eb8: f028 fde2 bl 802aa80 <memset>
  4106. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  4107. 8001ebc: 1d3b adds r3, r7, #4
  4108. 8001ebe: 2220 movs r2, #32
  4109. 8001ec0: 2100 movs r1, #0
  4110. 8001ec2: 4618 mov r0, r3
  4111. 8001ec4: f028 fddc bl 802aa80 <memset>
  4112. /** Supply configuration update enable
  4113. */
  4114. HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
  4115. 8001ec8: 2002 movs r0, #2
  4116. 8001eca: f008 f97f bl 800a1cc <HAL_PWREx_ConfigSupply>
  4117. /** Configure the main internal regulator output voltage
  4118. */
  4119. __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
  4120. 8001ece: 2300 movs r3, #0
  4121. 8001ed0: 603b str r3, [r7, #0]
  4122. 8001ed2: 4b31 ldr r3, [pc, #196] @ (8001f98 <SystemClock_Config+0xf0>)
  4123. 8001ed4: 6adb ldr r3, [r3, #44] @ 0x2c
  4124. 8001ed6: 4a30 ldr r2, [pc, #192] @ (8001f98 <SystemClock_Config+0xf0>)
  4125. 8001ed8: f023 0301 bic.w r3, r3, #1
  4126. 8001edc: 62d3 str r3, [r2, #44] @ 0x2c
  4127. 8001ede: 4b2e ldr r3, [pc, #184] @ (8001f98 <SystemClock_Config+0xf0>)
  4128. 8001ee0: 6adb ldr r3, [r3, #44] @ 0x2c
  4129. 8001ee2: f003 0301 and.w r3, r3, #1
  4130. 8001ee6: 603b str r3, [r7, #0]
  4131. 8001ee8: 4b2c ldr r3, [pc, #176] @ (8001f9c <SystemClock_Config+0xf4>)
  4132. 8001eea: 699b ldr r3, [r3, #24]
  4133. 8001eec: 4a2b ldr r2, [pc, #172] @ (8001f9c <SystemClock_Config+0xf4>)
  4134. 8001eee: f443 4340 orr.w r3, r3, #49152 @ 0xc000
  4135. 8001ef2: 6193 str r3, [r2, #24]
  4136. 8001ef4: 4b29 ldr r3, [pc, #164] @ (8001f9c <SystemClock_Config+0xf4>)
  4137. 8001ef6: 699b ldr r3, [r3, #24]
  4138. 8001ef8: f403 4340 and.w r3, r3, #49152 @ 0xc000
  4139. 8001efc: 603b str r3, [r7, #0]
  4140. 8001efe: 683b ldr r3, [r7, #0]
  4141. while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {}
  4142. 8001f00: bf00 nop
  4143. 8001f02: 4b26 ldr r3, [pc, #152] @ (8001f9c <SystemClock_Config+0xf4>)
  4144. 8001f04: 699b ldr r3, [r3, #24]
  4145. 8001f06: f403 5300 and.w r3, r3, #8192 @ 0x2000
  4146. 8001f0a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  4147. 8001f0e: d1f8 bne.n 8001f02 <SystemClock_Config+0x5a>
  4148. /** Initializes the RCC Oscillators according to the specified parameters
  4149. * in the RCC_OscInitTypeDef structure.
  4150. */
  4151. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48|RCC_OSCILLATORTYPE_HSE;
  4152. 8001f10: 2321 movs r3, #33 @ 0x21
  4153. 8001f12: 627b str r3, [r7, #36] @ 0x24
  4154. RCC_OscInitStruct.HSEState = RCC_HSE_ON;
  4155. 8001f14: f44f 3380 mov.w r3, #65536 @ 0x10000
  4156. 8001f18: 62bb str r3, [r7, #40] @ 0x28
  4157. RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
  4158. 8001f1a: 2301 movs r3, #1
  4159. 8001f1c: 63fb str r3, [r7, #60] @ 0x3c
  4160. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  4161. 8001f1e: 2302 movs r3, #2
  4162. 8001f20: 64bb str r3, [r7, #72] @ 0x48
  4163. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
  4164. 8001f22: 2302 movs r3, #2
  4165. 8001f24: 64fb str r3, [r7, #76] @ 0x4c
  4166. RCC_OscInitStruct.PLL.PLLM = 5;
  4167. 8001f26: 2305 movs r3, #5
  4168. 8001f28: 653b str r3, [r7, #80] @ 0x50
  4169. RCC_OscInitStruct.PLL.PLLN = 160;
  4170. 8001f2a: 23a0 movs r3, #160 @ 0xa0
  4171. 8001f2c: 657b str r3, [r7, #84] @ 0x54
  4172. RCC_OscInitStruct.PLL.PLLP = 2;
  4173. 8001f2e: 2302 movs r3, #2
  4174. 8001f30: 65bb str r3, [r7, #88] @ 0x58
  4175. RCC_OscInitStruct.PLL.PLLQ = 2;
  4176. 8001f32: 2302 movs r3, #2
  4177. 8001f34: 65fb str r3, [r7, #92] @ 0x5c
  4178. RCC_OscInitStruct.PLL.PLLR = 2;
  4179. 8001f36: 2302 movs r3, #2
  4180. 8001f38: 663b str r3, [r7, #96] @ 0x60
  4181. RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_2;
  4182. 8001f3a: 2308 movs r3, #8
  4183. 8001f3c: 667b str r3, [r7, #100] @ 0x64
  4184. RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE;
  4185. 8001f3e: 2300 movs r3, #0
  4186. 8001f40: 66bb str r3, [r7, #104] @ 0x68
  4187. RCC_OscInitStruct.PLL.PLLFRACN = 0;
  4188. 8001f42: 2300 movs r3, #0
  4189. 8001f44: 66fb str r3, [r7, #108] @ 0x6c
  4190. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  4191. 8001f46: f107 0324 add.w r3, r7, #36 @ 0x24
  4192. 8001f4a: 4618 mov r0, r3
  4193. 8001f4c: f008 f9fe bl 800a34c <HAL_RCC_OscConfig>
  4194. 8001f50: 4603 mov r3, r0
  4195. 8001f52: 2b00 cmp r3, #0
  4196. 8001f54: d001 beq.n 8001f5a <SystemClock_Config+0xb2>
  4197. {
  4198. Error_Handler();
  4199. 8001f56: f000 fb9f bl 8002698 <Error_Handler>
  4200. }
  4201. /** Initializes the CPU, AHB and APB buses clocks
  4202. */
  4203. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  4204. 8001f5a: 233f movs r3, #63 @ 0x3f
  4205. 8001f5c: 607b str r3, [r7, #4]
  4206. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2
  4207. |RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1;
  4208. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  4209. 8001f5e: 2303 movs r3, #3
  4210. 8001f60: 60bb str r3, [r7, #8]
  4211. RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1;
  4212. 8001f62: 2300 movs r3, #0
  4213. 8001f64: 60fb str r3, [r7, #12]
  4214. RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV2;
  4215. 8001f66: 2308 movs r3, #8
  4216. 8001f68: 613b str r3, [r7, #16]
  4217. RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2;
  4218. 8001f6a: 2340 movs r3, #64 @ 0x40
  4219. 8001f6c: 617b str r3, [r7, #20]
  4220. RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2;
  4221. 8001f6e: 2340 movs r3, #64 @ 0x40
  4222. 8001f70: 61bb str r3, [r7, #24]
  4223. RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2;
  4224. 8001f72: f44f 6380 mov.w r3, #1024 @ 0x400
  4225. 8001f76: 61fb str r3, [r7, #28]
  4226. RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2;
  4227. 8001f78: 2340 movs r3, #64 @ 0x40
  4228. 8001f7a: 623b str r3, [r7, #32]
  4229. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
  4230. 8001f7c: 1d3b adds r3, r7, #4
  4231. 8001f7e: 2102 movs r1, #2
  4232. 8001f80: 4618 mov r0, r3
  4233. 8001f82: f008 fe3d bl 800ac00 <HAL_RCC_ClockConfig>
  4234. 8001f86: 4603 mov r3, r0
  4235. 8001f88: 2b00 cmp r3, #0
  4236. 8001f8a: d001 beq.n 8001f90 <SystemClock_Config+0xe8>
  4237. {
  4238. Error_Handler();
  4239. 8001f8c: f000 fb84 bl 8002698 <Error_Handler>
  4240. }
  4241. }
  4242. 8001f90: bf00 nop
  4243. 8001f92: 3770 adds r7, #112 @ 0x70
  4244. 8001f94: 46bd mov sp, r7
  4245. 8001f96: bd80 pop {r7, pc}
  4246. 8001f98: 58000400 .word 0x58000400
  4247. 8001f9c: 58024800 .word 0x58024800
  4248. 08001fa0 <MX_CRC_Init>:
  4249. * @brief CRC Initialization Function
  4250. * @param None
  4251. * @retval None
  4252. */
  4253. static void MX_CRC_Init(void)
  4254. {
  4255. 8001fa0: b580 push {r7, lr}
  4256. 8001fa2: af00 add r7, sp, #0
  4257. /* USER CODE END CRC_Init 0 */
  4258. /* USER CODE BEGIN CRC_Init 1 */
  4259. /* USER CODE END CRC_Init 1 */
  4260. hcrc.Instance = CRC;
  4261. 8001fa4: 4b11 ldr r3, [pc, #68] @ (8001fec <MX_CRC_Init+0x4c>)
  4262. 8001fa6: 4a12 ldr r2, [pc, #72] @ (8001ff0 <MX_CRC_Init+0x50>)
  4263. 8001fa8: 601a str r2, [r3, #0]
  4264. hcrc.Init.DefaultPolynomialUse = DEFAULT_POLYNOMIAL_DISABLE;
  4265. 8001faa: 4b10 ldr r3, [pc, #64] @ (8001fec <MX_CRC_Init+0x4c>)
  4266. 8001fac: 2201 movs r2, #1
  4267. 8001fae: 711a strb r2, [r3, #4]
  4268. hcrc.Init.DefaultInitValueUse = DEFAULT_INIT_VALUE_ENABLE;
  4269. 8001fb0: 4b0e ldr r3, [pc, #56] @ (8001fec <MX_CRC_Init+0x4c>)
  4270. 8001fb2: 2200 movs r2, #0
  4271. 8001fb4: 715a strb r2, [r3, #5]
  4272. hcrc.Init.GeneratingPolynomial = 4129;
  4273. 8001fb6: 4b0d ldr r3, [pc, #52] @ (8001fec <MX_CRC_Init+0x4c>)
  4274. 8001fb8: f241 0221 movw r2, #4129 @ 0x1021
  4275. 8001fbc: 609a str r2, [r3, #8]
  4276. hcrc.Init.CRCLength = CRC_POLYLENGTH_16B;
  4277. 8001fbe: 4b0b ldr r3, [pc, #44] @ (8001fec <MX_CRC_Init+0x4c>)
  4278. 8001fc0: 2208 movs r2, #8
  4279. 8001fc2: 60da str r2, [r3, #12]
  4280. hcrc.Init.InputDataInversionMode = CRC_INPUTDATA_INVERSION_NONE;
  4281. 8001fc4: 4b09 ldr r3, [pc, #36] @ (8001fec <MX_CRC_Init+0x4c>)
  4282. 8001fc6: 2200 movs r2, #0
  4283. 8001fc8: 615a str r2, [r3, #20]
  4284. hcrc.Init.OutputDataInversionMode = CRC_OUTPUTDATA_INVERSION_DISABLE;
  4285. 8001fca: 4b08 ldr r3, [pc, #32] @ (8001fec <MX_CRC_Init+0x4c>)
  4286. 8001fcc: 2200 movs r2, #0
  4287. 8001fce: 619a str r2, [r3, #24]
  4288. hcrc.InputDataFormat = CRC_INPUTDATA_FORMAT_BYTES;
  4289. 8001fd0: 4b06 ldr r3, [pc, #24] @ (8001fec <MX_CRC_Init+0x4c>)
  4290. 8001fd2: 2201 movs r2, #1
  4291. 8001fd4: 621a str r2, [r3, #32]
  4292. if (HAL_CRC_Init(&hcrc) != HAL_OK)
  4293. 8001fd6: 4805 ldr r0, [pc, #20] @ (8001fec <MX_CRC_Init+0x4c>)
  4294. 8001fd8: f003 fd04 bl 80059e4 <HAL_CRC_Init>
  4295. 8001fdc: 4603 mov r3, r0
  4296. 8001fde: 2b00 cmp r3, #0
  4297. 8001fe0: d001 beq.n 8001fe6 <MX_CRC_Init+0x46>
  4298. {
  4299. Error_Handler();
  4300. 8001fe2: f000 fb59 bl 8002698 <Error_Handler>
  4301. }
  4302. /* USER CODE BEGIN CRC_Init 2 */
  4303. /* USER CODE END CRC_Init 2 */
  4304. }
  4305. 8001fe6: bf00 nop
  4306. 8001fe8: bd80 pop {r7, pc}
  4307. 8001fea: bf00 nop
  4308. 8001fec: 24000248 .word 0x24000248
  4309. 8001ff0: 58024c00 .word 0x58024c00
  4310. 08001ff4 <MX_RNG_Init>:
  4311. * @brief RNG Initialization Function
  4312. * @param None
  4313. * @retval None
  4314. */
  4315. static void MX_RNG_Init(void)
  4316. {
  4317. 8001ff4: b580 push {r7, lr}
  4318. 8001ff6: af00 add r7, sp, #0
  4319. /* USER CODE END RNG_Init 0 */
  4320. /* USER CODE BEGIN RNG_Init 1 */
  4321. /* USER CODE END RNG_Init 1 */
  4322. hrng.Instance = RNG;
  4323. 8001ff8: 4b07 ldr r3, [pc, #28] @ (8002018 <MX_RNG_Init+0x24>)
  4324. 8001ffa: 4a08 ldr r2, [pc, #32] @ (800201c <MX_RNG_Init+0x28>)
  4325. 8001ffc: 601a str r2, [r3, #0]
  4326. hrng.Init.ClockErrorDetection = RNG_CED_ENABLE;
  4327. 8001ffe: 4b06 ldr r3, [pc, #24] @ (8002018 <MX_RNG_Init+0x24>)
  4328. 8002000: 2200 movs r2, #0
  4329. 8002002: 605a str r2, [r3, #4]
  4330. if (HAL_RNG_Init(&hrng) != HAL_OK)
  4331. 8002004: 4804 ldr r0, [pc, #16] @ (8002018 <MX_RNG_Init+0x24>)
  4332. 8002006: f00a ffd9 bl 800cfbc <HAL_RNG_Init>
  4333. 800200a: 4603 mov r3, r0
  4334. 800200c: 2b00 cmp r3, #0
  4335. 800200e: d001 beq.n 8002014 <MX_RNG_Init+0x20>
  4336. {
  4337. Error_Handler();
  4338. 8002010: f000 fb42 bl 8002698 <Error_Handler>
  4339. }
  4340. /* USER CODE BEGIN RNG_Init 2 */
  4341. /* USER CODE END RNG_Init 2 */
  4342. }
  4343. 8002014: bf00 nop
  4344. 8002016: bd80 pop {r7, pc}
  4345. 8002018: 2400026c .word 0x2400026c
  4346. 800201c: 48021800 .word 0x48021800
  4347. 08002020 <MX_UART8_Init>:
  4348. * @brief UART8 Initialization Function
  4349. * @param None
  4350. * @retval None
  4351. */
  4352. static void MX_UART8_Init(void)
  4353. {
  4354. 8002020: b580 push {r7, lr}
  4355. 8002022: af00 add r7, sp, #0
  4356. /* USER CODE END UART8_Init 0 */
  4357. /* USER CODE BEGIN UART8_Init 1 */
  4358. /* USER CODE END UART8_Init 1 */
  4359. huart8.Instance = UART8;
  4360. 8002024: 4b22 ldr r3, [pc, #136] @ (80020b0 <MX_UART8_Init+0x90>)
  4361. 8002026: 4a23 ldr r2, [pc, #140] @ (80020b4 <MX_UART8_Init+0x94>)
  4362. 8002028: 601a str r2, [r3, #0]
  4363. huart8.Init.BaudRate = 115200;
  4364. 800202a: 4b21 ldr r3, [pc, #132] @ (80020b0 <MX_UART8_Init+0x90>)
  4365. 800202c: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4366. 8002030: 605a str r2, [r3, #4]
  4367. huart8.Init.WordLength = UART_WORDLENGTH_8B;
  4368. 8002032: 4b1f ldr r3, [pc, #124] @ (80020b0 <MX_UART8_Init+0x90>)
  4369. 8002034: 2200 movs r2, #0
  4370. 8002036: 609a str r2, [r3, #8]
  4371. huart8.Init.StopBits = UART_STOPBITS_1;
  4372. 8002038: 4b1d ldr r3, [pc, #116] @ (80020b0 <MX_UART8_Init+0x90>)
  4373. 800203a: 2200 movs r2, #0
  4374. 800203c: 60da str r2, [r3, #12]
  4375. huart8.Init.Parity = UART_PARITY_NONE;
  4376. 800203e: 4b1c ldr r3, [pc, #112] @ (80020b0 <MX_UART8_Init+0x90>)
  4377. 8002040: 2200 movs r2, #0
  4378. 8002042: 611a str r2, [r3, #16]
  4379. huart8.Init.Mode = UART_MODE_TX_RX;
  4380. 8002044: 4b1a ldr r3, [pc, #104] @ (80020b0 <MX_UART8_Init+0x90>)
  4381. 8002046: 220c movs r2, #12
  4382. 8002048: 615a str r2, [r3, #20]
  4383. huart8.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4384. 800204a: 4b19 ldr r3, [pc, #100] @ (80020b0 <MX_UART8_Init+0x90>)
  4385. 800204c: 2200 movs r2, #0
  4386. 800204e: 619a str r2, [r3, #24]
  4387. huart8.Init.OverSampling = UART_OVERSAMPLING_16;
  4388. 8002050: 4b17 ldr r3, [pc, #92] @ (80020b0 <MX_UART8_Init+0x90>)
  4389. 8002052: 2200 movs r2, #0
  4390. 8002054: 61da str r2, [r3, #28]
  4391. huart8.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4392. 8002056: 4b16 ldr r3, [pc, #88] @ (80020b0 <MX_UART8_Init+0x90>)
  4393. 8002058: 2200 movs r2, #0
  4394. 800205a: 621a str r2, [r3, #32]
  4395. huart8.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4396. 800205c: 4b14 ldr r3, [pc, #80] @ (80020b0 <MX_UART8_Init+0x90>)
  4397. 800205e: 2200 movs r2, #0
  4398. 8002060: 625a str r2, [r3, #36] @ 0x24
  4399. huart8.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
  4400. 8002062: 4b13 ldr r3, [pc, #76] @ (80020b0 <MX_UART8_Init+0x90>)
  4401. 8002064: 2200 movs r2, #0
  4402. 8002066: 629a str r2, [r3, #40] @ 0x28
  4403. if (HAL_UART_Init(&huart8) != HAL_OK)
  4404. 8002068: 4811 ldr r0, [pc, #68] @ (80020b0 <MX_UART8_Init+0x90>)
  4405. 800206a: f00b fb2d bl 800d6c8 <HAL_UART_Init>
  4406. 800206e: 4603 mov r3, r0
  4407. 8002070: 2b00 cmp r3, #0
  4408. 8002072: d001 beq.n 8002078 <MX_UART8_Init+0x58>
  4409. {
  4410. Error_Handler();
  4411. 8002074: f000 fb10 bl 8002698 <Error_Handler>
  4412. }
  4413. if (HAL_UARTEx_SetTxFifoThreshold(&huart8, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4414. 8002078: 2100 movs r1, #0
  4415. 800207a: 480d ldr r0, [pc, #52] @ (80020b0 <MX_UART8_Init+0x90>)
  4416. 800207c: f00e f85b bl 8010136 <HAL_UARTEx_SetTxFifoThreshold>
  4417. 8002080: 4603 mov r3, r0
  4418. 8002082: 2b00 cmp r3, #0
  4419. 8002084: d001 beq.n 800208a <MX_UART8_Init+0x6a>
  4420. {
  4421. Error_Handler();
  4422. 8002086: f000 fb07 bl 8002698 <Error_Handler>
  4423. }
  4424. if (HAL_UARTEx_SetRxFifoThreshold(&huart8, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4425. 800208a: 2100 movs r1, #0
  4426. 800208c: 4808 ldr r0, [pc, #32] @ (80020b0 <MX_UART8_Init+0x90>)
  4427. 800208e: f00e f890 bl 80101b2 <HAL_UARTEx_SetRxFifoThreshold>
  4428. 8002092: 4603 mov r3, r0
  4429. 8002094: 2b00 cmp r3, #0
  4430. 8002096: d001 beq.n 800209c <MX_UART8_Init+0x7c>
  4431. {
  4432. Error_Handler();
  4433. 8002098: f000 fafe bl 8002698 <Error_Handler>
  4434. }
  4435. if (HAL_UARTEx_DisableFifoMode(&huart8) != HAL_OK)
  4436. 800209c: 4804 ldr r0, [pc, #16] @ (80020b0 <MX_UART8_Init+0x90>)
  4437. 800209e: f00e f811 bl 80100c4 <HAL_UARTEx_DisableFifoMode>
  4438. 80020a2: 4603 mov r3, r0
  4439. 80020a4: 2b00 cmp r3, #0
  4440. 80020a6: d001 beq.n 80020ac <MX_UART8_Init+0x8c>
  4441. {
  4442. Error_Handler();
  4443. 80020a8: f000 faf6 bl 8002698 <Error_Handler>
  4444. }
  4445. /* USER CODE BEGIN UART8_Init 2 */
  4446. /* USER CODE END UART8_Init 2 */
  4447. }
  4448. 80020ac: bf00 nop
  4449. 80020ae: bd80 pop {r7, pc}
  4450. 80020b0: 24000280 .word 0x24000280
  4451. 80020b4: 40007c00 .word 0x40007c00
  4452. 080020b8 <MX_USART1_UART_Init>:
  4453. * @brief USART1 Initialization Function
  4454. * @param None
  4455. * @retval None
  4456. */
  4457. static void MX_USART1_UART_Init(void)
  4458. {
  4459. 80020b8: b580 push {r7, lr}
  4460. 80020ba: af00 add r7, sp, #0
  4461. /* USER CODE END USART1_Init 0 */
  4462. /* USER CODE BEGIN USART1_Init 1 */
  4463. /* USER CODE END USART1_Init 1 */
  4464. huart1.Instance = USART1;
  4465. 80020bc: 4b24 ldr r3, [pc, #144] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4466. 80020be: 4a25 ldr r2, [pc, #148] @ (8002154 <MX_USART1_UART_Init+0x9c>)
  4467. 80020c0: 601a str r2, [r3, #0]
  4468. huart1.Init.BaudRate = 115200;
  4469. 80020c2: 4b23 ldr r3, [pc, #140] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4470. 80020c4: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4471. 80020c8: 605a str r2, [r3, #4]
  4472. huart1.Init.WordLength = UART_WORDLENGTH_8B;
  4473. 80020ca: 4b21 ldr r3, [pc, #132] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4474. 80020cc: 2200 movs r2, #0
  4475. 80020ce: 609a str r2, [r3, #8]
  4476. huart1.Init.StopBits = UART_STOPBITS_1;
  4477. 80020d0: 4b1f ldr r3, [pc, #124] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4478. 80020d2: 2200 movs r2, #0
  4479. 80020d4: 60da str r2, [r3, #12]
  4480. huart1.Init.Parity = UART_PARITY_NONE;
  4481. 80020d6: 4b1e ldr r3, [pc, #120] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4482. 80020d8: 2200 movs r2, #0
  4483. 80020da: 611a str r2, [r3, #16]
  4484. huart1.Init.Mode = UART_MODE_TX_RX;
  4485. 80020dc: 4b1c ldr r3, [pc, #112] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4486. 80020de: 220c movs r2, #12
  4487. 80020e0: 615a str r2, [r3, #20]
  4488. huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4489. 80020e2: 4b1b ldr r3, [pc, #108] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4490. 80020e4: 2200 movs r2, #0
  4491. 80020e6: 619a str r2, [r3, #24]
  4492. huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  4493. 80020e8: 4b19 ldr r3, [pc, #100] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4494. 80020ea: 2200 movs r2, #0
  4495. 80020ec: 61da str r2, [r3, #28]
  4496. huart1.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4497. 80020ee: 4b18 ldr r3, [pc, #96] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4498. 80020f0: 2200 movs r2, #0
  4499. 80020f2: 621a str r2, [r3, #32]
  4500. huart1.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4501. 80020f4: 4b16 ldr r3, [pc, #88] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4502. 80020f6: 2200 movs r2, #0
  4503. 80020f8: 625a str r2, [r3, #36] @ 0x24
  4504. huart1.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_TXINVERT_INIT;
  4505. 80020fa: 4b15 ldr r3, [pc, #84] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4506. 80020fc: 2201 movs r2, #1
  4507. 80020fe: 629a str r2, [r3, #40] @ 0x28
  4508. huart1.AdvancedInit.TxPinLevelInvert = UART_ADVFEATURE_TXINV_ENABLE;
  4509. 8002100: 4b13 ldr r3, [pc, #76] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4510. 8002102: f44f 3200 mov.w r2, #131072 @ 0x20000
  4511. 8002106: 62da str r2, [r3, #44] @ 0x2c
  4512. if (HAL_UART_Init(&huart1) != HAL_OK)
  4513. 8002108: 4811 ldr r0, [pc, #68] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4514. 800210a: f00b fadd bl 800d6c8 <HAL_UART_Init>
  4515. 800210e: 4603 mov r3, r0
  4516. 8002110: 2b00 cmp r3, #0
  4517. 8002112: d001 beq.n 8002118 <MX_USART1_UART_Init+0x60>
  4518. {
  4519. Error_Handler();
  4520. 8002114: f000 fac0 bl 8002698 <Error_Handler>
  4521. }
  4522. if (HAL_UARTEx_SetTxFifoThreshold(&huart1, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4523. 8002118: 2100 movs r1, #0
  4524. 800211a: 480d ldr r0, [pc, #52] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4525. 800211c: f00e f80b bl 8010136 <HAL_UARTEx_SetTxFifoThreshold>
  4526. 8002120: 4603 mov r3, r0
  4527. 8002122: 2b00 cmp r3, #0
  4528. 8002124: d001 beq.n 800212a <MX_USART1_UART_Init+0x72>
  4529. {
  4530. Error_Handler();
  4531. 8002126: f000 fab7 bl 8002698 <Error_Handler>
  4532. }
  4533. if (HAL_UARTEx_SetRxFifoThreshold(&huart1, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4534. 800212a: 2100 movs r1, #0
  4535. 800212c: 4808 ldr r0, [pc, #32] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4536. 800212e: f00e f840 bl 80101b2 <HAL_UARTEx_SetRxFifoThreshold>
  4537. 8002132: 4603 mov r3, r0
  4538. 8002134: 2b00 cmp r3, #0
  4539. 8002136: d001 beq.n 800213c <MX_USART1_UART_Init+0x84>
  4540. {
  4541. Error_Handler();
  4542. 8002138: f000 faae bl 8002698 <Error_Handler>
  4543. }
  4544. if (HAL_UARTEx_DisableFifoMode(&huart1) != HAL_OK)
  4545. 800213c: 4804 ldr r0, [pc, #16] @ (8002150 <MX_USART1_UART_Init+0x98>)
  4546. 800213e: f00d ffc1 bl 80100c4 <HAL_UARTEx_DisableFifoMode>
  4547. 8002142: 4603 mov r3, r0
  4548. 8002144: 2b00 cmp r3, #0
  4549. 8002146: d001 beq.n 800214c <MX_USART1_UART_Init+0x94>
  4550. {
  4551. Error_Handler();
  4552. 8002148: f000 faa6 bl 8002698 <Error_Handler>
  4553. }
  4554. /* USER CODE BEGIN USART1_Init 2 */
  4555. /* USER CODE END USART1_Init 2 */
  4556. }
  4557. 800214c: bf00 nop
  4558. 800214e: bd80 pop {r7, pc}
  4559. 8002150: 24000314 .word 0x24000314
  4560. 8002154: 40011000 .word 0x40011000
  4561. 08002158 <MX_USART2_UART_Init>:
  4562. * @brief USART2 Initialization Function
  4563. * @param None
  4564. * @retval None
  4565. */
  4566. static void MX_USART2_UART_Init(void)
  4567. {
  4568. 8002158: b580 push {r7, lr}
  4569. 800215a: af00 add r7, sp, #0
  4570. /* USER CODE END USART2_Init 0 */
  4571. /* USER CODE BEGIN USART2_Init 1 */
  4572. /* USER CODE END USART2_Init 1 */
  4573. huart2.Instance = USART2;
  4574. 800215c: 4b24 ldr r3, [pc, #144] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4575. 800215e: 4a25 ldr r2, [pc, #148] @ (80021f4 <MX_USART2_UART_Init+0x9c>)
  4576. 8002160: 601a str r2, [r3, #0]
  4577. huart2.Init.BaudRate = 115200;
  4578. 8002162: 4b23 ldr r3, [pc, #140] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4579. 8002164: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4580. 8002168: 605a str r2, [r3, #4]
  4581. huart2.Init.WordLength = UART_WORDLENGTH_8B;
  4582. 800216a: 4b21 ldr r3, [pc, #132] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4583. 800216c: 2200 movs r2, #0
  4584. 800216e: 609a str r2, [r3, #8]
  4585. huart2.Init.StopBits = UART_STOPBITS_1;
  4586. 8002170: 4b1f ldr r3, [pc, #124] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4587. 8002172: 2200 movs r2, #0
  4588. 8002174: 60da str r2, [r3, #12]
  4589. huart2.Init.Parity = UART_PARITY_NONE;
  4590. 8002176: 4b1e ldr r3, [pc, #120] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4591. 8002178: 2200 movs r2, #0
  4592. 800217a: 611a str r2, [r3, #16]
  4593. huart2.Init.Mode = UART_MODE_TX_RX;
  4594. 800217c: 4b1c ldr r3, [pc, #112] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4595. 800217e: 220c movs r2, #12
  4596. 8002180: 615a str r2, [r3, #20]
  4597. huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4598. 8002182: 4b1b ldr r3, [pc, #108] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4599. 8002184: 2200 movs r2, #0
  4600. 8002186: 619a str r2, [r3, #24]
  4601. huart2.Init.OverSampling = UART_OVERSAMPLING_16;
  4602. 8002188: 4b19 ldr r3, [pc, #100] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4603. 800218a: 2200 movs r2, #0
  4604. 800218c: 61da str r2, [r3, #28]
  4605. huart2.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4606. 800218e: 4b18 ldr r3, [pc, #96] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4607. 8002190: 2200 movs r2, #0
  4608. 8002192: 621a str r2, [r3, #32]
  4609. huart2.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4610. 8002194: 4b16 ldr r3, [pc, #88] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4611. 8002196: 2200 movs r2, #0
  4612. 8002198: 625a str r2, [r3, #36] @ 0x24
  4613. huart2.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_TXINVERT_INIT;
  4614. 800219a: 4b15 ldr r3, [pc, #84] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4615. 800219c: 2201 movs r2, #1
  4616. 800219e: 629a str r2, [r3, #40] @ 0x28
  4617. huart2.AdvancedInit.TxPinLevelInvert = UART_ADVFEATURE_TXINV_ENABLE;
  4618. 80021a0: 4b13 ldr r3, [pc, #76] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4619. 80021a2: f44f 3200 mov.w r2, #131072 @ 0x20000
  4620. 80021a6: 62da str r2, [r3, #44] @ 0x2c
  4621. if (HAL_UART_Init(&huart2) != HAL_OK)
  4622. 80021a8: 4811 ldr r0, [pc, #68] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4623. 80021aa: f00b fa8d bl 800d6c8 <HAL_UART_Init>
  4624. 80021ae: 4603 mov r3, r0
  4625. 80021b0: 2b00 cmp r3, #0
  4626. 80021b2: d001 beq.n 80021b8 <MX_USART2_UART_Init+0x60>
  4627. {
  4628. Error_Handler();
  4629. 80021b4: f000 fa70 bl 8002698 <Error_Handler>
  4630. }
  4631. if (HAL_UARTEx_SetTxFifoThreshold(&huart2, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4632. 80021b8: 2100 movs r1, #0
  4633. 80021ba: 480d ldr r0, [pc, #52] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4634. 80021bc: f00d ffbb bl 8010136 <HAL_UARTEx_SetTxFifoThreshold>
  4635. 80021c0: 4603 mov r3, r0
  4636. 80021c2: 2b00 cmp r3, #0
  4637. 80021c4: d001 beq.n 80021ca <MX_USART2_UART_Init+0x72>
  4638. {
  4639. Error_Handler();
  4640. 80021c6: f000 fa67 bl 8002698 <Error_Handler>
  4641. }
  4642. if (HAL_UARTEx_SetRxFifoThreshold(&huart2, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4643. 80021ca: 2100 movs r1, #0
  4644. 80021cc: 4808 ldr r0, [pc, #32] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4645. 80021ce: f00d fff0 bl 80101b2 <HAL_UARTEx_SetRxFifoThreshold>
  4646. 80021d2: 4603 mov r3, r0
  4647. 80021d4: 2b00 cmp r3, #0
  4648. 80021d6: d001 beq.n 80021dc <MX_USART2_UART_Init+0x84>
  4649. {
  4650. Error_Handler();
  4651. 80021d8: f000 fa5e bl 8002698 <Error_Handler>
  4652. }
  4653. if (HAL_UARTEx_DisableFifoMode(&huart2) != HAL_OK)
  4654. 80021dc: 4804 ldr r0, [pc, #16] @ (80021f0 <MX_USART2_UART_Init+0x98>)
  4655. 80021de: f00d ff71 bl 80100c4 <HAL_UARTEx_DisableFifoMode>
  4656. 80021e2: 4603 mov r3, r0
  4657. 80021e4: 2b00 cmp r3, #0
  4658. 80021e6: d001 beq.n 80021ec <MX_USART2_UART_Init+0x94>
  4659. {
  4660. Error_Handler();
  4661. 80021e8: f000 fa56 bl 8002698 <Error_Handler>
  4662. }
  4663. /* USER CODE BEGIN USART2_Init 2 */
  4664. /* USER CODE END USART2_Init 2 */
  4665. }
  4666. 80021ec: bf00 nop
  4667. 80021ee: bd80 pop {r7, pc}
  4668. 80021f0: 240003a8 .word 0x240003a8
  4669. 80021f4: 40004400 .word 0x40004400
  4670. 080021f8 <MX_USART3_UART_Init>:
  4671. * @brief USART3 Initialization Function
  4672. * @param None
  4673. * @retval None
  4674. */
  4675. static void MX_USART3_UART_Init(void)
  4676. {
  4677. 80021f8: b580 push {r7, lr}
  4678. 80021fa: af00 add r7, sp, #0
  4679. /* USER CODE END USART3_Init 0 */
  4680. /* USER CODE BEGIN USART3_Init 1 */
  4681. /* USER CODE END USART3_Init 1 */
  4682. huart3.Instance = USART3;
  4683. 80021fc: 4b24 ldr r3, [pc, #144] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4684. 80021fe: 4a25 ldr r2, [pc, #148] @ (8002294 <MX_USART3_UART_Init+0x9c>)
  4685. 8002200: 601a str r2, [r3, #0]
  4686. huart3.Init.BaudRate = 115200;
  4687. 8002202: 4b23 ldr r3, [pc, #140] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4688. 8002204: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4689. 8002208: 605a str r2, [r3, #4]
  4690. huart3.Init.WordLength = UART_WORDLENGTH_8B;
  4691. 800220a: 4b21 ldr r3, [pc, #132] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4692. 800220c: 2200 movs r2, #0
  4693. 800220e: 609a str r2, [r3, #8]
  4694. huart3.Init.StopBits = UART_STOPBITS_1;
  4695. 8002210: 4b1f ldr r3, [pc, #124] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4696. 8002212: 2200 movs r2, #0
  4697. 8002214: 60da str r2, [r3, #12]
  4698. huart3.Init.Parity = UART_PARITY_NONE;
  4699. 8002216: 4b1e ldr r3, [pc, #120] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4700. 8002218: 2200 movs r2, #0
  4701. 800221a: 611a str r2, [r3, #16]
  4702. huart3.Init.Mode = UART_MODE_TX_RX;
  4703. 800221c: 4b1c ldr r3, [pc, #112] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4704. 800221e: 220c movs r2, #12
  4705. 8002220: 615a str r2, [r3, #20]
  4706. huart3.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4707. 8002222: 4b1b ldr r3, [pc, #108] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4708. 8002224: 2200 movs r2, #0
  4709. 8002226: 619a str r2, [r3, #24]
  4710. huart3.Init.OverSampling = UART_OVERSAMPLING_16;
  4711. 8002228: 4b19 ldr r3, [pc, #100] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4712. 800222a: 2200 movs r2, #0
  4713. 800222c: 61da str r2, [r3, #28]
  4714. huart3.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4715. 800222e: 4b18 ldr r3, [pc, #96] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4716. 8002230: 2200 movs r2, #0
  4717. 8002232: 621a str r2, [r3, #32]
  4718. huart3.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4719. 8002234: 4b16 ldr r3, [pc, #88] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4720. 8002236: 2200 movs r2, #0
  4721. 8002238: 625a str r2, [r3, #36] @ 0x24
  4722. huart3.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_TXINVERT_INIT;
  4723. 800223a: 4b15 ldr r3, [pc, #84] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4724. 800223c: 2201 movs r2, #1
  4725. 800223e: 629a str r2, [r3, #40] @ 0x28
  4726. huart3.AdvancedInit.TxPinLevelInvert = UART_ADVFEATURE_TXINV_ENABLE;
  4727. 8002240: 4b13 ldr r3, [pc, #76] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4728. 8002242: f44f 3200 mov.w r2, #131072 @ 0x20000
  4729. 8002246: 62da str r2, [r3, #44] @ 0x2c
  4730. if (HAL_UART_Init(&huart3) != HAL_OK)
  4731. 8002248: 4811 ldr r0, [pc, #68] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4732. 800224a: f00b fa3d bl 800d6c8 <HAL_UART_Init>
  4733. 800224e: 4603 mov r3, r0
  4734. 8002250: 2b00 cmp r3, #0
  4735. 8002252: d001 beq.n 8002258 <MX_USART3_UART_Init+0x60>
  4736. {
  4737. Error_Handler();
  4738. 8002254: f000 fa20 bl 8002698 <Error_Handler>
  4739. }
  4740. if (HAL_UARTEx_SetTxFifoThreshold(&huart3, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4741. 8002258: 2100 movs r1, #0
  4742. 800225a: 480d ldr r0, [pc, #52] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4743. 800225c: f00d ff6b bl 8010136 <HAL_UARTEx_SetTxFifoThreshold>
  4744. 8002260: 4603 mov r3, r0
  4745. 8002262: 2b00 cmp r3, #0
  4746. 8002264: d001 beq.n 800226a <MX_USART3_UART_Init+0x72>
  4747. {
  4748. Error_Handler();
  4749. 8002266: f000 fa17 bl 8002698 <Error_Handler>
  4750. }
  4751. if (HAL_UARTEx_SetRxFifoThreshold(&huart3, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4752. 800226a: 2100 movs r1, #0
  4753. 800226c: 4808 ldr r0, [pc, #32] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4754. 800226e: f00d ffa0 bl 80101b2 <HAL_UARTEx_SetRxFifoThreshold>
  4755. 8002272: 4603 mov r3, r0
  4756. 8002274: 2b00 cmp r3, #0
  4757. 8002276: d001 beq.n 800227c <MX_USART3_UART_Init+0x84>
  4758. {
  4759. Error_Handler();
  4760. 8002278: f000 fa0e bl 8002698 <Error_Handler>
  4761. }
  4762. if (HAL_UARTEx_DisableFifoMode(&huart3) != HAL_OK)
  4763. 800227c: 4804 ldr r0, [pc, #16] @ (8002290 <MX_USART3_UART_Init+0x98>)
  4764. 800227e: f00d ff21 bl 80100c4 <HAL_UARTEx_DisableFifoMode>
  4765. 8002282: 4603 mov r3, r0
  4766. 8002284: 2b00 cmp r3, #0
  4767. 8002286: d001 beq.n 800228c <MX_USART3_UART_Init+0x94>
  4768. {
  4769. Error_Handler();
  4770. 8002288: f000 fa06 bl 8002698 <Error_Handler>
  4771. }
  4772. /* USER CODE BEGIN USART3_Init 2 */
  4773. /* USER CODE END USART3_Init 2 */
  4774. }
  4775. 800228c: bf00 nop
  4776. 800228e: bd80 pop {r7, pc}
  4777. 8002290: 2400043c .word 0x2400043c
  4778. 8002294: 40004800 .word 0x40004800
  4779. 08002298 <MX_USART6_UART_Init>:
  4780. * @brief USART6 Initialization Function
  4781. * @param None
  4782. * @retval None
  4783. */
  4784. static void MX_USART6_UART_Init(void)
  4785. {
  4786. 8002298: b580 push {r7, lr}
  4787. 800229a: af00 add r7, sp, #0
  4788. /* USER CODE END USART6_Init 0 */
  4789. /* USER CODE BEGIN USART6_Init 1 */
  4790. /* USER CODE END USART6_Init 1 */
  4791. huart6.Instance = USART6;
  4792. 800229c: 4b24 ldr r3, [pc, #144] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4793. 800229e: 4a25 ldr r2, [pc, #148] @ (8002334 <MX_USART6_UART_Init+0x9c>)
  4794. 80022a0: 601a str r2, [r3, #0]
  4795. huart6.Init.BaudRate = 115200;
  4796. 80022a2: 4b23 ldr r3, [pc, #140] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4797. 80022a4: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4798. 80022a8: 605a str r2, [r3, #4]
  4799. huart6.Init.WordLength = UART_WORDLENGTH_8B;
  4800. 80022aa: 4b21 ldr r3, [pc, #132] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4801. 80022ac: 2200 movs r2, #0
  4802. 80022ae: 609a str r2, [r3, #8]
  4803. huart6.Init.StopBits = UART_STOPBITS_1;
  4804. 80022b0: 4b1f ldr r3, [pc, #124] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4805. 80022b2: 2200 movs r2, #0
  4806. 80022b4: 60da str r2, [r3, #12]
  4807. huart6.Init.Parity = UART_PARITY_NONE;
  4808. 80022b6: 4b1e ldr r3, [pc, #120] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4809. 80022b8: 2200 movs r2, #0
  4810. 80022ba: 611a str r2, [r3, #16]
  4811. huart6.Init.Mode = UART_MODE_TX_RX;
  4812. 80022bc: 4b1c ldr r3, [pc, #112] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4813. 80022be: 220c movs r2, #12
  4814. 80022c0: 615a str r2, [r3, #20]
  4815. huart6.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4816. 80022c2: 4b1b ldr r3, [pc, #108] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4817. 80022c4: 2200 movs r2, #0
  4818. 80022c6: 619a str r2, [r3, #24]
  4819. huart6.Init.OverSampling = UART_OVERSAMPLING_16;
  4820. 80022c8: 4b19 ldr r3, [pc, #100] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4821. 80022ca: 2200 movs r2, #0
  4822. 80022cc: 61da str r2, [r3, #28]
  4823. huart6.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4824. 80022ce: 4b18 ldr r3, [pc, #96] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4825. 80022d0: 2200 movs r2, #0
  4826. 80022d2: 621a str r2, [r3, #32]
  4827. huart6.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4828. 80022d4: 4b16 ldr r3, [pc, #88] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4829. 80022d6: 2200 movs r2, #0
  4830. 80022d8: 625a str r2, [r3, #36] @ 0x24
  4831. huart6.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_TXINVERT_INIT;
  4832. 80022da: 4b15 ldr r3, [pc, #84] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4833. 80022dc: 2201 movs r2, #1
  4834. 80022de: 629a str r2, [r3, #40] @ 0x28
  4835. huart6.AdvancedInit.TxPinLevelInvert = UART_ADVFEATURE_TXINV_ENABLE;
  4836. 80022e0: 4b13 ldr r3, [pc, #76] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4837. 80022e2: f44f 3200 mov.w r2, #131072 @ 0x20000
  4838. 80022e6: 62da str r2, [r3, #44] @ 0x2c
  4839. if (HAL_UART_Init(&huart6) != HAL_OK)
  4840. 80022e8: 4811 ldr r0, [pc, #68] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4841. 80022ea: f00b f9ed bl 800d6c8 <HAL_UART_Init>
  4842. 80022ee: 4603 mov r3, r0
  4843. 80022f0: 2b00 cmp r3, #0
  4844. 80022f2: d001 beq.n 80022f8 <MX_USART6_UART_Init+0x60>
  4845. {
  4846. Error_Handler();
  4847. 80022f4: f000 f9d0 bl 8002698 <Error_Handler>
  4848. }
  4849. if (HAL_UARTEx_SetTxFifoThreshold(&huart6, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4850. 80022f8: 2100 movs r1, #0
  4851. 80022fa: 480d ldr r0, [pc, #52] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4852. 80022fc: f00d ff1b bl 8010136 <HAL_UARTEx_SetTxFifoThreshold>
  4853. 8002300: 4603 mov r3, r0
  4854. 8002302: 2b00 cmp r3, #0
  4855. 8002304: d001 beq.n 800230a <MX_USART6_UART_Init+0x72>
  4856. {
  4857. Error_Handler();
  4858. 8002306: f000 f9c7 bl 8002698 <Error_Handler>
  4859. }
  4860. if (HAL_UARTEx_SetRxFifoThreshold(&huart6, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4861. 800230a: 2100 movs r1, #0
  4862. 800230c: 4808 ldr r0, [pc, #32] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4863. 800230e: f00d ff50 bl 80101b2 <HAL_UARTEx_SetRxFifoThreshold>
  4864. 8002312: 4603 mov r3, r0
  4865. 8002314: 2b00 cmp r3, #0
  4866. 8002316: d001 beq.n 800231c <MX_USART6_UART_Init+0x84>
  4867. {
  4868. Error_Handler();
  4869. 8002318: f000 f9be bl 8002698 <Error_Handler>
  4870. }
  4871. if (HAL_UARTEx_DisableFifoMode(&huart6) != HAL_OK)
  4872. 800231c: 4804 ldr r0, [pc, #16] @ (8002330 <MX_USART6_UART_Init+0x98>)
  4873. 800231e: f00d fed1 bl 80100c4 <HAL_UARTEx_DisableFifoMode>
  4874. 8002322: 4603 mov r3, r0
  4875. 8002324: 2b00 cmp r3, #0
  4876. 8002326: d001 beq.n 800232c <MX_USART6_UART_Init+0x94>
  4877. {
  4878. Error_Handler();
  4879. 8002328: f000 f9b6 bl 8002698 <Error_Handler>
  4880. }
  4881. /* USER CODE BEGIN USART6_Init 2 */
  4882. /* USER CODE END USART6_Init 2 */
  4883. }
  4884. 800232c: bf00 nop
  4885. 800232e: bd80 pop {r7, pc}
  4886. 8002330: 240004d0 .word 0x240004d0
  4887. 8002334: 40011400 .word 0x40011400
  4888. 08002338 <MX_DMA_Init>:
  4889. /**
  4890. * Enable DMA controller clock
  4891. */
  4892. static void MX_DMA_Init(void)
  4893. {
  4894. 8002338: b580 push {r7, lr}
  4895. 800233a: b082 sub sp, #8
  4896. 800233c: af00 add r7, sp, #0
  4897. /* DMA controller clock enable */
  4898. __HAL_RCC_DMA2_CLK_ENABLE();
  4899. 800233e: 4b11 ldr r3, [pc, #68] @ (8002384 <MX_DMA_Init+0x4c>)
  4900. 8002340: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  4901. 8002344: 4a0f ldr r2, [pc, #60] @ (8002384 <MX_DMA_Init+0x4c>)
  4902. 8002346: f043 0302 orr.w r3, r3, #2
  4903. 800234a: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  4904. 800234e: 4b0d ldr r3, [pc, #52] @ (8002384 <MX_DMA_Init+0x4c>)
  4905. 8002350: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  4906. 8002354: f003 0302 and.w r3, r3, #2
  4907. 8002358: 607b str r3, [r7, #4]
  4908. 800235a: 687b ldr r3, [r7, #4]
  4909. /* DMA interrupt init */
  4910. /* DMA2_Stream6_IRQn interrupt configuration */
  4911. HAL_NVIC_SetPriority(DMA2_Stream6_IRQn, 5, 0);
  4912. 800235c: 2200 movs r2, #0
  4913. 800235e: 2105 movs r1, #5
  4914. 8002360: 2045 movs r0, #69 @ 0x45
  4915. 8002362: f003 fa9f bl 80058a4 <HAL_NVIC_SetPriority>
  4916. HAL_NVIC_EnableIRQ(DMA2_Stream6_IRQn);
  4917. 8002366: 2045 movs r0, #69 @ 0x45
  4918. 8002368: f003 fab6 bl 80058d8 <HAL_NVIC_EnableIRQ>
  4919. /* DMA2_Stream7_IRQn interrupt configuration */
  4920. HAL_NVIC_SetPriority(DMA2_Stream7_IRQn, 5, 0);
  4921. 800236c: 2200 movs r2, #0
  4922. 800236e: 2105 movs r1, #5
  4923. 8002370: 2046 movs r0, #70 @ 0x46
  4924. 8002372: f003 fa97 bl 80058a4 <HAL_NVIC_SetPriority>
  4925. HAL_NVIC_EnableIRQ(DMA2_Stream7_IRQn);
  4926. 8002376: 2046 movs r0, #70 @ 0x46
  4927. 8002378: f003 faae bl 80058d8 <HAL_NVIC_EnableIRQ>
  4928. }
  4929. 800237c: bf00 nop
  4930. 800237e: 3708 adds r7, #8
  4931. 8002380: 46bd mov sp, r7
  4932. 8002382: bd80 pop {r7, pc}
  4933. 8002384: 58024400 .word 0x58024400
  4934. 08002388 <MX_GPIO_Init>:
  4935. * @brief GPIO Initialization Function
  4936. * @param None
  4937. * @retval None
  4938. */
  4939. static void MX_GPIO_Init(void)
  4940. {
  4941. 8002388: b580 push {r7, lr}
  4942. 800238a: b08c sub sp, #48 @ 0x30
  4943. 800238c: af00 add r7, sp, #0
  4944. GPIO_InitTypeDef GPIO_InitStruct = {0};
  4945. 800238e: f107 031c add.w r3, r7, #28
  4946. 8002392: 2200 movs r2, #0
  4947. 8002394: 601a str r2, [r3, #0]
  4948. 8002396: 605a str r2, [r3, #4]
  4949. 8002398: 609a str r2, [r3, #8]
  4950. 800239a: 60da str r2, [r3, #12]
  4951. 800239c: 611a str r2, [r3, #16]
  4952. /* USER CODE BEGIN MX_GPIO_Init_1 */
  4953. /* USER CODE END MX_GPIO_Init_1 */
  4954. /* GPIO Ports Clock Enable */
  4955. __HAL_RCC_GPIOE_CLK_ENABLE();
  4956. 800239e: 4b5d ldr r3, [pc, #372] @ (8002514 <MX_GPIO_Init+0x18c>)
  4957. 80023a0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4958. 80023a4: 4a5b ldr r2, [pc, #364] @ (8002514 <MX_GPIO_Init+0x18c>)
  4959. 80023a6: f043 0310 orr.w r3, r3, #16
  4960. 80023aa: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4961. 80023ae: 4b59 ldr r3, [pc, #356] @ (8002514 <MX_GPIO_Init+0x18c>)
  4962. 80023b0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4963. 80023b4: f003 0310 and.w r3, r3, #16
  4964. 80023b8: 61bb str r3, [r7, #24]
  4965. 80023ba: 69bb ldr r3, [r7, #24]
  4966. __HAL_RCC_GPIOH_CLK_ENABLE();
  4967. 80023bc: 4b55 ldr r3, [pc, #340] @ (8002514 <MX_GPIO_Init+0x18c>)
  4968. 80023be: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4969. 80023c2: 4a54 ldr r2, [pc, #336] @ (8002514 <MX_GPIO_Init+0x18c>)
  4970. 80023c4: f043 0380 orr.w r3, r3, #128 @ 0x80
  4971. 80023c8: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4972. 80023cc: 4b51 ldr r3, [pc, #324] @ (8002514 <MX_GPIO_Init+0x18c>)
  4973. 80023ce: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4974. 80023d2: f003 0380 and.w r3, r3, #128 @ 0x80
  4975. 80023d6: 617b str r3, [r7, #20]
  4976. 80023d8: 697b ldr r3, [r7, #20]
  4977. __HAL_RCC_GPIOC_CLK_ENABLE();
  4978. 80023da: 4b4e ldr r3, [pc, #312] @ (8002514 <MX_GPIO_Init+0x18c>)
  4979. 80023dc: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4980. 80023e0: 4a4c ldr r2, [pc, #304] @ (8002514 <MX_GPIO_Init+0x18c>)
  4981. 80023e2: f043 0304 orr.w r3, r3, #4
  4982. 80023e6: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4983. 80023ea: 4b4a ldr r3, [pc, #296] @ (8002514 <MX_GPIO_Init+0x18c>)
  4984. 80023ec: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4985. 80023f0: f003 0304 and.w r3, r3, #4
  4986. 80023f4: 613b str r3, [r7, #16]
  4987. 80023f6: 693b ldr r3, [r7, #16]
  4988. __HAL_RCC_GPIOA_CLK_ENABLE();
  4989. 80023f8: 4b46 ldr r3, [pc, #280] @ (8002514 <MX_GPIO_Init+0x18c>)
  4990. 80023fa: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4991. 80023fe: 4a45 ldr r2, [pc, #276] @ (8002514 <MX_GPIO_Init+0x18c>)
  4992. 8002400: f043 0301 orr.w r3, r3, #1
  4993. 8002404: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4994. 8002408: 4b42 ldr r3, [pc, #264] @ (8002514 <MX_GPIO_Init+0x18c>)
  4995. 800240a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4996. 800240e: f003 0301 and.w r3, r3, #1
  4997. 8002412: 60fb str r3, [r7, #12]
  4998. 8002414: 68fb ldr r3, [r7, #12]
  4999. __HAL_RCC_GPIOB_CLK_ENABLE();
  5000. 8002416: 4b3f ldr r3, [pc, #252] @ (8002514 <MX_GPIO_Init+0x18c>)
  5001. 8002418: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  5002. 800241c: 4a3d ldr r2, [pc, #244] @ (8002514 <MX_GPIO_Init+0x18c>)
  5003. 800241e: f043 0302 orr.w r3, r3, #2
  5004. 8002422: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  5005. 8002426: 4b3b ldr r3, [pc, #236] @ (8002514 <MX_GPIO_Init+0x18c>)
  5006. 8002428: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  5007. 800242c: f003 0302 and.w r3, r3, #2
  5008. 8002430: 60bb str r3, [r7, #8]
  5009. 8002432: 68bb ldr r3, [r7, #8]
  5010. __HAL_RCC_GPIOD_CLK_ENABLE();
  5011. 8002434: 4b37 ldr r3, [pc, #220] @ (8002514 <MX_GPIO_Init+0x18c>)
  5012. 8002436: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  5013. 800243a: 4a36 ldr r2, [pc, #216] @ (8002514 <MX_GPIO_Init+0x18c>)
  5014. 800243c: f043 0308 orr.w r3, r3, #8
  5015. 8002440: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  5016. 8002444: 4b33 ldr r3, [pc, #204] @ (8002514 <MX_GPIO_Init+0x18c>)
  5017. 8002446: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  5018. 800244a: f003 0308 and.w r3, r3, #8
  5019. 800244e: 607b str r3, [r7, #4]
  5020. 8002450: 687b ldr r3, [r7, #4]
  5021. /*Configure GPIO pin Output Level */
  5022. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5, GPIO_PIN_RESET);
  5023. 8002452: 2200 movs r2, #0
  5024. 8002454: 213c movs r1, #60 @ 0x3c
  5025. 8002456: 4830 ldr r0, [pc, #192] @ (8002518 <MX_GPIO_Init+0x190>)
  5026. 8002458: f007 fe14 bl 800a084 <HAL_GPIO_WritePin>
  5027. /*Configure GPIO pin Output Level */
  5028. HAL_GPIO_WritePin(GPIOD, GPIO_PIN_11|GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14, GPIO_PIN_RESET);
  5029. 800245c: 2200 movs r2, #0
  5030. 800245e: f44f 41f0 mov.w r1, #30720 @ 0x7800
  5031. 8002462: 482e ldr r0, [pc, #184] @ (800251c <MX_GPIO_Init+0x194>)
  5032. 8002464: f007 fe0e bl 800a084 <HAL_GPIO_WritePin>
  5033. /*Configure GPIO pins : PE2 PE3 PE4 PE5 */
  5034. GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5;
  5035. 8002468: 233c movs r3, #60 @ 0x3c
  5036. 800246a: 61fb str r3, [r7, #28]
  5037. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  5038. 800246c: 2301 movs r3, #1
  5039. 800246e: 623b str r3, [r7, #32]
  5040. GPIO_InitStruct.Pull = GPIO_NOPULL;
  5041. 8002470: 2300 movs r3, #0
  5042. 8002472: 627b str r3, [r7, #36] @ 0x24
  5043. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  5044. 8002474: 2300 movs r3, #0
  5045. 8002476: 62bb str r3, [r7, #40] @ 0x28
  5046. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  5047. 8002478: f107 031c add.w r3, r7, #28
  5048. 800247c: 4619 mov r1, r3
  5049. 800247e: 4826 ldr r0, [pc, #152] @ (8002518 <MX_GPIO_Init+0x190>)
  5050. 8002480: f007 fc38 bl 8009cf4 <HAL_GPIO_Init>
  5051. /*Configure GPIO pins : PD11 PD12 PD13 PD14 */
  5052. GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14;
  5053. 8002484: f44f 43f0 mov.w r3, #30720 @ 0x7800
  5054. 8002488: 61fb str r3, [r7, #28]
  5055. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  5056. 800248a: 2301 movs r3, #1
  5057. 800248c: 623b str r3, [r7, #32]
  5058. GPIO_InitStruct.Pull = GPIO_NOPULL;
  5059. 800248e: 2300 movs r3, #0
  5060. 8002490: 627b str r3, [r7, #36] @ 0x24
  5061. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  5062. 8002492: 2300 movs r3, #0
  5063. 8002494: 62bb str r3, [r7, #40] @ 0x28
  5064. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  5065. 8002496: f107 031c add.w r3, r7, #28
  5066. 800249a: 4619 mov r1, r3
  5067. 800249c: 481f ldr r0, [pc, #124] @ (800251c <MX_GPIO_Init+0x194>)
  5068. 800249e: f007 fc29 bl 8009cf4 <HAL_GPIO_Init>
  5069. /*Configure GPIO pins : PD1 PD2 PD4 */
  5070. GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_4;
  5071. 80024a2: 2316 movs r3, #22
  5072. 80024a4: 61fb str r3, [r7, #28]
  5073. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  5074. 80024a6: 2300 movs r3, #0
  5075. 80024a8: 623b str r3, [r7, #32]
  5076. GPIO_InitStruct.Pull = GPIO_NOPULL;
  5077. 80024aa: 2300 movs r3, #0
  5078. 80024ac: 627b str r3, [r7, #36] @ 0x24
  5079. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  5080. 80024ae: f107 031c add.w r3, r7, #28
  5081. 80024b2: 4619 mov r1, r3
  5082. 80024b4: 4819 ldr r0, [pc, #100] @ (800251c <MX_GPIO_Init+0x194>)
  5083. 80024b6: f007 fc1d bl 8009cf4 <HAL_GPIO_Init>
  5084. /* USER CODE BEGIN MX_GPIO_Init_2 */
  5085. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5, GPIO_PIN_RESET);
  5086. 80024ba: 2200 movs r2, #0
  5087. 80024bc: 213c movs r1, #60 @ 0x3c
  5088. 80024be: 4816 ldr r0, [pc, #88] @ (8002518 <MX_GPIO_Init+0x190>)
  5089. 80024c0: f007 fde0 bl 800a084 <HAL_GPIO_WritePin>
  5090. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  5091. 80024c4: f44f 4340 mov.w r3, #49152 @ 0xc000
  5092. 80024c8: 61fb str r3, [r7, #28]
  5093. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  5094. 80024ca: 2301 movs r3, #1
  5095. 80024cc: 623b str r3, [r7, #32]
  5096. GPIO_InitStruct.Pull = GPIO_PULLUP;
  5097. 80024ce: 2301 movs r3, #1
  5098. 80024d0: 627b str r3, [r7, #36] @ 0x24
  5099. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  5100. 80024d2: 2300 movs r3, #0
  5101. 80024d4: 62bb str r3, [r7, #40] @ 0x28
  5102. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  5103. 80024d6: f107 031c add.w r3, r7, #28
  5104. 80024da: 4619 mov r1, r3
  5105. 80024dc: 480e ldr r0, [pc, #56] @ (8002518 <MX_GPIO_Init+0x190>)
  5106. 80024de: f007 fc09 bl 8009cf4 <HAL_GPIO_Init>
  5107. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_14, GPIO_PIN_RESET);
  5108. 80024e2: 2200 movs r2, #0
  5109. 80024e4: f44f 4180 mov.w r1, #16384 @ 0x4000
  5110. 80024e8: 480b ldr r0, [pc, #44] @ (8002518 <MX_GPIO_Init+0x190>)
  5111. 80024ea: f007 fdcb bl 800a084 <HAL_GPIO_WritePin>
  5112. HAL_Delay(100);
  5113. 80024ee: 2064 movs r0, #100 @ 0x64
  5114. 80024f0: f003 f8dc bl 80056ac <HAL_Delay>
  5115. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_14, GPIO_PIN_SET);
  5116. 80024f4: 2201 movs r2, #1
  5117. 80024f6: f44f 4180 mov.w r1, #16384 @ 0x4000
  5118. 80024fa: 4807 ldr r0, [pc, #28] @ (8002518 <MX_GPIO_Init+0x190>)
  5119. 80024fc: f007 fdc2 bl 800a084 <HAL_GPIO_WritePin>
  5120. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_15, GPIO_PIN_SET);
  5121. 8002500: 2201 movs r2, #1
  5122. 8002502: f44f 4100 mov.w r1, #32768 @ 0x8000
  5123. 8002506: 4804 ldr r0, [pc, #16] @ (8002518 <MX_GPIO_Init+0x190>)
  5124. 8002508: f007 fdbc bl 800a084 <HAL_GPIO_WritePin>
  5125. /* USER CODE END MX_GPIO_Init_2 */
  5126. }
  5127. 800250c: bf00 nop
  5128. 800250e: 3730 adds r7, #48 @ 0x30
  5129. 8002510: 46bd mov sp, r7
  5130. 8002512: bd80 pop {r7, pc}
  5131. 8002514: 58024400 .word 0x58024400
  5132. 8002518: 58021000 .word 0x58021000
  5133. 800251c: 58020c00 .word 0x58020c00
  5134. 08002520 <StartDefaultTask>:
  5135. * @param argument: Not used
  5136. * @retval None
  5137. */
  5138. /* USER CODE END Header_StartDefaultTask */
  5139. void StartDefaultTask(void *argument)
  5140. {
  5141. 8002520: b580 push {r7, lr}
  5142. 8002522: b082 sub sp, #8
  5143. 8002524: af00 add r7, sp, #0
  5144. 8002526: 6078 str r0, [r7, #4]
  5145. /* init code for LWIP */
  5146. MX_LWIP_Init();
  5147. 8002528: f00d ff40 bl 80103ac <MX_LWIP_Init>
  5148. /* USER CODE BEGIN 5 */
  5149. /* Infinite loop */
  5150. for(;;)
  5151. {
  5152. osDelay(pdMS_TO_TICKS(1000));
  5153. 800252c: f44f 707a mov.w r0, #1000 @ 0x3e8
  5154. 8002530: f00e ff0f bl 8011352 <osDelay>
  5155. 8002534: e7fa b.n 800252c <StartDefaultTask+0xc>
  5156. ...
  5157. 08002538 <relay1TimerCallback>:
  5158. /* USER CODE END 5 */
  5159. }
  5160. /* relay1TimerCallback function */
  5161. void relay1TimerCallback(void *argument)
  5162. {
  5163. 8002538: b580 push {r7, lr}
  5164. 800253a: b082 sub sp, #8
  5165. 800253c: af00 add r7, sp, #0
  5166. 800253e: 6078 str r0, [r7, #4]
  5167. /* USER CODE BEGIN relay1TimerCallback */
  5168. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_5, GPIO_PIN_RESET);
  5169. 8002540: 2200 movs r2, #0
  5170. 8002542: 2120 movs r1, #32
  5171. 8002544: 4803 ldr r0, [pc, #12] @ (8002554 <relay1TimerCallback+0x1c>)
  5172. 8002546: f007 fd9d bl 800a084 <HAL_GPIO_WritePin>
  5173. /* USER CODE END relay1TimerCallback */
  5174. }
  5175. 800254a: bf00 nop
  5176. 800254c: 3708 adds r7, #8
  5177. 800254e: 46bd mov sp, r7
  5178. 8002550: bd80 pop {r7, pc}
  5179. 8002552: bf00 nop
  5180. 8002554: 58021000 .word 0x58021000
  5181. 08002558 <relay2TimerCallback>:
  5182. /* relay2TimerCallback function */
  5183. void relay2TimerCallback(void *argument)
  5184. {
  5185. 8002558: b580 push {r7, lr}
  5186. 800255a: b082 sub sp, #8
  5187. 800255c: af00 add r7, sp, #0
  5188. 800255e: 6078 str r0, [r7, #4]
  5189. /* USER CODE BEGIN relay2TimerCallback */
  5190. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_3, GPIO_PIN_RESET);
  5191. 8002560: 2200 movs r2, #0
  5192. 8002562: 2108 movs r1, #8
  5193. 8002564: 4803 ldr r0, [pc, #12] @ (8002574 <relay2TimerCallback+0x1c>)
  5194. 8002566: f007 fd8d bl 800a084 <HAL_GPIO_WritePin>
  5195. /* USER CODE END relay2TimerCallback */
  5196. }
  5197. 800256a: bf00 nop
  5198. 800256c: 3708 adds r7, #8
  5199. 800256e: 46bd mov sp, r7
  5200. 8002570: bd80 pop {r7, pc}
  5201. 8002572: bf00 nop
  5202. 8002574: 58021000 .word 0x58021000
  5203. 08002578 <relay3TimerCallback>:
  5204. /* relay3TimerCallback function */
  5205. void relay3TimerCallback(void *argument)
  5206. {
  5207. 8002578: b580 push {r7, lr}
  5208. 800257a: b082 sub sp, #8
  5209. 800257c: af00 add r7, sp, #0
  5210. 800257e: 6078 str r0, [r7, #4]
  5211. /* USER CODE BEGIN relay3TimerCallback */
  5212. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_4, GPIO_PIN_RESET);
  5213. 8002580: 2200 movs r2, #0
  5214. 8002582: 2110 movs r1, #16
  5215. 8002584: 4803 ldr r0, [pc, #12] @ (8002594 <relay3TimerCallback+0x1c>)
  5216. 8002586: f007 fd7d bl 800a084 <HAL_GPIO_WritePin>
  5217. /* USER CODE END relay3TimerCallback */
  5218. }
  5219. 800258a: bf00 nop
  5220. 800258c: 3708 adds r7, #8
  5221. 800258e: 46bd mov sp, r7
  5222. 8002590: bd80 pop {r7, pc}
  5223. 8002592: bf00 nop
  5224. 8002594: 58021000 .word 0x58021000
  5225. 08002598 <relay4TimerCallback>:
  5226. /* relay4TimerCallback function */
  5227. void relay4TimerCallback(void *argument)
  5228. {
  5229. 8002598: b580 push {r7, lr}
  5230. 800259a: b082 sub sp, #8
  5231. 800259c: af00 add r7, sp, #0
  5232. 800259e: 6078 str r0, [r7, #4]
  5233. /* USER CODE BEGIN relay4TimerCallback */
  5234. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_2, GPIO_PIN_RESET);
  5235. 80025a0: 2200 movs r2, #0
  5236. 80025a2: 2104 movs r1, #4
  5237. 80025a4: 4803 ldr r0, [pc, #12] @ (80025b4 <relay4TimerCallback+0x1c>)
  5238. 80025a6: f007 fd6d bl 800a084 <HAL_GPIO_WritePin>
  5239. /* USER CODE END relay4TimerCallback */
  5240. }
  5241. 80025aa: bf00 nop
  5242. 80025ac: 3708 adds r7, #8
  5243. 80025ae: 46bd mov sp, r7
  5244. 80025b0: bd80 pop {r7, pc}
  5245. 80025b2: bf00 nop
  5246. 80025b4: 58021000 .word 0x58021000
  5247. 080025b8 <MPU_Config>:
  5248. /* MPU Configuration */
  5249. void MPU_Config(void)
  5250. {
  5251. 80025b8: b580 push {r7, lr}
  5252. 80025ba: b084 sub sp, #16
  5253. 80025bc: af00 add r7, sp, #0
  5254. MPU_Region_InitTypeDef MPU_InitStruct = {0};
  5255. 80025be: 463b mov r3, r7
  5256. 80025c0: 2200 movs r2, #0
  5257. 80025c2: 601a str r2, [r3, #0]
  5258. 80025c4: 605a str r2, [r3, #4]
  5259. 80025c6: 609a str r2, [r3, #8]
  5260. 80025c8: 60da str r2, [r3, #12]
  5261. /* Disables the MPU */
  5262. HAL_MPU_Disable();
  5263. 80025ca: f003 f993 bl 80058f4 <HAL_MPU_Disable>
  5264. /** Initializes and configures the Region and the memory to be protected
  5265. */
  5266. MPU_InitStruct.Enable = MPU_REGION_ENABLE;
  5267. 80025ce: 2301 movs r3, #1
  5268. 80025d0: 703b strb r3, [r7, #0]
  5269. MPU_InitStruct.Number = MPU_REGION_NUMBER0;
  5270. 80025d2: 2300 movs r3, #0
  5271. 80025d4: 707b strb r3, [r7, #1]
  5272. MPU_InitStruct.BaseAddress = 0x0;
  5273. 80025d6: 2300 movs r3, #0
  5274. 80025d8: 607b str r3, [r7, #4]
  5275. MPU_InitStruct.Size = MPU_REGION_SIZE_4GB;
  5276. 80025da: 231f movs r3, #31
  5277. 80025dc: 723b strb r3, [r7, #8]
  5278. MPU_InitStruct.SubRegionDisable = 0x87;
  5279. 80025de: 2387 movs r3, #135 @ 0x87
  5280. 80025e0: 727b strb r3, [r7, #9]
  5281. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  5282. 80025e2: 2300 movs r3, #0
  5283. 80025e4: 72bb strb r3, [r7, #10]
  5284. MPU_InitStruct.AccessPermission = MPU_REGION_NO_ACCESS;
  5285. 80025e6: 2300 movs r3, #0
  5286. 80025e8: 72fb strb r3, [r7, #11]
  5287. MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_DISABLE;
  5288. 80025ea: 2301 movs r3, #1
  5289. 80025ec: 733b strb r3, [r7, #12]
  5290. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  5291. 80025ee: 2301 movs r3, #1
  5292. 80025f0: 737b strb r3, [r7, #13]
  5293. MPU_InitStruct.IsCacheable = MPU_ACCESS_NOT_CACHEABLE;
  5294. 80025f2: 2300 movs r3, #0
  5295. 80025f4: 73bb strb r3, [r7, #14]
  5296. MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
  5297. 80025f6: 2300 movs r3, #0
  5298. 80025f8: 73fb strb r3, [r7, #15]
  5299. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  5300. 80025fa: 463b mov r3, r7
  5301. 80025fc: 4618 mov r0, r3
  5302. 80025fe: f003 f9b1 bl 8005964 <HAL_MPU_ConfigRegion>
  5303. /** Initializes and configures the Region and the memory to be protected
  5304. */
  5305. MPU_InitStruct.Number = MPU_REGION_NUMBER1;
  5306. 8002602: 2301 movs r3, #1
  5307. 8002604: 707b strb r3, [r7, #1]
  5308. MPU_InitStruct.BaseAddress = 0x24020000;
  5309. 8002606: 4b13 ldr r3, [pc, #76] @ (8002654 <MPU_Config+0x9c>)
  5310. 8002608: 607b str r3, [r7, #4]
  5311. MPU_InitStruct.Size = MPU_REGION_SIZE_128KB;
  5312. 800260a: 2310 movs r3, #16
  5313. 800260c: 723b strb r3, [r7, #8]
  5314. MPU_InitStruct.SubRegionDisable = 0x0;
  5315. 800260e: 2300 movs r3, #0
  5316. 8002610: 727b strb r3, [r7, #9]
  5317. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1;
  5318. 8002612: 2301 movs r3, #1
  5319. 8002614: 72bb strb r3, [r7, #10]
  5320. MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
  5321. 8002616: 2303 movs r3, #3
  5322. 8002618: 72fb strb r3, [r7, #11]
  5323. MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE;
  5324. 800261a: 2300 movs r3, #0
  5325. 800261c: 737b strb r3, [r7, #13]
  5326. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  5327. 800261e: 463b mov r3, r7
  5328. 8002620: 4618 mov r0, r3
  5329. 8002622: f003 f99f bl 8005964 <HAL_MPU_ConfigRegion>
  5330. /** Initializes and configures the Region and the memory to be protected
  5331. */
  5332. MPU_InitStruct.Number = MPU_REGION_NUMBER2;
  5333. 8002626: 2302 movs r3, #2
  5334. 8002628: 707b strb r3, [r7, #1]
  5335. MPU_InitStruct.BaseAddress = 0x24040000;
  5336. 800262a: 4b0b ldr r3, [pc, #44] @ (8002658 <MPU_Config+0xa0>)
  5337. 800262c: 607b str r3, [r7, #4]
  5338. MPU_InitStruct.Size = MPU_REGION_SIZE_512B;
  5339. 800262e: 2308 movs r3, #8
  5340. 8002630: 723b strb r3, [r7, #8]
  5341. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  5342. 8002632: 2300 movs r3, #0
  5343. 8002634: 72bb strb r3, [r7, #10]
  5344. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  5345. 8002636: 2301 movs r3, #1
  5346. 8002638: 737b strb r3, [r7, #13]
  5347. MPU_InitStruct.IsBufferable = MPU_ACCESS_BUFFERABLE;
  5348. 800263a: 2301 movs r3, #1
  5349. 800263c: 73fb strb r3, [r7, #15]
  5350. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  5351. 800263e: 463b mov r3, r7
  5352. 8002640: 4618 mov r0, r3
  5353. 8002642: f003 f98f bl 8005964 <HAL_MPU_ConfigRegion>
  5354. /* Enables the MPU */
  5355. HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
  5356. 8002646: 2004 movs r0, #4
  5357. 8002648: f003 f96c bl 8005924 <HAL_MPU_Enable>
  5358. }
  5359. 800264c: bf00 nop
  5360. 800264e: 3710 adds r7, #16
  5361. 8002650: 46bd mov sp, r7
  5362. 8002652: bd80 pop {r7, pc}
  5363. 8002654: 24020000 .word 0x24020000
  5364. 8002658: 24040000 .word 0x24040000
  5365. 0800265c <HAL_TIM_PeriodElapsedCallback>:
  5366. * a global variable "uwTick" used as application time base.
  5367. * @param htim : TIM handle
  5368. * @retval None
  5369. */
  5370. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  5371. {
  5372. 800265c: b580 push {r7, lr}
  5373. 800265e: b082 sub sp, #8
  5374. 8002660: af00 add r7, sp, #0
  5375. 8002662: 6078 str r0, [r7, #4]
  5376. /* USER CODE BEGIN Callback 0 */
  5377. /* USER CODE END Callback 0 */
  5378. if (htim->Instance == TIM6) {
  5379. 8002664: 687b ldr r3, [r7, #4]
  5380. 8002666: 681b ldr r3, [r3, #0]
  5381. 8002668: 4a09 ldr r2, [pc, #36] @ (8002690 <HAL_TIM_PeriodElapsedCallback+0x34>)
  5382. 800266a: 4293 cmp r3, r2
  5383. 800266c: d101 bne.n 8002672 <HAL_TIM_PeriodElapsedCallback+0x16>
  5384. HAL_IncTick();
  5385. 800266e: f002 fffd bl 800566c <HAL_IncTick>
  5386. }
  5387. /* USER CODE BEGIN Callback 1 */
  5388. if (htim->Instance == TIM6) {
  5389. 8002672: 687b ldr r3, [r7, #4]
  5390. 8002674: 681b ldr r3, [r3, #0]
  5391. 8002676: 4a06 ldr r2, [pc, #24] @ (8002690 <HAL_TIM_PeriodElapsedCallback+0x34>)
  5392. 8002678: 4293 cmp r3, r2
  5393. 800267a: d104 bne.n 8002686 <HAL_TIM_PeriodElapsedCallback+0x2a>
  5394. MilliTimer++;
  5395. 800267c: 4b05 ldr r3, [pc, #20] @ (8002694 <HAL_TIM_PeriodElapsedCallback+0x38>)
  5396. 800267e: 681b ldr r3, [r3, #0]
  5397. 8002680: 3301 adds r3, #1
  5398. 8002682: 4a04 ldr r2, [pc, #16] @ (8002694 <HAL_TIM_PeriodElapsedCallback+0x38>)
  5399. 8002684: 6013 str r3, [r2, #0]
  5400. }
  5401. /* USER CODE END Callback 1 */
  5402. }
  5403. 8002686: bf00 nop
  5404. 8002688: 3708 adds r7, #8
  5405. 800268a: 46bd mov sp, r7
  5406. 800268c: bd80 pop {r7, pc}
  5407. 800268e: bf00 nop
  5408. 8002690: 40001000 .word 0x40001000
  5409. 8002694: 2402b114 .word 0x2402b114
  5410. 08002698 <Error_Handler>:
  5411. /**
  5412. * @brief This function is executed in case of error occurrence.
  5413. * @retval None
  5414. */
  5415. void Error_Handler(void)
  5416. {
  5417. 8002698: b480 push {r7}
  5418. 800269a: af00 add r7, sp, #0
  5419. __ASM volatile ("cpsid i" : : : "memory");
  5420. 800269c: b672 cpsid i
  5421. }
  5422. 800269e: bf00 nop
  5423. /* USER CODE BEGIN Error_Handler_Debug */
  5424. /* User can add his own implementation to report the HAL error return state */
  5425. __disable_irq();
  5426. while (1)
  5427. 80026a0: bf00 nop
  5428. 80026a2: e7fd b.n 80026a0 <Error_Handler+0x8>
  5429. 080026a4 <MqttClientSubTask>:
  5430. void MqttClientSubTask (void* argument); // mqtt client subscribe task function
  5431. void MqttClientPubTask (void* argument); // mqtt client publish task function
  5432. uint32_t MqttConnectBroker (void); // mqtt broker connect function
  5433. void MqttMessageArrived (MessageData* msg); // mqtt message callback function
  5434. void MqttClientSubTask (void* argument) {
  5435. 80026a4: b580 push {r7, lr}
  5436. 80026a6: b082 sub sp, #8
  5437. 80026a8: af00 add r7, sp, #0
  5438. 80026aa: 6078 str r0, [r7, #4]
  5439. while (1) {
  5440. // waiting for valid ip address
  5441. if (gnetif.ip_addr.addr == 0 || gnetif.netmask.addr == 0 || gnetif.gw.addr == 0) // system has no valid ip address
  5442. 80026ac: 4b16 ldr r3, [pc, #88] @ (8002708 <MqttClientSubTask+0x64>)
  5443. 80026ae: 685b ldr r3, [r3, #4]
  5444. 80026b0: 2b00 cmp r3, #0
  5445. 80026b2: d007 beq.n 80026c4 <MqttClientSubTask+0x20>
  5446. 80026b4: 4b14 ldr r3, [pc, #80] @ (8002708 <MqttClientSubTask+0x64>)
  5447. 80026b6: 689b ldr r3, [r3, #8]
  5448. 80026b8: 2b00 cmp r3, #0
  5449. 80026ba: d003 beq.n 80026c4 <MqttClientSubTask+0x20>
  5450. 80026bc: 4b12 ldr r3, [pc, #72] @ (8002708 <MqttClientSubTask+0x64>)
  5451. 80026be: 68db ldr r3, [r3, #12]
  5452. 80026c0: 2b00 cmp r3, #0
  5453. 80026c2: d104 bne.n 80026ce <MqttClientSubTask+0x2a>
  5454. {
  5455. osDelay (pdMS_TO_TICKS (1000));
  5456. 80026c4: f44f 707a mov.w r0, #1000 @ 0x3e8
  5457. 80026c8: f00e fe43 bl 8011352 <osDelay>
  5458. continue;
  5459. 80026cc: e003 b.n 80026d6 <MqttClientSubTask+0x32>
  5460. } else {
  5461. printf ("DHCP/Static IP O.K.\n");
  5462. 80026ce: 480f ldr r0, [pc, #60] @ (800270c <MqttClientSubTask+0x68>)
  5463. 80026d0: f028 f8ac bl 802a82c <puts>
  5464. break;
  5465. 80026d4: e000 b.n 80026d8 <MqttClientSubTask+0x34>
  5466. if (gnetif.ip_addr.addr == 0 || gnetif.netmask.addr == 0 || gnetif.gw.addr == 0) // system has no valid ip address
  5467. 80026d6: e7e9 b.n 80026ac <MqttClientSubTask+0x8>
  5468. }
  5469. }
  5470. while (1) {
  5471. if (!mqttClient.isconnected) {
  5472. 80026d8: 4b0d ldr r3, [pc, #52] @ (8002710 <MqttClientSubTask+0x6c>)
  5473. 80026da: 6a1b ldr r3, [r3, #32]
  5474. 80026dc: 2b00 cmp r3, #0
  5475. 80026de: d109 bne.n 80026f4 <MqttClientSubTask+0x50>
  5476. // try to connect to the broker
  5477. if (MqttConnectBroker () != MQTT_SUCCESS) {
  5478. 80026e0: f000 fb92 bl 8002e08 <MqttConnectBroker>
  5479. 80026e4: 4603 mov r3, r0
  5480. 80026e6: 2b00 cmp r3, #0
  5481. 80026e8: d0f6 beq.n 80026d8 <MqttClientSubTask+0x34>
  5482. osDelay (pdMS_TO_TICKS (1000));
  5483. 80026ea: f44f 707a mov.w r0, #1000 @ 0x3e8
  5484. 80026ee: f00e fe30 bl 8011352 <osDelay>
  5485. 80026f2: e7f1 b.n 80026d8 <MqttClientSubTask+0x34>
  5486. }
  5487. } else {
  5488. MQTTYield (&mqttClient, 500); // handle timer
  5489. 80026f4: f44f 71fa mov.w r1, #500 @ 0x1f4
  5490. 80026f8: 4805 ldr r0, [pc, #20] @ (8002710 <MqttClientSubTask+0x6c>)
  5491. 80026fa: f025 f999 bl 8027a30 <MQTTYield>
  5492. osDelay (pdMS_TO_TICKS (100));
  5493. 80026fe: 2064 movs r0, #100 @ 0x64
  5494. 8002700: f00e fe27 bl 8011352 <osDelay>
  5495. if (!mqttClient.isconnected) {
  5496. 8002704: e7e8 b.n 80026d8 <MqttClientSubTask+0x34>
  5497. 8002706: bf00 nop
  5498. 8002708: 24002254 .word 0x24002254
  5499. 800270c: 0802d3bc .word 0x0802d3bc
  5500. 8002710: 24000730 .word 0x24000730
  5501. 08002714 <MqttClientPubTask>:
  5502. }
  5503. }
  5504. }
  5505. void MqttClientPubTask (void* argument) {
  5506. 8002714: b590 push {r4, r7, lr}
  5507. 8002716: f5ad 7d19 sub.w sp, sp, #612 @ 0x264
  5508. 800271a: af04 add r7, sp, #16
  5509. 800271c: f507 7314 add.w r3, r7, #592 @ 0x250
  5510. 8002720: f5a3 7313 sub.w r3, r3, #588 @ 0x24c
  5511. 8002724: 6018 str r0, [r3, #0]
  5512. char messageBuffer[512] = { 0x00 };
  5513. 8002726: f507 7314 add.w r3, r7, #592 @ 0x250
  5514. 800272a: f5a3 7305 sub.w r3, r3, #532 @ 0x214
  5515. 800272e: 2200 movs r2, #0
  5516. 8002730: 601a str r2, [r3, #0]
  5517. 8002732: 3304 adds r3, #4
  5518. 8002734: f44f 72fe mov.w r2, #508 @ 0x1fc
  5519. 8002738: 2100 movs r1, #0
  5520. 800273a: 4618 mov r0, r3
  5521. 800273c: f028 f9a0 bl 802aa80 <memset>
  5522. char topicTextBuffer[32] = { 0x00 };
  5523. 8002740: f507 7314 add.w r3, r7, #592 @ 0x250
  5524. 8002744: f5a3 730d sub.w r3, r3, #564 @ 0x234
  5525. 8002748: 2200 movs r2, #0
  5526. 800274a: 601a str r2, [r3, #0]
  5527. 800274c: 3304 adds r3, #4
  5528. 800274e: 2200 movs r2, #0
  5529. 8002750: 601a str r2, [r3, #0]
  5530. 8002752: 605a str r2, [r3, #4]
  5531. 8002754: 609a str r2, [r3, #8]
  5532. 8002756: 60da str r2, [r3, #12]
  5533. 8002758: 611a str r2, [r3, #16]
  5534. 800275a: 615a str r2, [r3, #20]
  5535. 800275c: 619a str r2, [r3, #24]
  5536. uint32_t bytesInBuffer = 0;
  5537. 800275e: 2300 movs r3, #0
  5538. 8002760: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5539. uint8_t boardNumber = 0;
  5540. 8002764: 2300 movs r3, #0
  5541. 8002766: f887 324f strb.w r3, [r7, #591] @ 0x24f
  5542. MQTTMessage message;
  5543. while (1) {
  5544. if (mqttClient.isconnected) {
  5545. 800276a: 4b93 ldr r3, [pc, #588] @ (80029b8 <MqttClientPubTask+0x2a4>)
  5546. 800276c: 6a1b ldr r3, [r3, #32]
  5547. 800276e: 2b00 cmp r3, #0
  5548. 8002770: f000 833d beq.w 8002dee <MqttClientPubTask+0x6da>
  5549. if (is_link_up ()) {
  5550. 8002774: f00d fe0a bl 801038c <is_link_up>
  5551. 8002778: 4603 mov r3, r0
  5552. 800277a: 2b00 cmp r3, #0
  5553. 800277c: f000 8337 beq.w 8002dee <MqttClientPubTask+0x6da>
  5554. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5555. 8002780: 2300 movs r3, #0
  5556. 8002782: f887 324f strb.w r3, [r7, #591] @ 0x24f
  5557. 8002786: e10e b.n 80029a6 <MqttClientPubTask+0x292>
  5558. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  5559. 8002788: 4b8c ldr r3, [pc, #560] @ (80029bc <MqttClientPubTask+0x2a8>)
  5560. 800278a: 681b ldr r3, [r3, #0]
  5561. 800278c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5562. 8002790: 4618 mov r0, r3
  5563. 8002792: f00e ff76 bl 8011682 <osMutexAcquire>
  5564. RESMeasurements* resMeas = &resMeasurements[boardNumber];
  5565. 8002796: f897 224f ldrb.w r2, [r7, #591] @ 0x24f
  5566. 800279a: 4613 mov r3, r2
  5567. 800279c: 011b lsls r3, r3, #4
  5568. 800279e: 1a9b subs r3, r3, r2
  5569. 80027a0: 009b lsls r3, r3, #2
  5570. 80027a2: 4a87 ldr r2, [pc, #540] @ (80029c0 <MqttClientPubTask+0x2ac>)
  5571. 80027a4: 4413 add r3, r2
  5572. 80027a6: f8c7 323c str.w r3, [r7, #572] @ 0x23c
  5573. sprintf (topicTextBuffer, "RESmeasurments/%d", boardNumber + 1);
  5574. 80027aa: f897 324f ldrb.w r3, [r7, #591] @ 0x24f
  5575. 80027ae: 1c5a adds r2, r3, #1
  5576. 80027b0: f107 031c add.w r3, r7, #28
  5577. 80027b4: 4983 ldr r1, [pc, #524] @ (80029c4 <MqttClientPubTask+0x2b0>)
  5578. 80027b6: 4618 mov r0, r3
  5579. 80027b8: f028 f840 bl 802a83c <siprintf>
  5580. bytesInBuffer = sprintf (messageBuffer, "{\"voltageRMS\":[%.2f, %.2f, %.2f], ", resMeas->voltageRMS[0], resMeas->voltageRMS[1], resMeas->voltageRMS[2]);
  5581. 80027bc: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5582. 80027c0: edd3 7a00 vldr s15, [r3]
  5583. 80027c4: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5584. 80027c8: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5585. 80027cc: edd3 7a01 vldr s15, [r3, #4]
  5586. 80027d0: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5587. 80027d4: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5588. 80027d8: edd3 6a02 vldr s13, [r3, #8]
  5589. 80027dc: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5590. 80027e0: f107 003c add.w r0, r7, #60 @ 0x3c
  5591. 80027e4: ed8d 6b02 vstr d6, [sp, #8]
  5592. 80027e8: ed8d 7b00 vstr d7, [sp]
  5593. 80027ec: ec53 2b15 vmov r2, r3, d5
  5594. 80027f0: 4975 ldr r1, [pc, #468] @ (80029c8 <MqttClientPubTask+0x2b4>)
  5595. 80027f2: f028 f823 bl 802a83c <siprintf>
  5596. 80027f6: 4603 mov r3, r0
  5597. 80027f8: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5598. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"voltagePeak\":[%.2f, %.2f, %.2f], ", resMeas->voltagePeak[0], resMeas->voltagePeak[1], resMeas->voltagePeak[2]);
  5599. 80027fc: f107 023c add.w r2, r7, #60 @ 0x3c
  5600. 8002800: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5601. 8002804: 18d0 adds r0, r2, r3
  5602. 8002806: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5603. 800280a: edd3 7a03 vldr s15, [r3, #12]
  5604. 800280e: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5605. 8002812: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5606. 8002816: edd3 7a04 vldr s15, [r3, #16]
  5607. 800281a: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5608. 800281e: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5609. 8002822: edd3 6a05 vldr s13, [r3, #20]
  5610. 8002826: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5611. 800282a: ed8d 6b02 vstr d6, [sp, #8]
  5612. 800282e: ed8d 7b00 vstr d7, [sp]
  5613. 8002832: ec53 2b15 vmov r2, r3, d5
  5614. 8002836: 4965 ldr r1, [pc, #404] @ (80029cc <MqttClientPubTask+0x2b8>)
  5615. 8002838: f028 f800 bl 802a83c <siprintf>
  5616. 800283c: 4603 mov r3, r0
  5617. 800283e: 461a mov r2, r3
  5618. 8002840: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5619. 8002844: 4413 add r3, r2
  5620. 8002846: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5621. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"currentRMS\":[%.3f, %.3f, %.3f], ", resMeas->currentRMS[0], resMeas->currentRMS[1], resMeas->currentRMS[2]);
  5622. 800284a: f107 023c add.w r2, r7, #60 @ 0x3c
  5623. 800284e: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5624. 8002852: 18d0 adds r0, r2, r3
  5625. 8002854: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5626. 8002858: edd3 7a06 vldr s15, [r3, #24]
  5627. 800285c: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5628. 8002860: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5629. 8002864: edd3 7a07 vldr s15, [r3, #28]
  5630. 8002868: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5631. 800286c: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5632. 8002870: edd3 6a08 vldr s13, [r3, #32]
  5633. 8002874: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5634. 8002878: ed8d 6b02 vstr d6, [sp, #8]
  5635. 800287c: ed8d 7b00 vstr d7, [sp]
  5636. 8002880: ec53 2b15 vmov r2, r3, d5
  5637. 8002884: 4952 ldr r1, [pc, #328] @ (80029d0 <MqttClientPubTask+0x2bc>)
  5638. 8002886: f027 ffd9 bl 802a83c <siprintf>
  5639. 800288a: 4603 mov r3, r0
  5640. 800288c: 461a mov r2, r3
  5641. 800288e: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5642. 8002892: 4413 add r3, r2
  5643. 8002894: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5644. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"currentPeak\":[%.3f, %.3f, %.3f], ", resMeas->currentPeak[0], resMeas->currentPeak[1], resMeas->currentPeak[2]);
  5645. 8002898: f107 023c add.w r2, r7, #60 @ 0x3c
  5646. 800289c: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5647. 80028a0: 18d0 adds r0, r2, r3
  5648. 80028a2: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5649. 80028a6: edd3 7a09 vldr s15, [r3, #36] @ 0x24
  5650. 80028aa: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5651. 80028ae: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5652. 80028b2: edd3 7a0a vldr s15, [r3, #40] @ 0x28
  5653. 80028b6: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5654. 80028ba: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5655. 80028be: edd3 6a0b vldr s13, [r3, #44] @ 0x2c
  5656. 80028c2: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5657. 80028c6: ed8d 6b02 vstr d6, [sp, #8]
  5658. 80028ca: ed8d 7b00 vstr d7, [sp]
  5659. 80028ce: ec53 2b15 vmov r2, r3, d5
  5660. 80028d2: 4940 ldr r1, [pc, #256] @ (80029d4 <MqttClientPubTask+0x2c0>)
  5661. 80028d4: f027 ffb2 bl 802a83c <siprintf>
  5662. 80028d8: 4603 mov r3, r0
  5663. 80028da: 461a mov r2, r3
  5664. 80028dc: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5665. 80028e0: 4413 add r3, r2
  5666. 80028e2: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5667. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"power\":[%.2f, %.2f, %.2f], ", resMeas->power[0], resMeas->power[1], resMeas->power[2]);
  5668. 80028e6: f107 023c add.w r2, r7, #60 @ 0x3c
  5669. 80028ea: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5670. 80028ee: 18d0 adds r0, r2, r3
  5671. 80028f0: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5672. 80028f4: edd3 7a0c vldr s15, [r3, #48] @ 0x30
  5673. 80028f8: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5674. 80028fc: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5675. 8002900: edd3 7a0d vldr s15, [r3, #52] @ 0x34
  5676. 8002904: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5677. 8002908: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5678. 800290c: edd3 6a0e vldr s13, [r3, #56] @ 0x38
  5679. 8002910: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5680. 8002914: ed8d 6b02 vstr d6, [sp, #8]
  5681. 8002918: ed8d 7b00 vstr d7, [sp]
  5682. 800291c: ec53 2b15 vmov r2, r3, d5
  5683. 8002920: 492d ldr r1, [pc, #180] @ (80029d8 <MqttClientPubTask+0x2c4>)
  5684. 8002922: f027 ff8b bl 802a83c <siprintf>
  5685. 8002926: 4603 mov r3, r0
  5686. 8002928: 461a mov r2, r3
  5687. 800292a: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5688. 800292e: 4413 add r3, r2
  5689. 8002930: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5690. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"lastSeen\": %ld}", slaveLastSeen[boardNumber]);
  5691. 8002934: f107 023c add.w r2, r7, #60 @ 0x3c
  5692. 8002938: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5693. 800293c: 18d0 adds r0, r2, r3
  5694. 800293e: f897 324f ldrb.w r3, [r7, #591] @ 0x24f
  5695. 8002942: 4a26 ldr r2, [pc, #152] @ (80029dc <MqttClientPubTask+0x2c8>)
  5696. 8002944: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  5697. 8002948: 461a mov r2, r3
  5698. 800294a: 4925 ldr r1, [pc, #148] @ (80029e0 <MqttClientPubTask+0x2cc>)
  5699. 800294c: f027 ff76 bl 802a83c <siprintf>
  5700. 8002950: 4603 mov r3, r0
  5701. 8002952: 461a mov r2, r3
  5702. 8002954: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5703. 8002958: 4413 add r3, r2
  5704. 800295a: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5705. osMutexRelease (resMeasurementsMutex);
  5706. 800295e: 4b17 ldr r3, [pc, #92] @ (80029bc <MqttClientPubTask+0x2a8>)
  5707. 8002960: 681b ldr r3, [r3, #0]
  5708. 8002962: 4618 mov r0, r3
  5709. 8002964: f00e fed8 bl 8011718 <osMutexRelease>
  5710. message.payload = (void*)messageBuffer;
  5711. 8002968: f507 7314 add.w r3, r7, #592 @ 0x250
  5712. 800296c: f5a3 7311 sub.w r3, r3, #580 @ 0x244
  5713. 8002970: f107 023c add.w r2, r7, #60 @ 0x3c
  5714. 8002974: 609a str r2, [r3, #8]
  5715. message.payloadlen = strlen (messageBuffer);
  5716. 8002976: f107 033c add.w r3, r7, #60 @ 0x3c
  5717. 800297a: 4618 mov r0, r3
  5718. 800297c: f7fd fd10 bl 80003a0 <strlen>
  5719. 8002980: 4602 mov r2, r0
  5720. 8002982: f507 7314 add.w r3, r7, #592 @ 0x250
  5721. 8002986: f5a3 7311 sub.w r3, r3, #580 @ 0x244
  5722. 800298a: 60da str r2, [r3, #12]
  5723. MQTTPublish (&mqttClient, topicTextBuffer, &message); // publish a message
  5724. 800298c: f107 020c add.w r2, r7, #12
  5725. 8002990: f107 031c add.w r3, r7, #28
  5726. 8002994: 4619 mov r1, r3
  5727. 8002996: 4808 ldr r0, [pc, #32] @ (80029b8 <MqttClientPubTask+0x2a4>)
  5728. 8002998: f025 fa69 bl 8027e6e <MQTTPublish>
  5729. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5730. 800299c: f897 324f ldrb.w r3, [r7, #591] @ 0x24f
  5731. 80029a0: 3301 adds r3, #1
  5732. 80029a2: f887 324f strb.w r3, [r7, #591] @ 0x24f
  5733. 80029a6: f897 324f ldrb.w r3, [r7, #591] @ 0x24f
  5734. 80029aa: 2b03 cmp r3, #3
  5735. 80029ac: f67f aeec bls.w 8002788 <MqttClientPubTask+0x74>
  5736. }
  5737. for (boardNumber = 0; boardNumber < SLAVES_COUNT + 1; boardNumber++) {
  5738. 80029b0: 2300 movs r3, #0
  5739. 80029b2: f887 324f strb.w r3, [r7, #591] @ 0x24f
  5740. 80029b6: e215 b.n 8002de4 <MqttClientPubTask+0x6d0>
  5741. 80029b8: 24000730 .word 0x24000730
  5742. 80029bc: 24002248 .word 0x24002248
  5743. 80029c0: 24002088 .word 0x24002088
  5744. 80029c4: 0802d3d0 .word 0x0802d3d0
  5745. 80029c8: 0802d3e4 .word 0x0802d3e4
  5746. 80029cc: 0802d408 .word 0x0802d408
  5747. 80029d0: 0802d42c .word 0x0802d42c
  5748. 80029d4: 0802d450 .word 0x0802d450
  5749. 80029d8: 0802d474 .word 0x0802d474
  5750. 80029dc: 24002238 .word 0x24002238
  5751. 80029e0: 0802d494 .word 0x0802d494
  5752. if (boardNumber > 0) {
  5753. 80029e4: f897 324f ldrb.w r3, [r7, #591] @ 0x24f
  5754. 80029e8: 2b00 cmp r3, #0
  5755. 80029ea: f000 81b3 beq.w 8002d54 <MqttClientPubTask+0x640>
  5756. osMutexAcquire (sensorsInfoMutex, osWaitForever);
  5757. 80029ee: 4bc5 ldr r3, [pc, #788] @ (8002d04 <MqttClientPubTask+0x5f0>)
  5758. 80029f0: 681b ldr r3, [r3, #0]
  5759. 80029f2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5760. 80029f6: 4618 mov r0, r3
  5761. 80029f8: f00e fe43 bl 8011682 <osMutexAcquire>
  5762. SesnorsInfo* sensors = &sensorsInfo[boardNumber - 1];
  5763. 80029fc: f897 324f ldrb.w r3, [r7, #591] @ 0x24f
  5764. 8002a00: 1e5a subs r2, r3, #1
  5765. 8002a02: 4613 mov r3, r2
  5766. 8002a04: 005b lsls r3, r3, #1
  5767. 8002a06: 4413 add r3, r2
  5768. 8002a08: 011b lsls r3, r3, #4
  5769. 8002a0a: 4abf ldr r2, [pc, #764] @ (8002d08 <MqttClientPubTask+0x5f4>)
  5770. 8002a0c: 4413 add r3, r2
  5771. 8002a0e: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5772. sprintf (topicTextBuffer, "Sensors/%d", boardNumber);
  5773. 8002a12: f897 224f ldrb.w r2, [r7, #591] @ 0x24f
  5774. 8002a16: f107 031c add.w r3, r7, #28
  5775. 8002a1a: 49bc ldr r1, [pc, #752] @ (8002d0c <MqttClientPubTask+0x5f8>)
  5776. 8002a1c: 4618 mov r0, r3
  5777. 8002a1e: f027 ff0d bl 802a83c <siprintf>
  5778. bytesInBuffer = sprintf (messageBuffer, "{\"pvTemperature\":[%.1f, %.1f], ", sensors->pvTemperature[0], sensors->pvTemperature[1]);
  5779. 8002a22: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5780. 8002a26: edd3 7a00 vldr s15, [r3]
  5781. 8002a2a: eeb7 6ae7 vcvt.f64.f32 d6, s15
  5782. 8002a2e: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5783. 8002a32: edd3 7a01 vldr s15, [r3, #4]
  5784. 8002a36: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5785. 8002a3a: f107 003c add.w r0, r7, #60 @ 0x3c
  5786. 8002a3e: ed8d 7b00 vstr d7, [sp]
  5787. 8002a42: ec53 2b16 vmov r2, r3, d6
  5788. 8002a46: 49b2 ldr r1, [pc, #712] @ (8002d10 <MqttClientPubTask+0x5fc>)
  5789. 8002a48: f027 fef8 bl 802a83c <siprintf>
  5790. 8002a4c: 4603 mov r3, r0
  5791. 8002a4e: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5792. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"fanVoltage\":%.2f, ", sensors->fanVoltage);
  5793. 8002a52: f107 023c add.w r2, r7, #60 @ 0x3c
  5794. 8002a56: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5795. 8002a5a: 18d0 adds r0, r2, r3
  5796. 8002a5c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5797. 8002a60: edd3 7a02 vldr s15, [r3, #8]
  5798. 8002a64: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5799. 8002a68: ec53 2b17 vmov r2, r3, d7
  5800. 8002a6c: 49a9 ldr r1, [pc, #676] @ (8002d14 <MqttClientPubTask+0x600>)
  5801. 8002a6e: f027 fee5 bl 802a83c <siprintf>
  5802. 8002a72: 4603 mov r3, r0
  5803. 8002a74: 461a mov r2, r3
  5804. 8002a76: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5805. 8002a7a: 4413 add r3, r2
  5806. 8002a7c: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5807. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"pvEncoderX\":%.2f, ", sensors->pvEncoderX);
  5808. 8002a80: f107 023c add.w r2, r7, #60 @ 0x3c
  5809. 8002a84: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5810. 8002a88: 18d0 adds r0, r2, r3
  5811. 8002a8a: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5812. 8002a8e: edd3 7a03 vldr s15, [r3, #12]
  5813. 8002a92: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5814. 8002a96: ec53 2b17 vmov r2, r3, d7
  5815. 8002a9a: 499f ldr r1, [pc, #636] @ (8002d18 <MqttClientPubTask+0x604>)
  5816. 8002a9c: f027 fece bl 802a83c <siprintf>
  5817. 8002aa0: 4603 mov r3, r0
  5818. 8002aa2: 461a mov r2, r3
  5819. 8002aa4: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5820. 8002aa8: 4413 add r3, r2
  5821. 8002aaa: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5822. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"pvEncoderY\":%.2f, ", sensors->pvEncoderY);
  5823. 8002aae: f107 023c add.w r2, r7, #60 @ 0x3c
  5824. 8002ab2: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5825. 8002ab6: 18d0 adds r0, r2, r3
  5826. 8002ab8: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5827. 8002abc: edd3 7a04 vldr s15, [r3, #16]
  5828. 8002ac0: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5829. 8002ac4: ec53 2b17 vmov r2, r3, d7
  5830. 8002ac8: 4994 ldr r1, [pc, #592] @ (8002d1c <MqttClientPubTask+0x608>)
  5831. 8002aca: f027 feb7 bl 802a83c <siprintf>
  5832. 8002ace: 4603 mov r3, r0
  5833. 8002ad0: 461a mov r2, r3
  5834. 8002ad2: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5835. 8002ad6: 4413 add r3, r2
  5836. 8002ad8: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5837. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorXStatus\":%d, ", sensors->motorXStatus);
  5838. 8002adc: f107 023c add.w r2, r7, #60 @ 0x3c
  5839. 8002ae0: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5840. 8002ae4: 18d0 adds r0, r2, r3
  5841. 8002ae6: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5842. 8002aea: 7d1b ldrb r3, [r3, #20]
  5843. 8002aec: 461a mov r2, r3
  5844. 8002aee: 498c ldr r1, [pc, #560] @ (8002d20 <MqttClientPubTask+0x60c>)
  5845. 8002af0: f027 fea4 bl 802a83c <siprintf>
  5846. 8002af4: 4603 mov r3, r0
  5847. 8002af6: 461a mov r2, r3
  5848. 8002af8: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5849. 8002afc: 4413 add r3, r2
  5850. 8002afe: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5851. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorYStatus\":%d, ", sensors->motorYStatus);
  5852. 8002b02: f107 023c add.w r2, r7, #60 @ 0x3c
  5853. 8002b06: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5854. 8002b0a: 18d0 adds r0, r2, r3
  5855. 8002b0c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5856. 8002b10: 7d5b ldrb r3, [r3, #21]
  5857. 8002b12: 461a mov r2, r3
  5858. 8002b14: 4983 ldr r1, [pc, #524] @ (8002d24 <MqttClientPubTask+0x610>)
  5859. 8002b16: f027 fe91 bl 802a83c <siprintf>
  5860. 8002b1a: 4603 mov r3, r0
  5861. 8002b1c: 461a mov r2, r3
  5862. 8002b1e: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5863. 8002b22: 4413 add r3, r2
  5864. 8002b24: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5865. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorXAveCurrent\":%.3f, ", sensors->motorXAveCurrent);
  5866. 8002b28: f107 023c add.w r2, r7, #60 @ 0x3c
  5867. 8002b2c: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5868. 8002b30: 18d0 adds r0, r2, r3
  5869. 8002b32: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5870. 8002b36: edd3 7a06 vldr s15, [r3, #24]
  5871. 8002b3a: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5872. 8002b3e: ec53 2b17 vmov r2, r3, d7
  5873. 8002b42: 4979 ldr r1, [pc, #484] @ (8002d28 <MqttClientPubTask+0x614>)
  5874. 8002b44: f027 fe7a bl 802a83c <siprintf>
  5875. 8002b48: 4603 mov r3, r0
  5876. 8002b4a: 461a mov r2, r3
  5877. 8002b4c: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5878. 8002b50: 4413 add r3, r2
  5879. 8002b52: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5880. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorYAveCurrent\":%.3f, ", sensors->motorYAveCurrent);
  5881. 8002b56: f107 023c add.w r2, r7, #60 @ 0x3c
  5882. 8002b5a: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5883. 8002b5e: 18d0 adds r0, r2, r3
  5884. 8002b60: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5885. 8002b64: edd3 7a07 vldr s15, [r3, #28]
  5886. 8002b68: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5887. 8002b6c: ec53 2b17 vmov r2, r3, d7
  5888. 8002b70: 496e ldr r1, [pc, #440] @ (8002d2c <MqttClientPubTask+0x618>)
  5889. 8002b72: f027 fe63 bl 802a83c <siprintf>
  5890. 8002b76: 4603 mov r3, r0
  5891. 8002b78: 461a mov r2, r3
  5892. 8002b7a: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5893. 8002b7e: 4413 add r3, r2
  5894. 8002b80: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5895. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorXPeakCurrent\":%.3f, ", sensors->motorXPeakCurrent);
  5896. 8002b84: f107 023c add.w r2, r7, #60 @ 0x3c
  5897. 8002b88: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5898. 8002b8c: 18d0 adds r0, r2, r3
  5899. 8002b8e: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5900. 8002b92: edd3 7a08 vldr s15, [r3, #32]
  5901. 8002b96: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5902. 8002b9a: ec53 2b17 vmov r2, r3, d7
  5903. 8002b9e: 4964 ldr r1, [pc, #400] @ (8002d30 <MqttClientPubTask+0x61c>)
  5904. 8002ba0: f027 fe4c bl 802a83c <siprintf>
  5905. 8002ba4: 4603 mov r3, r0
  5906. 8002ba6: 461a mov r2, r3
  5907. 8002ba8: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5908. 8002bac: 4413 add r3, r2
  5909. 8002bae: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5910. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorYPeakCurrent\":%.3f, ", sensors->motorYPeakCurrent);
  5911. 8002bb2: f107 023c add.w r2, r7, #60 @ 0x3c
  5912. 8002bb6: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5913. 8002bba: 18d0 adds r0, r2, r3
  5914. 8002bbc: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5915. 8002bc0: edd3 7a09 vldr s15, [r3, #36] @ 0x24
  5916. 8002bc4: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5917. 8002bc8: ec53 2b17 vmov r2, r3, d7
  5918. 8002bcc: 4959 ldr r1, [pc, #356] @ (8002d34 <MqttClientPubTask+0x620>)
  5919. 8002bce: f027 fe35 bl 802a83c <siprintf>
  5920. 8002bd2: 4603 mov r3, r0
  5921. 8002bd4: 461a mov r2, r3
  5922. 8002bd6: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5923. 8002bda: 4413 add r3, r2
  5924. 8002bdc: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5925. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitXSwitchUp\":%d, ", sensors->limitXSwitchUp);
  5926. 8002be0: f107 023c add.w r2, r7, #60 @ 0x3c
  5927. 8002be4: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5928. 8002be8: 18d0 adds r0, r2, r3
  5929. 8002bea: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5930. 8002bee: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  5931. 8002bf2: 461a mov r2, r3
  5932. 8002bf4: 4950 ldr r1, [pc, #320] @ (8002d38 <MqttClientPubTask+0x624>)
  5933. 8002bf6: f027 fe21 bl 802a83c <siprintf>
  5934. 8002bfa: 4603 mov r3, r0
  5935. 8002bfc: 461a mov r2, r3
  5936. 8002bfe: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5937. 8002c02: 4413 add r3, r2
  5938. 8002c04: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5939. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitXSwitchDown\":%d, ", sensors->limitXSwitchDown);
  5940. 8002c08: f107 023c add.w r2, r7, #60 @ 0x3c
  5941. 8002c0c: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5942. 8002c10: 18d0 adds r0, r2, r3
  5943. 8002c12: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5944. 8002c16: f893 3029 ldrb.w r3, [r3, #41] @ 0x29
  5945. 8002c1a: 461a mov r2, r3
  5946. 8002c1c: 4947 ldr r1, [pc, #284] @ (8002d3c <MqttClientPubTask+0x628>)
  5947. 8002c1e: f027 fe0d bl 802a83c <siprintf>
  5948. 8002c22: 4603 mov r3, r0
  5949. 8002c24: 461a mov r2, r3
  5950. 8002c26: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5951. 8002c2a: 4413 add r3, r2
  5952. 8002c2c: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5953. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitXSwitchCenter\":%d, ", sensors->limitXSwitchCenter);
  5954. 8002c30: f107 023c add.w r2, r7, #60 @ 0x3c
  5955. 8002c34: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5956. 8002c38: 18d0 adds r0, r2, r3
  5957. 8002c3a: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5958. 8002c3e: f893 302a ldrb.w r3, [r3, #42] @ 0x2a
  5959. 8002c42: 461a mov r2, r3
  5960. 8002c44: 493e ldr r1, [pc, #248] @ (8002d40 <MqttClientPubTask+0x62c>)
  5961. 8002c46: f027 fdf9 bl 802a83c <siprintf>
  5962. 8002c4a: 4603 mov r3, r0
  5963. 8002c4c: 461a mov r2, r3
  5964. 8002c4e: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5965. 8002c52: 4413 add r3, r2
  5966. 8002c54: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5967. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitYSwitchUp\":%d, ", sensors->limitYSwitchUp);
  5968. 8002c58: f107 023c add.w r2, r7, #60 @ 0x3c
  5969. 8002c5c: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5970. 8002c60: 18d0 adds r0, r2, r3
  5971. 8002c62: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5972. 8002c66: f893 302b ldrb.w r3, [r3, #43] @ 0x2b
  5973. 8002c6a: 461a mov r2, r3
  5974. 8002c6c: 4935 ldr r1, [pc, #212] @ (8002d44 <MqttClientPubTask+0x630>)
  5975. 8002c6e: f027 fde5 bl 802a83c <siprintf>
  5976. 8002c72: 4603 mov r3, r0
  5977. 8002c74: 461a mov r2, r3
  5978. 8002c76: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5979. 8002c7a: 4413 add r3, r2
  5980. 8002c7c: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5981. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitYSwitchDown\":%d, ", sensors->limitYSwitchDown);
  5982. 8002c80: f107 023c add.w r2, r7, #60 @ 0x3c
  5983. 8002c84: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5984. 8002c88: 18d0 adds r0, r2, r3
  5985. 8002c8a: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5986. 8002c8e: f893 302c ldrb.w r3, [r3, #44] @ 0x2c
  5987. 8002c92: 461a mov r2, r3
  5988. 8002c94: 492c ldr r1, [pc, #176] @ (8002d48 <MqttClientPubTask+0x634>)
  5989. 8002c96: f027 fdd1 bl 802a83c <siprintf>
  5990. 8002c9a: 4603 mov r3, r0
  5991. 8002c9c: 461a mov r2, r3
  5992. 8002c9e: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5993. 8002ca2: 4413 add r3, r2
  5994. 8002ca4: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  5995. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitYSwitchCenter\":%d, ", sensors->limitYSwitchCenter);
  5996. 8002ca8: f107 023c add.w r2, r7, #60 @ 0x3c
  5997. 8002cac: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  5998. 8002cb0: 18d0 adds r0, r2, r3
  5999. 8002cb2: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  6000. 8002cb6: f893 302d ldrb.w r3, [r3, #45] @ 0x2d
  6001. 8002cba: 461a mov r2, r3
  6002. 8002cbc: 4923 ldr r1, [pc, #140] @ (8002d4c <MqttClientPubTask+0x638>)
  6003. 8002cbe: f027 fdbd bl 802a83c <siprintf>
  6004. 8002cc2: 4603 mov r3, r0
  6005. 8002cc4: 461a mov r2, r3
  6006. 8002cc6: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  6007. 8002cca: 4413 add r3, r2
  6008. 8002ccc: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  6009. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"powerSupplyFailMask\":%d}", sensors->powerSupplyFailMask);
  6010. 8002cd0: f107 023c add.w r2, r7, #60 @ 0x3c
  6011. 8002cd4: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  6012. 8002cd8: 18d0 adds r0, r2, r3
  6013. 8002cda: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  6014. 8002cde: f893 302e ldrb.w r3, [r3, #46] @ 0x2e
  6015. 8002ce2: 461a mov r2, r3
  6016. 8002ce4: 491a ldr r1, [pc, #104] @ (8002d50 <MqttClientPubTask+0x63c>)
  6017. 8002ce6: f027 fda9 bl 802a83c <siprintf>
  6018. 8002cea: 4603 mov r3, r0
  6019. 8002cec: 461a mov r2, r3
  6020. 8002cee: f8d7 3248 ldr.w r3, [r7, #584] @ 0x248
  6021. 8002cf2: 4413 add r3, r2
  6022. 8002cf4: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  6023. osMutexRelease (sensorsInfoMutex);
  6024. 8002cf8: 4b02 ldr r3, [pc, #8] @ (8002d04 <MqttClientPubTask+0x5f0>)
  6025. 8002cfa: 681b ldr r3, [r3, #0]
  6026. 8002cfc: 4618 mov r0, r3
  6027. 8002cfe: f00e fd0b bl 8011718 <osMutexRelease>
  6028. 8002d02: e050 b.n 8002da6 <MqttClientPubTask+0x692>
  6029. 8002d04: 2400224c .word 0x2400224c
  6030. 8002d08: 24002178 .word 0x24002178
  6031. 8002d0c: 0802d4a8 .word 0x0802d4a8
  6032. 8002d10: 0802d4b4 .word 0x0802d4b4
  6033. 8002d14: 0802d4d4 .word 0x0802d4d4
  6034. 8002d18: 0802d4e8 .word 0x0802d4e8
  6035. 8002d1c: 0802d4fc .word 0x0802d4fc
  6036. 8002d20: 0802d510 .word 0x0802d510
  6037. 8002d24: 0802d524 .word 0x0802d524
  6038. 8002d28: 0802d538 .word 0x0802d538
  6039. 8002d2c: 0802d554 .word 0x0802d554
  6040. 8002d30: 0802d570 .word 0x0802d570
  6041. 8002d34: 0802d58c .word 0x0802d58c
  6042. 8002d38: 0802d5a8 .word 0x0802d5a8
  6043. 8002d3c: 0802d5c0 .word 0x0802d5c0
  6044. 8002d40: 0802d5d8 .word 0x0802d5d8
  6045. 8002d44: 0802d5f4 .word 0x0802d5f4
  6046. 8002d48: 0802d60c .word 0x0802d60c
  6047. 8002d4c: 0802d624 .word 0x0802d624
  6048. 8002d50: 0802d640 .word 0x0802d640
  6049. } else {
  6050. sprintf (topicTextBuffer, "Sensors/%d", boardNumber);
  6051. 8002d54: f897 224f ldrb.w r2, [r7, #591] @ 0x24f
  6052. 8002d58: f107 031c add.w r3, r7, #28
  6053. 8002d5c: 4926 ldr r1, [pc, #152] @ (8002df8 <MqttClientPubTask+0x6e4>)
  6054. 8002d5e: 4618 mov r0, r3
  6055. 8002d60: f027 fd6c bl 802a83c <siprintf>
  6056. uint8_t mainBoardPowerSupplyFailMask = ~((HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_4) << 1) | HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_2)) & 0x3;
  6057. 8002d64: 2110 movs r1, #16
  6058. 8002d66: 4825 ldr r0, [pc, #148] @ (8002dfc <MqttClientPubTask+0x6e8>)
  6059. 8002d68: f007 f974 bl 800a054 <HAL_GPIO_ReadPin>
  6060. 8002d6c: 4603 mov r3, r0
  6061. 8002d6e: 005b lsls r3, r3, #1
  6062. 8002d70: b25c sxtb r4, r3
  6063. 8002d72: 2104 movs r1, #4
  6064. 8002d74: 4821 ldr r0, [pc, #132] @ (8002dfc <MqttClientPubTask+0x6e8>)
  6065. 8002d76: f007 f96d bl 800a054 <HAL_GPIO_ReadPin>
  6066. 8002d7a: 4603 mov r3, r0
  6067. 8002d7c: b25b sxtb r3, r3
  6068. 8002d7e: 4323 orrs r3, r4
  6069. 8002d80: b25b sxtb r3, r3
  6070. 8002d82: 43db mvns r3, r3
  6071. 8002d84: b25b sxtb r3, r3
  6072. 8002d86: b2db uxtb r3, r3
  6073. 8002d88: f003 0303 and.w r3, r3, #3
  6074. 8002d8c: f887 3247 strb.w r3, [r7, #583] @ 0x247
  6075. bytesInBuffer = sprintf (messageBuffer, "{\"powerSupplyFailMask\":%d}", mainBoardPowerSupplyFailMask);
  6076. 8002d90: f897 2247 ldrb.w r2, [r7, #583] @ 0x247
  6077. 8002d94: f107 033c add.w r3, r7, #60 @ 0x3c
  6078. 8002d98: 4919 ldr r1, [pc, #100] @ (8002e00 <MqttClientPubTask+0x6ec>)
  6079. 8002d9a: 4618 mov r0, r3
  6080. 8002d9c: f027 fd4e bl 802a83c <siprintf>
  6081. 8002da0: 4603 mov r3, r0
  6082. 8002da2: f8c7 3248 str.w r3, [r7, #584] @ 0x248
  6083. }
  6084. message.payload = (void*)messageBuffer;
  6085. 8002da6: f507 7314 add.w r3, r7, #592 @ 0x250
  6086. 8002daa: f5a3 7311 sub.w r3, r3, #580 @ 0x244
  6087. 8002dae: f107 023c add.w r2, r7, #60 @ 0x3c
  6088. 8002db2: 609a str r2, [r3, #8]
  6089. message.payloadlen = strlen (messageBuffer);
  6090. 8002db4: f107 033c add.w r3, r7, #60 @ 0x3c
  6091. 8002db8: 4618 mov r0, r3
  6092. 8002dba: f7fd faf1 bl 80003a0 <strlen>
  6093. 8002dbe: 4602 mov r2, r0
  6094. 8002dc0: f507 7314 add.w r3, r7, #592 @ 0x250
  6095. 8002dc4: f5a3 7311 sub.w r3, r3, #580 @ 0x244
  6096. 8002dc8: 60da str r2, [r3, #12]
  6097. MQTTPublish (&mqttClient, topicTextBuffer, &message); // publish a message
  6098. 8002dca: f107 020c add.w r2, r7, #12
  6099. 8002dce: f107 031c add.w r3, r7, #28
  6100. 8002dd2: 4619 mov r1, r3
  6101. 8002dd4: 480b ldr r0, [pc, #44] @ (8002e04 <MqttClientPubTask+0x6f0>)
  6102. 8002dd6: f025 f84a bl 8027e6e <MQTTPublish>
  6103. for (boardNumber = 0; boardNumber < SLAVES_COUNT + 1; boardNumber++) {
  6104. 8002dda: f897 324f ldrb.w r3, [r7, #591] @ 0x24f
  6105. 8002dde: 3301 adds r3, #1
  6106. 8002de0: f887 324f strb.w r3, [r7, #591] @ 0x24f
  6107. 8002de4: f897 324f ldrb.w r3, [r7, #591] @ 0x24f
  6108. 8002de8: 2b04 cmp r3, #4
  6109. 8002dea: f67f adfb bls.w 80029e4 <MqttClientPubTask+0x2d0>
  6110. }
  6111. }
  6112. }
  6113. osDelay (pdMS_TO_TICKS (1000));
  6114. 8002dee: f44f 707a mov.w r0, #1000 @ 0x3e8
  6115. 8002df2: f00e faae bl 8011352 <osDelay>
  6116. if (mqttClient.isconnected) {
  6117. 8002df6: e4b8 b.n 800276a <MqttClientPubTask+0x56>
  6118. 8002df8: 0802d4a8 .word 0x0802d4a8
  6119. 8002dfc: 58020c00 .word 0x58020c00
  6120. 8002e00: 0802d65c .word 0x0802d65c
  6121. 8002e04: 24000730 .word 0x24000730
  6122. 08002e08 <MqttConnectBroker>:
  6123. }
  6124. }
  6125. uint32_t MqttConnectBroker () {
  6126. 8002e08: b580 push {r7, lr}
  6127. 8002e0a: b09c sub sp, #112 @ 0x70
  6128. 8002e0c: af04 add r7, sp, #16
  6129. uint8_t boardNumber = 0;
  6130. 8002e0e: 2300 movs r3, #0
  6131. 8002e10: f887 305f strb.w r3, [r7, #95] @ 0x5f
  6132. int ret;
  6133. NewNetwork (&net);
  6134. 8002e14: 4839 ldr r0, [pc, #228] @ (8002efc <MqttConnectBroker+0xf4>)
  6135. 8002e16: f025 f963 bl 80280e0 <NewNetwork>
  6136. ret = ConnectNetwork (&net, BROKER_IP, MQTT_PORT);
  6137. 8002e1a: f240 725b movw r2, #1883 @ 0x75b
  6138. 8002e1e: 4938 ldr r1, [pc, #224] @ (8002f00 <MqttConnectBroker+0xf8>)
  6139. 8002e20: 4836 ldr r0, [pc, #216] @ (8002efc <MqttConnectBroker+0xf4>)
  6140. 8002e22: f025 f979 bl 8028118 <ConnectNetwork>
  6141. 8002e26: 65b8 str r0, [r7, #88] @ 0x58
  6142. if (ret != MQTT_SUCCESS) {
  6143. 8002e28: 6dbb ldr r3, [r7, #88] @ 0x58
  6144. 8002e2a: 2b00 cmp r3, #0
  6145. 8002e2c: d005 beq.n 8002e3a <MqttConnectBroker+0x32>
  6146. printf ("ConnectNetwork failed.\n");
  6147. 8002e2e: 4835 ldr r0, [pc, #212] @ (8002f04 <MqttConnectBroker+0xfc>)
  6148. 8002e30: f027 fcfc bl 802a82c <puts>
  6149. return -1;
  6150. 8002e34: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  6151. 8002e38: e05c b.n 8002ef4 <MqttConnectBroker+0xec>
  6152. }
  6153. MQTTClientInit (&mqttClient, &net, 1000, sndBuffer, sizeof (sndBuffer), rcvBuffer, sizeof (rcvBuffer));
  6154. 8002e3a: f44f 6380 mov.w r3, #1024 @ 0x400
  6155. 8002e3e: 9302 str r3, [sp, #8]
  6156. 8002e40: 4b31 ldr r3, [pc, #196] @ (8002f08 <MqttConnectBroker+0x100>)
  6157. 8002e42: 9301 str r3, [sp, #4]
  6158. 8002e44: f44f 6380 mov.w r3, #1024 @ 0x400
  6159. 8002e48: 9300 str r3, [sp, #0]
  6160. 8002e4a: 4b30 ldr r3, [pc, #192] @ (8002f0c <MqttConnectBroker+0x104>)
  6161. 8002e4c: f44f 727a mov.w r2, #1000 @ 0x3e8
  6162. 8002e50: 492a ldr r1, [pc, #168] @ (8002efc <MqttConnectBroker+0xf4>)
  6163. 8002e52: 482f ldr r0, [pc, #188] @ (8002f10 <MqttConnectBroker+0x108>)
  6164. 8002e54: f024 fa7e bl 8027354 <MQTTClientInit>
  6165. MQTTPacket_connectData data = MQTTPacket_connectData_initializer;
  6166. 8002e58: 4a2e ldr r2, [pc, #184] @ (8002f14 <MqttConnectBroker+0x10c>)
  6167. 8002e5a: 463b mov r3, r7
  6168. 8002e5c: 4611 mov r1, r2
  6169. 8002e5e: 2258 movs r2, #88 @ 0x58
  6170. 8002e60: 4618 mov r0, r3
  6171. 8002e62: f027 ff04 bl 802ac6e <memcpy>
  6172. data.willFlag = 0;
  6173. 8002e66: 2300 movs r3, #0
  6174. 8002e68: 76fb strb r3, [r7, #27]
  6175. data.MQTTVersion = 3;
  6176. 8002e6a: 2303 movs r3, #3
  6177. 8002e6c: 723b strb r3, [r7, #8]
  6178. data.clientID.cstring = "test_user1";
  6179. 8002e6e: 4b2a ldr r3, [pc, #168] @ (8002f18 <MqttConnectBroker+0x110>)
  6180. 8002e70: 60fb str r3, [r7, #12]
  6181. data.username.cstring = "test_user1";
  6182. 8002e72: 4b29 ldr r3, [pc, #164] @ (8002f18 <MqttConnectBroker+0x110>)
  6183. 8002e74: 643b str r3, [r7, #64] @ 0x40
  6184. data.password.cstring = "1234";
  6185. 8002e76: 4b29 ldr r3, [pc, #164] @ (8002f1c <MqttConnectBroker+0x114>)
  6186. 8002e78: 64fb str r3, [r7, #76] @ 0x4c
  6187. data.keepAliveInterval = 100;
  6188. 8002e7a: 2364 movs r3, #100 @ 0x64
  6189. 8002e7c: 833b strh r3, [r7, #24]
  6190. data.cleansession = 1;
  6191. 8002e7e: 2301 movs r3, #1
  6192. 8002e80: 76bb strb r3, [r7, #26]
  6193. ret = MQTTConnect (&mqttClient, &data);
  6194. 8002e82: 463b mov r3, r7
  6195. 8002e84: 4619 mov r1, r3
  6196. 8002e86: 4822 ldr r0, [pc, #136] @ (8002f10 <MqttConnectBroker+0x108>)
  6197. 8002e88: f024 fec0 bl 8027c0c <MQTTConnect>
  6198. 8002e8c: 65b8 str r0, [r7, #88] @ 0x58
  6199. if (ret != MQTT_SUCCESS) {
  6200. 8002e8e: 6dbb ldr r3, [r7, #88] @ 0x58
  6201. 8002e90: 2b00 cmp r3, #0
  6202. 8002e92: d008 beq.n 8002ea6 <MqttConnectBroker+0x9e>
  6203. net_disconnect (&net);
  6204. 8002e94: 4819 ldr r0, [pc, #100] @ (8002efc <MqttConnectBroker+0xf4>)
  6205. 8002e96: f025 f9c8 bl 802822a <net_disconnect>
  6206. printf ("MQTTConnect failed. Code %d\n", ret);
  6207. 8002e9a: 6db9 ldr r1, [r7, #88] @ 0x58
  6208. 8002e9c: 4820 ldr r0, [pc, #128] @ (8002f20 <MqttConnectBroker+0x118>)
  6209. 8002e9e: f027 fc5d bl 802a75c <iprintf>
  6210. return ret;
  6211. 8002ea2: 6dbb ldr r3, [r7, #88] @ 0x58
  6212. 8002ea4: e026 b.n 8002ef4 <MqttConnectBroker+0xec>
  6213. }
  6214. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  6215. 8002ea6: 2300 movs r3, #0
  6216. 8002ea8: f887 305f strb.w r3, [r7, #95] @ 0x5f
  6217. 8002eac: e01a b.n 8002ee4 <MqttConnectBroker+0xdc>
  6218. ret = MQTTSubscribe (&mqttClient, subscribeTopicNames[boardNumber], QOS0, MqttMessageArrived);
  6219. 8002eae: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  6220. 8002eb2: 4a1c ldr r2, [pc, #112] @ (8002f24 <MqttConnectBroker+0x11c>)
  6221. 8002eb4: f852 1023 ldr.w r1, [r2, r3, lsl #2]
  6222. 8002eb8: 4b1b ldr r3, [pc, #108] @ (8002f28 <MqttConnectBroker+0x120>)
  6223. 8002eba: 2200 movs r2, #0
  6224. 8002ebc: 4814 ldr r0, [pc, #80] @ (8002f10 <MqttConnectBroker+0x108>)
  6225. 8002ebe: f024 ffc0 bl 8027e42 <MQTTSubscribe>
  6226. 8002ec2: 65b8 str r0, [r7, #88] @ 0x58
  6227. if (ret != MQTT_SUCCESS) {
  6228. 8002ec4: 6dbb ldr r3, [r7, #88] @ 0x58
  6229. 8002ec6: 2b00 cmp r3, #0
  6230. 8002ec8: d007 beq.n 8002eda <MqttConnectBroker+0xd2>
  6231. net_disconnect (&net);
  6232. 8002eca: 480c ldr r0, [pc, #48] @ (8002efc <MqttConnectBroker+0xf4>)
  6233. 8002ecc: f025 f9ad bl 802822a <net_disconnect>
  6234. printf ("MQTTSubscribe failed.\n");
  6235. 8002ed0: 4816 ldr r0, [pc, #88] @ (8002f2c <MqttConnectBroker+0x124>)
  6236. 8002ed2: f027 fcab bl 802a82c <puts>
  6237. return ret;
  6238. 8002ed6: 6dbb ldr r3, [r7, #88] @ 0x58
  6239. 8002ed8: e00c b.n 8002ef4 <MqttConnectBroker+0xec>
  6240. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  6241. 8002eda: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  6242. 8002ede: 3301 adds r3, #1
  6243. 8002ee0: f887 305f strb.w r3, [r7, #95] @ 0x5f
  6244. 8002ee4: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  6245. 8002ee8: 2b03 cmp r3, #3
  6246. 8002eea: d9e0 bls.n 8002eae <MqttConnectBroker+0xa6>
  6247. }
  6248. }
  6249. printf ("MQTT_ConnectBroker O.K.\n");
  6250. 8002eec: 4810 ldr r0, [pc, #64] @ (8002f30 <MqttConnectBroker+0x128>)
  6251. 8002eee: f027 fc9d bl 802a82c <puts>
  6252. return MQTT_SUCCESS;
  6253. 8002ef2: 2300 movs r3, #0
  6254. }
  6255. 8002ef4: 4618 mov r0, r3
  6256. 8002ef6: 3760 adds r7, #96 @ 0x60
  6257. 8002ef8: 46bd mov sp, r7
  6258. 8002efa: bd80 pop {r7, pc}
  6259. 8002efc: 24000720 .word 0x24000720
  6260. 8002f00: 0802d678 .word 0x0802d678
  6261. 8002f04: 0802d688 .word 0x0802d688
  6262. 8002f08: 24000b9c .word 0x24000b9c
  6263. 8002f0c: 2400079c .word 0x2400079c
  6264. 8002f10: 24000730 .word 0x24000730
  6265. 8002f14: 0802d704 .word 0x0802d704
  6266. 8002f18: 0802d6a0 .word 0x0802d6a0
  6267. 8002f1c: 0802d6ac .word 0x0802d6ac
  6268. 8002f20: 0802d6b4 .word 0x0802d6b4
  6269. 8002f24: 080318d8 .word 0x080318d8
  6270. 8002f28: 08003099 .word 0x08003099
  6271. 8002f2c: 0802d6d4 .word 0x0802d6d4
  6272. 8002f30: 0802d6ec .word 0x0802d6ec
  6273. 08002f34 <RelayCtrl>:
  6274. void RelayCtrl (int32_t relayNumber, int32_t relayTimeOn) {
  6275. 8002f34: b580 push {r7, lr}
  6276. 8002f36: b082 sub sp, #8
  6277. 8002f38: af00 add r7, sp, #0
  6278. 8002f3a: 6078 str r0, [r7, #4]
  6279. 8002f3c: 6039 str r1, [r7, #0]
  6280. switch (relayNumber) {
  6281. 8002f3e: 687b ldr r3, [r7, #4]
  6282. 8002f40: 3b01 subs r3, #1
  6283. 8002f42: 2b03 cmp r3, #3
  6284. 8002f44: f200 8098 bhi.w 8003078 <RelayCtrl+0x144>
  6285. 8002f48: a201 add r2, pc, #4 @ (adr r2, 8002f50 <RelayCtrl+0x1c>)
  6286. 8002f4a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  6287. 8002f4e: bf00 nop
  6288. 8002f50: 08002f61 .word 0x08002f61
  6289. 8002f54: 08002fa7 .word 0x08002fa7
  6290. 8002f58: 08002fed .word 0x08002fed
  6291. 8002f5c: 08003033 .word 0x08003033
  6292. case 1:
  6293. if (relayTimeOn > 0) {
  6294. 8002f60: 683b ldr r3, [r7, #0]
  6295. 8002f62: 2b00 cmp r3, #0
  6296. 8002f64: dd0b ble.n 8002f7e <RelayCtrl+0x4a>
  6297. osTimerStart (relay1TimerHandle, relayTimeOn * 1000);
  6298. 8002f66: 4b47 ldr r3, [pc, #284] @ (8003084 <RelayCtrl+0x150>)
  6299. 8002f68: 681a ldr r2, [r3, #0]
  6300. 8002f6a: 683b ldr r3, [r7, #0]
  6301. 8002f6c: f44f 717a mov.w r1, #1000 @ 0x3e8
  6302. 8002f70: fb01 f303 mul.w r3, r1, r3
  6303. 8002f74: 4619 mov r1, r3
  6304. 8002f76: 4610 mov r0, r2
  6305. 8002f78: f00e fa98 bl 80114ac <osTimerStart>
  6306. 8002f7c: e004 b.n 8002f88 <RelayCtrl+0x54>
  6307. } else {
  6308. osTimerStop (relay1TimerHandle);
  6309. 8002f7e: 4b41 ldr r3, [pc, #260] @ (8003084 <RelayCtrl+0x150>)
  6310. 8002f80: 681b ldr r3, [r3, #0]
  6311. 8002f82: 4618 mov r0, r3
  6312. 8002f84: f00e fac0 bl 8011508 <osTimerStop>
  6313. }
  6314. if (relayTimeOn != 0) {
  6315. 8002f88: 683b ldr r3, [r7, #0]
  6316. 8002f8a: 2b00 cmp r3, #0
  6317. 8002f8c: d005 beq.n 8002f9a <RelayCtrl+0x66>
  6318. HAL_GPIO_WritePin (GPIOE, GPIO_PIN_5, GPIO_PIN_SET);
  6319. 8002f8e: 2201 movs r2, #1
  6320. 8002f90: 2120 movs r1, #32
  6321. 8002f92: 483d ldr r0, [pc, #244] @ (8003088 <RelayCtrl+0x154>)
  6322. 8002f94: f007 f876 bl 800a084 <HAL_GPIO_WritePin>
  6323. } else {
  6324. HAL_GPIO_WritePin (GPIOE, GPIO_PIN_5, GPIO_PIN_RESET);
  6325. }
  6326. break;
  6327. 8002f98: e06f b.n 800307a <RelayCtrl+0x146>
  6328. HAL_GPIO_WritePin (GPIOE, GPIO_PIN_5, GPIO_PIN_RESET);
  6329. 8002f9a: 2200 movs r2, #0
  6330. 8002f9c: 2120 movs r1, #32
  6331. 8002f9e: 483a ldr r0, [pc, #232] @ (8003088 <RelayCtrl+0x154>)
  6332. 8002fa0: f007 f870 bl 800a084 <HAL_GPIO_WritePin>
  6333. break;
  6334. 8002fa4: e069 b.n 800307a <RelayCtrl+0x146>
  6335. case 2:
  6336. if (relayTimeOn > 0) {
  6337. 8002fa6: 683b ldr r3, [r7, #0]
  6338. 8002fa8: 2b00 cmp r3, #0
  6339. 8002faa: dd0b ble.n 8002fc4 <RelayCtrl+0x90>
  6340. osTimerStart (relay2TimerHandle, relayTimeOn * 1000);
  6341. 8002fac: 4b37 ldr r3, [pc, #220] @ (800308c <RelayCtrl+0x158>)
  6342. 8002fae: 681a ldr r2, [r3, #0]
  6343. 8002fb0: 683b ldr r3, [r7, #0]
  6344. 8002fb2: f44f 717a mov.w r1, #1000 @ 0x3e8
  6345. 8002fb6: fb01 f303 mul.w r3, r1, r3
  6346. 8002fba: 4619 mov r1, r3
  6347. 8002fbc: 4610 mov r0, r2
  6348. 8002fbe: f00e fa75 bl 80114ac <osTimerStart>
  6349. 8002fc2: e004 b.n 8002fce <RelayCtrl+0x9a>
  6350. } else {
  6351. osTimerStop (relay2TimerHandle);
  6352. 8002fc4: 4b31 ldr r3, [pc, #196] @ (800308c <RelayCtrl+0x158>)
  6353. 8002fc6: 681b ldr r3, [r3, #0]
  6354. 8002fc8: 4618 mov r0, r3
  6355. 8002fca: f00e fa9d bl 8011508 <osTimerStop>
  6356. }
  6357. if (relayTimeOn != 0) {
  6358. 8002fce: 683b ldr r3, [r7, #0]
  6359. 8002fd0: 2b00 cmp r3, #0
  6360. 8002fd2: d005 beq.n 8002fe0 <RelayCtrl+0xac>
  6361. HAL_GPIO_WritePin (GPIOE, GPIO_PIN_3, GPIO_PIN_SET);
  6362. 8002fd4: 2201 movs r2, #1
  6363. 8002fd6: 2108 movs r1, #8
  6364. 8002fd8: 482b ldr r0, [pc, #172] @ (8003088 <RelayCtrl+0x154>)
  6365. 8002fda: f007 f853 bl 800a084 <HAL_GPIO_WritePin>
  6366. } else {
  6367. HAL_GPIO_WritePin (GPIOE, GPIO_PIN_3, GPIO_PIN_RESET);
  6368. }
  6369. break;
  6370. 8002fde: e04c b.n 800307a <RelayCtrl+0x146>
  6371. HAL_GPIO_WritePin (GPIOE, GPIO_PIN_3, GPIO_PIN_RESET);
  6372. 8002fe0: 2200 movs r2, #0
  6373. 8002fe2: 2108 movs r1, #8
  6374. 8002fe4: 4828 ldr r0, [pc, #160] @ (8003088 <RelayCtrl+0x154>)
  6375. 8002fe6: f007 f84d bl 800a084 <HAL_GPIO_WritePin>
  6376. break;
  6377. 8002fea: e046 b.n 800307a <RelayCtrl+0x146>
  6378. case 3:
  6379. if (relayTimeOn > 0) {
  6380. 8002fec: 683b ldr r3, [r7, #0]
  6381. 8002fee: 2b00 cmp r3, #0
  6382. 8002ff0: dd0b ble.n 800300a <RelayCtrl+0xd6>
  6383. osTimerStart (relay3TimerHandle, relayTimeOn * 1000);
  6384. 8002ff2: 4b27 ldr r3, [pc, #156] @ (8003090 <RelayCtrl+0x15c>)
  6385. 8002ff4: 681a ldr r2, [r3, #0]
  6386. 8002ff6: 683b ldr r3, [r7, #0]
  6387. 8002ff8: f44f 717a mov.w r1, #1000 @ 0x3e8
  6388. 8002ffc: fb01 f303 mul.w r3, r1, r3
  6389. 8003000: 4619 mov r1, r3
  6390. 8003002: 4610 mov r0, r2
  6391. 8003004: f00e fa52 bl 80114ac <osTimerStart>
  6392. 8003008: e004 b.n 8003014 <RelayCtrl+0xe0>
  6393. } else {
  6394. osTimerStop (relay3TimerHandle);
  6395. 800300a: 4b21 ldr r3, [pc, #132] @ (8003090 <RelayCtrl+0x15c>)
  6396. 800300c: 681b ldr r3, [r3, #0]
  6397. 800300e: 4618 mov r0, r3
  6398. 8003010: f00e fa7a bl 8011508 <osTimerStop>
  6399. }
  6400. if (relayTimeOn != 0) {
  6401. 8003014: 683b ldr r3, [r7, #0]
  6402. 8003016: 2b00 cmp r3, #0
  6403. 8003018: d005 beq.n 8003026 <RelayCtrl+0xf2>
  6404. HAL_GPIO_WritePin (GPIOE, GPIO_PIN_4, GPIO_PIN_SET);
  6405. 800301a: 2201 movs r2, #1
  6406. 800301c: 2110 movs r1, #16
  6407. 800301e: 481a ldr r0, [pc, #104] @ (8003088 <RelayCtrl+0x154>)
  6408. 8003020: f007 f830 bl 800a084 <HAL_GPIO_WritePin>
  6409. } else {
  6410. HAL_GPIO_WritePin (GPIOE, GPIO_PIN_4, GPIO_PIN_RESET);
  6411. }
  6412. break;
  6413. 8003024: e029 b.n 800307a <RelayCtrl+0x146>
  6414. HAL_GPIO_WritePin (GPIOE, GPIO_PIN_4, GPIO_PIN_RESET);
  6415. 8003026: 2200 movs r2, #0
  6416. 8003028: 2110 movs r1, #16
  6417. 800302a: 4817 ldr r0, [pc, #92] @ (8003088 <RelayCtrl+0x154>)
  6418. 800302c: f007 f82a bl 800a084 <HAL_GPIO_WritePin>
  6419. break;
  6420. 8003030: e023 b.n 800307a <RelayCtrl+0x146>
  6421. case 4:
  6422. if (relayTimeOn > 0) {
  6423. 8003032: 683b ldr r3, [r7, #0]
  6424. 8003034: 2b00 cmp r3, #0
  6425. 8003036: dd0b ble.n 8003050 <RelayCtrl+0x11c>
  6426. osTimerStart (relay4TimerHandle, relayTimeOn * 1000);
  6427. 8003038: 4b16 ldr r3, [pc, #88] @ (8003094 <RelayCtrl+0x160>)
  6428. 800303a: 681a ldr r2, [r3, #0]
  6429. 800303c: 683b ldr r3, [r7, #0]
  6430. 800303e: f44f 717a mov.w r1, #1000 @ 0x3e8
  6431. 8003042: fb01 f303 mul.w r3, r1, r3
  6432. 8003046: 4619 mov r1, r3
  6433. 8003048: 4610 mov r0, r2
  6434. 800304a: f00e fa2f bl 80114ac <osTimerStart>
  6435. 800304e: e004 b.n 800305a <RelayCtrl+0x126>
  6436. } else {
  6437. osTimerStop (relay4TimerHandle);
  6438. 8003050: 4b10 ldr r3, [pc, #64] @ (8003094 <RelayCtrl+0x160>)
  6439. 8003052: 681b ldr r3, [r3, #0]
  6440. 8003054: 4618 mov r0, r3
  6441. 8003056: f00e fa57 bl 8011508 <osTimerStop>
  6442. }
  6443. if (relayTimeOn != 0) {
  6444. 800305a: 683b ldr r3, [r7, #0]
  6445. 800305c: 2b00 cmp r3, #0
  6446. 800305e: d005 beq.n 800306c <RelayCtrl+0x138>
  6447. HAL_GPIO_WritePin (GPIOE, GPIO_PIN_2, GPIO_PIN_SET);
  6448. 8003060: 2201 movs r2, #1
  6449. 8003062: 2104 movs r1, #4
  6450. 8003064: 4808 ldr r0, [pc, #32] @ (8003088 <RelayCtrl+0x154>)
  6451. 8003066: f007 f80d bl 800a084 <HAL_GPIO_WritePin>
  6452. } else {
  6453. HAL_GPIO_WritePin (GPIOE, GPIO_PIN_2, GPIO_PIN_RESET);
  6454. }
  6455. break;
  6456. 800306a: e006 b.n 800307a <RelayCtrl+0x146>
  6457. HAL_GPIO_WritePin (GPIOE, GPIO_PIN_2, GPIO_PIN_RESET);
  6458. 800306c: 2200 movs r2, #0
  6459. 800306e: 2104 movs r1, #4
  6460. 8003070: 4805 ldr r0, [pc, #20] @ (8003088 <RelayCtrl+0x154>)
  6461. 8003072: f007 f807 bl 800a084 <HAL_GPIO_WritePin>
  6462. break;
  6463. 8003076: e000 b.n 800307a <RelayCtrl+0x146>
  6464. default: break;
  6465. 8003078: bf00 nop
  6466. }
  6467. }
  6468. 800307a: bf00 nop
  6469. 800307c: 3708 adds r7, #8
  6470. 800307e: 46bd mov sp, r7
  6471. 8003080: bd80 pop {r7, pc}
  6472. 8003082: bf00 nop
  6473. 8003084: 24000658 .word 0x24000658
  6474. 8003088: 58021000 .word 0x58021000
  6475. 800308c: 24000688 .word 0x24000688
  6476. 8003090: 240006b8 .word 0x240006b8
  6477. 8003094: 240006e8 .word 0x240006e8
  6478. 08003098 <MqttMessageArrived>:
  6479. void MqttMessageArrived (MessageData* msg) {
  6480. 8003098: b580 push {r7, lr}
  6481. 800309a: b09c sub sp, #112 @ 0x70
  6482. 800309c: af00 add r7, sp, #0
  6483. 800309e: 6078 str r0, [r7, #4]
  6484. SerialProtocolCommands spCommand = spUnknown;
  6485. 80030a0: 230f movs r3, #15
  6486. 80030a2: f887 306f strb.w r3, [r7, #111] @ 0x6f
  6487. BoardNoOverTopic topicForBoard = unknownBoard;
  6488. 80030a6: 2305 movs r3, #5
  6489. 80030a8: f887 306e strb.w r3, [r7, #110] @ 0x6e
  6490. uint8_t boardNumber = 0;
  6491. 80030ac: 2300 movs r3, #0
  6492. 80030ae: f887 306d strb.w r3, [r7, #109] @ 0x6d
  6493. MQTTMessage* message = msg->message;
  6494. 80030b2: 687b ldr r3, [r7, #4]
  6495. 80030b4: 681b ldr r3, [r3, #0]
  6496. 80030b6: 657b str r3, [r7, #84] @ 0x54
  6497. char topicName[32] = { 0 };
  6498. 80030b8: 2300 movs r3, #0
  6499. 80030ba: 61fb str r3, [r7, #28]
  6500. 80030bc: f107 0320 add.w r3, r7, #32
  6501. 80030c0: 2200 movs r2, #0
  6502. 80030c2: 601a str r2, [r3, #0]
  6503. 80030c4: 605a str r2, [r3, #4]
  6504. 80030c6: 609a str r2, [r3, #8]
  6505. 80030c8: 60da str r2, [r3, #12]
  6506. 80030ca: 611a str r2, [r3, #16]
  6507. 80030cc: 615a str r2, [r3, #20]
  6508. 80030ce: 619a str r2, [r3, #24]
  6509. memcpy (topicName, msg->topicName->lenstring.data, msg->topicName->lenstring.len);
  6510. 80030d0: 687b ldr r3, [r7, #4]
  6511. 80030d2: 685b ldr r3, [r3, #4]
  6512. 80030d4: 6899 ldr r1, [r3, #8]
  6513. 80030d6: 687b ldr r3, [r7, #4]
  6514. 80030d8: 685b ldr r3, [r3, #4]
  6515. 80030da: 685b ldr r3, [r3, #4]
  6516. 80030dc: 461a mov r2, r3
  6517. 80030de: f107 031c add.w r3, r7, #28
  6518. 80030e2: 4618 mov r0, r3
  6519. 80030e4: f027 fdc3 bl 802ac6e <memcpy>
  6520. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  6521. 80030e8: 2300 movs r3, #0
  6522. 80030ea: f887 306d strb.w r3, [r7, #109] @ 0x6d
  6523. 80030ee: e017 b.n 8003120 <MqttMessageArrived+0x88>
  6524. if (strcmp (topicName, subscribeTopicNames[boardNumber]) == 0) {
  6525. 80030f0: f897 306d ldrb.w r3, [r7, #109] @ 0x6d
  6526. 80030f4: 4ab3 ldr r2, [pc, #716] @ (80033c4 <MqttMessageArrived+0x32c>)
  6527. 80030f6: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  6528. 80030fa: f107 031c add.w r3, r7, #28
  6529. 80030fe: 4611 mov r1, r2
  6530. 8003100: 4618 mov r0, r3
  6531. 8003102: f7fd f8ed bl 80002e0 <strcmp>
  6532. 8003106: 4603 mov r3, r0
  6533. 8003108: 2b00 cmp r3, #0
  6534. 800310a: d104 bne.n 8003116 <MqttMessageArrived+0x7e>
  6535. topicForBoard = (BoardNoOverTopic)(boardNumber);
  6536. 800310c: f897 306d ldrb.w r3, [r7, #109] @ 0x6d
  6537. 8003110: f887 306e strb.w r3, [r7, #110] @ 0x6e
  6538. break;
  6539. 8003114: e008 b.n 8003128 <MqttMessageArrived+0x90>
  6540. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  6541. 8003116: f897 306d ldrb.w r3, [r7, #109] @ 0x6d
  6542. 800311a: 3301 adds r3, #1
  6543. 800311c: f887 306d strb.w r3, [r7, #109] @ 0x6d
  6544. 8003120: f897 306d ldrb.w r3, [r7, #109] @ 0x6d
  6545. 8003124: 2b03 cmp r3, #3
  6546. 8003126: d9e3 bls.n 80030f0 <MqttMessageArrived+0x58>
  6547. }
  6548. }
  6549. cJSON* json = cJSON_Parse (message->payload);
  6550. 8003128: 6d7b ldr r3, [r7, #84] @ 0x54
  6551. 800312a: 689b ldr r3, [r3, #8]
  6552. 800312c: 4618 mov r0, r3
  6553. 800312e: f7fe fa11 bl 8001554 <cJSON_Parse>
  6554. 8003132: 6538 str r0, [r7, #80] @ 0x50
  6555. const cJSON* objectItem = NULL;
  6556. 8003134: 2300 movs r3, #0
  6557. 8003136: 64fb str r3, [r7, #76] @ 0x4c
  6558. InterProcessData data = { 0 };
  6559. 8003138: f107 030c add.w r3, r7, #12
  6560. 800313c: 2200 movs r2, #0
  6561. 800313e: 601a str r2, [r3, #0]
  6562. 8003140: 605a str r2, [r3, #4]
  6563. 8003142: 609a str r2, [r3, #8]
  6564. 8003144: 60da str r2, [r3, #12]
  6565. uint32_t arraySize = 0;
  6566. 8003146: 2300 movs r3, #0
  6567. 8003148: 64bb str r3, [r7, #72] @ 0x48
  6568. for (int topicCmdNumber = 0; topicCmdNumber < MAX_COMMANDS_IN_MQTT_PAYLOAD; topicCmdNumber++) {
  6569. 800314a: 2300 movs r3, #0
  6570. 800314c: 66bb str r3, [r7, #104] @ 0x68
  6571. 800314e: e193 b.n 8003478 <MqttMessageArrived+0x3e0>
  6572. spCommand = spUnknown;
  6573. 8003150: 230f movs r3, #15
  6574. 8003152: f887 306f strb.w r3, [r7, #111] @ 0x6f
  6575. objectItem = cJSON_GetObjectItemCaseSensitive (json, topicCommands[topicCmdNumber]);
  6576. 8003156: 4a9c ldr r2, [pc, #624] @ (80033c8 <MqttMessageArrived+0x330>)
  6577. 8003158: 6ebb ldr r3, [r7, #104] @ 0x68
  6578. 800315a: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  6579. 800315e: 4619 mov r1, r3
  6580. 8003160: 6d38 ldr r0, [r7, #80] @ 0x50
  6581. 8003162: f7fe fd61 bl 8001c28 <cJSON_GetObjectItemCaseSensitive>
  6582. 8003166: 64f8 str r0, [r7, #76] @ 0x4c
  6583. if (objectItem != NULL) {
  6584. 8003168: 6cfb ldr r3, [r7, #76] @ 0x4c
  6585. 800316a: 2b00 cmp r3, #0
  6586. 800316c: f000 8181 beq.w 8003472 <MqttMessageArrived+0x3da>
  6587. switch (topicCmdNumber) {
  6588. 8003170: 6ebb ldr r3, [r7, #104] @ 0x68
  6589. 8003172: 2b0d cmp r3, #13
  6590. 8003174: f200 8120 bhi.w 80033b8 <MqttMessageArrived+0x320>
  6591. 8003178: a201 add r2, pc, #4 @ (adr r2, 8003180 <MqttMessageArrived+0xe8>)
  6592. 800317a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  6593. 800317e: bf00 nop
  6594. 8003180: 080031b9 .word 0x080031b9
  6595. 8003184: 080031bf .word 0x080031bf
  6596. 8003188: 080031cd .word 0x080031cd
  6597. 800318c: 0800323d .word 0x0800323d
  6598. 8003190: 0800324d .word 0x0800324d
  6599. 8003194: 08003253 .word 0x08003253
  6600. 8003198: 0800327d .word 0x0800327d
  6601. 800319c: 08003283 .word 0x08003283
  6602. 80031a0: 080032ef .word 0x080032ef
  6603. 80031a4: 08003309 .word 0x08003309
  6604. 80031a8: 08003323 .word 0x08003323
  6605. 80031ac: 08003329 .word 0x08003329
  6606. 80031b0: 08003337 .word 0x08003337
  6607. 80031b4: 08003345 .word 0x08003345
  6608. case fanSpeedTopic: spCommand = spSetFanSpeed;
  6609. 80031b8: 2302 movs r3, #2
  6610. 80031ba: f887 306f strb.w r3, [r7, #111] @ 0x6f
  6611. case motorXonTopic:
  6612. if (spCommand == spUnknown) {
  6613. 80031be: f897 306f ldrb.w r3, [r7, #111] @ 0x6f
  6614. 80031c2: 2b0f cmp r3, #15
  6615. 80031c4: d102 bne.n 80031cc <MqttMessageArrived+0x134>
  6616. spCommand = spSetMotorXOn;
  6617. 80031c6: 2303 movs r3, #3
  6618. 80031c8: f887 306f strb.w r3, [r7, #111] @ 0x6f
  6619. }
  6620. case motorYonTopic:
  6621. if (spCommand == spUnknown) {
  6622. 80031cc: f897 306f ldrb.w r3, [r7, #111] @ 0x6f
  6623. 80031d0: 2b0f cmp r3, #15
  6624. 80031d2: d102 bne.n 80031da <MqttMessageArrived+0x142>
  6625. spCommand = spSetMotorYOn;
  6626. 80031d4: 2304 movs r3, #4
  6627. 80031d6: f887 306f strb.w r3, [r7, #111] @ 0x6f
  6628. }
  6629. if (cJSON_IsArray (objectItem)) {
  6630. 80031da: 6cf8 ldr r0, [r7, #76] @ 0x4c
  6631. 80031dc: f7fe fd4a bl 8001c74 <cJSON_IsArray>
  6632. 80031e0: 4603 mov r3, r0
  6633. 80031e2: 2b00 cmp r3, #0
  6634. 80031e4: f000 80ea beq.w 80033bc <MqttMessageArrived+0x324>
  6635. data.spCommand = spCommand;
  6636. 80031e8: f897 306f ldrb.w r3, [r7, #111] @ 0x6f
  6637. 80031ec: 733b strb r3, [r7, #12]
  6638. arraySize = cJSON_GetArraySize (objectItem);
  6639. 80031ee: 6cf8 ldr r0, [r7, #76] @ 0x4c
  6640. 80031f0: f7fe fc7a bl 8001ae8 <cJSON_GetArraySize>
  6641. 80031f4: 4603 mov r3, r0
  6642. 80031f6: 64bb str r3, [r7, #72] @ 0x48
  6643. if (arraySize == 2) {
  6644. 80031f8: 6cbb ldr r3, [r7, #72] @ 0x48
  6645. 80031fa: 2b02 cmp r3, #2
  6646. 80031fc: f040 80de bne.w 80033bc <MqttMessageArrived+0x324>
  6647. for (int i = 0; i < arraySize; i++) {
  6648. 8003200: 2300 movs r3, #0
  6649. 8003202: 667b str r3, [r7, #100] @ 0x64
  6650. 8003204: e015 b.n 8003232 <MqttMessageArrived+0x19a>
  6651. cJSON* item = cJSON_GetArrayItem (objectItem, i);
  6652. 8003206: 6e79 ldr r1, [r7, #100] @ 0x64
  6653. 8003208: 6cf8 ldr r0, [r7, #76] @ 0x4c
  6654. 800320a: f7fe fcb1 bl 8001b70 <cJSON_GetArrayItem>
  6655. 800320e: 63f8 str r0, [r7, #60] @ 0x3c
  6656. if (cJSON_IsNumber (item)) {
  6657. 8003210: 6bf8 ldr r0, [r7, #60] @ 0x3c
  6658. 8003212: f7fe fd18 bl 8001c46 <cJSON_IsNumber>
  6659. 8003216: 4603 mov r3, r0
  6660. 8003218: 2b00 cmp r3, #0
  6661. 800321a: d007 beq.n 800322c <MqttMessageArrived+0x194>
  6662. data.values.integerValues.value[i] = item->valueint;
  6663. 800321c: 6bfb ldr r3, [r7, #60] @ 0x3c
  6664. 800321e: 695a ldr r2, [r3, #20]
  6665. 8003220: 6e7b ldr r3, [r7, #100] @ 0x64
  6666. 8003222: 009b lsls r3, r3, #2
  6667. 8003224: 3370 adds r3, #112 @ 0x70
  6668. 8003226: 443b add r3, r7
  6669. 8003228: f843 2c60 str.w r2, [r3, #-96]
  6670. for (int i = 0; i < arraySize; i++) {
  6671. 800322c: 6e7b ldr r3, [r7, #100] @ 0x64
  6672. 800322e: 3301 adds r3, #1
  6673. 8003230: 667b str r3, [r7, #100] @ 0x64
  6674. 8003232: 6e7b ldr r3, [r7, #100] @ 0x64
  6675. 8003234: 6cba ldr r2, [r7, #72] @ 0x48
  6676. 8003236: 429a cmp r2, r3
  6677. 8003238: d8e5 bhi.n 8003206 <MqttMessageArrived+0x16e>
  6678. }
  6679. }
  6680. }
  6681. }
  6682. break;
  6683. 800323a: e0bf b.n 80033bc <MqttMessageArrived+0x324>
  6684. case diodeTopic:
  6685. data.spCommand = spSetDiodeOn;
  6686. 800323c: 2307 movs r3, #7
  6687. 800323e: 733b strb r3, [r7, #12]
  6688. data.values.integerValues.value[0] = objectItem->valueint;
  6689. 8003240: 6cfb ldr r3, [r7, #76] @ 0x4c
  6690. 8003242: 695b ldr r3, [r3, #20]
  6691. 8003244: 613b str r3, [r7, #16]
  6692. data.values.integerValues.value[1] = 0;
  6693. 8003246: 2300 movs r3, #0
  6694. 8003248: 617b str r3, [r7, #20]
  6695. break;
  6696. 800324a: e0c0 b.n 80033ce <MqttMessageArrived+0x336>
  6697. case motorXMaxCurrentTopic: spCommand = spSetmotorXMaxCurrent;
  6698. 800324c: 2305 movs r3, #5
  6699. 800324e: f887 306f strb.w r3, [r7, #111] @ 0x6f
  6700. case motorYMaxCurrentTopic:
  6701. if (spCommand == spUnknown) {
  6702. 8003252: f897 306f ldrb.w r3, [r7, #111] @ 0x6f
  6703. 8003256: 2b0f cmp r3, #15
  6704. 8003258: d102 bne.n 8003260 <MqttMessageArrived+0x1c8>
  6705. spCommand = spSetmotorYMaxCurrent;
  6706. 800325a: 2306 movs r3, #6
  6707. 800325c: f887 306f strb.w r3, [r7, #111] @ 0x6f
  6708. }
  6709. data.spCommand = spCommand;
  6710. 8003260: f897 306f ldrb.w r3, [r7, #111] @ 0x6f
  6711. 8003264: 733b strb r3, [r7, #12]
  6712. data.values.flaotValues.value[0] = objectItem->valuedouble;
  6713. 8003266: 6cfb ldr r3, [r7, #76] @ 0x4c
  6714. 8003268: ed93 7b06 vldr d7, [r3, #24]
  6715. 800326c: eef7 7bc7 vcvt.f32.f64 s15, d7
  6716. 8003270: edc7 7a04 vstr s15, [r7, #16]
  6717. data.values.flaotValues.value[1] = 0.0;
  6718. 8003274: f04f 0300 mov.w r3, #0
  6719. 8003278: 617b str r3, [r7, #20]
  6720. break;
  6721. 800327a: e0a8 b.n 80033ce <MqttMessageArrived+0x336>
  6722. case clearPeakElectricalMeasurementsTopic: data.spCommand = spClearPeakMeasurments; break;
  6723. 800327c: 2308 movs r3, #8
  6724. 800327e: 733b strb r3, [r7, #12]
  6725. 8003280: e0a5 b.n 80033ce <MqttMessageArrived+0x336>
  6726. case mainBoardRelayTopic:
  6727. if (cJSON_IsArray (objectItem)) {
  6728. 8003282: 6cf8 ldr r0, [r7, #76] @ 0x4c
  6729. 8003284: f7fe fcf6 bl 8001c74 <cJSON_IsArray>
  6730. 8003288: 4603 mov r3, r0
  6731. 800328a: 2b00 cmp r3, #0
  6732. 800328c: f000 8098 beq.w 80033c0 <MqttMessageArrived+0x328>
  6733. arraySize = cJSON_GetArraySize (objectItem);
  6734. 8003290: 6cf8 ldr r0, [r7, #76] @ 0x4c
  6735. 8003292: f7fe fc29 bl 8001ae8 <cJSON_GetArraySize>
  6736. 8003296: 4603 mov r3, r0
  6737. 8003298: 64bb str r3, [r7, #72] @ 0x48
  6738. if (arraySize == 2) {
  6739. 800329a: 6cbb ldr r3, [r7, #72] @ 0x48
  6740. 800329c: 2b02 cmp r3, #2
  6741. 800329e: f040 808f bne.w 80033c0 <MqttMessageArrived+0x328>
  6742. int32_t relayNumber = -1;
  6743. 80032a2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  6744. 80032a6: 663b str r3, [r7, #96] @ 0x60
  6745. cJSON* item = cJSON_GetArrayItem (objectItem, 0);
  6746. 80032a8: 2100 movs r1, #0
  6747. 80032aa: 6cf8 ldr r0, [r7, #76] @ 0x4c
  6748. 80032ac: f7fe fc60 bl 8001b70 <cJSON_GetArrayItem>
  6749. 80032b0: 6438 str r0, [r7, #64] @ 0x40
  6750. if (cJSON_IsNumber (item)) {
  6751. 80032b2: 6c38 ldr r0, [r7, #64] @ 0x40
  6752. 80032b4: f7fe fcc7 bl 8001c46 <cJSON_IsNumber>
  6753. 80032b8: 4603 mov r3, r0
  6754. 80032ba: 2b00 cmp r3, #0
  6755. 80032bc: d002 beq.n 80032c4 <MqttMessageArrived+0x22c>
  6756. relayNumber = item->valueint;
  6757. 80032be: 6c3b ldr r3, [r7, #64] @ 0x40
  6758. 80032c0: 695b ldr r3, [r3, #20]
  6759. 80032c2: 663b str r3, [r7, #96] @ 0x60
  6760. }
  6761. int32_t relayTimeOn = 0;
  6762. 80032c4: 2300 movs r3, #0
  6763. 80032c6: 65fb str r3, [r7, #92] @ 0x5c
  6764. item = cJSON_GetArrayItem (objectItem, 1);
  6765. 80032c8: 2101 movs r1, #1
  6766. 80032ca: 6cf8 ldr r0, [r7, #76] @ 0x4c
  6767. 80032cc: f7fe fc50 bl 8001b70 <cJSON_GetArrayItem>
  6768. 80032d0: 6438 str r0, [r7, #64] @ 0x40
  6769. if (cJSON_IsNumber (item)) {
  6770. 80032d2: 6c38 ldr r0, [r7, #64] @ 0x40
  6771. 80032d4: f7fe fcb7 bl 8001c46 <cJSON_IsNumber>
  6772. 80032d8: 4603 mov r3, r0
  6773. 80032da: 2b00 cmp r3, #0
  6774. 80032dc: d002 beq.n 80032e4 <MqttMessageArrived+0x24c>
  6775. relayTimeOn = item->valueint;
  6776. 80032de: 6c3b ldr r3, [r7, #64] @ 0x40
  6777. 80032e0: 695b ldr r3, [r3, #20]
  6778. 80032e2: 65fb str r3, [r7, #92] @ 0x5c
  6779. }
  6780. RelayCtrl (relayNumber, relayTimeOn);
  6781. 80032e4: 6df9 ldr r1, [r7, #92] @ 0x5c
  6782. 80032e6: 6e38 ldr r0, [r7, #96] @ 0x60
  6783. 80032e8: f7ff fe24 bl 8002f34 <RelayCtrl>
  6784. }
  6785. }
  6786. break;
  6787. 80032ec: e068 b.n 80033c0 <MqttMessageArrived+0x328>
  6788. case setEncoderXValue:
  6789. data.spCommand = spSetEncoderXValue;
  6790. 80032ee: 2309 movs r3, #9
  6791. 80032f0: 733b strb r3, [r7, #12]
  6792. data.values.flaotValues.value[0] = objectItem->valuedouble;
  6793. 80032f2: 6cfb ldr r3, [r7, #76] @ 0x4c
  6794. 80032f4: ed93 7b06 vldr d7, [r3, #24]
  6795. 80032f8: eef7 7bc7 vcvt.f32.f64 s15, d7
  6796. 80032fc: edc7 7a04 vstr s15, [r7, #16]
  6797. data.values.flaotValues.value[1] = 0;
  6798. 8003300: f04f 0300 mov.w r3, #0
  6799. 8003304: 617b str r3, [r7, #20]
  6800. break;
  6801. 8003306: e062 b.n 80033ce <MqttMessageArrived+0x336>
  6802. case setEncoderYValue:
  6803. data.spCommand = spSetEncoderYValue;
  6804. 8003308: 230a movs r3, #10
  6805. 800330a: 733b strb r3, [r7, #12]
  6806. data.values.flaotValues.value[0] = objectItem->valuedouble;
  6807. 800330c: 6cfb ldr r3, [r7, #76] @ 0x4c
  6808. 800330e: ed93 7b06 vldr d7, [r3, #24]
  6809. 8003312: eef7 7bc7 vcvt.f32.f64 s15, d7
  6810. 8003316: edc7 7a04 vstr s15, [r7, #16]
  6811. data.values.flaotValues.value[1] = 0;
  6812. 800331a: f04f 0300 mov.w r3, #0
  6813. 800331e: 617b str r3, [r7, #20]
  6814. break;
  6815. 8003320: e055 b.n 80033ce <MqttMessageArrived+0x336>
  6816. case setVoltageMeasGains:
  6817. spCommand = spSetVoltageMeasGains;
  6818. 8003322: 230b movs r3, #11
  6819. 8003324: f887 306f strb.w r3, [r7, #111] @ 0x6f
  6820. case setVoltageMeasOffsets:
  6821. if (spCommand == spUnknown) {
  6822. 8003328: f897 306f ldrb.w r3, [r7, #111] @ 0x6f
  6823. 800332c: 2b0f cmp r3, #15
  6824. 800332e: d102 bne.n 8003336 <MqttMessageArrived+0x29e>
  6825. spCommand = spSetVoltageMeasOffsets;
  6826. 8003330: 230c movs r3, #12
  6827. 8003332: f887 306f strb.w r3, [r7, #111] @ 0x6f
  6828. }
  6829. case setCurrentMeasGains:
  6830. if (spCommand == spUnknown) {
  6831. 8003336: f897 306f ldrb.w r3, [r7, #111] @ 0x6f
  6832. 800333a: 2b0f cmp r3, #15
  6833. 800333c: d102 bne.n 8003344 <MqttMessageArrived+0x2ac>
  6834. spCommand = spSetCurrentMeasGains;
  6835. 800333e: 230d movs r3, #13
  6836. 8003340: f887 306f strb.w r3, [r7, #111] @ 0x6f
  6837. }
  6838. case setCurrentMeasOffsets:
  6839. if (spCommand == spUnknown) {
  6840. 8003344: f897 306f ldrb.w r3, [r7, #111] @ 0x6f
  6841. 8003348: 2b0f cmp r3, #15
  6842. 800334a: d102 bne.n 8003352 <MqttMessageArrived+0x2ba>
  6843. spCommand = spSetCurrentMeasOffsets;
  6844. 800334c: 230e movs r3, #14
  6845. 800334e: f887 306f strb.w r3, [r7, #111] @ 0x6f
  6846. }
  6847. if (cJSON_IsArray (objectItem)) {
  6848. 8003352: 6cf8 ldr r0, [r7, #76] @ 0x4c
  6849. 8003354: f7fe fc8e bl 8001c74 <cJSON_IsArray>
  6850. 8003358: 4603 mov r3, r0
  6851. 800335a: 2b00 cmp r3, #0
  6852. 800335c: d036 beq.n 80033cc <MqttMessageArrived+0x334>
  6853. data.spCommand = spCommand;
  6854. 800335e: f897 306f ldrb.w r3, [r7, #111] @ 0x6f
  6855. 8003362: 733b strb r3, [r7, #12]
  6856. arraySize = cJSON_GetArraySize (objectItem);
  6857. 8003364: 6cf8 ldr r0, [r7, #76] @ 0x4c
  6858. 8003366: f7fe fbbf bl 8001ae8 <cJSON_GetArraySize>
  6859. 800336a: 4603 mov r3, r0
  6860. 800336c: 64bb str r3, [r7, #72] @ 0x48
  6861. if (arraySize == 3) {
  6862. 800336e: 6cbb ldr r3, [r7, #72] @ 0x48
  6863. 8003370: 2b03 cmp r3, #3
  6864. 8003372: d12b bne.n 80033cc <MqttMessageArrived+0x334>
  6865. for (int i = 0; i < arraySize; i++) {
  6866. 8003374: 2300 movs r3, #0
  6867. 8003376: 65bb str r3, [r7, #88] @ 0x58
  6868. 8003378: e019 b.n 80033ae <MqttMessageArrived+0x316>
  6869. cJSON* item = cJSON_GetArrayItem (objectItem, i);
  6870. 800337a: 6db9 ldr r1, [r7, #88] @ 0x58
  6871. 800337c: 6cf8 ldr r0, [r7, #76] @ 0x4c
  6872. 800337e: f7fe fbf7 bl 8001b70 <cJSON_GetArrayItem>
  6873. 8003382: 6478 str r0, [r7, #68] @ 0x44
  6874. if (cJSON_IsNumber (item)) {
  6875. 8003384: 6c78 ldr r0, [r7, #68] @ 0x44
  6876. 8003386: f7fe fc5e bl 8001c46 <cJSON_IsNumber>
  6877. 800338a: 4603 mov r3, r0
  6878. 800338c: 2b00 cmp r3, #0
  6879. 800338e: d00b beq.n 80033a8 <MqttMessageArrived+0x310>
  6880. data.values.flaotValues.value[i] = item->valuedouble;
  6881. 8003390: 6c7b ldr r3, [r7, #68] @ 0x44
  6882. 8003392: ed93 7b06 vldr d7, [r3, #24]
  6883. 8003396: eef7 7bc7 vcvt.f32.f64 s15, d7
  6884. 800339a: 6dbb ldr r3, [r7, #88] @ 0x58
  6885. 800339c: 009b lsls r3, r3, #2
  6886. 800339e: 3370 adds r3, #112 @ 0x70
  6887. 80033a0: 443b add r3, r7
  6888. 80033a2: 3b60 subs r3, #96 @ 0x60
  6889. 80033a4: edc3 7a00 vstr s15, [r3]
  6890. for (int i = 0; i < arraySize; i++) {
  6891. 80033a8: 6dbb ldr r3, [r7, #88] @ 0x58
  6892. 80033aa: 3301 adds r3, #1
  6893. 80033ac: 65bb str r3, [r7, #88] @ 0x58
  6894. 80033ae: 6dbb ldr r3, [r7, #88] @ 0x58
  6895. 80033b0: 6cba ldr r2, [r7, #72] @ 0x48
  6896. 80033b2: 429a cmp r2, r3
  6897. 80033b4: d8e1 bhi.n 800337a <MqttMessageArrived+0x2e2>
  6898. }
  6899. }
  6900. }
  6901. }
  6902. break;
  6903. 80033b6: e009 b.n 80033cc <MqttMessageArrived+0x334>
  6904. default: break;
  6905. 80033b8: bf00 nop
  6906. 80033ba: e008 b.n 80033ce <MqttMessageArrived+0x336>
  6907. break;
  6908. 80033bc: bf00 nop
  6909. 80033be: e006 b.n 80033ce <MqttMessageArrived+0x336>
  6910. break;
  6911. 80033c0: bf00 nop
  6912. 80033c2: e004 b.n 80033ce <MqttMessageArrived+0x336>
  6913. 80033c4: 080318d8 .word 0x080318d8
  6914. 80033c8: 080318ec .word 0x080318ec
  6915. break;
  6916. 80033cc: bf00 nop
  6917. }
  6918. switch (topicForBoard) {
  6919. 80033ce: f897 306e ldrb.w r3, [r7, #110] @ 0x6e
  6920. 80033d2: 2b04 cmp r3, #4
  6921. 80033d4: d84c bhi.n 8003470 <MqttMessageArrived+0x3d8>
  6922. 80033d6: a201 add r2, pc, #4 @ (adr r2, 80033dc <MqttMessageArrived+0x344>)
  6923. 80033d8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  6924. 80033dc: 08003471 .word 0x08003471
  6925. 80033e0: 080033f1 .word 0x080033f1
  6926. 80033e4: 08003411 .word 0x08003411
  6927. 80033e8: 08003431 .word 0x08003431
  6928. 80033ec: 08003451 .word 0x08003451
  6929. case main_board: break;
  6930. case board_1:
  6931. if (uart1TaskData.sendCmdToSlaveQueue != NULL) {
  6932. 80033f0: 4b2c ldr r3, [pc, #176] @ (80034a4 <MqttMessageArrived+0x40c>)
  6933. 80033f2: 6adb ldr r3, [r3, #44] @ 0x2c
  6934. 80033f4: 2b00 cmp r3, #0
  6935. 80033f6: d007 beq.n 8003408 <MqttMessageArrived+0x370>
  6936. osMessageQueuePut (uart1TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6937. 80033f8: 4b2a ldr r3, [pc, #168] @ (80034a4 <MqttMessageArrived+0x40c>)
  6938. 80033fa: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6939. 80033fc: f107 010c add.w r1, r7, #12
  6940. 8003400: 2364 movs r3, #100 @ 0x64
  6941. 8003402: 2200 movs r2, #0
  6942. 8003404: f00e fb7c bl 8011b00 <osMessageQueuePut>
  6943. }
  6944. printf ("Send cmd to board 1\n");
  6945. 8003408: 4827 ldr r0, [pc, #156] @ (80034a8 <MqttMessageArrived+0x410>)
  6946. 800340a: f027 fa0f bl 802a82c <puts>
  6947. break;
  6948. 800340e: e030 b.n 8003472 <MqttMessageArrived+0x3da>
  6949. case board_2:
  6950. if (uart3TaskData.sendCmdToSlaveQueue != NULL) {
  6951. 8003410: 4b26 ldr r3, [pc, #152] @ (80034ac <MqttMessageArrived+0x414>)
  6952. 8003412: 6adb ldr r3, [r3, #44] @ 0x2c
  6953. 8003414: 2b00 cmp r3, #0
  6954. 8003416: d007 beq.n 8003428 <MqttMessageArrived+0x390>
  6955. osMessageQueuePut (uart3TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6956. 8003418: 4b24 ldr r3, [pc, #144] @ (80034ac <MqttMessageArrived+0x414>)
  6957. 800341a: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6958. 800341c: f107 010c add.w r1, r7, #12
  6959. 8003420: 2364 movs r3, #100 @ 0x64
  6960. 8003422: 2200 movs r2, #0
  6961. 8003424: f00e fb6c bl 8011b00 <osMessageQueuePut>
  6962. }
  6963. printf ("Send cmd to board 2\n");
  6964. 8003428: 4821 ldr r0, [pc, #132] @ (80034b0 <MqttMessageArrived+0x418>)
  6965. 800342a: f027 f9ff bl 802a82c <puts>
  6966. break;
  6967. 800342e: e020 b.n 8003472 <MqttMessageArrived+0x3da>
  6968. case board_3:
  6969. if (uart6TaskData.sendCmdToSlaveQueue != NULL) {
  6970. 8003430: 4b20 ldr r3, [pc, #128] @ (80034b4 <MqttMessageArrived+0x41c>)
  6971. 8003432: 6adb ldr r3, [r3, #44] @ 0x2c
  6972. 8003434: 2b00 cmp r3, #0
  6973. 8003436: d007 beq.n 8003448 <MqttMessageArrived+0x3b0>
  6974. osMessageQueuePut (uart6TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6975. 8003438: 4b1e ldr r3, [pc, #120] @ (80034b4 <MqttMessageArrived+0x41c>)
  6976. 800343a: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6977. 800343c: f107 010c add.w r1, r7, #12
  6978. 8003440: 2364 movs r3, #100 @ 0x64
  6979. 8003442: 2200 movs r2, #0
  6980. 8003444: f00e fb5c bl 8011b00 <osMessageQueuePut>
  6981. }
  6982. printf ("Send cmd to board 3\n");
  6983. 8003448: 481b ldr r0, [pc, #108] @ (80034b8 <MqttMessageArrived+0x420>)
  6984. 800344a: f027 f9ef bl 802a82c <puts>
  6985. break;
  6986. 800344e: e010 b.n 8003472 <MqttMessageArrived+0x3da>
  6987. case board_4:
  6988. if (uart2TaskData.sendCmdToSlaveQueue != NULL) {
  6989. 8003450: 4b1a ldr r3, [pc, #104] @ (80034bc <MqttMessageArrived+0x424>)
  6990. 8003452: 6adb ldr r3, [r3, #44] @ 0x2c
  6991. 8003454: 2b00 cmp r3, #0
  6992. 8003456: d007 beq.n 8003468 <MqttMessageArrived+0x3d0>
  6993. osMessageQueuePut (uart2TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6994. 8003458: 4b18 ldr r3, [pc, #96] @ (80034bc <MqttMessageArrived+0x424>)
  6995. 800345a: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6996. 800345c: f107 010c add.w r1, r7, #12
  6997. 8003460: 2364 movs r3, #100 @ 0x64
  6998. 8003462: 2200 movs r2, #0
  6999. 8003464: f00e fb4c bl 8011b00 <osMessageQueuePut>
  7000. }
  7001. printf ("Send cmd to board 4\n");
  7002. 8003468: 4815 ldr r0, [pc, #84] @ (80034c0 <MqttMessageArrived+0x428>)
  7003. 800346a: f027 f9df bl 802a82c <puts>
  7004. break;
  7005. 800346e: e000 b.n 8003472 <MqttMessageArrived+0x3da>
  7006. default: break;
  7007. 8003470: bf00 nop
  7008. for (int topicCmdNumber = 0; topicCmdNumber < MAX_COMMANDS_IN_MQTT_PAYLOAD; topicCmdNumber++) {
  7009. 8003472: 6ebb ldr r3, [r7, #104] @ 0x68
  7010. 8003474: 3301 adds r3, #1
  7011. 8003476: 66bb str r3, [r7, #104] @ 0x68
  7012. 8003478: 6ebb ldr r3, [r7, #104] @ 0x68
  7013. 800347a: 2b0d cmp r3, #13
  7014. 800347c: f77f ae68 ble.w 8003150 <MqttMessageArrived+0xb8>
  7015. }
  7016. }
  7017. }
  7018. cJSON_Delete (json);
  7019. 8003480: 6d38 ldr r0, [r7, #80] @ 0x50
  7020. 8003482: f7fd fb83 bl 8000b8c <cJSON_Delete>
  7021. printf ("MQTT Topic:%s, MSG[%d]:%s\n", topicName, (int)message->payloadlen, (char*)message->payload);
  7022. 8003486: 6d7b ldr r3, [r7, #84] @ 0x54
  7023. 8003488: 68db ldr r3, [r3, #12]
  7024. 800348a: 461a mov r2, r3
  7025. 800348c: 6d7b ldr r3, [r7, #84] @ 0x54
  7026. 800348e: 689b ldr r3, [r3, #8]
  7027. 8003490: f107 011c add.w r1, r7, #28
  7028. 8003494: 480b ldr r0, [pc, #44] @ (80034c4 <MqttMessageArrived+0x42c>)
  7029. 8003496: f027 f961 bl 802a75c <iprintf>
  7030. }
  7031. 800349a: bf00 nop
  7032. 800349c: 3770 adds r7, #112 @ 0x70
  7033. 800349e: 46bd mov sp, r7
  7034. 80034a0: bd80 pop {r7, pc}
  7035. 80034a2: bf00 nop
  7036. 80034a4: 24001eec .word 0x24001eec
  7037. 80034a8: 0802d75c .word 0x0802d75c
  7038. 80034ac: 24001f24 .word 0x24001f24
  7039. 80034b0: 0802d770 .word 0x0802d770
  7040. 80034b4: 24001f5c .word 0x24001f5c
  7041. 80034b8: 0802d784 .word 0x0802d784
  7042. 80034bc: 24001f94 .word 0x24001f94
  7043. 80034c0: 0802d798 .word 0x0802d798
  7044. 80034c4: 0802d7ac .word 0x0802d7ac
  7045. 080034c8 <mqtt_cli_init>:
  7046. void mqtt_cli_init (void) {
  7047. 80034c8: b580 push {r7, lr}
  7048. 80034ca: af00 add r7, sp, #0
  7049. mqttClientSubTaskHandle = osThreadNew (MqttClientSubTask, NULL, &mqttClientSubTaskAttr); // subscribe task
  7050. 80034cc: 4a08 ldr r2, [pc, #32] @ (80034f0 <mqtt_cli_init+0x28>)
  7051. 80034ce: 2100 movs r1, #0
  7052. 80034d0: 4808 ldr r0, [pc, #32] @ (80034f4 <mqtt_cli_init+0x2c>)
  7053. 80034d2: f00d fea0 bl 8011216 <osThreadNew>
  7054. 80034d6: 4603 mov r3, r0
  7055. 80034d8: 4a07 ldr r2, [pc, #28] @ (80034f8 <mqtt_cli_init+0x30>)
  7056. 80034da: 6013 str r3, [r2, #0]
  7057. mqttClientPubTaskHandle = osThreadNew (MqttClientPubTask, NULL, &mqttClientPubTaskAttr); // publish task
  7058. 80034dc: 4a07 ldr r2, [pc, #28] @ (80034fc <mqtt_cli_init+0x34>)
  7059. 80034de: 2100 movs r1, #0
  7060. 80034e0: 4807 ldr r0, [pc, #28] @ (8003500 <mqtt_cli_init+0x38>)
  7061. 80034e2: f00d fe98 bl 8011216 <osThreadNew>
  7062. 80034e6: 4603 mov r3, r0
  7063. 80034e8: 4a06 ldr r2, [pc, #24] @ (8003504 <mqtt_cli_init+0x3c>)
  7064. 80034ea: 6013 str r3, [r2, #0]
  7065. }
  7066. 80034ec: bf00 nop
  7067. 80034ee: bd80 pop {r7, pc}
  7068. 80034f0: 08031924 .word 0x08031924
  7069. 80034f4: 080026a5 .word 0x080026a5
  7070. 80034f8: 24000718 .word 0x24000718
  7071. 80034fc: 08031948 .word 0x08031948
  7072. 8003500: 08002715 .word 0x08002715
  7073. 8003504: 2400071c .word 0x2400071c
  7074. 08003508 <WriteDataToBuffer>:
  7075. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  7076. }
  7077. *buffPos = newBuffPos;
  7078. }
  7079. void WriteDataToBuffer (uint8_t* buff, uint16_t* buffPos, void* data, uint8_t dataSize) {
  7080. 8003508: b480 push {r7}
  7081. 800350a: b089 sub sp, #36 @ 0x24
  7082. 800350c: af00 add r7, sp, #0
  7083. 800350e: 60f8 str r0, [r7, #12]
  7084. 8003510: 60b9 str r1, [r7, #8]
  7085. 8003512: 607a str r2, [r7, #4]
  7086. 8003514: 70fb strb r3, [r7, #3]
  7087. uint32_t* uDataPtr = data;
  7088. 8003516: 687b ldr r3, [r7, #4]
  7089. 8003518: 61bb str r3, [r7, #24]
  7090. uint32_t uData = *uDataPtr;
  7091. 800351a: 69bb ldr r3, [r7, #24]
  7092. 800351c: 681b ldr r3, [r3, #0]
  7093. 800351e: 617b str r3, [r7, #20]
  7094. uint8_t i = 0;
  7095. 8003520: 2300 movs r3, #0
  7096. 8003522: 77fb strb r3, [r7, #31]
  7097. uint8_t newBuffPos = *buffPos;
  7098. 8003524: 68bb ldr r3, [r7, #8]
  7099. 8003526: 881b ldrh r3, [r3, #0]
  7100. 8003528: 77bb strb r3, [r7, #30]
  7101. for (i = 0; i < dataSize; i++) {
  7102. 800352a: 2300 movs r3, #0
  7103. 800352c: 77fb strb r3, [r7, #31]
  7104. 800352e: e00e b.n 800354e <WriteDataToBuffer+0x46>
  7105. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  7106. 8003530: 7ffb ldrb r3, [r7, #31]
  7107. 8003532: 00db lsls r3, r3, #3
  7108. 8003534: 697a ldr r2, [r7, #20]
  7109. 8003536: 40da lsrs r2, r3
  7110. 8003538: 7fbb ldrb r3, [r7, #30]
  7111. 800353a: 1c59 adds r1, r3, #1
  7112. 800353c: 77b9 strb r1, [r7, #30]
  7113. 800353e: 4619 mov r1, r3
  7114. 8003540: 68fb ldr r3, [r7, #12]
  7115. 8003542: 440b add r3, r1
  7116. 8003544: b2d2 uxtb r2, r2
  7117. 8003546: 701a strb r2, [r3, #0]
  7118. for (i = 0; i < dataSize; i++) {
  7119. 8003548: 7ffb ldrb r3, [r7, #31]
  7120. 800354a: 3301 adds r3, #1
  7121. 800354c: 77fb strb r3, [r7, #31]
  7122. 800354e: 7ffa ldrb r2, [r7, #31]
  7123. 8003550: 78fb ldrb r3, [r7, #3]
  7124. 8003552: 429a cmp r2, r3
  7125. 8003554: d3ec bcc.n 8003530 <WriteDataToBuffer+0x28>
  7126. }
  7127. *buffPos = newBuffPos;
  7128. 8003556: 7fbb ldrb r3, [r7, #30]
  7129. 8003558: b29a uxth r2, r3
  7130. 800355a: 68bb ldr r3, [r7, #8]
  7131. 800355c: 801a strh r2, [r3, #0]
  7132. }
  7133. 800355e: bf00 nop
  7134. 8003560: 3724 adds r7, #36 @ 0x24
  7135. 8003562: 46bd mov sp, r7
  7136. 8003564: f85d 7b04 ldr.w r7, [sp], #4
  7137. 8003568: 4770 bx lr
  7138. 0800356a <ReadFloatFromBuffer>:
  7139. void ReadFloatFromBuffer(uint8_t* buff, uint16_t* buffPos, float* data)
  7140. {
  7141. 800356a: b480 push {r7}
  7142. 800356c: b087 sub sp, #28
  7143. 800356e: af00 add r7, sp, #0
  7144. 8003570: 60f8 str r0, [r7, #12]
  7145. 8003572: 60b9 str r1, [r7, #8]
  7146. 8003574: 607a str r2, [r7, #4]
  7147. uint32_t* word = (uint32_t *)data;
  7148. 8003576: 687b ldr r3, [r7, #4]
  7149. 8003578: 617b str r3, [r7, #20]
  7150. *word = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  7151. 800357a: 68bb ldr r3, [r7, #8]
  7152. 800357c: 881b ldrh r3, [r3, #0]
  7153. 800357e: 3303 adds r3, #3
  7154. 8003580: 68fa ldr r2, [r7, #12]
  7155. 8003582: 4413 add r3, r2
  7156. 8003584: 781b ldrb r3, [r3, #0]
  7157. 8003586: 061a lsls r2, r3, #24
  7158. 8003588: 68bb ldr r3, [r7, #8]
  7159. 800358a: 881b ldrh r3, [r3, #0]
  7160. 800358c: 3302 adds r3, #2
  7161. 800358e: 68f9 ldr r1, [r7, #12]
  7162. 8003590: 440b add r3, r1
  7163. 8003592: 781b ldrb r3, [r3, #0]
  7164. 8003594: 041b lsls r3, r3, #16
  7165. 8003596: 431a orrs r2, r3
  7166. 8003598: 68bb ldr r3, [r7, #8]
  7167. 800359a: 881b ldrh r3, [r3, #0]
  7168. 800359c: 3301 adds r3, #1
  7169. 800359e: 68f9 ldr r1, [r7, #12]
  7170. 80035a0: 440b add r3, r1
  7171. 80035a2: 781b ldrb r3, [r3, #0]
  7172. 80035a4: 021b lsls r3, r3, #8
  7173. 80035a6: 4313 orrs r3, r2
  7174. 80035a8: 68ba ldr r2, [r7, #8]
  7175. 80035aa: 8812 ldrh r2, [r2, #0]
  7176. 80035ac: 4611 mov r1, r2
  7177. 80035ae: 68fa ldr r2, [r7, #12]
  7178. 80035b0: 440a add r2, r1
  7179. 80035b2: 7812 ldrb r2, [r2, #0]
  7180. 80035b4: 4313 orrs r3, r2
  7181. 80035b6: 461a mov r2, r3
  7182. 80035b8: 697b ldr r3, [r7, #20]
  7183. 80035ba: 601a str r2, [r3, #0]
  7184. *buffPos += sizeof(float);
  7185. 80035bc: 68bb ldr r3, [r7, #8]
  7186. 80035be: 881b ldrh r3, [r3, #0]
  7187. 80035c0: 3304 adds r3, #4
  7188. 80035c2: b29a uxth r2, r3
  7189. 80035c4: 68bb ldr r3, [r7, #8]
  7190. 80035c6: 801a strh r2, [r3, #0]
  7191. }
  7192. 80035c8: bf00 nop
  7193. 80035ca: 371c adds r7, #28
  7194. 80035cc: 46bd mov sp, r7
  7195. 80035ce: f85d 7b04 ldr.w r7, [sp], #4
  7196. 80035d2: 4770 bx lr
  7197. 080035d4 <ReadByteFromBufer>:
  7198. *data = CONVERT_BYTES_TO_SHORT_WORD(&buff[*buffPos]);
  7199. *buffPos += sizeof(uint32_t);
  7200. }
  7201. void ReadByteFromBufer(uint8_t* buff, uint16_t* buffPos, uint8_t* data)
  7202. {
  7203. 80035d4: b480 push {r7}
  7204. 80035d6: b085 sub sp, #20
  7205. 80035d8: af00 add r7, sp, #0
  7206. 80035da: 60f8 str r0, [r7, #12]
  7207. 80035dc: 60b9 str r1, [r7, #8]
  7208. 80035de: 607a str r2, [r7, #4]
  7209. *data = CONVERT_BYTES_TO_SHORT_WORD(&buff[*buffPos]);
  7210. 80035e0: 68bb ldr r3, [r7, #8]
  7211. 80035e2: 881b ldrh r3, [r3, #0]
  7212. 80035e4: 3301 adds r3, #1
  7213. 80035e6: 68fa ldr r2, [r7, #12]
  7214. 80035e8: 4413 add r3, r2
  7215. 80035ea: 781b ldrb r3, [r3, #0]
  7216. 80035ec: 021b lsls r3, r3, #8
  7217. 80035ee: b25a sxtb r2, r3
  7218. 80035f0: 68bb ldr r3, [r7, #8]
  7219. 80035f2: 881b ldrh r3, [r3, #0]
  7220. 80035f4: 4619 mov r1, r3
  7221. 80035f6: 68fb ldr r3, [r7, #12]
  7222. 80035f8: 440b add r3, r1
  7223. 80035fa: 781b ldrb r3, [r3, #0]
  7224. 80035fc: b25b sxtb r3, r3
  7225. 80035fe: 4313 orrs r3, r2
  7226. 8003600: b25b sxtb r3, r3
  7227. 8003602: b2da uxtb r2, r3
  7228. 8003604: 687b ldr r3, [r7, #4]
  7229. 8003606: 701a strb r2, [r3, #0]
  7230. *buffPos += sizeof(uint8_t);
  7231. 8003608: 68bb ldr r3, [r7, #8]
  7232. 800360a: 881b ldrh r3, [r3, #0]
  7233. 800360c: 3301 adds r3, #1
  7234. 800360e: b29a uxth r2, r3
  7235. 8003610: 68bb ldr r3, [r7, #8]
  7236. 8003612: 801a strh r2, [r3, #0]
  7237. }
  7238. 8003614: bf00 nop
  7239. 8003616: 3714 adds r7, #20
  7240. 8003618: 46bd mov sp, r7
  7241. 800361a: f85d 7b04 ldr.w r7, [sp], #4
  7242. 800361e: 4770 bx lr
  7243. 08003620 <PrepareReqFrame>:
  7244. uint16_t PrepareReqFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, uint8_t* dataBuffer, uint16_t dataLength) {
  7245. 8003620: b580 push {r7, lr}
  7246. 8003622: b086 sub sp, #24
  7247. 8003624: af00 add r7, sp, #0
  7248. 8003626: 60f8 str r0, [r7, #12]
  7249. 8003628: 607b str r3, [r7, #4]
  7250. 800362a: 460b mov r3, r1
  7251. 800362c: 817b strh r3, [r7, #10]
  7252. 800362e: 4613 mov r3, r2
  7253. 8003630: 727b strb r3, [r7, #9]
  7254. uint16_t crc = 0;
  7255. 8003632: 2300 movs r3, #0
  7256. 8003634: 82bb strh r3, [r7, #20]
  7257. uint16_t txBufferPos = 0;
  7258. 8003636: 2300 movs r3, #0
  7259. 8003638: 82fb strh r3, [r7, #22]
  7260. uint16_t frameCmd = ((uint16_t)frameCommand);
  7261. 800363a: 7a7b ldrb r3, [r7, #9]
  7262. 800363c: 827b strh r3, [r7, #18]
  7263. memset (txBuffer, 0x00, dataLength);
  7264. 800363e: 8c3b ldrh r3, [r7, #32]
  7265. 8003640: 461a mov r2, r3
  7266. 8003642: 2100 movs r1, #0
  7267. 8003644: 68f8 ldr r0, [r7, #12]
  7268. 8003646: f027 fa1b bl 802aa80 <memset>
  7269. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  7270. 800364a: 8afb ldrh r3, [r7, #22]
  7271. 800364c: 1c5a adds r2, r3, #1
  7272. 800364e: 82fa strh r2, [r7, #22]
  7273. 8003650: 461a mov r2, r3
  7274. 8003652: 68fb ldr r3, [r7, #12]
  7275. 8003654: 4413 add r3, r2
  7276. 8003656: 22aa movs r2, #170 @ 0xaa
  7277. 8003658: 701a strb r2, [r3, #0]
  7278. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  7279. 800365a: 8afb ldrh r3, [r7, #22]
  7280. 800365c: 1c5a adds r2, r3, #1
  7281. 800365e: 82fa strh r2, [r7, #22]
  7282. 8003660: 461a mov r2, r3
  7283. 8003662: 68fb ldr r3, [r7, #12]
  7284. 8003664: 4413 add r3, r2
  7285. 8003666: 897a ldrh r2, [r7, #10]
  7286. 8003668: b2d2 uxtb r2, r2
  7287. 800366a: 701a strb r2, [r3, #0]
  7288. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  7289. 800366c: 897b ldrh r3, [r7, #10]
  7290. 800366e: 0a1b lsrs r3, r3, #8
  7291. 8003670: b29a uxth r2, r3
  7292. 8003672: 8afb ldrh r3, [r7, #22]
  7293. 8003674: 1c59 adds r1, r3, #1
  7294. 8003676: 82f9 strh r1, [r7, #22]
  7295. 8003678: 4619 mov r1, r3
  7296. 800367a: 68fb ldr r3, [r7, #12]
  7297. 800367c: 440b add r3, r1
  7298. 800367e: b2d2 uxtb r2, r2
  7299. 8003680: 701a strb r2, [r3, #0]
  7300. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  7301. 8003682: 8afb ldrh r3, [r7, #22]
  7302. 8003684: 1c5a adds r2, r3, #1
  7303. 8003686: 82fa strh r2, [r7, #22]
  7304. 8003688: 461a mov r2, r3
  7305. 800368a: 68fb ldr r3, [r7, #12]
  7306. 800368c: 4413 add r3, r2
  7307. 800368e: 8a7a ldrh r2, [r7, #18]
  7308. 8003690: b2d2 uxtb r2, r2
  7309. 8003692: 701a strb r2, [r3, #0]
  7310. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  7311. 8003694: 8a7b ldrh r3, [r7, #18]
  7312. 8003696: 0a1b lsrs r3, r3, #8
  7313. 8003698: b29a uxth r2, r3
  7314. 800369a: 8afb ldrh r3, [r7, #22]
  7315. 800369c: 1c59 adds r1, r3, #1
  7316. 800369e: 82f9 strh r1, [r7, #22]
  7317. 80036a0: 4619 mov r1, r3
  7318. 80036a2: 68fb ldr r3, [r7, #12]
  7319. 80036a4: 440b add r3, r1
  7320. 80036a6: b2d2 uxtb r2, r2
  7321. 80036a8: 701a strb r2, [r3, #0]
  7322. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  7323. 80036aa: 8afb ldrh r3, [r7, #22]
  7324. 80036ac: 1c5a adds r2, r3, #1
  7325. 80036ae: 82fa strh r2, [r7, #22]
  7326. 80036b0: 461a mov r2, r3
  7327. 80036b2: 68fb ldr r3, [r7, #12]
  7328. 80036b4: 4413 add r3, r2
  7329. 80036b6: 8c3a ldrh r2, [r7, #32]
  7330. 80036b8: b2d2 uxtb r2, r2
  7331. 80036ba: 701a strb r2, [r3, #0]
  7332. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  7333. 80036bc: 8c3b ldrh r3, [r7, #32]
  7334. 80036be: 0a1b lsrs r3, r3, #8
  7335. 80036c0: b29a uxth r2, r3
  7336. 80036c2: 8afb ldrh r3, [r7, #22]
  7337. 80036c4: 1c59 adds r1, r3, #1
  7338. 80036c6: 82f9 strh r1, [r7, #22]
  7339. 80036c8: 4619 mov r1, r3
  7340. 80036ca: 68fb ldr r3, [r7, #12]
  7341. 80036cc: 440b add r3, r1
  7342. 80036ce: b2d2 uxtb r2, r2
  7343. 80036d0: 701a strb r2, [r3, #0]
  7344. txBuffer[txBufferPos++] = 0x00;
  7345. 80036d2: 8afb ldrh r3, [r7, #22]
  7346. 80036d4: 1c5a adds r2, r3, #1
  7347. 80036d6: 82fa strh r2, [r7, #22]
  7348. 80036d8: 461a mov r2, r3
  7349. 80036da: 68fb ldr r3, [r7, #12]
  7350. 80036dc: 4413 add r3, r2
  7351. 80036de: 2200 movs r2, #0
  7352. 80036e0: 701a strb r2, [r3, #0]
  7353. if (dataLength > 0) {
  7354. 80036e2: 8c3b ldrh r3, [r7, #32]
  7355. 80036e4: 2b00 cmp r3, #0
  7356. 80036e6: d00b beq.n 8003700 <PrepareReqFrame+0xe0>
  7357. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  7358. 80036e8: 8afb ldrh r3, [r7, #22]
  7359. 80036ea: 68fa ldr r2, [r7, #12]
  7360. 80036ec: 4413 add r3, r2
  7361. 80036ee: 8c3a ldrh r2, [r7, #32]
  7362. 80036f0: 6879 ldr r1, [r7, #4]
  7363. 80036f2: 4618 mov r0, r3
  7364. 80036f4: f027 fabb bl 802ac6e <memcpy>
  7365. txBufferPos += dataLength;
  7366. 80036f8: 8afa ldrh r2, [r7, #22]
  7367. 80036fa: 8c3b ldrh r3, [r7, #32]
  7368. 80036fc: 4413 add r3, r2
  7369. 80036fe: 82fb strh r3, [r7, #22]
  7370. }
  7371. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  7372. 8003700: 8afb ldrh r3, [r7, #22]
  7373. 8003702: 461a mov r2, r3
  7374. 8003704: 68f9 ldr r1, [r7, #12]
  7375. 8003706: 480f ldr r0, [pc, #60] @ (8003744 <PrepareReqFrame+0x124>)
  7376. 8003708: f002 f9d0 bl 8005aac <HAL_CRC_Calculate>
  7377. 800370c: 4603 mov r3, r0
  7378. 800370e: 82bb strh r3, [r7, #20]
  7379. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  7380. 8003710: 8afb ldrh r3, [r7, #22]
  7381. 8003712: 1c5a adds r2, r3, #1
  7382. 8003714: 82fa strh r2, [r7, #22]
  7383. 8003716: 461a mov r2, r3
  7384. 8003718: 68fb ldr r3, [r7, #12]
  7385. 800371a: 4413 add r3, r2
  7386. 800371c: 8aba ldrh r2, [r7, #20]
  7387. 800371e: b2d2 uxtb r2, r2
  7388. 8003720: 701a strb r2, [r3, #0]
  7389. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  7390. 8003722: 8abb ldrh r3, [r7, #20]
  7391. 8003724: 0a1b lsrs r3, r3, #8
  7392. 8003726: b29a uxth r2, r3
  7393. 8003728: 8afb ldrh r3, [r7, #22]
  7394. 800372a: 1c59 adds r1, r3, #1
  7395. 800372c: 82f9 strh r1, [r7, #22]
  7396. 800372e: 4619 mov r1, r3
  7397. 8003730: 68fb ldr r3, [r7, #12]
  7398. 8003732: 440b add r3, r1
  7399. 8003734: b2d2 uxtb r2, r2
  7400. 8003736: 701a strb r2, [r3, #0]
  7401. return txBufferPos;
  7402. 8003738: 8afb ldrh r3, [r7, #22]
  7403. }
  7404. 800373a: 4618 mov r0, r3
  7405. 800373c: 3718 adds r7, #24
  7406. 800373e: 46bd mov sp, r7
  7407. 8003740: bd80 pop {r7, pc}
  7408. 8003742: bf00 nop
  7409. 8003744: 24000248 .word 0x24000248
  7410. 08003748 <PrepareRespFrame>:
  7411. uint16_t PrepareRespFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, SerialProtocolRespStatus respStatus, uint8_t* dataBuffer, uint16_t dataLength) {
  7412. 8003748: b580 push {r7, lr}
  7413. 800374a: b084 sub sp, #16
  7414. 800374c: af00 add r7, sp, #0
  7415. 800374e: 6078 str r0, [r7, #4]
  7416. 8003750: 4608 mov r0, r1
  7417. 8003752: 4611 mov r1, r2
  7418. 8003754: 461a mov r2, r3
  7419. 8003756: 4603 mov r3, r0
  7420. 8003758: 807b strh r3, [r7, #2]
  7421. 800375a: 460b mov r3, r1
  7422. 800375c: 707b strb r3, [r7, #1]
  7423. 800375e: 4613 mov r3, r2
  7424. 8003760: 703b strb r3, [r7, #0]
  7425. uint16_t crc = 0;
  7426. 8003762: 2300 movs r3, #0
  7427. 8003764: 81bb strh r3, [r7, #12]
  7428. uint16_t txBufferPos = 0;
  7429. 8003766: 2300 movs r3, #0
  7430. 8003768: 81fb strh r3, [r7, #14]
  7431. uint16_t frameCmd = ((uint16_t)frameCommand) | 0x8000; // MSB set means response
  7432. 800376a: 787b ldrb r3, [r7, #1]
  7433. 800376c: b21a sxth r2, r3
  7434. 800376e: 4b43 ldr r3, [pc, #268] @ (800387c <PrepareRespFrame+0x134>)
  7435. 8003770: 4313 orrs r3, r2
  7436. 8003772: b21b sxth r3, r3
  7437. 8003774: 817b strh r3, [r7, #10]
  7438. memset (txBuffer, 0x00, dataLength);
  7439. 8003776: 8bbb ldrh r3, [r7, #28]
  7440. 8003778: 461a mov r2, r3
  7441. 800377a: 2100 movs r1, #0
  7442. 800377c: 6878 ldr r0, [r7, #4]
  7443. 800377e: f027 f97f bl 802aa80 <memset>
  7444. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  7445. 8003782: 89fb ldrh r3, [r7, #14]
  7446. 8003784: 1c5a adds r2, r3, #1
  7447. 8003786: 81fa strh r2, [r7, #14]
  7448. 8003788: 461a mov r2, r3
  7449. 800378a: 687b ldr r3, [r7, #4]
  7450. 800378c: 4413 add r3, r2
  7451. 800378e: 22aa movs r2, #170 @ 0xaa
  7452. 8003790: 701a strb r2, [r3, #0]
  7453. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  7454. 8003792: 89fb ldrh r3, [r7, #14]
  7455. 8003794: 1c5a adds r2, r3, #1
  7456. 8003796: 81fa strh r2, [r7, #14]
  7457. 8003798: 461a mov r2, r3
  7458. 800379a: 687b ldr r3, [r7, #4]
  7459. 800379c: 4413 add r3, r2
  7460. 800379e: 887a ldrh r2, [r7, #2]
  7461. 80037a0: b2d2 uxtb r2, r2
  7462. 80037a2: 701a strb r2, [r3, #0]
  7463. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  7464. 80037a4: 887b ldrh r3, [r7, #2]
  7465. 80037a6: 0a1b lsrs r3, r3, #8
  7466. 80037a8: b29a uxth r2, r3
  7467. 80037aa: 89fb ldrh r3, [r7, #14]
  7468. 80037ac: 1c59 adds r1, r3, #1
  7469. 80037ae: 81f9 strh r1, [r7, #14]
  7470. 80037b0: 4619 mov r1, r3
  7471. 80037b2: 687b ldr r3, [r7, #4]
  7472. 80037b4: 440b add r3, r1
  7473. 80037b6: b2d2 uxtb r2, r2
  7474. 80037b8: 701a strb r2, [r3, #0]
  7475. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  7476. 80037ba: 89fb ldrh r3, [r7, #14]
  7477. 80037bc: 1c5a adds r2, r3, #1
  7478. 80037be: 81fa strh r2, [r7, #14]
  7479. 80037c0: 461a mov r2, r3
  7480. 80037c2: 687b ldr r3, [r7, #4]
  7481. 80037c4: 4413 add r3, r2
  7482. 80037c6: 897a ldrh r2, [r7, #10]
  7483. 80037c8: b2d2 uxtb r2, r2
  7484. 80037ca: 701a strb r2, [r3, #0]
  7485. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  7486. 80037cc: 897b ldrh r3, [r7, #10]
  7487. 80037ce: 0a1b lsrs r3, r3, #8
  7488. 80037d0: b29a uxth r2, r3
  7489. 80037d2: 89fb ldrh r3, [r7, #14]
  7490. 80037d4: 1c59 adds r1, r3, #1
  7491. 80037d6: 81f9 strh r1, [r7, #14]
  7492. 80037d8: 4619 mov r1, r3
  7493. 80037da: 687b ldr r3, [r7, #4]
  7494. 80037dc: 440b add r3, r1
  7495. 80037de: b2d2 uxtb r2, r2
  7496. 80037e0: 701a strb r2, [r3, #0]
  7497. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  7498. 80037e2: 89fb ldrh r3, [r7, #14]
  7499. 80037e4: 1c5a adds r2, r3, #1
  7500. 80037e6: 81fa strh r2, [r7, #14]
  7501. 80037e8: 461a mov r2, r3
  7502. 80037ea: 687b ldr r3, [r7, #4]
  7503. 80037ec: 4413 add r3, r2
  7504. 80037ee: 8bba ldrh r2, [r7, #28]
  7505. 80037f0: b2d2 uxtb r2, r2
  7506. 80037f2: 701a strb r2, [r3, #0]
  7507. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  7508. 80037f4: 8bbb ldrh r3, [r7, #28]
  7509. 80037f6: 0a1b lsrs r3, r3, #8
  7510. 80037f8: b29a uxth r2, r3
  7511. 80037fa: 89fb ldrh r3, [r7, #14]
  7512. 80037fc: 1c59 adds r1, r3, #1
  7513. 80037fe: 81f9 strh r1, [r7, #14]
  7514. 8003800: 4619 mov r1, r3
  7515. 8003802: 687b ldr r3, [r7, #4]
  7516. 8003804: 440b add r3, r1
  7517. 8003806: b2d2 uxtb r2, r2
  7518. 8003808: 701a strb r2, [r3, #0]
  7519. txBuffer[txBufferPos++] = (uint8_t)respStatus;
  7520. 800380a: 89fb ldrh r3, [r7, #14]
  7521. 800380c: 1c5a adds r2, r3, #1
  7522. 800380e: 81fa strh r2, [r7, #14]
  7523. 8003810: 461a mov r2, r3
  7524. 8003812: 687b ldr r3, [r7, #4]
  7525. 8003814: 4413 add r3, r2
  7526. 8003816: 783a ldrb r2, [r7, #0]
  7527. 8003818: 701a strb r2, [r3, #0]
  7528. if (dataLength > 0) {
  7529. 800381a: 8bbb ldrh r3, [r7, #28]
  7530. 800381c: 2b00 cmp r3, #0
  7531. 800381e: d00b beq.n 8003838 <PrepareRespFrame+0xf0>
  7532. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  7533. 8003820: 89fb ldrh r3, [r7, #14]
  7534. 8003822: 687a ldr r2, [r7, #4]
  7535. 8003824: 4413 add r3, r2
  7536. 8003826: 8bba ldrh r2, [r7, #28]
  7537. 8003828: 69b9 ldr r1, [r7, #24]
  7538. 800382a: 4618 mov r0, r3
  7539. 800382c: f027 fa1f bl 802ac6e <memcpy>
  7540. txBufferPos += dataLength;
  7541. 8003830: 89fa ldrh r2, [r7, #14]
  7542. 8003832: 8bbb ldrh r3, [r7, #28]
  7543. 8003834: 4413 add r3, r2
  7544. 8003836: 81fb strh r3, [r7, #14]
  7545. }
  7546. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  7547. 8003838: 89fb ldrh r3, [r7, #14]
  7548. 800383a: 461a mov r2, r3
  7549. 800383c: 6879 ldr r1, [r7, #4]
  7550. 800383e: 4810 ldr r0, [pc, #64] @ (8003880 <PrepareRespFrame+0x138>)
  7551. 8003840: f002 f934 bl 8005aac <HAL_CRC_Calculate>
  7552. 8003844: 4603 mov r3, r0
  7553. 8003846: 81bb strh r3, [r7, #12]
  7554. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  7555. 8003848: 89fb ldrh r3, [r7, #14]
  7556. 800384a: 1c5a adds r2, r3, #1
  7557. 800384c: 81fa strh r2, [r7, #14]
  7558. 800384e: 461a mov r2, r3
  7559. 8003850: 687b ldr r3, [r7, #4]
  7560. 8003852: 4413 add r3, r2
  7561. 8003854: 89ba ldrh r2, [r7, #12]
  7562. 8003856: b2d2 uxtb r2, r2
  7563. 8003858: 701a strb r2, [r3, #0]
  7564. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  7565. 800385a: 89bb ldrh r3, [r7, #12]
  7566. 800385c: 0a1b lsrs r3, r3, #8
  7567. 800385e: b29a uxth r2, r3
  7568. 8003860: 89fb ldrh r3, [r7, #14]
  7569. 8003862: 1c59 adds r1, r3, #1
  7570. 8003864: 81f9 strh r1, [r7, #14]
  7571. 8003866: 4619 mov r1, r3
  7572. 8003868: 687b ldr r3, [r7, #4]
  7573. 800386a: 440b add r3, r1
  7574. 800386c: b2d2 uxtb r2, r2
  7575. 800386e: 701a strb r2, [r3, #0]
  7576. return txBufferPos;
  7577. 8003870: 89fb ldrh r3, [r7, #14]
  7578. }
  7579. 8003872: 4618 mov r0, r3
  7580. 8003874: 3710 adds r7, #16
  7581. 8003876: 46bd mov sp, r7
  7582. 8003878: bd80 pop {r7, pc}
  7583. 800387a: bf00 nop
  7584. 800387c: ffff8000 .word 0xffff8000
  7585. 8003880: 24000248 .word 0x24000248
  7586. 08003884 <HAL_MspInit>:
  7587. /* USER CODE END 0 */
  7588. /**
  7589. * Initializes the Global MSP.
  7590. */
  7591. void HAL_MspInit(void)
  7592. {
  7593. 8003884: b580 push {r7, lr}
  7594. 8003886: b086 sub sp, #24
  7595. 8003888: af00 add r7, sp, #0
  7596. /* USER CODE BEGIN MspInit 0 */
  7597. /* USER CODE END MspInit 0 */
  7598. PWREx_AVDTypeDef sConfigAVD = {0};
  7599. 800388a: f107 0310 add.w r3, r7, #16
  7600. 800388e: 2200 movs r2, #0
  7601. 8003890: 601a str r2, [r3, #0]
  7602. 8003892: 605a str r2, [r3, #4]
  7603. PWR_PVDTypeDef sConfigPVD = {0};
  7604. 8003894: f107 0308 add.w r3, r7, #8
  7605. 8003898: 2200 movs r2, #0
  7606. 800389a: 601a str r2, [r3, #0]
  7607. 800389c: 605a str r2, [r3, #4]
  7608. __HAL_RCC_SYSCFG_CLK_ENABLE();
  7609. 800389e: 4b1c ldr r3, [pc, #112] @ (8003910 <HAL_MspInit+0x8c>)
  7610. 80038a0: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7611. 80038a4: 4a1a ldr r2, [pc, #104] @ (8003910 <HAL_MspInit+0x8c>)
  7612. 80038a6: f043 0302 orr.w r3, r3, #2
  7613. 80038aa: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  7614. 80038ae: 4b18 ldr r3, [pc, #96] @ (8003910 <HAL_MspInit+0x8c>)
  7615. 80038b0: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7616. 80038b4: f003 0302 and.w r3, r3, #2
  7617. 80038b8: 607b str r3, [r7, #4]
  7618. 80038ba: 687b ldr r3, [r7, #4]
  7619. /* System interrupt init*/
  7620. /* PendSV_IRQn interrupt configuration */
  7621. HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
  7622. 80038bc: 2200 movs r2, #0
  7623. 80038be: 210f movs r1, #15
  7624. 80038c0: f06f 0001 mvn.w r0, #1
  7625. 80038c4: f001 ffee bl 80058a4 <HAL_NVIC_SetPriority>
  7626. /* Peripheral interrupt init */
  7627. /* RCC_IRQn interrupt configuration */
  7628. HAL_NVIC_SetPriority(RCC_IRQn, 5, 0);
  7629. 80038c8: 2200 movs r2, #0
  7630. 80038ca: 2105 movs r1, #5
  7631. 80038cc: 2005 movs r0, #5
  7632. 80038ce: f001 ffe9 bl 80058a4 <HAL_NVIC_SetPriority>
  7633. HAL_NVIC_EnableIRQ(RCC_IRQn);
  7634. 80038d2: 2005 movs r0, #5
  7635. 80038d4: f002 f800 bl 80058d8 <HAL_NVIC_EnableIRQ>
  7636. /** AVD Configuration
  7637. */
  7638. sConfigAVD.AVDLevel = PWR_AVDLEVEL_3;
  7639. 80038d8: f44f 23c0 mov.w r3, #393216 @ 0x60000
  7640. 80038dc: 613b str r3, [r7, #16]
  7641. sConfigAVD.Mode = PWR_AVD_MODE_NORMAL;
  7642. 80038de: 2300 movs r3, #0
  7643. 80038e0: 617b str r3, [r7, #20]
  7644. HAL_PWREx_ConfigAVD(&sConfigAVD);
  7645. 80038e2: f107 0310 add.w r3, r7, #16
  7646. 80038e6: 4618 mov r0, r3
  7647. 80038e8: f006 fcaa bl 800a240 <HAL_PWREx_ConfigAVD>
  7648. /** Enable the AVD Output
  7649. */
  7650. HAL_PWREx_EnableAVD();
  7651. 80038ec: f006 fd1e bl 800a32c <HAL_PWREx_EnableAVD>
  7652. /** PVD Configuration
  7653. */
  7654. sConfigPVD.PVDLevel = PWR_PVDLEVEL_6;
  7655. 80038f0: 23c0 movs r3, #192 @ 0xc0
  7656. 80038f2: 60bb str r3, [r7, #8]
  7657. sConfigPVD.Mode = PWR_PVD_MODE_NORMAL;
  7658. 80038f4: 2300 movs r3, #0
  7659. 80038f6: 60fb str r3, [r7, #12]
  7660. HAL_PWR_ConfigPVD(&sConfigPVD);
  7661. 80038f8: f107 0308 add.w r3, r7, #8
  7662. 80038fc: 4618 mov r0, r3
  7663. 80038fe: f006 fbdb bl 800a0b8 <HAL_PWR_ConfigPVD>
  7664. /** Enable the PVD Output
  7665. */
  7666. HAL_PWR_EnablePVD();
  7667. 8003902: f006 fc53 bl 800a1ac <HAL_PWR_EnablePVD>
  7668. /* USER CODE BEGIN MspInit 1 */
  7669. /* USER CODE END MspInit 1 */
  7670. }
  7671. 8003906: bf00 nop
  7672. 8003908: 3718 adds r7, #24
  7673. 800390a: 46bd mov sp, r7
  7674. 800390c: bd80 pop {r7, pc}
  7675. 800390e: bf00 nop
  7676. 8003910: 58024400 .word 0x58024400
  7677. 08003914 <HAL_CRC_MspInit>:
  7678. * This function configures the hardware resources used in this example
  7679. * @param hcrc: CRC handle pointer
  7680. * @retval None
  7681. */
  7682. void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc)
  7683. {
  7684. 8003914: b480 push {r7}
  7685. 8003916: b085 sub sp, #20
  7686. 8003918: af00 add r7, sp, #0
  7687. 800391a: 6078 str r0, [r7, #4]
  7688. if(hcrc->Instance==CRC)
  7689. 800391c: 687b ldr r3, [r7, #4]
  7690. 800391e: 681b ldr r3, [r3, #0]
  7691. 8003920: 4a0b ldr r2, [pc, #44] @ (8003950 <HAL_CRC_MspInit+0x3c>)
  7692. 8003922: 4293 cmp r3, r2
  7693. 8003924: d10e bne.n 8003944 <HAL_CRC_MspInit+0x30>
  7694. {
  7695. /* USER CODE BEGIN CRC_MspInit 0 */
  7696. /* USER CODE END CRC_MspInit 0 */
  7697. /* Peripheral clock enable */
  7698. __HAL_RCC_CRC_CLK_ENABLE();
  7699. 8003926: 4b0b ldr r3, [pc, #44] @ (8003954 <HAL_CRC_MspInit+0x40>)
  7700. 8003928: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7701. 800392c: 4a09 ldr r2, [pc, #36] @ (8003954 <HAL_CRC_MspInit+0x40>)
  7702. 800392e: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  7703. 8003932: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7704. 8003936: 4b07 ldr r3, [pc, #28] @ (8003954 <HAL_CRC_MspInit+0x40>)
  7705. 8003938: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7706. 800393c: f403 2300 and.w r3, r3, #524288 @ 0x80000
  7707. 8003940: 60fb str r3, [r7, #12]
  7708. 8003942: 68fb ldr r3, [r7, #12]
  7709. /* USER CODE BEGIN CRC_MspInit 1 */
  7710. /* USER CODE END CRC_MspInit 1 */
  7711. }
  7712. }
  7713. 8003944: bf00 nop
  7714. 8003946: 3714 adds r7, #20
  7715. 8003948: 46bd mov sp, r7
  7716. 800394a: f85d 7b04 ldr.w r7, [sp], #4
  7717. 800394e: 4770 bx lr
  7718. 8003950: 58024c00 .word 0x58024c00
  7719. 8003954: 58024400 .word 0x58024400
  7720. 08003958 <HAL_RNG_MspInit>:
  7721. * This function configures the hardware resources used in this example
  7722. * @param hrng: RNG handle pointer
  7723. * @retval None
  7724. */
  7725. void HAL_RNG_MspInit(RNG_HandleTypeDef* hrng)
  7726. {
  7727. 8003958: b580 push {r7, lr}
  7728. 800395a: b0b4 sub sp, #208 @ 0xd0
  7729. 800395c: af00 add r7, sp, #0
  7730. 800395e: 6078 str r0, [r7, #4]
  7731. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  7732. 8003960: f107 0310 add.w r3, r7, #16
  7733. 8003964: 22c0 movs r2, #192 @ 0xc0
  7734. 8003966: 2100 movs r1, #0
  7735. 8003968: 4618 mov r0, r3
  7736. 800396a: f027 f889 bl 802aa80 <memset>
  7737. if(hrng->Instance==RNG)
  7738. 800396e: 687b ldr r3, [r7, #4]
  7739. 8003970: 681b ldr r3, [r3, #0]
  7740. 8003972: 4a14 ldr r2, [pc, #80] @ (80039c4 <HAL_RNG_MspInit+0x6c>)
  7741. 8003974: 4293 cmp r3, r2
  7742. 8003976: d121 bne.n 80039bc <HAL_RNG_MspInit+0x64>
  7743. /* USER CODE END RNG_MspInit 0 */
  7744. /** Initializes the peripherals clock
  7745. */
  7746. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RNG;
  7747. 8003978: f44f 3200 mov.w r2, #131072 @ 0x20000
  7748. 800397c: f04f 0300 mov.w r3, #0
  7749. 8003980: e9c7 2304 strd r2, r3, [r7, #16]
  7750. PeriphClkInitStruct.RngClockSelection = RCC_RNGCLKSOURCE_HSI48;
  7751. 8003984: 2300 movs r3, #0
  7752. 8003986: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  7753. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7754. 800398a: f107 0310 add.w r3, r7, #16
  7755. 800398e: 4618 mov r0, r3
  7756. 8003990: f007 fd04 bl 800b39c <HAL_RCCEx_PeriphCLKConfig>
  7757. 8003994: 4603 mov r3, r0
  7758. 8003996: 2b00 cmp r3, #0
  7759. 8003998: d001 beq.n 800399e <HAL_RNG_MspInit+0x46>
  7760. {
  7761. Error_Handler();
  7762. 800399a: f7fe fe7d bl 8002698 <Error_Handler>
  7763. }
  7764. /* Peripheral clock enable */
  7765. __HAL_RCC_RNG_CLK_ENABLE();
  7766. 800399e: 4b0a ldr r3, [pc, #40] @ (80039c8 <HAL_RNG_MspInit+0x70>)
  7767. 80039a0: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  7768. 80039a4: 4a08 ldr r2, [pc, #32] @ (80039c8 <HAL_RNG_MspInit+0x70>)
  7769. 80039a6: f043 0340 orr.w r3, r3, #64 @ 0x40
  7770. 80039aa: f8c2 30dc str.w r3, [r2, #220] @ 0xdc
  7771. 80039ae: 4b06 ldr r3, [pc, #24] @ (80039c8 <HAL_RNG_MspInit+0x70>)
  7772. 80039b0: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  7773. 80039b4: f003 0340 and.w r3, r3, #64 @ 0x40
  7774. 80039b8: 60fb str r3, [r7, #12]
  7775. 80039ba: 68fb ldr r3, [r7, #12]
  7776. /* USER CODE BEGIN RNG_MspInit 1 */
  7777. /* USER CODE END RNG_MspInit 1 */
  7778. }
  7779. }
  7780. 80039bc: bf00 nop
  7781. 80039be: 37d0 adds r7, #208 @ 0xd0
  7782. 80039c0: 46bd mov sp, r7
  7783. 80039c2: bd80 pop {r7, pc}
  7784. 80039c4: 48021800 .word 0x48021800
  7785. 80039c8: 58024400 .word 0x58024400
  7786. 080039cc <HAL_UART_MspInit>:
  7787. * This function configures the hardware resources used in this example
  7788. * @param huart: UART handle pointer
  7789. * @retval None
  7790. */
  7791. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  7792. {
  7793. 80039cc: b580 push {r7, lr}
  7794. 80039ce: b0c2 sub sp, #264 @ 0x108
  7795. 80039d0: af00 add r7, sp, #0
  7796. 80039d2: f507 7384 add.w r3, r7, #264 @ 0x108
  7797. 80039d6: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7798. 80039da: 6018 str r0, [r3, #0]
  7799. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7800. 80039dc: f107 03f4 add.w r3, r7, #244 @ 0xf4
  7801. 80039e0: 2200 movs r2, #0
  7802. 80039e2: 601a str r2, [r3, #0]
  7803. 80039e4: 605a str r2, [r3, #4]
  7804. 80039e6: 609a str r2, [r3, #8]
  7805. 80039e8: 60da str r2, [r3, #12]
  7806. 80039ea: 611a str r2, [r3, #16]
  7807. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  7808. 80039ec: f107 0330 add.w r3, r7, #48 @ 0x30
  7809. 80039f0: 22c0 movs r2, #192 @ 0xc0
  7810. 80039f2: 2100 movs r1, #0
  7811. 80039f4: 4618 mov r0, r3
  7812. 80039f6: f027 f843 bl 802aa80 <memset>
  7813. if(huart->Instance==UART8)
  7814. 80039fa: f507 7384 add.w r3, r7, #264 @ 0x108
  7815. 80039fe: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7816. 8003a02: 681b ldr r3, [r3, #0]
  7817. 8003a04: 681b ldr r3, [r3, #0]
  7818. 8003a06: 4ab8 ldr r2, [pc, #736] @ (8003ce8 <HAL_UART_MspInit+0x31c>)
  7819. 8003a08: 4293 cmp r3, r2
  7820. 8003a0a: f040 80bc bne.w 8003b86 <HAL_UART_MspInit+0x1ba>
  7821. /* USER CODE END UART8_MspInit 0 */
  7822. /** Initializes the peripherals clock
  7823. */
  7824. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART8;
  7825. 8003a0e: f04f 0202 mov.w r2, #2
  7826. 8003a12: f04f 0300 mov.w r3, #0
  7827. 8003a16: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  7828. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  7829. 8003a1a: 2300 movs r3, #0
  7830. 8003a1c: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  7831. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7832. 8003a20: f107 0330 add.w r3, r7, #48 @ 0x30
  7833. 8003a24: 4618 mov r0, r3
  7834. 8003a26: f007 fcb9 bl 800b39c <HAL_RCCEx_PeriphCLKConfig>
  7835. 8003a2a: 4603 mov r3, r0
  7836. 8003a2c: 2b00 cmp r3, #0
  7837. 8003a2e: d001 beq.n 8003a34 <HAL_UART_MspInit+0x68>
  7838. {
  7839. Error_Handler();
  7840. 8003a30: f7fe fe32 bl 8002698 <Error_Handler>
  7841. }
  7842. /* Peripheral clock enable */
  7843. __HAL_RCC_UART8_CLK_ENABLE();
  7844. 8003a34: 4bad ldr r3, [pc, #692] @ (8003cec <HAL_UART_MspInit+0x320>)
  7845. 8003a36: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7846. 8003a3a: 4aac ldr r2, [pc, #688] @ (8003cec <HAL_UART_MspInit+0x320>)
  7847. 8003a3c: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
  7848. 8003a40: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7849. 8003a44: 4ba9 ldr r3, [pc, #676] @ (8003cec <HAL_UART_MspInit+0x320>)
  7850. 8003a46: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7851. 8003a4a: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  7852. 8003a4e: 62fb str r3, [r7, #44] @ 0x2c
  7853. 8003a50: 6afb ldr r3, [r7, #44] @ 0x2c
  7854. __HAL_RCC_GPIOE_CLK_ENABLE();
  7855. 8003a52: 4ba6 ldr r3, [pc, #664] @ (8003cec <HAL_UART_MspInit+0x320>)
  7856. 8003a54: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7857. 8003a58: 4aa4 ldr r2, [pc, #656] @ (8003cec <HAL_UART_MspInit+0x320>)
  7858. 8003a5a: f043 0310 orr.w r3, r3, #16
  7859. 8003a5e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7860. 8003a62: 4ba2 ldr r3, [pc, #648] @ (8003cec <HAL_UART_MspInit+0x320>)
  7861. 8003a64: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7862. 8003a68: f003 0310 and.w r3, r3, #16
  7863. 8003a6c: 62bb str r3, [r7, #40] @ 0x28
  7864. 8003a6e: 6abb ldr r3, [r7, #40] @ 0x28
  7865. /**UART8 GPIO Configuration
  7866. PE0 ------> UART8_RX
  7867. PE1 ------> UART8_TX
  7868. */
  7869. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  7870. 8003a70: 2303 movs r3, #3
  7871. 8003a72: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  7872. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7873. 8003a76: 2302 movs r3, #2
  7874. 8003a78: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  7875. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7876. 8003a7c: 2300 movs r3, #0
  7877. 8003a7e: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  7878. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  7879. 8003a82: 2300 movs r3, #0
  7880. 8003a84: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  7881. GPIO_InitStruct.Alternate = GPIO_AF8_UART8;
  7882. 8003a88: 2308 movs r3, #8
  7883. 8003a8a: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  7884. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  7885. 8003a8e: f107 03f4 add.w r3, r7, #244 @ 0xf4
  7886. 8003a92: 4619 mov r1, r3
  7887. 8003a94: 4896 ldr r0, [pc, #600] @ (8003cf0 <HAL_UART_MspInit+0x324>)
  7888. 8003a96: f006 f92d bl 8009cf4 <HAL_GPIO_Init>
  7889. /* UART8 DMA Init */
  7890. /* UART8_RX Init */
  7891. hdma_uart8_rx.Instance = DMA2_Stream7;
  7892. 8003a9a: 4b96 ldr r3, [pc, #600] @ (8003cf4 <HAL_UART_MspInit+0x328>)
  7893. 8003a9c: 4a96 ldr r2, [pc, #600] @ (8003cf8 <HAL_UART_MspInit+0x32c>)
  7894. 8003a9e: 601a str r2, [r3, #0]
  7895. hdma_uart8_rx.Init.Request = DMA_REQUEST_UART8_RX;
  7896. 8003aa0: 4b94 ldr r3, [pc, #592] @ (8003cf4 <HAL_UART_MspInit+0x328>)
  7897. 8003aa2: 2251 movs r2, #81 @ 0x51
  7898. 8003aa4: 605a str r2, [r3, #4]
  7899. hdma_uart8_rx.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7900. 8003aa6: 4b93 ldr r3, [pc, #588] @ (8003cf4 <HAL_UART_MspInit+0x328>)
  7901. 8003aa8: 2200 movs r2, #0
  7902. 8003aaa: 609a str r2, [r3, #8]
  7903. hdma_uart8_rx.Init.PeriphInc = DMA_PINC_DISABLE;
  7904. 8003aac: 4b91 ldr r3, [pc, #580] @ (8003cf4 <HAL_UART_MspInit+0x328>)
  7905. 8003aae: 2200 movs r2, #0
  7906. 8003ab0: 60da str r2, [r3, #12]
  7907. hdma_uart8_rx.Init.MemInc = DMA_MINC_ENABLE;
  7908. 8003ab2: 4b90 ldr r3, [pc, #576] @ (8003cf4 <HAL_UART_MspInit+0x328>)
  7909. 8003ab4: f44f 6280 mov.w r2, #1024 @ 0x400
  7910. 8003ab8: 611a str r2, [r3, #16]
  7911. hdma_uart8_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  7912. 8003aba: 4b8e ldr r3, [pc, #568] @ (8003cf4 <HAL_UART_MspInit+0x328>)
  7913. 8003abc: 2200 movs r2, #0
  7914. 8003abe: 615a str r2, [r3, #20]
  7915. hdma_uart8_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  7916. 8003ac0: 4b8c ldr r3, [pc, #560] @ (8003cf4 <HAL_UART_MspInit+0x328>)
  7917. 8003ac2: 2200 movs r2, #0
  7918. 8003ac4: 619a str r2, [r3, #24]
  7919. hdma_uart8_rx.Init.Mode = DMA_NORMAL;
  7920. 8003ac6: 4b8b ldr r3, [pc, #556] @ (8003cf4 <HAL_UART_MspInit+0x328>)
  7921. 8003ac8: 2200 movs r2, #0
  7922. 8003aca: 61da str r2, [r3, #28]
  7923. hdma_uart8_rx.Init.Priority = DMA_PRIORITY_VERY_HIGH;
  7924. 8003acc: 4b89 ldr r3, [pc, #548] @ (8003cf4 <HAL_UART_MspInit+0x328>)
  7925. 8003ace: f44f 3240 mov.w r2, #196608 @ 0x30000
  7926. 8003ad2: 621a str r2, [r3, #32]
  7927. hdma_uart8_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7928. 8003ad4: 4b87 ldr r3, [pc, #540] @ (8003cf4 <HAL_UART_MspInit+0x328>)
  7929. 8003ad6: 2200 movs r2, #0
  7930. 8003ad8: 625a str r2, [r3, #36] @ 0x24
  7931. if (HAL_DMA_Init(&hdma_uart8_rx) != HAL_OK)
  7932. 8003ada: 4886 ldr r0, [pc, #536] @ (8003cf4 <HAL_UART_MspInit+0x328>)
  7933. 8003adc: f002 f988 bl 8005df0 <HAL_DMA_Init>
  7934. 8003ae0: 4603 mov r3, r0
  7935. 8003ae2: 2b00 cmp r3, #0
  7936. 8003ae4: d001 beq.n 8003aea <HAL_UART_MspInit+0x11e>
  7937. {
  7938. Error_Handler();
  7939. 8003ae6: f7fe fdd7 bl 8002698 <Error_Handler>
  7940. }
  7941. __HAL_LINKDMA(huart,hdmarx,hdma_uart8_rx);
  7942. 8003aea: f507 7384 add.w r3, r7, #264 @ 0x108
  7943. 8003aee: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7944. 8003af2: 681b ldr r3, [r3, #0]
  7945. 8003af4: 4a7f ldr r2, [pc, #508] @ (8003cf4 <HAL_UART_MspInit+0x328>)
  7946. 8003af6: f8c3 2080 str.w r2, [r3, #128] @ 0x80
  7947. 8003afa: 4a7e ldr r2, [pc, #504] @ (8003cf4 <HAL_UART_MspInit+0x328>)
  7948. 8003afc: f507 7384 add.w r3, r7, #264 @ 0x108
  7949. 8003b00: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7950. 8003b04: 681b ldr r3, [r3, #0]
  7951. 8003b06: 6393 str r3, [r2, #56] @ 0x38
  7952. /* UART8_TX Init */
  7953. hdma_uart8_tx.Instance = DMA2_Stream6;
  7954. 8003b08: 4b7c ldr r3, [pc, #496] @ (8003cfc <HAL_UART_MspInit+0x330>)
  7955. 8003b0a: 4a7d ldr r2, [pc, #500] @ (8003d00 <HAL_UART_MspInit+0x334>)
  7956. 8003b0c: 601a str r2, [r3, #0]
  7957. hdma_uart8_tx.Init.Request = DMA_REQUEST_UART8_TX;
  7958. 8003b0e: 4b7b ldr r3, [pc, #492] @ (8003cfc <HAL_UART_MspInit+0x330>)
  7959. 8003b10: 2252 movs r2, #82 @ 0x52
  7960. 8003b12: 605a str r2, [r3, #4]
  7961. hdma_uart8_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
  7962. 8003b14: 4b79 ldr r3, [pc, #484] @ (8003cfc <HAL_UART_MspInit+0x330>)
  7963. 8003b16: 2240 movs r2, #64 @ 0x40
  7964. 8003b18: 609a str r2, [r3, #8]
  7965. hdma_uart8_tx.Init.PeriphInc = DMA_PINC_DISABLE;
  7966. 8003b1a: 4b78 ldr r3, [pc, #480] @ (8003cfc <HAL_UART_MspInit+0x330>)
  7967. 8003b1c: 2200 movs r2, #0
  7968. 8003b1e: 60da str r2, [r3, #12]
  7969. hdma_uart8_tx.Init.MemInc = DMA_MINC_ENABLE;
  7970. 8003b20: 4b76 ldr r3, [pc, #472] @ (8003cfc <HAL_UART_MspInit+0x330>)
  7971. 8003b22: f44f 6280 mov.w r2, #1024 @ 0x400
  7972. 8003b26: 611a str r2, [r3, #16]
  7973. hdma_uart8_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  7974. 8003b28: 4b74 ldr r3, [pc, #464] @ (8003cfc <HAL_UART_MspInit+0x330>)
  7975. 8003b2a: 2200 movs r2, #0
  7976. 8003b2c: 615a str r2, [r3, #20]
  7977. hdma_uart8_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  7978. 8003b2e: 4b73 ldr r3, [pc, #460] @ (8003cfc <HAL_UART_MspInit+0x330>)
  7979. 8003b30: 2200 movs r2, #0
  7980. 8003b32: 619a str r2, [r3, #24]
  7981. hdma_uart8_tx.Init.Mode = DMA_NORMAL;
  7982. 8003b34: 4b71 ldr r3, [pc, #452] @ (8003cfc <HAL_UART_MspInit+0x330>)
  7983. 8003b36: 2200 movs r2, #0
  7984. 8003b38: 61da str r2, [r3, #28]
  7985. hdma_uart8_tx.Init.Priority = DMA_PRIORITY_VERY_HIGH;
  7986. 8003b3a: 4b70 ldr r3, [pc, #448] @ (8003cfc <HAL_UART_MspInit+0x330>)
  7987. 8003b3c: f44f 3240 mov.w r2, #196608 @ 0x30000
  7988. 8003b40: 621a str r2, [r3, #32]
  7989. hdma_uart8_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7990. 8003b42: 4b6e ldr r3, [pc, #440] @ (8003cfc <HAL_UART_MspInit+0x330>)
  7991. 8003b44: 2200 movs r2, #0
  7992. 8003b46: 625a str r2, [r3, #36] @ 0x24
  7993. if (HAL_DMA_Init(&hdma_uart8_tx) != HAL_OK)
  7994. 8003b48: 486c ldr r0, [pc, #432] @ (8003cfc <HAL_UART_MspInit+0x330>)
  7995. 8003b4a: f002 f951 bl 8005df0 <HAL_DMA_Init>
  7996. 8003b4e: 4603 mov r3, r0
  7997. 8003b50: 2b00 cmp r3, #0
  7998. 8003b52: d001 beq.n 8003b58 <HAL_UART_MspInit+0x18c>
  7999. {
  8000. Error_Handler();
  8001. 8003b54: f7fe fda0 bl 8002698 <Error_Handler>
  8002. }
  8003. __HAL_LINKDMA(huart,hdmatx,hdma_uart8_tx);
  8004. 8003b58: f507 7384 add.w r3, r7, #264 @ 0x108
  8005. 8003b5c: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  8006. 8003b60: 681b ldr r3, [r3, #0]
  8007. 8003b62: 4a66 ldr r2, [pc, #408] @ (8003cfc <HAL_UART_MspInit+0x330>)
  8008. 8003b64: 67da str r2, [r3, #124] @ 0x7c
  8009. 8003b66: 4a65 ldr r2, [pc, #404] @ (8003cfc <HAL_UART_MspInit+0x330>)
  8010. 8003b68: f507 7384 add.w r3, r7, #264 @ 0x108
  8011. 8003b6c: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  8012. 8003b70: 681b ldr r3, [r3, #0]
  8013. 8003b72: 6393 str r3, [r2, #56] @ 0x38
  8014. /* UART8 interrupt Init */
  8015. HAL_NVIC_SetPriority(UART8_IRQn, 5, 0);
  8016. 8003b74: 2200 movs r2, #0
  8017. 8003b76: 2105 movs r1, #5
  8018. 8003b78: 2053 movs r0, #83 @ 0x53
  8019. 8003b7a: f001 fe93 bl 80058a4 <HAL_NVIC_SetPriority>
  8020. HAL_NVIC_EnableIRQ(UART8_IRQn);
  8021. 8003b7e: 2053 movs r0, #83 @ 0x53
  8022. 8003b80: f001 feaa bl 80058d8 <HAL_NVIC_EnableIRQ>
  8023. /* USER CODE BEGIN USART6_MspInit 1 */
  8024. /* USER CODE END USART6_MspInit 1 */
  8025. }
  8026. }
  8027. 8003b84: e17e b.n 8003e84 <HAL_UART_MspInit+0x4b8>
  8028. else if(huart->Instance==USART1)
  8029. 8003b86: f507 7384 add.w r3, r7, #264 @ 0x108
  8030. 8003b8a: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  8031. 8003b8e: 681b ldr r3, [r3, #0]
  8032. 8003b90: 681b ldr r3, [r3, #0]
  8033. 8003b92: 4a5c ldr r2, [pc, #368] @ (8003d04 <HAL_UART_MspInit+0x338>)
  8034. 8003b94: 4293 cmp r3, r2
  8035. 8003b96: d14f bne.n 8003c38 <HAL_UART_MspInit+0x26c>
  8036. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART1;
  8037. 8003b98: f04f 0201 mov.w r2, #1
  8038. 8003b9c: f04f 0300 mov.w r3, #0
  8039. 8003ba0: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  8040. PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
  8041. 8003ba4: 2300 movs r3, #0
  8042. 8003ba6: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  8043. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8044. 8003baa: f107 0330 add.w r3, r7, #48 @ 0x30
  8045. 8003bae: 4618 mov r0, r3
  8046. 8003bb0: f007 fbf4 bl 800b39c <HAL_RCCEx_PeriphCLKConfig>
  8047. 8003bb4: 4603 mov r3, r0
  8048. 8003bb6: 2b00 cmp r3, #0
  8049. 8003bb8: d001 beq.n 8003bbe <HAL_UART_MspInit+0x1f2>
  8050. Error_Handler();
  8051. 8003bba: f7fe fd6d bl 8002698 <Error_Handler>
  8052. __HAL_RCC_USART1_CLK_ENABLE();
  8053. 8003bbe: 4b4b ldr r3, [pc, #300] @ (8003cec <HAL_UART_MspInit+0x320>)
  8054. 8003bc0: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8055. 8003bc4: 4a49 ldr r2, [pc, #292] @ (8003cec <HAL_UART_MspInit+0x320>)
  8056. 8003bc6: f043 0310 orr.w r3, r3, #16
  8057. 8003bca: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  8058. 8003bce: 4b47 ldr r3, [pc, #284] @ (8003cec <HAL_UART_MspInit+0x320>)
  8059. 8003bd0: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8060. 8003bd4: f003 0310 and.w r3, r3, #16
  8061. 8003bd8: 627b str r3, [r7, #36] @ 0x24
  8062. 8003bda: 6a7b ldr r3, [r7, #36] @ 0x24
  8063. __HAL_RCC_GPIOB_CLK_ENABLE();
  8064. 8003bdc: 4b43 ldr r3, [pc, #268] @ (8003cec <HAL_UART_MspInit+0x320>)
  8065. 8003bde: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8066. 8003be2: 4a42 ldr r2, [pc, #264] @ (8003cec <HAL_UART_MspInit+0x320>)
  8067. 8003be4: f043 0302 orr.w r3, r3, #2
  8068. 8003be8: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8069. 8003bec: 4b3f ldr r3, [pc, #252] @ (8003cec <HAL_UART_MspInit+0x320>)
  8070. 8003bee: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8071. 8003bf2: f003 0302 and.w r3, r3, #2
  8072. 8003bf6: 623b str r3, [r7, #32]
  8073. 8003bf8: 6a3b ldr r3, [r7, #32]
  8074. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  8075. 8003bfa: f44f 4340 mov.w r3, #49152 @ 0xc000
  8076. 8003bfe: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  8077. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8078. 8003c02: 2302 movs r3, #2
  8079. 8003c04: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  8080. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8081. 8003c08: 2300 movs r3, #0
  8082. 8003c0a: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  8083. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  8084. 8003c0e: 2302 movs r3, #2
  8085. 8003c10: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  8086. GPIO_InitStruct.Alternate = GPIO_AF4_USART1;
  8087. 8003c14: 2304 movs r3, #4
  8088. 8003c16: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  8089. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8090. 8003c1a: f107 03f4 add.w r3, r7, #244 @ 0xf4
  8091. 8003c1e: 4619 mov r1, r3
  8092. 8003c20: 4839 ldr r0, [pc, #228] @ (8003d08 <HAL_UART_MspInit+0x33c>)
  8093. 8003c22: f006 f867 bl 8009cf4 <HAL_GPIO_Init>
  8094. HAL_NVIC_SetPriority(USART1_IRQn, 5, 0);
  8095. 8003c26: 2200 movs r2, #0
  8096. 8003c28: 2105 movs r1, #5
  8097. 8003c2a: 2025 movs r0, #37 @ 0x25
  8098. 8003c2c: f001 fe3a bl 80058a4 <HAL_NVIC_SetPriority>
  8099. HAL_NVIC_EnableIRQ(USART1_IRQn);
  8100. 8003c30: 2025 movs r0, #37 @ 0x25
  8101. 8003c32: f001 fe51 bl 80058d8 <HAL_NVIC_EnableIRQ>
  8102. }
  8103. 8003c36: e125 b.n 8003e84 <HAL_UART_MspInit+0x4b8>
  8104. else if(huart->Instance==USART2)
  8105. 8003c38: f507 7384 add.w r3, r7, #264 @ 0x108
  8106. 8003c3c: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  8107. 8003c40: 681b ldr r3, [r3, #0]
  8108. 8003c42: 681b ldr r3, [r3, #0]
  8109. 8003c44: 4a31 ldr r2, [pc, #196] @ (8003d0c <HAL_UART_MspInit+0x340>)
  8110. 8003c46: 4293 cmp r3, r2
  8111. 8003c48: d164 bne.n 8003d14 <HAL_UART_MspInit+0x348>
  8112. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART2;
  8113. 8003c4a: f04f 0202 mov.w r2, #2
  8114. 8003c4e: f04f 0300 mov.w r3, #0
  8115. 8003c52: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  8116. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  8117. 8003c56: 2300 movs r3, #0
  8118. 8003c58: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  8119. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8120. 8003c5c: f107 0330 add.w r3, r7, #48 @ 0x30
  8121. 8003c60: 4618 mov r0, r3
  8122. 8003c62: f007 fb9b bl 800b39c <HAL_RCCEx_PeriphCLKConfig>
  8123. 8003c66: 4603 mov r3, r0
  8124. 8003c68: 2b00 cmp r3, #0
  8125. 8003c6a: d001 beq.n 8003c70 <HAL_UART_MspInit+0x2a4>
  8126. Error_Handler();
  8127. 8003c6c: f7fe fd14 bl 8002698 <Error_Handler>
  8128. __HAL_RCC_USART2_CLK_ENABLE();
  8129. 8003c70: 4b1e ldr r3, [pc, #120] @ (8003cec <HAL_UART_MspInit+0x320>)
  8130. 8003c72: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8131. 8003c76: 4a1d ldr r2, [pc, #116] @ (8003cec <HAL_UART_MspInit+0x320>)
  8132. 8003c78: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  8133. 8003c7c: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8134. 8003c80: 4b1a ldr r3, [pc, #104] @ (8003cec <HAL_UART_MspInit+0x320>)
  8135. 8003c82: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8136. 8003c86: f403 3300 and.w r3, r3, #131072 @ 0x20000
  8137. 8003c8a: 61fb str r3, [r7, #28]
  8138. 8003c8c: 69fb ldr r3, [r7, #28]
  8139. __HAL_RCC_GPIOD_CLK_ENABLE();
  8140. 8003c8e: 4b17 ldr r3, [pc, #92] @ (8003cec <HAL_UART_MspInit+0x320>)
  8141. 8003c90: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8142. 8003c94: 4a15 ldr r2, [pc, #84] @ (8003cec <HAL_UART_MspInit+0x320>)
  8143. 8003c96: f043 0308 orr.w r3, r3, #8
  8144. 8003c9a: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8145. 8003c9e: 4b13 ldr r3, [pc, #76] @ (8003cec <HAL_UART_MspInit+0x320>)
  8146. 8003ca0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8147. 8003ca4: f003 0308 and.w r3, r3, #8
  8148. 8003ca8: 61bb str r3, [r7, #24]
  8149. 8003caa: 69bb ldr r3, [r7, #24]
  8150. GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_6;
  8151. 8003cac: 2360 movs r3, #96 @ 0x60
  8152. 8003cae: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  8153. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8154. 8003cb2: 2302 movs r3, #2
  8155. 8003cb4: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  8156. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8157. 8003cb8: 2300 movs r3, #0
  8158. 8003cba: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  8159. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  8160. 8003cbe: 2302 movs r3, #2
  8161. 8003cc0: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  8162. GPIO_InitStruct.Alternate = GPIO_AF7_USART2;
  8163. 8003cc4: 2307 movs r3, #7
  8164. 8003cc6: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  8165. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  8166. 8003cca: f107 03f4 add.w r3, r7, #244 @ 0xf4
  8167. 8003cce: 4619 mov r1, r3
  8168. 8003cd0: 480f ldr r0, [pc, #60] @ (8003d10 <HAL_UART_MspInit+0x344>)
  8169. 8003cd2: f006 f80f bl 8009cf4 <HAL_GPIO_Init>
  8170. HAL_NVIC_SetPriority(USART2_IRQn, 5, 0);
  8171. 8003cd6: 2200 movs r2, #0
  8172. 8003cd8: 2105 movs r1, #5
  8173. 8003cda: 2026 movs r0, #38 @ 0x26
  8174. 8003cdc: f001 fde2 bl 80058a4 <HAL_NVIC_SetPriority>
  8175. HAL_NVIC_EnableIRQ(USART2_IRQn);
  8176. 8003ce0: 2026 movs r0, #38 @ 0x26
  8177. 8003ce2: f001 fdf9 bl 80058d8 <HAL_NVIC_EnableIRQ>
  8178. }
  8179. 8003ce6: e0cd b.n 8003e84 <HAL_UART_MspInit+0x4b8>
  8180. 8003ce8: 40007c00 .word 0x40007c00
  8181. 8003cec: 58024400 .word 0x58024400
  8182. 8003cf0: 58021000 .word 0x58021000
  8183. 8003cf4: 24000564 .word 0x24000564
  8184. 8003cf8: 400204b8 .word 0x400204b8
  8185. 8003cfc: 240005dc .word 0x240005dc
  8186. 8003d00: 400204a0 .word 0x400204a0
  8187. 8003d04: 40011000 .word 0x40011000
  8188. 8003d08: 58020400 .word 0x58020400
  8189. 8003d0c: 40004400 .word 0x40004400
  8190. 8003d10: 58020c00 .word 0x58020c00
  8191. else if(huart->Instance==USART3)
  8192. 8003d14: f507 7384 add.w r3, r7, #264 @ 0x108
  8193. 8003d18: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  8194. 8003d1c: 681b ldr r3, [r3, #0]
  8195. 8003d1e: 681b ldr r3, [r3, #0]
  8196. 8003d20: 4a5b ldr r2, [pc, #364] @ (8003e90 <HAL_UART_MspInit+0x4c4>)
  8197. 8003d22: 4293 cmp r3, r2
  8198. 8003d24: d14f bne.n 8003dc6 <HAL_UART_MspInit+0x3fa>
  8199. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART3;
  8200. 8003d26: f04f 0202 mov.w r2, #2
  8201. 8003d2a: f04f 0300 mov.w r3, #0
  8202. 8003d2e: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  8203. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  8204. 8003d32: 2300 movs r3, #0
  8205. 8003d34: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  8206. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8207. 8003d38: f107 0330 add.w r3, r7, #48 @ 0x30
  8208. 8003d3c: 4618 mov r0, r3
  8209. 8003d3e: f007 fb2d bl 800b39c <HAL_RCCEx_PeriphCLKConfig>
  8210. 8003d42: 4603 mov r3, r0
  8211. 8003d44: 2b00 cmp r3, #0
  8212. 8003d46: d001 beq.n 8003d4c <HAL_UART_MspInit+0x380>
  8213. Error_Handler();
  8214. 8003d48: f7fe fca6 bl 8002698 <Error_Handler>
  8215. __HAL_RCC_USART3_CLK_ENABLE();
  8216. 8003d4c: 4b51 ldr r3, [pc, #324] @ (8003e94 <HAL_UART_MspInit+0x4c8>)
  8217. 8003d4e: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8218. 8003d52: 4a50 ldr r2, [pc, #320] @ (8003e94 <HAL_UART_MspInit+0x4c8>)
  8219. 8003d54: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  8220. 8003d58: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8221. 8003d5c: 4b4d ldr r3, [pc, #308] @ (8003e94 <HAL_UART_MspInit+0x4c8>)
  8222. 8003d5e: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8223. 8003d62: f403 2380 and.w r3, r3, #262144 @ 0x40000
  8224. 8003d66: 617b str r3, [r7, #20]
  8225. 8003d68: 697b ldr r3, [r7, #20]
  8226. __HAL_RCC_GPIOD_CLK_ENABLE();
  8227. 8003d6a: 4b4a ldr r3, [pc, #296] @ (8003e94 <HAL_UART_MspInit+0x4c8>)
  8228. 8003d6c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8229. 8003d70: 4a48 ldr r2, [pc, #288] @ (8003e94 <HAL_UART_MspInit+0x4c8>)
  8230. 8003d72: f043 0308 orr.w r3, r3, #8
  8231. 8003d76: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8232. 8003d7a: 4b46 ldr r3, [pc, #280] @ (8003e94 <HAL_UART_MspInit+0x4c8>)
  8233. 8003d7c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8234. 8003d80: f003 0308 and.w r3, r3, #8
  8235. 8003d84: 613b str r3, [r7, #16]
  8236. 8003d86: 693b ldr r3, [r7, #16]
  8237. GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9;
  8238. 8003d88: f44f 7340 mov.w r3, #768 @ 0x300
  8239. 8003d8c: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  8240. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8241. 8003d90: 2302 movs r3, #2
  8242. 8003d92: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  8243. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8244. 8003d96: 2300 movs r3, #0
  8245. 8003d98: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  8246. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  8247. 8003d9c: 2302 movs r3, #2
  8248. 8003d9e: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  8249. GPIO_InitStruct.Alternate = GPIO_AF7_USART3;
  8250. 8003da2: 2307 movs r3, #7
  8251. 8003da4: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  8252. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  8253. 8003da8: f107 03f4 add.w r3, r7, #244 @ 0xf4
  8254. 8003dac: 4619 mov r1, r3
  8255. 8003dae: 483a ldr r0, [pc, #232] @ (8003e98 <HAL_UART_MspInit+0x4cc>)
  8256. 8003db0: f005 ffa0 bl 8009cf4 <HAL_GPIO_Init>
  8257. HAL_NVIC_SetPriority(USART3_IRQn, 5, 0);
  8258. 8003db4: 2200 movs r2, #0
  8259. 8003db6: 2105 movs r1, #5
  8260. 8003db8: 2027 movs r0, #39 @ 0x27
  8261. 8003dba: f001 fd73 bl 80058a4 <HAL_NVIC_SetPriority>
  8262. HAL_NVIC_EnableIRQ(USART3_IRQn);
  8263. 8003dbe: 2027 movs r0, #39 @ 0x27
  8264. 8003dc0: f001 fd8a bl 80058d8 <HAL_NVIC_EnableIRQ>
  8265. }
  8266. 8003dc4: e05e b.n 8003e84 <HAL_UART_MspInit+0x4b8>
  8267. else if(huart->Instance==USART6)
  8268. 8003dc6: f507 7384 add.w r3, r7, #264 @ 0x108
  8269. 8003dca: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  8270. 8003dce: 681b ldr r3, [r3, #0]
  8271. 8003dd0: 681b ldr r3, [r3, #0]
  8272. 8003dd2: 4a32 ldr r2, [pc, #200] @ (8003e9c <HAL_UART_MspInit+0x4d0>)
  8273. 8003dd4: 4293 cmp r3, r2
  8274. 8003dd6: d155 bne.n 8003e84 <HAL_UART_MspInit+0x4b8>
  8275. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART6;
  8276. 8003dd8: f04f 0201 mov.w r2, #1
  8277. 8003ddc: f04f 0300 mov.w r3, #0
  8278. 8003de0: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  8279. PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
  8280. 8003de4: 2300 movs r3, #0
  8281. 8003de6: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  8282. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8283. 8003dea: f107 0330 add.w r3, r7, #48 @ 0x30
  8284. 8003dee: 4618 mov r0, r3
  8285. 8003df0: f007 fad4 bl 800b39c <HAL_RCCEx_PeriphCLKConfig>
  8286. 8003df4: 4603 mov r3, r0
  8287. 8003df6: 2b00 cmp r3, #0
  8288. 8003df8: d001 beq.n 8003dfe <HAL_UART_MspInit+0x432>
  8289. Error_Handler();
  8290. 8003dfa: f7fe fc4d bl 8002698 <Error_Handler>
  8291. __HAL_RCC_USART6_CLK_ENABLE();
  8292. 8003dfe: 4b25 ldr r3, [pc, #148] @ (8003e94 <HAL_UART_MspInit+0x4c8>)
  8293. 8003e00: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8294. 8003e04: 4a23 ldr r2, [pc, #140] @ (8003e94 <HAL_UART_MspInit+0x4c8>)
  8295. 8003e06: f043 0320 orr.w r3, r3, #32
  8296. 8003e0a: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  8297. 8003e0e: 4b21 ldr r3, [pc, #132] @ (8003e94 <HAL_UART_MspInit+0x4c8>)
  8298. 8003e10: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8299. 8003e14: f003 0320 and.w r3, r3, #32
  8300. 8003e18: 60fb str r3, [r7, #12]
  8301. 8003e1a: 68fb ldr r3, [r7, #12]
  8302. __HAL_RCC_GPIOC_CLK_ENABLE();
  8303. 8003e1c: 4b1d ldr r3, [pc, #116] @ (8003e94 <HAL_UART_MspInit+0x4c8>)
  8304. 8003e1e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8305. 8003e22: 4a1c ldr r2, [pc, #112] @ (8003e94 <HAL_UART_MspInit+0x4c8>)
  8306. 8003e24: f043 0304 orr.w r3, r3, #4
  8307. 8003e28: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8308. 8003e2c: 4b19 ldr r3, [pc, #100] @ (8003e94 <HAL_UART_MspInit+0x4c8>)
  8309. 8003e2e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8310. 8003e32: f003 0204 and.w r2, r3, #4
  8311. 8003e36: f507 7384 add.w r3, r7, #264 @ 0x108
  8312. 8003e3a: f5a3 7380 sub.w r3, r3, #256 @ 0x100
  8313. 8003e3e: 601a str r2, [r3, #0]
  8314. 8003e40: f507 7384 add.w r3, r7, #264 @ 0x108
  8315. 8003e44: f5a3 7380 sub.w r3, r3, #256 @ 0x100
  8316. 8003e48: 681b ldr r3, [r3, #0]
  8317. GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7;
  8318. 8003e4a: 23c0 movs r3, #192 @ 0xc0
  8319. 8003e4c: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  8320. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8321. 8003e50: 2302 movs r3, #2
  8322. 8003e52: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  8323. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8324. 8003e56: 2300 movs r3, #0
  8325. 8003e58: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  8326. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  8327. 8003e5c: 2302 movs r3, #2
  8328. 8003e5e: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  8329. GPIO_InitStruct.Alternate = GPIO_AF7_USART6;
  8330. 8003e62: 2307 movs r3, #7
  8331. 8003e64: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  8332. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8333. 8003e68: f107 03f4 add.w r3, r7, #244 @ 0xf4
  8334. 8003e6c: 4619 mov r1, r3
  8335. 8003e6e: 480c ldr r0, [pc, #48] @ (8003ea0 <HAL_UART_MspInit+0x4d4>)
  8336. 8003e70: f005 ff40 bl 8009cf4 <HAL_GPIO_Init>
  8337. HAL_NVIC_SetPriority(USART6_IRQn, 5, 0);
  8338. 8003e74: 2200 movs r2, #0
  8339. 8003e76: 2105 movs r1, #5
  8340. 8003e78: 2047 movs r0, #71 @ 0x47
  8341. 8003e7a: f001 fd13 bl 80058a4 <HAL_NVIC_SetPriority>
  8342. HAL_NVIC_EnableIRQ(USART6_IRQn);
  8343. 8003e7e: 2047 movs r0, #71 @ 0x47
  8344. 8003e80: f001 fd2a bl 80058d8 <HAL_NVIC_EnableIRQ>
  8345. }
  8346. 8003e84: bf00 nop
  8347. 8003e86: f507 7784 add.w r7, r7, #264 @ 0x108
  8348. 8003e8a: 46bd mov sp, r7
  8349. 8003e8c: bd80 pop {r7, pc}
  8350. 8003e8e: bf00 nop
  8351. 8003e90: 40004800 .word 0x40004800
  8352. 8003e94: 58024400 .word 0x58024400
  8353. 8003e98: 58020c00 .word 0x58020c00
  8354. 8003e9c: 40011400 .word 0x40011400
  8355. 8003ea0: 58020800 .word 0x58020800
  8356. 08003ea4 <HAL_InitTick>:
  8357. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  8358. * @param TickPriority: Tick interrupt priority.
  8359. * @retval HAL status
  8360. */
  8361. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  8362. {
  8363. 8003ea4: b580 push {r7, lr}
  8364. 8003ea6: b090 sub sp, #64 @ 0x40
  8365. 8003ea8: af00 add r7, sp, #0
  8366. 8003eaa: 6078 str r0, [r7, #4]
  8367. uint32_t uwTimclock, uwAPB1Prescaler;
  8368. uint32_t uwPrescalerValue;
  8369. uint32_t pFLatency;
  8370. /*Configure the TIM6 IRQ priority */
  8371. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  8372. 8003eac: 687b ldr r3, [r7, #4]
  8373. 8003eae: 2b0f cmp r3, #15
  8374. 8003eb0: d827 bhi.n 8003f02 <HAL_InitTick+0x5e>
  8375. {
  8376. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0U);
  8377. 8003eb2: 2200 movs r2, #0
  8378. 8003eb4: 6879 ldr r1, [r7, #4]
  8379. 8003eb6: 2036 movs r0, #54 @ 0x36
  8380. 8003eb8: f001 fcf4 bl 80058a4 <HAL_NVIC_SetPriority>
  8381. /* Enable the TIM6 global Interrupt */
  8382. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  8383. 8003ebc: 2036 movs r0, #54 @ 0x36
  8384. 8003ebe: f001 fd0b bl 80058d8 <HAL_NVIC_EnableIRQ>
  8385. uwTickPrio = TickPriority;
  8386. 8003ec2: 4a29 ldr r2, [pc, #164] @ (8003f68 <HAL_InitTick+0xc4>)
  8387. 8003ec4: 687b ldr r3, [r7, #4]
  8388. 8003ec6: 6013 str r3, [r2, #0]
  8389. {
  8390. return HAL_ERROR;
  8391. }
  8392. /* Enable TIM6 clock */
  8393. __HAL_RCC_TIM6_CLK_ENABLE();
  8394. 8003ec8: 4b28 ldr r3, [pc, #160] @ (8003f6c <HAL_InitTick+0xc8>)
  8395. 8003eca: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8396. 8003ece: 4a27 ldr r2, [pc, #156] @ (8003f6c <HAL_InitTick+0xc8>)
  8397. 8003ed0: f043 0310 orr.w r3, r3, #16
  8398. 8003ed4: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8399. 8003ed8: 4b24 ldr r3, [pc, #144] @ (8003f6c <HAL_InitTick+0xc8>)
  8400. 8003eda: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8401. 8003ede: f003 0310 and.w r3, r3, #16
  8402. 8003ee2: 60fb str r3, [r7, #12]
  8403. 8003ee4: 68fb ldr r3, [r7, #12]
  8404. /* Get clock configuration */
  8405. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  8406. 8003ee6: f107 0210 add.w r2, r7, #16
  8407. 8003eea: f107 0314 add.w r3, r7, #20
  8408. 8003eee: 4611 mov r1, r2
  8409. 8003ef0: 4618 mov r0, r3
  8410. 8003ef2: f007 fa11 bl 800b318 <HAL_RCC_GetClockConfig>
  8411. /* Get APB1 prescaler */
  8412. uwAPB1Prescaler = clkconfig.APB1CLKDivider;
  8413. 8003ef6: 6abb ldr r3, [r7, #40] @ 0x28
  8414. 8003ef8: 63bb str r3, [r7, #56] @ 0x38
  8415. /* Compute TIM6 clock */
  8416. if (uwAPB1Prescaler == RCC_HCLK_DIV1)
  8417. 8003efa: 6bbb ldr r3, [r7, #56] @ 0x38
  8418. 8003efc: 2b00 cmp r3, #0
  8419. 8003efe: d106 bne.n 8003f0e <HAL_InitTick+0x6a>
  8420. 8003f00: e001 b.n 8003f06 <HAL_InitTick+0x62>
  8421. return HAL_ERROR;
  8422. 8003f02: 2301 movs r3, #1
  8423. 8003f04: e02b b.n 8003f5e <HAL_InitTick+0xba>
  8424. {
  8425. uwTimclock = HAL_RCC_GetPCLK1Freq();
  8426. 8003f06: f007 f9db bl 800b2c0 <HAL_RCC_GetPCLK1Freq>
  8427. 8003f0a: 63f8 str r0, [r7, #60] @ 0x3c
  8428. 8003f0c: e004 b.n 8003f18 <HAL_InitTick+0x74>
  8429. }
  8430. else
  8431. {
  8432. uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
  8433. 8003f0e: f007 f9d7 bl 800b2c0 <HAL_RCC_GetPCLK1Freq>
  8434. 8003f12: 4603 mov r3, r0
  8435. 8003f14: 005b lsls r3, r3, #1
  8436. 8003f16: 63fb str r3, [r7, #60] @ 0x3c
  8437. }
  8438. /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
  8439. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
  8440. 8003f18: 6bfb ldr r3, [r7, #60] @ 0x3c
  8441. 8003f1a: 4a15 ldr r2, [pc, #84] @ (8003f70 <HAL_InitTick+0xcc>)
  8442. 8003f1c: fba2 2303 umull r2, r3, r2, r3
  8443. 8003f20: 0c9b lsrs r3, r3, #18
  8444. 8003f22: 3b01 subs r3, #1
  8445. 8003f24: 637b str r3, [r7, #52] @ 0x34
  8446. /* Initialize TIM6 */
  8447. htim6.Instance = TIM6;
  8448. 8003f26: 4b13 ldr r3, [pc, #76] @ (8003f74 <HAL_InitTick+0xd0>)
  8449. 8003f28: 4a13 ldr r2, [pc, #76] @ (8003f78 <HAL_InitTick+0xd4>)
  8450. 8003f2a: 601a str r2, [r3, #0]
  8451. + Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
  8452. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  8453. + ClockDivision = 0
  8454. + Counter direction = Up
  8455. */
  8456. htim6.Init.Period = (1000000U / 1000U) - 1U;
  8457. 8003f2c: 4b11 ldr r3, [pc, #68] @ (8003f74 <HAL_InitTick+0xd0>)
  8458. 8003f2e: f240 32e7 movw r2, #999 @ 0x3e7
  8459. 8003f32: 60da str r2, [r3, #12]
  8460. htim6.Init.Prescaler = uwPrescalerValue;
  8461. 8003f34: 4a0f ldr r2, [pc, #60] @ (8003f74 <HAL_InitTick+0xd0>)
  8462. 8003f36: 6b7b ldr r3, [r7, #52] @ 0x34
  8463. 8003f38: 6053 str r3, [r2, #4]
  8464. htim6.Init.ClockDivision = 0;
  8465. 8003f3a: 4b0e ldr r3, [pc, #56] @ (8003f74 <HAL_InitTick+0xd0>)
  8466. 8003f3c: 2200 movs r2, #0
  8467. 8003f3e: 611a str r2, [r3, #16]
  8468. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  8469. 8003f40: 4b0c ldr r3, [pc, #48] @ (8003f74 <HAL_InitTick+0xd0>)
  8470. 8003f42: 2200 movs r2, #0
  8471. 8003f44: 609a str r2, [r3, #8]
  8472. if(HAL_TIM_Base_Init(&htim6) == HAL_OK)
  8473. 8003f46: 480b ldr r0, [pc, #44] @ (8003f74 <HAL_InitTick+0xd0>)
  8474. 8003f48: f009 f8f0 bl 800d12c <HAL_TIM_Base_Init>
  8475. 8003f4c: 4603 mov r3, r0
  8476. 8003f4e: 2b00 cmp r3, #0
  8477. 8003f50: d104 bne.n 8003f5c <HAL_InitTick+0xb8>
  8478. {
  8479. /* Start the TIM time Base generation in interrupt mode */
  8480. return HAL_TIM_Base_Start_IT(&htim6);
  8481. 8003f52: 4808 ldr r0, [pc, #32] @ (8003f74 <HAL_InitTick+0xd0>)
  8482. 8003f54: f009 f94c bl 800d1f0 <HAL_TIM_Base_Start_IT>
  8483. 8003f58: 4603 mov r3, r0
  8484. 8003f5a: e000 b.n 8003f5e <HAL_InitTick+0xba>
  8485. }
  8486. /* Return function status */
  8487. return HAL_ERROR;
  8488. 8003f5c: 2301 movs r3, #1
  8489. }
  8490. 8003f5e: 4618 mov r0, r3
  8491. 8003f60: 3740 adds r7, #64 @ 0x40
  8492. 8003f62: 46bd mov sp, r7
  8493. 8003f64: bd80 pop {r7, pc}
  8494. 8003f66: bf00 nop
  8495. 8003f68: 2400002c .word 0x2400002c
  8496. 8003f6c: 58024400 .word 0x58024400
  8497. 8003f70: 431bde83 .word 0x431bde83
  8498. 8003f74: 24000f9c .word 0x24000f9c
  8499. 8003f78: 40001000 .word 0x40001000
  8500. 08003f7c <NMI_Handler>:
  8501. /******************************************************************************/
  8502. /**
  8503. * @brief This function handles Non maskable interrupt.
  8504. */
  8505. void NMI_Handler(void)
  8506. {
  8507. 8003f7c: b480 push {r7}
  8508. 8003f7e: af00 add r7, sp, #0
  8509. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  8510. /* USER CODE END NonMaskableInt_IRQn 0 */
  8511. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  8512. while (1)
  8513. 8003f80: bf00 nop
  8514. 8003f82: e7fd b.n 8003f80 <NMI_Handler+0x4>
  8515. 08003f84 <HardFault_Handler>:
  8516. /**
  8517. * @brief This function handles Hard fault interrupt.
  8518. */
  8519. void HardFault_Handler(void)
  8520. {
  8521. 8003f84: b480 push {r7}
  8522. 8003f86: af00 add r7, sp, #0
  8523. /* USER CODE BEGIN HardFault_IRQn 0 */
  8524. /* USER CODE END HardFault_IRQn 0 */
  8525. while (1)
  8526. 8003f88: bf00 nop
  8527. 8003f8a: e7fd b.n 8003f88 <HardFault_Handler+0x4>
  8528. 08003f8c <MemManage_Handler>:
  8529. /**
  8530. * @brief This function handles Memory management fault.
  8531. */
  8532. void MemManage_Handler(void)
  8533. {
  8534. 8003f8c: b480 push {r7}
  8535. 8003f8e: af00 add r7, sp, #0
  8536. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  8537. /* USER CODE END MemoryManagement_IRQn 0 */
  8538. while (1)
  8539. 8003f90: bf00 nop
  8540. 8003f92: e7fd b.n 8003f90 <MemManage_Handler+0x4>
  8541. 08003f94 <BusFault_Handler>:
  8542. /**
  8543. * @brief This function handles Pre-fetch fault, memory access fault.
  8544. */
  8545. void BusFault_Handler(void)
  8546. {
  8547. 8003f94: b480 push {r7}
  8548. 8003f96: af00 add r7, sp, #0
  8549. /* USER CODE BEGIN BusFault_IRQn 0 */
  8550. /* USER CODE END BusFault_IRQn 0 */
  8551. while (1)
  8552. 8003f98: bf00 nop
  8553. 8003f9a: e7fd b.n 8003f98 <BusFault_Handler+0x4>
  8554. 08003f9c <UsageFault_Handler>:
  8555. /**
  8556. * @brief This function handles Undefined instruction or illegal state.
  8557. */
  8558. void UsageFault_Handler(void)
  8559. {
  8560. 8003f9c: b480 push {r7}
  8561. 8003f9e: af00 add r7, sp, #0
  8562. /* USER CODE BEGIN UsageFault_IRQn 0 */
  8563. /* USER CODE END UsageFault_IRQn 0 */
  8564. while (1)
  8565. 8003fa0: bf00 nop
  8566. 8003fa2: e7fd b.n 8003fa0 <UsageFault_Handler+0x4>
  8567. 08003fa4 <DebugMon_Handler>:
  8568. /**
  8569. * @brief This function handles Debug monitor.
  8570. */
  8571. void DebugMon_Handler(void)
  8572. {
  8573. 8003fa4: b480 push {r7}
  8574. 8003fa6: af00 add r7, sp, #0
  8575. /* USER CODE END DebugMonitor_IRQn 0 */
  8576. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  8577. /* USER CODE END DebugMonitor_IRQn 1 */
  8578. }
  8579. 8003fa8: bf00 nop
  8580. 8003faa: 46bd mov sp, r7
  8581. 8003fac: f85d 7b04 ldr.w r7, [sp], #4
  8582. 8003fb0: 4770 bx lr
  8583. 08003fb2 <RCC_IRQHandler>:
  8584. /**
  8585. * @brief This function handles RCC global interrupt.
  8586. */
  8587. void RCC_IRQHandler(void)
  8588. {
  8589. 8003fb2: b480 push {r7}
  8590. 8003fb4: af00 add r7, sp, #0
  8591. /* USER CODE END RCC_IRQn 0 */
  8592. /* USER CODE BEGIN RCC_IRQn 1 */
  8593. /* USER CODE END RCC_IRQn 1 */
  8594. }
  8595. 8003fb6: bf00 nop
  8596. 8003fb8: 46bd mov sp, r7
  8597. 8003fba: f85d 7b04 ldr.w r7, [sp], #4
  8598. 8003fbe: 4770 bx lr
  8599. 08003fc0 <USART1_IRQHandler>:
  8600. /**
  8601. * @brief This function handles USART1 global interrupt.
  8602. */
  8603. void USART1_IRQHandler(void)
  8604. {
  8605. 8003fc0: b580 push {r7, lr}
  8606. 8003fc2: af00 add r7, sp, #0
  8607. /* USER CODE BEGIN USART1_IRQn 0 */
  8608. /* USER CODE END USART1_IRQn 0 */
  8609. HAL_UART_IRQHandler(&huart1);
  8610. 8003fc4: 4802 ldr r0, [pc, #8] @ (8003fd0 <USART1_IRQHandler+0x10>)
  8611. 8003fc6: f009 fcf1 bl 800d9ac <HAL_UART_IRQHandler>
  8612. /* USER CODE BEGIN USART1_IRQn 1 */
  8613. /* USER CODE END USART1_IRQn 1 */
  8614. }
  8615. 8003fca: bf00 nop
  8616. 8003fcc: bd80 pop {r7, pc}
  8617. 8003fce: bf00 nop
  8618. 8003fd0: 24000314 .word 0x24000314
  8619. 08003fd4 <USART2_IRQHandler>:
  8620. /**
  8621. * @brief This function handles USART2 global interrupt.
  8622. */
  8623. void USART2_IRQHandler(void)
  8624. {
  8625. 8003fd4: b580 push {r7, lr}
  8626. 8003fd6: af00 add r7, sp, #0
  8627. /* USER CODE BEGIN USART2_IRQn 0 */
  8628. /* USER CODE END USART2_IRQn 0 */
  8629. HAL_UART_IRQHandler(&huart2);
  8630. 8003fd8: 4802 ldr r0, [pc, #8] @ (8003fe4 <USART2_IRQHandler+0x10>)
  8631. 8003fda: f009 fce7 bl 800d9ac <HAL_UART_IRQHandler>
  8632. /* USER CODE BEGIN USART2_IRQn 1 */
  8633. /* USER CODE END USART2_IRQn 1 */
  8634. }
  8635. 8003fde: bf00 nop
  8636. 8003fe0: bd80 pop {r7, pc}
  8637. 8003fe2: bf00 nop
  8638. 8003fe4: 240003a8 .word 0x240003a8
  8639. 08003fe8 <USART3_IRQHandler>:
  8640. /**
  8641. * @brief This function handles USART3 global interrupt.
  8642. */
  8643. void USART3_IRQHandler(void)
  8644. {
  8645. 8003fe8: b580 push {r7, lr}
  8646. 8003fea: af00 add r7, sp, #0
  8647. /* USER CODE BEGIN USART3_IRQn 0 */
  8648. /* USER CODE END USART3_IRQn 0 */
  8649. HAL_UART_IRQHandler(&huart3);
  8650. 8003fec: 4802 ldr r0, [pc, #8] @ (8003ff8 <USART3_IRQHandler+0x10>)
  8651. 8003fee: f009 fcdd bl 800d9ac <HAL_UART_IRQHandler>
  8652. /* USER CODE BEGIN USART3_IRQn 1 */
  8653. /* USER CODE END USART3_IRQn 1 */
  8654. }
  8655. 8003ff2: bf00 nop
  8656. 8003ff4: bd80 pop {r7, pc}
  8657. 8003ff6: bf00 nop
  8658. 8003ff8: 2400043c .word 0x2400043c
  8659. 08003ffc <TIM6_DAC_IRQHandler>:
  8660. /**
  8661. * @brief This function handles TIM6 global interrupt, DAC1_CH1 and DAC1_CH2 underrun error interrupts.
  8662. */
  8663. void TIM6_DAC_IRQHandler(void)
  8664. {
  8665. 8003ffc: b580 push {r7, lr}
  8666. 8003ffe: af00 add r7, sp, #0
  8667. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  8668. /* USER CODE END TIM6_DAC_IRQn 0 */
  8669. HAL_TIM_IRQHandler(&htim6);
  8670. 8004000: 4802 ldr r0, [pc, #8] @ (800400c <TIM6_DAC_IRQHandler+0x10>)
  8671. 8004002: f009 f96d bl 800d2e0 <HAL_TIM_IRQHandler>
  8672. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  8673. /* USER CODE END TIM6_DAC_IRQn 1 */
  8674. }
  8675. 8004006: bf00 nop
  8676. 8004008: bd80 pop {r7, pc}
  8677. 800400a: bf00 nop
  8678. 800400c: 24000f9c .word 0x24000f9c
  8679. 08004010 <ETH_IRQHandler>:
  8680. /**
  8681. * @brief This function handles Ethernet global interrupt.
  8682. */
  8683. void ETH_IRQHandler(void)
  8684. {
  8685. 8004010: b580 push {r7, lr}
  8686. 8004012: af00 add r7, sp, #0
  8687. /* USER CODE BEGIN ETH_IRQn 0 */
  8688. /* USER CODE END ETH_IRQn 0 */
  8689. HAL_ETH_IRQHandler(&heth);
  8690. 8004014: 4802 ldr r0, [pc, #8] @ (8004020 <ETH_IRQHandler+0x10>)
  8691. 8004016: f004 fce5 bl 80089e4 <HAL_ETH_IRQHandler>
  8692. /* USER CODE BEGIN ETH_IRQn 1 */
  8693. /* USER CODE END ETH_IRQn 1 */
  8694. }
  8695. 800401a: bf00 nop
  8696. 800401c: bd80 pop {r7, pc}
  8697. 800401e: bf00 nop
  8698. 8004020: 240022cc .word 0x240022cc
  8699. 08004024 <DMA2_Stream6_IRQHandler>:
  8700. /**
  8701. * @brief This function handles DMA2 stream6 global interrupt.
  8702. */
  8703. void DMA2_Stream6_IRQHandler(void)
  8704. {
  8705. 8004024: b580 push {r7, lr}
  8706. 8004026: af00 add r7, sp, #0
  8707. /* USER CODE BEGIN DMA2_Stream6_IRQn 0 */
  8708. /* USER CODE END DMA2_Stream6_IRQn 0 */
  8709. HAL_DMA_IRQHandler(&hdma_uart8_tx);
  8710. 8004028: 4802 ldr r0, [pc, #8] @ (8004034 <DMA2_Stream6_IRQHandler+0x10>)
  8711. 800402a: f002 ffa1 bl 8006f70 <HAL_DMA_IRQHandler>
  8712. /* USER CODE BEGIN DMA2_Stream6_IRQn 1 */
  8713. /* USER CODE END DMA2_Stream6_IRQn 1 */
  8714. }
  8715. 800402e: bf00 nop
  8716. 8004030: bd80 pop {r7, pc}
  8717. 8004032: bf00 nop
  8718. 8004034: 240005dc .word 0x240005dc
  8719. 08004038 <DMA2_Stream7_IRQHandler>:
  8720. /**
  8721. * @brief This function handles DMA2 stream7 global interrupt.
  8722. */
  8723. void DMA2_Stream7_IRQHandler(void)
  8724. {
  8725. 8004038: b580 push {r7, lr}
  8726. 800403a: af00 add r7, sp, #0
  8727. /* USER CODE BEGIN DMA2_Stream7_IRQn 0 */
  8728. /* USER CODE END DMA2_Stream7_IRQn 0 */
  8729. HAL_DMA_IRQHandler(&hdma_uart8_rx);
  8730. 800403c: 4802 ldr r0, [pc, #8] @ (8004048 <DMA2_Stream7_IRQHandler+0x10>)
  8731. 800403e: f002 ff97 bl 8006f70 <HAL_DMA_IRQHandler>
  8732. /* USER CODE BEGIN DMA2_Stream7_IRQn 1 */
  8733. /* USER CODE END DMA2_Stream7_IRQn 1 */
  8734. }
  8735. 8004042: bf00 nop
  8736. 8004044: bd80 pop {r7, pc}
  8737. 8004046: bf00 nop
  8738. 8004048: 24000564 .word 0x24000564
  8739. 0800404c <USART6_IRQHandler>:
  8740. /**
  8741. * @brief This function handles USART6 global interrupt.
  8742. */
  8743. void USART6_IRQHandler(void)
  8744. {
  8745. 800404c: b580 push {r7, lr}
  8746. 800404e: af00 add r7, sp, #0
  8747. /* USER CODE BEGIN USART6_IRQn 0 */
  8748. /* USER CODE END USART6_IRQn 0 */
  8749. HAL_UART_IRQHandler(&huart6);
  8750. 8004050: 4802 ldr r0, [pc, #8] @ (800405c <USART6_IRQHandler+0x10>)
  8751. 8004052: f009 fcab bl 800d9ac <HAL_UART_IRQHandler>
  8752. /* USER CODE BEGIN USART6_IRQn 1 */
  8753. /* USER CODE END USART6_IRQn 1 */
  8754. }
  8755. 8004056: bf00 nop
  8756. 8004058: bd80 pop {r7, pc}
  8757. 800405a: bf00 nop
  8758. 800405c: 240004d0 .word 0x240004d0
  8759. 08004060 <UART8_IRQHandler>:
  8760. /**
  8761. * @brief This function handles UART8 global interrupt.
  8762. */
  8763. void UART8_IRQHandler(void)
  8764. {
  8765. 8004060: b580 push {r7, lr}
  8766. 8004062: af00 add r7, sp, #0
  8767. /* USER CODE BEGIN UART8_IRQn 0 */
  8768. /* USER CODE END UART8_IRQn 0 */
  8769. HAL_UART_IRQHandler(&huart8);
  8770. 8004064: 4802 ldr r0, [pc, #8] @ (8004070 <UART8_IRQHandler+0x10>)
  8771. 8004066: f009 fca1 bl 800d9ac <HAL_UART_IRQHandler>
  8772. /* USER CODE BEGIN UART8_IRQn 1 */
  8773. /* USER CODE END UART8_IRQn 1 */
  8774. }
  8775. 800406a: bf00 nop
  8776. 800406c: bd80 pop {r7, pc}
  8777. 800406e: bf00 nop
  8778. 8004070: 24000280 .word 0x24000280
  8779. 08004074 <_getpid>:
  8780. void initialise_monitor_handles()
  8781. {
  8782. }
  8783. int _getpid(void)
  8784. {
  8785. 8004074: b480 push {r7}
  8786. 8004076: af00 add r7, sp, #0
  8787. return 1;
  8788. 8004078: 2301 movs r3, #1
  8789. }
  8790. 800407a: 4618 mov r0, r3
  8791. 800407c: 46bd mov sp, r7
  8792. 800407e: f85d 7b04 ldr.w r7, [sp], #4
  8793. 8004082: 4770 bx lr
  8794. 08004084 <_kill>:
  8795. int _kill(int pid, int sig)
  8796. {
  8797. 8004084: b480 push {r7}
  8798. 8004086: b083 sub sp, #12
  8799. 8004088: af00 add r7, sp, #0
  8800. 800408a: 6078 str r0, [r7, #4]
  8801. 800408c: 6039 str r1, [r7, #0]
  8802. (void)pid;
  8803. (void)sig;
  8804. errno = EINVAL;
  8805. 800408e: 4b05 ldr r3, [pc, #20] @ (80040a4 <_kill+0x20>)
  8806. 8004090: 2216 movs r2, #22
  8807. 8004092: 601a str r2, [r3, #0]
  8808. return -1;
  8809. 8004094: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  8810. }
  8811. 8004098: 4618 mov r0, r3
  8812. 800409a: 370c adds r7, #12
  8813. 800409c: 46bd mov sp, r7
  8814. 800409e: f85d 7b04 ldr.w r7, [sp], #4
  8815. 80040a2: 4770 bx lr
  8816. 80040a4: 2402b260 .word 0x2402b260
  8817. 080040a8 <_exit>:
  8818. void _exit (int status)
  8819. {
  8820. 80040a8: b580 push {r7, lr}
  8821. 80040aa: b082 sub sp, #8
  8822. 80040ac: af00 add r7, sp, #0
  8823. 80040ae: 6078 str r0, [r7, #4]
  8824. _kill(status, -1);
  8825. 80040b0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  8826. 80040b4: 6878 ldr r0, [r7, #4]
  8827. 80040b6: f7ff ffe5 bl 8004084 <_kill>
  8828. while (1) {} /* Make sure we hang here */
  8829. 80040ba: bf00 nop
  8830. 80040bc: e7fd b.n 80040ba <_exit+0x12>
  8831. 080040be <_read>:
  8832. }
  8833. __attribute__((weak)) int _read(int file, char *ptr, int len)
  8834. {
  8835. 80040be: b580 push {r7, lr}
  8836. 80040c0: b086 sub sp, #24
  8837. 80040c2: af00 add r7, sp, #0
  8838. 80040c4: 60f8 str r0, [r7, #12]
  8839. 80040c6: 60b9 str r1, [r7, #8]
  8840. 80040c8: 607a str r2, [r7, #4]
  8841. (void)file;
  8842. int DataIdx;
  8843. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8844. 80040ca: 2300 movs r3, #0
  8845. 80040cc: 617b str r3, [r7, #20]
  8846. 80040ce: e00a b.n 80040e6 <_read+0x28>
  8847. {
  8848. *ptr++ = __io_getchar();
  8849. 80040d0: f3af 8000 nop.w
  8850. 80040d4: 4601 mov r1, r0
  8851. 80040d6: 68bb ldr r3, [r7, #8]
  8852. 80040d8: 1c5a adds r2, r3, #1
  8853. 80040da: 60ba str r2, [r7, #8]
  8854. 80040dc: b2ca uxtb r2, r1
  8855. 80040de: 701a strb r2, [r3, #0]
  8856. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8857. 80040e0: 697b ldr r3, [r7, #20]
  8858. 80040e2: 3301 adds r3, #1
  8859. 80040e4: 617b str r3, [r7, #20]
  8860. 80040e6: 697a ldr r2, [r7, #20]
  8861. 80040e8: 687b ldr r3, [r7, #4]
  8862. 80040ea: 429a cmp r2, r3
  8863. 80040ec: dbf0 blt.n 80040d0 <_read+0x12>
  8864. }
  8865. return len;
  8866. 80040ee: 687b ldr r3, [r7, #4]
  8867. }
  8868. 80040f0: 4618 mov r0, r3
  8869. 80040f2: 3718 adds r7, #24
  8870. 80040f4: 46bd mov sp, r7
  8871. 80040f6: bd80 pop {r7, pc}
  8872. 080040f8 <_write>:
  8873. __attribute__((weak)) int _write(int file, char *ptr, int len)
  8874. {
  8875. 80040f8: b580 push {r7, lr}
  8876. 80040fa: b086 sub sp, #24
  8877. 80040fc: af00 add r7, sp, #0
  8878. 80040fe: 60f8 str r0, [r7, #12]
  8879. 8004100: 60b9 str r1, [r7, #8]
  8880. 8004102: 607a str r2, [r7, #4]
  8881. (void)file;
  8882. int DataIdx;
  8883. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8884. 8004104: 2300 movs r3, #0
  8885. 8004106: 617b str r3, [r7, #20]
  8886. 8004108: e009 b.n 800411e <_write+0x26>
  8887. {
  8888. __io_putchar(*ptr++);
  8889. 800410a: 68bb ldr r3, [r7, #8]
  8890. 800410c: 1c5a adds r2, r3, #1
  8891. 800410e: 60ba str r2, [r7, #8]
  8892. 8004110: 781b ldrb r3, [r3, #0]
  8893. 8004112: 4618 mov r0, r3
  8894. 8004114: f7fd fdd0 bl 8001cb8 <__io_putchar>
  8895. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8896. 8004118: 697b ldr r3, [r7, #20]
  8897. 800411a: 3301 adds r3, #1
  8898. 800411c: 617b str r3, [r7, #20]
  8899. 800411e: 697a ldr r2, [r7, #20]
  8900. 8004120: 687b ldr r3, [r7, #4]
  8901. 8004122: 429a cmp r2, r3
  8902. 8004124: dbf1 blt.n 800410a <_write+0x12>
  8903. // ITM_SendChar(*ptr++);
  8904. }
  8905. return len;
  8906. 8004126: 687b ldr r3, [r7, #4]
  8907. }
  8908. 8004128: 4618 mov r0, r3
  8909. 800412a: 3718 adds r7, #24
  8910. 800412c: 46bd mov sp, r7
  8911. 800412e: bd80 pop {r7, pc}
  8912. 08004130 <_close>:
  8913. int _close(int file)
  8914. {
  8915. 8004130: b480 push {r7}
  8916. 8004132: b083 sub sp, #12
  8917. 8004134: af00 add r7, sp, #0
  8918. 8004136: 6078 str r0, [r7, #4]
  8919. (void)file;
  8920. return -1;
  8921. 8004138: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  8922. }
  8923. 800413c: 4618 mov r0, r3
  8924. 800413e: 370c adds r7, #12
  8925. 8004140: 46bd mov sp, r7
  8926. 8004142: f85d 7b04 ldr.w r7, [sp], #4
  8927. 8004146: 4770 bx lr
  8928. 08004148 <_fstat>:
  8929. int _fstat(int file, struct stat *st)
  8930. {
  8931. 8004148: b480 push {r7}
  8932. 800414a: b083 sub sp, #12
  8933. 800414c: af00 add r7, sp, #0
  8934. 800414e: 6078 str r0, [r7, #4]
  8935. 8004150: 6039 str r1, [r7, #0]
  8936. (void)file;
  8937. st->st_mode = S_IFCHR;
  8938. 8004152: 683b ldr r3, [r7, #0]
  8939. 8004154: f44f 5200 mov.w r2, #8192 @ 0x2000
  8940. 8004158: 605a str r2, [r3, #4]
  8941. return 0;
  8942. 800415a: 2300 movs r3, #0
  8943. }
  8944. 800415c: 4618 mov r0, r3
  8945. 800415e: 370c adds r7, #12
  8946. 8004160: 46bd mov sp, r7
  8947. 8004162: f85d 7b04 ldr.w r7, [sp], #4
  8948. 8004166: 4770 bx lr
  8949. 08004168 <_isatty>:
  8950. int _isatty(int file)
  8951. {
  8952. 8004168: b480 push {r7}
  8953. 800416a: b083 sub sp, #12
  8954. 800416c: af00 add r7, sp, #0
  8955. 800416e: 6078 str r0, [r7, #4]
  8956. (void)file;
  8957. return 1;
  8958. 8004170: 2301 movs r3, #1
  8959. }
  8960. 8004172: 4618 mov r0, r3
  8961. 8004174: 370c adds r7, #12
  8962. 8004176: 46bd mov sp, r7
  8963. 8004178: f85d 7b04 ldr.w r7, [sp], #4
  8964. 800417c: 4770 bx lr
  8965. 0800417e <_lseek>:
  8966. int _lseek(int file, int ptr, int dir)
  8967. {
  8968. 800417e: b480 push {r7}
  8969. 8004180: b085 sub sp, #20
  8970. 8004182: af00 add r7, sp, #0
  8971. 8004184: 60f8 str r0, [r7, #12]
  8972. 8004186: 60b9 str r1, [r7, #8]
  8973. 8004188: 607a str r2, [r7, #4]
  8974. (void)file;
  8975. (void)ptr;
  8976. (void)dir;
  8977. return 0;
  8978. 800418a: 2300 movs r3, #0
  8979. }
  8980. 800418c: 4618 mov r0, r3
  8981. 800418e: 3714 adds r7, #20
  8982. 8004190: 46bd mov sp, r7
  8983. 8004192: f85d 7b04 ldr.w r7, [sp], #4
  8984. 8004196: 4770 bx lr
  8985. 08004198 <_sbrk>:
  8986. *
  8987. * @param incr Memory size
  8988. * @return Pointer to allocated memory
  8989. */
  8990. void *_sbrk(ptrdiff_t incr)
  8991. {
  8992. 8004198: b480 push {r7}
  8993. 800419a: b087 sub sp, #28
  8994. 800419c: af00 add r7, sp, #0
  8995. 800419e: 6078 str r0, [r7, #4]
  8996. extern uint8_t _end; /* Symbol defined in the linker script */
  8997. extern uint8_t _estack; /* Symbol defined in the linker script */
  8998. extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
  8999. const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
  9000. 80041a0: 4a14 ldr r2, [pc, #80] @ (80041f4 <_sbrk+0x5c>)
  9001. 80041a2: 4b15 ldr r3, [pc, #84] @ (80041f8 <_sbrk+0x60>)
  9002. 80041a4: 1ad3 subs r3, r2, r3
  9003. 80041a6: 617b str r3, [r7, #20]
  9004. const uint8_t *max_heap = (uint8_t *)stack_limit;
  9005. 80041a8: 697b ldr r3, [r7, #20]
  9006. 80041aa: 613b str r3, [r7, #16]
  9007. uint8_t *prev_heap_end;
  9008. /* Initialize heap end at first call */
  9009. if (NULL == __sbrk_heap_end)
  9010. 80041ac: 4b13 ldr r3, [pc, #76] @ (80041fc <_sbrk+0x64>)
  9011. 80041ae: 681b ldr r3, [r3, #0]
  9012. 80041b0: 2b00 cmp r3, #0
  9013. 80041b2: d102 bne.n 80041ba <_sbrk+0x22>
  9014. {
  9015. __sbrk_heap_end = &_end;
  9016. 80041b4: 4b11 ldr r3, [pc, #68] @ (80041fc <_sbrk+0x64>)
  9017. 80041b6: 4a12 ldr r2, [pc, #72] @ (8004200 <_sbrk+0x68>)
  9018. 80041b8: 601a str r2, [r3, #0]
  9019. }
  9020. /* Protect heap from growing into the reserved MSP stack */
  9021. if (__sbrk_heap_end + incr > max_heap)
  9022. 80041ba: 4b10 ldr r3, [pc, #64] @ (80041fc <_sbrk+0x64>)
  9023. 80041bc: 681a ldr r2, [r3, #0]
  9024. 80041be: 687b ldr r3, [r7, #4]
  9025. 80041c0: 4413 add r3, r2
  9026. 80041c2: 693a ldr r2, [r7, #16]
  9027. 80041c4: 429a cmp r2, r3
  9028. 80041c6: d205 bcs.n 80041d4 <_sbrk+0x3c>
  9029. {
  9030. errno = ENOMEM;
  9031. 80041c8: 4b0e ldr r3, [pc, #56] @ (8004204 <_sbrk+0x6c>)
  9032. 80041ca: 220c movs r2, #12
  9033. 80041cc: 601a str r2, [r3, #0]
  9034. return (void *)-1;
  9035. 80041ce: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  9036. 80041d2: e009 b.n 80041e8 <_sbrk+0x50>
  9037. }
  9038. prev_heap_end = __sbrk_heap_end;
  9039. 80041d4: 4b09 ldr r3, [pc, #36] @ (80041fc <_sbrk+0x64>)
  9040. 80041d6: 681b ldr r3, [r3, #0]
  9041. 80041d8: 60fb str r3, [r7, #12]
  9042. __sbrk_heap_end += incr;
  9043. 80041da: 4b08 ldr r3, [pc, #32] @ (80041fc <_sbrk+0x64>)
  9044. 80041dc: 681a ldr r2, [r3, #0]
  9045. 80041de: 687b ldr r3, [r7, #4]
  9046. 80041e0: 4413 add r3, r2
  9047. 80041e2: 4a06 ldr r2, [pc, #24] @ (80041fc <_sbrk+0x64>)
  9048. 80041e4: 6013 str r3, [r2, #0]
  9049. return (void *)prev_heap_end;
  9050. 80041e6: 68fb ldr r3, [r7, #12]
  9051. }
  9052. 80041e8: 4618 mov r0, r3
  9053. 80041ea: 371c adds r7, #28
  9054. 80041ec: 46bd mov sp, r7
  9055. 80041ee: f85d 7b04 ldr.w r7, [sp], #4
  9056. 80041f2: 4770 bx lr
  9057. 80041f4: 24060000 .word 0x24060000
  9058. 80041f8: 00000400 .word 0x00000400
  9059. 80041fc: 24000fe8 .word 0x24000fe8
  9060. 8004200: 2402b268 .word 0x2402b268
  9061. 8004204: 2402b260 .word 0x2402b260
  9062. 08004208 <SystemInit>:
  9063. * configuration.
  9064. * @param None
  9065. * @retval None
  9066. */
  9067. void SystemInit (void)
  9068. {
  9069. 8004208: b480 push {r7}
  9070. 800420a: af00 add r7, sp, #0
  9071. __IO uint32_t tmpreg;
  9072. #endif /* DATA_IN_D2_SRAM */
  9073. /* FPU settings ------------------------------------------------------------*/
  9074. #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
  9075. SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */
  9076. 800420c: 4b37 ldr r3, [pc, #220] @ (80042ec <SystemInit+0xe4>)
  9077. 800420e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  9078. 8004212: 4a36 ldr r2, [pc, #216] @ (80042ec <SystemInit+0xe4>)
  9079. 8004214: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  9080. 8004218: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  9081. #endif
  9082. /* Reset the RCC clock configuration to the default reset state ------------*/
  9083. /* Increasing the CPU frequency */
  9084. if(FLASH_LATENCY_DEFAULT > (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  9085. 800421c: 4b34 ldr r3, [pc, #208] @ (80042f0 <SystemInit+0xe8>)
  9086. 800421e: 681b ldr r3, [r3, #0]
  9087. 8004220: f003 030f and.w r3, r3, #15
  9088. 8004224: 2b06 cmp r3, #6
  9089. 8004226: d807 bhi.n 8004238 <SystemInit+0x30>
  9090. {
  9091. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  9092. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  9093. 8004228: 4b31 ldr r3, [pc, #196] @ (80042f0 <SystemInit+0xe8>)
  9094. 800422a: 681b ldr r3, [r3, #0]
  9095. 800422c: f023 030f bic.w r3, r3, #15
  9096. 8004230: 4a2f ldr r2, [pc, #188] @ (80042f0 <SystemInit+0xe8>)
  9097. 8004232: f043 0307 orr.w r3, r3, #7
  9098. 8004236: 6013 str r3, [r2, #0]
  9099. }
  9100. /* Set HSION bit */
  9101. RCC->CR |= RCC_CR_HSION;
  9102. 8004238: 4b2e ldr r3, [pc, #184] @ (80042f4 <SystemInit+0xec>)
  9103. 800423a: 681b ldr r3, [r3, #0]
  9104. 800423c: 4a2d ldr r2, [pc, #180] @ (80042f4 <SystemInit+0xec>)
  9105. 800423e: f043 0301 orr.w r3, r3, #1
  9106. 8004242: 6013 str r3, [r2, #0]
  9107. /* Reset CFGR register */
  9108. RCC->CFGR = 0x00000000;
  9109. 8004244: 4b2b ldr r3, [pc, #172] @ (80042f4 <SystemInit+0xec>)
  9110. 8004246: 2200 movs r2, #0
  9111. 8004248: 611a str r2, [r3, #16]
  9112. /* Reset HSEON, HSECSSON, CSION, HSI48ON, CSIKERON, PLL1ON, PLL2ON and PLL3ON bits */
  9113. RCC->CR &= 0xEAF6ED7FU;
  9114. 800424a: 4b2a ldr r3, [pc, #168] @ (80042f4 <SystemInit+0xec>)
  9115. 800424c: 681a ldr r2, [r3, #0]
  9116. 800424e: 4929 ldr r1, [pc, #164] @ (80042f4 <SystemInit+0xec>)
  9117. 8004250: 4b29 ldr r3, [pc, #164] @ (80042f8 <SystemInit+0xf0>)
  9118. 8004252: 4013 ands r3, r2
  9119. 8004254: 600b str r3, [r1, #0]
  9120. /* Decreasing the number of wait states because of lower CPU frequency */
  9121. if(FLASH_LATENCY_DEFAULT < (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  9122. 8004256: 4b26 ldr r3, [pc, #152] @ (80042f0 <SystemInit+0xe8>)
  9123. 8004258: 681b ldr r3, [r3, #0]
  9124. 800425a: f003 0308 and.w r3, r3, #8
  9125. 800425e: 2b00 cmp r3, #0
  9126. 8004260: d007 beq.n 8004272 <SystemInit+0x6a>
  9127. {
  9128. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  9129. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  9130. 8004262: 4b23 ldr r3, [pc, #140] @ (80042f0 <SystemInit+0xe8>)
  9131. 8004264: 681b ldr r3, [r3, #0]
  9132. 8004266: f023 030f bic.w r3, r3, #15
  9133. 800426a: 4a21 ldr r2, [pc, #132] @ (80042f0 <SystemInit+0xe8>)
  9134. 800426c: f043 0307 orr.w r3, r3, #7
  9135. 8004270: 6013 str r3, [r2, #0]
  9136. }
  9137. #if defined(D3_SRAM_BASE)
  9138. /* Reset D1CFGR register */
  9139. RCC->D1CFGR = 0x00000000;
  9140. 8004272: 4b20 ldr r3, [pc, #128] @ (80042f4 <SystemInit+0xec>)
  9141. 8004274: 2200 movs r2, #0
  9142. 8004276: 619a str r2, [r3, #24]
  9143. /* Reset D2CFGR register */
  9144. RCC->D2CFGR = 0x00000000;
  9145. 8004278: 4b1e ldr r3, [pc, #120] @ (80042f4 <SystemInit+0xec>)
  9146. 800427a: 2200 movs r2, #0
  9147. 800427c: 61da str r2, [r3, #28]
  9148. /* Reset D3CFGR register */
  9149. RCC->D3CFGR = 0x00000000;
  9150. 800427e: 4b1d ldr r3, [pc, #116] @ (80042f4 <SystemInit+0xec>)
  9151. 8004280: 2200 movs r2, #0
  9152. 8004282: 621a str r2, [r3, #32]
  9153. /* Reset SRDCFGR register */
  9154. RCC->SRDCFGR = 0x00000000;
  9155. #endif
  9156. /* Reset PLLCKSELR register */
  9157. RCC->PLLCKSELR = 0x02020200;
  9158. 8004284: 4b1b ldr r3, [pc, #108] @ (80042f4 <SystemInit+0xec>)
  9159. 8004286: 4a1d ldr r2, [pc, #116] @ (80042fc <SystemInit+0xf4>)
  9160. 8004288: 629a str r2, [r3, #40] @ 0x28
  9161. /* Reset PLLCFGR register */
  9162. RCC->PLLCFGR = 0x01FF0000;
  9163. 800428a: 4b1a ldr r3, [pc, #104] @ (80042f4 <SystemInit+0xec>)
  9164. 800428c: 4a1c ldr r2, [pc, #112] @ (8004300 <SystemInit+0xf8>)
  9165. 800428e: 62da str r2, [r3, #44] @ 0x2c
  9166. /* Reset PLL1DIVR register */
  9167. RCC->PLL1DIVR = 0x01010280;
  9168. 8004290: 4b18 ldr r3, [pc, #96] @ (80042f4 <SystemInit+0xec>)
  9169. 8004292: 4a1c ldr r2, [pc, #112] @ (8004304 <SystemInit+0xfc>)
  9170. 8004294: 631a str r2, [r3, #48] @ 0x30
  9171. /* Reset PLL1FRACR register */
  9172. RCC->PLL1FRACR = 0x00000000;
  9173. 8004296: 4b17 ldr r3, [pc, #92] @ (80042f4 <SystemInit+0xec>)
  9174. 8004298: 2200 movs r2, #0
  9175. 800429a: 635a str r2, [r3, #52] @ 0x34
  9176. /* Reset PLL2DIVR register */
  9177. RCC->PLL2DIVR = 0x01010280;
  9178. 800429c: 4b15 ldr r3, [pc, #84] @ (80042f4 <SystemInit+0xec>)
  9179. 800429e: 4a19 ldr r2, [pc, #100] @ (8004304 <SystemInit+0xfc>)
  9180. 80042a0: 639a str r2, [r3, #56] @ 0x38
  9181. /* Reset PLL2FRACR register */
  9182. RCC->PLL2FRACR = 0x00000000;
  9183. 80042a2: 4b14 ldr r3, [pc, #80] @ (80042f4 <SystemInit+0xec>)
  9184. 80042a4: 2200 movs r2, #0
  9185. 80042a6: 63da str r2, [r3, #60] @ 0x3c
  9186. /* Reset PLL3DIVR register */
  9187. RCC->PLL3DIVR = 0x01010280;
  9188. 80042a8: 4b12 ldr r3, [pc, #72] @ (80042f4 <SystemInit+0xec>)
  9189. 80042aa: 4a16 ldr r2, [pc, #88] @ (8004304 <SystemInit+0xfc>)
  9190. 80042ac: 641a str r2, [r3, #64] @ 0x40
  9191. /* Reset PLL3FRACR register */
  9192. RCC->PLL3FRACR = 0x00000000;
  9193. 80042ae: 4b11 ldr r3, [pc, #68] @ (80042f4 <SystemInit+0xec>)
  9194. 80042b0: 2200 movs r2, #0
  9195. 80042b2: 645a str r2, [r3, #68] @ 0x44
  9196. /* Reset HSEBYP bit */
  9197. RCC->CR &= 0xFFFBFFFFU;
  9198. 80042b4: 4b0f ldr r3, [pc, #60] @ (80042f4 <SystemInit+0xec>)
  9199. 80042b6: 681b ldr r3, [r3, #0]
  9200. 80042b8: 4a0e ldr r2, [pc, #56] @ (80042f4 <SystemInit+0xec>)
  9201. 80042ba: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  9202. 80042be: 6013 str r3, [r2, #0]
  9203. /* Disable all interrupts */
  9204. RCC->CIER = 0x00000000;
  9205. 80042c0: 4b0c ldr r3, [pc, #48] @ (80042f4 <SystemInit+0xec>)
  9206. 80042c2: 2200 movs r2, #0
  9207. 80042c4: 661a str r2, [r3, #96] @ 0x60
  9208. #if (STM32H7_DEV_ID == 0x450UL)
  9209. /* dual core CM7 or single core line */
  9210. if((DBGMCU->IDCODE & 0xFFFF0000U) < 0x20000000U)
  9211. 80042c6: 4b10 ldr r3, [pc, #64] @ (8004308 <SystemInit+0x100>)
  9212. 80042c8: 681a ldr r2, [r3, #0]
  9213. 80042ca: 4b10 ldr r3, [pc, #64] @ (800430c <SystemInit+0x104>)
  9214. 80042cc: 4013 ands r3, r2
  9215. 80042ce: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  9216. 80042d2: d202 bcs.n 80042da <SystemInit+0xd2>
  9217. {
  9218. /* if stm32h7 revY*/
  9219. /* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 7) */
  9220. *((__IO uint32_t*)0x51008108) = 0x000000001U;
  9221. 80042d4: 4b0e ldr r3, [pc, #56] @ (8004310 <SystemInit+0x108>)
  9222. 80042d6: 2201 movs r2, #1
  9223. 80042d8: 601a str r2, [r3, #0]
  9224. /*
  9225. * Disable the FMC bank1 (enabled after reset).
  9226. * This, prevents CPU speculation access on this bank which blocks the use of FMC during
  9227. * 24us. During this time the others FMC master (such as LTDC) cannot use it!
  9228. */
  9229. FMC_Bank1_R->BTCR[0] = 0x000030D2;
  9230. 80042da: 4b0e ldr r3, [pc, #56] @ (8004314 <SystemInit+0x10c>)
  9231. 80042dc: f243 02d2 movw r2, #12498 @ 0x30d2
  9232. 80042e0: 601a str r2, [r3, #0]
  9233. #if defined(USER_VECT_TAB_ADDRESS)
  9234. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */
  9235. #endif /* USER_VECT_TAB_ADDRESS */
  9236. #endif /*DUAL_CORE && CORE_CM4*/
  9237. }
  9238. 80042e2: bf00 nop
  9239. 80042e4: 46bd mov sp, r7
  9240. 80042e6: f85d 7b04 ldr.w r7, [sp], #4
  9241. 80042ea: 4770 bx lr
  9242. 80042ec: e000ed00 .word 0xe000ed00
  9243. 80042f0: 52002000 .word 0x52002000
  9244. 80042f4: 58024400 .word 0x58024400
  9245. 80042f8: eaf6ed7f .word 0xeaf6ed7f
  9246. 80042fc: 02020200 .word 0x02020200
  9247. 8004300: 01ff0000 .word 0x01ff0000
  9248. 8004304: 01010280 .word 0x01010280
  9249. 8004308: 5c001000 .word 0x5c001000
  9250. 800430c: ffff0000 .word 0xffff0000
  9251. 8004310: 51008108 .word 0x51008108
  9252. 8004314: 52004000 .word 0x52004000
  9253. 08004318 <UartTasksInit>:
  9254. osMutexId_t resMeasurementsMutex;
  9255. osMutexId_t sensorsInfoMutex;
  9256. extern RNG_HandleTypeDef hrng;
  9257. void UartTasksInit (void) {
  9258. 8004318: b580 push {r7, lr}
  9259. 800431a: af00 add r7, sp, #0
  9260. uart1TaskData.uartRxBuffer = uart1RxBuffer;
  9261. 800431c: 4b4e ldr r3, [pc, #312] @ (8004458 <UartTasksInit+0x140>)
  9262. 800431e: 4a4f ldr r2, [pc, #316] @ (800445c <UartTasksInit+0x144>)
  9263. 8004320: 601a str r2, [r3, #0]
  9264. uart1TaskData.uartRxBufferLen = UART1_RX_BUFF_SIZE;
  9265. 8004322: 4b4d ldr r3, [pc, #308] @ (8004458 <UartTasksInit+0x140>)
  9266. 8004324: f44f 7280 mov.w r2, #256 @ 0x100
  9267. 8004328: 809a strh r2, [r3, #4]
  9268. uart1TaskData.uartTxBuffer = uart1TxBuffer;
  9269. 800432a: 4b4b ldr r3, [pc, #300] @ (8004458 <UartTasksInit+0x140>)
  9270. 800432c: 4a4c ldr r2, [pc, #304] @ (8004460 <UartTasksInit+0x148>)
  9271. 800432e: 609a str r2, [r3, #8]
  9272. uart1TaskData.uartRxBufferLen = UART1_TX_BUFF_SIZE;
  9273. 8004330: 4b49 ldr r3, [pc, #292] @ (8004458 <UartTasksInit+0x140>)
  9274. 8004332: f44f 7280 mov.w r2, #256 @ 0x100
  9275. 8004336: 809a strh r2, [r3, #4]
  9276. uart1TaskData.frameData = uart1TaskFrameData;
  9277. 8004338: 4b47 ldr r3, [pc, #284] @ (8004458 <UartTasksInit+0x140>)
  9278. 800433a: 4a4a ldr r2, [pc, #296] @ (8004464 <UartTasksInit+0x14c>)
  9279. 800433c: 611a str r2, [r3, #16]
  9280. uart1TaskData.frameDataLen = UART1_RX_BUFF_SIZE;
  9281. 800433e: 4b46 ldr r3, [pc, #280] @ (8004458 <UartTasksInit+0x140>)
  9282. 8004340: f44f 7280 mov.w r2, #256 @ 0x100
  9283. 8004344: 829a strh r2, [r3, #20]
  9284. uart1TaskData.huart = &huart1;
  9285. 8004346: 4b44 ldr r3, [pc, #272] @ (8004458 <UartTasksInit+0x140>)
  9286. 8004348: 4a47 ldr r2, [pc, #284] @ (8004468 <UartTasksInit+0x150>)
  9287. 800434a: 631a str r2, [r3, #48] @ 0x30
  9288. uart1TaskData.uartNumber = 1;
  9289. 800434c: 4b42 ldr r3, [pc, #264] @ (8004458 <UartTasksInit+0x140>)
  9290. 800434e: 2201 movs r2, #1
  9291. 8004350: f883 2034 strb.w r2, [r3, #52] @ 0x34
  9292. uart2TaskData.uartRxBuffer = uart2RxBuffer;
  9293. 8004354: 4b45 ldr r3, [pc, #276] @ (800446c <UartTasksInit+0x154>)
  9294. 8004356: 4a46 ldr r2, [pc, #280] @ (8004470 <UartTasksInit+0x158>)
  9295. 8004358: 601a str r2, [r3, #0]
  9296. uart2TaskData.uartRxBufferLen = UART2_RX_BUFF_SIZE;
  9297. 800435a: 4b44 ldr r3, [pc, #272] @ (800446c <UartTasksInit+0x154>)
  9298. 800435c: f44f 7280 mov.w r2, #256 @ 0x100
  9299. 8004360: 809a strh r2, [r3, #4]
  9300. uart2TaskData.uartTxBuffer = uart2TxBuffer;
  9301. 8004362: 4b42 ldr r3, [pc, #264] @ (800446c <UartTasksInit+0x154>)
  9302. 8004364: 4a43 ldr r2, [pc, #268] @ (8004474 <UartTasksInit+0x15c>)
  9303. 8004366: 609a str r2, [r3, #8]
  9304. uart2TaskData.uartRxBufferLen = UART2_TX_BUFF_SIZE;
  9305. 8004368: 4b40 ldr r3, [pc, #256] @ (800446c <UartTasksInit+0x154>)
  9306. 800436a: f44f 7280 mov.w r2, #256 @ 0x100
  9307. 800436e: 809a strh r2, [r3, #4]
  9308. uart2TaskData.frameData = uart2TaskFrameData;
  9309. 8004370: 4b3e ldr r3, [pc, #248] @ (800446c <UartTasksInit+0x154>)
  9310. 8004372: 4a41 ldr r2, [pc, #260] @ (8004478 <UartTasksInit+0x160>)
  9311. 8004374: 611a str r2, [r3, #16]
  9312. uart2TaskData.frameDataLen = UART2_RX_BUFF_SIZE;
  9313. 8004376: 4b3d ldr r3, [pc, #244] @ (800446c <UartTasksInit+0x154>)
  9314. 8004378: f44f 7280 mov.w r2, #256 @ 0x100
  9315. 800437c: 829a strh r2, [r3, #20]
  9316. uart2TaskData.huart = &huart2;
  9317. 800437e: 4b3b ldr r3, [pc, #236] @ (800446c <UartTasksInit+0x154>)
  9318. 8004380: 4a3e ldr r2, [pc, #248] @ (800447c <UartTasksInit+0x164>)
  9319. 8004382: 631a str r2, [r3, #48] @ 0x30
  9320. uart2TaskData.uartNumber = 2;
  9321. 8004384: 4b39 ldr r3, [pc, #228] @ (800446c <UartTasksInit+0x154>)
  9322. 8004386: 2202 movs r2, #2
  9323. 8004388: f883 2034 strb.w r2, [r3, #52] @ 0x34
  9324. uart3TaskData.uartRxBuffer = uart3RxBuffer;
  9325. 800438c: 4b3c ldr r3, [pc, #240] @ (8004480 <UartTasksInit+0x168>)
  9326. 800438e: 4a3d ldr r2, [pc, #244] @ (8004484 <UartTasksInit+0x16c>)
  9327. 8004390: 601a str r2, [r3, #0]
  9328. uart3TaskData.uartRxBufferLen = UART3_RX_BUFF_SIZE;
  9329. 8004392: 4b3b ldr r3, [pc, #236] @ (8004480 <UartTasksInit+0x168>)
  9330. 8004394: f44f 7280 mov.w r2, #256 @ 0x100
  9331. 8004398: 809a strh r2, [r3, #4]
  9332. uart3TaskData.uartTxBuffer = uart3TxBuffer;
  9333. 800439a: 4b39 ldr r3, [pc, #228] @ (8004480 <UartTasksInit+0x168>)
  9334. 800439c: 4a3a ldr r2, [pc, #232] @ (8004488 <UartTasksInit+0x170>)
  9335. 800439e: 609a str r2, [r3, #8]
  9336. uart3TaskData.uartRxBufferLen = UART3_TX_BUFF_SIZE;
  9337. 80043a0: 4b37 ldr r3, [pc, #220] @ (8004480 <UartTasksInit+0x168>)
  9338. 80043a2: f44f 7280 mov.w r2, #256 @ 0x100
  9339. 80043a6: 809a strh r2, [r3, #4]
  9340. uart3TaskData.frameData = uart3TaskFrameData;
  9341. 80043a8: 4b35 ldr r3, [pc, #212] @ (8004480 <UartTasksInit+0x168>)
  9342. 80043aa: 4a38 ldr r2, [pc, #224] @ (800448c <UartTasksInit+0x174>)
  9343. 80043ac: 611a str r2, [r3, #16]
  9344. uart3TaskData.frameDataLen = UART3_RX_BUFF_SIZE;
  9345. 80043ae: 4b34 ldr r3, [pc, #208] @ (8004480 <UartTasksInit+0x168>)
  9346. 80043b0: f44f 7280 mov.w r2, #256 @ 0x100
  9347. 80043b4: 829a strh r2, [r3, #20]
  9348. uart3TaskData.huart = &huart3;
  9349. 80043b6: 4b32 ldr r3, [pc, #200] @ (8004480 <UartTasksInit+0x168>)
  9350. 80043b8: 4a35 ldr r2, [pc, #212] @ (8004490 <UartTasksInit+0x178>)
  9351. 80043ba: 631a str r2, [r3, #48] @ 0x30
  9352. uart3TaskData.uartNumber = 3;
  9353. 80043bc: 4b30 ldr r3, [pc, #192] @ (8004480 <UartTasksInit+0x168>)
  9354. 80043be: 2203 movs r2, #3
  9355. 80043c0: f883 2034 strb.w r2, [r3, #52] @ 0x34
  9356. uart6TaskData.uartRxBuffer = uart6RxBuffer;
  9357. 80043c4: 4b33 ldr r3, [pc, #204] @ (8004494 <UartTasksInit+0x17c>)
  9358. 80043c6: 4a34 ldr r2, [pc, #208] @ (8004498 <UartTasksInit+0x180>)
  9359. 80043c8: 601a str r2, [r3, #0]
  9360. uart6TaskData.uartRxBufferLen = UART6_RX_BUFF_SIZE;
  9361. 80043ca: 4b32 ldr r3, [pc, #200] @ (8004494 <UartTasksInit+0x17c>)
  9362. 80043cc: f44f 7280 mov.w r2, #256 @ 0x100
  9363. 80043d0: 809a strh r2, [r3, #4]
  9364. uart6TaskData.uartTxBuffer = uart6TxBuffer;
  9365. 80043d2: 4b30 ldr r3, [pc, #192] @ (8004494 <UartTasksInit+0x17c>)
  9366. 80043d4: 4a31 ldr r2, [pc, #196] @ (800449c <UartTasksInit+0x184>)
  9367. 80043d6: 609a str r2, [r3, #8]
  9368. uart6TaskData.uartRxBufferLen = UART6_TX_BUFF_SIZE;
  9369. 80043d8: 4b2e ldr r3, [pc, #184] @ (8004494 <UartTasksInit+0x17c>)
  9370. 80043da: f44f 7280 mov.w r2, #256 @ 0x100
  9371. 80043de: 809a strh r2, [r3, #4]
  9372. uart6TaskData.frameData = uart6TaskFrameData;
  9373. 80043e0: 4b2c ldr r3, [pc, #176] @ (8004494 <UartTasksInit+0x17c>)
  9374. 80043e2: 4a2f ldr r2, [pc, #188] @ (80044a0 <UartTasksInit+0x188>)
  9375. 80043e4: 611a str r2, [r3, #16]
  9376. uart6TaskData.frameDataLen = UART6_RX_BUFF_SIZE;
  9377. 80043e6: 4b2b ldr r3, [pc, #172] @ (8004494 <UartTasksInit+0x17c>)
  9378. 80043e8: f44f 7280 mov.w r2, #256 @ 0x100
  9379. 80043ec: 829a strh r2, [r3, #20]
  9380. uart6TaskData.huart = &huart6;
  9381. 80043ee: 4b29 ldr r3, [pc, #164] @ (8004494 <UartTasksInit+0x17c>)
  9382. 80043f0: 4a2c ldr r2, [pc, #176] @ (80044a4 <UartTasksInit+0x18c>)
  9383. 80043f2: 631a str r2, [r3, #48] @ 0x30
  9384. uart6TaskData.uartNumber = 6;
  9385. 80043f4: 4b27 ldr r3, [pc, #156] @ (8004494 <UartTasksInit+0x17c>)
  9386. 80043f6: 2206 movs r2, #6
  9387. 80043f8: f883 2034 strb.w r2, [r3, #52] @ 0x34
  9388. uart8TaskData.uartRxBuffer = uart8RxBuffer;
  9389. 80043fc: 4b2a ldr r3, [pc, #168] @ (80044a8 <UartTasksInit+0x190>)
  9390. 80043fe: 4a2b ldr r2, [pc, #172] @ (80044ac <UartTasksInit+0x194>)
  9391. 8004400: 601a str r2, [r3, #0]
  9392. uart8TaskData.uartRxBufferLen = UART8_RX_BUFF_SIZE;
  9393. 8004402: 4b29 ldr r3, [pc, #164] @ (80044a8 <UartTasksInit+0x190>)
  9394. 8004404: f44f 7280 mov.w r2, #256 @ 0x100
  9395. 8004408: 809a strh r2, [r3, #4]
  9396. uart8TaskData.uartTxBuffer = uart8TxBuffer;
  9397. 800440a: 4b27 ldr r3, [pc, #156] @ (80044a8 <UartTasksInit+0x190>)
  9398. 800440c: 4a28 ldr r2, [pc, #160] @ (80044b0 <UartTasksInit+0x198>)
  9399. 800440e: 609a str r2, [r3, #8]
  9400. uart8TaskData.uartRxBufferLen = UART8_TX_BUFF_SIZE;
  9401. 8004410: 4b25 ldr r3, [pc, #148] @ (80044a8 <UartTasksInit+0x190>)
  9402. 8004412: f44f 7280 mov.w r2, #256 @ 0x100
  9403. 8004416: 809a strh r2, [r3, #4]
  9404. uart8TaskData.frameData = uart8TaskFrameData;
  9405. 8004418: 4b23 ldr r3, [pc, #140] @ (80044a8 <UartTasksInit+0x190>)
  9406. 800441a: 4a26 ldr r2, [pc, #152] @ (80044b4 <UartTasksInit+0x19c>)
  9407. 800441c: 611a str r2, [r3, #16]
  9408. uart8TaskData.frameDataLen = UART8_RX_BUFF_SIZE;
  9409. 800441e: 4b22 ldr r3, [pc, #136] @ (80044a8 <UartTasksInit+0x190>)
  9410. 8004420: f44f 7280 mov.w r2, #256 @ 0x100
  9411. 8004424: 829a strh r2, [r3, #20]
  9412. uart8TaskData.huart = &huart8;
  9413. 8004426: 4b20 ldr r3, [pc, #128] @ (80044a8 <UartTasksInit+0x190>)
  9414. 8004428: 4a23 ldr r2, [pc, #140] @ (80044b8 <UartTasksInit+0x1a0>)
  9415. 800442a: 631a str r2, [r3, #48] @ 0x30
  9416. uart8TaskData.uartNumber = 8;
  9417. 800442c: 4b1e ldr r3, [pc, #120] @ (80044a8 <UartTasksInit+0x190>)
  9418. 800442e: 2208 movs r2, #8
  9419. 8004430: f883 2034 strb.w r2, [r3, #52] @ 0x34
  9420. UartTaskCreate (&uart1TaskData);
  9421. 8004434: 4808 ldr r0, [pc, #32] @ (8004458 <UartTasksInit+0x140>)
  9422. 8004436: f000 f841 bl 80044bc <UartTaskCreate>
  9423. UartTaskCreate (&uart2TaskData);
  9424. 800443a: 480c ldr r0, [pc, #48] @ (800446c <UartTasksInit+0x154>)
  9425. 800443c: f000 f83e bl 80044bc <UartTaskCreate>
  9426. UartTaskCreate (&uart3TaskData);
  9427. 8004440: 480f ldr r0, [pc, #60] @ (8004480 <UartTasksInit+0x168>)
  9428. 8004442: f000 f83b bl 80044bc <UartTaskCreate>
  9429. UartTaskCreate (&uart6TaskData);
  9430. 8004446: 4813 ldr r0, [pc, #76] @ (8004494 <UartTasksInit+0x17c>)
  9431. 8004448: f000 f838 bl 80044bc <UartTaskCreate>
  9432. UartTaskCreate (&uart8TaskData);
  9433. 800444c: 4816 ldr r0, [pc, #88] @ (80044a8 <UartTasksInit+0x190>)
  9434. 800444e: f000 f835 bl 80044bc <UartTaskCreate>
  9435. }
  9436. 8004452: bf00 nop
  9437. 8004454: bd80 pop {r7, pc}
  9438. 8004456: bf00 nop
  9439. 8004458: 24001eec .word 0x24001eec
  9440. 800445c: 24000fec .word 0x24000fec
  9441. 8004460: 240010ec .word 0x240010ec
  9442. 8004464: 240011ec .word 0x240011ec
  9443. 8004468: 24000314 .word 0x24000314
  9444. 800446c: 24001f94 .word 0x24001f94
  9445. 8004470: 240012ec .word 0x240012ec
  9446. 8004474: 240013ec .word 0x240013ec
  9447. 8004478: 240014ec .word 0x240014ec
  9448. 800447c: 240003a8 .word 0x240003a8
  9449. 8004480: 24001f24 .word 0x24001f24
  9450. 8004484: 240015ec .word 0x240015ec
  9451. 8004488: 240016ec .word 0x240016ec
  9452. 800448c: 240017ec .word 0x240017ec
  9453. 8004490: 2400043c .word 0x2400043c
  9454. 8004494: 24001f5c .word 0x24001f5c
  9455. 8004498: 240018ec .word 0x240018ec
  9456. 800449c: 240019ec .word 0x240019ec
  9457. 80044a0: 24001aec .word 0x24001aec
  9458. 80044a4: 240004d0 .word 0x240004d0
  9459. 80044a8: 24001fcc .word 0x24001fcc
  9460. 80044ac: 24001bec .word 0x24001bec
  9461. 80044b0: 24001cec .word 0x24001cec
  9462. 80044b4: 24001dec .word 0x24001dec
  9463. 80044b8: 24000280 .word 0x24000280
  9464. 080044bc <UartTaskCreate>:
  9465. void UartTaskCreate (UartTaskData* uartTaskData) {
  9466. 80044bc: b580 push {r7, lr}
  9467. 80044be: b09a sub sp, #104 @ 0x68
  9468. 80044c0: af00 add r7, sp, #0
  9469. 80044c2: 6078 str r0, [r7, #4]
  9470. osThreadAttr_t osThreadAttrRxUart = { 0 };
  9471. 80044c4: f107 0344 add.w r3, r7, #68 @ 0x44
  9472. 80044c8: 2224 movs r2, #36 @ 0x24
  9473. 80044ca: 2100 movs r1, #0
  9474. 80044cc: 4618 mov r0, r3
  9475. 80044ce: f026 fad7 bl 802aa80 <memset>
  9476. osThreadAttr_t osThreadAttrTxUart = { 0 };
  9477. 80044d2: f107 0320 add.w r3, r7, #32
  9478. 80044d6: 2224 movs r2, #36 @ 0x24
  9479. 80044d8: 2100 movs r1, #0
  9480. 80044da: 4618 mov r0, r3
  9481. 80044dc: f026 fad0 bl 802aa80 <memset>
  9482. uartTaskData->processRxDataMsgBuffer = xMessageBufferCreate (INPUT_DATA_BUFF_SIZE);
  9483. 80044e0: 2201 movs r2, #1
  9484. 80044e2: 2100 movs r1, #0
  9485. 80044e4: f44f 7080 mov.w r0, #256 @ 0x100
  9486. 80044e8: f00e fe16 bl 8013118 <xStreamBufferGenericCreate>
  9487. 80044ec: 4602 mov r2, r0
  9488. 80044ee: 687b ldr r3, [r7, #4]
  9489. 80044f0: 625a str r2, [r3, #36] @ 0x24
  9490. uartTaskData->processDataCb = NULL;
  9491. 80044f2: 687b ldr r3, [r7, #4]
  9492. 80044f4: 2200 movs r2, #0
  9493. 80044f6: 629a str r2, [r3, #40] @ 0x28
  9494. // osThreadAttrRxUart.name = "os_thread_uart1_rx";
  9495. osThreadAttrRxUart.stack_size = configMINIMAL_STACK_SIZE * 2;
  9496. 80044f8: f44f 6380 mov.w r3, #1024 @ 0x400
  9497. 80044fc: 65bb str r3, [r7, #88] @ 0x58
  9498. osThreadAttrRxUart.priority = (osPriority_t)osPriorityHigh;
  9499. 80044fe: 2328 movs r3, #40 @ 0x28
  9500. 8004500: 65fb str r3, [r7, #92] @ 0x5c
  9501. uartTaskData->uartRecieveTaskHandle = osThreadNew (UartRxTask, uartTaskData, &osThreadAttrRxUart);
  9502. 8004502: f107 0344 add.w r3, r7, #68 @ 0x44
  9503. 8004506: 461a mov r2, r3
  9504. 8004508: 6879 ldr r1, [r7, #4]
  9505. 800450a: 4816 ldr r0, [pc, #88] @ (8004564 <UartTaskCreate+0xa8>)
  9506. 800450c: f00c fe83 bl 8011216 <osThreadNew>
  9507. 8004510: 4602 mov r2, r0
  9508. 8004512: 687b ldr r3, [r7, #4]
  9509. 8004514: 619a str r2, [r3, #24]
  9510. osMessageQueueAttr_t uartTxMsgQueueAttr = { 0 };
  9511. 8004516: f107 0308 add.w r3, r7, #8
  9512. 800451a: 2200 movs r2, #0
  9513. 800451c: 601a str r2, [r3, #0]
  9514. 800451e: 605a str r2, [r3, #4]
  9515. 8004520: 609a str r2, [r3, #8]
  9516. 8004522: 60da str r2, [r3, #12]
  9517. 8004524: 611a str r2, [r3, #16]
  9518. 8004526: 615a str r2, [r3, #20]
  9519. // uartTxMsgQueueAttr.name = "uart1TxMsgQueue";
  9520. uartTaskData->sendCmdToSlaveQueue = osMessageQueueNew (16, sizeof (InterProcessData), &uartTxMsgQueueAttr);
  9521. 8004528: f107 0308 add.w r3, r7, #8
  9522. 800452c: 461a mov r2, r3
  9523. 800452e: 2110 movs r1, #16
  9524. 8004530: 2010 movs r0, #16
  9525. 8004532: f00d fa71 bl 8011a18 <osMessageQueueNew>
  9526. 8004536: 4602 mov r2, r0
  9527. 8004538: 687b ldr r3, [r7, #4]
  9528. 800453a: 62da str r2, [r3, #44] @ 0x2c
  9529. // osThreadAttrTxUart.name = "os_thread_uart1_tx";
  9530. osThreadAttrTxUart.stack_size = configMINIMAL_STACK_SIZE * 4;
  9531. 800453c: f44f 6300 mov.w r3, #2048 @ 0x800
  9532. 8004540: 637b str r3, [r7, #52] @ 0x34
  9533. osThreadAttrTxUart.priority = (osPriority_t)osPriorityNormal;
  9534. 8004542: 2318 movs r3, #24
  9535. 8004544: 63bb str r3, [r7, #56] @ 0x38
  9536. uartTaskData->uartTransmitTaskHandle = osThreadNew (UartTxTask, uartTaskData, &osThreadAttrTxUart);
  9537. 8004546: f107 0320 add.w r3, r7, #32
  9538. 800454a: 461a mov r2, r3
  9539. 800454c: 6879 ldr r1, [r7, #4]
  9540. 800454e: 4806 ldr r0, [pc, #24] @ (8004568 <UartTaskCreate+0xac>)
  9541. 8004550: f00c fe61 bl 8011216 <osThreadNew>
  9542. 8004554: 4602 mov r2, r0
  9543. 8004556: 687b ldr r3, [r7, #4]
  9544. 8004558: 61da str r2, [r3, #28]
  9545. }
  9546. 800455a: bf00 nop
  9547. 800455c: 3768 adds r7, #104 @ 0x68
  9548. 800455e: 46bd mov sp, r7
  9549. 8004560: bd80 pop {r7, pc}
  9550. 8004562: bf00 nop
  9551. 8004564: 080046e1 .word 0x080046e1
  9552. 8004568: 08004ccd .word 0x08004ccd
  9553. 0800456c <HAL_UART_RxCpltCallback>:
  9554. void HAL_UART_RxCpltCallback (UART_HandleTypeDef* huart) {
  9555. 800456c: b480 push {r7}
  9556. 800456e: b083 sub sp, #12
  9557. 8004570: af00 add r7, sp, #0
  9558. 8004572: 6078 str r0, [r7, #4]
  9559. // osSemaphoreRelease(uart8RxSemaphore);
  9560. }
  9561. 8004574: bf00 nop
  9562. 8004576: 370c adds r7, #12
  9563. 8004578: 46bd mov sp, r7
  9564. 800457a: f85d 7b04 ldr.w r7, [sp], #4
  9565. 800457e: 4770 bx lr
  9566. 08004580 <HAL_UARTEx_RxEventCallback>:
  9567. void HAL_UARTEx_RxEventCallback (UART_HandleTypeDef* huart, uint16_t Size) {
  9568. 8004580: b580 push {r7, lr}
  9569. 8004582: b082 sub sp, #8
  9570. 8004584: af00 add r7, sp, #0
  9571. 8004586: 6078 str r0, [r7, #4]
  9572. 8004588: 460b mov r3, r1
  9573. 800458a: 807b strh r3, [r7, #2]
  9574. if (huart->Instance == USART1) {
  9575. 800458c: 687b ldr r3, [r7, #4]
  9576. 800458e: 681b ldr r3, [r3, #0]
  9577. 8004590: 4a1e ldr r2, [pc, #120] @ (800460c <HAL_UARTEx_RxEventCallback+0x8c>)
  9578. 8004592: 4293 cmp r3, r2
  9579. 8004594: d106 bne.n 80045a4 <HAL_UARTEx_RxEventCallback+0x24>
  9580. HandleUartRxCallback (&uart1TaskData, huart, Size);
  9581. 8004596: 887b ldrh r3, [r7, #2]
  9582. 8004598: 461a mov r2, r3
  9583. 800459a: 6879 ldr r1, [r7, #4]
  9584. 800459c: 481c ldr r0, [pc, #112] @ (8004610 <HAL_UARTEx_RxEventCallback+0x90>)
  9585. 800459e: f000 f853 bl 8004648 <HandleUartRxCallback>
  9586. } else if (huart->Instance == USART6) {
  9587. HandleUartRxCallback (&uart6TaskData, huart, Size);
  9588. } else if (huart->Instance == UART8) {
  9589. HandleUartRxCallback (&uart8TaskData, huart, Size);
  9590. }
  9591. }
  9592. 80045a2: e02e b.n 8004602 <HAL_UARTEx_RxEventCallback+0x82>
  9593. } else if (huart->Instance == USART2) {
  9594. 80045a4: 687b ldr r3, [r7, #4]
  9595. 80045a6: 681b ldr r3, [r3, #0]
  9596. 80045a8: 4a1a ldr r2, [pc, #104] @ (8004614 <HAL_UARTEx_RxEventCallback+0x94>)
  9597. 80045aa: 4293 cmp r3, r2
  9598. 80045ac: d106 bne.n 80045bc <HAL_UARTEx_RxEventCallback+0x3c>
  9599. HandleUartRxCallback (&uart2TaskData, huart, Size);
  9600. 80045ae: 887b ldrh r3, [r7, #2]
  9601. 80045b0: 461a mov r2, r3
  9602. 80045b2: 6879 ldr r1, [r7, #4]
  9603. 80045b4: 4818 ldr r0, [pc, #96] @ (8004618 <HAL_UARTEx_RxEventCallback+0x98>)
  9604. 80045b6: f000 f847 bl 8004648 <HandleUartRxCallback>
  9605. }
  9606. 80045ba: e022 b.n 8004602 <HAL_UARTEx_RxEventCallback+0x82>
  9607. } else if (huart->Instance == USART3) {
  9608. 80045bc: 687b ldr r3, [r7, #4]
  9609. 80045be: 681b ldr r3, [r3, #0]
  9610. 80045c0: 4a16 ldr r2, [pc, #88] @ (800461c <HAL_UARTEx_RxEventCallback+0x9c>)
  9611. 80045c2: 4293 cmp r3, r2
  9612. 80045c4: d106 bne.n 80045d4 <HAL_UARTEx_RxEventCallback+0x54>
  9613. HandleUartRxCallback (&uart3TaskData, huart, Size);
  9614. 80045c6: 887b ldrh r3, [r7, #2]
  9615. 80045c8: 461a mov r2, r3
  9616. 80045ca: 6879 ldr r1, [r7, #4]
  9617. 80045cc: 4814 ldr r0, [pc, #80] @ (8004620 <HAL_UARTEx_RxEventCallback+0xa0>)
  9618. 80045ce: f000 f83b bl 8004648 <HandleUartRxCallback>
  9619. }
  9620. 80045d2: e016 b.n 8004602 <HAL_UARTEx_RxEventCallback+0x82>
  9621. } else if (huart->Instance == USART6) {
  9622. 80045d4: 687b ldr r3, [r7, #4]
  9623. 80045d6: 681b ldr r3, [r3, #0]
  9624. 80045d8: 4a12 ldr r2, [pc, #72] @ (8004624 <HAL_UARTEx_RxEventCallback+0xa4>)
  9625. 80045da: 4293 cmp r3, r2
  9626. 80045dc: d106 bne.n 80045ec <HAL_UARTEx_RxEventCallback+0x6c>
  9627. HandleUartRxCallback (&uart6TaskData, huart, Size);
  9628. 80045de: 887b ldrh r3, [r7, #2]
  9629. 80045e0: 461a mov r2, r3
  9630. 80045e2: 6879 ldr r1, [r7, #4]
  9631. 80045e4: 4810 ldr r0, [pc, #64] @ (8004628 <HAL_UARTEx_RxEventCallback+0xa8>)
  9632. 80045e6: f000 f82f bl 8004648 <HandleUartRxCallback>
  9633. }
  9634. 80045ea: e00a b.n 8004602 <HAL_UARTEx_RxEventCallback+0x82>
  9635. } else if (huart->Instance == UART8) {
  9636. 80045ec: 687b ldr r3, [r7, #4]
  9637. 80045ee: 681b ldr r3, [r3, #0]
  9638. 80045f0: 4a0e ldr r2, [pc, #56] @ (800462c <HAL_UARTEx_RxEventCallback+0xac>)
  9639. 80045f2: 4293 cmp r3, r2
  9640. 80045f4: d105 bne.n 8004602 <HAL_UARTEx_RxEventCallback+0x82>
  9641. HandleUartRxCallback (&uart8TaskData, huart, Size);
  9642. 80045f6: 887b ldrh r3, [r7, #2]
  9643. 80045f8: 461a mov r2, r3
  9644. 80045fa: 6879 ldr r1, [r7, #4]
  9645. 80045fc: 480c ldr r0, [pc, #48] @ (8004630 <HAL_UARTEx_RxEventCallback+0xb0>)
  9646. 80045fe: f000 f823 bl 8004648 <HandleUartRxCallback>
  9647. }
  9648. 8004602: bf00 nop
  9649. 8004604: 3708 adds r7, #8
  9650. 8004606: 46bd mov sp, r7
  9651. 8004608: bd80 pop {r7, pc}
  9652. 800460a: bf00 nop
  9653. 800460c: 40011000 .word 0x40011000
  9654. 8004610: 24001eec .word 0x24001eec
  9655. 8004614: 40004400 .word 0x40004400
  9656. 8004618: 24001f94 .word 0x24001f94
  9657. 800461c: 40004800 .word 0x40004800
  9658. 8004620: 24001f24 .word 0x24001f24
  9659. 8004624: 40011400 .word 0x40011400
  9660. 8004628: 24001f5c .word 0x24001f5c
  9661. 800462c: 40007c00 .word 0x40007c00
  9662. 8004630: 24001fcc .word 0x24001fcc
  9663. 08004634 <HAL_UART_TxCpltCallback>:
  9664. void HAL_UART_TxCpltCallback (UART_HandleTypeDef* huart) {
  9665. 8004634: b480 push {r7}
  9666. 8004636: b083 sub sp, #12
  9667. 8004638: af00 add r7, sp, #0
  9668. 800463a: 6078 str r0, [r7, #4]
  9669. if (huart->Instance == UART8) {
  9670. }
  9671. }
  9672. 800463c: bf00 nop
  9673. 800463e: 370c adds r7, #12
  9674. 8004640: 46bd mov sp, r7
  9675. 8004642: f85d 7b04 ldr.w r7, [sp], #4
  9676. 8004646: 4770 bx lr
  9677. 08004648 <HandleUartRxCallback>:
  9678. void HandleUartRxCallback (UartTaskData* uartTaskData, UART_HandleTypeDef* huart, uint16_t Size) {
  9679. 8004648: b580 push {r7, lr}
  9680. 800464a: b088 sub sp, #32
  9681. 800464c: af02 add r7, sp, #8
  9682. 800464e: 60f8 str r0, [r7, #12]
  9683. 8004650: 60b9 str r1, [r7, #8]
  9684. 8004652: 4613 mov r3, r2
  9685. 8004654: 80fb strh r3, [r7, #6]
  9686. BaseType_t pxHigherPriorityTaskWoken = pdFALSE;
  9687. 8004656: 2300 movs r3, #0
  9688. 8004658: 617b str r3, [r7, #20]
  9689. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9690. 800465a: 68fb ldr r3, [r7, #12]
  9691. 800465c: 6a1b ldr r3, [r3, #32]
  9692. 800465e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9693. 8004662: 4618 mov r0, r3
  9694. 8004664: f00d f80d bl 8011682 <osMutexAcquire>
  9695. memcpy (&(uartTaskData->frameData[uartTaskData->frameBytesCount]), uartTaskData->uartRxBuffer, Size);
  9696. 8004668: 68fb ldr r3, [r7, #12]
  9697. 800466a: 691b ldr r3, [r3, #16]
  9698. 800466c: 68fa ldr r2, [r7, #12]
  9699. 800466e: 8ad2 ldrh r2, [r2, #22]
  9700. 8004670: 1898 adds r0, r3, r2
  9701. 8004672: 68fb ldr r3, [r7, #12]
  9702. 8004674: 681b ldr r3, [r3, #0]
  9703. 8004676: 88fa ldrh r2, [r7, #6]
  9704. 8004678: 4619 mov r1, r3
  9705. 800467a: f026 faf8 bl 802ac6e <memcpy>
  9706. uartTaskData->frameBytesCount += Size;
  9707. 800467e: 68fb ldr r3, [r7, #12]
  9708. 8004680: 8ada ldrh r2, [r3, #22]
  9709. 8004682: 88fb ldrh r3, [r7, #6]
  9710. 8004684: 4413 add r3, r2
  9711. 8004686: b29a uxth r2, r3
  9712. 8004688: 68fb ldr r3, [r7, #12]
  9713. 800468a: 82da strh r2, [r3, #22]
  9714. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9715. 800468c: 68fb ldr r3, [r7, #12]
  9716. 800468e: 6a1b ldr r3, [r3, #32]
  9717. 8004690: 4618 mov r0, r3
  9718. 8004692: f00d f841 bl 8011718 <osMutexRelease>
  9719. xTaskNotifyFromISR (uartTaskData->uartRecieveTaskHandle, Size, eSetValueWithOverwrite, &pxHigherPriorityTaskWoken);
  9720. 8004696: 68fb ldr r3, [r7, #12]
  9721. 8004698: 6998 ldr r0, [r3, #24]
  9722. 800469a: 88f9 ldrh r1, [r7, #6]
  9723. 800469c: f107 0314 add.w r3, r7, #20
  9724. 80046a0: 9300 str r3, [sp, #0]
  9725. 80046a2: 2300 movs r3, #0
  9726. 80046a4: 2203 movs r2, #3
  9727. 80046a6: f010 fa2f bl 8014b08 <xTaskGenericNotifyFromISR>
  9728. // HAL_UARTEx_ReceiveToIdle_DMA(huart, uart8RxBuffer, UART8_RX_BUFF_SIZE);
  9729. // __HAL_DMA_DISABLE_IT(&hdma_uart8_rx, DMA_IT_HT);
  9730. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9731. 80046aa: 68fb ldr r3, [r7, #12]
  9732. 80046ac: 6b18 ldr r0, [r3, #48] @ 0x30
  9733. 80046ae: 68fb ldr r3, [r7, #12]
  9734. 80046b0: 6819 ldr r1, [r3, #0]
  9735. 80046b2: 68fb ldr r3, [r7, #12]
  9736. 80046b4: 889b ldrh r3, [r3, #4]
  9737. 80046b6: 461a mov r2, r3
  9738. 80046b8: f00b fdb9 bl 801022e <HAL_UARTEx_ReceiveToIdle_IT>
  9739. portEND_SWITCHING_ISR (pxHigherPriorityTaskWoken);
  9740. 80046bc: 697b ldr r3, [r7, #20]
  9741. 80046be: 2b00 cmp r3, #0
  9742. 80046c0: d007 beq.n 80046d2 <HandleUartRxCallback+0x8a>
  9743. 80046c2: 4b06 ldr r3, [pc, #24] @ (80046dc <HandleUartRxCallback+0x94>)
  9744. 80046c4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  9745. 80046c8: 601a str r2, [r3, #0]
  9746. 80046ca: f3bf 8f4f dsb sy
  9747. 80046ce: f3bf 8f6f isb sy
  9748. }
  9749. 80046d2: bf00 nop
  9750. 80046d4: 3718 adds r7, #24
  9751. 80046d6: 46bd mov sp, r7
  9752. 80046d8: bd80 pop {r7, pc}
  9753. 80046da: bf00 nop
  9754. 80046dc: e000ed04 .word 0xe000ed04
  9755. 080046e0 <UartRxTask>:
  9756. void UartRxTask (void* argument) {
  9757. 80046e0: b580 push {r7, lr}
  9758. 80046e2: b0d2 sub sp, #328 @ 0x148
  9759. 80046e4: af02 add r7, sp, #8
  9760. 80046e6: f507 73a0 add.w r3, r7, #320 @ 0x140
  9761. 80046ea: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9762. 80046ee: 6018 str r0, [r3, #0]
  9763. UartTaskData* uartTaskData = (UartTaskData*)argument;
  9764. 80046f0: f507 73a0 add.w r3, r7, #320 @ 0x140
  9765. 80046f4: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9766. 80046f8: 681b ldr r3, [r3, #0]
  9767. 80046fa: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  9768. SerialProtocolFrameData spFrameData = { 0 };
  9769. 80046fe: f507 73a0 add.w r3, r7, #320 @ 0x140
  9770. 8004702: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9771. 8004706: 4618 mov r0, r3
  9772. 8004708: f44f 7386 mov.w r3, #268 @ 0x10c
  9773. 800470c: 461a mov r2, r3
  9774. 800470e: 2100 movs r1, #0
  9775. 8004710: f026 f9b6 bl 802aa80 <memset>
  9776. uint32_t bytesRec = 0;
  9777. 8004714: f507 73a0 add.w r3, r7, #320 @ 0x140
  9778. 8004718: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9779. 800471c: 2200 movs r2, #0
  9780. 800471e: 601a str r2, [r3, #0]
  9781. uint32_t crc = 0;
  9782. 8004720: 2300 movs r3, #0
  9783. 8004722: f8c7 3128 str.w r3, [r7, #296] @ 0x128
  9784. uint16_t frameCommandRaw = 0x0000;
  9785. 8004726: 2300 movs r3, #0
  9786. 8004728: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  9787. uint16_t frameBytesCount = 0;
  9788. 800472c: 2300 movs r3, #0
  9789. 800472e: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  9790. uint16_t frameCrc = 0;
  9791. 8004732: 2300 movs r3, #0
  9792. 8004734: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  9793. uint16_t frameTotalLength = 0;
  9794. 8004738: 2300 movs r3, #0
  9795. 800473a: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9796. uint16_t dataToSend = 0;
  9797. 800473e: 2300 movs r3, #0
  9798. 8004740: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9799. portBASE_TYPE crcPass = pdFAIL;
  9800. 8004744: 2300 movs r3, #0
  9801. 8004746: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  9802. portBASE_TYPE proceed = pdFALSE;
  9803. 800474a: 2300 movs r3, #0
  9804. 800474c: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9805. portBASE_TYPE frameTimeout = pdFAIL;
  9806. 8004750: 2300 movs r3, #0
  9807. 8004752: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  9808. enum SerialReceiverStates receverState = srWaitForHeader;
  9809. 8004756: 2300 movs r3, #0
  9810. 8004758: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9811. uartTaskData->rxDataBufferMutex = osMutexNew (NULL);
  9812. 800475c: 2000 movs r0, #0
  9813. 800475e: f00c ff0a bl 8011576 <osMutexNew>
  9814. 8004762: 4602 mov r2, r0
  9815. 8004764: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9816. 8004768: 621a str r2, [r3, #32]
  9817. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9818. 800476a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9819. 800476e: 6b18 ldr r0, [r3, #48] @ 0x30
  9820. 8004770: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9821. 8004774: 6819 ldr r1, [r3, #0]
  9822. 8004776: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9823. 800477a: 889b ldrh r3, [r3, #4]
  9824. 800477c: 461a mov r2, r3
  9825. 800477e: f00b fd56 bl 801022e <HAL_UARTEx_ReceiveToIdle_IT>
  9826. while (pdTRUE) {
  9827. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  9828. 8004782: f107 020c add.w r2, r7, #12
  9829. 8004786: f44f 63fa mov.w r3, #2000 @ 0x7d0
  9830. 800478a: 2100 movs r1, #0
  9831. 800478c: 2000 movs r0, #0
  9832. 800478e: f010 f899 bl 80148c4 <xTaskNotifyWait>
  9833. 8004792: 4603 mov r3, r0
  9834. 8004794: 2b00 cmp r3, #0
  9835. 8004796: bf0c ite eq
  9836. 8004798: 2301 moveq r3, #1
  9837. 800479a: 2300 movne r3, #0
  9838. 800479c: b2db uxtb r3, r3
  9839. 800479e: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  9840. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9841. 80047a2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9842. 80047a6: 6a1b ldr r3, [r3, #32]
  9843. 80047a8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9844. 80047ac: 4618 mov r0, r3
  9845. 80047ae: f00c ff68 bl 8011682 <osMutexAcquire>
  9846. frameBytesCount = uartTaskData->frameBytesCount;
  9847. 80047b2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9848. 80047b6: 8adb ldrh r3, [r3, #22]
  9849. 80047b8: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  9850. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9851. 80047bc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9852. 80047c0: 6a1b ldr r3, [r3, #32]
  9853. 80047c2: 4618 mov r0, r3
  9854. 80047c4: f00c ffa8 bl 8011718 <osMutexRelease>
  9855. if ((frameTimeout == pdTRUE) && (frameBytesCount > 0)) {
  9856. 80047c8: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9857. 80047cc: 2b01 cmp r3, #1
  9858. 80047ce: d10a bne.n 80047e6 <UartRxTask+0x106>
  9859. 80047d0: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9860. 80047d4: 2b00 cmp r3, #0
  9861. 80047d6: d006 beq.n 80047e6 <UartRxTask+0x106>
  9862. receverState = srFail;
  9863. 80047d8: 2304 movs r3, #4
  9864. 80047da: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9865. proceed = pdTRUE;
  9866. 80047de: 2301 movs r3, #1
  9867. 80047e0: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9868. 80047e4: e029 b.n 800483a <UartRxTask+0x15a>
  9869. } else {
  9870. if (frameTimeout == pdFALSE) {
  9871. 80047e6: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9872. 80047ea: 2b00 cmp r3, #0
  9873. 80047ec: d111 bne.n 8004812 <UartRxTask+0x132>
  9874. proceed = pdTRUE;
  9875. 80047ee: 2301 movs r3, #1
  9876. 80047f0: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9877. printf ("Uart%d: RX bytes received: %ld\n", uartTaskData->uartNumber, bytesRec);
  9878. 80047f4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9879. 80047f8: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9880. 80047fc: 4619 mov r1, r3
  9881. 80047fe: f507 73a0 add.w r3, r7, #320 @ 0x140
  9882. 8004802: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9883. 8004806: 681b ldr r3, [r3, #0]
  9884. 8004808: 461a mov r2, r3
  9885. 800480a: 48c1 ldr r0, [pc, #772] @ (8004b10 <UartRxTask+0x430>)
  9886. 800480c: f025 ffa6 bl 802a75c <iprintf>
  9887. 8004810: e22f b.n 8004c72 <UartRxTask+0x592>
  9888. } else {
  9889. if (uartTaskData->huart->RxState == HAL_UART_STATE_READY) {
  9890. 8004812: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9891. 8004816: 6b1b ldr r3, [r3, #48] @ 0x30
  9892. 8004818: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  9893. 800481c: 2b20 cmp r3, #32
  9894. 800481e: f040 8228 bne.w 8004c72 <UartRxTask+0x592>
  9895. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9896. 8004822: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9897. 8004826: 6b18 ldr r0, [r3, #48] @ 0x30
  9898. 8004828: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9899. 800482c: 6819 ldr r1, [r3, #0]
  9900. 800482e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9901. 8004832: 889b ldrh r3, [r3, #4]
  9902. 8004834: 461a mov r2, r3
  9903. 8004836: f00b fcfa bl 801022e <HAL_UARTEx_ReceiveToIdle_IT>
  9904. }
  9905. }
  9906. }
  9907. while (proceed) {
  9908. 800483a: e21a b.n 8004c72 <UartRxTask+0x592>
  9909. switch (receverState) {
  9910. 800483c: f897 3133 ldrb.w r3, [r7, #307] @ 0x133
  9911. 8004840: 2b04 cmp r3, #4
  9912. 8004842: f200 81f1 bhi.w 8004c28 <UartRxTask+0x548>
  9913. 8004846: a201 add r2, pc, #4 @ (adr r2, 800484c <UartRxTask+0x16c>)
  9914. 8004848: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  9915. 800484c: 08004861 .word 0x08004861
  9916. 8004850: 080049c3 .word 0x080049c3
  9917. 8004854: 080049a7 .word 0x080049a7
  9918. 8004858: 08004a63 .word 0x08004a63
  9919. 800485c: 08004b1d .word 0x08004b1d
  9920. case srWaitForHeader:
  9921. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9922. 8004860: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9923. 8004864: 6a1b ldr r3, [r3, #32]
  9924. 8004866: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9925. 800486a: 4618 mov r0, r3
  9926. 800486c: f00c ff09 bl 8011682 <osMutexAcquire>
  9927. if (uartTaskData->frameData[0] == FRAME_INDICATOR) {
  9928. 8004870: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9929. 8004874: 691b ldr r3, [r3, #16]
  9930. 8004876: 781b ldrb r3, [r3, #0]
  9931. 8004878: 2baa cmp r3, #170 @ 0xaa
  9932. 800487a: f040 8082 bne.w 8004982 <UartRxTask+0x2a2>
  9933. if (frameBytesCount > FRAME_ID_LENGTH) {
  9934. 800487e: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9935. 8004882: 2b02 cmp r3, #2
  9936. 8004884: d914 bls.n 80048b0 <UartRxTask+0x1d0>
  9937. spFrameData.frameHeader.frameId =
  9938. CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_ID_LENGTH - FRAME_COMMAND_LENGTH]));
  9939. 8004886: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9940. 800488a: 691b ldr r3, [r3, #16]
  9941. 800488c: 3302 adds r3, #2
  9942. 800488e: 781b ldrb r3, [r3, #0]
  9943. 8004890: 021b lsls r3, r3, #8
  9944. 8004892: b21a sxth r2, r3
  9945. 8004894: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9946. 8004898: 691b ldr r3, [r3, #16]
  9947. 800489a: 3301 adds r3, #1
  9948. 800489c: 781b ldrb r3, [r3, #0]
  9949. 800489e: b21b sxth r3, r3
  9950. 80048a0: 4313 orrs r3, r2
  9951. 80048a2: b21b sxth r3, r3
  9952. 80048a4: b29a uxth r2, r3
  9953. spFrameData.frameHeader.frameId =
  9954. 80048a6: f507 73a0 add.w r3, r7, #320 @ 0x140
  9955. 80048aa: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9956. 80048ae: 801a strh r2, [r3, #0]
  9957. }
  9958. if (frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH) {
  9959. 80048b0: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9960. 80048b4: 2b04 cmp r3, #4
  9961. 80048b6: d923 bls.n 8004900 <UartRxTask+0x220>
  9962. frameCommandRaw = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_COMMAND_LENGTH]));
  9963. 80048b8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9964. 80048bc: 691b ldr r3, [r3, #16]
  9965. 80048be: 3304 adds r3, #4
  9966. 80048c0: 781b ldrb r3, [r3, #0]
  9967. 80048c2: 021b lsls r3, r3, #8
  9968. 80048c4: b21a sxth r2, r3
  9969. 80048c6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9970. 80048ca: 691b ldr r3, [r3, #16]
  9971. 80048cc: 3303 adds r3, #3
  9972. 80048ce: 781b ldrb r3, [r3, #0]
  9973. 80048d0: b21b sxth r3, r3
  9974. 80048d2: 4313 orrs r3, r2
  9975. 80048d4: b21b sxth r3, r3
  9976. 80048d6: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  9977. spFrameData.frameHeader.frameCommand = (SerialProtocolCommands)(frameCommandRaw & 0x7FFF);
  9978. 80048da: f8b7 3126 ldrh.w r3, [r7, #294] @ 0x126
  9979. 80048de: b2da uxtb r2, r3
  9980. 80048e0: f507 73a0 add.w r3, r7, #320 @ 0x140
  9981. 80048e4: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9982. 80048e8: 709a strb r2, [r3, #2]
  9983. spFrameData.frameHeader.isResponseFrame = (frameCommandRaw & 0x8000) != 0 ? pdTRUE : pdFALSE;
  9984. 80048ea: f9b7 3126 ldrsh.w r3, [r7, #294] @ 0x126
  9985. 80048ee: 13db asrs r3, r3, #15
  9986. 80048f0: b21b sxth r3, r3
  9987. 80048f2: f003 0201 and.w r2, r3, #1
  9988. 80048f6: f507 73a0 add.w r3, r7, #320 @ 0x140
  9989. 80048fa: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9990. 80048fe: 609a str r2, [r3, #8]
  9991. }
  9992. if ((frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH) && ((spFrameData.frameHeader.frameCommand & 0x8000) != 0)) {
  9993. 8004900: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9994. 8004904: 2b05 cmp r3, #5
  9995. 8004906: d913 bls.n 8004930 <UartRxTask+0x250>
  9996. 8004908: f507 73a0 add.w r3, r7, #320 @ 0x140
  9997. 800490c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9998. 8004910: 789b ldrb r3, [r3, #2]
  9999. 8004912: f403 4300 and.w r3, r3, #32768 @ 0x8000
  10000. 8004916: 2b00 cmp r3, #0
  10001. 8004918: d00a beq.n 8004930 <UartRxTask+0x250>
  10002. spFrameData.frameHeader.respStatus = (SerialProtocolRespStatus)(uartTaskData->frameData[FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH]);
  10003. 800491a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10004. 800491e: 691b ldr r3, [r3, #16]
  10005. 8004920: 3305 adds r3, #5
  10006. 8004922: 781b ldrb r3, [r3, #0]
  10007. 8004924: b25a sxtb r2, r3
  10008. 8004926: f507 73a0 add.w r3, r7, #320 @ 0x140
  10009. 800492a: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10010. 800492e: 70da strb r2, [r3, #3]
  10011. }
  10012. if (frameBytesCount >= FRAME_HEADER_LENGTH) {
  10013. 8004930: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10014. 8004934: 2b07 cmp r3, #7
  10015. 8004936: d920 bls.n 800497a <UartRxTask+0x29a>
  10016. spFrameData.frameHeader.frameDataLength = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH]));
  10017. 8004938: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10018. 800493c: 691b ldr r3, [r3, #16]
  10019. 800493e: 3306 adds r3, #6
  10020. 8004940: 781b ldrb r3, [r3, #0]
  10021. 8004942: 021b lsls r3, r3, #8
  10022. 8004944: b21a sxth r2, r3
  10023. 8004946: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10024. 800494a: 691b ldr r3, [r3, #16]
  10025. 800494c: 3305 adds r3, #5
  10026. 800494e: 781b ldrb r3, [r3, #0]
  10027. 8004950: b21b sxth r3, r3
  10028. 8004952: 4313 orrs r3, r2
  10029. 8004954: b21b sxth r3, r3
  10030. 8004956: b29a uxth r2, r3
  10031. 8004958: f507 73a0 add.w r3, r7, #320 @ 0x140
  10032. 800495c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10033. 8004960: 809a strh r2, [r3, #4]
  10034. frameTotalLength = FRAME_HEADER_LENGTH + spFrameData.frameHeader.frameDataLength + FRAME_CRC_LENGTH;
  10035. 8004962: f507 73a0 add.w r3, r7, #320 @ 0x140
  10036. 8004966: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10037. 800496a: 889b ldrh r3, [r3, #4]
  10038. 800496c: 330a adds r3, #10
  10039. 800496e: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10040. receverState = srRecieveData;
  10041. 8004972: 2302 movs r3, #2
  10042. 8004974: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10043. 8004978: e00e b.n 8004998 <UartRxTask+0x2b8>
  10044. } else {
  10045. proceed = pdFALSE;
  10046. 800497a: 2300 movs r3, #0
  10047. 800497c: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10048. 8004980: e00a b.n 8004998 <UartRxTask+0x2b8>
  10049. }
  10050. } else {
  10051. if (frameBytesCount > 0) {
  10052. 8004982: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10053. 8004986: 2b00 cmp r3, #0
  10054. 8004988: d003 beq.n 8004992 <UartRxTask+0x2b2>
  10055. receverState = srFail;
  10056. 800498a: 2304 movs r3, #4
  10057. 800498c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10058. 8004990: e002 b.n 8004998 <UartRxTask+0x2b8>
  10059. } else {
  10060. proceed = pdFALSE;
  10061. 8004992: 2300 movs r3, #0
  10062. 8004994: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10063. }
  10064. }
  10065. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10066. 8004998: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10067. 800499c: 6a1b ldr r3, [r3, #32]
  10068. 800499e: 4618 mov r0, r3
  10069. 80049a0: f00c feba bl 8011718 <osMutexRelease>
  10070. break;
  10071. 80049a4: e165 b.n 8004c72 <UartRxTask+0x592>
  10072. case srRecieveData:
  10073. if (frameBytesCount >= frameTotalLength) {
  10074. 80049a6: f8b7 2124 ldrh.w r2, [r7, #292] @ 0x124
  10075. 80049aa: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10076. 80049ae: 429a cmp r2, r3
  10077. 80049b0: d303 bcc.n 80049ba <UartRxTask+0x2da>
  10078. receverState = srCheckCrc;
  10079. 80049b2: 2301 movs r3, #1
  10080. 80049b4: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10081. } else {
  10082. proceed = pdFALSE;
  10083. }
  10084. break;
  10085. 80049b8: e15b b.n 8004c72 <UartRxTask+0x592>
  10086. proceed = pdFALSE;
  10087. 80049ba: 2300 movs r3, #0
  10088. 80049bc: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10089. break;
  10090. 80049c0: e157 b.n 8004c72 <UartRxTask+0x592>
  10091. case srCheckCrc:
  10092. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10093. 80049c2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10094. 80049c6: 6a1b ldr r3, [r3, #32]
  10095. 80049c8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10096. 80049cc: 4618 mov r0, r3
  10097. 80049ce: f00c fe58 bl 8011682 <osMutexAcquire>
  10098. frameCrc = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[frameTotalLength - FRAME_CRC_LENGTH]));
  10099. 80049d2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10100. 80049d6: 691a ldr r2, [r3, #16]
  10101. 80049d8: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10102. 80049dc: 3b01 subs r3, #1
  10103. 80049de: 4413 add r3, r2
  10104. 80049e0: 781b ldrb r3, [r3, #0]
  10105. 80049e2: 021b lsls r3, r3, #8
  10106. 80049e4: b21a sxth r2, r3
  10107. 80049e6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10108. 80049ea: 6919 ldr r1, [r3, #16]
  10109. 80049ec: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10110. 80049f0: 3b02 subs r3, #2
  10111. 80049f2: 440b add r3, r1
  10112. 80049f4: 781b ldrb r3, [r3, #0]
  10113. 80049f6: b21b sxth r3, r3
  10114. 80049f8: 4313 orrs r3, r2
  10115. 80049fa: b21b sxth r3, r3
  10116. 80049fc: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  10117. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)(uartTaskData->frameData), frameTotalLength - FRAME_CRC_LENGTH);
  10118. 8004a00: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10119. 8004a04: 6919 ldr r1, [r3, #16]
  10120. 8004a06: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10121. 8004a0a: 3b02 subs r3, #2
  10122. 8004a0c: 461a mov r2, r3
  10123. 8004a0e: 4841 ldr r0, [pc, #260] @ (8004b14 <UartRxTask+0x434>)
  10124. 8004a10: f001 f84c bl 8005aac <HAL_CRC_Calculate>
  10125. 8004a14: f8c7 0128 str.w r0, [r7, #296] @ 0x128
  10126. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10127. 8004a18: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10128. 8004a1c: 6a1b ldr r3, [r3, #32]
  10129. 8004a1e: 4618 mov r0, r3
  10130. 8004a20: f00c fe7a bl 8011718 <osMutexRelease>
  10131. crcPass = frameCrc == crc;
  10132. 8004a24: f8b7 3122 ldrh.w r3, [r7, #290] @ 0x122
  10133. 8004a28: f8d7 2128 ldr.w r2, [r7, #296] @ 0x128
  10134. 8004a2c: 429a cmp r2, r3
  10135. 8004a2e: bf0c ite eq
  10136. 8004a30: 2301 moveq r3, #1
  10137. 8004a32: 2300 movne r3, #0
  10138. 8004a34: b2db uxtb r3, r3
  10139. 8004a36: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  10140. if (crcPass) {
  10141. 8004a3a: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  10142. 8004a3e: 2b00 cmp r3, #0
  10143. 8004a40: d00b beq.n 8004a5a <UartRxTask+0x37a>
  10144. printf ("Uart%d: Frame CRC PASS\n", uartTaskData->uartNumber);
  10145. 8004a42: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10146. 8004a46: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10147. 8004a4a: 4619 mov r1, r3
  10148. 8004a4c: 4832 ldr r0, [pc, #200] @ (8004b18 <UartRxTask+0x438>)
  10149. 8004a4e: f025 fe85 bl 802a75c <iprintf>
  10150. receverState = srExecuteCmd;
  10151. 8004a52: 2303 movs r3, #3
  10152. 8004a54: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10153. } else {
  10154. receverState = srFail;
  10155. }
  10156. break;
  10157. 8004a58: e10b b.n 8004c72 <UartRxTask+0x592>
  10158. receverState = srFail;
  10159. 8004a5a: 2304 movs r3, #4
  10160. 8004a5c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10161. break;
  10162. 8004a60: e107 b.n 8004c72 <UartRxTask+0x592>
  10163. case srExecuteCmd:
  10164. if ((uartTaskData->processDataCb != NULL) || (uartTaskData->processRxDataMsgBuffer != NULL)) {
  10165. 8004a62: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10166. 8004a66: 6a9b ldr r3, [r3, #40] @ 0x28
  10167. 8004a68: 2b00 cmp r3, #0
  10168. 8004a6a: d104 bne.n 8004a76 <UartRxTask+0x396>
  10169. 8004a6c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10170. 8004a70: 6a5b ldr r3, [r3, #36] @ 0x24
  10171. 8004a72: 2b00 cmp r3, #0
  10172. 8004a74: d01e beq.n 8004ab4 <UartRxTask+0x3d4>
  10173. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10174. 8004a76: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10175. 8004a7a: 6a1b ldr r3, [r3, #32]
  10176. 8004a7c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10177. 8004a80: 4618 mov r0, r3
  10178. 8004a82: f00c fdfe bl 8011682 <osMutexAcquire>
  10179. memcpy (spFrameData.dataBuffer, &(uartTaskData->frameData[FRAME_HEADER_LENGTH]), spFrameData.frameHeader.frameDataLength);
  10180. 8004a86: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10181. 8004a8a: 691b ldr r3, [r3, #16]
  10182. 8004a8c: f103 0108 add.w r1, r3, #8
  10183. 8004a90: f507 73a0 add.w r3, r7, #320 @ 0x140
  10184. 8004a94: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10185. 8004a98: 889b ldrh r3, [r3, #4]
  10186. 8004a9a: 461a mov r2, r3
  10187. 8004a9c: f107 0310 add.w r3, r7, #16
  10188. 8004aa0: 330c adds r3, #12
  10189. 8004aa2: 4618 mov r0, r3
  10190. 8004aa4: f026 f8e3 bl 802ac6e <memcpy>
  10191. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10192. 8004aa8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10193. 8004aac: 6a1b ldr r3, [r3, #32]
  10194. 8004aae: 4618 mov r0, r3
  10195. 8004ab0: f00c fe32 bl 8011718 <osMutexRelease>
  10196. }
  10197. if (uartTaskData->processRxDataMsgBuffer != NULL) {
  10198. 8004ab4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10199. 8004ab8: 6a5b ldr r3, [r3, #36] @ 0x24
  10200. 8004aba: 2b00 cmp r3, #0
  10201. 8004abc: d015 beq.n 8004aea <UartRxTask+0x40a>
  10202. if(xMessageBufferSend (uartTaskData->processRxDataMsgBuffer, &spFrameData, sizeof (SerialProtocolFrameHeader) + spFrameData.frameHeader.frameDataLength, pdMS_TO_TICKS (200)) == pdFALSE)
  10203. 8004abe: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10204. 8004ac2: 6a58 ldr r0, [r3, #36] @ 0x24
  10205. 8004ac4: f507 73a0 add.w r3, r7, #320 @ 0x140
  10206. 8004ac8: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10207. 8004acc: 889b ldrh r3, [r3, #4]
  10208. 8004ace: f103 020c add.w r2, r3, #12
  10209. 8004ad2: f107 0110 add.w r1, r7, #16
  10210. 8004ad6: 23c8 movs r3, #200 @ 0xc8
  10211. 8004ad8: f00e fbb0 bl 801323c <xStreamBufferSend>
  10212. 8004adc: 4603 mov r3, r0
  10213. 8004ade: 2b00 cmp r3, #0
  10214. 8004ae0: d103 bne.n 8004aea <UartRxTask+0x40a>
  10215. {
  10216. receverState = srFail;
  10217. 8004ae2: 2304 movs r3, #4
  10218. 8004ae4: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10219. break;
  10220. 8004ae8: e0c3 b.n 8004c72 <UartRxTask+0x592>
  10221. }
  10222. }
  10223. if (uartTaskData->processDataCb != NULL) {
  10224. 8004aea: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10225. 8004aee: 6a9b ldr r3, [r3, #40] @ 0x28
  10226. 8004af0: 2b00 cmp r3, #0
  10227. 8004af2: d008 beq.n 8004b06 <UartRxTask+0x426>
  10228. uartTaskData->processDataCb (uartTaskData, &spFrameData);
  10229. 8004af4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10230. 8004af8: 6a9b ldr r3, [r3, #40] @ 0x28
  10231. 8004afa: f107 0210 add.w r2, r7, #16
  10232. 8004afe: 4611 mov r1, r2
  10233. 8004b00: f8d7 012c ldr.w r0, [r7, #300] @ 0x12c
  10234. 8004b04: 4798 blx r3
  10235. }
  10236. receverState = srFinish;
  10237. 8004b06: 2305 movs r3, #5
  10238. 8004b08: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10239. break;
  10240. 8004b0c: e0b1 b.n 8004c72 <UartRxTask+0x592>
  10241. 8004b0e: bf00 nop
  10242. 8004b10: 0802d7c8 .word 0x0802d7c8
  10243. 8004b14: 24000248 .word 0x24000248
  10244. 8004b18: 0802d7e8 .word 0x0802d7e8
  10245. case srFail:
  10246. dataToSend = 0;
  10247. 8004b1c: 2300 movs r3, #0
  10248. 8004b1e: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10249. if ((frameTimeout == pdTRUE) && (frameBytesCount > 2)) {
  10250. 8004b22: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10251. 8004b26: 2b01 cmp r3, #1
  10252. 8004b28: d124 bne.n 8004b74 <UartRxTask+0x494>
  10253. 8004b2a: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10254. 8004b2e: 2b02 cmp r3, #2
  10255. 8004b30: d920 bls.n 8004b74 <UartRxTask+0x494>
  10256. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spTimeout, NULL, 0);
  10257. 8004b32: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10258. 8004b36: 6898 ldr r0, [r3, #8]
  10259. 8004b38: f507 73a0 add.w r3, r7, #320 @ 0x140
  10260. 8004b3c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10261. 8004b40: 8819 ldrh r1, [r3, #0]
  10262. 8004b42: f507 73a0 add.w r3, r7, #320 @ 0x140
  10263. 8004b46: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10264. 8004b4a: 789a ldrb r2, [r3, #2]
  10265. 8004b4c: 2300 movs r3, #0
  10266. 8004b4e: 9301 str r3, [sp, #4]
  10267. 8004b50: 2300 movs r3, #0
  10268. 8004b52: 9300 str r3, [sp, #0]
  10269. 8004b54: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  10270. 8004b58: f7fe fdf6 bl 8003748 <PrepareRespFrame>
  10271. 8004b5c: 4603 mov r3, r0
  10272. 8004b5e: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10273. printf ("Uart%d: RX data receiver timeout!\n", uartTaskData->uartNumber);
  10274. 8004b62: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10275. 8004b66: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10276. 8004b6a: 4619 mov r1, r3
  10277. 8004b6c: 4844 ldr r0, [pc, #272] @ (8004c80 <UartRxTask+0x5a0>)
  10278. 8004b6e: f025 fdf5 bl 802a75c <iprintf>
  10279. 8004b72: e03c b.n 8004bee <UartRxTask+0x50e>
  10280. } else if (!crcPass) {
  10281. 8004b74: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  10282. 8004b78: 2b00 cmp r3, #0
  10283. 8004b7a: d120 bne.n 8004bbe <UartRxTask+0x4de>
  10284. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spCrcFail, NULL, 0);
  10285. 8004b7c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10286. 8004b80: 6898 ldr r0, [r3, #8]
  10287. 8004b82: f507 73a0 add.w r3, r7, #320 @ 0x140
  10288. 8004b86: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10289. 8004b8a: 8819 ldrh r1, [r3, #0]
  10290. 8004b8c: f507 73a0 add.w r3, r7, #320 @ 0x140
  10291. 8004b90: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10292. 8004b94: 789a ldrb r2, [r3, #2]
  10293. 8004b96: 2300 movs r3, #0
  10294. 8004b98: 9301 str r3, [sp, #4]
  10295. 8004b9a: 2300 movs r3, #0
  10296. 8004b9c: 9300 str r3, [sp, #0]
  10297. 8004b9e: f06f 0301 mvn.w r3, #1
  10298. 8004ba2: f7fe fdd1 bl 8003748 <PrepareRespFrame>
  10299. 8004ba6: 4603 mov r3, r0
  10300. 8004ba8: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10301. printf ("Uart%d: Frame CRC FAIL\n", uartTaskData->uartNumber);
  10302. 8004bac: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10303. 8004bb0: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10304. 8004bb4: 4619 mov r1, r3
  10305. 8004bb6: 4833 ldr r0, [pc, #204] @ (8004c84 <UartRxTask+0x5a4>)
  10306. 8004bb8: f025 fdd0 bl 802a75c <iprintf>
  10307. 8004bbc: e017 b.n 8004bee <UartRxTask+0x50e>
  10308. }
  10309. else
  10310. {
  10311. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spInternalError, NULL, 0);
  10312. 8004bbe: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10313. 8004bc2: 6898 ldr r0, [r3, #8]
  10314. 8004bc4: f507 73a0 add.w r3, r7, #320 @ 0x140
  10315. 8004bc8: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10316. 8004bcc: 8819 ldrh r1, [r3, #0]
  10317. 8004bce: f507 73a0 add.w r3, r7, #320 @ 0x140
  10318. 8004bd2: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10319. 8004bd6: 789a ldrb r2, [r3, #2]
  10320. 8004bd8: 2300 movs r3, #0
  10321. 8004bda: 9301 str r3, [sp, #4]
  10322. 8004bdc: 2300 movs r3, #0
  10323. 8004bde: 9300 str r3, [sp, #0]
  10324. 8004be0: f06f 0303 mvn.w r3, #3
  10325. 8004be4: f7fe fdb0 bl 8003748 <PrepareRespFrame>
  10326. 8004be8: 4603 mov r3, r0
  10327. 8004bea: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10328. }
  10329. if (dataToSend > 0) {
  10330. 8004bee: f8b7 313c ldrh.w r3, [r7, #316] @ 0x13c
  10331. 8004bf2: 2b00 cmp r3, #0
  10332. 8004bf4: d00a beq.n 8004c0c <UartRxTask+0x52c>
  10333. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  10334. 8004bf6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10335. 8004bfa: 6b18 ldr r0, [r3, #48] @ 0x30
  10336. 8004bfc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10337. 8004c00: 689b ldr r3, [r3, #8]
  10338. 8004c02: f8b7 213c ldrh.w r2, [r7, #316] @ 0x13c
  10339. 8004c06: 4619 mov r1, r3
  10340. 8004c08: f008 fe3c bl 800d884 <HAL_UART_Transmit_IT>
  10341. }
  10342. printf ("Uart%d: TX bytes sent: %d\n", dataToSend, uartTaskData->uartNumber);
  10343. 8004c0c: f8b7 113c ldrh.w r1, [r7, #316] @ 0x13c
  10344. 8004c10: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10345. 8004c14: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10346. 8004c18: 461a mov r2, r3
  10347. 8004c1a: 481b ldr r0, [pc, #108] @ (8004c88 <UartRxTask+0x5a8>)
  10348. 8004c1c: f025 fd9e bl 802a75c <iprintf>
  10349. receverState = srFinish;
  10350. 8004c20: 2305 movs r3, #5
  10351. 8004c22: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10352. break;
  10353. 8004c26: e024 b.n 8004c72 <UartRxTask+0x592>
  10354. case srFinish:
  10355. default:
  10356. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10357. 8004c28: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10358. 8004c2c: 6a1b ldr r3, [r3, #32]
  10359. 8004c2e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10360. 8004c32: 4618 mov r0, r3
  10361. 8004c34: f00c fd25 bl 8011682 <osMutexAcquire>
  10362. uartTaskData->frameBytesCount = 0;
  10363. 8004c38: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10364. 8004c3c: 2200 movs r2, #0
  10365. 8004c3e: 82da strh r2, [r3, #22]
  10366. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10367. 8004c40: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10368. 8004c44: 6a1b ldr r3, [r3, #32]
  10369. 8004c46: 4618 mov r0, r3
  10370. 8004c48: f00c fd66 bl 8011718 <osMutexRelease>
  10371. spFrameData.frameHeader.frameCommand = spUnknown;
  10372. 8004c4c: f507 73a0 add.w r3, r7, #320 @ 0x140
  10373. 8004c50: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10374. 8004c54: 220f movs r2, #15
  10375. 8004c56: 709a strb r2, [r3, #2]
  10376. frameTotalLength = 0;
  10377. 8004c58: 2300 movs r3, #0
  10378. 8004c5a: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10379. outputDataBufferPos = 0;
  10380. 8004c5e: 4b0b ldr r3, [pc, #44] @ (8004c8c <UartRxTask+0x5ac>)
  10381. 8004c60: 2200 movs r2, #0
  10382. 8004c62: 801a strh r2, [r3, #0]
  10383. receverState = srWaitForHeader;
  10384. 8004c64: 2300 movs r3, #0
  10385. 8004c66: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10386. proceed = pdFALSE;
  10387. 8004c6a: 2300 movs r3, #0
  10388. 8004c6c: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10389. break;
  10390. 8004c70: bf00 nop
  10391. while (proceed) {
  10392. 8004c72: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  10393. 8004c76: 2b00 cmp r3, #0
  10394. 8004c78: f47f ade0 bne.w 800483c <UartRxTask+0x15c>
  10395. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  10396. 8004c7c: e581 b.n 8004782 <UartRxTask+0xa2>
  10397. 8004c7e: bf00 nop
  10398. 8004c80: 0802d800 .word 0x0802d800
  10399. 8004c84: 0802d824 .word 0x0802d824
  10400. 8004c88: 0802d83c .word 0x0802d83c
  10401. 8004c8c: 24002084 .word 0x24002084
  10402. 08004c90 <ReadMeasSetFromBuffer>:
  10403. }
  10404. }
  10405. }
  10406. void ReadMeasSetFromBuffer(uint8_t* buff, uint16_t* buffPos, float* dataSet)
  10407. {
  10408. 8004c90: b580 push {r7, lr}
  10409. 8004c92: b086 sub sp, #24
  10410. 8004c94: af00 add r7, sp, #0
  10411. 8004c96: 60f8 str r0, [r7, #12]
  10412. 8004c98: 60b9 str r1, [r7, #8]
  10413. 8004c9a: 607a str r2, [r7, #4]
  10414. for(uint8_t i = 0; i < 3; i++)
  10415. 8004c9c: 2300 movs r3, #0
  10416. 8004c9e: 75fb strb r3, [r7, #23]
  10417. 8004ca0: e00b b.n 8004cba <ReadMeasSetFromBuffer+0x2a>
  10418. {
  10419. ReadFloatFromBuffer(buff, buffPos, &dataSet[i]);
  10420. 8004ca2: 7dfb ldrb r3, [r7, #23]
  10421. 8004ca4: 009b lsls r3, r3, #2
  10422. 8004ca6: 687a ldr r2, [r7, #4]
  10423. 8004ca8: 4413 add r3, r2
  10424. 8004caa: 461a mov r2, r3
  10425. 8004cac: 68b9 ldr r1, [r7, #8]
  10426. 8004cae: 68f8 ldr r0, [r7, #12]
  10427. 8004cb0: f7fe fc5b bl 800356a <ReadFloatFromBuffer>
  10428. for(uint8_t i = 0; i < 3; i++)
  10429. 8004cb4: 7dfb ldrb r3, [r7, #23]
  10430. 8004cb6: 3301 adds r3, #1
  10431. 8004cb8: 75fb strb r3, [r7, #23]
  10432. 8004cba: 7dfb ldrb r3, [r7, #23]
  10433. 8004cbc: 2b02 cmp r3, #2
  10434. 8004cbe: d9f0 bls.n 8004ca2 <ReadMeasSetFromBuffer+0x12>
  10435. }
  10436. }
  10437. 8004cc0: bf00 nop
  10438. 8004cc2: bf00 nop
  10439. 8004cc4: 3718 adds r7, #24
  10440. 8004cc6: 46bd mov sp, r7
  10441. 8004cc8: bd80 pop {r7, pc}
  10442. ...
  10443. 08004ccc <UartTxTask>:
  10444. void UartTxTask (void* argument) {
  10445. 8004ccc: b580 push {r7, lr}
  10446. 8004cce: b0d4 sub sp, #336 @ 0x150
  10447. 8004cd0: af02 add r7, sp, #8
  10448. 8004cd2: f507 73a4 add.w r3, r7, #328 @ 0x148
  10449. 8004cd6: f5a3 73a2 sub.w r3, r3, #324 @ 0x144
  10450. 8004cda: 6018 str r0, [r3, #0]
  10451. UartTaskData* const uartTaskData = (UartTaskData*)argument;
  10452. 8004cdc: f507 73a4 add.w r3, r7, #328 @ 0x148
  10453. 8004ce0: f5a3 73a2 sub.w r3, r3, #324 @ 0x144
  10454. 8004ce4: 681b ldr r3, [r3, #0]
  10455. 8004ce6: f8c7 3140 str.w r3, [r7, #320] @ 0x140
  10456. InterProcessData data = { 0 };
  10457. 8004cea: f507 738e add.w r3, r7, #284 @ 0x11c
  10458. 8004cee: 2200 movs r2, #0
  10459. 8004cf0: 601a str r2, [r3, #0]
  10460. 8004cf2: 605a str r2, [r3, #4]
  10461. 8004cf4: 609a str r2, [r3, #8]
  10462. 8004cf6: 60da str r2, [r3, #12]
  10463. SerialProtocolFrameData frameData = { 0 };
  10464. 8004cf8: f507 73a4 add.w r3, r7, #328 @ 0x148
  10465. 8004cfc: f5a3 739c sub.w r3, r3, #312 @ 0x138
  10466. 8004d00: 4618 mov r0, r3
  10467. 8004d02: f44f 7386 mov.w r3, #268 @ 0x10c
  10468. 8004d06: 461a mov r2, r3
  10469. 8004d08: 2100 movs r1, #0
  10470. 8004d0a: f025 feb9 bl 802aa80 <memset>
  10471. size_t bytesInMsg;
  10472. uint16_t frameId = 0;
  10473. 8004d0e: 2300 movs r3, #0
  10474. 8004d10: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10475. uint32_t rndVal = 0;
  10476. 8004d14: f507 73a4 add.w r3, r7, #328 @ 0x148
  10477. 8004d18: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  10478. 8004d1c: 2200 movs r2, #0
  10479. 8004d1e: 601a str r2, [r3, #0]
  10480. uint16_t bytesToSend = 0;
  10481. 8004d20: 2300 movs r3, #0
  10482. 8004d22: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10483. SerialProtocolCommands frameCommand = spUnknown;
  10484. 8004d26: 230f movs r3, #15
  10485. 8004d28: f887 313b strb.w r3, [r7, #315] @ 0x13b
  10486. uint16_t inputDataBufferPos = 0;
  10487. 8004d2c: f507 73a4 add.w r3, r7, #328 @ 0x148
  10488. 8004d30: f5a3 739f sub.w r3, r3, #318 @ 0x13e
  10489. 8004d34: 2200 movs r2, #0
  10490. 8004d36: 801a strh r2, [r3, #0]
  10491. uint8_t boardNumber = 0;
  10492. 8004d38: 2300 movs r3, #0
  10493. 8004d3a: f887 3147 strb.w r3, [r7, #327] @ 0x147
  10494. while (pdTRUE) {
  10495. if (uartTaskData->sendCmdToSlaveQueue != NULL) {
  10496. 8004d3e: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10497. 8004d42: 6adb ldr r3, [r3, #44] @ 0x2c
  10498. 8004d44: 2b00 cmp r3, #0
  10499. 8004d46: f000 828f beq.w 8005268 <UartTxTask+0x59c>
  10500. osMessageQueueGet (uartTaskData->sendCmdToSlaveQueue, &data, 0, osWaitForever);
  10501. 8004d4a: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10502. 8004d4e: 6ad8 ldr r0, [r3, #44] @ 0x2c
  10503. 8004d50: f507 718e add.w r1, r7, #284 @ 0x11c
  10504. 8004d54: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  10505. 8004d58: 2200 movs r2, #0
  10506. 8004d5a: f00c ff31 bl 8011bc0 <osMessageQueueGet>
  10507. HAL_RNG_GenerateRandomNumber (&hrng, &rndVal);
  10508. 8004d5e: f107 030c add.w r3, r7, #12
  10509. 8004d62: 4619 mov r1, r3
  10510. 8004d64: 48be ldr r0, [pc, #760] @ (8005060 <UartTxTask+0x394>)
  10511. 8004d66: f008 f98b bl 800d080 <HAL_RNG_GenerateRandomNumber>
  10512. frameId = (uint16_t)(rndVal & 0xFFFF);
  10513. 8004d6a: f507 73a4 add.w r3, r7, #328 @ 0x148
  10514. 8004d6e: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  10515. 8004d72: 681b ldr r3, [r3, #0]
  10516. 8004d74: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10517. frameCommand = data.spCommand;
  10518. 8004d78: f897 311c ldrb.w r3, [r7, #284] @ 0x11c
  10519. 8004d7c: f887 313b strb.w r3, [r7, #315] @ 0x13b
  10520. outputDataBufferPos = 0;
  10521. 8004d80: 4bb8 ldr r3, [pc, #736] @ (8005064 <UartTxTask+0x398>)
  10522. 8004d82: 2200 movs r2, #0
  10523. 8004d84: 801a strh r2, [r3, #0]
  10524. memset (outputDataBuffer, 0x00, OUTPUT_DATA_BUFF_SIZE);
  10525. 8004d86: 2280 movs r2, #128 @ 0x80
  10526. 8004d88: 2100 movs r1, #0
  10527. 8004d8a: 48b7 ldr r0, [pc, #732] @ (8005068 <UartTxTask+0x39c>)
  10528. 8004d8c: f025 fe78 bl 802aa80 <memset>
  10529. switch (frameCommand) {
  10530. 8004d90: f897 313b ldrb.w r3, [r7, #315] @ 0x13b
  10531. 8004d94: 2b0e cmp r3, #14
  10532. 8004d96: f200 826c bhi.w 8005272 <UartTxTask+0x5a6>
  10533. 8004d9a: a201 add r2, pc, #4 @ (adr r2, 8004da0 <UartTxTask+0xd4>)
  10534. 8004d9c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  10535. 8004da0: 08004e7f .word 0x08004e7f
  10536. 8004da4: 08004e7f .word 0x08004e7f
  10537. 8004da8: 08004ddd .word 0x08004ddd
  10538. 8004dac: 08004ddd .word 0x08004ddd
  10539. 8004db0: 08004ddd .word 0x08004ddd
  10540. 8004db4: 08004e13 .word 0x08004e13
  10541. 8004db8: 08004e13 .word 0x08004e13
  10542. 8004dbc: 08004e01 .word 0x08004e01
  10543. 8004dc0: 08004e7f .word 0x08004e7f
  10544. 8004dc4: 08004e25 .word 0x08004e25
  10545. 8004dc8: 08004e37 .word 0x08004e37
  10546. 8004dcc: 08004e49 .word 0x08004e49
  10547. 8004dd0: 08004e49 .word 0x08004e49
  10548. 8004dd4: 08004e49 .word 0x08004e49
  10549. 8004dd8: 08004e49 .word 0x08004e49
  10550. case spSetFanSpeed:
  10551. case spSetMotorXOn:
  10552. case spSetMotorYOn:
  10553. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.integerValues.value[0], sizeof (uint32_t));
  10554. 8004ddc: f507 738e add.w r3, r7, #284 @ 0x11c
  10555. 8004de0: 1d1a adds r2, r3, #4
  10556. 8004de2: 2304 movs r3, #4
  10557. 8004de4: 499f ldr r1, [pc, #636] @ (8005064 <UartTxTask+0x398>)
  10558. 8004de6: 48a0 ldr r0, [pc, #640] @ (8005068 <UartTxTask+0x39c>)
  10559. 8004de8: f7fe fb8e bl 8003508 <WriteDataToBuffer>
  10560. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.integerValues.value[1], sizeof (uint32_t));
  10561. 8004dec: f507 738e add.w r3, r7, #284 @ 0x11c
  10562. 8004df0: f103 0208 add.w r2, r3, #8
  10563. 8004df4: 2304 movs r3, #4
  10564. 8004df6: 499b ldr r1, [pc, #620] @ (8005064 <UartTxTask+0x398>)
  10565. 8004df8: 489b ldr r0, [pc, #620] @ (8005068 <UartTxTask+0x39c>)
  10566. 8004dfa: f7fe fb85 bl 8003508 <WriteDataToBuffer>
  10567. break;
  10568. 8004dfe: e03f b.n 8004e80 <UartTxTask+0x1b4>
  10569. case spSetDiodeOn: WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.integerValues.value[0], sizeof (uint32_t)); break;
  10570. 8004e00: f507 738e add.w r3, r7, #284 @ 0x11c
  10571. 8004e04: 1d1a adds r2, r3, #4
  10572. 8004e06: 2304 movs r3, #4
  10573. 8004e08: 4996 ldr r1, [pc, #600] @ (8005064 <UartTxTask+0x398>)
  10574. 8004e0a: 4897 ldr r0, [pc, #604] @ (8005068 <UartTxTask+0x39c>)
  10575. 8004e0c: f7fe fb7c bl 8003508 <WriteDataToBuffer>
  10576. 8004e10: e036 b.n 8004e80 <UartTxTask+0x1b4>
  10577. case spSetmotorXMaxCurrent:
  10578. case spSetmotorYMaxCurrent: WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.flaotValues.value[0], sizeof (float)); break;
  10579. 8004e12: f507 738e add.w r3, r7, #284 @ 0x11c
  10580. 8004e16: 1d1a adds r2, r3, #4
  10581. 8004e18: 2304 movs r3, #4
  10582. 8004e1a: 4992 ldr r1, [pc, #584] @ (8005064 <UartTxTask+0x398>)
  10583. 8004e1c: 4892 ldr r0, [pc, #584] @ (8005068 <UartTxTask+0x39c>)
  10584. 8004e1e: f7fe fb73 bl 8003508 <WriteDataToBuffer>
  10585. 8004e22: e02d b.n 8004e80 <UartTxTask+0x1b4>
  10586. case spGetElectricalMeasurments:
  10587. case spGetSensorMeasurments: break;
  10588. case spClearPeakMeasurments: break;
  10589. case spSetEncoderXValue: WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.flaotValues.value[0], sizeof (float)); break;
  10590. 8004e24: f507 738e add.w r3, r7, #284 @ 0x11c
  10591. 8004e28: 1d1a adds r2, r3, #4
  10592. 8004e2a: 2304 movs r3, #4
  10593. 8004e2c: 498d ldr r1, [pc, #564] @ (8005064 <UartTxTask+0x398>)
  10594. 8004e2e: 488e ldr r0, [pc, #568] @ (8005068 <UartTxTask+0x39c>)
  10595. 8004e30: f7fe fb6a bl 8003508 <WriteDataToBuffer>
  10596. 8004e34: e024 b.n 8004e80 <UartTxTask+0x1b4>
  10597. case spSetEncoderYValue: WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.flaotValues.value[0], sizeof (float)); break;
  10598. 8004e36: f507 738e add.w r3, r7, #284 @ 0x11c
  10599. 8004e3a: 1d1a adds r2, r3, #4
  10600. 8004e3c: 2304 movs r3, #4
  10601. 8004e3e: 4989 ldr r1, [pc, #548] @ (8005064 <UartTxTask+0x398>)
  10602. 8004e40: 4889 ldr r0, [pc, #548] @ (8005068 <UartTxTask+0x39c>)
  10603. 8004e42: f7fe fb61 bl 8003508 <WriteDataToBuffer>
  10604. 8004e46: e01b b.n 8004e80 <UartTxTask+0x1b4>
  10605. case spSetVoltageMeasGains:
  10606. case spSetVoltageMeasOffsets:
  10607. case spSetCurrentMeasGains:
  10608. case spSetCurrentMeasOffsets:
  10609. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.flaotValues.value[0], sizeof (float));
  10610. 8004e48: f507 738e add.w r3, r7, #284 @ 0x11c
  10611. 8004e4c: 1d1a adds r2, r3, #4
  10612. 8004e4e: 2304 movs r3, #4
  10613. 8004e50: 4984 ldr r1, [pc, #528] @ (8005064 <UartTxTask+0x398>)
  10614. 8004e52: 4885 ldr r0, [pc, #532] @ (8005068 <UartTxTask+0x39c>)
  10615. 8004e54: f7fe fb58 bl 8003508 <WriteDataToBuffer>
  10616. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.flaotValues.value[1], sizeof (float));
  10617. 8004e58: f507 738e add.w r3, r7, #284 @ 0x11c
  10618. 8004e5c: f103 0208 add.w r2, r3, #8
  10619. 8004e60: 2304 movs r3, #4
  10620. 8004e62: 4980 ldr r1, [pc, #512] @ (8005064 <UartTxTask+0x398>)
  10621. 8004e64: 4880 ldr r0, [pc, #512] @ (8005068 <UartTxTask+0x39c>)
  10622. 8004e66: f7fe fb4f bl 8003508 <WriteDataToBuffer>
  10623. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.flaotValues.value[2], sizeof (float));
  10624. 8004e6a: f507 738e add.w r3, r7, #284 @ 0x11c
  10625. 8004e6e: f103 020c add.w r2, r3, #12
  10626. 8004e72: 2304 movs r3, #4
  10627. 8004e74: 497b ldr r1, [pc, #492] @ (8005064 <UartTxTask+0x398>)
  10628. 8004e76: 487c ldr r0, [pc, #496] @ (8005068 <UartTxTask+0x39c>)
  10629. 8004e78: f7fe fb46 bl 8003508 <WriteDataToBuffer>
  10630. break;
  10631. 8004e7c: e000 b.n 8004e80 <UartTxTask+0x1b4>
  10632. case spGetSensorMeasurments: break;
  10633. 8004e7e: bf00 nop
  10634. default: continue; break;
  10635. }
  10636. bytesToSend = PrepareReqFrame (uartTaskData->uartTxBuffer, frameId, frameCommand, outputDataBuffer, outputDataBufferPos);
  10637. 8004e80: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10638. 8004e84: 6898 ldr r0, [r3, #8]
  10639. 8004e86: 4b77 ldr r3, [pc, #476] @ (8005064 <UartTxTask+0x398>)
  10640. 8004e88: 881b ldrh r3, [r3, #0]
  10641. 8004e8a: f897 213b ldrb.w r2, [r7, #315] @ 0x13b
  10642. 8004e8e: f8b7 113e ldrh.w r1, [r7, #318] @ 0x13e
  10643. 8004e92: 9300 str r3, [sp, #0]
  10644. 8004e94: 4b74 ldr r3, [pc, #464] @ (8005068 <UartTxTask+0x39c>)
  10645. 8004e96: f7fe fbc3 bl 8003620 <PrepareReqFrame>
  10646. 8004e9a: 4603 mov r3, r0
  10647. 8004e9c: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10648. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, bytesToSend);
  10649. 8004ea0: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10650. 8004ea4: 6b18 ldr r0, [r3, #48] @ 0x30
  10651. 8004ea6: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10652. 8004eaa: 689b ldr r3, [r3, #8]
  10653. 8004eac: f8b7 213c ldrh.w r2, [r7, #316] @ 0x13c
  10654. 8004eb0: 4619 mov r1, r3
  10655. 8004eb2: f008 fce7 bl 800d884 <HAL_UART_Transmit_IT>
  10656. bytesInMsg = xMessageBufferReceive (uartTaskData->processRxDataMsgBuffer, &frameData, INPUT_DATA_BUFF_SIZE, pdMS_TO_TICKS (1000));
  10657. 8004eb6: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10658. 8004eba: 6a58 ldr r0, [r3, #36] @ 0x24
  10659. 8004ebc: f107 0110 add.w r1, r7, #16
  10660. 8004ec0: f44f 737a mov.w r3, #1000 @ 0x3e8
  10661. 8004ec4: f44f 7280 mov.w r2, #256 @ 0x100
  10662. 8004ec8: f00e faae bl 8013428 <xStreamBufferReceive>
  10663. 8004ecc: f8c7 0134 str.w r0, [r7, #308] @ 0x134
  10664. for(boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  10665. 8004ed0: 2300 movs r3, #0
  10666. 8004ed2: f887 3147 strb.w r3, [r7, #327] @ 0x147
  10667. 8004ed6: e00e b.n 8004ef6 <UartTxTask+0x22a>
  10668. {
  10669. if(boardToUartNumberMap[boardNumber] == uartTaskData->uartNumber)
  10670. 8004ed8: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  10671. 8004edc: 4a63 ldr r2, [pc, #396] @ (800506c <UartTxTask+0x3a0>)
  10672. 8004ede: 5cd2 ldrb r2, [r2, r3]
  10673. 8004ee0: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10674. 8004ee4: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10675. 8004ee8: 429a cmp r2, r3
  10676. 8004eea: d009 beq.n 8004f00 <UartTxTask+0x234>
  10677. for(boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  10678. 8004eec: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  10679. 8004ef0: 3301 adds r3, #1
  10680. 8004ef2: f887 3147 strb.w r3, [r7, #327] @ 0x147
  10681. 8004ef6: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  10682. 8004efa: 2b03 cmp r3, #3
  10683. 8004efc: d9ec bls.n 8004ed8 <UartTxTask+0x20c>
  10684. 8004efe: e000 b.n 8004f02 <UartTxTask+0x236>
  10685. {
  10686. break;
  10687. 8004f00: bf00 nop
  10688. }
  10689. }
  10690. if (bytesInMsg == 0) {
  10691. 8004f02: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  10692. 8004f06: 2b00 cmp r3, #0
  10693. 8004f08: d124 bne.n 8004f54 <UartTxTask+0x288>
  10694. if (frameCommand == spGetElectricalMeasurments)
  10695. 8004f0a: f897 313b ldrb.w r3, [r7, #315] @ 0x13b
  10696. 8004f0e: 2b00 cmp r3, #0
  10697. 8004f10: d114 bne.n 8004f3c <UartTxTask+0x270>
  10698. {
  10699. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  10700. 8004f12: 4b57 ldr r3, [pc, #348] @ (8005070 <UartTxTask+0x3a4>)
  10701. 8004f14: 681b ldr r3, [r3, #0]
  10702. 8004f16: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10703. 8004f1a: 4618 mov r0, r3
  10704. 8004f1c: f00c fbb1 bl 8011682 <osMutexAcquire>
  10705. slaveLastSeen[boardNumber]++;
  10706. 8004f20: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  10707. 8004f24: 4a53 ldr r2, [pc, #332] @ (8005074 <UartTxTask+0x3a8>)
  10708. 8004f26: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  10709. 8004f2a: 3201 adds r2, #1
  10710. 8004f2c: 4951 ldr r1, [pc, #324] @ (8005074 <UartTxTask+0x3a8>)
  10711. 8004f2e: f841 2023 str.w r2, [r1, r3, lsl #2]
  10712. osMutexRelease(resMeasurementsMutex);
  10713. 8004f32: 4b4f ldr r3, [pc, #316] @ (8005070 <UartTxTask+0x3a4>)
  10714. 8004f34: 681b ldr r3, [r3, #0]
  10715. 8004f36: 4618 mov r0, r3
  10716. 8004f38: f00c fbee bl 8011718 <osMutexRelease>
  10717. }
  10718. printf ("Uart%d: Response timeout for frameId 0x%x\n", uartTaskData->uartNumber, frameId);
  10719. 8004f3c: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10720. 8004f40: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10721. 8004f44: 4619 mov r1, r3
  10722. 8004f46: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10723. 8004f4a: 461a mov r2, r3
  10724. 8004f4c: 484a ldr r0, [pc, #296] @ (8005078 <UartTxTask+0x3ac>)
  10725. 8004f4e: f025 fc05 bl 802a75c <iprintf>
  10726. 8004f52: e6f4 b.n 8004d3e <UartTxTask+0x72>
  10727. } else {
  10728. if ((frameId == frameData.frameHeader.frameId) && (frameData.frameHeader.respStatus == spOK)) {
  10729. 8004f54: f507 73a4 add.w r3, r7, #328 @ 0x148
  10730. 8004f58: f5a3 739c sub.w r3, r3, #312 @ 0x138
  10731. 8004f5c: 881b ldrh r3, [r3, #0]
  10732. 8004f5e: f8b7 213e ldrh.w r2, [r7, #318] @ 0x13e
  10733. 8004f62: 429a cmp r2, r3
  10734. 8004f64: f47f aeeb bne.w 8004d3e <UartTxTask+0x72>
  10735. 8004f68: f507 73a4 add.w r3, r7, #328 @ 0x148
  10736. 8004f6c: f5a3 739c sub.w r3, r3, #312 @ 0x138
  10737. 8004f70: f993 3003 ldrsb.w r3, [r3, #3]
  10738. 8004f74: 2b00 cmp r3, #0
  10739. 8004f76: f47f aee2 bne.w 8004d3e <UartTxTask+0x72>
  10740. printf ("Uart%d: Response for frameId 0x%x OK\n", uartTaskData->uartNumber, frameId);
  10741. 8004f7a: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10742. 8004f7e: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10743. 8004f82: 4619 mov r1, r3
  10744. 8004f84: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10745. 8004f88: 461a mov r2, r3
  10746. 8004f8a: 483c ldr r0, [pc, #240] @ (800507c <UartTxTask+0x3b0>)
  10747. 8004f8c: f025 fbe6 bl 802a75c <iprintf>
  10748. slaveLastSeen[boardNumber] = 0;
  10749. 8004f90: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  10750. 8004f94: 4a37 ldr r2, [pc, #220] @ (8005074 <UartTxTask+0x3a8>)
  10751. 8004f96: 2100 movs r1, #0
  10752. 8004f98: f842 1023 str.w r1, [r2, r3, lsl #2]
  10753. switch(frameData.frameHeader.frameCommand)
  10754. 8004f9c: f507 73a4 add.w r3, r7, #328 @ 0x148
  10755. 8004fa0: f5a3 739c sub.w r3, r3, #312 @ 0x138
  10756. 8004fa4: 789b ldrb r3, [r3, #2]
  10757. 8004fa6: 2b00 cmp r3, #0
  10758. 8004fa8: d002 beq.n 8004fb0 <UartTxTask+0x2e4>
  10759. 8004faa: 2b01 cmp r3, #1
  10760. 8004fac: d06a beq.n 8005084 <UartTxTask+0x3b8>
  10761. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitYSwitchCenter);
  10762. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->powerSupplyFailMask);
  10763. osMutexRelease(sensorsInfoMutex);
  10764. break;
  10765. default:
  10766. break;
  10767. 8004fae: e161 b.n 8005274 <UartTxTask+0x5a8>
  10768. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  10769. 8004fb0: 4b2f ldr r3, [pc, #188] @ (8005070 <UartTxTask+0x3a4>)
  10770. 8004fb2: 681b ldr r3, [r3, #0]
  10771. 8004fb4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10772. 8004fb8: 4618 mov r0, r3
  10773. 8004fba: f00c fb62 bl 8011682 <osMutexAcquire>
  10774. RESMeasurements *resMeas = &resMeasurements[boardNumber];
  10775. 8004fbe: f897 2147 ldrb.w r2, [r7, #327] @ 0x147
  10776. 8004fc2: 4613 mov r3, r2
  10777. 8004fc4: 011b lsls r3, r3, #4
  10778. 8004fc6: 1a9b subs r3, r3, r2
  10779. 8004fc8: 009b lsls r3, r3, #2
  10780. 8004fca: 4a2d ldr r2, [pc, #180] @ (8005080 <UartTxTask+0x3b4>)
  10781. 8004fcc: 4413 add r3, r2
  10782. 8004fce: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  10783. inputDataBufferPos = 0;
  10784. 8004fd2: f507 73a4 add.w r3, r7, #328 @ 0x148
  10785. 8004fd6: f5a3 739f sub.w r3, r3, #318 @ 0x13e
  10786. 8004fda: 2200 movs r2, #0
  10787. 8004fdc: 801a strh r2, [r3, #0]
  10788. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->voltageRMS);
  10789. 8004fde: f8d7 212c ldr.w r2, [r7, #300] @ 0x12c
  10790. 8004fe2: f107 010a add.w r1, r7, #10
  10791. 8004fe6: f107 0310 add.w r3, r7, #16
  10792. 8004fea: 330c adds r3, #12
  10793. 8004fec: 4618 mov r0, r3
  10794. 8004fee: f7ff fe4f bl 8004c90 <ReadMeasSetFromBuffer>
  10795. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->voltagePeak);
  10796. 8004ff2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10797. 8004ff6: f103 020c add.w r2, r3, #12
  10798. 8004ffa: f107 010a add.w r1, r7, #10
  10799. 8004ffe: f107 0310 add.w r3, r7, #16
  10800. 8005002: 330c adds r3, #12
  10801. 8005004: 4618 mov r0, r3
  10802. 8005006: f7ff fe43 bl 8004c90 <ReadMeasSetFromBuffer>
  10803. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->currentRMS);
  10804. 800500a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10805. 800500e: f103 0218 add.w r2, r3, #24
  10806. 8005012: f107 010a add.w r1, r7, #10
  10807. 8005016: f107 0310 add.w r3, r7, #16
  10808. 800501a: 330c adds r3, #12
  10809. 800501c: 4618 mov r0, r3
  10810. 800501e: f7ff fe37 bl 8004c90 <ReadMeasSetFromBuffer>
  10811. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->currentPeak);
  10812. 8005022: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10813. 8005026: f103 0224 add.w r2, r3, #36 @ 0x24
  10814. 800502a: f107 010a add.w r1, r7, #10
  10815. 800502e: f107 0310 add.w r3, r7, #16
  10816. 8005032: 330c adds r3, #12
  10817. 8005034: 4618 mov r0, r3
  10818. 8005036: f7ff fe2b bl 8004c90 <ReadMeasSetFromBuffer>
  10819. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->power);
  10820. 800503a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10821. 800503e: f103 0230 add.w r2, r3, #48 @ 0x30
  10822. 8005042: f107 010a add.w r1, r7, #10
  10823. 8005046: f107 0310 add.w r3, r7, #16
  10824. 800504a: 330c adds r3, #12
  10825. 800504c: 4618 mov r0, r3
  10826. 800504e: f7ff fe1f bl 8004c90 <ReadMeasSetFromBuffer>
  10827. osMutexRelease(resMeasurementsMutex);
  10828. 8005052: 4b07 ldr r3, [pc, #28] @ (8005070 <UartTxTask+0x3a4>)
  10829. 8005054: 681b ldr r3, [r3, #0]
  10830. 8005056: 4618 mov r0, r3
  10831. 8005058: f00c fb5e bl 8011718 <osMutexRelease>
  10832. break;
  10833. 800505c: e10a b.n 8005274 <UartTxTask+0x5a8>
  10834. 800505e: bf00 nop
  10835. 8005060: 2400026c .word 0x2400026c
  10836. 8005064: 24002084 .word 0x24002084
  10837. 8005068: 24002004 .word 0x24002004
  10838. 800506c: 24000014 .word 0x24000014
  10839. 8005070: 24002248 .word 0x24002248
  10840. 8005074: 24002238 .word 0x24002238
  10841. 8005078: 0802d858 .word 0x0802d858
  10842. 800507c: 0802d884 .word 0x0802d884
  10843. 8005080: 24002088 .word 0x24002088
  10844. osMutexAcquire (sensorsInfoMutex, osWaitForever);
  10845. 8005084: 4b7c ldr r3, [pc, #496] @ (8005278 <UartTxTask+0x5ac>)
  10846. 8005086: 681b ldr r3, [r3, #0]
  10847. 8005088: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10848. 800508c: 4618 mov r0, r3
  10849. 800508e: f00c faf8 bl 8011682 <osMutexAcquire>
  10850. inputDataBufferPos = 0;
  10851. 8005092: f507 73a4 add.w r3, r7, #328 @ 0x148
  10852. 8005096: f5a3 739f sub.w r3, r3, #318 @ 0x13e
  10853. 800509a: 2200 movs r2, #0
  10854. 800509c: 801a strh r2, [r3, #0]
  10855. SesnorsInfo* sensors = &sensorsInfo[boardNumber];
  10856. 800509e: f897 2147 ldrb.w r2, [r7, #327] @ 0x147
  10857. 80050a2: 4613 mov r3, r2
  10858. 80050a4: 005b lsls r3, r3, #1
  10859. 80050a6: 4413 add r3, r2
  10860. 80050a8: 011b lsls r3, r3, #4
  10861. 80050aa: 4a74 ldr r2, [pc, #464] @ (800527c <UartTxTask+0x5b0>)
  10862. 80050ac: 4413 add r3, r2
  10863. 80050ae: f8c7 3130 str.w r3, [r7, #304] @ 0x130
  10864. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->pvTemperature[0]);
  10865. 80050b2: f8d7 2130 ldr.w r2, [r7, #304] @ 0x130
  10866. 80050b6: f107 010a add.w r1, r7, #10
  10867. 80050ba: f107 0310 add.w r3, r7, #16
  10868. 80050be: 330c adds r3, #12
  10869. 80050c0: 4618 mov r0, r3
  10870. 80050c2: f7fe fa52 bl 800356a <ReadFloatFromBuffer>
  10871. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->pvTemperature[1]);
  10872. 80050c6: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10873. 80050ca: 1d1a adds r2, r3, #4
  10874. 80050cc: f107 010a add.w r1, r7, #10
  10875. 80050d0: f107 0310 add.w r3, r7, #16
  10876. 80050d4: 330c adds r3, #12
  10877. 80050d6: 4618 mov r0, r3
  10878. 80050d8: f7fe fa47 bl 800356a <ReadFloatFromBuffer>
  10879. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->fanVoltage);
  10880. 80050dc: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10881. 80050e0: f103 0208 add.w r2, r3, #8
  10882. 80050e4: f107 010a add.w r1, r7, #10
  10883. 80050e8: f107 0310 add.w r3, r7, #16
  10884. 80050ec: 330c adds r3, #12
  10885. 80050ee: 4618 mov r0, r3
  10886. 80050f0: f7fe fa3b bl 800356a <ReadFloatFromBuffer>
  10887. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->pvEncoderX);
  10888. 80050f4: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10889. 80050f8: f103 020c add.w r2, r3, #12
  10890. 80050fc: f107 010a add.w r1, r7, #10
  10891. 8005100: f107 0310 add.w r3, r7, #16
  10892. 8005104: 330c adds r3, #12
  10893. 8005106: 4618 mov r0, r3
  10894. 8005108: f7fe fa2f bl 800356a <ReadFloatFromBuffer>
  10895. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->pvEncoderY);
  10896. 800510c: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10897. 8005110: f103 0210 add.w r2, r3, #16
  10898. 8005114: f107 010a add.w r1, r7, #10
  10899. 8005118: f107 0310 add.w r3, r7, #16
  10900. 800511c: 330c adds r3, #12
  10901. 800511e: 4618 mov r0, r3
  10902. 8005120: f7fe fa23 bl 800356a <ReadFloatFromBuffer>
  10903. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorXStatus);
  10904. 8005124: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10905. 8005128: f103 0214 add.w r2, r3, #20
  10906. 800512c: f107 010a add.w r1, r7, #10
  10907. 8005130: f107 0310 add.w r3, r7, #16
  10908. 8005134: 330c adds r3, #12
  10909. 8005136: 4618 mov r0, r3
  10910. 8005138: f7fe fa4c bl 80035d4 <ReadByteFromBufer>
  10911. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorYStatus);
  10912. 800513c: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10913. 8005140: f103 0215 add.w r2, r3, #21
  10914. 8005144: f107 010a add.w r1, r7, #10
  10915. 8005148: f107 0310 add.w r3, r7, #16
  10916. 800514c: 330c adds r3, #12
  10917. 800514e: 4618 mov r0, r3
  10918. 8005150: f7fe fa40 bl 80035d4 <ReadByteFromBufer>
  10919. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorXAveCurrent);
  10920. 8005154: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10921. 8005158: f103 0218 add.w r2, r3, #24
  10922. 800515c: f107 010a add.w r1, r7, #10
  10923. 8005160: f107 0310 add.w r3, r7, #16
  10924. 8005164: 330c adds r3, #12
  10925. 8005166: 4618 mov r0, r3
  10926. 8005168: f7fe f9ff bl 800356a <ReadFloatFromBuffer>
  10927. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorYAveCurrent);
  10928. 800516c: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10929. 8005170: f103 021c add.w r2, r3, #28
  10930. 8005174: f107 010a add.w r1, r7, #10
  10931. 8005178: f107 0310 add.w r3, r7, #16
  10932. 800517c: 330c adds r3, #12
  10933. 800517e: 4618 mov r0, r3
  10934. 8005180: f7fe f9f3 bl 800356a <ReadFloatFromBuffer>
  10935. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorXPeakCurrent);
  10936. 8005184: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10937. 8005188: f103 0220 add.w r2, r3, #32
  10938. 800518c: f107 010a add.w r1, r7, #10
  10939. 8005190: f107 0310 add.w r3, r7, #16
  10940. 8005194: 330c adds r3, #12
  10941. 8005196: 4618 mov r0, r3
  10942. 8005198: f7fe f9e7 bl 800356a <ReadFloatFromBuffer>
  10943. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorYPeakCurrent);
  10944. 800519c: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10945. 80051a0: f103 0224 add.w r2, r3, #36 @ 0x24
  10946. 80051a4: f107 010a add.w r1, r7, #10
  10947. 80051a8: f107 0310 add.w r3, r7, #16
  10948. 80051ac: 330c adds r3, #12
  10949. 80051ae: 4618 mov r0, r3
  10950. 80051b0: f7fe f9db bl 800356a <ReadFloatFromBuffer>
  10951. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitXSwitchUp);
  10952. 80051b4: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10953. 80051b8: f103 0228 add.w r2, r3, #40 @ 0x28
  10954. 80051bc: f107 010a add.w r1, r7, #10
  10955. 80051c0: f107 0310 add.w r3, r7, #16
  10956. 80051c4: 330c adds r3, #12
  10957. 80051c6: 4618 mov r0, r3
  10958. 80051c8: f7fe fa04 bl 80035d4 <ReadByteFromBufer>
  10959. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitXSwitchDown);
  10960. 80051cc: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10961. 80051d0: f103 0229 add.w r2, r3, #41 @ 0x29
  10962. 80051d4: f107 010a add.w r1, r7, #10
  10963. 80051d8: f107 0310 add.w r3, r7, #16
  10964. 80051dc: 330c adds r3, #12
  10965. 80051de: 4618 mov r0, r3
  10966. 80051e0: f7fe f9f8 bl 80035d4 <ReadByteFromBufer>
  10967. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitXSwitchCenter);
  10968. 80051e4: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10969. 80051e8: f103 022a add.w r2, r3, #42 @ 0x2a
  10970. 80051ec: f107 010a add.w r1, r7, #10
  10971. 80051f0: f107 0310 add.w r3, r7, #16
  10972. 80051f4: 330c adds r3, #12
  10973. 80051f6: 4618 mov r0, r3
  10974. 80051f8: f7fe f9ec bl 80035d4 <ReadByteFromBufer>
  10975. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitYSwitchUp);
  10976. 80051fc: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10977. 8005200: f103 022b add.w r2, r3, #43 @ 0x2b
  10978. 8005204: f107 010a add.w r1, r7, #10
  10979. 8005208: f107 0310 add.w r3, r7, #16
  10980. 800520c: 330c adds r3, #12
  10981. 800520e: 4618 mov r0, r3
  10982. 8005210: f7fe f9e0 bl 80035d4 <ReadByteFromBufer>
  10983. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitYSwitchDown);
  10984. 8005214: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10985. 8005218: f103 022c add.w r2, r3, #44 @ 0x2c
  10986. 800521c: f107 010a add.w r1, r7, #10
  10987. 8005220: f107 0310 add.w r3, r7, #16
  10988. 8005224: 330c adds r3, #12
  10989. 8005226: 4618 mov r0, r3
  10990. 8005228: f7fe f9d4 bl 80035d4 <ReadByteFromBufer>
  10991. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitYSwitchCenter);
  10992. 800522c: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10993. 8005230: f103 022d add.w r2, r3, #45 @ 0x2d
  10994. 8005234: f107 010a add.w r1, r7, #10
  10995. 8005238: f107 0310 add.w r3, r7, #16
  10996. 800523c: 330c adds r3, #12
  10997. 800523e: 4618 mov r0, r3
  10998. 8005240: f7fe f9c8 bl 80035d4 <ReadByteFromBufer>
  10999. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->powerSupplyFailMask);
  11000. 8005244: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  11001. 8005248: f103 022e add.w r2, r3, #46 @ 0x2e
  11002. 800524c: f107 010a add.w r1, r7, #10
  11003. 8005250: f107 0310 add.w r3, r7, #16
  11004. 8005254: 330c adds r3, #12
  11005. 8005256: 4618 mov r0, r3
  11006. 8005258: f7fe f9bc bl 80035d4 <ReadByteFromBufer>
  11007. osMutexRelease(sensorsInfoMutex);
  11008. 800525c: 4b06 ldr r3, [pc, #24] @ (8005278 <UartTxTask+0x5ac>)
  11009. 800525e: 681b ldr r3, [r3, #0]
  11010. 8005260: 4618 mov r0, r3
  11011. 8005262: f00c fa59 bl 8011718 <osMutexRelease>
  11012. break;
  11013. 8005266: e005 b.n 8005274 <UartTxTask+0x5a8>
  11014. }
  11015. }
  11016. }
  11017. } else {
  11018. osDelay (pdMS_TO_TICKS (1000));
  11019. 8005268: f44f 707a mov.w r0, #1000 @ 0x3e8
  11020. 800526c: f00c f871 bl 8011352 <osDelay>
  11021. 8005270: e565 b.n 8004d3e <UartTxTask+0x72>
  11022. default: continue; break;
  11023. 8005272: bf00 nop
  11024. if (uartTaskData->sendCmdToSlaveQueue != NULL) {
  11025. 8005274: e563 b.n 8004d3e <UartTxTask+0x72>
  11026. 8005276: bf00 nop
  11027. 8005278: 2400224c .word 0x2400224c
  11028. 800527c: 24002178 .word 0x24002178
  11029. 08005280 <MeasurmentsReqSchedulerTaskInit>:
  11030. }
  11031. }
  11032. }
  11033. void MeasurmentsReqSchedulerTaskInit (void) {
  11034. 8005280: b580 push {r7, lr}
  11035. 8005282: b08a sub sp, #40 @ 0x28
  11036. 8005284: af00 add r7, sp, #0
  11037. osThreadAttr_t osThreadAttrMeasurmentsReqSchedulerTask = { 0 };
  11038. 8005286: 1d3b adds r3, r7, #4
  11039. 8005288: 2224 movs r2, #36 @ 0x24
  11040. 800528a: 2100 movs r1, #0
  11041. 800528c: 4618 mov r0, r3
  11042. 800528e: f025 fbf7 bl 802aa80 <memset>
  11043. osThreadAttrMeasurmentsReqSchedulerTask.name = "os_thread_XXX";
  11044. 8005292: 4b08 ldr r3, [pc, #32] @ (80052b4 <MeasurmentsReqSchedulerTaskInit+0x34>)
  11045. 8005294: 607b str r3, [r7, #4]
  11046. osThreadAttrMeasurmentsReqSchedulerTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  11047. 8005296: f44f 6380 mov.w r3, #1024 @ 0x400
  11048. 800529a: 61bb str r3, [r7, #24]
  11049. osThreadAttrMeasurmentsReqSchedulerTask.priority = (osPriority_t)osPriorityNormal;
  11050. 800529c: 2318 movs r3, #24
  11051. 800529e: 61fb str r3, [r7, #28]
  11052. osThreadNew (MeasurmentsReqSchedulerTask, uartTasks, &osThreadAttrMeasurmentsReqSchedulerTask);
  11053. 80052a0: 1d3b adds r3, r7, #4
  11054. 80052a2: 461a mov r2, r3
  11055. 80052a4: 4904 ldr r1, [pc, #16] @ (80052b8 <MeasurmentsReqSchedulerTaskInit+0x38>)
  11056. 80052a6: 4805 ldr r0, [pc, #20] @ (80052bc <MeasurmentsReqSchedulerTaskInit+0x3c>)
  11057. 80052a8: f00b ffb5 bl 8011216 <osThreadNew>
  11058. }
  11059. 80052ac: bf00 nop
  11060. 80052ae: 3728 adds r7, #40 @ 0x28
  11061. 80052b0: 46bd mov sp, r7
  11062. 80052b2: bd80 pop {r7, pc}
  11063. 80052b4: 0802d8ac .word 0x0802d8ac
  11064. 80052b8: 24000018 .word 0x24000018
  11065. 80052bc: 080052c1 .word 0x080052c1
  11066. 080052c0 <MeasurmentsReqSchedulerTask>:
  11067. void MeasurmentsReqSchedulerTask (void* argument) {
  11068. 80052c0: b580 push {r7, lr}
  11069. 80052c2: b08a sub sp, #40 @ 0x28
  11070. 80052c4: af00 add r7, sp, #0
  11071. 80052c6: 6078 str r0, [r7, #4]
  11072. while (pdTRUE) {
  11073. __uintptr_t* ptr = (__uintptr_t*)argument;
  11074. 80052c8: 687b ldr r3, [r7, #4]
  11075. 80052ca: 627b str r3, [r7, #36] @ 0x24
  11076. while (*ptr != 0) {
  11077. 80052cc: e052 b.n 8005374 <MeasurmentsReqSchedulerTask+0xb4>
  11078. UartTaskData* uartTask = (UartTaskData*)*ptr;
  11079. 80052ce: 6a7b ldr r3, [r7, #36] @ 0x24
  11080. 80052d0: 681b ldr r3, [r3, #0]
  11081. 80052d2: 61fb str r3, [r7, #28]
  11082. if (uartTask->sendCmdToSlaveQueue != NULL) {
  11083. 80052d4: 69fb ldr r3, [r7, #28]
  11084. 80052d6: 6adb ldr r3, [r3, #44] @ 0x2c
  11085. 80052d8: 2b00 cmp r3, #0
  11086. 80052da: d048 beq.n 800536e <MeasurmentsReqSchedulerTask+0xae>
  11087. InterProcessData data = { 0 };
  11088. 80052dc: f107 030c add.w r3, r7, #12
  11089. 80052e0: 2200 movs r2, #0
  11090. 80052e2: 601a str r2, [r3, #0]
  11091. 80052e4: 605a str r2, [r3, #4]
  11092. 80052e6: 609a str r2, [r3, #8]
  11093. 80052e8: 60da str r2, [r3, #12]
  11094. uint8_t boardNumber = 0;
  11095. 80052ea: 2300 movs r3, #0
  11096. 80052ec: f887 3023 strb.w r3, [r7, #35] @ 0x23
  11097. for(boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  11098. 80052f0: 2300 movs r3, #0
  11099. 80052f2: f887 3023 strb.w r3, [r7, #35] @ 0x23
  11100. 80052f6: e00d b.n 8005314 <MeasurmentsReqSchedulerTask+0x54>
  11101. {
  11102. if(boardToUartNumberMap[boardNumber] == uartTask->uartNumber)
  11103. 80052f8: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  11104. 80052fc: 4a22 ldr r2, [pc, #136] @ (8005388 <MeasurmentsReqSchedulerTask+0xc8>)
  11105. 80052fe: 5cd2 ldrb r2, [r2, r3]
  11106. 8005300: 69fb ldr r3, [r7, #28]
  11107. 8005302: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  11108. 8005306: 429a cmp r2, r3
  11109. 8005308: d009 beq.n 800531e <MeasurmentsReqSchedulerTask+0x5e>
  11110. for(boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  11111. 800530a: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  11112. 800530e: 3301 adds r3, #1
  11113. 8005310: f887 3023 strb.w r3, [r7, #35] @ 0x23
  11114. 8005314: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  11115. 8005318: 2b03 cmp r3, #3
  11116. 800531a: d9ed bls.n 80052f8 <MeasurmentsReqSchedulerTask+0x38>
  11117. 800531c: e000 b.n 8005320 <MeasurmentsReqSchedulerTask+0x60>
  11118. {
  11119. break;
  11120. 800531e: bf00 nop
  11121. }
  11122. }
  11123. data.spCommand = spGetElectricalMeasurments;
  11124. 8005320: 2300 movs r3, #0
  11125. 8005322: 733b strb r3, [r7, #12]
  11126. osMessageQueuePut (uartTask->sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  11127. 8005324: 69fb ldr r3, [r7, #28]
  11128. 8005326: 6ad8 ldr r0, [r3, #44] @ 0x2c
  11129. 8005328: f107 010c add.w r1, r7, #12
  11130. 800532c: 2364 movs r3, #100 @ 0x64
  11131. 800532e: 2200 movs r2, #0
  11132. 8005330: f00c fbe6 bl 8011b00 <osMessageQueuePut>
  11133. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  11134. 8005334: 4b15 ldr r3, [pc, #84] @ (800538c <MeasurmentsReqSchedulerTask+0xcc>)
  11135. 8005336: 681b ldr r3, [r3, #0]
  11136. 8005338: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11137. 800533c: 4618 mov r0, r3
  11138. 800533e: f00c f9a0 bl 8011682 <osMutexAcquire>
  11139. if(slaveLastSeen[boardNumber] == 0)
  11140. 8005342: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  11141. 8005346: 4a12 ldr r2, [pc, #72] @ (8005390 <MeasurmentsReqSchedulerTask+0xd0>)
  11142. 8005348: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  11143. 800534c: 2b00 cmp r3, #0
  11144. 800534e: d109 bne.n 8005364 <MeasurmentsReqSchedulerTask+0xa4>
  11145. {
  11146. data.spCommand = spGetSensorMeasurments;
  11147. 8005350: 2301 movs r3, #1
  11148. 8005352: 733b strb r3, [r7, #12]
  11149. osMessageQueuePut (uartTask->sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  11150. 8005354: 69fb ldr r3, [r7, #28]
  11151. 8005356: 6ad8 ldr r0, [r3, #44] @ 0x2c
  11152. 8005358: f107 010c add.w r1, r7, #12
  11153. 800535c: 2364 movs r3, #100 @ 0x64
  11154. 800535e: 2200 movs r2, #0
  11155. 8005360: f00c fbce bl 8011b00 <osMessageQueuePut>
  11156. }
  11157. osMutexRelease(resMeasurementsMutex);
  11158. 8005364: 4b09 ldr r3, [pc, #36] @ (800538c <MeasurmentsReqSchedulerTask+0xcc>)
  11159. 8005366: 681b ldr r3, [r3, #0]
  11160. 8005368: 4618 mov r0, r3
  11161. 800536a: f00c f9d5 bl 8011718 <osMutexRelease>
  11162. }
  11163. ptr++;
  11164. 800536e: 6a7b ldr r3, [r7, #36] @ 0x24
  11165. 8005370: 3304 adds r3, #4
  11166. 8005372: 627b str r3, [r7, #36] @ 0x24
  11167. while (*ptr != 0) {
  11168. 8005374: 6a7b ldr r3, [r7, #36] @ 0x24
  11169. 8005376: 681b ldr r3, [r3, #0]
  11170. 8005378: 2b00 cmp r3, #0
  11171. 800537a: d1a8 bne.n 80052ce <MeasurmentsReqSchedulerTask+0xe>
  11172. }
  11173. osDelay (pdMS_TO_TICKS (MEASURMENTS_SCHEDULER_INTERVAL_MS));
  11174. 800537c: f44f 707a mov.w r0, #1000 @ 0x3e8
  11175. 8005380: f00b ffe7 bl 8011352 <osDelay>
  11176. while (pdTRUE) {
  11177. 8005384: e7a0 b.n 80052c8 <MeasurmentsReqSchedulerTask+0x8>
  11178. 8005386: bf00 nop
  11179. 8005388: 24000014 .word 0x24000014
  11180. 800538c: 24002248 .word 0x24002248
  11181. 8005390: 24002238 .word 0x24002238
  11182. 08005394 <Reset_Handler>:
  11183. .section .text.Reset_Handler
  11184. .weak Reset_Handler
  11185. .type Reset_Handler, %function
  11186. Reset_Handler:
  11187. ldr sp, =_estack /* set stack pointer */
  11188. 8005394: f8df d034 ldr.w sp, [pc, #52] @ 80053cc <LoopFillZerobss+0xe>
  11189. /* Call the clock system initialization function.*/
  11190. bl SystemInit
  11191. 8005398: f7fe ff36 bl 8004208 <SystemInit>
  11192. /* Copy the data segment initializers from flash to SRAM */
  11193. ldr r0, =_sdata
  11194. 800539c: 480c ldr r0, [pc, #48] @ (80053d0 <LoopFillZerobss+0x12>)
  11195. ldr r1, =_edata
  11196. 800539e: 490d ldr r1, [pc, #52] @ (80053d4 <LoopFillZerobss+0x16>)
  11197. ldr r2, =_sidata
  11198. 80053a0: 4a0d ldr r2, [pc, #52] @ (80053d8 <LoopFillZerobss+0x1a>)
  11199. movs r3, #0
  11200. 80053a2: 2300 movs r3, #0
  11201. b LoopCopyDataInit
  11202. 80053a4: e002 b.n 80053ac <LoopCopyDataInit>
  11203. 080053a6 <CopyDataInit>:
  11204. CopyDataInit:
  11205. ldr r4, [r2, r3]
  11206. 80053a6: 58d4 ldr r4, [r2, r3]
  11207. str r4, [r0, r3]
  11208. 80053a8: 50c4 str r4, [r0, r3]
  11209. adds r3, r3, #4
  11210. 80053aa: 3304 adds r3, #4
  11211. 080053ac <LoopCopyDataInit>:
  11212. LoopCopyDataInit:
  11213. adds r4, r0, r3
  11214. 80053ac: 18c4 adds r4, r0, r3
  11215. cmp r4, r1
  11216. 80053ae: 428c cmp r4, r1
  11217. bcc CopyDataInit
  11218. 80053b0: d3f9 bcc.n 80053a6 <CopyDataInit>
  11219. /* Zero fill the bss segment. */
  11220. ldr r2, =_sbss
  11221. 80053b2: 4a0a ldr r2, [pc, #40] @ (80053dc <LoopFillZerobss+0x1e>)
  11222. ldr r4, =_ebss
  11223. 80053b4: 4c0a ldr r4, [pc, #40] @ (80053e0 <LoopFillZerobss+0x22>)
  11224. movs r3, #0
  11225. 80053b6: 2300 movs r3, #0
  11226. b LoopFillZerobss
  11227. 80053b8: e001 b.n 80053be <LoopFillZerobss>
  11228. 080053ba <FillZerobss>:
  11229. FillZerobss:
  11230. str r3, [r2]
  11231. 80053ba: 6013 str r3, [r2, #0]
  11232. adds r2, r2, #4
  11233. 80053bc: 3204 adds r2, #4
  11234. 080053be <LoopFillZerobss>:
  11235. LoopFillZerobss:
  11236. cmp r2, r4
  11237. 80053be: 42a2 cmp r2, r4
  11238. bcc FillZerobss
  11239. 80053c0: d3fb bcc.n 80053ba <FillZerobss>
  11240. /* Call static constructors */
  11241. bl __libc_init_array
  11242. 80053c2: f025 fc2d bl 802ac20 <__libc_init_array>
  11243. /* Call the application's entry point.*/
  11244. bl main
  11245. 80053c6: f7fc fc89 bl 8001cdc <main>
  11246. bx lr
  11247. 80053ca: 4770 bx lr
  11248. ldr sp, =_estack /* set stack pointer */
  11249. 80053cc: 24060000 .word 0x24060000
  11250. ldr r0, =_sdata
  11251. 80053d0: 24000000 .word 0x24000000
  11252. ldr r1, =_edata
  11253. 80053d4: 24000224 .word 0x24000224
  11254. ldr r2, =_sidata
  11255. 80053d8: 08031ffc .word 0x08031ffc
  11256. ldr r2, =_sbss
  11257. 80053dc: 24000224 .word 0x24000224
  11258. ldr r4, =_ebss
  11259. 80053e0: 2402b268 .word 0x2402b268
  11260. 080053e4 <ADC3_IRQHandler>:
  11261. * @retval None
  11262. */
  11263. .section .text.Default_Handler,"ax",%progbits
  11264. Default_Handler:
  11265. Infinite_Loop:
  11266. b Infinite_Loop
  11267. 80053e4: e7fe b.n 80053e4 <ADC3_IRQHandler>
  11268. 080053e6 <DP83848_RegisterBusIO>:
  11269. * @param ioctx: holds device IO functions.
  11270. * @retval DP83848_STATUS_OK if OK
  11271. * DP83848_STATUS_ERROR if missing mandatory function
  11272. */
  11273. int32_t DP83848_RegisterBusIO(dp83848_Object_t *pObj, dp83848_IOCtx_t *ioctx)
  11274. {
  11275. 80053e6: b480 push {r7}
  11276. 80053e8: b083 sub sp, #12
  11277. 80053ea: af00 add r7, sp, #0
  11278. 80053ec: 6078 str r0, [r7, #4]
  11279. 80053ee: 6039 str r1, [r7, #0]
  11280. if(!pObj || !ioctx->ReadReg || !ioctx->WriteReg || !ioctx->GetTick)
  11281. 80053f0: 687b ldr r3, [r7, #4]
  11282. 80053f2: 2b00 cmp r3, #0
  11283. 80053f4: d00b beq.n 800540e <DP83848_RegisterBusIO+0x28>
  11284. 80053f6: 683b ldr r3, [r7, #0]
  11285. 80053f8: 68db ldr r3, [r3, #12]
  11286. 80053fa: 2b00 cmp r3, #0
  11287. 80053fc: d007 beq.n 800540e <DP83848_RegisterBusIO+0x28>
  11288. 80053fe: 683b ldr r3, [r7, #0]
  11289. 8005400: 689b ldr r3, [r3, #8]
  11290. 8005402: 2b00 cmp r3, #0
  11291. 8005404: d003 beq.n 800540e <DP83848_RegisterBusIO+0x28>
  11292. 8005406: 683b ldr r3, [r7, #0]
  11293. 8005408: 691b ldr r3, [r3, #16]
  11294. 800540a: 2b00 cmp r3, #0
  11295. 800540c: d102 bne.n 8005414 <DP83848_RegisterBusIO+0x2e>
  11296. {
  11297. return DP83848_STATUS_ERROR;
  11298. 800540e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  11299. 8005412: e014 b.n 800543e <DP83848_RegisterBusIO+0x58>
  11300. }
  11301. pObj->IO.Init = ioctx->Init;
  11302. 8005414: 683b ldr r3, [r7, #0]
  11303. 8005416: 681a ldr r2, [r3, #0]
  11304. 8005418: 687b ldr r3, [r7, #4]
  11305. 800541a: 609a str r2, [r3, #8]
  11306. pObj->IO.DeInit = ioctx->DeInit;
  11307. 800541c: 683b ldr r3, [r7, #0]
  11308. 800541e: 685a ldr r2, [r3, #4]
  11309. 8005420: 687b ldr r3, [r7, #4]
  11310. 8005422: 60da str r2, [r3, #12]
  11311. pObj->IO.ReadReg = ioctx->ReadReg;
  11312. 8005424: 683b ldr r3, [r7, #0]
  11313. 8005426: 68da ldr r2, [r3, #12]
  11314. 8005428: 687b ldr r3, [r7, #4]
  11315. 800542a: 615a str r2, [r3, #20]
  11316. pObj->IO.WriteReg = ioctx->WriteReg;
  11317. 800542c: 683b ldr r3, [r7, #0]
  11318. 800542e: 689a ldr r2, [r3, #8]
  11319. 8005430: 687b ldr r3, [r7, #4]
  11320. 8005432: 611a str r2, [r3, #16]
  11321. pObj->IO.GetTick = ioctx->GetTick;
  11322. 8005434: 683b ldr r3, [r7, #0]
  11323. 8005436: 691a ldr r2, [r3, #16]
  11324. 8005438: 687b ldr r3, [r7, #4]
  11325. 800543a: 619a str r2, [r3, #24]
  11326. return DP83848_STATUS_OK;
  11327. 800543c: 2300 movs r3, #0
  11328. }
  11329. 800543e: 4618 mov r0, r3
  11330. 8005440: 370c adds r7, #12
  11331. 8005442: 46bd mov sp, r7
  11332. 8005444: f85d 7b04 ldr.w r7, [sp], #4
  11333. 8005448: 4770 bx lr
  11334. 0800544a <DP83848_Init>:
  11335. * @retval DP83848_STATUS_OK if OK
  11336. * DP83848_STATUS_ADDRESS_ERROR if cannot find device address
  11337. * DP83848_STATUS_READ_ERROR if connot read register
  11338. */
  11339. int32_t DP83848_Init(dp83848_Object_t *pObj)
  11340. {
  11341. 800544a: b580 push {r7, lr}
  11342. 800544c: b086 sub sp, #24
  11343. 800544e: af00 add r7, sp, #0
  11344. 8005450: 6078 str r0, [r7, #4]
  11345. uint32_t regvalue = 0, addr = 0;
  11346. 8005452: 2300 movs r3, #0
  11347. 8005454: 60fb str r3, [r7, #12]
  11348. 8005456: 2300 movs r3, #0
  11349. 8005458: 617b str r3, [r7, #20]
  11350. int32_t status = DP83848_STATUS_OK;
  11351. 800545a: 2300 movs r3, #0
  11352. 800545c: 613b str r3, [r7, #16]
  11353. if(pObj->Is_Initialized == 0)
  11354. 800545e: 687b ldr r3, [r7, #4]
  11355. 8005460: 685b ldr r3, [r3, #4]
  11356. 8005462: 2b00 cmp r3, #0
  11357. 8005464: d139 bne.n 80054da <DP83848_Init+0x90>
  11358. {
  11359. if(pObj->IO.Init != 0)
  11360. 8005466: 687b ldr r3, [r7, #4]
  11361. 8005468: 689b ldr r3, [r3, #8]
  11362. 800546a: 2b00 cmp r3, #0
  11363. 800546c: d002 beq.n 8005474 <DP83848_Init+0x2a>
  11364. {
  11365. /* GPIO and Clocks initialization */
  11366. pObj->IO.Init();
  11367. 800546e: 687b ldr r3, [r7, #4]
  11368. 8005470: 689b ldr r3, [r3, #8]
  11369. 8005472: 4798 blx r3
  11370. }
  11371. /* for later check */
  11372. pObj->DevAddr = DP83848_MAX_DEV_ADDR + 1;
  11373. 8005474: 687b ldr r3, [r7, #4]
  11374. 8005476: 2220 movs r2, #32
  11375. 8005478: 601a str r2, [r3, #0]
  11376. /* Get the device address from special mode register */
  11377. for(addr = 0; addr <= DP83848_MAX_DEV_ADDR; addr ++)
  11378. 800547a: 2300 movs r3, #0
  11379. 800547c: 617b str r3, [r7, #20]
  11380. 800547e: e01c b.n 80054ba <DP83848_Init+0x70>
  11381. {
  11382. if(pObj->IO.ReadReg(addr, DP83848_SMR, &regvalue) < 0)
  11383. 8005480: 687b ldr r3, [r7, #4]
  11384. 8005482: 695b ldr r3, [r3, #20]
  11385. 8005484: f107 020c add.w r2, r7, #12
  11386. 8005488: 2119 movs r1, #25
  11387. 800548a: 6978 ldr r0, [r7, #20]
  11388. 800548c: 4798 blx r3
  11389. 800548e: 4603 mov r3, r0
  11390. 8005490: 2b00 cmp r3, #0
  11391. 8005492: da03 bge.n 800549c <DP83848_Init+0x52>
  11392. {
  11393. status = DP83848_STATUS_READ_ERROR;
  11394. 8005494: f06f 0304 mvn.w r3, #4
  11395. 8005498: 613b str r3, [r7, #16]
  11396. /* Can't read from this device address
  11397. continue with next address */
  11398. continue;
  11399. 800549a: e00b b.n 80054b4 <DP83848_Init+0x6a>
  11400. }
  11401. if((regvalue & DP83848_SMR_PHY_ADDR) == addr)
  11402. 800549c: 68fb ldr r3, [r7, #12]
  11403. 800549e: f003 031f and.w r3, r3, #31
  11404. 80054a2: 697a ldr r2, [r7, #20]
  11405. 80054a4: 429a cmp r2, r3
  11406. 80054a6: d105 bne.n 80054b4 <DP83848_Init+0x6a>
  11407. {
  11408. pObj->DevAddr = addr;
  11409. 80054a8: 687b ldr r3, [r7, #4]
  11410. 80054aa: 697a ldr r2, [r7, #20]
  11411. 80054ac: 601a str r2, [r3, #0]
  11412. status = DP83848_STATUS_OK;
  11413. 80054ae: 2300 movs r3, #0
  11414. 80054b0: 613b str r3, [r7, #16]
  11415. break;
  11416. 80054b2: e005 b.n 80054c0 <DP83848_Init+0x76>
  11417. for(addr = 0; addr <= DP83848_MAX_DEV_ADDR; addr ++)
  11418. 80054b4: 697b ldr r3, [r7, #20]
  11419. 80054b6: 3301 adds r3, #1
  11420. 80054b8: 617b str r3, [r7, #20]
  11421. 80054ba: 697b ldr r3, [r7, #20]
  11422. 80054bc: 2b1f cmp r3, #31
  11423. 80054be: d9df bls.n 8005480 <DP83848_Init+0x36>
  11424. }
  11425. }
  11426. if(pObj->DevAddr > DP83848_MAX_DEV_ADDR)
  11427. 80054c0: 687b ldr r3, [r7, #4]
  11428. 80054c2: 681b ldr r3, [r3, #0]
  11429. 80054c4: 2b1f cmp r3, #31
  11430. 80054c6: d902 bls.n 80054ce <DP83848_Init+0x84>
  11431. {
  11432. status = DP83848_STATUS_ADDRESS_ERROR;
  11433. 80054c8: f06f 0302 mvn.w r3, #2
  11434. 80054cc: 613b str r3, [r7, #16]
  11435. }
  11436. /* if device address is matched */
  11437. if(status == DP83848_STATUS_OK)
  11438. 80054ce: 693b ldr r3, [r7, #16]
  11439. 80054d0: 2b00 cmp r3, #0
  11440. 80054d2: d102 bne.n 80054da <DP83848_Init+0x90>
  11441. {
  11442. pObj->Is_Initialized = 1;
  11443. 80054d4: 687b ldr r3, [r7, #4]
  11444. 80054d6: 2201 movs r2, #1
  11445. 80054d8: 605a str r2, [r3, #4]
  11446. }
  11447. }
  11448. return status;
  11449. 80054da: 693b ldr r3, [r7, #16]
  11450. }
  11451. 80054dc: 4618 mov r0, r3
  11452. 80054de: 3718 adds r7, #24
  11453. 80054e0: 46bd mov sp, r7
  11454. 80054e2: bd80 pop {r7, pc}
  11455. 080054e4 <DP83848_GetLinkState>:
  11456. * DP83848_STATUS_10MBITS_HALFDUPLEX if 10Mb/s HD
  11457. * DP83848_STATUS_READ_ERROR if connot read register
  11458. * DP83848_STATUS_WRITE_ERROR if connot write to register
  11459. */
  11460. int32_t DP83848_GetLinkState(dp83848_Object_t *pObj)
  11461. {
  11462. 80054e4: b580 push {r7, lr}
  11463. 80054e6: b084 sub sp, #16
  11464. 80054e8: af00 add r7, sp, #0
  11465. 80054ea: 6078 str r0, [r7, #4]
  11466. uint32_t readval = 0;
  11467. 80054ec: 2300 movs r3, #0
  11468. 80054ee: 60fb str r3, [r7, #12]
  11469. /* Read Status register */
  11470. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BSR, &readval) < 0)
  11471. 80054f0: 687b ldr r3, [r7, #4]
  11472. 80054f2: 695b ldr r3, [r3, #20]
  11473. 80054f4: 687a ldr r2, [r7, #4]
  11474. 80054f6: 6810 ldr r0, [r2, #0]
  11475. 80054f8: f107 020c add.w r2, r7, #12
  11476. 80054fc: 2101 movs r1, #1
  11477. 80054fe: 4798 blx r3
  11478. 8005500: 4603 mov r3, r0
  11479. 8005502: 2b00 cmp r3, #0
  11480. 8005504: da02 bge.n 800550c <DP83848_GetLinkState+0x28>
  11481. {
  11482. return DP83848_STATUS_READ_ERROR;
  11483. 8005506: f06f 0304 mvn.w r3, #4
  11484. 800550a: e06e b.n 80055ea <DP83848_GetLinkState+0x106>
  11485. }
  11486. /* Read Status register again */
  11487. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BSR, &readval) < 0)
  11488. 800550c: 687b ldr r3, [r7, #4]
  11489. 800550e: 695b ldr r3, [r3, #20]
  11490. 8005510: 687a ldr r2, [r7, #4]
  11491. 8005512: 6810 ldr r0, [r2, #0]
  11492. 8005514: f107 020c add.w r2, r7, #12
  11493. 8005518: 2101 movs r1, #1
  11494. 800551a: 4798 blx r3
  11495. 800551c: 4603 mov r3, r0
  11496. 800551e: 2b00 cmp r3, #0
  11497. 8005520: da02 bge.n 8005528 <DP83848_GetLinkState+0x44>
  11498. {
  11499. return DP83848_STATUS_READ_ERROR;
  11500. 8005522: f06f 0304 mvn.w r3, #4
  11501. 8005526: e060 b.n 80055ea <DP83848_GetLinkState+0x106>
  11502. }
  11503. if((readval & DP83848_BSR_LINK_STATUS) == 0)
  11504. 8005528: 68fb ldr r3, [r7, #12]
  11505. 800552a: f003 0304 and.w r3, r3, #4
  11506. 800552e: 2b00 cmp r3, #0
  11507. 8005530: d101 bne.n 8005536 <DP83848_GetLinkState+0x52>
  11508. {
  11509. /* Return Link Down status */
  11510. return DP83848_STATUS_LINK_DOWN;
  11511. 8005532: 2301 movs r3, #1
  11512. 8005534: e059 b.n 80055ea <DP83848_GetLinkState+0x106>
  11513. }
  11514. /* Check Auto negotiaition */
  11515. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BCR, &readval) < 0)
  11516. 8005536: 687b ldr r3, [r7, #4]
  11517. 8005538: 695b ldr r3, [r3, #20]
  11518. 800553a: 687a ldr r2, [r7, #4]
  11519. 800553c: 6810 ldr r0, [r2, #0]
  11520. 800553e: f107 020c add.w r2, r7, #12
  11521. 8005542: 2100 movs r1, #0
  11522. 8005544: 4798 blx r3
  11523. 8005546: 4603 mov r3, r0
  11524. 8005548: 2b00 cmp r3, #0
  11525. 800554a: da02 bge.n 8005552 <DP83848_GetLinkState+0x6e>
  11526. {
  11527. return DP83848_STATUS_READ_ERROR;
  11528. 800554c: f06f 0304 mvn.w r3, #4
  11529. 8005550: e04b b.n 80055ea <DP83848_GetLinkState+0x106>
  11530. }
  11531. if((readval & DP83848_BCR_AUTONEGO_EN) != DP83848_BCR_AUTONEGO_EN)
  11532. 8005552: 68fb ldr r3, [r7, #12]
  11533. 8005554: f403 5380 and.w r3, r3, #4096 @ 0x1000
  11534. 8005558: 2b00 cmp r3, #0
  11535. 800555a: d11b bne.n 8005594 <DP83848_GetLinkState+0xb0>
  11536. {
  11537. if(((readval & DP83848_BCR_SPEED_SELECT) == DP83848_BCR_SPEED_SELECT) && ((readval & DP83848_BCR_DUPLEX_MODE) == DP83848_BCR_DUPLEX_MODE))
  11538. 800555c: 68fb ldr r3, [r7, #12]
  11539. 800555e: f403 5300 and.w r3, r3, #8192 @ 0x2000
  11540. 8005562: 2b00 cmp r3, #0
  11541. 8005564: d006 beq.n 8005574 <DP83848_GetLinkState+0x90>
  11542. 8005566: 68fb ldr r3, [r7, #12]
  11543. 8005568: f403 7380 and.w r3, r3, #256 @ 0x100
  11544. 800556c: 2b00 cmp r3, #0
  11545. 800556e: d001 beq.n 8005574 <DP83848_GetLinkState+0x90>
  11546. {
  11547. return DP83848_STATUS_100MBITS_FULLDUPLEX;
  11548. 8005570: 2302 movs r3, #2
  11549. 8005572: e03a b.n 80055ea <DP83848_GetLinkState+0x106>
  11550. }
  11551. else if ((readval & DP83848_BCR_SPEED_SELECT) == DP83848_BCR_SPEED_SELECT)
  11552. 8005574: 68fb ldr r3, [r7, #12]
  11553. 8005576: f403 5300 and.w r3, r3, #8192 @ 0x2000
  11554. 800557a: 2b00 cmp r3, #0
  11555. 800557c: d001 beq.n 8005582 <DP83848_GetLinkState+0x9e>
  11556. {
  11557. return DP83848_STATUS_100MBITS_HALFDUPLEX;
  11558. 800557e: 2303 movs r3, #3
  11559. 8005580: e033 b.n 80055ea <DP83848_GetLinkState+0x106>
  11560. }
  11561. else if ((readval & DP83848_BCR_DUPLEX_MODE) == DP83848_BCR_DUPLEX_MODE)
  11562. 8005582: 68fb ldr r3, [r7, #12]
  11563. 8005584: f403 7380 and.w r3, r3, #256 @ 0x100
  11564. 8005588: 2b00 cmp r3, #0
  11565. 800558a: d001 beq.n 8005590 <DP83848_GetLinkState+0xac>
  11566. {
  11567. return DP83848_STATUS_10MBITS_FULLDUPLEX;
  11568. 800558c: 2304 movs r3, #4
  11569. 800558e: e02c b.n 80055ea <DP83848_GetLinkState+0x106>
  11570. }
  11571. else
  11572. {
  11573. return DP83848_STATUS_10MBITS_HALFDUPLEX;
  11574. 8005590: 2305 movs r3, #5
  11575. 8005592: e02a b.n 80055ea <DP83848_GetLinkState+0x106>
  11576. }
  11577. }
  11578. else /* Auto Nego enabled */
  11579. {
  11580. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_PHYSCSR, &readval) < 0)
  11581. 8005594: 687b ldr r3, [r7, #4]
  11582. 8005596: 695b ldr r3, [r3, #20]
  11583. 8005598: 687a ldr r2, [r7, #4]
  11584. 800559a: 6810 ldr r0, [r2, #0]
  11585. 800559c: f107 020c add.w r2, r7, #12
  11586. 80055a0: 2110 movs r1, #16
  11587. 80055a2: 4798 blx r3
  11588. 80055a4: 4603 mov r3, r0
  11589. 80055a6: 2b00 cmp r3, #0
  11590. 80055a8: da02 bge.n 80055b0 <DP83848_GetLinkState+0xcc>
  11591. {
  11592. return DP83848_STATUS_READ_ERROR;
  11593. 80055aa: f06f 0304 mvn.w r3, #4
  11594. 80055ae: e01c b.n 80055ea <DP83848_GetLinkState+0x106>
  11595. }
  11596. /* Check if auto nego not done */
  11597. if((readval & DP83848_PHYSCSR_AUTONEGO_DONE) == 0)
  11598. 80055b0: 68fb ldr r3, [r7, #12]
  11599. 80055b2: f003 0310 and.w r3, r3, #16
  11600. 80055b6: 2b00 cmp r3, #0
  11601. 80055b8: d101 bne.n 80055be <DP83848_GetLinkState+0xda>
  11602. {
  11603. return DP83848_STATUS_AUTONEGO_NOTDONE;
  11604. 80055ba: 2306 movs r3, #6
  11605. 80055bc: e015 b.n 80055ea <DP83848_GetLinkState+0x106>
  11606. }
  11607. if((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_100BTX_FD)
  11608. 80055be: 68fb ldr r3, [r7, #12]
  11609. 80055c0: f003 0306 and.w r3, r3, #6
  11610. 80055c4: 2b04 cmp r3, #4
  11611. 80055c6: d101 bne.n 80055cc <DP83848_GetLinkState+0xe8>
  11612. {
  11613. return DP83848_STATUS_100MBITS_FULLDUPLEX;
  11614. 80055c8: 2302 movs r3, #2
  11615. 80055ca: e00e b.n 80055ea <DP83848_GetLinkState+0x106>
  11616. }
  11617. else if ((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_100BTX_HD)
  11618. 80055cc: 68fb ldr r3, [r7, #12]
  11619. 80055ce: f003 0306 and.w r3, r3, #6
  11620. 80055d2: 2b00 cmp r3, #0
  11621. 80055d4: d101 bne.n 80055da <DP83848_GetLinkState+0xf6>
  11622. {
  11623. return DP83848_STATUS_100MBITS_HALFDUPLEX;
  11624. 80055d6: 2303 movs r3, #3
  11625. 80055d8: e007 b.n 80055ea <DP83848_GetLinkState+0x106>
  11626. }
  11627. else if ((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_10BT_FD)
  11628. 80055da: 68fb ldr r3, [r7, #12]
  11629. 80055dc: f003 0306 and.w r3, r3, #6
  11630. 80055e0: 2b06 cmp r3, #6
  11631. 80055e2: d101 bne.n 80055e8 <DP83848_GetLinkState+0x104>
  11632. {
  11633. return DP83848_STATUS_10MBITS_FULLDUPLEX;
  11634. 80055e4: 2304 movs r3, #4
  11635. 80055e6: e000 b.n 80055ea <DP83848_GetLinkState+0x106>
  11636. }
  11637. else
  11638. {
  11639. return DP83848_STATUS_10MBITS_HALFDUPLEX;
  11640. 80055e8: 2305 movs r3, #5
  11641. }
  11642. }
  11643. }
  11644. 80055ea: 4618 mov r0, r3
  11645. 80055ec: 3710 adds r7, #16
  11646. 80055ee: 46bd mov sp, r7
  11647. 80055f0: bd80 pop {r7, pc}
  11648. ...
  11649. 080055f4 <HAL_Init>:
  11650. * need to ensure that the SysTick time base is always set to 1 millisecond
  11651. * to have correct HAL operation.
  11652. * @retval HAL status
  11653. */
  11654. HAL_StatusTypeDef HAL_Init(void)
  11655. {
  11656. 80055f4: b580 push {r7, lr}
  11657. 80055f6: b082 sub sp, #8
  11658. 80055f8: af00 add r7, sp, #0
  11659. __HAL_ART_CONFIG_BASE_ADDRESS(0x08100000UL); /* Configure the Cortex-M4 ART Base address to the Flash Bank 2 : */
  11660. __HAL_ART_ENABLE(); /* Enable the Cortex-M4 ART */
  11661. #endif /* DUAL_CORE && CORE_CM4 */
  11662. /* Set Interrupt Group Priority */
  11663. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  11664. 80055fa: 2003 movs r0, #3
  11665. 80055fc: f000 f947 bl 800588e <HAL_NVIC_SetPriorityGrouping>
  11666. /* Update the SystemCoreClock global variable */
  11667. #if defined(RCC_D1CFGR_D1CPRE)
  11668. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  11669. 8005600: f005 fcb4 bl 800af6c <HAL_RCC_GetSysClockFreq>
  11670. 8005604: 4602 mov r2, r0
  11671. 8005606: 4b15 ldr r3, [pc, #84] @ (800565c <HAL_Init+0x68>)
  11672. 8005608: 699b ldr r3, [r3, #24]
  11673. 800560a: 0a1b lsrs r3, r3, #8
  11674. 800560c: f003 030f and.w r3, r3, #15
  11675. 8005610: 4913 ldr r1, [pc, #76] @ (8005660 <HAL_Init+0x6c>)
  11676. 8005612: 5ccb ldrb r3, [r1, r3]
  11677. 8005614: f003 031f and.w r3, r3, #31
  11678. 8005618: fa22 f303 lsr.w r3, r2, r3
  11679. 800561c: 607b str r3, [r7, #4]
  11680. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  11681. #endif
  11682. /* Update the SystemD2Clock global variable */
  11683. #if defined(RCC_D1CFGR_HPRE)
  11684. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  11685. 800561e: 4b0f ldr r3, [pc, #60] @ (800565c <HAL_Init+0x68>)
  11686. 8005620: 699b ldr r3, [r3, #24]
  11687. 8005622: f003 030f and.w r3, r3, #15
  11688. 8005626: 4a0e ldr r2, [pc, #56] @ (8005660 <HAL_Init+0x6c>)
  11689. 8005628: 5cd3 ldrb r3, [r2, r3]
  11690. 800562a: f003 031f and.w r3, r3, #31
  11691. 800562e: 687a ldr r2, [r7, #4]
  11692. 8005630: fa22 f303 lsr.w r3, r2, r3
  11693. 8005634: 4a0b ldr r2, [pc, #44] @ (8005664 <HAL_Init+0x70>)
  11694. 8005636: 6013 str r3, [r2, #0]
  11695. #endif
  11696. #if defined(DUAL_CORE) && defined(CORE_CM4)
  11697. SystemCoreClock = SystemD2Clock;
  11698. #else
  11699. SystemCoreClock = common_system_clock;
  11700. 8005638: 4a0b ldr r2, [pc, #44] @ (8005668 <HAL_Init+0x74>)
  11701. 800563a: 687b ldr r3, [r7, #4]
  11702. 800563c: 6013 str r3, [r2, #0]
  11703. #endif /* DUAL_CORE && CORE_CM4 */
  11704. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  11705. if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  11706. 800563e: 200f movs r0, #15
  11707. 8005640: f7fe fc30 bl 8003ea4 <HAL_InitTick>
  11708. 8005644: 4603 mov r3, r0
  11709. 8005646: 2b00 cmp r3, #0
  11710. 8005648: d001 beq.n 800564e <HAL_Init+0x5a>
  11711. {
  11712. return HAL_ERROR;
  11713. 800564a: 2301 movs r3, #1
  11714. 800564c: e002 b.n 8005654 <HAL_Init+0x60>
  11715. }
  11716. /* Init the low level hardware */
  11717. HAL_MspInit();
  11718. 800564e: f7fe f919 bl 8003884 <HAL_MspInit>
  11719. /* Return function status */
  11720. return HAL_OK;
  11721. 8005652: 2300 movs r3, #0
  11722. }
  11723. 8005654: 4618 mov r0, r3
  11724. 8005656: 3708 adds r7, #8
  11725. 8005658: 46bd mov sp, r7
  11726. 800565a: bd80 pop {r7, pc}
  11727. 800565c: 58024400 .word 0x58024400
  11728. 8005660: 0803196c .word 0x0803196c
  11729. 8005664: 24000010 .word 0x24000010
  11730. 8005668: 2400000c .word 0x2400000c
  11731. 0800566c <HAL_IncTick>:
  11732. * @note This function is declared as __weak to be overwritten in case of other
  11733. * implementations in user file.
  11734. * @retval None
  11735. */
  11736. __weak void HAL_IncTick(void)
  11737. {
  11738. 800566c: b480 push {r7}
  11739. 800566e: af00 add r7, sp, #0
  11740. uwTick += (uint32_t)uwTickFreq;
  11741. 8005670: 4b06 ldr r3, [pc, #24] @ (800568c <HAL_IncTick+0x20>)
  11742. 8005672: 781b ldrb r3, [r3, #0]
  11743. 8005674: 461a mov r2, r3
  11744. 8005676: 4b06 ldr r3, [pc, #24] @ (8005690 <HAL_IncTick+0x24>)
  11745. 8005678: 681b ldr r3, [r3, #0]
  11746. 800567a: 4413 add r3, r2
  11747. 800567c: 4a04 ldr r2, [pc, #16] @ (8005690 <HAL_IncTick+0x24>)
  11748. 800567e: 6013 str r3, [r2, #0]
  11749. }
  11750. 8005680: bf00 nop
  11751. 8005682: 46bd mov sp, r7
  11752. 8005684: f85d 7b04 ldr.w r7, [sp], #4
  11753. 8005688: 4770 bx lr
  11754. 800568a: bf00 nop
  11755. 800568c: 24000030 .word 0x24000030
  11756. 8005690: 24002250 .word 0x24002250
  11757. 08005694 <HAL_GetTick>:
  11758. * @note This function is declared as __weak to be overwritten in case of other
  11759. * implementations in user file.
  11760. * @retval tick value
  11761. */
  11762. __weak uint32_t HAL_GetTick(void)
  11763. {
  11764. 8005694: b480 push {r7}
  11765. 8005696: af00 add r7, sp, #0
  11766. return uwTick;
  11767. 8005698: 4b03 ldr r3, [pc, #12] @ (80056a8 <HAL_GetTick+0x14>)
  11768. 800569a: 681b ldr r3, [r3, #0]
  11769. }
  11770. 800569c: 4618 mov r0, r3
  11771. 800569e: 46bd mov sp, r7
  11772. 80056a0: f85d 7b04 ldr.w r7, [sp], #4
  11773. 80056a4: 4770 bx lr
  11774. 80056a6: bf00 nop
  11775. 80056a8: 24002250 .word 0x24002250
  11776. 080056ac <HAL_Delay>:
  11777. * implementations in user file.
  11778. * @param Delay specifies the delay time length, in milliseconds.
  11779. * @retval None
  11780. */
  11781. __weak void HAL_Delay(uint32_t Delay)
  11782. {
  11783. 80056ac: b580 push {r7, lr}
  11784. 80056ae: b084 sub sp, #16
  11785. 80056b0: af00 add r7, sp, #0
  11786. 80056b2: 6078 str r0, [r7, #4]
  11787. uint32_t tickstart = HAL_GetTick();
  11788. 80056b4: f7ff ffee bl 8005694 <HAL_GetTick>
  11789. 80056b8: 60b8 str r0, [r7, #8]
  11790. uint32_t wait = Delay;
  11791. 80056ba: 687b ldr r3, [r7, #4]
  11792. 80056bc: 60fb str r3, [r7, #12]
  11793. /* Add a freq to guarantee minimum wait */
  11794. if (wait < HAL_MAX_DELAY)
  11795. 80056be: 68fb ldr r3, [r7, #12]
  11796. 80056c0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  11797. 80056c4: d005 beq.n 80056d2 <HAL_Delay+0x26>
  11798. {
  11799. wait += (uint32_t)(uwTickFreq);
  11800. 80056c6: 4b0a ldr r3, [pc, #40] @ (80056f0 <HAL_Delay+0x44>)
  11801. 80056c8: 781b ldrb r3, [r3, #0]
  11802. 80056ca: 461a mov r2, r3
  11803. 80056cc: 68fb ldr r3, [r7, #12]
  11804. 80056ce: 4413 add r3, r2
  11805. 80056d0: 60fb str r3, [r7, #12]
  11806. }
  11807. while ((HAL_GetTick() - tickstart) < wait)
  11808. 80056d2: bf00 nop
  11809. 80056d4: f7ff ffde bl 8005694 <HAL_GetTick>
  11810. 80056d8: 4602 mov r2, r0
  11811. 80056da: 68bb ldr r3, [r7, #8]
  11812. 80056dc: 1ad3 subs r3, r2, r3
  11813. 80056de: 68fa ldr r2, [r7, #12]
  11814. 80056e0: 429a cmp r2, r3
  11815. 80056e2: d8f7 bhi.n 80056d4 <HAL_Delay+0x28>
  11816. {
  11817. }
  11818. }
  11819. 80056e4: bf00 nop
  11820. 80056e6: bf00 nop
  11821. 80056e8: 3710 adds r7, #16
  11822. 80056ea: 46bd mov sp, r7
  11823. 80056ec: bd80 pop {r7, pc}
  11824. 80056ee: bf00 nop
  11825. 80056f0: 24000030 .word 0x24000030
  11826. 080056f4 <HAL_GetREVID>:
  11827. /**
  11828. * @brief Returns the device revision identifier.
  11829. * @retval Device revision identifier
  11830. */
  11831. uint32_t HAL_GetREVID(void)
  11832. {
  11833. 80056f4: b480 push {r7}
  11834. 80056f6: af00 add r7, sp, #0
  11835. return((DBGMCU->IDCODE) >> 16);
  11836. 80056f8: 4b03 ldr r3, [pc, #12] @ (8005708 <HAL_GetREVID+0x14>)
  11837. 80056fa: 681b ldr r3, [r3, #0]
  11838. 80056fc: 0c1b lsrs r3, r3, #16
  11839. }
  11840. 80056fe: 4618 mov r0, r3
  11841. 8005700: 46bd mov sp, r7
  11842. 8005702: f85d 7b04 ldr.w r7, [sp], #4
  11843. 8005706: 4770 bx lr
  11844. 8005708: 5c001000 .word 0x5c001000
  11845. 0800570c <HAL_SYSCFG_ETHInterfaceSelect>:
  11846. * @arg SYSCFG_ETH_MII : Select the Media Independent Interface
  11847. * @arg SYSCFG_ETH_RMII: Select the Reduced Media Independent Interface
  11848. * @retval None
  11849. */
  11850. void HAL_SYSCFG_ETHInterfaceSelect(uint32_t SYSCFG_ETHInterface)
  11851. {
  11852. 800570c: b480 push {r7}
  11853. 800570e: b083 sub sp, #12
  11854. 8005710: af00 add r7, sp, #0
  11855. 8005712: 6078 str r0, [r7, #4]
  11856. /* Check the parameter */
  11857. assert_param(IS_SYSCFG_ETHERNET_CONFIG(SYSCFG_ETHInterface));
  11858. MODIFY_REG(SYSCFG->PMCR, SYSCFG_PMCR_EPIS_SEL, (uint32_t)(SYSCFG_ETHInterface));
  11859. 8005714: 4b06 ldr r3, [pc, #24] @ (8005730 <HAL_SYSCFG_ETHInterfaceSelect+0x24>)
  11860. 8005716: 685b ldr r3, [r3, #4]
  11861. 8005718: f423 0260 bic.w r2, r3, #14680064 @ 0xe00000
  11862. 800571c: 4904 ldr r1, [pc, #16] @ (8005730 <HAL_SYSCFG_ETHInterfaceSelect+0x24>)
  11863. 800571e: 687b ldr r3, [r7, #4]
  11864. 8005720: 4313 orrs r3, r2
  11865. 8005722: 604b str r3, [r1, #4]
  11866. }
  11867. 8005724: bf00 nop
  11868. 8005726: 370c adds r7, #12
  11869. 8005728: 46bd mov sp, r7
  11870. 800572a: f85d 7b04 ldr.w r7, [sp], #4
  11871. 800572e: 4770 bx lr
  11872. 8005730: 58000400 .word 0x58000400
  11873. 08005734 <__NVIC_SetPriorityGrouping>:
  11874. {
  11875. 8005734: b480 push {r7}
  11876. 8005736: b085 sub sp, #20
  11877. 8005738: af00 add r7, sp, #0
  11878. 800573a: 6078 str r0, [r7, #4]
  11879. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  11880. 800573c: 687b ldr r3, [r7, #4]
  11881. 800573e: f003 0307 and.w r3, r3, #7
  11882. 8005742: 60fb str r3, [r7, #12]
  11883. reg_value = SCB->AIRCR; /* read old register configuration */
  11884. 8005744: 4b0b ldr r3, [pc, #44] @ (8005774 <__NVIC_SetPriorityGrouping+0x40>)
  11885. 8005746: 68db ldr r3, [r3, #12]
  11886. 8005748: 60bb str r3, [r7, #8]
  11887. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  11888. 800574a: 68ba ldr r2, [r7, #8]
  11889. 800574c: f64f 03ff movw r3, #63743 @ 0xf8ff
  11890. 8005750: 4013 ands r3, r2
  11891. 8005752: 60bb str r3, [r7, #8]
  11892. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  11893. 8005754: 68fb ldr r3, [r7, #12]
  11894. 8005756: 021a lsls r2, r3, #8
  11895. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  11896. 8005758: 68bb ldr r3, [r7, #8]
  11897. 800575a: 431a orrs r2, r3
  11898. reg_value = (reg_value |
  11899. 800575c: 4b06 ldr r3, [pc, #24] @ (8005778 <__NVIC_SetPriorityGrouping+0x44>)
  11900. 800575e: 4313 orrs r3, r2
  11901. 8005760: 60bb str r3, [r7, #8]
  11902. SCB->AIRCR = reg_value;
  11903. 8005762: 4a04 ldr r2, [pc, #16] @ (8005774 <__NVIC_SetPriorityGrouping+0x40>)
  11904. 8005764: 68bb ldr r3, [r7, #8]
  11905. 8005766: 60d3 str r3, [r2, #12]
  11906. }
  11907. 8005768: bf00 nop
  11908. 800576a: 3714 adds r7, #20
  11909. 800576c: 46bd mov sp, r7
  11910. 800576e: f85d 7b04 ldr.w r7, [sp], #4
  11911. 8005772: 4770 bx lr
  11912. 8005774: e000ed00 .word 0xe000ed00
  11913. 8005778: 05fa0000 .word 0x05fa0000
  11914. 0800577c <__NVIC_GetPriorityGrouping>:
  11915. {
  11916. 800577c: b480 push {r7}
  11917. 800577e: af00 add r7, sp, #0
  11918. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  11919. 8005780: 4b04 ldr r3, [pc, #16] @ (8005794 <__NVIC_GetPriorityGrouping+0x18>)
  11920. 8005782: 68db ldr r3, [r3, #12]
  11921. 8005784: 0a1b lsrs r3, r3, #8
  11922. 8005786: f003 0307 and.w r3, r3, #7
  11923. }
  11924. 800578a: 4618 mov r0, r3
  11925. 800578c: 46bd mov sp, r7
  11926. 800578e: f85d 7b04 ldr.w r7, [sp], #4
  11927. 8005792: 4770 bx lr
  11928. 8005794: e000ed00 .word 0xe000ed00
  11929. 08005798 <__NVIC_EnableIRQ>:
  11930. {
  11931. 8005798: b480 push {r7}
  11932. 800579a: b083 sub sp, #12
  11933. 800579c: af00 add r7, sp, #0
  11934. 800579e: 4603 mov r3, r0
  11935. 80057a0: 80fb strh r3, [r7, #6]
  11936. if ((int32_t)(IRQn) >= 0)
  11937. 80057a2: f9b7 3006 ldrsh.w r3, [r7, #6]
  11938. 80057a6: 2b00 cmp r3, #0
  11939. 80057a8: db0b blt.n 80057c2 <__NVIC_EnableIRQ+0x2a>
  11940. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  11941. 80057aa: 88fb ldrh r3, [r7, #6]
  11942. 80057ac: f003 021f and.w r2, r3, #31
  11943. 80057b0: 4907 ldr r1, [pc, #28] @ (80057d0 <__NVIC_EnableIRQ+0x38>)
  11944. 80057b2: f9b7 3006 ldrsh.w r3, [r7, #6]
  11945. 80057b6: 095b lsrs r3, r3, #5
  11946. 80057b8: 2001 movs r0, #1
  11947. 80057ba: fa00 f202 lsl.w r2, r0, r2
  11948. 80057be: f841 2023 str.w r2, [r1, r3, lsl #2]
  11949. }
  11950. 80057c2: bf00 nop
  11951. 80057c4: 370c adds r7, #12
  11952. 80057c6: 46bd mov sp, r7
  11953. 80057c8: f85d 7b04 ldr.w r7, [sp], #4
  11954. 80057cc: 4770 bx lr
  11955. 80057ce: bf00 nop
  11956. 80057d0: e000e100 .word 0xe000e100
  11957. 080057d4 <__NVIC_SetPriority>:
  11958. {
  11959. 80057d4: b480 push {r7}
  11960. 80057d6: b083 sub sp, #12
  11961. 80057d8: af00 add r7, sp, #0
  11962. 80057da: 4603 mov r3, r0
  11963. 80057dc: 6039 str r1, [r7, #0]
  11964. 80057de: 80fb strh r3, [r7, #6]
  11965. if ((int32_t)(IRQn) >= 0)
  11966. 80057e0: f9b7 3006 ldrsh.w r3, [r7, #6]
  11967. 80057e4: 2b00 cmp r3, #0
  11968. 80057e6: db0a blt.n 80057fe <__NVIC_SetPriority+0x2a>
  11969. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  11970. 80057e8: 683b ldr r3, [r7, #0]
  11971. 80057ea: b2da uxtb r2, r3
  11972. 80057ec: 490c ldr r1, [pc, #48] @ (8005820 <__NVIC_SetPriority+0x4c>)
  11973. 80057ee: f9b7 3006 ldrsh.w r3, [r7, #6]
  11974. 80057f2: 0112 lsls r2, r2, #4
  11975. 80057f4: b2d2 uxtb r2, r2
  11976. 80057f6: 440b add r3, r1
  11977. 80057f8: f883 2300 strb.w r2, [r3, #768] @ 0x300
  11978. }
  11979. 80057fc: e00a b.n 8005814 <__NVIC_SetPriority+0x40>
  11980. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  11981. 80057fe: 683b ldr r3, [r7, #0]
  11982. 8005800: b2da uxtb r2, r3
  11983. 8005802: 4908 ldr r1, [pc, #32] @ (8005824 <__NVIC_SetPriority+0x50>)
  11984. 8005804: 88fb ldrh r3, [r7, #6]
  11985. 8005806: f003 030f and.w r3, r3, #15
  11986. 800580a: 3b04 subs r3, #4
  11987. 800580c: 0112 lsls r2, r2, #4
  11988. 800580e: b2d2 uxtb r2, r2
  11989. 8005810: 440b add r3, r1
  11990. 8005812: 761a strb r2, [r3, #24]
  11991. }
  11992. 8005814: bf00 nop
  11993. 8005816: 370c adds r7, #12
  11994. 8005818: 46bd mov sp, r7
  11995. 800581a: f85d 7b04 ldr.w r7, [sp], #4
  11996. 800581e: 4770 bx lr
  11997. 8005820: e000e100 .word 0xe000e100
  11998. 8005824: e000ed00 .word 0xe000ed00
  11999. 08005828 <NVIC_EncodePriority>:
  12000. {
  12001. 8005828: b480 push {r7}
  12002. 800582a: b089 sub sp, #36 @ 0x24
  12003. 800582c: af00 add r7, sp, #0
  12004. 800582e: 60f8 str r0, [r7, #12]
  12005. 8005830: 60b9 str r1, [r7, #8]
  12006. 8005832: 607a str r2, [r7, #4]
  12007. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  12008. 8005834: 68fb ldr r3, [r7, #12]
  12009. 8005836: f003 0307 and.w r3, r3, #7
  12010. 800583a: 61fb str r3, [r7, #28]
  12011. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  12012. 800583c: 69fb ldr r3, [r7, #28]
  12013. 800583e: f1c3 0307 rsb r3, r3, #7
  12014. 8005842: 2b04 cmp r3, #4
  12015. 8005844: bf28 it cs
  12016. 8005846: 2304 movcs r3, #4
  12017. 8005848: 61bb str r3, [r7, #24]
  12018. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  12019. 800584a: 69fb ldr r3, [r7, #28]
  12020. 800584c: 3304 adds r3, #4
  12021. 800584e: 2b06 cmp r3, #6
  12022. 8005850: d902 bls.n 8005858 <NVIC_EncodePriority+0x30>
  12023. 8005852: 69fb ldr r3, [r7, #28]
  12024. 8005854: 3b03 subs r3, #3
  12025. 8005856: e000 b.n 800585a <NVIC_EncodePriority+0x32>
  12026. 8005858: 2300 movs r3, #0
  12027. 800585a: 617b str r3, [r7, #20]
  12028. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  12029. 800585c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  12030. 8005860: 69bb ldr r3, [r7, #24]
  12031. 8005862: fa02 f303 lsl.w r3, r2, r3
  12032. 8005866: 43da mvns r2, r3
  12033. 8005868: 68bb ldr r3, [r7, #8]
  12034. 800586a: 401a ands r2, r3
  12035. 800586c: 697b ldr r3, [r7, #20]
  12036. 800586e: 409a lsls r2, r3
  12037. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  12038. 8005870: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  12039. 8005874: 697b ldr r3, [r7, #20]
  12040. 8005876: fa01 f303 lsl.w r3, r1, r3
  12041. 800587a: 43d9 mvns r1, r3
  12042. 800587c: 687b ldr r3, [r7, #4]
  12043. 800587e: 400b ands r3, r1
  12044. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  12045. 8005880: 4313 orrs r3, r2
  12046. }
  12047. 8005882: 4618 mov r0, r3
  12048. 8005884: 3724 adds r7, #36 @ 0x24
  12049. 8005886: 46bd mov sp, r7
  12050. 8005888: f85d 7b04 ldr.w r7, [sp], #4
  12051. 800588c: 4770 bx lr
  12052. 0800588e <HAL_NVIC_SetPriorityGrouping>:
  12053. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  12054. * The pending IRQ priority will be managed only by the subpriority.
  12055. * @retval None
  12056. */
  12057. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  12058. {
  12059. 800588e: b580 push {r7, lr}
  12060. 8005890: b082 sub sp, #8
  12061. 8005892: af00 add r7, sp, #0
  12062. 8005894: 6078 str r0, [r7, #4]
  12063. /* Check the parameters */
  12064. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  12065. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  12066. NVIC_SetPriorityGrouping(PriorityGroup);
  12067. 8005896: 6878 ldr r0, [r7, #4]
  12068. 8005898: f7ff ff4c bl 8005734 <__NVIC_SetPriorityGrouping>
  12069. }
  12070. 800589c: bf00 nop
  12071. 800589e: 3708 adds r7, #8
  12072. 80058a0: 46bd mov sp, r7
  12073. 80058a2: bd80 pop {r7, pc}
  12074. 080058a4 <HAL_NVIC_SetPriority>:
  12075. * This parameter can be a value between 0 and 15
  12076. * A lower priority value indicates a higher priority.
  12077. * @retval None
  12078. */
  12079. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  12080. {
  12081. 80058a4: b580 push {r7, lr}
  12082. 80058a6: b086 sub sp, #24
  12083. 80058a8: af00 add r7, sp, #0
  12084. 80058aa: 4603 mov r3, r0
  12085. 80058ac: 60b9 str r1, [r7, #8]
  12086. 80058ae: 607a str r2, [r7, #4]
  12087. 80058b0: 81fb strh r3, [r7, #14]
  12088. /* Check the parameters */
  12089. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  12090. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  12091. prioritygroup = NVIC_GetPriorityGrouping();
  12092. 80058b2: f7ff ff63 bl 800577c <__NVIC_GetPriorityGrouping>
  12093. 80058b6: 6178 str r0, [r7, #20]
  12094. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  12095. 80058b8: 687a ldr r2, [r7, #4]
  12096. 80058ba: 68b9 ldr r1, [r7, #8]
  12097. 80058bc: 6978 ldr r0, [r7, #20]
  12098. 80058be: f7ff ffb3 bl 8005828 <NVIC_EncodePriority>
  12099. 80058c2: 4602 mov r2, r0
  12100. 80058c4: f9b7 300e ldrsh.w r3, [r7, #14]
  12101. 80058c8: 4611 mov r1, r2
  12102. 80058ca: 4618 mov r0, r3
  12103. 80058cc: f7ff ff82 bl 80057d4 <__NVIC_SetPriority>
  12104. }
  12105. 80058d0: bf00 nop
  12106. 80058d2: 3718 adds r7, #24
  12107. 80058d4: 46bd mov sp, r7
  12108. 80058d6: bd80 pop {r7, pc}
  12109. 080058d8 <HAL_NVIC_EnableIRQ>:
  12110. * This parameter can be an enumerator of IRQn_Type enumeration
  12111. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32h7xxxx.h))
  12112. * @retval None
  12113. */
  12114. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  12115. {
  12116. 80058d8: b580 push {r7, lr}
  12117. 80058da: b082 sub sp, #8
  12118. 80058dc: af00 add r7, sp, #0
  12119. 80058de: 4603 mov r3, r0
  12120. 80058e0: 80fb strh r3, [r7, #6]
  12121. /* Check the parameters */
  12122. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  12123. /* Enable interrupt */
  12124. NVIC_EnableIRQ(IRQn);
  12125. 80058e2: f9b7 3006 ldrsh.w r3, [r7, #6]
  12126. 80058e6: 4618 mov r0, r3
  12127. 80058e8: f7ff ff56 bl 8005798 <__NVIC_EnableIRQ>
  12128. }
  12129. 80058ec: bf00 nop
  12130. 80058ee: 3708 adds r7, #8
  12131. 80058f0: 46bd mov sp, r7
  12132. 80058f2: bd80 pop {r7, pc}
  12133. 080058f4 <HAL_MPU_Disable>:
  12134. /**
  12135. * @brief Disables the MPU
  12136. * @retval None
  12137. */
  12138. void HAL_MPU_Disable(void)
  12139. {
  12140. 80058f4: b480 push {r7}
  12141. 80058f6: af00 add r7, sp, #0
  12142. \details Ensures the apparent order of the explicit memory operations before
  12143. and after the instruction, without ensuring their completion.
  12144. */
  12145. __STATIC_FORCEINLINE void __DMB(void)
  12146. {
  12147. __ASM volatile ("dmb 0xF":::"memory");
  12148. 80058f8: f3bf 8f5f dmb sy
  12149. }
  12150. 80058fc: bf00 nop
  12151. /* Make sure outstanding transfers are done */
  12152. __DMB();
  12153. /* Disable fault exceptions */
  12154. SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk;
  12155. 80058fe: 4b07 ldr r3, [pc, #28] @ (800591c <HAL_MPU_Disable+0x28>)
  12156. 8005900: 6a5b ldr r3, [r3, #36] @ 0x24
  12157. 8005902: 4a06 ldr r2, [pc, #24] @ (800591c <HAL_MPU_Disable+0x28>)
  12158. 8005904: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  12159. 8005908: 6253 str r3, [r2, #36] @ 0x24
  12160. /* Disable the MPU and clear the control register*/
  12161. MPU->CTRL = 0;
  12162. 800590a: 4b05 ldr r3, [pc, #20] @ (8005920 <HAL_MPU_Disable+0x2c>)
  12163. 800590c: 2200 movs r2, #0
  12164. 800590e: 605a str r2, [r3, #4]
  12165. }
  12166. 8005910: bf00 nop
  12167. 8005912: 46bd mov sp, r7
  12168. 8005914: f85d 7b04 ldr.w r7, [sp], #4
  12169. 8005918: 4770 bx lr
  12170. 800591a: bf00 nop
  12171. 800591c: e000ed00 .word 0xe000ed00
  12172. 8005920: e000ed90 .word 0xe000ed90
  12173. 08005924 <HAL_MPU_Enable>:
  12174. * @arg MPU_PRIVILEGED_DEFAULT
  12175. * @arg MPU_HFNMI_PRIVDEF
  12176. * @retval None
  12177. */
  12178. void HAL_MPU_Enable(uint32_t MPU_Control)
  12179. {
  12180. 8005924: b480 push {r7}
  12181. 8005926: b083 sub sp, #12
  12182. 8005928: af00 add r7, sp, #0
  12183. 800592a: 6078 str r0, [r7, #4]
  12184. /* Enable the MPU */
  12185. MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk;
  12186. 800592c: 4a0b ldr r2, [pc, #44] @ (800595c <HAL_MPU_Enable+0x38>)
  12187. 800592e: 687b ldr r3, [r7, #4]
  12188. 8005930: f043 0301 orr.w r3, r3, #1
  12189. 8005934: 6053 str r3, [r2, #4]
  12190. /* Enable fault exceptions */
  12191. SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk;
  12192. 8005936: 4b0a ldr r3, [pc, #40] @ (8005960 <HAL_MPU_Enable+0x3c>)
  12193. 8005938: 6a5b ldr r3, [r3, #36] @ 0x24
  12194. 800593a: 4a09 ldr r2, [pc, #36] @ (8005960 <HAL_MPU_Enable+0x3c>)
  12195. 800593c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  12196. 8005940: 6253 str r3, [r2, #36] @ 0x24
  12197. __ASM volatile ("dsb 0xF":::"memory");
  12198. 8005942: f3bf 8f4f dsb sy
  12199. }
  12200. 8005946: bf00 nop
  12201. __ASM volatile ("isb 0xF":::"memory");
  12202. 8005948: f3bf 8f6f isb sy
  12203. }
  12204. 800594c: bf00 nop
  12205. /* Ensure MPU setting take effects */
  12206. __DSB();
  12207. __ISB();
  12208. }
  12209. 800594e: bf00 nop
  12210. 8005950: 370c adds r7, #12
  12211. 8005952: 46bd mov sp, r7
  12212. 8005954: f85d 7b04 ldr.w r7, [sp], #4
  12213. 8005958: 4770 bx lr
  12214. 800595a: bf00 nop
  12215. 800595c: e000ed90 .word 0xe000ed90
  12216. 8005960: e000ed00 .word 0xe000ed00
  12217. 08005964 <HAL_MPU_ConfigRegion>:
  12218. * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains
  12219. * the initialization and configuration information.
  12220. * @retval None
  12221. */
  12222. void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init)
  12223. {
  12224. 8005964: b480 push {r7}
  12225. 8005966: b083 sub sp, #12
  12226. 8005968: af00 add r7, sp, #0
  12227. 800596a: 6078 str r0, [r7, #4]
  12228. assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable));
  12229. assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable));
  12230. assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size));
  12231. /* Set the Region number */
  12232. MPU->RNR = MPU_Init->Number;
  12233. 800596c: 687b ldr r3, [r7, #4]
  12234. 800596e: 785a ldrb r2, [r3, #1]
  12235. 8005970: 4b1b ldr r3, [pc, #108] @ (80059e0 <HAL_MPU_ConfigRegion+0x7c>)
  12236. 8005972: 609a str r2, [r3, #8]
  12237. /* Disable the Region */
  12238. CLEAR_BIT(MPU->RASR, MPU_RASR_ENABLE_Msk);
  12239. 8005974: 4b1a ldr r3, [pc, #104] @ (80059e0 <HAL_MPU_ConfigRegion+0x7c>)
  12240. 8005976: 691b ldr r3, [r3, #16]
  12241. 8005978: 4a19 ldr r2, [pc, #100] @ (80059e0 <HAL_MPU_ConfigRegion+0x7c>)
  12242. 800597a: f023 0301 bic.w r3, r3, #1
  12243. 800597e: 6113 str r3, [r2, #16]
  12244. /* Apply configuration */
  12245. MPU->RBAR = MPU_Init->BaseAddress;
  12246. 8005980: 4a17 ldr r2, [pc, #92] @ (80059e0 <HAL_MPU_ConfigRegion+0x7c>)
  12247. 8005982: 687b ldr r3, [r7, #4]
  12248. 8005984: 685b ldr r3, [r3, #4]
  12249. 8005986: 60d3 str r3, [r2, #12]
  12250. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  12251. 8005988: 687b ldr r3, [r7, #4]
  12252. 800598a: 7b1b ldrb r3, [r3, #12]
  12253. 800598c: 071a lsls r2, r3, #28
  12254. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  12255. 800598e: 687b ldr r3, [r7, #4]
  12256. 8005990: 7adb ldrb r3, [r3, #11]
  12257. 8005992: 061b lsls r3, r3, #24
  12258. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  12259. 8005994: 431a orrs r2, r3
  12260. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  12261. 8005996: 687b ldr r3, [r7, #4]
  12262. 8005998: 7a9b ldrb r3, [r3, #10]
  12263. 800599a: 04db lsls r3, r3, #19
  12264. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  12265. 800599c: 431a orrs r2, r3
  12266. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  12267. 800599e: 687b ldr r3, [r7, #4]
  12268. 80059a0: 7b5b ldrb r3, [r3, #13]
  12269. 80059a2: 049b lsls r3, r3, #18
  12270. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  12271. 80059a4: 431a orrs r2, r3
  12272. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  12273. 80059a6: 687b ldr r3, [r7, #4]
  12274. 80059a8: 7b9b ldrb r3, [r3, #14]
  12275. 80059aa: 045b lsls r3, r3, #17
  12276. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  12277. 80059ac: 431a orrs r2, r3
  12278. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  12279. 80059ae: 687b ldr r3, [r7, #4]
  12280. 80059b0: 7bdb ldrb r3, [r3, #15]
  12281. 80059b2: 041b lsls r3, r3, #16
  12282. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  12283. 80059b4: 431a orrs r2, r3
  12284. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  12285. 80059b6: 687b ldr r3, [r7, #4]
  12286. 80059b8: 7a5b ldrb r3, [r3, #9]
  12287. 80059ba: 021b lsls r3, r3, #8
  12288. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  12289. 80059bc: 431a orrs r2, r3
  12290. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  12291. 80059be: 687b ldr r3, [r7, #4]
  12292. 80059c0: 7a1b ldrb r3, [r3, #8]
  12293. 80059c2: 005b lsls r3, r3, #1
  12294. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  12295. 80059c4: 4313 orrs r3, r2
  12296. ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos);
  12297. 80059c6: 687a ldr r2, [r7, #4]
  12298. 80059c8: 7812 ldrb r2, [r2, #0]
  12299. 80059ca: 4611 mov r1, r2
  12300. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  12301. 80059cc: 4a04 ldr r2, [pc, #16] @ (80059e0 <HAL_MPU_ConfigRegion+0x7c>)
  12302. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  12303. 80059ce: 430b orrs r3, r1
  12304. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  12305. 80059d0: 6113 str r3, [r2, #16]
  12306. }
  12307. 80059d2: bf00 nop
  12308. 80059d4: 370c adds r7, #12
  12309. 80059d6: 46bd mov sp, r7
  12310. 80059d8: f85d 7b04 ldr.w r7, [sp], #4
  12311. 80059dc: 4770 bx lr
  12312. 80059de: bf00 nop
  12313. 80059e0: e000ed90 .word 0xe000ed90
  12314. 080059e4 <HAL_CRC_Init>:
  12315. * parameters in the CRC_InitTypeDef and create the associated handle.
  12316. * @param hcrc CRC handle
  12317. * @retval HAL status
  12318. */
  12319. HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
  12320. {
  12321. 80059e4: b580 push {r7, lr}
  12322. 80059e6: b082 sub sp, #8
  12323. 80059e8: af00 add r7, sp, #0
  12324. 80059ea: 6078 str r0, [r7, #4]
  12325. /* Check the CRC handle allocation */
  12326. if (hcrc == NULL)
  12327. 80059ec: 687b ldr r3, [r7, #4]
  12328. 80059ee: 2b00 cmp r3, #0
  12329. 80059f0: d101 bne.n 80059f6 <HAL_CRC_Init+0x12>
  12330. {
  12331. return HAL_ERROR;
  12332. 80059f2: 2301 movs r3, #1
  12333. 80059f4: e054 b.n 8005aa0 <HAL_CRC_Init+0xbc>
  12334. }
  12335. /* Check the parameters */
  12336. assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance));
  12337. if (hcrc->State == HAL_CRC_STATE_RESET)
  12338. 80059f6: 687b ldr r3, [r7, #4]
  12339. 80059f8: 7f5b ldrb r3, [r3, #29]
  12340. 80059fa: b2db uxtb r3, r3
  12341. 80059fc: 2b00 cmp r3, #0
  12342. 80059fe: d105 bne.n 8005a0c <HAL_CRC_Init+0x28>
  12343. {
  12344. /* Allocate lock resource and initialize it */
  12345. hcrc->Lock = HAL_UNLOCKED;
  12346. 8005a00: 687b ldr r3, [r7, #4]
  12347. 8005a02: 2200 movs r2, #0
  12348. 8005a04: 771a strb r2, [r3, #28]
  12349. /* Init the low level hardware */
  12350. HAL_CRC_MspInit(hcrc);
  12351. 8005a06: 6878 ldr r0, [r7, #4]
  12352. 8005a08: f7fd ff84 bl 8003914 <HAL_CRC_MspInit>
  12353. }
  12354. hcrc->State = HAL_CRC_STATE_BUSY;
  12355. 8005a0c: 687b ldr r3, [r7, #4]
  12356. 8005a0e: 2202 movs r2, #2
  12357. 8005a10: 775a strb r2, [r3, #29]
  12358. /* check whether or not non-default generating polynomial has been
  12359. * picked up by user */
  12360. assert_param(IS_DEFAULT_POLYNOMIAL(hcrc->Init.DefaultPolynomialUse));
  12361. if (hcrc->Init.DefaultPolynomialUse == DEFAULT_POLYNOMIAL_ENABLE)
  12362. 8005a12: 687b ldr r3, [r7, #4]
  12363. 8005a14: 791b ldrb r3, [r3, #4]
  12364. 8005a16: 2b00 cmp r3, #0
  12365. 8005a18: d10c bne.n 8005a34 <HAL_CRC_Init+0x50>
  12366. {
  12367. /* initialize peripheral with default generating polynomial */
  12368. WRITE_REG(hcrc->Instance->POL, DEFAULT_CRC32_POLY);
  12369. 8005a1a: 687b ldr r3, [r7, #4]
  12370. 8005a1c: 681b ldr r3, [r3, #0]
  12371. 8005a1e: 4a22 ldr r2, [pc, #136] @ (8005aa8 <HAL_CRC_Init+0xc4>)
  12372. 8005a20: 615a str r2, [r3, #20]
  12373. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, CRC_POLYLENGTH_32B);
  12374. 8005a22: 687b ldr r3, [r7, #4]
  12375. 8005a24: 681b ldr r3, [r3, #0]
  12376. 8005a26: 689a ldr r2, [r3, #8]
  12377. 8005a28: 687b ldr r3, [r7, #4]
  12378. 8005a2a: 681b ldr r3, [r3, #0]
  12379. 8005a2c: f022 0218 bic.w r2, r2, #24
  12380. 8005a30: 609a str r2, [r3, #8]
  12381. 8005a32: e00c b.n 8005a4e <HAL_CRC_Init+0x6a>
  12382. }
  12383. else
  12384. {
  12385. /* initialize CRC peripheral with generating polynomial defined by user */
  12386. if (HAL_CRCEx_Polynomial_Set(hcrc, hcrc->Init.GeneratingPolynomial, hcrc->Init.CRCLength) != HAL_OK)
  12387. 8005a34: 687b ldr r3, [r7, #4]
  12388. 8005a36: 6899 ldr r1, [r3, #8]
  12389. 8005a38: 687b ldr r3, [r7, #4]
  12390. 8005a3a: 68db ldr r3, [r3, #12]
  12391. 8005a3c: 461a mov r2, r3
  12392. 8005a3e: 6878 ldr r0, [r7, #4]
  12393. 8005a40: f000 f948 bl 8005cd4 <HAL_CRCEx_Polynomial_Set>
  12394. 8005a44: 4603 mov r3, r0
  12395. 8005a46: 2b00 cmp r3, #0
  12396. 8005a48: d001 beq.n 8005a4e <HAL_CRC_Init+0x6a>
  12397. {
  12398. return HAL_ERROR;
  12399. 8005a4a: 2301 movs r3, #1
  12400. 8005a4c: e028 b.n 8005aa0 <HAL_CRC_Init+0xbc>
  12401. }
  12402. /* check whether or not non-default CRC initial value has been
  12403. * picked up by user */
  12404. assert_param(IS_DEFAULT_INIT_VALUE(hcrc->Init.DefaultInitValueUse));
  12405. if (hcrc->Init.DefaultInitValueUse == DEFAULT_INIT_VALUE_ENABLE)
  12406. 8005a4e: 687b ldr r3, [r7, #4]
  12407. 8005a50: 795b ldrb r3, [r3, #5]
  12408. 8005a52: 2b00 cmp r3, #0
  12409. 8005a54: d105 bne.n 8005a62 <HAL_CRC_Init+0x7e>
  12410. {
  12411. WRITE_REG(hcrc->Instance->INIT, DEFAULT_CRC_INITVALUE);
  12412. 8005a56: 687b ldr r3, [r7, #4]
  12413. 8005a58: 681b ldr r3, [r3, #0]
  12414. 8005a5a: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  12415. 8005a5e: 611a str r2, [r3, #16]
  12416. 8005a60: e004 b.n 8005a6c <HAL_CRC_Init+0x88>
  12417. }
  12418. else
  12419. {
  12420. WRITE_REG(hcrc->Instance->INIT, hcrc->Init.InitValue);
  12421. 8005a62: 687b ldr r3, [r7, #4]
  12422. 8005a64: 681b ldr r3, [r3, #0]
  12423. 8005a66: 687a ldr r2, [r7, #4]
  12424. 8005a68: 6912 ldr r2, [r2, #16]
  12425. 8005a6a: 611a str r2, [r3, #16]
  12426. }
  12427. /* set input data inversion mode */
  12428. assert_param(IS_CRC_INPUTDATA_INVERSION_MODE(hcrc->Init.InputDataInversionMode));
  12429. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_IN, hcrc->Init.InputDataInversionMode);
  12430. 8005a6c: 687b ldr r3, [r7, #4]
  12431. 8005a6e: 681b ldr r3, [r3, #0]
  12432. 8005a70: 689b ldr r3, [r3, #8]
  12433. 8005a72: f023 0160 bic.w r1, r3, #96 @ 0x60
  12434. 8005a76: 687b ldr r3, [r7, #4]
  12435. 8005a78: 695a ldr r2, [r3, #20]
  12436. 8005a7a: 687b ldr r3, [r7, #4]
  12437. 8005a7c: 681b ldr r3, [r3, #0]
  12438. 8005a7e: 430a orrs r2, r1
  12439. 8005a80: 609a str r2, [r3, #8]
  12440. /* set output data inversion mode */
  12441. assert_param(IS_CRC_OUTPUTDATA_INVERSION_MODE(hcrc->Init.OutputDataInversionMode));
  12442. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_OUT, hcrc->Init.OutputDataInversionMode);
  12443. 8005a82: 687b ldr r3, [r7, #4]
  12444. 8005a84: 681b ldr r3, [r3, #0]
  12445. 8005a86: 689b ldr r3, [r3, #8]
  12446. 8005a88: f023 0180 bic.w r1, r3, #128 @ 0x80
  12447. 8005a8c: 687b ldr r3, [r7, #4]
  12448. 8005a8e: 699a ldr r2, [r3, #24]
  12449. 8005a90: 687b ldr r3, [r7, #4]
  12450. 8005a92: 681b ldr r3, [r3, #0]
  12451. 8005a94: 430a orrs r2, r1
  12452. 8005a96: 609a str r2, [r3, #8]
  12453. /* makes sure the input data format (bytes, halfwords or words stream)
  12454. * is properly specified by user */
  12455. assert_param(IS_CRC_INPUTDATA_FORMAT(hcrc->InputDataFormat));
  12456. /* Change CRC peripheral state */
  12457. hcrc->State = HAL_CRC_STATE_READY;
  12458. 8005a98: 687b ldr r3, [r7, #4]
  12459. 8005a9a: 2201 movs r2, #1
  12460. 8005a9c: 775a strb r2, [r3, #29]
  12461. /* Return function status */
  12462. return HAL_OK;
  12463. 8005a9e: 2300 movs r3, #0
  12464. }
  12465. 8005aa0: 4618 mov r0, r3
  12466. 8005aa2: 3708 adds r7, #8
  12467. 8005aa4: 46bd mov sp, r7
  12468. 8005aa6: bd80 pop {r7, pc}
  12469. 8005aa8: 04c11db7 .word 0x04c11db7
  12470. 08005aac <HAL_CRC_Calculate>:
  12471. * and the API will internally adjust its input data processing based on the
  12472. * handle field hcrc->InputDataFormat.
  12473. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  12474. */
  12475. uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
  12476. {
  12477. 8005aac: b580 push {r7, lr}
  12478. 8005aae: b086 sub sp, #24
  12479. 8005ab0: af00 add r7, sp, #0
  12480. 8005ab2: 60f8 str r0, [r7, #12]
  12481. 8005ab4: 60b9 str r1, [r7, #8]
  12482. 8005ab6: 607a str r2, [r7, #4]
  12483. uint32_t index; /* CRC input data buffer index */
  12484. uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */
  12485. 8005ab8: 2300 movs r3, #0
  12486. 8005aba: 613b str r3, [r7, #16]
  12487. /* Change CRC peripheral state */
  12488. hcrc->State = HAL_CRC_STATE_BUSY;
  12489. 8005abc: 68fb ldr r3, [r7, #12]
  12490. 8005abe: 2202 movs r2, #2
  12491. 8005ac0: 775a strb r2, [r3, #29]
  12492. /* Reset CRC Calculation Unit (hcrc->Instance->INIT is
  12493. * written in hcrc->Instance->DR) */
  12494. __HAL_CRC_DR_RESET(hcrc);
  12495. 8005ac2: 68fb ldr r3, [r7, #12]
  12496. 8005ac4: 681b ldr r3, [r3, #0]
  12497. 8005ac6: 689a ldr r2, [r3, #8]
  12498. 8005ac8: 68fb ldr r3, [r7, #12]
  12499. 8005aca: 681b ldr r3, [r3, #0]
  12500. 8005acc: f042 0201 orr.w r2, r2, #1
  12501. 8005ad0: 609a str r2, [r3, #8]
  12502. switch (hcrc->InputDataFormat)
  12503. 8005ad2: 68fb ldr r3, [r7, #12]
  12504. 8005ad4: 6a1b ldr r3, [r3, #32]
  12505. 8005ad6: 2b03 cmp r3, #3
  12506. 8005ad8: d006 beq.n 8005ae8 <HAL_CRC_Calculate+0x3c>
  12507. 8005ada: 2b03 cmp r3, #3
  12508. 8005adc: d829 bhi.n 8005b32 <HAL_CRC_Calculate+0x86>
  12509. 8005ade: 2b01 cmp r3, #1
  12510. 8005ae0: d019 beq.n 8005b16 <HAL_CRC_Calculate+0x6a>
  12511. 8005ae2: 2b02 cmp r3, #2
  12512. 8005ae4: d01e beq.n 8005b24 <HAL_CRC_Calculate+0x78>
  12513. /* Specific 16-bit input data handling */
  12514. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  12515. break;
  12516. default:
  12517. break;
  12518. 8005ae6: e024 b.n 8005b32 <HAL_CRC_Calculate+0x86>
  12519. for (index = 0U; index < BufferLength; index++)
  12520. 8005ae8: 2300 movs r3, #0
  12521. 8005aea: 617b str r3, [r7, #20]
  12522. 8005aec: e00a b.n 8005b04 <HAL_CRC_Calculate+0x58>
  12523. hcrc->Instance->DR = pBuffer[index];
  12524. 8005aee: 697b ldr r3, [r7, #20]
  12525. 8005af0: 009b lsls r3, r3, #2
  12526. 8005af2: 68ba ldr r2, [r7, #8]
  12527. 8005af4: 441a add r2, r3
  12528. 8005af6: 68fb ldr r3, [r7, #12]
  12529. 8005af8: 681b ldr r3, [r3, #0]
  12530. 8005afa: 6812 ldr r2, [r2, #0]
  12531. 8005afc: 601a str r2, [r3, #0]
  12532. for (index = 0U; index < BufferLength; index++)
  12533. 8005afe: 697b ldr r3, [r7, #20]
  12534. 8005b00: 3301 adds r3, #1
  12535. 8005b02: 617b str r3, [r7, #20]
  12536. 8005b04: 697a ldr r2, [r7, #20]
  12537. 8005b06: 687b ldr r3, [r7, #4]
  12538. 8005b08: 429a cmp r2, r3
  12539. 8005b0a: d3f0 bcc.n 8005aee <HAL_CRC_Calculate+0x42>
  12540. temp = hcrc->Instance->DR;
  12541. 8005b0c: 68fb ldr r3, [r7, #12]
  12542. 8005b0e: 681b ldr r3, [r3, #0]
  12543. 8005b10: 681b ldr r3, [r3, #0]
  12544. 8005b12: 613b str r3, [r7, #16]
  12545. break;
  12546. 8005b14: e00e b.n 8005b34 <HAL_CRC_Calculate+0x88>
  12547. temp = CRC_Handle_8(hcrc, (uint8_t *)pBuffer, BufferLength);
  12548. 8005b16: 687a ldr r2, [r7, #4]
  12549. 8005b18: 68b9 ldr r1, [r7, #8]
  12550. 8005b1a: 68f8 ldr r0, [r7, #12]
  12551. 8005b1c: f000 f812 bl 8005b44 <CRC_Handle_8>
  12552. 8005b20: 6138 str r0, [r7, #16]
  12553. break;
  12554. 8005b22: e007 b.n 8005b34 <HAL_CRC_Calculate+0x88>
  12555. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  12556. 8005b24: 687a ldr r2, [r7, #4]
  12557. 8005b26: 68b9 ldr r1, [r7, #8]
  12558. 8005b28: 68f8 ldr r0, [r7, #12]
  12559. 8005b2a: f000 f899 bl 8005c60 <CRC_Handle_16>
  12560. 8005b2e: 6138 str r0, [r7, #16]
  12561. break;
  12562. 8005b30: e000 b.n 8005b34 <HAL_CRC_Calculate+0x88>
  12563. break;
  12564. 8005b32: bf00 nop
  12565. }
  12566. /* Change CRC peripheral state */
  12567. hcrc->State = HAL_CRC_STATE_READY;
  12568. 8005b34: 68fb ldr r3, [r7, #12]
  12569. 8005b36: 2201 movs r2, #1
  12570. 8005b38: 775a strb r2, [r3, #29]
  12571. /* Return the CRC computed value */
  12572. return temp;
  12573. 8005b3a: 693b ldr r3, [r7, #16]
  12574. }
  12575. 8005b3c: 4618 mov r0, r3
  12576. 8005b3e: 3718 adds r7, #24
  12577. 8005b40: 46bd mov sp, r7
  12578. 8005b42: bd80 pop {r7, pc}
  12579. 08005b44 <CRC_Handle_8>:
  12580. * @param pBuffer pointer to the input data buffer
  12581. * @param BufferLength input data buffer length
  12582. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  12583. */
  12584. static uint32_t CRC_Handle_8(CRC_HandleTypeDef *hcrc, uint8_t pBuffer[], uint32_t BufferLength)
  12585. {
  12586. 8005b44: b480 push {r7}
  12587. 8005b46: b089 sub sp, #36 @ 0x24
  12588. 8005b48: af00 add r7, sp, #0
  12589. 8005b4a: 60f8 str r0, [r7, #12]
  12590. 8005b4c: 60b9 str r1, [r7, #8]
  12591. 8005b4e: 607a str r2, [r7, #4]
  12592. __IO uint16_t *pReg;
  12593. /* Processing time optimization: 4 bytes are entered in a row with a single word write,
  12594. * last bytes must be carefully fed to the CRC calculator to ensure a correct type
  12595. * handling by the peripheral */
  12596. for (i = 0U; i < (BufferLength / 4U); i++)
  12597. 8005b50: 2300 movs r3, #0
  12598. 8005b52: 61fb str r3, [r7, #28]
  12599. 8005b54: e023 b.n 8005b9e <CRC_Handle_8+0x5a>
  12600. {
  12601. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  12602. 8005b56: 69fb ldr r3, [r7, #28]
  12603. 8005b58: 009b lsls r3, r3, #2
  12604. 8005b5a: 68ba ldr r2, [r7, #8]
  12605. 8005b5c: 4413 add r3, r2
  12606. 8005b5e: 781b ldrb r3, [r3, #0]
  12607. 8005b60: 061a lsls r2, r3, #24
  12608. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  12609. 8005b62: 69fb ldr r3, [r7, #28]
  12610. 8005b64: 009b lsls r3, r3, #2
  12611. 8005b66: 3301 adds r3, #1
  12612. 8005b68: 68b9 ldr r1, [r7, #8]
  12613. 8005b6a: 440b add r3, r1
  12614. 8005b6c: 781b ldrb r3, [r3, #0]
  12615. 8005b6e: 041b lsls r3, r3, #16
  12616. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  12617. 8005b70: 431a orrs r2, r3
  12618. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  12619. 8005b72: 69fb ldr r3, [r7, #28]
  12620. 8005b74: 009b lsls r3, r3, #2
  12621. 8005b76: 3302 adds r3, #2
  12622. 8005b78: 68b9 ldr r1, [r7, #8]
  12623. 8005b7a: 440b add r3, r1
  12624. 8005b7c: 781b ldrb r3, [r3, #0]
  12625. 8005b7e: 021b lsls r3, r3, #8
  12626. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  12627. 8005b80: 431a orrs r2, r3
  12628. (uint32_t)pBuffer[(4U * i) + 3U];
  12629. 8005b82: 69fb ldr r3, [r7, #28]
  12630. 8005b84: 009b lsls r3, r3, #2
  12631. 8005b86: 3303 adds r3, #3
  12632. 8005b88: 68b9 ldr r1, [r7, #8]
  12633. 8005b8a: 440b add r3, r1
  12634. 8005b8c: 781b ldrb r3, [r3, #0]
  12635. 8005b8e: 4619 mov r1, r3
  12636. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  12637. 8005b90: 68fb ldr r3, [r7, #12]
  12638. 8005b92: 681b ldr r3, [r3, #0]
  12639. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  12640. 8005b94: 430a orrs r2, r1
  12641. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  12642. 8005b96: 601a str r2, [r3, #0]
  12643. for (i = 0U; i < (BufferLength / 4U); i++)
  12644. 8005b98: 69fb ldr r3, [r7, #28]
  12645. 8005b9a: 3301 adds r3, #1
  12646. 8005b9c: 61fb str r3, [r7, #28]
  12647. 8005b9e: 687b ldr r3, [r7, #4]
  12648. 8005ba0: 089b lsrs r3, r3, #2
  12649. 8005ba2: 69fa ldr r2, [r7, #28]
  12650. 8005ba4: 429a cmp r2, r3
  12651. 8005ba6: d3d6 bcc.n 8005b56 <CRC_Handle_8+0x12>
  12652. }
  12653. /* last bytes specific handling */
  12654. if ((BufferLength % 4U) != 0U)
  12655. 8005ba8: 687b ldr r3, [r7, #4]
  12656. 8005baa: f003 0303 and.w r3, r3, #3
  12657. 8005bae: 2b00 cmp r3, #0
  12658. 8005bb0: d04d beq.n 8005c4e <CRC_Handle_8+0x10a>
  12659. {
  12660. if ((BufferLength % 4U) == 1U)
  12661. 8005bb2: 687b ldr r3, [r7, #4]
  12662. 8005bb4: f003 0303 and.w r3, r3, #3
  12663. 8005bb8: 2b01 cmp r3, #1
  12664. 8005bba: d107 bne.n 8005bcc <CRC_Handle_8+0x88>
  12665. {
  12666. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[4U * i]; /* Derogation MisraC2012 R.11.5 */
  12667. 8005bbc: 69fb ldr r3, [r7, #28]
  12668. 8005bbe: 009b lsls r3, r3, #2
  12669. 8005bc0: 68ba ldr r2, [r7, #8]
  12670. 8005bc2: 4413 add r3, r2
  12671. 8005bc4: 68fa ldr r2, [r7, #12]
  12672. 8005bc6: 6812 ldr r2, [r2, #0]
  12673. 8005bc8: 781b ldrb r3, [r3, #0]
  12674. 8005bca: 7013 strb r3, [r2, #0]
  12675. }
  12676. if ((BufferLength % 4U) == 2U)
  12677. 8005bcc: 687b ldr r3, [r7, #4]
  12678. 8005bce: f003 0303 and.w r3, r3, #3
  12679. 8005bd2: 2b02 cmp r3, #2
  12680. 8005bd4: d116 bne.n 8005c04 <CRC_Handle_8+0xc0>
  12681. {
  12682. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  12683. 8005bd6: 69fb ldr r3, [r7, #28]
  12684. 8005bd8: 009b lsls r3, r3, #2
  12685. 8005bda: 68ba ldr r2, [r7, #8]
  12686. 8005bdc: 4413 add r3, r2
  12687. 8005bde: 781b ldrb r3, [r3, #0]
  12688. 8005be0: 021b lsls r3, r3, #8
  12689. 8005be2: b21a sxth r2, r3
  12690. 8005be4: 69fb ldr r3, [r7, #28]
  12691. 8005be6: 009b lsls r3, r3, #2
  12692. 8005be8: 3301 adds r3, #1
  12693. 8005bea: 68b9 ldr r1, [r7, #8]
  12694. 8005bec: 440b add r3, r1
  12695. 8005bee: 781b ldrb r3, [r3, #0]
  12696. 8005bf0: b21b sxth r3, r3
  12697. 8005bf2: 4313 orrs r3, r2
  12698. 8005bf4: b21b sxth r3, r3
  12699. 8005bf6: 837b strh r3, [r7, #26]
  12700. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  12701. 8005bf8: 68fb ldr r3, [r7, #12]
  12702. 8005bfa: 681b ldr r3, [r3, #0]
  12703. 8005bfc: 617b str r3, [r7, #20]
  12704. *pReg = data;
  12705. 8005bfe: 697b ldr r3, [r7, #20]
  12706. 8005c00: 8b7a ldrh r2, [r7, #26]
  12707. 8005c02: 801a strh r2, [r3, #0]
  12708. }
  12709. if ((BufferLength % 4U) == 3U)
  12710. 8005c04: 687b ldr r3, [r7, #4]
  12711. 8005c06: f003 0303 and.w r3, r3, #3
  12712. 8005c0a: 2b03 cmp r3, #3
  12713. 8005c0c: d11f bne.n 8005c4e <CRC_Handle_8+0x10a>
  12714. {
  12715. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  12716. 8005c0e: 69fb ldr r3, [r7, #28]
  12717. 8005c10: 009b lsls r3, r3, #2
  12718. 8005c12: 68ba ldr r2, [r7, #8]
  12719. 8005c14: 4413 add r3, r2
  12720. 8005c16: 781b ldrb r3, [r3, #0]
  12721. 8005c18: 021b lsls r3, r3, #8
  12722. 8005c1a: b21a sxth r2, r3
  12723. 8005c1c: 69fb ldr r3, [r7, #28]
  12724. 8005c1e: 009b lsls r3, r3, #2
  12725. 8005c20: 3301 adds r3, #1
  12726. 8005c22: 68b9 ldr r1, [r7, #8]
  12727. 8005c24: 440b add r3, r1
  12728. 8005c26: 781b ldrb r3, [r3, #0]
  12729. 8005c28: b21b sxth r3, r3
  12730. 8005c2a: 4313 orrs r3, r2
  12731. 8005c2c: b21b sxth r3, r3
  12732. 8005c2e: 837b strh r3, [r7, #26]
  12733. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  12734. 8005c30: 68fb ldr r3, [r7, #12]
  12735. 8005c32: 681b ldr r3, [r3, #0]
  12736. 8005c34: 617b str r3, [r7, #20]
  12737. *pReg = data;
  12738. 8005c36: 697b ldr r3, [r7, #20]
  12739. 8005c38: 8b7a ldrh r2, [r7, #26]
  12740. 8005c3a: 801a strh r2, [r3, #0]
  12741. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[(4U * i) + 2U]; /* Derogation MisraC2012 R.11.5 */
  12742. 8005c3c: 69fb ldr r3, [r7, #28]
  12743. 8005c3e: 009b lsls r3, r3, #2
  12744. 8005c40: 3302 adds r3, #2
  12745. 8005c42: 68ba ldr r2, [r7, #8]
  12746. 8005c44: 4413 add r3, r2
  12747. 8005c46: 68fa ldr r2, [r7, #12]
  12748. 8005c48: 6812 ldr r2, [r2, #0]
  12749. 8005c4a: 781b ldrb r3, [r3, #0]
  12750. 8005c4c: 7013 strb r3, [r2, #0]
  12751. }
  12752. }
  12753. /* Return the CRC computed value */
  12754. return hcrc->Instance->DR;
  12755. 8005c4e: 68fb ldr r3, [r7, #12]
  12756. 8005c50: 681b ldr r3, [r3, #0]
  12757. 8005c52: 681b ldr r3, [r3, #0]
  12758. }
  12759. 8005c54: 4618 mov r0, r3
  12760. 8005c56: 3724 adds r7, #36 @ 0x24
  12761. 8005c58: 46bd mov sp, r7
  12762. 8005c5a: f85d 7b04 ldr.w r7, [sp], #4
  12763. 8005c5e: 4770 bx lr
  12764. 08005c60 <CRC_Handle_16>:
  12765. * @param pBuffer pointer to the input data buffer
  12766. * @param BufferLength input data buffer length
  12767. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  12768. */
  12769. static uint32_t CRC_Handle_16(CRC_HandleTypeDef *hcrc, uint16_t pBuffer[], uint32_t BufferLength)
  12770. {
  12771. 8005c60: b480 push {r7}
  12772. 8005c62: b087 sub sp, #28
  12773. 8005c64: af00 add r7, sp, #0
  12774. 8005c66: 60f8 str r0, [r7, #12]
  12775. 8005c68: 60b9 str r1, [r7, #8]
  12776. 8005c6a: 607a str r2, [r7, #4]
  12777. __IO uint16_t *pReg;
  12778. /* Processing time optimization: 2 HalfWords are entered in a row with a single word write,
  12779. * in case of odd length, last HalfWord must be carefully fed to the CRC calculator to ensure
  12780. * a correct type handling by the peripheral */
  12781. for (i = 0U; i < (BufferLength / 2U); i++)
  12782. 8005c6c: 2300 movs r3, #0
  12783. 8005c6e: 617b str r3, [r7, #20]
  12784. 8005c70: e013 b.n 8005c9a <CRC_Handle_16+0x3a>
  12785. {
  12786. hcrc->Instance->DR = ((uint32_t)pBuffer[2U * i] << 16U) | (uint32_t)pBuffer[(2U * i) + 1U];
  12787. 8005c72: 697b ldr r3, [r7, #20]
  12788. 8005c74: 009b lsls r3, r3, #2
  12789. 8005c76: 68ba ldr r2, [r7, #8]
  12790. 8005c78: 4413 add r3, r2
  12791. 8005c7a: 881b ldrh r3, [r3, #0]
  12792. 8005c7c: 041a lsls r2, r3, #16
  12793. 8005c7e: 697b ldr r3, [r7, #20]
  12794. 8005c80: 009b lsls r3, r3, #2
  12795. 8005c82: 3302 adds r3, #2
  12796. 8005c84: 68b9 ldr r1, [r7, #8]
  12797. 8005c86: 440b add r3, r1
  12798. 8005c88: 881b ldrh r3, [r3, #0]
  12799. 8005c8a: 4619 mov r1, r3
  12800. 8005c8c: 68fb ldr r3, [r7, #12]
  12801. 8005c8e: 681b ldr r3, [r3, #0]
  12802. 8005c90: 430a orrs r2, r1
  12803. 8005c92: 601a str r2, [r3, #0]
  12804. for (i = 0U; i < (BufferLength / 2U); i++)
  12805. 8005c94: 697b ldr r3, [r7, #20]
  12806. 8005c96: 3301 adds r3, #1
  12807. 8005c98: 617b str r3, [r7, #20]
  12808. 8005c9a: 687b ldr r3, [r7, #4]
  12809. 8005c9c: 085b lsrs r3, r3, #1
  12810. 8005c9e: 697a ldr r2, [r7, #20]
  12811. 8005ca0: 429a cmp r2, r3
  12812. 8005ca2: d3e6 bcc.n 8005c72 <CRC_Handle_16+0x12>
  12813. }
  12814. if ((BufferLength % 2U) != 0U)
  12815. 8005ca4: 687b ldr r3, [r7, #4]
  12816. 8005ca6: f003 0301 and.w r3, r3, #1
  12817. 8005caa: 2b00 cmp r3, #0
  12818. 8005cac: d009 beq.n 8005cc2 <CRC_Handle_16+0x62>
  12819. {
  12820. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  12821. 8005cae: 68fb ldr r3, [r7, #12]
  12822. 8005cb0: 681b ldr r3, [r3, #0]
  12823. 8005cb2: 613b str r3, [r7, #16]
  12824. *pReg = pBuffer[2U * i];
  12825. 8005cb4: 697b ldr r3, [r7, #20]
  12826. 8005cb6: 009b lsls r3, r3, #2
  12827. 8005cb8: 68ba ldr r2, [r7, #8]
  12828. 8005cba: 4413 add r3, r2
  12829. 8005cbc: 881a ldrh r2, [r3, #0]
  12830. 8005cbe: 693b ldr r3, [r7, #16]
  12831. 8005cc0: 801a strh r2, [r3, #0]
  12832. }
  12833. /* Return the CRC computed value */
  12834. return hcrc->Instance->DR;
  12835. 8005cc2: 68fb ldr r3, [r7, #12]
  12836. 8005cc4: 681b ldr r3, [r3, #0]
  12837. 8005cc6: 681b ldr r3, [r3, #0]
  12838. }
  12839. 8005cc8: 4618 mov r0, r3
  12840. 8005cca: 371c adds r7, #28
  12841. 8005ccc: 46bd mov sp, r7
  12842. 8005cce: f85d 7b04 ldr.w r7, [sp], #4
  12843. 8005cd2: 4770 bx lr
  12844. 08005cd4 <HAL_CRCEx_Polynomial_Set>:
  12845. * @arg @ref CRC_POLYLENGTH_16B 16-bit long CRC (generating polynomial of degree 16)
  12846. * @arg @ref CRC_POLYLENGTH_32B 32-bit long CRC (generating polynomial of degree 32)
  12847. * @retval HAL status
  12848. */
  12849. HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength)
  12850. {
  12851. 8005cd4: b480 push {r7}
  12852. 8005cd6: b087 sub sp, #28
  12853. 8005cd8: af00 add r7, sp, #0
  12854. 8005cda: 60f8 str r0, [r7, #12]
  12855. 8005cdc: 60b9 str r1, [r7, #8]
  12856. 8005cde: 607a str r2, [r7, #4]
  12857. HAL_StatusTypeDef status = HAL_OK;
  12858. 8005ce0: 2300 movs r3, #0
  12859. 8005ce2: 75fb strb r3, [r7, #23]
  12860. uint32_t msb = 31U; /* polynomial degree is 32 at most, so msb is initialized to max value */
  12861. 8005ce4: 231f movs r3, #31
  12862. 8005ce6: 613b str r3, [r7, #16]
  12863. /* Check the parameters */
  12864. assert_param(IS_CRC_POL_LENGTH(PolyLength));
  12865. /* Ensure that the generating polynomial is odd */
  12866. if ((Pol & (uint32_t)(0x1U)) == 0U)
  12867. 8005ce8: 68bb ldr r3, [r7, #8]
  12868. 8005cea: f003 0301 and.w r3, r3, #1
  12869. 8005cee: 2b00 cmp r3, #0
  12870. 8005cf0: d102 bne.n 8005cf8 <HAL_CRCEx_Polynomial_Set+0x24>
  12871. {
  12872. status = HAL_ERROR;
  12873. 8005cf2: 2301 movs r3, #1
  12874. 8005cf4: 75fb strb r3, [r7, #23]
  12875. 8005cf6: e063 b.n 8005dc0 <HAL_CRCEx_Polynomial_Set+0xec>
  12876. * definition. HAL_ERROR is reported if Pol degree is
  12877. * larger than that indicated by PolyLength.
  12878. * Look for MSB position: msb will contain the degree of
  12879. * the second to the largest polynomial member. E.g., for
  12880. * X^7 + X^6 + X^5 + X^2 + 1, msb = 6. */
  12881. while ((msb-- > 0U) && ((Pol & ((uint32_t)(0x1U) << (msb & 0x1FU))) == 0U))
  12882. 8005cf8: bf00 nop
  12883. 8005cfa: 693b ldr r3, [r7, #16]
  12884. 8005cfc: 1e5a subs r2, r3, #1
  12885. 8005cfe: 613a str r2, [r7, #16]
  12886. 8005d00: 2b00 cmp r3, #0
  12887. 8005d02: d009 beq.n 8005d18 <HAL_CRCEx_Polynomial_Set+0x44>
  12888. 8005d04: 693b ldr r3, [r7, #16]
  12889. 8005d06: f003 031f and.w r3, r3, #31
  12890. 8005d0a: 68ba ldr r2, [r7, #8]
  12891. 8005d0c: fa22 f303 lsr.w r3, r2, r3
  12892. 8005d10: f003 0301 and.w r3, r3, #1
  12893. 8005d14: 2b00 cmp r3, #0
  12894. 8005d16: d0f0 beq.n 8005cfa <HAL_CRCEx_Polynomial_Set+0x26>
  12895. {
  12896. }
  12897. switch (PolyLength)
  12898. 8005d18: 687b ldr r3, [r7, #4]
  12899. 8005d1a: 2b18 cmp r3, #24
  12900. 8005d1c: d846 bhi.n 8005dac <HAL_CRCEx_Polynomial_Set+0xd8>
  12901. 8005d1e: a201 add r2, pc, #4 @ (adr r2, 8005d24 <HAL_CRCEx_Polynomial_Set+0x50>)
  12902. 8005d20: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  12903. 8005d24: 08005db3 .word 0x08005db3
  12904. 8005d28: 08005dad .word 0x08005dad
  12905. 8005d2c: 08005dad .word 0x08005dad
  12906. 8005d30: 08005dad .word 0x08005dad
  12907. 8005d34: 08005dad .word 0x08005dad
  12908. 8005d38: 08005dad .word 0x08005dad
  12909. 8005d3c: 08005dad .word 0x08005dad
  12910. 8005d40: 08005dad .word 0x08005dad
  12911. 8005d44: 08005da1 .word 0x08005da1
  12912. 8005d48: 08005dad .word 0x08005dad
  12913. 8005d4c: 08005dad .word 0x08005dad
  12914. 8005d50: 08005dad .word 0x08005dad
  12915. 8005d54: 08005dad .word 0x08005dad
  12916. 8005d58: 08005dad .word 0x08005dad
  12917. 8005d5c: 08005dad .word 0x08005dad
  12918. 8005d60: 08005dad .word 0x08005dad
  12919. 8005d64: 08005d95 .word 0x08005d95
  12920. 8005d68: 08005dad .word 0x08005dad
  12921. 8005d6c: 08005dad .word 0x08005dad
  12922. 8005d70: 08005dad .word 0x08005dad
  12923. 8005d74: 08005dad .word 0x08005dad
  12924. 8005d78: 08005dad .word 0x08005dad
  12925. 8005d7c: 08005dad .word 0x08005dad
  12926. 8005d80: 08005dad .word 0x08005dad
  12927. 8005d84: 08005d89 .word 0x08005d89
  12928. {
  12929. case CRC_POLYLENGTH_7B:
  12930. if (msb >= HAL_CRC_LENGTH_7B)
  12931. 8005d88: 693b ldr r3, [r7, #16]
  12932. 8005d8a: 2b06 cmp r3, #6
  12933. 8005d8c: d913 bls.n 8005db6 <HAL_CRCEx_Polynomial_Set+0xe2>
  12934. {
  12935. status = HAL_ERROR;
  12936. 8005d8e: 2301 movs r3, #1
  12937. 8005d90: 75fb strb r3, [r7, #23]
  12938. }
  12939. break;
  12940. 8005d92: e010 b.n 8005db6 <HAL_CRCEx_Polynomial_Set+0xe2>
  12941. case CRC_POLYLENGTH_8B:
  12942. if (msb >= HAL_CRC_LENGTH_8B)
  12943. 8005d94: 693b ldr r3, [r7, #16]
  12944. 8005d96: 2b07 cmp r3, #7
  12945. 8005d98: d90f bls.n 8005dba <HAL_CRCEx_Polynomial_Set+0xe6>
  12946. {
  12947. status = HAL_ERROR;
  12948. 8005d9a: 2301 movs r3, #1
  12949. 8005d9c: 75fb strb r3, [r7, #23]
  12950. }
  12951. break;
  12952. 8005d9e: e00c b.n 8005dba <HAL_CRCEx_Polynomial_Set+0xe6>
  12953. case CRC_POLYLENGTH_16B:
  12954. if (msb >= HAL_CRC_LENGTH_16B)
  12955. 8005da0: 693b ldr r3, [r7, #16]
  12956. 8005da2: 2b0f cmp r3, #15
  12957. 8005da4: d90b bls.n 8005dbe <HAL_CRCEx_Polynomial_Set+0xea>
  12958. {
  12959. status = HAL_ERROR;
  12960. 8005da6: 2301 movs r3, #1
  12961. 8005da8: 75fb strb r3, [r7, #23]
  12962. }
  12963. break;
  12964. 8005daa: e008 b.n 8005dbe <HAL_CRCEx_Polynomial_Set+0xea>
  12965. case CRC_POLYLENGTH_32B:
  12966. /* no polynomial definition vs. polynomial length issue possible */
  12967. break;
  12968. default:
  12969. status = HAL_ERROR;
  12970. 8005dac: 2301 movs r3, #1
  12971. 8005dae: 75fb strb r3, [r7, #23]
  12972. break;
  12973. 8005db0: e006 b.n 8005dc0 <HAL_CRCEx_Polynomial_Set+0xec>
  12974. break;
  12975. 8005db2: bf00 nop
  12976. 8005db4: e004 b.n 8005dc0 <HAL_CRCEx_Polynomial_Set+0xec>
  12977. break;
  12978. 8005db6: bf00 nop
  12979. 8005db8: e002 b.n 8005dc0 <HAL_CRCEx_Polynomial_Set+0xec>
  12980. break;
  12981. 8005dba: bf00 nop
  12982. 8005dbc: e000 b.n 8005dc0 <HAL_CRCEx_Polynomial_Set+0xec>
  12983. break;
  12984. 8005dbe: bf00 nop
  12985. }
  12986. }
  12987. if (status == HAL_OK)
  12988. 8005dc0: 7dfb ldrb r3, [r7, #23]
  12989. 8005dc2: 2b00 cmp r3, #0
  12990. 8005dc4: d10d bne.n 8005de2 <HAL_CRCEx_Polynomial_Set+0x10e>
  12991. {
  12992. /* set generating polynomial */
  12993. WRITE_REG(hcrc->Instance->POL, Pol);
  12994. 8005dc6: 68fb ldr r3, [r7, #12]
  12995. 8005dc8: 681b ldr r3, [r3, #0]
  12996. 8005dca: 68ba ldr r2, [r7, #8]
  12997. 8005dcc: 615a str r2, [r3, #20]
  12998. /* set generating polynomial size */
  12999. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, PolyLength);
  13000. 8005dce: 68fb ldr r3, [r7, #12]
  13001. 8005dd0: 681b ldr r3, [r3, #0]
  13002. 8005dd2: 689b ldr r3, [r3, #8]
  13003. 8005dd4: f023 0118 bic.w r1, r3, #24
  13004. 8005dd8: 68fb ldr r3, [r7, #12]
  13005. 8005dda: 681b ldr r3, [r3, #0]
  13006. 8005ddc: 687a ldr r2, [r7, #4]
  13007. 8005dde: 430a orrs r2, r1
  13008. 8005de0: 609a str r2, [r3, #8]
  13009. }
  13010. /* Return function status */
  13011. return status;
  13012. 8005de2: 7dfb ldrb r3, [r7, #23]
  13013. }
  13014. 8005de4: 4618 mov r0, r3
  13015. 8005de6: 371c adds r7, #28
  13016. 8005de8: 46bd mov sp, r7
  13017. 8005dea: f85d 7b04 ldr.w r7, [sp], #4
  13018. 8005dee: 4770 bx lr
  13019. 08005df0 <HAL_DMA_Init>:
  13020. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  13021. * the configuration information for the specified DMA Stream.
  13022. * @retval HAL status
  13023. */
  13024. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  13025. {
  13026. 8005df0: b580 push {r7, lr}
  13027. 8005df2: b086 sub sp, #24
  13028. 8005df4: af00 add r7, sp, #0
  13029. 8005df6: 6078 str r0, [r7, #4]
  13030. uint32_t registerValue;
  13031. uint32_t tickstart = HAL_GetTick();
  13032. 8005df8: f7ff fc4c bl 8005694 <HAL_GetTick>
  13033. 8005dfc: 6138 str r0, [r7, #16]
  13034. DMA_Base_Registers *regs_dma;
  13035. BDMA_Base_Registers *regs_bdma;
  13036. /* Check the DMA peripheral handle */
  13037. if(hdma == NULL)
  13038. 8005dfe: 687b ldr r3, [r7, #4]
  13039. 8005e00: 2b00 cmp r3, #0
  13040. 8005e02: d101 bne.n 8005e08 <HAL_DMA_Init+0x18>
  13041. {
  13042. return HAL_ERROR;
  13043. 8005e04: 2301 movs r3, #1
  13044. 8005e06: e316 b.n 8006436 <HAL_DMA_Init+0x646>
  13045. assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment));
  13046. assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment));
  13047. assert_param(IS_DMA_MODE(hdma->Init.Mode));
  13048. assert_param(IS_DMA_PRIORITY(hdma->Init.Priority));
  13049. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  13050. 8005e08: 687b ldr r3, [r7, #4]
  13051. 8005e0a: 681b ldr r3, [r3, #0]
  13052. 8005e0c: 4a66 ldr r2, [pc, #408] @ (8005fa8 <HAL_DMA_Init+0x1b8>)
  13053. 8005e0e: 4293 cmp r3, r2
  13054. 8005e10: d04a beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13055. 8005e12: 687b ldr r3, [r7, #4]
  13056. 8005e14: 681b ldr r3, [r3, #0]
  13057. 8005e16: 4a65 ldr r2, [pc, #404] @ (8005fac <HAL_DMA_Init+0x1bc>)
  13058. 8005e18: 4293 cmp r3, r2
  13059. 8005e1a: d045 beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13060. 8005e1c: 687b ldr r3, [r7, #4]
  13061. 8005e1e: 681b ldr r3, [r3, #0]
  13062. 8005e20: 4a63 ldr r2, [pc, #396] @ (8005fb0 <HAL_DMA_Init+0x1c0>)
  13063. 8005e22: 4293 cmp r3, r2
  13064. 8005e24: d040 beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13065. 8005e26: 687b ldr r3, [r7, #4]
  13066. 8005e28: 681b ldr r3, [r3, #0]
  13067. 8005e2a: 4a62 ldr r2, [pc, #392] @ (8005fb4 <HAL_DMA_Init+0x1c4>)
  13068. 8005e2c: 4293 cmp r3, r2
  13069. 8005e2e: d03b beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13070. 8005e30: 687b ldr r3, [r7, #4]
  13071. 8005e32: 681b ldr r3, [r3, #0]
  13072. 8005e34: 4a60 ldr r2, [pc, #384] @ (8005fb8 <HAL_DMA_Init+0x1c8>)
  13073. 8005e36: 4293 cmp r3, r2
  13074. 8005e38: d036 beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13075. 8005e3a: 687b ldr r3, [r7, #4]
  13076. 8005e3c: 681b ldr r3, [r3, #0]
  13077. 8005e3e: 4a5f ldr r2, [pc, #380] @ (8005fbc <HAL_DMA_Init+0x1cc>)
  13078. 8005e40: 4293 cmp r3, r2
  13079. 8005e42: d031 beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13080. 8005e44: 687b ldr r3, [r7, #4]
  13081. 8005e46: 681b ldr r3, [r3, #0]
  13082. 8005e48: 4a5d ldr r2, [pc, #372] @ (8005fc0 <HAL_DMA_Init+0x1d0>)
  13083. 8005e4a: 4293 cmp r3, r2
  13084. 8005e4c: d02c beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13085. 8005e4e: 687b ldr r3, [r7, #4]
  13086. 8005e50: 681b ldr r3, [r3, #0]
  13087. 8005e52: 4a5c ldr r2, [pc, #368] @ (8005fc4 <HAL_DMA_Init+0x1d4>)
  13088. 8005e54: 4293 cmp r3, r2
  13089. 8005e56: d027 beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13090. 8005e58: 687b ldr r3, [r7, #4]
  13091. 8005e5a: 681b ldr r3, [r3, #0]
  13092. 8005e5c: 4a5a ldr r2, [pc, #360] @ (8005fc8 <HAL_DMA_Init+0x1d8>)
  13093. 8005e5e: 4293 cmp r3, r2
  13094. 8005e60: d022 beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13095. 8005e62: 687b ldr r3, [r7, #4]
  13096. 8005e64: 681b ldr r3, [r3, #0]
  13097. 8005e66: 4a59 ldr r2, [pc, #356] @ (8005fcc <HAL_DMA_Init+0x1dc>)
  13098. 8005e68: 4293 cmp r3, r2
  13099. 8005e6a: d01d beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13100. 8005e6c: 687b ldr r3, [r7, #4]
  13101. 8005e6e: 681b ldr r3, [r3, #0]
  13102. 8005e70: 4a57 ldr r2, [pc, #348] @ (8005fd0 <HAL_DMA_Init+0x1e0>)
  13103. 8005e72: 4293 cmp r3, r2
  13104. 8005e74: d018 beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13105. 8005e76: 687b ldr r3, [r7, #4]
  13106. 8005e78: 681b ldr r3, [r3, #0]
  13107. 8005e7a: 4a56 ldr r2, [pc, #344] @ (8005fd4 <HAL_DMA_Init+0x1e4>)
  13108. 8005e7c: 4293 cmp r3, r2
  13109. 8005e7e: d013 beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13110. 8005e80: 687b ldr r3, [r7, #4]
  13111. 8005e82: 681b ldr r3, [r3, #0]
  13112. 8005e84: 4a54 ldr r2, [pc, #336] @ (8005fd8 <HAL_DMA_Init+0x1e8>)
  13113. 8005e86: 4293 cmp r3, r2
  13114. 8005e88: d00e beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13115. 8005e8a: 687b ldr r3, [r7, #4]
  13116. 8005e8c: 681b ldr r3, [r3, #0]
  13117. 8005e8e: 4a53 ldr r2, [pc, #332] @ (8005fdc <HAL_DMA_Init+0x1ec>)
  13118. 8005e90: 4293 cmp r3, r2
  13119. 8005e92: d009 beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13120. 8005e94: 687b ldr r3, [r7, #4]
  13121. 8005e96: 681b ldr r3, [r3, #0]
  13122. 8005e98: 4a51 ldr r2, [pc, #324] @ (8005fe0 <HAL_DMA_Init+0x1f0>)
  13123. 8005e9a: 4293 cmp r3, r2
  13124. 8005e9c: d004 beq.n 8005ea8 <HAL_DMA_Init+0xb8>
  13125. 8005e9e: 687b ldr r3, [r7, #4]
  13126. 8005ea0: 681b ldr r3, [r3, #0]
  13127. 8005ea2: 4a50 ldr r2, [pc, #320] @ (8005fe4 <HAL_DMA_Init+0x1f4>)
  13128. 8005ea4: 4293 cmp r3, r2
  13129. 8005ea6: d101 bne.n 8005eac <HAL_DMA_Init+0xbc>
  13130. 8005ea8: 2301 movs r3, #1
  13131. 8005eaa: e000 b.n 8005eae <HAL_DMA_Init+0xbe>
  13132. 8005eac: 2300 movs r3, #0
  13133. 8005eae: 2b00 cmp r3, #0
  13134. 8005eb0: f000 813b beq.w 800612a <HAL_DMA_Init+0x33a>
  13135. assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst));
  13136. assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst));
  13137. }
  13138. /* Change DMA peripheral state */
  13139. hdma->State = HAL_DMA_STATE_BUSY;
  13140. 8005eb4: 687b ldr r3, [r7, #4]
  13141. 8005eb6: 2202 movs r2, #2
  13142. 8005eb8: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13143. /* Allocate lock resource */
  13144. __HAL_UNLOCK(hdma);
  13145. 8005ebc: 687b ldr r3, [r7, #4]
  13146. 8005ebe: 2200 movs r2, #0
  13147. 8005ec0: f883 2034 strb.w r2, [r3, #52] @ 0x34
  13148. /* Disable the peripheral */
  13149. __HAL_DMA_DISABLE(hdma);
  13150. 8005ec4: 687b ldr r3, [r7, #4]
  13151. 8005ec6: 681b ldr r3, [r3, #0]
  13152. 8005ec8: 4a37 ldr r2, [pc, #220] @ (8005fa8 <HAL_DMA_Init+0x1b8>)
  13153. 8005eca: 4293 cmp r3, r2
  13154. 8005ecc: d04a beq.n 8005f64 <HAL_DMA_Init+0x174>
  13155. 8005ece: 687b ldr r3, [r7, #4]
  13156. 8005ed0: 681b ldr r3, [r3, #0]
  13157. 8005ed2: 4a36 ldr r2, [pc, #216] @ (8005fac <HAL_DMA_Init+0x1bc>)
  13158. 8005ed4: 4293 cmp r3, r2
  13159. 8005ed6: d045 beq.n 8005f64 <HAL_DMA_Init+0x174>
  13160. 8005ed8: 687b ldr r3, [r7, #4]
  13161. 8005eda: 681b ldr r3, [r3, #0]
  13162. 8005edc: 4a34 ldr r2, [pc, #208] @ (8005fb0 <HAL_DMA_Init+0x1c0>)
  13163. 8005ede: 4293 cmp r3, r2
  13164. 8005ee0: d040 beq.n 8005f64 <HAL_DMA_Init+0x174>
  13165. 8005ee2: 687b ldr r3, [r7, #4]
  13166. 8005ee4: 681b ldr r3, [r3, #0]
  13167. 8005ee6: 4a33 ldr r2, [pc, #204] @ (8005fb4 <HAL_DMA_Init+0x1c4>)
  13168. 8005ee8: 4293 cmp r3, r2
  13169. 8005eea: d03b beq.n 8005f64 <HAL_DMA_Init+0x174>
  13170. 8005eec: 687b ldr r3, [r7, #4]
  13171. 8005eee: 681b ldr r3, [r3, #0]
  13172. 8005ef0: 4a31 ldr r2, [pc, #196] @ (8005fb8 <HAL_DMA_Init+0x1c8>)
  13173. 8005ef2: 4293 cmp r3, r2
  13174. 8005ef4: d036 beq.n 8005f64 <HAL_DMA_Init+0x174>
  13175. 8005ef6: 687b ldr r3, [r7, #4]
  13176. 8005ef8: 681b ldr r3, [r3, #0]
  13177. 8005efa: 4a30 ldr r2, [pc, #192] @ (8005fbc <HAL_DMA_Init+0x1cc>)
  13178. 8005efc: 4293 cmp r3, r2
  13179. 8005efe: d031 beq.n 8005f64 <HAL_DMA_Init+0x174>
  13180. 8005f00: 687b ldr r3, [r7, #4]
  13181. 8005f02: 681b ldr r3, [r3, #0]
  13182. 8005f04: 4a2e ldr r2, [pc, #184] @ (8005fc0 <HAL_DMA_Init+0x1d0>)
  13183. 8005f06: 4293 cmp r3, r2
  13184. 8005f08: d02c beq.n 8005f64 <HAL_DMA_Init+0x174>
  13185. 8005f0a: 687b ldr r3, [r7, #4]
  13186. 8005f0c: 681b ldr r3, [r3, #0]
  13187. 8005f0e: 4a2d ldr r2, [pc, #180] @ (8005fc4 <HAL_DMA_Init+0x1d4>)
  13188. 8005f10: 4293 cmp r3, r2
  13189. 8005f12: d027 beq.n 8005f64 <HAL_DMA_Init+0x174>
  13190. 8005f14: 687b ldr r3, [r7, #4]
  13191. 8005f16: 681b ldr r3, [r3, #0]
  13192. 8005f18: 4a2b ldr r2, [pc, #172] @ (8005fc8 <HAL_DMA_Init+0x1d8>)
  13193. 8005f1a: 4293 cmp r3, r2
  13194. 8005f1c: d022 beq.n 8005f64 <HAL_DMA_Init+0x174>
  13195. 8005f1e: 687b ldr r3, [r7, #4]
  13196. 8005f20: 681b ldr r3, [r3, #0]
  13197. 8005f22: 4a2a ldr r2, [pc, #168] @ (8005fcc <HAL_DMA_Init+0x1dc>)
  13198. 8005f24: 4293 cmp r3, r2
  13199. 8005f26: d01d beq.n 8005f64 <HAL_DMA_Init+0x174>
  13200. 8005f28: 687b ldr r3, [r7, #4]
  13201. 8005f2a: 681b ldr r3, [r3, #0]
  13202. 8005f2c: 4a28 ldr r2, [pc, #160] @ (8005fd0 <HAL_DMA_Init+0x1e0>)
  13203. 8005f2e: 4293 cmp r3, r2
  13204. 8005f30: d018 beq.n 8005f64 <HAL_DMA_Init+0x174>
  13205. 8005f32: 687b ldr r3, [r7, #4]
  13206. 8005f34: 681b ldr r3, [r3, #0]
  13207. 8005f36: 4a27 ldr r2, [pc, #156] @ (8005fd4 <HAL_DMA_Init+0x1e4>)
  13208. 8005f38: 4293 cmp r3, r2
  13209. 8005f3a: d013 beq.n 8005f64 <HAL_DMA_Init+0x174>
  13210. 8005f3c: 687b ldr r3, [r7, #4]
  13211. 8005f3e: 681b ldr r3, [r3, #0]
  13212. 8005f40: 4a25 ldr r2, [pc, #148] @ (8005fd8 <HAL_DMA_Init+0x1e8>)
  13213. 8005f42: 4293 cmp r3, r2
  13214. 8005f44: d00e beq.n 8005f64 <HAL_DMA_Init+0x174>
  13215. 8005f46: 687b ldr r3, [r7, #4]
  13216. 8005f48: 681b ldr r3, [r3, #0]
  13217. 8005f4a: 4a24 ldr r2, [pc, #144] @ (8005fdc <HAL_DMA_Init+0x1ec>)
  13218. 8005f4c: 4293 cmp r3, r2
  13219. 8005f4e: d009 beq.n 8005f64 <HAL_DMA_Init+0x174>
  13220. 8005f50: 687b ldr r3, [r7, #4]
  13221. 8005f52: 681b ldr r3, [r3, #0]
  13222. 8005f54: 4a22 ldr r2, [pc, #136] @ (8005fe0 <HAL_DMA_Init+0x1f0>)
  13223. 8005f56: 4293 cmp r3, r2
  13224. 8005f58: d004 beq.n 8005f64 <HAL_DMA_Init+0x174>
  13225. 8005f5a: 687b ldr r3, [r7, #4]
  13226. 8005f5c: 681b ldr r3, [r3, #0]
  13227. 8005f5e: 4a21 ldr r2, [pc, #132] @ (8005fe4 <HAL_DMA_Init+0x1f4>)
  13228. 8005f60: 4293 cmp r3, r2
  13229. 8005f62: d108 bne.n 8005f76 <HAL_DMA_Init+0x186>
  13230. 8005f64: 687b ldr r3, [r7, #4]
  13231. 8005f66: 681b ldr r3, [r3, #0]
  13232. 8005f68: 681a ldr r2, [r3, #0]
  13233. 8005f6a: 687b ldr r3, [r7, #4]
  13234. 8005f6c: 681b ldr r3, [r3, #0]
  13235. 8005f6e: f022 0201 bic.w r2, r2, #1
  13236. 8005f72: 601a str r2, [r3, #0]
  13237. 8005f74: e007 b.n 8005f86 <HAL_DMA_Init+0x196>
  13238. 8005f76: 687b ldr r3, [r7, #4]
  13239. 8005f78: 681b ldr r3, [r3, #0]
  13240. 8005f7a: 681a ldr r2, [r3, #0]
  13241. 8005f7c: 687b ldr r3, [r7, #4]
  13242. 8005f7e: 681b ldr r3, [r3, #0]
  13243. 8005f80: f022 0201 bic.w r2, r2, #1
  13244. 8005f84: 601a str r2, [r3, #0]
  13245. /* Check if the DMA Stream is effectively disabled */
  13246. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  13247. 8005f86: e02f b.n 8005fe8 <HAL_DMA_Init+0x1f8>
  13248. {
  13249. /* Check for the Timeout */
  13250. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  13251. 8005f88: f7ff fb84 bl 8005694 <HAL_GetTick>
  13252. 8005f8c: 4602 mov r2, r0
  13253. 8005f8e: 693b ldr r3, [r7, #16]
  13254. 8005f90: 1ad3 subs r3, r2, r3
  13255. 8005f92: 2b05 cmp r3, #5
  13256. 8005f94: d928 bls.n 8005fe8 <HAL_DMA_Init+0x1f8>
  13257. {
  13258. /* Update error code */
  13259. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  13260. 8005f96: 687b ldr r3, [r7, #4]
  13261. 8005f98: 2220 movs r2, #32
  13262. 8005f9a: 655a str r2, [r3, #84] @ 0x54
  13263. /* Change the DMA state */
  13264. hdma->State = HAL_DMA_STATE_ERROR;
  13265. 8005f9c: 687b ldr r3, [r7, #4]
  13266. 8005f9e: 2203 movs r2, #3
  13267. 8005fa0: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13268. return HAL_ERROR;
  13269. 8005fa4: 2301 movs r3, #1
  13270. 8005fa6: e246 b.n 8006436 <HAL_DMA_Init+0x646>
  13271. 8005fa8: 40020010 .word 0x40020010
  13272. 8005fac: 40020028 .word 0x40020028
  13273. 8005fb0: 40020040 .word 0x40020040
  13274. 8005fb4: 40020058 .word 0x40020058
  13275. 8005fb8: 40020070 .word 0x40020070
  13276. 8005fbc: 40020088 .word 0x40020088
  13277. 8005fc0: 400200a0 .word 0x400200a0
  13278. 8005fc4: 400200b8 .word 0x400200b8
  13279. 8005fc8: 40020410 .word 0x40020410
  13280. 8005fcc: 40020428 .word 0x40020428
  13281. 8005fd0: 40020440 .word 0x40020440
  13282. 8005fd4: 40020458 .word 0x40020458
  13283. 8005fd8: 40020470 .word 0x40020470
  13284. 8005fdc: 40020488 .word 0x40020488
  13285. 8005fe0: 400204a0 .word 0x400204a0
  13286. 8005fe4: 400204b8 .word 0x400204b8
  13287. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  13288. 8005fe8: 687b ldr r3, [r7, #4]
  13289. 8005fea: 681b ldr r3, [r3, #0]
  13290. 8005fec: 681b ldr r3, [r3, #0]
  13291. 8005fee: f003 0301 and.w r3, r3, #1
  13292. 8005ff2: 2b00 cmp r3, #0
  13293. 8005ff4: d1c8 bne.n 8005f88 <HAL_DMA_Init+0x198>
  13294. }
  13295. }
  13296. /* Get the CR register value */
  13297. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->CR;
  13298. 8005ff6: 687b ldr r3, [r7, #4]
  13299. 8005ff8: 681b ldr r3, [r3, #0]
  13300. 8005ffa: 681b ldr r3, [r3, #0]
  13301. 8005ffc: 617b str r3, [r7, #20]
  13302. /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */
  13303. registerValue &= ((uint32_t)~(DMA_SxCR_MBURST | DMA_SxCR_PBURST | \
  13304. 8005ffe: 697a ldr r2, [r7, #20]
  13305. 8006000: 4b83 ldr r3, [pc, #524] @ (8006210 <HAL_DMA_Init+0x420>)
  13306. 8006002: 4013 ands r3, r2
  13307. 8006004: 617b str r3, [r7, #20]
  13308. DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \
  13309. DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \
  13310. DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM));
  13311. /* Prepare the DMA Stream configuration */
  13312. registerValue |= hdma->Init.Direction |
  13313. 8006006: 687b ldr r3, [r7, #4]
  13314. 8006008: 689a ldr r2, [r3, #8]
  13315. hdma->Init.PeriphInc | hdma->Init.MemInc |
  13316. 800600a: 687b ldr r3, [r7, #4]
  13317. 800600c: 68db ldr r3, [r3, #12]
  13318. registerValue |= hdma->Init.Direction |
  13319. 800600e: 431a orrs r2, r3
  13320. hdma->Init.PeriphInc | hdma->Init.MemInc |
  13321. 8006010: 687b ldr r3, [r7, #4]
  13322. 8006012: 691b ldr r3, [r3, #16]
  13323. 8006014: 431a orrs r2, r3
  13324. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  13325. 8006016: 687b ldr r3, [r7, #4]
  13326. 8006018: 695b ldr r3, [r3, #20]
  13327. hdma->Init.PeriphInc | hdma->Init.MemInc |
  13328. 800601a: 431a orrs r2, r3
  13329. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  13330. 800601c: 687b ldr r3, [r7, #4]
  13331. 800601e: 699b ldr r3, [r3, #24]
  13332. 8006020: 431a orrs r2, r3
  13333. hdma->Init.Mode | hdma->Init.Priority;
  13334. 8006022: 687b ldr r3, [r7, #4]
  13335. 8006024: 69db ldr r3, [r3, #28]
  13336. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  13337. 8006026: 431a orrs r2, r3
  13338. hdma->Init.Mode | hdma->Init.Priority;
  13339. 8006028: 687b ldr r3, [r7, #4]
  13340. 800602a: 6a1b ldr r3, [r3, #32]
  13341. 800602c: 4313 orrs r3, r2
  13342. registerValue |= hdma->Init.Direction |
  13343. 800602e: 697a ldr r2, [r7, #20]
  13344. 8006030: 4313 orrs r3, r2
  13345. 8006032: 617b str r3, [r7, #20]
  13346. /* the Memory burst and peripheral burst are not used when the FIFO is disabled */
  13347. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  13348. 8006034: 687b ldr r3, [r7, #4]
  13349. 8006036: 6a5b ldr r3, [r3, #36] @ 0x24
  13350. 8006038: 2b04 cmp r3, #4
  13351. 800603a: d107 bne.n 800604c <HAL_DMA_Init+0x25c>
  13352. {
  13353. /* Get memory burst and peripheral burst */
  13354. registerValue |= hdma->Init.MemBurst | hdma->Init.PeriphBurst;
  13355. 800603c: 687b ldr r3, [r7, #4]
  13356. 800603e: 6ada ldr r2, [r3, #44] @ 0x2c
  13357. 8006040: 687b ldr r3, [r7, #4]
  13358. 8006042: 6b1b ldr r3, [r3, #48] @ 0x30
  13359. 8006044: 4313 orrs r3, r2
  13360. 8006046: 697a ldr r2, [r7, #20]
  13361. 8006048: 4313 orrs r3, r2
  13362. 800604a: 617b str r3, [r7, #20]
  13363. }
  13364. /* Work around for Errata 2.22: UART/USART- DMA transfer lock: DMA stream could be
  13365. lock when transferring data to/from USART/UART */
  13366. #if (STM32H7_DEV_ID == 0x450UL)
  13367. if((DBGMCU->IDCODE & 0xFFFF0000U) >= 0x20000000U)
  13368. 800604c: 4b71 ldr r3, [pc, #452] @ (8006214 <HAL_DMA_Init+0x424>)
  13369. 800604e: 681a ldr r2, [r3, #0]
  13370. 8006050: 4b71 ldr r3, [pc, #452] @ (8006218 <HAL_DMA_Init+0x428>)
  13371. 8006052: 4013 ands r3, r2
  13372. 8006054: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  13373. 8006058: d328 bcc.n 80060ac <HAL_DMA_Init+0x2bc>
  13374. {
  13375. #endif /* STM32H7_DEV_ID == 0x450UL */
  13376. if(IS_DMA_UART_USART_REQUEST(hdma->Init.Request) != 0U)
  13377. 800605a: 687b ldr r3, [r7, #4]
  13378. 800605c: 685b ldr r3, [r3, #4]
  13379. 800605e: 2b28 cmp r3, #40 @ 0x28
  13380. 8006060: d903 bls.n 800606a <HAL_DMA_Init+0x27a>
  13381. 8006062: 687b ldr r3, [r7, #4]
  13382. 8006064: 685b ldr r3, [r3, #4]
  13383. 8006066: 2b2e cmp r3, #46 @ 0x2e
  13384. 8006068: d917 bls.n 800609a <HAL_DMA_Init+0x2aa>
  13385. 800606a: 687b ldr r3, [r7, #4]
  13386. 800606c: 685b ldr r3, [r3, #4]
  13387. 800606e: 2b3e cmp r3, #62 @ 0x3e
  13388. 8006070: d903 bls.n 800607a <HAL_DMA_Init+0x28a>
  13389. 8006072: 687b ldr r3, [r7, #4]
  13390. 8006074: 685b ldr r3, [r3, #4]
  13391. 8006076: 2b42 cmp r3, #66 @ 0x42
  13392. 8006078: d90f bls.n 800609a <HAL_DMA_Init+0x2aa>
  13393. 800607a: 687b ldr r3, [r7, #4]
  13394. 800607c: 685b ldr r3, [r3, #4]
  13395. 800607e: 2b46 cmp r3, #70 @ 0x46
  13396. 8006080: d903 bls.n 800608a <HAL_DMA_Init+0x29a>
  13397. 8006082: 687b ldr r3, [r7, #4]
  13398. 8006084: 685b ldr r3, [r3, #4]
  13399. 8006086: 2b48 cmp r3, #72 @ 0x48
  13400. 8006088: d907 bls.n 800609a <HAL_DMA_Init+0x2aa>
  13401. 800608a: 687b ldr r3, [r7, #4]
  13402. 800608c: 685b ldr r3, [r3, #4]
  13403. 800608e: 2b4e cmp r3, #78 @ 0x4e
  13404. 8006090: d905 bls.n 800609e <HAL_DMA_Init+0x2ae>
  13405. 8006092: 687b ldr r3, [r7, #4]
  13406. 8006094: 685b ldr r3, [r3, #4]
  13407. 8006096: 2b52 cmp r3, #82 @ 0x52
  13408. 8006098: d801 bhi.n 800609e <HAL_DMA_Init+0x2ae>
  13409. 800609a: 2301 movs r3, #1
  13410. 800609c: e000 b.n 80060a0 <HAL_DMA_Init+0x2b0>
  13411. 800609e: 2300 movs r3, #0
  13412. 80060a0: 2b00 cmp r3, #0
  13413. 80060a2: d003 beq.n 80060ac <HAL_DMA_Init+0x2bc>
  13414. {
  13415. registerValue |= DMA_SxCR_TRBUFF;
  13416. 80060a4: 697b ldr r3, [r7, #20]
  13417. 80060a6: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  13418. 80060aa: 617b str r3, [r7, #20]
  13419. #if (STM32H7_DEV_ID == 0x450UL)
  13420. }
  13421. #endif /* STM32H7_DEV_ID == 0x450UL */
  13422. /* Write to DMA Stream CR register */
  13423. ((DMA_Stream_TypeDef *)hdma->Instance)->CR = registerValue;
  13424. 80060ac: 687b ldr r3, [r7, #4]
  13425. 80060ae: 681b ldr r3, [r3, #0]
  13426. 80060b0: 697a ldr r2, [r7, #20]
  13427. 80060b2: 601a str r2, [r3, #0]
  13428. /* Get the FCR register value */
  13429. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->FCR;
  13430. 80060b4: 687b ldr r3, [r7, #4]
  13431. 80060b6: 681b ldr r3, [r3, #0]
  13432. 80060b8: 695b ldr r3, [r3, #20]
  13433. 80060ba: 617b str r3, [r7, #20]
  13434. /* Clear Direct mode and FIFO threshold bits */
  13435. registerValue &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH);
  13436. 80060bc: 697b ldr r3, [r7, #20]
  13437. 80060be: f023 0307 bic.w r3, r3, #7
  13438. 80060c2: 617b str r3, [r7, #20]
  13439. /* Prepare the DMA Stream FIFO configuration */
  13440. registerValue |= hdma->Init.FIFOMode;
  13441. 80060c4: 687b ldr r3, [r7, #4]
  13442. 80060c6: 6a5b ldr r3, [r3, #36] @ 0x24
  13443. 80060c8: 697a ldr r2, [r7, #20]
  13444. 80060ca: 4313 orrs r3, r2
  13445. 80060cc: 617b str r3, [r7, #20]
  13446. /* the FIFO threshold is not used when the FIFO mode is disabled */
  13447. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  13448. 80060ce: 687b ldr r3, [r7, #4]
  13449. 80060d0: 6a5b ldr r3, [r3, #36] @ 0x24
  13450. 80060d2: 2b04 cmp r3, #4
  13451. 80060d4: d117 bne.n 8006106 <HAL_DMA_Init+0x316>
  13452. {
  13453. /* Get the FIFO threshold */
  13454. registerValue |= hdma->Init.FIFOThreshold;
  13455. 80060d6: 687b ldr r3, [r7, #4]
  13456. 80060d8: 6a9b ldr r3, [r3, #40] @ 0x28
  13457. 80060da: 697a ldr r2, [r7, #20]
  13458. 80060dc: 4313 orrs r3, r2
  13459. 80060de: 617b str r3, [r7, #20]
  13460. /* Check compatibility between FIFO threshold level and size of the memory burst */
  13461. /* for INCR4, INCR8, INCR16 */
  13462. if(hdma->Init.MemBurst != DMA_MBURST_SINGLE)
  13463. 80060e0: 687b ldr r3, [r7, #4]
  13464. 80060e2: 6adb ldr r3, [r3, #44] @ 0x2c
  13465. 80060e4: 2b00 cmp r3, #0
  13466. 80060e6: d00e beq.n 8006106 <HAL_DMA_Init+0x316>
  13467. {
  13468. if (DMA_CheckFifoParam(hdma) != HAL_OK)
  13469. 80060e8: 6878 ldr r0, [r7, #4]
  13470. 80060ea: f001 ff1d bl 8007f28 <DMA_CheckFifoParam>
  13471. 80060ee: 4603 mov r3, r0
  13472. 80060f0: 2b00 cmp r3, #0
  13473. 80060f2: d008 beq.n 8006106 <HAL_DMA_Init+0x316>
  13474. {
  13475. /* Update error code */
  13476. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  13477. 80060f4: 687b ldr r3, [r7, #4]
  13478. 80060f6: 2240 movs r2, #64 @ 0x40
  13479. 80060f8: 655a str r2, [r3, #84] @ 0x54
  13480. /* Change the DMA state */
  13481. hdma->State = HAL_DMA_STATE_READY;
  13482. 80060fa: 687b ldr r3, [r7, #4]
  13483. 80060fc: 2201 movs r2, #1
  13484. 80060fe: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13485. return HAL_ERROR;
  13486. 8006102: 2301 movs r3, #1
  13487. 8006104: e197 b.n 8006436 <HAL_DMA_Init+0x646>
  13488. }
  13489. }
  13490. }
  13491. /* Write to DMA Stream FCR */
  13492. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = registerValue;
  13493. 8006106: 687b ldr r3, [r7, #4]
  13494. 8006108: 681b ldr r3, [r3, #0]
  13495. 800610a: 697a ldr r2, [r7, #20]
  13496. 800610c: 615a str r2, [r3, #20]
  13497. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  13498. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  13499. regs_dma = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  13500. 800610e: 6878 ldr r0, [r7, #4]
  13501. 8006110: f001 fe58 bl 8007dc4 <DMA_CalcBaseAndBitshift>
  13502. 8006114: 4603 mov r3, r0
  13503. 8006116: 60bb str r3, [r7, #8]
  13504. /* Clear all interrupt flags */
  13505. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  13506. 8006118: 687b ldr r3, [r7, #4]
  13507. 800611a: 6ddb ldr r3, [r3, #92] @ 0x5c
  13508. 800611c: f003 031f and.w r3, r3, #31
  13509. 8006120: 223f movs r2, #63 @ 0x3f
  13510. 8006122: 409a lsls r2, r3
  13511. 8006124: 68bb ldr r3, [r7, #8]
  13512. 8006126: 609a str r2, [r3, #8]
  13513. 8006128: e0cd b.n 80062c6 <HAL_DMA_Init+0x4d6>
  13514. }
  13515. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  13516. 800612a: 687b ldr r3, [r7, #4]
  13517. 800612c: 681b ldr r3, [r3, #0]
  13518. 800612e: 4a3b ldr r2, [pc, #236] @ (800621c <HAL_DMA_Init+0x42c>)
  13519. 8006130: 4293 cmp r3, r2
  13520. 8006132: d022 beq.n 800617a <HAL_DMA_Init+0x38a>
  13521. 8006134: 687b ldr r3, [r7, #4]
  13522. 8006136: 681b ldr r3, [r3, #0]
  13523. 8006138: 4a39 ldr r2, [pc, #228] @ (8006220 <HAL_DMA_Init+0x430>)
  13524. 800613a: 4293 cmp r3, r2
  13525. 800613c: d01d beq.n 800617a <HAL_DMA_Init+0x38a>
  13526. 800613e: 687b ldr r3, [r7, #4]
  13527. 8006140: 681b ldr r3, [r3, #0]
  13528. 8006142: 4a38 ldr r2, [pc, #224] @ (8006224 <HAL_DMA_Init+0x434>)
  13529. 8006144: 4293 cmp r3, r2
  13530. 8006146: d018 beq.n 800617a <HAL_DMA_Init+0x38a>
  13531. 8006148: 687b ldr r3, [r7, #4]
  13532. 800614a: 681b ldr r3, [r3, #0]
  13533. 800614c: 4a36 ldr r2, [pc, #216] @ (8006228 <HAL_DMA_Init+0x438>)
  13534. 800614e: 4293 cmp r3, r2
  13535. 8006150: d013 beq.n 800617a <HAL_DMA_Init+0x38a>
  13536. 8006152: 687b ldr r3, [r7, #4]
  13537. 8006154: 681b ldr r3, [r3, #0]
  13538. 8006156: 4a35 ldr r2, [pc, #212] @ (800622c <HAL_DMA_Init+0x43c>)
  13539. 8006158: 4293 cmp r3, r2
  13540. 800615a: d00e beq.n 800617a <HAL_DMA_Init+0x38a>
  13541. 800615c: 687b ldr r3, [r7, #4]
  13542. 800615e: 681b ldr r3, [r3, #0]
  13543. 8006160: 4a33 ldr r2, [pc, #204] @ (8006230 <HAL_DMA_Init+0x440>)
  13544. 8006162: 4293 cmp r3, r2
  13545. 8006164: d009 beq.n 800617a <HAL_DMA_Init+0x38a>
  13546. 8006166: 687b ldr r3, [r7, #4]
  13547. 8006168: 681b ldr r3, [r3, #0]
  13548. 800616a: 4a32 ldr r2, [pc, #200] @ (8006234 <HAL_DMA_Init+0x444>)
  13549. 800616c: 4293 cmp r3, r2
  13550. 800616e: d004 beq.n 800617a <HAL_DMA_Init+0x38a>
  13551. 8006170: 687b ldr r3, [r7, #4]
  13552. 8006172: 681b ldr r3, [r3, #0]
  13553. 8006174: 4a30 ldr r2, [pc, #192] @ (8006238 <HAL_DMA_Init+0x448>)
  13554. 8006176: 4293 cmp r3, r2
  13555. 8006178: d101 bne.n 800617e <HAL_DMA_Init+0x38e>
  13556. 800617a: 2301 movs r3, #1
  13557. 800617c: e000 b.n 8006180 <HAL_DMA_Init+0x390>
  13558. 800617e: 2300 movs r3, #0
  13559. 8006180: 2b00 cmp r3, #0
  13560. 8006182: f000 8097 beq.w 80062b4 <HAL_DMA_Init+0x4c4>
  13561. {
  13562. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  13563. 8006186: 687b ldr r3, [r7, #4]
  13564. 8006188: 681b ldr r3, [r3, #0]
  13565. 800618a: 4a24 ldr r2, [pc, #144] @ (800621c <HAL_DMA_Init+0x42c>)
  13566. 800618c: 4293 cmp r3, r2
  13567. 800618e: d021 beq.n 80061d4 <HAL_DMA_Init+0x3e4>
  13568. 8006190: 687b ldr r3, [r7, #4]
  13569. 8006192: 681b ldr r3, [r3, #0]
  13570. 8006194: 4a22 ldr r2, [pc, #136] @ (8006220 <HAL_DMA_Init+0x430>)
  13571. 8006196: 4293 cmp r3, r2
  13572. 8006198: d01c beq.n 80061d4 <HAL_DMA_Init+0x3e4>
  13573. 800619a: 687b ldr r3, [r7, #4]
  13574. 800619c: 681b ldr r3, [r3, #0]
  13575. 800619e: 4a21 ldr r2, [pc, #132] @ (8006224 <HAL_DMA_Init+0x434>)
  13576. 80061a0: 4293 cmp r3, r2
  13577. 80061a2: d017 beq.n 80061d4 <HAL_DMA_Init+0x3e4>
  13578. 80061a4: 687b ldr r3, [r7, #4]
  13579. 80061a6: 681b ldr r3, [r3, #0]
  13580. 80061a8: 4a1f ldr r2, [pc, #124] @ (8006228 <HAL_DMA_Init+0x438>)
  13581. 80061aa: 4293 cmp r3, r2
  13582. 80061ac: d012 beq.n 80061d4 <HAL_DMA_Init+0x3e4>
  13583. 80061ae: 687b ldr r3, [r7, #4]
  13584. 80061b0: 681b ldr r3, [r3, #0]
  13585. 80061b2: 4a1e ldr r2, [pc, #120] @ (800622c <HAL_DMA_Init+0x43c>)
  13586. 80061b4: 4293 cmp r3, r2
  13587. 80061b6: d00d beq.n 80061d4 <HAL_DMA_Init+0x3e4>
  13588. 80061b8: 687b ldr r3, [r7, #4]
  13589. 80061ba: 681b ldr r3, [r3, #0]
  13590. 80061bc: 4a1c ldr r2, [pc, #112] @ (8006230 <HAL_DMA_Init+0x440>)
  13591. 80061be: 4293 cmp r3, r2
  13592. 80061c0: d008 beq.n 80061d4 <HAL_DMA_Init+0x3e4>
  13593. 80061c2: 687b ldr r3, [r7, #4]
  13594. 80061c4: 681b ldr r3, [r3, #0]
  13595. 80061c6: 4a1b ldr r2, [pc, #108] @ (8006234 <HAL_DMA_Init+0x444>)
  13596. 80061c8: 4293 cmp r3, r2
  13597. 80061ca: d003 beq.n 80061d4 <HAL_DMA_Init+0x3e4>
  13598. 80061cc: 687b ldr r3, [r7, #4]
  13599. 80061ce: 681b ldr r3, [r3, #0]
  13600. 80061d0: 4a19 ldr r2, [pc, #100] @ (8006238 <HAL_DMA_Init+0x448>)
  13601. 80061d2: 4293 cmp r3, r2
  13602. /* Check the request parameter */
  13603. assert_param(IS_BDMA_REQUEST(hdma->Init.Request));
  13604. }
  13605. /* Change DMA peripheral state */
  13606. hdma->State = HAL_DMA_STATE_BUSY;
  13607. 80061d4: 687b ldr r3, [r7, #4]
  13608. 80061d6: 2202 movs r2, #2
  13609. 80061d8: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13610. /* Allocate lock resource */
  13611. __HAL_UNLOCK(hdma);
  13612. 80061dc: 687b ldr r3, [r7, #4]
  13613. 80061de: 2200 movs r2, #0
  13614. 80061e0: f883 2034 strb.w r2, [r3, #52] @ 0x34
  13615. /* Get the CR register value */
  13616. registerValue = ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR;
  13617. 80061e4: 687b ldr r3, [r7, #4]
  13618. 80061e6: 681b ldr r3, [r3, #0]
  13619. 80061e8: 681b ldr r3, [r3, #0]
  13620. 80061ea: 617b str r3, [r7, #20]
  13621. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, MEM2MEM, DBM and CT bits */
  13622. registerValue &= ((uint32_t)~(BDMA_CCR_PL | BDMA_CCR_MSIZE | BDMA_CCR_PSIZE | \
  13623. 80061ec: 697a ldr r2, [r7, #20]
  13624. 80061ee: 4b13 ldr r3, [pc, #76] @ (800623c <HAL_DMA_Init+0x44c>)
  13625. 80061f0: 4013 ands r3, r2
  13626. 80061f2: 617b str r3, [r7, #20]
  13627. BDMA_CCR_MINC | BDMA_CCR_PINC | BDMA_CCR_CIRC | \
  13628. BDMA_CCR_DIR | BDMA_CCR_MEM2MEM | BDMA_CCR_DBM | \
  13629. BDMA_CCR_CT));
  13630. /* Prepare the DMA Channel configuration */
  13631. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  13632. 80061f4: 687b ldr r3, [r7, #4]
  13633. 80061f6: 689b ldr r3, [r3, #8]
  13634. 80061f8: 2b40 cmp r3, #64 @ 0x40
  13635. 80061fa: d021 beq.n 8006240 <HAL_DMA_Init+0x450>
  13636. 80061fc: 687b ldr r3, [r7, #4]
  13637. 80061fe: 689b ldr r3, [r3, #8]
  13638. 8006200: 2b80 cmp r3, #128 @ 0x80
  13639. 8006202: d102 bne.n 800620a <HAL_DMA_Init+0x41a>
  13640. 8006204: f44f 4380 mov.w r3, #16384 @ 0x4000
  13641. 8006208: e01b b.n 8006242 <HAL_DMA_Init+0x452>
  13642. 800620a: 2300 movs r3, #0
  13643. 800620c: e019 b.n 8006242 <HAL_DMA_Init+0x452>
  13644. 800620e: bf00 nop
  13645. 8006210: fe10803f .word 0xfe10803f
  13646. 8006214: 5c001000 .word 0x5c001000
  13647. 8006218: ffff0000 .word 0xffff0000
  13648. 800621c: 58025408 .word 0x58025408
  13649. 8006220: 5802541c .word 0x5802541c
  13650. 8006224: 58025430 .word 0x58025430
  13651. 8006228: 58025444 .word 0x58025444
  13652. 800622c: 58025458 .word 0x58025458
  13653. 8006230: 5802546c .word 0x5802546c
  13654. 8006234: 58025480 .word 0x58025480
  13655. 8006238: 58025494 .word 0x58025494
  13656. 800623c: fffe000f .word 0xfffe000f
  13657. 8006240: 2310 movs r3, #16
  13658. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  13659. 8006242: 687a ldr r2, [r7, #4]
  13660. 8006244: 68d2 ldr r2, [r2, #12]
  13661. 8006246: 08d2 lsrs r2, r2, #3
  13662. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  13663. 8006248: 431a orrs r2, r3
  13664. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  13665. 800624a: 687b ldr r3, [r7, #4]
  13666. 800624c: 691b ldr r3, [r3, #16]
  13667. 800624e: 08db lsrs r3, r3, #3
  13668. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  13669. 8006250: 431a orrs r2, r3
  13670. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  13671. 8006252: 687b ldr r3, [r7, #4]
  13672. 8006254: 695b ldr r3, [r3, #20]
  13673. 8006256: 08db lsrs r3, r3, #3
  13674. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  13675. 8006258: 431a orrs r2, r3
  13676. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  13677. 800625a: 687b ldr r3, [r7, #4]
  13678. 800625c: 699b ldr r3, [r3, #24]
  13679. 800625e: 08db lsrs r3, r3, #3
  13680. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  13681. 8006260: 431a orrs r2, r3
  13682. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  13683. 8006262: 687b ldr r3, [r7, #4]
  13684. 8006264: 69db ldr r3, [r3, #28]
  13685. 8006266: 08db lsrs r3, r3, #3
  13686. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  13687. 8006268: 431a orrs r2, r3
  13688. DMA_TO_BDMA_PRIORITY(hdma->Init.Priority);
  13689. 800626a: 687b ldr r3, [r7, #4]
  13690. 800626c: 6a1b ldr r3, [r3, #32]
  13691. 800626e: 091b lsrs r3, r3, #4
  13692. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  13693. 8006270: 4313 orrs r3, r2
  13694. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  13695. 8006272: 697a ldr r2, [r7, #20]
  13696. 8006274: 4313 orrs r3, r2
  13697. 8006276: 617b str r3, [r7, #20]
  13698. /* Write to DMA Channel CR register */
  13699. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = registerValue;
  13700. 8006278: 687b ldr r3, [r7, #4]
  13701. 800627a: 681b ldr r3, [r3, #0]
  13702. 800627c: 697a ldr r2, [r7, #20]
  13703. 800627e: 601a str r2, [r3, #0]
  13704. /* calculation of the channel index */
  13705. hdma->StreamIndex = (((uint32_t)((uint32_t*)hdma->Instance) - (uint32_t)BDMA_Channel0) / ((uint32_t)BDMA_Channel1 - (uint32_t)BDMA_Channel0)) << 2U;
  13706. 8006280: 687b ldr r3, [r7, #4]
  13707. 8006282: 681b ldr r3, [r3, #0]
  13708. 8006284: 461a mov r2, r3
  13709. 8006286: 4b6e ldr r3, [pc, #440] @ (8006440 <HAL_DMA_Init+0x650>)
  13710. 8006288: 4413 add r3, r2
  13711. 800628a: 4a6e ldr r2, [pc, #440] @ (8006444 <HAL_DMA_Init+0x654>)
  13712. 800628c: fba2 2303 umull r2, r3, r2, r3
  13713. 8006290: 091b lsrs r3, r3, #4
  13714. 8006292: 009a lsls r2, r3, #2
  13715. 8006294: 687b ldr r3, [r7, #4]
  13716. 8006296: 65da str r2, [r3, #92] @ 0x5c
  13717. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  13718. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  13719. regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  13720. 8006298: 6878 ldr r0, [r7, #4]
  13721. 800629a: f001 fd93 bl 8007dc4 <DMA_CalcBaseAndBitshift>
  13722. 800629e: 4603 mov r3, r0
  13723. 80062a0: 60fb str r3, [r7, #12]
  13724. /* Clear all interrupt flags */
  13725. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  13726. 80062a2: 687b ldr r3, [r7, #4]
  13727. 80062a4: 6ddb ldr r3, [r3, #92] @ 0x5c
  13728. 80062a6: f003 031f and.w r3, r3, #31
  13729. 80062aa: 2201 movs r2, #1
  13730. 80062ac: 409a lsls r2, r3
  13731. 80062ae: 68fb ldr r3, [r7, #12]
  13732. 80062b0: 605a str r2, [r3, #4]
  13733. 80062b2: e008 b.n 80062c6 <HAL_DMA_Init+0x4d6>
  13734. }
  13735. else
  13736. {
  13737. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  13738. 80062b4: 687b ldr r3, [r7, #4]
  13739. 80062b6: 2240 movs r2, #64 @ 0x40
  13740. 80062b8: 655a str r2, [r3, #84] @ 0x54
  13741. hdma->State = HAL_DMA_STATE_ERROR;
  13742. 80062ba: 687b ldr r3, [r7, #4]
  13743. 80062bc: 2203 movs r2, #3
  13744. 80062be: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13745. return HAL_ERROR;
  13746. 80062c2: 2301 movs r3, #1
  13747. 80062c4: e0b7 b.n 8006436 <HAL_DMA_Init+0x646>
  13748. }
  13749. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  13750. 80062c6: 687b ldr r3, [r7, #4]
  13751. 80062c8: 681b ldr r3, [r3, #0]
  13752. 80062ca: 4a5f ldr r2, [pc, #380] @ (8006448 <HAL_DMA_Init+0x658>)
  13753. 80062cc: 4293 cmp r3, r2
  13754. 80062ce: d072 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13755. 80062d0: 687b ldr r3, [r7, #4]
  13756. 80062d2: 681b ldr r3, [r3, #0]
  13757. 80062d4: 4a5d ldr r2, [pc, #372] @ (800644c <HAL_DMA_Init+0x65c>)
  13758. 80062d6: 4293 cmp r3, r2
  13759. 80062d8: d06d beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13760. 80062da: 687b ldr r3, [r7, #4]
  13761. 80062dc: 681b ldr r3, [r3, #0]
  13762. 80062de: 4a5c ldr r2, [pc, #368] @ (8006450 <HAL_DMA_Init+0x660>)
  13763. 80062e0: 4293 cmp r3, r2
  13764. 80062e2: d068 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13765. 80062e4: 687b ldr r3, [r7, #4]
  13766. 80062e6: 681b ldr r3, [r3, #0]
  13767. 80062e8: 4a5a ldr r2, [pc, #360] @ (8006454 <HAL_DMA_Init+0x664>)
  13768. 80062ea: 4293 cmp r3, r2
  13769. 80062ec: d063 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13770. 80062ee: 687b ldr r3, [r7, #4]
  13771. 80062f0: 681b ldr r3, [r3, #0]
  13772. 80062f2: 4a59 ldr r2, [pc, #356] @ (8006458 <HAL_DMA_Init+0x668>)
  13773. 80062f4: 4293 cmp r3, r2
  13774. 80062f6: d05e beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13775. 80062f8: 687b ldr r3, [r7, #4]
  13776. 80062fa: 681b ldr r3, [r3, #0]
  13777. 80062fc: 4a57 ldr r2, [pc, #348] @ (800645c <HAL_DMA_Init+0x66c>)
  13778. 80062fe: 4293 cmp r3, r2
  13779. 8006300: d059 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13780. 8006302: 687b ldr r3, [r7, #4]
  13781. 8006304: 681b ldr r3, [r3, #0]
  13782. 8006306: 4a56 ldr r2, [pc, #344] @ (8006460 <HAL_DMA_Init+0x670>)
  13783. 8006308: 4293 cmp r3, r2
  13784. 800630a: d054 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13785. 800630c: 687b ldr r3, [r7, #4]
  13786. 800630e: 681b ldr r3, [r3, #0]
  13787. 8006310: 4a54 ldr r2, [pc, #336] @ (8006464 <HAL_DMA_Init+0x674>)
  13788. 8006312: 4293 cmp r3, r2
  13789. 8006314: d04f beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13790. 8006316: 687b ldr r3, [r7, #4]
  13791. 8006318: 681b ldr r3, [r3, #0]
  13792. 800631a: 4a53 ldr r2, [pc, #332] @ (8006468 <HAL_DMA_Init+0x678>)
  13793. 800631c: 4293 cmp r3, r2
  13794. 800631e: d04a beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13795. 8006320: 687b ldr r3, [r7, #4]
  13796. 8006322: 681b ldr r3, [r3, #0]
  13797. 8006324: 4a51 ldr r2, [pc, #324] @ (800646c <HAL_DMA_Init+0x67c>)
  13798. 8006326: 4293 cmp r3, r2
  13799. 8006328: d045 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13800. 800632a: 687b ldr r3, [r7, #4]
  13801. 800632c: 681b ldr r3, [r3, #0]
  13802. 800632e: 4a50 ldr r2, [pc, #320] @ (8006470 <HAL_DMA_Init+0x680>)
  13803. 8006330: 4293 cmp r3, r2
  13804. 8006332: d040 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13805. 8006334: 687b ldr r3, [r7, #4]
  13806. 8006336: 681b ldr r3, [r3, #0]
  13807. 8006338: 4a4e ldr r2, [pc, #312] @ (8006474 <HAL_DMA_Init+0x684>)
  13808. 800633a: 4293 cmp r3, r2
  13809. 800633c: d03b beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13810. 800633e: 687b ldr r3, [r7, #4]
  13811. 8006340: 681b ldr r3, [r3, #0]
  13812. 8006342: 4a4d ldr r2, [pc, #308] @ (8006478 <HAL_DMA_Init+0x688>)
  13813. 8006344: 4293 cmp r3, r2
  13814. 8006346: d036 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13815. 8006348: 687b ldr r3, [r7, #4]
  13816. 800634a: 681b ldr r3, [r3, #0]
  13817. 800634c: 4a4b ldr r2, [pc, #300] @ (800647c <HAL_DMA_Init+0x68c>)
  13818. 800634e: 4293 cmp r3, r2
  13819. 8006350: d031 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13820. 8006352: 687b ldr r3, [r7, #4]
  13821. 8006354: 681b ldr r3, [r3, #0]
  13822. 8006356: 4a4a ldr r2, [pc, #296] @ (8006480 <HAL_DMA_Init+0x690>)
  13823. 8006358: 4293 cmp r3, r2
  13824. 800635a: d02c beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13825. 800635c: 687b ldr r3, [r7, #4]
  13826. 800635e: 681b ldr r3, [r3, #0]
  13827. 8006360: 4a48 ldr r2, [pc, #288] @ (8006484 <HAL_DMA_Init+0x694>)
  13828. 8006362: 4293 cmp r3, r2
  13829. 8006364: d027 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13830. 8006366: 687b ldr r3, [r7, #4]
  13831. 8006368: 681b ldr r3, [r3, #0]
  13832. 800636a: 4a47 ldr r2, [pc, #284] @ (8006488 <HAL_DMA_Init+0x698>)
  13833. 800636c: 4293 cmp r3, r2
  13834. 800636e: d022 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13835. 8006370: 687b ldr r3, [r7, #4]
  13836. 8006372: 681b ldr r3, [r3, #0]
  13837. 8006374: 4a45 ldr r2, [pc, #276] @ (800648c <HAL_DMA_Init+0x69c>)
  13838. 8006376: 4293 cmp r3, r2
  13839. 8006378: d01d beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13840. 800637a: 687b ldr r3, [r7, #4]
  13841. 800637c: 681b ldr r3, [r3, #0]
  13842. 800637e: 4a44 ldr r2, [pc, #272] @ (8006490 <HAL_DMA_Init+0x6a0>)
  13843. 8006380: 4293 cmp r3, r2
  13844. 8006382: d018 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13845. 8006384: 687b ldr r3, [r7, #4]
  13846. 8006386: 681b ldr r3, [r3, #0]
  13847. 8006388: 4a42 ldr r2, [pc, #264] @ (8006494 <HAL_DMA_Init+0x6a4>)
  13848. 800638a: 4293 cmp r3, r2
  13849. 800638c: d013 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13850. 800638e: 687b ldr r3, [r7, #4]
  13851. 8006390: 681b ldr r3, [r3, #0]
  13852. 8006392: 4a41 ldr r2, [pc, #260] @ (8006498 <HAL_DMA_Init+0x6a8>)
  13853. 8006394: 4293 cmp r3, r2
  13854. 8006396: d00e beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13855. 8006398: 687b ldr r3, [r7, #4]
  13856. 800639a: 681b ldr r3, [r3, #0]
  13857. 800639c: 4a3f ldr r2, [pc, #252] @ (800649c <HAL_DMA_Init+0x6ac>)
  13858. 800639e: 4293 cmp r3, r2
  13859. 80063a0: d009 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13860. 80063a2: 687b ldr r3, [r7, #4]
  13861. 80063a4: 681b ldr r3, [r3, #0]
  13862. 80063a6: 4a3e ldr r2, [pc, #248] @ (80064a0 <HAL_DMA_Init+0x6b0>)
  13863. 80063a8: 4293 cmp r3, r2
  13864. 80063aa: d004 beq.n 80063b6 <HAL_DMA_Init+0x5c6>
  13865. 80063ac: 687b ldr r3, [r7, #4]
  13866. 80063ae: 681b ldr r3, [r3, #0]
  13867. 80063b0: 4a3c ldr r2, [pc, #240] @ (80064a4 <HAL_DMA_Init+0x6b4>)
  13868. 80063b2: 4293 cmp r3, r2
  13869. 80063b4: d101 bne.n 80063ba <HAL_DMA_Init+0x5ca>
  13870. 80063b6: 2301 movs r3, #1
  13871. 80063b8: e000 b.n 80063bc <HAL_DMA_Init+0x5cc>
  13872. 80063ba: 2300 movs r3, #0
  13873. 80063bc: 2b00 cmp r3, #0
  13874. 80063be: d032 beq.n 8006426 <HAL_DMA_Init+0x636>
  13875. {
  13876. /* Initialize parameters for DMAMUX channel :
  13877. DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask
  13878. */
  13879. DMA_CalcDMAMUXChannelBaseAndMask(hdma);
  13880. 80063c0: 6878 ldr r0, [r7, #4]
  13881. 80063c2: f001 fe2d bl 8008020 <DMA_CalcDMAMUXChannelBaseAndMask>
  13882. if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY)
  13883. 80063c6: 687b ldr r3, [r7, #4]
  13884. 80063c8: 689b ldr r3, [r3, #8]
  13885. 80063ca: 2b80 cmp r3, #128 @ 0x80
  13886. 80063cc: d102 bne.n 80063d4 <HAL_DMA_Init+0x5e4>
  13887. {
  13888. /* if memory to memory force the request to 0*/
  13889. hdma->Init.Request = DMA_REQUEST_MEM2MEM;
  13890. 80063ce: 687b ldr r3, [r7, #4]
  13891. 80063d0: 2200 movs r2, #0
  13892. 80063d2: 605a str r2, [r3, #4]
  13893. }
  13894. /* Set peripheral request to DMAMUX channel */
  13895. hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID);
  13896. 80063d4: 687b ldr r3, [r7, #4]
  13897. 80063d6: 685a ldr r2, [r3, #4]
  13898. 80063d8: 687b ldr r3, [r7, #4]
  13899. 80063da: 6e1b ldr r3, [r3, #96] @ 0x60
  13900. 80063dc: b2d2 uxtb r2, r2
  13901. 80063de: 601a str r2, [r3, #0]
  13902. /* Clear the DMAMUX synchro overrun flag */
  13903. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  13904. 80063e0: 687b ldr r3, [r7, #4]
  13905. 80063e2: 6e5b ldr r3, [r3, #100] @ 0x64
  13906. 80063e4: 687a ldr r2, [r7, #4]
  13907. 80063e6: 6e92 ldr r2, [r2, #104] @ 0x68
  13908. 80063e8: 605a str r2, [r3, #4]
  13909. /* Initialize parameters for DMAMUX request generator :
  13910. if the DMA request is DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR7
  13911. */
  13912. if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7))
  13913. 80063ea: 687b ldr r3, [r7, #4]
  13914. 80063ec: 685b ldr r3, [r3, #4]
  13915. 80063ee: 2b00 cmp r3, #0
  13916. 80063f0: d010 beq.n 8006414 <HAL_DMA_Init+0x624>
  13917. 80063f2: 687b ldr r3, [r7, #4]
  13918. 80063f4: 685b ldr r3, [r3, #4]
  13919. 80063f6: 2b08 cmp r3, #8
  13920. 80063f8: d80c bhi.n 8006414 <HAL_DMA_Init+0x624>
  13921. {
  13922. /* Initialize parameters for DMAMUX request generator :
  13923. DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */
  13924. DMA_CalcDMAMUXRequestGenBaseAndMask(hdma);
  13925. 80063fa: 6878 ldr r0, [r7, #4]
  13926. 80063fc: f001 feaa bl 8008154 <DMA_CalcDMAMUXRequestGenBaseAndMask>
  13927. /* Reset the DMAMUX request generator register */
  13928. hdma->DMAmuxRequestGen->RGCR = 0U;
  13929. 8006400: 687b ldr r3, [r7, #4]
  13930. 8006402: 6edb ldr r3, [r3, #108] @ 0x6c
  13931. 8006404: 2200 movs r2, #0
  13932. 8006406: 601a str r2, [r3, #0]
  13933. /* Clear the DMAMUX request generator overrun flag */
  13934. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  13935. 8006408: 687b ldr r3, [r7, #4]
  13936. 800640a: 6f1b ldr r3, [r3, #112] @ 0x70
  13937. 800640c: 687a ldr r2, [r7, #4]
  13938. 800640e: 6f52 ldr r2, [r2, #116] @ 0x74
  13939. 8006410: 605a str r2, [r3, #4]
  13940. 8006412: e008 b.n 8006426 <HAL_DMA_Init+0x636>
  13941. }
  13942. else
  13943. {
  13944. hdma->DMAmuxRequestGen = 0U;
  13945. 8006414: 687b ldr r3, [r7, #4]
  13946. 8006416: 2200 movs r2, #0
  13947. 8006418: 66da str r2, [r3, #108] @ 0x6c
  13948. hdma->DMAmuxRequestGenStatus = 0U;
  13949. 800641a: 687b ldr r3, [r7, #4]
  13950. 800641c: 2200 movs r2, #0
  13951. 800641e: 671a str r2, [r3, #112] @ 0x70
  13952. hdma->DMAmuxRequestGenStatusMask = 0U;
  13953. 8006420: 687b ldr r3, [r7, #4]
  13954. 8006422: 2200 movs r2, #0
  13955. 8006424: 675a str r2, [r3, #116] @ 0x74
  13956. }
  13957. }
  13958. /* Initialize the error code */
  13959. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  13960. 8006426: 687b ldr r3, [r7, #4]
  13961. 8006428: 2200 movs r2, #0
  13962. 800642a: 655a str r2, [r3, #84] @ 0x54
  13963. /* Initialize the DMA state */
  13964. hdma->State = HAL_DMA_STATE_READY;
  13965. 800642c: 687b ldr r3, [r7, #4]
  13966. 800642e: 2201 movs r2, #1
  13967. 8006430: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13968. return HAL_OK;
  13969. 8006434: 2300 movs r3, #0
  13970. }
  13971. 8006436: 4618 mov r0, r3
  13972. 8006438: 3718 adds r7, #24
  13973. 800643a: 46bd mov sp, r7
  13974. 800643c: bd80 pop {r7, pc}
  13975. 800643e: bf00 nop
  13976. 8006440: a7fdabf8 .word 0xa7fdabf8
  13977. 8006444: cccccccd .word 0xcccccccd
  13978. 8006448: 40020010 .word 0x40020010
  13979. 800644c: 40020028 .word 0x40020028
  13980. 8006450: 40020040 .word 0x40020040
  13981. 8006454: 40020058 .word 0x40020058
  13982. 8006458: 40020070 .word 0x40020070
  13983. 800645c: 40020088 .word 0x40020088
  13984. 8006460: 400200a0 .word 0x400200a0
  13985. 8006464: 400200b8 .word 0x400200b8
  13986. 8006468: 40020410 .word 0x40020410
  13987. 800646c: 40020428 .word 0x40020428
  13988. 8006470: 40020440 .word 0x40020440
  13989. 8006474: 40020458 .word 0x40020458
  13990. 8006478: 40020470 .word 0x40020470
  13991. 800647c: 40020488 .word 0x40020488
  13992. 8006480: 400204a0 .word 0x400204a0
  13993. 8006484: 400204b8 .word 0x400204b8
  13994. 8006488: 58025408 .word 0x58025408
  13995. 800648c: 5802541c .word 0x5802541c
  13996. 8006490: 58025430 .word 0x58025430
  13997. 8006494: 58025444 .word 0x58025444
  13998. 8006498: 58025458 .word 0x58025458
  13999. 800649c: 5802546c .word 0x5802546c
  14000. 80064a0: 58025480 .word 0x58025480
  14001. 80064a4: 58025494 .word 0x58025494
  14002. 080064a8 <HAL_DMA_Abort>:
  14003. * and the Stream will be effectively disabled only after the transfer of
  14004. * this single data is finished.
  14005. * @retval HAL status
  14006. */
  14007. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
  14008. {
  14009. 80064a8: b580 push {r7, lr}
  14010. 80064aa: b086 sub sp, #24
  14011. 80064ac: af00 add r7, sp, #0
  14012. 80064ae: 6078 str r0, [r7, #4]
  14013. /* calculate DMA base and stream number */
  14014. DMA_Base_Registers *regs_dma;
  14015. BDMA_Base_Registers *regs_bdma;
  14016. const __IO uint32_t *enableRegister;
  14017. uint32_t tickstart = HAL_GetTick();
  14018. 80064b0: f7ff f8f0 bl 8005694 <HAL_GetTick>
  14019. 80064b4: 6138 str r0, [r7, #16]
  14020. /* Check the DMA peripheral handle */
  14021. if(hdma == NULL)
  14022. 80064b6: 687b ldr r3, [r7, #4]
  14023. 80064b8: 2b00 cmp r3, #0
  14024. 80064ba: d101 bne.n 80064c0 <HAL_DMA_Abort+0x18>
  14025. {
  14026. return HAL_ERROR;
  14027. 80064bc: 2301 movs r3, #1
  14028. 80064be: e2dc b.n 8006a7a <HAL_DMA_Abort+0x5d2>
  14029. }
  14030. /* Check the DMA peripheral state */
  14031. if(hdma->State != HAL_DMA_STATE_BUSY)
  14032. 80064c0: 687b ldr r3, [r7, #4]
  14033. 80064c2: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  14034. 80064c6: b2db uxtb r3, r3
  14035. 80064c8: 2b02 cmp r3, #2
  14036. 80064ca: d008 beq.n 80064de <HAL_DMA_Abort+0x36>
  14037. {
  14038. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  14039. 80064cc: 687b ldr r3, [r7, #4]
  14040. 80064ce: 2280 movs r2, #128 @ 0x80
  14041. 80064d0: 655a str r2, [r3, #84] @ 0x54
  14042. /* Process Unlocked */
  14043. __HAL_UNLOCK(hdma);
  14044. 80064d2: 687b ldr r3, [r7, #4]
  14045. 80064d4: 2200 movs r2, #0
  14046. 80064d6: f883 2034 strb.w r2, [r3, #52] @ 0x34
  14047. return HAL_ERROR;
  14048. 80064da: 2301 movs r3, #1
  14049. 80064dc: e2cd b.n 8006a7a <HAL_DMA_Abort+0x5d2>
  14050. }
  14051. else
  14052. {
  14053. /* Disable all the transfer interrupts */
  14054. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  14055. 80064de: 687b ldr r3, [r7, #4]
  14056. 80064e0: 681b ldr r3, [r3, #0]
  14057. 80064e2: 4a76 ldr r2, [pc, #472] @ (80066bc <HAL_DMA_Abort+0x214>)
  14058. 80064e4: 4293 cmp r3, r2
  14059. 80064e6: d04a beq.n 800657e <HAL_DMA_Abort+0xd6>
  14060. 80064e8: 687b ldr r3, [r7, #4]
  14061. 80064ea: 681b ldr r3, [r3, #0]
  14062. 80064ec: 4a74 ldr r2, [pc, #464] @ (80066c0 <HAL_DMA_Abort+0x218>)
  14063. 80064ee: 4293 cmp r3, r2
  14064. 80064f0: d045 beq.n 800657e <HAL_DMA_Abort+0xd6>
  14065. 80064f2: 687b ldr r3, [r7, #4]
  14066. 80064f4: 681b ldr r3, [r3, #0]
  14067. 80064f6: 4a73 ldr r2, [pc, #460] @ (80066c4 <HAL_DMA_Abort+0x21c>)
  14068. 80064f8: 4293 cmp r3, r2
  14069. 80064fa: d040 beq.n 800657e <HAL_DMA_Abort+0xd6>
  14070. 80064fc: 687b ldr r3, [r7, #4]
  14071. 80064fe: 681b ldr r3, [r3, #0]
  14072. 8006500: 4a71 ldr r2, [pc, #452] @ (80066c8 <HAL_DMA_Abort+0x220>)
  14073. 8006502: 4293 cmp r3, r2
  14074. 8006504: d03b beq.n 800657e <HAL_DMA_Abort+0xd6>
  14075. 8006506: 687b ldr r3, [r7, #4]
  14076. 8006508: 681b ldr r3, [r3, #0]
  14077. 800650a: 4a70 ldr r2, [pc, #448] @ (80066cc <HAL_DMA_Abort+0x224>)
  14078. 800650c: 4293 cmp r3, r2
  14079. 800650e: d036 beq.n 800657e <HAL_DMA_Abort+0xd6>
  14080. 8006510: 687b ldr r3, [r7, #4]
  14081. 8006512: 681b ldr r3, [r3, #0]
  14082. 8006514: 4a6e ldr r2, [pc, #440] @ (80066d0 <HAL_DMA_Abort+0x228>)
  14083. 8006516: 4293 cmp r3, r2
  14084. 8006518: d031 beq.n 800657e <HAL_DMA_Abort+0xd6>
  14085. 800651a: 687b ldr r3, [r7, #4]
  14086. 800651c: 681b ldr r3, [r3, #0]
  14087. 800651e: 4a6d ldr r2, [pc, #436] @ (80066d4 <HAL_DMA_Abort+0x22c>)
  14088. 8006520: 4293 cmp r3, r2
  14089. 8006522: d02c beq.n 800657e <HAL_DMA_Abort+0xd6>
  14090. 8006524: 687b ldr r3, [r7, #4]
  14091. 8006526: 681b ldr r3, [r3, #0]
  14092. 8006528: 4a6b ldr r2, [pc, #428] @ (80066d8 <HAL_DMA_Abort+0x230>)
  14093. 800652a: 4293 cmp r3, r2
  14094. 800652c: d027 beq.n 800657e <HAL_DMA_Abort+0xd6>
  14095. 800652e: 687b ldr r3, [r7, #4]
  14096. 8006530: 681b ldr r3, [r3, #0]
  14097. 8006532: 4a6a ldr r2, [pc, #424] @ (80066dc <HAL_DMA_Abort+0x234>)
  14098. 8006534: 4293 cmp r3, r2
  14099. 8006536: d022 beq.n 800657e <HAL_DMA_Abort+0xd6>
  14100. 8006538: 687b ldr r3, [r7, #4]
  14101. 800653a: 681b ldr r3, [r3, #0]
  14102. 800653c: 4a68 ldr r2, [pc, #416] @ (80066e0 <HAL_DMA_Abort+0x238>)
  14103. 800653e: 4293 cmp r3, r2
  14104. 8006540: d01d beq.n 800657e <HAL_DMA_Abort+0xd6>
  14105. 8006542: 687b ldr r3, [r7, #4]
  14106. 8006544: 681b ldr r3, [r3, #0]
  14107. 8006546: 4a67 ldr r2, [pc, #412] @ (80066e4 <HAL_DMA_Abort+0x23c>)
  14108. 8006548: 4293 cmp r3, r2
  14109. 800654a: d018 beq.n 800657e <HAL_DMA_Abort+0xd6>
  14110. 800654c: 687b ldr r3, [r7, #4]
  14111. 800654e: 681b ldr r3, [r3, #0]
  14112. 8006550: 4a65 ldr r2, [pc, #404] @ (80066e8 <HAL_DMA_Abort+0x240>)
  14113. 8006552: 4293 cmp r3, r2
  14114. 8006554: d013 beq.n 800657e <HAL_DMA_Abort+0xd6>
  14115. 8006556: 687b ldr r3, [r7, #4]
  14116. 8006558: 681b ldr r3, [r3, #0]
  14117. 800655a: 4a64 ldr r2, [pc, #400] @ (80066ec <HAL_DMA_Abort+0x244>)
  14118. 800655c: 4293 cmp r3, r2
  14119. 800655e: d00e beq.n 800657e <HAL_DMA_Abort+0xd6>
  14120. 8006560: 687b ldr r3, [r7, #4]
  14121. 8006562: 681b ldr r3, [r3, #0]
  14122. 8006564: 4a62 ldr r2, [pc, #392] @ (80066f0 <HAL_DMA_Abort+0x248>)
  14123. 8006566: 4293 cmp r3, r2
  14124. 8006568: d009 beq.n 800657e <HAL_DMA_Abort+0xd6>
  14125. 800656a: 687b ldr r3, [r7, #4]
  14126. 800656c: 681b ldr r3, [r3, #0]
  14127. 800656e: 4a61 ldr r2, [pc, #388] @ (80066f4 <HAL_DMA_Abort+0x24c>)
  14128. 8006570: 4293 cmp r3, r2
  14129. 8006572: d004 beq.n 800657e <HAL_DMA_Abort+0xd6>
  14130. 8006574: 687b ldr r3, [r7, #4]
  14131. 8006576: 681b ldr r3, [r3, #0]
  14132. 8006578: 4a5f ldr r2, [pc, #380] @ (80066f8 <HAL_DMA_Abort+0x250>)
  14133. 800657a: 4293 cmp r3, r2
  14134. 800657c: d101 bne.n 8006582 <HAL_DMA_Abort+0xda>
  14135. 800657e: 2301 movs r3, #1
  14136. 8006580: e000 b.n 8006584 <HAL_DMA_Abort+0xdc>
  14137. 8006582: 2300 movs r3, #0
  14138. 8006584: 2b00 cmp r3, #0
  14139. 8006586: d013 beq.n 80065b0 <HAL_DMA_Abort+0x108>
  14140. {
  14141. /* Disable DMA All Interrupts */
  14142. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT);
  14143. 8006588: 687b ldr r3, [r7, #4]
  14144. 800658a: 681b ldr r3, [r3, #0]
  14145. 800658c: 681a ldr r2, [r3, #0]
  14146. 800658e: 687b ldr r3, [r7, #4]
  14147. 8006590: 681b ldr r3, [r3, #0]
  14148. 8006592: f022 021e bic.w r2, r2, #30
  14149. 8006596: 601a str r2, [r3, #0]
  14150. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  14151. 8006598: 687b ldr r3, [r7, #4]
  14152. 800659a: 681b ldr r3, [r3, #0]
  14153. 800659c: 695a ldr r2, [r3, #20]
  14154. 800659e: 687b ldr r3, [r7, #4]
  14155. 80065a0: 681b ldr r3, [r3, #0]
  14156. 80065a2: f022 0280 bic.w r2, r2, #128 @ 0x80
  14157. 80065a6: 615a str r2, [r3, #20]
  14158. enableRegister = (__IO uint32_t *)(&(((DMA_Stream_TypeDef *)hdma->Instance)->CR));
  14159. 80065a8: 687b ldr r3, [r7, #4]
  14160. 80065aa: 681b ldr r3, [r3, #0]
  14161. 80065ac: 617b str r3, [r7, #20]
  14162. 80065ae: e00a b.n 80065c6 <HAL_DMA_Abort+0x11e>
  14163. }
  14164. else /* BDMA channel */
  14165. {
  14166. /* Disable DMA All Interrupts */
  14167. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  14168. 80065b0: 687b ldr r3, [r7, #4]
  14169. 80065b2: 681b ldr r3, [r3, #0]
  14170. 80065b4: 681a ldr r2, [r3, #0]
  14171. 80065b6: 687b ldr r3, [r7, #4]
  14172. 80065b8: 681b ldr r3, [r3, #0]
  14173. 80065ba: f022 020e bic.w r2, r2, #14
  14174. 80065be: 601a str r2, [r3, #0]
  14175. enableRegister = (__IO uint32_t *)(&(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR));
  14176. 80065c0: 687b ldr r3, [r7, #4]
  14177. 80065c2: 681b ldr r3, [r3, #0]
  14178. 80065c4: 617b str r3, [r7, #20]
  14179. }
  14180. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  14181. 80065c6: 687b ldr r3, [r7, #4]
  14182. 80065c8: 681b ldr r3, [r3, #0]
  14183. 80065ca: 4a3c ldr r2, [pc, #240] @ (80066bc <HAL_DMA_Abort+0x214>)
  14184. 80065cc: 4293 cmp r3, r2
  14185. 80065ce: d072 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14186. 80065d0: 687b ldr r3, [r7, #4]
  14187. 80065d2: 681b ldr r3, [r3, #0]
  14188. 80065d4: 4a3a ldr r2, [pc, #232] @ (80066c0 <HAL_DMA_Abort+0x218>)
  14189. 80065d6: 4293 cmp r3, r2
  14190. 80065d8: d06d beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14191. 80065da: 687b ldr r3, [r7, #4]
  14192. 80065dc: 681b ldr r3, [r3, #0]
  14193. 80065de: 4a39 ldr r2, [pc, #228] @ (80066c4 <HAL_DMA_Abort+0x21c>)
  14194. 80065e0: 4293 cmp r3, r2
  14195. 80065e2: d068 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14196. 80065e4: 687b ldr r3, [r7, #4]
  14197. 80065e6: 681b ldr r3, [r3, #0]
  14198. 80065e8: 4a37 ldr r2, [pc, #220] @ (80066c8 <HAL_DMA_Abort+0x220>)
  14199. 80065ea: 4293 cmp r3, r2
  14200. 80065ec: d063 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14201. 80065ee: 687b ldr r3, [r7, #4]
  14202. 80065f0: 681b ldr r3, [r3, #0]
  14203. 80065f2: 4a36 ldr r2, [pc, #216] @ (80066cc <HAL_DMA_Abort+0x224>)
  14204. 80065f4: 4293 cmp r3, r2
  14205. 80065f6: d05e beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14206. 80065f8: 687b ldr r3, [r7, #4]
  14207. 80065fa: 681b ldr r3, [r3, #0]
  14208. 80065fc: 4a34 ldr r2, [pc, #208] @ (80066d0 <HAL_DMA_Abort+0x228>)
  14209. 80065fe: 4293 cmp r3, r2
  14210. 8006600: d059 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14211. 8006602: 687b ldr r3, [r7, #4]
  14212. 8006604: 681b ldr r3, [r3, #0]
  14213. 8006606: 4a33 ldr r2, [pc, #204] @ (80066d4 <HAL_DMA_Abort+0x22c>)
  14214. 8006608: 4293 cmp r3, r2
  14215. 800660a: d054 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14216. 800660c: 687b ldr r3, [r7, #4]
  14217. 800660e: 681b ldr r3, [r3, #0]
  14218. 8006610: 4a31 ldr r2, [pc, #196] @ (80066d8 <HAL_DMA_Abort+0x230>)
  14219. 8006612: 4293 cmp r3, r2
  14220. 8006614: d04f beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14221. 8006616: 687b ldr r3, [r7, #4]
  14222. 8006618: 681b ldr r3, [r3, #0]
  14223. 800661a: 4a30 ldr r2, [pc, #192] @ (80066dc <HAL_DMA_Abort+0x234>)
  14224. 800661c: 4293 cmp r3, r2
  14225. 800661e: d04a beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14226. 8006620: 687b ldr r3, [r7, #4]
  14227. 8006622: 681b ldr r3, [r3, #0]
  14228. 8006624: 4a2e ldr r2, [pc, #184] @ (80066e0 <HAL_DMA_Abort+0x238>)
  14229. 8006626: 4293 cmp r3, r2
  14230. 8006628: d045 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14231. 800662a: 687b ldr r3, [r7, #4]
  14232. 800662c: 681b ldr r3, [r3, #0]
  14233. 800662e: 4a2d ldr r2, [pc, #180] @ (80066e4 <HAL_DMA_Abort+0x23c>)
  14234. 8006630: 4293 cmp r3, r2
  14235. 8006632: d040 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14236. 8006634: 687b ldr r3, [r7, #4]
  14237. 8006636: 681b ldr r3, [r3, #0]
  14238. 8006638: 4a2b ldr r2, [pc, #172] @ (80066e8 <HAL_DMA_Abort+0x240>)
  14239. 800663a: 4293 cmp r3, r2
  14240. 800663c: d03b beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14241. 800663e: 687b ldr r3, [r7, #4]
  14242. 8006640: 681b ldr r3, [r3, #0]
  14243. 8006642: 4a2a ldr r2, [pc, #168] @ (80066ec <HAL_DMA_Abort+0x244>)
  14244. 8006644: 4293 cmp r3, r2
  14245. 8006646: d036 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14246. 8006648: 687b ldr r3, [r7, #4]
  14247. 800664a: 681b ldr r3, [r3, #0]
  14248. 800664c: 4a28 ldr r2, [pc, #160] @ (80066f0 <HAL_DMA_Abort+0x248>)
  14249. 800664e: 4293 cmp r3, r2
  14250. 8006650: d031 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14251. 8006652: 687b ldr r3, [r7, #4]
  14252. 8006654: 681b ldr r3, [r3, #0]
  14253. 8006656: 4a27 ldr r2, [pc, #156] @ (80066f4 <HAL_DMA_Abort+0x24c>)
  14254. 8006658: 4293 cmp r3, r2
  14255. 800665a: d02c beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14256. 800665c: 687b ldr r3, [r7, #4]
  14257. 800665e: 681b ldr r3, [r3, #0]
  14258. 8006660: 4a25 ldr r2, [pc, #148] @ (80066f8 <HAL_DMA_Abort+0x250>)
  14259. 8006662: 4293 cmp r3, r2
  14260. 8006664: d027 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14261. 8006666: 687b ldr r3, [r7, #4]
  14262. 8006668: 681b ldr r3, [r3, #0]
  14263. 800666a: 4a24 ldr r2, [pc, #144] @ (80066fc <HAL_DMA_Abort+0x254>)
  14264. 800666c: 4293 cmp r3, r2
  14265. 800666e: d022 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14266. 8006670: 687b ldr r3, [r7, #4]
  14267. 8006672: 681b ldr r3, [r3, #0]
  14268. 8006674: 4a22 ldr r2, [pc, #136] @ (8006700 <HAL_DMA_Abort+0x258>)
  14269. 8006676: 4293 cmp r3, r2
  14270. 8006678: d01d beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14271. 800667a: 687b ldr r3, [r7, #4]
  14272. 800667c: 681b ldr r3, [r3, #0]
  14273. 800667e: 4a21 ldr r2, [pc, #132] @ (8006704 <HAL_DMA_Abort+0x25c>)
  14274. 8006680: 4293 cmp r3, r2
  14275. 8006682: d018 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14276. 8006684: 687b ldr r3, [r7, #4]
  14277. 8006686: 681b ldr r3, [r3, #0]
  14278. 8006688: 4a1f ldr r2, [pc, #124] @ (8006708 <HAL_DMA_Abort+0x260>)
  14279. 800668a: 4293 cmp r3, r2
  14280. 800668c: d013 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14281. 800668e: 687b ldr r3, [r7, #4]
  14282. 8006690: 681b ldr r3, [r3, #0]
  14283. 8006692: 4a1e ldr r2, [pc, #120] @ (800670c <HAL_DMA_Abort+0x264>)
  14284. 8006694: 4293 cmp r3, r2
  14285. 8006696: d00e beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14286. 8006698: 687b ldr r3, [r7, #4]
  14287. 800669a: 681b ldr r3, [r3, #0]
  14288. 800669c: 4a1c ldr r2, [pc, #112] @ (8006710 <HAL_DMA_Abort+0x268>)
  14289. 800669e: 4293 cmp r3, r2
  14290. 80066a0: d009 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14291. 80066a2: 687b ldr r3, [r7, #4]
  14292. 80066a4: 681b ldr r3, [r3, #0]
  14293. 80066a6: 4a1b ldr r2, [pc, #108] @ (8006714 <HAL_DMA_Abort+0x26c>)
  14294. 80066a8: 4293 cmp r3, r2
  14295. 80066aa: d004 beq.n 80066b6 <HAL_DMA_Abort+0x20e>
  14296. 80066ac: 687b ldr r3, [r7, #4]
  14297. 80066ae: 681b ldr r3, [r3, #0]
  14298. 80066b0: 4a19 ldr r2, [pc, #100] @ (8006718 <HAL_DMA_Abort+0x270>)
  14299. 80066b2: 4293 cmp r3, r2
  14300. 80066b4: d132 bne.n 800671c <HAL_DMA_Abort+0x274>
  14301. 80066b6: 2301 movs r3, #1
  14302. 80066b8: e031 b.n 800671e <HAL_DMA_Abort+0x276>
  14303. 80066ba: bf00 nop
  14304. 80066bc: 40020010 .word 0x40020010
  14305. 80066c0: 40020028 .word 0x40020028
  14306. 80066c4: 40020040 .word 0x40020040
  14307. 80066c8: 40020058 .word 0x40020058
  14308. 80066cc: 40020070 .word 0x40020070
  14309. 80066d0: 40020088 .word 0x40020088
  14310. 80066d4: 400200a0 .word 0x400200a0
  14311. 80066d8: 400200b8 .word 0x400200b8
  14312. 80066dc: 40020410 .word 0x40020410
  14313. 80066e0: 40020428 .word 0x40020428
  14314. 80066e4: 40020440 .word 0x40020440
  14315. 80066e8: 40020458 .word 0x40020458
  14316. 80066ec: 40020470 .word 0x40020470
  14317. 80066f0: 40020488 .word 0x40020488
  14318. 80066f4: 400204a0 .word 0x400204a0
  14319. 80066f8: 400204b8 .word 0x400204b8
  14320. 80066fc: 58025408 .word 0x58025408
  14321. 8006700: 5802541c .word 0x5802541c
  14322. 8006704: 58025430 .word 0x58025430
  14323. 8006708: 58025444 .word 0x58025444
  14324. 800670c: 58025458 .word 0x58025458
  14325. 8006710: 5802546c .word 0x5802546c
  14326. 8006714: 58025480 .word 0x58025480
  14327. 8006718: 58025494 .word 0x58025494
  14328. 800671c: 2300 movs r3, #0
  14329. 800671e: 2b00 cmp r3, #0
  14330. 8006720: d007 beq.n 8006732 <HAL_DMA_Abort+0x28a>
  14331. {
  14332. /* disable the DMAMUX sync overrun IT */
  14333. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  14334. 8006722: 687b ldr r3, [r7, #4]
  14335. 8006724: 6e1b ldr r3, [r3, #96] @ 0x60
  14336. 8006726: 681a ldr r2, [r3, #0]
  14337. 8006728: 687b ldr r3, [r7, #4]
  14338. 800672a: 6e1b ldr r3, [r3, #96] @ 0x60
  14339. 800672c: f422 7280 bic.w r2, r2, #256 @ 0x100
  14340. 8006730: 601a str r2, [r3, #0]
  14341. }
  14342. /* Disable the stream */
  14343. __HAL_DMA_DISABLE(hdma);
  14344. 8006732: 687b ldr r3, [r7, #4]
  14345. 8006734: 681b ldr r3, [r3, #0]
  14346. 8006736: 4a6d ldr r2, [pc, #436] @ (80068ec <HAL_DMA_Abort+0x444>)
  14347. 8006738: 4293 cmp r3, r2
  14348. 800673a: d04a beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14349. 800673c: 687b ldr r3, [r7, #4]
  14350. 800673e: 681b ldr r3, [r3, #0]
  14351. 8006740: 4a6b ldr r2, [pc, #428] @ (80068f0 <HAL_DMA_Abort+0x448>)
  14352. 8006742: 4293 cmp r3, r2
  14353. 8006744: d045 beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14354. 8006746: 687b ldr r3, [r7, #4]
  14355. 8006748: 681b ldr r3, [r3, #0]
  14356. 800674a: 4a6a ldr r2, [pc, #424] @ (80068f4 <HAL_DMA_Abort+0x44c>)
  14357. 800674c: 4293 cmp r3, r2
  14358. 800674e: d040 beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14359. 8006750: 687b ldr r3, [r7, #4]
  14360. 8006752: 681b ldr r3, [r3, #0]
  14361. 8006754: 4a68 ldr r2, [pc, #416] @ (80068f8 <HAL_DMA_Abort+0x450>)
  14362. 8006756: 4293 cmp r3, r2
  14363. 8006758: d03b beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14364. 800675a: 687b ldr r3, [r7, #4]
  14365. 800675c: 681b ldr r3, [r3, #0]
  14366. 800675e: 4a67 ldr r2, [pc, #412] @ (80068fc <HAL_DMA_Abort+0x454>)
  14367. 8006760: 4293 cmp r3, r2
  14368. 8006762: d036 beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14369. 8006764: 687b ldr r3, [r7, #4]
  14370. 8006766: 681b ldr r3, [r3, #0]
  14371. 8006768: 4a65 ldr r2, [pc, #404] @ (8006900 <HAL_DMA_Abort+0x458>)
  14372. 800676a: 4293 cmp r3, r2
  14373. 800676c: d031 beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14374. 800676e: 687b ldr r3, [r7, #4]
  14375. 8006770: 681b ldr r3, [r3, #0]
  14376. 8006772: 4a64 ldr r2, [pc, #400] @ (8006904 <HAL_DMA_Abort+0x45c>)
  14377. 8006774: 4293 cmp r3, r2
  14378. 8006776: d02c beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14379. 8006778: 687b ldr r3, [r7, #4]
  14380. 800677a: 681b ldr r3, [r3, #0]
  14381. 800677c: 4a62 ldr r2, [pc, #392] @ (8006908 <HAL_DMA_Abort+0x460>)
  14382. 800677e: 4293 cmp r3, r2
  14383. 8006780: d027 beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14384. 8006782: 687b ldr r3, [r7, #4]
  14385. 8006784: 681b ldr r3, [r3, #0]
  14386. 8006786: 4a61 ldr r2, [pc, #388] @ (800690c <HAL_DMA_Abort+0x464>)
  14387. 8006788: 4293 cmp r3, r2
  14388. 800678a: d022 beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14389. 800678c: 687b ldr r3, [r7, #4]
  14390. 800678e: 681b ldr r3, [r3, #0]
  14391. 8006790: 4a5f ldr r2, [pc, #380] @ (8006910 <HAL_DMA_Abort+0x468>)
  14392. 8006792: 4293 cmp r3, r2
  14393. 8006794: d01d beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14394. 8006796: 687b ldr r3, [r7, #4]
  14395. 8006798: 681b ldr r3, [r3, #0]
  14396. 800679a: 4a5e ldr r2, [pc, #376] @ (8006914 <HAL_DMA_Abort+0x46c>)
  14397. 800679c: 4293 cmp r3, r2
  14398. 800679e: d018 beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14399. 80067a0: 687b ldr r3, [r7, #4]
  14400. 80067a2: 681b ldr r3, [r3, #0]
  14401. 80067a4: 4a5c ldr r2, [pc, #368] @ (8006918 <HAL_DMA_Abort+0x470>)
  14402. 80067a6: 4293 cmp r3, r2
  14403. 80067a8: d013 beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14404. 80067aa: 687b ldr r3, [r7, #4]
  14405. 80067ac: 681b ldr r3, [r3, #0]
  14406. 80067ae: 4a5b ldr r2, [pc, #364] @ (800691c <HAL_DMA_Abort+0x474>)
  14407. 80067b0: 4293 cmp r3, r2
  14408. 80067b2: d00e beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14409. 80067b4: 687b ldr r3, [r7, #4]
  14410. 80067b6: 681b ldr r3, [r3, #0]
  14411. 80067b8: 4a59 ldr r2, [pc, #356] @ (8006920 <HAL_DMA_Abort+0x478>)
  14412. 80067ba: 4293 cmp r3, r2
  14413. 80067bc: d009 beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14414. 80067be: 687b ldr r3, [r7, #4]
  14415. 80067c0: 681b ldr r3, [r3, #0]
  14416. 80067c2: 4a58 ldr r2, [pc, #352] @ (8006924 <HAL_DMA_Abort+0x47c>)
  14417. 80067c4: 4293 cmp r3, r2
  14418. 80067c6: d004 beq.n 80067d2 <HAL_DMA_Abort+0x32a>
  14419. 80067c8: 687b ldr r3, [r7, #4]
  14420. 80067ca: 681b ldr r3, [r3, #0]
  14421. 80067cc: 4a56 ldr r2, [pc, #344] @ (8006928 <HAL_DMA_Abort+0x480>)
  14422. 80067ce: 4293 cmp r3, r2
  14423. 80067d0: d108 bne.n 80067e4 <HAL_DMA_Abort+0x33c>
  14424. 80067d2: 687b ldr r3, [r7, #4]
  14425. 80067d4: 681b ldr r3, [r3, #0]
  14426. 80067d6: 681a ldr r2, [r3, #0]
  14427. 80067d8: 687b ldr r3, [r7, #4]
  14428. 80067da: 681b ldr r3, [r3, #0]
  14429. 80067dc: f022 0201 bic.w r2, r2, #1
  14430. 80067e0: 601a str r2, [r3, #0]
  14431. 80067e2: e007 b.n 80067f4 <HAL_DMA_Abort+0x34c>
  14432. 80067e4: 687b ldr r3, [r7, #4]
  14433. 80067e6: 681b ldr r3, [r3, #0]
  14434. 80067e8: 681a ldr r2, [r3, #0]
  14435. 80067ea: 687b ldr r3, [r7, #4]
  14436. 80067ec: 681b ldr r3, [r3, #0]
  14437. 80067ee: f022 0201 bic.w r2, r2, #1
  14438. 80067f2: 601a str r2, [r3, #0]
  14439. /* Check if the DMA Stream is effectively disabled */
  14440. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  14441. 80067f4: e013 b.n 800681e <HAL_DMA_Abort+0x376>
  14442. {
  14443. /* Check for the Timeout */
  14444. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  14445. 80067f6: f7fe ff4d bl 8005694 <HAL_GetTick>
  14446. 80067fa: 4602 mov r2, r0
  14447. 80067fc: 693b ldr r3, [r7, #16]
  14448. 80067fe: 1ad3 subs r3, r2, r3
  14449. 8006800: 2b05 cmp r3, #5
  14450. 8006802: d90c bls.n 800681e <HAL_DMA_Abort+0x376>
  14451. {
  14452. /* Update error code */
  14453. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  14454. 8006804: 687b ldr r3, [r7, #4]
  14455. 8006806: 2220 movs r2, #32
  14456. 8006808: 655a str r2, [r3, #84] @ 0x54
  14457. /* Change the DMA state */
  14458. hdma->State = HAL_DMA_STATE_ERROR;
  14459. 800680a: 687b ldr r3, [r7, #4]
  14460. 800680c: 2203 movs r2, #3
  14461. 800680e: f883 2035 strb.w r2, [r3, #53] @ 0x35
  14462. /* Process Unlocked */
  14463. __HAL_UNLOCK(hdma);
  14464. 8006812: 687b ldr r3, [r7, #4]
  14465. 8006814: 2200 movs r2, #0
  14466. 8006816: f883 2034 strb.w r2, [r3, #52] @ 0x34
  14467. return HAL_ERROR;
  14468. 800681a: 2301 movs r3, #1
  14469. 800681c: e12d b.n 8006a7a <HAL_DMA_Abort+0x5d2>
  14470. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  14471. 800681e: 697b ldr r3, [r7, #20]
  14472. 8006820: 681b ldr r3, [r3, #0]
  14473. 8006822: f003 0301 and.w r3, r3, #1
  14474. 8006826: 2b00 cmp r3, #0
  14475. 8006828: d1e5 bne.n 80067f6 <HAL_DMA_Abort+0x34e>
  14476. }
  14477. }
  14478. /* Clear all interrupt flags at correct offset within the register */
  14479. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  14480. 800682a: 687b ldr r3, [r7, #4]
  14481. 800682c: 681b ldr r3, [r3, #0]
  14482. 800682e: 4a2f ldr r2, [pc, #188] @ (80068ec <HAL_DMA_Abort+0x444>)
  14483. 8006830: 4293 cmp r3, r2
  14484. 8006832: d04a beq.n 80068ca <HAL_DMA_Abort+0x422>
  14485. 8006834: 687b ldr r3, [r7, #4]
  14486. 8006836: 681b ldr r3, [r3, #0]
  14487. 8006838: 4a2d ldr r2, [pc, #180] @ (80068f0 <HAL_DMA_Abort+0x448>)
  14488. 800683a: 4293 cmp r3, r2
  14489. 800683c: d045 beq.n 80068ca <HAL_DMA_Abort+0x422>
  14490. 800683e: 687b ldr r3, [r7, #4]
  14491. 8006840: 681b ldr r3, [r3, #0]
  14492. 8006842: 4a2c ldr r2, [pc, #176] @ (80068f4 <HAL_DMA_Abort+0x44c>)
  14493. 8006844: 4293 cmp r3, r2
  14494. 8006846: d040 beq.n 80068ca <HAL_DMA_Abort+0x422>
  14495. 8006848: 687b ldr r3, [r7, #4]
  14496. 800684a: 681b ldr r3, [r3, #0]
  14497. 800684c: 4a2a ldr r2, [pc, #168] @ (80068f8 <HAL_DMA_Abort+0x450>)
  14498. 800684e: 4293 cmp r3, r2
  14499. 8006850: d03b beq.n 80068ca <HAL_DMA_Abort+0x422>
  14500. 8006852: 687b ldr r3, [r7, #4]
  14501. 8006854: 681b ldr r3, [r3, #0]
  14502. 8006856: 4a29 ldr r2, [pc, #164] @ (80068fc <HAL_DMA_Abort+0x454>)
  14503. 8006858: 4293 cmp r3, r2
  14504. 800685a: d036 beq.n 80068ca <HAL_DMA_Abort+0x422>
  14505. 800685c: 687b ldr r3, [r7, #4]
  14506. 800685e: 681b ldr r3, [r3, #0]
  14507. 8006860: 4a27 ldr r2, [pc, #156] @ (8006900 <HAL_DMA_Abort+0x458>)
  14508. 8006862: 4293 cmp r3, r2
  14509. 8006864: d031 beq.n 80068ca <HAL_DMA_Abort+0x422>
  14510. 8006866: 687b ldr r3, [r7, #4]
  14511. 8006868: 681b ldr r3, [r3, #0]
  14512. 800686a: 4a26 ldr r2, [pc, #152] @ (8006904 <HAL_DMA_Abort+0x45c>)
  14513. 800686c: 4293 cmp r3, r2
  14514. 800686e: d02c beq.n 80068ca <HAL_DMA_Abort+0x422>
  14515. 8006870: 687b ldr r3, [r7, #4]
  14516. 8006872: 681b ldr r3, [r3, #0]
  14517. 8006874: 4a24 ldr r2, [pc, #144] @ (8006908 <HAL_DMA_Abort+0x460>)
  14518. 8006876: 4293 cmp r3, r2
  14519. 8006878: d027 beq.n 80068ca <HAL_DMA_Abort+0x422>
  14520. 800687a: 687b ldr r3, [r7, #4]
  14521. 800687c: 681b ldr r3, [r3, #0]
  14522. 800687e: 4a23 ldr r2, [pc, #140] @ (800690c <HAL_DMA_Abort+0x464>)
  14523. 8006880: 4293 cmp r3, r2
  14524. 8006882: d022 beq.n 80068ca <HAL_DMA_Abort+0x422>
  14525. 8006884: 687b ldr r3, [r7, #4]
  14526. 8006886: 681b ldr r3, [r3, #0]
  14527. 8006888: 4a21 ldr r2, [pc, #132] @ (8006910 <HAL_DMA_Abort+0x468>)
  14528. 800688a: 4293 cmp r3, r2
  14529. 800688c: d01d beq.n 80068ca <HAL_DMA_Abort+0x422>
  14530. 800688e: 687b ldr r3, [r7, #4]
  14531. 8006890: 681b ldr r3, [r3, #0]
  14532. 8006892: 4a20 ldr r2, [pc, #128] @ (8006914 <HAL_DMA_Abort+0x46c>)
  14533. 8006894: 4293 cmp r3, r2
  14534. 8006896: d018 beq.n 80068ca <HAL_DMA_Abort+0x422>
  14535. 8006898: 687b ldr r3, [r7, #4]
  14536. 800689a: 681b ldr r3, [r3, #0]
  14537. 800689c: 4a1e ldr r2, [pc, #120] @ (8006918 <HAL_DMA_Abort+0x470>)
  14538. 800689e: 4293 cmp r3, r2
  14539. 80068a0: d013 beq.n 80068ca <HAL_DMA_Abort+0x422>
  14540. 80068a2: 687b ldr r3, [r7, #4]
  14541. 80068a4: 681b ldr r3, [r3, #0]
  14542. 80068a6: 4a1d ldr r2, [pc, #116] @ (800691c <HAL_DMA_Abort+0x474>)
  14543. 80068a8: 4293 cmp r3, r2
  14544. 80068aa: d00e beq.n 80068ca <HAL_DMA_Abort+0x422>
  14545. 80068ac: 687b ldr r3, [r7, #4]
  14546. 80068ae: 681b ldr r3, [r3, #0]
  14547. 80068b0: 4a1b ldr r2, [pc, #108] @ (8006920 <HAL_DMA_Abort+0x478>)
  14548. 80068b2: 4293 cmp r3, r2
  14549. 80068b4: d009 beq.n 80068ca <HAL_DMA_Abort+0x422>
  14550. 80068b6: 687b ldr r3, [r7, #4]
  14551. 80068b8: 681b ldr r3, [r3, #0]
  14552. 80068ba: 4a1a ldr r2, [pc, #104] @ (8006924 <HAL_DMA_Abort+0x47c>)
  14553. 80068bc: 4293 cmp r3, r2
  14554. 80068be: d004 beq.n 80068ca <HAL_DMA_Abort+0x422>
  14555. 80068c0: 687b ldr r3, [r7, #4]
  14556. 80068c2: 681b ldr r3, [r3, #0]
  14557. 80068c4: 4a18 ldr r2, [pc, #96] @ (8006928 <HAL_DMA_Abort+0x480>)
  14558. 80068c6: 4293 cmp r3, r2
  14559. 80068c8: d101 bne.n 80068ce <HAL_DMA_Abort+0x426>
  14560. 80068ca: 2301 movs r3, #1
  14561. 80068cc: e000 b.n 80068d0 <HAL_DMA_Abort+0x428>
  14562. 80068ce: 2300 movs r3, #0
  14563. 80068d0: 2b00 cmp r3, #0
  14564. 80068d2: d02b beq.n 800692c <HAL_DMA_Abort+0x484>
  14565. {
  14566. regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  14567. 80068d4: 687b ldr r3, [r7, #4]
  14568. 80068d6: 6d9b ldr r3, [r3, #88] @ 0x58
  14569. 80068d8: 60bb str r3, [r7, #8]
  14570. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  14571. 80068da: 687b ldr r3, [r7, #4]
  14572. 80068dc: 6ddb ldr r3, [r3, #92] @ 0x5c
  14573. 80068de: f003 031f and.w r3, r3, #31
  14574. 80068e2: 223f movs r2, #63 @ 0x3f
  14575. 80068e4: 409a lsls r2, r3
  14576. 80068e6: 68bb ldr r3, [r7, #8]
  14577. 80068e8: 609a str r2, [r3, #8]
  14578. 80068ea: e02a b.n 8006942 <HAL_DMA_Abort+0x49a>
  14579. 80068ec: 40020010 .word 0x40020010
  14580. 80068f0: 40020028 .word 0x40020028
  14581. 80068f4: 40020040 .word 0x40020040
  14582. 80068f8: 40020058 .word 0x40020058
  14583. 80068fc: 40020070 .word 0x40020070
  14584. 8006900: 40020088 .word 0x40020088
  14585. 8006904: 400200a0 .word 0x400200a0
  14586. 8006908: 400200b8 .word 0x400200b8
  14587. 800690c: 40020410 .word 0x40020410
  14588. 8006910: 40020428 .word 0x40020428
  14589. 8006914: 40020440 .word 0x40020440
  14590. 8006918: 40020458 .word 0x40020458
  14591. 800691c: 40020470 .word 0x40020470
  14592. 8006920: 40020488 .word 0x40020488
  14593. 8006924: 400204a0 .word 0x400204a0
  14594. 8006928: 400204b8 .word 0x400204b8
  14595. }
  14596. else /* BDMA channel */
  14597. {
  14598. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  14599. 800692c: 687b ldr r3, [r7, #4]
  14600. 800692e: 6d9b ldr r3, [r3, #88] @ 0x58
  14601. 8006930: 60fb str r3, [r7, #12]
  14602. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  14603. 8006932: 687b ldr r3, [r7, #4]
  14604. 8006934: 6ddb ldr r3, [r3, #92] @ 0x5c
  14605. 8006936: f003 031f and.w r3, r3, #31
  14606. 800693a: 2201 movs r2, #1
  14607. 800693c: 409a lsls r2, r3
  14608. 800693e: 68fb ldr r3, [r7, #12]
  14609. 8006940: 605a str r2, [r3, #4]
  14610. }
  14611. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  14612. 8006942: 687b ldr r3, [r7, #4]
  14613. 8006944: 681b ldr r3, [r3, #0]
  14614. 8006946: 4a4f ldr r2, [pc, #316] @ (8006a84 <HAL_DMA_Abort+0x5dc>)
  14615. 8006948: 4293 cmp r3, r2
  14616. 800694a: d072 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14617. 800694c: 687b ldr r3, [r7, #4]
  14618. 800694e: 681b ldr r3, [r3, #0]
  14619. 8006950: 4a4d ldr r2, [pc, #308] @ (8006a88 <HAL_DMA_Abort+0x5e0>)
  14620. 8006952: 4293 cmp r3, r2
  14621. 8006954: d06d beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14622. 8006956: 687b ldr r3, [r7, #4]
  14623. 8006958: 681b ldr r3, [r3, #0]
  14624. 800695a: 4a4c ldr r2, [pc, #304] @ (8006a8c <HAL_DMA_Abort+0x5e4>)
  14625. 800695c: 4293 cmp r3, r2
  14626. 800695e: d068 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14627. 8006960: 687b ldr r3, [r7, #4]
  14628. 8006962: 681b ldr r3, [r3, #0]
  14629. 8006964: 4a4a ldr r2, [pc, #296] @ (8006a90 <HAL_DMA_Abort+0x5e8>)
  14630. 8006966: 4293 cmp r3, r2
  14631. 8006968: d063 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14632. 800696a: 687b ldr r3, [r7, #4]
  14633. 800696c: 681b ldr r3, [r3, #0]
  14634. 800696e: 4a49 ldr r2, [pc, #292] @ (8006a94 <HAL_DMA_Abort+0x5ec>)
  14635. 8006970: 4293 cmp r3, r2
  14636. 8006972: d05e beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14637. 8006974: 687b ldr r3, [r7, #4]
  14638. 8006976: 681b ldr r3, [r3, #0]
  14639. 8006978: 4a47 ldr r2, [pc, #284] @ (8006a98 <HAL_DMA_Abort+0x5f0>)
  14640. 800697a: 4293 cmp r3, r2
  14641. 800697c: d059 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14642. 800697e: 687b ldr r3, [r7, #4]
  14643. 8006980: 681b ldr r3, [r3, #0]
  14644. 8006982: 4a46 ldr r2, [pc, #280] @ (8006a9c <HAL_DMA_Abort+0x5f4>)
  14645. 8006984: 4293 cmp r3, r2
  14646. 8006986: d054 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14647. 8006988: 687b ldr r3, [r7, #4]
  14648. 800698a: 681b ldr r3, [r3, #0]
  14649. 800698c: 4a44 ldr r2, [pc, #272] @ (8006aa0 <HAL_DMA_Abort+0x5f8>)
  14650. 800698e: 4293 cmp r3, r2
  14651. 8006990: d04f beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14652. 8006992: 687b ldr r3, [r7, #4]
  14653. 8006994: 681b ldr r3, [r3, #0]
  14654. 8006996: 4a43 ldr r2, [pc, #268] @ (8006aa4 <HAL_DMA_Abort+0x5fc>)
  14655. 8006998: 4293 cmp r3, r2
  14656. 800699a: d04a beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14657. 800699c: 687b ldr r3, [r7, #4]
  14658. 800699e: 681b ldr r3, [r3, #0]
  14659. 80069a0: 4a41 ldr r2, [pc, #260] @ (8006aa8 <HAL_DMA_Abort+0x600>)
  14660. 80069a2: 4293 cmp r3, r2
  14661. 80069a4: d045 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14662. 80069a6: 687b ldr r3, [r7, #4]
  14663. 80069a8: 681b ldr r3, [r3, #0]
  14664. 80069aa: 4a40 ldr r2, [pc, #256] @ (8006aac <HAL_DMA_Abort+0x604>)
  14665. 80069ac: 4293 cmp r3, r2
  14666. 80069ae: d040 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14667. 80069b0: 687b ldr r3, [r7, #4]
  14668. 80069b2: 681b ldr r3, [r3, #0]
  14669. 80069b4: 4a3e ldr r2, [pc, #248] @ (8006ab0 <HAL_DMA_Abort+0x608>)
  14670. 80069b6: 4293 cmp r3, r2
  14671. 80069b8: d03b beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14672. 80069ba: 687b ldr r3, [r7, #4]
  14673. 80069bc: 681b ldr r3, [r3, #0]
  14674. 80069be: 4a3d ldr r2, [pc, #244] @ (8006ab4 <HAL_DMA_Abort+0x60c>)
  14675. 80069c0: 4293 cmp r3, r2
  14676. 80069c2: d036 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14677. 80069c4: 687b ldr r3, [r7, #4]
  14678. 80069c6: 681b ldr r3, [r3, #0]
  14679. 80069c8: 4a3b ldr r2, [pc, #236] @ (8006ab8 <HAL_DMA_Abort+0x610>)
  14680. 80069ca: 4293 cmp r3, r2
  14681. 80069cc: d031 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14682. 80069ce: 687b ldr r3, [r7, #4]
  14683. 80069d0: 681b ldr r3, [r3, #0]
  14684. 80069d2: 4a3a ldr r2, [pc, #232] @ (8006abc <HAL_DMA_Abort+0x614>)
  14685. 80069d4: 4293 cmp r3, r2
  14686. 80069d6: d02c beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14687. 80069d8: 687b ldr r3, [r7, #4]
  14688. 80069da: 681b ldr r3, [r3, #0]
  14689. 80069dc: 4a38 ldr r2, [pc, #224] @ (8006ac0 <HAL_DMA_Abort+0x618>)
  14690. 80069de: 4293 cmp r3, r2
  14691. 80069e0: d027 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14692. 80069e2: 687b ldr r3, [r7, #4]
  14693. 80069e4: 681b ldr r3, [r3, #0]
  14694. 80069e6: 4a37 ldr r2, [pc, #220] @ (8006ac4 <HAL_DMA_Abort+0x61c>)
  14695. 80069e8: 4293 cmp r3, r2
  14696. 80069ea: d022 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14697. 80069ec: 687b ldr r3, [r7, #4]
  14698. 80069ee: 681b ldr r3, [r3, #0]
  14699. 80069f0: 4a35 ldr r2, [pc, #212] @ (8006ac8 <HAL_DMA_Abort+0x620>)
  14700. 80069f2: 4293 cmp r3, r2
  14701. 80069f4: d01d beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14702. 80069f6: 687b ldr r3, [r7, #4]
  14703. 80069f8: 681b ldr r3, [r3, #0]
  14704. 80069fa: 4a34 ldr r2, [pc, #208] @ (8006acc <HAL_DMA_Abort+0x624>)
  14705. 80069fc: 4293 cmp r3, r2
  14706. 80069fe: d018 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14707. 8006a00: 687b ldr r3, [r7, #4]
  14708. 8006a02: 681b ldr r3, [r3, #0]
  14709. 8006a04: 4a32 ldr r2, [pc, #200] @ (8006ad0 <HAL_DMA_Abort+0x628>)
  14710. 8006a06: 4293 cmp r3, r2
  14711. 8006a08: d013 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14712. 8006a0a: 687b ldr r3, [r7, #4]
  14713. 8006a0c: 681b ldr r3, [r3, #0]
  14714. 8006a0e: 4a31 ldr r2, [pc, #196] @ (8006ad4 <HAL_DMA_Abort+0x62c>)
  14715. 8006a10: 4293 cmp r3, r2
  14716. 8006a12: d00e beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14717. 8006a14: 687b ldr r3, [r7, #4]
  14718. 8006a16: 681b ldr r3, [r3, #0]
  14719. 8006a18: 4a2f ldr r2, [pc, #188] @ (8006ad8 <HAL_DMA_Abort+0x630>)
  14720. 8006a1a: 4293 cmp r3, r2
  14721. 8006a1c: d009 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14722. 8006a1e: 687b ldr r3, [r7, #4]
  14723. 8006a20: 681b ldr r3, [r3, #0]
  14724. 8006a22: 4a2e ldr r2, [pc, #184] @ (8006adc <HAL_DMA_Abort+0x634>)
  14725. 8006a24: 4293 cmp r3, r2
  14726. 8006a26: d004 beq.n 8006a32 <HAL_DMA_Abort+0x58a>
  14727. 8006a28: 687b ldr r3, [r7, #4]
  14728. 8006a2a: 681b ldr r3, [r3, #0]
  14729. 8006a2c: 4a2c ldr r2, [pc, #176] @ (8006ae0 <HAL_DMA_Abort+0x638>)
  14730. 8006a2e: 4293 cmp r3, r2
  14731. 8006a30: d101 bne.n 8006a36 <HAL_DMA_Abort+0x58e>
  14732. 8006a32: 2301 movs r3, #1
  14733. 8006a34: e000 b.n 8006a38 <HAL_DMA_Abort+0x590>
  14734. 8006a36: 2300 movs r3, #0
  14735. 8006a38: 2b00 cmp r3, #0
  14736. 8006a3a: d015 beq.n 8006a68 <HAL_DMA_Abort+0x5c0>
  14737. {
  14738. /* Clear the DMAMUX synchro overrun flag */
  14739. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  14740. 8006a3c: 687b ldr r3, [r7, #4]
  14741. 8006a3e: 6e5b ldr r3, [r3, #100] @ 0x64
  14742. 8006a40: 687a ldr r2, [r7, #4]
  14743. 8006a42: 6e92 ldr r2, [r2, #104] @ 0x68
  14744. 8006a44: 605a str r2, [r3, #4]
  14745. if(hdma->DMAmuxRequestGen != 0U)
  14746. 8006a46: 687b ldr r3, [r7, #4]
  14747. 8006a48: 6edb ldr r3, [r3, #108] @ 0x6c
  14748. 8006a4a: 2b00 cmp r3, #0
  14749. 8006a4c: d00c beq.n 8006a68 <HAL_DMA_Abort+0x5c0>
  14750. {
  14751. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT */
  14752. /* disable the request gen overrun IT */
  14753. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  14754. 8006a4e: 687b ldr r3, [r7, #4]
  14755. 8006a50: 6edb ldr r3, [r3, #108] @ 0x6c
  14756. 8006a52: 681a ldr r2, [r3, #0]
  14757. 8006a54: 687b ldr r3, [r7, #4]
  14758. 8006a56: 6edb ldr r3, [r3, #108] @ 0x6c
  14759. 8006a58: f422 7280 bic.w r2, r2, #256 @ 0x100
  14760. 8006a5c: 601a str r2, [r3, #0]
  14761. /* Clear the DMAMUX request generator overrun flag */
  14762. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  14763. 8006a5e: 687b ldr r3, [r7, #4]
  14764. 8006a60: 6f1b ldr r3, [r3, #112] @ 0x70
  14765. 8006a62: 687a ldr r2, [r7, #4]
  14766. 8006a64: 6f52 ldr r2, [r2, #116] @ 0x74
  14767. 8006a66: 605a str r2, [r3, #4]
  14768. }
  14769. }
  14770. /* Change the DMA state */
  14771. hdma->State = HAL_DMA_STATE_READY;
  14772. 8006a68: 687b ldr r3, [r7, #4]
  14773. 8006a6a: 2201 movs r2, #1
  14774. 8006a6c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  14775. /* Process Unlocked */
  14776. __HAL_UNLOCK(hdma);
  14777. 8006a70: 687b ldr r3, [r7, #4]
  14778. 8006a72: 2200 movs r2, #0
  14779. 8006a74: f883 2034 strb.w r2, [r3, #52] @ 0x34
  14780. }
  14781. return HAL_OK;
  14782. 8006a78: 2300 movs r3, #0
  14783. }
  14784. 8006a7a: 4618 mov r0, r3
  14785. 8006a7c: 3718 adds r7, #24
  14786. 8006a7e: 46bd mov sp, r7
  14787. 8006a80: bd80 pop {r7, pc}
  14788. 8006a82: bf00 nop
  14789. 8006a84: 40020010 .word 0x40020010
  14790. 8006a88: 40020028 .word 0x40020028
  14791. 8006a8c: 40020040 .word 0x40020040
  14792. 8006a90: 40020058 .word 0x40020058
  14793. 8006a94: 40020070 .word 0x40020070
  14794. 8006a98: 40020088 .word 0x40020088
  14795. 8006a9c: 400200a0 .word 0x400200a0
  14796. 8006aa0: 400200b8 .word 0x400200b8
  14797. 8006aa4: 40020410 .word 0x40020410
  14798. 8006aa8: 40020428 .word 0x40020428
  14799. 8006aac: 40020440 .word 0x40020440
  14800. 8006ab0: 40020458 .word 0x40020458
  14801. 8006ab4: 40020470 .word 0x40020470
  14802. 8006ab8: 40020488 .word 0x40020488
  14803. 8006abc: 400204a0 .word 0x400204a0
  14804. 8006ac0: 400204b8 .word 0x400204b8
  14805. 8006ac4: 58025408 .word 0x58025408
  14806. 8006ac8: 5802541c .word 0x5802541c
  14807. 8006acc: 58025430 .word 0x58025430
  14808. 8006ad0: 58025444 .word 0x58025444
  14809. 8006ad4: 58025458 .word 0x58025458
  14810. 8006ad8: 5802546c .word 0x5802546c
  14811. 8006adc: 58025480 .word 0x58025480
  14812. 8006ae0: 58025494 .word 0x58025494
  14813. 08006ae4 <HAL_DMA_Abort_IT>:
  14814. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  14815. * the configuration information for the specified DMA Stream.
  14816. * @retval HAL status
  14817. */
  14818. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  14819. {
  14820. 8006ae4: b580 push {r7, lr}
  14821. 8006ae6: b084 sub sp, #16
  14822. 8006ae8: af00 add r7, sp, #0
  14823. 8006aea: 6078 str r0, [r7, #4]
  14824. BDMA_Base_Registers *regs_bdma;
  14825. /* Check the DMA peripheral handle */
  14826. if(hdma == NULL)
  14827. 8006aec: 687b ldr r3, [r7, #4]
  14828. 8006aee: 2b00 cmp r3, #0
  14829. 8006af0: d101 bne.n 8006af6 <HAL_DMA_Abort_IT+0x12>
  14830. {
  14831. return HAL_ERROR;
  14832. 8006af2: 2301 movs r3, #1
  14833. 8006af4: e237 b.n 8006f66 <HAL_DMA_Abort_IT+0x482>
  14834. }
  14835. if(hdma->State != HAL_DMA_STATE_BUSY)
  14836. 8006af6: 687b ldr r3, [r7, #4]
  14837. 8006af8: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  14838. 8006afc: b2db uxtb r3, r3
  14839. 8006afe: 2b02 cmp r3, #2
  14840. 8006b00: d004 beq.n 8006b0c <HAL_DMA_Abort_IT+0x28>
  14841. {
  14842. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  14843. 8006b02: 687b ldr r3, [r7, #4]
  14844. 8006b04: 2280 movs r2, #128 @ 0x80
  14845. 8006b06: 655a str r2, [r3, #84] @ 0x54
  14846. return HAL_ERROR;
  14847. 8006b08: 2301 movs r3, #1
  14848. 8006b0a: e22c b.n 8006f66 <HAL_DMA_Abort_IT+0x482>
  14849. }
  14850. else
  14851. {
  14852. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  14853. 8006b0c: 687b ldr r3, [r7, #4]
  14854. 8006b0e: 681b ldr r3, [r3, #0]
  14855. 8006b10: 4a5c ldr r2, [pc, #368] @ (8006c84 <HAL_DMA_Abort_IT+0x1a0>)
  14856. 8006b12: 4293 cmp r3, r2
  14857. 8006b14: d04a beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14858. 8006b16: 687b ldr r3, [r7, #4]
  14859. 8006b18: 681b ldr r3, [r3, #0]
  14860. 8006b1a: 4a5b ldr r2, [pc, #364] @ (8006c88 <HAL_DMA_Abort_IT+0x1a4>)
  14861. 8006b1c: 4293 cmp r3, r2
  14862. 8006b1e: d045 beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14863. 8006b20: 687b ldr r3, [r7, #4]
  14864. 8006b22: 681b ldr r3, [r3, #0]
  14865. 8006b24: 4a59 ldr r2, [pc, #356] @ (8006c8c <HAL_DMA_Abort_IT+0x1a8>)
  14866. 8006b26: 4293 cmp r3, r2
  14867. 8006b28: d040 beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14868. 8006b2a: 687b ldr r3, [r7, #4]
  14869. 8006b2c: 681b ldr r3, [r3, #0]
  14870. 8006b2e: 4a58 ldr r2, [pc, #352] @ (8006c90 <HAL_DMA_Abort_IT+0x1ac>)
  14871. 8006b30: 4293 cmp r3, r2
  14872. 8006b32: d03b beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14873. 8006b34: 687b ldr r3, [r7, #4]
  14874. 8006b36: 681b ldr r3, [r3, #0]
  14875. 8006b38: 4a56 ldr r2, [pc, #344] @ (8006c94 <HAL_DMA_Abort_IT+0x1b0>)
  14876. 8006b3a: 4293 cmp r3, r2
  14877. 8006b3c: d036 beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14878. 8006b3e: 687b ldr r3, [r7, #4]
  14879. 8006b40: 681b ldr r3, [r3, #0]
  14880. 8006b42: 4a55 ldr r2, [pc, #340] @ (8006c98 <HAL_DMA_Abort_IT+0x1b4>)
  14881. 8006b44: 4293 cmp r3, r2
  14882. 8006b46: d031 beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14883. 8006b48: 687b ldr r3, [r7, #4]
  14884. 8006b4a: 681b ldr r3, [r3, #0]
  14885. 8006b4c: 4a53 ldr r2, [pc, #332] @ (8006c9c <HAL_DMA_Abort_IT+0x1b8>)
  14886. 8006b4e: 4293 cmp r3, r2
  14887. 8006b50: d02c beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14888. 8006b52: 687b ldr r3, [r7, #4]
  14889. 8006b54: 681b ldr r3, [r3, #0]
  14890. 8006b56: 4a52 ldr r2, [pc, #328] @ (8006ca0 <HAL_DMA_Abort_IT+0x1bc>)
  14891. 8006b58: 4293 cmp r3, r2
  14892. 8006b5a: d027 beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14893. 8006b5c: 687b ldr r3, [r7, #4]
  14894. 8006b5e: 681b ldr r3, [r3, #0]
  14895. 8006b60: 4a50 ldr r2, [pc, #320] @ (8006ca4 <HAL_DMA_Abort_IT+0x1c0>)
  14896. 8006b62: 4293 cmp r3, r2
  14897. 8006b64: d022 beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14898. 8006b66: 687b ldr r3, [r7, #4]
  14899. 8006b68: 681b ldr r3, [r3, #0]
  14900. 8006b6a: 4a4f ldr r2, [pc, #316] @ (8006ca8 <HAL_DMA_Abort_IT+0x1c4>)
  14901. 8006b6c: 4293 cmp r3, r2
  14902. 8006b6e: d01d beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14903. 8006b70: 687b ldr r3, [r7, #4]
  14904. 8006b72: 681b ldr r3, [r3, #0]
  14905. 8006b74: 4a4d ldr r2, [pc, #308] @ (8006cac <HAL_DMA_Abort_IT+0x1c8>)
  14906. 8006b76: 4293 cmp r3, r2
  14907. 8006b78: d018 beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14908. 8006b7a: 687b ldr r3, [r7, #4]
  14909. 8006b7c: 681b ldr r3, [r3, #0]
  14910. 8006b7e: 4a4c ldr r2, [pc, #304] @ (8006cb0 <HAL_DMA_Abort_IT+0x1cc>)
  14911. 8006b80: 4293 cmp r3, r2
  14912. 8006b82: d013 beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14913. 8006b84: 687b ldr r3, [r7, #4]
  14914. 8006b86: 681b ldr r3, [r3, #0]
  14915. 8006b88: 4a4a ldr r2, [pc, #296] @ (8006cb4 <HAL_DMA_Abort_IT+0x1d0>)
  14916. 8006b8a: 4293 cmp r3, r2
  14917. 8006b8c: d00e beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14918. 8006b8e: 687b ldr r3, [r7, #4]
  14919. 8006b90: 681b ldr r3, [r3, #0]
  14920. 8006b92: 4a49 ldr r2, [pc, #292] @ (8006cb8 <HAL_DMA_Abort_IT+0x1d4>)
  14921. 8006b94: 4293 cmp r3, r2
  14922. 8006b96: d009 beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14923. 8006b98: 687b ldr r3, [r7, #4]
  14924. 8006b9a: 681b ldr r3, [r3, #0]
  14925. 8006b9c: 4a47 ldr r2, [pc, #284] @ (8006cbc <HAL_DMA_Abort_IT+0x1d8>)
  14926. 8006b9e: 4293 cmp r3, r2
  14927. 8006ba0: d004 beq.n 8006bac <HAL_DMA_Abort_IT+0xc8>
  14928. 8006ba2: 687b ldr r3, [r7, #4]
  14929. 8006ba4: 681b ldr r3, [r3, #0]
  14930. 8006ba6: 4a46 ldr r2, [pc, #280] @ (8006cc0 <HAL_DMA_Abort_IT+0x1dc>)
  14931. 8006ba8: 4293 cmp r3, r2
  14932. 8006baa: d101 bne.n 8006bb0 <HAL_DMA_Abort_IT+0xcc>
  14933. 8006bac: 2301 movs r3, #1
  14934. 8006bae: e000 b.n 8006bb2 <HAL_DMA_Abort_IT+0xce>
  14935. 8006bb0: 2300 movs r3, #0
  14936. 8006bb2: 2b00 cmp r3, #0
  14937. 8006bb4: f000 8086 beq.w 8006cc4 <HAL_DMA_Abort_IT+0x1e0>
  14938. {
  14939. /* Set Abort State */
  14940. hdma->State = HAL_DMA_STATE_ABORT;
  14941. 8006bb8: 687b ldr r3, [r7, #4]
  14942. 8006bba: 2204 movs r2, #4
  14943. 8006bbc: f883 2035 strb.w r2, [r3, #53] @ 0x35
  14944. /* Disable the stream */
  14945. __HAL_DMA_DISABLE(hdma);
  14946. 8006bc0: 687b ldr r3, [r7, #4]
  14947. 8006bc2: 681b ldr r3, [r3, #0]
  14948. 8006bc4: 4a2f ldr r2, [pc, #188] @ (8006c84 <HAL_DMA_Abort_IT+0x1a0>)
  14949. 8006bc6: 4293 cmp r3, r2
  14950. 8006bc8: d04a beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  14951. 8006bca: 687b ldr r3, [r7, #4]
  14952. 8006bcc: 681b ldr r3, [r3, #0]
  14953. 8006bce: 4a2e ldr r2, [pc, #184] @ (8006c88 <HAL_DMA_Abort_IT+0x1a4>)
  14954. 8006bd0: 4293 cmp r3, r2
  14955. 8006bd2: d045 beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  14956. 8006bd4: 687b ldr r3, [r7, #4]
  14957. 8006bd6: 681b ldr r3, [r3, #0]
  14958. 8006bd8: 4a2c ldr r2, [pc, #176] @ (8006c8c <HAL_DMA_Abort_IT+0x1a8>)
  14959. 8006bda: 4293 cmp r3, r2
  14960. 8006bdc: d040 beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  14961. 8006bde: 687b ldr r3, [r7, #4]
  14962. 8006be0: 681b ldr r3, [r3, #0]
  14963. 8006be2: 4a2b ldr r2, [pc, #172] @ (8006c90 <HAL_DMA_Abort_IT+0x1ac>)
  14964. 8006be4: 4293 cmp r3, r2
  14965. 8006be6: d03b beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  14966. 8006be8: 687b ldr r3, [r7, #4]
  14967. 8006bea: 681b ldr r3, [r3, #0]
  14968. 8006bec: 4a29 ldr r2, [pc, #164] @ (8006c94 <HAL_DMA_Abort_IT+0x1b0>)
  14969. 8006bee: 4293 cmp r3, r2
  14970. 8006bf0: d036 beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  14971. 8006bf2: 687b ldr r3, [r7, #4]
  14972. 8006bf4: 681b ldr r3, [r3, #0]
  14973. 8006bf6: 4a28 ldr r2, [pc, #160] @ (8006c98 <HAL_DMA_Abort_IT+0x1b4>)
  14974. 8006bf8: 4293 cmp r3, r2
  14975. 8006bfa: d031 beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  14976. 8006bfc: 687b ldr r3, [r7, #4]
  14977. 8006bfe: 681b ldr r3, [r3, #0]
  14978. 8006c00: 4a26 ldr r2, [pc, #152] @ (8006c9c <HAL_DMA_Abort_IT+0x1b8>)
  14979. 8006c02: 4293 cmp r3, r2
  14980. 8006c04: d02c beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  14981. 8006c06: 687b ldr r3, [r7, #4]
  14982. 8006c08: 681b ldr r3, [r3, #0]
  14983. 8006c0a: 4a25 ldr r2, [pc, #148] @ (8006ca0 <HAL_DMA_Abort_IT+0x1bc>)
  14984. 8006c0c: 4293 cmp r3, r2
  14985. 8006c0e: d027 beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  14986. 8006c10: 687b ldr r3, [r7, #4]
  14987. 8006c12: 681b ldr r3, [r3, #0]
  14988. 8006c14: 4a23 ldr r2, [pc, #140] @ (8006ca4 <HAL_DMA_Abort_IT+0x1c0>)
  14989. 8006c16: 4293 cmp r3, r2
  14990. 8006c18: d022 beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  14991. 8006c1a: 687b ldr r3, [r7, #4]
  14992. 8006c1c: 681b ldr r3, [r3, #0]
  14993. 8006c1e: 4a22 ldr r2, [pc, #136] @ (8006ca8 <HAL_DMA_Abort_IT+0x1c4>)
  14994. 8006c20: 4293 cmp r3, r2
  14995. 8006c22: d01d beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  14996. 8006c24: 687b ldr r3, [r7, #4]
  14997. 8006c26: 681b ldr r3, [r3, #0]
  14998. 8006c28: 4a20 ldr r2, [pc, #128] @ (8006cac <HAL_DMA_Abort_IT+0x1c8>)
  14999. 8006c2a: 4293 cmp r3, r2
  15000. 8006c2c: d018 beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  15001. 8006c2e: 687b ldr r3, [r7, #4]
  15002. 8006c30: 681b ldr r3, [r3, #0]
  15003. 8006c32: 4a1f ldr r2, [pc, #124] @ (8006cb0 <HAL_DMA_Abort_IT+0x1cc>)
  15004. 8006c34: 4293 cmp r3, r2
  15005. 8006c36: d013 beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  15006. 8006c38: 687b ldr r3, [r7, #4]
  15007. 8006c3a: 681b ldr r3, [r3, #0]
  15008. 8006c3c: 4a1d ldr r2, [pc, #116] @ (8006cb4 <HAL_DMA_Abort_IT+0x1d0>)
  15009. 8006c3e: 4293 cmp r3, r2
  15010. 8006c40: d00e beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  15011. 8006c42: 687b ldr r3, [r7, #4]
  15012. 8006c44: 681b ldr r3, [r3, #0]
  15013. 8006c46: 4a1c ldr r2, [pc, #112] @ (8006cb8 <HAL_DMA_Abort_IT+0x1d4>)
  15014. 8006c48: 4293 cmp r3, r2
  15015. 8006c4a: d009 beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  15016. 8006c4c: 687b ldr r3, [r7, #4]
  15017. 8006c4e: 681b ldr r3, [r3, #0]
  15018. 8006c50: 4a1a ldr r2, [pc, #104] @ (8006cbc <HAL_DMA_Abort_IT+0x1d8>)
  15019. 8006c52: 4293 cmp r3, r2
  15020. 8006c54: d004 beq.n 8006c60 <HAL_DMA_Abort_IT+0x17c>
  15021. 8006c56: 687b ldr r3, [r7, #4]
  15022. 8006c58: 681b ldr r3, [r3, #0]
  15023. 8006c5a: 4a19 ldr r2, [pc, #100] @ (8006cc0 <HAL_DMA_Abort_IT+0x1dc>)
  15024. 8006c5c: 4293 cmp r3, r2
  15025. 8006c5e: d108 bne.n 8006c72 <HAL_DMA_Abort_IT+0x18e>
  15026. 8006c60: 687b ldr r3, [r7, #4]
  15027. 8006c62: 681b ldr r3, [r3, #0]
  15028. 8006c64: 681a ldr r2, [r3, #0]
  15029. 8006c66: 687b ldr r3, [r7, #4]
  15030. 8006c68: 681b ldr r3, [r3, #0]
  15031. 8006c6a: f022 0201 bic.w r2, r2, #1
  15032. 8006c6e: 601a str r2, [r3, #0]
  15033. 8006c70: e178 b.n 8006f64 <HAL_DMA_Abort_IT+0x480>
  15034. 8006c72: 687b ldr r3, [r7, #4]
  15035. 8006c74: 681b ldr r3, [r3, #0]
  15036. 8006c76: 681a ldr r2, [r3, #0]
  15037. 8006c78: 687b ldr r3, [r7, #4]
  15038. 8006c7a: 681b ldr r3, [r3, #0]
  15039. 8006c7c: f022 0201 bic.w r2, r2, #1
  15040. 8006c80: 601a str r2, [r3, #0]
  15041. 8006c82: e16f b.n 8006f64 <HAL_DMA_Abort_IT+0x480>
  15042. 8006c84: 40020010 .word 0x40020010
  15043. 8006c88: 40020028 .word 0x40020028
  15044. 8006c8c: 40020040 .word 0x40020040
  15045. 8006c90: 40020058 .word 0x40020058
  15046. 8006c94: 40020070 .word 0x40020070
  15047. 8006c98: 40020088 .word 0x40020088
  15048. 8006c9c: 400200a0 .word 0x400200a0
  15049. 8006ca0: 400200b8 .word 0x400200b8
  15050. 8006ca4: 40020410 .word 0x40020410
  15051. 8006ca8: 40020428 .word 0x40020428
  15052. 8006cac: 40020440 .word 0x40020440
  15053. 8006cb0: 40020458 .word 0x40020458
  15054. 8006cb4: 40020470 .word 0x40020470
  15055. 8006cb8: 40020488 .word 0x40020488
  15056. 8006cbc: 400204a0 .word 0x400204a0
  15057. 8006cc0: 400204b8 .word 0x400204b8
  15058. }
  15059. else /* BDMA channel */
  15060. {
  15061. /* Disable DMA All Interrupts */
  15062. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  15063. 8006cc4: 687b ldr r3, [r7, #4]
  15064. 8006cc6: 681b ldr r3, [r3, #0]
  15065. 8006cc8: 681a ldr r2, [r3, #0]
  15066. 8006cca: 687b ldr r3, [r7, #4]
  15067. 8006ccc: 681b ldr r3, [r3, #0]
  15068. 8006cce: f022 020e bic.w r2, r2, #14
  15069. 8006cd2: 601a str r2, [r3, #0]
  15070. /* Disable the channel */
  15071. __HAL_DMA_DISABLE(hdma);
  15072. 8006cd4: 687b ldr r3, [r7, #4]
  15073. 8006cd6: 681b ldr r3, [r3, #0]
  15074. 8006cd8: 4a6c ldr r2, [pc, #432] @ (8006e8c <HAL_DMA_Abort_IT+0x3a8>)
  15075. 8006cda: 4293 cmp r3, r2
  15076. 8006cdc: d04a beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15077. 8006cde: 687b ldr r3, [r7, #4]
  15078. 8006ce0: 681b ldr r3, [r3, #0]
  15079. 8006ce2: 4a6b ldr r2, [pc, #428] @ (8006e90 <HAL_DMA_Abort_IT+0x3ac>)
  15080. 8006ce4: 4293 cmp r3, r2
  15081. 8006ce6: d045 beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15082. 8006ce8: 687b ldr r3, [r7, #4]
  15083. 8006cea: 681b ldr r3, [r3, #0]
  15084. 8006cec: 4a69 ldr r2, [pc, #420] @ (8006e94 <HAL_DMA_Abort_IT+0x3b0>)
  15085. 8006cee: 4293 cmp r3, r2
  15086. 8006cf0: d040 beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15087. 8006cf2: 687b ldr r3, [r7, #4]
  15088. 8006cf4: 681b ldr r3, [r3, #0]
  15089. 8006cf6: 4a68 ldr r2, [pc, #416] @ (8006e98 <HAL_DMA_Abort_IT+0x3b4>)
  15090. 8006cf8: 4293 cmp r3, r2
  15091. 8006cfa: d03b beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15092. 8006cfc: 687b ldr r3, [r7, #4]
  15093. 8006cfe: 681b ldr r3, [r3, #0]
  15094. 8006d00: 4a66 ldr r2, [pc, #408] @ (8006e9c <HAL_DMA_Abort_IT+0x3b8>)
  15095. 8006d02: 4293 cmp r3, r2
  15096. 8006d04: d036 beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15097. 8006d06: 687b ldr r3, [r7, #4]
  15098. 8006d08: 681b ldr r3, [r3, #0]
  15099. 8006d0a: 4a65 ldr r2, [pc, #404] @ (8006ea0 <HAL_DMA_Abort_IT+0x3bc>)
  15100. 8006d0c: 4293 cmp r3, r2
  15101. 8006d0e: d031 beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15102. 8006d10: 687b ldr r3, [r7, #4]
  15103. 8006d12: 681b ldr r3, [r3, #0]
  15104. 8006d14: 4a63 ldr r2, [pc, #396] @ (8006ea4 <HAL_DMA_Abort_IT+0x3c0>)
  15105. 8006d16: 4293 cmp r3, r2
  15106. 8006d18: d02c beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15107. 8006d1a: 687b ldr r3, [r7, #4]
  15108. 8006d1c: 681b ldr r3, [r3, #0]
  15109. 8006d1e: 4a62 ldr r2, [pc, #392] @ (8006ea8 <HAL_DMA_Abort_IT+0x3c4>)
  15110. 8006d20: 4293 cmp r3, r2
  15111. 8006d22: d027 beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15112. 8006d24: 687b ldr r3, [r7, #4]
  15113. 8006d26: 681b ldr r3, [r3, #0]
  15114. 8006d28: 4a60 ldr r2, [pc, #384] @ (8006eac <HAL_DMA_Abort_IT+0x3c8>)
  15115. 8006d2a: 4293 cmp r3, r2
  15116. 8006d2c: d022 beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15117. 8006d2e: 687b ldr r3, [r7, #4]
  15118. 8006d30: 681b ldr r3, [r3, #0]
  15119. 8006d32: 4a5f ldr r2, [pc, #380] @ (8006eb0 <HAL_DMA_Abort_IT+0x3cc>)
  15120. 8006d34: 4293 cmp r3, r2
  15121. 8006d36: d01d beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15122. 8006d38: 687b ldr r3, [r7, #4]
  15123. 8006d3a: 681b ldr r3, [r3, #0]
  15124. 8006d3c: 4a5d ldr r2, [pc, #372] @ (8006eb4 <HAL_DMA_Abort_IT+0x3d0>)
  15125. 8006d3e: 4293 cmp r3, r2
  15126. 8006d40: d018 beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15127. 8006d42: 687b ldr r3, [r7, #4]
  15128. 8006d44: 681b ldr r3, [r3, #0]
  15129. 8006d46: 4a5c ldr r2, [pc, #368] @ (8006eb8 <HAL_DMA_Abort_IT+0x3d4>)
  15130. 8006d48: 4293 cmp r3, r2
  15131. 8006d4a: d013 beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15132. 8006d4c: 687b ldr r3, [r7, #4]
  15133. 8006d4e: 681b ldr r3, [r3, #0]
  15134. 8006d50: 4a5a ldr r2, [pc, #360] @ (8006ebc <HAL_DMA_Abort_IT+0x3d8>)
  15135. 8006d52: 4293 cmp r3, r2
  15136. 8006d54: d00e beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15137. 8006d56: 687b ldr r3, [r7, #4]
  15138. 8006d58: 681b ldr r3, [r3, #0]
  15139. 8006d5a: 4a59 ldr r2, [pc, #356] @ (8006ec0 <HAL_DMA_Abort_IT+0x3dc>)
  15140. 8006d5c: 4293 cmp r3, r2
  15141. 8006d5e: d009 beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15142. 8006d60: 687b ldr r3, [r7, #4]
  15143. 8006d62: 681b ldr r3, [r3, #0]
  15144. 8006d64: 4a57 ldr r2, [pc, #348] @ (8006ec4 <HAL_DMA_Abort_IT+0x3e0>)
  15145. 8006d66: 4293 cmp r3, r2
  15146. 8006d68: d004 beq.n 8006d74 <HAL_DMA_Abort_IT+0x290>
  15147. 8006d6a: 687b ldr r3, [r7, #4]
  15148. 8006d6c: 681b ldr r3, [r3, #0]
  15149. 8006d6e: 4a56 ldr r2, [pc, #344] @ (8006ec8 <HAL_DMA_Abort_IT+0x3e4>)
  15150. 8006d70: 4293 cmp r3, r2
  15151. 8006d72: d108 bne.n 8006d86 <HAL_DMA_Abort_IT+0x2a2>
  15152. 8006d74: 687b ldr r3, [r7, #4]
  15153. 8006d76: 681b ldr r3, [r3, #0]
  15154. 8006d78: 681a ldr r2, [r3, #0]
  15155. 8006d7a: 687b ldr r3, [r7, #4]
  15156. 8006d7c: 681b ldr r3, [r3, #0]
  15157. 8006d7e: f022 0201 bic.w r2, r2, #1
  15158. 8006d82: 601a str r2, [r3, #0]
  15159. 8006d84: e007 b.n 8006d96 <HAL_DMA_Abort_IT+0x2b2>
  15160. 8006d86: 687b ldr r3, [r7, #4]
  15161. 8006d88: 681b ldr r3, [r3, #0]
  15162. 8006d8a: 681a ldr r2, [r3, #0]
  15163. 8006d8c: 687b ldr r3, [r7, #4]
  15164. 8006d8e: 681b ldr r3, [r3, #0]
  15165. 8006d90: f022 0201 bic.w r2, r2, #1
  15166. 8006d94: 601a str r2, [r3, #0]
  15167. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  15168. 8006d96: 687b ldr r3, [r7, #4]
  15169. 8006d98: 681b ldr r3, [r3, #0]
  15170. 8006d9a: 4a3c ldr r2, [pc, #240] @ (8006e8c <HAL_DMA_Abort_IT+0x3a8>)
  15171. 8006d9c: 4293 cmp r3, r2
  15172. 8006d9e: d072 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15173. 8006da0: 687b ldr r3, [r7, #4]
  15174. 8006da2: 681b ldr r3, [r3, #0]
  15175. 8006da4: 4a3a ldr r2, [pc, #232] @ (8006e90 <HAL_DMA_Abort_IT+0x3ac>)
  15176. 8006da6: 4293 cmp r3, r2
  15177. 8006da8: d06d beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15178. 8006daa: 687b ldr r3, [r7, #4]
  15179. 8006dac: 681b ldr r3, [r3, #0]
  15180. 8006dae: 4a39 ldr r2, [pc, #228] @ (8006e94 <HAL_DMA_Abort_IT+0x3b0>)
  15181. 8006db0: 4293 cmp r3, r2
  15182. 8006db2: d068 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15183. 8006db4: 687b ldr r3, [r7, #4]
  15184. 8006db6: 681b ldr r3, [r3, #0]
  15185. 8006db8: 4a37 ldr r2, [pc, #220] @ (8006e98 <HAL_DMA_Abort_IT+0x3b4>)
  15186. 8006dba: 4293 cmp r3, r2
  15187. 8006dbc: d063 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15188. 8006dbe: 687b ldr r3, [r7, #4]
  15189. 8006dc0: 681b ldr r3, [r3, #0]
  15190. 8006dc2: 4a36 ldr r2, [pc, #216] @ (8006e9c <HAL_DMA_Abort_IT+0x3b8>)
  15191. 8006dc4: 4293 cmp r3, r2
  15192. 8006dc6: d05e beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15193. 8006dc8: 687b ldr r3, [r7, #4]
  15194. 8006dca: 681b ldr r3, [r3, #0]
  15195. 8006dcc: 4a34 ldr r2, [pc, #208] @ (8006ea0 <HAL_DMA_Abort_IT+0x3bc>)
  15196. 8006dce: 4293 cmp r3, r2
  15197. 8006dd0: d059 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15198. 8006dd2: 687b ldr r3, [r7, #4]
  15199. 8006dd4: 681b ldr r3, [r3, #0]
  15200. 8006dd6: 4a33 ldr r2, [pc, #204] @ (8006ea4 <HAL_DMA_Abort_IT+0x3c0>)
  15201. 8006dd8: 4293 cmp r3, r2
  15202. 8006dda: d054 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15203. 8006ddc: 687b ldr r3, [r7, #4]
  15204. 8006dde: 681b ldr r3, [r3, #0]
  15205. 8006de0: 4a31 ldr r2, [pc, #196] @ (8006ea8 <HAL_DMA_Abort_IT+0x3c4>)
  15206. 8006de2: 4293 cmp r3, r2
  15207. 8006de4: d04f beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15208. 8006de6: 687b ldr r3, [r7, #4]
  15209. 8006de8: 681b ldr r3, [r3, #0]
  15210. 8006dea: 4a30 ldr r2, [pc, #192] @ (8006eac <HAL_DMA_Abort_IT+0x3c8>)
  15211. 8006dec: 4293 cmp r3, r2
  15212. 8006dee: d04a beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15213. 8006df0: 687b ldr r3, [r7, #4]
  15214. 8006df2: 681b ldr r3, [r3, #0]
  15215. 8006df4: 4a2e ldr r2, [pc, #184] @ (8006eb0 <HAL_DMA_Abort_IT+0x3cc>)
  15216. 8006df6: 4293 cmp r3, r2
  15217. 8006df8: d045 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15218. 8006dfa: 687b ldr r3, [r7, #4]
  15219. 8006dfc: 681b ldr r3, [r3, #0]
  15220. 8006dfe: 4a2d ldr r2, [pc, #180] @ (8006eb4 <HAL_DMA_Abort_IT+0x3d0>)
  15221. 8006e00: 4293 cmp r3, r2
  15222. 8006e02: d040 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15223. 8006e04: 687b ldr r3, [r7, #4]
  15224. 8006e06: 681b ldr r3, [r3, #0]
  15225. 8006e08: 4a2b ldr r2, [pc, #172] @ (8006eb8 <HAL_DMA_Abort_IT+0x3d4>)
  15226. 8006e0a: 4293 cmp r3, r2
  15227. 8006e0c: d03b beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15228. 8006e0e: 687b ldr r3, [r7, #4]
  15229. 8006e10: 681b ldr r3, [r3, #0]
  15230. 8006e12: 4a2a ldr r2, [pc, #168] @ (8006ebc <HAL_DMA_Abort_IT+0x3d8>)
  15231. 8006e14: 4293 cmp r3, r2
  15232. 8006e16: d036 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15233. 8006e18: 687b ldr r3, [r7, #4]
  15234. 8006e1a: 681b ldr r3, [r3, #0]
  15235. 8006e1c: 4a28 ldr r2, [pc, #160] @ (8006ec0 <HAL_DMA_Abort_IT+0x3dc>)
  15236. 8006e1e: 4293 cmp r3, r2
  15237. 8006e20: d031 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15238. 8006e22: 687b ldr r3, [r7, #4]
  15239. 8006e24: 681b ldr r3, [r3, #0]
  15240. 8006e26: 4a27 ldr r2, [pc, #156] @ (8006ec4 <HAL_DMA_Abort_IT+0x3e0>)
  15241. 8006e28: 4293 cmp r3, r2
  15242. 8006e2a: d02c beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15243. 8006e2c: 687b ldr r3, [r7, #4]
  15244. 8006e2e: 681b ldr r3, [r3, #0]
  15245. 8006e30: 4a25 ldr r2, [pc, #148] @ (8006ec8 <HAL_DMA_Abort_IT+0x3e4>)
  15246. 8006e32: 4293 cmp r3, r2
  15247. 8006e34: d027 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15248. 8006e36: 687b ldr r3, [r7, #4]
  15249. 8006e38: 681b ldr r3, [r3, #0]
  15250. 8006e3a: 4a24 ldr r2, [pc, #144] @ (8006ecc <HAL_DMA_Abort_IT+0x3e8>)
  15251. 8006e3c: 4293 cmp r3, r2
  15252. 8006e3e: d022 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15253. 8006e40: 687b ldr r3, [r7, #4]
  15254. 8006e42: 681b ldr r3, [r3, #0]
  15255. 8006e44: 4a22 ldr r2, [pc, #136] @ (8006ed0 <HAL_DMA_Abort_IT+0x3ec>)
  15256. 8006e46: 4293 cmp r3, r2
  15257. 8006e48: d01d beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15258. 8006e4a: 687b ldr r3, [r7, #4]
  15259. 8006e4c: 681b ldr r3, [r3, #0]
  15260. 8006e4e: 4a21 ldr r2, [pc, #132] @ (8006ed4 <HAL_DMA_Abort_IT+0x3f0>)
  15261. 8006e50: 4293 cmp r3, r2
  15262. 8006e52: d018 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15263. 8006e54: 687b ldr r3, [r7, #4]
  15264. 8006e56: 681b ldr r3, [r3, #0]
  15265. 8006e58: 4a1f ldr r2, [pc, #124] @ (8006ed8 <HAL_DMA_Abort_IT+0x3f4>)
  15266. 8006e5a: 4293 cmp r3, r2
  15267. 8006e5c: d013 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15268. 8006e5e: 687b ldr r3, [r7, #4]
  15269. 8006e60: 681b ldr r3, [r3, #0]
  15270. 8006e62: 4a1e ldr r2, [pc, #120] @ (8006edc <HAL_DMA_Abort_IT+0x3f8>)
  15271. 8006e64: 4293 cmp r3, r2
  15272. 8006e66: d00e beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15273. 8006e68: 687b ldr r3, [r7, #4]
  15274. 8006e6a: 681b ldr r3, [r3, #0]
  15275. 8006e6c: 4a1c ldr r2, [pc, #112] @ (8006ee0 <HAL_DMA_Abort_IT+0x3fc>)
  15276. 8006e6e: 4293 cmp r3, r2
  15277. 8006e70: d009 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15278. 8006e72: 687b ldr r3, [r7, #4]
  15279. 8006e74: 681b ldr r3, [r3, #0]
  15280. 8006e76: 4a1b ldr r2, [pc, #108] @ (8006ee4 <HAL_DMA_Abort_IT+0x400>)
  15281. 8006e78: 4293 cmp r3, r2
  15282. 8006e7a: d004 beq.n 8006e86 <HAL_DMA_Abort_IT+0x3a2>
  15283. 8006e7c: 687b ldr r3, [r7, #4]
  15284. 8006e7e: 681b ldr r3, [r3, #0]
  15285. 8006e80: 4a19 ldr r2, [pc, #100] @ (8006ee8 <HAL_DMA_Abort_IT+0x404>)
  15286. 8006e82: 4293 cmp r3, r2
  15287. 8006e84: d132 bne.n 8006eec <HAL_DMA_Abort_IT+0x408>
  15288. 8006e86: 2301 movs r3, #1
  15289. 8006e88: e031 b.n 8006eee <HAL_DMA_Abort_IT+0x40a>
  15290. 8006e8a: bf00 nop
  15291. 8006e8c: 40020010 .word 0x40020010
  15292. 8006e90: 40020028 .word 0x40020028
  15293. 8006e94: 40020040 .word 0x40020040
  15294. 8006e98: 40020058 .word 0x40020058
  15295. 8006e9c: 40020070 .word 0x40020070
  15296. 8006ea0: 40020088 .word 0x40020088
  15297. 8006ea4: 400200a0 .word 0x400200a0
  15298. 8006ea8: 400200b8 .word 0x400200b8
  15299. 8006eac: 40020410 .word 0x40020410
  15300. 8006eb0: 40020428 .word 0x40020428
  15301. 8006eb4: 40020440 .word 0x40020440
  15302. 8006eb8: 40020458 .word 0x40020458
  15303. 8006ebc: 40020470 .word 0x40020470
  15304. 8006ec0: 40020488 .word 0x40020488
  15305. 8006ec4: 400204a0 .word 0x400204a0
  15306. 8006ec8: 400204b8 .word 0x400204b8
  15307. 8006ecc: 58025408 .word 0x58025408
  15308. 8006ed0: 5802541c .word 0x5802541c
  15309. 8006ed4: 58025430 .word 0x58025430
  15310. 8006ed8: 58025444 .word 0x58025444
  15311. 8006edc: 58025458 .word 0x58025458
  15312. 8006ee0: 5802546c .word 0x5802546c
  15313. 8006ee4: 58025480 .word 0x58025480
  15314. 8006ee8: 58025494 .word 0x58025494
  15315. 8006eec: 2300 movs r3, #0
  15316. 8006eee: 2b00 cmp r3, #0
  15317. 8006ef0: d028 beq.n 8006f44 <HAL_DMA_Abort_IT+0x460>
  15318. {
  15319. /* disable the DMAMUX sync overrun IT */
  15320. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  15321. 8006ef2: 687b ldr r3, [r7, #4]
  15322. 8006ef4: 6e1b ldr r3, [r3, #96] @ 0x60
  15323. 8006ef6: 681a ldr r2, [r3, #0]
  15324. 8006ef8: 687b ldr r3, [r7, #4]
  15325. 8006efa: 6e1b ldr r3, [r3, #96] @ 0x60
  15326. 8006efc: f422 7280 bic.w r2, r2, #256 @ 0x100
  15327. 8006f00: 601a str r2, [r3, #0]
  15328. /* Clear all flags */
  15329. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  15330. 8006f02: 687b ldr r3, [r7, #4]
  15331. 8006f04: 6d9b ldr r3, [r3, #88] @ 0x58
  15332. 8006f06: 60fb str r3, [r7, #12]
  15333. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  15334. 8006f08: 687b ldr r3, [r7, #4]
  15335. 8006f0a: 6ddb ldr r3, [r3, #92] @ 0x5c
  15336. 8006f0c: f003 031f and.w r3, r3, #31
  15337. 8006f10: 2201 movs r2, #1
  15338. 8006f12: 409a lsls r2, r3
  15339. 8006f14: 68fb ldr r3, [r7, #12]
  15340. 8006f16: 605a str r2, [r3, #4]
  15341. /* Clear the DMAMUX synchro overrun flag */
  15342. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  15343. 8006f18: 687b ldr r3, [r7, #4]
  15344. 8006f1a: 6e5b ldr r3, [r3, #100] @ 0x64
  15345. 8006f1c: 687a ldr r2, [r7, #4]
  15346. 8006f1e: 6e92 ldr r2, [r2, #104] @ 0x68
  15347. 8006f20: 605a str r2, [r3, #4]
  15348. if(hdma->DMAmuxRequestGen != 0U)
  15349. 8006f22: 687b ldr r3, [r7, #4]
  15350. 8006f24: 6edb ldr r3, [r3, #108] @ 0x6c
  15351. 8006f26: 2b00 cmp r3, #0
  15352. 8006f28: d00c beq.n 8006f44 <HAL_DMA_Abort_IT+0x460>
  15353. {
  15354. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/
  15355. /* disable the request gen overrun IT */
  15356. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  15357. 8006f2a: 687b ldr r3, [r7, #4]
  15358. 8006f2c: 6edb ldr r3, [r3, #108] @ 0x6c
  15359. 8006f2e: 681a ldr r2, [r3, #0]
  15360. 8006f30: 687b ldr r3, [r7, #4]
  15361. 8006f32: 6edb ldr r3, [r3, #108] @ 0x6c
  15362. 8006f34: f422 7280 bic.w r2, r2, #256 @ 0x100
  15363. 8006f38: 601a str r2, [r3, #0]
  15364. /* Clear the DMAMUX request generator overrun flag */
  15365. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  15366. 8006f3a: 687b ldr r3, [r7, #4]
  15367. 8006f3c: 6f1b ldr r3, [r3, #112] @ 0x70
  15368. 8006f3e: 687a ldr r2, [r7, #4]
  15369. 8006f40: 6f52 ldr r2, [r2, #116] @ 0x74
  15370. 8006f42: 605a str r2, [r3, #4]
  15371. }
  15372. }
  15373. /* Change the DMA state */
  15374. hdma->State = HAL_DMA_STATE_READY;
  15375. 8006f44: 687b ldr r3, [r7, #4]
  15376. 8006f46: 2201 movs r2, #1
  15377. 8006f48: f883 2035 strb.w r2, [r3, #53] @ 0x35
  15378. /* Process Unlocked */
  15379. __HAL_UNLOCK(hdma);
  15380. 8006f4c: 687b ldr r3, [r7, #4]
  15381. 8006f4e: 2200 movs r2, #0
  15382. 8006f50: f883 2034 strb.w r2, [r3, #52] @ 0x34
  15383. /* Call User Abort callback */
  15384. if(hdma->XferAbortCallback != NULL)
  15385. 8006f54: 687b ldr r3, [r7, #4]
  15386. 8006f56: 6d1b ldr r3, [r3, #80] @ 0x50
  15387. 8006f58: 2b00 cmp r3, #0
  15388. 8006f5a: d003 beq.n 8006f64 <HAL_DMA_Abort_IT+0x480>
  15389. {
  15390. hdma->XferAbortCallback(hdma);
  15391. 8006f5c: 687b ldr r3, [r7, #4]
  15392. 8006f5e: 6d1b ldr r3, [r3, #80] @ 0x50
  15393. 8006f60: 6878 ldr r0, [r7, #4]
  15394. 8006f62: 4798 blx r3
  15395. }
  15396. }
  15397. }
  15398. return HAL_OK;
  15399. 8006f64: 2300 movs r3, #0
  15400. }
  15401. 8006f66: 4618 mov r0, r3
  15402. 8006f68: 3710 adds r7, #16
  15403. 8006f6a: 46bd mov sp, r7
  15404. 8006f6c: bd80 pop {r7, pc}
  15405. 8006f6e: bf00 nop
  15406. 08006f70 <HAL_DMA_IRQHandler>:
  15407. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  15408. * the configuration information for the specified DMA Stream.
  15409. * @retval None
  15410. */
  15411. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  15412. {
  15413. 8006f70: b580 push {r7, lr}
  15414. 8006f72: b08a sub sp, #40 @ 0x28
  15415. 8006f74: af00 add r7, sp, #0
  15416. 8006f76: 6078 str r0, [r7, #4]
  15417. uint32_t tmpisr_dma, tmpisr_bdma;
  15418. uint32_t ccr_reg;
  15419. __IO uint32_t count = 0U;
  15420. 8006f78: 2300 movs r3, #0
  15421. 8006f7a: 60fb str r3, [r7, #12]
  15422. uint32_t timeout = SystemCoreClock / 9600U;
  15423. 8006f7c: 4b67 ldr r3, [pc, #412] @ (800711c <HAL_DMA_IRQHandler+0x1ac>)
  15424. 8006f7e: 681b ldr r3, [r3, #0]
  15425. 8006f80: 4a67 ldr r2, [pc, #412] @ (8007120 <HAL_DMA_IRQHandler+0x1b0>)
  15426. 8006f82: fba2 2303 umull r2, r3, r2, r3
  15427. 8006f86: 0a9b lsrs r3, r3, #10
  15428. 8006f88: 627b str r3, [r7, #36] @ 0x24
  15429. /* calculate DMA base and stream number */
  15430. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  15431. 8006f8a: 687b ldr r3, [r7, #4]
  15432. 8006f8c: 6d9b ldr r3, [r3, #88] @ 0x58
  15433. 8006f8e: 623b str r3, [r7, #32]
  15434. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  15435. 8006f90: 687b ldr r3, [r7, #4]
  15436. 8006f92: 6d9b ldr r3, [r3, #88] @ 0x58
  15437. 8006f94: 61fb str r3, [r7, #28]
  15438. tmpisr_dma = regs_dma->ISR;
  15439. 8006f96: 6a3b ldr r3, [r7, #32]
  15440. 8006f98: 681b ldr r3, [r3, #0]
  15441. 8006f9a: 61bb str r3, [r7, #24]
  15442. tmpisr_bdma = regs_bdma->ISR;
  15443. 8006f9c: 69fb ldr r3, [r7, #28]
  15444. 8006f9e: 681b ldr r3, [r3, #0]
  15445. 8006fa0: 617b str r3, [r7, #20]
  15446. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  15447. 8006fa2: 687b ldr r3, [r7, #4]
  15448. 8006fa4: 681b ldr r3, [r3, #0]
  15449. 8006fa6: 4a5f ldr r2, [pc, #380] @ (8007124 <HAL_DMA_IRQHandler+0x1b4>)
  15450. 8006fa8: 4293 cmp r3, r2
  15451. 8006faa: d04a beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15452. 8006fac: 687b ldr r3, [r7, #4]
  15453. 8006fae: 681b ldr r3, [r3, #0]
  15454. 8006fb0: 4a5d ldr r2, [pc, #372] @ (8007128 <HAL_DMA_IRQHandler+0x1b8>)
  15455. 8006fb2: 4293 cmp r3, r2
  15456. 8006fb4: d045 beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15457. 8006fb6: 687b ldr r3, [r7, #4]
  15458. 8006fb8: 681b ldr r3, [r3, #0]
  15459. 8006fba: 4a5c ldr r2, [pc, #368] @ (800712c <HAL_DMA_IRQHandler+0x1bc>)
  15460. 8006fbc: 4293 cmp r3, r2
  15461. 8006fbe: d040 beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15462. 8006fc0: 687b ldr r3, [r7, #4]
  15463. 8006fc2: 681b ldr r3, [r3, #0]
  15464. 8006fc4: 4a5a ldr r2, [pc, #360] @ (8007130 <HAL_DMA_IRQHandler+0x1c0>)
  15465. 8006fc6: 4293 cmp r3, r2
  15466. 8006fc8: d03b beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15467. 8006fca: 687b ldr r3, [r7, #4]
  15468. 8006fcc: 681b ldr r3, [r3, #0]
  15469. 8006fce: 4a59 ldr r2, [pc, #356] @ (8007134 <HAL_DMA_IRQHandler+0x1c4>)
  15470. 8006fd0: 4293 cmp r3, r2
  15471. 8006fd2: d036 beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15472. 8006fd4: 687b ldr r3, [r7, #4]
  15473. 8006fd6: 681b ldr r3, [r3, #0]
  15474. 8006fd8: 4a57 ldr r2, [pc, #348] @ (8007138 <HAL_DMA_IRQHandler+0x1c8>)
  15475. 8006fda: 4293 cmp r3, r2
  15476. 8006fdc: d031 beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15477. 8006fde: 687b ldr r3, [r7, #4]
  15478. 8006fe0: 681b ldr r3, [r3, #0]
  15479. 8006fe2: 4a56 ldr r2, [pc, #344] @ (800713c <HAL_DMA_IRQHandler+0x1cc>)
  15480. 8006fe4: 4293 cmp r3, r2
  15481. 8006fe6: d02c beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15482. 8006fe8: 687b ldr r3, [r7, #4]
  15483. 8006fea: 681b ldr r3, [r3, #0]
  15484. 8006fec: 4a54 ldr r2, [pc, #336] @ (8007140 <HAL_DMA_IRQHandler+0x1d0>)
  15485. 8006fee: 4293 cmp r3, r2
  15486. 8006ff0: d027 beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15487. 8006ff2: 687b ldr r3, [r7, #4]
  15488. 8006ff4: 681b ldr r3, [r3, #0]
  15489. 8006ff6: 4a53 ldr r2, [pc, #332] @ (8007144 <HAL_DMA_IRQHandler+0x1d4>)
  15490. 8006ff8: 4293 cmp r3, r2
  15491. 8006ffa: d022 beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15492. 8006ffc: 687b ldr r3, [r7, #4]
  15493. 8006ffe: 681b ldr r3, [r3, #0]
  15494. 8007000: 4a51 ldr r2, [pc, #324] @ (8007148 <HAL_DMA_IRQHandler+0x1d8>)
  15495. 8007002: 4293 cmp r3, r2
  15496. 8007004: d01d beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15497. 8007006: 687b ldr r3, [r7, #4]
  15498. 8007008: 681b ldr r3, [r3, #0]
  15499. 800700a: 4a50 ldr r2, [pc, #320] @ (800714c <HAL_DMA_IRQHandler+0x1dc>)
  15500. 800700c: 4293 cmp r3, r2
  15501. 800700e: d018 beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15502. 8007010: 687b ldr r3, [r7, #4]
  15503. 8007012: 681b ldr r3, [r3, #0]
  15504. 8007014: 4a4e ldr r2, [pc, #312] @ (8007150 <HAL_DMA_IRQHandler+0x1e0>)
  15505. 8007016: 4293 cmp r3, r2
  15506. 8007018: d013 beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15507. 800701a: 687b ldr r3, [r7, #4]
  15508. 800701c: 681b ldr r3, [r3, #0]
  15509. 800701e: 4a4d ldr r2, [pc, #308] @ (8007154 <HAL_DMA_IRQHandler+0x1e4>)
  15510. 8007020: 4293 cmp r3, r2
  15511. 8007022: d00e beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15512. 8007024: 687b ldr r3, [r7, #4]
  15513. 8007026: 681b ldr r3, [r3, #0]
  15514. 8007028: 4a4b ldr r2, [pc, #300] @ (8007158 <HAL_DMA_IRQHandler+0x1e8>)
  15515. 800702a: 4293 cmp r3, r2
  15516. 800702c: d009 beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15517. 800702e: 687b ldr r3, [r7, #4]
  15518. 8007030: 681b ldr r3, [r3, #0]
  15519. 8007032: 4a4a ldr r2, [pc, #296] @ (800715c <HAL_DMA_IRQHandler+0x1ec>)
  15520. 8007034: 4293 cmp r3, r2
  15521. 8007036: d004 beq.n 8007042 <HAL_DMA_IRQHandler+0xd2>
  15522. 8007038: 687b ldr r3, [r7, #4]
  15523. 800703a: 681b ldr r3, [r3, #0]
  15524. 800703c: 4a48 ldr r2, [pc, #288] @ (8007160 <HAL_DMA_IRQHandler+0x1f0>)
  15525. 800703e: 4293 cmp r3, r2
  15526. 8007040: d101 bne.n 8007046 <HAL_DMA_IRQHandler+0xd6>
  15527. 8007042: 2301 movs r3, #1
  15528. 8007044: e000 b.n 8007048 <HAL_DMA_IRQHandler+0xd8>
  15529. 8007046: 2300 movs r3, #0
  15530. 8007048: 2b00 cmp r3, #0
  15531. 800704a: f000 842b beq.w 80078a4 <HAL_DMA_IRQHandler+0x934>
  15532. {
  15533. /* Transfer Error Interrupt management ***************************************/
  15534. if ((tmpisr_dma & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  15535. 800704e: 687b ldr r3, [r7, #4]
  15536. 8007050: 6ddb ldr r3, [r3, #92] @ 0x5c
  15537. 8007052: f003 031f and.w r3, r3, #31
  15538. 8007056: 2208 movs r2, #8
  15539. 8007058: 409a lsls r2, r3
  15540. 800705a: 69bb ldr r3, [r7, #24]
  15541. 800705c: 4013 ands r3, r2
  15542. 800705e: 2b00 cmp r3, #0
  15543. 8007060: f000 80a2 beq.w 80071a8 <HAL_DMA_IRQHandler+0x238>
  15544. {
  15545. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != 0U)
  15546. 8007064: 687b ldr r3, [r7, #4]
  15547. 8007066: 681b ldr r3, [r3, #0]
  15548. 8007068: 4a2e ldr r2, [pc, #184] @ (8007124 <HAL_DMA_IRQHandler+0x1b4>)
  15549. 800706a: 4293 cmp r3, r2
  15550. 800706c: d04a beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15551. 800706e: 687b ldr r3, [r7, #4]
  15552. 8007070: 681b ldr r3, [r3, #0]
  15553. 8007072: 4a2d ldr r2, [pc, #180] @ (8007128 <HAL_DMA_IRQHandler+0x1b8>)
  15554. 8007074: 4293 cmp r3, r2
  15555. 8007076: d045 beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15556. 8007078: 687b ldr r3, [r7, #4]
  15557. 800707a: 681b ldr r3, [r3, #0]
  15558. 800707c: 4a2b ldr r2, [pc, #172] @ (800712c <HAL_DMA_IRQHandler+0x1bc>)
  15559. 800707e: 4293 cmp r3, r2
  15560. 8007080: d040 beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15561. 8007082: 687b ldr r3, [r7, #4]
  15562. 8007084: 681b ldr r3, [r3, #0]
  15563. 8007086: 4a2a ldr r2, [pc, #168] @ (8007130 <HAL_DMA_IRQHandler+0x1c0>)
  15564. 8007088: 4293 cmp r3, r2
  15565. 800708a: d03b beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15566. 800708c: 687b ldr r3, [r7, #4]
  15567. 800708e: 681b ldr r3, [r3, #0]
  15568. 8007090: 4a28 ldr r2, [pc, #160] @ (8007134 <HAL_DMA_IRQHandler+0x1c4>)
  15569. 8007092: 4293 cmp r3, r2
  15570. 8007094: d036 beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15571. 8007096: 687b ldr r3, [r7, #4]
  15572. 8007098: 681b ldr r3, [r3, #0]
  15573. 800709a: 4a27 ldr r2, [pc, #156] @ (8007138 <HAL_DMA_IRQHandler+0x1c8>)
  15574. 800709c: 4293 cmp r3, r2
  15575. 800709e: d031 beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15576. 80070a0: 687b ldr r3, [r7, #4]
  15577. 80070a2: 681b ldr r3, [r3, #0]
  15578. 80070a4: 4a25 ldr r2, [pc, #148] @ (800713c <HAL_DMA_IRQHandler+0x1cc>)
  15579. 80070a6: 4293 cmp r3, r2
  15580. 80070a8: d02c beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15581. 80070aa: 687b ldr r3, [r7, #4]
  15582. 80070ac: 681b ldr r3, [r3, #0]
  15583. 80070ae: 4a24 ldr r2, [pc, #144] @ (8007140 <HAL_DMA_IRQHandler+0x1d0>)
  15584. 80070b0: 4293 cmp r3, r2
  15585. 80070b2: d027 beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15586. 80070b4: 687b ldr r3, [r7, #4]
  15587. 80070b6: 681b ldr r3, [r3, #0]
  15588. 80070b8: 4a22 ldr r2, [pc, #136] @ (8007144 <HAL_DMA_IRQHandler+0x1d4>)
  15589. 80070ba: 4293 cmp r3, r2
  15590. 80070bc: d022 beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15591. 80070be: 687b ldr r3, [r7, #4]
  15592. 80070c0: 681b ldr r3, [r3, #0]
  15593. 80070c2: 4a21 ldr r2, [pc, #132] @ (8007148 <HAL_DMA_IRQHandler+0x1d8>)
  15594. 80070c4: 4293 cmp r3, r2
  15595. 80070c6: d01d beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15596. 80070c8: 687b ldr r3, [r7, #4]
  15597. 80070ca: 681b ldr r3, [r3, #0]
  15598. 80070cc: 4a1f ldr r2, [pc, #124] @ (800714c <HAL_DMA_IRQHandler+0x1dc>)
  15599. 80070ce: 4293 cmp r3, r2
  15600. 80070d0: d018 beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15601. 80070d2: 687b ldr r3, [r7, #4]
  15602. 80070d4: 681b ldr r3, [r3, #0]
  15603. 80070d6: 4a1e ldr r2, [pc, #120] @ (8007150 <HAL_DMA_IRQHandler+0x1e0>)
  15604. 80070d8: 4293 cmp r3, r2
  15605. 80070da: d013 beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15606. 80070dc: 687b ldr r3, [r7, #4]
  15607. 80070de: 681b ldr r3, [r3, #0]
  15608. 80070e0: 4a1c ldr r2, [pc, #112] @ (8007154 <HAL_DMA_IRQHandler+0x1e4>)
  15609. 80070e2: 4293 cmp r3, r2
  15610. 80070e4: d00e beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15611. 80070e6: 687b ldr r3, [r7, #4]
  15612. 80070e8: 681b ldr r3, [r3, #0]
  15613. 80070ea: 4a1b ldr r2, [pc, #108] @ (8007158 <HAL_DMA_IRQHandler+0x1e8>)
  15614. 80070ec: 4293 cmp r3, r2
  15615. 80070ee: d009 beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15616. 80070f0: 687b ldr r3, [r7, #4]
  15617. 80070f2: 681b ldr r3, [r3, #0]
  15618. 80070f4: 4a19 ldr r2, [pc, #100] @ (800715c <HAL_DMA_IRQHandler+0x1ec>)
  15619. 80070f6: 4293 cmp r3, r2
  15620. 80070f8: d004 beq.n 8007104 <HAL_DMA_IRQHandler+0x194>
  15621. 80070fa: 687b ldr r3, [r7, #4]
  15622. 80070fc: 681b ldr r3, [r3, #0]
  15623. 80070fe: 4a18 ldr r2, [pc, #96] @ (8007160 <HAL_DMA_IRQHandler+0x1f0>)
  15624. 8007100: 4293 cmp r3, r2
  15625. 8007102: d12f bne.n 8007164 <HAL_DMA_IRQHandler+0x1f4>
  15626. 8007104: 687b ldr r3, [r7, #4]
  15627. 8007106: 681b ldr r3, [r3, #0]
  15628. 8007108: 681b ldr r3, [r3, #0]
  15629. 800710a: f003 0304 and.w r3, r3, #4
  15630. 800710e: 2b00 cmp r3, #0
  15631. 8007110: bf14 ite ne
  15632. 8007112: 2301 movne r3, #1
  15633. 8007114: 2300 moveq r3, #0
  15634. 8007116: b2db uxtb r3, r3
  15635. 8007118: e02e b.n 8007178 <HAL_DMA_IRQHandler+0x208>
  15636. 800711a: bf00 nop
  15637. 800711c: 2400000c .word 0x2400000c
  15638. 8007120: 1b4e81b5 .word 0x1b4e81b5
  15639. 8007124: 40020010 .word 0x40020010
  15640. 8007128: 40020028 .word 0x40020028
  15641. 800712c: 40020040 .word 0x40020040
  15642. 8007130: 40020058 .word 0x40020058
  15643. 8007134: 40020070 .word 0x40020070
  15644. 8007138: 40020088 .word 0x40020088
  15645. 800713c: 400200a0 .word 0x400200a0
  15646. 8007140: 400200b8 .word 0x400200b8
  15647. 8007144: 40020410 .word 0x40020410
  15648. 8007148: 40020428 .word 0x40020428
  15649. 800714c: 40020440 .word 0x40020440
  15650. 8007150: 40020458 .word 0x40020458
  15651. 8007154: 40020470 .word 0x40020470
  15652. 8007158: 40020488 .word 0x40020488
  15653. 800715c: 400204a0 .word 0x400204a0
  15654. 8007160: 400204b8 .word 0x400204b8
  15655. 8007164: 687b ldr r3, [r7, #4]
  15656. 8007166: 681b ldr r3, [r3, #0]
  15657. 8007168: 681b ldr r3, [r3, #0]
  15658. 800716a: f003 0308 and.w r3, r3, #8
  15659. 800716e: 2b00 cmp r3, #0
  15660. 8007170: bf14 ite ne
  15661. 8007172: 2301 movne r3, #1
  15662. 8007174: 2300 moveq r3, #0
  15663. 8007176: b2db uxtb r3, r3
  15664. 8007178: 2b00 cmp r3, #0
  15665. 800717a: d015 beq.n 80071a8 <HAL_DMA_IRQHandler+0x238>
  15666. {
  15667. /* Disable the transfer error interrupt */
  15668. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TE);
  15669. 800717c: 687b ldr r3, [r7, #4]
  15670. 800717e: 681b ldr r3, [r3, #0]
  15671. 8007180: 681a ldr r2, [r3, #0]
  15672. 8007182: 687b ldr r3, [r7, #4]
  15673. 8007184: 681b ldr r3, [r3, #0]
  15674. 8007186: f022 0204 bic.w r2, r2, #4
  15675. 800718a: 601a str r2, [r3, #0]
  15676. /* Clear the transfer error flag */
  15677. regs_dma->IFCR = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU);
  15678. 800718c: 687b ldr r3, [r7, #4]
  15679. 800718e: 6ddb ldr r3, [r3, #92] @ 0x5c
  15680. 8007190: f003 031f and.w r3, r3, #31
  15681. 8007194: 2208 movs r2, #8
  15682. 8007196: 409a lsls r2, r3
  15683. 8007198: 6a3b ldr r3, [r7, #32]
  15684. 800719a: 609a str r2, [r3, #8]
  15685. /* Update error code */
  15686. hdma->ErrorCode |= HAL_DMA_ERROR_TE;
  15687. 800719c: 687b ldr r3, [r7, #4]
  15688. 800719e: 6d5b ldr r3, [r3, #84] @ 0x54
  15689. 80071a0: f043 0201 orr.w r2, r3, #1
  15690. 80071a4: 687b ldr r3, [r7, #4]
  15691. 80071a6: 655a str r2, [r3, #84] @ 0x54
  15692. }
  15693. }
  15694. /* FIFO Error Interrupt management ******************************************/
  15695. if ((tmpisr_dma & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  15696. 80071a8: 687b ldr r3, [r7, #4]
  15697. 80071aa: 6ddb ldr r3, [r3, #92] @ 0x5c
  15698. 80071ac: f003 031f and.w r3, r3, #31
  15699. 80071b0: 69ba ldr r2, [r7, #24]
  15700. 80071b2: fa22 f303 lsr.w r3, r2, r3
  15701. 80071b6: f003 0301 and.w r3, r3, #1
  15702. 80071ba: 2b00 cmp r3, #0
  15703. 80071bc: d06e beq.n 800729c <HAL_DMA_IRQHandler+0x32c>
  15704. {
  15705. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != 0U)
  15706. 80071be: 687b ldr r3, [r7, #4]
  15707. 80071c0: 681b ldr r3, [r3, #0]
  15708. 80071c2: 4a69 ldr r2, [pc, #420] @ (8007368 <HAL_DMA_IRQHandler+0x3f8>)
  15709. 80071c4: 4293 cmp r3, r2
  15710. 80071c6: d04a beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15711. 80071c8: 687b ldr r3, [r7, #4]
  15712. 80071ca: 681b ldr r3, [r3, #0]
  15713. 80071cc: 4a67 ldr r2, [pc, #412] @ (800736c <HAL_DMA_IRQHandler+0x3fc>)
  15714. 80071ce: 4293 cmp r3, r2
  15715. 80071d0: d045 beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15716. 80071d2: 687b ldr r3, [r7, #4]
  15717. 80071d4: 681b ldr r3, [r3, #0]
  15718. 80071d6: 4a66 ldr r2, [pc, #408] @ (8007370 <HAL_DMA_IRQHandler+0x400>)
  15719. 80071d8: 4293 cmp r3, r2
  15720. 80071da: d040 beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15721. 80071dc: 687b ldr r3, [r7, #4]
  15722. 80071de: 681b ldr r3, [r3, #0]
  15723. 80071e0: 4a64 ldr r2, [pc, #400] @ (8007374 <HAL_DMA_IRQHandler+0x404>)
  15724. 80071e2: 4293 cmp r3, r2
  15725. 80071e4: d03b beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15726. 80071e6: 687b ldr r3, [r7, #4]
  15727. 80071e8: 681b ldr r3, [r3, #0]
  15728. 80071ea: 4a63 ldr r2, [pc, #396] @ (8007378 <HAL_DMA_IRQHandler+0x408>)
  15729. 80071ec: 4293 cmp r3, r2
  15730. 80071ee: d036 beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15731. 80071f0: 687b ldr r3, [r7, #4]
  15732. 80071f2: 681b ldr r3, [r3, #0]
  15733. 80071f4: 4a61 ldr r2, [pc, #388] @ (800737c <HAL_DMA_IRQHandler+0x40c>)
  15734. 80071f6: 4293 cmp r3, r2
  15735. 80071f8: d031 beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15736. 80071fa: 687b ldr r3, [r7, #4]
  15737. 80071fc: 681b ldr r3, [r3, #0]
  15738. 80071fe: 4a60 ldr r2, [pc, #384] @ (8007380 <HAL_DMA_IRQHandler+0x410>)
  15739. 8007200: 4293 cmp r3, r2
  15740. 8007202: d02c beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15741. 8007204: 687b ldr r3, [r7, #4]
  15742. 8007206: 681b ldr r3, [r3, #0]
  15743. 8007208: 4a5e ldr r2, [pc, #376] @ (8007384 <HAL_DMA_IRQHandler+0x414>)
  15744. 800720a: 4293 cmp r3, r2
  15745. 800720c: d027 beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15746. 800720e: 687b ldr r3, [r7, #4]
  15747. 8007210: 681b ldr r3, [r3, #0]
  15748. 8007212: 4a5d ldr r2, [pc, #372] @ (8007388 <HAL_DMA_IRQHandler+0x418>)
  15749. 8007214: 4293 cmp r3, r2
  15750. 8007216: d022 beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15751. 8007218: 687b ldr r3, [r7, #4]
  15752. 800721a: 681b ldr r3, [r3, #0]
  15753. 800721c: 4a5b ldr r2, [pc, #364] @ (800738c <HAL_DMA_IRQHandler+0x41c>)
  15754. 800721e: 4293 cmp r3, r2
  15755. 8007220: d01d beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15756. 8007222: 687b ldr r3, [r7, #4]
  15757. 8007224: 681b ldr r3, [r3, #0]
  15758. 8007226: 4a5a ldr r2, [pc, #360] @ (8007390 <HAL_DMA_IRQHandler+0x420>)
  15759. 8007228: 4293 cmp r3, r2
  15760. 800722a: d018 beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15761. 800722c: 687b ldr r3, [r7, #4]
  15762. 800722e: 681b ldr r3, [r3, #0]
  15763. 8007230: 4a58 ldr r2, [pc, #352] @ (8007394 <HAL_DMA_IRQHandler+0x424>)
  15764. 8007232: 4293 cmp r3, r2
  15765. 8007234: d013 beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15766. 8007236: 687b ldr r3, [r7, #4]
  15767. 8007238: 681b ldr r3, [r3, #0]
  15768. 800723a: 4a57 ldr r2, [pc, #348] @ (8007398 <HAL_DMA_IRQHandler+0x428>)
  15769. 800723c: 4293 cmp r3, r2
  15770. 800723e: d00e beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15771. 8007240: 687b ldr r3, [r7, #4]
  15772. 8007242: 681b ldr r3, [r3, #0]
  15773. 8007244: 4a55 ldr r2, [pc, #340] @ (800739c <HAL_DMA_IRQHandler+0x42c>)
  15774. 8007246: 4293 cmp r3, r2
  15775. 8007248: d009 beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15776. 800724a: 687b ldr r3, [r7, #4]
  15777. 800724c: 681b ldr r3, [r3, #0]
  15778. 800724e: 4a54 ldr r2, [pc, #336] @ (80073a0 <HAL_DMA_IRQHandler+0x430>)
  15779. 8007250: 4293 cmp r3, r2
  15780. 8007252: d004 beq.n 800725e <HAL_DMA_IRQHandler+0x2ee>
  15781. 8007254: 687b ldr r3, [r7, #4]
  15782. 8007256: 681b ldr r3, [r3, #0]
  15783. 8007258: 4a52 ldr r2, [pc, #328] @ (80073a4 <HAL_DMA_IRQHandler+0x434>)
  15784. 800725a: 4293 cmp r3, r2
  15785. 800725c: d10a bne.n 8007274 <HAL_DMA_IRQHandler+0x304>
  15786. 800725e: 687b ldr r3, [r7, #4]
  15787. 8007260: 681b ldr r3, [r3, #0]
  15788. 8007262: 695b ldr r3, [r3, #20]
  15789. 8007264: f003 0380 and.w r3, r3, #128 @ 0x80
  15790. 8007268: 2b00 cmp r3, #0
  15791. 800726a: bf14 ite ne
  15792. 800726c: 2301 movne r3, #1
  15793. 800726e: 2300 moveq r3, #0
  15794. 8007270: b2db uxtb r3, r3
  15795. 8007272: e003 b.n 800727c <HAL_DMA_IRQHandler+0x30c>
  15796. 8007274: 687b ldr r3, [r7, #4]
  15797. 8007276: 681b ldr r3, [r3, #0]
  15798. 8007278: 681b ldr r3, [r3, #0]
  15799. 800727a: 2300 movs r3, #0
  15800. 800727c: 2b00 cmp r3, #0
  15801. 800727e: d00d beq.n 800729c <HAL_DMA_IRQHandler+0x32c>
  15802. {
  15803. /* Clear the FIFO error flag */
  15804. regs_dma->IFCR = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU);
  15805. 8007280: 687b ldr r3, [r7, #4]
  15806. 8007282: 6ddb ldr r3, [r3, #92] @ 0x5c
  15807. 8007284: f003 031f and.w r3, r3, #31
  15808. 8007288: 2201 movs r2, #1
  15809. 800728a: 409a lsls r2, r3
  15810. 800728c: 6a3b ldr r3, [r7, #32]
  15811. 800728e: 609a str r2, [r3, #8]
  15812. /* Update error code */
  15813. hdma->ErrorCode |= HAL_DMA_ERROR_FE;
  15814. 8007290: 687b ldr r3, [r7, #4]
  15815. 8007292: 6d5b ldr r3, [r3, #84] @ 0x54
  15816. 8007294: f043 0202 orr.w r2, r3, #2
  15817. 8007298: 687b ldr r3, [r7, #4]
  15818. 800729a: 655a str r2, [r3, #84] @ 0x54
  15819. }
  15820. }
  15821. /* Direct Mode Error Interrupt management ***********************************/
  15822. if ((tmpisr_dma & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  15823. 800729c: 687b ldr r3, [r7, #4]
  15824. 800729e: 6ddb ldr r3, [r3, #92] @ 0x5c
  15825. 80072a0: f003 031f and.w r3, r3, #31
  15826. 80072a4: 2204 movs r2, #4
  15827. 80072a6: 409a lsls r2, r3
  15828. 80072a8: 69bb ldr r3, [r7, #24]
  15829. 80072aa: 4013 ands r3, r2
  15830. 80072ac: 2b00 cmp r3, #0
  15831. 80072ae: f000 808f beq.w 80073d0 <HAL_DMA_IRQHandler+0x460>
  15832. {
  15833. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != 0U)
  15834. 80072b2: 687b ldr r3, [r7, #4]
  15835. 80072b4: 681b ldr r3, [r3, #0]
  15836. 80072b6: 4a2c ldr r2, [pc, #176] @ (8007368 <HAL_DMA_IRQHandler+0x3f8>)
  15837. 80072b8: 4293 cmp r3, r2
  15838. 80072ba: d04a beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15839. 80072bc: 687b ldr r3, [r7, #4]
  15840. 80072be: 681b ldr r3, [r3, #0]
  15841. 80072c0: 4a2a ldr r2, [pc, #168] @ (800736c <HAL_DMA_IRQHandler+0x3fc>)
  15842. 80072c2: 4293 cmp r3, r2
  15843. 80072c4: d045 beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15844. 80072c6: 687b ldr r3, [r7, #4]
  15845. 80072c8: 681b ldr r3, [r3, #0]
  15846. 80072ca: 4a29 ldr r2, [pc, #164] @ (8007370 <HAL_DMA_IRQHandler+0x400>)
  15847. 80072cc: 4293 cmp r3, r2
  15848. 80072ce: d040 beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15849. 80072d0: 687b ldr r3, [r7, #4]
  15850. 80072d2: 681b ldr r3, [r3, #0]
  15851. 80072d4: 4a27 ldr r2, [pc, #156] @ (8007374 <HAL_DMA_IRQHandler+0x404>)
  15852. 80072d6: 4293 cmp r3, r2
  15853. 80072d8: d03b beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15854. 80072da: 687b ldr r3, [r7, #4]
  15855. 80072dc: 681b ldr r3, [r3, #0]
  15856. 80072de: 4a26 ldr r2, [pc, #152] @ (8007378 <HAL_DMA_IRQHandler+0x408>)
  15857. 80072e0: 4293 cmp r3, r2
  15858. 80072e2: d036 beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15859. 80072e4: 687b ldr r3, [r7, #4]
  15860. 80072e6: 681b ldr r3, [r3, #0]
  15861. 80072e8: 4a24 ldr r2, [pc, #144] @ (800737c <HAL_DMA_IRQHandler+0x40c>)
  15862. 80072ea: 4293 cmp r3, r2
  15863. 80072ec: d031 beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15864. 80072ee: 687b ldr r3, [r7, #4]
  15865. 80072f0: 681b ldr r3, [r3, #0]
  15866. 80072f2: 4a23 ldr r2, [pc, #140] @ (8007380 <HAL_DMA_IRQHandler+0x410>)
  15867. 80072f4: 4293 cmp r3, r2
  15868. 80072f6: d02c beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15869. 80072f8: 687b ldr r3, [r7, #4]
  15870. 80072fa: 681b ldr r3, [r3, #0]
  15871. 80072fc: 4a21 ldr r2, [pc, #132] @ (8007384 <HAL_DMA_IRQHandler+0x414>)
  15872. 80072fe: 4293 cmp r3, r2
  15873. 8007300: d027 beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15874. 8007302: 687b ldr r3, [r7, #4]
  15875. 8007304: 681b ldr r3, [r3, #0]
  15876. 8007306: 4a20 ldr r2, [pc, #128] @ (8007388 <HAL_DMA_IRQHandler+0x418>)
  15877. 8007308: 4293 cmp r3, r2
  15878. 800730a: d022 beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15879. 800730c: 687b ldr r3, [r7, #4]
  15880. 800730e: 681b ldr r3, [r3, #0]
  15881. 8007310: 4a1e ldr r2, [pc, #120] @ (800738c <HAL_DMA_IRQHandler+0x41c>)
  15882. 8007312: 4293 cmp r3, r2
  15883. 8007314: d01d beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15884. 8007316: 687b ldr r3, [r7, #4]
  15885. 8007318: 681b ldr r3, [r3, #0]
  15886. 800731a: 4a1d ldr r2, [pc, #116] @ (8007390 <HAL_DMA_IRQHandler+0x420>)
  15887. 800731c: 4293 cmp r3, r2
  15888. 800731e: d018 beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15889. 8007320: 687b ldr r3, [r7, #4]
  15890. 8007322: 681b ldr r3, [r3, #0]
  15891. 8007324: 4a1b ldr r2, [pc, #108] @ (8007394 <HAL_DMA_IRQHandler+0x424>)
  15892. 8007326: 4293 cmp r3, r2
  15893. 8007328: d013 beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15894. 800732a: 687b ldr r3, [r7, #4]
  15895. 800732c: 681b ldr r3, [r3, #0]
  15896. 800732e: 4a1a ldr r2, [pc, #104] @ (8007398 <HAL_DMA_IRQHandler+0x428>)
  15897. 8007330: 4293 cmp r3, r2
  15898. 8007332: d00e beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15899. 8007334: 687b ldr r3, [r7, #4]
  15900. 8007336: 681b ldr r3, [r3, #0]
  15901. 8007338: 4a18 ldr r2, [pc, #96] @ (800739c <HAL_DMA_IRQHandler+0x42c>)
  15902. 800733a: 4293 cmp r3, r2
  15903. 800733c: d009 beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15904. 800733e: 687b ldr r3, [r7, #4]
  15905. 8007340: 681b ldr r3, [r3, #0]
  15906. 8007342: 4a17 ldr r2, [pc, #92] @ (80073a0 <HAL_DMA_IRQHandler+0x430>)
  15907. 8007344: 4293 cmp r3, r2
  15908. 8007346: d004 beq.n 8007352 <HAL_DMA_IRQHandler+0x3e2>
  15909. 8007348: 687b ldr r3, [r7, #4]
  15910. 800734a: 681b ldr r3, [r3, #0]
  15911. 800734c: 4a15 ldr r2, [pc, #84] @ (80073a4 <HAL_DMA_IRQHandler+0x434>)
  15912. 800734e: 4293 cmp r3, r2
  15913. 8007350: d12a bne.n 80073a8 <HAL_DMA_IRQHandler+0x438>
  15914. 8007352: 687b ldr r3, [r7, #4]
  15915. 8007354: 681b ldr r3, [r3, #0]
  15916. 8007356: 681b ldr r3, [r3, #0]
  15917. 8007358: f003 0302 and.w r3, r3, #2
  15918. 800735c: 2b00 cmp r3, #0
  15919. 800735e: bf14 ite ne
  15920. 8007360: 2301 movne r3, #1
  15921. 8007362: 2300 moveq r3, #0
  15922. 8007364: b2db uxtb r3, r3
  15923. 8007366: e023 b.n 80073b0 <HAL_DMA_IRQHandler+0x440>
  15924. 8007368: 40020010 .word 0x40020010
  15925. 800736c: 40020028 .word 0x40020028
  15926. 8007370: 40020040 .word 0x40020040
  15927. 8007374: 40020058 .word 0x40020058
  15928. 8007378: 40020070 .word 0x40020070
  15929. 800737c: 40020088 .word 0x40020088
  15930. 8007380: 400200a0 .word 0x400200a0
  15931. 8007384: 400200b8 .word 0x400200b8
  15932. 8007388: 40020410 .word 0x40020410
  15933. 800738c: 40020428 .word 0x40020428
  15934. 8007390: 40020440 .word 0x40020440
  15935. 8007394: 40020458 .word 0x40020458
  15936. 8007398: 40020470 .word 0x40020470
  15937. 800739c: 40020488 .word 0x40020488
  15938. 80073a0: 400204a0 .word 0x400204a0
  15939. 80073a4: 400204b8 .word 0x400204b8
  15940. 80073a8: 687b ldr r3, [r7, #4]
  15941. 80073aa: 681b ldr r3, [r3, #0]
  15942. 80073ac: 681b ldr r3, [r3, #0]
  15943. 80073ae: 2300 movs r3, #0
  15944. 80073b0: 2b00 cmp r3, #0
  15945. 80073b2: d00d beq.n 80073d0 <HAL_DMA_IRQHandler+0x460>
  15946. {
  15947. /* Clear the direct mode error flag */
  15948. regs_dma->IFCR = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU);
  15949. 80073b4: 687b ldr r3, [r7, #4]
  15950. 80073b6: 6ddb ldr r3, [r3, #92] @ 0x5c
  15951. 80073b8: f003 031f and.w r3, r3, #31
  15952. 80073bc: 2204 movs r2, #4
  15953. 80073be: 409a lsls r2, r3
  15954. 80073c0: 6a3b ldr r3, [r7, #32]
  15955. 80073c2: 609a str r2, [r3, #8]
  15956. /* Update error code */
  15957. hdma->ErrorCode |= HAL_DMA_ERROR_DME;
  15958. 80073c4: 687b ldr r3, [r7, #4]
  15959. 80073c6: 6d5b ldr r3, [r3, #84] @ 0x54
  15960. 80073c8: f043 0204 orr.w r2, r3, #4
  15961. 80073cc: 687b ldr r3, [r7, #4]
  15962. 80073ce: 655a str r2, [r3, #84] @ 0x54
  15963. }
  15964. }
  15965. /* Half Transfer Complete Interrupt management ******************************/
  15966. if ((tmpisr_dma & (DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  15967. 80073d0: 687b ldr r3, [r7, #4]
  15968. 80073d2: 6ddb ldr r3, [r3, #92] @ 0x5c
  15969. 80073d4: f003 031f and.w r3, r3, #31
  15970. 80073d8: 2210 movs r2, #16
  15971. 80073da: 409a lsls r2, r3
  15972. 80073dc: 69bb ldr r3, [r7, #24]
  15973. 80073de: 4013 ands r3, r2
  15974. 80073e0: 2b00 cmp r3, #0
  15975. 80073e2: f000 80a6 beq.w 8007532 <HAL_DMA_IRQHandler+0x5c2>
  15976. {
  15977. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != 0U)
  15978. 80073e6: 687b ldr r3, [r7, #4]
  15979. 80073e8: 681b ldr r3, [r3, #0]
  15980. 80073ea: 4a85 ldr r2, [pc, #532] @ (8007600 <HAL_DMA_IRQHandler+0x690>)
  15981. 80073ec: 4293 cmp r3, r2
  15982. 80073ee: d04a beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  15983. 80073f0: 687b ldr r3, [r7, #4]
  15984. 80073f2: 681b ldr r3, [r3, #0]
  15985. 80073f4: 4a83 ldr r2, [pc, #524] @ (8007604 <HAL_DMA_IRQHandler+0x694>)
  15986. 80073f6: 4293 cmp r3, r2
  15987. 80073f8: d045 beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  15988. 80073fa: 687b ldr r3, [r7, #4]
  15989. 80073fc: 681b ldr r3, [r3, #0]
  15990. 80073fe: 4a82 ldr r2, [pc, #520] @ (8007608 <HAL_DMA_IRQHandler+0x698>)
  15991. 8007400: 4293 cmp r3, r2
  15992. 8007402: d040 beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  15993. 8007404: 687b ldr r3, [r7, #4]
  15994. 8007406: 681b ldr r3, [r3, #0]
  15995. 8007408: 4a80 ldr r2, [pc, #512] @ (800760c <HAL_DMA_IRQHandler+0x69c>)
  15996. 800740a: 4293 cmp r3, r2
  15997. 800740c: d03b beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  15998. 800740e: 687b ldr r3, [r7, #4]
  15999. 8007410: 681b ldr r3, [r3, #0]
  16000. 8007412: 4a7f ldr r2, [pc, #508] @ (8007610 <HAL_DMA_IRQHandler+0x6a0>)
  16001. 8007414: 4293 cmp r3, r2
  16002. 8007416: d036 beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  16003. 8007418: 687b ldr r3, [r7, #4]
  16004. 800741a: 681b ldr r3, [r3, #0]
  16005. 800741c: 4a7d ldr r2, [pc, #500] @ (8007614 <HAL_DMA_IRQHandler+0x6a4>)
  16006. 800741e: 4293 cmp r3, r2
  16007. 8007420: d031 beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  16008. 8007422: 687b ldr r3, [r7, #4]
  16009. 8007424: 681b ldr r3, [r3, #0]
  16010. 8007426: 4a7c ldr r2, [pc, #496] @ (8007618 <HAL_DMA_IRQHandler+0x6a8>)
  16011. 8007428: 4293 cmp r3, r2
  16012. 800742a: d02c beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  16013. 800742c: 687b ldr r3, [r7, #4]
  16014. 800742e: 681b ldr r3, [r3, #0]
  16015. 8007430: 4a7a ldr r2, [pc, #488] @ (800761c <HAL_DMA_IRQHandler+0x6ac>)
  16016. 8007432: 4293 cmp r3, r2
  16017. 8007434: d027 beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  16018. 8007436: 687b ldr r3, [r7, #4]
  16019. 8007438: 681b ldr r3, [r3, #0]
  16020. 800743a: 4a79 ldr r2, [pc, #484] @ (8007620 <HAL_DMA_IRQHandler+0x6b0>)
  16021. 800743c: 4293 cmp r3, r2
  16022. 800743e: d022 beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  16023. 8007440: 687b ldr r3, [r7, #4]
  16024. 8007442: 681b ldr r3, [r3, #0]
  16025. 8007444: 4a77 ldr r2, [pc, #476] @ (8007624 <HAL_DMA_IRQHandler+0x6b4>)
  16026. 8007446: 4293 cmp r3, r2
  16027. 8007448: d01d beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  16028. 800744a: 687b ldr r3, [r7, #4]
  16029. 800744c: 681b ldr r3, [r3, #0]
  16030. 800744e: 4a76 ldr r2, [pc, #472] @ (8007628 <HAL_DMA_IRQHandler+0x6b8>)
  16031. 8007450: 4293 cmp r3, r2
  16032. 8007452: d018 beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  16033. 8007454: 687b ldr r3, [r7, #4]
  16034. 8007456: 681b ldr r3, [r3, #0]
  16035. 8007458: 4a74 ldr r2, [pc, #464] @ (800762c <HAL_DMA_IRQHandler+0x6bc>)
  16036. 800745a: 4293 cmp r3, r2
  16037. 800745c: d013 beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  16038. 800745e: 687b ldr r3, [r7, #4]
  16039. 8007460: 681b ldr r3, [r3, #0]
  16040. 8007462: 4a73 ldr r2, [pc, #460] @ (8007630 <HAL_DMA_IRQHandler+0x6c0>)
  16041. 8007464: 4293 cmp r3, r2
  16042. 8007466: d00e beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  16043. 8007468: 687b ldr r3, [r7, #4]
  16044. 800746a: 681b ldr r3, [r3, #0]
  16045. 800746c: 4a71 ldr r2, [pc, #452] @ (8007634 <HAL_DMA_IRQHandler+0x6c4>)
  16046. 800746e: 4293 cmp r3, r2
  16047. 8007470: d009 beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  16048. 8007472: 687b ldr r3, [r7, #4]
  16049. 8007474: 681b ldr r3, [r3, #0]
  16050. 8007476: 4a70 ldr r2, [pc, #448] @ (8007638 <HAL_DMA_IRQHandler+0x6c8>)
  16051. 8007478: 4293 cmp r3, r2
  16052. 800747a: d004 beq.n 8007486 <HAL_DMA_IRQHandler+0x516>
  16053. 800747c: 687b ldr r3, [r7, #4]
  16054. 800747e: 681b ldr r3, [r3, #0]
  16055. 8007480: 4a6e ldr r2, [pc, #440] @ (800763c <HAL_DMA_IRQHandler+0x6cc>)
  16056. 8007482: 4293 cmp r3, r2
  16057. 8007484: d10a bne.n 800749c <HAL_DMA_IRQHandler+0x52c>
  16058. 8007486: 687b ldr r3, [r7, #4]
  16059. 8007488: 681b ldr r3, [r3, #0]
  16060. 800748a: 681b ldr r3, [r3, #0]
  16061. 800748c: f003 0308 and.w r3, r3, #8
  16062. 8007490: 2b00 cmp r3, #0
  16063. 8007492: bf14 ite ne
  16064. 8007494: 2301 movne r3, #1
  16065. 8007496: 2300 moveq r3, #0
  16066. 8007498: b2db uxtb r3, r3
  16067. 800749a: e009 b.n 80074b0 <HAL_DMA_IRQHandler+0x540>
  16068. 800749c: 687b ldr r3, [r7, #4]
  16069. 800749e: 681b ldr r3, [r3, #0]
  16070. 80074a0: 681b ldr r3, [r3, #0]
  16071. 80074a2: f003 0304 and.w r3, r3, #4
  16072. 80074a6: 2b00 cmp r3, #0
  16073. 80074a8: bf14 ite ne
  16074. 80074aa: 2301 movne r3, #1
  16075. 80074ac: 2300 moveq r3, #0
  16076. 80074ae: b2db uxtb r3, r3
  16077. 80074b0: 2b00 cmp r3, #0
  16078. 80074b2: d03e beq.n 8007532 <HAL_DMA_IRQHandler+0x5c2>
  16079. {
  16080. /* Clear the half transfer complete flag */
  16081. regs_dma->IFCR = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU);
  16082. 80074b4: 687b ldr r3, [r7, #4]
  16083. 80074b6: 6ddb ldr r3, [r3, #92] @ 0x5c
  16084. 80074b8: f003 031f and.w r3, r3, #31
  16085. 80074bc: 2210 movs r2, #16
  16086. 80074be: 409a lsls r2, r3
  16087. 80074c0: 6a3b ldr r3, [r7, #32]
  16088. 80074c2: 609a str r2, [r3, #8]
  16089. /* Multi_Buffering mode enabled */
  16090. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  16091. 80074c4: 687b ldr r3, [r7, #4]
  16092. 80074c6: 681b ldr r3, [r3, #0]
  16093. 80074c8: 681b ldr r3, [r3, #0]
  16094. 80074ca: f403 2380 and.w r3, r3, #262144 @ 0x40000
  16095. 80074ce: 2b00 cmp r3, #0
  16096. 80074d0: d018 beq.n 8007504 <HAL_DMA_IRQHandler+0x594>
  16097. {
  16098. /* Current memory buffer used is Memory 0 */
  16099. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  16100. 80074d2: 687b ldr r3, [r7, #4]
  16101. 80074d4: 681b ldr r3, [r3, #0]
  16102. 80074d6: 681b ldr r3, [r3, #0]
  16103. 80074d8: f403 2300 and.w r3, r3, #524288 @ 0x80000
  16104. 80074dc: 2b00 cmp r3, #0
  16105. 80074de: d108 bne.n 80074f2 <HAL_DMA_IRQHandler+0x582>
  16106. {
  16107. if(hdma->XferHalfCpltCallback != NULL)
  16108. 80074e0: 687b ldr r3, [r7, #4]
  16109. 80074e2: 6c1b ldr r3, [r3, #64] @ 0x40
  16110. 80074e4: 2b00 cmp r3, #0
  16111. 80074e6: d024 beq.n 8007532 <HAL_DMA_IRQHandler+0x5c2>
  16112. {
  16113. /* Half transfer callback */
  16114. hdma->XferHalfCpltCallback(hdma);
  16115. 80074e8: 687b ldr r3, [r7, #4]
  16116. 80074ea: 6c1b ldr r3, [r3, #64] @ 0x40
  16117. 80074ec: 6878 ldr r0, [r7, #4]
  16118. 80074ee: 4798 blx r3
  16119. 80074f0: e01f b.n 8007532 <HAL_DMA_IRQHandler+0x5c2>
  16120. }
  16121. }
  16122. /* Current memory buffer used is Memory 1 */
  16123. else
  16124. {
  16125. if(hdma->XferM1HalfCpltCallback != NULL)
  16126. 80074f2: 687b ldr r3, [r7, #4]
  16127. 80074f4: 6c9b ldr r3, [r3, #72] @ 0x48
  16128. 80074f6: 2b00 cmp r3, #0
  16129. 80074f8: d01b beq.n 8007532 <HAL_DMA_IRQHandler+0x5c2>
  16130. {
  16131. /* Half transfer callback */
  16132. hdma->XferM1HalfCpltCallback(hdma);
  16133. 80074fa: 687b ldr r3, [r7, #4]
  16134. 80074fc: 6c9b ldr r3, [r3, #72] @ 0x48
  16135. 80074fe: 6878 ldr r0, [r7, #4]
  16136. 8007500: 4798 blx r3
  16137. 8007502: e016 b.n 8007532 <HAL_DMA_IRQHandler+0x5c2>
  16138. }
  16139. }
  16140. else
  16141. {
  16142. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  16143. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  16144. 8007504: 687b ldr r3, [r7, #4]
  16145. 8007506: 681b ldr r3, [r3, #0]
  16146. 8007508: 681b ldr r3, [r3, #0]
  16147. 800750a: f403 7380 and.w r3, r3, #256 @ 0x100
  16148. 800750e: 2b00 cmp r3, #0
  16149. 8007510: d107 bne.n 8007522 <HAL_DMA_IRQHandler+0x5b2>
  16150. {
  16151. /* Disable the half transfer interrupt */
  16152. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  16153. 8007512: 687b ldr r3, [r7, #4]
  16154. 8007514: 681b ldr r3, [r3, #0]
  16155. 8007516: 681a ldr r2, [r3, #0]
  16156. 8007518: 687b ldr r3, [r7, #4]
  16157. 800751a: 681b ldr r3, [r3, #0]
  16158. 800751c: f022 0208 bic.w r2, r2, #8
  16159. 8007520: 601a str r2, [r3, #0]
  16160. }
  16161. if(hdma->XferHalfCpltCallback != NULL)
  16162. 8007522: 687b ldr r3, [r7, #4]
  16163. 8007524: 6c1b ldr r3, [r3, #64] @ 0x40
  16164. 8007526: 2b00 cmp r3, #0
  16165. 8007528: d003 beq.n 8007532 <HAL_DMA_IRQHandler+0x5c2>
  16166. {
  16167. /* Half transfer callback */
  16168. hdma->XferHalfCpltCallback(hdma);
  16169. 800752a: 687b ldr r3, [r7, #4]
  16170. 800752c: 6c1b ldr r3, [r3, #64] @ 0x40
  16171. 800752e: 6878 ldr r0, [r7, #4]
  16172. 8007530: 4798 blx r3
  16173. }
  16174. }
  16175. }
  16176. }
  16177. /* Transfer Complete Interrupt management ***********************************/
  16178. if ((tmpisr_dma & (DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  16179. 8007532: 687b ldr r3, [r7, #4]
  16180. 8007534: 6ddb ldr r3, [r3, #92] @ 0x5c
  16181. 8007536: f003 031f and.w r3, r3, #31
  16182. 800753a: 2220 movs r2, #32
  16183. 800753c: 409a lsls r2, r3
  16184. 800753e: 69bb ldr r3, [r7, #24]
  16185. 8007540: 4013 ands r3, r2
  16186. 8007542: 2b00 cmp r3, #0
  16187. 8007544: f000 8110 beq.w 8007768 <HAL_DMA_IRQHandler+0x7f8>
  16188. {
  16189. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != 0U)
  16190. 8007548: 687b ldr r3, [r7, #4]
  16191. 800754a: 681b ldr r3, [r3, #0]
  16192. 800754c: 4a2c ldr r2, [pc, #176] @ (8007600 <HAL_DMA_IRQHandler+0x690>)
  16193. 800754e: 4293 cmp r3, r2
  16194. 8007550: d04a beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16195. 8007552: 687b ldr r3, [r7, #4]
  16196. 8007554: 681b ldr r3, [r3, #0]
  16197. 8007556: 4a2b ldr r2, [pc, #172] @ (8007604 <HAL_DMA_IRQHandler+0x694>)
  16198. 8007558: 4293 cmp r3, r2
  16199. 800755a: d045 beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16200. 800755c: 687b ldr r3, [r7, #4]
  16201. 800755e: 681b ldr r3, [r3, #0]
  16202. 8007560: 4a29 ldr r2, [pc, #164] @ (8007608 <HAL_DMA_IRQHandler+0x698>)
  16203. 8007562: 4293 cmp r3, r2
  16204. 8007564: d040 beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16205. 8007566: 687b ldr r3, [r7, #4]
  16206. 8007568: 681b ldr r3, [r3, #0]
  16207. 800756a: 4a28 ldr r2, [pc, #160] @ (800760c <HAL_DMA_IRQHandler+0x69c>)
  16208. 800756c: 4293 cmp r3, r2
  16209. 800756e: d03b beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16210. 8007570: 687b ldr r3, [r7, #4]
  16211. 8007572: 681b ldr r3, [r3, #0]
  16212. 8007574: 4a26 ldr r2, [pc, #152] @ (8007610 <HAL_DMA_IRQHandler+0x6a0>)
  16213. 8007576: 4293 cmp r3, r2
  16214. 8007578: d036 beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16215. 800757a: 687b ldr r3, [r7, #4]
  16216. 800757c: 681b ldr r3, [r3, #0]
  16217. 800757e: 4a25 ldr r2, [pc, #148] @ (8007614 <HAL_DMA_IRQHandler+0x6a4>)
  16218. 8007580: 4293 cmp r3, r2
  16219. 8007582: d031 beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16220. 8007584: 687b ldr r3, [r7, #4]
  16221. 8007586: 681b ldr r3, [r3, #0]
  16222. 8007588: 4a23 ldr r2, [pc, #140] @ (8007618 <HAL_DMA_IRQHandler+0x6a8>)
  16223. 800758a: 4293 cmp r3, r2
  16224. 800758c: d02c beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16225. 800758e: 687b ldr r3, [r7, #4]
  16226. 8007590: 681b ldr r3, [r3, #0]
  16227. 8007592: 4a22 ldr r2, [pc, #136] @ (800761c <HAL_DMA_IRQHandler+0x6ac>)
  16228. 8007594: 4293 cmp r3, r2
  16229. 8007596: d027 beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16230. 8007598: 687b ldr r3, [r7, #4]
  16231. 800759a: 681b ldr r3, [r3, #0]
  16232. 800759c: 4a20 ldr r2, [pc, #128] @ (8007620 <HAL_DMA_IRQHandler+0x6b0>)
  16233. 800759e: 4293 cmp r3, r2
  16234. 80075a0: d022 beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16235. 80075a2: 687b ldr r3, [r7, #4]
  16236. 80075a4: 681b ldr r3, [r3, #0]
  16237. 80075a6: 4a1f ldr r2, [pc, #124] @ (8007624 <HAL_DMA_IRQHandler+0x6b4>)
  16238. 80075a8: 4293 cmp r3, r2
  16239. 80075aa: d01d beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16240. 80075ac: 687b ldr r3, [r7, #4]
  16241. 80075ae: 681b ldr r3, [r3, #0]
  16242. 80075b0: 4a1d ldr r2, [pc, #116] @ (8007628 <HAL_DMA_IRQHandler+0x6b8>)
  16243. 80075b2: 4293 cmp r3, r2
  16244. 80075b4: d018 beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16245. 80075b6: 687b ldr r3, [r7, #4]
  16246. 80075b8: 681b ldr r3, [r3, #0]
  16247. 80075ba: 4a1c ldr r2, [pc, #112] @ (800762c <HAL_DMA_IRQHandler+0x6bc>)
  16248. 80075bc: 4293 cmp r3, r2
  16249. 80075be: d013 beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16250. 80075c0: 687b ldr r3, [r7, #4]
  16251. 80075c2: 681b ldr r3, [r3, #0]
  16252. 80075c4: 4a1a ldr r2, [pc, #104] @ (8007630 <HAL_DMA_IRQHandler+0x6c0>)
  16253. 80075c6: 4293 cmp r3, r2
  16254. 80075c8: d00e beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16255. 80075ca: 687b ldr r3, [r7, #4]
  16256. 80075cc: 681b ldr r3, [r3, #0]
  16257. 80075ce: 4a19 ldr r2, [pc, #100] @ (8007634 <HAL_DMA_IRQHandler+0x6c4>)
  16258. 80075d0: 4293 cmp r3, r2
  16259. 80075d2: d009 beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16260. 80075d4: 687b ldr r3, [r7, #4]
  16261. 80075d6: 681b ldr r3, [r3, #0]
  16262. 80075d8: 4a17 ldr r2, [pc, #92] @ (8007638 <HAL_DMA_IRQHandler+0x6c8>)
  16263. 80075da: 4293 cmp r3, r2
  16264. 80075dc: d004 beq.n 80075e8 <HAL_DMA_IRQHandler+0x678>
  16265. 80075de: 687b ldr r3, [r7, #4]
  16266. 80075e0: 681b ldr r3, [r3, #0]
  16267. 80075e2: 4a16 ldr r2, [pc, #88] @ (800763c <HAL_DMA_IRQHandler+0x6cc>)
  16268. 80075e4: 4293 cmp r3, r2
  16269. 80075e6: d12b bne.n 8007640 <HAL_DMA_IRQHandler+0x6d0>
  16270. 80075e8: 687b ldr r3, [r7, #4]
  16271. 80075ea: 681b ldr r3, [r3, #0]
  16272. 80075ec: 681b ldr r3, [r3, #0]
  16273. 80075ee: f003 0310 and.w r3, r3, #16
  16274. 80075f2: 2b00 cmp r3, #0
  16275. 80075f4: bf14 ite ne
  16276. 80075f6: 2301 movne r3, #1
  16277. 80075f8: 2300 moveq r3, #0
  16278. 80075fa: b2db uxtb r3, r3
  16279. 80075fc: e02a b.n 8007654 <HAL_DMA_IRQHandler+0x6e4>
  16280. 80075fe: bf00 nop
  16281. 8007600: 40020010 .word 0x40020010
  16282. 8007604: 40020028 .word 0x40020028
  16283. 8007608: 40020040 .word 0x40020040
  16284. 800760c: 40020058 .word 0x40020058
  16285. 8007610: 40020070 .word 0x40020070
  16286. 8007614: 40020088 .word 0x40020088
  16287. 8007618: 400200a0 .word 0x400200a0
  16288. 800761c: 400200b8 .word 0x400200b8
  16289. 8007620: 40020410 .word 0x40020410
  16290. 8007624: 40020428 .word 0x40020428
  16291. 8007628: 40020440 .word 0x40020440
  16292. 800762c: 40020458 .word 0x40020458
  16293. 8007630: 40020470 .word 0x40020470
  16294. 8007634: 40020488 .word 0x40020488
  16295. 8007638: 400204a0 .word 0x400204a0
  16296. 800763c: 400204b8 .word 0x400204b8
  16297. 8007640: 687b ldr r3, [r7, #4]
  16298. 8007642: 681b ldr r3, [r3, #0]
  16299. 8007644: 681b ldr r3, [r3, #0]
  16300. 8007646: f003 0302 and.w r3, r3, #2
  16301. 800764a: 2b00 cmp r3, #0
  16302. 800764c: bf14 ite ne
  16303. 800764e: 2301 movne r3, #1
  16304. 8007650: 2300 moveq r3, #0
  16305. 8007652: b2db uxtb r3, r3
  16306. 8007654: 2b00 cmp r3, #0
  16307. 8007656: f000 8087 beq.w 8007768 <HAL_DMA_IRQHandler+0x7f8>
  16308. {
  16309. /* Clear the transfer complete flag */
  16310. regs_dma->IFCR = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU);
  16311. 800765a: 687b ldr r3, [r7, #4]
  16312. 800765c: 6ddb ldr r3, [r3, #92] @ 0x5c
  16313. 800765e: f003 031f and.w r3, r3, #31
  16314. 8007662: 2220 movs r2, #32
  16315. 8007664: 409a lsls r2, r3
  16316. 8007666: 6a3b ldr r3, [r7, #32]
  16317. 8007668: 609a str r2, [r3, #8]
  16318. if(HAL_DMA_STATE_ABORT == hdma->State)
  16319. 800766a: 687b ldr r3, [r7, #4]
  16320. 800766c: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  16321. 8007670: b2db uxtb r3, r3
  16322. 8007672: 2b04 cmp r3, #4
  16323. 8007674: d139 bne.n 80076ea <HAL_DMA_IRQHandler+0x77a>
  16324. {
  16325. /* Disable all the transfer interrupts */
  16326. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME);
  16327. 8007676: 687b ldr r3, [r7, #4]
  16328. 8007678: 681b ldr r3, [r3, #0]
  16329. 800767a: 681a ldr r2, [r3, #0]
  16330. 800767c: 687b ldr r3, [r7, #4]
  16331. 800767e: 681b ldr r3, [r3, #0]
  16332. 8007680: f022 0216 bic.w r2, r2, #22
  16333. 8007684: 601a str r2, [r3, #0]
  16334. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  16335. 8007686: 687b ldr r3, [r7, #4]
  16336. 8007688: 681b ldr r3, [r3, #0]
  16337. 800768a: 695a ldr r2, [r3, #20]
  16338. 800768c: 687b ldr r3, [r7, #4]
  16339. 800768e: 681b ldr r3, [r3, #0]
  16340. 8007690: f022 0280 bic.w r2, r2, #128 @ 0x80
  16341. 8007694: 615a str r2, [r3, #20]
  16342. if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL))
  16343. 8007696: 687b ldr r3, [r7, #4]
  16344. 8007698: 6c1b ldr r3, [r3, #64] @ 0x40
  16345. 800769a: 2b00 cmp r3, #0
  16346. 800769c: d103 bne.n 80076a6 <HAL_DMA_IRQHandler+0x736>
  16347. 800769e: 687b ldr r3, [r7, #4]
  16348. 80076a0: 6c9b ldr r3, [r3, #72] @ 0x48
  16349. 80076a2: 2b00 cmp r3, #0
  16350. 80076a4: d007 beq.n 80076b6 <HAL_DMA_IRQHandler+0x746>
  16351. {
  16352. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  16353. 80076a6: 687b ldr r3, [r7, #4]
  16354. 80076a8: 681b ldr r3, [r3, #0]
  16355. 80076aa: 681a ldr r2, [r3, #0]
  16356. 80076ac: 687b ldr r3, [r7, #4]
  16357. 80076ae: 681b ldr r3, [r3, #0]
  16358. 80076b0: f022 0208 bic.w r2, r2, #8
  16359. 80076b4: 601a str r2, [r3, #0]
  16360. }
  16361. /* Clear all interrupt flags at correct offset within the register */
  16362. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  16363. 80076b6: 687b ldr r3, [r7, #4]
  16364. 80076b8: 6ddb ldr r3, [r3, #92] @ 0x5c
  16365. 80076ba: f003 031f and.w r3, r3, #31
  16366. 80076be: 223f movs r2, #63 @ 0x3f
  16367. 80076c0: 409a lsls r2, r3
  16368. 80076c2: 6a3b ldr r3, [r7, #32]
  16369. 80076c4: 609a str r2, [r3, #8]
  16370. /* Change the DMA state */
  16371. hdma->State = HAL_DMA_STATE_READY;
  16372. 80076c6: 687b ldr r3, [r7, #4]
  16373. 80076c8: 2201 movs r2, #1
  16374. 80076ca: f883 2035 strb.w r2, [r3, #53] @ 0x35
  16375. /* Process Unlocked */
  16376. __HAL_UNLOCK(hdma);
  16377. 80076ce: 687b ldr r3, [r7, #4]
  16378. 80076d0: 2200 movs r2, #0
  16379. 80076d2: f883 2034 strb.w r2, [r3, #52] @ 0x34
  16380. if(hdma->XferAbortCallback != NULL)
  16381. 80076d6: 687b ldr r3, [r7, #4]
  16382. 80076d8: 6d1b ldr r3, [r3, #80] @ 0x50
  16383. 80076da: 2b00 cmp r3, #0
  16384. 80076dc: f000 834a beq.w 8007d74 <HAL_DMA_IRQHandler+0xe04>
  16385. {
  16386. hdma->XferAbortCallback(hdma);
  16387. 80076e0: 687b ldr r3, [r7, #4]
  16388. 80076e2: 6d1b ldr r3, [r3, #80] @ 0x50
  16389. 80076e4: 6878 ldr r0, [r7, #4]
  16390. 80076e6: 4798 blx r3
  16391. }
  16392. return;
  16393. 80076e8: e344 b.n 8007d74 <HAL_DMA_IRQHandler+0xe04>
  16394. }
  16395. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  16396. 80076ea: 687b ldr r3, [r7, #4]
  16397. 80076ec: 681b ldr r3, [r3, #0]
  16398. 80076ee: 681b ldr r3, [r3, #0]
  16399. 80076f0: f403 2380 and.w r3, r3, #262144 @ 0x40000
  16400. 80076f4: 2b00 cmp r3, #0
  16401. 80076f6: d018 beq.n 800772a <HAL_DMA_IRQHandler+0x7ba>
  16402. {
  16403. /* Current memory buffer used is Memory 0 */
  16404. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  16405. 80076f8: 687b ldr r3, [r7, #4]
  16406. 80076fa: 681b ldr r3, [r3, #0]
  16407. 80076fc: 681b ldr r3, [r3, #0]
  16408. 80076fe: f403 2300 and.w r3, r3, #524288 @ 0x80000
  16409. 8007702: 2b00 cmp r3, #0
  16410. 8007704: d108 bne.n 8007718 <HAL_DMA_IRQHandler+0x7a8>
  16411. {
  16412. if(hdma->XferM1CpltCallback != NULL)
  16413. 8007706: 687b ldr r3, [r7, #4]
  16414. 8007708: 6c5b ldr r3, [r3, #68] @ 0x44
  16415. 800770a: 2b00 cmp r3, #0
  16416. 800770c: d02c beq.n 8007768 <HAL_DMA_IRQHandler+0x7f8>
  16417. {
  16418. /* Transfer complete Callback for memory1 */
  16419. hdma->XferM1CpltCallback(hdma);
  16420. 800770e: 687b ldr r3, [r7, #4]
  16421. 8007710: 6c5b ldr r3, [r3, #68] @ 0x44
  16422. 8007712: 6878 ldr r0, [r7, #4]
  16423. 8007714: 4798 blx r3
  16424. 8007716: e027 b.n 8007768 <HAL_DMA_IRQHandler+0x7f8>
  16425. }
  16426. }
  16427. /* Current memory buffer used is Memory 1 */
  16428. else
  16429. {
  16430. if(hdma->XferCpltCallback != NULL)
  16431. 8007718: 687b ldr r3, [r7, #4]
  16432. 800771a: 6bdb ldr r3, [r3, #60] @ 0x3c
  16433. 800771c: 2b00 cmp r3, #0
  16434. 800771e: d023 beq.n 8007768 <HAL_DMA_IRQHandler+0x7f8>
  16435. {
  16436. /* Transfer complete Callback for memory0 */
  16437. hdma->XferCpltCallback(hdma);
  16438. 8007720: 687b ldr r3, [r7, #4]
  16439. 8007722: 6bdb ldr r3, [r3, #60] @ 0x3c
  16440. 8007724: 6878 ldr r0, [r7, #4]
  16441. 8007726: 4798 blx r3
  16442. 8007728: e01e b.n 8007768 <HAL_DMA_IRQHandler+0x7f8>
  16443. }
  16444. }
  16445. /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
  16446. else
  16447. {
  16448. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  16449. 800772a: 687b ldr r3, [r7, #4]
  16450. 800772c: 681b ldr r3, [r3, #0]
  16451. 800772e: 681b ldr r3, [r3, #0]
  16452. 8007730: f403 7380 and.w r3, r3, #256 @ 0x100
  16453. 8007734: 2b00 cmp r3, #0
  16454. 8007736: d10f bne.n 8007758 <HAL_DMA_IRQHandler+0x7e8>
  16455. {
  16456. /* Disable the transfer complete interrupt */
  16457. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC);
  16458. 8007738: 687b ldr r3, [r7, #4]
  16459. 800773a: 681b ldr r3, [r3, #0]
  16460. 800773c: 681a ldr r2, [r3, #0]
  16461. 800773e: 687b ldr r3, [r7, #4]
  16462. 8007740: 681b ldr r3, [r3, #0]
  16463. 8007742: f022 0210 bic.w r2, r2, #16
  16464. 8007746: 601a str r2, [r3, #0]
  16465. /* Change the DMA state */
  16466. hdma->State = HAL_DMA_STATE_READY;
  16467. 8007748: 687b ldr r3, [r7, #4]
  16468. 800774a: 2201 movs r2, #1
  16469. 800774c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  16470. /* Process Unlocked */
  16471. __HAL_UNLOCK(hdma);
  16472. 8007750: 687b ldr r3, [r7, #4]
  16473. 8007752: 2200 movs r2, #0
  16474. 8007754: f883 2034 strb.w r2, [r3, #52] @ 0x34
  16475. }
  16476. if(hdma->XferCpltCallback != NULL)
  16477. 8007758: 687b ldr r3, [r7, #4]
  16478. 800775a: 6bdb ldr r3, [r3, #60] @ 0x3c
  16479. 800775c: 2b00 cmp r3, #0
  16480. 800775e: d003 beq.n 8007768 <HAL_DMA_IRQHandler+0x7f8>
  16481. {
  16482. /* Transfer complete callback */
  16483. hdma->XferCpltCallback(hdma);
  16484. 8007760: 687b ldr r3, [r7, #4]
  16485. 8007762: 6bdb ldr r3, [r3, #60] @ 0x3c
  16486. 8007764: 6878 ldr r0, [r7, #4]
  16487. 8007766: 4798 blx r3
  16488. }
  16489. }
  16490. }
  16491. /* manage error case */
  16492. if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
  16493. 8007768: 687b ldr r3, [r7, #4]
  16494. 800776a: 6d5b ldr r3, [r3, #84] @ 0x54
  16495. 800776c: 2b00 cmp r3, #0
  16496. 800776e: f000 8306 beq.w 8007d7e <HAL_DMA_IRQHandler+0xe0e>
  16497. {
  16498. if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != 0U)
  16499. 8007772: 687b ldr r3, [r7, #4]
  16500. 8007774: 6d5b ldr r3, [r3, #84] @ 0x54
  16501. 8007776: f003 0301 and.w r3, r3, #1
  16502. 800777a: 2b00 cmp r3, #0
  16503. 800777c: f000 8088 beq.w 8007890 <HAL_DMA_IRQHandler+0x920>
  16504. {
  16505. hdma->State = HAL_DMA_STATE_ABORT;
  16506. 8007780: 687b ldr r3, [r7, #4]
  16507. 8007782: 2204 movs r2, #4
  16508. 8007784: f883 2035 strb.w r2, [r3, #53] @ 0x35
  16509. /* Disable the stream */
  16510. __HAL_DMA_DISABLE(hdma);
  16511. 8007788: 687b ldr r3, [r7, #4]
  16512. 800778a: 681b ldr r3, [r3, #0]
  16513. 800778c: 4a7a ldr r2, [pc, #488] @ (8007978 <HAL_DMA_IRQHandler+0xa08>)
  16514. 800778e: 4293 cmp r3, r2
  16515. 8007790: d04a beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16516. 8007792: 687b ldr r3, [r7, #4]
  16517. 8007794: 681b ldr r3, [r3, #0]
  16518. 8007796: 4a79 ldr r2, [pc, #484] @ (800797c <HAL_DMA_IRQHandler+0xa0c>)
  16519. 8007798: 4293 cmp r3, r2
  16520. 800779a: d045 beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16521. 800779c: 687b ldr r3, [r7, #4]
  16522. 800779e: 681b ldr r3, [r3, #0]
  16523. 80077a0: 4a77 ldr r2, [pc, #476] @ (8007980 <HAL_DMA_IRQHandler+0xa10>)
  16524. 80077a2: 4293 cmp r3, r2
  16525. 80077a4: d040 beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16526. 80077a6: 687b ldr r3, [r7, #4]
  16527. 80077a8: 681b ldr r3, [r3, #0]
  16528. 80077aa: 4a76 ldr r2, [pc, #472] @ (8007984 <HAL_DMA_IRQHandler+0xa14>)
  16529. 80077ac: 4293 cmp r3, r2
  16530. 80077ae: d03b beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16531. 80077b0: 687b ldr r3, [r7, #4]
  16532. 80077b2: 681b ldr r3, [r3, #0]
  16533. 80077b4: 4a74 ldr r2, [pc, #464] @ (8007988 <HAL_DMA_IRQHandler+0xa18>)
  16534. 80077b6: 4293 cmp r3, r2
  16535. 80077b8: d036 beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16536. 80077ba: 687b ldr r3, [r7, #4]
  16537. 80077bc: 681b ldr r3, [r3, #0]
  16538. 80077be: 4a73 ldr r2, [pc, #460] @ (800798c <HAL_DMA_IRQHandler+0xa1c>)
  16539. 80077c0: 4293 cmp r3, r2
  16540. 80077c2: d031 beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16541. 80077c4: 687b ldr r3, [r7, #4]
  16542. 80077c6: 681b ldr r3, [r3, #0]
  16543. 80077c8: 4a71 ldr r2, [pc, #452] @ (8007990 <HAL_DMA_IRQHandler+0xa20>)
  16544. 80077ca: 4293 cmp r3, r2
  16545. 80077cc: d02c beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16546. 80077ce: 687b ldr r3, [r7, #4]
  16547. 80077d0: 681b ldr r3, [r3, #0]
  16548. 80077d2: 4a70 ldr r2, [pc, #448] @ (8007994 <HAL_DMA_IRQHandler+0xa24>)
  16549. 80077d4: 4293 cmp r3, r2
  16550. 80077d6: d027 beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16551. 80077d8: 687b ldr r3, [r7, #4]
  16552. 80077da: 681b ldr r3, [r3, #0]
  16553. 80077dc: 4a6e ldr r2, [pc, #440] @ (8007998 <HAL_DMA_IRQHandler+0xa28>)
  16554. 80077de: 4293 cmp r3, r2
  16555. 80077e0: d022 beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16556. 80077e2: 687b ldr r3, [r7, #4]
  16557. 80077e4: 681b ldr r3, [r3, #0]
  16558. 80077e6: 4a6d ldr r2, [pc, #436] @ (800799c <HAL_DMA_IRQHandler+0xa2c>)
  16559. 80077e8: 4293 cmp r3, r2
  16560. 80077ea: d01d beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16561. 80077ec: 687b ldr r3, [r7, #4]
  16562. 80077ee: 681b ldr r3, [r3, #0]
  16563. 80077f0: 4a6b ldr r2, [pc, #428] @ (80079a0 <HAL_DMA_IRQHandler+0xa30>)
  16564. 80077f2: 4293 cmp r3, r2
  16565. 80077f4: d018 beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16566. 80077f6: 687b ldr r3, [r7, #4]
  16567. 80077f8: 681b ldr r3, [r3, #0]
  16568. 80077fa: 4a6a ldr r2, [pc, #424] @ (80079a4 <HAL_DMA_IRQHandler+0xa34>)
  16569. 80077fc: 4293 cmp r3, r2
  16570. 80077fe: d013 beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16571. 8007800: 687b ldr r3, [r7, #4]
  16572. 8007802: 681b ldr r3, [r3, #0]
  16573. 8007804: 4a68 ldr r2, [pc, #416] @ (80079a8 <HAL_DMA_IRQHandler+0xa38>)
  16574. 8007806: 4293 cmp r3, r2
  16575. 8007808: d00e beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16576. 800780a: 687b ldr r3, [r7, #4]
  16577. 800780c: 681b ldr r3, [r3, #0]
  16578. 800780e: 4a67 ldr r2, [pc, #412] @ (80079ac <HAL_DMA_IRQHandler+0xa3c>)
  16579. 8007810: 4293 cmp r3, r2
  16580. 8007812: d009 beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16581. 8007814: 687b ldr r3, [r7, #4]
  16582. 8007816: 681b ldr r3, [r3, #0]
  16583. 8007818: 4a65 ldr r2, [pc, #404] @ (80079b0 <HAL_DMA_IRQHandler+0xa40>)
  16584. 800781a: 4293 cmp r3, r2
  16585. 800781c: d004 beq.n 8007828 <HAL_DMA_IRQHandler+0x8b8>
  16586. 800781e: 687b ldr r3, [r7, #4]
  16587. 8007820: 681b ldr r3, [r3, #0]
  16588. 8007822: 4a64 ldr r2, [pc, #400] @ (80079b4 <HAL_DMA_IRQHandler+0xa44>)
  16589. 8007824: 4293 cmp r3, r2
  16590. 8007826: d108 bne.n 800783a <HAL_DMA_IRQHandler+0x8ca>
  16591. 8007828: 687b ldr r3, [r7, #4]
  16592. 800782a: 681b ldr r3, [r3, #0]
  16593. 800782c: 681a ldr r2, [r3, #0]
  16594. 800782e: 687b ldr r3, [r7, #4]
  16595. 8007830: 681b ldr r3, [r3, #0]
  16596. 8007832: f022 0201 bic.w r2, r2, #1
  16597. 8007836: 601a str r2, [r3, #0]
  16598. 8007838: e007 b.n 800784a <HAL_DMA_IRQHandler+0x8da>
  16599. 800783a: 687b ldr r3, [r7, #4]
  16600. 800783c: 681b ldr r3, [r3, #0]
  16601. 800783e: 681a ldr r2, [r3, #0]
  16602. 8007840: 687b ldr r3, [r7, #4]
  16603. 8007842: 681b ldr r3, [r3, #0]
  16604. 8007844: f022 0201 bic.w r2, r2, #1
  16605. 8007848: 601a str r2, [r3, #0]
  16606. do
  16607. {
  16608. if (++count > timeout)
  16609. 800784a: 68fb ldr r3, [r7, #12]
  16610. 800784c: 3301 adds r3, #1
  16611. 800784e: 60fb str r3, [r7, #12]
  16612. 8007850: 6a7a ldr r2, [r7, #36] @ 0x24
  16613. 8007852: 429a cmp r2, r3
  16614. 8007854: d307 bcc.n 8007866 <HAL_DMA_IRQHandler+0x8f6>
  16615. {
  16616. break;
  16617. }
  16618. }
  16619. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U);
  16620. 8007856: 687b ldr r3, [r7, #4]
  16621. 8007858: 681b ldr r3, [r3, #0]
  16622. 800785a: 681b ldr r3, [r3, #0]
  16623. 800785c: f003 0301 and.w r3, r3, #1
  16624. 8007860: 2b00 cmp r3, #0
  16625. 8007862: d1f2 bne.n 800784a <HAL_DMA_IRQHandler+0x8da>
  16626. 8007864: e000 b.n 8007868 <HAL_DMA_IRQHandler+0x8f8>
  16627. break;
  16628. 8007866: bf00 nop
  16629. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  16630. 8007868: 687b ldr r3, [r7, #4]
  16631. 800786a: 681b ldr r3, [r3, #0]
  16632. 800786c: 681b ldr r3, [r3, #0]
  16633. 800786e: f003 0301 and.w r3, r3, #1
  16634. 8007872: 2b00 cmp r3, #0
  16635. 8007874: d004 beq.n 8007880 <HAL_DMA_IRQHandler+0x910>
  16636. {
  16637. /* Change the DMA state to error if DMA disable fails */
  16638. hdma->State = HAL_DMA_STATE_ERROR;
  16639. 8007876: 687b ldr r3, [r7, #4]
  16640. 8007878: 2203 movs r2, #3
  16641. 800787a: f883 2035 strb.w r2, [r3, #53] @ 0x35
  16642. 800787e: e003 b.n 8007888 <HAL_DMA_IRQHandler+0x918>
  16643. }
  16644. else
  16645. {
  16646. /* Change the DMA state to Ready if DMA disable success */
  16647. hdma->State = HAL_DMA_STATE_READY;
  16648. 8007880: 687b ldr r3, [r7, #4]
  16649. 8007882: 2201 movs r2, #1
  16650. 8007884: f883 2035 strb.w r2, [r3, #53] @ 0x35
  16651. }
  16652. /* Process Unlocked */
  16653. __HAL_UNLOCK(hdma);
  16654. 8007888: 687b ldr r3, [r7, #4]
  16655. 800788a: 2200 movs r2, #0
  16656. 800788c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  16657. }
  16658. if(hdma->XferErrorCallback != NULL)
  16659. 8007890: 687b ldr r3, [r7, #4]
  16660. 8007892: 6cdb ldr r3, [r3, #76] @ 0x4c
  16661. 8007894: 2b00 cmp r3, #0
  16662. 8007896: f000 8272 beq.w 8007d7e <HAL_DMA_IRQHandler+0xe0e>
  16663. {
  16664. /* Transfer error callback */
  16665. hdma->XferErrorCallback(hdma);
  16666. 800789a: 687b ldr r3, [r7, #4]
  16667. 800789c: 6cdb ldr r3, [r3, #76] @ 0x4c
  16668. 800789e: 6878 ldr r0, [r7, #4]
  16669. 80078a0: 4798 blx r3
  16670. 80078a2: e26c b.n 8007d7e <HAL_DMA_IRQHandler+0xe0e>
  16671. }
  16672. }
  16673. }
  16674. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  16675. 80078a4: 687b ldr r3, [r7, #4]
  16676. 80078a6: 681b ldr r3, [r3, #0]
  16677. 80078a8: 4a43 ldr r2, [pc, #268] @ (80079b8 <HAL_DMA_IRQHandler+0xa48>)
  16678. 80078aa: 4293 cmp r3, r2
  16679. 80078ac: d022 beq.n 80078f4 <HAL_DMA_IRQHandler+0x984>
  16680. 80078ae: 687b ldr r3, [r7, #4]
  16681. 80078b0: 681b ldr r3, [r3, #0]
  16682. 80078b2: 4a42 ldr r2, [pc, #264] @ (80079bc <HAL_DMA_IRQHandler+0xa4c>)
  16683. 80078b4: 4293 cmp r3, r2
  16684. 80078b6: d01d beq.n 80078f4 <HAL_DMA_IRQHandler+0x984>
  16685. 80078b8: 687b ldr r3, [r7, #4]
  16686. 80078ba: 681b ldr r3, [r3, #0]
  16687. 80078bc: 4a40 ldr r2, [pc, #256] @ (80079c0 <HAL_DMA_IRQHandler+0xa50>)
  16688. 80078be: 4293 cmp r3, r2
  16689. 80078c0: d018 beq.n 80078f4 <HAL_DMA_IRQHandler+0x984>
  16690. 80078c2: 687b ldr r3, [r7, #4]
  16691. 80078c4: 681b ldr r3, [r3, #0]
  16692. 80078c6: 4a3f ldr r2, [pc, #252] @ (80079c4 <HAL_DMA_IRQHandler+0xa54>)
  16693. 80078c8: 4293 cmp r3, r2
  16694. 80078ca: d013 beq.n 80078f4 <HAL_DMA_IRQHandler+0x984>
  16695. 80078cc: 687b ldr r3, [r7, #4]
  16696. 80078ce: 681b ldr r3, [r3, #0]
  16697. 80078d0: 4a3d ldr r2, [pc, #244] @ (80079c8 <HAL_DMA_IRQHandler+0xa58>)
  16698. 80078d2: 4293 cmp r3, r2
  16699. 80078d4: d00e beq.n 80078f4 <HAL_DMA_IRQHandler+0x984>
  16700. 80078d6: 687b ldr r3, [r7, #4]
  16701. 80078d8: 681b ldr r3, [r3, #0]
  16702. 80078da: 4a3c ldr r2, [pc, #240] @ (80079cc <HAL_DMA_IRQHandler+0xa5c>)
  16703. 80078dc: 4293 cmp r3, r2
  16704. 80078de: d009 beq.n 80078f4 <HAL_DMA_IRQHandler+0x984>
  16705. 80078e0: 687b ldr r3, [r7, #4]
  16706. 80078e2: 681b ldr r3, [r3, #0]
  16707. 80078e4: 4a3a ldr r2, [pc, #232] @ (80079d0 <HAL_DMA_IRQHandler+0xa60>)
  16708. 80078e6: 4293 cmp r3, r2
  16709. 80078e8: d004 beq.n 80078f4 <HAL_DMA_IRQHandler+0x984>
  16710. 80078ea: 687b ldr r3, [r7, #4]
  16711. 80078ec: 681b ldr r3, [r3, #0]
  16712. 80078ee: 4a39 ldr r2, [pc, #228] @ (80079d4 <HAL_DMA_IRQHandler+0xa64>)
  16713. 80078f0: 4293 cmp r3, r2
  16714. 80078f2: d101 bne.n 80078f8 <HAL_DMA_IRQHandler+0x988>
  16715. 80078f4: 2301 movs r3, #1
  16716. 80078f6: e000 b.n 80078fa <HAL_DMA_IRQHandler+0x98a>
  16717. 80078f8: 2300 movs r3, #0
  16718. 80078fa: 2b00 cmp r3, #0
  16719. 80078fc: f000 823f beq.w 8007d7e <HAL_DMA_IRQHandler+0xe0e>
  16720. {
  16721. ccr_reg = (((BDMA_Channel_TypeDef *)hdma->Instance)->CCR);
  16722. 8007900: 687b ldr r3, [r7, #4]
  16723. 8007902: 681b ldr r3, [r3, #0]
  16724. 8007904: 681b ldr r3, [r3, #0]
  16725. 8007906: 613b str r3, [r7, #16]
  16726. /* Half Transfer Complete Interrupt management ******************************/
  16727. if (((tmpisr_bdma & (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_HTIE) != 0U))
  16728. 8007908: 687b ldr r3, [r7, #4]
  16729. 800790a: 6ddb ldr r3, [r3, #92] @ 0x5c
  16730. 800790c: f003 031f and.w r3, r3, #31
  16731. 8007910: 2204 movs r2, #4
  16732. 8007912: 409a lsls r2, r3
  16733. 8007914: 697b ldr r3, [r7, #20]
  16734. 8007916: 4013 ands r3, r2
  16735. 8007918: 2b00 cmp r3, #0
  16736. 800791a: f000 80cd beq.w 8007ab8 <HAL_DMA_IRQHandler+0xb48>
  16737. 800791e: 693b ldr r3, [r7, #16]
  16738. 8007920: f003 0304 and.w r3, r3, #4
  16739. 8007924: 2b00 cmp r3, #0
  16740. 8007926: f000 80c7 beq.w 8007ab8 <HAL_DMA_IRQHandler+0xb48>
  16741. {
  16742. /* Clear the half transfer complete flag */
  16743. regs_bdma->IFCR = (BDMA_ISR_HTIF0 << (hdma->StreamIndex & 0x1FU));
  16744. 800792a: 687b ldr r3, [r7, #4]
  16745. 800792c: 6ddb ldr r3, [r3, #92] @ 0x5c
  16746. 800792e: f003 031f and.w r3, r3, #31
  16747. 8007932: 2204 movs r2, #4
  16748. 8007934: 409a lsls r2, r3
  16749. 8007936: 69fb ldr r3, [r7, #28]
  16750. 8007938: 605a str r2, [r3, #4]
  16751. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  16752. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16753. 800793a: 693b ldr r3, [r7, #16]
  16754. 800793c: f403 4300 and.w r3, r3, #32768 @ 0x8000
  16755. 8007940: 2b00 cmp r3, #0
  16756. 8007942: d049 beq.n 80079d8 <HAL_DMA_IRQHandler+0xa68>
  16757. {
  16758. /* Current memory buffer used is Memory 0 */
  16759. if((ccr_reg & BDMA_CCR_CT) == 0U)
  16760. 8007944: 693b ldr r3, [r7, #16]
  16761. 8007946: f403 3380 and.w r3, r3, #65536 @ 0x10000
  16762. 800794a: 2b00 cmp r3, #0
  16763. 800794c: d109 bne.n 8007962 <HAL_DMA_IRQHandler+0x9f2>
  16764. {
  16765. if(hdma->XferM1HalfCpltCallback != NULL)
  16766. 800794e: 687b ldr r3, [r7, #4]
  16767. 8007950: 6c9b ldr r3, [r3, #72] @ 0x48
  16768. 8007952: 2b00 cmp r3, #0
  16769. 8007954: f000 8210 beq.w 8007d78 <HAL_DMA_IRQHandler+0xe08>
  16770. {
  16771. /* Half transfer Callback for Memory 1 */
  16772. hdma->XferM1HalfCpltCallback(hdma);
  16773. 8007958: 687b ldr r3, [r7, #4]
  16774. 800795a: 6c9b ldr r3, [r3, #72] @ 0x48
  16775. 800795c: 6878 ldr r0, [r7, #4]
  16776. 800795e: 4798 blx r3
  16777. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16778. 8007960: e20a b.n 8007d78 <HAL_DMA_IRQHandler+0xe08>
  16779. }
  16780. }
  16781. /* Current memory buffer used is Memory 1 */
  16782. else
  16783. {
  16784. if(hdma->XferHalfCpltCallback != NULL)
  16785. 8007962: 687b ldr r3, [r7, #4]
  16786. 8007964: 6c1b ldr r3, [r3, #64] @ 0x40
  16787. 8007966: 2b00 cmp r3, #0
  16788. 8007968: f000 8206 beq.w 8007d78 <HAL_DMA_IRQHandler+0xe08>
  16789. {
  16790. /* Half transfer Callback for Memory 0 */
  16791. hdma->XferHalfCpltCallback(hdma);
  16792. 800796c: 687b ldr r3, [r7, #4]
  16793. 800796e: 6c1b ldr r3, [r3, #64] @ 0x40
  16794. 8007970: 6878 ldr r0, [r7, #4]
  16795. 8007972: 4798 blx r3
  16796. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16797. 8007974: e200 b.n 8007d78 <HAL_DMA_IRQHandler+0xe08>
  16798. 8007976: bf00 nop
  16799. 8007978: 40020010 .word 0x40020010
  16800. 800797c: 40020028 .word 0x40020028
  16801. 8007980: 40020040 .word 0x40020040
  16802. 8007984: 40020058 .word 0x40020058
  16803. 8007988: 40020070 .word 0x40020070
  16804. 800798c: 40020088 .word 0x40020088
  16805. 8007990: 400200a0 .word 0x400200a0
  16806. 8007994: 400200b8 .word 0x400200b8
  16807. 8007998: 40020410 .word 0x40020410
  16808. 800799c: 40020428 .word 0x40020428
  16809. 80079a0: 40020440 .word 0x40020440
  16810. 80079a4: 40020458 .word 0x40020458
  16811. 80079a8: 40020470 .word 0x40020470
  16812. 80079ac: 40020488 .word 0x40020488
  16813. 80079b0: 400204a0 .word 0x400204a0
  16814. 80079b4: 400204b8 .word 0x400204b8
  16815. 80079b8: 58025408 .word 0x58025408
  16816. 80079bc: 5802541c .word 0x5802541c
  16817. 80079c0: 58025430 .word 0x58025430
  16818. 80079c4: 58025444 .word 0x58025444
  16819. 80079c8: 58025458 .word 0x58025458
  16820. 80079cc: 5802546c .word 0x5802546c
  16821. 80079d0: 58025480 .word 0x58025480
  16822. 80079d4: 58025494 .word 0x58025494
  16823. }
  16824. }
  16825. }
  16826. else
  16827. {
  16828. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  16829. 80079d8: 693b ldr r3, [r7, #16]
  16830. 80079da: f003 0320 and.w r3, r3, #32
  16831. 80079de: 2b00 cmp r3, #0
  16832. 80079e0: d160 bne.n 8007aa4 <HAL_DMA_IRQHandler+0xb34>
  16833. {
  16834. /* Disable the half transfer interrupt */
  16835. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  16836. 80079e2: 687b ldr r3, [r7, #4]
  16837. 80079e4: 681b ldr r3, [r3, #0]
  16838. 80079e6: 4a7f ldr r2, [pc, #508] @ (8007be4 <HAL_DMA_IRQHandler+0xc74>)
  16839. 80079e8: 4293 cmp r3, r2
  16840. 80079ea: d04a beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16841. 80079ec: 687b ldr r3, [r7, #4]
  16842. 80079ee: 681b ldr r3, [r3, #0]
  16843. 80079f0: 4a7d ldr r2, [pc, #500] @ (8007be8 <HAL_DMA_IRQHandler+0xc78>)
  16844. 80079f2: 4293 cmp r3, r2
  16845. 80079f4: d045 beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16846. 80079f6: 687b ldr r3, [r7, #4]
  16847. 80079f8: 681b ldr r3, [r3, #0]
  16848. 80079fa: 4a7c ldr r2, [pc, #496] @ (8007bec <HAL_DMA_IRQHandler+0xc7c>)
  16849. 80079fc: 4293 cmp r3, r2
  16850. 80079fe: d040 beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16851. 8007a00: 687b ldr r3, [r7, #4]
  16852. 8007a02: 681b ldr r3, [r3, #0]
  16853. 8007a04: 4a7a ldr r2, [pc, #488] @ (8007bf0 <HAL_DMA_IRQHandler+0xc80>)
  16854. 8007a06: 4293 cmp r3, r2
  16855. 8007a08: d03b beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16856. 8007a0a: 687b ldr r3, [r7, #4]
  16857. 8007a0c: 681b ldr r3, [r3, #0]
  16858. 8007a0e: 4a79 ldr r2, [pc, #484] @ (8007bf4 <HAL_DMA_IRQHandler+0xc84>)
  16859. 8007a10: 4293 cmp r3, r2
  16860. 8007a12: d036 beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16861. 8007a14: 687b ldr r3, [r7, #4]
  16862. 8007a16: 681b ldr r3, [r3, #0]
  16863. 8007a18: 4a77 ldr r2, [pc, #476] @ (8007bf8 <HAL_DMA_IRQHandler+0xc88>)
  16864. 8007a1a: 4293 cmp r3, r2
  16865. 8007a1c: d031 beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16866. 8007a1e: 687b ldr r3, [r7, #4]
  16867. 8007a20: 681b ldr r3, [r3, #0]
  16868. 8007a22: 4a76 ldr r2, [pc, #472] @ (8007bfc <HAL_DMA_IRQHandler+0xc8c>)
  16869. 8007a24: 4293 cmp r3, r2
  16870. 8007a26: d02c beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16871. 8007a28: 687b ldr r3, [r7, #4]
  16872. 8007a2a: 681b ldr r3, [r3, #0]
  16873. 8007a2c: 4a74 ldr r2, [pc, #464] @ (8007c00 <HAL_DMA_IRQHandler+0xc90>)
  16874. 8007a2e: 4293 cmp r3, r2
  16875. 8007a30: d027 beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16876. 8007a32: 687b ldr r3, [r7, #4]
  16877. 8007a34: 681b ldr r3, [r3, #0]
  16878. 8007a36: 4a73 ldr r2, [pc, #460] @ (8007c04 <HAL_DMA_IRQHandler+0xc94>)
  16879. 8007a38: 4293 cmp r3, r2
  16880. 8007a3a: d022 beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16881. 8007a3c: 687b ldr r3, [r7, #4]
  16882. 8007a3e: 681b ldr r3, [r3, #0]
  16883. 8007a40: 4a71 ldr r2, [pc, #452] @ (8007c08 <HAL_DMA_IRQHandler+0xc98>)
  16884. 8007a42: 4293 cmp r3, r2
  16885. 8007a44: d01d beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16886. 8007a46: 687b ldr r3, [r7, #4]
  16887. 8007a48: 681b ldr r3, [r3, #0]
  16888. 8007a4a: 4a70 ldr r2, [pc, #448] @ (8007c0c <HAL_DMA_IRQHandler+0xc9c>)
  16889. 8007a4c: 4293 cmp r3, r2
  16890. 8007a4e: d018 beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16891. 8007a50: 687b ldr r3, [r7, #4]
  16892. 8007a52: 681b ldr r3, [r3, #0]
  16893. 8007a54: 4a6e ldr r2, [pc, #440] @ (8007c10 <HAL_DMA_IRQHandler+0xca0>)
  16894. 8007a56: 4293 cmp r3, r2
  16895. 8007a58: d013 beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16896. 8007a5a: 687b ldr r3, [r7, #4]
  16897. 8007a5c: 681b ldr r3, [r3, #0]
  16898. 8007a5e: 4a6d ldr r2, [pc, #436] @ (8007c14 <HAL_DMA_IRQHandler+0xca4>)
  16899. 8007a60: 4293 cmp r3, r2
  16900. 8007a62: d00e beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16901. 8007a64: 687b ldr r3, [r7, #4]
  16902. 8007a66: 681b ldr r3, [r3, #0]
  16903. 8007a68: 4a6b ldr r2, [pc, #428] @ (8007c18 <HAL_DMA_IRQHandler+0xca8>)
  16904. 8007a6a: 4293 cmp r3, r2
  16905. 8007a6c: d009 beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16906. 8007a6e: 687b ldr r3, [r7, #4]
  16907. 8007a70: 681b ldr r3, [r3, #0]
  16908. 8007a72: 4a6a ldr r2, [pc, #424] @ (8007c1c <HAL_DMA_IRQHandler+0xcac>)
  16909. 8007a74: 4293 cmp r3, r2
  16910. 8007a76: d004 beq.n 8007a82 <HAL_DMA_IRQHandler+0xb12>
  16911. 8007a78: 687b ldr r3, [r7, #4]
  16912. 8007a7a: 681b ldr r3, [r3, #0]
  16913. 8007a7c: 4a68 ldr r2, [pc, #416] @ (8007c20 <HAL_DMA_IRQHandler+0xcb0>)
  16914. 8007a7e: 4293 cmp r3, r2
  16915. 8007a80: d108 bne.n 8007a94 <HAL_DMA_IRQHandler+0xb24>
  16916. 8007a82: 687b ldr r3, [r7, #4]
  16917. 8007a84: 681b ldr r3, [r3, #0]
  16918. 8007a86: 681a ldr r2, [r3, #0]
  16919. 8007a88: 687b ldr r3, [r7, #4]
  16920. 8007a8a: 681b ldr r3, [r3, #0]
  16921. 8007a8c: f022 0208 bic.w r2, r2, #8
  16922. 8007a90: 601a str r2, [r3, #0]
  16923. 8007a92: e007 b.n 8007aa4 <HAL_DMA_IRQHandler+0xb34>
  16924. 8007a94: 687b ldr r3, [r7, #4]
  16925. 8007a96: 681b ldr r3, [r3, #0]
  16926. 8007a98: 681a ldr r2, [r3, #0]
  16927. 8007a9a: 687b ldr r3, [r7, #4]
  16928. 8007a9c: 681b ldr r3, [r3, #0]
  16929. 8007a9e: f022 0204 bic.w r2, r2, #4
  16930. 8007aa2: 601a str r2, [r3, #0]
  16931. }
  16932. /* DMA peripheral state is not updated in Half Transfer */
  16933. /* but in Transfer Complete case */
  16934. if(hdma->XferHalfCpltCallback != NULL)
  16935. 8007aa4: 687b ldr r3, [r7, #4]
  16936. 8007aa6: 6c1b ldr r3, [r3, #64] @ 0x40
  16937. 8007aa8: 2b00 cmp r3, #0
  16938. 8007aaa: f000 8165 beq.w 8007d78 <HAL_DMA_IRQHandler+0xe08>
  16939. {
  16940. /* Half transfer callback */
  16941. hdma->XferHalfCpltCallback(hdma);
  16942. 8007aae: 687b ldr r3, [r7, #4]
  16943. 8007ab0: 6c1b ldr r3, [r3, #64] @ 0x40
  16944. 8007ab2: 6878 ldr r0, [r7, #4]
  16945. 8007ab4: 4798 blx r3
  16946. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16947. 8007ab6: e15f b.n 8007d78 <HAL_DMA_IRQHandler+0xe08>
  16948. }
  16949. }
  16950. }
  16951. /* Transfer Complete Interrupt management ***********************************/
  16952. else if (((tmpisr_bdma & (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TCIE) != 0U))
  16953. 8007ab8: 687b ldr r3, [r7, #4]
  16954. 8007aba: 6ddb ldr r3, [r3, #92] @ 0x5c
  16955. 8007abc: f003 031f and.w r3, r3, #31
  16956. 8007ac0: 2202 movs r2, #2
  16957. 8007ac2: 409a lsls r2, r3
  16958. 8007ac4: 697b ldr r3, [r7, #20]
  16959. 8007ac6: 4013 ands r3, r2
  16960. 8007ac8: 2b00 cmp r3, #0
  16961. 8007aca: f000 80c5 beq.w 8007c58 <HAL_DMA_IRQHandler+0xce8>
  16962. 8007ace: 693b ldr r3, [r7, #16]
  16963. 8007ad0: f003 0302 and.w r3, r3, #2
  16964. 8007ad4: 2b00 cmp r3, #0
  16965. 8007ad6: f000 80bf beq.w 8007c58 <HAL_DMA_IRQHandler+0xce8>
  16966. {
  16967. /* Clear the transfer complete flag */
  16968. regs_bdma->IFCR = (BDMA_ISR_TCIF0) << (hdma->StreamIndex & 0x1FU);
  16969. 8007ada: 687b ldr r3, [r7, #4]
  16970. 8007adc: 6ddb ldr r3, [r3, #92] @ 0x5c
  16971. 8007ade: f003 031f and.w r3, r3, #31
  16972. 8007ae2: 2202 movs r2, #2
  16973. 8007ae4: 409a lsls r2, r3
  16974. 8007ae6: 69fb ldr r3, [r7, #28]
  16975. 8007ae8: 605a str r2, [r3, #4]
  16976. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  16977. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16978. 8007aea: 693b ldr r3, [r7, #16]
  16979. 8007aec: f403 4300 and.w r3, r3, #32768 @ 0x8000
  16980. 8007af0: 2b00 cmp r3, #0
  16981. 8007af2: d018 beq.n 8007b26 <HAL_DMA_IRQHandler+0xbb6>
  16982. {
  16983. /* Current memory buffer used is Memory 0 */
  16984. if((ccr_reg & BDMA_CCR_CT) == 0U)
  16985. 8007af4: 693b ldr r3, [r7, #16]
  16986. 8007af6: f403 3380 and.w r3, r3, #65536 @ 0x10000
  16987. 8007afa: 2b00 cmp r3, #0
  16988. 8007afc: d109 bne.n 8007b12 <HAL_DMA_IRQHandler+0xba2>
  16989. {
  16990. if(hdma->XferM1CpltCallback != NULL)
  16991. 8007afe: 687b ldr r3, [r7, #4]
  16992. 8007b00: 6c5b ldr r3, [r3, #68] @ 0x44
  16993. 8007b02: 2b00 cmp r3, #0
  16994. 8007b04: f000 813a beq.w 8007d7c <HAL_DMA_IRQHandler+0xe0c>
  16995. {
  16996. /* Transfer complete Callback for Memory 1 */
  16997. hdma->XferM1CpltCallback(hdma);
  16998. 8007b08: 687b ldr r3, [r7, #4]
  16999. 8007b0a: 6c5b ldr r3, [r3, #68] @ 0x44
  17000. 8007b0c: 6878 ldr r0, [r7, #4]
  17001. 8007b0e: 4798 blx r3
  17002. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  17003. 8007b10: e134 b.n 8007d7c <HAL_DMA_IRQHandler+0xe0c>
  17004. }
  17005. }
  17006. /* Current memory buffer used is Memory 1 */
  17007. else
  17008. {
  17009. if(hdma->XferCpltCallback != NULL)
  17010. 8007b12: 687b ldr r3, [r7, #4]
  17011. 8007b14: 6bdb ldr r3, [r3, #60] @ 0x3c
  17012. 8007b16: 2b00 cmp r3, #0
  17013. 8007b18: f000 8130 beq.w 8007d7c <HAL_DMA_IRQHandler+0xe0c>
  17014. {
  17015. /* Transfer complete Callback for Memory 0 */
  17016. hdma->XferCpltCallback(hdma);
  17017. 8007b1c: 687b ldr r3, [r7, #4]
  17018. 8007b1e: 6bdb ldr r3, [r3, #60] @ 0x3c
  17019. 8007b20: 6878 ldr r0, [r7, #4]
  17020. 8007b22: 4798 blx r3
  17021. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  17022. 8007b24: e12a b.n 8007d7c <HAL_DMA_IRQHandler+0xe0c>
  17023. }
  17024. }
  17025. }
  17026. else
  17027. {
  17028. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  17029. 8007b26: 693b ldr r3, [r7, #16]
  17030. 8007b28: f003 0320 and.w r3, r3, #32
  17031. 8007b2c: 2b00 cmp r3, #0
  17032. 8007b2e: f040 8089 bne.w 8007c44 <HAL_DMA_IRQHandler+0xcd4>
  17033. {
  17034. /* Disable the transfer complete and error interrupt, if the DMA mode is not CIRCULAR */
  17035. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  17036. 8007b32: 687b ldr r3, [r7, #4]
  17037. 8007b34: 681b ldr r3, [r3, #0]
  17038. 8007b36: 4a2b ldr r2, [pc, #172] @ (8007be4 <HAL_DMA_IRQHandler+0xc74>)
  17039. 8007b38: 4293 cmp r3, r2
  17040. 8007b3a: d04a beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17041. 8007b3c: 687b ldr r3, [r7, #4]
  17042. 8007b3e: 681b ldr r3, [r3, #0]
  17043. 8007b40: 4a29 ldr r2, [pc, #164] @ (8007be8 <HAL_DMA_IRQHandler+0xc78>)
  17044. 8007b42: 4293 cmp r3, r2
  17045. 8007b44: d045 beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17046. 8007b46: 687b ldr r3, [r7, #4]
  17047. 8007b48: 681b ldr r3, [r3, #0]
  17048. 8007b4a: 4a28 ldr r2, [pc, #160] @ (8007bec <HAL_DMA_IRQHandler+0xc7c>)
  17049. 8007b4c: 4293 cmp r3, r2
  17050. 8007b4e: d040 beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17051. 8007b50: 687b ldr r3, [r7, #4]
  17052. 8007b52: 681b ldr r3, [r3, #0]
  17053. 8007b54: 4a26 ldr r2, [pc, #152] @ (8007bf0 <HAL_DMA_IRQHandler+0xc80>)
  17054. 8007b56: 4293 cmp r3, r2
  17055. 8007b58: d03b beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17056. 8007b5a: 687b ldr r3, [r7, #4]
  17057. 8007b5c: 681b ldr r3, [r3, #0]
  17058. 8007b5e: 4a25 ldr r2, [pc, #148] @ (8007bf4 <HAL_DMA_IRQHandler+0xc84>)
  17059. 8007b60: 4293 cmp r3, r2
  17060. 8007b62: d036 beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17061. 8007b64: 687b ldr r3, [r7, #4]
  17062. 8007b66: 681b ldr r3, [r3, #0]
  17063. 8007b68: 4a23 ldr r2, [pc, #140] @ (8007bf8 <HAL_DMA_IRQHandler+0xc88>)
  17064. 8007b6a: 4293 cmp r3, r2
  17065. 8007b6c: d031 beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17066. 8007b6e: 687b ldr r3, [r7, #4]
  17067. 8007b70: 681b ldr r3, [r3, #0]
  17068. 8007b72: 4a22 ldr r2, [pc, #136] @ (8007bfc <HAL_DMA_IRQHandler+0xc8c>)
  17069. 8007b74: 4293 cmp r3, r2
  17070. 8007b76: d02c beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17071. 8007b78: 687b ldr r3, [r7, #4]
  17072. 8007b7a: 681b ldr r3, [r3, #0]
  17073. 8007b7c: 4a20 ldr r2, [pc, #128] @ (8007c00 <HAL_DMA_IRQHandler+0xc90>)
  17074. 8007b7e: 4293 cmp r3, r2
  17075. 8007b80: d027 beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17076. 8007b82: 687b ldr r3, [r7, #4]
  17077. 8007b84: 681b ldr r3, [r3, #0]
  17078. 8007b86: 4a1f ldr r2, [pc, #124] @ (8007c04 <HAL_DMA_IRQHandler+0xc94>)
  17079. 8007b88: 4293 cmp r3, r2
  17080. 8007b8a: d022 beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17081. 8007b8c: 687b ldr r3, [r7, #4]
  17082. 8007b8e: 681b ldr r3, [r3, #0]
  17083. 8007b90: 4a1d ldr r2, [pc, #116] @ (8007c08 <HAL_DMA_IRQHandler+0xc98>)
  17084. 8007b92: 4293 cmp r3, r2
  17085. 8007b94: d01d beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17086. 8007b96: 687b ldr r3, [r7, #4]
  17087. 8007b98: 681b ldr r3, [r3, #0]
  17088. 8007b9a: 4a1c ldr r2, [pc, #112] @ (8007c0c <HAL_DMA_IRQHandler+0xc9c>)
  17089. 8007b9c: 4293 cmp r3, r2
  17090. 8007b9e: d018 beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17091. 8007ba0: 687b ldr r3, [r7, #4]
  17092. 8007ba2: 681b ldr r3, [r3, #0]
  17093. 8007ba4: 4a1a ldr r2, [pc, #104] @ (8007c10 <HAL_DMA_IRQHandler+0xca0>)
  17094. 8007ba6: 4293 cmp r3, r2
  17095. 8007ba8: d013 beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17096. 8007baa: 687b ldr r3, [r7, #4]
  17097. 8007bac: 681b ldr r3, [r3, #0]
  17098. 8007bae: 4a19 ldr r2, [pc, #100] @ (8007c14 <HAL_DMA_IRQHandler+0xca4>)
  17099. 8007bb0: 4293 cmp r3, r2
  17100. 8007bb2: d00e beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17101. 8007bb4: 687b ldr r3, [r7, #4]
  17102. 8007bb6: 681b ldr r3, [r3, #0]
  17103. 8007bb8: 4a17 ldr r2, [pc, #92] @ (8007c18 <HAL_DMA_IRQHandler+0xca8>)
  17104. 8007bba: 4293 cmp r3, r2
  17105. 8007bbc: d009 beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17106. 8007bbe: 687b ldr r3, [r7, #4]
  17107. 8007bc0: 681b ldr r3, [r3, #0]
  17108. 8007bc2: 4a16 ldr r2, [pc, #88] @ (8007c1c <HAL_DMA_IRQHandler+0xcac>)
  17109. 8007bc4: 4293 cmp r3, r2
  17110. 8007bc6: d004 beq.n 8007bd2 <HAL_DMA_IRQHandler+0xc62>
  17111. 8007bc8: 687b ldr r3, [r7, #4]
  17112. 8007bca: 681b ldr r3, [r3, #0]
  17113. 8007bcc: 4a14 ldr r2, [pc, #80] @ (8007c20 <HAL_DMA_IRQHandler+0xcb0>)
  17114. 8007bce: 4293 cmp r3, r2
  17115. 8007bd0: d128 bne.n 8007c24 <HAL_DMA_IRQHandler+0xcb4>
  17116. 8007bd2: 687b ldr r3, [r7, #4]
  17117. 8007bd4: 681b ldr r3, [r3, #0]
  17118. 8007bd6: 681a ldr r2, [r3, #0]
  17119. 8007bd8: 687b ldr r3, [r7, #4]
  17120. 8007bda: 681b ldr r3, [r3, #0]
  17121. 8007bdc: f022 0214 bic.w r2, r2, #20
  17122. 8007be0: 601a str r2, [r3, #0]
  17123. 8007be2: e027 b.n 8007c34 <HAL_DMA_IRQHandler+0xcc4>
  17124. 8007be4: 40020010 .word 0x40020010
  17125. 8007be8: 40020028 .word 0x40020028
  17126. 8007bec: 40020040 .word 0x40020040
  17127. 8007bf0: 40020058 .word 0x40020058
  17128. 8007bf4: 40020070 .word 0x40020070
  17129. 8007bf8: 40020088 .word 0x40020088
  17130. 8007bfc: 400200a0 .word 0x400200a0
  17131. 8007c00: 400200b8 .word 0x400200b8
  17132. 8007c04: 40020410 .word 0x40020410
  17133. 8007c08: 40020428 .word 0x40020428
  17134. 8007c0c: 40020440 .word 0x40020440
  17135. 8007c10: 40020458 .word 0x40020458
  17136. 8007c14: 40020470 .word 0x40020470
  17137. 8007c18: 40020488 .word 0x40020488
  17138. 8007c1c: 400204a0 .word 0x400204a0
  17139. 8007c20: 400204b8 .word 0x400204b8
  17140. 8007c24: 687b ldr r3, [r7, #4]
  17141. 8007c26: 681b ldr r3, [r3, #0]
  17142. 8007c28: 681a ldr r2, [r3, #0]
  17143. 8007c2a: 687b ldr r3, [r7, #4]
  17144. 8007c2c: 681b ldr r3, [r3, #0]
  17145. 8007c2e: f022 020a bic.w r2, r2, #10
  17146. 8007c32: 601a str r2, [r3, #0]
  17147. /* Change the DMA state */
  17148. hdma->State = HAL_DMA_STATE_READY;
  17149. 8007c34: 687b ldr r3, [r7, #4]
  17150. 8007c36: 2201 movs r2, #1
  17151. 8007c38: f883 2035 strb.w r2, [r3, #53] @ 0x35
  17152. /* Process Unlocked */
  17153. __HAL_UNLOCK(hdma);
  17154. 8007c3c: 687b ldr r3, [r7, #4]
  17155. 8007c3e: 2200 movs r2, #0
  17156. 8007c40: f883 2034 strb.w r2, [r3, #52] @ 0x34
  17157. }
  17158. if(hdma->XferCpltCallback != NULL)
  17159. 8007c44: 687b ldr r3, [r7, #4]
  17160. 8007c46: 6bdb ldr r3, [r3, #60] @ 0x3c
  17161. 8007c48: 2b00 cmp r3, #0
  17162. 8007c4a: f000 8097 beq.w 8007d7c <HAL_DMA_IRQHandler+0xe0c>
  17163. {
  17164. /* Transfer complete callback */
  17165. hdma->XferCpltCallback(hdma);
  17166. 8007c4e: 687b ldr r3, [r7, #4]
  17167. 8007c50: 6bdb ldr r3, [r3, #60] @ 0x3c
  17168. 8007c52: 6878 ldr r0, [r7, #4]
  17169. 8007c54: 4798 blx r3
  17170. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  17171. 8007c56: e091 b.n 8007d7c <HAL_DMA_IRQHandler+0xe0c>
  17172. }
  17173. }
  17174. }
  17175. /* Transfer Error Interrupt management **************************************/
  17176. else if (((tmpisr_bdma & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TEIE) != 0U))
  17177. 8007c58: 687b ldr r3, [r7, #4]
  17178. 8007c5a: 6ddb ldr r3, [r3, #92] @ 0x5c
  17179. 8007c5c: f003 031f and.w r3, r3, #31
  17180. 8007c60: 2208 movs r2, #8
  17181. 8007c62: 409a lsls r2, r3
  17182. 8007c64: 697b ldr r3, [r7, #20]
  17183. 8007c66: 4013 ands r3, r2
  17184. 8007c68: 2b00 cmp r3, #0
  17185. 8007c6a: f000 8088 beq.w 8007d7e <HAL_DMA_IRQHandler+0xe0e>
  17186. 8007c6e: 693b ldr r3, [r7, #16]
  17187. 8007c70: f003 0308 and.w r3, r3, #8
  17188. 8007c74: 2b00 cmp r3, #0
  17189. 8007c76: f000 8082 beq.w 8007d7e <HAL_DMA_IRQHandler+0xe0e>
  17190. {
  17191. /* When a DMA transfer error occurs */
  17192. /* A hardware clear of its EN bits is performed */
  17193. /* Disable ALL DMA IT */
  17194. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  17195. 8007c7a: 687b ldr r3, [r7, #4]
  17196. 8007c7c: 681b ldr r3, [r3, #0]
  17197. 8007c7e: 4a41 ldr r2, [pc, #260] @ (8007d84 <HAL_DMA_IRQHandler+0xe14>)
  17198. 8007c80: 4293 cmp r3, r2
  17199. 8007c82: d04a beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17200. 8007c84: 687b ldr r3, [r7, #4]
  17201. 8007c86: 681b ldr r3, [r3, #0]
  17202. 8007c88: 4a3f ldr r2, [pc, #252] @ (8007d88 <HAL_DMA_IRQHandler+0xe18>)
  17203. 8007c8a: 4293 cmp r3, r2
  17204. 8007c8c: d045 beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17205. 8007c8e: 687b ldr r3, [r7, #4]
  17206. 8007c90: 681b ldr r3, [r3, #0]
  17207. 8007c92: 4a3e ldr r2, [pc, #248] @ (8007d8c <HAL_DMA_IRQHandler+0xe1c>)
  17208. 8007c94: 4293 cmp r3, r2
  17209. 8007c96: d040 beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17210. 8007c98: 687b ldr r3, [r7, #4]
  17211. 8007c9a: 681b ldr r3, [r3, #0]
  17212. 8007c9c: 4a3c ldr r2, [pc, #240] @ (8007d90 <HAL_DMA_IRQHandler+0xe20>)
  17213. 8007c9e: 4293 cmp r3, r2
  17214. 8007ca0: d03b beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17215. 8007ca2: 687b ldr r3, [r7, #4]
  17216. 8007ca4: 681b ldr r3, [r3, #0]
  17217. 8007ca6: 4a3b ldr r2, [pc, #236] @ (8007d94 <HAL_DMA_IRQHandler+0xe24>)
  17218. 8007ca8: 4293 cmp r3, r2
  17219. 8007caa: d036 beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17220. 8007cac: 687b ldr r3, [r7, #4]
  17221. 8007cae: 681b ldr r3, [r3, #0]
  17222. 8007cb0: 4a39 ldr r2, [pc, #228] @ (8007d98 <HAL_DMA_IRQHandler+0xe28>)
  17223. 8007cb2: 4293 cmp r3, r2
  17224. 8007cb4: d031 beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17225. 8007cb6: 687b ldr r3, [r7, #4]
  17226. 8007cb8: 681b ldr r3, [r3, #0]
  17227. 8007cba: 4a38 ldr r2, [pc, #224] @ (8007d9c <HAL_DMA_IRQHandler+0xe2c>)
  17228. 8007cbc: 4293 cmp r3, r2
  17229. 8007cbe: d02c beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17230. 8007cc0: 687b ldr r3, [r7, #4]
  17231. 8007cc2: 681b ldr r3, [r3, #0]
  17232. 8007cc4: 4a36 ldr r2, [pc, #216] @ (8007da0 <HAL_DMA_IRQHandler+0xe30>)
  17233. 8007cc6: 4293 cmp r3, r2
  17234. 8007cc8: d027 beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17235. 8007cca: 687b ldr r3, [r7, #4]
  17236. 8007ccc: 681b ldr r3, [r3, #0]
  17237. 8007cce: 4a35 ldr r2, [pc, #212] @ (8007da4 <HAL_DMA_IRQHandler+0xe34>)
  17238. 8007cd0: 4293 cmp r3, r2
  17239. 8007cd2: d022 beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17240. 8007cd4: 687b ldr r3, [r7, #4]
  17241. 8007cd6: 681b ldr r3, [r3, #0]
  17242. 8007cd8: 4a33 ldr r2, [pc, #204] @ (8007da8 <HAL_DMA_IRQHandler+0xe38>)
  17243. 8007cda: 4293 cmp r3, r2
  17244. 8007cdc: d01d beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17245. 8007cde: 687b ldr r3, [r7, #4]
  17246. 8007ce0: 681b ldr r3, [r3, #0]
  17247. 8007ce2: 4a32 ldr r2, [pc, #200] @ (8007dac <HAL_DMA_IRQHandler+0xe3c>)
  17248. 8007ce4: 4293 cmp r3, r2
  17249. 8007ce6: d018 beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17250. 8007ce8: 687b ldr r3, [r7, #4]
  17251. 8007cea: 681b ldr r3, [r3, #0]
  17252. 8007cec: 4a30 ldr r2, [pc, #192] @ (8007db0 <HAL_DMA_IRQHandler+0xe40>)
  17253. 8007cee: 4293 cmp r3, r2
  17254. 8007cf0: d013 beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17255. 8007cf2: 687b ldr r3, [r7, #4]
  17256. 8007cf4: 681b ldr r3, [r3, #0]
  17257. 8007cf6: 4a2f ldr r2, [pc, #188] @ (8007db4 <HAL_DMA_IRQHandler+0xe44>)
  17258. 8007cf8: 4293 cmp r3, r2
  17259. 8007cfa: d00e beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17260. 8007cfc: 687b ldr r3, [r7, #4]
  17261. 8007cfe: 681b ldr r3, [r3, #0]
  17262. 8007d00: 4a2d ldr r2, [pc, #180] @ (8007db8 <HAL_DMA_IRQHandler+0xe48>)
  17263. 8007d02: 4293 cmp r3, r2
  17264. 8007d04: d009 beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17265. 8007d06: 687b ldr r3, [r7, #4]
  17266. 8007d08: 681b ldr r3, [r3, #0]
  17267. 8007d0a: 4a2c ldr r2, [pc, #176] @ (8007dbc <HAL_DMA_IRQHandler+0xe4c>)
  17268. 8007d0c: 4293 cmp r3, r2
  17269. 8007d0e: d004 beq.n 8007d1a <HAL_DMA_IRQHandler+0xdaa>
  17270. 8007d10: 687b ldr r3, [r7, #4]
  17271. 8007d12: 681b ldr r3, [r3, #0]
  17272. 8007d14: 4a2a ldr r2, [pc, #168] @ (8007dc0 <HAL_DMA_IRQHandler+0xe50>)
  17273. 8007d16: 4293 cmp r3, r2
  17274. 8007d18: d108 bne.n 8007d2c <HAL_DMA_IRQHandler+0xdbc>
  17275. 8007d1a: 687b ldr r3, [r7, #4]
  17276. 8007d1c: 681b ldr r3, [r3, #0]
  17277. 8007d1e: 681a ldr r2, [r3, #0]
  17278. 8007d20: 687b ldr r3, [r7, #4]
  17279. 8007d22: 681b ldr r3, [r3, #0]
  17280. 8007d24: f022 021c bic.w r2, r2, #28
  17281. 8007d28: 601a str r2, [r3, #0]
  17282. 8007d2a: e007 b.n 8007d3c <HAL_DMA_IRQHandler+0xdcc>
  17283. 8007d2c: 687b ldr r3, [r7, #4]
  17284. 8007d2e: 681b ldr r3, [r3, #0]
  17285. 8007d30: 681a ldr r2, [r3, #0]
  17286. 8007d32: 687b ldr r3, [r7, #4]
  17287. 8007d34: 681b ldr r3, [r3, #0]
  17288. 8007d36: f022 020e bic.w r2, r2, #14
  17289. 8007d3a: 601a str r2, [r3, #0]
  17290. /* Clear all flags */
  17291. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  17292. 8007d3c: 687b ldr r3, [r7, #4]
  17293. 8007d3e: 6ddb ldr r3, [r3, #92] @ 0x5c
  17294. 8007d40: f003 031f and.w r3, r3, #31
  17295. 8007d44: 2201 movs r2, #1
  17296. 8007d46: 409a lsls r2, r3
  17297. 8007d48: 69fb ldr r3, [r7, #28]
  17298. 8007d4a: 605a str r2, [r3, #4]
  17299. /* Update error code */
  17300. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  17301. 8007d4c: 687b ldr r3, [r7, #4]
  17302. 8007d4e: 2201 movs r2, #1
  17303. 8007d50: 655a str r2, [r3, #84] @ 0x54
  17304. /* Change the DMA state */
  17305. hdma->State = HAL_DMA_STATE_READY;
  17306. 8007d52: 687b ldr r3, [r7, #4]
  17307. 8007d54: 2201 movs r2, #1
  17308. 8007d56: f883 2035 strb.w r2, [r3, #53] @ 0x35
  17309. /* Process Unlocked */
  17310. __HAL_UNLOCK(hdma);
  17311. 8007d5a: 687b ldr r3, [r7, #4]
  17312. 8007d5c: 2200 movs r2, #0
  17313. 8007d5e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  17314. if (hdma->XferErrorCallback != NULL)
  17315. 8007d62: 687b ldr r3, [r7, #4]
  17316. 8007d64: 6cdb ldr r3, [r3, #76] @ 0x4c
  17317. 8007d66: 2b00 cmp r3, #0
  17318. 8007d68: d009 beq.n 8007d7e <HAL_DMA_IRQHandler+0xe0e>
  17319. {
  17320. /* Transfer error callback */
  17321. hdma->XferErrorCallback(hdma);
  17322. 8007d6a: 687b ldr r3, [r7, #4]
  17323. 8007d6c: 6cdb ldr r3, [r3, #76] @ 0x4c
  17324. 8007d6e: 6878 ldr r0, [r7, #4]
  17325. 8007d70: 4798 blx r3
  17326. 8007d72: e004 b.n 8007d7e <HAL_DMA_IRQHandler+0xe0e>
  17327. return;
  17328. 8007d74: bf00 nop
  17329. 8007d76: e002 b.n 8007d7e <HAL_DMA_IRQHandler+0xe0e>
  17330. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  17331. 8007d78: bf00 nop
  17332. 8007d7a: e000 b.n 8007d7e <HAL_DMA_IRQHandler+0xe0e>
  17333. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  17334. 8007d7c: bf00 nop
  17335. }
  17336. else
  17337. {
  17338. /* Nothing To Do */
  17339. }
  17340. }
  17341. 8007d7e: 3728 adds r7, #40 @ 0x28
  17342. 8007d80: 46bd mov sp, r7
  17343. 8007d82: bd80 pop {r7, pc}
  17344. 8007d84: 40020010 .word 0x40020010
  17345. 8007d88: 40020028 .word 0x40020028
  17346. 8007d8c: 40020040 .word 0x40020040
  17347. 8007d90: 40020058 .word 0x40020058
  17348. 8007d94: 40020070 .word 0x40020070
  17349. 8007d98: 40020088 .word 0x40020088
  17350. 8007d9c: 400200a0 .word 0x400200a0
  17351. 8007da0: 400200b8 .word 0x400200b8
  17352. 8007da4: 40020410 .word 0x40020410
  17353. 8007da8: 40020428 .word 0x40020428
  17354. 8007dac: 40020440 .word 0x40020440
  17355. 8007db0: 40020458 .word 0x40020458
  17356. 8007db4: 40020470 .word 0x40020470
  17357. 8007db8: 40020488 .word 0x40020488
  17358. 8007dbc: 400204a0 .word 0x400204a0
  17359. 8007dc0: 400204b8 .word 0x400204b8
  17360. 08007dc4 <DMA_CalcBaseAndBitshift>:
  17361. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  17362. * the configuration information for the specified DMA Stream.
  17363. * @retval Stream base address
  17364. */
  17365. static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
  17366. {
  17367. 8007dc4: b480 push {r7}
  17368. 8007dc6: b085 sub sp, #20
  17369. 8007dc8: af00 add r7, sp, #0
  17370. 8007dca: 6078 str r0, [r7, #4]
  17371. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  17372. 8007dcc: 687b ldr r3, [r7, #4]
  17373. 8007dce: 681b ldr r3, [r3, #0]
  17374. 8007dd0: 4a42 ldr r2, [pc, #264] @ (8007edc <DMA_CalcBaseAndBitshift+0x118>)
  17375. 8007dd2: 4293 cmp r3, r2
  17376. 8007dd4: d04a beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17377. 8007dd6: 687b ldr r3, [r7, #4]
  17378. 8007dd8: 681b ldr r3, [r3, #0]
  17379. 8007dda: 4a41 ldr r2, [pc, #260] @ (8007ee0 <DMA_CalcBaseAndBitshift+0x11c>)
  17380. 8007ddc: 4293 cmp r3, r2
  17381. 8007dde: d045 beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17382. 8007de0: 687b ldr r3, [r7, #4]
  17383. 8007de2: 681b ldr r3, [r3, #0]
  17384. 8007de4: 4a3f ldr r2, [pc, #252] @ (8007ee4 <DMA_CalcBaseAndBitshift+0x120>)
  17385. 8007de6: 4293 cmp r3, r2
  17386. 8007de8: d040 beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17387. 8007dea: 687b ldr r3, [r7, #4]
  17388. 8007dec: 681b ldr r3, [r3, #0]
  17389. 8007dee: 4a3e ldr r2, [pc, #248] @ (8007ee8 <DMA_CalcBaseAndBitshift+0x124>)
  17390. 8007df0: 4293 cmp r3, r2
  17391. 8007df2: d03b beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17392. 8007df4: 687b ldr r3, [r7, #4]
  17393. 8007df6: 681b ldr r3, [r3, #0]
  17394. 8007df8: 4a3c ldr r2, [pc, #240] @ (8007eec <DMA_CalcBaseAndBitshift+0x128>)
  17395. 8007dfa: 4293 cmp r3, r2
  17396. 8007dfc: d036 beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17397. 8007dfe: 687b ldr r3, [r7, #4]
  17398. 8007e00: 681b ldr r3, [r3, #0]
  17399. 8007e02: 4a3b ldr r2, [pc, #236] @ (8007ef0 <DMA_CalcBaseAndBitshift+0x12c>)
  17400. 8007e04: 4293 cmp r3, r2
  17401. 8007e06: d031 beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17402. 8007e08: 687b ldr r3, [r7, #4]
  17403. 8007e0a: 681b ldr r3, [r3, #0]
  17404. 8007e0c: 4a39 ldr r2, [pc, #228] @ (8007ef4 <DMA_CalcBaseAndBitshift+0x130>)
  17405. 8007e0e: 4293 cmp r3, r2
  17406. 8007e10: d02c beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17407. 8007e12: 687b ldr r3, [r7, #4]
  17408. 8007e14: 681b ldr r3, [r3, #0]
  17409. 8007e16: 4a38 ldr r2, [pc, #224] @ (8007ef8 <DMA_CalcBaseAndBitshift+0x134>)
  17410. 8007e18: 4293 cmp r3, r2
  17411. 8007e1a: d027 beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17412. 8007e1c: 687b ldr r3, [r7, #4]
  17413. 8007e1e: 681b ldr r3, [r3, #0]
  17414. 8007e20: 4a36 ldr r2, [pc, #216] @ (8007efc <DMA_CalcBaseAndBitshift+0x138>)
  17415. 8007e22: 4293 cmp r3, r2
  17416. 8007e24: d022 beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17417. 8007e26: 687b ldr r3, [r7, #4]
  17418. 8007e28: 681b ldr r3, [r3, #0]
  17419. 8007e2a: 4a35 ldr r2, [pc, #212] @ (8007f00 <DMA_CalcBaseAndBitshift+0x13c>)
  17420. 8007e2c: 4293 cmp r3, r2
  17421. 8007e2e: d01d beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17422. 8007e30: 687b ldr r3, [r7, #4]
  17423. 8007e32: 681b ldr r3, [r3, #0]
  17424. 8007e34: 4a33 ldr r2, [pc, #204] @ (8007f04 <DMA_CalcBaseAndBitshift+0x140>)
  17425. 8007e36: 4293 cmp r3, r2
  17426. 8007e38: d018 beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17427. 8007e3a: 687b ldr r3, [r7, #4]
  17428. 8007e3c: 681b ldr r3, [r3, #0]
  17429. 8007e3e: 4a32 ldr r2, [pc, #200] @ (8007f08 <DMA_CalcBaseAndBitshift+0x144>)
  17430. 8007e40: 4293 cmp r3, r2
  17431. 8007e42: d013 beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17432. 8007e44: 687b ldr r3, [r7, #4]
  17433. 8007e46: 681b ldr r3, [r3, #0]
  17434. 8007e48: 4a30 ldr r2, [pc, #192] @ (8007f0c <DMA_CalcBaseAndBitshift+0x148>)
  17435. 8007e4a: 4293 cmp r3, r2
  17436. 8007e4c: d00e beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17437. 8007e4e: 687b ldr r3, [r7, #4]
  17438. 8007e50: 681b ldr r3, [r3, #0]
  17439. 8007e52: 4a2f ldr r2, [pc, #188] @ (8007f10 <DMA_CalcBaseAndBitshift+0x14c>)
  17440. 8007e54: 4293 cmp r3, r2
  17441. 8007e56: d009 beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17442. 8007e58: 687b ldr r3, [r7, #4]
  17443. 8007e5a: 681b ldr r3, [r3, #0]
  17444. 8007e5c: 4a2d ldr r2, [pc, #180] @ (8007f14 <DMA_CalcBaseAndBitshift+0x150>)
  17445. 8007e5e: 4293 cmp r3, r2
  17446. 8007e60: d004 beq.n 8007e6c <DMA_CalcBaseAndBitshift+0xa8>
  17447. 8007e62: 687b ldr r3, [r7, #4]
  17448. 8007e64: 681b ldr r3, [r3, #0]
  17449. 8007e66: 4a2c ldr r2, [pc, #176] @ (8007f18 <DMA_CalcBaseAndBitshift+0x154>)
  17450. 8007e68: 4293 cmp r3, r2
  17451. 8007e6a: d101 bne.n 8007e70 <DMA_CalcBaseAndBitshift+0xac>
  17452. 8007e6c: 2301 movs r3, #1
  17453. 8007e6e: e000 b.n 8007e72 <DMA_CalcBaseAndBitshift+0xae>
  17454. 8007e70: 2300 movs r3, #0
  17455. 8007e72: 2b00 cmp r3, #0
  17456. 8007e74: d024 beq.n 8007ec0 <DMA_CalcBaseAndBitshift+0xfc>
  17457. {
  17458. uint32_t stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  17459. 8007e76: 687b ldr r3, [r7, #4]
  17460. 8007e78: 681b ldr r3, [r3, #0]
  17461. 8007e7a: b2db uxtb r3, r3
  17462. 8007e7c: 3b10 subs r3, #16
  17463. 8007e7e: 4a27 ldr r2, [pc, #156] @ (8007f1c <DMA_CalcBaseAndBitshift+0x158>)
  17464. 8007e80: fba2 2303 umull r2, r3, r2, r3
  17465. 8007e84: 091b lsrs r3, r3, #4
  17466. 8007e86: 60fb str r3, [r7, #12]
  17467. /* lookup table for necessary bitshift of flags within status registers */
  17468. static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U};
  17469. hdma->StreamIndex = flagBitshiftOffset[stream_number & 0x7U];
  17470. 8007e88: 68fb ldr r3, [r7, #12]
  17471. 8007e8a: f003 0307 and.w r3, r3, #7
  17472. 8007e8e: 4a24 ldr r2, [pc, #144] @ (8007f20 <DMA_CalcBaseAndBitshift+0x15c>)
  17473. 8007e90: 5cd3 ldrb r3, [r2, r3]
  17474. 8007e92: 461a mov r2, r3
  17475. 8007e94: 687b ldr r3, [r7, #4]
  17476. 8007e96: 65da str r2, [r3, #92] @ 0x5c
  17477. if (stream_number > 3U)
  17478. 8007e98: 68fb ldr r3, [r7, #12]
  17479. 8007e9a: 2b03 cmp r3, #3
  17480. 8007e9c: d908 bls.n 8007eb0 <DMA_CalcBaseAndBitshift+0xec>
  17481. {
  17482. /* return pointer to HISR and HIFCR */
  17483. hdma->StreamBaseAddress = (((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)) + 4U);
  17484. 8007e9e: 687b ldr r3, [r7, #4]
  17485. 8007ea0: 681b ldr r3, [r3, #0]
  17486. 8007ea2: 461a mov r2, r3
  17487. 8007ea4: 4b1f ldr r3, [pc, #124] @ (8007f24 <DMA_CalcBaseAndBitshift+0x160>)
  17488. 8007ea6: 4013 ands r3, r2
  17489. 8007ea8: 1d1a adds r2, r3, #4
  17490. 8007eaa: 687b ldr r3, [r7, #4]
  17491. 8007eac: 659a str r2, [r3, #88] @ 0x58
  17492. 8007eae: e00d b.n 8007ecc <DMA_CalcBaseAndBitshift+0x108>
  17493. }
  17494. else
  17495. {
  17496. /* return pointer to LISR and LIFCR */
  17497. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU));
  17498. 8007eb0: 687b ldr r3, [r7, #4]
  17499. 8007eb2: 681b ldr r3, [r3, #0]
  17500. 8007eb4: 461a mov r2, r3
  17501. 8007eb6: 4b1b ldr r3, [pc, #108] @ (8007f24 <DMA_CalcBaseAndBitshift+0x160>)
  17502. 8007eb8: 4013 ands r3, r2
  17503. 8007eba: 687a ldr r2, [r7, #4]
  17504. 8007ebc: 6593 str r3, [r2, #88] @ 0x58
  17505. 8007ebe: e005 b.n 8007ecc <DMA_CalcBaseAndBitshift+0x108>
  17506. }
  17507. }
  17508. else /* BDMA instance(s) */
  17509. {
  17510. /* return pointer to ISR and IFCR */
  17511. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0xFFU));
  17512. 8007ec0: 687b ldr r3, [r7, #4]
  17513. 8007ec2: 681b ldr r3, [r3, #0]
  17514. 8007ec4: f023 02ff bic.w r2, r3, #255 @ 0xff
  17515. 8007ec8: 687b ldr r3, [r7, #4]
  17516. 8007eca: 659a str r2, [r3, #88] @ 0x58
  17517. }
  17518. return hdma->StreamBaseAddress;
  17519. 8007ecc: 687b ldr r3, [r7, #4]
  17520. 8007ece: 6d9b ldr r3, [r3, #88] @ 0x58
  17521. }
  17522. 8007ed0: 4618 mov r0, r3
  17523. 8007ed2: 3714 adds r7, #20
  17524. 8007ed4: 46bd mov sp, r7
  17525. 8007ed6: f85d 7b04 ldr.w r7, [sp], #4
  17526. 8007eda: 4770 bx lr
  17527. 8007edc: 40020010 .word 0x40020010
  17528. 8007ee0: 40020028 .word 0x40020028
  17529. 8007ee4: 40020040 .word 0x40020040
  17530. 8007ee8: 40020058 .word 0x40020058
  17531. 8007eec: 40020070 .word 0x40020070
  17532. 8007ef0: 40020088 .word 0x40020088
  17533. 8007ef4: 400200a0 .word 0x400200a0
  17534. 8007ef8: 400200b8 .word 0x400200b8
  17535. 8007efc: 40020410 .word 0x40020410
  17536. 8007f00: 40020428 .word 0x40020428
  17537. 8007f04: 40020440 .word 0x40020440
  17538. 8007f08: 40020458 .word 0x40020458
  17539. 8007f0c: 40020470 .word 0x40020470
  17540. 8007f10: 40020488 .word 0x40020488
  17541. 8007f14: 400204a0 .word 0x400204a0
  17542. 8007f18: 400204b8 .word 0x400204b8
  17543. 8007f1c: aaaaaaab .word 0xaaaaaaab
  17544. 8007f20: 0803197c .word 0x0803197c
  17545. 8007f24: fffffc00 .word 0xfffffc00
  17546. 08007f28 <DMA_CheckFifoParam>:
  17547. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  17548. * the configuration information for the specified DMA Stream.
  17549. * @retval HAL status
  17550. */
  17551. static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma)
  17552. {
  17553. 8007f28: b480 push {r7}
  17554. 8007f2a: b085 sub sp, #20
  17555. 8007f2c: af00 add r7, sp, #0
  17556. 8007f2e: 6078 str r0, [r7, #4]
  17557. HAL_StatusTypeDef status = HAL_OK;
  17558. 8007f30: 2300 movs r3, #0
  17559. 8007f32: 73fb strb r3, [r7, #15]
  17560. /* Memory Data size equal to Byte */
  17561. if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE)
  17562. 8007f34: 687b ldr r3, [r7, #4]
  17563. 8007f36: 699b ldr r3, [r3, #24]
  17564. 8007f38: 2b00 cmp r3, #0
  17565. 8007f3a: d120 bne.n 8007f7e <DMA_CheckFifoParam+0x56>
  17566. {
  17567. switch (hdma->Init.FIFOThreshold)
  17568. 8007f3c: 687b ldr r3, [r7, #4]
  17569. 8007f3e: 6a9b ldr r3, [r3, #40] @ 0x28
  17570. 8007f40: 2b03 cmp r3, #3
  17571. 8007f42: d858 bhi.n 8007ff6 <DMA_CheckFifoParam+0xce>
  17572. 8007f44: a201 add r2, pc, #4 @ (adr r2, 8007f4c <DMA_CheckFifoParam+0x24>)
  17573. 8007f46: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  17574. 8007f4a: bf00 nop
  17575. 8007f4c: 08007f5d .word 0x08007f5d
  17576. 8007f50: 08007f6f .word 0x08007f6f
  17577. 8007f54: 08007f5d .word 0x08007f5d
  17578. 8007f58: 08007ff7 .word 0x08007ff7
  17579. {
  17580. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  17581. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  17582. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  17583. 8007f5c: 687b ldr r3, [r7, #4]
  17584. 8007f5e: 6adb ldr r3, [r3, #44] @ 0x2c
  17585. 8007f60: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  17586. 8007f64: 2b00 cmp r3, #0
  17587. 8007f66: d048 beq.n 8007ffa <DMA_CheckFifoParam+0xd2>
  17588. {
  17589. status = HAL_ERROR;
  17590. 8007f68: 2301 movs r3, #1
  17591. 8007f6a: 73fb strb r3, [r7, #15]
  17592. }
  17593. break;
  17594. 8007f6c: e045 b.n 8007ffa <DMA_CheckFifoParam+0xd2>
  17595. case DMA_FIFO_THRESHOLD_HALFFULL:
  17596. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  17597. 8007f6e: 687b ldr r3, [r7, #4]
  17598. 8007f70: 6adb ldr r3, [r3, #44] @ 0x2c
  17599. 8007f72: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  17600. 8007f76: d142 bne.n 8007ffe <DMA_CheckFifoParam+0xd6>
  17601. {
  17602. status = HAL_ERROR;
  17603. 8007f78: 2301 movs r3, #1
  17604. 8007f7a: 73fb strb r3, [r7, #15]
  17605. }
  17606. break;
  17607. 8007f7c: e03f b.n 8007ffe <DMA_CheckFifoParam+0xd6>
  17608. break;
  17609. }
  17610. }
  17611. /* Memory Data size equal to Half-Word */
  17612. else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD)
  17613. 8007f7e: 687b ldr r3, [r7, #4]
  17614. 8007f80: 699b ldr r3, [r3, #24]
  17615. 8007f82: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  17616. 8007f86: d123 bne.n 8007fd0 <DMA_CheckFifoParam+0xa8>
  17617. {
  17618. switch (hdma->Init.FIFOThreshold)
  17619. 8007f88: 687b ldr r3, [r7, #4]
  17620. 8007f8a: 6a9b ldr r3, [r3, #40] @ 0x28
  17621. 8007f8c: 2b03 cmp r3, #3
  17622. 8007f8e: d838 bhi.n 8008002 <DMA_CheckFifoParam+0xda>
  17623. 8007f90: a201 add r2, pc, #4 @ (adr r2, 8007f98 <DMA_CheckFifoParam+0x70>)
  17624. 8007f92: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  17625. 8007f96: bf00 nop
  17626. 8007f98: 08007fa9 .word 0x08007fa9
  17627. 8007f9c: 08007faf .word 0x08007faf
  17628. 8007fa0: 08007fa9 .word 0x08007fa9
  17629. 8007fa4: 08007fc1 .word 0x08007fc1
  17630. {
  17631. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  17632. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  17633. status = HAL_ERROR;
  17634. 8007fa8: 2301 movs r3, #1
  17635. 8007faa: 73fb strb r3, [r7, #15]
  17636. break;
  17637. 8007fac: e030 b.n 8008010 <DMA_CheckFifoParam+0xe8>
  17638. case DMA_FIFO_THRESHOLD_HALFFULL:
  17639. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  17640. 8007fae: 687b ldr r3, [r7, #4]
  17641. 8007fb0: 6adb ldr r3, [r3, #44] @ 0x2c
  17642. 8007fb2: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  17643. 8007fb6: 2b00 cmp r3, #0
  17644. 8007fb8: d025 beq.n 8008006 <DMA_CheckFifoParam+0xde>
  17645. {
  17646. status = HAL_ERROR;
  17647. 8007fba: 2301 movs r3, #1
  17648. 8007fbc: 73fb strb r3, [r7, #15]
  17649. }
  17650. break;
  17651. 8007fbe: e022 b.n 8008006 <DMA_CheckFifoParam+0xde>
  17652. case DMA_FIFO_THRESHOLD_FULL:
  17653. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  17654. 8007fc0: 687b ldr r3, [r7, #4]
  17655. 8007fc2: 6adb ldr r3, [r3, #44] @ 0x2c
  17656. 8007fc4: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  17657. 8007fc8: d11f bne.n 800800a <DMA_CheckFifoParam+0xe2>
  17658. {
  17659. status = HAL_ERROR;
  17660. 8007fca: 2301 movs r3, #1
  17661. 8007fcc: 73fb strb r3, [r7, #15]
  17662. }
  17663. break;
  17664. 8007fce: e01c b.n 800800a <DMA_CheckFifoParam+0xe2>
  17665. }
  17666. /* Memory Data size equal to Word */
  17667. else
  17668. {
  17669. switch (hdma->Init.FIFOThreshold)
  17670. 8007fd0: 687b ldr r3, [r7, #4]
  17671. 8007fd2: 6a9b ldr r3, [r3, #40] @ 0x28
  17672. 8007fd4: 2b02 cmp r3, #2
  17673. 8007fd6: d902 bls.n 8007fde <DMA_CheckFifoParam+0xb6>
  17674. 8007fd8: 2b03 cmp r3, #3
  17675. 8007fda: d003 beq.n 8007fe4 <DMA_CheckFifoParam+0xbc>
  17676. status = HAL_ERROR;
  17677. }
  17678. break;
  17679. default:
  17680. break;
  17681. 8007fdc: e018 b.n 8008010 <DMA_CheckFifoParam+0xe8>
  17682. status = HAL_ERROR;
  17683. 8007fde: 2301 movs r3, #1
  17684. 8007fe0: 73fb strb r3, [r7, #15]
  17685. break;
  17686. 8007fe2: e015 b.n 8008010 <DMA_CheckFifoParam+0xe8>
  17687. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  17688. 8007fe4: 687b ldr r3, [r7, #4]
  17689. 8007fe6: 6adb ldr r3, [r3, #44] @ 0x2c
  17690. 8007fe8: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  17691. 8007fec: 2b00 cmp r3, #0
  17692. 8007fee: d00e beq.n 800800e <DMA_CheckFifoParam+0xe6>
  17693. status = HAL_ERROR;
  17694. 8007ff0: 2301 movs r3, #1
  17695. 8007ff2: 73fb strb r3, [r7, #15]
  17696. break;
  17697. 8007ff4: e00b b.n 800800e <DMA_CheckFifoParam+0xe6>
  17698. break;
  17699. 8007ff6: bf00 nop
  17700. 8007ff8: e00a b.n 8008010 <DMA_CheckFifoParam+0xe8>
  17701. break;
  17702. 8007ffa: bf00 nop
  17703. 8007ffc: e008 b.n 8008010 <DMA_CheckFifoParam+0xe8>
  17704. break;
  17705. 8007ffe: bf00 nop
  17706. 8008000: e006 b.n 8008010 <DMA_CheckFifoParam+0xe8>
  17707. break;
  17708. 8008002: bf00 nop
  17709. 8008004: e004 b.n 8008010 <DMA_CheckFifoParam+0xe8>
  17710. break;
  17711. 8008006: bf00 nop
  17712. 8008008: e002 b.n 8008010 <DMA_CheckFifoParam+0xe8>
  17713. break;
  17714. 800800a: bf00 nop
  17715. 800800c: e000 b.n 8008010 <DMA_CheckFifoParam+0xe8>
  17716. break;
  17717. 800800e: bf00 nop
  17718. }
  17719. }
  17720. return status;
  17721. 8008010: 7bfb ldrb r3, [r7, #15]
  17722. }
  17723. 8008012: 4618 mov r0, r3
  17724. 8008014: 3714 adds r7, #20
  17725. 8008016: 46bd mov sp, r7
  17726. 8008018: f85d 7b04 ldr.w r7, [sp], #4
  17727. 800801c: 4770 bx lr
  17728. 800801e: bf00 nop
  17729. 08008020 <DMA_CalcDMAMUXChannelBaseAndMask>:
  17730. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  17731. * the configuration information for the specified DMA Stream.
  17732. * @retval HAL status
  17733. */
  17734. static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma)
  17735. {
  17736. 8008020: b480 push {r7}
  17737. 8008022: b085 sub sp, #20
  17738. 8008024: af00 add r7, sp, #0
  17739. 8008026: 6078 str r0, [r7, #4]
  17740. uint32_t stream_number;
  17741. uint32_t stream_baseaddress = (uint32_t)((uint32_t*)hdma->Instance);
  17742. 8008028: 687b ldr r3, [r7, #4]
  17743. 800802a: 681b ldr r3, [r3, #0]
  17744. 800802c: 60bb str r3, [r7, #8]
  17745. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  17746. 800802e: 687b ldr r3, [r7, #4]
  17747. 8008030: 681b ldr r3, [r3, #0]
  17748. 8008032: 4a38 ldr r2, [pc, #224] @ (8008114 <DMA_CalcDMAMUXChannelBaseAndMask+0xf4>)
  17749. 8008034: 4293 cmp r3, r2
  17750. 8008036: d022 beq.n 800807e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  17751. 8008038: 687b ldr r3, [r7, #4]
  17752. 800803a: 681b ldr r3, [r3, #0]
  17753. 800803c: 4a36 ldr r2, [pc, #216] @ (8008118 <DMA_CalcDMAMUXChannelBaseAndMask+0xf8>)
  17754. 800803e: 4293 cmp r3, r2
  17755. 8008040: d01d beq.n 800807e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  17756. 8008042: 687b ldr r3, [r7, #4]
  17757. 8008044: 681b ldr r3, [r3, #0]
  17758. 8008046: 4a35 ldr r2, [pc, #212] @ (800811c <DMA_CalcDMAMUXChannelBaseAndMask+0xfc>)
  17759. 8008048: 4293 cmp r3, r2
  17760. 800804a: d018 beq.n 800807e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  17761. 800804c: 687b ldr r3, [r7, #4]
  17762. 800804e: 681b ldr r3, [r3, #0]
  17763. 8008050: 4a33 ldr r2, [pc, #204] @ (8008120 <DMA_CalcDMAMUXChannelBaseAndMask+0x100>)
  17764. 8008052: 4293 cmp r3, r2
  17765. 8008054: d013 beq.n 800807e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  17766. 8008056: 687b ldr r3, [r7, #4]
  17767. 8008058: 681b ldr r3, [r3, #0]
  17768. 800805a: 4a32 ldr r2, [pc, #200] @ (8008124 <DMA_CalcDMAMUXChannelBaseAndMask+0x104>)
  17769. 800805c: 4293 cmp r3, r2
  17770. 800805e: d00e beq.n 800807e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  17771. 8008060: 687b ldr r3, [r7, #4]
  17772. 8008062: 681b ldr r3, [r3, #0]
  17773. 8008064: 4a30 ldr r2, [pc, #192] @ (8008128 <DMA_CalcDMAMUXChannelBaseAndMask+0x108>)
  17774. 8008066: 4293 cmp r3, r2
  17775. 8008068: d009 beq.n 800807e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  17776. 800806a: 687b ldr r3, [r7, #4]
  17777. 800806c: 681b ldr r3, [r3, #0]
  17778. 800806e: 4a2f ldr r2, [pc, #188] @ (800812c <DMA_CalcDMAMUXChannelBaseAndMask+0x10c>)
  17779. 8008070: 4293 cmp r3, r2
  17780. 8008072: d004 beq.n 800807e <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  17781. 8008074: 687b ldr r3, [r7, #4]
  17782. 8008076: 681b ldr r3, [r3, #0]
  17783. 8008078: 4a2d ldr r2, [pc, #180] @ (8008130 <DMA_CalcDMAMUXChannelBaseAndMask+0x110>)
  17784. 800807a: 4293 cmp r3, r2
  17785. 800807c: d101 bne.n 8008082 <DMA_CalcDMAMUXChannelBaseAndMask+0x62>
  17786. 800807e: 2301 movs r3, #1
  17787. 8008080: e000 b.n 8008084 <DMA_CalcDMAMUXChannelBaseAndMask+0x64>
  17788. 8008082: 2300 movs r3, #0
  17789. 8008084: 2b00 cmp r3, #0
  17790. 8008086: d01a beq.n 80080be <DMA_CalcDMAMUXChannelBaseAndMask+0x9e>
  17791. {
  17792. /* BDMA Channels are connected to DMAMUX2 channels */
  17793. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 8U) / 20U;
  17794. 8008088: 687b ldr r3, [r7, #4]
  17795. 800808a: 681b ldr r3, [r3, #0]
  17796. 800808c: b2db uxtb r3, r3
  17797. 800808e: 3b08 subs r3, #8
  17798. 8008090: 4a28 ldr r2, [pc, #160] @ (8008134 <DMA_CalcDMAMUXChannelBaseAndMask+0x114>)
  17799. 8008092: fba2 2303 umull r2, r3, r2, r3
  17800. 8008096: 091b lsrs r3, r3, #4
  17801. 8008098: 60fb str r3, [r7, #12]
  17802. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_Channel0) + (stream_number * 4U)));
  17803. 800809a: 68fa ldr r2, [r7, #12]
  17804. 800809c: 4b26 ldr r3, [pc, #152] @ (8008138 <DMA_CalcDMAMUXChannelBaseAndMask+0x118>)
  17805. 800809e: 4413 add r3, r2
  17806. 80080a0: 009b lsls r3, r3, #2
  17807. 80080a2: 461a mov r2, r3
  17808. 80080a4: 687b ldr r3, [r7, #4]
  17809. 80080a6: 661a str r2, [r3, #96] @ 0x60
  17810. hdma->DMAmuxChannelStatus = DMAMUX2_ChannelStatus;
  17811. 80080a8: 687b ldr r3, [r7, #4]
  17812. 80080aa: 4a24 ldr r2, [pc, #144] @ (800813c <DMA_CalcDMAMUXChannelBaseAndMask+0x11c>)
  17813. 80080ac: 665a str r2, [r3, #100] @ 0x64
  17814. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  17815. 80080ae: 68fb ldr r3, [r7, #12]
  17816. 80080b0: f003 031f and.w r3, r3, #31
  17817. 80080b4: 2201 movs r2, #1
  17818. 80080b6: 409a lsls r2, r3
  17819. 80080b8: 687b ldr r3, [r7, #4]
  17820. 80080ba: 669a str r2, [r3, #104] @ 0x68
  17821. }
  17822. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  17823. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  17824. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  17825. }
  17826. }
  17827. 80080bc: e024 b.n 8008108 <DMA_CalcDMAMUXChannelBaseAndMask+0xe8>
  17828. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  17829. 80080be: 687b ldr r3, [r7, #4]
  17830. 80080c0: 681b ldr r3, [r3, #0]
  17831. 80080c2: b2db uxtb r3, r3
  17832. 80080c4: 3b10 subs r3, #16
  17833. 80080c6: 4a1e ldr r2, [pc, #120] @ (8008140 <DMA_CalcDMAMUXChannelBaseAndMask+0x120>)
  17834. 80080c8: fba2 2303 umull r2, r3, r2, r3
  17835. 80080cc: 091b lsrs r3, r3, #4
  17836. 80080ce: 60fb str r3, [r7, #12]
  17837. if((stream_baseaddress <= ((uint32_t)DMA2_Stream7) ) && \
  17838. 80080d0: 68bb ldr r3, [r7, #8]
  17839. 80080d2: 4a1c ldr r2, [pc, #112] @ (8008144 <DMA_CalcDMAMUXChannelBaseAndMask+0x124>)
  17840. 80080d4: 4293 cmp r3, r2
  17841. 80080d6: d806 bhi.n 80080e6 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  17842. 80080d8: 68bb ldr r3, [r7, #8]
  17843. 80080da: 4a1b ldr r2, [pc, #108] @ (8008148 <DMA_CalcDMAMUXChannelBaseAndMask+0x128>)
  17844. 80080dc: 4293 cmp r3, r2
  17845. 80080de: d902 bls.n 80080e6 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  17846. stream_number += 8U;
  17847. 80080e0: 68fb ldr r3, [r7, #12]
  17848. 80080e2: 3308 adds r3, #8
  17849. 80080e4: 60fb str r3, [r7, #12]
  17850. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  17851. 80080e6: 68fa ldr r2, [r7, #12]
  17852. 80080e8: 4b18 ldr r3, [pc, #96] @ (800814c <DMA_CalcDMAMUXChannelBaseAndMask+0x12c>)
  17853. 80080ea: 4413 add r3, r2
  17854. 80080ec: 009b lsls r3, r3, #2
  17855. 80080ee: 461a mov r2, r3
  17856. 80080f0: 687b ldr r3, [r7, #4]
  17857. 80080f2: 661a str r2, [r3, #96] @ 0x60
  17858. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  17859. 80080f4: 687b ldr r3, [r7, #4]
  17860. 80080f6: 4a16 ldr r2, [pc, #88] @ (8008150 <DMA_CalcDMAMUXChannelBaseAndMask+0x130>)
  17861. 80080f8: 665a str r2, [r3, #100] @ 0x64
  17862. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  17863. 80080fa: 68fb ldr r3, [r7, #12]
  17864. 80080fc: f003 031f and.w r3, r3, #31
  17865. 8008100: 2201 movs r2, #1
  17866. 8008102: 409a lsls r2, r3
  17867. 8008104: 687b ldr r3, [r7, #4]
  17868. 8008106: 669a str r2, [r3, #104] @ 0x68
  17869. }
  17870. 8008108: bf00 nop
  17871. 800810a: 3714 adds r7, #20
  17872. 800810c: 46bd mov sp, r7
  17873. 800810e: f85d 7b04 ldr.w r7, [sp], #4
  17874. 8008112: 4770 bx lr
  17875. 8008114: 58025408 .word 0x58025408
  17876. 8008118: 5802541c .word 0x5802541c
  17877. 800811c: 58025430 .word 0x58025430
  17878. 8008120: 58025444 .word 0x58025444
  17879. 8008124: 58025458 .word 0x58025458
  17880. 8008128: 5802546c .word 0x5802546c
  17881. 800812c: 58025480 .word 0x58025480
  17882. 8008130: 58025494 .word 0x58025494
  17883. 8008134: cccccccd .word 0xcccccccd
  17884. 8008138: 16009600 .word 0x16009600
  17885. 800813c: 58025880 .word 0x58025880
  17886. 8008140: aaaaaaab .word 0xaaaaaaab
  17887. 8008144: 400204b8 .word 0x400204b8
  17888. 8008148: 4002040f .word 0x4002040f
  17889. 800814c: 10008200 .word 0x10008200
  17890. 8008150: 40020880 .word 0x40020880
  17891. 08008154 <DMA_CalcDMAMUXRequestGenBaseAndMask>:
  17892. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  17893. * the configuration information for the specified DMA Stream.
  17894. * @retval HAL status
  17895. */
  17896. static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma)
  17897. {
  17898. 8008154: b480 push {r7}
  17899. 8008156: b085 sub sp, #20
  17900. 8008158: af00 add r7, sp, #0
  17901. 800815a: 6078 str r0, [r7, #4]
  17902. uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID;
  17903. 800815c: 687b ldr r3, [r7, #4]
  17904. 800815e: 685b ldr r3, [r3, #4]
  17905. 8008160: b2db uxtb r3, r3
  17906. 8008162: 60fb str r3, [r7, #12]
  17907. if((request >= DMA_REQUEST_GENERATOR0) && (request <= DMA_REQUEST_GENERATOR7))
  17908. 8008164: 68fb ldr r3, [r7, #12]
  17909. 8008166: 2b00 cmp r3, #0
  17910. 8008168: d04a beq.n 8008200 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  17911. 800816a: 68fb ldr r3, [r7, #12]
  17912. 800816c: 2b08 cmp r3, #8
  17913. 800816e: d847 bhi.n 8008200 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  17914. {
  17915. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  17916. 8008170: 687b ldr r3, [r7, #4]
  17917. 8008172: 681b ldr r3, [r3, #0]
  17918. 8008174: 4a25 ldr r2, [pc, #148] @ (800820c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xb8>)
  17919. 8008176: 4293 cmp r3, r2
  17920. 8008178: d022 beq.n 80081c0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17921. 800817a: 687b ldr r3, [r7, #4]
  17922. 800817c: 681b ldr r3, [r3, #0]
  17923. 800817e: 4a24 ldr r2, [pc, #144] @ (8008210 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xbc>)
  17924. 8008180: 4293 cmp r3, r2
  17925. 8008182: d01d beq.n 80081c0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17926. 8008184: 687b ldr r3, [r7, #4]
  17927. 8008186: 681b ldr r3, [r3, #0]
  17928. 8008188: 4a22 ldr r2, [pc, #136] @ (8008214 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc0>)
  17929. 800818a: 4293 cmp r3, r2
  17930. 800818c: d018 beq.n 80081c0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17931. 800818e: 687b ldr r3, [r7, #4]
  17932. 8008190: 681b ldr r3, [r3, #0]
  17933. 8008192: 4a21 ldr r2, [pc, #132] @ (8008218 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc4>)
  17934. 8008194: 4293 cmp r3, r2
  17935. 8008196: d013 beq.n 80081c0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17936. 8008198: 687b ldr r3, [r7, #4]
  17937. 800819a: 681b ldr r3, [r3, #0]
  17938. 800819c: 4a1f ldr r2, [pc, #124] @ (800821c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc8>)
  17939. 800819e: 4293 cmp r3, r2
  17940. 80081a0: d00e beq.n 80081c0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17941. 80081a2: 687b ldr r3, [r7, #4]
  17942. 80081a4: 681b ldr r3, [r3, #0]
  17943. 80081a6: 4a1e ldr r2, [pc, #120] @ (8008220 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xcc>)
  17944. 80081a8: 4293 cmp r3, r2
  17945. 80081aa: d009 beq.n 80081c0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17946. 80081ac: 687b ldr r3, [r7, #4]
  17947. 80081ae: 681b ldr r3, [r3, #0]
  17948. 80081b0: 4a1c ldr r2, [pc, #112] @ (8008224 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd0>)
  17949. 80081b2: 4293 cmp r3, r2
  17950. 80081b4: d004 beq.n 80081c0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17951. 80081b6: 687b ldr r3, [r7, #4]
  17952. 80081b8: 681b ldr r3, [r3, #0]
  17953. 80081ba: 4a1b ldr r2, [pc, #108] @ (8008228 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd4>)
  17954. 80081bc: 4293 cmp r3, r2
  17955. 80081be: d101 bne.n 80081c4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x70>
  17956. 80081c0: 2301 movs r3, #1
  17957. 80081c2: e000 b.n 80081c6 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x72>
  17958. 80081c4: 2300 movs r3, #0
  17959. 80081c6: 2b00 cmp r3, #0
  17960. 80081c8: d00a beq.n 80081e0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x8c>
  17961. {
  17962. /* BDMA Channels are connected to DMAMUX2 request generator blocks */
  17963. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_RequestGenerator0) + ((request - 1U) * 4U)));
  17964. 80081ca: 68fa ldr r2, [r7, #12]
  17965. 80081cc: 4b17 ldr r3, [pc, #92] @ (800822c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd8>)
  17966. 80081ce: 4413 add r3, r2
  17967. 80081d0: 009b lsls r3, r3, #2
  17968. 80081d2: 461a mov r2, r3
  17969. 80081d4: 687b ldr r3, [r7, #4]
  17970. 80081d6: 66da str r2, [r3, #108] @ 0x6c
  17971. hdma->DMAmuxRequestGenStatus = DMAMUX2_RequestGenStatus;
  17972. 80081d8: 687b ldr r3, [r7, #4]
  17973. 80081da: 4a15 ldr r2, [pc, #84] @ (8008230 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xdc>)
  17974. 80081dc: 671a str r2, [r3, #112] @ 0x70
  17975. 80081de: e009 b.n 80081f4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xa0>
  17976. }
  17977. else
  17978. {
  17979. /* DMA1 and DMA2 Streams use DMAMUX1 request generator blocks */
  17980. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U)));
  17981. 80081e0: 68fa ldr r2, [r7, #12]
  17982. 80081e2: 4b14 ldr r3, [pc, #80] @ (8008234 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe0>)
  17983. 80081e4: 4413 add r3, r2
  17984. 80081e6: 009b lsls r3, r3, #2
  17985. 80081e8: 461a mov r2, r3
  17986. 80081ea: 687b ldr r3, [r7, #4]
  17987. 80081ec: 66da str r2, [r3, #108] @ 0x6c
  17988. hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus;
  17989. 80081ee: 687b ldr r3, [r7, #4]
  17990. 80081f0: 4a11 ldr r2, [pc, #68] @ (8008238 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe4>)
  17991. 80081f2: 671a str r2, [r3, #112] @ 0x70
  17992. }
  17993. hdma->DMAmuxRequestGenStatusMask = 1UL << (request - 1U);
  17994. 80081f4: 68fb ldr r3, [r7, #12]
  17995. 80081f6: 3b01 subs r3, #1
  17996. 80081f8: 2201 movs r2, #1
  17997. 80081fa: 409a lsls r2, r3
  17998. 80081fc: 687b ldr r3, [r7, #4]
  17999. 80081fe: 675a str r2, [r3, #116] @ 0x74
  18000. }
  18001. }
  18002. 8008200: bf00 nop
  18003. 8008202: 3714 adds r7, #20
  18004. 8008204: 46bd mov sp, r7
  18005. 8008206: f85d 7b04 ldr.w r7, [sp], #4
  18006. 800820a: 4770 bx lr
  18007. 800820c: 58025408 .word 0x58025408
  18008. 8008210: 5802541c .word 0x5802541c
  18009. 8008214: 58025430 .word 0x58025430
  18010. 8008218: 58025444 .word 0x58025444
  18011. 800821c: 58025458 .word 0x58025458
  18012. 8008220: 5802546c .word 0x5802546c
  18013. 8008224: 58025480 .word 0x58025480
  18014. 8008228: 58025494 .word 0x58025494
  18015. 800822c: 1600963f .word 0x1600963f
  18016. 8008230: 58025940 .word 0x58025940
  18017. 8008234: 1000823f .word 0x1000823f
  18018. 8008238: 40020940 .word 0x40020940
  18019. 0800823c <HAL_ETH_Init>:
  18020. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18021. * the configuration information for ETHERNET module
  18022. * @retval HAL status
  18023. */
  18024. HAL_StatusTypeDef HAL_ETH_Init(ETH_HandleTypeDef *heth)
  18025. {
  18026. 800823c: b580 push {r7, lr}
  18027. 800823e: b084 sub sp, #16
  18028. 8008240: af00 add r7, sp, #0
  18029. 8008242: 6078 str r0, [r7, #4]
  18030. uint32_t tickstart;
  18031. if (heth == NULL)
  18032. 8008244: 687b ldr r3, [r7, #4]
  18033. 8008246: 2b00 cmp r3, #0
  18034. 8008248: d101 bne.n 800824e <HAL_ETH_Init+0x12>
  18035. {
  18036. return HAL_ERROR;
  18037. 800824a: 2301 movs r3, #1
  18038. 800824c: e0e3 b.n 8008416 <HAL_ETH_Init+0x1da>
  18039. }
  18040. if (heth->gState == HAL_ETH_STATE_RESET)
  18041. 800824e: 687b ldr r3, [r7, #4]
  18042. 8008250: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  18043. 8008254: 2b00 cmp r3, #0
  18044. 8008256: d106 bne.n 8008266 <HAL_ETH_Init+0x2a>
  18045. {
  18046. heth->gState = HAL_ETH_STATE_BUSY;
  18047. 8008258: 687b ldr r3, [r7, #4]
  18048. 800825a: 2223 movs r2, #35 @ 0x23
  18049. 800825c: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  18050. /* Init the low level hardware */
  18051. heth->MspInitCallback(heth);
  18052. #else
  18053. /* Init the low level hardware : GPIO, CLOCK, NVIC. */
  18054. HAL_ETH_MspInit(heth);
  18055. 8008260: 6878 ldr r0, [r7, #4]
  18056. 8008262: f008 fbb9 bl 80109d8 <HAL_ETH_MspInit>
  18057. #endif /* (USE_HAL_ETH_REGISTER_CALLBACKS) */
  18058. }
  18059. __HAL_RCC_SYSCFG_CLK_ENABLE();
  18060. 8008266: 4b6e ldr r3, [pc, #440] @ (8008420 <HAL_ETH_Init+0x1e4>)
  18061. 8008268: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  18062. 800826c: 4a6c ldr r2, [pc, #432] @ (8008420 <HAL_ETH_Init+0x1e4>)
  18063. 800826e: f043 0302 orr.w r3, r3, #2
  18064. 8008272: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  18065. 8008276: 4b6a ldr r3, [pc, #424] @ (8008420 <HAL_ETH_Init+0x1e4>)
  18066. 8008278: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  18067. 800827c: f003 0302 and.w r3, r3, #2
  18068. 8008280: 60bb str r3, [r7, #8]
  18069. 8008282: 68bb ldr r3, [r7, #8]
  18070. if (heth->Init.MediaInterface == HAL_ETH_MII_MODE)
  18071. 8008284: 687b ldr r3, [r7, #4]
  18072. 8008286: 7a1b ldrb r3, [r3, #8]
  18073. 8008288: 2b00 cmp r3, #0
  18074. 800828a: d103 bne.n 8008294 <HAL_ETH_Init+0x58>
  18075. {
  18076. HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_MII);
  18077. 800828c: 2000 movs r0, #0
  18078. 800828e: f7fd fa3d bl 800570c <HAL_SYSCFG_ETHInterfaceSelect>
  18079. 8008292: e003 b.n 800829c <HAL_ETH_Init+0x60>
  18080. }
  18081. else
  18082. {
  18083. HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_RMII);
  18084. 8008294: f44f 0000 mov.w r0, #8388608 @ 0x800000
  18085. 8008298: f7fd fa38 bl 800570c <HAL_SYSCFG_ETHInterfaceSelect>
  18086. }
  18087. /* Dummy read to sync with ETH */
  18088. (void)SYSCFG->PMCR;
  18089. 800829c: 4b61 ldr r3, [pc, #388] @ (8008424 <HAL_ETH_Init+0x1e8>)
  18090. 800829e: 685b ldr r3, [r3, #4]
  18091. /* Ethernet Software reset */
  18092. /* Set the SWR bit: resets all MAC subsystem internal registers and logic */
  18093. /* After reset all the registers holds their respective reset values */
  18094. SET_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR);
  18095. 80082a0: 687b ldr r3, [r7, #4]
  18096. 80082a2: 681b ldr r3, [r3, #0]
  18097. 80082a4: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18098. 80082a8: 681b ldr r3, [r3, #0]
  18099. 80082aa: 687a ldr r2, [r7, #4]
  18100. 80082ac: 6812 ldr r2, [r2, #0]
  18101. 80082ae: f043 0301 orr.w r3, r3, #1
  18102. 80082b2: f502 5280 add.w r2, r2, #4096 @ 0x1000
  18103. 80082b6: 6013 str r3, [r2, #0]
  18104. /* Get tick */
  18105. tickstart = HAL_GetTick();
  18106. 80082b8: f7fd f9ec bl 8005694 <HAL_GetTick>
  18107. 80082bc: 60f8 str r0, [r7, #12]
  18108. /* Wait for software reset */
  18109. while (READ_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR) > 0U)
  18110. 80082be: e011 b.n 80082e4 <HAL_ETH_Init+0xa8>
  18111. {
  18112. if (((HAL_GetTick() - tickstart) > ETH_SWRESET_TIMEOUT))
  18113. 80082c0: f7fd f9e8 bl 8005694 <HAL_GetTick>
  18114. 80082c4: 4602 mov r2, r0
  18115. 80082c6: 68fb ldr r3, [r7, #12]
  18116. 80082c8: 1ad3 subs r3, r2, r3
  18117. 80082ca: f5b3 7ffa cmp.w r3, #500 @ 0x1f4
  18118. 80082ce: d909 bls.n 80082e4 <HAL_ETH_Init+0xa8>
  18119. {
  18120. /* Set Error Code */
  18121. heth->ErrorCode = HAL_ETH_ERROR_TIMEOUT;
  18122. 80082d0: 687b ldr r3, [r7, #4]
  18123. 80082d2: 2204 movs r2, #4
  18124. 80082d4: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  18125. /* Set State as Error */
  18126. heth->gState = HAL_ETH_STATE_ERROR;
  18127. 80082d8: 687b ldr r3, [r7, #4]
  18128. 80082da: 22e0 movs r2, #224 @ 0xe0
  18129. 80082dc: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  18130. /* Return Error */
  18131. return HAL_ERROR;
  18132. 80082e0: 2301 movs r3, #1
  18133. 80082e2: e098 b.n 8008416 <HAL_ETH_Init+0x1da>
  18134. while (READ_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR) > 0U)
  18135. 80082e4: 687b ldr r3, [r7, #4]
  18136. 80082e6: 681b ldr r3, [r3, #0]
  18137. 80082e8: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18138. 80082ec: 681b ldr r3, [r3, #0]
  18139. 80082ee: f003 0301 and.w r3, r3, #1
  18140. 80082f2: 2b00 cmp r3, #0
  18141. 80082f4: d1e4 bne.n 80082c0 <HAL_ETH_Init+0x84>
  18142. }
  18143. }
  18144. /*------------------ MDIO CSR Clock Range Configuration --------------------*/
  18145. HAL_ETH_SetMDIOClockRange(heth);
  18146. 80082f6: 6878 ldr r0, [r7, #4]
  18147. 80082f8: f000 ff1c bl 8009134 <HAL_ETH_SetMDIOClockRange>
  18148. /*------------------ MAC LPI 1US Tic Counter Configuration --------------------*/
  18149. WRITE_REG(heth->Instance->MAC1USTCR, (((uint32_t)HAL_RCC_GetHCLKFreq() / ETH_MAC_US_TICK) - 1U));
  18150. 80082fc: f002 ffb0 bl 800b260 <HAL_RCC_GetHCLKFreq>
  18151. 8008300: 4603 mov r3, r0
  18152. 8008302: 4a49 ldr r2, [pc, #292] @ (8008428 <HAL_ETH_Init+0x1ec>)
  18153. 8008304: fba2 2303 umull r2, r3, r2, r3
  18154. 8008308: 0c9a lsrs r2, r3, #18
  18155. 800830a: 687b ldr r3, [r7, #4]
  18156. 800830c: 681b ldr r3, [r3, #0]
  18157. 800830e: 3a01 subs r2, #1
  18158. 8008310: f8c3 20dc str.w r2, [r3, #220] @ 0xdc
  18159. /*------------------ MAC, MTL and DMA default Configuration ----------------*/
  18160. ETH_MACDMAConfig(heth);
  18161. 8008314: 6878 ldr r0, [r7, #4]
  18162. 8008316: f001 f90d bl 8009534 <ETH_MACDMAConfig>
  18163. /* SET DSL to 64 bit */
  18164. MODIFY_REG(heth->Instance->DMACCR, ETH_DMACCR_DSL, ETH_DMACCR_DSL_64BIT);
  18165. 800831a: 687b ldr r3, [r7, #4]
  18166. 800831c: 681b ldr r3, [r3, #0]
  18167. 800831e: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18168. 8008322: f8d3 3100 ldr.w r3, [r3, #256] @ 0x100
  18169. 8008326: f423 13e0 bic.w r3, r3, #1835008 @ 0x1c0000
  18170. 800832a: 687a ldr r2, [r7, #4]
  18171. 800832c: 6812 ldr r2, [r2, #0]
  18172. 800832e: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  18173. 8008332: f502 5280 add.w r2, r2, #4096 @ 0x1000
  18174. 8008336: f8c2 3100 str.w r3, [r2, #256] @ 0x100
  18175. /* Set Receive Buffers Length (must be a multiple of 4) */
  18176. if ((heth->Init.RxBuffLen % 0x4U) != 0x0U)
  18177. 800833a: 687b ldr r3, [r7, #4]
  18178. 800833c: 695b ldr r3, [r3, #20]
  18179. 800833e: f003 0303 and.w r3, r3, #3
  18180. 8008342: 2b00 cmp r3, #0
  18181. 8008344: d009 beq.n 800835a <HAL_ETH_Init+0x11e>
  18182. {
  18183. /* Set Error Code */
  18184. heth->ErrorCode = HAL_ETH_ERROR_PARAM;
  18185. 8008346: 687b ldr r3, [r7, #4]
  18186. 8008348: 2201 movs r2, #1
  18187. 800834a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  18188. /* Set State as Error */
  18189. heth->gState = HAL_ETH_STATE_ERROR;
  18190. 800834e: 687b ldr r3, [r7, #4]
  18191. 8008350: 22e0 movs r2, #224 @ 0xe0
  18192. 8008352: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  18193. /* Return Error */
  18194. return HAL_ERROR;
  18195. 8008356: 2301 movs r3, #1
  18196. 8008358: e05d b.n 8008416 <HAL_ETH_Init+0x1da>
  18197. }
  18198. else
  18199. {
  18200. MODIFY_REG(heth->Instance->DMACRCR, ETH_DMACRCR_RBSZ, ((heth->Init.RxBuffLen) << 1));
  18201. 800835a: 687b ldr r3, [r7, #4]
  18202. 800835c: 681b ldr r3, [r3, #0]
  18203. 800835e: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18204. 8008362: f8d3 2108 ldr.w r2, [r3, #264] @ 0x108
  18205. 8008366: 4b31 ldr r3, [pc, #196] @ (800842c <HAL_ETH_Init+0x1f0>)
  18206. 8008368: 4013 ands r3, r2
  18207. 800836a: 687a ldr r2, [r7, #4]
  18208. 800836c: 6952 ldr r2, [r2, #20]
  18209. 800836e: 0051 lsls r1, r2, #1
  18210. 8008370: 687a ldr r2, [r7, #4]
  18211. 8008372: 6812 ldr r2, [r2, #0]
  18212. 8008374: 430b orrs r3, r1
  18213. 8008376: f502 5280 add.w r2, r2, #4096 @ 0x1000
  18214. 800837a: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  18215. }
  18216. /*------------------ DMA Tx Descriptors Configuration ----------------------*/
  18217. ETH_DMATxDescListInit(heth);
  18218. 800837e: 6878 ldr r0, [r7, #4]
  18219. 8008380: f001 f975 bl 800966e <ETH_DMATxDescListInit>
  18220. /*------------------ DMA Rx Descriptors Configuration ----------------------*/
  18221. ETH_DMARxDescListInit(heth);
  18222. 8008384: 6878 ldr r0, [r7, #4]
  18223. 8008386: f001 f9bb bl 8009700 <ETH_DMARxDescListInit>
  18224. /*--------------------- ETHERNET MAC Address Configuration ------------------*/
  18225. /* Set MAC addr bits 32 to 47 */
  18226. heth->Instance->MACA0HR = (((uint32_t)(heth->Init.MACAddr[5]) << 8) | (uint32_t)heth->Init.MACAddr[4]);
  18227. 800838a: 687b ldr r3, [r7, #4]
  18228. 800838c: 685b ldr r3, [r3, #4]
  18229. 800838e: 3305 adds r3, #5
  18230. 8008390: 781b ldrb r3, [r3, #0]
  18231. 8008392: 021a lsls r2, r3, #8
  18232. 8008394: 687b ldr r3, [r7, #4]
  18233. 8008396: 685b ldr r3, [r3, #4]
  18234. 8008398: 3304 adds r3, #4
  18235. 800839a: 781b ldrb r3, [r3, #0]
  18236. 800839c: 4619 mov r1, r3
  18237. 800839e: 687b ldr r3, [r7, #4]
  18238. 80083a0: 681b ldr r3, [r3, #0]
  18239. 80083a2: 430a orrs r2, r1
  18240. 80083a4: f8c3 2300 str.w r2, [r3, #768] @ 0x300
  18241. /* Set MAC addr bits 0 to 31 */
  18242. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  18243. 80083a8: 687b ldr r3, [r7, #4]
  18244. 80083aa: 685b ldr r3, [r3, #4]
  18245. 80083ac: 3303 adds r3, #3
  18246. 80083ae: 781b ldrb r3, [r3, #0]
  18247. 80083b0: 061a lsls r2, r3, #24
  18248. 80083b2: 687b ldr r3, [r7, #4]
  18249. 80083b4: 685b ldr r3, [r3, #4]
  18250. 80083b6: 3302 adds r3, #2
  18251. 80083b8: 781b ldrb r3, [r3, #0]
  18252. 80083ba: 041b lsls r3, r3, #16
  18253. 80083bc: 431a orrs r2, r3
  18254. ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]);
  18255. 80083be: 687b ldr r3, [r7, #4]
  18256. 80083c0: 685b ldr r3, [r3, #4]
  18257. 80083c2: 3301 adds r3, #1
  18258. 80083c4: 781b ldrb r3, [r3, #0]
  18259. 80083c6: 021b lsls r3, r3, #8
  18260. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  18261. 80083c8: 431a orrs r2, r3
  18262. ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]);
  18263. 80083ca: 687b ldr r3, [r7, #4]
  18264. 80083cc: 685b ldr r3, [r3, #4]
  18265. 80083ce: 781b ldrb r3, [r3, #0]
  18266. 80083d0: 4619 mov r1, r3
  18267. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  18268. 80083d2: 687b ldr r3, [r7, #4]
  18269. 80083d4: 681b ldr r3, [r3, #0]
  18270. ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]);
  18271. 80083d6: 430a orrs r2, r1
  18272. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  18273. 80083d8: f8c3 2304 str.w r2, [r3, #772] @ 0x304
  18274. /* Disable Rx MMC Interrupts */
  18275. SET_BIT(heth->Instance->MMCRIMR, ETH_MMCRIMR_RXLPITRCIM | ETH_MMCRIMR_RXLPIUSCIM | \
  18276. 80083dc: 687b ldr r3, [r7, #4]
  18277. 80083de: 681b ldr r3, [r3, #0]
  18278. 80083e0: f8d3 170c ldr.w r1, [r3, #1804] @ 0x70c
  18279. 80083e4: 687b ldr r3, [r7, #4]
  18280. 80083e6: 681a ldr r2, [r3, #0]
  18281. 80083e8: 4b11 ldr r3, [pc, #68] @ (8008430 <HAL_ETH_Init+0x1f4>)
  18282. 80083ea: 430b orrs r3, r1
  18283. 80083ec: f8c2 370c str.w r3, [r2, #1804] @ 0x70c
  18284. ETH_MMCRIMR_RXUCGPIM | ETH_MMCRIMR_RXALGNERPIM | ETH_MMCRIMR_RXCRCERPIM);
  18285. /* Disable Tx MMC Interrupts */
  18286. SET_BIT(heth->Instance->MMCTIMR, ETH_MMCTIMR_TXLPITRCIM | ETH_MMCTIMR_TXLPIUSCIM | \
  18287. 80083f0: 687b ldr r3, [r7, #4]
  18288. 80083f2: 681b ldr r3, [r3, #0]
  18289. 80083f4: f8d3 1710 ldr.w r1, [r3, #1808] @ 0x710
  18290. 80083f8: 687b ldr r3, [r7, #4]
  18291. 80083fa: 681a ldr r2, [r3, #0]
  18292. 80083fc: 4b0d ldr r3, [pc, #52] @ (8008434 <HAL_ETH_Init+0x1f8>)
  18293. 80083fe: 430b orrs r3, r1
  18294. 8008400: f8c2 3710 str.w r3, [r2, #1808] @ 0x710
  18295. ETH_MMCTIMR_TXGPKTIM | ETH_MMCTIMR_TXMCOLGPIM | ETH_MMCTIMR_TXSCOLGPIM);
  18296. heth->ErrorCode = HAL_ETH_ERROR_NONE;
  18297. 8008404: 687b ldr r3, [r7, #4]
  18298. 8008406: 2200 movs r2, #0
  18299. 8008408: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  18300. heth->gState = HAL_ETH_STATE_READY;
  18301. 800840c: 687b ldr r3, [r7, #4]
  18302. 800840e: 2210 movs r2, #16
  18303. 8008410: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  18304. return HAL_OK;
  18305. 8008414: 2300 movs r3, #0
  18306. }
  18307. 8008416: 4618 mov r0, r3
  18308. 8008418: 3710 adds r7, #16
  18309. 800841a: 46bd mov sp, r7
  18310. 800841c: bd80 pop {r7, pc}
  18311. 800841e: bf00 nop
  18312. 8008420: 58024400 .word 0x58024400
  18313. 8008424: 58000400 .word 0x58000400
  18314. 8008428: 431bde83 .word 0x431bde83
  18315. 800842c: ffff8001 .word 0xffff8001
  18316. 8008430: 0c020060 .word 0x0c020060
  18317. 8008434: 0c20c000 .word 0x0c20c000
  18318. 08008438 <HAL_ETH_Start_IT>:
  18319. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18320. * the configuration information for ETHERNET module
  18321. * @retval HAL status
  18322. */
  18323. HAL_StatusTypeDef HAL_ETH_Start_IT(ETH_HandleTypeDef *heth)
  18324. {
  18325. 8008438: b580 push {r7, lr}
  18326. 800843a: b082 sub sp, #8
  18327. 800843c: af00 add r7, sp, #0
  18328. 800843e: 6078 str r0, [r7, #4]
  18329. if (heth->gState == HAL_ETH_STATE_READY)
  18330. 8008440: 687b ldr r3, [r7, #4]
  18331. 8008442: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  18332. 8008446: 2b10 cmp r3, #16
  18333. 8008448: d165 bne.n 8008516 <HAL_ETH_Start_IT+0xde>
  18334. {
  18335. heth->gState = HAL_ETH_STATE_BUSY;
  18336. 800844a: 687b ldr r3, [r7, #4]
  18337. 800844c: 2223 movs r2, #35 @ 0x23
  18338. 800844e: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  18339. /* save IT mode to ETH Handle */
  18340. heth->RxDescList.ItMode = 1U;
  18341. 8008452: 687b ldr r3, [r7, #4]
  18342. 8008454: 2201 movs r2, #1
  18343. 8008456: 659a str r2, [r3, #88] @ 0x58
  18344. /* Set number of descriptors to build */
  18345. heth->RxDescList.RxBuildDescCnt = ETH_RX_DESC_CNT;
  18346. 8008458: 687b ldr r3, [r7, #4]
  18347. 800845a: 2204 movs r2, #4
  18348. 800845c: 66da str r2, [r3, #108] @ 0x6c
  18349. /* Build all descriptors */
  18350. ETH_UpdateDescriptor(heth);
  18351. 800845e: 6878 ldr r0, [r7, #4]
  18352. 8008460: f000 f9e4 bl 800882c <ETH_UpdateDescriptor>
  18353. /* Enable the DMA transmission */
  18354. SET_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_ST);
  18355. 8008464: 687b ldr r3, [r7, #4]
  18356. 8008466: 681b ldr r3, [r3, #0]
  18357. 8008468: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18358. 800846c: f8d3 3104 ldr.w r3, [r3, #260] @ 0x104
  18359. 8008470: 687a ldr r2, [r7, #4]
  18360. 8008472: 6812 ldr r2, [r2, #0]
  18361. 8008474: f043 0301 orr.w r3, r3, #1
  18362. 8008478: f502 5280 add.w r2, r2, #4096 @ 0x1000
  18363. 800847c: f8c2 3104 str.w r3, [r2, #260] @ 0x104
  18364. /* Enable the DMA reception */
  18365. SET_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_SR);
  18366. 8008480: 687b ldr r3, [r7, #4]
  18367. 8008482: 681b ldr r3, [r3, #0]
  18368. 8008484: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18369. 8008488: f8d3 3108 ldr.w r3, [r3, #264] @ 0x108
  18370. 800848c: 687a ldr r2, [r7, #4]
  18371. 800848e: 6812 ldr r2, [r2, #0]
  18372. 8008490: f043 0301 orr.w r3, r3, #1
  18373. 8008494: f502 5280 add.w r2, r2, #4096 @ 0x1000
  18374. 8008498: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  18375. /* Clear Tx and Rx process stopped flags */
  18376. heth->Instance->DMACSR |= (ETH_DMACSR_TPS | ETH_DMACSR_RPS);
  18377. 800849c: 687b ldr r3, [r7, #4]
  18378. 800849e: 681b ldr r3, [r3, #0]
  18379. 80084a0: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18380. 80084a4: f8d3 3160 ldr.w r3, [r3, #352] @ 0x160
  18381. 80084a8: 687a ldr r2, [r7, #4]
  18382. 80084aa: 6812 ldr r2, [r2, #0]
  18383. 80084ac: f443 7381 orr.w r3, r3, #258 @ 0x102
  18384. 80084b0: f502 5280 add.w r2, r2, #4096 @ 0x1000
  18385. 80084b4: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  18386. /* Set the Flush Transmit FIFO bit */
  18387. SET_BIT(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_FTQ);
  18388. 80084b8: 687b ldr r3, [r7, #4]
  18389. 80084ba: 681b ldr r3, [r3, #0]
  18390. 80084bc: f8d3 2d00 ldr.w r2, [r3, #3328] @ 0xd00
  18391. 80084c0: 687b ldr r3, [r7, #4]
  18392. 80084c2: 681b ldr r3, [r3, #0]
  18393. 80084c4: f042 0201 orr.w r2, r2, #1
  18394. 80084c8: f8c3 2d00 str.w r2, [r3, #3328] @ 0xd00
  18395. /* Enable the MAC transmission */
  18396. SET_BIT(heth->Instance->MACCR, ETH_MACCR_TE);
  18397. 80084cc: 687b ldr r3, [r7, #4]
  18398. 80084ce: 681b ldr r3, [r3, #0]
  18399. 80084d0: 681a ldr r2, [r3, #0]
  18400. 80084d2: 687b ldr r3, [r7, #4]
  18401. 80084d4: 681b ldr r3, [r3, #0]
  18402. 80084d6: f042 0202 orr.w r2, r2, #2
  18403. 80084da: 601a str r2, [r3, #0]
  18404. /* Enable the MAC reception */
  18405. SET_BIT(heth->Instance->MACCR, ETH_MACCR_RE);
  18406. 80084dc: 687b ldr r3, [r7, #4]
  18407. 80084de: 681b ldr r3, [r3, #0]
  18408. 80084e0: 681a ldr r2, [r3, #0]
  18409. 80084e2: 687b ldr r3, [r7, #4]
  18410. 80084e4: 681b ldr r3, [r3, #0]
  18411. 80084e6: f042 0201 orr.w r2, r2, #1
  18412. 80084ea: 601a str r2, [r3, #0]
  18413. /* Enable ETH DMA interrupts:
  18414. - Tx complete interrupt
  18415. - Rx complete interrupt
  18416. - Fatal bus interrupt
  18417. */
  18418. __HAL_ETH_DMA_ENABLE_IT(heth, (ETH_DMACIER_NIE | ETH_DMACIER_RIE | ETH_DMACIER_TIE |
  18419. 80084ec: 687b ldr r3, [r7, #4]
  18420. 80084ee: 681b ldr r3, [r3, #0]
  18421. 80084f0: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18422. 80084f4: f8d3 1134 ldr.w r1, [r3, #308] @ 0x134
  18423. 80084f8: 687b ldr r3, [r7, #4]
  18424. 80084fa: 681a ldr r2, [r3, #0]
  18425. 80084fc: f24d 03c1 movw r3, #53441 @ 0xd0c1
  18426. 8008500: 430b orrs r3, r1
  18427. 8008502: f502 5280 add.w r2, r2, #4096 @ 0x1000
  18428. 8008506: f8c2 3134 str.w r3, [r2, #308] @ 0x134
  18429. ETH_DMACIER_FBEE | ETH_DMACIER_AIE | ETH_DMACIER_RBUE));
  18430. heth->gState = HAL_ETH_STATE_STARTED;
  18431. 800850a: 687b ldr r3, [r7, #4]
  18432. 800850c: 2223 movs r2, #35 @ 0x23
  18433. 800850e: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  18434. return HAL_OK;
  18435. 8008512: 2300 movs r3, #0
  18436. 8008514: e000 b.n 8008518 <HAL_ETH_Start_IT+0xe0>
  18437. }
  18438. else
  18439. {
  18440. return HAL_ERROR;
  18441. 8008516: 2301 movs r3, #1
  18442. }
  18443. }
  18444. 8008518: 4618 mov r0, r3
  18445. 800851a: 3708 adds r7, #8
  18446. 800851c: 46bd mov sp, r7
  18447. 800851e: bd80 pop {r7, pc}
  18448. 08008520 <HAL_ETH_Stop_IT>:
  18449. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18450. * the configuration information for ETHERNET module
  18451. * @retval HAL status
  18452. */
  18453. HAL_StatusTypeDef HAL_ETH_Stop_IT(ETH_HandleTypeDef *heth)
  18454. {
  18455. 8008520: b480 push {r7}
  18456. 8008522: b085 sub sp, #20
  18457. 8008524: af00 add r7, sp, #0
  18458. 8008526: 6078 str r0, [r7, #4]
  18459. ETH_DMADescTypeDef *dmarxdesc;
  18460. uint32_t descindex;
  18461. if (heth->gState == HAL_ETH_STATE_STARTED)
  18462. 8008528: 687b ldr r3, [r7, #4]
  18463. 800852a: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  18464. 800852e: 2b23 cmp r3, #35 @ 0x23
  18465. 8008530: d165 bne.n 80085fe <HAL_ETH_Stop_IT+0xde>
  18466. {
  18467. /* Set the ETH peripheral state to BUSY */
  18468. heth->gState = HAL_ETH_STATE_BUSY;
  18469. 8008532: 687b ldr r3, [r7, #4]
  18470. 8008534: 2223 movs r2, #35 @ 0x23
  18471. 8008536: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  18472. /* Disable interrupts:
  18473. - Tx complete interrupt
  18474. - Rx complete interrupt
  18475. - Fatal bus interrupt
  18476. */
  18477. __HAL_ETH_DMA_DISABLE_IT(heth, (ETH_DMACIER_NIE | ETH_DMACIER_RIE | ETH_DMACIER_TIE |
  18478. 800853a: 687b ldr r3, [r7, #4]
  18479. 800853c: 681b ldr r3, [r3, #0]
  18480. 800853e: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18481. 8008542: f8d3 1134 ldr.w r1, [r3, #308] @ 0x134
  18482. 8008546: 687b ldr r3, [r7, #4]
  18483. 8008548: 681a ldr r2, [r3, #0]
  18484. 800854a: 4b30 ldr r3, [pc, #192] @ (800860c <HAL_ETH_Stop_IT+0xec>)
  18485. 800854c: 400b ands r3, r1
  18486. 800854e: f502 5280 add.w r2, r2, #4096 @ 0x1000
  18487. 8008552: f8c2 3134 str.w r3, [r2, #308] @ 0x134
  18488. ETH_DMACIER_FBEE | ETH_DMACIER_AIE | ETH_DMACIER_RBUE));
  18489. /* Disable the DMA transmission */
  18490. CLEAR_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_ST);
  18491. 8008556: 687b ldr r3, [r7, #4]
  18492. 8008558: 681b ldr r3, [r3, #0]
  18493. 800855a: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18494. 800855e: f8d3 3104 ldr.w r3, [r3, #260] @ 0x104
  18495. 8008562: 687a ldr r2, [r7, #4]
  18496. 8008564: 6812 ldr r2, [r2, #0]
  18497. 8008566: f023 0301 bic.w r3, r3, #1
  18498. 800856a: f502 5280 add.w r2, r2, #4096 @ 0x1000
  18499. 800856e: f8c2 3104 str.w r3, [r2, #260] @ 0x104
  18500. /* Disable the DMA reception */
  18501. CLEAR_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_SR);
  18502. 8008572: 687b ldr r3, [r7, #4]
  18503. 8008574: 681b ldr r3, [r3, #0]
  18504. 8008576: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18505. 800857a: f8d3 3108 ldr.w r3, [r3, #264] @ 0x108
  18506. 800857e: 687a ldr r2, [r7, #4]
  18507. 8008580: 6812 ldr r2, [r2, #0]
  18508. 8008582: f023 0301 bic.w r3, r3, #1
  18509. 8008586: f502 5280 add.w r2, r2, #4096 @ 0x1000
  18510. 800858a: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  18511. /* Disable the MAC reception */
  18512. CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_RE);
  18513. 800858e: 687b ldr r3, [r7, #4]
  18514. 8008590: 681b ldr r3, [r3, #0]
  18515. 8008592: 681a ldr r2, [r3, #0]
  18516. 8008594: 687b ldr r3, [r7, #4]
  18517. 8008596: 681b ldr r3, [r3, #0]
  18518. 8008598: f022 0201 bic.w r2, r2, #1
  18519. 800859c: 601a str r2, [r3, #0]
  18520. /* Set the Flush Transmit FIFO bit */
  18521. SET_BIT(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_FTQ);
  18522. 800859e: 687b ldr r3, [r7, #4]
  18523. 80085a0: 681b ldr r3, [r3, #0]
  18524. 80085a2: f8d3 2d00 ldr.w r2, [r3, #3328] @ 0xd00
  18525. 80085a6: 687b ldr r3, [r7, #4]
  18526. 80085a8: 681b ldr r3, [r3, #0]
  18527. 80085aa: f042 0201 orr.w r2, r2, #1
  18528. 80085ae: f8c3 2d00 str.w r2, [r3, #3328] @ 0xd00
  18529. /* Disable the MAC transmission */
  18530. CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_TE);
  18531. 80085b2: 687b ldr r3, [r7, #4]
  18532. 80085b4: 681b ldr r3, [r3, #0]
  18533. 80085b6: 681a ldr r2, [r3, #0]
  18534. 80085b8: 687b ldr r3, [r7, #4]
  18535. 80085ba: 681b ldr r3, [r3, #0]
  18536. 80085bc: f022 0202 bic.w r2, r2, #2
  18537. 80085c0: 601a str r2, [r3, #0]
  18538. /* Clear IOC bit to all Rx descriptors */
  18539. for (descindex = 0; descindex < (uint32_t)ETH_RX_DESC_CNT; descindex++)
  18540. 80085c2: 2300 movs r3, #0
  18541. 80085c4: 60fb str r3, [r7, #12]
  18542. 80085c6: e00e b.n 80085e6 <HAL_ETH_Stop_IT+0xc6>
  18543. {
  18544. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descindex];
  18545. 80085c8: 687b ldr r3, [r7, #4]
  18546. 80085ca: 68fa ldr r2, [r7, #12]
  18547. 80085cc: 3212 adds r2, #18
  18548. 80085ce: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  18549. 80085d2: 60bb str r3, [r7, #8]
  18550. CLEAR_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCRF_IOC);
  18551. 80085d4: 68bb ldr r3, [r7, #8]
  18552. 80085d6: 68db ldr r3, [r3, #12]
  18553. 80085d8: f023 4280 bic.w r2, r3, #1073741824 @ 0x40000000
  18554. 80085dc: 68bb ldr r3, [r7, #8]
  18555. 80085de: 60da str r2, [r3, #12]
  18556. for (descindex = 0; descindex < (uint32_t)ETH_RX_DESC_CNT; descindex++)
  18557. 80085e0: 68fb ldr r3, [r7, #12]
  18558. 80085e2: 3301 adds r3, #1
  18559. 80085e4: 60fb str r3, [r7, #12]
  18560. 80085e6: 68fb ldr r3, [r7, #12]
  18561. 80085e8: 2b03 cmp r3, #3
  18562. 80085ea: d9ed bls.n 80085c8 <HAL_ETH_Stop_IT+0xa8>
  18563. }
  18564. heth->RxDescList.ItMode = 0U;
  18565. 80085ec: 687b ldr r3, [r7, #4]
  18566. 80085ee: 2200 movs r2, #0
  18567. 80085f0: 659a str r2, [r3, #88] @ 0x58
  18568. heth->gState = HAL_ETH_STATE_READY;
  18569. 80085f2: 687b ldr r3, [r7, #4]
  18570. 80085f4: 2210 movs r2, #16
  18571. 80085f6: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  18572. /* Return function status */
  18573. return HAL_OK;
  18574. 80085fa: 2300 movs r3, #0
  18575. 80085fc: e000 b.n 8008600 <HAL_ETH_Stop_IT+0xe0>
  18576. }
  18577. else
  18578. {
  18579. return HAL_ERROR;
  18580. 80085fe: 2301 movs r3, #1
  18581. }
  18582. }
  18583. 8008600: 4618 mov r0, r3
  18584. 8008602: 3714 adds r7, #20
  18585. 8008604: 46bd mov sp, r7
  18586. 8008606: f85d 7b04 ldr.w r7, [sp], #4
  18587. 800860a: 4770 bx lr
  18588. 800860c: ffff2f3e .word 0xffff2f3e
  18589. 08008610 <HAL_ETH_Transmit_IT>:
  18590. * the configuration information for ETHERNET module
  18591. * @param pTxConfig: Hold the configuration of packet to be transmitted
  18592. * @retval HAL status
  18593. */
  18594. HAL_StatusTypeDef HAL_ETH_Transmit_IT(ETH_HandleTypeDef *heth, ETH_TxPacketConfigTypeDef *pTxConfig)
  18595. {
  18596. 8008610: b580 push {r7, lr}
  18597. 8008612: b082 sub sp, #8
  18598. 8008614: af00 add r7, sp, #0
  18599. 8008616: 6078 str r0, [r7, #4]
  18600. 8008618: 6039 str r1, [r7, #0]
  18601. if (pTxConfig == NULL)
  18602. 800861a: 683b ldr r3, [r7, #0]
  18603. 800861c: 2b00 cmp r3, #0
  18604. 800861e: d109 bne.n 8008634 <HAL_ETH_Transmit_IT+0x24>
  18605. {
  18606. heth->ErrorCode |= HAL_ETH_ERROR_PARAM;
  18607. 8008620: 687b ldr r3, [r7, #4]
  18608. 8008622: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  18609. 8008626: f043 0201 orr.w r2, r3, #1
  18610. 800862a: 687b ldr r3, [r7, #4]
  18611. 800862c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  18612. return HAL_ERROR;
  18613. 8008630: 2301 movs r3, #1
  18614. 8008632: e03a b.n 80086aa <HAL_ETH_Transmit_IT+0x9a>
  18615. }
  18616. if (heth->gState == HAL_ETH_STATE_STARTED)
  18617. 8008634: 687b ldr r3, [r7, #4]
  18618. 8008636: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  18619. 800863a: 2b23 cmp r3, #35 @ 0x23
  18620. 800863c: d134 bne.n 80086a8 <HAL_ETH_Transmit_IT+0x98>
  18621. {
  18622. /* Save the packet pointer to release. */
  18623. heth->TxDescList.CurrentPacketAddress = (uint32_t *)pTxConfig->pData;
  18624. 800863e: 683b ldr r3, [r7, #0]
  18625. 8008640: 6b5a ldr r2, [r3, #52] @ 0x34
  18626. 8008642: 687b ldr r3, [r7, #4]
  18627. 8008644: 63da str r2, [r3, #60] @ 0x3c
  18628. /* Config DMA Tx descriptor by Tx Packet info */
  18629. if (ETH_Prepare_Tx_Descriptors(heth, pTxConfig, 1) != HAL_ETH_ERROR_NONE)
  18630. 8008646: 2201 movs r2, #1
  18631. 8008648: 6839 ldr r1, [r7, #0]
  18632. 800864a: 6878 ldr r0, [r7, #4]
  18633. 800864c: f001 f8b6 bl 80097bc <ETH_Prepare_Tx_Descriptors>
  18634. 8008650: 4603 mov r3, r0
  18635. 8008652: 2b00 cmp r3, #0
  18636. 8008654: d009 beq.n 800866a <HAL_ETH_Transmit_IT+0x5a>
  18637. {
  18638. heth->ErrorCode |= HAL_ETH_ERROR_BUSY;
  18639. 8008656: 687b ldr r3, [r7, #4]
  18640. 8008658: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  18641. 800865c: f043 0202 orr.w r2, r3, #2
  18642. 8008660: 687b ldr r3, [r7, #4]
  18643. 8008662: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  18644. return HAL_ERROR;
  18645. 8008666: 2301 movs r3, #1
  18646. 8008668: e01f b.n 80086aa <HAL_ETH_Transmit_IT+0x9a>
  18647. __ASM volatile ("dsb 0xF":::"memory");
  18648. 800866a: f3bf 8f4f dsb sy
  18649. }
  18650. 800866e: bf00 nop
  18651. /* Ensure completion of descriptor preparation before transmission start */
  18652. __DSB();
  18653. /* Incr current tx desc index */
  18654. INCR_TX_DESC_INDEX(heth->TxDescList.CurTxDesc, 1U);
  18655. 8008670: 687b ldr r3, [r7, #4]
  18656. 8008672: 6a9b ldr r3, [r3, #40] @ 0x28
  18657. 8008674: 1c5a adds r2, r3, #1
  18658. 8008676: 687b ldr r3, [r7, #4]
  18659. 8008678: 629a str r2, [r3, #40] @ 0x28
  18660. 800867a: 687b ldr r3, [r7, #4]
  18661. 800867c: 6a9b ldr r3, [r3, #40] @ 0x28
  18662. 800867e: 2b03 cmp r3, #3
  18663. 8008680: d904 bls.n 800868c <HAL_ETH_Transmit_IT+0x7c>
  18664. 8008682: 687b ldr r3, [r7, #4]
  18665. 8008684: 6a9b ldr r3, [r3, #40] @ 0x28
  18666. 8008686: 1f1a subs r2, r3, #4
  18667. 8008688: 687b ldr r3, [r7, #4]
  18668. 800868a: 629a str r2, [r3, #40] @ 0x28
  18669. /* Start transmission */
  18670. /* issue a poll command to Tx DMA by writing address of next immediate free descriptor */
  18671. WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t)(heth->TxDescList.TxDesc[heth->TxDescList.CurTxDesc]));
  18672. 800868c: 687b ldr r3, [r7, #4]
  18673. 800868e: 6a99 ldr r1, [r3, #40] @ 0x28
  18674. 8008690: 687b ldr r3, [r7, #4]
  18675. 8008692: 681a ldr r2, [r3, #0]
  18676. 8008694: 687b ldr r3, [r7, #4]
  18677. 8008696: 3106 adds r1, #6
  18678. 8008698: f853 3021 ldr.w r3, [r3, r1, lsl #2]
  18679. 800869c: f502 5280 add.w r2, r2, #4096 @ 0x1000
  18680. 80086a0: f8c2 3120 str.w r3, [r2, #288] @ 0x120
  18681. return HAL_OK;
  18682. 80086a4: 2300 movs r3, #0
  18683. 80086a6: e000 b.n 80086aa <HAL_ETH_Transmit_IT+0x9a>
  18684. }
  18685. else
  18686. {
  18687. return HAL_ERROR;
  18688. 80086a8: 2301 movs r3, #1
  18689. }
  18690. }
  18691. 80086aa: 4618 mov r0, r3
  18692. 80086ac: 3708 adds r7, #8
  18693. 80086ae: 46bd mov sp, r7
  18694. 80086b0: bd80 pop {r7, pc}
  18695. 080086b2 <HAL_ETH_ReadData>:
  18696. * the configuration information for ETHERNET module
  18697. * @param pAppBuff: Pointer to an application buffer to receive the packet.
  18698. * @retval HAL status
  18699. */
  18700. HAL_StatusTypeDef HAL_ETH_ReadData(ETH_HandleTypeDef *heth, void **pAppBuff)
  18701. {
  18702. 80086b2: b580 push {r7, lr}
  18703. 80086b4: b088 sub sp, #32
  18704. 80086b6: af00 add r7, sp, #0
  18705. 80086b8: 6078 str r0, [r7, #4]
  18706. 80086ba: 6039 str r1, [r7, #0]
  18707. uint32_t descidx;
  18708. ETH_DMADescTypeDef *dmarxdesc;
  18709. uint32_t desccnt = 0U;
  18710. 80086bc: 2300 movs r3, #0
  18711. 80086be: 617b str r3, [r7, #20]
  18712. uint32_t desccntmax;
  18713. uint32_t bufflength;
  18714. uint8_t rxdataready = 0U;
  18715. 80086c0: 2300 movs r3, #0
  18716. 80086c2: 74fb strb r3, [r7, #19]
  18717. if (pAppBuff == NULL)
  18718. 80086c4: 683b ldr r3, [r7, #0]
  18719. 80086c6: 2b00 cmp r3, #0
  18720. 80086c8: d109 bne.n 80086de <HAL_ETH_ReadData+0x2c>
  18721. {
  18722. heth->ErrorCode |= HAL_ETH_ERROR_PARAM;
  18723. 80086ca: 687b ldr r3, [r7, #4]
  18724. 80086cc: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  18725. 80086d0: f043 0201 orr.w r2, r3, #1
  18726. 80086d4: 687b ldr r3, [r7, #4]
  18727. 80086d6: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  18728. return HAL_ERROR;
  18729. 80086da: 2301 movs r3, #1
  18730. 80086dc: e0a2 b.n 8008824 <HAL_ETH_ReadData+0x172>
  18731. }
  18732. if (heth->gState != HAL_ETH_STATE_STARTED)
  18733. 80086de: 687b ldr r3, [r7, #4]
  18734. 80086e0: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  18735. 80086e4: 2b23 cmp r3, #35 @ 0x23
  18736. 80086e6: d001 beq.n 80086ec <HAL_ETH_ReadData+0x3a>
  18737. {
  18738. return HAL_ERROR;
  18739. 80086e8: 2301 movs r3, #1
  18740. 80086ea: e09b b.n 8008824 <HAL_ETH_ReadData+0x172>
  18741. }
  18742. descidx = heth->RxDescList.RxDescIdx;
  18743. 80086ec: 687b ldr r3, [r7, #4]
  18744. 80086ee: 6ddb ldr r3, [r3, #92] @ 0x5c
  18745. 80086f0: 61fb str r3, [r7, #28]
  18746. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  18747. 80086f2: 687b ldr r3, [r7, #4]
  18748. 80086f4: 69fa ldr r2, [r7, #28]
  18749. 80086f6: 3212 adds r2, #18
  18750. 80086f8: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  18751. 80086fc: 61bb str r3, [r7, #24]
  18752. desccntmax = ETH_RX_DESC_CNT - heth->RxDescList.RxBuildDescCnt;
  18753. 80086fe: 687b ldr r3, [r7, #4]
  18754. 8008700: 6edb ldr r3, [r3, #108] @ 0x6c
  18755. 8008702: f1c3 0304 rsb r3, r3, #4
  18756. 8008706: 60fb str r3, [r7, #12]
  18757. /* Check if descriptor is not owned by DMA */
  18758. while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax)
  18759. 8008708: e064 b.n 80087d4 <HAL_ETH_ReadData+0x122>
  18760. && (rxdataready == 0U))
  18761. {
  18762. if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_CTXT) != (uint32_t)RESET)
  18763. 800870a: 69bb ldr r3, [r7, #24]
  18764. 800870c: 68db ldr r3, [r3, #12]
  18765. 800870e: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  18766. 8008712: 2b00 cmp r3, #0
  18767. 8008714: d007 beq.n 8008726 <HAL_ETH_ReadData+0x74>
  18768. {
  18769. /* Get timestamp high */
  18770. heth->RxDescList.TimeStamp.TimeStampHigh = dmarxdesc->DESC1;
  18771. 8008716: 69bb ldr r3, [r7, #24]
  18772. 8008718: 685a ldr r2, [r3, #4]
  18773. 800871a: 687b ldr r3, [r7, #4]
  18774. 800871c: 679a str r2, [r3, #120] @ 0x78
  18775. /* Get timestamp low */
  18776. heth->RxDescList.TimeStamp.TimeStampLow = dmarxdesc->DESC0;
  18777. 800871e: 69bb ldr r3, [r7, #24]
  18778. 8008720: 681a ldr r2, [r3, #0]
  18779. 8008722: 687b ldr r3, [r7, #4]
  18780. 8008724: 675a str r2, [r3, #116] @ 0x74
  18781. }
  18782. if ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_FD) != (uint32_t)RESET) || (heth->RxDescList.pRxStart != NULL))
  18783. 8008726: 69bb ldr r3, [r7, #24]
  18784. 8008728: 68db ldr r3, [r3, #12]
  18785. 800872a: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18786. 800872e: 2b00 cmp r3, #0
  18787. 8008730: d103 bne.n 800873a <HAL_ETH_ReadData+0x88>
  18788. 8008732: 687b ldr r3, [r7, #4]
  18789. 8008734: 6fdb ldr r3, [r3, #124] @ 0x7c
  18790. 8008736: 2b00 cmp r3, #0
  18791. 8008738: d03a beq.n 80087b0 <HAL_ETH_ReadData+0xfe>
  18792. {
  18793. /* Check if first descriptor */
  18794. if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_FD) != (uint32_t)RESET)
  18795. 800873a: 69bb ldr r3, [r7, #24]
  18796. 800873c: 68db ldr r3, [r3, #12]
  18797. 800873e: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18798. 8008742: 2b00 cmp r3, #0
  18799. 8008744: d005 beq.n 8008752 <HAL_ETH_ReadData+0xa0>
  18800. {
  18801. heth->RxDescList.RxDescCnt = 0;
  18802. 8008746: 687b ldr r3, [r7, #4]
  18803. 8008748: 2200 movs r2, #0
  18804. 800874a: 661a str r2, [r3, #96] @ 0x60
  18805. heth->RxDescList.RxDataLength = 0;
  18806. 800874c: 687b ldr r3, [r7, #4]
  18807. 800874e: 2200 movs r2, #0
  18808. 8008750: 665a str r2, [r3, #100] @ 0x64
  18809. }
  18810. /* Get the Frame Length of the received packet: substruct 4 bytes of the CRC */
  18811. bufflength = READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_PL) - heth->RxDescList.RxDataLength;
  18812. 8008752: 69bb ldr r3, [r7, #24]
  18813. 8008754: 68db ldr r3, [r3, #12]
  18814. 8008756: f3c3 020e ubfx r2, r3, #0, #15
  18815. 800875a: 687b ldr r3, [r7, #4]
  18816. 800875c: 6e5b ldr r3, [r3, #100] @ 0x64
  18817. 800875e: 1ad3 subs r3, r2, r3
  18818. 8008760: 60bb str r3, [r7, #8]
  18819. /* Check if last descriptor */
  18820. if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_LD) != (uint32_t)RESET)
  18821. 8008762: 69bb ldr r3, [r7, #24]
  18822. 8008764: 68db ldr r3, [r3, #12]
  18823. 8008766: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  18824. 800876a: 2b00 cmp r3, #0
  18825. 800876c: d005 beq.n 800877a <HAL_ETH_ReadData+0xc8>
  18826. {
  18827. /* Save Last descriptor index */
  18828. heth->RxDescList.pRxLastRxDesc = dmarxdesc->DESC3;
  18829. 800876e: 69bb ldr r3, [r7, #24]
  18830. 8008770: 68da ldr r2, [r3, #12]
  18831. 8008772: 687b ldr r3, [r7, #4]
  18832. 8008774: 671a str r2, [r3, #112] @ 0x70
  18833. /* Packet ready */
  18834. rxdataready = 1;
  18835. 8008776: 2301 movs r3, #1
  18836. 8008778: 74fb strb r3, [r7, #19]
  18837. /*Call registered Link callback*/
  18838. heth->rxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd,
  18839. (uint8_t *)dmarxdesc->BackupAddr0, bufflength);
  18840. #else
  18841. /* Link callback */
  18842. HAL_ETH_RxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd,
  18843. 800877a: 687b ldr r3, [r7, #4]
  18844. 800877c: f103 007c add.w r0, r3, #124 @ 0x7c
  18845. 8008780: 687b ldr r3, [r7, #4]
  18846. 8008782: f103 0180 add.w r1, r3, #128 @ 0x80
  18847. (uint8_t *)dmarxdesc->BackupAddr0, (uint16_t) bufflength);
  18848. 8008786: 69bb ldr r3, [r7, #24]
  18849. 8008788: 691b ldr r3, [r3, #16]
  18850. HAL_ETH_RxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd,
  18851. 800878a: 461a mov r2, r3
  18852. 800878c: 68bb ldr r3, [r7, #8]
  18853. 800878e: b29b uxth r3, r3
  18854. 8008790: f008 fb24 bl 8010ddc <HAL_ETH_RxLinkCallback>
  18855. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18856. heth->RxDescList.RxDescCnt++;
  18857. 8008794: 687b ldr r3, [r7, #4]
  18858. 8008796: 6e1b ldr r3, [r3, #96] @ 0x60
  18859. 8008798: 1c5a adds r2, r3, #1
  18860. 800879a: 687b ldr r3, [r7, #4]
  18861. 800879c: 661a str r2, [r3, #96] @ 0x60
  18862. heth->RxDescList.RxDataLength += bufflength;
  18863. 800879e: 687b ldr r3, [r7, #4]
  18864. 80087a0: 6e5a ldr r2, [r3, #100] @ 0x64
  18865. 80087a2: 68bb ldr r3, [r7, #8]
  18866. 80087a4: 441a add r2, r3
  18867. 80087a6: 687b ldr r3, [r7, #4]
  18868. 80087a8: 665a str r2, [r3, #100] @ 0x64
  18869. /* Clear buffer pointer */
  18870. dmarxdesc->BackupAddr0 = 0;
  18871. 80087aa: 69bb ldr r3, [r7, #24]
  18872. 80087ac: 2200 movs r2, #0
  18873. 80087ae: 611a str r2, [r3, #16]
  18874. }
  18875. /* Increment current rx descriptor index */
  18876. INCR_RX_DESC_INDEX(descidx, 1U);
  18877. 80087b0: 69fb ldr r3, [r7, #28]
  18878. 80087b2: 3301 adds r3, #1
  18879. 80087b4: 61fb str r3, [r7, #28]
  18880. 80087b6: 69fb ldr r3, [r7, #28]
  18881. 80087b8: 2b03 cmp r3, #3
  18882. 80087ba: d902 bls.n 80087c2 <HAL_ETH_ReadData+0x110>
  18883. 80087bc: 69fb ldr r3, [r7, #28]
  18884. 80087be: 3b04 subs r3, #4
  18885. 80087c0: 61fb str r3, [r7, #28]
  18886. /* Get current descriptor address */
  18887. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  18888. 80087c2: 687b ldr r3, [r7, #4]
  18889. 80087c4: 69fa ldr r2, [r7, #28]
  18890. 80087c6: 3212 adds r2, #18
  18891. 80087c8: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  18892. 80087cc: 61bb str r3, [r7, #24]
  18893. desccnt++;
  18894. 80087ce: 697b ldr r3, [r7, #20]
  18895. 80087d0: 3301 adds r3, #1
  18896. 80087d2: 617b str r3, [r7, #20]
  18897. while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax)
  18898. 80087d4: 69bb ldr r3, [r7, #24]
  18899. 80087d6: 68db ldr r3, [r3, #12]
  18900. && (rxdataready == 0U))
  18901. 80087d8: 2b00 cmp r3, #0
  18902. 80087da: db06 blt.n 80087ea <HAL_ETH_ReadData+0x138>
  18903. while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax)
  18904. 80087dc: 697a ldr r2, [r7, #20]
  18905. 80087de: 68fb ldr r3, [r7, #12]
  18906. 80087e0: 429a cmp r2, r3
  18907. 80087e2: d202 bcs.n 80087ea <HAL_ETH_ReadData+0x138>
  18908. && (rxdataready == 0U))
  18909. 80087e4: 7cfb ldrb r3, [r7, #19]
  18910. 80087e6: 2b00 cmp r3, #0
  18911. 80087e8: d08f beq.n 800870a <HAL_ETH_ReadData+0x58>
  18912. }
  18913. heth->RxDescList.RxBuildDescCnt += desccnt;
  18914. 80087ea: 687b ldr r3, [r7, #4]
  18915. 80087ec: 6eda ldr r2, [r3, #108] @ 0x6c
  18916. 80087ee: 697b ldr r3, [r7, #20]
  18917. 80087f0: 441a add r2, r3
  18918. 80087f2: 687b ldr r3, [r7, #4]
  18919. 80087f4: 66da str r2, [r3, #108] @ 0x6c
  18920. if ((heth->RxDescList.RxBuildDescCnt) != 0U)
  18921. 80087f6: 687b ldr r3, [r7, #4]
  18922. 80087f8: 6edb ldr r3, [r3, #108] @ 0x6c
  18923. 80087fa: 2b00 cmp r3, #0
  18924. 80087fc: d002 beq.n 8008804 <HAL_ETH_ReadData+0x152>
  18925. {
  18926. /* Update Descriptors */
  18927. ETH_UpdateDescriptor(heth);
  18928. 80087fe: 6878 ldr r0, [r7, #4]
  18929. 8008800: f000 f814 bl 800882c <ETH_UpdateDescriptor>
  18930. }
  18931. heth->RxDescList.RxDescIdx = descidx;
  18932. 8008804: 687b ldr r3, [r7, #4]
  18933. 8008806: 69fa ldr r2, [r7, #28]
  18934. 8008808: 65da str r2, [r3, #92] @ 0x5c
  18935. if (rxdataready == 1U)
  18936. 800880a: 7cfb ldrb r3, [r7, #19]
  18937. 800880c: 2b01 cmp r3, #1
  18938. 800880e: d108 bne.n 8008822 <HAL_ETH_ReadData+0x170>
  18939. {
  18940. /* Return received packet */
  18941. *pAppBuff = heth->RxDescList.pRxStart;
  18942. 8008810: 687b ldr r3, [r7, #4]
  18943. 8008812: 6fda ldr r2, [r3, #124] @ 0x7c
  18944. 8008814: 683b ldr r3, [r7, #0]
  18945. 8008816: 601a str r2, [r3, #0]
  18946. /* Reset first element */
  18947. heth->RxDescList.pRxStart = NULL;
  18948. 8008818: 687b ldr r3, [r7, #4]
  18949. 800881a: 2200 movs r2, #0
  18950. 800881c: 67da str r2, [r3, #124] @ 0x7c
  18951. return HAL_OK;
  18952. 800881e: 2300 movs r3, #0
  18953. 8008820: e000 b.n 8008824 <HAL_ETH_ReadData+0x172>
  18954. }
  18955. /* Packet not ready */
  18956. return HAL_ERROR;
  18957. 8008822: 2301 movs r3, #1
  18958. }
  18959. 8008824: 4618 mov r0, r3
  18960. 8008826: 3720 adds r7, #32
  18961. 8008828: 46bd mov sp, r7
  18962. 800882a: bd80 pop {r7, pc}
  18963. 0800882c <ETH_UpdateDescriptor>:
  18964. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18965. * the configuration information for ETHERNET module
  18966. * @retval HAL status
  18967. */
  18968. static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth)
  18969. {
  18970. 800882c: b580 push {r7, lr}
  18971. 800882e: b088 sub sp, #32
  18972. 8008830: af00 add r7, sp, #0
  18973. 8008832: 6078 str r0, [r7, #4]
  18974. uint32_t descidx;
  18975. uint32_t tailidx;
  18976. uint32_t desccount;
  18977. ETH_DMADescTypeDef *dmarxdesc;
  18978. uint8_t *buff = NULL;
  18979. 8008834: 2300 movs r3, #0
  18980. 8008836: 60bb str r3, [r7, #8]
  18981. uint8_t allocStatus = 1U;
  18982. 8008838: 2301 movs r3, #1
  18983. 800883a: 74fb strb r3, [r7, #19]
  18984. descidx = heth->RxDescList.RxBuildDescIdx;
  18985. 800883c: 687b ldr r3, [r7, #4]
  18986. 800883e: 6e9b ldr r3, [r3, #104] @ 0x68
  18987. 8008840: 61fb str r3, [r7, #28]
  18988. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  18989. 8008842: 687b ldr r3, [r7, #4]
  18990. 8008844: 69fa ldr r2, [r7, #28]
  18991. 8008846: 3212 adds r2, #18
  18992. 8008848: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  18993. 800884c: 617b str r3, [r7, #20]
  18994. desccount = heth->RxDescList.RxBuildDescCnt;
  18995. 800884e: 687b ldr r3, [r7, #4]
  18996. 8008850: 6edb ldr r3, [r3, #108] @ 0x6c
  18997. 8008852: 61bb str r3, [r7, #24]
  18998. while ((desccount > 0U) && (allocStatus != 0U))
  18999. 8008854: e038 b.n 80088c8 <ETH_UpdateDescriptor+0x9c>
  19000. {
  19001. /* Check if a buffer's attached the descriptor */
  19002. if (READ_REG(dmarxdesc->BackupAddr0) == 0U)
  19003. 8008856: 697b ldr r3, [r7, #20]
  19004. 8008858: 691b ldr r3, [r3, #16]
  19005. 800885a: 2b00 cmp r3, #0
  19006. 800885c: d112 bne.n 8008884 <ETH_UpdateDescriptor+0x58>
  19007. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  19008. /*Call registered Allocate callback*/
  19009. heth->rxAllocateCallback(&buff);
  19010. #else
  19011. /* Allocate callback */
  19012. HAL_ETH_RxAllocateCallback(&buff);
  19013. 800885e: f107 0308 add.w r3, r7, #8
  19014. 8008862: 4618 mov r0, r3
  19015. 8008864: f008 fa8a bl 8010d7c <HAL_ETH_RxAllocateCallback>
  19016. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  19017. if (buff == NULL)
  19018. 8008868: 68bb ldr r3, [r7, #8]
  19019. 800886a: 2b00 cmp r3, #0
  19020. 800886c: d102 bne.n 8008874 <ETH_UpdateDescriptor+0x48>
  19021. {
  19022. allocStatus = 0U;
  19023. 800886e: 2300 movs r3, #0
  19024. 8008870: 74fb strb r3, [r7, #19]
  19025. 8008872: e007 b.n 8008884 <ETH_UpdateDescriptor+0x58>
  19026. }
  19027. else
  19028. {
  19029. WRITE_REG(dmarxdesc->BackupAddr0, (uint32_t)buff);
  19030. 8008874: 68bb ldr r3, [r7, #8]
  19031. 8008876: 461a mov r2, r3
  19032. 8008878: 697b ldr r3, [r7, #20]
  19033. 800887a: 611a str r2, [r3, #16]
  19034. WRITE_REG(dmarxdesc->DESC0, (uint32_t)buff);
  19035. 800887c: 68bb ldr r3, [r7, #8]
  19036. 800887e: 461a mov r2, r3
  19037. 8008880: 697b ldr r3, [r7, #20]
  19038. 8008882: 601a str r2, [r3, #0]
  19039. }
  19040. }
  19041. if (allocStatus != 0U)
  19042. 8008884: 7cfb ldrb r3, [r7, #19]
  19043. 8008886: 2b00 cmp r3, #0
  19044. 8008888: d01e beq.n 80088c8 <ETH_UpdateDescriptor+0x9c>
  19045. {
  19046. if (heth->RxDescList.ItMode != 0U)
  19047. 800888a: 687b ldr r3, [r7, #4]
  19048. 800888c: 6d9b ldr r3, [r3, #88] @ 0x58
  19049. 800888e: 2b00 cmp r3, #0
  19050. 8008890: d004 beq.n 800889c <ETH_UpdateDescriptor+0x70>
  19051. {
  19052. WRITE_REG(dmarxdesc->DESC3, ETH_DMARXNDESCRF_OWN | ETH_DMARXNDESCRF_BUF1V | ETH_DMARXNDESCRF_IOC);
  19053. 8008892: 697b ldr r3, [r7, #20]
  19054. 8008894: f04f 4241 mov.w r2, #3238002688 @ 0xc1000000
  19055. 8008898: 60da str r2, [r3, #12]
  19056. 800889a: e003 b.n 80088a4 <ETH_UpdateDescriptor+0x78>
  19057. }
  19058. else
  19059. {
  19060. WRITE_REG(dmarxdesc->DESC3, ETH_DMARXNDESCRF_OWN | ETH_DMARXNDESCRF_BUF1V);
  19061. 800889c: 697b ldr r3, [r7, #20]
  19062. 800889e: f04f 4201 mov.w r2, #2164260864 @ 0x81000000
  19063. 80088a2: 60da str r2, [r3, #12]
  19064. }
  19065. /* Increment current rx descriptor index */
  19066. INCR_RX_DESC_INDEX(descidx, 1U);
  19067. 80088a4: 69fb ldr r3, [r7, #28]
  19068. 80088a6: 3301 adds r3, #1
  19069. 80088a8: 61fb str r3, [r7, #28]
  19070. 80088aa: 69fb ldr r3, [r7, #28]
  19071. 80088ac: 2b03 cmp r3, #3
  19072. 80088ae: d902 bls.n 80088b6 <ETH_UpdateDescriptor+0x8a>
  19073. 80088b0: 69fb ldr r3, [r7, #28]
  19074. 80088b2: 3b04 subs r3, #4
  19075. 80088b4: 61fb str r3, [r7, #28]
  19076. /* Get current descriptor address */
  19077. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  19078. 80088b6: 687b ldr r3, [r7, #4]
  19079. 80088b8: 69fa ldr r2, [r7, #28]
  19080. 80088ba: 3212 adds r2, #18
  19081. 80088bc: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  19082. 80088c0: 617b str r3, [r7, #20]
  19083. desccount--;
  19084. 80088c2: 69bb ldr r3, [r7, #24]
  19085. 80088c4: 3b01 subs r3, #1
  19086. 80088c6: 61bb str r3, [r7, #24]
  19087. while ((desccount > 0U) && (allocStatus != 0U))
  19088. 80088c8: 69bb ldr r3, [r7, #24]
  19089. 80088ca: 2b00 cmp r3, #0
  19090. 80088cc: d002 beq.n 80088d4 <ETH_UpdateDescriptor+0xa8>
  19091. 80088ce: 7cfb ldrb r3, [r7, #19]
  19092. 80088d0: 2b00 cmp r3, #0
  19093. 80088d2: d1c0 bne.n 8008856 <ETH_UpdateDescriptor+0x2a>
  19094. }
  19095. }
  19096. if (heth->RxDescList.RxBuildDescCnt != desccount)
  19097. 80088d4: 687b ldr r3, [r7, #4]
  19098. 80088d6: 6edb ldr r3, [r3, #108] @ 0x6c
  19099. 80088d8: 69ba ldr r2, [r7, #24]
  19100. 80088da: 429a cmp r2, r3
  19101. 80088dc: d01b beq.n 8008916 <ETH_UpdateDescriptor+0xea>
  19102. {
  19103. /* Set the tail pointer index */
  19104. tailidx = (descidx + 1U) % ETH_RX_DESC_CNT;
  19105. 80088de: 69fb ldr r3, [r7, #28]
  19106. 80088e0: 3301 adds r3, #1
  19107. 80088e2: f003 0303 and.w r3, r3, #3
  19108. 80088e6: 60fb str r3, [r7, #12]
  19109. __ASM volatile ("dmb 0xF":::"memory");
  19110. 80088e8: f3bf 8f5f dmb sy
  19111. }
  19112. 80088ec: bf00 nop
  19113. /* DMB instruction to avoid race condition */
  19114. __DMB();
  19115. /* Set the Tail pointer address */
  19116. WRITE_REG(heth->Instance->DMACRDTPR, ((uint32_t)(heth->Init.RxDesc + (tailidx))));
  19117. 80088ee: 687b ldr r3, [r7, #4]
  19118. 80088f0: 6919 ldr r1, [r3, #16]
  19119. 80088f2: 68fa ldr r2, [r7, #12]
  19120. 80088f4: 4613 mov r3, r2
  19121. 80088f6: 005b lsls r3, r3, #1
  19122. 80088f8: 4413 add r3, r2
  19123. 80088fa: 00db lsls r3, r3, #3
  19124. 80088fc: 18ca adds r2, r1, r3
  19125. 80088fe: 687b ldr r3, [r7, #4]
  19126. 8008900: 681b ldr r3, [r3, #0]
  19127. 8008902: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19128. 8008906: f8c3 2128 str.w r2, [r3, #296] @ 0x128
  19129. heth->RxDescList.RxBuildDescIdx = descidx;
  19130. 800890a: 687b ldr r3, [r7, #4]
  19131. 800890c: 69fa ldr r2, [r7, #28]
  19132. 800890e: 669a str r2, [r3, #104] @ 0x68
  19133. heth->RxDescList.RxBuildDescCnt = desccount;
  19134. 8008910: 687b ldr r3, [r7, #4]
  19135. 8008912: 69ba ldr r2, [r7, #24]
  19136. 8008914: 66da str r2, [r3, #108] @ 0x6c
  19137. }
  19138. }
  19139. 8008916: bf00 nop
  19140. 8008918: 3720 adds r7, #32
  19141. 800891a: 46bd mov sp, r7
  19142. 800891c: bd80 pop {r7, pc}
  19143. 0800891e <HAL_ETH_ReleaseTxPacket>:
  19144. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19145. * the configuration information for ETHERNET module
  19146. * @retval HAL status
  19147. */
  19148. HAL_StatusTypeDef HAL_ETH_ReleaseTxPacket(ETH_HandleTypeDef *heth)
  19149. {
  19150. 800891e: b580 push {r7, lr}
  19151. 8008920: b086 sub sp, #24
  19152. 8008922: af00 add r7, sp, #0
  19153. 8008924: 6078 str r0, [r7, #4]
  19154. ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList;
  19155. 8008926: 687b ldr r3, [r7, #4]
  19156. 8008928: 3318 adds r3, #24
  19157. 800892a: 60bb str r3, [r7, #8]
  19158. uint32_t numOfBuf = dmatxdesclist->BuffersInUse;
  19159. 800892c: 68bb ldr r3, [r7, #8]
  19160. 800892e: 6a9b ldr r3, [r3, #40] @ 0x28
  19161. 8008930: 617b str r3, [r7, #20]
  19162. uint32_t idx = dmatxdesclist->releaseIndex;
  19163. 8008932: 68bb ldr r3, [r7, #8]
  19164. 8008934: 6adb ldr r3, [r3, #44] @ 0x2c
  19165. 8008936: 613b str r3, [r7, #16]
  19166. uint8_t pktTxStatus = 1U;
  19167. 8008938: 2301 movs r3, #1
  19168. 800893a: 73fb strb r3, [r7, #15]
  19169. #ifdef HAL_ETH_USE_PTP
  19170. ETH_TimeStampTypeDef *timestamp = &heth->TxTimestamp;
  19171. #endif /* HAL_ETH_USE_PTP */
  19172. /* Loop through buffers in use. */
  19173. while ((numOfBuf != 0U) && (pktTxStatus != 0U))
  19174. 800893c: e047 b.n 80089ce <HAL_ETH_ReleaseTxPacket+0xb0>
  19175. {
  19176. pktInUse = 1U;
  19177. 800893e: 2301 movs r3, #1
  19178. 8008940: 73bb strb r3, [r7, #14]
  19179. numOfBuf--;
  19180. 8008942: 697b ldr r3, [r7, #20]
  19181. 8008944: 3b01 subs r3, #1
  19182. 8008946: 617b str r3, [r7, #20]
  19183. /* If no packet, just examine the next packet. */
  19184. if (dmatxdesclist->PacketAddress[idx] == NULL)
  19185. 8008948: 68ba ldr r2, [r7, #8]
  19186. 800894a: 693b ldr r3, [r7, #16]
  19187. 800894c: 3304 adds r3, #4
  19188. 800894e: 009b lsls r3, r3, #2
  19189. 8008950: 4413 add r3, r2
  19190. 8008952: 685b ldr r3, [r3, #4]
  19191. 8008954: 2b00 cmp r3, #0
  19192. 8008956: d10a bne.n 800896e <HAL_ETH_ReleaseTxPacket+0x50>
  19193. {
  19194. /* No packet in use, skip to next. */
  19195. INCR_TX_DESC_INDEX(idx, 1U);
  19196. 8008958: 693b ldr r3, [r7, #16]
  19197. 800895a: 3301 adds r3, #1
  19198. 800895c: 613b str r3, [r7, #16]
  19199. 800895e: 693b ldr r3, [r7, #16]
  19200. 8008960: 2b03 cmp r3, #3
  19201. 8008962: d902 bls.n 800896a <HAL_ETH_ReleaseTxPacket+0x4c>
  19202. 8008964: 693b ldr r3, [r7, #16]
  19203. 8008966: 3b04 subs r3, #4
  19204. 8008968: 613b str r3, [r7, #16]
  19205. pktInUse = 0U;
  19206. 800896a: 2300 movs r3, #0
  19207. 800896c: 73bb strb r3, [r7, #14]
  19208. }
  19209. if (pktInUse != 0U)
  19210. 800896e: 7bbb ldrb r3, [r7, #14]
  19211. 8008970: 2b00 cmp r3, #0
  19212. 8008972: d02c beq.n 80089ce <HAL_ETH_ReleaseTxPacket+0xb0>
  19213. {
  19214. /* Determine if the packet has been transmitted. */
  19215. if ((heth->Init.TxDesc[idx].DESC3 & ETH_DMATXNDESCRF_OWN) == 0U)
  19216. 8008974: 687b ldr r3, [r7, #4]
  19217. 8008976: 68d9 ldr r1, [r3, #12]
  19218. 8008978: 693a ldr r2, [r7, #16]
  19219. 800897a: 4613 mov r3, r2
  19220. 800897c: 005b lsls r3, r3, #1
  19221. 800897e: 4413 add r3, r2
  19222. 8008980: 00db lsls r3, r3, #3
  19223. 8008982: 440b add r3, r1
  19224. 8008984: 68db ldr r3, [r3, #12]
  19225. 8008986: 2b00 cmp r3, #0
  19226. 8008988: db1f blt.n 80089ca <HAL_ETH_ReleaseTxPacket+0xac>
  19227. {
  19228. HAL_ETH_TxPtpCallback(dmatxdesclist->PacketAddress[idx], timestamp);
  19229. }
  19230. #endif /* HAL_ETH_USE_PTP */
  19231. /* Release the packet. */
  19232. HAL_ETH_TxFreeCallback(dmatxdesclist->PacketAddress[idx]);
  19233. 800898a: 68ba ldr r2, [r7, #8]
  19234. 800898c: 693b ldr r3, [r7, #16]
  19235. 800898e: 3304 adds r3, #4
  19236. 8008990: 009b lsls r3, r3, #2
  19237. 8008992: 4413 add r3, r2
  19238. 8008994: 685b ldr r3, [r3, #4]
  19239. 8008996: 4618 mov r0, r3
  19240. 8008998: f008 fa88 bl 8010eac <HAL_ETH_TxFreeCallback>
  19241. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  19242. /* Clear the entry in the in-use array. */
  19243. dmatxdesclist->PacketAddress[idx] = NULL;
  19244. 800899c: 68ba ldr r2, [r7, #8]
  19245. 800899e: 693b ldr r3, [r7, #16]
  19246. 80089a0: 3304 adds r3, #4
  19247. 80089a2: 009b lsls r3, r3, #2
  19248. 80089a4: 4413 add r3, r2
  19249. 80089a6: 2200 movs r2, #0
  19250. 80089a8: 605a str r2, [r3, #4]
  19251. /* Update the transmit relesae index and number of buffers in use. */
  19252. INCR_TX_DESC_INDEX(idx, 1U);
  19253. 80089aa: 693b ldr r3, [r7, #16]
  19254. 80089ac: 3301 adds r3, #1
  19255. 80089ae: 613b str r3, [r7, #16]
  19256. 80089b0: 693b ldr r3, [r7, #16]
  19257. 80089b2: 2b03 cmp r3, #3
  19258. 80089b4: d902 bls.n 80089bc <HAL_ETH_ReleaseTxPacket+0x9e>
  19259. 80089b6: 693b ldr r3, [r7, #16]
  19260. 80089b8: 3b04 subs r3, #4
  19261. 80089ba: 613b str r3, [r7, #16]
  19262. dmatxdesclist->BuffersInUse = numOfBuf;
  19263. 80089bc: 68bb ldr r3, [r7, #8]
  19264. 80089be: 697a ldr r2, [r7, #20]
  19265. 80089c0: 629a str r2, [r3, #40] @ 0x28
  19266. dmatxdesclist->releaseIndex = idx;
  19267. 80089c2: 68bb ldr r3, [r7, #8]
  19268. 80089c4: 693a ldr r2, [r7, #16]
  19269. 80089c6: 62da str r2, [r3, #44] @ 0x2c
  19270. 80089c8: e001 b.n 80089ce <HAL_ETH_ReleaseTxPacket+0xb0>
  19271. }
  19272. else
  19273. {
  19274. /* Get out of the loop! */
  19275. pktTxStatus = 0U;
  19276. 80089ca: 2300 movs r3, #0
  19277. 80089cc: 73fb strb r3, [r7, #15]
  19278. while ((numOfBuf != 0U) && (pktTxStatus != 0U))
  19279. 80089ce: 697b ldr r3, [r7, #20]
  19280. 80089d0: 2b00 cmp r3, #0
  19281. 80089d2: d002 beq.n 80089da <HAL_ETH_ReleaseTxPacket+0xbc>
  19282. 80089d4: 7bfb ldrb r3, [r7, #15]
  19283. 80089d6: 2b00 cmp r3, #0
  19284. 80089d8: d1b1 bne.n 800893e <HAL_ETH_ReleaseTxPacket+0x20>
  19285. }
  19286. }
  19287. }
  19288. return HAL_OK;
  19289. 80089da: 2300 movs r3, #0
  19290. }
  19291. 80089dc: 4618 mov r0, r3
  19292. 80089de: 3718 adds r7, #24
  19293. 80089e0: 46bd mov sp, r7
  19294. 80089e2: bd80 pop {r7, pc}
  19295. 080089e4 <HAL_ETH_IRQHandler>:
  19296. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19297. * the configuration information for ETHERNET module
  19298. * @retval HAL status
  19299. */
  19300. void HAL_ETH_IRQHandler(ETH_HandleTypeDef *heth)
  19301. {
  19302. 80089e4: b580 push {r7, lr}
  19303. 80089e6: b086 sub sp, #24
  19304. 80089e8: af00 add r7, sp, #0
  19305. 80089ea: 6078 str r0, [r7, #4]
  19306. uint32_t mac_flag = READ_REG(heth->Instance->MACISR);
  19307. 80089ec: 687b ldr r3, [r7, #4]
  19308. 80089ee: 681b ldr r3, [r3, #0]
  19309. 80089f0: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  19310. 80089f4: 617b str r3, [r7, #20]
  19311. uint32_t dma_flag = READ_REG(heth->Instance->DMACSR);
  19312. 80089f6: 687b ldr r3, [r7, #4]
  19313. 80089f8: 681b ldr r3, [r3, #0]
  19314. 80089fa: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19315. 80089fe: f8d3 3160 ldr.w r3, [r3, #352] @ 0x160
  19316. 8008a02: 613b str r3, [r7, #16]
  19317. uint32_t dma_itsource = READ_REG(heth->Instance->DMACIER);
  19318. 8008a04: 687b ldr r3, [r7, #4]
  19319. 8008a06: 681b ldr r3, [r3, #0]
  19320. 8008a08: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19321. 8008a0c: f8d3 3134 ldr.w r3, [r3, #308] @ 0x134
  19322. 8008a10: 60fb str r3, [r7, #12]
  19323. uint32_t exti_d1_flag = READ_REG(EXTI_D1->PR3);
  19324. 8008a12: 4b6d ldr r3, [pc, #436] @ (8008bc8 <HAL_ETH_IRQHandler+0x1e4>)
  19325. 8008a14: 6a9b ldr r3, [r3, #40] @ 0x28
  19326. 8008a16: 60bb str r3, [r7, #8]
  19327. #if defined(DUAL_CORE)
  19328. uint32_t exti_d2_flag = READ_REG(EXTI_D2->PR3);
  19329. #endif /* DUAL_CORE */
  19330. /* Packet received */
  19331. if (((dma_flag & ETH_DMACSR_RI) != 0U) && ((dma_itsource & ETH_DMACIER_RIE) != 0U))
  19332. 8008a18: 693b ldr r3, [r7, #16]
  19333. 8008a1a: f003 0340 and.w r3, r3, #64 @ 0x40
  19334. 8008a1e: 2b00 cmp r3, #0
  19335. 8008a20: d010 beq.n 8008a44 <HAL_ETH_IRQHandler+0x60>
  19336. 8008a22: 68fb ldr r3, [r7, #12]
  19337. 8008a24: f003 0340 and.w r3, r3, #64 @ 0x40
  19338. 8008a28: 2b00 cmp r3, #0
  19339. 8008a2a: d00b beq.n 8008a44 <HAL_ETH_IRQHandler+0x60>
  19340. {
  19341. /* Clear the Eth DMA Rx IT pending bits */
  19342. __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMACSR_RI | ETH_DMACSR_NIS);
  19343. 8008a2c: 687b ldr r3, [r7, #4]
  19344. 8008a2e: 681b ldr r3, [r3, #0]
  19345. 8008a30: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19346. 8008a34: 461a mov r2, r3
  19347. 8008a36: f248 0340 movw r3, #32832 @ 0x8040
  19348. 8008a3a: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  19349. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  19350. /*Call registered Receive complete callback*/
  19351. heth->RxCpltCallback(heth);
  19352. #else
  19353. /* Receive complete callback */
  19354. HAL_ETH_RxCpltCallback(heth);
  19355. 8008a3e: 6878 ldr r0, [r7, #4]
  19356. 8008a40: f007 fd24 bl 801048c <HAL_ETH_RxCpltCallback>
  19357. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  19358. }
  19359. /* Packet transmitted */
  19360. if (((dma_flag & ETH_DMACSR_TI) != 0U) && ((dma_itsource & ETH_DMACIER_TIE) != 0U))
  19361. 8008a44: 693b ldr r3, [r7, #16]
  19362. 8008a46: f003 0301 and.w r3, r3, #1
  19363. 8008a4a: 2b00 cmp r3, #0
  19364. 8008a4c: d010 beq.n 8008a70 <HAL_ETH_IRQHandler+0x8c>
  19365. 8008a4e: 68fb ldr r3, [r7, #12]
  19366. 8008a50: f003 0301 and.w r3, r3, #1
  19367. 8008a54: 2b00 cmp r3, #0
  19368. 8008a56: d00b beq.n 8008a70 <HAL_ETH_IRQHandler+0x8c>
  19369. {
  19370. /* Clear the Eth DMA Tx IT pending bits */
  19371. __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMACSR_TI | ETH_DMACSR_NIS);
  19372. 8008a58: 687b ldr r3, [r7, #4]
  19373. 8008a5a: 681b ldr r3, [r3, #0]
  19374. 8008a5c: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19375. 8008a60: 461a mov r2, r3
  19376. 8008a62: f248 0301 movw r3, #32769 @ 0x8001
  19377. 8008a66: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  19378. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  19379. /*Call registered Transmit complete callback*/
  19380. heth->TxCpltCallback(heth);
  19381. #else
  19382. /* Transfer complete callback */
  19383. HAL_ETH_TxCpltCallback(heth);
  19384. 8008a6a: 6878 ldr r0, [r7, #4]
  19385. 8008a6c: f007 fd1e bl 80104ac <HAL_ETH_TxCpltCallback>
  19386. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  19387. }
  19388. /* ETH DMA Error */
  19389. if (((dma_flag & ETH_DMACSR_AIS) != 0U) && ((dma_itsource & ETH_DMACIER_AIE) != 0U))
  19390. 8008a70: 693b ldr r3, [r7, #16]
  19391. 8008a72: f403 4380 and.w r3, r3, #16384 @ 0x4000
  19392. 8008a76: 2b00 cmp r3, #0
  19393. 8008a78: d047 beq.n 8008b0a <HAL_ETH_IRQHandler+0x126>
  19394. 8008a7a: 68fb ldr r3, [r7, #12]
  19395. 8008a7c: f403 4380 and.w r3, r3, #16384 @ 0x4000
  19396. 8008a80: 2b00 cmp r3, #0
  19397. 8008a82: d042 beq.n 8008b0a <HAL_ETH_IRQHandler+0x126>
  19398. {
  19399. heth->ErrorCode |= HAL_ETH_ERROR_DMA;
  19400. 8008a84: 687b ldr r3, [r7, #4]
  19401. 8008a86: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  19402. 8008a8a: f043 0208 orr.w r2, r3, #8
  19403. 8008a8e: 687b ldr r3, [r7, #4]
  19404. 8008a90: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  19405. /* if fatal bus error occurred */
  19406. if ((dma_flag & ETH_DMACSR_FBE) != 0U)
  19407. 8008a94: 693b ldr r3, [r7, #16]
  19408. 8008a96: f403 5380 and.w r3, r3, #4096 @ 0x1000
  19409. 8008a9a: 2b00 cmp r3, #0
  19410. 8008a9c: d01e beq.n 8008adc <HAL_ETH_IRQHandler+0xf8>
  19411. {
  19412. /* Get DMA error code */
  19413. heth->DMAErrorCode = READ_BIT(heth->Instance->DMACSR, (ETH_DMACSR_FBE | ETH_DMACSR_TPS | ETH_DMACSR_RPS));
  19414. 8008a9e: 687b ldr r3, [r7, #4]
  19415. 8008aa0: 681b ldr r3, [r3, #0]
  19416. 8008aa2: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19417. 8008aa6: f8d3 2160 ldr.w r2, [r3, #352] @ 0x160
  19418. 8008aaa: f241 1302 movw r3, #4354 @ 0x1102
  19419. 8008aae: 4013 ands r3, r2
  19420. 8008ab0: 687a ldr r2, [r7, #4]
  19421. 8008ab2: f8c2 308c str.w r3, [r2, #140] @ 0x8c
  19422. /* Disable all interrupts */
  19423. __HAL_ETH_DMA_DISABLE_IT(heth, ETH_DMACIER_NIE | ETH_DMACIER_AIE);
  19424. 8008ab6: 687b ldr r3, [r7, #4]
  19425. 8008ab8: 681b ldr r3, [r3, #0]
  19426. 8008aba: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19427. 8008abe: f8d3 3134 ldr.w r3, [r3, #308] @ 0x134
  19428. 8008ac2: 687a ldr r2, [r7, #4]
  19429. 8008ac4: 6812 ldr r2, [r2, #0]
  19430. 8008ac6: f423 4340 bic.w r3, r3, #49152 @ 0xc000
  19431. 8008aca: f502 5280 add.w r2, r2, #4096 @ 0x1000
  19432. 8008ace: f8c2 3134 str.w r3, [r2, #308] @ 0x134
  19433. /* Set HAL state to ERROR */
  19434. heth->gState = HAL_ETH_STATE_ERROR;
  19435. 8008ad2: 687b ldr r3, [r7, #4]
  19436. 8008ad4: 22e0 movs r2, #224 @ 0xe0
  19437. 8008ad6: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  19438. 8008ada: e013 b.n 8008b04 <HAL_ETH_IRQHandler+0x120>
  19439. }
  19440. else
  19441. {
  19442. /* Get DMA error status */
  19443. heth->DMAErrorCode = READ_BIT(heth->Instance->DMACSR, (ETH_DMACSR_CDE | ETH_DMACSR_ETI | ETH_DMACSR_RWT |
  19444. 8008adc: 687b ldr r3, [r7, #4]
  19445. 8008ade: 681b ldr r3, [r3, #0]
  19446. 8008ae0: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19447. 8008ae4: f8d3 3160 ldr.w r3, [r3, #352] @ 0x160
  19448. 8008ae8: f403 42cd and.w r2, r3, #26240 @ 0x6680
  19449. 8008aec: 687b ldr r3, [r7, #4]
  19450. 8008aee: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  19451. ETH_DMACSR_RBU | ETH_DMACSR_AIS));
  19452. /* Clear the interrupt summary flag */
  19453. __HAL_ETH_DMA_CLEAR_IT(heth, (ETH_DMACSR_CDE | ETH_DMACSR_ETI | ETH_DMACSR_RWT |
  19454. 8008af2: 687b ldr r3, [r7, #4]
  19455. 8008af4: 681b ldr r3, [r3, #0]
  19456. 8008af6: f503 5380 add.w r3, r3, #4096 @ 0x1000
  19457. 8008afa: 461a mov r2, r3
  19458. 8008afc: f44f 43cd mov.w r3, #26240 @ 0x6680
  19459. 8008b00: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  19460. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  19461. /* Call registered Error callback*/
  19462. heth->ErrorCallback(heth);
  19463. #else
  19464. /* Ethernet DMA Error callback */
  19465. HAL_ETH_ErrorCallback(heth);
  19466. 8008b04: 6878 ldr r0, [r7, #4]
  19467. 8008b06: f007 fce1 bl 80104cc <HAL_ETH_ErrorCallback>
  19468. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  19469. }
  19470. /* ETH MAC Error IT */
  19471. if (((mac_flag & ETH_MACIER_RXSTSIE) == ETH_MACIER_RXSTSIE) || \
  19472. 8008b0a: 697b ldr r3, [r7, #20]
  19473. 8008b0c: f403 4380 and.w r3, r3, #16384 @ 0x4000
  19474. 8008b10: 2b00 cmp r3, #0
  19475. 8008b12: d104 bne.n 8008b1e <HAL_ETH_IRQHandler+0x13a>
  19476. ((mac_flag & ETH_MACIER_TXSTSIE) == ETH_MACIER_TXSTSIE))
  19477. 8008b14: 697b ldr r3, [r7, #20]
  19478. 8008b16: f403 5300 and.w r3, r3, #8192 @ 0x2000
  19479. if (((mac_flag & ETH_MACIER_RXSTSIE) == ETH_MACIER_RXSTSIE) || \
  19480. 8008b1a: 2b00 cmp r3, #0
  19481. 8008b1c: d019 beq.n 8008b52 <HAL_ETH_IRQHandler+0x16e>
  19482. {
  19483. heth->ErrorCode |= HAL_ETH_ERROR_MAC;
  19484. 8008b1e: 687b ldr r3, [r7, #4]
  19485. 8008b20: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  19486. 8008b24: f043 0210 orr.w r2, r3, #16
  19487. 8008b28: 687b ldr r3, [r7, #4]
  19488. 8008b2a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  19489. /* Get MAC Rx Tx status and clear Status register pending bit */
  19490. heth->MACErrorCode = READ_REG(heth->Instance->MACRXTXSR);
  19491. 8008b2e: 687b ldr r3, [r7, #4]
  19492. 8008b30: 681b ldr r3, [r3, #0]
  19493. 8008b32: f8d3 20b8 ldr.w r2, [r3, #184] @ 0xb8
  19494. 8008b36: 687b ldr r3, [r7, #4]
  19495. 8008b38: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  19496. heth->gState = HAL_ETH_STATE_ERROR;
  19497. 8008b3c: 687b ldr r3, [r7, #4]
  19498. 8008b3e: 22e0 movs r2, #224 @ 0xe0
  19499. 8008b40: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  19500. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  19501. /* Call registered Error callback*/
  19502. heth->ErrorCallback(heth);
  19503. #else
  19504. /* Ethernet Error callback */
  19505. HAL_ETH_ErrorCallback(heth);
  19506. 8008b44: 6878 ldr r0, [r7, #4]
  19507. 8008b46: f007 fcc1 bl 80104cc <HAL_ETH_ErrorCallback>
  19508. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  19509. heth->MACErrorCode = (uint32_t)(0x0U);
  19510. 8008b4a: 687b ldr r3, [r7, #4]
  19511. 8008b4c: 2200 movs r2, #0
  19512. 8008b4e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  19513. }
  19514. /* ETH PMT IT */
  19515. if ((mac_flag & ETH_MAC_PMT_IT) != 0U)
  19516. 8008b52: 697b ldr r3, [r7, #20]
  19517. 8008b54: f003 0310 and.w r3, r3, #16
  19518. 8008b58: 2b00 cmp r3, #0
  19519. 8008b5a: d00f beq.n 8008b7c <HAL_ETH_IRQHandler+0x198>
  19520. {
  19521. /* Get MAC Wake-up source and clear the status register pending bit */
  19522. heth->MACWakeUpEvent = READ_BIT(heth->Instance->MACPCSR, (ETH_MACPCSR_RWKPRCVD | ETH_MACPCSR_MGKPRCVD));
  19523. 8008b5c: 687b ldr r3, [r7, #4]
  19524. 8008b5e: 681b ldr r3, [r3, #0]
  19525. 8008b60: f8d3 30c0 ldr.w r3, [r3, #192] @ 0xc0
  19526. 8008b64: f003 0260 and.w r2, r3, #96 @ 0x60
  19527. 8008b68: 687b ldr r3, [r7, #4]
  19528. 8008b6a: f8c3 2094 str.w r2, [r3, #148] @ 0x94
  19529. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  19530. /* Call registered PMT callback*/
  19531. heth->PMTCallback(heth);
  19532. #else
  19533. /* Ethernet PMT callback */
  19534. HAL_ETH_PMTCallback(heth);
  19535. 8008b6e: 6878 ldr r0, [r7, #4]
  19536. 8008b70: f000 f82c bl 8008bcc <HAL_ETH_PMTCallback>
  19537. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  19538. heth->MACWakeUpEvent = (uint32_t)(0x0U);
  19539. 8008b74: 687b ldr r3, [r7, #4]
  19540. 8008b76: 2200 movs r2, #0
  19541. 8008b78: f8c3 2094 str.w r2, [r3, #148] @ 0x94
  19542. }
  19543. /* ETH EEE IT */
  19544. if ((mac_flag & ETH_MAC_LPI_IT) != 0U)
  19545. 8008b7c: 697b ldr r3, [r7, #20]
  19546. 8008b7e: f003 0320 and.w r3, r3, #32
  19547. 8008b82: 2b00 cmp r3, #0
  19548. 8008b84: d00f beq.n 8008ba6 <HAL_ETH_IRQHandler+0x1c2>
  19549. {
  19550. /* Get MAC LPI interrupt source and clear the status register pending bit */
  19551. heth->MACLPIEvent = READ_BIT(heth->Instance->MACLCSR, 0x0000000FU);
  19552. 8008b86: 687b ldr r3, [r7, #4]
  19553. 8008b88: 681b ldr r3, [r3, #0]
  19554. 8008b8a: f8d3 30d0 ldr.w r3, [r3, #208] @ 0xd0
  19555. 8008b8e: f003 020f and.w r2, r3, #15
  19556. 8008b92: 687b ldr r3, [r7, #4]
  19557. 8008b94: f8c3 2098 str.w r2, [r3, #152] @ 0x98
  19558. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  19559. /* Call registered EEE callback*/
  19560. heth->EEECallback(heth);
  19561. #else
  19562. /* Ethernet EEE callback */
  19563. HAL_ETH_EEECallback(heth);
  19564. 8008b98: 6878 ldr r0, [r7, #4]
  19565. 8008b9a: f000 f821 bl 8008be0 <HAL_ETH_EEECallback>
  19566. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  19567. heth->MACLPIEvent = (uint32_t)(0x0U);
  19568. 8008b9e: 687b ldr r3, [r7, #4]
  19569. 8008ba0: 2200 movs r2, #0
  19570. 8008ba2: f8c3 2098 str.w r2, [r3, #152] @ 0x98
  19571. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  19572. }
  19573. }
  19574. #else /* DUAL_CORE not defined */
  19575. /* check ETH WAKEUP exti flag */
  19576. if ((exti_d1_flag & ETH_WAKEUP_EXTI_LINE) != 0U)
  19577. 8008ba6: 68bb ldr r3, [r7, #8]
  19578. 8008ba8: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  19579. 8008bac: 2b00 cmp r3, #0
  19580. 8008bae: d006 beq.n 8008bbe <HAL_ETH_IRQHandler+0x1da>
  19581. {
  19582. /* Clear ETH WAKEUP Exti pending bit */
  19583. __HAL_ETH_WAKEUP_EXTI_CLEAR_FLAG(ETH_WAKEUP_EXTI_LINE);
  19584. 8008bb0: 4b05 ldr r3, [pc, #20] @ (8008bc8 <HAL_ETH_IRQHandler+0x1e4>)
  19585. 8008bb2: f44f 0280 mov.w r2, #4194304 @ 0x400000
  19586. 8008bb6: 629a str r2, [r3, #40] @ 0x28
  19587. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  19588. /* Call registered WakeUp callback*/
  19589. heth->WakeUpCallback(heth);
  19590. #else
  19591. /* ETH WAKEUP callback */
  19592. HAL_ETH_WakeUpCallback(heth);
  19593. 8008bb8: 6878 ldr r0, [r7, #4]
  19594. 8008bba: f000 f81b bl 8008bf4 <HAL_ETH_WakeUpCallback>
  19595. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  19596. }
  19597. #endif /* DUAL_CORE */
  19598. }
  19599. 8008bbe: bf00 nop
  19600. 8008bc0: 3718 adds r7, #24
  19601. 8008bc2: 46bd mov sp, r7
  19602. 8008bc4: bd80 pop {r7, pc}
  19603. 8008bc6: bf00 nop
  19604. 8008bc8: 58000080 .word 0x58000080
  19605. 08008bcc <HAL_ETH_PMTCallback>:
  19606. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19607. * the configuration information for ETHERNET module
  19608. * @retval None
  19609. */
  19610. __weak void HAL_ETH_PMTCallback(ETH_HandleTypeDef *heth)
  19611. {
  19612. 8008bcc: b480 push {r7}
  19613. 8008bce: b083 sub sp, #12
  19614. 8008bd0: af00 add r7, sp, #0
  19615. 8008bd2: 6078 str r0, [r7, #4]
  19616. /* Prevent unused argument(s) compilation warning */
  19617. UNUSED(heth);
  19618. /* NOTE : This function Should not be modified, when the callback is needed,
  19619. the HAL_ETH_PMTCallback could be implemented in the user file
  19620. */
  19621. }
  19622. 8008bd4: bf00 nop
  19623. 8008bd6: 370c adds r7, #12
  19624. 8008bd8: 46bd mov sp, r7
  19625. 8008bda: f85d 7b04 ldr.w r7, [sp], #4
  19626. 8008bde: 4770 bx lr
  19627. 08008be0 <HAL_ETH_EEECallback>:
  19628. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19629. * the configuration information for ETHERNET module
  19630. * @retval None
  19631. */
  19632. __weak void HAL_ETH_EEECallback(ETH_HandleTypeDef *heth)
  19633. {
  19634. 8008be0: b480 push {r7}
  19635. 8008be2: b083 sub sp, #12
  19636. 8008be4: af00 add r7, sp, #0
  19637. 8008be6: 6078 str r0, [r7, #4]
  19638. /* Prevent unused argument(s) compilation warning */
  19639. UNUSED(heth);
  19640. /* NOTE : This function Should not be modified, when the callback is needed,
  19641. the HAL_ETH_EEECallback could be implemented in the user file
  19642. */
  19643. }
  19644. 8008be8: bf00 nop
  19645. 8008bea: 370c adds r7, #12
  19646. 8008bec: 46bd mov sp, r7
  19647. 8008bee: f85d 7b04 ldr.w r7, [sp], #4
  19648. 8008bf2: 4770 bx lr
  19649. 08008bf4 <HAL_ETH_WakeUpCallback>:
  19650. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19651. * the configuration information for ETHERNET module
  19652. * @retval None
  19653. */
  19654. __weak void HAL_ETH_WakeUpCallback(ETH_HandleTypeDef *heth)
  19655. {
  19656. 8008bf4: b480 push {r7}
  19657. 8008bf6: b083 sub sp, #12
  19658. 8008bf8: af00 add r7, sp, #0
  19659. 8008bfa: 6078 str r0, [r7, #4]
  19660. /* Prevent unused argument(s) compilation warning */
  19661. UNUSED(heth);
  19662. /* NOTE : This function Should not be modified, when the callback is needed,
  19663. the HAL_ETH_WakeUpCallback could be implemented in the user file
  19664. */
  19665. }
  19666. 8008bfc: bf00 nop
  19667. 8008bfe: 370c adds r7, #12
  19668. 8008c00: 46bd mov sp, r7
  19669. 8008c02: f85d 7b04 ldr.w r7, [sp], #4
  19670. 8008c06: 4770 bx lr
  19671. 08008c08 <HAL_ETH_ReadPHYRegister>:
  19672. * @param pRegValue: parameter to hold read value
  19673. * @retval HAL status
  19674. */
  19675. HAL_StatusTypeDef HAL_ETH_ReadPHYRegister(ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg,
  19676. uint32_t *pRegValue)
  19677. {
  19678. 8008c08: b580 push {r7, lr}
  19679. 8008c0a: b086 sub sp, #24
  19680. 8008c0c: af00 add r7, sp, #0
  19681. 8008c0e: 60f8 str r0, [r7, #12]
  19682. 8008c10: 60b9 str r1, [r7, #8]
  19683. 8008c12: 607a str r2, [r7, #4]
  19684. 8008c14: 603b str r3, [r7, #0]
  19685. uint32_t tickstart;
  19686. uint32_t tmpreg;
  19687. /* Check for the Busy flag */
  19688. if (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) != (uint32_t)RESET)
  19689. 8008c16: 68fb ldr r3, [r7, #12]
  19690. 8008c18: 681b ldr r3, [r3, #0]
  19691. 8008c1a: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19692. 8008c1e: f003 0301 and.w r3, r3, #1
  19693. 8008c22: 2b00 cmp r3, #0
  19694. 8008c24: d001 beq.n 8008c2a <HAL_ETH_ReadPHYRegister+0x22>
  19695. {
  19696. return HAL_ERROR;
  19697. 8008c26: 2301 movs r3, #1
  19698. 8008c28: e03e b.n 8008ca8 <HAL_ETH_ReadPHYRegister+0xa0>
  19699. }
  19700. /* Get the MACMDIOAR value */
  19701. WRITE_REG(tmpreg, heth->Instance->MACMDIOAR);
  19702. 8008c2a: 68fb ldr r3, [r7, #12]
  19703. 8008c2c: 681b ldr r3, [r3, #0]
  19704. 8008c2e: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19705. 8008c32: 617b str r3, [r7, #20]
  19706. - Set the PHY device address
  19707. - Set the PHY register address
  19708. - Set the read mode
  19709. - Set the MII Busy bit */
  19710. MODIFY_REG(tmpreg, ETH_MACMDIOAR_PA, (PHYAddr << 21));
  19711. 8008c34: 697b ldr r3, [r7, #20]
  19712. 8008c36: f023 7278 bic.w r2, r3, #65011712 @ 0x3e00000
  19713. 8008c3a: 68bb ldr r3, [r7, #8]
  19714. 8008c3c: 055b lsls r3, r3, #21
  19715. 8008c3e: 4313 orrs r3, r2
  19716. 8008c40: 617b str r3, [r7, #20]
  19717. MODIFY_REG(tmpreg, ETH_MACMDIOAR_RDA, (PHYReg << 16));
  19718. 8008c42: 697b ldr r3, [r7, #20]
  19719. 8008c44: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000
  19720. 8008c48: 687b ldr r3, [r7, #4]
  19721. 8008c4a: 041b lsls r3, r3, #16
  19722. 8008c4c: 4313 orrs r3, r2
  19723. 8008c4e: 617b str r3, [r7, #20]
  19724. MODIFY_REG(tmpreg, ETH_MACMDIOAR_MOC, ETH_MACMDIOAR_MOC_RD);
  19725. 8008c50: 697b ldr r3, [r7, #20]
  19726. 8008c52: f043 030c orr.w r3, r3, #12
  19727. 8008c56: 617b str r3, [r7, #20]
  19728. SET_BIT(tmpreg, ETH_MACMDIOAR_MB);
  19729. 8008c58: 697b ldr r3, [r7, #20]
  19730. 8008c5a: f043 0301 orr.w r3, r3, #1
  19731. 8008c5e: 617b str r3, [r7, #20]
  19732. /* Write the result value into the MDII Address register */
  19733. WRITE_REG(heth->Instance->MACMDIOAR, tmpreg);
  19734. 8008c60: 68fb ldr r3, [r7, #12]
  19735. 8008c62: 681b ldr r3, [r3, #0]
  19736. 8008c64: 697a ldr r2, [r7, #20]
  19737. 8008c66: f8c3 2200 str.w r2, [r3, #512] @ 0x200
  19738. tickstart = HAL_GetTick();
  19739. 8008c6a: f7fc fd13 bl 8005694 <HAL_GetTick>
  19740. 8008c6e: 6138 str r0, [r7, #16]
  19741. /* Wait for the Busy flag */
  19742. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  19743. 8008c70: e009 b.n 8008c86 <HAL_ETH_ReadPHYRegister+0x7e>
  19744. {
  19745. if (((HAL_GetTick() - tickstart) > ETH_MDIO_BUS_TIMEOUT))
  19746. 8008c72: f7fc fd0f bl 8005694 <HAL_GetTick>
  19747. 8008c76: 4602 mov r2, r0
  19748. 8008c78: 693b ldr r3, [r7, #16]
  19749. 8008c7a: 1ad3 subs r3, r2, r3
  19750. 8008c7c: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  19751. 8008c80: d901 bls.n 8008c86 <HAL_ETH_ReadPHYRegister+0x7e>
  19752. {
  19753. return HAL_ERROR;
  19754. 8008c82: 2301 movs r3, #1
  19755. 8008c84: e010 b.n 8008ca8 <HAL_ETH_ReadPHYRegister+0xa0>
  19756. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  19757. 8008c86: 68fb ldr r3, [r7, #12]
  19758. 8008c88: 681b ldr r3, [r3, #0]
  19759. 8008c8a: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19760. 8008c8e: f003 0301 and.w r3, r3, #1
  19761. 8008c92: 2b00 cmp r3, #0
  19762. 8008c94: d1ed bne.n 8008c72 <HAL_ETH_ReadPHYRegister+0x6a>
  19763. }
  19764. }
  19765. /* Get MACMIIDR value */
  19766. WRITE_REG(*pRegValue, (uint16_t)heth->Instance->MACMDIODR);
  19767. 8008c96: 68fb ldr r3, [r7, #12]
  19768. 8008c98: 681b ldr r3, [r3, #0]
  19769. 8008c9a: f8d3 3204 ldr.w r3, [r3, #516] @ 0x204
  19770. 8008c9e: b29b uxth r3, r3
  19771. 8008ca0: 461a mov r2, r3
  19772. 8008ca2: 683b ldr r3, [r7, #0]
  19773. 8008ca4: 601a str r2, [r3, #0]
  19774. return HAL_OK;
  19775. 8008ca6: 2300 movs r3, #0
  19776. }
  19777. 8008ca8: 4618 mov r0, r3
  19778. 8008caa: 3718 adds r7, #24
  19779. 8008cac: 46bd mov sp, r7
  19780. 8008cae: bd80 pop {r7, pc}
  19781. 08008cb0 <HAL_ETH_WritePHYRegister>:
  19782. * @param RegValue: the value to write
  19783. * @retval HAL status
  19784. */
  19785. HAL_StatusTypeDef HAL_ETH_WritePHYRegister(const ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg,
  19786. uint32_t RegValue)
  19787. {
  19788. 8008cb0: b580 push {r7, lr}
  19789. 8008cb2: b086 sub sp, #24
  19790. 8008cb4: af00 add r7, sp, #0
  19791. 8008cb6: 60f8 str r0, [r7, #12]
  19792. 8008cb8: 60b9 str r1, [r7, #8]
  19793. 8008cba: 607a str r2, [r7, #4]
  19794. 8008cbc: 603b str r3, [r7, #0]
  19795. uint32_t tickstart;
  19796. uint32_t tmpreg;
  19797. /* Check for the Busy flag */
  19798. if (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) != (uint32_t)RESET)
  19799. 8008cbe: 68fb ldr r3, [r7, #12]
  19800. 8008cc0: 681b ldr r3, [r3, #0]
  19801. 8008cc2: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19802. 8008cc6: f003 0301 and.w r3, r3, #1
  19803. 8008cca: 2b00 cmp r3, #0
  19804. 8008ccc: d001 beq.n 8008cd2 <HAL_ETH_WritePHYRegister+0x22>
  19805. {
  19806. return HAL_ERROR;
  19807. 8008cce: 2301 movs r3, #1
  19808. 8008cd0: e03c b.n 8008d4c <HAL_ETH_WritePHYRegister+0x9c>
  19809. }
  19810. /* Get the MACMDIOAR value */
  19811. WRITE_REG(tmpreg, heth->Instance->MACMDIOAR);
  19812. 8008cd2: 68fb ldr r3, [r7, #12]
  19813. 8008cd4: 681b ldr r3, [r3, #0]
  19814. 8008cd6: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19815. 8008cda: 617b str r3, [r7, #20]
  19816. - Set the PHY device address
  19817. - Set the PHY register address
  19818. - Set the write mode
  19819. - Set the MII Busy bit */
  19820. MODIFY_REG(tmpreg, ETH_MACMDIOAR_PA, (PHYAddr << 21));
  19821. 8008cdc: 697b ldr r3, [r7, #20]
  19822. 8008cde: f023 7278 bic.w r2, r3, #65011712 @ 0x3e00000
  19823. 8008ce2: 68bb ldr r3, [r7, #8]
  19824. 8008ce4: 055b lsls r3, r3, #21
  19825. 8008ce6: 4313 orrs r3, r2
  19826. 8008ce8: 617b str r3, [r7, #20]
  19827. MODIFY_REG(tmpreg, ETH_MACMDIOAR_RDA, (PHYReg << 16));
  19828. 8008cea: 697b ldr r3, [r7, #20]
  19829. 8008cec: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000
  19830. 8008cf0: 687b ldr r3, [r7, #4]
  19831. 8008cf2: 041b lsls r3, r3, #16
  19832. 8008cf4: 4313 orrs r3, r2
  19833. 8008cf6: 617b str r3, [r7, #20]
  19834. MODIFY_REG(tmpreg, ETH_MACMDIOAR_MOC, ETH_MACMDIOAR_MOC_WR);
  19835. 8008cf8: 697b ldr r3, [r7, #20]
  19836. 8008cfa: f023 030c bic.w r3, r3, #12
  19837. 8008cfe: f043 0304 orr.w r3, r3, #4
  19838. 8008d02: 617b str r3, [r7, #20]
  19839. SET_BIT(tmpreg, ETH_MACMDIOAR_MB);
  19840. 8008d04: 697b ldr r3, [r7, #20]
  19841. 8008d06: f043 0301 orr.w r3, r3, #1
  19842. 8008d0a: 617b str r3, [r7, #20]
  19843. /* Give the value to the MII data register */
  19844. WRITE_REG(ETH->MACMDIODR, (uint16_t)RegValue);
  19845. 8008d0c: 683b ldr r3, [r7, #0]
  19846. 8008d0e: b29a uxth r2, r3
  19847. 8008d10: 4b10 ldr r3, [pc, #64] @ (8008d54 <HAL_ETH_WritePHYRegister+0xa4>)
  19848. 8008d12: f8c3 2204 str.w r2, [r3, #516] @ 0x204
  19849. /* Write the result value into the MII Address register */
  19850. WRITE_REG(ETH->MACMDIOAR, tmpreg);
  19851. 8008d16: 4a0f ldr r2, [pc, #60] @ (8008d54 <HAL_ETH_WritePHYRegister+0xa4>)
  19852. 8008d18: 697b ldr r3, [r7, #20]
  19853. 8008d1a: f8c2 3200 str.w r3, [r2, #512] @ 0x200
  19854. tickstart = HAL_GetTick();
  19855. 8008d1e: f7fc fcb9 bl 8005694 <HAL_GetTick>
  19856. 8008d22: 6138 str r0, [r7, #16]
  19857. /* Wait for the Busy flag */
  19858. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  19859. 8008d24: e009 b.n 8008d3a <HAL_ETH_WritePHYRegister+0x8a>
  19860. {
  19861. if (((HAL_GetTick() - tickstart) > ETH_MDIO_BUS_TIMEOUT))
  19862. 8008d26: f7fc fcb5 bl 8005694 <HAL_GetTick>
  19863. 8008d2a: 4602 mov r2, r0
  19864. 8008d2c: 693b ldr r3, [r7, #16]
  19865. 8008d2e: 1ad3 subs r3, r2, r3
  19866. 8008d30: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  19867. 8008d34: d901 bls.n 8008d3a <HAL_ETH_WritePHYRegister+0x8a>
  19868. {
  19869. return HAL_ERROR;
  19870. 8008d36: 2301 movs r3, #1
  19871. 8008d38: e008 b.n 8008d4c <HAL_ETH_WritePHYRegister+0x9c>
  19872. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  19873. 8008d3a: 68fb ldr r3, [r7, #12]
  19874. 8008d3c: 681b ldr r3, [r3, #0]
  19875. 8008d3e: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19876. 8008d42: f003 0301 and.w r3, r3, #1
  19877. 8008d46: 2b00 cmp r3, #0
  19878. 8008d48: d1ed bne.n 8008d26 <HAL_ETH_WritePHYRegister+0x76>
  19879. }
  19880. }
  19881. return HAL_OK;
  19882. 8008d4a: 2300 movs r3, #0
  19883. }
  19884. 8008d4c: 4618 mov r0, r3
  19885. 8008d4e: 3718 adds r7, #24
  19886. 8008d50: 46bd mov sp, r7
  19887. 8008d52: bd80 pop {r7, pc}
  19888. 8008d54: 40028000 .word 0x40028000
  19889. 08008d58 <HAL_ETH_GetMACConfig>:
  19890. * @param macconf: pointer to a ETH_MACConfigTypeDef structure that will hold
  19891. * the configuration of the MAC.
  19892. * @retval HAL Status
  19893. */
  19894. HAL_StatusTypeDef HAL_ETH_GetMACConfig(const ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf)
  19895. {
  19896. 8008d58: b480 push {r7}
  19897. 8008d5a: b083 sub sp, #12
  19898. 8008d5c: af00 add r7, sp, #0
  19899. 8008d5e: 6078 str r0, [r7, #4]
  19900. 8008d60: 6039 str r1, [r7, #0]
  19901. if (macconf == NULL)
  19902. 8008d62: 683b ldr r3, [r7, #0]
  19903. 8008d64: 2b00 cmp r3, #0
  19904. 8008d66: d101 bne.n 8008d6c <HAL_ETH_GetMACConfig+0x14>
  19905. {
  19906. return HAL_ERROR;
  19907. 8008d68: 2301 movs r3, #1
  19908. 8008d6a: e1c3 b.n 80090f4 <HAL_ETH_GetMACConfig+0x39c>
  19909. }
  19910. /* Get MAC parameters */
  19911. macconf->PreambleLength = READ_BIT(heth->Instance->MACCR, ETH_MACCR_PRELEN);
  19912. 8008d6c: 687b ldr r3, [r7, #4]
  19913. 8008d6e: 681b ldr r3, [r3, #0]
  19914. 8008d70: 681b ldr r3, [r3, #0]
  19915. 8008d72: f003 020c and.w r2, r3, #12
  19916. 8008d76: 683b ldr r3, [r7, #0]
  19917. 8008d78: 62da str r2, [r3, #44] @ 0x2c
  19918. macconf->DeferralCheck = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DC) >> 4) > 0U) ? ENABLE : DISABLE;
  19919. 8008d7a: 687b ldr r3, [r7, #4]
  19920. 8008d7c: 681b ldr r3, [r3, #0]
  19921. 8008d7e: 681b ldr r3, [r3, #0]
  19922. 8008d80: f003 0310 and.w r3, r3, #16
  19923. 8008d84: 2b00 cmp r3, #0
  19924. 8008d86: bf14 ite ne
  19925. 8008d88: 2301 movne r3, #1
  19926. 8008d8a: 2300 moveq r3, #0
  19927. 8008d8c: b2db uxtb r3, r3
  19928. 8008d8e: 461a mov r2, r3
  19929. 8008d90: 683b ldr r3, [r7, #0]
  19930. 8008d92: f883 2028 strb.w r2, [r3, #40] @ 0x28
  19931. macconf->BackOffLimit = READ_BIT(heth->Instance->MACCR, ETH_MACCR_BL);
  19932. 8008d96: 687b ldr r3, [r7, #4]
  19933. 8008d98: 681b ldr r3, [r3, #0]
  19934. 8008d9a: 681b ldr r3, [r3, #0]
  19935. 8008d9c: f003 0260 and.w r2, r3, #96 @ 0x60
  19936. 8008da0: 683b ldr r3, [r7, #0]
  19937. 8008da2: 625a str r2, [r3, #36] @ 0x24
  19938. macconf->RetryTransmission = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DR) >> 8) == 0U) ? ENABLE : DISABLE;
  19939. 8008da4: 687b ldr r3, [r7, #4]
  19940. 8008da6: 681b ldr r3, [r3, #0]
  19941. 8008da8: 681b ldr r3, [r3, #0]
  19942. 8008daa: f403 7380 and.w r3, r3, #256 @ 0x100
  19943. 8008dae: 2b00 cmp r3, #0
  19944. 8008db0: bf0c ite eq
  19945. 8008db2: 2301 moveq r3, #1
  19946. 8008db4: 2300 movne r3, #0
  19947. 8008db6: b2db uxtb r3, r3
  19948. 8008db8: 461a mov r2, r3
  19949. 8008dba: 683b ldr r3, [r7, #0]
  19950. 8008dbc: f883 2020 strb.w r2, [r3, #32]
  19951. macconf->CarrierSenseDuringTransmit = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DCRS) >> 9) > 0U)
  19952. 8008dc0: 687b ldr r3, [r7, #4]
  19953. 8008dc2: 681b ldr r3, [r3, #0]
  19954. 8008dc4: 681b ldr r3, [r3, #0]
  19955. 8008dc6: f403 7300 and.w r3, r3, #512 @ 0x200
  19956. ? ENABLE : DISABLE;
  19957. 8008dca: 2b00 cmp r3, #0
  19958. 8008dcc: bf14 ite ne
  19959. 8008dce: 2301 movne r3, #1
  19960. 8008dd0: 2300 moveq r3, #0
  19961. 8008dd2: b2db uxtb r3, r3
  19962. 8008dd4: 461a mov r2, r3
  19963. macconf->CarrierSenseDuringTransmit = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DCRS) >> 9) > 0U)
  19964. 8008dd6: 683b ldr r3, [r7, #0]
  19965. 8008dd8: 77da strb r2, [r3, #31]
  19966. macconf->ReceiveOwn = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DO) >> 10) == 0U) ? ENABLE : DISABLE;
  19967. 8008dda: 687b ldr r3, [r7, #4]
  19968. 8008ddc: 681b ldr r3, [r3, #0]
  19969. 8008dde: 681b ldr r3, [r3, #0]
  19970. 8008de0: f403 6380 and.w r3, r3, #1024 @ 0x400
  19971. 8008de4: 2b00 cmp r3, #0
  19972. 8008de6: bf0c ite eq
  19973. 8008de8: 2301 moveq r3, #1
  19974. 8008dea: 2300 movne r3, #0
  19975. 8008dec: b2db uxtb r3, r3
  19976. 8008dee: 461a mov r2, r3
  19977. 8008df0: 683b ldr r3, [r7, #0]
  19978. 8008df2: 779a strb r2, [r3, #30]
  19979. macconf->CarrierSenseBeforeTransmit = ((READ_BIT(heth->Instance->MACCR,
  19980. 8008df4: 687b ldr r3, [r7, #4]
  19981. 8008df6: 681b ldr r3, [r3, #0]
  19982. 8008df8: 681b ldr r3, [r3, #0]
  19983. ETH_MACCR_ECRSFD) >> 11) > 0U) ? ENABLE : DISABLE;
  19984. 8008dfa: f403 6300 and.w r3, r3, #2048 @ 0x800
  19985. 8008dfe: 2b00 cmp r3, #0
  19986. 8008e00: bf14 ite ne
  19987. 8008e02: 2301 movne r3, #1
  19988. 8008e04: 2300 moveq r3, #0
  19989. 8008e06: b2db uxtb r3, r3
  19990. 8008e08: 461a mov r2, r3
  19991. macconf->CarrierSenseBeforeTransmit = ((READ_BIT(heth->Instance->MACCR,
  19992. 8008e0a: 683b ldr r3, [r7, #0]
  19993. 8008e0c: 775a strb r2, [r3, #29]
  19994. macconf->LoopbackMode = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_LM) >> 12) > 0U) ? ENABLE : DISABLE;
  19995. 8008e0e: 687b ldr r3, [r7, #4]
  19996. 8008e10: 681b ldr r3, [r3, #0]
  19997. 8008e12: 681b ldr r3, [r3, #0]
  19998. 8008e14: f403 5380 and.w r3, r3, #4096 @ 0x1000
  19999. 8008e18: 2b00 cmp r3, #0
  20000. 8008e1a: bf14 ite ne
  20001. 8008e1c: 2301 movne r3, #1
  20002. 8008e1e: 2300 moveq r3, #0
  20003. 8008e20: b2db uxtb r3, r3
  20004. 8008e22: 461a mov r2, r3
  20005. 8008e24: 683b ldr r3, [r7, #0]
  20006. 8008e26: 771a strb r2, [r3, #28]
  20007. macconf->DuplexMode = READ_BIT(heth->Instance->MACCR, ETH_MACCR_DM);
  20008. 8008e28: 687b ldr r3, [r7, #4]
  20009. 8008e2a: 681b ldr r3, [r3, #0]
  20010. 8008e2c: 681b ldr r3, [r3, #0]
  20011. 8008e2e: f403 5200 and.w r2, r3, #8192 @ 0x2000
  20012. 8008e32: 683b ldr r3, [r7, #0]
  20013. 8008e34: 619a str r2, [r3, #24]
  20014. macconf->Speed = READ_BIT(heth->Instance->MACCR, ETH_MACCR_FES);
  20015. 8008e36: 687b ldr r3, [r7, #4]
  20016. 8008e38: 681b ldr r3, [r3, #0]
  20017. 8008e3a: 681b ldr r3, [r3, #0]
  20018. 8008e3c: f403 4280 and.w r2, r3, #16384 @ 0x4000
  20019. 8008e40: 683b ldr r3, [r7, #0]
  20020. 8008e42: 615a str r2, [r3, #20]
  20021. macconf->JumboPacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_JE) >> 16) > 0U) ? ENABLE : DISABLE;
  20022. 8008e44: 687b ldr r3, [r7, #4]
  20023. 8008e46: 681b ldr r3, [r3, #0]
  20024. 8008e48: 681b ldr r3, [r3, #0]
  20025. 8008e4a: f403 3380 and.w r3, r3, #65536 @ 0x10000
  20026. 8008e4e: 2b00 cmp r3, #0
  20027. 8008e50: bf14 ite ne
  20028. 8008e52: 2301 movne r3, #1
  20029. 8008e54: 2300 moveq r3, #0
  20030. 8008e56: b2db uxtb r3, r3
  20031. 8008e58: 461a mov r2, r3
  20032. 8008e5a: 683b ldr r3, [r7, #0]
  20033. 8008e5c: 749a strb r2, [r3, #18]
  20034. macconf->Jabber = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_JD) >> 17) == 0U) ? ENABLE : DISABLE;
  20035. 8008e5e: 687b ldr r3, [r7, #4]
  20036. 8008e60: 681b ldr r3, [r3, #0]
  20037. 8008e62: 681b ldr r3, [r3, #0]
  20038. 8008e64: f403 3300 and.w r3, r3, #131072 @ 0x20000
  20039. 8008e68: 2b00 cmp r3, #0
  20040. 8008e6a: bf0c ite eq
  20041. 8008e6c: 2301 moveq r3, #1
  20042. 8008e6e: 2300 movne r3, #0
  20043. 8008e70: b2db uxtb r3, r3
  20044. 8008e72: 461a mov r2, r3
  20045. 8008e74: 683b ldr r3, [r7, #0]
  20046. 8008e76: 745a strb r2, [r3, #17]
  20047. macconf->Watchdog = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_WD) >> 19) == 0U) ? ENABLE : DISABLE;
  20048. 8008e78: 687b ldr r3, [r7, #4]
  20049. 8008e7a: 681b ldr r3, [r3, #0]
  20050. 8008e7c: 681b ldr r3, [r3, #0]
  20051. 8008e7e: f403 2300 and.w r3, r3, #524288 @ 0x80000
  20052. 8008e82: 2b00 cmp r3, #0
  20053. 8008e84: bf0c ite eq
  20054. 8008e86: 2301 moveq r3, #1
  20055. 8008e88: 2300 movne r3, #0
  20056. 8008e8a: b2db uxtb r3, r3
  20057. 8008e8c: 461a mov r2, r3
  20058. 8008e8e: 683b ldr r3, [r7, #0]
  20059. 8008e90: 741a strb r2, [r3, #16]
  20060. macconf->AutomaticPadCRCStrip = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_ACS) >> 20) > 0U) ? ENABLE : DISABLE;
  20061. 8008e92: 687b ldr r3, [r7, #4]
  20062. 8008e94: 681b ldr r3, [r3, #0]
  20063. 8008e96: 681b ldr r3, [r3, #0]
  20064. 8008e98: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  20065. 8008e9c: 2b00 cmp r3, #0
  20066. 8008e9e: bf14 ite ne
  20067. 8008ea0: 2301 movne r3, #1
  20068. 8008ea2: 2300 moveq r3, #0
  20069. 8008ea4: b2db uxtb r3, r3
  20070. 8008ea6: 461a mov r2, r3
  20071. 8008ea8: 683b ldr r3, [r7, #0]
  20072. 8008eaa: 73da strb r2, [r3, #15]
  20073. macconf->CRCStripTypePacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_CST) >> 21) > 0U) ? ENABLE : DISABLE;
  20074. 8008eac: 687b ldr r3, [r7, #4]
  20075. 8008eae: 681b ldr r3, [r3, #0]
  20076. 8008eb0: 681b ldr r3, [r3, #0]
  20077. 8008eb2: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  20078. 8008eb6: 2b00 cmp r3, #0
  20079. 8008eb8: bf14 ite ne
  20080. 8008eba: 2301 movne r3, #1
  20081. 8008ebc: 2300 moveq r3, #0
  20082. 8008ebe: b2db uxtb r3, r3
  20083. 8008ec0: 461a mov r2, r3
  20084. 8008ec2: 683b ldr r3, [r7, #0]
  20085. 8008ec4: 739a strb r2, [r3, #14]
  20086. macconf->Support2KPacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_S2KP) >> 22) > 0U) ? ENABLE : DISABLE;
  20087. 8008ec6: 687b ldr r3, [r7, #4]
  20088. 8008ec8: 681b ldr r3, [r3, #0]
  20089. 8008eca: 681b ldr r3, [r3, #0]
  20090. 8008ecc: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  20091. 8008ed0: 2b00 cmp r3, #0
  20092. 8008ed2: bf14 ite ne
  20093. 8008ed4: 2301 movne r3, #1
  20094. 8008ed6: 2300 moveq r3, #0
  20095. 8008ed8: b2db uxtb r3, r3
  20096. 8008eda: 461a mov r2, r3
  20097. 8008edc: 683b ldr r3, [r7, #0]
  20098. 8008ede: 735a strb r2, [r3, #13]
  20099. macconf->GiantPacketSizeLimitControl = ((READ_BIT(heth->Instance->MACCR,
  20100. 8008ee0: 687b ldr r3, [r7, #4]
  20101. 8008ee2: 681b ldr r3, [r3, #0]
  20102. 8008ee4: 681b ldr r3, [r3, #0]
  20103. ETH_MACCR_GPSLCE) >> 23) > 0U) ? ENABLE : DISABLE;
  20104. 8008ee6: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  20105. 8008eea: 2b00 cmp r3, #0
  20106. 8008eec: bf14 ite ne
  20107. 8008eee: 2301 movne r3, #1
  20108. 8008ef0: 2300 moveq r3, #0
  20109. 8008ef2: b2db uxtb r3, r3
  20110. 8008ef4: 461a mov r2, r3
  20111. macconf->GiantPacketSizeLimitControl = ((READ_BIT(heth->Instance->MACCR,
  20112. 8008ef6: 683b ldr r3, [r7, #0]
  20113. 8008ef8: 731a strb r2, [r3, #12]
  20114. macconf->InterPacketGapVal = READ_BIT(heth->Instance->MACCR, ETH_MACCR_IPG);
  20115. 8008efa: 687b ldr r3, [r7, #4]
  20116. 8008efc: 681b ldr r3, [r3, #0]
  20117. 8008efe: 681b ldr r3, [r3, #0]
  20118. 8008f00: f003 62e0 and.w r2, r3, #117440512 @ 0x7000000
  20119. 8008f04: 683b ldr r3, [r7, #0]
  20120. 8008f06: 609a str r2, [r3, #8]
  20121. macconf->ChecksumOffload = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_IPC) >> 27) > 0U) ? ENABLE : DISABLE;
  20122. 8008f08: 687b ldr r3, [r7, #4]
  20123. 8008f0a: 681b ldr r3, [r3, #0]
  20124. 8008f0c: 681b ldr r3, [r3, #0]
  20125. 8008f0e: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  20126. 8008f12: 2b00 cmp r3, #0
  20127. 8008f14: bf14 ite ne
  20128. 8008f16: 2301 movne r3, #1
  20129. 8008f18: 2300 moveq r3, #0
  20130. 8008f1a: b2db uxtb r3, r3
  20131. 8008f1c: 461a mov r2, r3
  20132. 8008f1e: 683b ldr r3, [r7, #0]
  20133. 8008f20: 711a strb r2, [r3, #4]
  20134. macconf->SourceAddrControl = READ_BIT(heth->Instance->MACCR, ETH_MACCR_SARC);
  20135. 8008f22: 687b ldr r3, [r7, #4]
  20136. 8008f24: 681b ldr r3, [r3, #0]
  20137. 8008f26: 681b ldr r3, [r3, #0]
  20138. 8008f28: f003 42e0 and.w r2, r3, #1879048192 @ 0x70000000
  20139. 8008f2c: 683b ldr r3, [r7, #0]
  20140. 8008f2e: 601a str r2, [r3, #0]
  20141. macconf->GiantPacketSizeLimit = READ_BIT(heth->Instance->MACECR, ETH_MACECR_GPSL);
  20142. 8008f30: 687b ldr r3, [r7, #4]
  20143. 8008f32: 681b ldr r3, [r3, #0]
  20144. 8008f34: 685b ldr r3, [r3, #4]
  20145. 8008f36: f3c3 020d ubfx r2, r3, #0, #14
  20146. 8008f3a: 683b ldr r3, [r7, #0]
  20147. 8008f3c: 635a str r2, [r3, #52] @ 0x34
  20148. macconf->CRCCheckingRxPackets = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_DCRCC) >> 16) == 0U) ? ENABLE : DISABLE;
  20149. 8008f3e: 687b ldr r3, [r7, #4]
  20150. 8008f40: 681b ldr r3, [r3, #0]
  20151. 8008f42: 685b ldr r3, [r3, #4]
  20152. 8008f44: f403 3380 and.w r3, r3, #65536 @ 0x10000
  20153. 8008f48: 2b00 cmp r3, #0
  20154. 8008f4a: bf0c ite eq
  20155. 8008f4c: 2301 moveq r3, #1
  20156. 8008f4e: 2300 movne r3, #0
  20157. 8008f50: b2db uxtb r3, r3
  20158. 8008f52: 461a mov r2, r3
  20159. 8008f54: 683b ldr r3, [r7, #0]
  20160. 8008f56: f883 2032 strb.w r2, [r3, #50] @ 0x32
  20161. macconf->SlowProtocolDetect = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_SPEN) >> 17) > 0U) ? ENABLE : DISABLE;
  20162. 8008f5a: 687b ldr r3, [r7, #4]
  20163. 8008f5c: 681b ldr r3, [r3, #0]
  20164. 8008f5e: 685b ldr r3, [r3, #4]
  20165. 8008f60: f403 3300 and.w r3, r3, #131072 @ 0x20000
  20166. 8008f64: 2b00 cmp r3, #0
  20167. 8008f66: bf14 ite ne
  20168. 8008f68: 2301 movne r3, #1
  20169. 8008f6a: 2300 moveq r3, #0
  20170. 8008f6c: b2db uxtb r3, r3
  20171. 8008f6e: 461a mov r2, r3
  20172. 8008f70: 683b ldr r3, [r7, #0]
  20173. 8008f72: f883 2031 strb.w r2, [r3, #49] @ 0x31
  20174. macconf->UnicastSlowProtocolPacketDetect = ((READ_BIT(heth->Instance->MACECR,
  20175. 8008f76: 687b ldr r3, [r7, #4]
  20176. 8008f78: 681b ldr r3, [r3, #0]
  20177. 8008f7a: 685b ldr r3, [r3, #4]
  20178. ETH_MACECR_USP) >> 18) > 0U) ? ENABLE : DISABLE;
  20179. 8008f7c: f403 2380 and.w r3, r3, #262144 @ 0x40000
  20180. 8008f80: 2b00 cmp r3, #0
  20181. 8008f82: bf14 ite ne
  20182. 8008f84: 2301 movne r3, #1
  20183. 8008f86: 2300 moveq r3, #0
  20184. 8008f88: b2db uxtb r3, r3
  20185. 8008f8a: 461a mov r2, r3
  20186. macconf->UnicastSlowProtocolPacketDetect = ((READ_BIT(heth->Instance->MACECR,
  20187. 8008f8c: 683b ldr r3, [r7, #0]
  20188. 8008f8e: f883 2030 strb.w r2, [r3, #48] @ 0x30
  20189. macconf->ExtendedInterPacketGap = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPGEN) >> 24) > 0U)
  20190. 8008f92: 687b ldr r3, [r7, #4]
  20191. 8008f94: 681b ldr r3, [r3, #0]
  20192. 8008f96: 685b ldr r3, [r3, #4]
  20193. 8008f98: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  20194. ? ENABLE : DISABLE;
  20195. 8008f9c: 2b00 cmp r3, #0
  20196. 8008f9e: bf14 ite ne
  20197. 8008fa0: 2301 movne r3, #1
  20198. 8008fa2: 2300 moveq r3, #0
  20199. 8008fa4: b2db uxtb r3, r3
  20200. 8008fa6: 461a mov r2, r3
  20201. macconf->ExtendedInterPacketGap = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPGEN) >> 24) > 0U)
  20202. 8008fa8: 683b ldr r3, [r7, #0]
  20203. 8008faa: f883 2038 strb.w r2, [r3, #56] @ 0x38
  20204. macconf->ExtendedInterPacketGapVal = READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPG) >> 25;
  20205. 8008fae: 687b ldr r3, [r7, #4]
  20206. 8008fb0: 681b ldr r3, [r3, #0]
  20207. 8008fb2: 685b ldr r3, [r3, #4]
  20208. 8008fb4: 0e5b lsrs r3, r3, #25
  20209. 8008fb6: f003 021f and.w r2, r3, #31
  20210. 8008fba: 683b ldr r3, [r7, #0]
  20211. 8008fbc: 63da str r2, [r3, #60] @ 0x3c
  20212. macconf->ProgrammableWatchdog = ((READ_BIT(heth->Instance->MACWTR, ETH_MACWTR_PWE) >> 8) > 0U) ? ENABLE : DISABLE;
  20213. 8008fbe: 687b ldr r3, [r7, #4]
  20214. 8008fc0: 681b ldr r3, [r3, #0]
  20215. 8008fc2: 68db ldr r3, [r3, #12]
  20216. 8008fc4: f403 7380 and.w r3, r3, #256 @ 0x100
  20217. 8008fc8: 2b00 cmp r3, #0
  20218. 8008fca: bf14 ite ne
  20219. 8008fcc: 2301 movne r3, #1
  20220. 8008fce: 2300 moveq r3, #0
  20221. 8008fd0: b2db uxtb r3, r3
  20222. 8008fd2: 461a mov r2, r3
  20223. 8008fd4: 683b ldr r3, [r7, #0]
  20224. 8008fd6: f883 2040 strb.w r2, [r3, #64] @ 0x40
  20225. macconf->WatchdogTimeout = READ_BIT(heth->Instance->MACWTR, ETH_MACWTR_WTO);
  20226. 8008fda: 687b ldr r3, [r7, #4]
  20227. 8008fdc: 681b ldr r3, [r3, #0]
  20228. 8008fde: 68db ldr r3, [r3, #12]
  20229. 8008fe0: f003 020f and.w r2, r3, #15
  20230. 8008fe4: 683b ldr r3, [r7, #0]
  20231. 8008fe6: 645a str r2, [r3, #68] @ 0x44
  20232. macconf->TransmitFlowControl = ((READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_TFE) >> 1) > 0U) ? ENABLE : DISABLE;
  20233. 8008fe8: 687b ldr r3, [r7, #4]
  20234. 8008fea: 681b ldr r3, [r3, #0]
  20235. 8008fec: 6f1b ldr r3, [r3, #112] @ 0x70
  20236. 8008fee: f003 0302 and.w r3, r3, #2
  20237. 8008ff2: 2b00 cmp r3, #0
  20238. 8008ff4: bf14 ite ne
  20239. 8008ff6: 2301 movne r3, #1
  20240. 8008ff8: 2300 moveq r3, #0
  20241. 8008ffa: b2db uxtb r3, r3
  20242. 8008ffc: 461a mov r2, r3
  20243. 8008ffe: 683b ldr r3, [r7, #0]
  20244. 8009000: f883 2054 strb.w r2, [r3, #84] @ 0x54
  20245. macconf->ZeroQuantaPause = ((READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_DZPQ) >> 7) == 0U) ? ENABLE : DISABLE;
  20246. 8009004: 687b ldr r3, [r7, #4]
  20247. 8009006: 681b ldr r3, [r3, #0]
  20248. 8009008: 6f1b ldr r3, [r3, #112] @ 0x70
  20249. 800900a: f003 0380 and.w r3, r3, #128 @ 0x80
  20250. 800900e: 2b00 cmp r3, #0
  20251. 8009010: bf0c ite eq
  20252. 8009012: 2301 moveq r3, #1
  20253. 8009014: 2300 movne r3, #0
  20254. 8009016: b2db uxtb r3, r3
  20255. 8009018: 461a mov r2, r3
  20256. 800901a: 683b ldr r3, [r7, #0]
  20257. 800901c: f883 204c strb.w r2, [r3, #76] @ 0x4c
  20258. macconf->PauseLowThreshold = READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_PLT);
  20259. 8009020: 687b ldr r3, [r7, #4]
  20260. 8009022: 681b ldr r3, [r3, #0]
  20261. 8009024: 6f1b ldr r3, [r3, #112] @ 0x70
  20262. 8009026: f003 0270 and.w r2, r3, #112 @ 0x70
  20263. 800902a: 683b ldr r3, [r7, #0]
  20264. 800902c: 651a str r2, [r3, #80] @ 0x50
  20265. macconf->PauseTime = (READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_PT) >> 16);
  20266. 800902e: 687b ldr r3, [r7, #4]
  20267. 8009030: 681b ldr r3, [r3, #0]
  20268. 8009032: 6f1b ldr r3, [r3, #112] @ 0x70
  20269. 8009034: 0c1b lsrs r3, r3, #16
  20270. 8009036: b29a uxth r2, r3
  20271. 8009038: 683b ldr r3, [r7, #0]
  20272. 800903a: 649a str r2, [r3, #72] @ 0x48
  20273. macconf->ReceiveFlowControl = (READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_RFE) > 0U) ? ENABLE : DISABLE;
  20274. 800903c: 687b ldr r3, [r7, #4]
  20275. 800903e: 681b ldr r3, [r3, #0]
  20276. 8009040: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  20277. 8009044: f003 0301 and.w r3, r3, #1
  20278. 8009048: 2b00 cmp r3, #0
  20279. 800904a: bf14 ite ne
  20280. 800904c: 2301 movne r3, #1
  20281. 800904e: 2300 moveq r3, #0
  20282. 8009050: b2db uxtb r3, r3
  20283. 8009052: 461a mov r2, r3
  20284. 8009054: 683b ldr r3, [r7, #0]
  20285. 8009056: f883 2056 strb.w r2, [r3, #86] @ 0x56
  20286. macconf->UnicastPausePacketDetect = ((READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_UP) >> 1) > 0U)
  20287. 800905a: 687b ldr r3, [r7, #4]
  20288. 800905c: 681b ldr r3, [r3, #0]
  20289. 800905e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  20290. 8009062: f003 0302 and.w r3, r3, #2
  20291. ? ENABLE : DISABLE;
  20292. 8009066: 2b00 cmp r3, #0
  20293. 8009068: bf14 ite ne
  20294. 800906a: 2301 movne r3, #1
  20295. 800906c: 2300 moveq r3, #0
  20296. 800906e: b2db uxtb r3, r3
  20297. 8009070: 461a mov r2, r3
  20298. macconf->UnicastPausePacketDetect = ((READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_UP) >> 1) > 0U)
  20299. 8009072: 683b ldr r3, [r7, #0]
  20300. 8009074: f883 2055 strb.w r2, [r3, #85] @ 0x55
  20301. macconf->TransmitQueueMode = READ_BIT(heth->Instance->MTLTQOMR, (ETH_MTLTQOMR_TTC | ETH_MTLTQOMR_TSF));
  20302. 8009078: 687b ldr r3, [r7, #4]
  20303. 800907a: 681b ldr r3, [r3, #0]
  20304. 800907c: f8d3 3d00 ldr.w r3, [r3, #3328] @ 0xd00
  20305. 8009080: f003 0272 and.w r2, r3, #114 @ 0x72
  20306. 8009084: 683b ldr r3, [r7, #0]
  20307. 8009086: 659a str r2, [r3, #88] @ 0x58
  20308. macconf->ReceiveQueueMode = READ_BIT(heth->Instance->MTLRQOMR, (ETH_MTLRQOMR_RTC | ETH_MTLRQOMR_RSF));
  20309. 8009088: 687b ldr r3, [r7, #4]
  20310. 800908a: 681b ldr r3, [r3, #0]
  20311. 800908c: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  20312. 8009090: f003 0223 and.w r2, r3, #35 @ 0x23
  20313. 8009094: 683b ldr r3, [r7, #0]
  20314. 8009096: 65da str r2, [r3, #92] @ 0x5c
  20315. macconf->ForwardRxUndersizedGoodPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  20316. 8009098: 687b ldr r3, [r7, #4]
  20317. 800909a: 681b ldr r3, [r3, #0]
  20318. 800909c: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  20319. ETH_MTLRQOMR_FUP) >> 3) > 0U) ? ENABLE : DISABLE;
  20320. 80090a0: f003 0308 and.w r3, r3, #8
  20321. 80090a4: 2b00 cmp r3, #0
  20322. 80090a6: bf14 ite ne
  20323. 80090a8: 2301 movne r3, #1
  20324. 80090aa: 2300 moveq r3, #0
  20325. 80090ac: b2db uxtb r3, r3
  20326. 80090ae: 461a mov r2, r3
  20327. macconf->ForwardRxUndersizedGoodPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  20328. 80090b0: 683b ldr r3, [r7, #0]
  20329. 80090b2: f883 2062 strb.w r2, [r3, #98] @ 0x62
  20330. macconf->ForwardRxErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR, ETH_MTLRQOMR_FEP) >> 4) > 0U) ? ENABLE : DISABLE;
  20331. 80090b6: 687b ldr r3, [r7, #4]
  20332. 80090b8: 681b ldr r3, [r3, #0]
  20333. 80090ba: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  20334. 80090be: f003 0310 and.w r3, r3, #16
  20335. 80090c2: 2b00 cmp r3, #0
  20336. 80090c4: bf14 ite ne
  20337. 80090c6: 2301 movne r3, #1
  20338. 80090c8: 2300 moveq r3, #0
  20339. 80090ca: b2db uxtb r3, r3
  20340. 80090cc: 461a mov r2, r3
  20341. 80090ce: 683b ldr r3, [r7, #0]
  20342. 80090d0: f883 2061 strb.w r2, [r3, #97] @ 0x61
  20343. macconf->DropTCPIPChecksumErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  20344. 80090d4: 687b ldr r3, [r7, #4]
  20345. 80090d6: 681b ldr r3, [r3, #0]
  20346. 80090d8: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  20347. ETH_MTLRQOMR_DISTCPEF) >> 6) == 0U) ? ENABLE : DISABLE;
  20348. 80090dc: f003 0340 and.w r3, r3, #64 @ 0x40
  20349. 80090e0: 2b00 cmp r3, #0
  20350. 80090e2: bf0c ite eq
  20351. 80090e4: 2301 moveq r3, #1
  20352. 80090e6: 2300 movne r3, #0
  20353. 80090e8: b2db uxtb r3, r3
  20354. 80090ea: 461a mov r2, r3
  20355. macconf->DropTCPIPChecksumErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  20356. 80090ec: 683b ldr r3, [r7, #0]
  20357. 80090ee: f883 2060 strb.w r2, [r3, #96] @ 0x60
  20358. return HAL_OK;
  20359. 80090f2: 2300 movs r3, #0
  20360. }
  20361. 80090f4: 4618 mov r0, r3
  20362. 80090f6: 370c adds r7, #12
  20363. 80090f8: 46bd mov sp, r7
  20364. 80090fa: f85d 7b04 ldr.w r7, [sp], #4
  20365. 80090fe: 4770 bx lr
  20366. 08009100 <HAL_ETH_SetMACConfig>:
  20367. * @param macconf: pointer to a ETH_MACConfigTypeDef structure that contains
  20368. * the configuration of the MAC.
  20369. * @retval HAL status
  20370. */
  20371. HAL_StatusTypeDef HAL_ETH_SetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf)
  20372. {
  20373. 8009100: b580 push {r7, lr}
  20374. 8009102: b082 sub sp, #8
  20375. 8009104: af00 add r7, sp, #0
  20376. 8009106: 6078 str r0, [r7, #4]
  20377. 8009108: 6039 str r1, [r7, #0]
  20378. if (macconf == NULL)
  20379. 800910a: 683b ldr r3, [r7, #0]
  20380. 800910c: 2b00 cmp r3, #0
  20381. 800910e: d101 bne.n 8009114 <HAL_ETH_SetMACConfig+0x14>
  20382. {
  20383. return HAL_ERROR;
  20384. 8009110: 2301 movs r3, #1
  20385. 8009112: e00b b.n 800912c <HAL_ETH_SetMACConfig+0x2c>
  20386. }
  20387. if (heth->gState == HAL_ETH_STATE_READY)
  20388. 8009114: 687b ldr r3, [r7, #4]
  20389. 8009116: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  20390. 800911a: 2b10 cmp r3, #16
  20391. 800911c: d105 bne.n 800912a <HAL_ETH_SetMACConfig+0x2a>
  20392. {
  20393. ETH_SetMACConfig(heth, macconf);
  20394. 800911e: 6839 ldr r1, [r7, #0]
  20395. 8009120: 6878 ldr r0, [r7, #4]
  20396. 8009122: f000 f865 bl 80091f0 <ETH_SetMACConfig>
  20397. return HAL_OK;
  20398. 8009126: 2300 movs r3, #0
  20399. 8009128: e000 b.n 800912c <HAL_ETH_SetMACConfig+0x2c>
  20400. }
  20401. else
  20402. {
  20403. return HAL_ERROR;
  20404. 800912a: 2301 movs r3, #1
  20405. }
  20406. }
  20407. 800912c: 4618 mov r0, r3
  20408. 800912e: 3708 adds r7, #8
  20409. 8009130: 46bd mov sp, r7
  20410. 8009132: bd80 pop {r7, pc}
  20411. 08009134 <HAL_ETH_SetMDIOClockRange>:
  20412. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  20413. * the configuration information for ETHERNET module
  20414. * @retval None
  20415. */
  20416. void HAL_ETH_SetMDIOClockRange(ETH_HandleTypeDef *heth)
  20417. {
  20418. 8009134: b580 push {r7, lr}
  20419. 8009136: b084 sub sp, #16
  20420. 8009138: af00 add r7, sp, #0
  20421. 800913a: 6078 str r0, [r7, #4]
  20422. uint32_t hclk;
  20423. uint32_t tmpreg;
  20424. /* Get the ETHERNET MACMDIOAR value */
  20425. tmpreg = (heth->Instance)->MACMDIOAR;
  20426. 800913c: 687b ldr r3, [r7, #4]
  20427. 800913e: 681b ldr r3, [r3, #0]
  20428. 8009140: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  20429. 8009144: 60fb str r3, [r7, #12]
  20430. /* Clear CSR Clock Range bits */
  20431. tmpreg &= ~ETH_MACMDIOAR_CR;
  20432. 8009146: 68fb ldr r3, [r7, #12]
  20433. 8009148: f423 6370 bic.w r3, r3, #3840 @ 0xf00
  20434. 800914c: 60fb str r3, [r7, #12]
  20435. /* Get hclk frequency value */
  20436. hclk = HAL_RCC_GetHCLKFreq();
  20437. 800914e: f002 f887 bl 800b260 <HAL_RCC_GetHCLKFreq>
  20438. 8009152: 60b8 str r0, [r7, #8]
  20439. /* Set CR bits depending on hclk value */
  20440. if (hclk < 35000000U)
  20441. 8009154: 68bb ldr r3, [r7, #8]
  20442. 8009156: 4a1a ldr r2, [pc, #104] @ (80091c0 <HAL_ETH_SetMDIOClockRange+0x8c>)
  20443. 8009158: 4293 cmp r3, r2
  20444. 800915a: d804 bhi.n 8009166 <HAL_ETH_SetMDIOClockRange+0x32>
  20445. {
  20446. /* CSR Clock Range between 0-35 MHz */
  20447. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV16;
  20448. 800915c: 68fb ldr r3, [r7, #12]
  20449. 800915e: f443 7300 orr.w r3, r3, #512 @ 0x200
  20450. 8009162: 60fb str r3, [r7, #12]
  20451. 8009164: e022 b.n 80091ac <HAL_ETH_SetMDIOClockRange+0x78>
  20452. }
  20453. else if (hclk < 60000000U)
  20454. 8009166: 68bb ldr r3, [r7, #8]
  20455. 8009168: 4a16 ldr r2, [pc, #88] @ (80091c4 <HAL_ETH_SetMDIOClockRange+0x90>)
  20456. 800916a: 4293 cmp r3, r2
  20457. 800916c: d204 bcs.n 8009178 <HAL_ETH_SetMDIOClockRange+0x44>
  20458. {
  20459. /* CSR Clock Range between 35-60 MHz */
  20460. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV26;
  20461. 800916e: 68fb ldr r3, [r7, #12]
  20462. 8009170: f443 7340 orr.w r3, r3, #768 @ 0x300
  20463. 8009174: 60fb str r3, [r7, #12]
  20464. 8009176: e019 b.n 80091ac <HAL_ETH_SetMDIOClockRange+0x78>
  20465. }
  20466. else if (hclk < 100000000U)
  20467. 8009178: 68bb ldr r3, [r7, #8]
  20468. 800917a: 4a13 ldr r2, [pc, #76] @ (80091c8 <HAL_ETH_SetMDIOClockRange+0x94>)
  20469. 800917c: 4293 cmp r3, r2
  20470. 800917e: d915 bls.n 80091ac <HAL_ETH_SetMDIOClockRange+0x78>
  20471. {
  20472. /* CSR Clock Range between 60-100 MHz */
  20473. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV42;
  20474. }
  20475. else if (hclk < 150000000U)
  20476. 8009180: 68bb ldr r3, [r7, #8]
  20477. 8009182: 4a12 ldr r2, [pc, #72] @ (80091cc <HAL_ETH_SetMDIOClockRange+0x98>)
  20478. 8009184: 4293 cmp r3, r2
  20479. 8009186: d804 bhi.n 8009192 <HAL_ETH_SetMDIOClockRange+0x5e>
  20480. {
  20481. /* CSR Clock Range between 100-150 MHz */
  20482. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV62;
  20483. 8009188: 68fb ldr r3, [r7, #12]
  20484. 800918a: f443 7380 orr.w r3, r3, #256 @ 0x100
  20485. 800918e: 60fb str r3, [r7, #12]
  20486. 8009190: e00c b.n 80091ac <HAL_ETH_SetMDIOClockRange+0x78>
  20487. }
  20488. else if (hclk < 250000000U)
  20489. 8009192: 68bb ldr r3, [r7, #8]
  20490. 8009194: 4a0e ldr r2, [pc, #56] @ (80091d0 <HAL_ETH_SetMDIOClockRange+0x9c>)
  20491. 8009196: 4293 cmp r3, r2
  20492. 8009198: d804 bhi.n 80091a4 <HAL_ETH_SetMDIOClockRange+0x70>
  20493. {
  20494. /* CSR Clock Range between 150-250 MHz */
  20495. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV102;
  20496. 800919a: 68fb ldr r3, [r7, #12]
  20497. 800919c: f443 6380 orr.w r3, r3, #1024 @ 0x400
  20498. 80091a0: 60fb str r3, [r7, #12]
  20499. 80091a2: e003 b.n 80091ac <HAL_ETH_SetMDIOClockRange+0x78>
  20500. }
  20501. else /* (hclk >= 250000000U) */
  20502. {
  20503. /* CSR Clock >= 250 MHz */
  20504. tmpreg |= (uint32_t)(ETH_MACMDIOAR_CR_DIV124);
  20505. 80091a4: 68fb ldr r3, [r7, #12]
  20506. 80091a6: f443 63a0 orr.w r3, r3, #1280 @ 0x500
  20507. 80091aa: 60fb str r3, [r7, #12]
  20508. }
  20509. /* Configure the CSR Clock Range */
  20510. (heth->Instance)->MACMDIOAR = (uint32_t)tmpreg;
  20511. 80091ac: 687b ldr r3, [r7, #4]
  20512. 80091ae: 681b ldr r3, [r3, #0]
  20513. 80091b0: 68fa ldr r2, [r7, #12]
  20514. 80091b2: f8c3 2200 str.w r2, [r3, #512] @ 0x200
  20515. }
  20516. 80091b6: bf00 nop
  20517. 80091b8: 3710 adds r7, #16
  20518. 80091ba: 46bd mov sp, r7
  20519. 80091bc: bd80 pop {r7, pc}
  20520. 80091be: bf00 nop
  20521. 80091c0: 02160ebf .word 0x02160ebf
  20522. 80091c4: 03938700 .word 0x03938700
  20523. 80091c8: 05f5e0ff .word 0x05f5e0ff
  20524. 80091cc: 08f0d17f .word 0x08f0d17f
  20525. 80091d0: 0ee6b27f .word 0x0ee6b27f
  20526. 080091d4 <HAL_ETH_GetDMAError>:
  20527. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  20528. * the configuration information for ETHERNET module
  20529. * @retval ETH DMA Error Code
  20530. */
  20531. uint32_t HAL_ETH_GetDMAError(const ETH_HandleTypeDef *heth)
  20532. {
  20533. 80091d4: b480 push {r7}
  20534. 80091d6: b083 sub sp, #12
  20535. 80091d8: af00 add r7, sp, #0
  20536. 80091da: 6078 str r0, [r7, #4]
  20537. return heth->DMAErrorCode;
  20538. 80091dc: 687b ldr r3, [r7, #4]
  20539. 80091de: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  20540. }
  20541. 80091e2: 4618 mov r0, r3
  20542. 80091e4: 370c adds r7, #12
  20543. 80091e6: 46bd mov sp, r7
  20544. 80091e8: f85d 7b04 ldr.w r7, [sp], #4
  20545. 80091ec: 4770 bx lr
  20546. ...
  20547. 080091f0 <ETH_SetMACConfig>:
  20548. /** @addtogroup ETH_Private_Functions ETH Private Functions
  20549. * @{
  20550. */
  20551. static void ETH_SetMACConfig(ETH_HandleTypeDef *heth, const ETH_MACConfigTypeDef *macconf)
  20552. {
  20553. 80091f0: b480 push {r7}
  20554. 80091f2: b085 sub sp, #20
  20555. 80091f4: af00 add r7, sp, #0
  20556. 80091f6: 6078 str r0, [r7, #4]
  20557. 80091f8: 6039 str r1, [r7, #0]
  20558. uint32_t macregval;
  20559. /*------------------------ MACCR Configuration --------------------*/
  20560. macregval = (macconf->InterPacketGapVal |
  20561. 80091fa: 683b ldr r3, [r7, #0]
  20562. 80091fc: 689a ldr r2, [r3, #8]
  20563. macconf->SourceAddrControl |
  20564. 80091fe: 683b ldr r3, [r7, #0]
  20565. 8009200: 681b ldr r3, [r3, #0]
  20566. macregval = (macconf->InterPacketGapVal |
  20567. 8009202: 431a orrs r2, r3
  20568. ((uint32_t)macconf->ChecksumOffload << 27) |
  20569. 8009204: 683b ldr r3, [r7, #0]
  20570. 8009206: 791b ldrb r3, [r3, #4]
  20571. 8009208: 06db lsls r3, r3, #27
  20572. macconf->SourceAddrControl |
  20573. 800920a: 431a orrs r2, r3
  20574. ((uint32_t)macconf->GiantPacketSizeLimitControl << 23) |
  20575. 800920c: 683b ldr r3, [r7, #0]
  20576. 800920e: 7b1b ldrb r3, [r3, #12]
  20577. 8009210: 05db lsls r3, r3, #23
  20578. ((uint32_t)macconf->ChecksumOffload << 27) |
  20579. 8009212: 431a orrs r2, r3
  20580. ((uint32_t)macconf->Support2KPacket << 22) |
  20581. 8009214: 683b ldr r3, [r7, #0]
  20582. 8009216: 7b5b ldrb r3, [r3, #13]
  20583. 8009218: 059b lsls r3, r3, #22
  20584. ((uint32_t)macconf->GiantPacketSizeLimitControl << 23) |
  20585. 800921a: 431a orrs r2, r3
  20586. ((uint32_t)macconf->CRCStripTypePacket << 21) |
  20587. 800921c: 683b ldr r3, [r7, #0]
  20588. 800921e: 7b9b ldrb r3, [r3, #14]
  20589. 8009220: 055b lsls r3, r3, #21
  20590. ((uint32_t)macconf->Support2KPacket << 22) |
  20591. 8009222: 431a orrs r2, r3
  20592. ((uint32_t)macconf->AutomaticPadCRCStrip << 20) |
  20593. 8009224: 683b ldr r3, [r7, #0]
  20594. 8009226: 7bdb ldrb r3, [r3, #15]
  20595. 8009228: 051b lsls r3, r3, #20
  20596. ((uint32_t)macconf->CRCStripTypePacket << 21) |
  20597. 800922a: 4313 orrs r3, r2
  20598. ((uint32_t)((macconf->Watchdog == DISABLE) ? 1U : 0U) << 19) |
  20599. 800922c: 683a ldr r2, [r7, #0]
  20600. 800922e: 7c12 ldrb r2, [r2, #16]
  20601. 8009230: 2a00 cmp r2, #0
  20602. 8009232: d102 bne.n 800923a <ETH_SetMACConfig+0x4a>
  20603. 8009234: f44f 2200 mov.w r2, #524288 @ 0x80000
  20604. 8009238: e000 b.n 800923c <ETH_SetMACConfig+0x4c>
  20605. 800923a: 2200 movs r2, #0
  20606. ((uint32_t)macconf->AutomaticPadCRCStrip << 20) |
  20607. 800923c: 4313 orrs r3, r2
  20608. ((uint32_t)((macconf->Jabber == DISABLE) ? 1U : 0U) << 17) |
  20609. 800923e: 683a ldr r2, [r7, #0]
  20610. 8009240: 7c52 ldrb r2, [r2, #17]
  20611. 8009242: 2a00 cmp r2, #0
  20612. 8009244: d102 bne.n 800924c <ETH_SetMACConfig+0x5c>
  20613. 8009246: f44f 3200 mov.w r2, #131072 @ 0x20000
  20614. 800924a: e000 b.n 800924e <ETH_SetMACConfig+0x5e>
  20615. 800924c: 2200 movs r2, #0
  20616. ((uint32_t)((macconf->Watchdog == DISABLE) ? 1U : 0U) << 19) |
  20617. 800924e: 431a orrs r2, r3
  20618. ((uint32_t)macconf->JumboPacket << 16) |
  20619. 8009250: 683b ldr r3, [r7, #0]
  20620. 8009252: 7c9b ldrb r3, [r3, #18]
  20621. 8009254: 041b lsls r3, r3, #16
  20622. ((uint32_t)((macconf->Jabber == DISABLE) ? 1U : 0U) << 17) |
  20623. 8009256: 431a orrs r2, r3
  20624. macconf->Speed |
  20625. 8009258: 683b ldr r3, [r7, #0]
  20626. 800925a: 695b ldr r3, [r3, #20]
  20627. ((uint32_t)macconf->JumboPacket << 16) |
  20628. 800925c: 431a orrs r2, r3
  20629. macconf->DuplexMode |
  20630. 800925e: 683b ldr r3, [r7, #0]
  20631. 8009260: 699b ldr r3, [r3, #24]
  20632. macconf->Speed |
  20633. 8009262: 431a orrs r2, r3
  20634. ((uint32_t)macconf->LoopbackMode << 12) |
  20635. 8009264: 683b ldr r3, [r7, #0]
  20636. 8009266: 7f1b ldrb r3, [r3, #28]
  20637. 8009268: 031b lsls r3, r3, #12
  20638. macconf->DuplexMode |
  20639. 800926a: 431a orrs r2, r3
  20640. ((uint32_t)macconf->CarrierSenseBeforeTransmit << 11) |
  20641. 800926c: 683b ldr r3, [r7, #0]
  20642. 800926e: 7f5b ldrb r3, [r3, #29]
  20643. 8009270: 02db lsls r3, r3, #11
  20644. ((uint32_t)macconf->LoopbackMode << 12) |
  20645. 8009272: 4313 orrs r3, r2
  20646. ((uint32_t)((macconf->ReceiveOwn == DISABLE) ? 1U : 0U) << 10) |
  20647. 8009274: 683a ldr r2, [r7, #0]
  20648. 8009276: 7f92 ldrb r2, [r2, #30]
  20649. 8009278: 2a00 cmp r2, #0
  20650. 800927a: d102 bne.n 8009282 <ETH_SetMACConfig+0x92>
  20651. 800927c: f44f 6280 mov.w r2, #1024 @ 0x400
  20652. 8009280: e000 b.n 8009284 <ETH_SetMACConfig+0x94>
  20653. 8009282: 2200 movs r2, #0
  20654. ((uint32_t)macconf->CarrierSenseBeforeTransmit << 11) |
  20655. 8009284: 431a orrs r2, r3
  20656. ((uint32_t)macconf->CarrierSenseDuringTransmit << 9) |
  20657. 8009286: 683b ldr r3, [r7, #0]
  20658. 8009288: 7fdb ldrb r3, [r3, #31]
  20659. 800928a: 025b lsls r3, r3, #9
  20660. ((uint32_t)((macconf->ReceiveOwn == DISABLE) ? 1U : 0U) << 10) |
  20661. 800928c: 4313 orrs r3, r2
  20662. ((uint32_t)((macconf->RetryTransmission == DISABLE) ? 1U : 0U) << 8) |
  20663. 800928e: 683a ldr r2, [r7, #0]
  20664. 8009290: f892 2020 ldrb.w r2, [r2, #32]
  20665. 8009294: 2a00 cmp r2, #0
  20666. 8009296: d102 bne.n 800929e <ETH_SetMACConfig+0xae>
  20667. 8009298: f44f 7280 mov.w r2, #256 @ 0x100
  20668. 800929c: e000 b.n 80092a0 <ETH_SetMACConfig+0xb0>
  20669. 800929e: 2200 movs r2, #0
  20670. ((uint32_t)macconf->CarrierSenseDuringTransmit << 9) |
  20671. 80092a0: 431a orrs r2, r3
  20672. macconf->BackOffLimit |
  20673. 80092a2: 683b ldr r3, [r7, #0]
  20674. 80092a4: 6a5b ldr r3, [r3, #36] @ 0x24
  20675. ((uint32_t)((macconf->RetryTransmission == DISABLE) ? 1U : 0U) << 8) |
  20676. 80092a6: 431a orrs r2, r3
  20677. ((uint32_t)macconf->DeferralCheck << 4) |
  20678. 80092a8: 683b ldr r3, [r7, #0]
  20679. 80092aa: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  20680. 80092ae: 011b lsls r3, r3, #4
  20681. macconf->BackOffLimit |
  20682. 80092b0: 431a orrs r2, r3
  20683. macconf->PreambleLength);
  20684. 80092b2: 683b ldr r3, [r7, #0]
  20685. 80092b4: 6adb ldr r3, [r3, #44] @ 0x2c
  20686. macregval = (macconf->InterPacketGapVal |
  20687. 80092b6: 4313 orrs r3, r2
  20688. 80092b8: 60fb str r3, [r7, #12]
  20689. /* Write to MACCR */
  20690. MODIFY_REG(heth->Instance->MACCR, ETH_MACCR_MASK, macregval);
  20691. 80092ba: 687b ldr r3, [r7, #4]
  20692. 80092bc: 681b ldr r3, [r3, #0]
  20693. 80092be: 681a ldr r2, [r3, #0]
  20694. 80092c0: 4b56 ldr r3, [pc, #344] @ (800941c <ETH_SetMACConfig+0x22c>)
  20695. 80092c2: 4013 ands r3, r2
  20696. 80092c4: 687a ldr r2, [r7, #4]
  20697. 80092c6: 6812 ldr r2, [r2, #0]
  20698. 80092c8: 68f9 ldr r1, [r7, #12]
  20699. 80092ca: 430b orrs r3, r1
  20700. 80092cc: 6013 str r3, [r2, #0]
  20701. /*------------------------ MACECR Configuration --------------------*/
  20702. macregval = ((macconf->ExtendedInterPacketGapVal << 25) |
  20703. 80092ce: 683b ldr r3, [r7, #0]
  20704. 80092d0: 6bdb ldr r3, [r3, #60] @ 0x3c
  20705. 80092d2: 065a lsls r2, r3, #25
  20706. ((uint32_t)macconf->ExtendedInterPacketGap << 24) |
  20707. 80092d4: 683b ldr r3, [r7, #0]
  20708. 80092d6: f893 3038 ldrb.w r3, [r3, #56] @ 0x38
  20709. 80092da: 061b lsls r3, r3, #24
  20710. macregval = ((macconf->ExtendedInterPacketGapVal << 25) |
  20711. 80092dc: 431a orrs r2, r3
  20712. ((uint32_t)macconf->UnicastSlowProtocolPacketDetect << 18) |
  20713. 80092de: 683b ldr r3, [r7, #0]
  20714. 80092e0: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  20715. 80092e4: 049b lsls r3, r3, #18
  20716. ((uint32_t)macconf->ExtendedInterPacketGap << 24) |
  20717. 80092e6: 431a orrs r2, r3
  20718. ((uint32_t)macconf->SlowProtocolDetect << 17) |
  20719. 80092e8: 683b ldr r3, [r7, #0]
  20720. 80092ea: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  20721. 80092ee: 045b lsls r3, r3, #17
  20722. ((uint32_t)macconf->UnicastSlowProtocolPacketDetect << 18) |
  20723. 80092f0: 4313 orrs r3, r2
  20724. ((uint32_t)((macconf->CRCCheckingRxPackets == DISABLE) ? 1U : 0U) << 16) |
  20725. 80092f2: 683a ldr r2, [r7, #0]
  20726. 80092f4: f892 2032 ldrb.w r2, [r2, #50] @ 0x32
  20727. 80092f8: 2a00 cmp r2, #0
  20728. 80092fa: d102 bne.n 8009302 <ETH_SetMACConfig+0x112>
  20729. 80092fc: f44f 3280 mov.w r2, #65536 @ 0x10000
  20730. 8009300: e000 b.n 8009304 <ETH_SetMACConfig+0x114>
  20731. 8009302: 2200 movs r2, #0
  20732. ((uint32_t)macconf->SlowProtocolDetect << 17) |
  20733. 8009304: 431a orrs r2, r3
  20734. macconf->GiantPacketSizeLimit);
  20735. 8009306: 683b ldr r3, [r7, #0]
  20736. 8009308: 6b5b ldr r3, [r3, #52] @ 0x34
  20737. macregval = ((macconf->ExtendedInterPacketGapVal << 25) |
  20738. 800930a: 4313 orrs r3, r2
  20739. 800930c: 60fb str r3, [r7, #12]
  20740. /* Write to MACECR */
  20741. MODIFY_REG(heth->Instance->MACECR, ETH_MACECR_MASK, macregval);
  20742. 800930e: 687b ldr r3, [r7, #4]
  20743. 8009310: 681b ldr r3, [r3, #0]
  20744. 8009312: 685a ldr r2, [r3, #4]
  20745. 8009314: 4b42 ldr r3, [pc, #264] @ (8009420 <ETH_SetMACConfig+0x230>)
  20746. 8009316: 4013 ands r3, r2
  20747. 8009318: 687a ldr r2, [r7, #4]
  20748. 800931a: 6812 ldr r2, [r2, #0]
  20749. 800931c: 68f9 ldr r1, [r7, #12]
  20750. 800931e: 430b orrs r3, r1
  20751. 8009320: 6053 str r3, [r2, #4]
  20752. /*------------------------ MACWTR Configuration --------------------*/
  20753. macregval = (((uint32_t)macconf->ProgrammableWatchdog << 8) |
  20754. 8009322: 683b ldr r3, [r7, #0]
  20755. 8009324: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  20756. 8009328: 021a lsls r2, r3, #8
  20757. macconf->WatchdogTimeout);
  20758. 800932a: 683b ldr r3, [r7, #0]
  20759. 800932c: 6c5b ldr r3, [r3, #68] @ 0x44
  20760. macregval = (((uint32_t)macconf->ProgrammableWatchdog << 8) |
  20761. 800932e: 4313 orrs r3, r2
  20762. 8009330: 60fb str r3, [r7, #12]
  20763. /* Write to MACWTR */
  20764. MODIFY_REG(heth->Instance->MACWTR, ETH_MACWTR_MASK, macregval);
  20765. 8009332: 687b ldr r3, [r7, #4]
  20766. 8009334: 681b ldr r3, [r3, #0]
  20767. 8009336: 68da ldr r2, [r3, #12]
  20768. 8009338: 4b3a ldr r3, [pc, #232] @ (8009424 <ETH_SetMACConfig+0x234>)
  20769. 800933a: 4013 ands r3, r2
  20770. 800933c: 687a ldr r2, [r7, #4]
  20771. 800933e: 6812 ldr r2, [r2, #0]
  20772. 8009340: 68f9 ldr r1, [r7, #12]
  20773. 8009342: 430b orrs r3, r1
  20774. 8009344: 60d3 str r3, [r2, #12]
  20775. /*------------------------ MACTFCR Configuration --------------------*/
  20776. macregval = (((uint32_t)macconf->TransmitFlowControl << 1) |
  20777. 8009346: 683b ldr r3, [r7, #0]
  20778. 8009348: f893 3054 ldrb.w r3, [r3, #84] @ 0x54
  20779. 800934c: 005a lsls r2, r3, #1
  20780. macconf->PauseLowThreshold |
  20781. 800934e: 683b ldr r3, [r7, #0]
  20782. 8009350: 6d1b ldr r3, [r3, #80] @ 0x50
  20783. macregval = (((uint32_t)macconf->TransmitFlowControl << 1) |
  20784. 8009352: 4313 orrs r3, r2
  20785. ((uint32_t)((macconf->ZeroQuantaPause == DISABLE) ? 1U : 0U) << 7) |
  20786. 8009354: 683a ldr r2, [r7, #0]
  20787. 8009356: f892 204c ldrb.w r2, [r2, #76] @ 0x4c
  20788. 800935a: 2a00 cmp r2, #0
  20789. 800935c: d101 bne.n 8009362 <ETH_SetMACConfig+0x172>
  20790. 800935e: 2280 movs r2, #128 @ 0x80
  20791. 8009360: e000 b.n 8009364 <ETH_SetMACConfig+0x174>
  20792. 8009362: 2200 movs r2, #0
  20793. macconf->PauseLowThreshold |
  20794. 8009364: 431a orrs r2, r3
  20795. (macconf->PauseTime << 16));
  20796. 8009366: 683b ldr r3, [r7, #0]
  20797. 8009368: 6c9b ldr r3, [r3, #72] @ 0x48
  20798. 800936a: 041b lsls r3, r3, #16
  20799. macregval = (((uint32_t)macconf->TransmitFlowControl << 1) |
  20800. 800936c: 4313 orrs r3, r2
  20801. 800936e: 60fb str r3, [r7, #12]
  20802. /* Write to MACTFCR */
  20803. MODIFY_REG(heth->Instance->MACTFCR, ETH_MACTFCR_MASK, macregval);
  20804. 8009370: 687b ldr r3, [r7, #4]
  20805. 8009372: 681b ldr r3, [r3, #0]
  20806. 8009374: 6f1a ldr r2, [r3, #112] @ 0x70
  20807. 8009376: f64f 730d movw r3, #65293 @ 0xff0d
  20808. 800937a: 4013 ands r3, r2
  20809. 800937c: 687a ldr r2, [r7, #4]
  20810. 800937e: 6812 ldr r2, [r2, #0]
  20811. 8009380: 68f9 ldr r1, [r7, #12]
  20812. 8009382: 430b orrs r3, r1
  20813. 8009384: 6713 str r3, [r2, #112] @ 0x70
  20814. /*------------------------ MACRFCR Configuration --------------------*/
  20815. macregval = ((uint32_t)macconf->ReceiveFlowControl |
  20816. 8009386: 683b ldr r3, [r7, #0]
  20817. 8009388: f893 3056 ldrb.w r3, [r3, #86] @ 0x56
  20818. 800938c: 461a mov r2, r3
  20819. ((uint32_t)macconf->UnicastPausePacketDetect << 1));
  20820. 800938e: 683b ldr r3, [r7, #0]
  20821. 8009390: f893 3055 ldrb.w r3, [r3, #85] @ 0x55
  20822. 8009394: 005b lsls r3, r3, #1
  20823. macregval = ((uint32_t)macconf->ReceiveFlowControl |
  20824. 8009396: 4313 orrs r3, r2
  20825. 8009398: 60fb str r3, [r7, #12]
  20826. /* Write to MACRFCR */
  20827. MODIFY_REG(heth->Instance->MACRFCR, ETH_MACRFCR_MASK, macregval);
  20828. 800939a: 687b ldr r3, [r7, #4]
  20829. 800939c: 681b ldr r3, [r3, #0]
  20830. 800939e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  20831. 80093a2: f023 0103 bic.w r1, r3, #3
  20832. 80093a6: 687b ldr r3, [r7, #4]
  20833. 80093a8: 681b ldr r3, [r3, #0]
  20834. 80093aa: 68fa ldr r2, [r7, #12]
  20835. 80093ac: 430a orrs r2, r1
  20836. 80093ae: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  20837. /*------------------------ MTLTQOMR Configuration --------------------*/
  20838. /* Write to MTLTQOMR */
  20839. MODIFY_REG(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_MASK, macconf->TransmitQueueMode);
  20840. 80093b2: 687b ldr r3, [r7, #4]
  20841. 80093b4: 681b ldr r3, [r3, #0]
  20842. 80093b6: f8d3 3d00 ldr.w r3, [r3, #3328] @ 0xd00
  20843. 80093ba: f023 0172 bic.w r1, r3, #114 @ 0x72
  20844. 80093be: 683b ldr r3, [r7, #0]
  20845. 80093c0: 6d9a ldr r2, [r3, #88] @ 0x58
  20846. 80093c2: 687b ldr r3, [r7, #4]
  20847. 80093c4: 681b ldr r3, [r3, #0]
  20848. 80093c6: 430a orrs r2, r1
  20849. 80093c8: f8c3 2d00 str.w r2, [r3, #3328] @ 0xd00
  20850. /*------------------------ MTLRQOMR Configuration --------------------*/
  20851. macregval = (macconf->ReceiveQueueMode |
  20852. 80093cc: 683b ldr r3, [r7, #0]
  20853. 80093ce: 6ddb ldr r3, [r3, #92] @ 0x5c
  20854. ((uint32_t)((macconf->DropTCPIPChecksumErrorPacket == DISABLE) ? 1U : 0U) << 6) |
  20855. 80093d0: 683a ldr r2, [r7, #0]
  20856. 80093d2: f892 2060 ldrb.w r2, [r2, #96] @ 0x60
  20857. 80093d6: 2a00 cmp r2, #0
  20858. 80093d8: d101 bne.n 80093de <ETH_SetMACConfig+0x1ee>
  20859. 80093da: 2240 movs r2, #64 @ 0x40
  20860. 80093dc: e000 b.n 80093e0 <ETH_SetMACConfig+0x1f0>
  20861. 80093de: 2200 movs r2, #0
  20862. macregval = (macconf->ReceiveQueueMode |
  20863. 80093e0: 431a orrs r2, r3
  20864. ((uint32_t)macconf->ForwardRxErrorPacket << 4) |
  20865. 80093e2: 683b ldr r3, [r7, #0]
  20866. 80093e4: f893 3061 ldrb.w r3, [r3, #97] @ 0x61
  20867. 80093e8: 011b lsls r3, r3, #4
  20868. ((uint32_t)((macconf->DropTCPIPChecksumErrorPacket == DISABLE) ? 1U : 0U) << 6) |
  20869. 80093ea: 431a orrs r2, r3
  20870. ((uint32_t)macconf->ForwardRxUndersizedGoodPacket << 3));
  20871. 80093ec: 683b ldr r3, [r7, #0]
  20872. 80093ee: f893 3062 ldrb.w r3, [r3, #98] @ 0x62
  20873. 80093f2: 00db lsls r3, r3, #3
  20874. macregval = (macconf->ReceiveQueueMode |
  20875. 80093f4: 4313 orrs r3, r2
  20876. 80093f6: 60fb str r3, [r7, #12]
  20877. /* Write to MTLRQOMR */
  20878. MODIFY_REG(heth->Instance->MTLRQOMR, ETH_MTLRQOMR_MASK, macregval);
  20879. 80093f8: 687b ldr r3, [r7, #4]
  20880. 80093fa: 681b ldr r3, [r3, #0]
  20881. 80093fc: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  20882. 8009400: f023 017b bic.w r1, r3, #123 @ 0x7b
  20883. 8009404: 687b ldr r3, [r7, #4]
  20884. 8009406: 681b ldr r3, [r3, #0]
  20885. 8009408: 68fa ldr r2, [r7, #12]
  20886. 800940a: 430a orrs r2, r1
  20887. 800940c: f8c3 2d30 str.w r2, [r3, #3376] @ 0xd30
  20888. }
  20889. 8009410: bf00 nop
  20890. 8009412: 3714 adds r7, #20
  20891. 8009414: 46bd mov sp, r7
  20892. 8009416: f85d 7b04 ldr.w r7, [sp], #4
  20893. 800941a: 4770 bx lr
  20894. 800941c: 00048083 .word 0x00048083
  20895. 8009420: c0f88000 .word 0xc0f88000
  20896. 8009424: fffffef0 .word 0xfffffef0
  20897. 08009428 <ETH_SetDMAConfig>:
  20898. static void ETH_SetDMAConfig(ETH_HandleTypeDef *heth, const ETH_DMAConfigTypeDef *dmaconf)
  20899. {
  20900. 8009428: b480 push {r7}
  20901. 800942a: b085 sub sp, #20
  20902. 800942c: af00 add r7, sp, #0
  20903. 800942e: 6078 str r0, [r7, #4]
  20904. 8009430: 6039 str r1, [r7, #0]
  20905. uint32_t dmaregval;
  20906. /*------------------------ DMAMR Configuration --------------------*/
  20907. MODIFY_REG(heth->Instance->DMAMR, ETH_DMAMR_MASK, dmaconf->DMAArbitration);
  20908. 8009432: 687b ldr r3, [r7, #4]
  20909. 8009434: 681b ldr r3, [r3, #0]
  20910. 8009436: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20911. 800943a: 681a ldr r2, [r3, #0]
  20912. 800943c: 4b38 ldr r3, [pc, #224] @ (8009520 <ETH_SetDMAConfig+0xf8>)
  20913. 800943e: 4013 ands r3, r2
  20914. 8009440: 683a ldr r2, [r7, #0]
  20915. 8009442: 6811 ldr r1, [r2, #0]
  20916. 8009444: 687a ldr r2, [r7, #4]
  20917. 8009446: 6812 ldr r2, [r2, #0]
  20918. 8009448: 430b orrs r3, r1
  20919. 800944a: f502 5280 add.w r2, r2, #4096 @ 0x1000
  20920. 800944e: 6013 str r3, [r2, #0]
  20921. /*------------------------ DMASBMR Configuration --------------------*/
  20922. dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) |
  20923. 8009450: 683b ldr r3, [r7, #0]
  20924. 8009452: 791b ldrb r3, [r3, #4]
  20925. 8009454: 031a lsls r2, r3, #12
  20926. dmaconf->BurstMode |
  20927. 8009456: 683b ldr r3, [r7, #0]
  20928. 8009458: 689b ldr r3, [r3, #8]
  20929. dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) |
  20930. 800945a: 431a orrs r2, r3
  20931. ((uint32_t)dmaconf->RebuildINCRxBurst << 15));
  20932. 800945c: 683b ldr r3, [r7, #0]
  20933. 800945e: 7b1b ldrb r3, [r3, #12]
  20934. 8009460: 03db lsls r3, r3, #15
  20935. dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) |
  20936. 8009462: 4313 orrs r3, r2
  20937. 8009464: 60fb str r3, [r7, #12]
  20938. MODIFY_REG(heth->Instance->DMASBMR, ETH_DMASBMR_MASK, dmaregval);
  20939. 8009466: 687b ldr r3, [r7, #4]
  20940. 8009468: 681b ldr r3, [r3, #0]
  20941. 800946a: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20942. 800946e: 685a ldr r2, [r3, #4]
  20943. 8009470: 4b2c ldr r3, [pc, #176] @ (8009524 <ETH_SetDMAConfig+0xfc>)
  20944. 8009472: 4013 ands r3, r2
  20945. 8009474: 687a ldr r2, [r7, #4]
  20946. 8009476: 6812 ldr r2, [r2, #0]
  20947. 8009478: 68f9 ldr r1, [r7, #12]
  20948. 800947a: 430b orrs r3, r1
  20949. 800947c: f502 5280 add.w r2, r2, #4096 @ 0x1000
  20950. 8009480: 6053 str r3, [r2, #4]
  20951. /*------------------------ DMACCR Configuration --------------------*/
  20952. dmaregval = (((uint32_t)dmaconf->PBLx8Mode << 16) |
  20953. 8009482: 683b ldr r3, [r7, #0]
  20954. 8009484: 7b5b ldrb r3, [r3, #13]
  20955. 8009486: 041a lsls r2, r3, #16
  20956. dmaconf->MaximumSegmentSize);
  20957. 8009488: 683b ldr r3, [r7, #0]
  20958. 800948a: 6a1b ldr r3, [r3, #32]
  20959. dmaregval = (((uint32_t)dmaconf->PBLx8Mode << 16) |
  20960. 800948c: 4313 orrs r3, r2
  20961. 800948e: 60fb str r3, [r7, #12]
  20962. MODIFY_REG(heth->Instance->DMACCR, ETH_DMACCR_MASK, dmaregval);
  20963. 8009490: 687b ldr r3, [r7, #4]
  20964. 8009492: 681b ldr r3, [r3, #0]
  20965. 8009494: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20966. 8009498: f8d3 2100 ldr.w r2, [r3, #256] @ 0x100
  20967. 800949c: 4b22 ldr r3, [pc, #136] @ (8009528 <ETH_SetDMAConfig+0x100>)
  20968. 800949e: 4013 ands r3, r2
  20969. 80094a0: 687a ldr r2, [r7, #4]
  20970. 80094a2: 6812 ldr r2, [r2, #0]
  20971. 80094a4: 68f9 ldr r1, [r7, #12]
  20972. 80094a6: 430b orrs r3, r1
  20973. 80094a8: f502 5280 add.w r2, r2, #4096 @ 0x1000
  20974. 80094ac: f8c2 3100 str.w r3, [r2, #256] @ 0x100
  20975. /*------------------------ DMACTCR Configuration --------------------*/
  20976. dmaregval = (dmaconf->TxDMABurstLength |
  20977. 80094b0: 683b ldr r3, [r7, #0]
  20978. 80094b2: 691a ldr r2, [r3, #16]
  20979. ((uint32_t)dmaconf->SecondPacketOperate << 4) |
  20980. 80094b4: 683b ldr r3, [r7, #0]
  20981. 80094b6: 7d1b ldrb r3, [r3, #20]
  20982. 80094b8: 011b lsls r3, r3, #4
  20983. dmaregval = (dmaconf->TxDMABurstLength |
  20984. 80094ba: 431a orrs r2, r3
  20985. ((uint32_t)dmaconf->TCPSegmentation << 12));
  20986. 80094bc: 683b ldr r3, [r7, #0]
  20987. 80094be: 7f5b ldrb r3, [r3, #29]
  20988. 80094c0: 031b lsls r3, r3, #12
  20989. dmaregval = (dmaconf->TxDMABurstLength |
  20990. 80094c2: 4313 orrs r3, r2
  20991. 80094c4: 60fb str r3, [r7, #12]
  20992. MODIFY_REG(heth->Instance->DMACTCR, ETH_DMACTCR_MASK, dmaregval);
  20993. 80094c6: 687b ldr r3, [r7, #4]
  20994. 80094c8: 681b ldr r3, [r3, #0]
  20995. 80094ca: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20996. 80094ce: f8d3 2104 ldr.w r2, [r3, #260] @ 0x104
  20997. 80094d2: 4b16 ldr r3, [pc, #88] @ (800952c <ETH_SetDMAConfig+0x104>)
  20998. 80094d4: 4013 ands r3, r2
  20999. 80094d6: 687a ldr r2, [r7, #4]
  21000. 80094d8: 6812 ldr r2, [r2, #0]
  21001. 80094da: 68f9 ldr r1, [r7, #12]
  21002. 80094dc: 430b orrs r3, r1
  21003. 80094de: f502 5280 add.w r2, r2, #4096 @ 0x1000
  21004. 80094e2: f8c2 3104 str.w r3, [r2, #260] @ 0x104
  21005. /*------------------------ DMACRCR Configuration --------------------*/
  21006. dmaregval = (((uint32_t)dmaconf->FlushRxPacket << 31) |
  21007. 80094e6: 683b ldr r3, [r7, #0]
  21008. 80094e8: 7f1b ldrb r3, [r3, #28]
  21009. 80094ea: 07da lsls r2, r3, #31
  21010. dmaconf->RxDMABurstLength);
  21011. 80094ec: 683b ldr r3, [r7, #0]
  21012. 80094ee: 699b ldr r3, [r3, #24]
  21013. dmaregval = (((uint32_t)dmaconf->FlushRxPacket << 31) |
  21014. 80094f0: 4313 orrs r3, r2
  21015. 80094f2: 60fb str r3, [r7, #12]
  21016. /* Write to DMACRCR */
  21017. MODIFY_REG(heth->Instance->DMACRCR, ETH_DMACRCR_MASK, dmaregval);
  21018. 80094f4: 687b ldr r3, [r7, #4]
  21019. 80094f6: 681b ldr r3, [r3, #0]
  21020. 80094f8: f503 5380 add.w r3, r3, #4096 @ 0x1000
  21021. 80094fc: f8d3 2108 ldr.w r2, [r3, #264] @ 0x108
  21022. 8009500: 4b0b ldr r3, [pc, #44] @ (8009530 <ETH_SetDMAConfig+0x108>)
  21023. 8009502: 4013 ands r3, r2
  21024. 8009504: 687a ldr r2, [r7, #4]
  21025. 8009506: 6812 ldr r2, [r2, #0]
  21026. 8009508: 68f9 ldr r1, [r7, #12]
  21027. 800950a: 430b orrs r3, r1
  21028. 800950c: f502 5280 add.w r2, r2, #4096 @ 0x1000
  21029. 8009510: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  21030. }
  21031. 8009514: bf00 nop
  21032. 8009516: 3714 adds r7, #20
  21033. 8009518: 46bd mov sp, r7
  21034. 800951a: f85d 7b04 ldr.w r7, [sp], #4
  21035. 800951e: 4770 bx lr
  21036. 8009520: ffff87fd .word 0xffff87fd
  21037. 8009524: ffff2ffe .word 0xffff2ffe
  21038. 8009528: fffec000 .word 0xfffec000
  21039. 800952c: ffc0efef .word 0xffc0efef
  21040. 8009530: 7fc0ffff .word 0x7fc0ffff
  21041. 08009534 <ETH_MACDMAConfig>:
  21042. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  21043. * the configuration information for ETHERNET module
  21044. * @retval HAL status
  21045. */
  21046. static void ETH_MACDMAConfig(ETH_HandleTypeDef *heth)
  21047. {
  21048. 8009534: b580 push {r7, lr}
  21049. 8009536: b0a4 sub sp, #144 @ 0x90
  21050. 8009538: af00 add r7, sp, #0
  21051. 800953a: 6078 str r0, [r7, #4]
  21052. ETH_MACConfigTypeDef macDefaultConf;
  21053. ETH_DMAConfigTypeDef dmaDefaultConf;
  21054. /*--------------- ETHERNET MAC registers default Configuration --------------*/
  21055. macDefaultConf.AutomaticPadCRCStrip = ENABLE;
  21056. 800953c: 2301 movs r3, #1
  21057. 800953e: f887 303b strb.w r3, [r7, #59] @ 0x3b
  21058. macDefaultConf.BackOffLimit = ETH_BACKOFFLIMIT_10;
  21059. 8009542: 2300 movs r3, #0
  21060. 8009544: 653b str r3, [r7, #80] @ 0x50
  21061. macDefaultConf.CarrierSenseBeforeTransmit = DISABLE;
  21062. 8009546: 2300 movs r3, #0
  21063. 8009548: f887 3049 strb.w r3, [r7, #73] @ 0x49
  21064. macDefaultConf.CarrierSenseDuringTransmit = DISABLE;
  21065. 800954c: 2300 movs r3, #0
  21066. 800954e: f887 304b strb.w r3, [r7, #75] @ 0x4b
  21067. macDefaultConf.ChecksumOffload = ENABLE;
  21068. 8009552: 2301 movs r3, #1
  21069. 8009554: f887 3030 strb.w r3, [r7, #48] @ 0x30
  21070. macDefaultConf.CRCCheckingRxPackets = ENABLE;
  21071. 8009558: 2301 movs r3, #1
  21072. 800955a: f887 305e strb.w r3, [r7, #94] @ 0x5e
  21073. macDefaultConf.CRCStripTypePacket = ENABLE;
  21074. 800955e: 2301 movs r3, #1
  21075. 8009560: f887 303a strb.w r3, [r7, #58] @ 0x3a
  21076. macDefaultConf.DeferralCheck = DISABLE;
  21077. 8009564: 2300 movs r3, #0
  21078. 8009566: f887 3054 strb.w r3, [r7, #84] @ 0x54
  21079. macDefaultConf.DropTCPIPChecksumErrorPacket = ENABLE;
  21080. 800956a: 2301 movs r3, #1
  21081. 800956c: f887 308c strb.w r3, [r7, #140] @ 0x8c
  21082. macDefaultConf.DuplexMode = ETH_FULLDUPLEX_MODE;
  21083. 8009570: f44f 5300 mov.w r3, #8192 @ 0x2000
  21084. 8009574: 647b str r3, [r7, #68] @ 0x44
  21085. macDefaultConf.ExtendedInterPacketGap = DISABLE;
  21086. 8009576: 2300 movs r3, #0
  21087. 8009578: f887 3064 strb.w r3, [r7, #100] @ 0x64
  21088. macDefaultConf.ExtendedInterPacketGapVal = 0x0U;
  21089. 800957c: 2300 movs r3, #0
  21090. 800957e: 66bb str r3, [r7, #104] @ 0x68
  21091. macDefaultConf.ForwardRxErrorPacket = DISABLE;
  21092. 8009580: 2300 movs r3, #0
  21093. 8009582: f887 308d strb.w r3, [r7, #141] @ 0x8d
  21094. macDefaultConf.ForwardRxUndersizedGoodPacket = DISABLE;
  21095. 8009586: 2300 movs r3, #0
  21096. 8009588: f887 308e strb.w r3, [r7, #142] @ 0x8e
  21097. macDefaultConf.GiantPacketSizeLimit = 0x618U;
  21098. 800958c: f44f 63c3 mov.w r3, #1560 @ 0x618
  21099. 8009590: 663b str r3, [r7, #96] @ 0x60
  21100. macDefaultConf.GiantPacketSizeLimitControl = DISABLE;
  21101. 8009592: 2300 movs r3, #0
  21102. 8009594: f887 3038 strb.w r3, [r7, #56] @ 0x38
  21103. macDefaultConf.InterPacketGapVal = ETH_INTERPACKETGAP_96BIT;
  21104. 8009598: 2300 movs r3, #0
  21105. 800959a: 637b str r3, [r7, #52] @ 0x34
  21106. macDefaultConf.Jabber = ENABLE;
  21107. 800959c: 2301 movs r3, #1
  21108. 800959e: f887 303d strb.w r3, [r7, #61] @ 0x3d
  21109. macDefaultConf.JumboPacket = DISABLE;
  21110. 80095a2: 2300 movs r3, #0
  21111. 80095a4: f887 303e strb.w r3, [r7, #62] @ 0x3e
  21112. macDefaultConf.LoopbackMode = DISABLE;
  21113. 80095a8: 2300 movs r3, #0
  21114. 80095aa: f887 3048 strb.w r3, [r7, #72] @ 0x48
  21115. macDefaultConf.PauseLowThreshold = ETH_PAUSELOWTHRESHOLD_MINUS_4;
  21116. 80095ae: 2300 movs r3, #0
  21117. 80095b0: 67fb str r3, [r7, #124] @ 0x7c
  21118. macDefaultConf.PauseTime = 0x0U;
  21119. 80095b2: 2300 movs r3, #0
  21120. 80095b4: 677b str r3, [r7, #116] @ 0x74
  21121. macDefaultConf.PreambleLength = ETH_PREAMBLELENGTH_7;
  21122. 80095b6: 2300 movs r3, #0
  21123. 80095b8: 65bb str r3, [r7, #88] @ 0x58
  21124. macDefaultConf.ProgrammableWatchdog = DISABLE;
  21125. 80095ba: 2300 movs r3, #0
  21126. 80095bc: f887 306c strb.w r3, [r7, #108] @ 0x6c
  21127. macDefaultConf.ReceiveFlowControl = DISABLE;
  21128. 80095c0: 2300 movs r3, #0
  21129. 80095c2: f887 3082 strb.w r3, [r7, #130] @ 0x82
  21130. macDefaultConf.ReceiveOwn = ENABLE;
  21131. 80095c6: 2301 movs r3, #1
  21132. 80095c8: f887 304a strb.w r3, [r7, #74] @ 0x4a
  21133. macDefaultConf.ReceiveQueueMode = ETH_RECEIVESTOREFORWARD;
  21134. 80095cc: 2320 movs r3, #32
  21135. 80095ce: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  21136. macDefaultConf.RetryTransmission = ENABLE;
  21137. 80095d2: 2301 movs r3, #1
  21138. 80095d4: f887 304c strb.w r3, [r7, #76] @ 0x4c
  21139. macDefaultConf.SlowProtocolDetect = DISABLE;
  21140. 80095d8: 2300 movs r3, #0
  21141. 80095da: f887 305d strb.w r3, [r7, #93] @ 0x5d
  21142. macDefaultConf.SourceAddrControl = ETH_SOURCEADDRESS_REPLACE_ADDR0;
  21143. 80095de: f04f 5340 mov.w r3, #805306368 @ 0x30000000
  21144. 80095e2: 62fb str r3, [r7, #44] @ 0x2c
  21145. macDefaultConf.Speed = ETH_SPEED_100M;
  21146. 80095e4: f44f 4380 mov.w r3, #16384 @ 0x4000
  21147. 80095e8: 643b str r3, [r7, #64] @ 0x40
  21148. macDefaultConf.Support2KPacket = DISABLE;
  21149. 80095ea: 2300 movs r3, #0
  21150. 80095ec: f887 3039 strb.w r3, [r7, #57] @ 0x39
  21151. macDefaultConf.TransmitQueueMode = ETH_TRANSMITSTOREFORWARD;
  21152. 80095f0: 2302 movs r3, #2
  21153. 80095f2: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  21154. macDefaultConf.TransmitFlowControl = DISABLE;
  21155. 80095f6: 2300 movs r3, #0
  21156. 80095f8: f887 3080 strb.w r3, [r7, #128] @ 0x80
  21157. macDefaultConf.UnicastPausePacketDetect = DISABLE;
  21158. 80095fc: 2300 movs r3, #0
  21159. 80095fe: f887 3081 strb.w r3, [r7, #129] @ 0x81
  21160. macDefaultConf.UnicastSlowProtocolPacketDetect = DISABLE;
  21161. 8009602: 2300 movs r3, #0
  21162. 8009604: f887 305c strb.w r3, [r7, #92] @ 0x5c
  21163. macDefaultConf.Watchdog = ENABLE;
  21164. 8009608: 2301 movs r3, #1
  21165. 800960a: f887 303c strb.w r3, [r7, #60] @ 0x3c
  21166. macDefaultConf.WatchdogTimeout = ETH_MACWTR_WTO_2KB;
  21167. 800960e: 2300 movs r3, #0
  21168. 8009610: 673b str r3, [r7, #112] @ 0x70
  21169. macDefaultConf.ZeroQuantaPause = ENABLE;
  21170. 8009612: 2301 movs r3, #1
  21171. 8009614: f887 3078 strb.w r3, [r7, #120] @ 0x78
  21172. /* MAC default configuration */
  21173. ETH_SetMACConfig(heth, &macDefaultConf);
  21174. 8009618: f107 032c add.w r3, r7, #44 @ 0x2c
  21175. 800961c: 4619 mov r1, r3
  21176. 800961e: 6878 ldr r0, [r7, #4]
  21177. 8009620: f7ff fde6 bl 80091f0 <ETH_SetMACConfig>
  21178. /*--------------- ETHERNET DMA registers default Configuration --------------*/
  21179. dmaDefaultConf.AddressAlignedBeats = ENABLE;
  21180. 8009624: 2301 movs r3, #1
  21181. 8009626: 733b strb r3, [r7, #12]
  21182. dmaDefaultConf.BurstMode = ETH_BURSTLENGTH_FIXED;
  21183. 8009628: 2301 movs r3, #1
  21184. 800962a: 613b str r3, [r7, #16]
  21185. dmaDefaultConf.DMAArbitration = ETH_DMAARBITRATION_RX1_TX1;
  21186. 800962c: 2300 movs r3, #0
  21187. 800962e: 60bb str r3, [r7, #8]
  21188. dmaDefaultConf.FlushRxPacket = DISABLE;
  21189. 8009630: 2300 movs r3, #0
  21190. 8009632: f887 3024 strb.w r3, [r7, #36] @ 0x24
  21191. dmaDefaultConf.PBLx8Mode = DISABLE;
  21192. 8009636: 2300 movs r3, #0
  21193. 8009638: 757b strb r3, [r7, #21]
  21194. dmaDefaultConf.RebuildINCRxBurst = DISABLE;
  21195. 800963a: 2300 movs r3, #0
  21196. 800963c: 753b strb r3, [r7, #20]
  21197. dmaDefaultConf.RxDMABurstLength = ETH_RXDMABURSTLENGTH_32BEAT;
  21198. 800963e: f44f 1300 mov.w r3, #2097152 @ 0x200000
  21199. 8009642: 623b str r3, [r7, #32]
  21200. dmaDefaultConf.SecondPacketOperate = DISABLE;
  21201. 8009644: 2300 movs r3, #0
  21202. 8009646: 773b strb r3, [r7, #28]
  21203. dmaDefaultConf.TxDMABurstLength = ETH_TXDMABURSTLENGTH_32BEAT;
  21204. 8009648: f44f 1300 mov.w r3, #2097152 @ 0x200000
  21205. 800964c: 61bb str r3, [r7, #24]
  21206. dmaDefaultConf.TCPSegmentation = DISABLE;
  21207. 800964e: 2300 movs r3, #0
  21208. 8009650: f887 3025 strb.w r3, [r7, #37] @ 0x25
  21209. dmaDefaultConf.MaximumSegmentSize = ETH_SEGMENT_SIZE_DEFAULT;
  21210. 8009654: f44f 7306 mov.w r3, #536 @ 0x218
  21211. 8009658: 62bb str r3, [r7, #40] @ 0x28
  21212. /* DMA default configuration */
  21213. ETH_SetDMAConfig(heth, &dmaDefaultConf);
  21214. 800965a: f107 0308 add.w r3, r7, #8
  21215. 800965e: 4619 mov r1, r3
  21216. 8009660: 6878 ldr r0, [r7, #4]
  21217. 8009662: f7ff fee1 bl 8009428 <ETH_SetDMAConfig>
  21218. }
  21219. 8009666: bf00 nop
  21220. 8009668: 3790 adds r7, #144 @ 0x90
  21221. 800966a: 46bd mov sp, r7
  21222. 800966c: bd80 pop {r7, pc}
  21223. 0800966e <ETH_DMATxDescListInit>:
  21224. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  21225. * the configuration information for ETHERNET module
  21226. * @retval None
  21227. */
  21228. static void ETH_DMATxDescListInit(ETH_HandleTypeDef *heth)
  21229. {
  21230. 800966e: b480 push {r7}
  21231. 8009670: b085 sub sp, #20
  21232. 8009672: af00 add r7, sp, #0
  21233. 8009674: 6078 str r0, [r7, #4]
  21234. ETH_DMADescTypeDef *dmatxdesc;
  21235. uint32_t i;
  21236. /* Fill each DMATxDesc descriptor with the right values */
  21237. for (i = 0; i < (uint32_t)ETH_TX_DESC_CNT; i++)
  21238. 8009676: 2300 movs r3, #0
  21239. 8009678: 60fb str r3, [r7, #12]
  21240. 800967a: e01d b.n 80096b8 <ETH_DMATxDescListInit+0x4a>
  21241. {
  21242. dmatxdesc = heth->Init.TxDesc + i;
  21243. 800967c: 687b ldr r3, [r7, #4]
  21244. 800967e: 68d9 ldr r1, [r3, #12]
  21245. 8009680: 68fa ldr r2, [r7, #12]
  21246. 8009682: 4613 mov r3, r2
  21247. 8009684: 005b lsls r3, r3, #1
  21248. 8009686: 4413 add r3, r2
  21249. 8009688: 00db lsls r3, r3, #3
  21250. 800968a: 440b add r3, r1
  21251. 800968c: 60bb str r3, [r7, #8]
  21252. WRITE_REG(dmatxdesc->DESC0, 0x0U);
  21253. 800968e: 68bb ldr r3, [r7, #8]
  21254. 8009690: 2200 movs r2, #0
  21255. 8009692: 601a str r2, [r3, #0]
  21256. WRITE_REG(dmatxdesc->DESC1, 0x0U);
  21257. 8009694: 68bb ldr r3, [r7, #8]
  21258. 8009696: 2200 movs r2, #0
  21259. 8009698: 605a str r2, [r3, #4]
  21260. WRITE_REG(dmatxdesc->DESC2, 0x0U);
  21261. 800969a: 68bb ldr r3, [r7, #8]
  21262. 800969c: 2200 movs r2, #0
  21263. 800969e: 609a str r2, [r3, #8]
  21264. WRITE_REG(dmatxdesc->DESC3, 0x0U);
  21265. 80096a0: 68bb ldr r3, [r7, #8]
  21266. 80096a2: 2200 movs r2, #0
  21267. 80096a4: 60da str r2, [r3, #12]
  21268. WRITE_REG(heth->TxDescList.TxDesc[i], (uint32_t)dmatxdesc);
  21269. 80096a6: 68b9 ldr r1, [r7, #8]
  21270. 80096a8: 687b ldr r3, [r7, #4]
  21271. 80096aa: 68fa ldr r2, [r7, #12]
  21272. 80096ac: 3206 adds r2, #6
  21273. 80096ae: f843 1022 str.w r1, [r3, r2, lsl #2]
  21274. for (i = 0; i < (uint32_t)ETH_TX_DESC_CNT; i++)
  21275. 80096b2: 68fb ldr r3, [r7, #12]
  21276. 80096b4: 3301 adds r3, #1
  21277. 80096b6: 60fb str r3, [r7, #12]
  21278. 80096b8: 68fb ldr r3, [r7, #12]
  21279. 80096ba: 2b03 cmp r3, #3
  21280. 80096bc: d9de bls.n 800967c <ETH_DMATxDescListInit+0xe>
  21281. }
  21282. heth->TxDescList.CurTxDesc = 0;
  21283. 80096be: 687b ldr r3, [r7, #4]
  21284. 80096c0: 2200 movs r2, #0
  21285. 80096c2: 629a str r2, [r3, #40] @ 0x28
  21286. /* Set Transmit Descriptor Ring Length */
  21287. WRITE_REG(heth->Instance->DMACTDRLR, (ETH_TX_DESC_CNT - 1U));
  21288. 80096c4: 687b ldr r3, [r7, #4]
  21289. 80096c6: 681b ldr r3, [r3, #0]
  21290. 80096c8: f503 5380 add.w r3, r3, #4096 @ 0x1000
  21291. 80096cc: 461a mov r2, r3
  21292. 80096ce: 2303 movs r3, #3
  21293. 80096d0: f8c2 312c str.w r3, [r2, #300] @ 0x12c
  21294. /* Set Transmit Descriptor List Address */
  21295. WRITE_REG(heth->Instance->DMACTDLAR, (uint32_t) heth->Init.TxDesc);
  21296. 80096d4: 687b ldr r3, [r7, #4]
  21297. 80096d6: 68da ldr r2, [r3, #12]
  21298. 80096d8: 687b ldr r3, [r7, #4]
  21299. 80096da: 681b ldr r3, [r3, #0]
  21300. 80096dc: f503 5380 add.w r3, r3, #4096 @ 0x1000
  21301. 80096e0: f8c3 2114 str.w r2, [r3, #276] @ 0x114
  21302. /* Set Transmit Descriptor Tail pointer */
  21303. WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t) heth->Init.TxDesc);
  21304. 80096e4: 687b ldr r3, [r7, #4]
  21305. 80096e6: 68da ldr r2, [r3, #12]
  21306. 80096e8: 687b ldr r3, [r7, #4]
  21307. 80096ea: 681b ldr r3, [r3, #0]
  21308. 80096ec: f503 5380 add.w r3, r3, #4096 @ 0x1000
  21309. 80096f0: f8c3 2120 str.w r2, [r3, #288] @ 0x120
  21310. }
  21311. 80096f4: bf00 nop
  21312. 80096f6: 3714 adds r7, #20
  21313. 80096f8: 46bd mov sp, r7
  21314. 80096fa: f85d 7b04 ldr.w r7, [sp], #4
  21315. 80096fe: 4770 bx lr
  21316. 08009700 <ETH_DMARxDescListInit>:
  21317. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  21318. * the configuration information for ETHERNET module
  21319. * @retval None
  21320. */
  21321. static void ETH_DMARxDescListInit(ETH_HandleTypeDef *heth)
  21322. {
  21323. 8009700: b480 push {r7}
  21324. 8009702: b085 sub sp, #20
  21325. 8009704: af00 add r7, sp, #0
  21326. 8009706: 6078 str r0, [r7, #4]
  21327. ETH_DMADescTypeDef *dmarxdesc;
  21328. uint32_t i;
  21329. for (i = 0; i < (uint32_t)ETH_RX_DESC_CNT; i++)
  21330. 8009708: 2300 movs r3, #0
  21331. 800970a: 60fb str r3, [r7, #12]
  21332. 800970c: e023 b.n 8009756 <ETH_DMARxDescListInit+0x56>
  21333. {
  21334. dmarxdesc = heth->Init.RxDesc + i;
  21335. 800970e: 687b ldr r3, [r7, #4]
  21336. 8009710: 6919 ldr r1, [r3, #16]
  21337. 8009712: 68fa ldr r2, [r7, #12]
  21338. 8009714: 4613 mov r3, r2
  21339. 8009716: 005b lsls r3, r3, #1
  21340. 8009718: 4413 add r3, r2
  21341. 800971a: 00db lsls r3, r3, #3
  21342. 800971c: 440b add r3, r1
  21343. 800971e: 60bb str r3, [r7, #8]
  21344. WRITE_REG(dmarxdesc->DESC0, 0x0U);
  21345. 8009720: 68bb ldr r3, [r7, #8]
  21346. 8009722: 2200 movs r2, #0
  21347. 8009724: 601a str r2, [r3, #0]
  21348. WRITE_REG(dmarxdesc->DESC1, 0x0U);
  21349. 8009726: 68bb ldr r3, [r7, #8]
  21350. 8009728: 2200 movs r2, #0
  21351. 800972a: 605a str r2, [r3, #4]
  21352. WRITE_REG(dmarxdesc->DESC2, 0x0U);
  21353. 800972c: 68bb ldr r3, [r7, #8]
  21354. 800972e: 2200 movs r2, #0
  21355. 8009730: 609a str r2, [r3, #8]
  21356. WRITE_REG(dmarxdesc->DESC3, 0x0U);
  21357. 8009732: 68bb ldr r3, [r7, #8]
  21358. 8009734: 2200 movs r2, #0
  21359. 8009736: 60da str r2, [r3, #12]
  21360. WRITE_REG(dmarxdesc->BackupAddr0, 0x0U);
  21361. 8009738: 68bb ldr r3, [r7, #8]
  21362. 800973a: 2200 movs r2, #0
  21363. 800973c: 611a str r2, [r3, #16]
  21364. WRITE_REG(dmarxdesc->BackupAddr1, 0x0U);
  21365. 800973e: 68bb ldr r3, [r7, #8]
  21366. 8009740: 2200 movs r2, #0
  21367. 8009742: 615a str r2, [r3, #20]
  21368. /* Set Rx descritors addresses */
  21369. WRITE_REG(heth->RxDescList.RxDesc[i], (uint32_t)dmarxdesc);
  21370. 8009744: 68b9 ldr r1, [r7, #8]
  21371. 8009746: 687b ldr r3, [r7, #4]
  21372. 8009748: 68fa ldr r2, [r7, #12]
  21373. 800974a: 3212 adds r2, #18
  21374. 800974c: f843 1022 str.w r1, [r3, r2, lsl #2]
  21375. for (i = 0; i < (uint32_t)ETH_RX_DESC_CNT; i++)
  21376. 8009750: 68fb ldr r3, [r7, #12]
  21377. 8009752: 3301 adds r3, #1
  21378. 8009754: 60fb str r3, [r7, #12]
  21379. 8009756: 68fb ldr r3, [r7, #12]
  21380. 8009758: 2b03 cmp r3, #3
  21381. 800975a: d9d8 bls.n 800970e <ETH_DMARxDescListInit+0xe>
  21382. }
  21383. WRITE_REG(heth->RxDescList.RxDescIdx, 0U);
  21384. 800975c: 687b ldr r3, [r7, #4]
  21385. 800975e: 2200 movs r2, #0
  21386. 8009760: 65da str r2, [r3, #92] @ 0x5c
  21387. WRITE_REG(heth->RxDescList.RxDescCnt, 0U);
  21388. 8009762: 687b ldr r3, [r7, #4]
  21389. 8009764: 2200 movs r2, #0
  21390. 8009766: 661a str r2, [r3, #96] @ 0x60
  21391. WRITE_REG(heth->RxDescList.RxBuildDescIdx, 0U);
  21392. 8009768: 687b ldr r3, [r7, #4]
  21393. 800976a: 2200 movs r2, #0
  21394. 800976c: 669a str r2, [r3, #104] @ 0x68
  21395. WRITE_REG(heth->RxDescList.RxBuildDescCnt, 0U);
  21396. 800976e: 687b ldr r3, [r7, #4]
  21397. 8009770: 2200 movs r2, #0
  21398. 8009772: 66da str r2, [r3, #108] @ 0x6c
  21399. WRITE_REG(heth->RxDescList.ItMode, 0U);
  21400. 8009774: 687b ldr r3, [r7, #4]
  21401. 8009776: 2200 movs r2, #0
  21402. 8009778: 659a str r2, [r3, #88] @ 0x58
  21403. /* Set Receive Descriptor Ring Length */
  21404. WRITE_REG(heth->Instance->DMACRDRLR, ((uint32_t)(ETH_RX_DESC_CNT - 1U)));
  21405. 800977a: 687b ldr r3, [r7, #4]
  21406. 800977c: 681b ldr r3, [r3, #0]
  21407. 800977e: f503 5380 add.w r3, r3, #4096 @ 0x1000
  21408. 8009782: 461a mov r2, r3
  21409. 8009784: 2303 movs r3, #3
  21410. 8009786: f8c2 3130 str.w r3, [r2, #304] @ 0x130
  21411. /* Set Receive Descriptor List Address */
  21412. WRITE_REG(heth->Instance->DMACRDLAR, (uint32_t) heth->Init.RxDesc);
  21413. 800978a: 687b ldr r3, [r7, #4]
  21414. 800978c: 691a ldr r2, [r3, #16]
  21415. 800978e: 687b ldr r3, [r7, #4]
  21416. 8009790: 681b ldr r3, [r3, #0]
  21417. 8009792: f503 5380 add.w r3, r3, #4096 @ 0x1000
  21418. 8009796: f8c3 211c str.w r2, [r3, #284] @ 0x11c
  21419. /* Set Receive Descriptor Tail pointer Address */
  21420. WRITE_REG(heth->Instance->DMACRDTPR, ((uint32_t)(heth->Init.RxDesc + (uint32_t)(ETH_RX_DESC_CNT - 1U))));
  21421. 800979a: 687b ldr r3, [r7, #4]
  21422. 800979c: 691b ldr r3, [r3, #16]
  21423. 800979e: f103 0248 add.w r2, r3, #72 @ 0x48
  21424. 80097a2: 687b ldr r3, [r7, #4]
  21425. 80097a4: 681b ldr r3, [r3, #0]
  21426. 80097a6: f503 5380 add.w r3, r3, #4096 @ 0x1000
  21427. 80097aa: f8c3 2128 str.w r2, [r3, #296] @ 0x128
  21428. }
  21429. 80097ae: bf00 nop
  21430. 80097b0: 3714 adds r7, #20
  21431. 80097b2: 46bd mov sp, r7
  21432. 80097b4: f85d 7b04 ldr.w r7, [sp], #4
  21433. 80097b8: 4770 bx lr
  21434. ...
  21435. 080097bc <ETH_Prepare_Tx_Descriptors>:
  21436. * @param ItMode: Enable or disable Tx EOT interrept
  21437. * @retval Status
  21438. */
  21439. static uint32_t ETH_Prepare_Tx_Descriptors(ETH_HandleTypeDef *heth, const ETH_TxPacketConfigTypeDef *pTxConfig,
  21440. uint32_t ItMode)
  21441. {
  21442. 80097bc: b480 push {r7}
  21443. 80097be: b091 sub sp, #68 @ 0x44
  21444. 80097c0: af00 add r7, sp, #0
  21445. 80097c2: 60f8 str r0, [r7, #12]
  21446. 80097c4: 60b9 str r1, [r7, #8]
  21447. 80097c6: 607a str r2, [r7, #4]
  21448. ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList;
  21449. 80097c8: 68fb ldr r3, [r7, #12]
  21450. 80097ca: 3318 adds r3, #24
  21451. 80097cc: 627b str r3, [r7, #36] @ 0x24
  21452. uint32_t descidx = dmatxdesclist->CurTxDesc;
  21453. 80097ce: 6a7b ldr r3, [r7, #36] @ 0x24
  21454. 80097d0: 691b ldr r3, [r3, #16]
  21455. 80097d2: 63fb str r3, [r7, #60] @ 0x3c
  21456. uint32_t firstdescidx = dmatxdesclist->CurTxDesc;
  21457. 80097d4: 6a7b ldr r3, [r7, #36] @ 0x24
  21458. 80097d6: 691b ldr r3, [r3, #16]
  21459. 80097d8: 623b str r3, [r7, #32]
  21460. uint32_t idx;
  21461. uint32_t descnbr = 0;
  21462. 80097da: 2300 movs r3, #0
  21463. 80097dc: 637b str r3, [r7, #52] @ 0x34
  21464. ETH_DMADescTypeDef *dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  21465. 80097de: 6a7b ldr r3, [r7, #36] @ 0x24
  21466. 80097e0: 6bfa ldr r2, [r7, #60] @ 0x3c
  21467. 80097e2: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21468. 80097e6: 633b str r3, [r7, #48] @ 0x30
  21469. ETH_BufferTypeDef *txbuffer = pTxConfig->TxBuffer;
  21470. 80097e8: 68bb ldr r3, [r7, #8]
  21471. 80097ea: 689b ldr r3, [r3, #8]
  21472. 80097ec: 62fb str r3, [r7, #44] @ 0x2c
  21473. uint32_t bd_count = 0;
  21474. 80097ee: 2300 movs r3, #0
  21475. 80097f0: 62bb str r3, [r7, #40] @ 0x28
  21476. uint32_t primask_bit;
  21477. /* Current Tx Descriptor Owned by DMA: cannot be used by the application */
  21478. if ((READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCWBF_OWN) == ETH_DMATXNDESCWBF_OWN)
  21479. 80097f2: 6b3b ldr r3, [r7, #48] @ 0x30
  21480. 80097f4: 68db ldr r3, [r3, #12]
  21481. 80097f6: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  21482. 80097fa: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  21483. 80097fe: d007 beq.n 8009810 <ETH_Prepare_Tx_Descriptors+0x54>
  21484. || (dmatxdesclist->PacketAddress[descidx] != NULL))
  21485. 8009800: 6a7a ldr r2, [r7, #36] @ 0x24
  21486. 8009802: 6bfb ldr r3, [r7, #60] @ 0x3c
  21487. 8009804: 3304 adds r3, #4
  21488. 8009806: 009b lsls r3, r3, #2
  21489. 8009808: 4413 add r3, r2
  21490. 800980a: 685b ldr r3, [r3, #4]
  21491. 800980c: 2b00 cmp r3, #0
  21492. 800980e: d001 beq.n 8009814 <ETH_Prepare_Tx_Descriptors+0x58>
  21493. {
  21494. return HAL_ETH_ERROR_BUSY;
  21495. 8009810: 2302 movs r3, #2
  21496. 8009812: e266 b.n 8009ce2 <ETH_Prepare_Tx_Descriptors+0x526>
  21497. /***************************************************************************/
  21498. /***************** Context descriptor configuration (Optional) **********/
  21499. /***************************************************************************/
  21500. /* If VLAN tag is enabled for this packet */
  21501. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET)
  21502. 8009814: 68bb ldr r3, [r7, #8]
  21503. 8009816: 681b ldr r3, [r3, #0]
  21504. 8009818: f003 0304 and.w r3, r3, #4
  21505. 800981c: 2b00 cmp r3, #0
  21506. 800981e: d044 beq.n 80098aa <ETH_Prepare_Tx_Descriptors+0xee>
  21507. {
  21508. /* Set vlan tag value */
  21509. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXCDESC_VT, pTxConfig->VlanTag);
  21510. 8009820: 6b3b ldr r3, [r7, #48] @ 0x30
  21511. 8009822: 68da ldr r2, [r3, #12]
  21512. 8009824: 4b75 ldr r3, [pc, #468] @ (80099fc <ETH_Prepare_Tx_Descriptors+0x240>)
  21513. 8009826: 4013 ands r3, r2
  21514. 8009828: 68ba ldr r2, [r7, #8]
  21515. 800982a: 6a52 ldr r2, [r2, #36] @ 0x24
  21516. 800982c: 431a orrs r2, r3
  21517. 800982e: 6b3b ldr r3, [r7, #48] @ 0x30
  21518. 8009830: 60da str r2, [r3, #12]
  21519. /* Set vlan tag valid bit */
  21520. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_VLTV);
  21521. 8009832: 6b3b ldr r3, [r7, #48] @ 0x30
  21522. 8009834: 68db ldr r3, [r3, #12]
  21523. 8009836: f443 3280 orr.w r2, r3, #65536 @ 0x10000
  21524. 800983a: 6b3b ldr r3, [r7, #48] @ 0x30
  21525. 800983c: 60da str r2, [r3, #12]
  21526. /* Set the descriptor as the vlan input source */
  21527. SET_BIT(heth->Instance->MACVIR, ETH_MACVIR_VLTI);
  21528. 800983e: 68fb ldr r3, [r7, #12]
  21529. 8009840: 681b ldr r3, [r3, #0]
  21530. 8009842: 6e1a ldr r2, [r3, #96] @ 0x60
  21531. 8009844: 68fb ldr r3, [r7, #12]
  21532. 8009846: 681b ldr r3, [r3, #0]
  21533. 8009848: f442 1280 orr.w r2, r2, #1048576 @ 0x100000
  21534. 800984c: 661a str r2, [r3, #96] @ 0x60
  21535. /* if inner VLAN is enabled */
  21536. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_INNERVLANTAG) != (uint32_t)RESET)
  21537. 800984e: 68bb ldr r3, [r7, #8]
  21538. 8009850: 681b ldr r3, [r3, #0]
  21539. 8009852: f003 0308 and.w r3, r3, #8
  21540. 8009856: 2b00 cmp r3, #0
  21541. 8009858: d027 beq.n 80098aa <ETH_Prepare_Tx_Descriptors+0xee>
  21542. {
  21543. /* Set inner vlan tag value */
  21544. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXCDESC_IVT, (pTxConfig->InnerVlanTag << 16));
  21545. 800985a: 6b3b ldr r3, [r7, #48] @ 0x30
  21546. 800985c: 689b ldr r3, [r3, #8]
  21547. 800985e: b29a uxth r2, r3
  21548. 8009860: 68bb ldr r3, [r7, #8]
  21549. 8009862: 6adb ldr r3, [r3, #44] @ 0x2c
  21550. 8009864: 041b lsls r3, r3, #16
  21551. 8009866: 431a orrs r2, r3
  21552. 8009868: 6b3b ldr r3, [r7, #48] @ 0x30
  21553. 800986a: 609a str r2, [r3, #8]
  21554. /* Set inner vlan tag valid bit */
  21555. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_IVLTV);
  21556. 800986c: 6b3b ldr r3, [r7, #48] @ 0x30
  21557. 800986e: 68db ldr r3, [r3, #12]
  21558. 8009870: f443 3200 orr.w r2, r3, #131072 @ 0x20000
  21559. 8009874: 6b3b ldr r3, [r7, #48] @ 0x30
  21560. 8009876: 60da str r2, [r3, #12]
  21561. /* Set Vlan Tag control */
  21562. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXCDESC_IVTIR, pTxConfig->InnerVlanCtrl);
  21563. 8009878: 6b3b ldr r3, [r7, #48] @ 0x30
  21564. 800987a: 68db ldr r3, [r3, #12]
  21565. 800987c: f423 2240 bic.w r2, r3, #786432 @ 0xc0000
  21566. 8009880: 68bb ldr r3, [r7, #8]
  21567. 8009882: 6b1b ldr r3, [r3, #48] @ 0x30
  21568. 8009884: 431a orrs r2, r3
  21569. 8009886: 6b3b ldr r3, [r7, #48] @ 0x30
  21570. 8009888: 60da str r2, [r3, #12]
  21571. /* Set the descriptor as the inner vlan input source */
  21572. SET_BIT(heth->Instance->MACIVIR, ETH_MACIVIR_VLTI);
  21573. 800988a: 68fb ldr r3, [r7, #12]
  21574. 800988c: 681b ldr r3, [r3, #0]
  21575. 800988e: 6e5a ldr r2, [r3, #100] @ 0x64
  21576. 8009890: 68fb ldr r3, [r7, #12]
  21577. 8009892: 681b ldr r3, [r3, #0]
  21578. 8009894: f442 1280 orr.w r2, r2, #1048576 @ 0x100000
  21579. 8009898: 665a str r2, [r3, #100] @ 0x64
  21580. /* Enable double VLAN processing */
  21581. SET_BIT(heth->Instance->MACVTR, ETH_MACVTR_EDVLP);
  21582. 800989a: 68fb ldr r3, [r7, #12]
  21583. 800989c: 681b ldr r3, [r3, #0]
  21584. 800989e: 6d1a ldr r2, [r3, #80] @ 0x50
  21585. 80098a0: 68fb ldr r3, [r7, #12]
  21586. 80098a2: 681b ldr r3, [r3, #0]
  21587. 80098a4: f042 6280 orr.w r2, r2, #67108864 @ 0x4000000
  21588. 80098a8: 651a str r2, [r3, #80] @ 0x50
  21589. }
  21590. }
  21591. /* if tcp segmentation is enabled for this packet */
  21592. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET)
  21593. 80098aa: 68bb ldr r3, [r7, #8]
  21594. 80098ac: 681b ldr r3, [r3, #0]
  21595. 80098ae: f003 0310 and.w r3, r3, #16
  21596. 80098b2: 2b00 cmp r3, #0
  21597. 80098b4: d00e beq.n 80098d4 <ETH_Prepare_Tx_Descriptors+0x118>
  21598. {
  21599. /* Set MSS value */
  21600. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXCDESC_MSS, pTxConfig->MaxSegmentSize);
  21601. 80098b6: 6b3b ldr r3, [r7, #48] @ 0x30
  21602. 80098b8: 689a ldr r2, [r3, #8]
  21603. 80098ba: 4b51 ldr r3, [pc, #324] @ (8009a00 <ETH_Prepare_Tx_Descriptors+0x244>)
  21604. 80098bc: 4013 ands r3, r2
  21605. 80098be: 68ba ldr r2, [r7, #8]
  21606. 80098c0: 6992 ldr r2, [r2, #24]
  21607. 80098c2: 431a orrs r2, r3
  21608. 80098c4: 6b3b ldr r3, [r7, #48] @ 0x30
  21609. 80098c6: 609a str r2, [r3, #8]
  21610. /* Set MSS valid bit */
  21611. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_TCMSSV);
  21612. 80098c8: 6b3b ldr r3, [r7, #48] @ 0x30
  21613. 80098ca: 68db ldr r3, [r3, #12]
  21614. 80098cc: f043 6280 orr.w r2, r3, #67108864 @ 0x4000000
  21615. 80098d0: 6b3b ldr r3, [r7, #48] @ 0x30
  21616. 80098d2: 60da str r2, [r3, #12]
  21617. }
  21618. if ((READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET)
  21619. 80098d4: 68bb ldr r3, [r7, #8]
  21620. 80098d6: 681b ldr r3, [r3, #0]
  21621. 80098d8: f003 0304 and.w r3, r3, #4
  21622. 80098dc: 2b00 cmp r3, #0
  21623. 80098de: d105 bne.n 80098ec <ETH_Prepare_Tx_Descriptors+0x130>
  21624. || (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET))
  21625. 80098e0: 68bb ldr r3, [r7, #8]
  21626. 80098e2: 681b ldr r3, [r3, #0]
  21627. 80098e4: f003 0310 and.w r3, r3, #16
  21628. 80098e8: 2b00 cmp r3, #0
  21629. 80098ea: d036 beq.n 800995a <ETH_Prepare_Tx_Descriptors+0x19e>
  21630. {
  21631. /* Set as context descriptor */
  21632. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_CTXT);
  21633. 80098ec: 6b3b ldr r3, [r7, #48] @ 0x30
  21634. 80098ee: 68db ldr r3, [r3, #12]
  21635. 80098f0: f043 4280 orr.w r2, r3, #1073741824 @ 0x40000000
  21636. 80098f4: 6b3b ldr r3, [r7, #48] @ 0x30
  21637. 80098f6: 60da str r2, [r3, #12]
  21638. __ASM volatile ("dmb 0xF":::"memory");
  21639. 80098f8: f3bf 8f5f dmb sy
  21640. }
  21641. 80098fc: bf00 nop
  21642. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  21643. __DMB();
  21644. /* Set own bit */
  21645. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_OWN);
  21646. 80098fe: 6b3b ldr r3, [r7, #48] @ 0x30
  21647. 8009900: 68db ldr r3, [r3, #12]
  21648. 8009902: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  21649. 8009906: 6b3b ldr r3, [r7, #48] @ 0x30
  21650. 8009908: 60da str r2, [r3, #12]
  21651. /* Increment current tx descriptor index */
  21652. INCR_TX_DESC_INDEX(descidx, 1U);
  21653. 800990a: 6bfb ldr r3, [r7, #60] @ 0x3c
  21654. 800990c: 3301 adds r3, #1
  21655. 800990e: 63fb str r3, [r7, #60] @ 0x3c
  21656. 8009910: 6bfb ldr r3, [r7, #60] @ 0x3c
  21657. 8009912: 2b03 cmp r3, #3
  21658. 8009914: d902 bls.n 800991c <ETH_Prepare_Tx_Descriptors+0x160>
  21659. 8009916: 6bfb ldr r3, [r7, #60] @ 0x3c
  21660. 8009918: 3b04 subs r3, #4
  21661. 800991a: 63fb str r3, [r7, #60] @ 0x3c
  21662. /* Get current descriptor address */
  21663. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  21664. 800991c: 6a7b ldr r3, [r7, #36] @ 0x24
  21665. 800991e: 6bfa ldr r2, [r7, #60] @ 0x3c
  21666. 8009920: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21667. 8009924: 633b str r3, [r7, #48] @ 0x30
  21668. descnbr += 1U;
  21669. 8009926: 6b7b ldr r3, [r7, #52] @ 0x34
  21670. 8009928: 3301 adds r3, #1
  21671. 800992a: 637b str r3, [r7, #52] @ 0x34
  21672. /* Current Tx Descriptor Owned by DMA: cannot be used by the application */
  21673. if (READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCWBF_OWN) == ETH_DMATXNDESCWBF_OWN)
  21674. 800992c: 6b3b ldr r3, [r7, #48] @ 0x30
  21675. 800992e: 68db ldr r3, [r3, #12]
  21676. 8009930: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  21677. 8009934: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  21678. 8009938: d10f bne.n 800995a <ETH_Prepare_Tx_Descriptors+0x19e>
  21679. {
  21680. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[firstdescidx];
  21681. 800993a: 6a7b ldr r3, [r7, #36] @ 0x24
  21682. 800993c: 6a3a ldr r2, [r7, #32]
  21683. 800993e: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21684. 8009942: 633b str r3, [r7, #48] @ 0x30
  21685. __ASM volatile ("dmb 0xF":::"memory");
  21686. 8009944: f3bf 8f5f dmb sy
  21687. }
  21688. 8009948: bf00 nop
  21689. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  21690. __DMB();
  21691. /* Clear own bit */
  21692. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_OWN);
  21693. 800994a: 6b3b ldr r3, [r7, #48] @ 0x30
  21694. 800994c: 68db ldr r3, [r3, #12]
  21695. 800994e: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  21696. 8009952: 6b3b ldr r3, [r7, #48] @ 0x30
  21697. 8009954: 60da str r2, [r3, #12]
  21698. return HAL_ETH_ERROR_BUSY;
  21699. 8009956: 2302 movs r3, #2
  21700. 8009958: e1c3 b.n 8009ce2 <ETH_Prepare_Tx_Descriptors+0x526>
  21701. /***************************************************************************/
  21702. /***************** Normal descriptors configuration *****************/
  21703. /***************************************************************************/
  21704. descnbr += 1U;
  21705. 800995a: 6b7b ldr r3, [r7, #52] @ 0x34
  21706. 800995c: 3301 adds r3, #1
  21707. 800995e: 637b str r3, [r7, #52] @ 0x34
  21708. /* Set header or buffer 1 address */
  21709. WRITE_REG(dmatxdesc->DESC0, (uint32_t)txbuffer->buffer);
  21710. 8009960: 6afb ldr r3, [r7, #44] @ 0x2c
  21711. 8009962: 681b ldr r3, [r3, #0]
  21712. 8009964: 461a mov r2, r3
  21713. 8009966: 6b3b ldr r3, [r7, #48] @ 0x30
  21714. 8009968: 601a str r2, [r3, #0]
  21715. /* Set header or buffer 1 Length */
  21716. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B1L, txbuffer->len);
  21717. 800996a: 6b3b ldr r3, [r7, #48] @ 0x30
  21718. 800996c: 689a ldr r2, [r3, #8]
  21719. 800996e: 4b24 ldr r3, [pc, #144] @ (8009a00 <ETH_Prepare_Tx_Descriptors+0x244>)
  21720. 8009970: 4013 ands r3, r2
  21721. 8009972: 6afa ldr r2, [r7, #44] @ 0x2c
  21722. 8009974: 6852 ldr r2, [r2, #4]
  21723. 8009976: 431a orrs r2, r3
  21724. 8009978: 6b3b ldr r3, [r7, #48] @ 0x30
  21725. 800997a: 609a str r2, [r3, #8]
  21726. if (txbuffer->next != NULL)
  21727. 800997c: 6afb ldr r3, [r7, #44] @ 0x2c
  21728. 800997e: 689b ldr r3, [r3, #8]
  21729. 8009980: 2b00 cmp r3, #0
  21730. 8009982: d012 beq.n 80099aa <ETH_Prepare_Tx_Descriptors+0x1ee>
  21731. {
  21732. txbuffer = txbuffer->next;
  21733. 8009984: 6afb ldr r3, [r7, #44] @ 0x2c
  21734. 8009986: 689b ldr r3, [r3, #8]
  21735. 8009988: 62fb str r3, [r7, #44] @ 0x2c
  21736. /* Set buffer 2 address */
  21737. WRITE_REG(dmatxdesc->DESC1, (uint32_t)txbuffer->buffer);
  21738. 800998a: 6afb ldr r3, [r7, #44] @ 0x2c
  21739. 800998c: 681b ldr r3, [r3, #0]
  21740. 800998e: 461a mov r2, r3
  21741. 8009990: 6b3b ldr r3, [r7, #48] @ 0x30
  21742. 8009992: 605a str r2, [r3, #4]
  21743. /* Set buffer 2 Length */
  21744. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, (txbuffer->len << 16));
  21745. 8009994: 6b3b ldr r3, [r7, #48] @ 0x30
  21746. 8009996: 689a ldr r2, [r3, #8]
  21747. 8009998: 4b1a ldr r3, [pc, #104] @ (8009a04 <ETH_Prepare_Tx_Descriptors+0x248>)
  21748. 800999a: 4013 ands r3, r2
  21749. 800999c: 6afa ldr r2, [r7, #44] @ 0x2c
  21750. 800999e: 6852 ldr r2, [r2, #4]
  21751. 80099a0: 0412 lsls r2, r2, #16
  21752. 80099a2: 431a orrs r2, r3
  21753. 80099a4: 6b3b ldr r3, [r7, #48] @ 0x30
  21754. 80099a6: 609a str r2, [r3, #8]
  21755. 80099a8: e008 b.n 80099bc <ETH_Prepare_Tx_Descriptors+0x200>
  21756. }
  21757. else
  21758. {
  21759. WRITE_REG(dmatxdesc->DESC1, 0x0U);
  21760. 80099aa: 6b3b ldr r3, [r7, #48] @ 0x30
  21761. 80099ac: 2200 movs r2, #0
  21762. 80099ae: 605a str r2, [r3, #4]
  21763. /* Set buffer 2 Length */
  21764. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, 0x0U);
  21765. 80099b0: 6b3b ldr r3, [r7, #48] @ 0x30
  21766. 80099b2: 689a ldr r2, [r3, #8]
  21767. 80099b4: 4b13 ldr r3, [pc, #76] @ (8009a04 <ETH_Prepare_Tx_Descriptors+0x248>)
  21768. 80099b6: 4013 ands r3, r2
  21769. 80099b8: 6b3a ldr r2, [r7, #48] @ 0x30
  21770. 80099ba: 6093 str r3, [r2, #8]
  21771. }
  21772. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET)
  21773. 80099bc: 68bb ldr r3, [r7, #8]
  21774. 80099be: 681b ldr r3, [r3, #0]
  21775. 80099c0: f003 0310 and.w r3, r3, #16
  21776. 80099c4: 2b00 cmp r3, #0
  21777. 80099c6: d021 beq.n 8009a0c <ETH_Prepare_Tx_Descriptors+0x250>
  21778. {
  21779. /* Set TCP Header length */
  21780. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_THL, (pTxConfig->TCPHeaderLen << 19));
  21781. 80099c8: 6b3b ldr r3, [r7, #48] @ 0x30
  21782. 80099ca: 68db ldr r3, [r3, #12]
  21783. 80099cc: f423 02f0 bic.w r2, r3, #7864320 @ 0x780000
  21784. 80099d0: 68bb ldr r3, [r7, #8]
  21785. 80099d2: 6a1b ldr r3, [r3, #32]
  21786. 80099d4: 04db lsls r3, r3, #19
  21787. 80099d6: 431a orrs r2, r3
  21788. 80099d8: 6b3b ldr r3, [r7, #48] @ 0x30
  21789. 80099da: 60da str r2, [r3, #12]
  21790. /* Set TCP payload length */
  21791. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TPL, pTxConfig->PayloadLen);
  21792. 80099dc: 6b3b ldr r3, [r7, #48] @ 0x30
  21793. 80099de: 68da ldr r2, [r3, #12]
  21794. 80099e0: 4b09 ldr r3, [pc, #36] @ (8009a08 <ETH_Prepare_Tx_Descriptors+0x24c>)
  21795. 80099e2: 4013 ands r3, r2
  21796. 80099e4: 68ba ldr r2, [r7, #8]
  21797. 80099e6: 69d2 ldr r2, [r2, #28]
  21798. 80099e8: 431a orrs r2, r3
  21799. 80099ea: 6b3b ldr r3, [r7, #48] @ 0x30
  21800. 80099ec: 60da str r2, [r3, #12]
  21801. /* Set TCP Segmentation Enabled bit */
  21802. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TSE);
  21803. 80099ee: 6b3b ldr r3, [r7, #48] @ 0x30
  21804. 80099f0: 68db ldr r3, [r3, #12]
  21805. 80099f2: f443 2280 orr.w r2, r3, #262144 @ 0x40000
  21806. 80099f6: 6b3b ldr r3, [r7, #48] @ 0x30
  21807. 80099f8: 60da str r2, [r3, #12]
  21808. 80099fa: e02e b.n 8009a5a <ETH_Prepare_Tx_Descriptors+0x29e>
  21809. 80099fc: ffff0000 .word 0xffff0000
  21810. 8009a00: ffffc000 .word 0xffffc000
  21811. 8009a04: c000ffff .word 0xc000ffff
  21812. 8009a08: fffc0000 .word 0xfffc0000
  21813. }
  21814. else
  21815. {
  21816. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FL, pTxConfig->Length);
  21817. 8009a0c: 6b3b ldr r3, [r7, #48] @ 0x30
  21818. 8009a0e: 68da ldr r2, [r3, #12]
  21819. 8009a10: 4b7b ldr r3, [pc, #492] @ (8009c00 <ETH_Prepare_Tx_Descriptors+0x444>)
  21820. 8009a12: 4013 ands r3, r2
  21821. 8009a14: 68ba ldr r2, [r7, #8]
  21822. 8009a16: 6852 ldr r2, [r2, #4]
  21823. 8009a18: 431a orrs r2, r3
  21824. 8009a1a: 6b3b ldr r3, [r7, #48] @ 0x30
  21825. 8009a1c: 60da str r2, [r3, #12]
  21826. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CSUM) != (uint32_t)RESET)
  21827. 8009a1e: 68bb ldr r3, [r7, #8]
  21828. 8009a20: 681b ldr r3, [r3, #0]
  21829. 8009a22: f003 0301 and.w r3, r3, #1
  21830. 8009a26: 2b00 cmp r3, #0
  21831. 8009a28: d008 beq.n 8009a3c <ETH_Prepare_Tx_Descriptors+0x280>
  21832. {
  21833. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CIC, pTxConfig->ChecksumCtrl);
  21834. 8009a2a: 6b3b ldr r3, [r7, #48] @ 0x30
  21835. 8009a2c: 68db ldr r3, [r3, #12]
  21836. 8009a2e: f423 3240 bic.w r2, r3, #196608 @ 0x30000
  21837. 8009a32: 68bb ldr r3, [r7, #8]
  21838. 8009a34: 695b ldr r3, [r3, #20]
  21839. 8009a36: 431a orrs r2, r3
  21840. 8009a38: 6b3b ldr r3, [r7, #48] @ 0x30
  21841. 8009a3a: 60da str r2, [r3, #12]
  21842. }
  21843. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CRCPAD) != (uint32_t)RESET)
  21844. 8009a3c: 68bb ldr r3, [r7, #8]
  21845. 8009a3e: 681b ldr r3, [r3, #0]
  21846. 8009a40: f003 0320 and.w r3, r3, #32
  21847. 8009a44: 2b00 cmp r3, #0
  21848. 8009a46: d008 beq.n 8009a5a <ETH_Prepare_Tx_Descriptors+0x29e>
  21849. {
  21850. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CPC, pTxConfig->CRCPadCtrl);
  21851. 8009a48: 6b3b ldr r3, [r7, #48] @ 0x30
  21852. 8009a4a: 68db ldr r3, [r3, #12]
  21853. 8009a4c: f023 6240 bic.w r2, r3, #201326592 @ 0xc000000
  21854. 8009a50: 68bb ldr r3, [r7, #8]
  21855. 8009a52: 691b ldr r3, [r3, #16]
  21856. 8009a54: 431a orrs r2, r3
  21857. 8009a56: 6b3b ldr r3, [r7, #48] @ 0x30
  21858. 8009a58: 60da str r2, [r3, #12]
  21859. }
  21860. }
  21861. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET)
  21862. 8009a5a: 68bb ldr r3, [r7, #8]
  21863. 8009a5c: 681b ldr r3, [r3, #0]
  21864. 8009a5e: f003 0304 and.w r3, r3, #4
  21865. 8009a62: 2b00 cmp r3, #0
  21866. 8009a64: d008 beq.n 8009a78 <ETH_Prepare_Tx_Descriptors+0x2bc>
  21867. {
  21868. /* Set Vlan Tag control */
  21869. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_VTIR, pTxConfig->VlanCtrl);
  21870. 8009a66: 6b3b ldr r3, [r7, #48] @ 0x30
  21871. 8009a68: 689b ldr r3, [r3, #8]
  21872. 8009a6a: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  21873. 8009a6e: 68bb ldr r3, [r7, #8]
  21874. 8009a70: 6a9b ldr r3, [r3, #40] @ 0x28
  21875. 8009a72: 431a orrs r2, r3
  21876. 8009a74: 6b3b ldr r3, [r7, #48] @ 0x30
  21877. 8009a76: 609a str r2, [r3, #8]
  21878. }
  21879. /* Mark it as First Descriptor */
  21880. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FD);
  21881. 8009a78: 6b3b ldr r3, [r7, #48] @ 0x30
  21882. 8009a7a: 68db ldr r3, [r3, #12]
  21883. 8009a7c: f043 5200 orr.w r2, r3, #536870912 @ 0x20000000
  21884. 8009a80: 6b3b ldr r3, [r7, #48] @ 0x30
  21885. 8009a82: 60da str r2, [r3, #12]
  21886. /* Mark it as NORMAL descriptor */
  21887. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CTXT);
  21888. 8009a84: 6b3b ldr r3, [r7, #48] @ 0x30
  21889. 8009a86: 68db ldr r3, [r3, #12]
  21890. 8009a88: f023 4280 bic.w r2, r3, #1073741824 @ 0x40000000
  21891. 8009a8c: 6b3b ldr r3, [r7, #48] @ 0x30
  21892. 8009a8e: 60da str r2, [r3, #12]
  21893. __ASM volatile ("dmb 0xF":::"memory");
  21894. 8009a90: f3bf 8f5f dmb sy
  21895. }
  21896. 8009a94: bf00 nop
  21897. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  21898. __DMB();
  21899. /* set OWN bit of FIRST descriptor */
  21900. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN);
  21901. 8009a96: 6b3b ldr r3, [r7, #48] @ 0x30
  21902. 8009a98: 68db ldr r3, [r3, #12]
  21903. 8009a9a: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  21904. 8009a9e: 6b3b ldr r3, [r7, #48] @ 0x30
  21905. 8009aa0: 60da str r2, [r3, #12]
  21906. /* If source address insertion/replacement is enabled for this packet */
  21907. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_SAIC) != (uint32_t)RESET)
  21908. 8009aa2: 68bb ldr r3, [r7, #8]
  21909. 8009aa4: 681b ldr r3, [r3, #0]
  21910. 8009aa6: f003 0302 and.w r3, r3, #2
  21911. 8009aaa: 2b00 cmp r3, #0
  21912. 8009aac: f000 80da beq.w 8009c64 <ETH_Prepare_Tx_Descriptors+0x4a8>
  21913. {
  21914. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_SAIC, pTxConfig->SrcAddrCtrl);
  21915. 8009ab0: 6b3b ldr r3, [r7, #48] @ 0x30
  21916. 8009ab2: 68db ldr r3, [r3, #12]
  21917. 8009ab4: f023 7260 bic.w r2, r3, #58720256 @ 0x3800000
  21918. 8009ab8: 68bb ldr r3, [r7, #8]
  21919. 8009aba: 68db ldr r3, [r3, #12]
  21920. 8009abc: 431a orrs r2, r3
  21921. 8009abe: 6b3b ldr r3, [r7, #48] @ 0x30
  21922. 8009ac0: 60da str r2, [r3, #12]
  21923. }
  21924. /* only if the packet is split into more than one descriptors > 1 */
  21925. while (txbuffer->next != NULL)
  21926. 8009ac2: e0cf b.n 8009c64 <ETH_Prepare_Tx_Descriptors+0x4a8>
  21927. {
  21928. /* Clear the LD bit of previous descriptor */
  21929. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_LD);
  21930. 8009ac4: 6b3b ldr r3, [r7, #48] @ 0x30
  21931. 8009ac6: 68db ldr r3, [r3, #12]
  21932. 8009ac8: f023 5280 bic.w r2, r3, #268435456 @ 0x10000000
  21933. 8009acc: 6b3b ldr r3, [r7, #48] @ 0x30
  21934. 8009ace: 60da str r2, [r3, #12]
  21935. /* Increment current tx descriptor index */
  21936. INCR_TX_DESC_INDEX(descidx, 1U);
  21937. 8009ad0: 6bfb ldr r3, [r7, #60] @ 0x3c
  21938. 8009ad2: 3301 adds r3, #1
  21939. 8009ad4: 63fb str r3, [r7, #60] @ 0x3c
  21940. 8009ad6: 6bfb ldr r3, [r7, #60] @ 0x3c
  21941. 8009ad8: 2b03 cmp r3, #3
  21942. 8009ada: d902 bls.n 8009ae2 <ETH_Prepare_Tx_Descriptors+0x326>
  21943. 8009adc: 6bfb ldr r3, [r7, #60] @ 0x3c
  21944. 8009ade: 3b04 subs r3, #4
  21945. 8009ae0: 63fb str r3, [r7, #60] @ 0x3c
  21946. /* Get current descriptor address */
  21947. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  21948. 8009ae2: 6a7b ldr r3, [r7, #36] @ 0x24
  21949. 8009ae4: 6bfa ldr r2, [r7, #60] @ 0x3c
  21950. 8009ae6: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21951. 8009aea: 633b str r3, [r7, #48] @ 0x30
  21952. /* Clear the FD bit of new Descriptor */
  21953. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FD);
  21954. 8009aec: 6b3b ldr r3, [r7, #48] @ 0x30
  21955. 8009aee: 68db ldr r3, [r3, #12]
  21956. 8009af0: f023 5200 bic.w r2, r3, #536870912 @ 0x20000000
  21957. 8009af4: 6b3b ldr r3, [r7, #48] @ 0x30
  21958. 8009af6: 60da str r2, [r3, #12]
  21959. /* Current Tx Descriptor Owned by DMA: cannot be used by the application */
  21960. if ((READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN) == ETH_DMATXNDESCRF_OWN)
  21961. 8009af8: 6b3b ldr r3, [r7, #48] @ 0x30
  21962. 8009afa: 68db ldr r3, [r3, #12]
  21963. 8009afc: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  21964. 8009b00: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  21965. 8009b04: d007 beq.n 8009b16 <ETH_Prepare_Tx_Descriptors+0x35a>
  21966. || (dmatxdesclist->PacketAddress[descidx] != NULL))
  21967. 8009b06: 6a7a ldr r2, [r7, #36] @ 0x24
  21968. 8009b08: 6bfb ldr r3, [r7, #60] @ 0x3c
  21969. 8009b0a: 3304 adds r3, #4
  21970. 8009b0c: 009b lsls r3, r3, #2
  21971. 8009b0e: 4413 add r3, r2
  21972. 8009b10: 685b ldr r3, [r3, #4]
  21973. 8009b12: 2b00 cmp r3, #0
  21974. 8009b14: d029 beq.n 8009b6a <ETH_Prepare_Tx_Descriptors+0x3ae>
  21975. {
  21976. descidx = firstdescidx;
  21977. 8009b16: 6a3b ldr r3, [r7, #32]
  21978. 8009b18: 63fb str r3, [r7, #60] @ 0x3c
  21979. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  21980. 8009b1a: 6a7b ldr r3, [r7, #36] @ 0x24
  21981. 8009b1c: 6bfa ldr r2, [r7, #60] @ 0x3c
  21982. 8009b1e: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21983. 8009b22: 633b str r3, [r7, #48] @ 0x30
  21984. /* clear previous desc own bit */
  21985. for (idx = 0; idx < descnbr; idx ++)
  21986. 8009b24: 2300 movs r3, #0
  21987. 8009b26: 63bb str r3, [r7, #56] @ 0x38
  21988. 8009b28: e019 b.n 8009b5e <ETH_Prepare_Tx_Descriptors+0x3a2>
  21989. __ASM volatile ("dmb 0xF":::"memory");
  21990. 8009b2a: f3bf 8f5f dmb sy
  21991. }
  21992. 8009b2e: bf00 nop
  21993. {
  21994. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  21995. __DMB();
  21996. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN);
  21997. 8009b30: 6b3b ldr r3, [r7, #48] @ 0x30
  21998. 8009b32: 68db ldr r3, [r3, #12]
  21999. 8009b34: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  22000. 8009b38: 6b3b ldr r3, [r7, #48] @ 0x30
  22001. 8009b3a: 60da str r2, [r3, #12]
  22002. /* Increment current tx descriptor index */
  22003. INCR_TX_DESC_INDEX(descidx, 1U);
  22004. 8009b3c: 6bfb ldr r3, [r7, #60] @ 0x3c
  22005. 8009b3e: 3301 adds r3, #1
  22006. 8009b40: 63fb str r3, [r7, #60] @ 0x3c
  22007. 8009b42: 6bfb ldr r3, [r7, #60] @ 0x3c
  22008. 8009b44: 2b03 cmp r3, #3
  22009. 8009b46: d902 bls.n 8009b4e <ETH_Prepare_Tx_Descriptors+0x392>
  22010. 8009b48: 6bfb ldr r3, [r7, #60] @ 0x3c
  22011. 8009b4a: 3b04 subs r3, #4
  22012. 8009b4c: 63fb str r3, [r7, #60] @ 0x3c
  22013. /* Get current descriptor address */
  22014. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  22015. 8009b4e: 6a7b ldr r3, [r7, #36] @ 0x24
  22016. 8009b50: 6bfa ldr r2, [r7, #60] @ 0x3c
  22017. 8009b52: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  22018. 8009b56: 633b str r3, [r7, #48] @ 0x30
  22019. for (idx = 0; idx < descnbr; idx ++)
  22020. 8009b58: 6bbb ldr r3, [r7, #56] @ 0x38
  22021. 8009b5a: 3301 adds r3, #1
  22022. 8009b5c: 63bb str r3, [r7, #56] @ 0x38
  22023. 8009b5e: 6bba ldr r2, [r7, #56] @ 0x38
  22024. 8009b60: 6b7b ldr r3, [r7, #52] @ 0x34
  22025. 8009b62: 429a cmp r2, r3
  22026. 8009b64: d3e1 bcc.n 8009b2a <ETH_Prepare_Tx_Descriptors+0x36e>
  22027. }
  22028. return HAL_ETH_ERROR_BUSY;
  22029. 8009b66: 2302 movs r3, #2
  22030. 8009b68: e0bb b.n 8009ce2 <ETH_Prepare_Tx_Descriptors+0x526>
  22031. }
  22032. descnbr += 1U;
  22033. 8009b6a: 6b7b ldr r3, [r7, #52] @ 0x34
  22034. 8009b6c: 3301 adds r3, #1
  22035. 8009b6e: 637b str r3, [r7, #52] @ 0x34
  22036. /* Get the next Tx buffer in the list */
  22037. txbuffer = txbuffer->next;
  22038. 8009b70: 6afb ldr r3, [r7, #44] @ 0x2c
  22039. 8009b72: 689b ldr r3, [r3, #8]
  22040. 8009b74: 62fb str r3, [r7, #44] @ 0x2c
  22041. /* Set header or buffer 1 address */
  22042. WRITE_REG(dmatxdesc->DESC0, (uint32_t)txbuffer->buffer);
  22043. 8009b76: 6afb ldr r3, [r7, #44] @ 0x2c
  22044. 8009b78: 681b ldr r3, [r3, #0]
  22045. 8009b7a: 461a mov r2, r3
  22046. 8009b7c: 6b3b ldr r3, [r7, #48] @ 0x30
  22047. 8009b7e: 601a str r2, [r3, #0]
  22048. /* Set header or buffer 1 Length */
  22049. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B1L, txbuffer->len);
  22050. 8009b80: 6b3b ldr r3, [r7, #48] @ 0x30
  22051. 8009b82: 689a ldr r2, [r3, #8]
  22052. 8009b84: 4b1f ldr r3, [pc, #124] @ (8009c04 <ETH_Prepare_Tx_Descriptors+0x448>)
  22053. 8009b86: 4013 ands r3, r2
  22054. 8009b88: 6afa ldr r2, [r7, #44] @ 0x2c
  22055. 8009b8a: 6852 ldr r2, [r2, #4]
  22056. 8009b8c: 431a orrs r2, r3
  22057. 8009b8e: 6b3b ldr r3, [r7, #48] @ 0x30
  22058. 8009b90: 609a str r2, [r3, #8]
  22059. if (txbuffer->next != NULL)
  22060. 8009b92: 6afb ldr r3, [r7, #44] @ 0x2c
  22061. 8009b94: 689b ldr r3, [r3, #8]
  22062. 8009b96: 2b00 cmp r3, #0
  22063. 8009b98: d012 beq.n 8009bc0 <ETH_Prepare_Tx_Descriptors+0x404>
  22064. {
  22065. /* Get the next Tx buffer in the list */
  22066. txbuffer = txbuffer->next;
  22067. 8009b9a: 6afb ldr r3, [r7, #44] @ 0x2c
  22068. 8009b9c: 689b ldr r3, [r3, #8]
  22069. 8009b9e: 62fb str r3, [r7, #44] @ 0x2c
  22070. /* Set buffer 2 address */
  22071. WRITE_REG(dmatxdesc->DESC1, (uint32_t)txbuffer->buffer);
  22072. 8009ba0: 6afb ldr r3, [r7, #44] @ 0x2c
  22073. 8009ba2: 681b ldr r3, [r3, #0]
  22074. 8009ba4: 461a mov r2, r3
  22075. 8009ba6: 6b3b ldr r3, [r7, #48] @ 0x30
  22076. 8009ba8: 605a str r2, [r3, #4]
  22077. /* Set buffer 2 Length */
  22078. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, (txbuffer->len << 16));
  22079. 8009baa: 6b3b ldr r3, [r7, #48] @ 0x30
  22080. 8009bac: 689a ldr r2, [r3, #8]
  22081. 8009bae: 4b16 ldr r3, [pc, #88] @ (8009c08 <ETH_Prepare_Tx_Descriptors+0x44c>)
  22082. 8009bb0: 4013 ands r3, r2
  22083. 8009bb2: 6afa ldr r2, [r7, #44] @ 0x2c
  22084. 8009bb4: 6852 ldr r2, [r2, #4]
  22085. 8009bb6: 0412 lsls r2, r2, #16
  22086. 8009bb8: 431a orrs r2, r3
  22087. 8009bba: 6b3b ldr r3, [r7, #48] @ 0x30
  22088. 8009bbc: 609a str r2, [r3, #8]
  22089. 8009bbe: e008 b.n 8009bd2 <ETH_Prepare_Tx_Descriptors+0x416>
  22090. }
  22091. else
  22092. {
  22093. WRITE_REG(dmatxdesc->DESC1, 0x0U);
  22094. 8009bc0: 6b3b ldr r3, [r7, #48] @ 0x30
  22095. 8009bc2: 2200 movs r2, #0
  22096. 8009bc4: 605a str r2, [r3, #4]
  22097. /* Set buffer 2 Length */
  22098. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, 0x0U);
  22099. 8009bc6: 6b3b ldr r3, [r7, #48] @ 0x30
  22100. 8009bc8: 689a ldr r2, [r3, #8]
  22101. 8009bca: 4b0f ldr r3, [pc, #60] @ (8009c08 <ETH_Prepare_Tx_Descriptors+0x44c>)
  22102. 8009bcc: 4013 ands r3, r2
  22103. 8009bce: 6b3a ldr r2, [r7, #48] @ 0x30
  22104. 8009bd0: 6093 str r3, [r2, #8]
  22105. }
  22106. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET)
  22107. 8009bd2: 68bb ldr r3, [r7, #8]
  22108. 8009bd4: 681b ldr r3, [r3, #0]
  22109. 8009bd6: f003 0310 and.w r3, r3, #16
  22110. 8009bda: 2b00 cmp r3, #0
  22111. 8009bdc: d018 beq.n 8009c10 <ETH_Prepare_Tx_Descriptors+0x454>
  22112. {
  22113. /* Set TCP payload length */
  22114. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TPL, pTxConfig->PayloadLen);
  22115. 8009bde: 6b3b ldr r3, [r7, #48] @ 0x30
  22116. 8009be0: 68da ldr r2, [r3, #12]
  22117. 8009be2: 4b0a ldr r3, [pc, #40] @ (8009c0c <ETH_Prepare_Tx_Descriptors+0x450>)
  22118. 8009be4: 4013 ands r3, r2
  22119. 8009be6: 68ba ldr r2, [r7, #8]
  22120. 8009be8: 69d2 ldr r2, [r2, #28]
  22121. 8009bea: 431a orrs r2, r3
  22122. 8009bec: 6b3b ldr r3, [r7, #48] @ 0x30
  22123. 8009bee: 60da str r2, [r3, #12]
  22124. /* Set TCP Segmentation Enabled bit */
  22125. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TSE);
  22126. 8009bf0: 6b3b ldr r3, [r7, #48] @ 0x30
  22127. 8009bf2: 68db ldr r3, [r3, #12]
  22128. 8009bf4: f443 2280 orr.w r2, r3, #262144 @ 0x40000
  22129. 8009bf8: 6b3b ldr r3, [r7, #48] @ 0x30
  22130. 8009bfa: 60da str r2, [r3, #12]
  22131. 8009bfc: e020 b.n 8009c40 <ETH_Prepare_Tx_Descriptors+0x484>
  22132. 8009bfe: bf00 nop
  22133. 8009c00: ffff8000 .word 0xffff8000
  22134. 8009c04: ffffc000 .word 0xffffc000
  22135. 8009c08: c000ffff .word 0xc000ffff
  22136. 8009c0c: fffc0000 .word 0xfffc0000
  22137. }
  22138. else
  22139. {
  22140. /* Set the packet length */
  22141. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FL, pTxConfig->Length);
  22142. 8009c10: 6b3b ldr r3, [r7, #48] @ 0x30
  22143. 8009c12: 68da ldr r2, [r3, #12]
  22144. 8009c14: 4b36 ldr r3, [pc, #216] @ (8009cf0 <ETH_Prepare_Tx_Descriptors+0x534>)
  22145. 8009c16: 4013 ands r3, r2
  22146. 8009c18: 68ba ldr r2, [r7, #8]
  22147. 8009c1a: 6852 ldr r2, [r2, #4]
  22148. 8009c1c: 431a orrs r2, r3
  22149. 8009c1e: 6b3b ldr r3, [r7, #48] @ 0x30
  22150. 8009c20: 60da str r2, [r3, #12]
  22151. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CSUM) != (uint32_t)RESET)
  22152. 8009c22: 68bb ldr r3, [r7, #8]
  22153. 8009c24: 681b ldr r3, [r3, #0]
  22154. 8009c26: f003 0301 and.w r3, r3, #1
  22155. 8009c2a: 2b00 cmp r3, #0
  22156. 8009c2c: d008 beq.n 8009c40 <ETH_Prepare_Tx_Descriptors+0x484>
  22157. {
  22158. /* Checksum Insertion Control */
  22159. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CIC, pTxConfig->ChecksumCtrl);
  22160. 8009c2e: 6b3b ldr r3, [r7, #48] @ 0x30
  22161. 8009c30: 68db ldr r3, [r3, #12]
  22162. 8009c32: f423 3240 bic.w r2, r3, #196608 @ 0x30000
  22163. 8009c36: 68bb ldr r3, [r7, #8]
  22164. 8009c38: 695b ldr r3, [r3, #20]
  22165. 8009c3a: 431a orrs r2, r3
  22166. 8009c3c: 6b3b ldr r3, [r7, #48] @ 0x30
  22167. 8009c3e: 60da str r2, [r3, #12]
  22168. }
  22169. }
  22170. bd_count += 1U;
  22171. 8009c40: 6abb ldr r3, [r7, #40] @ 0x28
  22172. 8009c42: 3301 adds r3, #1
  22173. 8009c44: 62bb str r3, [r7, #40] @ 0x28
  22174. __ASM volatile ("dmb 0xF":::"memory");
  22175. 8009c46: f3bf 8f5f dmb sy
  22176. }
  22177. 8009c4a: bf00 nop
  22178. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  22179. __DMB();
  22180. /* Set Own bit */
  22181. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN);
  22182. 8009c4c: 6b3b ldr r3, [r7, #48] @ 0x30
  22183. 8009c4e: 68db ldr r3, [r3, #12]
  22184. 8009c50: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  22185. 8009c54: 6b3b ldr r3, [r7, #48] @ 0x30
  22186. 8009c56: 60da str r2, [r3, #12]
  22187. /* Mark it as NORMAL descriptor */
  22188. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CTXT);
  22189. 8009c58: 6b3b ldr r3, [r7, #48] @ 0x30
  22190. 8009c5a: 68db ldr r3, [r3, #12]
  22191. 8009c5c: f023 4280 bic.w r2, r3, #1073741824 @ 0x40000000
  22192. 8009c60: 6b3b ldr r3, [r7, #48] @ 0x30
  22193. 8009c62: 60da str r2, [r3, #12]
  22194. while (txbuffer->next != NULL)
  22195. 8009c64: 6afb ldr r3, [r7, #44] @ 0x2c
  22196. 8009c66: 689b ldr r3, [r3, #8]
  22197. 8009c68: 2b00 cmp r3, #0
  22198. 8009c6a: f47f af2b bne.w 8009ac4 <ETH_Prepare_Tx_Descriptors+0x308>
  22199. }
  22200. if (ItMode != ((uint32_t)RESET))
  22201. 8009c6e: 687b ldr r3, [r7, #4]
  22202. 8009c70: 2b00 cmp r3, #0
  22203. 8009c72: d006 beq.n 8009c82 <ETH_Prepare_Tx_Descriptors+0x4c6>
  22204. {
  22205. /* Set Interrupt on completion bit */
  22206. SET_BIT(dmatxdesc->DESC2, ETH_DMATXNDESCRF_IOC);
  22207. 8009c74: 6b3b ldr r3, [r7, #48] @ 0x30
  22208. 8009c76: 689b ldr r3, [r3, #8]
  22209. 8009c78: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  22210. 8009c7c: 6b3b ldr r3, [r7, #48] @ 0x30
  22211. 8009c7e: 609a str r2, [r3, #8]
  22212. 8009c80: e005 b.n 8009c8e <ETH_Prepare_Tx_Descriptors+0x4d2>
  22213. }
  22214. else
  22215. {
  22216. /* Clear Interrupt on completion bit */
  22217. CLEAR_BIT(dmatxdesc->DESC2, ETH_DMATXNDESCRF_IOC);
  22218. 8009c82: 6b3b ldr r3, [r7, #48] @ 0x30
  22219. 8009c84: 689b ldr r3, [r3, #8]
  22220. 8009c86: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  22221. 8009c8a: 6b3b ldr r3, [r7, #48] @ 0x30
  22222. 8009c8c: 609a str r2, [r3, #8]
  22223. }
  22224. /* Mark it as LAST descriptor */
  22225. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_LD);
  22226. 8009c8e: 6b3b ldr r3, [r7, #48] @ 0x30
  22227. 8009c90: 68db ldr r3, [r3, #12]
  22228. 8009c92: f043 5280 orr.w r2, r3, #268435456 @ 0x10000000
  22229. 8009c96: 6b3b ldr r3, [r7, #48] @ 0x30
  22230. 8009c98: 60da str r2, [r3, #12]
  22231. /* Save the current packet address to expose it to the application */
  22232. dmatxdesclist->PacketAddress[descidx] = dmatxdesclist->CurrentPacketAddress;
  22233. 8009c9a: 6a7b ldr r3, [r7, #36] @ 0x24
  22234. 8009c9c: 6a5a ldr r2, [r3, #36] @ 0x24
  22235. 8009c9e: 6a79 ldr r1, [r7, #36] @ 0x24
  22236. 8009ca0: 6bfb ldr r3, [r7, #60] @ 0x3c
  22237. 8009ca2: 3304 adds r3, #4
  22238. 8009ca4: 009b lsls r3, r3, #2
  22239. 8009ca6: 440b add r3, r1
  22240. 8009ca8: 605a str r2, [r3, #4]
  22241. dmatxdesclist->CurTxDesc = descidx;
  22242. 8009caa: 6a7b ldr r3, [r7, #36] @ 0x24
  22243. 8009cac: 6bfa ldr r2, [r7, #60] @ 0x3c
  22244. 8009cae: 611a str r2, [r3, #16]
  22245. __ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory");
  22246. 8009cb0: f3ef 8310 mrs r3, PRIMASK
  22247. 8009cb4: 613b str r3, [r7, #16]
  22248. return(result);
  22249. 8009cb6: 693b ldr r3, [r7, #16]
  22250. /* Enter critical section */
  22251. primask_bit = __get_PRIMASK();
  22252. 8009cb8: 61fb str r3, [r7, #28]
  22253. 8009cba: 2301 movs r3, #1
  22254. 8009cbc: 617b str r3, [r7, #20]
  22255. __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
  22256. 8009cbe: 697b ldr r3, [r7, #20]
  22257. 8009cc0: f383 8810 msr PRIMASK, r3
  22258. }
  22259. 8009cc4: bf00 nop
  22260. __set_PRIMASK(1);
  22261. dmatxdesclist->BuffersInUse += bd_count + 1U;
  22262. 8009cc6: 6a7b ldr r3, [r7, #36] @ 0x24
  22263. 8009cc8: 6a9a ldr r2, [r3, #40] @ 0x28
  22264. 8009cca: 6abb ldr r3, [r7, #40] @ 0x28
  22265. 8009ccc: 4413 add r3, r2
  22266. 8009cce: 1c5a adds r2, r3, #1
  22267. 8009cd0: 6a7b ldr r3, [r7, #36] @ 0x24
  22268. 8009cd2: 629a str r2, [r3, #40] @ 0x28
  22269. 8009cd4: 69fb ldr r3, [r7, #28]
  22270. 8009cd6: 61bb str r3, [r7, #24]
  22271. __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
  22272. 8009cd8: 69bb ldr r3, [r7, #24]
  22273. 8009cda: f383 8810 msr PRIMASK, r3
  22274. }
  22275. 8009cde: bf00 nop
  22276. /* Exit critical section: restore previous priority mask */
  22277. __set_PRIMASK(primask_bit);
  22278. /* Return function status */
  22279. return HAL_ETH_ERROR_NONE;
  22280. 8009ce0: 2300 movs r3, #0
  22281. }
  22282. 8009ce2: 4618 mov r0, r3
  22283. 8009ce4: 3744 adds r7, #68 @ 0x44
  22284. 8009ce6: 46bd mov sp, r7
  22285. 8009ce8: f85d 7b04 ldr.w r7, [sp], #4
  22286. 8009cec: 4770 bx lr
  22287. 8009cee: bf00 nop
  22288. 8009cf0: ffff8000 .word 0xffff8000
  22289. 08009cf4 <HAL_GPIO_Init>:
  22290. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  22291. * the configuration information for the specified GPIO peripheral.
  22292. * @retval None
  22293. */
  22294. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  22295. {
  22296. 8009cf4: b480 push {r7}
  22297. 8009cf6: b089 sub sp, #36 @ 0x24
  22298. 8009cf8: af00 add r7, sp, #0
  22299. 8009cfa: 6078 str r0, [r7, #4]
  22300. 8009cfc: 6039 str r1, [r7, #0]
  22301. uint32_t position = 0x00U;
  22302. 8009cfe: 2300 movs r3, #0
  22303. 8009d00: 61fb str r3, [r7, #28]
  22304. EXTI_Core_TypeDef *EXTI_CurrentCPU;
  22305. #if defined(DUAL_CORE) && defined(CORE_CM4)
  22306. EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */
  22307. #else
  22308. EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */
  22309. 8009d02: 4b89 ldr r3, [pc, #548] @ (8009f28 <HAL_GPIO_Init+0x234>)
  22310. 8009d04: 617b str r3, [r7, #20]
  22311. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  22312. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  22313. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  22314. /* Configure the port pins */
  22315. while (((GPIO_Init->Pin) >> position) != 0x00U)
  22316. 8009d06: e194 b.n 800a032 <HAL_GPIO_Init+0x33e>
  22317. {
  22318. /* Get current io position */
  22319. iocurrent = (GPIO_Init->Pin) & (1UL << position);
  22320. 8009d08: 683b ldr r3, [r7, #0]
  22321. 8009d0a: 681a ldr r2, [r3, #0]
  22322. 8009d0c: 2101 movs r1, #1
  22323. 8009d0e: 69fb ldr r3, [r7, #28]
  22324. 8009d10: fa01 f303 lsl.w r3, r1, r3
  22325. 8009d14: 4013 ands r3, r2
  22326. 8009d16: 613b str r3, [r7, #16]
  22327. if (iocurrent != 0x00U)
  22328. 8009d18: 693b ldr r3, [r7, #16]
  22329. 8009d1a: 2b00 cmp r3, #0
  22330. 8009d1c: f000 8186 beq.w 800a02c <HAL_GPIO_Init+0x338>
  22331. {
  22332. /*--------------------- GPIO Mode Configuration ------------------------*/
  22333. /* In case of Output or Alternate function mode selection */
  22334. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  22335. 8009d20: 683b ldr r3, [r7, #0]
  22336. 8009d22: 685b ldr r3, [r3, #4]
  22337. 8009d24: f003 0303 and.w r3, r3, #3
  22338. 8009d28: 2b01 cmp r3, #1
  22339. 8009d2a: d005 beq.n 8009d38 <HAL_GPIO_Init+0x44>
  22340. 8009d2c: 683b ldr r3, [r7, #0]
  22341. 8009d2e: 685b ldr r3, [r3, #4]
  22342. 8009d30: f003 0303 and.w r3, r3, #3
  22343. 8009d34: 2b02 cmp r3, #2
  22344. 8009d36: d130 bne.n 8009d9a <HAL_GPIO_Init+0xa6>
  22345. {
  22346. /* Check the Speed parameter */
  22347. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  22348. /* Configure the IO Speed */
  22349. temp = GPIOx->OSPEEDR;
  22350. 8009d38: 687b ldr r3, [r7, #4]
  22351. 8009d3a: 689b ldr r3, [r3, #8]
  22352. 8009d3c: 61bb str r3, [r7, #24]
  22353. temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U));
  22354. 8009d3e: 69fb ldr r3, [r7, #28]
  22355. 8009d40: 005b lsls r3, r3, #1
  22356. 8009d42: 2203 movs r2, #3
  22357. 8009d44: fa02 f303 lsl.w r3, r2, r3
  22358. 8009d48: 43db mvns r3, r3
  22359. 8009d4a: 69ba ldr r2, [r7, #24]
  22360. 8009d4c: 4013 ands r3, r2
  22361. 8009d4e: 61bb str r3, [r7, #24]
  22362. temp |= (GPIO_Init->Speed << (position * 2U));
  22363. 8009d50: 683b ldr r3, [r7, #0]
  22364. 8009d52: 68da ldr r2, [r3, #12]
  22365. 8009d54: 69fb ldr r3, [r7, #28]
  22366. 8009d56: 005b lsls r3, r3, #1
  22367. 8009d58: fa02 f303 lsl.w r3, r2, r3
  22368. 8009d5c: 69ba ldr r2, [r7, #24]
  22369. 8009d5e: 4313 orrs r3, r2
  22370. 8009d60: 61bb str r3, [r7, #24]
  22371. GPIOx->OSPEEDR = temp;
  22372. 8009d62: 687b ldr r3, [r7, #4]
  22373. 8009d64: 69ba ldr r2, [r7, #24]
  22374. 8009d66: 609a str r2, [r3, #8]
  22375. /* Configure the IO Output Type */
  22376. temp = GPIOx->OTYPER;
  22377. 8009d68: 687b ldr r3, [r7, #4]
  22378. 8009d6a: 685b ldr r3, [r3, #4]
  22379. 8009d6c: 61bb str r3, [r7, #24]
  22380. temp &= ~(GPIO_OTYPER_OT0 << position) ;
  22381. 8009d6e: 2201 movs r2, #1
  22382. 8009d70: 69fb ldr r3, [r7, #28]
  22383. 8009d72: fa02 f303 lsl.w r3, r2, r3
  22384. 8009d76: 43db mvns r3, r3
  22385. 8009d78: 69ba ldr r2, [r7, #24]
  22386. 8009d7a: 4013 ands r3, r2
  22387. 8009d7c: 61bb str r3, [r7, #24]
  22388. temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  22389. 8009d7e: 683b ldr r3, [r7, #0]
  22390. 8009d80: 685b ldr r3, [r3, #4]
  22391. 8009d82: 091b lsrs r3, r3, #4
  22392. 8009d84: f003 0201 and.w r2, r3, #1
  22393. 8009d88: 69fb ldr r3, [r7, #28]
  22394. 8009d8a: fa02 f303 lsl.w r3, r2, r3
  22395. 8009d8e: 69ba ldr r2, [r7, #24]
  22396. 8009d90: 4313 orrs r3, r2
  22397. 8009d92: 61bb str r3, [r7, #24]
  22398. GPIOx->OTYPER = temp;
  22399. 8009d94: 687b ldr r3, [r7, #4]
  22400. 8009d96: 69ba ldr r2, [r7, #24]
  22401. 8009d98: 605a str r2, [r3, #4]
  22402. }
  22403. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  22404. 8009d9a: 683b ldr r3, [r7, #0]
  22405. 8009d9c: 685b ldr r3, [r3, #4]
  22406. 8009d9e: f003 0303 and.w r3, r3, #3
  22407. 8009da2: 2b03 cmp r3, #3
  22408. 8009da4: d017 beq.n 8009dd6 <HAL_GPIO_Init+0xe2>
  22409. {
  22410. /* Check the Pull parameter */
  22411. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  22412. /* Activate the Pull-up or Pull down resistor for the current IO */
  22413. temp = GPIOx->PUPDR;
  22414. 8009da6: 687b ldr r3, [r7, #4]
  22415. 8009da8: 68db ldr r3, [r3, #12]
  22416. 8009daa: 61bb str r3, [r7, #24]
  22417. temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U));
  22418. 8009dac: 69fb ldr r3, [r7, #28]
  22419. 8009dae: 005b lsls r3, r3, #1
  22420. 8009db0: 2203 movs r2, #3
  22421. 8009db2: fa02 f303 lsl.w r3, r2, r3
  22422. 8009db6: 43db mvns r3, r3
  22423. 8009db8: 69ba ldr r2, [r7, #24]
  22424. 8009dba: 4013 ands r3, r2
  22425. 8009dbc: 61bb str r3, [r7, #24]
  22426. temp |= ((GPIO_Init->Pull) << (position * 2U));
  22427. 8009dbe: 683b ldr r3, [r7, #0]
  22428. 8009dc0: 689a ldr r2, [r3, #8]
  22429. 8009dc2: 69fb ldr r3, [r7, #28]
  22430. 8009dc4: 005b lsls r3, r3, #1
  22431. 8009dc6: fa02 f303 lsl.w r3, r2, r3
  22432. 8009dca: 69ba ldr r2, [r7, #24]
  22433. 8009dcc: 4313 orrs r3, r2
  22434. 8009dce: 61bb str r3, [r7, #24]
  22435. GPIOx->PUPDR = temp;
  22436. 8009dd0: 687b ldr r3, [r7, #4]
  22437. 8009dd2: 69ba ldr r2, [r7, #24]
  22438. 8009dd4: 60da str r2, [r3, #12]
  22439. }
  22440. /* In case of Alternate function mode selection */
  22441. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  22442. 8009dd6: 683b ldr r3, [r7, #0]
  22443. 8009dd8: 685b ldr r3, [r3, #4]
  22444. 8009dda: f003 0303 and.w r3, r3, #3
  22445. 8009dde: 2b02 cmp r3, #2
  22446. 8009de0: d123 bne.n 8009e2a <HAL_GPIO_Init+0x136>
  22447. /* Check the Alternate function parameters */
  22448. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  22449. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  22450. /* Configure Alternate function mapped with the current IO */
  22451. temp = GPIOx->AFR[position >> 3U];
  22452. 8009de2: 69fb ldr r3, [r7, #28]
  22453. 8009de4: 08da lsrs r2, r3, #3
  22454. 8009de6: 687b ldr r3, [r7, #4]
  22455. 8009de8: 3208 adds r2, #8
  22456. 8009dea: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  22457. 8009dee: 61bb str r3, [r7, #24]
  22458. temp &= ~(0xFU << ((position & 0x07U) * 4U));
  22459. 8009df0: 69fb ldr r3, [r7, #28]
  22460. 8009df2: f003 0307 and.w r3, r3, #7
  22461. 8009df6: 009b lsls r3, r3, #2
  22462. 8009df8: 220f movs r2, #15
  22463. 8009dfa: fa02 f303 lsl.w r3, r2, r3
  22464. 8009dfe: 43db mvns r3, r3
  22465. 8009e00: 69ba ldr r2, [r7, #24]
  22466. 8009e02: 4013 ands r3, r2
  22467. 8009e04: 61bb str r3, [r7, #24]
  22468. temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U));
  22469. 8009e06: 683b ldr r3, [r7, #0]
  22470. 8009e08: 691a ldr r2, [r3, #16]
  22471. 8009e0a: 69fb ldr r3, [r7, #28]
  22472. 8009e0c: f003 0307 and.w r3, r3, #7
  22473. 8009e10: 009b lsls r3, r3, #2
  22474. 8009e12: fa02 f303 lsl.w r3, r2, r3
  22475. 8009e16: 69ba ldr r2, [r7, #24]
  22476. 8009e18: 4313 orrs r3, r2
  22477. 8009e1a: 61bb str r3, [r7, #24]
  22478. GPIOx->AFR[position >> 3U] = temp;
  22479. 8009e1c: 69fb ldr r3, [r7, #28]
  22480. 8009e1e: 08da lsrs r2, r3, #3
  22481. 8009e20: 687b ldr r3, [r7, #4]
  22482. 8009e22: 3208 adds r2, #8
  22483. 8009e24: 69b9 ldr r1, [r7, #24]
  22484. 8009e26: f843 1022 str.w r1, [r3, r2, lsl #2]
  22485. }
  22486. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  22487. temp = GPIOx->MODER;
  22488. 8009e2a: 687b ldr r3, [r7, #4]
  22489. 8009e2c: 681b ldr r3, [r3, #0]
  22490. 8009e2e: 61bb str r3, [r7, #24]
  22491. temp &= ~(GPIO_MODER_MODE0 << (position * 2U));
  22492. 8009e30: 69fb ldr r3, [r7, #28]
  22493. 8009e32: 005b lsls r3, r3, #1
  22494. 8009e34: 2203 movs r2, #3
  22495. 8009e36: fa02 f303 lsl.w r3, r2, r3
  22496. 8009e3a: 43db mvns r3, r3
  22497. 8009e3c: 69ba ldr r2, [r7, #24]
  22498. 8009e3e: 4013 ands r3, r2
  22499. 8009e40: 61bb str r3, [r7, #24]
  22500. temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U));
  22501. 8009e42: 683b ldr r3, [r7, #0]
  22502. 8009e44: 685b ldr r3, [r3, #4]
  22503. 8009e46: f003 0203 and.w r2, r3, #3
  22504. 8009e4a: 69fb ldr r3, [r7, #28]
  22505. 8009e4c: 005b lsls r3, r3, #1
  22506. 8009e4e: fa02 f303 lsl.w r3, r2, r3
  22507. 8009e52: 69ba ldr r2, [r7, #24]
  22508. 8009e54: 4313 orrs r3, r2
  22509. 8009e56: 61bb str r3, [r7, #24]
  22510. GPIOx->MODER = temp;
  22511. 8009e58: 687b ldr r3, [r7, #4]
  22512. 8009e5a: 69ba ldr r2, [r7, #24]
  22513. 8009e5c: 601a str r2, [r3, #0]
  22514. /*--------------------- EXTI Mode Configuration ------------------------*/
  22515. /* Configure the External Interrupt or event for the current IO */
  22516. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
  22517. 8009e5e: 683b ldr r3, [r7, #0]
  22518. 8009e60: 685b ldr r3, [r3, #4]
  22519. 8009e62: f403 3340 and.w r3, r3, #196608 @ 0x30000
  22520. 8009e66: 2b00 cmp r3, #0
  22521. 8009e68: f000 80e0 beq.w 800a02c <HAL_GPIO_Init+0x338>
  22522. {
  22523. /* Enable SYSCFG Clock */
  22524. __HAL_RCC_SYSCFG_CLK_ENABLE();
  22525. 8009e6c: 4b2f ldr r3, [pc, #188] @ (8009f2c <HAL_GPIO_Init+0x238>)
  22526. 8009e6e: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  22527. 8009e72: 4a2e ldr r2, [pc, #184] @ (8009f2c <HAL_GPIO_Init+0x238>)
  22528. 8009e74: f043 0302 orr.w r3, r3, #2
  22529. 8009e78: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  22530. 8009e7c: 4b2b ldr r3, [pc, #172] @ (8009f2c <HAL_GPIO_Init+0x238>)
  22531. 8009e7e: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  22532. 8009e82: f003 0302 and.w r3, r3, #2
  22533. 8009e86: 60fb str r3, [r7, #12]
  22534. 8009e88: 68fb ldr r3, [r7, #12]
  22535. temp = SYSCFG->EXTICR[position >> 2U];
  22536. 8009e8a: 4a29 ldr r2, [pc, #164] @ (8009f30 <HAL_GPIO_Init+0x23c>)
  22537. 8009e8c: 69fb ldr r3, [r7, #28]
  22538. 8009e8e: 089b lsrs r3, r3, #2
  22539. 8009e90: 3302 adds r3, #2
  22540. 8009e92: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  22541. 8009e96: 61bb str r3, [r7, #24]
  22542. temp &= ~(0x0FUL << (4U * (position & 0x03U)));
  22543. 8009e98: 69fb ldr r3, [r7, #28]
  22544. 8009e9a: f003 0303 and.w r3, r3, #3
  22545. 8009e9e: 009b lsls r3, r3, #2
  22546. 8009ea0: 220f movs r2, #15
  22547. 8009ea2: fa02 f303 lsl.w r3, r2, r3
  22548. 8009ea6: 43db mvns r3, r3
  22549. 8009ea8: 69ba ldr r2, [r7, #24]
  22550. 8009eaa: 4013 ands r3, r2
  22551. 8009eac: 61bb str r3, [r7, #24]
  22552. temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)));
  22553. 8009eae: 687b ldr r3, [r7, #4]
  22554. 8009eb0: 4a20 ldr r2, [pc, #128] @ (8009f34 <HAL_GPIO_Init+0x240>)
  22555. 8009eb2: 4293 cmp r3, r2
  22556. 8009eb4: d052 beq.n 8009f5c <HAL_GPIO_Init+0x268>
  22557. 8009eb6: 687b ldr r3, [r7, #4]
  22558. 8009eb8: 4a1f ldr r2, [pc, #124] @ (8009f38 <HAL_GPIO_Init+0x244>)
  22559. 8009eba: 4293 cmp r3, r2
  22560. 8009ebc: d031 beq.n 8009f22 <HAL_GPIO_Init+0x22e>
  22561. 8009ebe: 687b ldr r3, [r7, #4]
  22562. 8009ec0: 4a1e ldr r2, [pc, #120] @ (8009f3c <HAL_GPIO_Init+0x248>)
  22563. 8009ec2: 4293 cmp r3, r2
  22564. 8009ec4: d02b beq.n 8009f1e <HAL_GPIO_Init+0x22a>
  22565. 8009ec6: 687b ldr r3, [r7, #4]
  22566. 8009ec8: 4a1d ldr r2, [pc, #116] @ (8009f40 <HAL_GPIO_Init+0x24c>)
  22567. 8009eca: 4293 cmp r3, r2
  22568. 8009ecc: d025 beq.n 8009f1a <HAL_GPIO_Init+0x226>
  22569. 8009ece: 687b ldr r3, [r7, #4]
  22570. 8009ed0: 4a1c ldr r2, [pc, #112] @ (8009f44 <HAL_GPIO_Init+0x250>)
  22571. 8009ed2: 4293 cmp r3, r2
  22572. 8009ed4: d01f beq.n 8009f16 <HAL_GPIO_Init+0x222>
  22573. 8009ed6: 687b ldr r3, [r7, #4]
  22574. 8009ed8: 4a1b ldr r2, [pc, #108] @ (8009f48 <HAL_GPIO_Init+0x254>)
  22575. 8009eda: 4293 cmp r3, r2
  22576. 8009edc: d019 beq.n 8009f12 <HAL_GPIO_Init+0x21e>
  22577. 8009ede: 687b ldr r3, [r7, #4]
  22578. 8009ee0: 4a1a ldr r2, [pc, #104] @ (8009f4c <HAL_GPIO_Init+0x258>)
  22579. 8009ee2: 4293 cmp r3, r2
  22580. 8009ee4: d013 beq.n 8009f0e <HAL_GPIO_Init+0x21a>
  22581. 8009ee6: 687b ldr r3, [r7, #4]
  22582. 8009ee8: 4a19 ldr r2, [pc, #100] @ (8009f50 <HAL_GPIO_Init+0x25c>)
  22583. 8009eea: 4293 cmp r3, r2
  22584. 8009eec: d00d beq.n 8009f0a <HAL_GPIO_Init+0x216>
  22585. 8009eee: 687b ldr r3, [r7, #4]
  22586. 8009ef0: 4a18 ldr r2, [pc, #96] @ (8009f54 <HAL_GPIO_Init+0x260>)
  22587. 8009ef2: 4293 cmp r3, r2
  22588. 8009ef4: d007 beq.n 8009f06 <HAL_GPIO_Init+0x212>
  22589. 8009ef6: 687b ldr r3, [r7, #4]
  22590. 8009ef8: 4a17 ldr r2, [pc, #92] @ (8009f58 <HAL_GPIO_Init+0x264>)
  22591. 8009efa: 4293 cmp r3, r2
  22592. 8009efc: d101 bne.n 8009f02 <HAL_GPIO_Init+0x20e>
  22593. 8009efe: 2309 movs r3, #9
  22594. 8009f00: e02d b.n 8009f5e <HAL_GPIO_Init+0x26a>
  22595. 8009f02: 230a movs r3, #10
  22596. 8009f04: e02b b.n 8009f5e <HAL_GPIO_Init+0x26a>
  22597. 8009f06: 2308 movs r3, #8
  22598. 8009f08: e029 b.n 8009f5e <HAL_GPIO_Init+0x26a>
  22599. 8009f0a: 2307 movs r3, #7
  22600. 8009f0c: e027 b.n 8009f5e <HAL_GPIO_Init+0x26a>
  22601. 8009f0e: 2306 movs r3, #6
  22602. 8009f10: e025 b.n 8009f5e <HAL_GPIO_Init+0x26a>
  22603. 8009f12: 2305 movs r3, #5
  22604. 8009f14: e023 b.n 8009f5e <HAL_GPIO_Init+0x26a>
  22605. 8009f16: 2304 movs r3, #4
  22606. 8009f18: e021 b.n 8009f5e <HAL_GPIO_Init+0x26a>
  22607. 8009f1a: 2303 movs r3, #3
  22608. 8009f1c: e01f b.n 8009f5e <HAL_GPIO_Init+0x26a>
  22609. 8009f1e: 2302 movs r3, #2
  22610. 8009f20: e01d b.n 8009f5e <HAL_GPIO_Init+0x26a>
  22611. 8009f22: 2301 movs r3, #1
  22612. 8009f24: e01b b.n 8009f5e <HAL_GPIO_Init+0x26a>
  22613. 8009f26: bf00 nop
  22614. 8009f28: 58000080 .word 0x58000080
  22615. 8009f2c: 58024400 .word 0x58024400
  22616. 8009f30: 58000400 .word 0x58000400
  22617. 8009f34: 58020000 .word 0x58020000
  22618. 8009f38: 58020400 .word 0x58020400
  22619. 8009f3c: 58020800 .word 0x58020800
  22620. 8009f40: 58020c00 .word 0x58020c00
  22621. 8009f44: 58021000 .word 0x58021000
  22622. 8009f48: 58021400 .word 0x58021400
  22623. 8009f4c: 58021800 .word 0x58021800
  22624. 8009f50: 58021c00 .word 0x58021c00
  22625. 8009f54: 58022000 .word 0x58022000
  22626. 8009f58: 58022400 .word 0x58022400
  22627. 8009f5c: 2300 movs r3, #0
  22628. 8009f5e: 69fa ldr r2, [r7, #28]
  22629. 8009f60: f002 0203 and.w r2, r2, #3
  22630. 8009f64: 0092 lsls r2, r2, #2
  22631. 8009f66: 4093 lsls r3, r2
  22632. 8009f68: 69ba ldr r2, [r7, #24]
  22633. 8009f6a: 4313 orrs r3, r2
  22634. 8009f6c: 61bb str r3, [r7, #24]
  22635. SYSCFG->EXTICR[position >> 2U] = temp;
  22636. 8009f6e: 4938 ldr r1, [pc, #224] @ (800a050 <HAL_GPIO_Init+0x35c>)
  22637. 8009f70: 69fb ldr r3, [r7, #28]
  22638. 8009f72: 089b lsrs r3, r3, #2
  22639. 8009f74: 3302 adds r3, #2
  22640. 8009f76: 69ba ldr r2, [r7, #24]
  22641. 8009f78: f841 2023 str.w r2, [r1, r3, lsl #2]
  22642. /* Clear Rising Falling edge configuration */
  22643. temp = EXTI->RTSR1;
  22644. 8009f7c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22645. 8009f80: 681b ldr r3, [r3, #0]
  22646. 8009f82: 61bb str r3, [r7, #24]
  22647. temp &= ~(iocurrent);
  22648. 8009f84: 693b ldr r3, [r7, #16]
  22649. 8009f86: 43db mvns r3, r3
  22650. 8009f88: 69ba ldr r2, [r7, #24]
  22651. 8009f8a: 4013 ands r3, r2
  22652. 8009f8c: 61bb str r3, [r7, #24]
  22653. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
  22654. 8009f8e: 683b ldr r3, [r7, #0]
  22655. 8009f90: 685b ldr r3, [r3, #4]
  22656. 8009f92: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  22657. 8009f96: 2b00 cmp r3, #0
  22658. 8009f98: d003 beq.n 8009fa2 <HAL_GPIO_Init+0x2ae>
  22659. {
  22660. temp |= iocurrent;
  22661. 8009f9a: 69ba ldr r2, [r7, #24]
  22662. 8009f9c: 693b ldr r3, [r7, #16]
  22663. 8009f9e: 4313 orrs r3, r2
  22664. 8009fa0: 61bb str r3, [r7, #24]
  22665. }
  22666. EXTI->RTSR1 = temp;
  22667. 8009fa2: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22668. 8009fa6: 69bb ldr r3, [r7, #24]
  22669. 8009fa8: 6013 str r3, [r2, #0]
  22670. temp = EXTI->FTSR1;
  22671. 8009faa: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22672. 8009fae: 685b ldr r3, [r3, #4]
  22673. 8009fb0: 61bb str r3, [r7, #24]
  22674. temp &= ~(iocurrent);
  22675. 8009fb2: 693b ldr r3, [r7, #16]
  22676. 8009fb4: 43db mvns r3, r3
  22677. 8009fb6: 69ba ldr r2, [r7, #24]
  22678. 8009fb8: 4013 ands r3, r2
  22679. 8009fba: 61bb str r3, [r7, #24]
  22680. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
  22681. 8009fbc: 683b ldr r3, [r7, #0]
  22682. 8009fbe: 685b ldr r3, [r3, #4]
  22683. 8009fc0: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  22684. 8009fc4: 2b00 cmp r3, #0
  22685. 8009fc6: d003 beq.n 8009fd0 <HAL_GPIO_Init+0x2dc>
  22686. {
  22687. temp |= iocurrent;
  22688. 8009fc8: 69ba ldr r2, [r7, #24]
  22689. 8009fca: 693b ldr r3, [r7, #16]
  22690. 8009fcc: 4313 orrs r3, r2
  22691. 8009fce: 61bb str r3, [r7, #24]
  22692. }
  22693. EXTI->FTSR1 = temp;
  22694. 8009fd0: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22695. 8009fd4: 69bb ldr r3, [r7, #24]
  22696. 8009fd6: 6053 str r3, [r2, #4]
  22697. temp = EXTI_CurrentCPU->EMR1;
  22698. 8009fd8: 697b ldr r3, [r7, #20]
  22699. 8009fda: 685b ldr r3, [r3, #4]
  22700. 8009fdc: 61bb str r3, [r7, #24]
  22701. temp &= ~(iocurrent);
  22702. 8009fde: 693b ldr r3, [r7, #16]
  22703. 8009fe0: 43db mvns r3, r3
  22704. 8009fe2: 69ba ldr r2, [r7, #24]
  22705. 8009fe4: 4013 ands r3, r2
  22706. 8009fe6: 61bb str r3, [r7, #24]
  22707. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
  22708. 8009fe8: 683b ldr r3, [r7, #0]
  22709. 8009fea: 685b ldr r3, [r3, #4]
  22710. 8009fec: f403 3300 and.w r3, r3, #131072 @ 0x20000
  22711. 8009ff0: 2b00 cmp r3, #0
  22712. 8009ff2: d003 beq.n 8009ffc <HAL_GPIO_Init+0x308>
  22713. {
  22714. temp |= iocurrent;
  22715. 8009ff4: 69ba ldr r2, [r7, #24]
  22716. 8009ff6: 693b ldr r3, [r7, #16]
  22717. 8009ff8: 4313 orrs r3, r2
  22718. 8009ffa: 61bb str r3, [r7, #24]
  22719. }
  22720. EXTI_CurrentCPU->EMR1 = temp;
  22721. 8009ffc: 697b ldr r3, [r7, #20]
  22722. 8009ffe: 69ba ldr r2, [r7, #24]
  22723. 800a000: 605a str r2, [r3, #4]
  22724. /* Clear EXTI line configuration */
  22725. temp = EXTI_CurrentCPU->IMR1;
  22726. 800a002: 697b ldr r3, [r7, #20]
  22727. 800a004: 681b ldr r3, [r3, #0]
  22728. 800a006: 61bb str r3, [r7, #24]
  22729. temp &= ~(iocurrent);
  22730. 800a008: 693b ldr r3, [r7, #16]
  22731. 800a00a: 43db mvns r3, r3
  22732. 800a00c: 69ba ldr r2, [r7, #24]
  22733. 800a00e: 4013 ands r3, r2
  22734. 800a010: 61bb str r3, [r7, #24]
  22735. if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
  22736. 800a012: 683b ldr r3, [r7, #0]
  22737. 800a014: 685b ldr r3, [r3, #4]
  22738. 800a016: f403 3380 and.w r3, r3, #65536 @ 0x10000
  22739. 800a01a: 2b00 cmp r3, #0
  22740. 800a01c: d003 beq.n 800a026 <HAL_GPIO_Init+0x332>
  22741. {
  22742. temp |= iocurrent;
  22743. 800a01e: 69ba ldr r2, [r7, #24]
  22744. 800a020: 693b ldr r3, [r7, #16]
  22745. 800a022: 4313 orrs r3, r2
  22746. 800a024: 61bb str r3, [r7, #24]
  22747. }
  22748. EXTI_CurrentCPU->IMR1 = temp;
  22749. 800a026: 697b ldr r3, [r7, #20]
  22750. 800a028: 69ba ldr r2, [r7, #24]
  22751. 800a02a: 601a str r2, [r3, #0]
  22752. }
  22753. }
  22754. position++;
  22755. 800a02c: 69fb ldr r3, [r7, #28]
  22756. 800a02e: 3301 adds r3, #1
  22757. 800a030: 61fb str r3, [r7, #28]
  22758. while (((GPIO_Init->Pin) >> position) != 0x00U)
  22759. 800a032: 683b ldr r3, [r7, #0]
  22760. 800a034: 681a ldr r2, [r3, #0]
  22761. 800a036: 69fb ldr r3, [r7, #28]
  22762. 800a038: fa22 f303 lsr.w r3, r2, r3
  22763. 800a03c: 2b00 cmp r3, #0
  22764. 800a03e: f47f ae63 bne.w 8009d08 <HAL_GPIO_Init+0x14>
  22765. }
  22766. }
  22767. 800a042: bf00 nop
  22768. 800a044: bf00 nop
  22769. 800a046: 3724 adds r7, #36 @ 0x24
  22770. 800a048: 46bd mov sp, r7
  22771. 800a04a: f85d 7b04 ldr.w r7, [sp], #4
  22772. 800a04e: 4770 bx lr
  22773. 800a050: 58000400 .word 0x58000400
  22774. 0800a054 <HAL_GPIO_ReadPin>:
  22775. * @param GPIO_Pin: specifies the port bit to read.
  22776. * This parameter can be GPIO_PIN_x where x can be (0..15).
  22777. * @retval The input port pin value.
  22778. */
  22779. GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  22780. {
  22781. 800a054: b480 push {r7}
  22782. 800a056: b085 sub sp, #20
  22783. 800a058: af00 add r7, sp, #0
  22784. 800a05a: 6078 str r0, [r7, #4]
  22785. 800a05c: 460b mov r3, r1
  22786. 800a05e: 807b strh r3, [r7, #2]
  22787. GPIO_PinState bitstatus;
  22788. /* Check the parameters */
  22789. assert_param(IS_GPIO_PIN(GPIO_Pin));
  22790. if ((GPIOx->IDR & GPIO_Pin) != 0x00U)
  22791. 800a060: 687b ldr r3, [r7, #4]
  22792. 800a062: 691a ldr r2, [r3, #16]
  22793. 800a064: 887b ldrh r3, [r7, #2]
  22794. 800a066: 4013 ands r3, r2
  22795. 800a068: 2b00 cmp r3, #0
  22796. 800a06a: d002 beq.n 800a072 <HAL_GPIO_ReadPin+0x1e>
  22797. {
  22798. bitstatus = GPIO_PIN_SET;
  22799. 800a06c: 2301 movs r3, #1
  22800. 800a06e: 73fb strb r3, [r7, #15]
  22801. 800a070: e001 b.n 800a076 <HAL_GPIO_ReadPin+0x22>
  22802. }
  22803. else
  22804. {
  22805. bitstatus = GPIO_PIN_RESET;
  22806. 800a072: 2300 movs r3, #0
  22807. 800a074: 73fb strb r3, [r7, #15]
  22808. }
  22809. return bitstatus;
  22810. 800a076: 7bfb ldrb r3, [r7, #15]
  22811. }
  22812. 800a078: 4618 mov r0, r3
  22813. 800a07a: 3714 adds r7, #20
  22814. 800a07c: 46bd mov sp, r7
  22815. 800a07e: f85d 7b04 ldr.w r7, [sp], #4
  22816. 800a082: 4770 bx lr
  22817. 0800a084 <HAL_GPIO_WritePin>:
  22818. * @arg GPIO_PIN_RESET: to clear the port pin
  22819. * @arg GPIO_PIN_SET: to set the port pin
  22820. * @retval None
  22821. */
  22822. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  22823. {
  22824. 800a084: b480 push {r7}
  22825. 800a086: b083 sub sp, #12
  22826. 800a088: af00 add r7, sp, #0
  22827. 800a08a: 6078 str r0, [r7, #4]
  22828. 800a08c: 460b mov r3, r1
  22829. 800a08e: 807b strh r3, [r7, #2]
  22830. 800a090: 4613 mov r3, r2
  22831. 800a092: 707b strb r3, [r7, #1]
  22832. /* Check the parameters */
  22833. assert_param(IS_GPIO_PIN(GPIO_Pin));
  22834. assert_param(IS_GPIO_PIN_ACTION(PinState));
  22835. if (PinState != GPIO_PIN_RESET)
  22836. 800a094: 787b ldrb r3, [r7, #1]
  22837. 800a096: 2b00 cmp r3, #0
  22838. 800a098: d003 beq.n 800a0a2 <HAL_GPIO_WritePin+0x1e>
  22839. {
  22840. GPIOx->BSRR = GPIO_Pin;
  22841. 800a09a: 887a ldrh r2, [r7, #2]
  22842. 800a09c: 687b ldr r3, [r7, #4]
  22843. 800a09e: 619a str r2, [r3, #24]
  22844. }
  22845. else
  22846. {
  22847. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  22848. }
  22849. }
  22850. 800a0a0: e003 b.n 800a0aa <HAL_GPIO_WritePin+0x26>
  22851. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  22852. 800a0a2: 887b ldrh r3, [r7, #2]
  22853. 800a0a4: 041a lsls r2, r3, #16
  22854. 800a0a6: 687b ldr r3, [r7, #4]
  22855. 800a0a8: 619a str r2, [r3, #24]
  22856. }
  22857. 800a0aa: bf00 nop
  22858. 800a0ac: 370c adds r7, #12
  22859. 800a0ae: 46bd mov sp, r7
  22860. 800a0b0: f85d 7b04 ldr.w r7, [sp], #4
  22861. 800a0b4: 4770 bx lr
  22862. ...
  22863. 0800a0b8 <HAL_PWR_ConfigPVD>:
  22864. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  22865. * only Cortex-M4 or wake up Cortex-M7 and Cortex-M4.
  22866. * @retval None.
  22867. */
  22868. void HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD)
  22869. {
  22870. 800a0b8: b480 push {r7}
  22871. 800a0ba: b083 sub sp, #12
  22872. 800a0bc: af00 add r7, sp, #0
  22873. 800a0be: 6078 str r0, [r7, #4]
  22874. /* Check the PVD configuration parameter */
  22875. if (sConfigPVD == NULL)
  22876. 800a0c0: 687b ldr r3, [r7, #4]
  22877. 800a0c2: 2b00 cmp r3, #0
  22878. 800a0c4: d069 beq.n 800a19a <HAL_PWR_ConfigPVD+0xe2>
  22879. /* Check the parameters */
  22880. assert_param (IS_PWR_PVD_LEVEL (sConfigPVD->PVDLevel));
  22881. assert_param (IS_PWR_PVD_MODE (sConfigPVD->Mode));
  22882. /* Set PLS[7:5] bits according to PVDLevel value */
  22883. MODIFY_REG (PWR->CR1, PWR_CR1_PLS, sConfigPVD->PVDLevel);
  22884. 800a0c6: 4b38 ldr r3, [pc, #224] @ (800a1a8 <HAL_PWR_ConfigPVD+0xf0>)
  22885. 800a0c8: 681b ldr r3, [r3, #0]
  22886. 800a0ca: f023 02e0 bic.w r2, r3, #224 @ 0xe0
  22887. 800a0ce: 687b ldr r3, [r7, #4]
  22888. 800a0d0: 681b ldr r3, [r3, #0]
  22889. 800a0d2: 4935 ldr r1, [pc, #212] @ (800a1a8 <HAL_PWR_ConfigPVD+0xf0>)
  22890. 800a0d4: 4313 orrs r3, r2
  22891. 800a0d6: 600b str r3, [r1, #0]
  22892. /* Clear previous config */
  22893. #if !defined (DUAL_CORE)
  22894. __HAL_PWR_PVD_EXTI_DISABLE_EVENT ();
  22895. 800a0d8: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22896. 800a0dc: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  22897. 800a0e0: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22898. 800a0e4: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22899. 800a0e8: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  22900. __HAL_PWR_PVD_EXTI_DISABLE_IT ();
  22901. 800a0ec: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22902. 800a0f0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  22903. 800a0f4: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22904. 800a0f8: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22905. 800a0fc: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  22906. #endif /* !defined (DUAL_CORE) */
  22907. __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE ();
  22908. 800a100: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22909. 800a104: 681b ldr r3, [r3, #0]
  22910. 800a106: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22911. 800a10a: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22912. 800a10e: 6013 str r3, [r2, #0]
  22913. __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE ();
  22914. 800a110: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22915. 800a114: 685b ldr r3, [r3, #4]
  22916. 800a116: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22917. 800a11a: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22918. 800a11e: 6053 str r3, [r2, #4]
  22919. #if !defined (DUAL_CORE)
  22920. /* Interrupt mode configuration */
  22921. if ((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT)
  22922. 800a120: 687b ldr r3, [r7, #4]
  22923. 800a122: 685b ldr r3, [r3, #4]
  22924. 800a124: f403 3380 and.w r3, r3, #65536 @ 0x10000
  22925. 800a128: 2b00 cmp r3, #0
  22926. 800a12a: d009 beq.n 800a140 <HAL_PWR_ConfigPVD+0x88>
  22927. {
  22928. __HAL_PWR_PVD_EXTI_ENABLE_IT ();
  22929. 800a12c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22930. 800a130: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  22931. 800a134: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22932. 800a138: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22933. 800a13c: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  22934. }
  22935. /* Event mode configuration */
  22936. if ((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT)
  22937. 800a140: 687b ldr r3, [r7, #4]
  22938. 800a142: 685b ldr r3, [r3, #4]
  22939. 800a144: f403 3300 and.w r3, r3, #131072 @ 0x20000
  22940. 800a148: 2b00 cmp r3, #0
  22941. 800a14a: d009 beq.n 800a160 <HAL_PWR_ConfigPVD+0xa8>
  22942. {
  22943. __HAL_PWR_PVD_EXTI_ENABLE_EVENT ();
  22944. 800a14c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22945. 800a150: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  22946. 800a154: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22947. 800a158: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22948. 800a15c: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  22949. }
  22950. #endif /* !defined (DUAL_CORE) */
  22951. /* Rising edge configuration */
  22952. if ((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE)
  22953. 800a160: 687b ldr r3, [r7, #4]
  22954. 800a162: 685b ldr r3, [r3, #4]
  22955. 800a164: f003 0301 and.w r3, r3, #1
  22956. 800a168: 2b00 cmp r3, #0
  22957. 800a16a: d007 beq.n 800a17c <HAL_PWR_ConfigPVD+0xc4>
  22958. {
  22959. __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE ();
  22960. 800a16c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22961. 800a170: 681b ldr r3, [r3, #0]
  22962. 800a172: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22963. 800a176: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22964. 800a17a: 6013 str r3, [r2, #0]
  22965. }
  22966. /* Falling edge configuration */
  22967. if ((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE)
  22968. 800a17c: 687b ldr r3, [r7, #4]
  22969. 800a17e: 685b ldr r3, [r3, #4]
  22970. 800a180: f003 0302 and.w r3, r3, #2
  22971. 800a184: 2b00 cmp r3, #0
  22972. 800a186: d009 beq.n 800a19c <HAL_PWR_ConfigPVD+0xe4>
  22973. {
  22974. __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE ();
  22975. 800a188: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22976. 800a18c: 685b ldr r3, [r3, #4]
  22977. 800a18e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22978. 800a192: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22979. 800a196: 6053 str r3, [r2, #4]
  22980. 800a198: e000 b.n 800a19c <HAL_PWR_ConfigPVD+0xe4>
  22981. return;
  22982. 800a19a: bf00 nop
  22983. }
  22984. }
  22985. 800a19c: 370c adds r7, #12
  22986. 800a19e: 46bd mov sp, r7
  22987. 800a1a0: f85d 7b04 ldr.w r7, [sp], #4
  22988. 800a1a4: 4770 bx lr
  22989. 800a1a6: bf00 nop
  22990. 800a1a8: 58024800 .word 0x58024800
  22991. 0800a1ac <HAL_PWR_EnablePVD>:
  22992. /**
  22993. * @brief Enable the Programmable Voltage Detector (PVD).
  22994. * @retval None.
  22995. */
  22996. void HAL_PWR_EnablePVD (void)
  22997. {
  22998. 800a1ac: b480 push {r7}
  22999. 800a1ae: af00 add r7, sp, #0
  23000. /* Enable the power voltage detector */
  23001. SET_BIT (PWR->CR1, PWR_CR1_PVDEN);
  23002. 800a1b0: 4b05 ldr r3, [pc, #20] @ (800a1c8 <HAL_PWR_EnablePVD+0x1c>)
  23003. 800a1b2: 681b ldr r3, [r3, #0]
  23004. 800a1b4: 4a04 ldr r2, [pc, #16] @ (800a1c8 <HAL_PWR_EnablePVD+0x1c>)
  23005. 800a1b6: f043 0310 orr.w r3, r3, #16
  23006. 800a1ba: 6013 str r3, [r2, #0]
  23007. }
  23008. 800a1bc: bf00 nop
  23009. 800a1be: 46bd mov sp, r7
  23010. 800a1c0: f85d 7b04 ldr.w r7, [sp], #4
  23011. 800a1c4: 4770 bx lr
  23012. 800a1c6: bf00 nop
  23013. 800a1c8: 58024800 .word 0x58024800
  23014. 0800a1cc <HAL_PWREx_ConfigSupply>:
  23015. * PWR_SMPS_2V5_SUPPLIES_EXT are used only for lines that supports SMPS
  23016. * regulator.
  23017. * @retval HAL status.
  23018. */
  23019. HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource)
  23020. {
  23021. 800a1cc: b580 push {r7, lr}
  23022. 800a1ce: b084 sub sp, #16
  23023. 800a1d0: af00 add r7, sp, #0
  23024. 800a1d2: 6078 str r0, [r7, #4]
  23025. /* Check the parameters */
  23026. assert_param (IS_PWR_SUPPLY (SupplySource));
  23027. /* Check if supply source was configured */
  23028. #if defined (PWR_FLAG_SCUEN)
  23029. if (__HAL_PWR_GET_FLAG (PWR_FLAG_SCUEN) == 0U)
  23030. 800a1d4: 4b19 ldr r3, [pc, #100] @ (800a23c <HAL_PWREx_ConfigSupply+0x70>)
  23031. 800a1d6: 68db ldr r3, [r3, #12]
  23032. 800a1d8: f003 0304 and.w r3, r3, #4
  23033. 800a1dc: 2b04 cmp r3, #4
  23034. 800a1de: d00a beq.n 800a1f6 <HAL_PWREx_ConfigSupply+0x2a>
  23035. #else
  23036. if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LDOEN))
  23037. #endif /* defined (PWR_FLAG_SCUEN) */
  23038. {
  23039. /* Check supply configuration */
  23040. if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource)
  23041. 800a1e0: 4b16 ldr r3, [pc, #88] @ (800a23c <HAL_PWREx_ConfigSupply+0x70>)
  23042. 800a1e2: 68db ldr r3, [r3, #12]
  23043. 800a1e4: f003 0307 and.w r3, r3, #7
  23044. 800a1e8: 687a ldr r2, [r7, #4]
  23045. 800a1ea: 429a cmp r2, r3
  23046. 800a1ec: d001 beq.n 800a1f2 <HAL_PWREx_ConfigSupply+0x26>
  23047. {
  23048. /* Supply configuration update locked, can't apply a new supply config */
  23049. return HAL_ERROR;
  23050. 800a1ee: 2301 movs r3, #1
  23051. 800a1f0: e01f b.n 800a232 <HAL_PWREx_ConfigSupply+0x66>
  23052. else
  23053. {
  23054. /* Supply configuration update locked, but new supply configuration
  23055. matches with old supply configuration : nothing to do
  23056. */
  23057. return HAL_OK;
  23058. 800a1f2: 2300 movs r3, #0
  23059. 800a1f4: e01d b.n 800a232 <HAL_PWREx_ConfigSupply+0x66>
  23060. }
  23061. }
  23062. /* Set the power supply configuration */
  23063. MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource);
  23064. 800a1f6: 4b11 ldr r3, [pc, #68] @ (800a23c <HAL_PWREx_ConfigSupply+0x70>)
  23065. 800a1f8: 68db ldr r3, [r3, #12]
  23066. 800a1fa: f023 0207 bic.w r2, r3, #7
  23067. 800a1fe: 490f ldr r1, [pc, #60] @ (800a23c <HAL_PWREx_ConfigSupply+0x70>)
  23068. 800a200: 687b ldr r3, [r7, #4]
  23069. 800a202: 4313 orrs r3, r2
  23070. 800a204: 60cb str r3, [r1, #12]
  23071. /* Get tick */
  23072. tickstart = HAL_GetTick ();
  23073. 800a206: f7fb fa45 bl 8005694 <HAL_GetTick>
  23074. 800a20a: 60f8 str r0, [r7, #12]
  23075. /* Wait till voltage level flag is set */
  23076. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  23077. 800a20c: e009 b.n 800a222 <HAL_PWREx_ConfigSupply+0x56>
  23078. {
  23079. if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY)
  23080. 800a20e: f7fb fa41 bl 8005694 <HAL_GetTick>
  23081. 800a212: 4602 mov r2, r0
  23082. 800a214: 68fb ldr r3, [r7, #12]
  23083. 800a216: 1ad3 subs r3, r2, r3
  23084. 800a218: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  23085. 800a21c: d901 bls.n 800a222 <HAL_PWREx_ConfigSupply+0x56>
  23086. {
  23087. return HAL_ERROR;
  23088. 800a21e: 2301 movs r3, #1
  23089. 800a220: e007 b.n 800a232 <HAL_PWREx_ConfigSupply+0x66>
  23090. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  23091. 800a222: 4b06 ldr r3, [pc, #24] @ (800a23c <HAL_PWREx_ConfigSupply+0x70>)
  23092. 800a224: 685b ldr r3, [r3, #4]
  23093. 800a226: f403 5300 and.w r3, r3, #8192 @ 0x2000
  23094. 800a22a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  23095. 800a22e: d1ee bne.n 800a20e <HAL_PWREx_ConfigSupply+0x42>
  23096. }
  23097. }
  23098. }
  23099. #endif /* defined (SMPS) */
  23100. return HAL_OK;
  23101. 800a230: 2300 movs r3, #0
  23102. }
  23103. 800a232: 4618 mov r0, r3
  23104. 800a234: 3710 adds r7, #16
  23105. 800a236: 46bd mov sp, r7
  23106. 800a238: bd80 pop {r7, pc}
  23107. 800a23a: bf00 nop
  23108. 800a23c: 58024800 .word 0x58024800
  23109. 0800a240 <HAL_PWREx_ConfigAVD>:
  23110. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  23111. * only Cortex-M4 and wake up Cortex-M7 and Cortex-M4.
  23112. * @retval None.
  23113. */
  23114. void HAL_PWREx_ConfigAVD (PWREx_AVDTypeDef *sConfigAVD)
  23115. {
  23116. 800a240: b480 push {r7}
  23117. 800a242: b083 sub sp, #12
  23118. 800a244: af00 add r7, sp, #0
  23119. 800a246: 6078 str r0, [r7, #4]
  23120. /* Check the parameters */
  23121. assert_param (IS_PWR_AVD_LEVEL (sConfigAVD->AVDLevel));
  23122. assert_param (IS_PWR_AVD_MODE (sConfigAVD->Mode));
  23123. /* Set the ALS[18:17] bits according to AVDLevel value */
  23124. MODIFY_REG (PWR->CR1, PWR_CR1_ALS, sConfigAVD->AVDLevel);
  23125. 800a248: 4b37 ldr r3, [pc, #220] @ (800a328 <HAL_PWREx_ConfigAVD+0xe8>)
  23126. 800a24a: 681b ldr r3, [r3, #0]
  23127. 800a24c: f423 22c0 bic.w r2, r3, #393216 @ 0x60000
  23128. 800a250: 687b ldr r3, [r7, #4]
  23129. 800a252: 681b ldr r3, [r3, #0]
  23130. 800a254: 4934 ldr r1, [pc, #208] @ (800a328 <HAL_PWREx_ConfigAVD+0xe8>)
  23131. 800a256: 4313 orrs r3, r2
  23132. 800a258: 600b str r3, [r1, #0]
  23133. /* Clear any previous config */
  23134. #if !defined (DUAL_CORE)
  23135. __HAL_PWR_AVD_EXTI_DISABLE_EVENT ();
  23136. 800a25a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  23137. 800a25e: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  23138. 800a262: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  23139. 800a266: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  23140. 800a26a: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  23141. __HAL_PWR_AVD_EXTI_DISABLE_IT ();
  23142. 800a26e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  23143. 800a272: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  23144. 800a276: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  23145. 800a27a: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  23146. 800a27e: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  23147. #endif /* !defined (DUAL_CORE) */
  23148. __HAL_PWR_AVD_EXTI_DISABLE_RISING_EDGE ();
  23149. 800a282: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  23150. 800a286: 681b ldr r3, [r3, #0]
  23151. 800a288: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  23152. 800a28c: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  23153. 800a290: 6013 str r3, [r2, #0]
  23154. __HAL_PWR_AVD_EXTI_DISABLE_FALLING_EDGE ();
  23155. 800a292: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  23156. 800a296: 685b ldr r3, [r3, #4]
  23157. 800a298: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  23158. 800a29c: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  23159. 800a2a0: 6053 str r3, [r2, #4]
  23160. #if !defined (DUAL_CORE)
  23161. /* Configure the interrupt mode */
  23162. if ((sConfigAVD->Mode & AVD_MODE_IT) == AVD_MODE_IT)
  23163. 800a2a2: 687b ldr r3, [r7, #4]
  23164. 800a2a4: 685b ldr r3, [r3, #4]
  23165. 800a2a6: f403 3380 and.w r3, r3, #65536 @ 0x10000
  23166. 800a2aa: 2b00 cmp r3, #0
  23167. 800a2ac: d009 beq.n 800a2c2 <HAL_PWREx_ConfigAVD+0x82>
  23168. {
  23169. __HAL_PWR_AVD_EXTI_ENABLE_IT ();
  23170. 800a2ae: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  23171. 800a2b2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  23172. 800a2b6: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  23173. 800a2ba: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  23174. 800a2be: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  23175. }
  23176. /* Configure the event mode */
  23177. if ((sConfigAVD->Mode & AVD_MODE_EVT) == AVD_MODE_EVT)
  23178. 800a2c2: 687b ldr r3, [r7, #4]
  23179. 800a2c4: 685b ldr r3, [r3, #4]
  23180. 800a2c6: f403 3300 and.w r3, r3, #131072 @ 0x20000
  23181. 800a2ca: 2b00 cmp r3, #0
  23182. 800a2cc: d009 beq.n 800a2e2 <HAL_PWREx_ConfigAVD+0xa2>
  23183. {
  23184. __HAL_PWR_AVD_EXTI_ENABLE_EVENT ();
  23185. 800a2ce: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  23186. 800a2d2: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  23187. 800a2d6: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  23188. 800a2da: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  23189. 800a2de: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  23190. }
  23191. #endif /* !defined (DUAL_CORE) */
  23192. /* Rising edge configuration */
  23193. if ((sConfigAVD->Mode & AVD_RISING_EDGE) == AVD_RISING_EDGE)
  23194. 800a2e2: 687b ldr r3, [r7, #4]
  23195. 800a2e4: 685b ldr r3, [r3, #4]
  23196. 800a2e6: f003 0301 and.w r3, r3, #1
  23197. 800a2ea: 2b00 cmp r3, #0
  23198. 800a2ec: d007 beq.n 800a2fe <HAL_PWREx_ConfigAVD+0xbe>
  23199. {
  23200. __HAL_PWR_AVD_EXTI_ENABLE_RISING_EDGE ();
  23201. 800a2ee: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  23202. 800a2f2: 681b ldr r3, [r3, #0]
  23203. 800a2f4: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  23204. 800a2f8: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  23205. 800a2fc: 6013 str r3, [r2, #0]
  23206. }
  23207. /* Falling edge configuration */
  23208. if ((sConfigAVD->Mode & AVD_FALLING_EDGE) == AVD_FALLING_EDGE)
  23209. 800a2fe: 687b ldr r3, [r7, #4]
  23210. 800a300: 685b ldr r3, [r3, #4]
  23211. 800a302: f003 0302 and.w r3, r3, #2
  23212. 800a306: 2b00 cmp r3, #0
  23213. 800a308: d007 beq.n 800a31a <HAL_PWREx_ConfigAVD+0xda>
  23214. {
  23215. __HAL_PWR_AVD_EXTI_ENABLE_FALLING_EDGE ();
  23216. 800a30a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  23217. 800a30e: 685b ldr r3, [r3, #4]
  23218. 800a310: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  23219. 800a314: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  23220. 800a318: 6053 str r3, [r2, #4]
  23221. }
  23222. }
  23223. 800a31a: bf00 nop
  23224. 800a31c: 370c adds r7, #12
  23225. 800a31e: 46bd mov sp, r7
  23226. 800a320: f85d 7b04 ldr.w r7, [sp], #4
  23227. 800a324: 4770 bx lr
  23228. 800a326: bf00 nop
  23229. 800a328: 58024800 .word 0x58024800
  23230. 0800a32c <HAL_PWREx_EnableAVD>:
  23231. /**
  23232. * @brief Enable the Analog Voltage Detector (AVD).
  23233. * @retval None.
  23234. */
  23235. void HAL_PWREx_EnableAVD (void)
  23236. {
  23237. 800a32c: b480 push {r7}
  23238. 800a32e: af00 add r7, sp, #0
  23239. /* Enable the Analog Voltage Detector */
  23240. SET_BIT (PWR->CR1, PWR_CR1_AVDEN);
  23241. 800a330: 4b05 ldr r3, [pc, #20] @ (800a348 <HAL_PWREx_EnableAVD+0x1c>)
  23242. 800a332: 681b ldr r3, [r3, #0]
  23243. 800a334: 4a04 ldr r2, [pc, #16] @ (800a348 <HAL_PWREx_EnableAVD+0x1c>)
  23244. 800a336: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  23245. 800a33a: 6013 str r3, [r2, #0]
  23246. }
  23247. 800a33c: bf00 nop
  23248. 800a33e: 46bd mov sp, r7
  23249. 800a340: f85d 7b04 ldr.w r7, [sp], #4
  23250. 800a344: 4770 bx lr
  23251. 800a346: bf00 nop
  23252. 800a348: 58024800 .word 0x58024800
  23253. 0800a34c <HAL_RCC_OscConfig>:
  23254. * supported by this function. User should request a transition to HSE Off
  23255. * first and then HSE On or HSE Bypass.
  23256. * @retval HAL status
  23257. */
  23258. __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  23259. {
  23260. 800a34c: b580 push {r7, lr}
  23261. 800a34e: b08c sub sp, #48 @ 0x30
  23262. 800a350: af00 add r7, sp, #0
  23263. 800a352: 6078 str r0, [r7, #4]
  23264. uint32_t tickstart;
  23265. uint32_t temp1_pllckcfg, temp2_pllckcfg;
  23266. /* Check Null pointer */
  23267. if (RCC_OscInitStruct == NULL)
  23268. 800a354: 687b ldr r3, [r7, #4]
  23269. 800a356: 2b00 cmp r3, #0
  23270. 800a358: d102 bne.n 800a360 <HAL_RCC_OscConfig+0x14>
  23271. {
  23272. return HAL_ERROR;
  23273. 800a35a: 2301 movs r3, #1
  23274. 800a35c: f000 bc48 b.w 800abf0 <HAL_RCC_OscConfig+0x8a4>
  23275. }
  23276. /* Check the parameters */
  23277. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  23278. /*------------------------------- HSE Configuration ------------------------*/
  23279. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  23280. 800a360: 687b ldr r3, [r7, #4]
  23281. 800a362: 681b ldr r3, [r3, #0]
  23282. 800a364: f003 0301 and.w r3, r3, #1
  23283. 800a368: 2b00 cmp r3, #0
  23284. 800a36a: f000 8088 beq.w 800a47e <HAL_RCC_OscConfig+0x132>
  23285. {
  23286. /* Check the parameters */
  23287. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  23288. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  23289. 800a36e: 4b99 ldr r3, [pc, #612] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23290. 800a370: 691b ldr r3, [r3, #16]
  23291. 800a372: f003 0338 and.w r3, r3, #56 @ 0x38
  23292. 800a376: 62fb str r3, [r7, #44] @ 0x2c
  23293. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  23294. 800a378: 4b96 ldr r3, [pc, #600] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23295. 800a37a: 6a9b ldr r3, [r3, #40] @ 0x28
  23296. 800a37c: 62bb str r3, [r7, #40] @ 0x28
  23297. /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */
  23298. if ((temp_sysclksrc == RCC_CFGR_SWS_HSE) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSE)))
  23299. 800a37e: 6afb ldr r3, [r7, #44] @ 0x2c
  23300. 800a380: 2b10 cmp r3, #16
  23301. 800a382: d007 beq.n 800a394 <HAL_RCC_OscConfig+0x48>
  23302. 800a384: 6afb ldr r3, [r7, #44] @ 0x2c
  23303. 800a386: 2b18 cmp r3, #24
  23304. 800a388: d111 bne.n 800a3ae <HAL_RCC_OscConfig+0x62>
  23305. 800a38a: 6abb ldr r3, [r7, #40] @ 0x28
  23306. 800a38c: f003 0303 and.w r3, r3, #3
  23307. 800a390: 2b02 cmp r3, #2
  23308. 800a392: d10c bne.n 800a3ae <HAL_RCC_OscConfig+0x62>
  23309. {
  23310. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  23311. 800a394: 4b8f ldr r3, [pc, #572] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23312. 800a396: 681b ldr r3, [r3, #0]
  23313. 800a398: f403 3300 and.w r3, r3, #131072 @ 0x20000
  23314. 800a39c: 2b00 cmp r3, #0
  23315. 800a39e: d06d beq.n 800a47c <HAL_RCC_OscConfig+0x130>
  23316. 800a3a0: 687b ldr r3, [r7, #4]
  23317. 800a3a2: 685b ldr r3, [r3, #4]
  23318. 800a3a4: 2b00 cmp r3, #0
  23319. 800a3a6: d169 bne.n 800a47c <HAL_RCC_OscConfig+0x130>
  23320. {
  23321. return HAL_ERROR;
  23322. 800a3a8: 2301 movs r3, #1
  23323. 800a3aa: f000 bc21 b.w 800abf0 <HAL_RCC_OscConfig+0x8a4>
  23324. }
  23325. }
  23326. else
  23327. {
  23328. /* Set the new HSE configuration ---------------------------------------*/
  23329. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  23330. 800a3ae: 687b ldr r3, [r7, #4]
  23331. 800a3b0: 685b ldr r3, [r3, #4]
  23332. 800a3b2: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  23333. 800a3b6: d106 bne.n 800a3c6 <HAL_RCC_OscConfig+0x7a>
  23334. 800a3b8: 4b86 ldr r3, [pc, #536] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23335. 800a3ba: 681b ldr r3, [r3, #0]
  23336. 800a3bc: 4a85 ldr r2, [pc, #532] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23337. 800a3be: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  23338. 800a3c2: 6013 str r3, [r2, #0]
  23339. 800a3c4: e02e b.n 800a424 <HAL_RCC_OscConfig+0xd8>
  23340. 800a3c6: 687b ldr r3, [r7, #4]
  23341. 800a3c8: 685b ldr r3, [r3, #4]
  23342. 800a3ca: 2b00 cmp r3, #0
  23343. 800a3cc: d10c bne.n 800a3e8 <HAL_RCC_OscConfig+0x9c>
  23344. 800a3ce: 4b81 ldr r3, [pc, #516] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23345. 800a3d0: 681b ldr r3, [r3, #0]
  23346. 800a3d2: 4a80 ldr r2, [pc, #512] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23347. 800a3d4: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  23348. 800a3d8: 6013 str r3, [r2, #0]
  23349. 800a3da: 4b7e ldr r3, [pc, #504] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23350. 800a3dc: 681b ldr r3, [r3, #0]
  23351. 800a3de: 4a7d ldr r2, [pc, #500] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23352. 800a3e0: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  23353. 800a3e4: 6013 str r3, [r2, #0]
  23354. 800a3e6: e01d b.n 800a424 <HAL_RCC_OscConfig+0xd8>
  23355. 800a3e8: 687b ldr r3, [r7, #4]
  23356. 800a3ea: 685b ldr r3, [r3, #4]
  23357. 800a3ec: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  23358. 800a3f0: d10c bne.n 800a40c <HAL_RCC_OscConfig+0xc0>
  23359. 800a3f2: 4b78 ldr r3, [pc, #480] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23360. 800a3f4: 681b ldr r3, [r3, #0]
  23361. 800a3f6: 4a77 ldr r2, [pc, #476] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23362. 800a3f8: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  23363. 800a3fc: 6013 str r3, [r2, #0]
  23364. 800a3fe: 4b75 ldr r3, [pc, #468] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23365. 800a400: 681b ldr r3, [r3, #0]
  23366. 800a402: 4a74 ldr r2, [pc, #464] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23367. 800a404: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  23368. 800a408: 6013 str r3, [r2, #0]
  23369. 800a40a: e00b b.n 800a424 <HAL_RCC_OscConfig+0xd8>
  23370. 800a40c: 4b71 ldr r3, [pc, #452] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23371. 800a40e: 681b ldr r3, [r3, #0]
  23372. 800a410: 4a70 ldr r2, [pc, #448] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23373. 800a412: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  23374. 800a416: 6013 str r3, [r2, #0]
  23375. 800a418: 4b6e ldr r3, [pc, #440] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23376. 800a41a: 681b ldr r3, [r3, #0]
  23377. 800a41c: 4a6d ldr r2, [pc, #436] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23378. 800a41e: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  23379. 800a422: 6013 str r3, [r2, #0]
  23380. /* Check the HSE State */
  23381. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  23382. 800a424: 687b ldr r3, [r7, #4]
  23383. 800a426: 685b ldr r3, [r3, #4]
  23384. 800a428: 2b00 cmp r3, #0
  23385. 800a42a: d013 beq.n 800a454 <HAL_RCC_OscConfig+0x108>
  23386. {
  23387. /* Get Start Tick*/
  23388. tickstart = HAL_GetTick();
  23389. 800a42c: f7fb f932 bl 8005694 <HAL_GetTick>
  23390. 800a430: 6278 str r0, [r7, #36] @ 0x24
  23391. /* Wait till HSE is ready */
  23392. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  23393. 800a432: e008 b.n 800a446 <HAL_RCC_OscConfig+0xfa>
  23394. {
  23395. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  23396. 800a434: f7fb f92e bl 8005694 <HAL_GetTick>
  23397. 800a438: 4602 mov r2, r0
  23398. 800a43a: 6a7b ldr r3, [r7, #36] @ 0x24
  23399. 800a43c: 1ad3 subs r3, r2, r3
  23400. 800a43e: 2b64 cmp r3, #100 @ 0x64
  23401. 800a440: d901 bls.n 800a446 <HAL_RCC_OscConfig+0xfa>
  23402. {
  23403. return HAL_TIMEOUT;
  23404. 800a442: 2303 movs r3, #3
  23405. 800a444: e3d4 b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  23406. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  23407. 800a446: 4b63 ldr r3, [pc, #396] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23408. 800a448: 681b ldr r3, [r3, #0]
  23409. 800a44a: f403 3300 and.w r3, r3, #131072 @ 0x20000
  23410. 800a44e: 2b00 cmp r3, #0
  23411. 800a450: d0f0 beq.n 800a434 <HAL_RCC_OscConfig+0xe8>
  23412. 800a452: e014 b.n 800a47e <HAL_RCC_OscConfig+0x132>
  23413. }
  23414. }
  23415. else
  23416. {
  23417. /* Get Start Tick*/
  23418. tickstart = HAL_GetTick();
  23419. 800a454: f7fb f91e bl 8005694 <HAL_GetTick>
  23420. 800a458: 6278 str r0, [r7, #36] @ 0x24
  23421. /* Wait till HSE is disabled */
  23422. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  23423. 800a45a: e008 b.n 800a46e <HAL_RCC_OscConfig+0x122>
  23424. {
  23425. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  23426. 800a45c: f7fb f91a bl 8005694 <HAL_GetTick>
  23427. 800a460: 4602 mov r2, r0
  23428. 800a462: 6a7b ldr r3, [r7, #36] @ 0x24
  23429. 800a464: 1ad3 subs r3, r2, r3
  23430. 800a466: 2b64 cmp r3, #100 @ 0x64
  23431. 800a468: d901 bls.n 800a46e <HAL_RCC_OscConfig+0x122>
  23432. {
  23433. return HAL_TIMEOUT;
  23434. 800a46a: 2303 movs r3, #3
  23435. 800a46c: e3c0 b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  23436. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  23437. 800a46e: 4b59 ldr r3, [pc, #356] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23438. 800a470: 681b ldr r3, [r3, #0]
  23439. 800a472: f403 3300 and.w r3, r3, #131072 @ 0x20000
  23440. 800a476: 2b00 cmp r3, #0
  23441. 800a478: d1f0 bne.n 800a45c <HAL_RCC_OscConfig+0x110>
  23442. 800a47a: e000 b.n 800a47e <HAL_RCC_OscConfig+0x132>
  23443. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  23444. 800a47c: bf00 nop
  23445. }
  23446. }
  23447. }
  23448. }
  23449. /*----------------------------- HSI Configuration --------------------------*/
  23450. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  23451. 800a47e: 687b ldr r3, [r7, #4]
  23452. 800a480: 681b ldr r3, [r3, #0]
  23453. 800a482: f003 0302 and.w r3, r3, #2
  23454. 800a486: 2b00 cmp r3, #0
  23455. 800a488: f000 80ca beq.w 800a620 <HAL_RCC_OscConfig+0x2d4>
  23456. /* Check the parameters */
  23457. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  23458. assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  23459. /* When the HSI is used as system clock it will not be disabled */
  23460. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  23461. 800a48c: 4b51 ldr r3, [pc, #324] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23462. 800a48e: 691b ldr r3, [r3, #16]
  23463. 800a490: f003 0338 and.w r3, r3, #56 @ 0x38
  23464. 800a494: 623b str r3, [r7, #32]
  23465. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  23466. 800a496: 4b4f ldr r3, [pc, #316] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23467. 800a498: 6a9b ldr r3, [r3, #40] @ 0x28
  23468. 800a49a: 61fb str r3, [r7, #28]
  23469. if ((temp_sysclksrc == RCC_CFGR_SWS_HSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSI)))
  23470. 800a49c: 6a3b ldr r3, [r7, #32]
  23471. 800a49e: 2b00 cmp r3, #0
  23472. 800a4a0: d007 beq.n 800a4b2 <HAL_RCC_OscConfig+0x166>
  23473. 800a4a2: 6a3b ldr r3, [r7, #32]
  23474. 800a4a4: 2b18 cmp r3, #24
  23475. 800a4a6: d156 bne.n 800a556 <HAL_RCC_OscConfig+0x20a>
  23476. 800a4a8: 69fb ldr r3, [r7, #28]
  23477. 800a4aa: f003 0303 and.w r3, r3, #3
  23478. 800a4ae: 2b00 cmp r3, #0
  23479. 800a4b0: d151 bne.n 800a556 <HAL_RCC_OscConfig+0x20a>
  23480. {
  23481. /* When HSI is used as system clock it will not be disabled */
  23482. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  23483. 800a4b2: 4b48 ldr r3, [pc, #288] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23484. 800a4b4: 681b ldr r3, [r3, #0]
  23485. 800a4b6: f003 0304 and.w r3, r3, #4
  23486. 800a4ba: 2b00 cmp r3, #0
  23487. 800a4bc: d005 beq.n 800a4ca <HAL_RCC_OscConfig+0x17e>
  23488. 800a4be: 687b ldr r3, [r7, #4]
  23489. 800a4c0: 68db ldr r3, [r3, #12]
  23490. 800a4c2: 2b00 cmp r3, #0
  23491. 800a4c4: d101 bne.n 800a4ca <HAL_RCC_OscConfig+0x17e>
  23492. {
  23493. return HAL_ERROR;
  23494. 800a4c6: 2301 movs r3, #1
  23495. 800a4c8: e392 b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  23496. }
  23497. /* Otherwise, only HSI division and calibration are allowed */
  23498. else
  23499. {
  23500. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2, HSIDIV4, or HSIDIV8) */
  23501. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  23502. 800a4ca: 4b42 ldr r3, [pc, #264] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23503. 800a4cc: 681b ldr r3, [r3, #0]
  23504. 800a4ce: f023 0219 bic.w r2, r3, #25
  23505. 800a4d2: 687b ldr r3, [r7, #4]
  23506. 800a4d4: 68db ldr r3, [r3, #12]
  23507. 800a4d6: 493f ldr r1, [pc, #252] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23508. 800a4d8: 4313 orrs r3, r2
  23509. 800a4da: 600b str r3, [r1, #0]
  23510. /* Get Start Tick*/
  23511. tickstart = HAL_GetTick();
  23512. 800a4dc: f7fb f8da bl 8005694 <HAL_GetTick>
  23513. 800a4e0: 6278 str r0, [r7, #36] @ 0x24
  23514. /* Wait till HSI is ready */
  23515. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  23516. 800a4e2: e008 b.n 800a4f6 <HAL_RCC_OscConfig+0x1aa>
  23517. {
  23518. if ((uint32_t)(HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  23519. 800a4e4: f7fb f8d6 bl 8005694 <HAL_GetTick>
  23520. 800a4e8: 4602 mov r2, r0
  23521. 800a4ea: 6a7b ldr r3, [r7, #36] @ 0x24
  23522. 800a4ec: 1ad3 subs r3, r2, r3
  23523. 800a4ee: 2b02 cmp r3, #2
  23524. 800a4f0: d901 bls.n 800a4f6 <HAL_RCC_OscConfig+0x1aa>
  23525. {
  23526. return HAL_TIMEOUT;
  23527. 800a4f2: 2303 movs r3, #3
  23528. 800a4f4: e37c b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  23529. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  23530. 800a4f6: 4b37 ldr r3, [pc, #220] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23531. 800a4f8: 681b ldr r3, [r3, #0]
  23532. 800a4fa: f003 0304 and.w r3, r3, #4
  23533. 800a4fe: 2b00 cmp r3, #0
  23534. 800a500: d0f0 beq.n 800a4e4 <HAL_RCC_OscConfig+0x198>
  23535. }
  23536. }
  23537. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  23538. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  23539. 800a502: f7fb f8f7 bl 80056f4 <HAL_GetREVID>
  23540. 800a506: 4603 mov r3, r0
  23541. 800a508: f241 0203 movw r2, #4099 @ 0x1003
  23542. 800a50c: 4293 cmp r3, r2
  23543. 800a50e: d817 bhi.n 800a540 <HAL_RCC_OscConfig+0x1f4>
  23544. 800a510: 687b ldr r3, [r7, #4]
  23545. 800a512: 691b ldr r3, [r3, #16]
  23546. 800a514: 2b40 cmp r3, #64 @ 0x40
  23547. 800a516: d108 bne.n 800a52a <HAL_RCC_OscConfig+0x1de>
  23548. 800a518: 4b2e ldr r3, [pc, #184] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23549. 800a51a: 685b ldr r3, [r3, #4]
  23550. 800a51c: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  23551. 800a520: 4a2c ldr r2, [pc, #176] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23552. 800a522: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  23553. 800a526: 6053 str r3, [r2, #4]
  23554. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  23555. 800a528: e07a b.n 800a620 <HAL_RCC_OscConfig+0x2d4>
  23556. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  23557. 800a52a: 4b2a ldr r3, [pc, #168] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23558. 800a52c: 685b ldr r3, [r3, #4]
  23559. 800a52e: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  23560. 800a532: 687b ldr r3, [r7, #4]
  23561. 800a534: 691b ldr r3, [r3, #16]
  23562. 800a536: 031b lsls r3, r3, #12
  23563. 800a538: 4926 ldr r1, [pc, #152] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23564. 800a53a: 4313 orrs r3, r2
  23565. 800a53c: 604b str r3, [r1, #4]
  23566. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  23567. 800a53e: e06f b.n 800a620 <HAL_RCC_OscConfig+0x2d4>
  23568. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  23569. 800a540: 4b24 ldr r3, [pc, #144] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23570. 800a542: 685b ldr r3, [r3, #4]
  23571. 800a544: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  23572. 800a548: 687b ldr r3, [r7, #4]
  23573. 800a54a: 691b ldr r3, [r3, #16]
  23574. 800a54c: 061b lsls r3, r3, #24
  23575. 800a54e: 4921 ldr r1, [pc, #132] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23576. 800a550: 4313 orrs r3, r2
  23577. 800a552: 604b str r3, [r1, #4]
  23578. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  23579. 800a554: e064 b.n 800a620 <HAL_RCC_OscConfig+0x2d4>
  23580. }
  23581. else
  23582. {
  23583. /* Check the HSI State */
  23584. if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF)
  23585. 800a556: 687b ldr r3, [r7, #4]
  23586. 800a558: 68db ldr r3, [r3, #12]
  23587. 800a55a: 2b00 cmp r3, #0
  23588. 800a55c: d047 beq.n 800a5ee <HAL_RCC_OscConfig+0x2a2>
  23589. {
  23590. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2,HSIDIV4, or HSIDIV8) */
  23591. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  23592. 800a55e: 4b1d ldr r3, [pc, #116] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23593. 800a560: 681b ldr r3, [r3, #0]
  23594. 800a562: f023 0219 bic.w r2, r3, #25
  23595. 800a566: 687b ldr r3, [r7, #4]
  23596. 800a568: 68db ldr r3, [r3, #12]
  23597. 800a56a: 491a ldr r1, [pc, #104] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23598. 800a56c: 4313 orrs r3, r2
  23599. 800a56e: 600b str r3, [r1, #0]
  23600. /* Get Start Tick*/
  23601. tickstart = HAL_GetTick();
  23602. 800a570: f7fb f890 bl 8005694 <HAL_GetTick>
  23603. 800a574: 6278 str r0, [r7, #36] @ 0x24
  23604. /* Wait till HSI is ready */
  23605. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  23606. 800a576: e008 b.n 800a58a <HAL_RCC_OscConfig+0x23e>
  23607. {
  23608. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  23609. 800a578: f7fb f88c bl 8005694 <HAL_GetTick>
  23610. 800a57c: 4602 mov r2, r0
  23611. 800a57e: 6a7b ldr r3, [r7, #36] @ 0x24
  23612. 800a580: 1ad3 subs r3, r2, r3
  23613. 800a582: 2b02 cmp r3, #2
  23614. 800a584: d901 bls.n 800a58a <HAL_RCC_OscConfig+0x23e>
  23615. {
  23616. return HAL_TIMEOUT;
  23617. 800a586: 2303 movs r3, #3
  23618. 800a588: e332 b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  23619. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  23620. 800a58a: 4b12 ldr r3, [pc, #72] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23621. 800a58c: 681b ldr r3, [r3, #0]
  23622. 800a58e: f003 0304 and.w r3, r3, #4
  23623. 800a592: 2b00 cmp r3, #0
  23624. 800a594: d0f0 beq.n 800a578 <HAL_RCC_OscConfig+0x22c>
  23625. }
  23626. }
  23627. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  23628. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  23629. 800a596: f7fb f8ad bl 80056f4 <HAL_GetREVID>
  23630. 800a59a: 4603 mov r3, r0
  23631. 800a59c: f241 0203 movw r2, #4099 @ 0x1003
  23632. 800a5a0: 4293 cmp r3, r2
  23633. 800a5a2: d819 bhi.n 800a5d8 <HAL_RCC_OscConfig+0x28c>
  23634. 800a5a4: 687b ldr r3, [r7, #4]
  23635. 800a5a6: 691b ldr r3, [r3, #16]
  23636. 800a5a8: 2b40 cmp r3, #64 @ 0x40
  23637. 800a5aa: d108 bne.n 800a5be <HAL_RCC_OscConfig+0x272>
  23638. 800a5ac: 4b09 ldr r3, [pc, #36] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23639. 800a5ae: 685b ldr r3, [r3, #4]
  23640. 800a5b0: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  23641. 800a5b4: 4a07 ldr r2, [pc, #28] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23642. 800a5b6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  23643. 800a5ba: 6053 str r3, [r2, #4]
  23644. 800a5bc: e030 b.n 800a620 <HAL_RCC_OscConfig+0x2d4>
  23645. 800a5be: 4b05 ldr r3, [pc, #20] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23646. 800a5c0: 685b ldr r3, [r3, #4]
  23647. 800a5c2: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  23648. 800a5c6: 687b ldr r3, [r7, #4]
  23649. 800a5c8: 691b ldr r3, [r3, #16]
  23650. 800a5ca: 031b lsls r3, r3, #12
  23651. 800a5cc: 4901 ldr r1, [pc, #4] @ (800a5d4 <HAL_RCC_OscConfig+0x288>)
  23652. 800a5ce: 4313 orrs r3, r2
  23653. 800a5d0: 604b str r3, [r1, #4]
  23654. 800a5d2: e025 b.n 800a620 <HAL_RCC_OscConfig+0x2d4>
  23655. 800a5d4: 58024400 .word 0x58024400
  23656. 800a5d8: 4b9a ldr r3, [pc, #616] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23657. 800a5da: 685b ldr r3, [r3, #4]
  23658. 800a5dc: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  23659. 800a5e0: 687b ldr r3, [r7, #4]
  23660. 800a5e2: 691b ldr r3, [r3, #16]
  23661. 800a5e4: 061b lsls r3, r3, #24
  23662. 800a5e6: 4997 ldr r1, [pc, #604] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23663. 800a5e8: 4313 orrs r3, r2
  23664. 800a5ea: 604b str r3, [r1, #4]
  23665. 800a5ec: e018 b.n 800a620 <HAL_RCC_OscConfig+0x2d4>
  23666. }
  23667. else
  23668. {
  23669. /* Disable the Internal High Speed oscillator (HSI). */
  23670. __HAL_RCC_HSI_DISABLE();
  23671. 800a5ee: 4b95 ldr r3, [pc, #596] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23672. 800a5f0: 681b ldr r3, [r3, #0]
  23673. 800a5f2: 4a94 ldr r2, [pc, #592] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23674. 800a5f4: f023 0301 bic.w r3, r3, #1
  23675. 800a5f8: 6013 str r3, [r2, #0]
  23676. /* Get Start Tick*/
  23677. tickstart = HAL_GetTick();
  23678. 800a5fa: f7fb f84b bl 8005694 <HAL_GetTick>
  23679. 800a5fe: 6278 str r0, [r7, #36] @ 0x24
  23680. /* Wait till HSI is disabled */
  23681. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  23682. 800a600: e008 b.n 800a614 <HAL_RCC_OscConfig+0x2c8>
  23683. {
  23684. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  23685. 800a602: f7fb f847 bl 8005694 <HAL_GetTick>
  23686. 800a606: 4602 mov r2, r0
  23687. 800a608: 6a7b ldr r3, [r7, #36] @ 0x24
  23688. 800a60a: 1ad3 subs r3, r2, r3
  23689. 800a60c: 2b02 cmp r3, #2
  23690. 800a60e: d901 bls.n 800a614 <HAL_RCC_OscConfig+0x2c8>
  23691. {
  23692. return HAL_TIMEOUT;
  23693. 800a610: 2303 movs r3, #3
  23694. 800a612: e2ed b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  23695. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  23696. 800a614: 4b8b ldr r3, [pc, #556] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23697. 800a616: 681b ldr r3, [r3, #0]
  23698. 800a618: f003 0304 and.w r3, r3, #4
  23699. 800a61c: 2b00 cmp r3, #0
  23700. 800a61e: d1f0 bne.n 800a602 <HAL_RCC_OscConfig+0x2b6>
  23701. }
  23702. }
  23703. }
  23704. }
  23705. /*----------------------------- CSI Configuration --------------------------*/
  23706. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI)
  23707. 800a620: 687b ldr r3, [r7, #4]
  23708. 800a622: 681b ldr r3, [r3, #0]
  23709. 800a624: f003 0310 and.w r3, r3, #16
  23710. 800a628: 2b00 cmp r3, #0
  23711. 800a62a: f000 80a9 beq.w 800a780 <HAL_RCC_OscConfig+0x434>
  23712. /* Check the parameters */
  23713. assert_param(IS_RCC_CSI(RCC_OscInitStruct->CSIState));
  23714. assert_param(IS_RCC_CSICALIBRATION_VALUE(RCC_OscInitStruct->CSICalibrationValue));
  23715. /* When the CSI is used as system clock it will not disabled */
  23716. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  23717. 800a62e: 4b85 ldr r3, [pc, #532] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23718. 800a630: 691b ldr r3, [r3, #16]
  23719. 800a632: f003 0338 and.w r3, r3, #56 @ 0x38
  23720. 800a636: 61bb str r3, [r7, #24]
  23721. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  23722. 800a638: 4b82 ldr r3, [pc, #520] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23723. 800a63a: 6a9b ldr r3, [r3, #40] @ 0x28
  23724. 800a63c: 617b str r3, [r7, #20]
  23725. if ((temp_sysclksrc == RCC_CFGR_SWS_CSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_CSI)))
  23726. 800a63e: 69bb ldr r3, [r7, #24]
  23727. 800a640: 2b08 cmp r3, #8
  23728. 800a642: d007 beq.n 800a654 <HAL_RCC_OscConfig+0x308>
  23729. 800a644: 69bb ldr r3, [r7, #24]
  23730. 800a646: 2b18 cmp r3, #24
  23731. 800a648: d13a bne.n 800a6c0 <HAL_RCC_OscConfig+0x374>
  23732. 800a64a: 697b ldr r3, [r7, #20]
  23733. 800a64c: f003 0303 and.w r3, r3, #3
  23734. 800a650: 2b01 cmp r3, #1
  23735. 800a652: d135 bne.n 800a6c0 <HAL_RCC_OscConfig+0x374>
  23736. {
  23737. /* When CSI is used as system clock it will not disabled */
  23738. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  23739. 800a654: 4b7b ldr r3, [pc, #492] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23740. 800a656: 681b ldr r3, [r3, #0]
  23741. 800a658: f403 7380 and.w r3, r3, #256 @ 0x100
  23742. 800a65c: 2b00 cmp r3, #0
  23743. 800a65e: d005 beq.n 800a66c <HAL_RCC_OscConfig+0x320>
  23744. 800a660: 687b ldr r3, [r7, #4]
  23745. 800a662: 69db ldr r3, [r3, #28]
  23746. 800a664: 2b80 cmp r3, #128 @ 0x80
  23747. 800a666: d001 beq.n 800a66c <HAL_RCC_OscConfig+0x320>
  23748. {
  23749. return HAL_ERROR;
  23750. 800a668: 2301 movs r3, #1
  23751. 800a66a: e2c1 b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  23752. }
  23753. /* Otherwise, just the calibration is allowed */
  23754. else
  23755. {
  23756. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  23757. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  23758. 800a66c: f7fb f842 bl 80056f4 <HAL_GetREVID>
  23759. 800a670: 4603 mov r3, r0
  23760. 800a672: f241 0203 movw r2, #4099 @ 0x1003
  23761. 800a676: 4293 cmp r3, r2
  23762. 800a678: d817 bhi.n 800a6aa <HAL_RCC_OscConfig+0x35e>
  23763. 800a67a: 687b ldr r3, [r7, #4]
  23764. 800a67c: 6a1b ldr r3, [r3, #32]
  23765. 800a67e: 2b20 cmp r3, #32
  23766. 800a680: d108 bne.n 800a694 <HAL_RCC_OscConfig+0x348>
  23767. 800a682: 4b70 ldr r3, [pc, #448] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23768. 800a684: 685b ldr r3, [r3, #4]
  23769. 800a686: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  23770. 800a68a: 4a6e ldr r2, [pc, #440] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23771. 800a68c: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  23772. 800a690: 6053 str r3, [r2, #4]
  23773. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  23774. 800a692: e075 b.n 800a780 <HAL_RCC_OscConfig+0x434>
  23775. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  23776. 800a694: 4b6b ldr r3, [pc, #428] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23777. 800a696: 685b ldr r3, [r3, #4]
  23778. 800a698: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  23779. 800a69c: 687b ldr r3, [r7, #4]
  23780. 800a69e: 6a1b ldr r3, [r3, #32]
  23781. 800a6a0: 069b lsls r3, r3, #26
  23782. 800a6a2: 4968 ldr r1, [pc, #416] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23783. 800a6a4: 4313 orrs r3, r2
  23784. 800a6a6: 604b str r3, [r1, #4]
  23785. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  23786. 800a6a8: e06a b.n 800a780 <HAL_RCC_OscConfig+0x434>
  23787. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  23788. 800a6aa: 4b66 ldr r3, [pc, #408] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23789. 800a6ac: 68db ldr r3, [r3, #12]
  23790. 800a6ae: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  23791. 800a6b2: 687b ldr r3, [r7, #4]
  23792. 800a6b4: 6a1b ldr r3, [r3, #32]
  23793. 800a6b6: 061b lsls r3, r3, #24
  23794. 800a6b8: 4962 ldr r1, [pc, #392] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23795. 800a6ba: 4313 orrs r3, r2
  23796. 800a6bc: 60cb str r3, [r1, #12]
  23797. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  23798. 800a6be: e05f b.n 800a780 <HAL_RCC_OscConfig+0x434>
  23799. }
  23800. }
  23801. else
  23802. {
  23803. /* Check the CSI State */
  23804. if ((RCC_OscInitStruct->CSIState) != RCC_CSI_OFF)
  23805. 800a6c0: 687b ldr r3, [r7, #4]
  23806. 800a6c2: 69db ldr r3, [r3, #28]
  23807. 800a6c4: 2b00 cmp r3, #0
  23808. 800a6c6: d042 beq.n 800a74e <HAL_RCC_OscConfig+0x402>
  23809. {
  23810. /* Enable the Internal High Speed oscillator (CSI). */
  23811. __HAL_RCC_CSI_ENABLE();
  23812. 800a6c8: 4b5e ldr r3, [pc, #376] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23813. 800a6ca: 681b ldr r3, [r3, #0]
  23814. 800a6cc: 4a5d ldr r2, [pc, #372] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23815. 800a6ce: f043 0380 orr.w r3, r3, #128 @ 0x80
  23816. 800a6d2: 6013 str r3, [r2, #0]
  23817. /* Get Start Tick*/
  23818. tickstart = HAL_GetTick();
  23819. 800a6d4: f7fa ffde bl 8005694 <HAL_GetTick>
  23820. 800a6d8: 6278 str r0, [r7, #36] @ 0x24
  23821. /* Wait till CSI is ready */
  23822. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  23823. 800a6da: e008 b.n 800a6ee <HAL_RCC_OscConfig+0x3a2>
  23824. {
  23825. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  23826. 800a6dc: f7fa ffda bl 8005694 <HAL_GetTick>
  23827. 800a6e0: 4602 mov r2, r0
  23828. 800a6e2: 6a7b ldr r3, [r7, #36] @ 0x24
  23829. 800a6e4: 1ad3 subs r3, r2, r3
  23830. 800a6e6: 2b02 cmp r3, #2
  23831. 800a6e8: d901 bls.n 800a6ee <HAL_RCC_OscConfig+0x3a2>
  23832. {
  23833. return HAL_TIMEOUT;
  23834. 800a6ea: 2303 movs r3, #3
  23835. 800a6ec: e280 b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  23836. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  23837. 800a6ee: 4b55 ldr r3, [pc, #340] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23838. 800a6f0: 681b ldr r3, [r3, #0]
  23839. 800a6f2: f403 7380 and.w r3, r3, #256 @ 0x100
  23840. 800a6f6: 2b00 cmp r3, #0
  23841. 800a6f8: d0f0 beq.n 800a6dc <HAL_RCC_OscConfig+0x390>
  23842. }
  23843. }
  23844. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  23845. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  23846. 800a6fa: f7fa fffb bl 80056f4 <HAL_GetREVID>
  23847. 800a6fe: 4603 mov r3, r0
  23848. 800a700: f241 0203 movw r2, #4099 @ 0x1003
  23849. 800a704: 4293 cmp r3, r2
  23850. 800a706: d817 bhi.n 800a738 <HAL_RCC_OscConfig+0x3ec>
  23851. 800a708: 687b ldr r3, [r7, #4]
  23852. 800a70a: 6a1b ldr r3, [r3, #32]
  23853. 800a70c: 2b20 cmp r3, #32
  23854. 800a70e: d108 bne.n 800a722 <HAL_RCC_OscConfig+0x3d6>
  23855. 800a710: 4b4c ldr r3, [pc, #304] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23856. 800a712: 685b ldr r3, [r3, #4]
  23857. 800a714: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  23858. 800a718: 4a4a ldr r2, [pc, #296] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23859. 800a71a: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  23860. 800a71e: 6053 str r3, [r2, #4]
  23861. 800a720: e02e b.n 800a780 <HAL_RCC_OscConfig+0x434>
  23862. 800a722: 4b48 ldr r3, [pc, #288] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23863. 800a724: 685b ldr r3, [r3, #4]
  23864. 800a726: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  23865. 800a72a: 687b ldr r3, [r7, #4]
  23866. 800a72c: 6a1b ldr r3, [r3, #32]
  23867. 800a72e: 069b lsls r3, r3, #26
  23868. 800a730: 4944 ldr r1, [pc, #272] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23869. 800a732: 4313 orrs r3, r2
  23870. 800a734: 604b str r3, [r1, #4]
  23871. 800a736: e023 b.n 800a780 <HAL_RCC_OscConfig+0x434>
  23872. 800a738: 4b42 ldr r3, [pc, #264] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23873. 800a73a: 68db ldr r3, [r3, #12]
  23874. 800a73c: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  23875. 800a740: 687b ldr r3, [r7, #4]
  23876. 800a742: 6a1b ldr r3, [r3, #32]
  23877. 800a744: 061b lsls r3, r3, #24
  23878. 800a746: 493f ldr r1, [pc, #252] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23879. 800a748: 4313 orrs r3, r2
  23880. 800a74a: 60cb str r3, [r1, #12]
  23881. 800a74c: e018 b.n 800a780 <HAL_RCC_OscConfig+0x434>
  23882. }
  23883. else
  23884. {
  23885. /* Disable the Internal High Speed oscillator (CSI). */
  23886. __HAL_RCC_CSI_DISABLE();
  23887. 800a74e: 4b3d ldr r3, [pc, #244] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23888. 800a750: 681b ldr r3, [r3, #0]
  23889. 800a752: 4a3c ldr r2, [pc, #240] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23890. 800a754: f023 0380 bic.w r3, r3, #128 @ 0x80
  23891. 800a758: 6013 str r3, [r2, #0]
  23892. /* Get Start Tick*/
  23893. tickstart = HAL_GetTick();
  23894. 800a75a: f7fa ff9b bl 8005694 <HAL_GetTick>
  23895. 800a75e: 6278 str r0, [r7, #36] @ 0x24
  23896. /* Wait till CSI is disabled */
  23897. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  23898. 800a760: e008 b.n 800a774 <HAL_RCC_OscConfig+0x428>
  23899. {
  23900. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  23901. 800a762: f7fa ff97 bl 8005694 <HAL_GetTick>
  23902. 800a766: 4602 mov r2, r0
  23903. 800a768: 6a7b ldr r3, [r7, #36] @ 0x24
  23904. 800a76a: 1ad3 subs r3, r2, r3
  23905. 800a76c: 2b02 cmp r3, #2
  23906. 800a76e: d901 bls.n 800a774 <HAL_RCC_OscConfig+0x428>
  23907. {
  23908. return HAL_TIMEOUT;
  23909. 800a770: 2303 movs r3, #3
  23910. 800a772: e23d b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  23911. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  23912. 800a774: 4b33 ldr r3, [pc, #204] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23913. 800a776: 681b ldr r3, [r3, #0]
  23914. 800a778: f403 7380 and.w r3, r3, #256 @ 0x100
  23915. 800a77c: 2b00 cmp r3, #0
  23916. 800a77e: d1f0 bne.n 800a762 <HAL_RCC_OscConfig+0x416>
  23917. }
  23918. }
  23919. }
  23920. }
  23921. /*------------------------------ LSI Configuration -------------------------*/
  23922. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  23923. 800a780: 687b ldr r3, [r7, #4]
  23924. 800a782: 681b ldr r3, [r3, #0]
  23925. 800a784: f003 0308 and.w r3, r3, #8
  23926. 800a788: 2b00 cmp r3, #0
  23927. 800a78a: d036 beq.n 800a7fa <HAL_RCC_OscConfig+0x4ae>
  23928. {
  23929. /* Check the parameters */
  23930. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  23931. /* Check the LSI State */
  23932. if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF)
  23933. 800a78c: 687b ldr r3, [r7, #4]
  23934. 800a78e: 695b ldr r3, [r3, #20]
  23935. 800a790: 2b00 cmp r3, #0
  23936. 800a792: d019 beq.n 800a7c8 <HAL_RCC_OscConfig+0x47c>
  23937. {
  23938. /* Enable the Internal Low Speed oscillator (LSI). */
  23939. __HAL_RCC_LSI_ENABLE();
  23940. 800a794: 4b2b ldr r3, [pc, #172] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23941. 800a796: 6f5b ldr r3, [r3, #116] @ 0x74
  23942. 800a798: 4a2a ldr r2, [pc, #168] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23943. 800a79a: f043 0301 orr.w r3, r3, #1
  23944. 800a79e: 6753 str r3, [r2, #116] @ 0x74
  23945. /* Get Start Tick*/
  23946. tickstart = HAL_GetTick();
  23947. 800a7a0: f7fa ff78 bl 8005694 <HAL_GetTick>
  23948. 800a7a4: 6278 str r0, [r7, #36] @ 0x24
  23949. /* Wait till LSI is ready */
  23950. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  23951. 800a7a6: e008 b.n 800a7ba <HAL_RCC_OscConfig+0x46e>
  23952. {
  23953. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  23954. 800a7a8: f7fa ff74 bl 8005694 <HAL_GetTick>
  23955. 800a7ac: 4602 mov r2, r0
  23956. 800a7ae: 6a7b ldr r3, [r7, #36] @ 0x24
  23957. 800a7b0: 1ad3 subs r3, r2, r3
  23958. 800a7b2: 2b02 cmp r3, #2
  23959. 800a7b4: d901 bls.n 800a7ba <HAL_RCC_OscConfig+0x46e>
  23960. {
  23961. return HAL_TIMEOUT;
  23962. 800a7b6: 2303 movs r3, #3
  23963. 800a7b8: e21a b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  23964. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  23965. 800a7ba: 4b22 ldr r3, [pc, #136] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23966. 800a7bc: 6f5b ldr r3, [r3, #116] @ 0x74
  23967. 800a7be: f003 0302 and.w r3, r3, #2
  23968. 800a7c2: 2b00 cmp r3, #0
  23969. 800a7c4: d0f0 beq.n 800a7a8 <HAL_RCC_OscConfig+0x45c>
  23970. 800a7c6: e018 b.n 800a7fa <HAL_RCC_OscConfig+0x4ae>
  23971. }
  23972. }
  23973. else
  23974. {
  23975. /* Disable the Internal Low Speed oscillator (LSI). */
  23976. __HAL_RCC_LSI_DISABLE();
  23977. 800a7c8: 4b1e ldr r3, [pc, #120] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23978. 800a7ca: 6f5b ldr r3, [r3, #116] @ 0x74
  23979. 800a7cc: 4a1d ldr r2, [pc, #116] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  23980. 800a7ce: f023 0301 bic.w r3, r3, #1
  23981. 800a7d2: 6753 str r3, [r2, #116] @ 0x74
  23982. /* Get Start Tick*/
  23983. tickstart = HAL_GetTick();
  23984. 800a7d4: f7fa ff5e bl 8005694 <HAL_GetTick>
  23985. 800a7d8: 6278 str r0, [r7, #36] @ 0x24
  23986. /* Wait till LSI is ready */
  23987. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  23988. 800a7da: e008 b.n 800a7ee <HAL_RCC_OscConfig+0x4a2>
  23989. {
  23990. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  23991. 800a7dc: f7fa ff5a bl 8005694 <HAL_GetTick>
  23992. 800a7e0: 4602 mov r2, r0
  23993. 800a7e2: 6a7b ldr r3, [r7, #36] @ 0x24
  23994. 800a7e4: 1ad3 subs r3, r2, r3
  23995. 800a7e6: 2b02 cmp r3, #2
  23996. 800a7e8: d901 bls.n 800a7ee <HAL_RCC_OscConfig+0x4a2>
  23997. {
  23998. return HAL_TIMEOUT;
  23999. 800a7ea: 2303 movs r3, #3
  24000. 800a7ec: e200 b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  24001. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  24002. 800a7ee: 4b15 ldr r3, [pc, #84] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  24003. 800a7f0: 6f5b ldr r3, [r3, #116] @ 0x74
  24004. 800a7f2: f003 0302 and.w r3, r3, #2
  24005. 800a7f6: 2b00 cmp r3, #0
  24006. 800a7f8: d1f0 bne.n 800a7dc <HAL_RCC_OscConfig+0x490>
  24007. }
  24008. }
  24009. }
  24010. /*------------------------------ HSI48 Configuration -------------------------*/
  24011. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48)
  24012. 800a7fa: 687b ldr r3, [r7, #4]
  24013. 800a7fc: 681b ldr r3, [r3, #0]
  24014. 800a7fe: f003 0320 and.w r3, r3, #32
  24015. 800a802: 2b00 cmp r3, #0
  24016. 800a804: d039 beq.n 800a87a <HAL_RCC_OscConfig+0x52e>
  24017. {
  24018. /* Check the parameters */
  24019. assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State));
  24020. /* Check the HSI48 State */
  24021. if ((RCC_OscInitStruct->HSI48State) != RCC_HSI48_OFF)
  24022. 800a806: 687b ldr r3, [r7, #4]
  24023. 800a808: 699b ldr r3, [r3, #24]
  24024. 800a80a: 2b00 cmp r3, #0
  24025. 800a80c: d01c beq.n 800a848 <HAL_RCC_OscConfig+0x4fc>
  24026. {
  24027. /* Enable the Internal Low Speed oscillator (HSI48). */
  24028. __HAL_RCC_HSI48_ENABLE();
  24029. 800a80e: 4b0d ldr r3, [pc, #52] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  24030. 800a810: 681b ldr r3, [r3, #0]
  24031. 800a812: 4a0c ldr r2, [pc, #48] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  24032. 800a814: f443 5380 orr.w r3, r3, #4096 @ 0x1000
  24033. 800a818: 6013 str r3, [r2, #0]
  24034. /* Get time-out */
  24035. tickstart = HAL_GetTick();
  24036. 800a81a: f7fa ff3b bl 8005694 <HAL_GetTick>
  24037. 800a81e: 6278 str r0, [r7, #36] @ 0x24
  24038. /* Wait till HSI48 is ready */
  24039. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  24040. 800a820: e008 b.n 800a834 <HAL_RCC_OscConfig+0x4e8>
  24041. {
  24042. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  24043. 800a822: f7fa ff37 bl 8005694 <HAL_GetTick>
  24044. 800a826: 4602 mov r2, r0
  24045. 800a828: 6a7b ldr r3, [r7, #36] @ 0x24
  24046. 800a82a: 1ad3 subs r3, r2, r3
  24047. 800a82c: 2b02 cmp r3, #2
  24048. 800a82e: d901 bls.n 800a834 <HAL_RCC_OscConfig+0x4e8>
  24049. {
  24050. return HAL_TIMEOUT;
  24051. 800a830: 2303 movs r3, #3
  24052. 800a832: e1dd b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  24053. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  24054. 800a834: 4b03 ldr r3, [pc, #12] @ (800a844 <HAL_RCC_OscConfig+0x4f8>)
  24055. 800a836: 681b ldr r3, [r3, #0]
  24056. 800a838: f403 5300 and.w r3, r3, #8192 @ 0x2000
  24057. 800a83c: 2b00 cmp r3, #0
  24058. 800a83e: d0f0 beq.n 800a822 <HAL_RCC_OscConfig+0x4d6>
  24059. 800a840: e01b b.n 800a87a <HAL_RCC_OscConfig+0x52e>
  24060. 800a842: bf00 nop
  24061. 800a844: 58024400 .word 0x58024400
  24062. }
  24063. }
  24064. else
  24065. {
  24066. /* Disable the Internal Low Speed oscillator (HSI48). */
  24067. __HAL_RCC_HSI48_DISABLE();
  24068. 800a848: 4b9b ldr r3, [pc, #620] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24069. 800a84a: 681b ldr r3, [r3, #0]
  24070. 800a84c: 4a9a ldr r2, [pc, #616] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24071. 800a84e: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  24072. 800a852: 6013 str r3, [r2, #0]
  24073. /* Get time-out */
  24074. tickstart = HAL_GetTick();
  24075. 800a854: f7fa ff1e bl 8005694 <HAL_GetTick>
  24076. 800a858: 6278 str r0, [r7, #36] @ 0x24
  24077. /* Wait till HSI48 is ready */
  24078. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  24079. 800a85a: e008 b.n 800a86e <HAL_RCC_OscConfig+0x522>
  24080. {
  24081. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  24082. 800a85c: f7fa ff1a bl 8005694 <HAL_GetTick>
  24083. 800a860: 4602 mov r2, r0
  24084. 800a862: 6a7b ldr r3, [r7, #36] @ 0x24
  24085. 800a864: 1ad3 subs r3, r2, r3
  24086. 800a866: 2b02 cmp r3, #2
  24087. 800a868: d901 bls.n 800a86e <HAL_RCC_OscConfig+0x522>
  24088. {
  24089. return HAL_TIMEOUT;
  24090. 800a86a: 2303 movs r3, #3
  24091. 800a86c: e1c0 b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  24092. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  24093. 800a86e: 4b92 ldr r3, [pc, #584] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24094. 800a870: 681b ldr r3, [r3, #0]
  24095. 800a872: f403 5300 and.w r3, r3, #8192 @ 0x2000
  24096. 800a876: 2b00 cmp r3, #0
  24097. 800a878: d1f0 bne.n 800a85c <HAL_RCC_OscConfig+0x510>
  24098. }
  24099. }
  24100. }
  24101. }
  24102. /*------------------------------ LSE Configuration -------------------------*/
  24103. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  24104. 800a87a: 687b ldr r3, [r7, #4]
  24105. 800a87c: 681b ldr r3, [r3, #0]
  24106. 800a87e: f003 0304 and.w r3, r3, #4
  24107. 800a882: 2b00 cmp r3, #0
  24108. 800a884: f000 8081 beq.w 800a98a <HAL_RCC_OscConfig+0x63e>
  24109. {
  24110. /* Check the parameters */
  24111. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  24112. /* Enable write access to Backup domain */
  24113. PWR->CR1 |= PWR_CR1_DBP;
  24114. 800a888: 4b8c ldr r3, [pc, #560] @ (800aabc <HAL_RCC_OscConfig+0x770>)
  24115. 800a88a: 681b ldr r3, [r3, #0]
  24116. 800a88c: 4a8b ldr r2, [pc, #556] @ (800aabc <HAL_RCC_OscConfig+0x770>)
  24117. 800a88e: f443 7380 orr.w r3, r3, #256 @ 0x100
  24118. 800a892: 6013 str r3, [r2, #0]
  24119. /* Wait for Backup domain Write protection disable */
  24120. tickstart = HAL_GetTick();
  24121. 800a894: f7fa fefe bl 8005694 <HAL_GetTick>
  24122. 800a898: 6278 str r0, [r7, #36] @ 0x24
  24123. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  24124. 800a89a: e008 b.n 800a8ae <HAL_RCC_OscConfig+0x562>
  24125. {
  24126. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  24127. 800a89c: f7fa fefa bl 8005694 <HAL_GetTick>
  24128. 800a8a0: 4602 mov r2, r0
  24129. 800a8a2: 6a7b ldr r3, [r7, #36] @ 0x24
  24130. 800a8a4: 1ad3 subs r3, r2, r3
  24131. 800a8a6: 2b64 cmp r3, #100 @ 0x64
  24132. 800a8a8: d901 bls.n 800a8ae <HAL_RCC_OscConfig+0x562>
  24133. {
  24134. return HAL_TIMEOUT;
  24135. 800a8aa: 2303 movs r3, #3
  24136. 800a8ac: e1a0 b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  24137. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  24138. 800a8ae: 4b83 ldr r3, [pc, #524] @ (800aabc <HAL_RCC_OscConfig+0x770>)
  24139. 800a8b0: 681b ldr r3, [r3, #0]
  24140. 800a8b2: f403 7380 and.w r3, r3, #256 @ 0x100
  24141. 800a8b6: 2b00 cmp r3, #0
  24142. 800a8b8: d0f0 beq.n 800a89c <HAL_RCC_OscConfig+0x550>
  24143. }
  24144. }
  24145. /* Set the new LSE configuration -----------------------------------------*/
  24146. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  24147. 800a8ba: 687b ldr r3, [r7, #4]
  24148. 800a8bc: 689b ldr r3, [r3, #8]
  24149. 800a8be: 2b01 cmp r3, #1
  24150. 800a8c0: d106 bne.n 800a8d0 <HAL_RCC_OscConfig+0x584>
  24151. 800a8c2: 4b7d ldr r3, [pc, #500] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24152. 800a8c4: 6f1b ldr r3, [r3, #112] @ 0x70
  24153. 800a8c6: 4a7c ldr r2, [pc, #496] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24154. 800a8c8: f043 0301 orr.w r3, r3, #1
  24155. 800a8cc: 6713 str r3, [r2, #112] @ 0x70
  24156. 800a8ce: e02d b.n 800a92c <HAL_RCC_OscConfig+0x5e0>
  24157. 800a8d0: 687b ldr r3, [r7, #4]
  24158. 800a8d2: 689b ldr r3, [r3, #8]
  24159. 800a8d4: 2b00 cmp r3, #0
  24160. 800a8d6: d10c bne.n 800a8f2 <HAL_RCC_OscConfig+0x5a6>
  24161. 800a8d8: 4b77 ldr r3, [pc, #476] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24162. 800a8da: 6f1b ldr r3, [r3, #112] @ 0x70
  24163. 800a8dc: 4a76 ldr r2, [pc, #472] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24164. 800a8de: f023 0301 bic.w r3, r3, #1
  24165. 800a8e2: 6713 str r3, [r2, #112] @ 0x70
  24166. 800a8e4: 4b74 ldr r3, [pc, #464] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24167. 800a8e6: 6f1b ldr r3, [r3, #112] @ 0x70
  24168. 800a8e8: 4a73 ldr r2, [pc, #460] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24169. 800a8ea: f023 0304 bic.w r3, r3, #4
  24170. 800a8ee: 6713 str r3, [r2, #112] @ 0x70
  24171. 800a8f0: e01c b.n 800a92c <HAL_RCC_OscConfig+0x5e0>
  24172. 800a8f2: 687b ldr r3, [r7, #4]
  24173. 800a8f4: 689b ldr r3, [r3, #8]
  24174. 800a8f6: 2b05 cmp r3, #5
  24175. 800a8f8: d10c bne.n 800a914 <HAL_RCC_OscConfig+0x5c8>
  24176. 800a8fa: 4b6f ldr r3, [pc, #444] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24177. 800a8fc: 6f1b ldr r3, [r3, #112] @ 0x70
  24178. 800a8fe: 4a6e ldr r2, [pc, #440] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24179. 800a900: f043 0304 orr.w r3, r3, #4
  24180. 800a904: 6713 str r3, [r2, #112] @ 0x70
  24181. 800a906: 4b6c ldr r3, [pc, #432] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24182. 800a908: 6f1b ldr r3, [r3, #112] @ 0x70
  24183. 800a90a: 4a6b ldr r2, [pc, #428] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24184. 800a90c: f043 0301 orr.w r3, r3, #1
  24185. 800a910: 6713 str r3, [r2, #112] @ 0x70
  24186. 800a912: e00b b.n 800a92c <HAL_RCC_OscConfig+0x5e0>
  24187. 800a914: 4b68 ldr r3, [pc, #416] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24188. 800a916: 6f1b ldr r3, [r3, #112] @ 0x70
  24189. 800a918: 4a67 ldr r2, [pc, #412] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24190. 800a91a: f023 0301 bic.w r3, r3, #1
  24191. 800a91e: 6713 str r3, [r2, #112] @ 0x70
  24192. 800a920: 4b65 ldr r3, [pc, #404] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24193. 800a922: 6f1b ldr r3, [r3, #112] @ 0x70
  24194. 800a924: 4a64 ldr r2, [pc, #400] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24195. 800a926: f023 0304 bic.w r3, r3, #4
  24196. 800a92a: 6713 str r3, [r2, #112] @ 0x70
  24197. /* Check the LSE State */
  24198. if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
  24199. 800a92c: 687b ldr r3, [r7, #4]
  24200. 800a92e: 689b ldr r3, [r3, #8]
  24201. 800a930: 2b00 cmp r3, #0
  24202. 800a932: d015 beq.n 800a960 <HAL_RCC_OscConfig+0x614>
  24203. {
  24204. /* Get Start Tick*/
  24205. tickstart = HAL_GetTick();
  24206. 800a934: f7fa feae bl 8005694 <HAL_GetTick>
  24207. 800a938: 6278 str r0, [r7, #36] @ 0x24
  24208. /* Wait till LSE is ready */
  24209. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  24210. 800a93a: e00a b.n 800a952 <HAL_RCC_OscConfig+0x606>
  24211. {
  24212. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  24213. 800a93c: f7fa feaa bl 8005694 <HAL_GetTick>
  24214. 800a940: 4602 mov r2, r0
  24215. 800a942: 6a7b ldr r3, [r7, #36] @ 0x24
  24216. 800a944: 1ad3 subs r3, r2, r3
  24217. 800a946: f241 3288 movw r2, #5000 @ 0x1388
  24218. 800a94a: 4293 cmp r3, r2
  24219. 800a94c: d901 bls.n 800a952 <HAL_RCC_OscConfig+0x606>
  24220. {
  24221. return HAL_TIMEOUT;
  24222. 800a94e: 2303 movs r3, #3
  24223. 800a950: e14e b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  24224. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  24225. 800a952: 4b59 ldr r3, [pc, #356] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24226. 800a954: 6f1b ldr r3, [r3, #112] @ 0x70
  24227. 800a956: f003 0302 and.w r3, r3, #2
  24228. 800a95a: 2b00 cmp r3, #0
  24229. 800a95c: d0ee beq.n 800a93c <HAL_RCC_OscConfig+0x5f0>
  24230. 800a95e: e014 b.n 800a98a <HAL_RCC_OscConfig+0x63e>
  24231. }
  24232. }
  24233. else
  24234. {
  24235. /* Get Start Tick*/
  24236. tickstart = HAL_GetTick();
  24237. 800a960: f7fa fe98 bl 8005694 <HAL_GetTick>
  24238. 800a964: 6278 str r0, [r7, #36] @ 0x24
  24239. /* Wait till LSE is disabled */
  24240. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  24241. 800a966: e00a b.n 800a97e <HAL_RCC_OscConfig+0x632>
  24242. {
  24243. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  24244. 800a968: f7fa fe94 bl 8005694 <HAL_GetTick>
  24245. 800a96c: 4602 mov r2, r0
  24246. 800a96e: 6a7b ldr r3, [r7, #36] @ 0x24
  24247. 800a970: 1ad3 subs r3, r2, r3
  24248. 800a972: f241 3288 movw r2, #5000 @ 0x1388
  24249. 800a976: 4293 cmp r3, r2
  24250. 800a978: d901 bls.n 800a97e <HAL_RCC_OscConfig+0x632>
  24251. {
  24252. return HAL_TIMEOUT;
  24253. 800a97a: 2303 movs r3, #3
  24254. 800a97c: e138 b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  24255. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  24256. 800a97e: 4b4e ldr r3, [pc, #312] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24257. 800a980: 6f1b ldr r3, [r3, #112] @ 0x70
  24258. 800a982: f003 0302 and.w r3, r3, #2
  24259. 800a986: 2b00 cmp r3, #0
  24260. 800a988: d1ee bne.n 800a968 <HAL_RCC_OscConfig+0x61c>
  24261. }
  24262. }
  24263. /*-------------------------------- PLL Configuration -----------------------*/
  24264. /* Check the parameters */
  24265. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  24266. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  24267. 800a98a: 687b ldr r3, [r7, #4]
  24268. 800a98c: 6a5b ldr r3, [r3, #36] @ 0x24
  24269. 800a98e: 2b00 cmp r3, #0
  24270. 800a990: f000 812d beq.w 800abee <HAL_RCC_OscConfig+0x8a2>
  24271. {
  24272. /* Check if the PLL is used as system clock or not */
  24273. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL1)
  24274. 800a994: 4b48 ldr r3, [pc, #288] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24275. 800a996: 691b ldr r3, [r3, #16]
  24276. 800a998: f003 0338 and.w r3, r3, #56 @ 0x38
  24277. 800a99c: 2b18 cmp r3, #24
  24278. 800a99e: f000 80bd beq.w 800ab1c <HAL_RCC_OscConfig+0x7d0>
  24279. {
  24280. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  24281. 800a9a2: 687b ldr r3, [r7, #4]
  24282. 800a9a4: 6a5b ldr r3, [r3, #36] @ 0x24
  24283. 800a9a6: 2b02 cmp r3, #2
  24284. 800a9a8: f040 809e bne.w 800aae8 <HAL_RCC_OscConfig+0x79c>
  24285. assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
  24286. assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
  24287. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  24288. /* Disable the main PLL. */
  24289. __HAL_RCC_PLL_DISABLE();
  24290. 800a9ac: 4b42 ldr r3, [pc, #264] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24291. 800a9ae: 681b ldr r3, [r3, #0]
  24292. 800a9b0: 4a41 ldr r2, [pc, #260] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24293. 800a9b2: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  24294. 800a9b6: 6013 str r3, [r2, #0]
  24295. /* Get Start Tick*/
  24296. tickstart = HAL_GetTick();
  24297. 800a9b8: f7fa fe6c bl 8005694 <HAL_GetTick>
  24298. 800a9bc: 6278 str r0, [r7, #36] @ 0x24
  24299. /* Wait till PLL is disabled */
  24300. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  24301. 800a9be: e008 b.n 800a9d2 <HAL_RCC_OscConfig+0x686>
  24302. {
  24303. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  24304. 800a9c0: f7fa fe68 bl 8005694 <HAL_GetTick>
  24305. 800a9c4: 4602 mov r2, r0
  24306. 800a9c6: 6a7b ldr r3, [r7, #36] @ 0x24
  24307. 800a9c8: 1ad3 subs r3, r2, r3
  24308. 800a9ca: 2b02 cmp r3, #2
  24309. 800a9cc: d901 bls.n 800a9d2 <HAL_RCC_OscConfig+0x686>
  24310. {
  24311. return HAL_TIMEOUT;
  24312. 800a9ce: 2303 movs r3, #3
  24313. 800a9d0: e10e b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  24314. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  24315. 800a9d2: 4b39 ldr r3, [pc, #228] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24316. 800a9d4: 681b ldr r3, [r3, #0]
  24317. 800a9d6: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  24318. 800a9da: 2b00 cmp r3, #0
  24319. 800a9dc: d1f0 bne.n 800a9c0 <HAL_RCC_OscConfig+0x674>
  24320. }
  24321. }
  24322. /* Configure the main PLL clock source, multiplication and division factors. */
  24323. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  24324. 800a9de: 4b36 ldr r3, [pc, #216] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24325. 800a9e0: 6a9a ldr r2, [r3, #40] @ 0x28
  24326. 800a9e2: 4b37 ldr r3, [pc, #220] @ (800aac0 <HAL_RCC_OscConfig+0x774>)
  24327. 800a9e4: 4013 ands r3, r2
  24328. 800a9e6: 687a ldr r2, [r7, #4]
  24329. 800a9e8: 6a91 ldr r1, [r2, #40] @ 0x28
  24330. 800a9ea: 687a ldr r2, [r7, #4]
  24331. 800a9ec: 6ad2 ldr r2, [r2, #44] @ 0x2c
  24332. 800a9ee: 0112 lsls r2, r2, #4
  24333. 800a9f0: 430a orrs r2, r1
  24334. 800a9f2: 4931 ldr r1, [pc, #196] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24335. 800a9f4: 4313 orrs r3, r2
  24336. 800a9f6: 628b str r3, [r1, #40] @ 0x28
  24337. 800a9f8: 687b ldr r3, [r7, #4]
  24338. 800a9fa: 6b1b ldr r3, [r3, #48] @ 0x30
  24339. 800a9fc: 3b01 subs r3, #1
  24340. 800a9fe: f3c3 0208 ubfx r2, r3, #0, #9
  24341. 800aa02: 687b ldr r3, [r7, #4]
  24342. 800aa04: 6b5b ldr r3, [r3, #52] @ 0x34
  24343. 800aa06: 3b01 subs r3, #1
  24344. 800aa08: 025b lsls r3, r3, #9
  24345. 800aa0a: b29b uxth r3, r3
  24346. 800aa0c: 431a orrs r2, r3
  24347. 800aa0e: 687b ldr r3, [r7, #4]
  24348. 800aa10: 6b9b ldr r3, [r3, #56] @ 0x38
  24349. 800aa12: 3b01 subs r3, #1
  24350. 800aa14: 041b lsls r3, r3, #16
  24351. 800aa16: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  24352. 800aa1a: 431a orrs r2, r3
  24353. 800aa1c: 687b ldr r3, [r7, #4]
  24354. 800aa1e: 6bdb ldr r3, [r3, #60] @ 0x3c
  24355. 800aa20: 3b01 subs r3, #1
  24356. 800aa22: 061b lsls r3, r3, #24
  24357. 800aa24: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  24358. 800aa28: 4923 ldr r1, [pc, #140] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24359. 800aa2a: 4313 orrs r3, r2
  24360. 800aa2c: 630b str r3, [r1, #48] @ 0x30
  24361. RCC_OscInitStruct->PLL.PLLP,
  24362. RCC_OscInitStruct->PLL.PLLQ,
  24363. RCC_OscInitStruct->PLL.PLLR);
  24364. /* Disable PLLFRACN . */
  24365. __HAL_RCC_PLLFRACN_DISABLE();
  24366. 800aa2e: 4b22 ldr r3, [pc, #136] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24367. 800aa30: 6adb ldr r3, [r3, #44] @ 0x2c
  24368. 800aa32: 4a21 ldr r2, [pc, #132] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24369. 800aa34: f023 0301 bic.w r3, r3, #1
  24370. 800aa38: 62d3 str r3, [r2, #44] @ 0x2c
  24371. /* Configure PLL PLL1FRACN */
  24372. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  24373. 800aa3a: 4b1f ldr r3, [pc, #124] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24374. 800aa3c: 6b5a ldr r2, [r3, #52] @ 0x34
  24375. 800aa3e: 4b21 ldr r3, [pc, #132] @ (800aac4 <HAL_RCC_OscConfig+0x778>)
  24376. 800aa40: 4013 ands r3, r2
  24377. 800aa42: 687a ldr r2, [r7, #4]
  24378. 800aa44: 6c92 ldr r2, [r2, #72] @ 0x48
  24379. 800aa46: 00d2 lsls r2, r2, #3
  24380. 800aa48: 491b ldr r1, [pc, #108] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24381. 800aa4a: 4313 orrs r3, r2
  24382. 800aa4c: 634b str r3, [r1, #52] @ 0x34
  24383. /* Select PLL1 input reference frequency range: VCI */
  24384. __HAL_RCC_PLL_VCIRANGE(RCC_OscInitStruct->PLL.PLLRGE) ;
  24385. 800aa4e: 4b1a ldr r3, [pc, #104] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24386. 800aa50: 6adb ldr r3, [r3, #44] @ 0x2c
  24387. 800aa52: f023 020c bic.w r2, r3, #12
  24388. 800aa56: 687b ldr r3, [r7, #4]
  24389. 800aa58: 6c1b ldr r3, [r3, #64] @ 0x40
  24390. 800aa5a: 4917 ldr r1, [pc, #92] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24391. 800aa5c: 4313 orrs r3, r2
  24392. 800aa5e: 62cb str r3, [r1, #44] @ 0x2c
  24393. /* Select PLL1 output frequency range : VCO */
  24394. __HAL_RCC_PLL_VCORANGE(RCC_OscInitStruct->PLL.PLLVCOSEL) ;
  24395. 800aa60: 4b15 ldr r3, [pc, #84] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24396. 800aa62: 6adb ldr r3, [r3, #44] @ 0x2c
  24397. 800aa64: f023 0202 bic.w r2, r3, #2
  24398. 800aa68: 687b ldr r3, [r7, #4]
  24399. 800aa6a: 6c5b ldr r3, [r3, #68] @ 0x44
  24400. 800aa6c: 4912 ldr r1, [pc, #72] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24401. 800aa6e: 4313 orrs r3, r2
  24402. 800aa70: 62cb str r3, [r1, #44] @ 0x2c
  24403. /* Enable PLL System Clock output. */
  24404. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVP);
  24405. 800aa72: 4b11 ldr r3, [pc, #68] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24406. 800aa74: 6adb ldr r3, [r3, #44] @ 0x2c
  24407. 800aa76: 4a10 ldr r2, [pc, #64] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24408. 800aa78: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  24409. 800aa7c: 62d3 str r3, [r2, #44] @ 0x2c
  24410. /* Enable PLL1Q Clock output. */
  24411. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  24412. 800aa7e: 4b0e ldr r3, [pc, #56] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24413. 800aa80: 6adb ldr r3, [r3, #44] @ 0x2c
  24414. 800aa82: 4a0d ldr r2, [pc, #52] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24415. 800aa84: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  24416. 800aa88: 62d3 str r3, [r2, #44] @ 0x2c
  24417. /* Enable PLL1R Clock output. */
  24418. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVR);
  24419. 800aa8a: 4b0b ldr r3, [pc, #44] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24420. 800aa8c: 6adb ldr r3, [r3, #44] @ 0x2c
  24421. 800aa8e: 4a0a ldr r2, [pc, #40] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24422. 800aa90: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  24423. 800aa94: 62d3 str r3, [r2, #44] @ 0x2c
  24424. /* Enable PLL1FRACN . */
  24425. __HAL_RCC_PLLFRACN_ENABLE();
  24426. 800aa96: 4b08 ldr r3, [pc, #32] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24427. 800aa98: 6adb ldr r3, [r3, #44] @ 0x2c
  24428. 800aa9a: 4a07 ldr r2, [pc, #28] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24429. 800aa9c: f043 0301 orr.w r3, r3, #1
  24430. 800aaa0: 62d3 str r3, [r2, #44] @ 0x2c
  24431. /* Enable the main PLL. */
  24432. __HAL_RCC_PLL_ENABLE();
  24433. 800aaa2: 4b05 ldr r3, [pc, #20] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24434. 800aaa4: 681b ldr r3, [r3, #0]
  24435. 800aaa6: 4a04 ldr r2, [pc, #16] @ (800aab8 <HAL_RCC_OscConfig+0x76c>)
  24436. 800aaa8: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  24437. 800aaac: 6013 str r3, [r2, #0]
  24438. /* Get Start Tick*/
  24439. tickstart = HAL_GetTick();
  24440. 800aaae: f7fa fdf1 bl 8005694 <HAL_GetTick>
  24441. 800aab2: 6278 str r0, [r7, #36] @ 0x24
  24442. /* Wait till PLL is ready */
  24443. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  24444. 800aab4: e011 b.n 800aada <HAL_RCC_OscConfig+0x78e>
  24445. 800aab6: bf00 nop
  24446. 800aab8: 58024400 .word 0x58024400
  24447. 800aabc: 58024800 .word 0x58024800
  24448. 800aac0: fffffc0c .word 0xfffffc0c
  24449. 800aac4: ffff0007 .word 0xffff0007
  24450. {
  24451. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  24452. 800aac8: f7fa fde4 bl 8005694 <HAL_GetTick>
  24453. 800aacc: 4602 mov r2, r0
  24454. 800aace: 6a7b ldr r3, [r7, #36] @ 0x24
  24455. 800aad0: 1ad3 subs r3, r2, r3
  24456. 800aad2: 2b02 cmp r3, #2
  24457. 800aad4: d901 bls.n 800aada <HAL_RCC_OscConfig+0x78e>
  24458. {
  24459. return HAL_TIMEOUT;
  24460. 800aad6: 2303 movs r3, #3
  24461. 800aad8: e08a b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  24462. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  24463. 800aada: 4b47 ldr r3, [pc, #284] @ (800abf8 <HAL_RCC_OscConfig+0x8ac>)
  24464. 800aadc: 681b ldr r3, [r3, #0]
  24465. 800aade: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  24466. 800aae2: 2b00 cmp r3, #0
  24467. 800aae4: d0f0 beq.n 800aac8 <HAL_RCC_OscConfig+0x77c>
  24468. 800aae6: e082 b.n 800abee <HAL_RCC_OscConfig+0x8a2>
  24469. }
  24470. }
  24471. else
  24472. {
  24473. /* Disable the main PLL. */
  24474. __HAL_RCC_PLL_DISABLE();
  24475. 800aae8: 4b43 ldr r3, [pc, #268] @ (800abf8 <HAL_RCC_OscConfig+0x8ac>)
  24476. 800aaea: 681b ldr r3, [r3, #0]
  24477. 800aaec: 4a42 ldr r2, [pc, #264] @ (800abf8 <HAL_RCC_OscConfig+0x8ac>)
  24478. 800aaee: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  24479. 800aaf2: 6013 str r3, [r2, #0]
  24480. /* Get Start Tick*/
  24481. tickstart = HAL_GetTick();
  24482. 800aaf4: f7fa fdce bl 8005694 <HAL_GetTick>
  24483. 800aaf8: 6278 str r0, [r7, #36] @ 0x24
  24484. /* Wait till PLL is disabled */
  24485. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  24486. 800aafa: e008 b.n 800ab0e <HAL_RCC_OscConfig+0x7c2>
  24487. {
  24488. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  24489. 800aafc: f7fa fdca bl 8005694 <HAL_GetTick>
  24490. 800ab00: 4602 mov r2, r0
  24491. 800ab02: 6a7b ldr r3, [r7, #36] @ 0x24
  24492. 800ab04: 1ad3 subs r3, r2, r3
  24493. 800ab06: 2b02 cmp r3, #2
  24494. 800ab08: d901 bls.n 800ab0e <HAL_RCC_OscConfig+0x7c2>
  24495. {
  24496. return HAL_TIMEOUT;
  24497. 800ab0a: 2303 movs r3, #3
  24498. 800ab0c: e070 b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  24499. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  24500. 800ab0e: 4b3a ldr r3, [pc, #232] @ (800abf8 <HAL_RCC_OscConfig+0x8ac>)
  24501. 800ab10: 681b ldr r3, [r3, #0]
  24502. 800ab12: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  24503. 800ab16: 2b00 cmp r3, #0
  24504. 800ab18: d1f0 bne.n 800aafc <HAL_RCC_OscConfig+0x7b0>
  24505. 800ab1a: e068 b.n 800abee <HAL_RCC_OscConfig+0x8a2>
  24506. }
  24507. }
  24508. else
  24509. {
  24510. /* Do not return HAL_ERROR if request repeats the current configuration */
  24511. temp1_pllckcfg = RCC->PLLCKSELR;
  24512. 800ab1c: 4b36 ldr r3, [pc, #216] @ (800abf8 <HAL_RCC_OscConfig+0x8ac>)
  24513. 800ab1e: 6a9b ldr r3, [r3, #40] @ 0x28
  24514. 800ab20: 613b str r3, [r7, #16]
  24515. temp2_pllckcfg = RCC->PLL1DIVR;
  24516. 800ab22: 4b35 ldr r3, [pc, #212] @ (800abf8 <HAL_RCC_OscConfig+0x8ac>)
  24517. 800ab24: 6b1b ldr r3, [r3, #48] @ 0x30
  24518. 800ab26: 60fb str r3, [r7, #12]
  24519. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  24520. 800ab28: 687b ldr r3, [r7, #4]
  24521. 800ab2a: 6a5b ldr r3, [r3, #36] @ 0x24
  24522. 800ab2c: 2b01 cmp r3, #1
  24523. 800ab2e: d031 beq.n 800ab94 <HAL_RCC_OscConfig+0x848>
  24524. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  24525. 800ab30: 693b ldr r3, [r7, #16]
  24526. 800ab32: f003 0203 and.w r2, r3, #3
  24527. 800ab36: 687b ldr r3, [r7, #4]
  24528. 800ab38: 6a9b ldr r3, [r3, #40] @ 0x28
  24529. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  24530. 800ab3a: 429a cmp r2, r3
  24531. 800ab3c: d12a bne.n 800ab94 <HAL_RCC_OscConfig+0x848>
  24532. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  24533. 800ab3e: 693b ldr r3, [r7, #16]
  24534. 800ab40: 091b lsrs r3, r3, #4
  24535. 800ab42: f003 023f and.w r2, r3, #63 @ 0x3f
  24536. 800ab46: 687b ldr r3, [r7, #4]
  24537. 800ab48: 6adb ldr r3, [r3, #44] @ 0x2c
  24538. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  24539. 800ab4a: 429a cmp r2, r3
  24540. 800ab4c: d122 bne.n 800ab94 <HAL_RCC_OscConfig+0x848>
  24541. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  24542. 800ab4e: 68fb ldr r3, [r7, #12]
  24543. 800ab50: f3c3 0208 ubfx r2, r3, #0, #9
  24544. 800ab54: 687b ldr r3, [r7, #4]
  24545. 800ab56: 6b1b ldr r3, [r3, #48] @ 0x30
  24546. 800ab58: 3b01 subs r3, #1
  24547. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  24548. 800ab5a: 429a cmp r2, r3
  24549. 800ab5c: d11a bne.n 800ab94 <HAL_RCC_OscConfig+0x848>
  24550. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  24551. 800ab5e: 68fb ldr r3, [r7, #12]
  24552. 800ab60: 0a5b lsrs r3, r3, #9
  24553. 800ab62: f003 027f and.w r2, r3, #127 @ 0x7f
  24554. 800ab66: 687b ldr r3, [r7, #4]
  24555. 800ab68: 6b5b ldr r3, [r3, #52] @ 0x34
  24556. 800ab6a: 3b01 subs r3, #1
  24557. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  24558. 800ab6c: 429a cmp r2, r3
  24559. 800ab6e: d111 bne.n 800ab94 <HAL_RCC_OscConfig+0x848>
  24560. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  24561. 800ab70: 68fb ldr r3, [r7, #12]
  24562. 800ab72: 0c1b lsrs r3, r3, #16
  24563. 800ab74: f003 027f and.w r2, r3, #127 @ 0x7f
  24564. 800ab78: 687b ldr r3, [r7, #4]
  24565. 800ab7a: 6b9b ldr r3, [r3, #56] @ 0x38
  24566. 800ab7c: 3b01 subs r3, #1
  24567. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  24568. 800ab7e: 429a cmp r2, r3
  24569. 800ab80: d108 bne.n 800ab94 <HAL_RCC_OscConfig+0x848>
  24570. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) != (RCC_OscInitStruct->PLL.PLLR - 1U)))
  24571. 800ab82: 68fb ldr r3, [r7, #12]
  24572. 800ab84: 0e1b lsrs r3, r3, #24
  24573. 800ab86: f003 027f and.w r2, r3, #127 @ 0x7f
  24574. 800ab8a: 687b ldr r3, [r7, #4]
  24575. 800ab8c: 6bdb ldr r3, [r3, #60] @ 0x3c
  24576. 800ab8e: 3b01 subs r3, #1
  24577. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  24578. 800ab90: 429a cmp r2, r3
  24579. 800ab92: d001 beq.n 800ab98 <HAL_RCC_OscConfig+0x84c>
  24580. {
  24581. return HAL_ERROR;
  24582. 800ab94: 2301 movs r3, #1
  24583. 800ab96: e02b b.n 800abf0 <HAL_RCC_OscConfig+0x8a4>
  24584. }
  24585. else
  24586. {
  24587. /* Check if only fractional part needs to be updated */
  24588. temp1_pllckcfg = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos);
  24589. 800ab98: 4b17 ldr r3, [pc, #92] @ (800abf8 <HAL_RCC_OscConfig+0x8ac>)
  24590. 800ab9a: 6b5b ldr r3, [r3, #52] @ 0x34
  24591. 800ab9c: 08db lsrs r3, r3, #3
  24592. 800ab9e: f3c3 030c ubfx r3, r3, #0, #13
  24593. 800aba2: 613b str r3, [r7, #16]
  24594. if (RCC_OscInitStruct->PLL.PLLFRACN != temp1_pllckcfg)
  24595. 800aba4: 687b ldr r3, [r7, #4]
  24596. 800aba6: 6c9b ldr r3, [r3, #72] @ 0x48
  24597. 800aba8: 693a ldr r2, [r7, #16]
  24598. 800abaa: 429a cmp r2, r3
  24599. 800abac: d01f beq.n 800abee <HAL_RCC_OscConfig+0x8a2>
  24600. {
  24601. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  24602. /* Disable PLL1FRACEN */
  24603. __HAL_RCC_PLLFRACN_DISABLE();
  24604. 800abae: 4b12 ldr r3, [pc, #72] @ (800abf8 <HAL_RCC_OscConfig+0x8ac>)
  24605. 800abb0: 6adb ldr r3, [r3, #44] @ 0x2c
  24606. 800abb2: 4a11 ldr r2, [pc, #68] @ (800abf8 <HAL_RCC_OscConfig+0x8ac>)
  24607. 800abb4: f023 0301 bic.w r3, r3, #1
  24608. 800abb8: 62d3 str r3, [r2, #44] @ 0x2c
  24609. /* Get Start Tick*/
  24610. tickstart = HAL_GetTick();
  24611. 800abba: f7fa fd6b bl 8005694 <HAL_GetTick>
  24612. 800abbe: 6278 str r0, [r7, #36] @ 0x24
  24613. /* Wait at least 2 CK_REF (PLL input source divided by M) period to make sure next latched value will be taken into account. */
  24614. while ((HAL_GetTick() - tickstart) < PLL_FRAC_TIMEOUT_VALUE)
  24615. 800abc0: bf00 nop
  24616. 800abc2: f7fa fd67 bl 8005694 <HAL_GetTick>
  24617. 800abc6: 4602 mov r2, r0
  24618. 800abc8: 6a7b ldr r3, [r7, #36] @ 0x24
  24619. 800abca: 4293 cmp r3, r2
  24620. 800abcc: d0f9 beq.n 800abc2 <HAL_RCC_OscConfig+0x876>
  24621. {
  24622. }
  24623. /* Configure PLL1 PLL1FRACN */
  24624. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  24625. 800abce: 4b0a ldr r3, [pc, #40] @ (800abf8 <HAL_RCC_OscConfig+0x8ac>)
  24626. 800abd0: 6b5a ldr r2, [r3, #52] @ 0x34
  24627. 800abd2: 4b0a ldr r3, [pc, #40] @ (800abfc <HAL_RCC_OscConfig+0x8b0>)
  24628. 800abd4: 4013 ands r3, r2
  24629. 800abd6: 687a ldr r2, [r7, #4]
  24630. 800abd8: 6c92 ldr r2, [r2, #72] @ 0x48
  24631. 800abda: 00d2 lsls r2, r2, #3
  24632. 800abdc: 4906 ldr r1, [pc, #24] @ (800abf8 <HAL_RCC_OscConfig+0x8ac>)
  24633. 800abde: 4313 orrs r3, r2
  24634. 800abe0: 634b str r3, [r1, #52] @ 0x34
  24635. /* Enable PLL1FRACEN to latch new value. */
  24636. __HAL_RCC_PLLFRACN_ENABLE();
  24637. 800abe2: 4b05 ldr r3, [pc, #20] @ (800abf8 <HAL_RCC_OscConfig+0x8ac>)
  24638. 800abe4: 6adb ldr r3, [r3, #44] @ 0x2c
  24639. 800abe6: 4a04 ldr r2, [pc, #16] @ (800abf8 <HAL_RCC_OscConfig+0x8ac>)
  24640. 800abe8: f043 0301 orr.w r3, r3, #1
  24641. 800abec: 62d3 str r3, [r2, #44] @ 0x2c
  24642. }
  24643. }
  24644. }
  24645. }
  24646. return HAL_OK;
  24647. 800abee: 2300 movs r3, #0
  24648. }
  24649. 800abf0: 4618 mov r0, r3
  24650. 800abf2: 3730 adds r7, #48 @ 0x30
  24651. 800abf4: 46bd mov sp, r7
  24652. 800abf6: bd80 pop {r7, pc}
  24653. 800abf8: 58024400 .word 0x58024400
  24654. 800abfc: ffff0007 .word 0xffff0007
  24655. 0800ac00 <HAL_RCC_ClockConfig>:
  24656. * D1CPRE[3:0] bits to ensure that Domain1 core clock not exceed the maximum allowed frequency
  24657. * (for more details refer to section above "Initialization/de-initialization functions")
  24658. * @retval None
  24659. */
  24660. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  24661. {
  24662. 800ac00: b580 push {r7, lr}
  24663. 800ac02: b086 sub sp, #24
  24664. 800ac04: af00 add r7, sp, #0
  24665. 800ac06: 6078 str r0, [r7, #4]
  24666. 800ac08: 6039 str r1, [r7, #0]
  24667. HAL_StatusTypeDef halstatus;
  24668. uint32_t tickstart;
  24669. uint32_t common_system_clock;
  24670. /* Check Null pointer */
  24671. if (RCC_ClkInitStruct == NULL)
  24672. 800ac0a: 687b ldr r3, [r7, #4]
  24673. 800ac0c: 2b00 cmp r3, #0
  24674. 800ac0e: d101 bne.n 800ac14 <HAL_RCC_ClockConfig+0x14>
  24675. {
  24676. return HAL_ERROR;
  24677. 800ac10: 2301 movs r3, #1
  24678. 800ac12: e19c b.n 800af4e <HAL_RCC_ClockConfig+0x34e>
  24679. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  24680. must be correctly programmed according to the frequency of the CPU clock
  24681. (HCLK) and the supply voltage of the device. */
  24682. /* Increasing the CPU frequency */
  24683. if (FLatency > __HAL_FLASH_GET_LATENCY())
  24684. 800ac14: 4b8a ldr r3, [pc, #552] @ (800ae40 <HAL_RCC_ClockConfig+0x240>)
  24685. 800ac16: 681b ldr r3, [r3, #0]
  24686. 800ac18: f003 030f and.w r3, r3, #15
  24687. 800ac1c: 683a ldr r2, [r7, #0]
  24688. 800ac1e: 429a cmp r2, r3
  24689. 800ac20: d910 bls.n 800ac44 <HAL_RCC_ClockConfig+0x44>
  24690. {
  24691. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  24692. __HAL_FLASH_SET_LATENCY(FLatency);
  24693. 800ac22: 4b87 ldr r3, [pc, #540] @ (800ae40 <HAL_RCC_ClockConfig+0x240>)
  24694. 800ac24: 681b ldr r3, [r3, #0]
  24695. 800ac26: f023 020f bic.w r2, r3, #15
  24696. 800ac2a: 4985 ldr r1, [pc, #532] @ (800ae40 <HAL_RCC_ClockConfig+0x240>)
  24697. 800ac2c: 683b ldr r3, [r7, #0]
  24698. 800ac2e: 4313 orrs r3, r2
  24699. 800ac30: 600b str r3, [r1, #0]
  24700. /* Check that the new number of wait states is taken into account to access the Flash
  24701. memory by reading the FLASH_ACR register */
  24702. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  24703. 800ac32: 4b83 ldr r3, [pc, #524] @ (800ae40 <HAL_RCC_ClockConfig+0x240>)
  24704. 800ac34: 681b ldr r3, [r3, #0]
  24705. 800ac36: f003 030f and.w r3, r3, #15
  24706. 800ac3a: 683a ldr r2, [r7, #0]
  24707. 800ac3c: 429a cmp r2, r3
  24708. 800ac3e: d001 beq.n 800ac44 <HAL_RCC_ClockConfig+0x44>
  24709. {
  24710. return HAL_ERROR;
  24711. 800ac40: 2301 movs r3, #1
  24712. 800ac42: e184 b.n 800af4e <HAL_RCC_ClockConfig+0x34e>
  24713. }
  24714. /* Increasing the BUS frequency divider */
  24715. /*-------------------------- D1PCLK1/CDPCLK1 Configuration ---------------------------*/
  24716. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  24717. 800ac44: 687b ldr r3, [r7, #4]
  24718. 800ac46: 681b ldr r3, [r3, #0]
  24719. 800ac48: f003 0304 and.w r3, r3, #4
  24720. 800ac4c: 2b00 cmp r3, #0
  24721. 800ac4e: d010 beq.n 800ac72 <HAL_RCC_ClockConfig+0x72>
  24722. {
  24723. #if defined (RCC_D1CFGR_D1PPRE)
  24724. if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  24725. 800ac50: 687b ldr r3, [r7, #4]
  24726. 800ac52: 691a ldr r2, [r3, #16]
  24727. 800ac54: 4b7b ldr r3, [pc, #492] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24728. 800ac56: 699b ldr r3, [r3, #24]
  24729. 800ac58: f003 0370 and.w r3, r3, #112 @ 0x70
  24730. 800ac5c: 429a cmp r2, r3
  24731. 800ac5e: d908 bls.n 800ac72 <HAL_RCC_ClockConfig+0x72>
  24732. {
  24733. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  24734. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  24735. 800ac60: 4b78 ldr r3, [pc, #480] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24736. 800ac62: 699b ldr r3, [r3, #24]
  24737. 800ac64: f023 0270 bic.w r2, r3, #112 @ 0x70
  24738. 800ac68: 687b ldr r3, [r7, #4]
  24739. 800ac6a: 691b ldr r3, [r3, #16]
  24740. 800ac6c: 4975 ldr r1, [pc, #468] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24741. 800ac6e: 4313 orrs r3, r2
  24742. 800ac70: 618b str r3, [r1, #24]
  24743. }
  24744. #endif
  24745. }
  24746. /*-------------------------- PCLK1 Configuration ---------------------------*/
  24747. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  24748. 800ac72: 687b ldr r3, [r7, #4]
  24749. 800ac74: 681b ldr r3, [r3, #0]
  24750. 800ac76: f003 0308 and.w r3, r3, #8
  24751. 800ac7a: 2b00 cmp r3, #0
  24752. 800ac7c: d010 beq.n 800aca0 <HAL_RCC_ClockConfig+0xa0>
  24753. {
  24754. #if defined (RCC_D2CFGR_D2PPRE1)
  24755. if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  24756. 800ac7e: 687b ldr r3, [r7, #4]
  24757. 800ac80: 695a ldr r2, [r3, #20]
  24758. 800ac82: 4b70 ldr r3, [pc, #448] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24759. 800ac84: 69db ldr r3, [r3, #28]
  24760. 800ac86: f003 0370 and.w r3, r3, #112 @ 0x70
  24761. 800ac8a: 429a cmp r2, r3
  24762. 800ac8c: d908 bls.n 800aca0 <HAL_RCC_ClockConfig+0xa0>
  24763. {
  24764. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  24765. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  24766. 800ac8e: 4b6d ldr r3, [pc, #436] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24767. 800ac90: 69db ldr r3, [r3, #28]
  24768. 800ac92: f023 0270 bic.w r2, r3, #112 @ 0x70
  24769. 800ac96: 687b ldr r3, [r7, #4]
  24770. 800ac98: 695b ldr r3, [r3, #20]
  24771. 800ac9a: 496a ldr r1, [pc, #424] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24772. 800ac9c: 4313 orrs r3, r2
  24773. 800ac9e: 61cb str r3, [r1, #28]
  24774. MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  24775. }
  24776. #endif
  24777. }
  24778. /*-------------------------- PCLK2 Configuration ---------------------------*/
  24779. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  24780. 800aca0: 687b ldr r3, [r7, #4]
  24781. 800aca2: 681b ldr r3, [r3, #0]
  24782. 800aca4: f003 0310 and.w r3, r3, #16
  24783. 800aca8: 2b00 cmp r3, #0
  24784. 800acaa: d010 beq.n 800acce <HAL_RCC_ClockConfig+0xce>
  24785. {
  24786. #if defined(RCC_D2CFGR_D2PPRE2)
  24787. if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  24788. 800acac: 687b ldr r3, [r7, #4]
  24789. 800acae: 699a ldr r2, [r3, #24]
  24790. 800acb0: 4b64 ldr r3, [pc, #400] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24791. 800acb2: 69db ldr r3, [r3, #28]
  24792. 800acb4: f403 63e0 and.w r3, r3, #1792 @ 0x700
  24793. 800acb8: 429a cmp r2, r3
  24794. 800acba: d908 bls.n 800acce <HAL_RCC_ClockConfig+0xce>
  24795. {
  24796. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  24797. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  24798. 800acbc: 4b61 ldr r3, [pc, #388] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24799. 800acbe: 69db ldr r3, [r3, #28]
  24800. 800acc0: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  24801. 800acc4: 687b ldr r3, [r7, #4]
  24802. 800acc6: 699b ldr r3, [r3, #24]
  24803. 800acc8: 495e ldr r1, [pc, #376] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24804. 800acca: 4313 orrs r3, r2
  24805. 800accc: 61cb str r3, [r1, #28]
  24806. }
  24807. #endif
  24808. }
  24809. /*-------------------------- D3PCLK1 Configuration ---------------------------*/
  24810. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  24811. 800acce: 687b ldr r3, [r7, #4]
  24812. 800acd0: 681b ldr r3, [r3, #0]
  24813. 800acd2: f003 0320 and.w r3, r3, #32
  24814. 800acd6: 2b00 cmp r3, #0
  24815. 800acd8: d010 beq.n 800acfc <HAL_RCC_ClockConfig+0xfc>
  24816. {
  24817. #if defined(RCC_D3CFGR_D3PPRE)
  24818. if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  24819. 800acda: 687b ldr r3, [r7, #4]
  24820. 800acdc: 69da ldr r2, [r3, #28]
  24821. 800acde: 4b59 ldr r3, [pc, #356] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24822. 800ace0: 6a1b ldr r3, [r3, #32]
  24823. 800ace2: f003 0370 and.w r3, r3, #112 @ 0x70
  24824. 800ace6: 429a cmp r2, r3
  24825. 800ace8: d908 bls.n 800acfc <HAL_RCC_ClockConfig+0xfc>
  24826. {
  24827. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  24828. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  24829. 800acea: 4b56 ldr r3, [pc, #344] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24830. 800acec: 6a1b ldr r3, [r3, #32]
  24831. 800acee: f023 0270 bic.w r2, r3, #112 @ 0x70
  24832. 800acf2: 687b ldr r3, [r7, #4]
  24833. 800acf4: 69db ldr r3, [r3, #28]
  24834. 800acf6: 4953 ldr r1, [pc, #332] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24835. 800acf8: 4313 orrs r3, r2
  24836. 800acfa: 620b str r3, [r1, #32]
  24837. }
  24838. #endif
  24839. }
  24840. /*-------------------------- HCLK Configuration --------------------------*/
  24841. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  24842. 800acfc: 687b ldr r3, [r7, #4]
  24843. 800acfe: 681b ldr r3, [r3, #0]
  24844. 800ad00: f003 0302 and.w r3, r3, #2
  24845. 800ad04: 2b00 cmp r3, #0
  24846. 800ad06: d010 beq.n 800ad2a <HAL_RCC_ClockConfig+0x12a>
  24847. {
  24848. #if defined (RCC_D1CFGR_HPRE)
  24849. if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  24850. 800ad08: 687b ldr r3, [r7, #4]
  24851. 800ad0a: 68da ldr r2, [r3, #12]
  24852. 800ad0c: 4b4d ldr r3, [pc, #308] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24853. 800ad0e: 699b ldr r3, [r3, #24]
  24854. 800ad10: f003 030f and.w r3, r3, #15
  24855. 800ad14: 429a cmp r2, r3
  24856. 800ad16: d908 bls.n 800ad2a <HAL_RCC_ClockConfig+0x12a>
  24857. {
  24858. /* Set the new HCLK clock divider */
  24859. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  24860. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  24861. 800ad18: 4b4a ldr r3, [pc, #296] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24862. 800ad1a: 699b ldr r3, [r3, #24]
  24863. 800ad1c: f023 020f bic.w r2, r3, #15
  24864. 800ad20: 687b ldr r3, [r7, #4]
  24865. 800ad22: 68db ldr r3, [r3, #12]
  24866. 800ad24: 4947 ldr r1, [pc, #284] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24867. 800ad26: 4313 orrs r3, r2
  24868. 800ad28: 618b str r3, [r1, #24]
  24869. }
  24870. #endif
  24871. }
  24872. /*------------------------- SYSCLK Configuration -------------------------*/
  24873. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  24874. 800ad2a: 687b ldr r3, [r7, #4]
  24875. 800ad2c: 681b ldr r3, [r3, #0]
  24876. 800ad2e: f003 0301 and.w r3, r3, #1
  24877. 800ad32: 2b00 cmp r3, #0
  24878. 800ad34: d055 beq.n 800ade2 <HAL_RCC_ClockConfig+0x1e2>
  24879. {
  24880. assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider));
  24881. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  24882. #if defined(RCC_D1CFGR_D1CPRE)
  24883. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, RCC_ClkInitStruct->SYSCLKDivider);
  24884. 800ad36: 4b43 ldr r3, [pc, #268] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24885. 800ad38: 699b ldr r3, [r3, #24]
  24886. 800ad3a: f423 6270 bic.w r2, r3, #3840 @ 0xf00
  24887. 800ad3e: 687b ldr r3, [r7, #4]
  24888. 800ad40: 689b ldr r3, [r3, #8]
  24889. 800ad42: 4940 ldr r1, [pc, #256] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24890. 800ad44: 4313 orrs r3, r2
  24891. 800ad46: 618b str r3, [r1, #24]
  24892. #else
  24893. MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, RCC_ClkInitStruct->SYSCLKDivider);
  24894. #endif
  24895. /* HSE is selected as System Clock Source */
  24896. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  24897. 800ad48: 687b ldr r3, [r7, #4]
  24898. 800ad4a: 685b ldr r3, [r3, #4]
  24899. 800ad4c: 2b02 cmp r3, #2
  24900. 800ad4e: d107 bne.n 800ad60 <HAL_RCC_ClockConfig+0x160>
  24901. {
  24902. /* Check the HSE ready flag */
  24903. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  24904. 800ad50: 4b3c ldr r3, [pc, #240] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24905. 800ad52: 681b ldr r3, [r3, #0]
  24906. 800ad54: f403 3300 and.w r3, r3, #131072 @ 0x20000
  24907. 800ad58: 2b00 cmp r3, #0
  24908. 800ad5a: d121 bne.n 800ada0 <HAL_RCC_ClockConfig+0x1a0>
  24909. {
  24910. return HAL_ERROR;
  24911. 800ad5c: 2301 movs r3, #1
  24912. 800ad5e: e0f6 b.n 800af4e <HAL_RCC_ClockConfig+0x34e>
  24913. }
  24914. }
  24915. /* PLL is selected as System Clock Source */
  24916. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  24917. 800ad60: 687b ldr r3, [r7, #4]
  24918. 800ad62: 685b ldr r3, [r3, #4]
  24919. 800ad64: 2b03 cmp r3, #3
  24920. 800ad66: d107 bne.n 800ad78 <HAL_RCC_ClockConfig+0x178>
  24921. {
  24922. /* Check the PLL ready flag */
  24923. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  24924. 800ad68: 4b36 ldr r3, [pc, #216] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24925. 800ad6a: 681b ldr r3, [r3, #0]
  24926. 800ad6c: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  24927. 800ad70: 2b00 cmp r3, #0
  24928. 800ad72: d115 bne.n 800ada0 <HAL_RCC_ClockConfig+0x1a0>
  24929. {
  24930. return HAL_ERROR;
  24931. 800ad74: 2301 movs r3, #1
  24932. 800ad76: e0ea b.n 800af4e <HAL_RCC_ClockConfig+0x34e>
  24933. }
  24934. }
  24935. /* CSI is selected as System Clock Source */
  24936. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_CSI)
  24937. 800ad78: 687b ldr r3, [r7, #4]
  24938. 800ad7a: 685b ldr r3, [r3, #4]
  24939. 800ad7c: 2b01 cmp r3, #1
  24940. 800ad7e: d107 bne.n 800ad90 <HAL_RCC_ClockConfig+0x190>
  24941. {
  24942. /* Check the PLL ready flag */
  24943. if (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  24944. 800ad80: 4b30 ldr r3, [pc, #192] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24945. 800ad82: 681b ldr r3, [r3, #0]
  24946. 800ad84: f403 7380 and.w r3, r3, #256 @ 0x100
  24947. 800ad88: 2b00 cmp r3, #0
  24948. 800ad8a: d109 bne.n 800ada0 <HAL_RCC_ClockConfig+0x1a0>
  24949. {
  24950. return HAL_ERROR;
  24951. 800ad8c: 2301 movs r3, #1
  24952. 800ad8e: e0de b.n 800af4e <HAL_RCC_ClockConfig+0x34e>
  24953. }
  24954. /* HSI is selected as System Clock Source */
  24955. else
  24956. {
  24957. /* Check the HSI ready flag */
  24958. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  24959. 800ad90: 4b2c ldr r3, [pc, #176] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24960. 800ad92: 681b ldr r3, [r3, #0]
  24961. 800ad94: f003 0304 and.w r3, r3, #4
  24962. 800ad98: 2b00 cmp r3, #0
  24963. 800ad9a: d101 bne.n 800ada0 <HAL_RCC_ClockConfig+0x1a0>
  24964. {
  24965. return HAL_ERROR;
  24966. 800ad9c: 2301 movs r3, #1
  24967. 800ad9e: e0d6 b.n 800af4e <HAL_RCC_ClockConfig+0x34e>
  24968. }
  24969. }
  24970. MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource);
  24971. 800ada0: 4b28 ldr r3, [pc, #160] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24972. 800ada2: 691b ldr r3, [r3, #16]
  24973. 800ada4: f023 0207 bic.w r2, r3, #7
  24974. 800ada8: 687b ldr r3, [r7, #4]
  24975. 800adaa: 685b ldr r3, [r3, #4]
  24976. 800adac: 4925 ldr r1, [pc, #148] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  24977. 800adae: 4313 orrs r3, r2
  24978. 800adb0: 610b str r3, [r1, #16]
  24979. /* Get Start Tick*/
  24980. tickstart = HAL_GetTick();
  24981. 800adb2: f7fa fc6f bl 8005694 <HAL_GetTick>
  24982. 800adb6: 6178 str r0, [r7, #20]
  24983. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  24984. 800adb8: e00a b.n 800add0 <HAL_RCC_ClockConfig+0x1d0>
  24985. {
  24986. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  24987. 800adba: f7fa fc6b bl 8005694 <HAL_GetTick>
  24988. 800adbe: 4602 mov r2, r0
  24989. 800adc0: 697b ldr r3, [r7, #20]
  24990. 800adc2: 1ad3 subs r3, r2, r3
  24991. 800adc4: f241 3288 movw r2, #5000 @ 0x1388
  24992. 800adc8: 4293 cmp r3, r2
  24993. 800adca: d901 bls.n 800add0 <HAL_RCC_ClockConfig+0x1d0>
  24994. {
  24995. return HAL_TIMEOUT;
  24996. 800adcc: 2303 movs r3, #3
  24997. 800adce: e0be b.n 800af4e <HAL_RCC_ClockConfig+0x34e>
  24998. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  24999. 800add0: 4b1c ldr r3, [pc, #112] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  25000. 800add2: 691b ldr r3, [r3, #16]
  25001. 800add4: f003 0238 and.w r2, r3, #56 @ 0x38
  25002. 800add8: 687b ldr r3, [r7, #4]
  25003. 800adda: 685b ldr r3, [r3, #4]
  25004. 800addc: 00db lsls r3, r3, #3
  25005. 800adde: 429a cmp r2, r3
  25006. 800ade0: d1eb bne.n 800adba <HAL_RCC_ClockConfig+0x1ba>
  25007. }
  25008. /* Decreasing the BUS frequency divider */
  25009. /*-------------------------- HCLK Configuration --------------------------*/
  25010. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  25011. 800ade2: 687b ldr r3, [r7, #4]
  25012. 800ade4: 681b ldr r3, [r3, #0]
  25013. 800ade6: f003 0302 and.w r3, r3, #2
  25014. 800adea: 2b00 cmp r3, #0
  25015. 800adec: d010 beq.n 800ae10 <HAL_RCC_ClockConfig+0x210>
  25016. {
  25017. #if defined(RCC_D1CFGR_HPRE)
  25018. if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  25019. 800adee: 687b ldr r3, [r7, #4]
  25020. 800adf0: 68da ldr r2, [r3, #12]
  25021. 800adf2: 4b14 ldr r3, [pc, #80] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  25022. 800adf4: 699b ldr r3, [r3, #24]
  25023. 800adf6: f003 030f and.w r3, r3, #15
  25024. 800adfa: 429a cmp r2, r3
  25025. 800adfc: d208 bcs.n 800ae10 <HAL_RCC_ClockConfig+0x210>
  25026. {
  25027. /* Set the new HCLK clock divider */
  25028. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  25029. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  25030. 800adfe: 4b11 ldr r3, [pc, #68] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  25031. 800ae00: 699b ldr r3, [r3, #24]
  25032. 800ae02: f023 020f bic.w r2, r3, #15
  25033. 800ae06: 687b ldr r3, [r7, #4]
  25034. 800ae08: 68db ldr r3, [r3, #12]
  25035. 800ae0a: 490e ldr r1, [pc, #56] @ (800ae44 <HAL_RCC_ClockConfig+0x244>)
  25036. 800ae0c: 4313 orrs r3, r2
  25037. 800ae0e: 618b str r3, [r1, #24]
  25038. }
  25039. #endif
  25040. }
  25041. /* Decreasing the number of wait states because of lower CPU frequency */
  25042. if (FLatency < __HAL_FLASH_GET_LATENCY())
  25043. 800ae10: 4b0b ldr r3, [pc, #44] @ (800ae40 <HAL_RCC_ClockConfig+0x240>)
  25044. 800ae12: 681b ldr r3, [r3, #0]
  25045. 800ae14: f003 030f and.w r3, r3, #15
  25046. 800ae18: 683a ldr r2, [r7, #0]
  25047. 800ae1a: 429a cmp r2, r3
  25048. 800ae1c: d214 bcs.n 800ae48 <HAL_RCC_ClockConfig+0x248>
  25049. {
  25050. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  25051. __HAL_FLASH_SET_LATENCY(FLatency);
  25052. 800ae1e: 4b08 ldr r3, [pc, #32] @ (800ae40 <HAL_RCC_ClockConfig+0x240>)
  25053. 800ae20: 681b ldr r3, [r3, #0]
  25054. 800ae22: f023 020f bic.w r2, r3, #15
  25055. 800ae26: 4906 ldr r1, [pc, #24] @ (800ae40 <HAL_RCC_ClockConfig+0x240>)
  25056. 800ae28: 683b ldr r3, [r7, #0]
  25057. 800ae2a: 4313 orrs r3, r2
  25058. 800ae2c: 600b str r3, [r1, #0]
  25059. /* Check that the new number of wait states is taken into account to access the Flash
  25060. memory by reading the FLASH_ACR register */
  25061. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  25062. 800ae2e: 4b04 ldr r3, [pc, #16] @ (800ae40 <HAL_RCC_ClockConfig+0x240>)
  25063. 800ae30: 681b ldr r3, [r3, #0]
  25064. 800ae32: f003 030f and.w r3, r3, #15
  25065. 800ae36: 683a ldr r2, [r7, #0]
  25066. 800ae38: 429a cmp r2, r3
  25067. 800ae3a: d005 beq.n 800ae48 <HAL_RCC_ClockConfig+0x248>
  25068. {
  25069. return HAL_ERROR;
  25070. 800ae3c: 2301 movs r3, #1
  25071. 800ae3e: e086 b.n 800af4e <HAL_RCC_ClockConfig+0x34e>
  25072. 800ae40: 52002000 .word 0x52002000
  25073. 800ae44: 58024400 .word 0x58024400
  25074. }
  25075. }
  25076. /*-------------------------- D1PCLK1/CDPCLK Configuration ---------------------------*/
  25077. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  25078. 800ae48: 687b ldr r3, [r7, #4]
  25079. 800ae4a: 681b ldr r3, [r3, #0]
  25080. 800ae4c: f003 0304 and.w r3, r3, #4
  25081. 800ae50: 2b00 cmp r3, #0
  25082. 800ae52: d010 beq.n 800ae76 <HAL_RCC_ClockConfig+0x276>
  25083. {
  25084. #if defined(RCC_D1CFGR_D1PPRE)
  25085. if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  25086. 800ae54: 687b ldr r3, [r7, #4]
  25087. 800ae56: 691a ldr r2, [r3, #16]
  25088. 800ae58: 4b3f ldr r3, [pc, #252] @ (800af58 <HAL_RCC_ClockConfig+0x358>)
  25089. 800ae5a: 699b ldr r3, [r3, #24]
  25090. 800ae5c: f003 0370 and.w r3, r3, #112 @ 0x70
  25091. 800ae60: 429a cmp r2, r3
  25092. 800ae62: d208 bcs.n 800ae76 <HAL_RCC_ClockConfig+0x276>
  25093. {
  25094. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  25095. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  25096. 800ae64: 4b3c ldr r3, [pc, #240] @ (800af58 <HAL_RCC_ClockConfig+0x358>)
  25097. 800ae66: 699b ldr r3, [r3, #24]
  25098. 800ae68: f023 0270 bic.w r2, r3, #112 @ 0x70
  25099. 800ae6c: 687b ldr r3, [r7, #4]
  25100. 800ae6e: 691b ldr r3, [r3, #16]
  25101. 800ae70: 4939 ldr r1, [pc, #228] @ (800af58 <HAL_RCC_ClockConfig+0x358>)
  25102. 800ae72: 4313 orrs r3, r2
  25103. 800ae74: 618b str r3, [r1, #24]
  25104. }
  25105. #endif
  25106. }
  25107. /*-------------------------- PCLK1 Configuration ---------------------------*/
  25108. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  25109. 800ae76: 687b ldr r3, [r7, #4]
  25110. 800ae78: 681b ldr r3, [r3, #0]
  25111. 800ae7a: f003 0308 and.w r3, r3, #8
  25112. 800ae7e: 2b00 cmp r3, #0
  25113. 800ae80: d010 beq.n 800aea4 <HAL_RCC_ClockConfig+0x2a4>
  25114. {
  25115. #if defined(RCC_D2CFGR_D2PPRE1)
  25116. if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  25117. 800ae82: 687b ldr r3, [r7, #4]
  25118. 800ae84: 695a ldr r2, [r3, #20]
  25119. 800ae86: 4b34 ldr r3, [pc, #208] @ (800af58 <HAL_RCC_ClockConfig+0x358>)
  25120. 800ae88: 69db ldr r3, [r3, #28]
  25121. 800ae8a: f003 0370 and.w r3, r3, #112 @ 0x70
  25122. 800ae8e: 429a cmp r2, r3
  25123. 800ae90: d208 bcs.n 800aea4 <HAL_RCC_ClockConfig+0x2a4>
  25124. {
  25125. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  25126. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  25127. 800ae92: 4b31 ldr r3, [pc, #196] @ (800af58 <HAL_RCC_ClockConfig+0x358>)
  25128. 800ae94: 69db ldr r3, [r3, #28]
  25129. 800ae96: f023 0270 bic.w r2, r3, #112 @ 0x70
  25130. 800ae9a: 687b ldr r3, [r7, #4]
  25131. 800ae9c: 695b ldr r3, [r3, #20]
  25132. 800ae9e: 492e ldr r1, [pc, #184] @ (800af58 <HAL_RCC_ClockConfig+0x358>)
  25133. 800aea0: 4313 orrs r3, r2
  25134. 800aea2: 61cb str r3, [r1, #28]
  25135. }
  25136. #endif
  25137. }
  25138. /*-------------------------- PCLK2 Configuration ---------------------------*/
  25139. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  25140. 800aea4: 687b ldr r3, [r7, #4]
  25141. 800aea6: 681b ldr r3, [r3, #0]
  25142. 800aea8: f003 0310 and.w r3, r3, #16
  25143. 800aeac: 2b00 cmp r3, #0
  25144. 800aeae: d010 beq.n 800aed2 <HAL_RCC_ClockConfig+0x2d2>
  25145. {
  25146. #if defined (RCC_D2CFGR_D2PPRE2)
  25147. if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  25148. 800aeb0: 687b ldr r3, [r7, #4]
  25149. 800aeb2: 699a ldr r2, [r3, #24]
  25150. 800aeb4: 4b28 ldr r3, [pc, #160] @ (800af58 <HAL_RCC_ClockConfig+0x358>)
  25151. 800aeb6: 69db ldr r3, [r3, #28]
  25152. 800aeb8: f403 63e0 and.w r3, r3, #1792 @ 0x700
  25153. 800aebc: 429a cmp r2, r3
  25154. 800aebe: d208 bcs.n 800aed2 <HAL_RCC_ClockConfig+0x2d2>
  25155. {
  25156. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  25157. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  25158. 800aec0: 4b25 ldr r3, [pc, #148] @ (800af58 <HAL_RCC_ClockConfig+0x358>)
  25159. 800aec2: 69db ldr r3, [r3, #28]
  25160. 800aec4: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  25161. 800aec8: 687b ldr r3, [r7, #4]
  25162. 800aeca: 699b ldr r3, [r3, #24]
  25163. 800aecc: 4922 ldr r1, [pc, #136] @ (800af58 <HAL_RCC_ClockConfig+0x358>)
  25164. 800aece: 4313 orrs r3, r2
  25165. 800aed0: 61cb str r3, [r1, #28]
  25166. }
  25167. #endif
  25168. }
  25169. /*-------------------------- D3PCLK1/SRDPCLK1 Configuration ---------------------------*/
  25170. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  25171. 800aed2: 687b ldr r3, [r7, #4]
  25172. 800aed4: 681b ldr r3, [r3, #0]
  25173. 800aed6: f003 0320 and.w r3, r3, #32
  25174. 800aeda: 2b00 cmp r3, #0
  25175. 800aedc: d010 beq.n 800af00 <HAL_RCC_ClockConfig+0x300>
  25176. {
  25177. #if defined(RCC_D3CFGR_D3PPRE)
  25178. if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  25179. 800aede: 687b ldr r3, [r7, #4]
  25180. 800aee0: 69da ldr r2, [r3, #28]
  25181. 800aee2: 4b1d ldr r3, [pc, #116] @ (800af58 <HAL_RCC_ClockConfig+0x358>)
  25182. 800aee4: 6a1b ldr r3, [r3, #32]
  25183. 800aee6: f003 0370 and.w r3, r3, #112 @ 0x70
  25184. 800aeea: 429a cmp r2, r3
  25185. 800aeec: d208 bcs.n 800af00 <HAL_RCC_ClockConfig+0x300>
  25186. {
  25187. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  25188. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  25189. 800aeee: 4b1a ldr r3, [pc, #104] @ (800af58 <HAL_RCC_ClockConfig+0x358>)
  25190. 800aef0: 6a1b ldr r3, [r3, #32]
  25191. 800aef2: f023 0270 bic.w r2, r3, #112 @ 0x70
  25192. 800aef6: 687b ldr r3, [r7, #4]
  25193. 800aef8: 69db ldr r3, [r3, #28]
  25194. 800aefa: 4917 ldr r1, [pc, #92] @ (800af58 <HAL_RCC_ClockConfig+0x358>)
  25195. 800aefc: 4313 orrs r3, r2
  25196. 800aefe: 620b str r3, [r1, #32]
  25197. #endif
  25198. }
  25199. /* Update the SystemCoreClock global variable */
  25200. #if defined(RCC_D1CFGR_D1CPRE)
  25201. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  25202. 800af00: f000 f834 bl 800af6c <HAL_RCC_GetSysClockFreq>
  25203. 800af04: 4602 mov r2, r0
  25204. 800af06: 4b14 ldr r3, [pc, #80] @ (800af58 <HAL_RCC_ClockConfig+0x358>)
  25205. 800af08: 699b ldr r3, [r3, #24]
  25206. 800af0a: 0a1b lsrs r3, r3, #8
  25207. 800af0c: f003 030f and.w r3, r3, #15
  25208. 800af10: 4912 ldr r1, [pc, #72] @ (800af5c <HAL_RCC_ClockConfig+0x35c>)
  25209. 800af12: 5ccb ldrb r3, [r1, r3]
  25210. 800af14: f003 031f and.w r3, r3, #31
  25211. 800af18: fa22 f303 lsr.w r3, r2, r3
  25212. 800af1c: 613b str r3, [r7, #16]
  25213. #else
  25214. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  25215. #endif
  25216. #if defined(RCC_D1CFGR_HPRE)
  25217. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  25218. 800af1e: 4b0e ldr r3, [pc, #56] @ (800af58 <HAL_RCC_ClockConfig+0x358>)
  25219. 800af20: 699b ldr r3, [r3, #24]
  25220. 800af22: f003 030f and.w r3, r3, #15
  25221. 800af26: 4a0d ldr r2, [pc, #52] @ (800af5c <HAL_RCC_ClockConfig+0x35c>)
  25222. 800af28: 5cd3 ldrb r3, [r2, r3]
  25223. 800af2a: f003 031f and.w r3, r3, #31
  25224. 800af2e: 693a ldr r2, [r7, #16]
  25225. 800af30: fa22 f303 lsr.w r3, r2, r3
  25226. 800af34: 4a0a ldr r2, [pc, #40] @ (800af60 <HAL_RCC_ClockConfig+0x360>)
  25227. 800af36: 6013 str r3, [r2, #0]
  25228. #endif
  25229. #if defined(DUAL_CORE) && defined(CORE_CM4)
  25230. SystemCoreClock = SystemD2Clock;
  25231. #else
  25232. SystemCoreClock = common_system_clock;
  25233. 800af38: 4a0a ldr r2, [pc, #40] @ (800af64 <HAL_RCC_ClockConfig+0x364>)
  25234. 800af3a: 693b ldr r3, [r7, #16]
  25235. 800af3c: 6013 str r3, [r2, #0]
  25236. #endif /* DUAL_CORE && CORE_CM4 */
  25237. /* Configure the source of time base considering new system clocks settings*/
  25238. halstatus = HAL_InitTick(uwTickPrio);
  25239. 800af3e: 4b0a ldr r3, [pc, #40] @ (800af68 <HAL_RCC_ClockConfig+0x368>)
  25240. 800af40: 681b ldr r3, [r3, #0]
  25241. 800af42: 4618 mov r0, r3
  25242. 800af44: f7f8 ffae bl 8003ea4 <HAL_InitTick>
  25243. 800af48: 4603 mov r3, r0
  25244. 800af4a: 73fb strb r3, [r7, #15]
  25245. return halstatus;
  25246. 800af4c: 7bfb ldrb r3, [r7, #15]
  25247. }
  25248. 800af4e: 4618 mov r0, r3
  25249. 800af50: 3718 adds r7, #24
  25250. 800af52: 46bd mov sp, r7
  25251. 800af54: bd80 pop {r7, pc}
  25252. 800af56: bf00 nop
  25253. 800af58: 58024400 .word 0x58024400
  25254. 800af5c: 0803196c .word 0x0803196c
  25255. 800af60: 24000010 .word 0x24000010
  25256. 800af64: 2400000c .word 0x2400000c
  25257. 800af68: 2400002c .word 0x2400002c
  25258. 0800af6c <HAL_RCC_GetSysClockFreq>:
  25259. *
  25260. *
  25261. * @retval SYSCLK frequency
  25262. */
  25263. uint32_t HAL_RCC_GetSysClockFreq(void)
  25264. {
  25265. 800af6c: b480 push {r7}
  25266. 800af6e: b089 sub sp, #36 @ 0x24
  25267. 800af70: af00 add r7, sp, #0
  25268. float_t fracn1, pllvco;
  25269. uint32_t sysclockfreq;
  25270. /* Get SYSCLK source -------------------------------------------------------*/
  25271. switch (RCC->CFGR & RCC_CFGR_SWS)
  25272. 800af72: 4bb3 ldr r3, [pc, #716] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25273. 800af74: 691b ldr r3, [r3, #16]
  25274. 800af76: f003 0338 and.w r3, r3, #56 @ 0x38
  25275. 800af7a: 2b18 cmp r3, #24
  25276. 800af7c: f200 8155 bhi.w 800b22a <HAL_RCC_GetSysClockFreq+0x2be>
  25277. 800af80: a201 add r2, pc, #4 @ (adr r2, 800af88 <HAL_RCC_GetSysClockFreq+0x1c>)
  25278. 800af82: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  25279. 800af86: bf00 nop
  25280. 800af88: 0800afed .word 0x0800afed
  25281. 800af8c: 0800b22b .word 0x0800b22b
  25282. 800af90: 0800b22b .word 0x0800b22b
  25283. 800af94: 0800b22b .word 0x0800b22b
  25284. 800af98: 0800b22b .word 0x0800b22b
  25285. 800af9c: 0800b22b .word 0x0800b22b
  25286. 800afa0: 0800b22b .word 0x0800b22b
  25287. 800afa4: 0800b22b .word 0x0800b22b
  25288. 800afa8: 0800b013 .word 0x0800b013
  25289. 800afac: 0800b22b .word 0x0800b22b
  25290. 800afb0: 0800b22b .word 0x0800b22b
  25291. 800afb4: 0800b22b .word 0x0800b22b
  25292. 800afb8: 0800b22b .word 0x0800b22b
  25293. 800afbc: 0800b22b .word 0x0800b22b
  25294. 800afc0: 0800b22b .word 0x0800b22b
  25295. 800afc4: 0800b22b .word 0x0800b22b
  25296. 800afc8: 0800b019 .word 0x0800b019
  25297. 800afcc: 0800b22b .word 0x0800b22b
  25298. 800afd0: 0800b22b .word 0x0800b22b
  25299. 800afd4: 0800b22b .word 0x0800b22b
  25300. 800afd8: 0800b22b .word 0x0800b22b
  25301. 800afdc: 0800b22b .word 0x0800b22b
  25302. 800afe0: 0800b22b .word 0x0800b22b
  25303. 800afe4: 0800b22b .word 0x0800b22b
  25304. 800afe8: 0800b01f .word 0x0800b01f
  25305. {
  25306. case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
  25307. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  25308. 800afec: 4b94 ldr r3, [pc, #592] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25309. 800afee: 681b ldr r3, [r3, #0]
  25310. 800aff0: f003 0320 and.w r3, r3, #32
  25311. 800aff4: 2b00 cmp r3, #0
  25312. 800aff6: d009 beq.n 800b00c <HAL_RCC_GetSysClockFreq+0xa0>
  25313. {
  25314. sysclockfreq = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  25315. 800aff8: 4b91 ldr r3, [pc, #580] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25316. 800affa: 681b ldr r3, [r3, #0]
  25317. 800affc: 08db lsrs r3, r3, #3
  25318. 800affe: f003 0303 and.w r3, r3, #3
  25319. 800b002: 4a90 ldr r2, [pc, #576] @ (800b244 <HAL_RCC_GetSysClockFreq+0x2d8>)
  25320. 800b004: fa22 f303 lsr.w r3, r2, r3
  25321. 800b008: 61bb str r3, [r7, #24]
  25322. else
  25323. {
  25324. sysclockfreq = (uint32_t) HSI_VALUE;
  25325. }
  25326. break;
  25327. 800b00a: e111 b.n 800b230 <HAL_RCC_GetSysClockFreq+0x2c4>
  25328. sysclockfreq = (uint32_t) HSI_VALUE;
  25329. 800b00c: 4b8d ldr r3, [pc, #564] @ (800b244 <HAL_RCC_GetSysClockFreq+0x2d8>)
  25330. 800b00e: 61bb str r3, [r7, #24]
  25331. break;
  25332. 800b010: e10e b.n 800b230 <HAL_RCC_GetSysClockFreq+0x2c4>
  25333. case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */
  25334. sysclockfreq = CSI_VALUE;
  25335. 800b012: 4b8d ldr r3, [pc, #564] @ (800b248 <HAL_RCC_GetSysClockFreq+0x2dc>)
  25336. 800b014: 61bb str r3, [r7, #24]
  25337. break;
  25338. 800b016: e10b b.n 800b230 <HAL_RCC_GetSysClockFreq+0x2c4>
  25339. case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
  25340. sysclockfreq = HSE_VALUE;
  25341. 800b018: 4b8c ldr r3, [pc, #560] @ (800b24c <HAL_RCC_GetSysClockFreq+0x2e0>)
  25342. 800b01a: 61bb str r3, [r7, #24]
  25343. break;
  25344. 800b01c: e108 b.n 800b230 <HAL_RCC_GetSysClockFreq+0x2c4>
  25345. case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */
  25346. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN
  25347. SYSCLK = PLL_VCO / PLLR
  25348. */
  25349. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  25350. 800b01e: 4b88 ldr r3, [pc, #544] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25351. 800b020: 6a9b ldr r3, [r3, #40] @ 0x28
  25352. 800b022: f003 0303 and.w r3, r3, #3
  25353. 800b026: 617b str r3, [r7, #20]
  25354. pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4) ;
  25355. 800b028: 4b85 ldr r3, [pc, #532] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25356. 800b02a: 6a9b ldr r3, [r3, #40] @ 0x28
  25357. 800b02c: 091b lsrs r3, r3, #4
  25358. 800b02e: f003 033f and.w r3, r3, #63 @ 0x3f
  25359. 800b032: 613b str r3, [r7, #16]
  25360. pllfracen = ((RCC-> PLLCFGR & RCC_PLLCFGR_PLL1FRACEN) >> RCC_PLLCFGR_PLL1FRACEN_Pos);
  25361. 800b034: 4b82 ldr r3, [pc, #520] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25362. 800b036: 6adb ldr r3, [r3, #44] @ 0x2c
  25363. 800b038: f003 0301 and.w r3, r3, #1
  25364. 800b03c: 60fb str r3, [r7, #12]
  25365. fracn1 = (float_t)(uint32_t)(pllfracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  25366. 800b03e: 4b80 ldr r3, [pc, #512] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25367. 800b040: 6b5b ldr r3, [r3, #52] @ 0x34
  25368. 800b042: 08db lsrs r3, r3, #3
  25369. 800b044: f3c3 030c ubfx r3, r3, #0, #13
  25370. 800b048: 68fa ldr r2, [r7, #12]
  25371. 800b04a: fb02 f303 mul.w r3, r2, r3
  25372. 800b04e: ee07 3a90 vmov s15, r3
  25373. 800b052: eef8 7a67 vcvt.f32.u32 s15, s15
  25374. 800b056: edc7 7a02 vstr s15, [r7, #8]
  25375. if (pllm != 0U)
  25376. 800b05a: 693b ldr r3, [r7, #16]
  25377. 800b05c: 2b00 cmp r3, #0
  25378. 800b05e: f000 80e1 beq.w 800b224 <HAL_RCC_GetSysClockFreq+0x2b8>
  25379. 800b062: 697b ldr r3, [r7, #20]
  25380. 800b064: 2b02 cmp r3, #2
  25381. 800b066: f000 8083 beq.w 800b170 <HAL_RCC_GetSysClockFreq+0x204>
  25382. 800b06a: 697b ldr r3, [r7, #20]
  25383. 800b06c: 2b02 cmp r3, #2
  25384. 800b06e: f200 80a1 bhi.w 800b1b4 <HAL_RCC_GetSysClockFreq+0x248>
  25385. 800b072: 697b ldr r3, [r7, #20]
  25386. 800b074: 2b00 cmp r3, #0
  25387. 800b076: d003 beq.n 800b080 <HAL_RCC_GetSysClockFreq+0x114>
  25388. 800b078: 697b ldr r3, [r7, #20]
  25389. 800b07a: 2b01 cmp r3, #1
  25390. 800b07c: d056 beq.n 800b12c <HAL_RCC_GetSysClockFreq+0x1c0>
  25391. 800b07e: e099 b.n 800b1b4 <HAL_RCC_GetSysClockFreq+0x248>
  25392. {
  25393. switch (pllsource)
  25394. {
  25395. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  25396. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  25397. 800b080: 4b6f ldr r3, [pc, #444] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25398. 800b082: 681b ldr r3, [r3, #0]
  25399. 800b084: f003 0320 and.w r3, r3, #32
  25400. 800b088: 2b00 cmp r3, #0
  25401. 800b08a: d02d beq.n 800b0e8 <HAL_RCC_GetSysClockFreq+0x17c>
  25402. {
  25403. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  25404. 800b08c: 4b6c ldr r3, [pc, #432] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25405. 800b08e: 681b ldr r3, [r3, #0]
  25406. 800b090: 08db lsrs r3, r3, #3
  25407. 800b092: f003 0303 and.w r3, r3, #3
  25408. 800b096: 4a6b ldr r2, [pc, #428] @ (800b244 <HAL_RCC_GetSysClockFreq+0x2d8>)
  25409. 800b098: fa22 f303 lsr.w r3, r2, r3
  25410. 800b09c: 607b str r3, [r7, #4]
  25411. pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  25412. 800b09e: 687b ldr r3, [r7, #4]
  25413. 800b0a0: ee07 3a90 vmov s15, r3
  25414. 800b0a4: eef8 6a67 vcvt.f32.u32 s13, s15
  25415. 800b0a8: 693b ldr r3, [r7, #16]
  25416. 800b0aa: ee07 3a90 vmov s15, r3
  25417. 800b0ae: eef8 7a67 vcvt.f32.u32 s15, s15
  25418. 800b0b2: ee86 7aa7 vdiv.f32 s14, s13, s15
  25419. 800b0b6: 4b62 ldr r3, [pc, #392] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25420. 800b0b8: 6b1b ldr r3, [r3, #48] @ 0x30
  25421. 800b0ba: f3c3 0308 ubfx r3, r3, #0, #9
  25422. 800b0be: ee07 3a90 vmov s15, r3
  25423. 800b0c2: eef8 6a67 vcvt.f32.u32 s13, s15
  25424. 800b0c6: ed97 6a02 vldr s12, [r7, #8]
  25425. 800b0ca: eddf 5a61 vldr s11, [pc, #388] @ 800b250 <HAL_RCC_GetSysClockFreq+0x2e4>
  25426. 800b0ce: eec6 7a25 vdiv.f32 s15, s12, s11
  25427. 800b0d2: ee76 7aa7 vadd.f32 s15, s13, s15
  25428. 800b0d6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  25429. 800b0da: ee77 7aa6 vadd.f32 s15, s15, s13
  25430. 800b0de: ee67 7a27 vmul.f32 s15, s14, s15
  25431. 800b0e2: edc7 7a07 vstr s15, [r7, #28]
  25432. }
  25433. else
  25434. {
  25435. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  25436. }
  25437. break;
  25438. 800b0e6: e087 b.n 800b1f8 <HAL_RCC_GetSysClockFreq+0x28c>
  25439. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  25440. 800b0e8: 693b ldr r3, [r7, #16]
  25441. 800b0ea: ee07 3a90 vmov s15, r3
  25442. 800b0ee: eef8 7a67 vcvt.f32.u32 s15, s15
  25443. 800b0f2: eddf 6a58 vldr s13, [pc, #352] @ 800b254 <HAL_RCC_GetSysClockFreq+0x2e8>
  25444. 800b0f6: ee86 7aa7 vdiv.f32 s14, s13, s15
  25445. 800b0fa: 4b51 ldr r3, [pc, #324] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25446. 800b0fc: 6b1b ldr r3, [r3, #48] @ 0x30
  25447. 800b0fe: f3c3 0308 ubfx r3, r3, #0, #9
  25448. 800b102: ee07 3a90 vmov s15, r3
  25449. 800b106: eef8 6a67 vcvt.f32.u32 s13, s15
  25450. 800b10a: ed97 6a02 vldr s12, [r7, #8]
  25451. 800b10e: eddf 5a50 vldr s11, [pc, #320] @ 800b250 <HAL_RCC_GetSysClockFreq+0x2e4>
  25452. 800b112: eec6 7a25 vdiv.f32 s15, s12, s11
  25453. 800b116: ee76 7aa7 vadd.f32 s15, s13, s15
  25454. 800b11a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  25455. 800b11e: ee77 7aa6 vadd.f32 s15, s15, s13
  25456. 800b122: ee67 7a27 vmul.f32 s15, s14, s15
  25457. 800b126: edc7 7a07 vstr s15, [r7, #28]
  25458. break;
  25459. 800b12a: e065 b.n 800b1f8 <HAL_RCC_GetSysClockFreq+0x28c>
  25460. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  25461. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  25462. 800b12c: 693b ldr r3, [r7, #16]
  25463. 800b12e: ee07 3a90 vmov s15, r3
  25464. 800b132: eef8 7a67 vcvt.f32.u32 s15, s15
  25465. 800b136: eddf 6a48 vldr s13, [pc, #288] @ 800b258 <HAL_RCC_GetSysClockFreq+0x2ec>
  25466. 800b13a: ee86 7aa7 vdiv.f32 s14, s13, s15
  25467. 800b13e: 4b40 ldr r3, [pc, #256] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25468. 800b140: 6b1b ldr r3, [r3, #48] @ 0x30
  25469. 800b142: f3c3 0308 ubfx r3, r3, #0, #9
  25470. 800b146: ee07 3a90 vmov s15, r3
  25471. 800b14a: eef8 6a67 vcvt.f32.u32 s13, s15
  25472. 800b14e: ed97 6a02 vldr s12, [r7, #8]
  25473. 800b152: eddf 5a3f vldr s11, [pc, #252] @ 800b250 <HAL_RCC_GetSysClockFreq+0x2e4>
  25474. 800b156: eec6 7a25 vdiv.f32 s15, s12, s11
  25475. 800b15a: ee76 7aa7 vadd.f32 s15, s13, s15
  25476. 800b15e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  25477. 800b162: ee77 7aa6 vadd.f32 s15, s15, s13
  25478. 800b166: ee67 7a27 vmul.f32 s15, s14, s15
  25479. 800b16a: edc7 7a07 vstr s15, [r7, #28]
  25480. break;
  25481. 800b16e: e043 b.n 800b1f8 <HAL_RCC_GetSysClockFreq+0x28c>
  25482. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  25483. pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  25484. 800b170: 693b ldr r3, [r7, #16]
  25485. 800b172: ee07 3a90 vmov s15, r3
  25486. 800b176: eef8 7a67 vcvt.f32.u32 s15, s15
  25487. 800b17a: eddf 6a38 vldr s13, [pc, #224] @ 800b25c <HAL_RCC_GetSysClockFreq+0x2f0>
  25488. 800b17e: ee86 7aa7 vdiv.f32 s14, s13, s15
  25489. 800b182: 4b2f ldr r3, [pc, #188] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25490. 800b184: 6b1b ldr r3, [r3, #48] @ 0x30
  25491. 800b186: f3c3 0308 ubfx r3, r3, #0, #9
  25492. 800b18a: ee07 3a90 vmov s15, r3
  25493. 800b18e: eef8 6a67 vcvt.f32.u32 s13, s15
  25494. 800b192: ed97 6a02 vldr s12, [r7, #8]
  25495. 800b196: eddf 5a2e vldr s11, [pc, #184] @ 800b250 <HAL_RCC_GetSysClockFreq+0x2e4>
  25496. 800b19a: eec6 7a25 vdiv.f32 s15, s12, s11
  25497. 800b19e: ee76 7aa7 vadd.f32 s15, s13, s15
  25498. 800b1a2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  25499. 800b1a6: ee77 7aa6 vadd.f32 s15, s15, s13
  25500. 800b1aa: ee67 7a27 vmul.f32 s15, s14, s15
  25501. 800b1ae: edc7 7a07 vstr s15, [r7, #28]
  25502. break;
  25503. 800b1b2: e021 b.n 800b1f8 <HAL_RCC_GetSysClockFreq+0x28c>
  25504. default:
  25505. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  25506. 800b1b4: 693b ldr r3, [r7, #16]
  25507. 800b1b6: ee07 3a90 vmov s15, r3
  25508. 800b1ba: eef8 7a67 vcvt.f32.u32 s15, s15
  25509. 800b1be: eddf 6a26 vldr s13, [pc, #152] @ 800b258 <HAL_RCC_GetSysClockFreq+0x2ec>
  25510. 800b1c2: ee86 7aa7 vdiv.f32 s14, s13, s15
  25511. 800b1c6: 4b1e ldr r3, [pc, #120] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25512. 800b1c8: 6b1b ldr r3, [r3, #48] @ 0x30
  25513. 800b1ca: f3c3 0308 ubfx r3, r3, #0, #9
  25514. 800b1ce: ee07 3a90 vmov s15, r3
  25515. 800b1d2: eef8 6a67 vcvt.f32.u32 s13, s15
  25516. 800b1d6: ed97 6a02 vldr s12, [r7, #8]
  25517. 800b1da: eddf 5a1d vldr s11, [pc, #116] @ 800b250 <HAL_RCC_GetSysClockFreq+0x2e4>
  25518. 800b1de: eec6 7a25 vdiv.f32 s15, s12, s11
  25519. 800b1e2: ee76 7aa7 vadd.f32 s15, s13, s15
  25520. 800b1e6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  25521. 800b1ea: ee77 7aa6 vadd.f32 s15, s15, s13
  25522. 800b1ee: ee67 7a27 vmul.f32 s15, s14, s15
  25523. 800b1f2: edc7 7a07 vstr s15, [r7, #28]
  25524. break;
  25525. 800b1f6: bf00 nop
  25526. }
  25527. pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + 1U) ;
  25528. 800b1f8: 4b11 ldr r3, [pc, #68] @ (800b240 <HAL_RCC_GetSysClockFreq+0x2d4>)
  25529. 800b1fa: 6b1b ldr r3, [r3, #48] @ 0x30
  25530. 800b1fc: 0a5b lsrs r3, r3, #9
  25531. 800b1fe: f003 037f and.w r3, r3, #127 @ 0x7f
  25532. 800b202: 3301 adds r3, #1
  25533. 800b204: 603b str r3, [r7, #0]
  25534. sysclockfreq = (uint32_t)(float_t)(pllvco / (float_t)pllp);
  25535. 800b206: 683b ldr r3, [r7, #0]
  25536. 800b208: ee07 3a90 vmov s15, r3
  25537. 800b20c: eeb8 7a67 vcvt.f32.u32 s14, s15
  25538. 800b210: edd7 6a07 vldr s13, [r7, #28]
  25539. 800b214: eec6 7a87 vdiv.f32 s15, s13, s14
  25540. 800b218: eefc 7ae7 vcvt.u32.f32 s15, s15
  25541. 800b21c: ee17 3a90 vmov r3, s15
  25542. 800b220: 61bb str r3, [r7, #24]
  25543. }
  25544. else
  25545. {
  25546. sysclockfreq = 0U;
  25547. }
  25548. break;
  25549. 800b222: e005 b.n 800b230 <HAL_RCC_GetSysClockFreq+0x2c4>
  25550. sysclockfreq = 0U;
  25551. 800b224: 2300 movs r3, #0
  25552. 800b226: 61bb str r3, [r7, #24]
  25553. break;
  25554. 800b228: e002 b.n 800b230 <HAL_RCC_GetSysClockFreq+0x2c4>
  25555. default:
  25556. sysclockfreq = CSI_VALUE;
  25557. 800b22a: 4b07 ldr r3, [pc, #28] @ (800b248 <HAL_RCC_GetSysClockFreq+0x2dc>)
  25558. 800b22c: 61bb str r3, [r7, #24]
  25559. break;
  25560. 800b22e: bf00 nop
  25561. }
  25562. return sysclockfreq;
  25563. 800b230: 69bb ldr r3, [r7, #24]
  25564. }
  25565. 800b232: 4618 mov r0, r3
  25566. 800b234: 3724 adds r7, #36 @ 0x24
  25567. 800b236: 46bd mov sp, r7
  25568. 800b238: f85d 7b04 ldr.w r7, [sp], #4
  25569. 800b23c: 4770 bx lr
  25570. 800b23e: bf00 nop
  25571. 800b240: 58024400 .word 0x58024400
  25572. 800b244: 03d09000 .word 0x03d09000
  25573. 800b248: 003d0900 .word 0x003d0900
  25574. 800b24c: 017d7840 .word 0x017d7840
  25575. 800b250: 46000000 .word 0x46000000
  25576. 800b254: 4c742400 .word 0x4c742400
  25577. 800b258: 4a742400 .word 0x4a742400
  25578. 800b25c: 4bbebc20 .word 0x4bbebc20
  25579. 0800b260 <HAL_RCC_GetHCLKFreq>:
  25580. * @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency
  25581. * and updated within this function
  25582. * @retval HCLK frequency
  25583. */
  25584. uint32_t HAL_RCC_GetHCLKFreq(void)
  25585. {
  25586. 800b260: b580 push {r7, lr}
  25587. 800b262: b082 sub sp, #8
  25588. 800b264: af00 add r7, sp, #0
  25589. uint32_t common_system_clock;
  25590. #if defined(RCC_D1CFGR_D1CPRE)
  25591. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU);
  25592. 800b266: f7ff fe81 bl 800af6c <HAL_RCC_GetSysClockFreq>
  25593. 800b26a: 4602 mov r2, r0
  25594. 800b26c: 4b10 ldr r3, [pc, #64] @ (800b2b0 <HAL_RCC_GetHCLKFreq+0x50>)
  25595. 800b26e: 699b ldr r3, [r3, #24]
  25596. 800b270: 0a1b lsrs r3, r3, #8
  25597. 800b272: f003 030f and.w r3, r3, #15
  25598. 800b276: 490f ldr r1, [pc, #60] @ (800b2b4 <HAL_RCC_GetHCLKFreq+0x54>)
  25599. 800b278: 5ccb ldrb r3, [r1, r3]
  25600. 800b27a: f003 031f and.w r3, r3, #31
  25601. 800b27e: fa22 f303 lsr.w r3, r2, r3
  25602. 800b282: 607b str r3, [r7, #4]
  25603. #else
  25604. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU);
  25605. #endif
  25606. #if defined(RCC_D1CFGR_HPRE)
  25607. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  25608. 800b284: 4b0a ldr r3, [pc, #40] @ (800b2b0 <HAL_RCC_GetHCLKFreq+0x50>)
  25609. 800b286: 699b ldr r3, [r3, #24]
  25610. 800b288: f003 030f and.w r3, r3, #15
  25611. 800b28c: 4a09 ldr r2, [pc, #36] @ (800b2b4 <HAL_RCC_GetHCLKFreq+0x54>)
  25612. 800b28e: 5cd3 ldrb r3, [r2, r3]
  25613. 800b290: f003 031f and.w r3, r3, #31
  25614. 800b294: 687a ldr r2, [r7, #4]
  25615. 800b296: fa22 f303 lsr.w r3, r2, r3
  25616. 800b29a: 4a07 ldr r2, [pc, #28] @ (800b2b8 <HAL_RCC_GetHCLKFreq+0x58>)
  25617. 800b29c: 6013 str r3, [r2, #0]
  25618. #endif
  25619. #if defined(DUAL_CORE) && defined(CORE_CM4)
  25620. SystemCoreClock = SystemD2Clock;
  25621. #else
  25622. SystemCoreClock = common_system_clock;
  25623. 800b29e: 4a07 ldr r2, [pc, #28] @ (800b2bc <HAL_RCC_GetHCLKFreq+0x5c>)
  25624. 800b2a0: 687b ldr r3, [r7, #4]
  25625. 800b2a2: 6013 str r3, [r2, #0]
  25626. #endif /* DUAL_CORE && CORE_CM4 */
  25627. return SystemD2Clock;
  25628. 800b2a4: 4b04 ldr r3, [pc, #16] @ (800b2b8 <HAL_RCC_GetHCLKFreq+0x58>)
  25629. 800b2a6: 681b ldr r3, [r3, #0]
  25630. }
  25631. 800b2a8: 4618 mov r0, r3
  25632. 800b2aa: 3708 adds r7, #8
  25633. 800b2ac: 46bd mov sp, r7
  25634. 800b2ae: bd80 pop {r7, pc}
  25635. 800b2b0: 58024400 .word 0x58024400
  25636. 800b2b4: 0803196c .word 0x0803196c
  25637. 800b2b8: 24000010 .word 0x24000010
  25638. 800b2bc: 2400000c .word 0x2400000c
  25639. 0800b2c0 <HAL_RCC_GetPCLK1Freq>:
  25640. * @note Each time PCLK1 changes, this function must be called to update the
  25641. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  25642. * @retval PCLK1 frequency
  25643. */
  25644. uint32_t HAL_RCC_GetPCLK1Freq(void)
  25645. {
  25646. 800b2c0: b580 push {r7, lr}
  25647. 800b2c2: af00 add r7, sp, #0
  25648. #if defined (RCC_D2CFGR_D2PPRE1)
  25649. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  25650. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU));
  25651. 800b2c4: f7ff ffcc bl 800b260 <HAL_RCC_GetHCLKFreq>
  25652. 800b2c8: 4602 mov r2, r0
  25653. 800b2ca: 4b06 ldr r3, [pc, #24] @ (800b2e4 <HAL_RCC_GetPCLK1Freq+0x24>)
  25654. 800b2cc: 69db ldr r3, [r3, #28]
  25655. 800b2ce: 091b lsrs r3, r3, #4
  25656. 800b2d0: f003 0307 and.w r3, r3, #7
  25657. 800b2d4: 4904 ldr r1, [pc, #16] @ (800b2e8 <HAL_RCC_GetPCLK1Freq+0x28>)
  25658. 800b2d6: 5ccb ldrb r3, [r1, r3]
  25659. 800b2d8: f003 031f and.w r3, r3, #31
  25660. 800b2dc: fa22 f303 lsr.w r3, r2, r3
  25661. #else
  25662. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  25663. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU));
  25664. #endif
  25665. }
  25666. 800b2e0: 4618 mov r0, r3
  25667. 800b2e2: bd80 pop {r7, pc}
  25668. 800b2e4: 58024400 .word 0x58024400
  25669. 800b2e8: 0803196c .word 0x0803196c
  25670. 0800b2ec <HAL_RCC_GetPCLK2Freq>:
  25671. * @note Each time PCLK2 changes, this function must be called to update the
  25672. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  25673. * @retval PCLK1 frequency
  25674. */
  25675. uint32_t HAL_RCC_GetPCLK2Freq(void)
  25676. {
  25677. 800b2ec: b580 push {r7, lr}
  25678. 800b2ee: af00 add r7, sp, #0
  25679. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  25680. #if defined(RCC_D2CFGR_D2PPRE2)
  25681. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU));
  25682. 800b2f0: f7ff ffb6 bl 800b260 <HAL_RCC_GetHCLKFreq>
  25683. 800b2f4: 4602 mov r2, r0
  25684. 800b2f6: 4b06 ldr r3, [pc, #24] @ (800b310 <HAL_RCC_GetPCLK2Freq+0x24>)
  25685. 800b2f8: 69db ldr r3, [r3, #28]
  25686. 800b2fa: 0a1b lsrs r3, r3, #8
  25687. 800b2fc: f003 0307 and.w r3, r3, #7
  25688. 800b300: 4904 ldr r1, [pc, #16] @ (800b314 <HAL_RCC_GetPCLK2Freq+0x28>)
  25689. 800b302: 5ccb ldrb r3, [r1, r3]
  25690. 800b304: f003 031f and.w r3, r3, #31
  25691. 800b308: fa22 f303 lsr.w r3, r2, r3
  25692. #else
  25693. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU));
  25694. #endif
  25695. }
  25696. 800b30c: 4618 mov r0, r3
  25697. 800b30e: bd80 pop {r7, pc}
  25698. 800b310: 58024400 .word 0x58024400
  25699. 800b314: 0803196c .word 0x0803196c
  25700. 0800b318 <HAL_RCC_GetClockConfig>:
  25701. * will be configured.
  25702. * @param pFLatency: Pointer on the Flash Latency.
  25703. * @retval None
  25704. */
  25705. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  25706. {
  25707. 800b318: b480 push {r7}
  25708. 800b31a: b083 sub sp, #12
  25709. 800b31c: af00 add r7, sp, #0
  25710. 800b31e: 6078 str r0, [r7, #4]
  25711. 800b320: 6039 str r1, [r7, #0]
  25712. /* Set all possible values for the Clock type parameter --------------------*/
  25713. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_D1PCLK1 | RCC_CLOCKTYPE_PCLK1 |
  25714. 800b322: 687b ldr r3, [r7, #4]
  25715. 800b324: 223f movs r2, #63 @ 0x3f
  25716. 800b326: 601a str r2, [r3, #0]
  25717. RCC_CLOCKTYPE_PCLK2 | RCC_CLOCKTYPE_D3PCLK1 ;
  25718. /* Get the SYSCLK configuration --------------------------------------------*/
  25719. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  25720. 800b328: 4b1a ldr r3, [pc, #104] @ (800b394 <HAL_RCC_GetClockConfig+0x7c>)
  25721. 800b32a: 691b ldr r3, [r3, #16]
  25722. 800b32c: f003 0207 and.w r2, r3, #7
  25723. 800b330: 687b ldr r3, [r7, #4]
  25724. 800b332: 605a str r2, [r3, #4]
  25725. #if defined(RCC_D1CFGR_D1CPRE)
  25726. /* Get the SYSCLK configuration ----------------------------------------------*/
  25727. RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1CPRE);
  25728. 800b334: 4b17 ldr r3, [pc, #92] @ (800b394 <HAL_RCC_GetClockConfig+0x7c>)
  25729. 800b336: 699b ldr r3, [r3, #24]
  25730. 800b338: f403 6270 and.w r2, r3, #3840 @ 0xf00
  25731. 800b33c: 687b ldr r3, [r7, #4]
  25732. 800b33e: 609a str r2, [r3, #8]
  25733. /* Get the D1HCLK configuration ----------------------------------------------*/
  25734. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_HPRE);
  25735. 800b340: 4b14 ldr r3, [pc, #80] @ (800b394 <HAL_RCC_GetClockConfig+0x7c>)
  25736. 800b342: 699b ldr r3, [r3, #24]
  25737. 800b344: f003 020f and.w r2, r3, #15
  25738. 800b348: 687b ldr r3, [r7, #4]
  25739. 800b34a: 60da str r2, [r3, #12]
  25740. /* Get the APB3 configuration ----------------------------------------------*/
  25741. RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1PPRE);
  25742. 800b34c: 4b11 ldr r3, [pc, #68] @ (800b394 <HAL_RCC_GetClockConfig+0x7c>)
  25743. 800b34e: 699b ldr r3, [r3, #24]
  25744. 800b350: f003 0270 and.w r2, r3, #112 @ 0x70
  25745. 800b354: 687b ldr r3, [r7, #4]
  25746. 800b356: 611a str r2, [r3, #16]
  25747. /* Get the APB1 configuration ----------------------------------------------*/
  25748. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1);
  25749. 800b358: 4b0e ldr r3, [pc, #56] @ (800b394 <HAL_RCC_GetClockConfig+0x7c>)
  25750. 800b35a: 69db ldr r3, [r3, #28]
  25751. 800b35c: f003 0270 and.w r2, r3, #112 @ 0x70
  25752. 800b360: 687b ldr r3, [r7, #4]
  25753. 800b362: 615a str r2, [r3, #20]
  25754. /* Get the APB2 configuration ----------------------------------------------*/
  25755. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2);
  25756. 800b364: 4b0b ldr r3, [pc, #44] @ (800b394 <HAL_RCC_GetClockConfig+0x7c>)
  25757. 800b366: 69db ldr r3, [r3, #28]
  25758. 800b368: f403 62e0 and.w r2, r3, #1792 @ 0x700
  25759. 800b36c: 687b ldr r3, [r7, #4]
  25760. 800b36e: 619a str r2, [r3, #24]
  25761. /* Get the APB4 configuration ----------------------------------------------*/
  25762. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->D3CFGR & RCC_D3CFGR_D3PPRE);
  25763. 800b370: 4b08 ldr r3, [pc, #32] @ (800b394 <HAL_RCC_GetClockConfig+0x7c>)
  25764. 800b372: 6a1b ldr r3, [r3, #32]
  25765. 800b374: f003 0270 and.w r2, r3, #112 @ 0x70
  25766. 800b378: 687b ldr r3, [r7, #4]
  25767. 800b37a: 61da str r2, [r3, #28]
  25768. /* Get the APB4 configuration ----------------------------------------------*/
  25769. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE);
  25770. #endif
  25771. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  25772. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  25773. 800b37c: 4b06 ldr r3, [pc, #24] @ (800b398 <HAL_RCC_GetClockConfig+0x80>)
  25774. 800b37e: 681b ldr r3, [r3, #0]
  25775. 800b380: f003 020f and.w r2, r3, #15
  25776. 800b384: 683b ldr r3, [r7, #0]
  25777. 800b386: 601a str r2, [r3, #0]
  25778. }
  25779. 800b388: bf00 nop
  25780. 800b38a: 370c adds r7, #12
  25781. 800b38c: 46bd mov sp, r7
  25782. 800b38e: f85d 7b04 ldr.w r7, [sp], #4
  25783. 800b392: 4770 bx lr
  25784. 800b394: 58024400 .word 0x58024400
  25785. 800b398: 52002000 .word 0x52002000
  25786. 0800b39c <HAL_RCCEx_PeriphCLKConfig>:
  25787. * (*) : Available on some STM32H7 lines only.
  25788. *
  25789. * @retval HAL status
  25790. */
  25791. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  25792. {
  25793. 800b39c: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  25794. 800b3a0: b0c8 sub sp, #288 @ 0x120
  25795. 800b3a2: af00 add r7, sp, #0
  25796. 800b3a4: f8c7 010c str.w r0, [r7, #268] @ 0x10c
  25797. uint32_t tmpreg;
  25798. uint32_t tickstart;
  25799. HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */
  25800. 800b3a8: 2300 movs r3, #0
  25801. 800b3aa: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25802. HAL_StatusTypeDef status = HAL_OK; /* Final status */
  25803. 800b3ae: 2300 movs r3, #0
  25804. 800b3b0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25805. /*---------------------------- SPDIFRX configuration -------------------------------*/
  25806. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX)
  25807. 800b3b4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25808. 800b3b8: e9d3 2300 ldrd r2, r3, [r3]
  25809. 800b3bc: f002 6400 and.w r4, r2, #134217728 @ 0x8000000
  25810. 800b3c0: 2500 movs r5, #0
  25811. 800b3c2: ea54 0305 orrs.w r3, r4, r5
  25812. 800b3c6: d049 beq.n 800b45c <HAL_RCCEx_PeriphCLKConfig+0xc0>
  25813. {
  25814. switch (PeriphClkInit->SpdifrxClockSelection)
  25815. 800b3c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25816. 800b3cc: 6e9b ldr r3, [r3, #104] @ 0x68
  25817. 800b3ce: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  25818. 800b3d2: d02f beq.n 800b434 <HAL_RCCEx_PeriphCLKConfig+0x98>
  25819. 800b3d4: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  25820. 800b3d8: d828 bhi.n 800b42c <HAL_RCCEx_PeriphCLKConfig+0x90>
  25821. 800b3da: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  25822. 800b3de: d01a beq.n 800b416 <HAL_RCCEx_PeriphCLKConfig+0x7a>
  25823. 800b3e0: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  25824. 800b3e4: d822 bhi.n 800b42c <HAL_RCCEx_PeriphCLKConfig+0x90>
  25825. 800b3e6: 2b00 cmp r3, #0
  25826. 800b3e8: d003 beq.n 800b3f2 <HAL_RCCEx_PeriphCLKConfig+0x56>
  25827. 800b3ea: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  25828. 800b3ee: d007 beq.n 800b400 <HAL_RCCEx_PeriphCLKConfig+0x64>
  25829. 800b3f0: e01c b.n 800b42c <HAL_RCCEx_PeriphCLKConfig+0x90>
  25830. {
  25831. case RCC_SPDIFRXCLKSOURCE_PLL: /* PLL is used as clock source for SPDIFRX*/
  25832. /* Enable PLL1Q Clock output generated form System PLL . */
  25833. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25834. 800b3f2: 4bb8 ldr r3, [pc, #736] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25835. 800b3f4: 6adb ldr r3, [r3, #44] @ 0x2c
  25836. 800b3f6: 4ab7 ldr r2, [pc, #732] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25837. 800b3f8: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25838. 800b3fc: 62d3 str r3, [r2, #44] @ 0x2c
  25839. /* SPDIFRX clock source configuration done later after clock selection check */
  25840. break;
  25841. 800b3fe: e01a b.n 800b436 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  25842. case RCC_SPDIFRXCLKSOURCE_PLL2: /* PLL2 is used as clock source for SPDIFRX*/
  25843. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  25844. 800b400: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25845. 800b404: 3308 adds r3, #8
  25846. 800b406: 2102 movs r1, #2
  25847. 800b408: 4618 mov r0, r3
  25848. 800b40a: f001 fc73 bl 800ccf4 <RCCEx_PLL2_Config>
  25849. 800b40e: 4603 mov r3, r0
  25850. 800b410: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25851. /* SPDIFRX clock source configuration done later after clock selection check */
  25852. break;
  25853. 800b414: e00f b.n 800b436 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  25854. case RCC_SPDIFRXCLKSOURCE_PLL3: /* PLL3 is used as clock source for SPDIFRX*/
  25855. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  25856. 800b416: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25857. 800b41a: 3328 adds r3, #40 @ 0x28
  25858. 800b41c: 2102 movs r1, #2
  25859. 800b41e: 4618 mov r0, r3
  25860. 800b420: f001 fd1a bl 800ce58 <RCCEx_PLL3_Config>
  25861. 800b424: 4603 mov r3, r0
  25862. 800b426: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25863. /* SPDIFRX clock source configuration done later after clock selection check */
  25864. break;
  25865. 800b42a: e004 b.n 800b436 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  25866. /* Internal OSC clock is used as source of SPDIFRX clock*/
  25867. /* SPDIFRX clock source configuration done later after clock selection check */
  25868. break;
  25869. default:
  25870. ret = HAL_ERROR;
  25871. 800b42c: 2301 movs r3, #1
  25872. 800b42e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25873. break;
  25874. 800b432: e000 b.n 800b436 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  25875. break;
  25876. 800b434: bf00 nop
  25877. }
  25878. if (ret == HAL_OK)
  25879. 800b436: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25880. 800b43a: 2b00 cmp r3, #0
  25881. 800b43c: d10a bne.n 800b454 <HAL_RCCEx_PeriphCLKConfig+0xb8>
  25882. {
  25883. /* Set the source of SPDIFRX clock*/
  25884. __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection);
  25885. 800b43e: 4ba5 ldr r3, [pc, #660] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25886. 800b440: 6d1b ldr r3, [r3, #80] @ 0x50
  25887. 800b442: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  25888. 800b446: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25889. 800b44a: 6e9b ldr r3, [r3, #104] @ 0x68
  25890. 800b44c: 4aa1 ldr r2, [pc, #644] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25891. 800b44e: 430b orrs r3, r1
  25892. 800b450: 6513 str r3, [r2, #80] @ 0x50
  25893. 800b452: e003 b.n 800b45c <HAL_RCCEx_PeriphCLKConfig+0xc0>
  25894. }
  25895. else
  25896. {
  25897. /* set overall return value */
  25898. status = ret;
  25899. 800b454: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25900. 800b458: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25901. }
  25902. }
  25903. /*---------------------------- SAI1 configuration -------------------------------*/
  25904. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)
  25905. 800b45c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25906. 800b460: e9d3 2300 ldrd r2, r3, [r3]
  25907. 800b464: f402 7880 and.w r8, r2, #256 @ 0x100
  25908. 800b468: f04f 0900 mov.w r9, #0
  25909. 800b46c: ea58 0309 orrs.w r3, r8, r9
  25910. 800b470: d047 beq.n 800b502 <HAL_RCCEx_PeriphCLKConfig+0x166>
  25911. {
  25912. switch (PeriphClkInit->Sai1ClockSelection)
  25913. 800b472: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25914. 800b476: 6d9b ldr r3, [r3, #88] @ 0x58
  25915. 800b478: 2b04 cmp r3, #4
  25916. 800b47a: d82a bhi.n 800b4d2 <HAL_RCCEx_PeriphCLKConfig+0x136>
  25917. 800b47c: a201 add r2, pc, #4 @ (adr r2, 800b484 <HAL_RCCEx_PeriphCLKConfig+0xe8>)
  25918. 800b47e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  25919. 800b482: bf00 nop
  25920. 800b484: 0800b499 .word 0x0800b499
  25921. 800b488: 0800b4a7 .word 0x0800b4a7
  25922. 800b48c: 0800b4bd .word 0x0800b4bd
  25923. 800b490: 0800b4db .word 0x0800b4db
  25924. 800b494: 0800b4db .word 0x0800b4db
  25925. {
  25926. case RCC_SAI1CLKSOURCE_PLL: /* PLL is used as clock source for SAI1*/
  25927. /* Enable SAI Clock output generated form System PLL . */
  25928. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25929. 800b498: 4b8e ldr r3, [pc, #568] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25930. 800b49a: 6adb ldr r3, [r3, #44] @ 0x2c
  25931. 800b49c: 4a8d ldr r2, [pc, #564] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25932. 800b49e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25933. 800b4a2: 62d3 str r3, [r2, #44] @ 0x2c
  25934. /* SAI1 clock source configuration done later after clock selection check */
  25935. break;
  25936. 800b4a4: e01a b.n 800b4dc <HAL_RCCEx_PeriphCLKConfig+0x140>
  25937. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI1*/
  25938. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  25939. 800b4a6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25940. 800b4aa: 3308 adds r3, #8
  25941. 800b4ac: 2100 movs r1, #0
  25942. 800b4ae: 4618 mov r0, r3
  25943. 800b4b0: f001 fc20 bl 800ccf4 <RCCEx_PLL2_Config>
  25944. 800b4b4: 4603 mov r3, r0
  25945. 800b4b6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25946. /* SAI1 clock source configuration done later after clock selection check */
  25947. break;
  25948. 800b4ba: e00f b.n 800b4dc <HAL_RCCEx_PeriphCLKConfig+0x140>
  25949. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI1*/
  25950. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  25951. 800b4bc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25952. 800b4c0: 3328 adds r3, #40 @ 0x28
  25953. 800b4c2: 2100 movs r1, #0
  25954. 800b4c4: 4618 mov r0, r3
  25955. 800b4c6: f001 fcc7 bl 800ce58 <RCCEx_PLL3_Config>
  25956. 800b4ca: 4603 mov r3, r0
  25957. 800b4cc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25958. /* SAI1 clock source configuration done later after clock selection check */
  25959. break;
  25960. 800b4d0: e004 b.n 800b4dc <HAL_RCCEx_PeriphCLKConfig+0x140>
  25961. /* HSI, HSE, or CSI oscillator is used as source of SAI1 clock */
  25962. /* SAI1 clock source configuration done later after clock selection check */
  25963. break;
  25964. default:
  25965. ret = HAL_ERROR;
  25966. 800b4d2: 2301 movs r3, #1
  25967. 800b4d4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25968. break;
  25969. 800b4d8: e000 b.n 800b4dc <HAL_RCCEx_PeriphCLKConfig+0x140>
  25970. break;
  25971. 800b4da: bf00 nop
  25972. }
  25973. if (ret == HAL_OK)
  25974. 800b4dc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25975. 800b4e0: 2b00 cmp r3, #0
  25976. 800b4e2: d10a bne.n 800b4fa <HAL_RCCEx_PeriphCLKConfig+0x15e>
  25977. {
  25978. /* Set the source of SAI1 clock*/
  25979. __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection);
  25980. 800b4e4: 4b7b ldr r3, [pc, #492] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25981. 800b4e6: 6d1b ldr r3, [r3, #80] @ 0x50
  25982. 800b4e8: f023 0107 bic.w r1, r3, #7
  25983. 800b4ec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25984. 800b4f0: 6d9b ldr r3, [r3, #88] @ 0x58
  25985. 800b4f2: 4a78 ldr r2, [pc, #480] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25986. 800b4f4: 430b orrs r3, r1
  25987. 800b4f6: 6513 str r3, [r2, #80] @ 0x50
  25988. 800b4f8: e003 b.n 800b502 <HAL_RCCEx_PeriphCLKConfig+0x166>
  25989. }
  25990. else
  25991. {
  25992. /* set overall return value */
  25993. status = ret;
  25994. 800b4fa: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25995. 800b4fe: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25996. }
  25997. }
  25998. #if defined(SAI3)
  25999. /*---------------------------- SAI2/3 configuration -------------------------------*/
  26000. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI23) == RCC_PERIPHCLK_SAI23)
  26001. 800b502: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26002. 800b506: e9d3 2300 ldrd r2, r3, [r3]
  26003. 800b50a: f402 7a00 and.w sl, r2, #512 @ 0x200
  26004. 800b50e: f04f 0b00 mov.w fp, #0
  26005. 800b512: ea5a 030b orrs.w r3, sl, fp
  26006. 800b516: d04c beq.n 800b5b2 <HAL_RCCEx_PeriphCLKConfig+0x216>
  26007. {
  26008. switch (PeriphClkInit->Sai23ClockSelection)
  26009. 800b518: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26010. 800b51c: 6ddb ldr r3, [r3, #92] @ 0x5c
  26011. 800b51e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  26012. 800b522: d030 beq.n 800b586 <HAL_RCCEx_PeriphCLKConfig+0x1ea>
  26013. 800b524: f5b3 7f80 cmp.w r3, #256 @ 0x100
  26014. 800b528: d829 bhi.n 800b57e <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  26015. 800b52a: 2bc0 cmp r3, #192 @ 0xc0
  26016. 800b52c: d02d beq.n 800b58a <HAL_RCCEx_PeriphCLKConfig+0x1ee>
  26017. 800b52e: 2bc0 cmp r3, #192 @ 0xc0
  26018. 800b530: d825 bhi.n 800b57e <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  26019. 800b532: 2b80 cmp r3, #128 @ 0x80
  26020. 800b534: d018 beq.n 800b568 <HAL_RCCEx_PeriphCLKConfig+0x1cc>
  26021. 800b536: 2b80 cmp r3, #128 @ 0x80
  26022. 800b538: d821 bhi.n 800b57e <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  26023. 800b53a: 2b00 cmp r3, #0
  26024. 800b53c: d002 beq.n 800b544 <HAL_RCCEx_PeriphCLKConfig+0x1a8>
  26025. 800b53e: 2b40 cmp r3, #64 @ 0x40
  26026. 800b540: d007 beq.n 800b552 <HAL_RCCEx_PeriphCLKConfig+0x1b6>
  26027. 800b542: e01c b.n 800b57e <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  26028. {
  26029. case RCC_SAI23CLKSOURCE_PLL: /* PLL is used as clock source for SAI2/3 */
  26030. /* Enable SAI Clock output generated form System PLL . */
  26031. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26032. 800b544: 4b63 ldr r3, [pc, #396] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  26033. 800b546: 6adb ldr r3, [r3, #44] @ 0x2c
  26034. 800b548: 4a62 ldr r2, [pc, #392] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  26035. 800b54a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26036. 800b54e: 62d3 str r3, [r2, #44] @ 0x2c
  26037. /* SAI2/3 clock source configuration done later after clock selection check */
  26038. break;
  26039. 800b550: e01c b.n 800b58c <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  26040. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2/3 */
  26041. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  26042. 800b552: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26043. 800b556: 3308 adds r3, #8
  26044. 800b558: 2100 movs r1, #0
  26045. 800b55a: 4618 mov r0, r3
  26046. 800b55c: f001 fbca bl 800ccf4 <RCCEx_PLL2_Config>
  26047. 800b560: 4603 mov r3, r0
  26048. 800b562: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26049. /* SAI2/3 clock source configuration done later after clock selection check */
  26050. break;
  26051. 800b566: e011 b.n 800b58c <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  26052. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2/3 */
  26053. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  26054. 800b568: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26055. 800b56c: 3328 adds r3, #40 @ 0x28
  26056. 800b56e: 2100 movs r1, #0
  26057. 800b570: 4618 mov r0, r3
  26058. 800b572: f001 fc71 bl 800ce58 <RCCEx_PLL3_Config>
  26059. 800b576: 4603 mov r3, r0
  26060. 800b578: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26061. /* SAI2/3 clock source configuration done later after clock selection check */
  26062. break;
  26063. 800b57c: e006 b.n 800b58c <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  26064. /* HSI, HSE, or CSI oscillator is used as source of SAI2/3 clock */
  26065. /* SAI2/3 clock source configuration done later after clock selection check */
  26066. break;
  26067. default:
  26068. ret = HAL_ERROR;
  26069. 800b57e: 2301 movs r3, #1
  26070. 800b580: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26071. break;
  26072. 800b584: e002 b.n 800b58c <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  26073. break;
  26074. 800b586: bf00 nop
  26075. 800b588: e000 b.n 800b58c <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  26076. break;
  26077. 800b58a: bf00 nop
  26078. }
  26079. if (ret == HAL_OK)
  26080. 800b58c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26081. 800b590: 2b00 cmp r3, #0
  26082. 800b592: d10a bne.n 800b5aa <HAL_RCCEx_PeriphCLKConfig+0x20e>
  26083. {
  26084. /* Set the source of SAI2/3 clock*/
  26085. __HAL_RCC_SAI23_CONFIG(PeriphClkInit->Sai23ClockSelection);
  26086. 800b594: 4b4f ldr r3, [pc, #316] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  26087. 800b596: 6d1b ldr r3, [r3, #80] @ 0x50
  26088. 800b598: f423 71e0 bic.w r1, r3, #448 @ 0x1c0
  26089. 800b59c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26090. 800b5a0: 6ddb ldr r3, [r3, #92] @ 0x5c
  26091. 800b5a2: 4a4c ldr r2, [pc, #304] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  26092. 800b5a4: 430b orrs r3, r1
  26093. 800b5a6: 6513 str r3, [r2, #80] @ 0x50
  26094. 800b5a8: e003 b.n 800b5b2 <HAL_RCCEx_PeriphCLKConfig+0x216>
  26095. }
  26096. else
  26097. {
  26098. /* set overall return value */
  26099. status = ret;
  26100. 800b5aa: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26101. 800b5ae: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26102. }
  26103. #endif /*SAI2B*/
  26104. #if defined(SAI4)
  26105. /*---------------------------- SAI4A configuration -------------------------------*/
  26106. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4A) == RCC_PERIPHCLK_SAI4A)
  26107. 800b5b2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26108. 800b5b6: e9d3 2300 ldrd r2, r3, [r3]
  26109. 800b5ba: f402 6380 and.w r3, r2, #1024 @ 0x400
  26110. 800b5be: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  26111. 800b5c2: 2300 movs r3, #0
  26112. 800b5c4: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  26113. 800b5c8: e9d7 1240 ldrd r1, r2, [r7, #256] @ 0x100
  26114. 800b5cc: 460b mov r3, r1
  26115. 800b5ce: 4313 orrs r3, r2
  26116. 800b5d0: d053 beq.n 800b67a <HAL_RCCEx_PeriphCLKConfig+0x2de>
  26117. {
  26118. switch (PeriphClkInit->Sai4AClockSelection)
  26119. 800b5d2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26120. 800b5d6: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  26121. 800b5da: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  26122. 800b5de: d035 beq.n 800b64c <HAL_RCCEx_PeriphCLKConfig+0x2b0>
  26123. 800b5e0: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  26124. 800b5e4: d82e bhi.n 800b644 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  26125. 800b5e6: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  26126. 800b5ea: d031 beq.n 800b650 <HAL_RCCEx_PeriphCLKConfig+0x2b4>
  26127. 800b5ec: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  26128. 800b5f0: d828 bhi.n 800b644 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  26129. 800b5f2: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  26130. 800b5f6: d01a beq.n 800b62e <HAL_RCCEx_PeriphCLKConfig+0x292>
  26131. 800b5f8: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  26132. 800b5fc: d822 bhi.n 800b644 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  26133. 800b5fe: 2b00 cmp r3, #0
  26134. 800b600: d003 beq.n 800b60a <HAL_RCCEx_PeriphCLKConfig+0x26e>
  26135. 800b602: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  26136. 800b606: d007 beq.n 800b618 <HAL_RCCEx_PeriphCLKConfig+0x27c>
  26137. 800b608: e01c b.n 800b644 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  26138. {
  26139. case RCC_SAI4ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  26140. /* Enable SAI Clock output generated form System PLL . */
  26141. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26142. 800b60a: 4b32 ldr r3, [pc, #200] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  26143. 800b60c: 6adb ldr r3, [r3, #44] @ 0x2c
  26144. 800b60e: 4a31 ldr r2, [pc, #196] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  26145. 800b610: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26146. 800b614: 62d3 str r3, [r2, #44] @ 0x2c
  26147. /* SAI1 clock source configuration done later after clock selection check */
  26148. break;
  26149. 800b616: e01c b.n 800b652 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  26150. case RCC_SAI4ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  26151. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  26152. 800b618: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26153. 800b61c: 3308 adds r3, #8
  26154. 800b61e: 2100 movs r1, #0
  26155. 800b620: 4618 mov r0, r3
  26156. 800b622: f001 fb67 bl 800ccf4 <RCCEx_PLL2_Config>
  26157. 800b626: 4603 mov r3, r0
  26158. 800b628: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26159. /* SAI2 clock source configuration done later after clock selection check */
  26160. break;
  26161. 800b62c: e011 b.n 800b652 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  26162. case RCC_SAI4ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  26163. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  26164. 800b62e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26165. 800b632: 3328 adds r3, #40 @ 0x28
  26166. 800b634: 2100 movs r1, #0
  26167. 800b636: 4618 mov r0, r3
  26168. 800b638: f001 fc0e bl 800ce58 <RCCEx_PLL3_Config>
  26169. 800b63c: 4603 mov r3, r0
  26170. 800b63e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26171. /* SAI1 clock source configuration done later after clock selection check */
  26172. break;
  26173. 800b642: e006 b.n 800b652 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  26174. /* SAI4A clock source configuration done later after clock selection check */
  26175. break;
  26176. #endif /* RCC_VER_3_0 */
  26177. default:
  26178. ret = HAL_ERROR;
  26179. 800b644: 2301 movs r3, #1
  26180. 800b646: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26181. break;
  26182. 800b64a: e002 b.n 800b652 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  26183. break;
  26184. 800b64c: bf00 nop
  26185. 800b64e: e000 b.n 800b652 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  26186. break;
  26187. 800b650: bf00 nop
  26188. }
  26189. if (ret == HAL_OK)
  26190. 800b652: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26191. 800b656: 2b00 cmp r3, #0
  26192. 800b658: d10b bne.n 800b672 <HAL_RCCEx_PeriphCLKConfig+0x2d6>
  26193. {
  26194. /* Set the source of SAI4A clock*/
  26195. __HAL_RCC_SAI4A_CONFIG(PeriphClkInit->Sai4AClockSelection);
  26196. 800b65a: 4b1e ldr r3, [pc, #120] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  26197. 800b65c: 6d9b ldr r3, [r3, #88] @ 0x58
  26198. 800b65e: f423 0160 bic.w r1, r3, #14680064 @ 0xe00000
  26199. 800b662: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26200. 800b666: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  26201. 800b66a: 4a1a ldr r2, [pc, #104] @ (800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  26202. 800b66c: 430b orrs r3, r1
  26203. 800b66e: 6593 str r3, [r2, #88] @ 0x58
  26204. 800b670: e003 b.n 800b67a <HAL_RCCEx_PeriphCLKConfig+0x2de>
  26205. }
  26206. else
  26207. {
  26208. /* set overall return value */
  26209. status = ret;
  26210. 800b672: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26211. 800b676: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26212. }
  26213. }
  26214. /*---------------------------- SAI4B configuration -------------------------------*/
  26215. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4B) == RCC_PERIPHCLK_SAI4B)
  26216. 800b67a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26217. 800b67e: e9d3 2300 ldrd r2, r3, [r3]
  26218. 800b682: f402 6300 and.w r3, r2, #2048 @ 0x800
  26219. 800b686: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  26220. 800b68a: 2300 movs r3, #0
  26221. 800b68c: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  26222. 800b690: e9d7 123e ldrd r1, r2, [r7, #248] @ 0xf8
  26223. 800b694: 460b mov r3, r1
  26224. 800b696: 4313 orrs r3, r2
  26225. 800b698: d056 beq.n 800b748 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  26226. {
  26227. switch (PeriphClkInit->Sai4BClockSelection)
  26228. 800b69a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26229. 800b69e: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  26230. 800b6a2: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  26231. 800b6a6: d038 beq.n 800b71a <HAL_RCCEx_PeriphCLKConfig+0x37e>
  26232. 800b6a8: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  26233. 800b6ac: d831 bhi.n 800b712 <HAL_RCCEx_PeriphCLKConfig+0x376>
  26234. 800b6ae: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  26235. 800b6b2: d034 beq.n 800b71e <HAL_RCCEx_PeriphCLKConfig+0x382>
  26236. 800b6b4: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  26237. 800b6b8: d82b bhi.n 800b712 <HAL_RCCEx_PeriphCLKConfig+0x376>
  26238. 800b6ba: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  26239. 800b6be: d01d beq.n 800b6fc <HAL_RCCEx_PeriphCLKConfig+0x360>
  26240. 800b6c0: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  26241. 800b6c4: d825 bhi.n 800b712 <HAL_RCCEx_PeriphCLKConfig+0x376>
  26242. 800b6c6: 2b00 cmp r3, #0
  26243. 800b6c8: d006 beq.n 800b6d8 <HAL_RCCEx_PeriphCLKConfig+0x33c>
  26244. 800b6ca: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  26245. 800b6ce: d00a beq.n 800b6e6 <HAL_RCCEx_PeriphCLKConfig+0x34a>
  26246. 800b6d0: e01f b.n 800b712 <HAL_RCCEx_PeriphCLKConfig+0x376>
  26247. 800b6d2: bf00 nop
  26248. 800b6d4: 58024400 .word 0x58024400
  26249. {
  26250. case RCC_SAI4BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  26251. /* Enable SAI Clock output generated form System PLL . */
  26252. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26253. 800b6d8: 4ba2 ldr r3, [pc, #648] @ (800b964 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26254. 800b6da: 6adb ldr r3, [r3, #44] @ 0x2c
  26255. 800b6dc: 4aa1 ldr r2, [pc, #644] @ (800b964 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26256. 800b6de: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26257. 800b6e2: 62d3 str r3, [r2, #44] @ 0x2c
  26258. /* SAI1 clock source configuration done later after clock selection check */
  26259. break;
  26260. 800b6e4: e01c b.n 800b720 <HAL_RCCEx_PeriphCLKConfig+0x384>
  26261. case RCC_SAI4BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  26262. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  26263. 800b6e6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26264. 800b6ea: 3308 adds r3, #8
  26265. 800b6ec: 2100 movs r1, #0
  26266. 800b6ee: 4618 mov r0, r3
  26267. 800b6f0: f001 fb00 bl 800ccf4 <RCCEx_PLL2_Config>
  26268. 800b6f4: 4603 mov r3, r0
  26269. 800b6f6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26270. /* SAI2 clock source configuration done later after clock selection check */
  26271. break;
  26272. 800b6fa: e011 b.n 800b720 <HAL_RCCEx_PeriphCLKConfig+0x384>
  26273. case RCC_SAI4BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  26274. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  26275. 800b6fc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26276. 800b700: 3328 adds r3, #40 @ 0x28
  26277. 800b702: 2100 movs r1, #0
  26278. 800b704: 4618 mov r0, r3
  26279. 800b706: f001 fba7 bl 800ce58 <RCCEx_PLL3_Config>
  26280. 800b70a: 4603 mov r3, r0
  26281. 800b70c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26282. /* SAI1 clock source configuration done later after clock selection check */
  26283. break;
  26284. 800b710: e006 b.n 800b720 <HAL_RCCEx_PeriphCLKConfig+0x384>
  26285. /* SAI4B clock source configuration done later after clock selection check */
  26286. break;
  26287. #endif /* RCC_VER_3_0 */
  26288. default:
  26289. ret = HAL_ERROR;
  26290. 800b712: 2301 movs r3, #1
  26291. 800b714: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26292. break;
  26293. 800b718: e002 b.n 800b720 <HAL_RCCEx_PeriphCLKConfig+0x384>
  26294. break;
  26295. 800b71a: bf00 nop
  26296. 800b71c: e000 b.n 800b720 <HAL_RCCEx_PeriphCLKConfig+0x384>
  26297. break;
  26298. 800b71e: bf00 nop
  26299. }
  26300. if (ret == HAL_OK)
  26301. 800b720: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26302. 800b724: 2b00 cmp r3, #0
  26303. 800b726: d10b bne.n 800b740 <HAL_RCCEx_PeriphCLKConfig+0x3a4>
  26304. {
  26305. /* Set the source of SAI4B clock*/
  26306. __HAL_RCC_SAI4B_CONFIG(PeriphClkInit->Sai4BClockSelection);
  26307. 800b728: 4b8e ldr r3, [pc, #568] @ (800b964 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26308. 800b72a: 6d9b ldr r3, [r3, #88] @ 0x58
  26309. 800b72c: f023 61e0 bic.w r1, r3, #117440512 @ 0x7000000
  26310. 800b730: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26311. 800b734: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  26312. 800b738: 4a8a ldr r2, [pc, #552] @ (800b964 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26313. 800b73a: 430b orrs r3, r1
  26314. 800b73c: 6593 str r3, [r2, #88] @ 0x58
  26315. 800b73e: e003 b.n 800b748 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  26316. }
  26317. else
  26318. {
  26319. /* set overall return value */
  26320. status = ret;
  26321. 800b740: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26322. 800b744: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26323. }
  26324. #endif /*SAI4*/
  26325. #if defined(QUADSPI)
  26326. /*---------------------------- QSPI configuration -------------------------------*/
  26327. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_QSPI) == RCC_PERIPHCLK_QSPI)
  26328. 800b748: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26329. 800b74c: e9d3 2300 ldrd r2, r3, [r3]
  26330. 800b750: f002 7300 and.w r3, r2, #33554432 @ 0x2000000
  26331. 800b754: f8c7 30f0 str.w r3, [r7, #240] @ 0xf0
  26332. 800b758: 2300 movs r3, #0
  26333. 800b75a: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  26334. 800b75e: e9d7 123c ldrd r1, r2, [r7, #240] @ 0xf0
  26335. 800b762: 460b mov r3, r1
  26336. 800b764: 4313 orrs r3, r2
  26337. 800b766: d03a beq.n 800b7de <HAL_RCCEx_PeriphCLKConfig+0x442>
  26338. {
  26339. switch (PeriphClkInit->QspiClockSelection)
  26340. 800b768: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26341. 800b76c: 6cdb ldr r3, [r3, #76] @ 0x4c
  26342. 800b76e: 2b30 cmp r3, #48 @ 0x30
  26343. 800b770: d01f beq.n 800b7b2 <HAL_RCCEx_PeriphCLKConfig+0x416>
  26344. 800b772: 2b30 cmp r3, #48 @ 0x30
  26345. 800b774: d819 bhi.n 800b7aa <HAL_RCCEx_PeriphCLKConfig+0x40e>
  26346. 800b776: 2b20 cmp r3, #32
  26347. 800b778: d00c beq.n 800b794 <HAL_RCCEx_PeriphCLKConfig+0x3f8>
  26348. 800b77a: 2b20 cmp r3, #32
  26349. 800b77c: d815 bhi.n 800b7aa <HAL_RCCEx_PeriphCLKConfig+0x40e>
  26350. 800b77e: 2b00 cmp r3, #0
  26351. 800b780: d019 beq.n 800b7b6 <HAL_RCCEx_PeriphCLKConfig+0x41a>
  26352. 800b782: 2b10 cmp r3, #16
  26353. 800b784: d111 bne.n 800b7aa <HAL_RCCEx_PeriphCLKConfig+0x40e>
  26354. {
  26355. case RCC_QSPICLKSOURCE_PLL: /* PLL is used as clock source for QSPI*/
  26356. /* Enable QSPI Clock output generated form System PLL . */
  26357. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26358. 800b786: 4b77 ldr r3, [pc, #476] @ (800b964 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26359. 800b788: 6adb ldr r3, [r3, #44] @ 0x2c
  26360. 800b78a: 4a76 ldr r2, [pc, #472] @ (800b964 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26361. 800b78c: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26362. 800b790: 62d3 str r3, [r2, #44] @ 0x2c
  26363. /* QSPI clock source configuration done later after clock selection check */
  26364. break;
  26365. 800b792: e011 b.n 800b7b8 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  26366. case RCC_QSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for QSPI*/
  26367. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  26368. 800b794: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26369. 800b798: 3308 adds r3, #8
  26370. 800b79a: 2102 movs r1, #2
  26371. 800b79c: 4618 mov r0, r3
  26372. 800b79e: f001 faa9 bl 800ccf4 <RCCEx_PLL2_Config>
  26373. 800b7a2: 4603 mov r3, r0
  26374. 800b7a4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26375. /* QSPI clock source configuration done later after clock selection check */
  26376. break;
  26377. 800b7a8: e006 b.n 800b7b8 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  26378. case RCC_QSPICLKSOURCE_D1HCLK:
  26379. /* Domain1 HCLK clock selected as QSPI kernel peripheral clock */
  26380. break;
  26381. default:
  26382. ret = HAL_ERROR;
  26383. 800b7aa: 2301 movs r3, #1
  26384. 800b7ac: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26385. break;
  26386. 800b7b0: e002 b.n 800b7b8 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  26387. break;
  26388. 800b7b2: bf00 nop
  26389. 800b7b4: e000 b.n 800b7b8 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  26390. break;
  26391. 800b7b6: bf00 nop
  26392. }
  26393. if (ret == HAL_OK)
  26394. 800b7b8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26395. 800b7bc: 2b00 cmp r3, #0
  26396. 800b7be: d10a bne.n 800b7d6 <HAL_RCCEx_PeriphCLKConfig+0x43a>
  26397. {
  26398. /* Set the source of QSPI clock*/
  26399. __HAL_RCC_QSPI_CONFIG(PeriphClkInit->QspiClockSelection);
  26400. 800b7c0: 4b68 ldr r3, [pc, #416] @ (800b964 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26401. 800b7c2: 6cdb ldr r3, [r3, #76] @ 0x4c
  26402. 800b7c4: f023 0130 bic.w r1, r3, #48 @ 0x30
  26403. 800b7c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26404. 800b7cc: 6cdb ldr r3, [r3, #76] @ 0x4c
  26405. 800b7ce: 4a65 ldr r2, [pc, #404] @ (800b964 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26406. 800b7d0: 430b orrs r3, r1
  26407. 800b7d2: 64d3 str r3, [r2, #76] @ 0x4c
  26408. 800b7d4: e003 b.n 800b7de <HAL_RCCEx_PeriphCLKConfig+0x442>
  26409. }
  26410. else
  26411. {
  26412. /* set overall return value */
  26413. status = ret;
  26414. 800b7d6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26415. 800b7da: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26416. }
  26417. }
  26418. #endif /*OCTOSPI*/
  26419. /*---------------------------- SPI1/2/3 configuration -------------------------------*/
  26420. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI123) == RCC_PERIPHCLK_SPI123)
  26421. 800b7de: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26422. 800b7e2: e9d3 2300 ldrd r2, r3, [r3]
  26423. 800b7e6: f402 5380 and.w r3, r2, #4096 @ 0x1000
  26424. 800b7ea: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  26425. 800b7ee: 2300 movs r3, #0
  26426. 800b7f0: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  26427. 800b7f4: e9d7 123a ldrd r1, r2, [r7, #232] @ 0xe8
  26428. 800b7f8: 460b mov r3, r1
  26429. 800b7fa: 4313 orrs r3, r2
  26430. 800b7fc: d051 beq.n 800b8a2 <HAL_RCCEx_PeriphCLKConfig+0x506>
  26431. {
  26432. switch (PeriphClkInit->Spi123ClockSelection)
  26433. 800b7fe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26434. 800b802: 6e1b ldr r3, [r3, #96] @ 0x60
  26435. 800b804: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  26436. 800b808: d035 beq.n 800b876 <HAL_RCCEx_PeriphCLKConfig+0x4da>
  26437. 800b80a: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  26438. 800b80e: d82e bhi.n 800b86e <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  26439. 800b810: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  26440. 800b814: d031 beq.n 800b87a <HAL_RCCEx_PeriphCLKConfig+0x4de>
  26441. 800b816: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  26442. 800b81a: d828 bhi.n 800b86e <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  26443. 800b81c: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  26444. 800b820: d01a beq.n 800b858 <HAL_RCCEx_PeriphCLKConfig+0x4bc>
  26445. 800b822: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  26446. 800b826: d822 bhi.n 800b86e <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  26447. 800b828: 2b00 cmp r3, #0
  26448. 800b82a: d003 beq.n 800b834 <HAL_RCCEx_PeriphCLKConfig+0x498>
  26449. 800b82c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  26450. 800b830: d007 beq.n 800b842 <HAL_RCCEx_PeriphCLKConfig+0x4a6>
  26451. 800b832: e01c b.n 800b86e <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  26452. {
  26453. case RCC_SPI123CLKSOURCE_PLL: /* PLL is used as clock source for SPI1/2/3 */
  26454. /* Enable SPI Clock output generated form System PLL . */
  26455. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26456. 800b834: 4b4b ldr r3, [pc, #300] @ (800b964 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26457. 800b836: 6adb ldr r3, [r3, #44] @ 0x2c
  26458. 800b838: 4a4a ldr r2, [pc, #296] @ (800b964 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26459. 800b83a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26460. 800b83e: 62d3 str r3, [r2, #44] @ 0x2c
  26461. /* SPI1/2/3 clock source configuration done later after clock selection check */
  26462. break;
  26463. 800b840: e01c b.n 800b87c <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  26464. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI1/2/3 */
  26465. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  26466. 800b842: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26467. 800b846: 3308 adds r3, #8
  26468. 800b848: 2100 movs r1, #0
  26469. 800b84a: 4618 mov r0, r3
  26470. 800b84c: f001 fa52 bl 800ccf4 <RCCEx_PLL2_Config>
  26471. 800b850: 4603 mov r3, r0
  26472. 800b852: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26473. /* SPI1/2/3 clock source configuration done later after clock selection check */
  26474. break;
  26475. 800b856: e011 b.n 800b87c <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  26476. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI1/2/3 */
  26477. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  26478. 800b858: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26479. 800b85c: 3328 adds r3, #40 @ 0x28
  26480. 800b85e: 2100 movs r1, #0
  26481. 800b860: 4618 mov r0, r3
  26482. 800b862: f001 faf9 bl 800ce58 <RCCEx_PLL3_Config>
  26483. 800b866: 4603 mov r3, r0
  26484. 800b868: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26485. /* SPI1/2/3 clock source configuration done later after clock selection check */
  26486. break;
  26487. 800b86c: e006 b.n 800b87c <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  26488. /* HSI, HSE, or CSI oscillator is used as source of SPI1/2/3 clock */
  26489. /* SPI1/2/3 clock source configuration done later after clock selection check */
  26490. break;
  26491. default:
  26492. ret = HAL_ERROR;
  26493. 800b86e: 2301 movs r3, #1
  26494. 800b870: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26495. break;
  26496. 800b874: e002 b.n 800b87c <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  26497. break;
  26498. 800b876: bf00 nop
  26499. 800b878: e000 b.n 800b87c <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  26500. break;
  26501. 800b87a: bf00 nop
  26502. }
  26503. if (ret == HAL_OK)
  26504. 800b87c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26505. 800b880: 2b00 cmp r3, #0
  26506. 800b882: d10a bne.n 800b89a <HAL_RCCEx_PeriphCLKConfig+0x4fe>
  26507. {
  26508. /* Set the source of SPI1/2/3 clock*/
  26509. __HAL_RCC_SPI123_CONFIG(PeriphClkInit->Spi123ClockSelection);
  26510. 800b884: 4b37 ldr r3, [pc, #220] @ (800b964 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26511. 800b886: 6d1b ldr r3, [r3, #80] @ 0x50
  26512. 800b888: f423 41e0 bic.w r1, r3, #28672 @ 0x7000
  26513. 800b88c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26514. 800b890: 6e1b ldr r3, [r3, #96] @ 0x60
  26515. 800b892: 4a34 ldr r2, [pc, #208] @ (800b964 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26516. 800b894: 430b orrs r3, r1
  26517. 800b896: 6513 str r3, [r2, #80] @ 0x50
  26518. 800b898: e003 b.n 800b8a2 <HAL_RCCEx_PeriphCLKConfig+0x506>
  26519. }
  26520. else
  26521. {
  26522. /* set overall return value */
  26523. status = ret;
  26524. 800b89a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26525. 800b89e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26526. }
  26527. }
  26528. /*---------------------------- SPI4/5 configuration -------------------------------*/
  26529. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI45) == RCC_PERIPHCLK_SPI45)
  26530. 800b8a2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26531. 800b8a6: e9d3 2300 ldrd r2, r3, [r3]
  26532. 800b8aa: f402 5300 and.w r3, r2, #8192 @ 0x2000
  26533. 800b8ae: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  26534. 800b8b2: 2300 movs r3, #0
  26535. 800b8b4: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  26536. 800b8b8: e9d7 1238 ldrd r1, r2, [r7, #224] @ 0xe0
  26537. 800b8bc: 460b mov r3, r1
  26538. 800b8be: 4313 orrs r3, r2
  26539. 800b8c0: d056 beq.n 800b970 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  26540. {
  26541. switch (PeriphClkInit->Spi45ClockSelection)
  26542. 800b8c2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26543. 800b8c6: 6e5b ldr r3, [r3, #100] @ 0x64
  26544. 800b8c8: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  26545. 800b8cc: d033 beq.n 800b936 <HAL_RCCEx_PeriphCLKConfig+0x59a>
  26546. 800b8ce: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  26547. 800b8d2: d82c bhi.n 800b92e <HAL_RCCEx_PeriphCLKConfig+0x592>
  26548. 800b8d4: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  26549. 800b8d8: d02f beq.n 800b93a <HAL_RCCEx_PeriphCLKConfig+0x59e>
  26550. 800b8da: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  26551. 800b8de: d826 bhi.n 800b92e <HAL_RCCEx_PeriphCLKConfig+0x592>
  26552. 800b8e0: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  26553. 800b8e4: d02b beq.n 800b93e <HAL_RCCEx_PeriphCLKConfig+0x5a2>
  26554. 800b8e6: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  26555. 800b8ea: d820 bhi.n 800b92e <HAL_RCCEx_PeriphCLKConfig+0x592>
  26556. 800b8ec: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  26557. 800b8f0: d012 beq.n 800b918 <HAL_RCCEx_PeriphCLKConfig+0x57c>
  26558. 800b8f2: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  26559. 800b8f6: d81a bhi.n 800b92e <HAL_RCCEx_PeriphCLKConfig+0x592>
  26560. 800b8f8: 2b00 cmp r3, #0
  26561. 800b8fa: d022 beq.n 800b942 <HAL_RCCEx_PeriphCLKConfig+0x5a6>
  26562. 800b8fc: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  26563. 800b900: d115 bne.n 800b92e <HAL_RCCEx_PeriphCLKConfig+0x592>
  26564. /* SPI4/5 clock source configuration done later after clock selection check */
  26565. break;
  26566. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI4/5 */
  26567. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  26568. 800b902: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26569. 800b906: 3308 adds r3, #8
  26570. 800b908: 2101 movs r1, #1
  26571. 800b90a: 4618 mov r0, r3
  26572. 800b90c: f001 f9f2 bl 800ccf4 <RCCEx_PLL2_Config>
  26573. 800b910: 4603 mov r3, r0
  26574. 800b912: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26575. /* SPI4/5 clock source configuration done later after clock selection check */
  26576. break;
  26577. 800b916: e015 b.n 800b944 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  26578. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI4/5 */
  26579. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  26580. 800b918: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26581. 800b91c: 3328 adds r3, #40 @ 0x28
  26582. 800b91e: 2101 movs r1, #1
  26583. 800b920: 4618 mov r0, r3
  26584. 800b922: f001 fa99 bl 800ce58 <RCCEx_PLL3_Config>
  26585. 800b926: 4603 mov r3, r0
  26586. 800b928: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26587. /* SPI4/5 clock source configuration done later after clock selection check */
  26588. break;
  26589. 800b92c: e00a b.n 800b944 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  26590. /* HSE, oscillator is used as source of SPI4/5 clock */
  26591. /* SPI4/5 clock source configuration done later after clock selection check */
  26592. break;
  26593. default:
  26594. ret = HAL_ERROR;
  26595. 800b92e: 2301 movs r3, #1
  26596. 800b930: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26597. break;
  26598. 800b934: e006 b.n 800b944 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  26599. break;
  26600. 800b936: bf00 nop
  26601. 800b938: e004 b.n 800b944 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  26602. break;
  26603. 800b93a: bf00 nop
  26604. 800b93c: e002 b.n 800b944 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  26605. break;
  26606. 800b93e: bf00 nop
  26607. 800b940: e000 b.n 800b944 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  26608. break;
  26609. 800b942: bf00 nop
  26610. }
  26611. if (ret == HAL_OK)
  26612. 800b944: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26613. 800b948: 2b00 cmp r3, #0
  26614. 800b94a: d10d bne.n 800b968 <HAL_RCCEx_PeriphCLKConfig+0x5cc>
  26615. {
  26616. /* Set the source of SPI4/5 clock*/
  26617. __HAL_RCC_SPI45_CONFIG(PeriphClkInit->Spi45ClockSelection);
  26618. 800b94c: 4b05 ldr r3, [pc, #20] @ (800b964 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26619. 800b94e: 6d1b ldr r3, [r3, #80] @ 0x50
  26620. 800b950: f423 21e0 bic.w r1, r3, #458752 @ 0x70000
  26621. 800b954: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26622. 800b958: 6e5b ldr r3, [r3, #100] @ 0x64
  26623. 800b95a: 4a02 ldr r2, [pc, #8] @ (800b964 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26624. 800b95c: 430b orrs r3, r1
  26625. 800b95e: 6513 str r3, [r2, #80] @ 0x50
  26626. 800b960: e006 b.n 800b970 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  26627. 800b962: bf00 nop
  26628. 800b964: 58024400 .word 0x58024400
  26629. }
  26630. else
  26631. {
  26632. /* set overall return value */
  26633. status = ret;
  26634. 800b968: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26635. 800b96c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26636. }
  26637. }
  26638. /*---------------------------- SPI6 configuration -------------------------------*/
  26639. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI6) == RCC_PERIPHCLK_SPI6)
  26640. 800b970: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26641. 800b974: e9d3 2300 ldrd r2, r3, [r3]
  26642. 800b978: f402 4380 and.w r3, r2, #16384 @ 0x4000
  26643. 800b97c: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  26644. 800b980: 2300 movs r3, #0
  26645. 800b982: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  26646. 800b986: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8
  26647. 800b98a: 460b mov r3, r1
  26648. 800b98c: 4313 orrs r3, r2
  26649. 800b98e: d055 beq.n 800ba3c <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  26650. {
  26651. switch (PeriphClkInit->Spi6ClockSelection)
  26652. 800b990: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26653. 800b994: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  26654. 800b998: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  26655. 800b99c: d033 beq.n 800ba06 <HAL_RCCEx_PeriphCLKConfig+0x66a>
  26656. 800b99e: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  26657. 800b9a2: d82c bhi.n 800b9fe <HAL_RCCEx_PeriphCLKConfig+0x662>
  26658. 800b9a4: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  26659. 800b9a8: d02f beq.n 800ba0a <HAL_RCCEx_PeriphCLKConfig+0x66e>
  26660. 800b9aa: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  26661. 800b9ae: d826 bhi.n 800b9fe <HAL_RCCEx_PeriphCLKConfig+0x662>
  26662. 800b9b0: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  26663. 800b9b4: d02b beq.n 800ba0e <HAL_RCCEx_PeriphCLKConfig+0x672>
  26664. 800b9b6: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  26665. 800b9ba: d820 bhi.n 800b9fe <HAL_RCCEx_PeriphCLKConfig+0x662>
  26666. 800b9bc: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  26667. 800b9c0: d012 beq.n 800b9e8 <HAL_RCCEx_PeriphCLKConfig+0x64c>
  26668. 800b9c2: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  26669. 800b9c6: d81a bhi.n 800b9fe <HAL_RCCEx_PeriphCLKConfig+0x662>
  26670. 800b9c8: 2b00 cmp r3, #0
  26671. 800b9ca: d022 beq.n 800ba12 <HAL_RCCEx_PeriphCLKConfig+0x676>
  26672. 800b9cc: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  26673. 800b9d0: d115 bne.n 800b9fe <HAL_RCCEx_PeriphCLKConfig+0x662>
  26674. /* SPI6 clock source configuration done later after clock selection check */
  26675. break;
  26676. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI6*/
  26677. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  26678. 800b9d2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26679. 800b9d6: 3308 adds r3, #8
  26680. 800b9d8: 2101 movs r1, #1
  26681. 800b9da: 4618 mov r0, r3
  26682. 800b9dc: f001 f98a bl 800ccf4 <RCCEx_PLL2_Config>
  26683. 800b9e0: 4603 mov r3, r0
  26684. 800b9e2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26685. /* SPI6 clock source configuration done later after clock selection check */
  26686. break;
  26687. 800b9e6: e015 b.n 800ba14 <HAL_RCCEx_PeriphCLKConfig+0x678>
  26688. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI6*/
  26689. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  26690. 800b9e8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26691. 800b9ec: 3328 adds r3, #40 @ 0x28
  26692. 800b9ee: 2101 movs r1, #1
  26693. 800b9f0: 4618 mov r0, r3
  26694. 800b9f2: f001 fa31 bl 800ce58 <RCCEx_PLL3_Config>
  26695. 800b9f6: 4603 mov r3, r0
  26696. 800b9f8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26697. /* SPI6 clock source configuration done later after clock selection check */
  26698. break;
  26699. 800b9fc: e00a b.n 800ba14 <HAL_RCCEx_PeriphCLKConfig+0x678>
  26700. /* SPI6 clock source configuration done later after clock selection check */
  26701. break;
  26702. #endif
  26703. default:
  26704. ret = HAL_ERROR;
  26705. 800b9fe: 2301 movs r3, #1
  26706. 800ba00: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26707. break;
  26708. 800ba04: e006 b.n 800ba14 <HAL_RCCEx_PeriphCLKConfig+0x678>
  26709. break;
  26710. 800ba06: bf00 nop
  26711. 800ba08: e004 b.n 800ba14 <HAL_RCCEx_PeriphCLKConfig+0x678>
  26712. break;
  26713. 800ba0a: bf00 nop
  26714. 800ba0c: e002 b.n 800ba14 <HAL_RCCEx_PeriphCLKConfig+0x678>
  26715. break;
  26716. 800ba0e: bf00 nop
  26717. 800ba10: e000 b.n 800ba14 <HAL_RCCEx_PeriphCLKConfig+0x678>
  26718. break;
  26719. 800ba12: bf00 nop
  26720. }
  26721. if (ret == HAL_OK)
  26722. 800ba14: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26723. 800ba18: 2b00 cmp r3, #0
  26724. 800ba1a: d10b bne.n 800ba34 <HAL_RCCEx_PeriphCLKConfig+0x698>
  26725. {
  26726. /* Set the source of SPI6 clock*/
  26727. __HAL_RCC_SPI6_CONFIG(PeriphClkInit->Spi6ClockSelection);
  26728. 800ba1c: 4ba3 ldr r3, [pc, #652] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26729. 800ba1e: 6d9b ldr r3, [r3, #88] @ 0x58
  26730. 800ba20: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  26731. 800ba24: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26732. 800ba28: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  26733. 800ba2c: 4a9f ldr r2, [pc, #636] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26734. 800ba2e: 430b orrs r3, r1
  26735. 800ba30: 6593 str r3, [r2, #88] @ 0x58
  26736. 800ba32: e003 b.n 800ba3c <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  26737. }
  26738. else
  26739. {
  26740. /* set overall return value */
  26741. status = ret;
  26742. 800ba34: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26743. 800ba38: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26744. }
  26745. #endif /*DSI*/
  26746. #if defined(FDCAN1) || defined(FDCAN2)
  26747. /*---------------------------- FDCAN configuration -------------------------------*/
  26748. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN)
  26749. 800ba3c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26750. 800ba40: e9d3 2300 ldrd r2, r3, [r3]
  26751. 800ba44: f402 4300 and.w r3, r2, #32768 @ 0x8000
  26752. 800ba48: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  26753. 800ba4c: 2300 movs r3, #0
  26754. 800ba4e: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  26755. 800ba52: e9d7 1234 ldrd r1, r2, [r7, #208] @ 0xd0
  26756. 800ba56: 460b mov r3, r1
  26757. 800ba58: 4313 orrs r3, r2
  26758. 800ba5a: d037 beq.n 800bacc <HAL_RCCEx_PeriphCLKConfig+0x730>
  26759. {
  26760. switch (PeriphClkInit->FdcanClockSelection)
  26761. 800ba5c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26762. 800ba60: 6f1b ldr r3, [r3, #112] @ 0x70
  26763. 800ba62: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  26764. 800ba66: d00e beq.n 800ba86 <HAL_RCCEx_PeriphCLKConfig+0x6ea>
  26765. 800ba68: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  26766. 800ba6c: d816 bhi.n 800ba9c <HAL_RCCEx_PeriphCLKConfig+0x700>
  26767. 800ba6e: 2b00 cmp r3, #0
  26768. 800ba70: d018 beq.n 800baa4 <HAL_RCCEx_PeriphCLKConfig+0x708>
  26769. 800ba72: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  26770. 800ba76: d111 bne.n 800ba9c <HAL_RCCEx_PeriphCLKConfig+0x700>
  26771. {
  26772. case RCC_FDCANCLKSOURCE_PLL: /* PLL is used as clock source for FDCAN*/
  26773. /* Enable FDCAN Clock output generated form System PLL . */
  26774. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26775. 800ba78: 4b8c ldr r3, [pc, #560] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26776. 800ba7a: 6adb ldr r3, [r3, #44] @ 0x2c
  26777. 800ba7c: 4a8b ldr r2, [pc, #556] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26778. 800ba7e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26779. 800ba82: 62d3 str r3, [r2, #44] @ 0x2c
  26780. /* FDCAN clock source configuration done later after clock selection check */
  26781. break;
  26782. 800ba84: e00f b.n 800baa6 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  26783. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is used as clock source for FDCAN*/
  26784. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  26785. 800ba86: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26786. 800ba8a: 3308 adds r3, #8
  26787. 800ba8c: 2101 movs r1, #1
  26788. 800ba8e: 4618 mov r0, r3
  26789. 800ba90: f001 f930 bl 800ccf4 <RCCEx_PLL2_Config>
  26790. 800ba94: 4603 mov r3, r0
  26791. 800ba96: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26792. /* FDCAN clock source configuration done later after clock selection check */
  26793. break;
  26794. 800ba9a: e004 b.n 800baa6 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  26795. /* HSE is used as clock source for FDCAN*/
  26796. /* FDCAN clock source configuration done later after clock selection check */
  26797. break;
  26798. default:
  26799. ret = HAL_ERROR;
  26800. 800ba9c: 2301 movs r3, #1
  26801. 800ba9e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26802. break;
  26803. 800baa2: e000 b.n 800baa6 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  26804. break;
  26805. 800baa4: bf00 nop
  26806. }
  26807. if (ret == HAL_OK)
  26808. 800baa6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26809. 800baaa: 2b00 cmp r3, #0
  26810. 800baac: d10a bne.n 800bac4 <HAL_RCCEx_PeriphCLKConfig+0x728>
  26811. {
  26812. /* Set the source of FDCAN clock*/
  26813. __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection);
  26814. 800baae: 4b7f ldr r3, [pc, #508] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26815. 800bab0: 6d1b ldr r3, [r3, #80] @ 0x50
  26816. 800bab2: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  26817. 800bab6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26818. 800baba: 6f1b ldr r3, [r3, #112] @ 0x70
  26819. 800babc: 4a7b ldr r2, [pc, #492] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26820. 800babe: 430b orrs r3, r1
  26821. 800bac0: 6513 str r3, [r2, #80] @ 0x50
  26822. 800bac2: e003 b.n 800bacc <HAL_RCCEx_PeriphCLKConfig+0x730>
  26823. }
  26824. else
  26825. {
  26826. /* set overall return value */
  26827. status = ret;
  26828. 800bac4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26829. 800bac8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26830. }
  26831. }
  26832. #endif /*FDCAN1 || FDCAN2*/
  26833. /*---------------------------- FMC configuration -------------------------------*/
  26834. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMC) == RCC_PERIPHCLK_FMC)
  26835. 800bacc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26836. 800bad0: e9d3 2300 ldrd r2, r3, [r3]
  26837. 800bad4: f002 7380 and.w r3, r2, #16777216 @ 0x1000000
  26838. 800bad8: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  26839. 800badc: 2300 movs r3, #0
  26840. 800bade: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
  26841. 800bae2: e9d7 1232 ldrd r1, r2, [r7, #200] @ 0xc8
  26842. 800bae6: 460b mov r3, r1
  26843. 800bae8: 4313 orrs r3, r2
  26844. 800baea: d039 beq.n 800bb60 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  26845. {
  26846. switch (PeriphClkInit->FmcClockSelection)
  26847. 800baec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26848. 800baf0: 6c9b ldr r3, [r3, #72] @ 0x48
  26849. 800baf2: 2b03 cmp r3, #3
  26850. 800baf4: d81c bhi.n 800bb30 <HAL_RCCEx_PeriphCLKConfig+0x794>
  26851. 800baf6: a201 add r2, pc, #4 @ (adr r2, 800bafc <HAL_RCCEx_PeriphCLKConfig+0x760>)
  26852. 800baf8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  26853. 800bafc: 0800bb39 .word 0x0800bb39
  26854. 800bb00: 0800bb0d .word 0x0800bb0d
  26855. 800bb04: 0800bb1b .word 0x0800bb1b
  26856. 800bb08: 0800bb39 .word 0x0800bb39
  26857. {
  26858. case RCC_FMCCLKSOURCE_PLL: /* PLL is used as clock source for FMC*/
  26859. /* Enable FMC Clock output generated form System PLL . */
  26860. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26861. 800bb0c: 4b67 ldr r3, [pc, #412] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26862. 800bb0e: 6adb ldr r3, [r3, #44] @ 0x2c
  26863. 800bb10: 4a66 ldr r2, [pc, #408] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26864. 800bb12: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26865. 800bb16: 62d3 str r3, [r2, #44] @ 0x2c
  26866. /* FMC clock source configuration done later after clock selection check */
  26867. break;
  26868. 800bb18: e00f b.n 800bb3a <HAL_RCCEx_PeriphCLKConfig+0x79e>
  26869. case RCC_FMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for FMC*/
  26870. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  26871. 800bb1a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26872. 800bb1e: 3308 adds r3, #8
  26873. 800bb20: 2102 movs r1, #2
  26874. 800bb22: 4618 mov r0, r3
  26875. 800bb24: f001 f8e6 bl 800ccf4 <RCCEx_PLL2_Config>
  26876. 800bb28: 4603 mov r3, r0
  26877. 800bb2a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26878. /* FMC clock source configuration done later after clock selection check */
  26879. break;
  26880. 800bb2e: e004 b.n 800bb3a <HAL_RCCEx_PeriphCLKConfig+0x79e>
  26881. case RCC_FMCCLKSOURCE_HCLK:
  26882. /* D1/CD HCLK clock selected as FMC kernel peripheral clock */
  26883. break;
  26884. default:
  26885. ret = HAL_ERROR;
  26886. 800bb30: 2301 movs r3, #1
  26887. 800bb32: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26888. break;
  26889. 800bb36: e000 b.n 800bb3a <HAL_RCCEx_PeriphCLKConfig+0x79e>
  26890. break;
  26891. 800bb38: bf00 nop
  26892. }
  26893. if (ret == HAL_OK)
  26894. 800bb3a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26895. 800bb3e: 2b00 cmp r3, #0
  26896. 800bb40: d10a bne.n 800bb58 <HAL_RCCEx_PeriphCLKConfig+0x7bc>
  26897. {
  26898. /* Set the source of FMC clock*/
  26899. __HAL_RCC_FMC_CONFIG(PeriphClkInit->FmcClockSelection);
  26900. 800bb42: 4b5a ldr r3, [pc, #360] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26901. 800bb44: 6cdb ldr r3, [r3, #76] @ 0x4c
  26902. 800bb46: f023 0103 bic.w r1, r3, #3
  26903. 800bb4a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26904. 800bb4e: 6c9b ldr r3, [r3, #72] @ 0x48
  26905. 800bb50: 4a56 ldr r2, [pc, #344] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26906. 800bb52: 430b orrs r3, r1
  26907. 800bb54: 64d3 str r3, [r2, #76] @ 0x4c
  26908. 800bb56: e003 b.n 800bb60 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  26909. }
  26910. else
  26911. {
  26912. /* set overall return value */
  26913. status = ret;
  26914. 800bb58: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26915. 800bb5c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26916. }
  26917. }
  26918. /*---------------------------- RTC configuration -------------------------------*/
  26919. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)
  26920. 800bb60: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26921. 800bb64: e9d3 2300 ldrd r2, r3, [r3]
  26922. 800bb68: f402 0380 and.w r3, r2, #4194304 @ 0x400000
  26923. 800bb6c: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  26924. 800bb70: 2300 movs r3, #0
  26925. 800bb72: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  26926. 800bb76: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0
  26927. 800bb7a: 460b mov r3, r1
  26928. 800bb7c: 4313 orrs r3, r2
  26929. 800bb7e: f000 809f beq.w 800bcc0 <HAL_RCCEx_PeriphCLKConfig+0x924>
  26930. {
  26931. /* check for RTC Parameters used to output RTCCLK */
  26932. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  26933. /* Enable write access to Backup domain */
  26934. SET_BIT(PWR->CR1, PWR_CR1_DBP);
  26935. 800bb82: 4b4b ldr r3, [pc, #300] @ (800bcb0 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  26936. 800bb84: 681b ldr r3, [r3, #0]
  26937. 800bb86: 4a4a ldr r2, [pc, #296] @ (800bcb0 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  26938. 800bb88: f443 7380 orr.w r3, r3, #256 @ 0x100
  26939. 800bb8c: 6013 str r3, [r2, #0]
  26940. /* Wait for Backup domain Write protection disable */
  26941. tickstart = HAL_GetTick();
  26942. 800bb8e: f7f9 fd81 bl 8005694 <HAL_GetTick>
  26943. 800bb92: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  26944. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  26945. 800bb96: e00b b.n 800bbb0 <HAL_RCCEx_PeriphCLKConfig+0x814>
  26946. {
  26947. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  26948. 800bb98: f7f9 fd7c bl 8005694 <HAL_GetTick>
  26949. 800bb9c: 4602 mov r2, r0
  26950. 800bb9e: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  26951. 800bba2: 1ad3 subs r3, r2, r3
  26952. 800bba4: 2b64 cmp r3, #100 @ 0x64
  26953. 800bba6: d903 bls.n 800bbb0 <HAL_RCCEx_PeriphCLKConfig+0x814>
  26954. {
  26955. ret = HAL_TIMEOUT;
  26956. 800bba8: 2303 movs r3, #3
  26957. 800bbaa: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26958. break;
  26959. 800bbae: e005 b.n 800bbbc <HAL_RCCEx_PeriphCLKConfig+0x820>
  26960. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  26961. 800bbb0: 4b3f ldr r3, [pc, #252] @ (800bcb0 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  26962. 800bbb2: 681b ldr r3, [r3, #0]
  26963. 800bbb4: f403 7380 and.w r3, r3, #256 @ 0x100
  26964. 800bbb8: 2b00 cmp r3, #0
  26965. 800bbba: d0ed beq.n 800bb98 <HAL_RCCEx_PeriphCLKConfig+0x7fc>
  26966. }
  26967. }
  26968. if (ret == HAL_OK)
  26969. 800bbbc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26970. 800bbc0: 2b00 cmp r3, #0
  26971. 800bbc2: d179 bne.n 800bcb8 <HAL_RCCEx_PeriphCLKConfig+0x91c>
  26972. {
  26973. /* Reset the Backup domain only if the RTC Clock source selection is modified */
  26974. if ((RCC->BDCR & RCC_BDCR_RTCSEL) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))
  26975. 800bbc4: 4b39 ldr r3, [pc, #228] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26976. 800bbc6: 6f1a ldr r2, [r3, #112] @ 0x70
  26977. 800bbc8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26978. 800bbcc: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  26979. 800bbd0: 4053 eors r3, r2
  26980. 800bbd2: f403 7340 and.w r3, r3, #768 @ 0x300
  26981. 800bbd6: 2b00 cmp r3, #0
  26982. 800bbd8: d015 beq.n 800bc06 <HAL_RCCEx_PeriphCLKConfig+0x86a>
  26983. {
  26984. /* Store the content of BDCR register before the reset of Backup Domain */
  26985. tmpreg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  26986. 800bbda: 4b34 ldr r3, [pc, #208] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26987. 800bbdc: 6f1b ldr r3, [r3, #112] @ 0x70
  26988. 800bbde: f423 7340 bic.w r3, r3, #768 @ 0x300
  26989. 800bbe2: f8c7 3114 str.w r3, [r7, #276] @ 0x114
  26990. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  26991. __HAL_RCC_BACKUPRESET_FORCE();
  26992. 800bbe6: 4b31 ldr r3, [pc, #196] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26993. 800bbe8: 6f1b ldr r3, [r3, #112] @ 0x70
  26994. 800bbea: 4a30 ldr r2, [pc, #192] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26995. 800bbec: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26996. 800bbf0: 6713 str r3, [r2, #112] @ 0x70
  26997. __HAL_RCC_BACKUPRESET_RELEASE();
  26998. 800bbf2: 4b2e ldr r3, [pc, #184] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26999. 800bbf4: 6f1b ldr r3, [r3, #112] @ 0x70
  27000. 800bbf6: 4a2d ldr r2, [pc, #180] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  27001. 800bbf8: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  27002. 800bbfc: 6713 str r3, [r2, #112] @ 0x70
  27003. /* Restore the Content of BDCR register */
  27004. RCC->BDCR = tmpreg;
  27005. 800bbfe: 4a2b ldr r2, [pc, #172] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  27006. 800bc00: f8d7 3114 ldr.w r3, [r7, #276] @ 0x114
  27007. 800bc04: 6713 str r3, [r2, #112] @ 0x70
  27008. }
  27009. /* If LSE is selected as RTC clock source (and enabled prior to Backup Domain reset), wait for LSE reactivation */
  27010. if (PeriphClkInit->RTCClockSelection == RCC_RTCCLKSOURCE_LSE)
  27011. 800bc06: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27012. 800bc0a: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  27013. 800bc0e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  27014. 800bc12: d118 bne.n 800bc46 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  27015. {
  27016. /* Get Start Tick*/
  27017. tickstart = HAL_GetTick();
  27018. 800bc14: f7f9 fd3e bl 8005694 <HAL_GetTick>
  27019. 800bc18: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  27020. /* Wait till LSE is ready */
  27021. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  27022. 800bc1c: e00d b.n 800bc3a <HAL_RCCEx_PeriphCLKConfig+0x89e>
  27023. {
  27024. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  27025. 800bc1e: f7f9 fd39 bl 8005694 <HAL_GetTick>
  27026. 800bc22: 4602 mov r2, r0
  27027. 800bc24: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  27028. 800bc28: 1ad2 subs r2, r2, r3
  27029. 800bc2a: f241 3388 movw r3, #5000 @ 0x1388
  27030. 800bc2e: 429a cmp r2, r3
  27031. 800bc30: d903 bls.n 800bc3a <HAL_RCCEx_PeriphCLKConfig+0x89e>
  27032. {
  27033. ret = HAL_TIMEOUT;
  27034. 800bc32: 2303 movs r3, #3
  27035. 800bc34: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27036. break;
  27037. 800bc38: e005 b.n 800bc46 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  27038. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  27039. 800bc3a: 4b1c ldr r3, [pc, #112] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  27040. 800bc3c: 6f1b ldr r3, [r3, #112] @ 0x70
  27041. 800bc3e: f003 0302 and.w r3, r3, #2
  27042. 800bc42: 2b00 cmp r3, #0
  27043. 800bc44: d0eb beq.n 800bc1e <HAL_RCCEx_PeriphCLKConfig+0x882>
  27044. }
  27045. }
  27046. }
  27047. if (ret == HAL_OK)
  27048. 800bc46: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27049. 800bc4a: 2b00 cmp r3, #0
  27050. 800bc4c: d129 bne.n 800bca2 <HAL_RCCEx_PeriphCLKConfig+0x906>
  27051. {
  27052. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  27053. 800bc4e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27054. 800bc52: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  27055. 800bc56: f403 7340 and.w r3, r3, #768 @ 0x300
  27056. 800bc5a: f5b3 7f40 cmp.w r3, #768 @ 0x300
  27057. 800bc5e: d10e bne.n 800bc7e <HAL_RCCEx_PeriphCLKConfig+0x8e2>
  27058. 800bc60: 4b12 ldr r3, [pc, #72] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  27059. 800bc62: 691b ldr r3, [r3, #16]
  27060. 800bc64: f423 517c bic.w r1, r3, #16128 @ 0x3f00
  27061. 800bc68: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27062. 800bc6c: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  27063. 800bc70: 091a lsrs r2, r3, #4
  27064. 800bc72: 4b10 ldr r3, [pc, #64] @ (800bcb4 <HAL_RCCEx_PeriphCLKConfig+0x918>)
  27065. 800bc74: 4013 ands r3, r2
  27066. 800bc76: 4a0d ldr r2, [pc, #52] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  27067. 800bc78: 430b orrs r3, r1
  27068. 800bc7a: 6113 str r3, [r2, #16]
  27069. 800bc7c: e005 b.n 800bc8a <HAL_RCCEx_PeriphCLKConfig+0x8ee>
  27070. 800bc7e: 4b0b ldr r3, [pc, #44] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  27071. 800bc80: 691b ldr r3, [r3, #16]
  27072. 800bc82: 4a0a ldr r2, [pc, #40] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  27073. 800bc84: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  27074. 800bc88: 6113 str r3, [r2, #16]
  27075. 800bc8a: 4b08 ldr r3, [pc, #32] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  27076. 800bc8c: 6f19 ldr r1, [r3, #112] @ 0x70
  27077. 800bc8e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27078. 800bc92: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  27079. 800bc96: f3c3 030b ubfx r3, r3, #0, #12
  27080. 800bc9a: 4a04 ldr r2, [pc, #16] @ (800bcac <HAL_RCCEx_PeriphCLKConfig+0x910>)
  27081. 800bc9c: 430b orrs r3, r1
  27082. 800bc9e: 6713 str r3, [r2, #112] @ 0x70
  27083. 800bca0: e00e b.n 800bcc0 <HAL_RCCEx_PeriphCLKConfig+0x924>
  27084. }
  27085. else
  27086. {
  27087. /* set overall return value */
  27088. status = ret;
  27089. 800bca2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27090. 800bca6: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27091. 800bcaa: e009 b.n 800bcc0 <HAL_RCCEx_PeriphCLKConfig+0x924>
  27092. 800bcac: 58024400 .word 0x58024400
  27093. 800bcb0: 58024800 .word 0x58024800
  27094. 800bcb4: 00ffffcf .word 0x00ffffcf
  27095. }
  27096. }
  27097. else
  27098. {
  27099. /* set overall return value */
  27100. status = ret;
  27101. 800bcb8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27102. 800bcbc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27103. }
  27104. }
  27105. /*-------------------------- USART1/6 configuration --------------------------*/
  27106. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART16) == RCC_PERIPHCLK_USART16)
  27107. 800bcc0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27108. 800bcc4: e9d3 2300 ldrd r2, r3, [r3]
  27109. 800bcc8: f002 0301 and.w r3, r2, #1
  27110. 800bccc: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  27111. 800bcd0: 2300 movs r3, #0
  27112. 800bcd2: f8c7 30bc str.w r3, [r7, #188] @ 0xbc
  27113. 800bcd6: e9d7 122e ldrd r1, r2, [r7, #184] @ 0xb8
  27114. 800bcda: 460b mov r3, r1
  27115. 800bcdc: 4313 orrs r3, r2
  27116. 800bcde: f000 8089 beq.w 800bdf4 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  27117. {
  27118. switch (PeriphClkInit->Usart16ClockSelection)
  27119. 800bce2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27120. 800bce6: 6fdb ldr r3, [r3, #124] @ 0x7c
  27121. 800bce8: 2b28 cmp r3, #40 @ 0x28
  27122. 800bcea: d86b bhi.n 800bdc4 <HAL_RCCEx_PeriphCLKConfig+0xa28>
  27123. 800bcec: a201 add r2, pc, #4 @ (adr r2, 800bcf4 <HAL_RCCEx_PeriphCLKConfig+0x958>)
  27124. 800bcee: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  27125. 800bcf2: bf00 nop
  27126. 800bcf4: 0800bdcd .word 0x0800bdcd
  27127. 800bcf8: 0800bdc5 .word 0x0800bdc5
  27128. 800bcfc: 0800bdc5 .word 0x0800bdc5
  27129. 800bd00: 0800bdc5 .word 0x0800bdc5
  27130. 800bd04: 0800bdc5 .word 0x0800bdc5
  27131. 800bd08: 0800bdc5 .word 0x0800bdc5
  27132. 800bd0c: 0800bdc5 .word 0x0800bdc5
  27133. 800bd10: 0800bdc5 .word 0x0800bdc5
  27134. 800bd14: 0800bd99 .word 0x0800bd99
  27135. 800bd18: 0800bdc5 .word 0x0800bdc5
  27136. 800bd1c: 0800bdc5 .word 0x0800bdc5
  27137. 800bd20: 0800bdc5 .word 0x0800bdc5
  27138. 800bd24: 0800bdc5 .word 0x0800bdc5
  27139. 800bd28: 0800bdc5 .word 0x0800bdc5
  27140. 800bd2c: 0800bdc5 .word 0x0800bdc5
  27141. 800bd30: 0800bdc5 .word 0x0800bdc5
  27142. 800bd34: 0800bdaf .word 0x0800bdaf
  27143. 800bd38: 0800bdc5 .word 0x0800bdc5
  27144. 800bd3c: 0800bdc5 .word 0x0800bdc5
  27145. 800bd40: 0800bdc5 .word 0x0800bdc5
  27146. 800bd44: 0800bdc5 .word 0x0800bdc5
  27147. 800bd48: 0800bdc5 .word 0x0800bdc5
  27148. 800bd4c: 0800bdc5 .word 0x0800bdc5
  27149. 800bd50: 0800bdc5 .word 0x0800bdc5
  27150. 800bd54: 0800bdcd .word 0x0800bdcd
  27151. 800bd58: 0800bdc5 .word 0x0800bdc5
  27152. 800bd5c: 0800bdc5 .word 0x0800bdc5
  27153. 800bd60: 0800bdc5 .word 0x0800bdc5
  27154. 800bd64: 0800bdc5 .word 0x0800bdc5
  27155. 800bd68: 0800bdc5 .word 0x0800bdc5
  27156. 800bd6c: 0800bdc5 .word 0x0800bdc5
  27157. 800bd70: 0800bdc5 .word 0x0800bdc5
  27158. 800bd74: 0800bdcd .word 0x0800bdcd
  27159. 800bd78: 0800bdc5 .word 0x0800bdc5
  27160. 800bd7c: 0800bdc5 .word 0x0800bdc5
  27161. 800bd80: 0800bdc5 .word 0x0800bdc5
  27162. 800bd84: 0800bdc5 .word 0x0800bdc5
  27163. 800bd88: 0800bdc5 .word 0x0800bdc5
  27164. 800bd8c: 0800bdc5 .word 0x0800bdc5
  27165. 800bd90: 0800bdc5 .word 0x0800bdc5
  27166. 800bd94: 0800bdcd .word 0x0800bdcd
  27167. case RCC_USART16CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for USART1/6 */
  27168. /* USART1/6 clock source configuration done later after clock selection check */
  27169. break;
  27170. case RCC_USART16CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART1/6 */
  27171. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  27172. 800bd98: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27173. 800bd9c: 3308 adds r3, #8
  27174. 800bd9e: 2101 movs r1, #1
  27175. 800bda0: 4618 mov r0, r3
  27176. 800bda2: f000 ffa7 bl 800ccf4 <RCCEx_PLL2_Config>
  27177. 800bda6: 4603 mov r3, r0
  27178. 800bda8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27179. /* USART1/6 clock source configuration done later after clock selection check */
  27180. break;
  27181. 800bdac: e00f b.n 800bdce <HAL_RCCEx_PeriphCLKConfig+0xa32>
  27182. case RCC_USART16CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART1/6 */
  27183. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  27184. 800bdae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27185. 800bdb2: 3328 adds r3, #40 @ 0x28
  27186. 800bdb4: 2101 movs r1, #1
  27187. 800bdb6: 4618 mov r0, r3
  27188. 800bdb8: f001 f84e bl 800ce58 <RCCEx_PLL3_Config>
  27189. 800bdbc: 4603 mov r3, r0
  27190. 800bdbe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27191. /* USART1/6 clock source configuration done later after clock selection check */
  27192. break;
  27193. 800bdc2: e004 b.n 800bdce <HAL_RCCEx_PeriphCLKConfig+0xa32>
  27194. /* LSE, oscillator is used as source of USART1/6 clock */
  27195. /* USART1/6 clock source configuration done later after clock selection check */
  27196. break;
  27197. default:
  27198. ret = HAL_ERROR;
  27199. 800bdc4: 2301 movs r3, #1
  27200. 800bdc6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27201. break;
  27202. 800bdca: e000 b.n 800bdce <HAL_RCCEx_PeriphCLKConfig+0xa32>
  27203. break;
  27204. 800bdcc: bf00 nop
  27205. }
  27206. if (ret == HAL_OK)
  27207. 800bdce: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27208. 800bdd2: 2b00 cmp r3, #0
  27209. 800bdd4: d10a bne.n 800bdec <HAL_RCCEx_PeriphCLKConfig+0xa50>
  27210. {
  27211. /* Set the source of USART1/6 clock */
  27212. __HAL_RCC_USART16_CONFIG(PeriphClkInit->Usart16ClockSelection);
  27213. 800bdd6: 4bbf ldr r3, [pc, #764] @ (800c0d4 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  27214. 800bdd8: 6d5b ldr r3, [r3, #84] @ 0x54
  27215. 800bdda: f023 0138 bic.w r1, r3, #56 @ 0x38
  27216. 800bdde: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27217. 800bde2: 6fdb ldr r3, [r3, #124] @ 0x7c
  27218. 800bde4: 4abb ldr r2, [pc, #748] @ (800c0d4 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  27219. 800bde6: 430b orrs r3, r1
  27220. 800bde8: 6553 str r3, [r2, #84] @ 0x54
  27221. 800bdea: e003 b.n 800bdf4 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  27222. }
  27223. else
  27224. {
  27225. /* set overall return value */
  27226. status = ret;
  27227. 800bdec: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27228. 800bdf0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27229. }
  27230. }
  27231. /*-------------------------- USART2/3/4/5/7/8 Configuration --------------------------*/
  27232. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART234578) == RCC_PERIPHCLK_USART234578)
  27233. 800bdf4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27234. 800bdf8: e9d3 2300 ldrd r2, r3, [r3]
  27235. 800bdfc: f002 0302 and.w r3, r2, #2
  27236. 800be00: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  27237. 800be04: 2300 movs r3, #0
  27238. 800be06: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  27239. 800be0a: e9d7 122c ldrd r1, r2, [r7, #176] @ 0xb0
  27240. 800be0e: 460b mov r3, r1
  27241. 800be10: 4313 orrs r3, r2
  27242. 800be12: d041 beq.n 800be98 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  27243. {
  27244. switch (PeriphClkInit->Usart234578ClockSelection)
  27245. 800be14: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27246. 800be18: 6f9b ldr r3, [r3, #120] @ 0x78
  27247. 800be1a: 2b05 cmp r3, #5
  27248. 800be1c: d824 bhi.n 800be68 <HAL_RCCEx_PeriphCLKConfig+0xacc>
  27249. 800be1e: a201 add r2, pc, #4 @ (adr r2, 800be24 <HAL_RCCEx_PeriphCLKConfig+0xa88>)
  27250. 800be20: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  27251. 800be24: 0800be71 .word 0x0800be71
  27252. 800be28: 0800be3d .word 0x0800be3d
  27253. 800be2c: 0800be53 .word 0x0800be53
  27254. 800be30: 0800be71 .word 0x0800be71
  27255. 800be34: 0800be71 .word 0x0800be71
  27256. 800be38: 0800be71 .word 0x0800be71
  27257. case RCC_USART234578CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for USART2/3/4/5/7/8 */
  27258. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  27259. break;
  27260. case RCC_USART234578CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART2/3/4/5/7/8 */
  27261. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  27262. 800be3c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27263. 800be40: 3308 adds r3, #8
  27264. 800be42: 2101 movs r1, #1
  27265. 800be44: 4618 mov r0, r3
  27266. 800be46: f000 ff55 bl 800ccf4 <RCCEx_PLL2_Config>
  27267. 800be4a: 4603 mov r3, r0
  27268. 800be4c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27269. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  27270. break;
  27271. 800be50: e00f b.n 800be72 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  27272. case RCC_USART234578CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART2/3/4/5/7/8 */
  27273. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  27274. 800be52: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27275. 800be56: 3328 adds r3, #40 @ 0x28
  27276. 800be58: 2101 movs r1, #1
  27277. 800be5a: 4618 mov r0, r3
  27278. 800be5c: f000 fffc bl 800ce58 <RCCEx_PLL3_Config>
  27279. 800be60: 4603 mov r3, r0
  27280. 800be62: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27281. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  27282. break;
  27283. 800be66: e004 b.n 800be72 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  27284. /* LSE, oscillator is used as source of USART2/3/4/5/7/8 clock */
  27285. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  27286. break;
  27287. default:
  27288. ret = HAL_ERROR;
  27289. 800be68: 2301 movs r3, #1
  27290. 800be6a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27291. break;
  27292. 800be6e: e000 b.n 800be72 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  27293. break;
  27294. 800be70: bf00 nop
  27295. }
  27296. if (ret == HAL_OK)
  27297. 800be72: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27298. 800be76: 2b00 cmp r3, #0
  27299. 800be78: d10a bne.n 800be90 <HAL_RCCEx_PeriphCLKConfig+0xaf4>
  27300. {
  27301. /* Set the source of USART2/3/4/5/7/8 clock */
  27302. __HAL_RCC_USART234578_CONFIG(PeriphClkInit->Usart234578ClockSelection);
  27303. 800be7a: 4b96 ldr r3, [pc, #600] @ (800c0d4 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  27304. 800be7c: 6d5b ldr r3, [r3, #84] @ 0x54
  27305. 800be7e: f023 0107 bic.w r1, r3, #7
  27306. 800be82: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27307. 800be86: 6f9b ldr r3, [r3, #120] @ 0x78
  27308. 800be88: 4a92 ldr r2, [pc, #584] @ (800c0d4 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  27309. 800be8a: 430b orrs r3, r1
  27310. 800be8c: 6553 str r3, [r2, #84] @ 0x54
  27311. 800be8e: e003 b.n 800be98 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  27312. }
  27313. else
  27314. {
  27315. /* set overall return value */
  27316. status = ret;
  27317. 800be90: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27318. 800be94: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27319. }
  27320. }
  27321. /*-------------------------- LPUART1 Configuration -------------------------*/
  27322. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1)
  27323. 800be98: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27324. 800be9c: e9d3 2300 ldrd r2, r3, [r3]
  27325. 800bea0: f002 0304 and.w r3, r2, #4
  27326. 800bea4: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  27327. 800bea8: 2300 movs r3, #0
  27328. 800beaa: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  27329. 800beae: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8
  27330. 800beb2: 460b mov r3, r1
  27331. 800beb4: 4313 orrs r3, r2
  27332. 800beb6: d044 beq.n 800bf42 <HAL_RCCEx_PeriphCLKConfig+0xba6>
  27333. {
  27334. switch (PeriphClkInit->Lpuart1ClockSelection)
  27335. 800beb8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27336. 800bebc: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  27337. 800bec0: 2b05 cmp r3, #5
  27338. 800bec2: d825 bhi.n 800bf10 <HAL_RCCEx_PeriphCLKConfig+0xb74>
  27339. 800bec4: a201 add r2, pc, #4 @ (adr r2, 800becc <HAL_RCCEx_PeriphCLKConfig+0xb30>)
  27340. 800bec6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  27341. 800beca: bf00 nop
  27342. 800becc: 0800bf19 .word 0x0800bf19
  27343. 800bed0: 0800bee5 .word 0x0800bee5
  27344. 800bed4: 0800befb .word 0x0800befb
  27345. 800bed8: 0800bf19 .word 0x0800bf19
  27346. 800bedc: 0800bf19 .word 0x0800bf19
  27347. 800bee0: 0800bf19 .word 0x0800bf19
  27348. case RCC_LPUART1CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPUART1 */
  27349. /* LPUART1 clock source configuration done later after clock selection check */
  27350. break;
  27351. case RCC_LPUART1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPUART1 */
  27352. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  27353. 800bee4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27354. 800bee8: 3308 adds r3, #8
  27355. 800beea: 2101 movs r1, #1
  27356. 800beec: 4618 mov r0, r3
  27357. 800beee: f000 ff01 bl 800ccf4 <RCCEx_PLL2_Config>
  27358. 800bef2: 4603 mov r3, r0
  27359. 800bef4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27360. /* LPUART1 clock source configuration done later after clock selection check */
  27361. break;
  27362. 800bef8: e00f b.n 800bf1a <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  27363. case RCC_LPUART1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPUART1 */
  27364. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  27365. 800befa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27366. 800befe: 3328 adds r3, #40 @ 0x28
  27367. 800bf00: 2101 movs r1, #1
  27368. 800bf02: 4618 mov r0, r3
  27369. 800bf04: f000 ffa8 bl 800ce58 <RCCEx_PLL3_Config>
  27370. 800bf08: 4603 mov r3, r0
  27371. 800bf0a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27372. /* LPUART1 clock source configuration done later after clock selection check */
  27373. break;
  27374. 800bf0e: e004 b.n 800bf1a <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  27375. /* LSE, oscillator is used as source of LPUART1 clock */
  27376. /* LPUART1 clock source configuration done later after clock selection check */
  27377. break;
  27378. default:
  27379. ret = HAL_ERROR;
  27380. 800bf10: 2301 movs r3, #1
  27381. 800bf12: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27382. break;
  27383. 800bf16: e000 b.n 800bf1a <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  27384. break;
  27385. 800bf18: bf00 nop
  27386. }
  27387. if (ret == HAL_OK)
  27388. 800bf1a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27389. 800bf1e: 2b00 cmp r3, #0
  27390. 800bf20: d10b bne.n 800bf3a <HAL_RCCEx_PeriphCLKConfig+0xb9e>
  27391. {
  27392. /* Set the source of LPUART1 clock */
  27393. __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection);
  27394. 800bf22: 4b6c ldr r3, [pc, #432] @ (800c0d4 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  27395. 800bf24: 6d9b ldr r3, [r3, #88] @ 0x58
  27396. 800bf26: f023 0107 bic.w r1, r3, #7
  27397. 800bf2a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27398. 800bf2e: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  27399. 800bf32: 4a68 ldr r2, [pc, #416] @ (800c0d4 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  27400. 800bf34: 430b orrs r3, r1
  27401. 800bf36: 6593 str r3, [r2, #88] @ 0x58
  27402. 800bf38: e003 b.n 800bf42 <HAL_RCCEx_PeriphCLKConfig+0xba6>
  27403. }
  27404. else
  27405. {
  27406. /* set overall return value */
  27407. status = ret;
  27408. 800bf3a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27409. 800bf3e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27410. }
  27411. }
  27412. /*---------------------------- LPTIM1 configuration -------------------------------*/
  27413. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1)
  27414. 800bf42: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27415. 800bf46: e9d3 2300 ldrd r2, r3, [r3]
  27416. 800bf4a: f002 0320 and.w r3, r2, #32
  27417. 800bf4e: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  27418. 800bf52: 2300 movs r3, #0
  27419. 800bf54: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  27420. 800bf58: e9d7 1228 ldrd r1, r2, [r7, #160] @ 0xa0
  27421. 800bf5c: 460b mov r3, r1
  27422. 800bf5e: 4313 orrs r3, r2
  27423. 800bf60: d055 beq.n 800c00e <HAL_RCCEx_PeriphCLKConfig+0xc72>
  27424. {
  27425. switch (PeriphClkInit->Lptim1ClockSelection)
  27426. 800bf62: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27427. 800bf66: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  27428. 800bf6a: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  27429. 800bf6e: d033 beq.n 800bfd8 <HAL_RCCEx_PeriphCLKConfig+0xc3c>
  27430. 800bf70: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  27431. 800bf74: d82c bhi.n 800bfd0 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  27432. 800bf76: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  27433. 800bf7a: d02f beq.n 800bfdc <HAL_RCCEx_PeriphCLKConfig+0xc40>
  27434. 800bf7c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  27435. 800bf80: d826 bhi.n 800bfd0 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  27436. 800bf82: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  27437. 800bf86: d02b beq.n 800bfe0 <HAL_RCCEx_PeriphCLKConfig+0xc44>
  27438. 800bf88: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  27439. 800bf8c: d820 bhi.n 800bfd0 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  27440. 800bf8e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  27441. 800bf92: d012 beq.n 800bfba <HAL_RCCEx_PeriphCLKConfig+0xc1e>
  27442. 800bf94: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  27443. 800bf98: d81a bhi.n 800bfd0 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  27444. 800bf9a: 2b00 cmp r3, #0
  27445. 800bf9c: d022 beq.n 800bfe4 <HAL_RCCEx_PeriphCLKConfig+0xc48>
  27446. 800bf9e: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  27447. 800bfa2: d115 bne.n 800bfd0 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  27448. /* LPTIM1 clock source configuration done later after clock selection check */
  27449. break;
  27450. case RCC_LPTIM1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM1*/
  27451. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  27452. 800bfa4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27453. 800bfa8: 3308 adds r3, #8
  27454. 800bfaa: 2100 movs r1, #0
  27455. 800bfac: 4618 mov r0, r3
  27456. 800bfae: f000 fea1 bl 800ccf4 <RCCEx_PLL2_Config>
  27457. 800bfb2: 4603 mov r3, r0
  27458. 800bfb4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27459. /* LPTIM1 clock source configuration done later after clock selection check */
  27460. break;
  27461. 800bfb8: e015 b.n 800bfe6 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  27462. case RCC_LPTIM1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM1*/
  27463. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  27464. 800bfba: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27465. 800bfbe: 3328 adds r3, #40 @ 0x28
  27466. 800bfc0: 2102 movs r1, #2
  27467. 800bfc2: 4618 mov r0, r3
  27468. 800bfc4: f000 ff48 bl 800ce58 <RCCEx_PLL3_Config>
  27469. 800bfc8: 4603 mov r3, r0
  27470. 800bfca: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27471. /* LPTIM1 clock source configuration done later after clock selection check */
  27472. break;
  27473. 800bfce: e00a b.n 800bfe6 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  27474. /* HSI, HSE, or CSI oscillator is used as source of LPTIM1 clock */
  27475. /* LPTIM1 clock source configuration done later after clock selection check */
  27476. break;
  27477. default:
  27478. ret = HAL_ERROR;
  27479. 800bfd0: 2301 movs r3, #1
  27480. 800bfd2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27481. break;
  27482. 800bfd6: e006 b.n 800bfe6 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  27483. break;
  27484. 800bfd8: bf00 nop
  27485. 800bfda: e004 b.n 800bfe6 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  27486. break;
  27487. 800bfdc: bf00 nop
  27488. 800bfde: e002 b.n 800bfe6 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  27489. break;
  27490. 800bfe0: bf00 nop
  27491. 800bfe2: e000 b.n 800bfe6 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  27492. break;
  27493. 800bfe4: bf00 nop
  27494. }
  27495. if (ret == HAL_OK)
  27496. 800bfe6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27497. 800bfea: 2b00 cmp r3, #0
  27498. 800bfec: d10b bne.n 800c006 <HAL_RCCEx_PeriphCLKConfig+0xc6a>
  27499. {
  27500. /* Set the source of LPTIM1 clock*/
  27501. __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection);
  27502. 800bfee: 4b39 ldr r3, [pc, #228] @ (800c0d4 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  27503. 800bff0: 6d5b ldr r3, [r3, #84] @ 0x54
  27504. 800bff2: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  27505. 800bff6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27506. 800bffa: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  27507. 800bffe: 4a35 ldr r2, [pc, #212] @ (800c0d4 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  27508. 800c000: 430b orrs r3, r1
  27509. 800c002: 6553 str r3, [r2, #84] @ 0x54
  27510. 800c004: e003 b.n 800c00e <HAL_RCCEx_PeriphCLKConfig+0xc72>
  27511. }
  27512. else
  27513. {
  27514. /* set overall return value */
  27515. status = ret;
  27516. 800c006: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27517. 800c00a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27518. }
  27519. }
  27520. /*---------------------------- LPTIM2 configuration -------------------------------*/
  27521. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM2) == RCC_PERIPHCLK_LPTIM2)
  27522. 800c00e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27523. 800c012: e9d3 2300 ldrd r2, r3, [r3]
  27524. 800c016: f002 0340 and.w r3, r2, #64 @ 0x40
  27525. 800c01a: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  27526. 800c01e: 2300 movs r3, #0
  27527. 800c020: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  27528. 800c024: e9d7 1226 ldrd r1, r2, [r7, #152] @ 0x98
  27529. 800c028: 460b mov r3, r1
  27530. 800c02a: 4313 orrs r3, r2
  27531. 800c02c: d058 beq.n 800c0e0 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  27532. {
  27533. switch (PeriphClkInit->Lptim2ClockSelection)
  27534. 800c02e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27535. 800c032: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  27536. 800c036: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  27537. 800c03a: d033 beq.n 800c0a4 <HAL_RCCEx_PeriphCLKConfig+0xd08>
  27538. 800c03c: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  27539. 800c040: d82c bhi.n 800c09c <HAL_RCCEx_PeriphCLKConfig+0xd00>
  27540. 800c042: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  27541. 800c046: d02f beq.n 800c0a8 <HAL_RCCEx_PeriphCLKConfig+0xd0c>
  27542. 800c048: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  27543. 800c04c: d826 bhi.n 800c09c <HAL_RCCEx_PeriphCLKConfig+0xd00>
  27544. 800c04e: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  27545. 800c052: d02b beq.n 800c0ac <HAL_RCCEx_PeriphCLKConfig+0xd10>
  27546. 800c054: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  27547. 800c058: d820 bhi.n 800c09c <HAL_RCCEx_PeriphCLKConfig+0xd00>
  27548. 800c05a: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  27549. 800c05e: d012 beq.n 800c086 <HAL_RCCEx_PeriphCLKConfig+0xcea>
  27550. 800c060: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  27551. 800c064: d81a bhi.n 800c09c <HAL_RCCEx_PeriphCLKConfig+0xd00>
  27552. 800c066: 2b00 cmp r3, #0
  27553. 800c068: d022 beq.n 800c0b0 <HAL_RCCEx_PeriphCLKConfig+0xd14>
  27554. 800c06a: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  27555. 800c06e: d115 bne.n 800c09c <HAL_RCCEx_PeriphCLKConfig+0xd00>
  27556. /* LPTIM2 clock source configuration done later after clock selection check */
  27557. break;
  27558. case RCC_LPTIM2CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM2*/
  27559. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  27560. 800c070: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27561. 800c074: 3308 adds r3, #8
  27562. 800c076: 2100 movs r1, #0
  27563. 800c078: 4618 mov r0, r3
  27564. 800c07a: f000 fe3b bl 800ccf4 <RCCEx_PLL2_Config>
  27565. 800c07e: 4603 mov r3, r0
  27566. 800c080: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27567. /* LPTIM2 clock source configuration done later after clock selection check */
  27568. break;
  27569. 800c084: e015 b.n 800c0b2 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  27570. case RCC_LPTIM2CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM2*/
  27571. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  27572. 800c086: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27573. 800c08a: 3328 adds r3, #40 @ 0x28
  27574. 800c08c: 2102 movs r1, #2
  27575. 800c08e: 4618 mov r0, r3
  27576. 800c090: f000 fee2 bl 800ce58 <RCCEx_PLL3_Config>
  27577. 800c094: 4603 mov r3, r0
  27578. 800c096: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27579. /* LPTIM2 clock source configuration done later after clock selection check */
  27580. break;
  27581. 800c09a: e00a b.n 800c0b2 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  27582. /* HSI, HSE, or CSI oscillator is used as source of LPTIM2 clock */
  27583. /* LPTIM2 clock source configuration done later after clock selection check */
  27584. break;
  27585. default:
  27586. ret = HAL_ERROR;
  27587. 800c09c: 2301 movs r3, #1
  27588. 800c09e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27589. break;
  27590. 800c0a2: e006 b.n 800c0b2 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  27591. break;
  27592. 800c0a4: bf00 nop
  27593. 800c0a6: e004 b.n 800c0b2 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  27594. break;
  27595. 800c0a8: bf00 nop
  27596. 800c0aa: e002 b.n 800c0b2 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  27597. break;
  27598. 800c0ac: bf00 nop
  27599. 800c0ae: e000 b.n 800c0b2 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  27600. break;
  27601. 800c0b0: bf00 nop
  27602. }
  27603. if (ret == HAL_OK)
  27604. 800c0b2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27605. 800c0b6: 2b00 cmp r3, #0
  27606. 800c0b8: d10e bne.n 800c0d8 <HAL_RCCEx_PeriphCLKConfig+0xd3c>
  27607. {
  27608. /* Set the source of LPTIM2 clock*/
  27609. __HAL_RCC_LPTIM2_CONFIG(PeriphClkInit->Lptim2ClockSelection);
  27610. 800c0ba: 4b06 ldr r3, [pc, #24] @ (800c0d4 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  27611. 800c0bc: 6d9b ldr r3, [r3, #88] @ 0x58
  27612. 800c0be: f423 51e0 bic.w r1, r3, #7168 @ 0x1c00
  27613. 800c0c2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27614. 800c0c6: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  27615. 800c0ca: 4a02 ldr r2, [pc, #8] @ (800c0d4 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  27616. 800c0cc: 430b orrs r3, r1
  27617. 800c0ce: 6593 str r3, [r2, #88] @ 0x58
  27618. 800c0d0: e006 b.n 800c0e0 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  27619. 800c0d2: bf00 nop
  27620. 800c0d4: 58024400 .word 0x58024400
  27621. }
  27622. else
  27623. {
  27624. /* set overall return value */
  27625. status = ret;
  27626. 800c0d8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27627. 800c0dc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27628. }
  27629. }
  27630. /*---------------------------- LPTIM345 configuration -------------------------------*/
  27631. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM345) == RCC_PERIPHCLK_LPTIM345)
  27632. 800c0e0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27633. 800c0e4: e9d3 2300 ldrd r2, r3, [r3]
  27634. 800c0e8: f002 0380 and.w r3, r2, #128 @ 0x80
  27635. 800c0ec: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  27636. 800c0f0: 2300 movs r3, #0
  27637. 800c0f2: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  27638. 800c0f6: e9d7 1224 ldrd r1, r2, [r7, #144] @ 0x90
  27639. 800c0fa: 460b mov r3, r1
  27640. 800c0fc: 4313 orrs r3, r2
  27641. 800c0fe: d055 beq.n 800c1ac <HAL_RCCEx_PeriphCLKConfig+0xe10>
  27642. {
  27643. switch (PeriphClkInit->Lptim345ClockSelection)
  27644. 800c100: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27645. 800c104: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  27646. 800c108: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  27647. 800c10c: d033 beq.n 800c176 <HAL_RCCEx_PeriphCLKConfig+0xdda>
  27648. 800c10e: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  27649. 800c112: d82c bhi.n 800c16e <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  27650. 800c114: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  27651. 800c118: d02f beq.n 800c17a <HAL_RCCEx_PeriphCLKConfig+0xdde>
  27652. 800c11a: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  27653. 800c11e: d826 bhi.n 800c16e <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  27654. 800c120: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  27655. 800c124: d02b beq.n 800c17e <HAL_RCCEx_PeriphCLKConfig+0xde2>
  27656. 800c126: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  27657. 800c12a: d820 bhi.n 800c16e <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  27658. 800c12c: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  27659. 800c130: d012 beq.n 800c158 <HAL_RCCEx_PeriphCLKConfig+0xdbc>
  27660. 800c132: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  27661. 800c136: d81a bhi.n 800c16e <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  27662. 800c138: 2b00 cmp r3, #0
  27663. 800c13a: d022 beq.n 800c182 <HAL_RCCEx_PeriphCLKConfig+0xde6>
  27664. 800c13c: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  27665. 800c140: d115 bne.n 800c16e <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  27666. case RCC_LPTIM345CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM3/4/5 */
  27667. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  27668. break;
  27669. case RCC_LPTIM345CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM3/4/5 */
  27670. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  27671. 800c142: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27672. 800c146: 3308 adds r3, #8
  27673. 800c148: 2100 movs r1, #0
  27674. 800c14a: 4618 mov r0, r3
  27675. 800c14c: f000 fdd2 bl 800ccf4 <RCCEx_PLL2_Config>
  27676. 800c150: 4603 mov r3, r0
  27677. 800c152: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27678. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  27679. break;
  27680. 800c156: e015 b.n 800c184 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  27681. case RCC_LPTIM345CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM3/4/5 */
  27682. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  27683. 800c158: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27684. 800c15c: 3328 adds r3, #40 @ 0x28
  27685. 800c15e: 2102 movs r1, #2
  27686. 800c160: 4618 mov r0, r3
  27687. 800c162: f000 fe79 bl 800ce58 <RCCEx_PLL3_Config>
  27688. 800c166: 4603 mov r3, r0
  27689. 800c168: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27690. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  27691. break;
  27692. 800c16c: e00a b.n 800c184 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  27693. /* HSI, HSE, or CSI oscillator is used as source of LPTIM3/4/5 clock */
  27694. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  27695. break;
  27696. default:
  27697. ret = HAL_ERROR;
  27698. 800c16e: 2301 movs r3, #1
  27699. 800c170: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27700. break;
  27701. 800c174: e006 b.n 800c184 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  27702. break;
  27703. 800c176: bf00 nop
  27704. 800c178: e004 b.n 800c184 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  27705. break;
  27706. 800c17a: bf00 nop
  27707. 800c17c: e002 b.n 800c184 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  27708. break;
  27709. 800c17e: bf00 nop
  27710. 800c180: e000 b.n 800c184 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  27711. break;
  27712. 800c182: bf00 nop
  27713. }
  27714. if (ret == HAL_OK)
  27715. 800c184: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27716. 800c188: 2b00 cmp r3, #0
  27717. 800c18a: d10b bne.n 800c1a4 <HAL_RCCEx_PeriphCLKConfig+0xe08>
  27718. {
  27719. /* Set the source of LPTIM3/4/5 clock */
  27720. __HAL_RCC_LPTIM345_CONFIG(PeriphClkInit->Lptim345ClockSelection);
  27721. 800c18c: 4bbb ldr r3, [pc, #748] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27722. 800c18e: 6d9b ldr r3, [r3, #88] @ 0x58
  27723. 800c190: f423 4160 bic.w r1, r3, #57344 @ 0xe000
  27724. 800c194: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27725. 800c198: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  27726. 800c19c: 4ab7 ldr r2, [pc, #732] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27727. 800c19e: 430b orrs r3, r1
  27728. 800c1a0: 6593 str r3, [r2, #88] @ 0x58
  27729. 800c1a2: e003 b.n 800c1ac <HAL_RCCEx_PeriphCLKConfig+0xe10>
  27730. }
  27731. else
  27732. {
  27733. /* set overall return value */
  27734. status = ret;
  27735. 800c1a4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27736. 800c1a8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27737. __HAL_RCC_I2C1235_CONFIG(PeriphClkInit->I2c1235ClockSelection);
  27738. }
  27739. #else
  27740. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C123) == RCC_PERIPHCLK_I2C123)
  27741. 800c1ac: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27742. 800c1b0: e9d3 2300 ldrd r2, r3, [r3]
  27743. 800c1b4: f002 0308 and.w r3, r2, #8
  27744. 800c1b8: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  27745. 800c1bc: 2300 movs r3, #0
  27746. 800c1be: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  27747. 800c1c2: e9d7 1222 ldrd r1, r2, [r7, #136] @ 0x88
  27748. 800c1c6: 460b mov r3, r1
  27749. 800c1c8: 4313 orrs r3, r2
  27750. 800c1ca: d01e beq.n 800c20a <HAL_RCCEx_PeriphCLKConfig+0xe6e>
  27751. {
  27752. /* Check the parameters */
  27753. assert_param(IS_RCC_I2C123CLKSOURCE(PeriphClkInit->I2c123ClockSelection));
  27754. if ((PeriphClkInit->I2c123ClockSelection) == RCC_I2C123CLKSOURCE_PLL3)
  27755. 800c1cc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27756. 800c1d0: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  27757. 800c1d4: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  27758. 800c1d8: d10c bne.n 800c1f4 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  27759. {
  27760. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  27761. 800c1da: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27762. 800c1de: 3328 adds r3, #40 @ 0x28
  27763. 800c1e0: 2102 movs r1, #2
  27764. 800c1e2: 4618 mov r0, r3
  27765. 800c1e4: f000 fe38 bl 800ce58 <RCCEx_PLL3_Config>
  27766. 800c1e8: 4603 mov r3, r0
  27767. 800c1ea: 2b00 cmp r3, #0
  27768. 800c1ec: d002 beq.n 800c1f4 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  27769. {
  27770. status = HAL_ERROR;
  27771. 800c1ee: 2301 movs r3, #1
  27772. 800c1f0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27773. }
  27774. }
  27775. __HAL_RCC_I2C123_CONFIG(PeriphClkInit->I2c123ClockSelection);
  27776. 800c1f4: 4ba1 ldr r3, [pc, #644] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27777. 800c1f6: 6d5b ldr r3, [r3, #84] @ 0x54
  27778. 800c1f8: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  27779. 800c1fc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27780. 800c200: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  27781. 800c204: 4a9d ldr r2, [pc, #628] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27782. 800c206: 430b orrs r3, r1
  27783. 800c208: 6553 str r3, [r2, #84] @ 0x54
  27784. }
  27785. #endif /* I2C5 */
  27786. /*------------------------------ I2C4 Configuration ------------------------*/
  27787. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4)
  27788. 800c20a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27789. 800c20e: e9d3 2300 ldrd r2, r3, [r3]
  27790. 800c212: f002 0310 and.w r3, r2, #16
  27791. 800c216: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  27792. 800c21a: 2300 movs r3, #0
  27793. 800c21c: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  27794. 800c220: e9d7 1220 ldrd r1, r2, [r7, #128] @ 0x80
  27795. 800c224: 460b mov r3, r1
  27796. 800c226: 4313 orrs r3, r2
  27797. 800c228: d01e beq.n 800c268 <HAL_RCCEx_PeriphCLKConfig+0xecc>
  27798. {
  27799. /* Check the parameters */
  27800. assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection));
  27801. if ((PeriphClkInit->I2c4ClockSelection) == RCC_I2C4CLKSOURCE_PLL3)
  27802. 800c22a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27803. 800c22e: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  27804. 800c232: f5b3 7f80 cmp.w r3, #256 @ 0x100
  27805. 800c236: d10c bne.n 800c252 <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  27806. {
  27807. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  27808. 800c238: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27809. 800c23c: 3328 adds r3, #40 @ 0x28
  27810. 800c23e: 2102 movs r1, #2
  27811. 800c240: 4618 mov r0, r3
  27812. 800c242: f000 fe09 bl 800ce58 <RCCEx_PLL3_Config>
  27813. 800c246: 4603 mov r3, r0
  27814. 800c248: 2b00 cmp r3, #0
  27815. 800c24a: d002 beq.n 800c252 <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  27816. {
  27817. status = HAL_ERROR;
  27818. 800c24c: 2301 movs r3, #1
  27819. 800c24e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27820. }
  27821. }
  27822. __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection);
  27823. 800c252: 4b8a ldr r3, [pc, #552] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27824. 800c254: 6d9b ldr r3, [r3, #88] @ 0x58
  27825. 800c256: f423 7140 bic.w r1, r3, #768 @ 0x300
  27826. 800c25a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27827. 800c25e: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  27828. 800c262: 4a86 ldr r2, [pc, #536] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27829. 800c264: 430b orrs r3, r1
  27830. 800c266: 6593 str r3, [r2, #88] @ 0x58
  27831. }
  27832. /*---------------------------- ADC configuration -------------------------------*/
  27833. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  27834. 800c268: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27835. 800c26c: e9d3 2300 ldrd r2, r3, [r3]
  27836. 800c270: f402 2300 and.w r3, r2, #524288 @ 0x80000
  27837. 800c274: 67bb str r3, [r7, #120] @ 0x78
  27838. 800c276: 2300 movs r3, #0
  27839. 800c278: 67fb str r3, [r7, #124] @ 0x7c
  27840. 800c27a: e9d7 121e ldrd r1, r2, [r7, #120] @ 0x78
  27841. 800c27e: 460b mov r3, r1
  27842. 800c280: 4313 orrs r3, r2
  27843. 800c282: d03e beq.n 800c302 <HAL_RCCEx_PeriphCLKConfig+0xf66>
  27844. {
  27845. switch (PeriphClkInit->AdcClockSelection)
  27846. 800c284: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27847. 800c288: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  27848. 800c28c: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  27849. 800c290: d022 beq.n 800c2d8 <HAL_RCCEx_PeriphCLKConfig+0xf3c>
  27850. 800c292: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  27851. 800c296: d81b bhi.n 800c2d0 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  27852. 800c298: 2b00 cmp r3, #0
  27853. 800c29a: d003 beq.n 800c2a4 <HAL_RCCEx_PeriphCLKConfig+0xf08>
  27854. 800c29c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  27855. 800c2a0: d00b beq.n 800c2ba <HAL_RCCEx_PeriphCLKConfig+0xf1e>
  27856. 800c2a2: e015 b.n 800c2d0 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  27857. {
  27858. case RCC_ADCCLKSOURCE_PLL2: /* PLL2 is used as clock source for ADC*/
  27859. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  27860. 800c2a4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27861. 800c2a8: 3308 adds r3, #8
  27862. 800c2aa: 2100 movs r1, #0
  27863. 800c2ac: 4618 mov r0, r3
  27864. 800c2ae: f000 fd21 bl 800ccf4 <RCCEx_PLL2_Config>
  27865. 800c2b2: 4603 mov r3, r0
  27866. 800c2b4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27867. /* ADC clock source configuration done later after clock selection check */
  27868. break;
  27869. 800c2b8: e00f b.n 800c2da <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  27870. case RCC_ADCCLKSOURCE_PLL3: /* PLL3 is used as clock source for ADC*/
  27871. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  27872. 800c2ba: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27873. 800c2be: 3328 adds r3, #40 @ 0x28
  27874. 800c2c0: 2102 movs r1, #2
  27875. 800c2c2: 4618 mov r0, r3
  27876. 800c2c4: f000 fdc8 bl 800ce58 <RCCEx_PLL3_Config>
  27877. 800c2c8: 4603 mov r3, r0
  27878. 800c2ca: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27879. /* ADC clock source configuration done later after clock selection check */
  27880. break;
  27881. 800c2ce: e004 b.n 800c2da <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  27882. /* HSI, HSE, or CSI oscillator is used as source of ADC clock */
  27883. /* ADC clock source configuration done later after clock selection check */
  27884. break;
  27885. default:
  27886. ret = HAL_ERROR;
  27887. 800c2d0: 2301 movs r3, #1
  27888. 800c2d2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27889. break;
  27890. 800c2d6: e000 b.n 800c2da <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  27891. break;
  27892. 800c2d8: bf00 nop
  27893. }
  27894. if (ret == HAL_OK)
  27895. 800c2da: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27896. 800c2de: 2b00 cmp r3, #0
  27897. 800c2e0: d10b bne.n 800c2fa <HAL_RCCEx_PeriphCLKConfig+0xf5e>
  27898. {
  27899. /* Set the source of ADC clock*/
  27900. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  27901. 800c2e2: 4b66 ldr r3, [pc, #408] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27902. 800c2e4: 6d9b ldr r3, [r3, #88] @ 0x58
  27903. 800c2e6: f423 3140 bic.w r1, r3, #196608 @ 0x30000
  27904. 800c2ea: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27905. 800c2ee: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  27906. 800c2f2: 4a62 ldr r2, [pc, #392] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27907. 800c2f4: 430b orrs r3, r1
  27908. 800c2f6: 6593 str r3, [r2, #88] @ 0x58
  27909. 800c2f8: e003 b.n 800c302 <HAL_RCCEx_PeriphCLKConfig+0xf66>
  27910. }
  27911. else
  27912. {
  27913. /* set overall return value */
  27914. status = ret;
  27915. 800c2fa: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27916. 800c2fe: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27917. }
  27918. }
  27919. /*------------------------------ USB Configuration -------------------------*/
  27920. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB)
  27921. 800c302: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27922. 800c306: e9d3 2300 ldrd r2, r3, [r3]
  27923. 800c30a: f402 2380 and.w r3, r2, #262144 @ 0x40000
  27924. 800c30e: 673b str r3, [r7, #112] @ 0x70
  27925. 800c310: 2300 movs r3, #0
  27926. 800c312: 677b str r3, [r7, #116] @ 0x74
  27927. 800c314: e9d7 121c ldrd r1, r2, [r7, #112] @ 0x70
  27928. 800c318: 460b mov r3, r1
  27929. 800c31a: 4313 orrs r3, r2
  27930. 800c31c: d03b beq.n 800c396 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  27931. {
  27932. switch (PeriphClkInit->UsbClockSelection)
  27933. 800c31e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27934. 800c322: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  27935. 800c326: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  27936. 800c32a: d01f beq.n 800c36c <HAL_RCCEx_PeriphCLKConfig+0xfd0>
  27937. 800c32c: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  27938. 800c330: d818 bhi.n 800c364 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  27939. 800c332: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  27940. 800c336: d003 beq.n 800c340 <HAL_RCCEx_PeriphCLKConfig+0xfa4>
  27941. 800c338: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  27942. 800c33c: d007 beq.n 800c34e <HAL_RCCEx_PeriphCLKConfig+0xfb2>
  27943. 800c33e: e011 b.n 800c364 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  27944. {
  27945. case RCC_USBCLKSOURCE_PLL: /* PLL is used as clock source for USB*/
  27946. /* Enable USB Clock output generated form System USB . */
  27947. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  27948. 800c340: 4b4e ldr r3, [pc, #312] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27949. 800c342: 6adb ldr r3, [r3, #44] @ 0x2c
  27950. 800c344: 4a4d ldr r2, [pc, #308] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27951. 800c346: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  27952. 800c34a: 62d3 str r3, [r2, #44] @ 0x2c
  27953. /* USB clock source configuration done later after clock selection check */
  27954. break;
  27955. 800c34c: e00f b.n 800c36e <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  27956. case RCC_USBCLKSOURCE_PLL3: /* PLL3 is used as clock source for USB*/
  27957. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  27958. 800c34e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27959. 800c352: 3328 adds r3, #40 @ 0x28
  27960. 800c354: 2101 movs r1, #1
  27961. 800c356: 4618 mov r0, r3
  27962. 800c358: f000 fd7e bl 800ce58 <RCCEx_PLL3_Config>
  27963. 800c35c: 4603 mov r3, r0
  27964. 800c35e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27965. /* USB clock source configuration done later after clock selection check */
  27966. break;
  27967. 800c362: e004 b.n 800c36e <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  27968. /* HSI48 oscillator is used as source of USB clock */
  27969. /* USB clock source configuration done later after clock selection check */
  27970. break;
  27971. default:
  27972. ret = HAL_ERROR;
  27973. 800c364: 2301 movs r3, #1
  27974. 800c366: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27975. break;
  27976. 800c36a: e000 b.n 800c36e <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  27977. break;
  27978. 800c36c: bf00 nop
  27979. }
  27980. if (ret == HAL_OK)
  27981. 800c36e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27982. 800c372: 2b00 cmp r3, #0
  27983. 800c374: d10b bne.n 800c38e <HAL_RCCEx_PeriphCLKConfig+0xff2>
  27984. {
  27985. /* Set the source of USB clock*/
  27986. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  27987. 800c376: 4b41 ldr r3, [pc, #260] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27988. 800c378: 6d5b ldr r3, [r3, #84] @ 0x54
  27989. 800c37a: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  27990. 800c37e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27991. 800c382: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  27992. 800c386: 4a3d ldr r2, [pc, #244] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27993. 800c388: 430b orrs r3, r1
  27994. 800c38a: 6553 str r3, [r2, #84] @ 0x54
  27995. 800c38c: e003 b.n 800c396 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  27996. }
  27997. else
  27998. {
  27999. /* set overall return value */
  28000. status = ret;
  28001. 800c38e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28002. 800c392: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28003. }
  28004. }
  28005. /*------------------------------------- SDMMC Configuration ------------------------------------*/
  28006. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC) == RCC_PERIPHCLK_SDMMC)
  28007. 800c396: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28008. 800c39a: e9d3 2300 ldrd r2, r3, [r3]
  28009. 800c39e: f402 3380 and.w r3, r2, #65536 @ 0x10000
  28010. 800c3a2: 66bb str r3, [r7, #104] @ 0x68
  28011. 800c3a4: 2300 movs r3, #0
  28012. 800c3a6: 66fb str r3, [r7, #108] @ 0x6c
  28013. 800c3a8: e9d7 121a ldrd r1, r2, [r7, #104] @ 0x68
  28014. 800c3ac: 460b mov r3, r1
  28015. 800c3ae: 4313 orrs r3, r2
  28016. 800c3b0: d031 beq.n 800c416 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  28017. {
  28018. /* Check the parameters */
  28019. assert_param(IS_RCC_SDMMC(PeriphClkInit->SdmmcClockSelection));
  28020. switch (PeriphClkInit->SdmmcClockSelection)
  28021. 800c3b2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28022. 800c3b6: 6d1b ldr r3, [r3, #80] @ 0x50
  28023. 800c3b8: 2b00 cmp r3, #0
  28024. 800c3ba: d003 beq.n 800c3c4 <HAL_RCCEx_PeriphCLKConfig+0x1028>
  28025. 800c3bc: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  28026. 800c3c0: d007 beq.n 800c3d2 <HAL_RCCEx_PeriphCLKConfig+0x1036>
  28027. 800c3c2: e011 b.n 800c3e8 <HAL_RCCEx_PeriphCLKConfig+0x104c>
  28028. {
  28029. case RCC_SDMMCCLKSOURCE_PLL: /* PLL is used as clock source for SDMMC*/
  28030. /* Enable SDMMC Clock output generated form System PLL . */
  28031. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28032. 800c3c4: 4b2d ldr r3, [pc, #180] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  28033. 800c3c6: 6adb ldr r3, [r3, #44] @ 0x2c
  28034. 800c3c8: 4a2c ldr r2, [pc, #176] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  28035. 800c3ca: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28036. 800c3ce: 62d3 str r3, [r2, #44] @ 0x2c
  28037. /* SDMMC clock source configuration done later after clock selection check */
  28038. break;
  28039. 800c3d0: e00e b.n 800c3f0 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  28040. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for SDMMC*/
  28041. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  28042. 800c3d2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28043. 800c3d6: 3308 adds r3, #8
  28044. 800c3d8: 2102 movs r1, #2
  28045. 800c3da: 4618 mov r0, r3
  28046. 800c3dc: f000 fc8a bl 800ccf4 <RCCEx_PLL2_Config>
  28047. 800c3e0: 4603 mov r3, r0
  28048. 800c3e2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28049. /* SDMMC clock source configuration done later after clock selection check */
  28050. break;
  28051. 800c3e6: e003 b.n 800c3f0 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  28052. default:
  28053. ret = HAL_ERROR;
  28054. 800c3e8: 2301 movs r3, #1
  28055. 800c3ea: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28056. break;
  28057. 800c3ee: bf00 nop
  28058. }
  28059. if (ret == HAL_OK)
  28060. 800c3f0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28061. 800c3f4: 2b00 cmp r3, #0
  28062. 800c3f6: d10a bne.n 800c40e <HAL_RCCEx_PeriphCLKConfig+0x1072>
  28063. {
  28064. /* Set the source of SDMMC clock*/
  28065. __HAL_RCC_SDMMC_CONFIG(PeriphClkInit->SdmmcClockSelection);
  28066. 800c3f8: 4b20 ldr r3, [pc, #128] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  28067. 800c3fa: 6cdb ldr r3, [r3, #76] @ 0x4c
  28068. 800c3fc: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  28069. 800c400: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28070. 800c404: 6d1b ldr r3, [r3, #80] @ 0x50
  28071. 800c406: 4a1d ldr r2, [pc, #116] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  28072. 800c408: 430b orrs r3, r1
  28073. 800c40a: 64d3 str r3, [r2, #76] @ 0x4c
  28074. 800c40c: e003 b.n 800c416 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  28075. }
  28076. else
  28077. {
  28078. /* set overall return value */
  28079. status = ret;
  28080. 800c40e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28081. 800c412: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28082. }
  28083. }
  28084. #endif /* LTDC */
  28085. /*------------------------------ RNG Configuration -------------------------*/
  28086. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == RCC_PERIPHCLK_RNG)
  28087. 800c416: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28088. 800c41a: e9d3 2300 ldrd r2, r3, [r3]
  28089. 800c41e: f402 3300 and.w r3, r2, #131072 @ 0x20000
  28090. 800c422: 663b str r3, [r7, #96] @ 0x60
  28091. 800c424: 2300 movs r3, #0
  28092. 800c426: 667b str r3, [r7, #100] @ 0x64
  28093. 800c428: e9d7 1218 ldrd r1, r2, [r7, #96] @ 0x60
  28094. 800c42c: 460b mov r3, r1
  28095. 800c42e: 4313 orrs r3, r2
  28096. 800c430: d03b beq.n 800c4aa <HAL_RCCEx_PeriphCLKConfig+0x110e>
  28097. {
  28098. switch (PeriphClkInit->RngClockSelection)
  28099. 800c432: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28100. 800c436: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  28101. 800c43a: f5b3 7f40 cmp.w r3, #768 @ 0x300
  28102. 800c43e: d018 beq.n 800c472 <HAL_RCCEx_PeriphCLKConfig+0x10d6>
  28103. 800c440: f5b3 7f40 cmp.w r3, #768 @ 0x300
  28104. 800c444: d811 bhi.n 800c46a <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  28105. 800c446: f5b3 7f00 cmp.w r3, #512 @ 0x200
  28106. 800c44a: d014 beq.n 800c476 <HAL_RCCEx_PeriphCLKConfig+0x10da>
  28107. 800c44c: f5b3 7f00 cmp.w r3, #512 @ 0x200
  28108. 800c450: d80b bhi.n 800c46a <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  28109. 800c452: 2b00 cmp r3, #0
  28110. 800c454: d014 beq.n 800c480 <HAL_RCCEx_PeriphCLKConfig+0x10e4>
  28111. 800c456: f5b3 7f80 cmp.w r3, #256 @ 0x100
  28112. 800c45a: d106 bne.n 800c46a <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  28113. {
  28114. case RCC_RNGCLKSOURCE_PLL: /* PLL is used as clock source for RNG*/
  28115. /* Enable RNG Clock output generated form System RNG . */
  28116. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28117. 800c45c: 4b07 ldr r3, [pc, #28] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  28118. 800c45e: 6adb ldr r3, [r3, #44] @ 0x2c
  28119. 800c460: 4a06 ldr r2, [pc, #24] @ (800c47c <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  28120. 800c462: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28121. 800c466: 62d3 str r3, [r2, #44] @ 0x2c
  28122. /* RNG clock source configuration done later after clock selection check */
  28123. break;
  28124. 800c468: e00b b.n 800c482 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  28125. /* HSI48 oscillator is used as source of RNG clock */
  28126. /* RNG clock source configuration done later after clock selection check */
  28127. break;
  28128. default:
  28129. ret = HAL_ERROR;
  28130. 800c46a: 2301 movs r3, #1
  28131. 800c46c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28132. break;
  28133. 800c470: e007 b.n 800c482 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  28134. break;
  28135. 800c472: bf00 nop
  28136. 800c474: e005 b.n 800c482 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  28137. break;
  28138. 800c476: bf00 nop
  28139. 800c478: e003 b.n 800c482 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  28140. 800c47a: bf00 nop
  28141. 800c47c: 58024400 .word 0x58024400
  28142. break;
  28143. 800c480: bf00 nop
  28144. }
  28145. if (ret == HAL_OK)
  28146. 800c482: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28147. 800c486: 2b00 cmp r3, #0
  28148. 800c488: d10b bne.n 800c4a2 <HAL_RCCEx_PeriphCLKConfig+0x1106>
  28149. {
  28150. /* Set the source of RNG clock*/
  28151. __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection);
  28152. 800c48a: 4bba ldr r3, [pc, #744] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28153. 800c48c: 6d5b ldr r3, [r3, #84] @ 0x54
  28154. 800c48e: f423 7140 bic.w r1, r3, #768 @ 0x300
  28155. 800c492: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28156. 800c496: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  28157. 800c49a: 4ab6 ldr r2, [pc, #728] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28158. 800c49c: 430b orrs r3, r1
  28159. 800c49e: 6553 str r3, [r2, #84] @ 0x54
  28160. 800c4a0: e003 b.n 800c4aa <HAL_RCCEx_PeriphCLKConfig+0x110e>
  28161. }
  28162. else
  28163. {
  28164. /* set overall return value */
  28165. status = ret;
  28166. 800c4a2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28167. 800c4a6: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28168. }
  28169. }
  28170. /*------------------------------ SWPMI1 Configuration ------------------------*/
  28171. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SWPMI1) == RCC_PERIPHCLK_SWPMI1)
  28172. 800c4aa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28173. 800c4ae: e9d3 2300 ldrd r2, r3, [r3]
  28174. 800c4b2: f402 1380 and.w r3, r2, #1048576 @ 0x100000
  28175. 800c4b6: 65bb str r3, [r7, #88] @ 0x58
  28176. 800c4b8: 2300 movs r3, #0
  28177. 800c4ba: 65fb str r3, [r7, #92] @ 0x5c
  28178. 800c4bc: e9d7 1216 ldrd r1, r2, [r7, #88] @ 0x58
  28179. 800c4c0: 460b mov r3, r1
  28180. 800c4c2: 4313 orrs r3, r2
  28181. 800c4c4: d009 beq.n 800c4da <HAL_RCCEx_PeriphCLKConfig+0x113e>
  28182. {
  28183. /* Check the parameters */
  28184. assert_param(IS_RCC_SWPMI1CLKSOURCE(PeriphClkInit->Swpmi1ClockSelection));
  28185. /* Configure the SWPMI1 interface clock source */
  28186. __HAL_RCC_SWPMI1_CONFIG(PeriphClkInit->Swpmi1ClockSelection);
  28187. 800c4c6: 4bab ldr r3, [pc, #684] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28188. 800c4c8: 6d1b ldr r3, [r3, #80] @ 0x50
  28189. 800c4ca: f023 4100 bic.w r1, r3, #2147483648 @ 0x80000000
  28190. 800c4ce: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28191. 800c4d2: 6f5b ldr r3, [r3, #116] @ 0x74
  28192. 800c4d4: 4aa7 ldr r2, [pc, #668] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28193. 800c4d6: 430b orrs r3, r1
  28194. 800c4d8: 6513 str r3, [r2, #80] @ 0x50
  28195. }
  28196. #if defined(HRTIM1)
  28197. /*------------------------------ HRTIM1 clock Configuration ----------------*/
  28198. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_HRTIM1) == RCC_PERIPHCLK_HRTIM1)
  28199. 800c4da: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28200. 800c4de: e9d3 2300 ldrd r2, r3, [r3]
  28201. 800c4e2: f002 5380 and.w r3, r2, #268435456 @ 0x10000000
  28202. 800c4e6: 653b str r3, [r7, #80] @ 0x50
  28203. 800c4e8: 2300 movs r3, #0
  28204. 800c4ea: 657b str r3, [r7, #84] @ 0x54
  28205. 800c4ec: e9d7 1214 ldrd r1, r2, [r7, #80] @ 0x50
  28206. 800c4f0: 460b mov r3, r1
  28207. 800c4f2: 4313 orrs r3, r2
  28208. 800c4f4: d00a beq.n 800c50c <HAL_RCCEx_PeriphCLKConfig+0x1170>
  28209. {
  28210. /* Check the parameters */
  28211. assert_param(IS_RCC_HRTIM1CLKSOURCE(PeriphClkInit->Hrtim1ClockSelection));
  28212. /* Configure the HRTIM1 clock source */
  28213. __HAL_RCC_HRTIM1_CONFIG(PeriphClkInit->Hrtim1ClockSelection);
  28214. 800c4f6: 4b9f ldr r3, [pc, #636] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28215. 800c4f8: 691b ldr r3, [r3, #16]
  28216. 800c4fa: f423 4180 bic.w r1, r3, #16384 @ 0x4000
  28217. 800c4fe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28218. 800c502: f8d3 30b8 ldr.w r3, [r3, #184] @ 0xb8
  28219. 800c506: 4a9b ldr r2, [pc, #620] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28220. 800c508: 430b orrs r3, r1
  28221. 800c50a: 6113 str r3, [r2, #16]
  28222. }
  28223. #endif /*HRTIM1*/
  28224. /*------------------------------ DFSDM1 Configuration ------------------------*/
  28225. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1)
  28226. 800c50c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28227. 800c510: e9d3 2300 ldrd r2, r3, [r3]
  28228. 800c514: f402 1300 and.w r3, r2, #2097152 @ 0x200000
  28229. 800c518: 64bb str r3, [r7, #72] @ 0x48
  28230. 800c51a: 2300 movs r3, #0
  28231. 800c51c: 64fb str r3, [r7, #76] @ 0x4c
  28232. 800c51e: e9d7 1212 ldrd r1, r2, [r7, #72] @ 0x48
  28233. 800c522: 460b mov r3, r1
  28234. 800c524: 4313 orrs r3, r2
  28235. 800c526: d009 beq.n 800c53c <HAL_RCCEx_PeriphCLKConfig+0x11a0>
  28236. {
  28237. /* Check the parameters */
  28238. assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection));
  28239. /* Configure the DFSDM1 interface clock source */
  28240. __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection);
  28241. 800c528: 4b92 ldr r3, [pc, #584] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28242. 800c52a: 6d1b ldr r3, [r3, #80] @ 0x50
  28243. 800c52c: f023 7180 bic.w r1, r3, #16777216 @ 0x1000000
  28244. 800c530: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28245. 800c534: 6edb ldr r3, [r3, #108] @ 0x6c
  28246. 800c536: 4a8f ldr r2, [pc, #572] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28247. 800c538: 430b orrs r3, r1
  28248. 800c53a: 6513 str r3, [r2, #80] @ 0x50
  28249. __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection);
  28250. }
  28251. #endif /* DFSDM2 */
  28252. /*------------------------------------ TIM configuration --------------------------------------*/
  28253. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == RCC_PERIPHCLK_TIM)
  28254. 800c53c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28255. 800c540: e9d3 2300 ldrd r2, r3, [r3]
  28256. 800c544: f002 4380 and.w r3, r2, #1073741824 @ 0x40000000
  28257. 800c548: 643b str r3, [r7, #64] @ 0x40
  28258. 800c54a: 2300 movs r3, #0
  28259. 800c54c: 647b str r3, [r7, #68] @ 0x44
  28260. 800c54e: e9d7 1210 ldrd r1, r2, [r7, #64] @ 0x40
  28261. 800c552: 460b mov r3, r1
  28262. 800c554: 4313 orrs r3, r2
  28263. 800c556: d00e beq.n 800c576 <HAL_RCCEx_PeriphCLKConfig+0x11da>
  28264. {
  28265. /* Check the parameters */
  28266. assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection));
  28267. /* Configure Timer Prescaler */
  28268. __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
  28269. 800c558: 4b86 ldr r3, [pc, #536] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28270. 800c55a: 691b ldr r3, [r3, #16]
  28271. 800c55c: 4a85 ldr r2, [pc, #532] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28272. 800c55e: f423 4300 bic.w r3, r3, #32768 @ 0x8000
  28273. 800c562: 6113 str r3, [r2, #16]
  28274. 800c564: 4b83 ldr r3, [pc, #524] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28275. 800c566: 6919 ldr r1, [r3, #16]
  28276. 800c568: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28277. 800c56c: f8d3 30bc ldr.w r3, [r3, #188] @ 0xbc
  28278. 800c570: 4a80 ldr r2, [pc, #512] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28279. 800c572: 430b orrs r3, r1
  28280. 800c574: 6113 str r3, [r2, #16]
  28281. }
  28282. /*------------------------------------ CKPER configuration --------------------------------------*/
  28283. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == RCC_PERIPHCLK_CKPER)
  28284. 800c576: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28285. 800c57a: e9d3 2300 ldrd r2, r3, [r3]
  28286. 800c57e: f002 4300 and.w r3, r2, #2147483648 @ 0x80000000
  28287. 800c582: 63bb str r3, [r7, #56] @ 0x38
  28288. 800c584: 2300 movs r3, #0
  28289. 800c586: 63fb str r3, [r7, #60] @ 0x3c
  28290. 800c588: e9d7 120e ldrd r1, r2, [r7, #56] @ 0x38
  28291. 800c58c: 460b mov r3, r1
  28292. 800c58e: 4313 orrs r3, r2
  28293. 800c590: d009 beq.n 800c5a6 <HAL_RCCEx_PeriphCLKConfig+0x120a>
  28294. {
  28295. /* Check the parameters */
  28296. assert_param(IS_RCC_CLKPSOURCE(PeriphClkInit->CkperClockSelection));
  28297. /* Configure the CKPER clock source */
  28298. __HAL_RCC_CLKP_CONFIG(PeriphClkInit->CkperClockSelection);
  28299. 800c592: 4b78 ldr r3, [pc, #480] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28300. 800c594: 6cdb ldr r3, [r3, #76] @ 0x4c
  28301. 800c596: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  28302. 800c59a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28303. 800c59e: 6d5b ldr r3, [r3, #84] @ 0x54
  28304. 800c5a0: 4a74 ldr r2, [pc, #464] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28305. 800c5a2: 430b orrs r3, r1
  28306. 800c5a4: 64d3 str r3, [r2, #76] @ 0x4c
  28307. }
  28308. /*------------------------------ CEC Configuration ------------------------*/
  28309. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC)
  28310. 800c5a6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28311. 800c5aa: e9d3 2300 ldrd r2, r3, [r3]
  28312. 800c5ae: f402 0300 and.w r3, r2, #8388608 @ 0x800000
  28313. 800c5b2: 633b str r3, [r7, #48] @ 0x30
  28314. 800c5b4: 2300 movs r3, #0
  28315. 800c5b6: 637b str r3, [r7, #52] @ 0x34
  28316. 800c5b8: e9d7 120c ldrd r1, r2, [r7, #48] @ 0x30
  28317. 800c5bc: 460b mov r3, r1
  28318. 800c5be: 4313 orrs r3, r2
  28319. 800c5c0: d00a beq.n 800c5d8 <HAL_RCCEx_PeriphCLKConfig+0x123c>
  28320. {
  28321. /* Check the parameters */
  28322. assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection));
  28323. /* Configure the CEC interface clock source */
  28324. __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection);
  28325. 800c5c2: 4b6c ldr r3, [pc, #432] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28326. 800c5c4: 6d5b ldr r3, [r3, #84] @ 0x54
  28327. 800c5c6: f423 0140 bic.w r1, r3, #12582912 @ 0xc00000
  28328. 800c5ca: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28329. 800c5ce: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  28330. 800c5d2: 4a68 ldr r2, [pc, #416] @ (800c774 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  28331. 800c5d4: 430b orrs r3, r1
  28332. 800c5d6: 6553 str r3, [r2, #84] @ 0x54
  28333. }
  28334. /*---------------------------- PLL2 configuration -------------------------------*/
  28335. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVP) == RCC_PERIPHCLK_PLL2_DIVP)
  28336. 800c5d8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28337. 800c5dc: e9d3 2300 ldrd r2, r3, [r3]
  28338. 800c5e0: 2100 movs r1, #0
  28339. 800c5e2: 62b9 str r1, [r7, #40] @ 0x28
  28340. 800c5e4: f003 0301 and.w r3, r3, #1
  28341. 800c5e8: 62fb str r3, [r7, #44] @ 0x2c
  28342. 800c5ea: e9d7 120a ldrd r1, r2, [r7, #40] @ 0x28
  28343. 800c5ee: 460b mov r3, r1
  28344. 800c5f0: 4313 orrs r3, r2
  28345. 800c5f2: d011 beq.n 800c618 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  28346. {
  28347. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28348. 800c5f4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28349. 800c5f8: 3308 adds r3, #8
  28350. 800c5fa: 2100 movs r1, #0
  28351. 800c5fc: 4618 mov r0, r3
  28352. 800c5fe: f000 fb79 bl 800ccf4 <RCCEx_PLL2_Config>
  28353. 800c602: 4603 mov r3, r0
  28354. 800c604: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28355. if (ret == HAL_OK)
  28356. 800c608: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28357. 800c60c: 2b00 cmp r3, #0
  28358. 800c60e: d003 beq.n 800c618 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  28359. /*Nothing to do*/
  28360. }
  28361. else
  28362. {
  28363. /* set overall return value */
  28364. status = ret;
  28365. 800c610: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28366. 800c614: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28367. }
  28368. }
  28369. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVQ) == RCC_PERIPHCLK_PLL2_DIVQ)
  28370. 800c618: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28371. 800c61c: e9d3 2300 ldrd r2, r3, [r3]
  28372. 800c620: 2100 movs r1, #0
  28373. 800c622: 6239 str r1, [r7, #32]
  28374. 800c624: f003 0302 and.w r3, r3, #2
  28375. 800c628: 627b str r3, [r7, #36] @ 0x24
  28376. 800c62a: e9d7 1208 ldrd r1, r2, [r7, #32]
  28377. 800c62e: 460b mov r3, r1
  28378. 800c630: 4313 orrs r3, r2
  28379. 800c632: d011 beq.n 800c658 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  28380. {
  28381. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  28382. 800c634: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28383. 800c638: 3308 adds r3, #8
  28384. 800c63a: 2101 movs r1, #1
  28385. 800c63c: 4618 mov r0, r3
  28386. 800c63e: f000 fb59 bl 800ccf4 <RCCEx_PLL2_Config>
  28387. 800c642: 4603 mov r3, r0
  28388. 800c644: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28389. if (ret == HAL_OK)
  28390. 800c648: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28391. 800c64c: 2b00 cmp r3, #0
  28392. 800c64e: d003 beq.n 800c658 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  28393. /*Nothing to do*/
  28394. }
  28395. else
  28396. {
  28397. /* set overall return value */
  28398. status = ret;
  28399. 800c650: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28400. 800c654: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28401. }
  28402. }
  28403. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVR) == RCC_PERIPHCLK_PLL2_DIVR)
  28404. 800c658: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28405. 800c65c: e9d3 2300 ldrd r2, r3, [r3]
  28406. 800c660: 2100 movs r1, #0
  28407. 800c662: 61b9 str r1, [r7, #24]
  28408. 800c664: f003 0304 and.w r3, r3, #4
  28409. 800c668: 61fb str r3, [r7, #28]
  28410. 800c66a: e9d7 1206 ldrd r1, r2, [r7, #24]
  28411. 800c66e: 460b mov r3, r1
  28412. 800c670: 4313 orrs r3, r2
  28413. 800c672: d011 beq.n 800c698 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  28414. {
  28415. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  28416. 800c674: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28417. 800c678: 3308 adds r3, #8
  28418. 800c67a: 2102 movs r1, #2
  28419. 800c67c: 4618 mov r0, r3
  28420. 800c67e: f000 fb39 bl 800ccf4 <RCCEx_PLL2_Config>
  28421. 800c682: 4603 mov r3, r0
  28422. 800c684: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28423. if (ret == HAL_OK)
  28424. 800c688: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28425. 800c68c: 2b00 cmp r3, #0
  28426. 800c68e: d003 beq.n 800c698 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  28427. /*Nothing to do*/
  28428. }
  28429. else
  28430. {
  28431. /* set overall return value */
  28432. status = ret;
  28433. 800c690: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28434. 800c694: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28435. }
  28436. }
  28437. /*---------------------------- PLL3 configuration -------------------------------*/
  28438. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVP) == RCC_PERIPHCLK_PLL3_DIVP)
  28439. 800c698: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28440. 800c69c: e9d3 2300 ldrd r2, r3, [r3]
  28441. 800c6a0: 2100 movs r1, #0
  28442. 800c6a2: 6139 str r1, [r7, #16]
  28443. 800c6a4: f003 0308 and.w r3, r3, #8
  28444. 800c6a8: 617b str r3, [r7, #20]
  28445. 800c6aa: e9d7 1204 ldrd r1, r2, [r7, #16]
  28446. 800c6ae: 460b mov r3, r1
  28447. 800c6b0: 4313 orrs r3, r2
  28448. 800c6b2: d011 beq.n 800c6d8 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  28449. {
  28450. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28451. 800c6b4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28452. 800c6b8: 3328 adds r3, #40 @ 0x28
  28453. 800c6ba: 2100 movs r1, #0
  28454. 800c6bc: 4618 mov r0, r3
  28455. 800c6be: f000 fbcb bl 800ce58 <RCCEx_PLL3_Config>
  28456. 800c6c2: 4603 mov r3, r0
  28457. 800c6c4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28458. if (ret == HAL_OK)
  28459. 800c6c8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28460. 800c6cc: 2b00 cmp r3, #0
  28461. 800c6ce: d003 beq.n 800c6d8 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  28462. /*Nothing to do*/
  28463. }
  28464. else
  28465. {
  28466. /* set overall return value */
  28467. status = ret;
  28468. 800c6d0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28469. 800c6d4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28470. }
  28471. }
  28472. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVQ) == RCC_PERIPHCLK_PLL3_DIVQ)
  28473. 800c6d8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28474. 800c6dc: e9d3 2300 ldrd r2, r3, [r3]
  28475. 800c6e0: 2100 movs r1, #0
  28476. 800c6e2: 60b9 str r1, [r7, #8]
  28477. 800c6e4: f003 0310 and.w r3, r3, #16
  28478. 800c6e8: 60fb str r3, [r7, #12]
  28479. 800c6ea: e9d7 1202 ldrd r1, r2, [r7, #8]
  28480. 800c6ee: 460b mov r3, r1
  28481. 800c6f0: 4313 orrs r3, r2
  28482. 800c6f2: d011 beq.n 800c718 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  28483. {
  28484. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  28485. 800c6f4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28486. 800c6f8: 3328 adds r3, #40 @ 0x28
  28487. 800c6fa: 2101 movs r1, #1
  28488. 800c6fc: 4618 mov r0, r3
  28489. 800c6fe: f000 fbab bl 800ce58 <RCCEx_PLL3_Config>
  28490. 800c702: 4603 mov r3, r0
  28491. 800c704: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28492. if (ret == HAL_OK)
  28493. 800c708: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28494. 800c70c: 2b00 cmp r3, #0
  28495. 800c70e: d003 beq.n 800c718 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  28496. /*Nothing to do*/
  28497. }
  28498. else
  28499. {
  28500. /* set overall return value */
  28501. status = ret;
  28502. 800c710: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28503. 800c714: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28504. }
  28505. }
  28506. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVR) == RCC_PERIPHCLK_PLL3_DIVR)
  28507. 800c718: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28508. 800c71c: e9d3 2300 ldrd r2, r3, [r3]
  28509. 800c720: 2100 movs r1, #0
  28510. 800c722: 6039 str r1, [r7, #0]
  28511. 800c724: f003 0320 and.w r3, r3, #32
  28512. 800c728: 607b str r3, [r7, #4]
  28513. 800c72a: e9d7 1200 ldrd r1, r2, [r7]
  28514. 800c72e: 460b mov r3, r1
  28515. 800c730: 4313 orrs r3, r2
  28516. 800c732: d011 beq.n 800c758 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  28517. {
  28518. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  28519. 800c734: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28520. 800c738: 3328 adds r3, #40 @ 0x28
  28521. 800c73a: 2102 movs r1, #2
  28522. 800c73c: 4618 mov r0, r3
  28523. 800c73e: f000 fb8b bl 800ce58 <RCCEx_PLL3_Config>
  28524. 800c742: 4603 mov r3, r0
  28525. 800c744: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28526. if (ret == HAL_OK)
  28527. 800c748: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28528. 800c74c: 2b00 cmp r3, #0
  28529. 800c74e: d003 beq.n 800c758 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  28530. /*Nothing to do*/
  28531. }
  28532. else
  28533. {
  28534. /* set overall return value */
  28535. status = ret;
  28536. 800c750: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28537. 800c754: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28538. }
  28539. }
  28540. if (status == HAL_OK)
  28541. 800c758: f897 311e ldrb.w r3, [r7, #286] @ 0x11e
  28542. 800c75c: 2b00 cmp r3, #0
  28543. 800c75e: d101 bne.n 800c764 <HAL_RCCEx_PeriphCLKConfig+0x13c8>
  28544. {
  28545. return HAL_OK;
  28546. 800c760: 2300 movs r3, #0
  28547. 800c762: e000 b.n 800c766 <HAL_RCCEx_PeriphCLKConfig+0x13ca>
  28548. }
  28549. return HAL_ERROR;
  28550. 800c764: 2301 movs r3, #1
  28551. }
  28552. 800c766: 4618 mov r0, r3
  28553. 800c768: f507 7790 add.w r7, r7, #288 @ 0x120
  28554. 800c76c: 46bd mov sp, r7
  28555. 800c76e: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  28556. 800c772: bf00 nop
  28557. 800c774: 58024400 .word 0x58024400
  28558. 0800c778 <HAL_RCCEx_GetD3PCLK1Freq>:
  28559. * @note Each time D3PCLK1 changes, this function must be called to update the
  28560. * right D3PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  28561. * @retval D3PCLK1 frequency
  28562. */
  28563. uint32_t HAL_RCCEx_GetD3PCLK1Freq(void)
  28564. {
  28565. 800c778: b580 push {r7, lr}
  28566. 800c77a: af00 add r7, sp, #0
  28567. #if defined(RCC_D3CFGR_D3PPRE)
  28568. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  28569. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D3CFGR & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos] & 0x1FU));
  28570. 800c77c: f7fe fd70 bl 800b260 <HAL_RCC_GetHCLKFreq>
  28571. 800c780: 4602 mov r2, r0
  28572. 800c782: 4b06 ldr r3, [pc, #24] @ (800c79c <HAL_RCCEx_GetD3PCLK1Freq+0x24>)
  28573. 800c784: 6a1b ldr r3, [r3, #32]
  28574. 800c786: 091b lsrs r3, r3, #4
  28575. 800c788: f003 0307 and.w r3, r3, #7
  28576. 800c78c: 4904 ldr r1, [pc, #16] @ (800c7a0 <HAL_RCCEx_GetD3PCLK1Freq+0x28>)
  28577. 800c78e: 5ccb ldrb r3, [r1, r3]
  28578. 800c790: f003 031f and.w r3, r3, #31
  28579. 800c794: fa22 f303 lsr.w r3, r2, r3
  28580. #else
  28581. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  28582. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos] & 0x1FU));
  28583. #endif
  28584. }
  28585. 800c798: 4618 mov r0, r3
  28586. 800c79a: bd80 pop {r7, pc}
  28587. 800c79c: 58024400 .word 0x58024400
  28588. 800c7a0: 0803196c .word 0x0803196c
  28589. 0800c7a4 <HAL_RCCEx_GetPLL2ClockFreq>:
  28590. * right PLL2CLK value. Otherwise, any configuration based on this function will be incorrect.
  28591. * @param PLL2_Clocks structure.
  28592. * @retval None
  28593. */
  28594. void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks)
  28595. {
  28596. 800c7a4: b480 push {r7}
  28597. 800c7a6: b089 sub sp, #36 @ 0x24
  28598. 800c7a8: af00 add r7, sp, #0
  28599. 800c7aa: 6078 str r0, [r7, #4]
  28600. float_t fracn2, pll2vco;
  28601. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL2M) * PLL2N
  28602. PLL2xCLK = PLL2_VCO / PLL2x
  28603. */
  28604. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  28605. 800c7ac: 4ba1 ldr r3, [pc, #644] @ (800ca34 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28606. 800c7ae: 6a9b ldr r3, [r3, #40] @ 0x28
  28607. 800c7b0: f003 0303 and.w r3, r3, #3
  28608. 800c7b4: 61bb str r3, [r7, #24]
  28609. pll2m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> 12);
  28610. 800c7b6: 4b9f ldr r3, [pc, #636] @ (800ca34 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28611. 800c7b8: 6a9b ldr r3, [r3, #40] @ 0x28
  28612. 800c7ba: 0b1b lsrs r3, r3, #12
  28613. 800c7bc: f003 033f and.w r3, r3, #63 @ 0x3f
  28614. 800c7c0: 617b str r3, [r7, #20]
  28615. pll2fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL2FRACEN) >> RCC_PLLCFGR_PLL2FRACEN_Pos;
  28616. 800c7c2: 4b9c ldr r3, [pc, #624] @ (800ca34 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28617. 800c7c4: 6adb ldr r3, [r3, #44] @ 0x2c
  28618. 800c7c6: 091b lsrs r3, r3, #4
  28619. 800c7c8: f003 0301 and.w r3, r3, #1
  28620. 800c7cc: 613b str r3, [r7, #16]
  28621. fracn2 = (float_t)(uint32_t)(pll2fracen * ((RCC->PLL2FRACR & RCC_PLL2FRACR_FRACN2) >> 3));
  28622. 800c7ce: 4b99 ldr r3, [pc, #612] @ (800ca34 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28623. 800c7d0: 6bdb ldr r3, [r3, #60] @ 0x3c
  28624. 800c7d2: 08db lsrs r3, r3, #3
  28625. 800c7d4: f3c3 030c ubfx r3, r3, #0, #13
  28626. 800c7d8: 693a ldr r2, [r7, #16]
  28627. 800c7da: fb02 f303 mul.w r3, r2, r3
  28628. 800c7de: ee07 3a90 vmov s15, r3
  28629. 800c7e2: eef8 7a67 vcvt.f32.u32 s15, s15
  28630. 800c7e6: edc7 7a03 vstr s15, [r7, #12]
  28631. if (pll2m != 0U)
  28632. 800c7ea: 697b ldr r3, [r7, #20]
  28633. 800c7ec: 2b00 cmp r3, #0
  28634. 800c7ee: f000 8111 beq.w 800ca14 <HAL_RCCEx_GetPLL2ClockFreq+0x270>
  28635. {
  28636. switch (pllsource)
  28637. 800c7f2: 69bb ldr r3, [r7, #24]
  28638. 800c7f4: 2b02 cmp r3, #2
  28639. 800c7f6: f000 8083 beq.w 800c900 <HAL_RCCEx_GetPLL2ClockFreq+0x15c>
  28640. 800c7fa: 69bb ldr r3, [r7, #24]
  28641. 800c7fc: 2b02 cmp r3, #2
  28642. 800c7fe: f200 80a1 bhi.w 800c944 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  28643. 800c802: 69bb ldr r3, [r7, #24]
  28644. 800c804: 2b00 cmp r3, #0
  28645. 800c806: d003 beq.n 800c810 <HAL_RCCEx_GetPLL2ClockFreq+0x6c>
  28646. 800c808: 69bb ldr r3, [r7, #24]
  28647. 800c80a: 2b01 cmp r3, #1
  28648. 800c80c: d056 beq.n 800c8bc <HAL_RCCEx_GetPLL2ClockFreq+0x118>
  28649. 800c80e: e099 b.n 800c944 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  28650. {
  28651. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  28652. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  28653. 800c810: 4b88 ldr r3, [pc, #544] @ (800ca34 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28654. 800c812: 681b ldr r3, [r3, #0]
  28655. 800c814: f003 0320 and.w r3, r3, #32
  28656. 800c818: 2b00 cmp r3, #0
  28657. 800c81a: d02d beq.n 800c878 <HAL_RCCEx_GetPLL2ClockFreq+0xd4>
  28658. {
  28659. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  28660. 800c81c: 4b85 ldr r3, [pc, #532] @ (800ca34 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28661. 800c81e: 681b ldr r3, [r3, #0]
  28662. 800c820: 08db lsrs r3, r3, #3
  28663. 800c822: f003 0303 and.w r3, r3, #3
  28664. 800c826: 4a84 ldr r2, [pc, #528] @ (800ca38 <HAL_RCCEx_GetPLL2ClockFreq+0x294>)
  28665. 800c828: fa22 f303 lsr.w r3, r2, r3
  28666. 800c82c: 60bb str r3, [r7, #8]
  28667. pll2vco = ((float_t)hsivalue / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  28668. 800c82e: 68bb ldr r3, [r7, #8]
  28669. 800c830: ee07 3a90 vmov s15, r3
  28670. 800c834: eef8 6a67 vcvt.f32.u32 s13, s15
  28671. 800c838: 697b ldr r3, [r7, #20]
  28672. 800c83a: ee07 3a90 vmov s15, r3
  28673. 800c83e: eef8 7a67 vcvt.f32.u32 s15, s15
  28674. 800c842: ee86 7aa7 vdiv.f32 s14, s13, s15
  28675. 800c846: 4b7b ldr r3, [pc, #492] @ (800ca34 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28676. 800c848: 6b9b ldr r3, [r3, #56] @ 0x38
  28677. 800c84a: f3c3 0308 ubfx r3, r3, #0, #9
  28678. 800c84e: ee07 3a90 vmov s15, r3
  28679. 800c852: eef8 6a67 vcvt.f32.u32 s13, s15
  28680. 800c856: ed97 6a03 vldr s12, [r7, #12]
  28681. 800c85a: eddf 5a78 vldr s11, [pc, #480] @ 800ca3c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  28682. 800c85e: eec6 7a25 vdiv.f32 s15, s12, s11
  28683. 800c862: ee76 7aa7 vadd.f32 s15, s13, s15
  28684. 800c866: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28685. 800c86a: ee77 7aa6 vadd.f32 s15, s15, s13
  28686. 800c86e: ee67 7a27 vmul.f32 s15, s14, s15
  28687. 800c872: edc7 7a07 vstr s15, [r7, #28]
  28688. }
  28689. else
  28690. {
  28691. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  28692. }
  28693. break;
  28694. 800c876: e087 b.n 800c988 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  28695. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  28696. 800c878: 697b ldr r3, [r7, #20]
  28697. 800c87a: ee07 3a90 vmov s15, r3
  28698. 800c87e: eef8 7a67 vcvt.f32.u32 s15, s15
  28699. 800c882: eddf 6a6f vldr s13, [pc, #444] @ 800ca40 <HAL_RCCEx_GetPLL2ClockFreq+0x29c>
  28700. 800c886: ee86 7aa7 vdiv.f32 s14, s13, s15
  28701. 800c88a: 4b6a ldr r3, [pc, #424] @ (800ca34 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28702. 800c88c: 6b9b ldr r3, [r3, #56] @ 0x38
  28703. 800c88e: f3c3 0308 ubfx r3, r3, #0, #9
  28704. 800c892: ee07 3a90 vmov s15, r3
  28705. 800c896: eef8 6a67 vcvt.f32.u32 s13, s15
  28706. 800c89a: ed97 6a03 vldr s12, [r7, #12]
  28707. 800c89e: eddf 5a67 vldr s11, [pc, #412] @ 800ca3c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  28708. 800c8a2: eec6 7a25 vdiv.f32 s15, s12, s11
  28709. 800c8a6: ee76 7aa7 vadd.f32 s15, s13, s15
  28710. 800c8aa: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28711. 800c8ae: ee77 7aa6 vadd.f32 s15, s15, s13
  28712. 800c8b2: ee67 7a27 vmul.f32 s15, s14, s15
  28713. 800c8b6: edc7 7a07 vstr s15, [r7, #28]
  28714. break;
  28715. 800c8ba: e065 b.n 800c988 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  28716. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  28717. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  28718. 800c8bc: 697b ldr r3, [r7, #20]
  28719. 800c8be: ee07 3a90 vmov s15, r3
  28720. 800c8c2: eef8 7a67 vcvt.f32.u32 s15, s15
  28721. 800c8c6: eddf 6a5f vldr s13, [pc, #380] @ 800ca44 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  28722. 800c8ca: ee86 7aa7 vdiv.f32 s14, s13, s15
  28723. 800c8ce: 4b59 ldr r3, [pc, #356] @ (800ca34 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28724. 800c8d0: 6b9b ldr r3, [r3, #56] @ 0x38
  28725. 800c8d2: f3c3 0308 ubfx r3, r3, #0, #9
  28726. 800c8d6: ee07 3a90 vmov s15, r3
  28727. 800c8da: eef8 6a67 vcvt.f32.u32 s13, s15
  28728. 800c8de: ed97 6a03 vldr s12, [r7, #12]
  28729. 800c8e2: eddf 5a56 vldr s11, [pc, #344] @ 800ca3c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  28730. 800c8e6: eec6 7a25 vdiv.f32 s15, s12, s11
  28731. 800c8ea: ee76 7aa7 vadd.f32 s15, s13, s15
  28732. 800c8ee: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28733. 800c8f2: ee77 7aa6 vadd.f32 s15, s15, s13
  28734. 800c8f6: ee67 7a27 vmul.f32 s15, s14, s15
  28735. 800c8fa: edc7 7a07 vstr s15, [r7, #28]
  28736. break;
  28737. 800c8fe: e043 b.n 800c988 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  28738. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  28739. pll2vco = ((float_t)HSE_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  28740. 800c900: 697b ldr r3, [r7, #20]
  28741. 800c902: ee07 3a90 vmov s15, r3
  28742. 800c906: eef8 7a67 vcvt.f32.u32 s15, s15
  28743. 800c90a: eddf 6a4f vldr s13, [pc, #316] @ 800ca48 <HAL_RCCEx_GetPLL2ClockFreq+0x2a4>
  28744. 800c90e: ee86 7aa7 vdiv.f32 s14, s13, s15
  28745. 800c912: 4b48 ldr r3, [pc, #288] @ (800ca34 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28746. 800c914: 6b9b ldr r3, [r3, #56] @ 0x38
  28747. 800c916: f3c3 0308 ubfx r3, r3, #0, #9
  28748. 800c91a: ee07 3a90 vmov s15, r3
  28749. 800c91e: eef8 6a67 vcvt.f32.u32 s13, s15
  28750. 800c922: ed97 6a03 vldr s12, [r7, #12]
  28751. 800c926: eddf 5a45 vldr s11, [pc, #276] @ 800ca3c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  28752. 800c92a: eec6 7a25 vdiv.f32 s15, s12, s11
  28753. 800c92e: ee76 7aa7 vadd.f32 s15, s13, s15
  28754. 800c932: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28755. 800c936: ee77 7aa6 vadd.f32 s15, s15, s13
  28756. 800c93a: ee67 7a27 vmul.f32 s15, s14, s15
  28757. 800c93e: edc7 7a07 vstr s15, [r7, #28]
  28758. break;
  28759. 800c942: e021 b.n 800c988 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  28760. default:
  28761. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  28762. 800c944: 697b ldr r3, [r7, #20]
  28763. 800c946: ee07 3a90 vmov s15, r3
  28764. 800c94a: eef8 7a67 vcvt.f32.u32 s15, s15
  28765. 800c94e: eddf 6a3d vldr s13, [pc, #244] @ 800ca44 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  28766. 800c952: ee86 7aa7 vdiv.f32 s14, s13, s15
  28767. 800c956: 4b37 ldr r3, [pc, #220] @ (800ca34 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28768. 800c958: 6b9b ldr r3, [r3, #56] @ 0x38
  28769. 800c95a: f3c3 0308 ubfx r3, r3, #0, #9
  28770. 800c95e: ee07 3a90 vmov s15, r3
  28771. 800c962: eef8 6a67 vcvt.f32.u32 s13, s15
  28772. 800c966: ed97 6a03 vldr s12, [r7, #12]
  28773. 800c96a: eddf 5a34 vldr s11, [pc, #208] @ 800ca3c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  28774. 800c96e: eec6 7a25 vdiv.f32 s15, s12, s11
  28775. 800c972: ee76 7aa7 vadd.f32 s15, s13, s15
  28776. 800c976: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28777. 800c97a: ee77 7aa6 vadd.f32 s15, s15, s13
  28778. 800c97e: ee67 7a27 vmul.f32 s15, s14, s15
  28779. 800c982: edc7 7a07 vstr s15, [r7, #28]
  28780. break;
  28781. 800c986: bf00 nop
  28782. }
  28783. PLL2_Clocks->PLL2_P_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> 9) + (float_t)1)) ;
  28784. 800c988: 4b2a ldr r3, [pc, #168] @ (800ca34 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28785. 800c98a: 6b9b ldr r3, [r3, #56] @ 0x38
  28786. 800c98c: 0a5b lsrs r3, r3, #9
  28787. 800c98e: f003 037f and.w r3, r3, #127 @ 0x7f
  28788. 800c992: ee07 3a90 vmov s15, r3
  28789. 800c996: eef8 7a67 vcvt.f32.u32 s15, s15
  28790. 800c99a: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  28791. 800c99e: ee37 7a87 vadd.f32 s14, s15, s14
  28792. 800c9a2: edd7 6a07 vldr s13, [r7, #28]
  28793. 800c9a6: eec6 7a87 vdiv.f32 s15, s13, s14
  28794. 800c9aa: eefc 7ae7 vcvt.u32.f32 s15, s15
  28795. 800c9ae: ee17 2a90 vmov r2, s15
  28796. 800c9b2: 687b ldr r3, [r7, #4]
  28797. 800c9b4: 601a str r2, [r3, #0]
  28798. PLL2_Clocks->PLL2_Q_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> 16) + (float_t)1)) ;
  28799. 800c9b6: 4b1f ldr r3, [pc, #124] @ (800ca34 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28800. 800c9b8: 6b9b ldr r3, [r3, #56] @ 0x38
  28801. 800c9ba: 0c1b lsrs r3, r3, #16
  28802. 800c9bc: f003 037f and.w r3, r3, #127 @ 0x7f
  28803. 800c9c0: ee07 3a90 vmov s15, r3
  28804. 800c9c4: eef8 7a67 vcvt.f32.u32 s15, s15
  28805. 800c9c8: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  28806. 800c9cc: ee37 7a87 vadd.f32 s14, s15, s14
  28807. 800c9d0: edd7 6a07 vldr s13, [r7, #28]
  28808. 800c9d4: eec6 7a87 vdiv.f32 s15, s13, s14
  28809. 800c9d8: eefc 7ae7 vcvt.u32.f32 s15, s15
  28810. 800c9dc: ee17 2a90 vmov r2, s15
  28811. 800c9e0: 687b ldr r3, [r7, #4]
  28812. 800c9e2: 605a str r2, [r3, #4]
  28813. PLL2_Clocks->PLL2_R_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> 24) + (float_t)1)) ;
  28814. 800c9e4: 4b13 ldr r3, [pc, #76] @ (800ca34 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28815. 800c9e6: 6b9b ldr r3, [r3, #56] @ 0x38
  28816. 800c9e8: 0e1b lsrs r3, r3, #24
  28817. 800c9ea: f003 037f and.w r3, r3, #127 @ 0x7f
  28818. 800c9ee: ee07 3a90 vmov s15, r3
  28819. 800c9f2: eef8 7a67 vcvt.f32.u32 s15, s15
  28820. 800c9f6: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  28821. 800c9fa: ee37 7a87 vadd.f32 s14, s15, s14
  28822. 800c9fe: edd7 6a07 vldr s13, [r7, #28]
  28823. 800ca02: eec6 7a87 vdiv.f32 s15, s13, s14
  28824. 800ca06: eefc 7ae7 vcvt.u32.f32 s15, s15
  28825. 800ca0a: ee17 2a90 vmov r2, s15
  28826. 800ca0e: 687b ldr r3, [r7, #4]
  28827. 800ca10: 609a str r2, [r3, #8]
  28828. {
  28829. PLL2_Clocks->PLL2_P_Frequency = 0U;
  28830. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  28831. PLL2_Clocks->PLL2_R_Frequency = 0U;
  28832. }
  28833. }
  28834. 800ca12: e008 b.n 800ca26 <HAL_RCCEx_GetPLL2ClockFreq+0x282>
  28835. PLL2_Clocks->PLL2_P_Frequency = 0U;
  28836. 800ca14: 687b ldr r3, [r7, #4]
  28837. 800ca16: 2200 movs r2, #0
  28838. 800ca18: 601a str r2, [r3, #0]
  28839. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  28840. 800ca1a: 687b ldr r3, [r7, #4]
  28841. 800ca1c: 2200 movs r2, #0
  28842. 800ca1e: 605a str r2, [r3, #4]
  28843. PLL2_Clocks->PLL2_R_Frequency = 0U;
  28844. 800ca20: 687b ldr r3, [r7, #4]
  28845. 800ca22: 2200 movs r2, #0
  28846. 800ca24: 609a str r2, [r3, #8]
  28847. }
  28848. 800ca26: bf00 nop
  28849. 800ca28: 3724 adds r7, #36 @ 0x24
  28850. 800ca2a: 46bd mov sp, r7
  28851. 800ca2c: f85d 7b04 ldr.w r7, [sp], #4
  28852. 800ca30: 4770 bx lr
  28853. 800ca32: bf00 nop
  28854. 800ca34: 58024400 .word 0x58024400
  28855. 800ca38: 03d09000 .word 0x03d09000
  28856. 800ca3c: 46000000 .word 0x46000000
  28857. 800ca40: 4c742400 .word 0x4c742400
  28858. 800ca44: 4a742400 .word 0x4a742400
  28859. 800ca48: 4bbebc20 .word 0x4bbebc20
  28860. 0800ca4c <HAL_RCCEx_GetPLL3ClockFreq>:
  28861. * right PLL3CLK value. Otherwise, any configuration based on this function will be incorrect.
  28862. * @param PLL3_Clocks structure.
  28863. * @retval None
  28864. */
  28865. void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks)
  28866. {
  28867. 800ca4c: b480 push {r7}
  28868. 800ca4e: b089 sub sp, #36 @ 0x24
  28869. 800ca50: af00 add r7, sp, #0
  28870. 800ca52: 6078 str r0, [r7, #4]
  28871. float_t fracn3, pll3vco;
  28872. /* PLL3_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL3M) * PLL3N
  28873. PLL3xCLK = PLL3_VCO / PLLxR
  28874. */
  28875. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  28876. 800ca54: 4ba1 ldr r3, [pc, #644] @ (800ccdc <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28877. 800ca56: 6a9b ldr r3, [r3, #40] @ 0x28
  28878. 800ca58: f003 0303 and.w r3, r3, #3
  28879. 800ca5c: 61bb str r3, [r7, #24]
  28880. pll3m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> 20) ;
  28881. 800ca5e: 4b9f ldr r3, [pc, #636] @ (800ccdc <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28882. 800ca60: 6a9b ldr r3, [r3, #40] @ 0x28
  28883. 800ca62: 0d1b lsrs r3, r3, #20
  28884. 800ca64: f003 033f and.w r3, r3, #63 @ 0x3f
  28885. 800ca68: 617b str r3, [r7, #20]
  28886. pll3fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL3FRACEN) >> RCC_PLLCFGR_PLL3FRACEN_Pos;
  28887. 800ca6a: 4b9c ldr r3, [pc, #624] @ (800ccdc <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28888. 800ca6c: 6adb ldr r3, [r3, #44] @ 0x2c
  28889. 800ca6e: 0a1b lsrs r3, r3, #8
  28890. 800ca70: f003 0301 and.w r3, r3, #1
  28891. 800ca74: 613b str r3, [r7, #16]
  28892. fracn3 = (float_t)(uint32_t)(pll3fracen * ((RCC->PLL3FRACR & RCC_PLL3FRACR_FRACN3) >> 3));
  28893. 800ca76: 4b99 ldr r3, [pc, #612] @ (800ccdc <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28894. 800ca78: 6c5b ldr r3, [r3, #68] @ 0x44
  28895. 800ca7a: 08db lsrs r3, r3, #3
  28896. 800ca7c: f3c3 030c ubfx r3, r3, #0, #13
  28897. 800ca80: 693a ldr r2, [r7, #16]
  28898. 800ca82: fb02 f303 mul.w r3, r2, r3
  28899. 800ca86: ee07 3a90 vmov s15, r3
  28900. 800ca8a: eef8 7a67 vcvt.f32.u32 s15, s15
  28901. 800ca8e: edc7 7a03 vstr s15, [r7, #12]
  28902. if (pll3m != 0U)
  28903. 800ca92: 697b ldr r3, [r7, #20]
  28904. 800ca94: 2b00 cmp r3, #0
  28905. 800ca96: f000 8111 beq.w 800ccbc <HAL_RCCEx_GetPLL3ClockFreq+0x270>
  28906. {
  28907. switch (pllsource)
  28908. 800ca9a: 69bb ldr r3, [r7, #24]
  28909. 800ca9c: 2b02 cmp r3, #2
  28910. 800ca9e: f000 8083 beq.w 800cba8 <HAL_RCCEx_GetPLL3ClockFreq+0x15c>
  28911. 800caa2: 69bb ldr r3, [r7, #24]
  28912. 800caa4: 2b02 cmp r3, #2
  28913. 800caa6: f200 80a1 bhi.w 800cbec <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  28914. 800caaa: 69bb ldr r3, [r7, #24]
  28915. 800caac: 2b00 cmp r3, #0
  28916. 800caae: d003 beq.n 800cab8 <HAL_RCCEx_GetPLL3ClockFreq+0x6c>
  28917. 800cab0: 69bb ldr r3, [r7, #24]
  28918. 800cab2: 2b01 cmp r3, #1
  28919. 800cab4: d056 beq.n 800cb64 <HAL_RCCEx_GetPLL3ClockFreq+0x118>
  28920. 800cab6: e099 b.n 800cbec <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  28921. {
  28922. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  28923. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  28924. 800cab8: 4b88 ldr r3, [pc, #544] @ (800ccdc <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28925. 800caba: 681b ldr r3, [r3, #0]
  28926. 800cabc: f003 0320 and.w r3, r3, #32
  28927. 800cac0: 2b00 cmp r3, #0
  28928. 800cac2: d02d beq.n 800cb20 <HAL_RCCEx_GetPLL3ClockFreq+0xd4>
  28929. {
  28930. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  28931. 800cac4: 4b85 ldr r3, [pc, #532] @ (800ccdc <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28932. 800cac6: 681b ldr r3, [r3, #0]
  28933. 800cac8: 08db lsrs r3, r3, #3
  28934. 800caca: f003 0303 and.w r3, r3, #3
  28935. 800cace: 4a84 ldr r2, [pc, #528] @ (800cce0 <HAL_RCCEx_GetPLL3ClockFreq+0x294>)
  28936. 800cad0: fa22 f303 lsr.w r3, r2, r3
  28937. 800cad4: 60bb str r3, [r7, #8]
  28938. pll3vco = ((float_t)hsivalue / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  28939. 800cad6: 68bb ldr r3, [r7, #8]
  28940. 800cad8: ee07 3a90 vmov s15, r3
  28941. 800cadc: eef8 6a67 vcvt.f32.u32 s13, s15
  28942. 800cae0: 697b ldr r3, [r7, #20]
  28943. 800cae2: ee07 3a90 vmov s15, r3
  28944. 800cae6: eef8 7a67 vcvt.f32.u32 s15, s15
  28945. 800caea: ee86 7aa7 vdiv.f32 s14, s13, s15
  28946. 800caee: 4b7b ldr r3, [pc, #492] @ (800ccdc <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28947. 800caf0: 6c1b ldr r3, [r3, #64] @ 0x40
  28948. 800caf2: f3c3 0308 ubfx r3, r3, #0, #9
  28949. 800caf6: ee07 3a90 vmov s15, r3
  28950. 800cafa: eef8 6a67 vcvt.f32.u32 s13, s15
  28951. 800cafe: ed97 6a03 vldr s12, [r7, #12]
  28952. 800cb02: eddf 5a78 vldr s11, [pc, #480] @ 800cce4 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  28953. 800cb06: eec6 7a25 vdiv.f32 s15, s12, s11
  28954. 800cb0a: ee76 7aa7 vadd.f32 s15, s13, s15
  28955. 800cb0e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28956. 800cb12: ee77 7aa6 vadd.f32 s15, s15, s13
  28957. 800cb16: ee67 7a27 vmul.f32 s15, s14, s15
  28958. 800cb1a: edc7 7a07 vstr s15, [r7, #28]
  28959. }
  28960. else
  28961. {
  28962. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  28963. }
  28964. break;
  28965. 800cb1e: e087 b.n 800cc30 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  28966. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  28967. 800cb20: 697b ldr r3, [r7, #20]
  28968. 800cb22: ee07 3a90 vmov s15, r3
  28969. 800cb26: eef8 7a67 vcvt.f32.u32 s15, s15
  28970. 800cb2a: eddf 6a6f vldr s13, [pc, #444] @ 800cce8 <HAL_RCCEx_GetPLL3ClockFreq+0x29c>
  28971. 800cb2e: ee86 7aa7 vdiv.f32 s14, s13, s15
  28972. 800cb32: 4b6a ldr r3, [pc, #424] @ (800ccdc <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28973. 800cb34: 6c1b ldr r3, [r3, #64] @ 0x40
  28974. 800cb36: f3c3 0308 ubfx r3, r3, #0, #9
  28975. 800cb3a: ee07 3a90 vmov s15, r3
  28976. 800cb3e: eef8 6a67 vcvt.f32.u32 s13, s15
  28977. 800cb42: ed97 6a03 vldr s12, [r7, #12]
  28978. 800cb46: eddf 5a67 vldr s11, [pc, #412] @ 800cce4 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  28979. 800cb4a: eec6 7a25 vdiv.f32 s15, s12, s11
  28980. 800cb4e: ee76 7aa7 vadd.f32 s15, s13, s15
  28981. 800cb52: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28982. 800cb56: ee77 7aa6 vadd.f32 s15, s15, s13
  28983. 800cb5a: ee67 7a27 vmul.f32 s15, s14, s15
  28984. 800cb5e: edc7 7a07 vstr s15, [r7, #28]
  28985. break;
  28986. 800cb62: e065 b.n 800cc30 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  28987. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  28988. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  28989. 800cb64: 697b ldr r3, [r7, #20]
  28990. 800cb66: ee07 3a90 vmov s15, r3
  28991. 800cb6a: eef8 7a67 vcvt.f32.u32 s15, s15
  28992. 800cb6e: eddf 6a5f vldr s13, [pc, #380] @ 800ccec <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  28993. 800cb72: ee86 7aa7 vdiv.f32 s14, s13, s15
  28994. 800cb76: 4b59 ldr r3, [pc, #356] @ (800ccdc <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28995. 800cb78: 6c1b ldr r3, [r3, #64] @ 0x40
  28996. 800cb7a: f3c3 0308 ubfx r3, r3, #0, #9
  28997. 800cb7e: ee07 3a90 vmov s15, r3
  28998. 800cb82: eef8 6a67 vcvt.f32.u32 s13, s15
  28999. 800cb86: ed97 6a03 vldr s12, [r7, #12]
  29000. 800cb8a: eddf 5a56 vldr s11, [pc, #344] @ 800cce4 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  29001. 800cb8e: eec6 7a25 vdiv.f32 s15, s12, s11
  29002. 800cb92: ee76 7aa7 vadd.f32 s15, s13, s15
  29003. 800cb96: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  29004. 800cb9a: ee77 7aa6 vadd.f32 s15, s15, s13
  29005. 800cb9e: ee67 7a27 vmul.f32 s15, s14, s15
  29006. 800cba2: edc7 7a07 vstr s15, [r7, #28]
  29007. break;
  29008. 800cba6: e043 b.n 800cc30 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  29009. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  29010. pll3vco = ((float_t)HSE_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  29011. 800cba8: 697b ldr r3, [r7, #20]
  29012. 800cbaa: ee07 3a90 vmov s15, r3
  29013. 800cbae: eef8 7a67 vcvt.f32.u32 s15, s15
  29014. 800cbb2: eddf 6a4f vldr s13, [pc, #316] @ 800ccf0 <HAL_RCCEx_GetPLL3ClockFreq+0x2a4>
  29015. 800cbb6: ee86 7aa7 vdiv.f32 s14, s13, s15
  29016. 800cbba: 4b48 ldr r3, [pc, #288] @ (800ccdc <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  29017. 800cbbc: 6c1b ldr r3, [r3, #64] @ 0x40
  29018. 800cbbe: f3c3 0308 ubfx r3, r3, #0, #9
  29019. 800cbc2: ee07 3a90 vmov s15, r3
  29020. 800cbc6: eef8 6a67 vcvt.f32.u32 s13, s15
  29021. 800cbca: ed97 6a03 vldr s12, [r7, #12]
  29022. 800cbce: eddf 5a45 vldr s11, [pc, #276] @ 800cce4 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  29023. 800cbd2: eec6 7a25 vdiv.f32 s15, s12, s11
  29024. 800cbd6: ee76 7aa7 vadd.f32 s15, s13, s15
  29025. 800cbda: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  29026. 800cbde: ee77 7aa6 vadd.f32 s15, s15, s13
  29027. 800cbe2: ee67 7a27 vmul.f32 s15, s14, s15
  29028. 800cbe6: edc7 7a07 vstr s15, [r7, #28]
  29029. break;
  29030. 800cbea: e021 b.n 800cc30 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  29031. default:
  29032. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  29033. 800cbec: 697b ldr r3, [r7, #20]
  29034. 800cbee: ee07 3a90 vmov s15, r3
  29035. 800cbf2: eef8 7a67 vcvt.f32.u32 s15, s15
  29036. 800cbf6: eddf 6a3d vldr s13, [pc, #244] @ 800ccec <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  29037. 800cbfa: ee86 7aa7 vdiv.f32 s14, s13, s15
  29038. 800cbfe: 4b37 ldr r3, [pc, #220] @ (800ccdc <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  29039. 800cc00: 6c1b ldr r3, [r3, #64] @ 0x40
  29040. 800cc02: f3c3 0308 ubfx r3, r3, #0, #9
  29041. 800cc06: ee07 3a90 vmov s15, r3
  29042. 800cc0a: eef8 6a67 vcvt.f32.u32 s13, s15
  29043. 800cc0e: ed97 6a03 vldr s12, [r7, #12]
  29044. 800cc12: eddf 5a34 vldr s11, [pc, #208] @ 800cce4 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  29045. 800cc16: eec6 7a25 vdiv.f32 s15, s12, s11
  29046. 800cc1a: ee76 7aa7 vadd.f32 s15, s13, s15
  29047. 800cc1e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  29048. 800cc22: ee77 7aa6 vadd.f32 s15, s15, s13
  29049. 800cc26: ee67 7a27 vmul.f32 s15, s14, s15
  29050. 800cc2a: edc7 7a07 vstr s15, [r7, #28]
  29051. break;
  29052. 800cc2e: bf00 nop
  29053. }
  29054. PLL3_Clocks->PLL3_P_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> 9) + (float_t)1)) ;
  29055. 800cc30: 4b2a ldr r3, [pc, #168] @ (800ccdc <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  29056. 800cc32: 6c1b ldr r3, [r3, #64] @ 0x40
  29057. 800cc34: 0a5b lsrs r3, r3, #9
  29058. 800cc36: f003 037f and.w r3, r3, #127 @ 0x7f
  29059. 800cc3a: ee07 3a90 vmov s15, r3
  29060. 800cc3e: eef8 7a67 vcvt.f32.u32 s15, s15
  29061. 800cc42: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  29062. 800cc46: ee37 7a87 vadd.f32 s14, s15, s14
  29063. 800cc4a: edd7 6a07 vldr s13, [r7, #28]
  29064. 800cc4e: eec6 7a87 vdiv.f32 s15, s13, s14
  29065. 800cc52: eefc 7ae7 vcvt.u32.f32 s15, s15
  29066. 800cc56: ee17 2a90 vmov r2, s15
  29067. 800cc5a: 687b ldr r3, [r7, #4]
  29068. 800cc5c: 601a str r2, [r3, #0]
  29069. PLL3_Clocks->PLL3_Q_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> 16) + (float_t)1)) ;
  29070. 800cc5e: 4b1f ldr r3, [pc, #124] @ (800ccdc <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  29071. 800cc60: 6c1b ldr r3, [r3, #64] @ 0x40
  29072. 800cc62: 0c1b lsrs r3, r3, #16
  29073. 800cc64: f003 037f and.w r3, r3, #127 @ 0x7f
  29074. 800cc68: ee07 3a90 vmov s15, r3
  29075. 800cc6c: eef8 7a67 vcvt.f32.u32 s15, s15
  29076. 800cc70: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  29077. 800cc74: ee37 7a87 vadd.f32 s14, s15, s14
  29078. 800cc78: edd7 6a07 vldr s13, [r7, #28]
  29079. 800cc7c: eec6 7a87 vdiv.f32 s15, s13, s14
  29080. 800cc80: eefc 7ae7 vcvt.u32.f32 s15, s15
  29081. 800cc84: ee17 2a90 vmov r2, s15
  29082. 800cc88: 687b ldr r3, [r7, #4]
  29083. 800cc8a: 605a str r2, [r3, #4]
  29084. PLL3_Clocks->PLL3_R_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> 24) + (float_t)1)) ;
  29085. 800cc8c: 4b13 ldr r3, [pc, #76] @ (800ccdc <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  29086. 800cc8e: 6c1b ldr r3, [r3, #64] @ 0x40
  29087. 800cc90: 0e1b lsrs r3, r3, #24
  29088. 800cc92: f003 037f and.w r3, r3, #127 @ 0x7f
  29089. 800cc96: ee07 3a90 vmov s15, r3
  29090. 800cc9a: eef8 7a67 vcvt.f32.u32 s15, s15
  29091. 800cc9e: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  29092. 800cca2: ee37 7a87 vadd.f32 s14, s15, s14
  29093. 800cca6: edd7 6a07 vldr s13, [r7, #28]
  29094. 800ccaa: eec6 7a87 vdiv.f32 s15, s13, s14
  29095. 800ccae: eefc 7ae7 vcvt.u32.f32 s15, s15
  29096. 800ccb2: ee17 2a90 vmov r2, s15
  29097. 800ccb6: 687b ldr r3, [r7, #4]
  29098. 800ccb8: 609a str r2, [r3, #8]
  29099. PLL3_Clocks->PLL3_P_Frequency = 0U;
  29100. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  29101. PLL3_Clocks->PLL3_R_Frequency = 0U;
  29102. }
  29103. }
  29104. 800ccba: e008 b.n 800ccce <HAL_RCCEx_GetPLL3ClockFreq+0x282>
  29105. PLL3_Clocks->PLL3_P_Frequency = 0U;
  29106. 800ccbc: 687b ldr r3, [r7, #4]
  29107. 800ccbe: 2200 movs r2, #0
  29108. 800ccc0: 601a str r2, [r3, #0]
  29109. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  29110. 800ccc2: 687b ldr r3, [r7, #4]
  29111. 800ccc4: 2200 movs r2, #0
  29112. 800ccc6: 605a str r2, [r3, #4]
  29113. PLL3_Clocks->PLL3_R_Frequency = 0U;
  29114. 800ccc8: 687b ldr r3, [r7, #4]
  29115. 800ccca: 2200 movs r2, #0
  29116. 800cccc: 609a str r2, [r3, #8]
  29117. }
  29118. 800ccce: bf00 nop
  29119. 800ccd0: 3724 adds r7, #36 @ 0x24
  29120. 800ccd2: 46bd mov sp, r7
  29121. 800ccd4: f85d 7b04 ldr.w r7, [sp], #4
  29122. 800ccd8: 4770 bx lr
  29123. 800ccda: bf00 nop
  29124. 800ccdc: 58024400 .word 0x58024400
  29125. 800cce0: 03d09000 .word 0x03d09000
  29126. 800cce4: 46000000 .word 0x46000000
  29127. 800cce8: 4c742400 .word 0x4c742400
  29128. 800ccec: 4a742400 .word 0x4a742400
  29129. 800ccf0: 4bbebc20 .word 0x4bbebc20
  29130. 0800ccf4 <RCCEx_PLL2_Config>:
  29131. * @note PLL2 is temporary disabled to apply new parameters
  29132. *
  29133. * @retval HAL status
  29134. */
  29135. static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider)
  29136. {
  29137. 800ccf4: b580 push {r7, lr}
  29138. 800ccf6: b084 sub sp, #16
  29139. 800ccf8: af00 add r7, sp, #0
  29140. 800ccfa: 6078 str r0, [r7, #4]
  29141. 800ccfc: 6039 str r1, [r7, #0]
  29142. uint32_t tickstart;
  29143. HAL_StatusTypeDef status = HAL_OK;
  29144. 800ccfe: 2300 movs r3, #0
  29145. 800cd00: 73fb strb r3, [r7, #15]
  29146. assert_param(IS_RCC_PLL2RGE_VALUE(pll2->PLL2RGE));
  29147. assert_param(IS_RCC_PLL2VCO_VALUE(pll2->PLL2VCOSEL));
  29148. assert_param(IS_RCC_PLLFRACN_VALUE(pll2->PLL2FRACN));
  29149. /* Check that PLL2 OSC clock source is already set */
  29150. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  29151. 800cd02: 4b53 ldr r3, [pc, #332] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29152. 800cd04: 6a9b ldr r3, [r3, #40] @ 0x28
  29153. 800cd06: f003 0303 and.w r3, r3, #3
  29154. 800cd0a: 2b03 cmp r3, #3
  29155. 800cd0c: d101 bne.n 800cd12 <RCCEx_PLL2_Config+0x1e>
  29156. {
  29157. return HAL_ERROR;
  29158. 800cd0e: 2301 movs r3, #1
  29159. 800cd10: e099 b.n 800ce46 <RCCEx_PLL2_Config+0x152>
  29160. else
  29161. {
  29162. /* Disable PLL2. */
  29163. __HAL_RCC_PLL2_DISABLE();
  29164. 800cd12: 4b4f ldr r3, [pc, #316] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29165. 800cd14: 681b ldr r3, [r3, #0]
  29166. 800cd16: 4a4e ldr r2, [pc, #312] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29167. 800cd18: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  29168. 800cd1c: 6013 str r3, [r2, #0]
  29169. /* Get Start Tick*/
  29170. tickstart = HAL_GetTick();
  29171. 800cd1e: f7f8 fcb9 bl 8005694 <HAL_GetTick>
  29172. 800cd22: 60b8 str r0, [r7, #8]
  29173. /* Wait till PLL is disabled */
  29174. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  29175. 800cd24: e008 b.n 800cd38 <RCCEx_PLL2_Config+0x44>
  29176. {
  29177. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  29178. 800cd26: f7f8 fcb5 bl 8005694 <HAL_GetTick>
  29179. 800cd2a: 4602 mov r2, r0
  29180. 800cd2c: 68bb ldr r3, [r7, #8]
  29181. 800cd2e: 1ad3 subs r3, r2, r3
  29182. 800cd30: 2b02 cmp r3, #2
  29183. 800cd32: d901 bls.n 800cd38 <RCCEx_PLL2_Config+0x44>
  29184. {
  29185. return HAL_TIMEOUT;
  29186. 800cd34: 2303 movs r3, #3
  29187. 800cd36: e086 b.n 800ce46 <RCCEx_PLL2_Config+0x152>
  29188. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  29189. 800cd38: 4b45 ldr r3, [pc, #276] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29190. 800cd3a: 681b ldr r3, [r3, #0]
  29191. 800cd3c: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  29192. 800cd40: 2b00 cmp r3, #0
  29193. 800cd42: d1f0 bne.n 800cd26 <RCCEx_PLL2_Config+0x32>
  29194. }
  29195. }
  29196. /* Configure PLL2 multiplication and division factors. */
  29197. __HAL_RCC_PLL2_CONFIG(pll2->PLL2M,
  29198. 800cd44: 4b42 ldr r3, [pc, #264] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29199. 800cd46: 6a9b ldr r3, [r3, #40] @ 0x28
  29200. 800cd48: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  29201. 800cd4c: 687b ldr r3, [r7, #4]
  29202. 800cd4e: 681b ldr r3, [r3, #0]
  29203. 800cd50: 031b lsls r3, r3, #12
  29204. 800cd52: 493f ldr r1, [pc, #252] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29205. 800cd54: 4313 orrs r3, r2
  29206. 800cd56: 628b str r3, [r1, #40] @ 0x28
  29207. 800cd58: 687b ldr r3, [r7, #4]
  29208. 800cd5a: 685b ldr r3, [r3, #4]
  29209. 800cd5c: 3b01 subs r3, #1
  29210. 800cd5e: f3c3 0208 ubfx r2, r3, #0, #9
  29211. 800cd62: 687b ldr r3, [r7, #4]
  29212. 800cd64: 689b ldr r3, [r3, #8]
  29213. 800cd66: 3b01 subs r3, #1
  29214. 800cd68: 025b lsls r3, r3, #9
  29215. 800cd6a: b29b uxth r3, r3
  29216. 800cd6c: 431a orrs r2, r3
  29217. 800cd6e: 687b ldr r3, [r7, #4]
  29218. 800cd70: 68db ldr r3, [r3, #12]
  29219. 800cd72: 3b01 subs r3, #1
  29220. 800cd74: 041b lsls r3, r3, #16
  29221. 800cd76: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  29222. 800cd7a: 431a orrs r2, r3
  29223. 800cd7c: 687b ldr r3, [r7, #4]
  29224. 800cd7e: 691b ldr r3, [r3, #16]
  29225. 800cd80: 3b01 subs r3, #1
  29226. 800cd82: 061b lsls r3, r3, #24
  29227. 800cd84: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  29228. 800cd88: 4931 ldr r1, [pc, #196] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29229. 800cd8a: 4313 orrs r3, r2
  29230. 800cd8c: 638b str r3, [r1, #56] @ 0x38
  29231. pll2->PLL2P,
  29232. pll2->PLL2Q,
  29233. pll2->PLL2R);
  29234. /* Select PLL2 input reference frequency range: VCI */
  29235. __HAL_RCC_PLL2_VCIRANGE(pll2->PLL2RGE) ;
  29236. 800cd8e: 4b30 ldr r3, [pc, #192] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29237. 800cd90: 6adb ldr r3, [r3, #44] @ 0x2c
  29238. 800cd92: f023 02c0 bic.w r2, r3, #192 @ 0xc0
  29239. 800cd96: 687b ldr r3, [r7, #4]
  29240. 800cd98: 695b ldr r3, [r3, #20]
  29241. 800cd9a: 492d ldr r1, [pc, #180] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29242. 800cd9c: 4313 orrs r3, r2
  29243. 800cd9e: 62cb str r3, [r1, #44] @ 0x2c
  29244. /* Select PLL2 output frequency range : VCO */
  29245. __HAL_RCC_PLL2_VCORANGE(pll2->PLL2VCOSEL) ;
  29246. 800cda0: 4b2b ldr r3, [pc, #172] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29247. 800cda2: 6adb ldr r3, [r3, #44] @ 0x2c
  29248. 800cda4: f023 0220 bic.w r2, r3, #32
  29249. 800cda8: 687b ldr r3, [r7, #4]
  29250. 800cdaa: 699b ldr r3, [r3, #24]
  29251. 800cdac: 4928 ldr r1, [pc, #160] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29252. 800cdae: 4313 orrs r3, r2
  29253. 800cdb0: 62cb str r3, [r1, #44] @ 0x2c
  29254. /* Disable PLL2FRACN . */
  29255. __HAL_RCC_PLL2FRACN_DISABLE();
  29256. 800cdb2: 4b27 ldr r3, [pc, #156] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29257. 800cdb4: 6adb ldr r3, [r3, #44] @ 0x2c
  29258. 800cdb6: 4a26 ldr r2, [pc, #152] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29259. 800cdb8: f023 0310 bic.w r3, r3, #16
  29260. 800cdbc: 62d3 str r3, [r2, #44] @ 0x2c
  29261. /* Configures PLL2 clock Fractional Part Of The Multiplication Factor */
  29262. __HAL_RCC_PLL2FRACN_CONFIG(pll2->PLL2FRACN);
  29263. 800cdbe: 4b24 ldr r3, [pc, #144] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29264. 800cdc0: 6bda ldr r2, [r3, #60] @ 0x3c
  29265. 800cdc2: 4b24 ldr r3, [pc, #144] @ (800ce54 <RCCEx_PLL2_Config+0x160>)
  29266. 800cdc4: 4013 ands r3, r2
  29267. 800cdc6: 687a ldr r2, [r7, #4]
  29268. 800cdc8: 69d2 ldr r2, [r2, #28]
  29269. 800cdca: 00d2 lsls r2, r2, #3
  29270. 800cdcc: 4920 ldr r1, [pc, #128] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29271. 800cdce: 4313 orrs r3, r2
  29272. 800cdd0: 63cb str r3, [r1, #60] @ 0x3c
  29273. /* Enable PLL2FRACN . */
  29274. __HAL_RCC_PLL2FRACN_ENABLE();
  29275. 800cdd2: 4b1f ldr r3, [pc, #124] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29276. 800cdd4: 6adb ldr r3, [r3, #44] @ 0x2c
  29277. 800cdd6: 4a1e ldr r2, [pc, #120] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29278. 800cdd8: f043 0310 orr.w r3, r3, #16
  29279. 800cddc: 62d3 str r3, [r2, #44] @ 0x2c
  29280. /* Enable the PLL2 clock output */
  29281. if (Divider == DIVIDER_P_UPDATE)
  29282. 800cdde: 683b ldr r3, [r7, #0]
  29283. 800cde0: 2b00 cmp r3, #0
  29284. 800cde2: d106 bne.n 800cdf2 <RCCEx_PLL2_Config+0xfe>
  29285. {
  29286. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVP);
  29287. 800cde4: 4b1a ldr r3, [pc, #104] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29288. 800cde6: 6adb ldr r3, [r3, #44] @ 0x2c
  29289. 800cde8: 4a19 ldr r2, [pc, #100] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29290. 800cdea: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  29291. 800cdee: 62d3 str r3, [r2, #44] @ 0x2c
  29292. 800cdf0: e00f b.n 800ce12 <RCCEx_PLL2_Config+0x11e>
  29293. }
  29294. else if (Divider == DIVIDER_Q_UPDATE)
  29295. 800cdf2: 683b ldr r3, [r7, #0]
  29296. 800cdf4: 2b01 cmp r3, #1
  29297. 800cdf6: d106 bne.n 800ce06 <RCCEx_PLL2_Config+0x112>
  29298. {
  29299. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVQ);
  29300. 800cdf8: 4b15 ldr r3, [pc, #84] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29301. 800cdfa: 6adb ldr r3, [r3, #44] @ 0x2c
  29302. 800cdfc: 4a14 ldr r2, [pc, #80] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29303. 800cdfe: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  29304. 800ce02: 62d3 str r3, [r2, #44] @ 0x2c
  29305. 800ce04: e005 b.n 800ce12 <RCCEx_PLL2_Config+0x11e>
  29306. }
  29307. else
  29308. {
  29309. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVR);
  29310. 800ce06: 4b12 ldr r3, [pc, #72] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29311. 800ce08: 6adb ldr r3, [r3, #44] @ 0x2c
  29312. 800ce0a: 4a11 ldr r2, [pc, #68] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29313. 800ce0c: f443 1300 orr.w r3, r3, #2097152 @ 0x200000
  29314. 800ce10: 62d3 str r3, [r2, #44] @ 0x2c
  29315. }
  29316. /* Enable PLL2. */
  29317. __HAL_RCC_PLL2_ENABLE();
  29318. 800ce12: 4b0f ldr r3, [pc, #60] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29319. 800ce14: 681b ldr r3, [r3, #0]
  29320. 800ce16: 4a0e ldr r2, [pc, #56] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29321. 800ce18: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
  29322. 800ce1c: 6013 str r3, [r2, #0]
  29323. /* Get Start Tick*/
  29324. tickstart = HAL_GetTick();
  29325. 800ce1e: f7f8 fc39 bl 8005694 <HAL_GetTick>
  29326. 800ce22: 60b8 str r0, [r7, #8]
  29327. /* Wait till PLL2 is ready */
  29328. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  29329. 800ce24: e008 b.n 800ce38 <RCCEx_PLL2_Config+0x144>
  29330. {
  29331. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  29332. 800ce26: f7f8 fc35 bl 8005694 <HAL_GetTick>
  29333. 800ce2a: 4602 mov r2, r0
  29334. 800ce2c: 68bb ldr r3, [r7, #8]
  29335. 800ce2e: 1ad3 subs r3, r2, r3
  29336. 800ce30: 2b02 cmp r3, #2
  29337. 800ce32: d901 bls.n 800ce38 <RCCEx_PLL2_Config+0x144>
  29338. {
  29339. return HAL_TIMEOUT;
  29340. 800ce34: 2303 movs r3, #3
  29341. 800ce36: e006 b.n 800ce46 <RCCEx_PLL2_Config+0x152>
  29342. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  29343. 800ce38: 4b05 ldr r3, [pc, #20] @ (800ce50 <RCCEx_PLL2_Config+0x15c>)
  29344. 800ce3a: 681b ldr r3, [r3, #0]
  29345. 800ce3c: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  29346. 800ce40: 2b00 cmp r3, #0
  29347. 800ce42: d0f0 beq.n 800ce26 <RCCEx_PLL2_Config+0x132>
  29348. }
  29349. }
  29350. return status;
  29351. 800ce44: 7bfb ldrb r3, [r7, #15]
  29352. }
  29353. 800ce46: 4618 mov r0, r3
  29354. 800ce48: 3710 adds r7, #16
  29355. 800ce4a: 46bd mov sp, r7
  29356. 800ce4c: bd80 pop {r7, pc}
  29357. 800ce4e: bf00 nop
  29358. 800ce50: 58024400 .word 0x58024400
  29359. 800ce54: ffff0007 .word 0xffff0007
  29360. 0800ce58 <RCCEx_PLL3_Config>:
  29361. * @note PLL3 is temporary disabled to apply new parameters
  29362. *
  29363. * @retval HAL status
  29364. */
  29365. static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider)
  29366. {
  29367. 800ce58: b580 push {r7, lr}
  29368. 800ce5a: b084 sub sp, #16
  29369. 800ce5c: af00 add r7, sp, #0
  29370. 800ce5e: 6078 str r0, [r7, #4]
  29371. 800ce60: 6039 str r1, [r7, #0]
  29372. uint32_t tickstart;
  29373. HAL_StatusTypeDef status = HAL_OK;
  29374. 800ce62: 2300 movs r3, #0
  29375. 800ce64: 73fb strb r3, [r7, #15]
  29376. assert_param(IS_RCC_PLL3RGE_VALUE(pll3->PLL3RGE));
  29377. assert_param(IS_RCC_PLL3VCO_VALUE(pll3->PLL3VCOSEL));
  29378. assert_param(IS_RCC_PLLFRACN_VALUE(pll3->PLL3FRACN));
  29379. /* Check that PLL3 OSC clock source is already set */
  29380. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  29381. 800ce66: 4b53 ldr r3, [pc, #332] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29382. 800ce68: 6a9b ldr r3, [r3, #40] @ 0x28
  29383. 800ce6a: f003 0303 and.w r3, r3, #3
  29384. 800ce6e: 2b03 cmp r3, #3
  29385. 800ce70: d101 bne.n 800ce76 <RCCEx_PLL3_Config+0x1e>
  29386. {
  29387. return HAL_ERROR;
  29388. 800ce72: 2301 movs r3, #1
  29389. 800ce74: e099 b.n 800cfaa <RCCEx_PLL3_Config+0x152>
  29390. else
  29391. {
  29392. /* Disable PLL3. */
  29393. __HAL_RCC_PLL3_DISABLE();
  29394. 800ce76: 4b4f ldr r3, [pc, #316] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29395. 800ce78: 681b ldr r3, [r3, #0]
  29396. 800ce7a: 4a4e ldr r2, [pc, #312] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29397. 800ce7c: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  29398. 800ce80: 6013 str r3, [r2, #0]
  29399. /* Get Start Tick*/
  29400. tickstart = HAL_GetTick();
  29401. 800ce82: f7f8 fc07 bl 8005694 <HAL_GetTick>
  29402. 800ce86: 60b8 str r0, [r7, #8]
  29403. /* Wait till PLL3 is ready */
  29404. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  29405. 800ce88: e008 b.n 800ce9c <RCCEx_PLL3_Config+0x44>
  29406. {
  29407. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  29408. 800ce8a: f7f8 fc03 bl 8005694 <HAL_GetTick>
  29409. 800ce8e: 4602 mov r2, r0
  29410. 800ce90: 68bb ldr r3, [r7, #8]
  29411. 800ce92: 1ad3 subs r3, r2, r3
  29412. 800ce94: 2b02 cmp r3, #2
  29413. 800ce96: d901 bls.n 800ce9c <RCCEx_PLL3_Config+0x44>
  29414. {
  29415. return HAL_TIMEOUT;
  29416. 800ce98: 2303 movs r3, #3
  29417. 800ce9a: e086 b.n 800cfaa <RCCEx_PLL3_Config+0x152>
  29418. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  29419. 800ce9c: 4b45 ldr r3, [pc, #276] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29420. 800ce9e: 681b ldr r3, [r3, #0]
  29421. 800cea0: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  29422. 800cea4: 2b00 cmp r3, #0
  29423. 800cea6: d1f0 bne.n 800ce8a <RCCEx_PLL3_Config+0x32>
  29424. }
  29425. }
  29426. /* Configure the PLL3 multiplication and division factors. */
  29427. __HAL_RCC_PLL3_CONFIG(pll3->PLL3M,
  29428. 800cea8: 4b42 ldr r3, [pc, #264] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29429. 800ceaa: 6a9b ldr r3, [r3, #40] @ 0x28
  29430. 800ceac: f023 727c bic.w r2, r3, #66060288 @ 0x3f00000
  29431. 800ceb0: 687b ldr r3, [r7, #4]
  29432. 800ceb2: 681b ldr r3, [r3, #0]
  29433. 800ceb4: 051b lsls r3, r3, #20
  29434. 800ceb6: 493f ldr r1, [pc, #252] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29435. 800ceb8: 4313 orrs r3, r2
  29436. 800ceba: 628b str r3, [r1, #40] @ 0x28
  29437. 800cebc: 687b ldr r3, [r7, #4]
  29438. 800cebe: 685b ldr r3, [r3, #4]
  29439. 800cec0: 3b01 subs r3, #1
  29440. 800cec2: f3c3 0208 ubfx r2, r3, #0, #9
  29441. 800cec6: 687b ldr r3, [r7, #4]
  29442. 800cec8: 689b ldr r3, [r3, #8]
  29443. 800ceca: 3b01 subs r3, #1
  29444. 800cecc: 025b lsls r3, r3, #9
  29445. 800cece: b29b uxth r3, r3
  29446. 800ced0: 431a orrs r2, r3
  29447. 800ced2: 687b ldr r3, [r7, #4]
  29448. 800ced4: 68db ldr r3, [r3, #12]
  29449. 800ced6: 3b01 subs r3, #1
  29450. 800ced8: 041b lsls r3, r3, #16
  29451. 800ceda: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  29452. 800cede: 431a orrs r2, r3
  29453. 800cee0: 687b ldr r3, [r7, #4]
  29454. 800cee2: 691b ldr r3, [r3, #16]
  29455. 800cee4: 3b01 subs r3, #1
  29456. 800cee6: 061b lsls r3, r3, #24
  29457. 800cee8: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  29458. 800ceec: 4931 ldr r1, [pc, #196] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29459. 800ceee: 4313 orrs r3, r2
  29460. 800cef0: 640b str r3, [r1, #64] @ 0x40
  29461. pll3->PLL3P,
  29462. pll3->PLL3Q,
  29463. pll3->PLL3R);
  29464. /* Select PLL3 input reference frequency range: VCI */
  29465. __HAL_RCC_PLL3_VCIRANGE(pll3->PLL3RGE) ;
  29466. 800cef2: 4b30 ldr r3, [pc, #192] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29467. 800cef4: 6adb ldr r3, [r3, #44] @ 0x2c
  29468. 800cef6: f423 6240 bic.w r2, r3, #3072 @ 0xc00
  29469. 800cefa: 687b ldr r3, [r7, #4]
  29470. 800cefc: 695b ldr r3, [r3, #20]
  29471. 800cefe: 492d ldr r1, [pc, #180] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29472. 800cf00: 4313 orrs r3, r2
  29473. 800cf02: 62cb str r3, [r1, #44] @ 0x2c
  29474. /* Select PLL3 output frequency range : VCO */
  29475. __HAL_RCC_PLL3_VCORANGE(pll3->PLL3VCOSEL) ;
  29476. 800cf04: 4b2b ldr r3, [pc, #172] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29477. 800cf06: 6adb ldr r3, [r3, #44] @ 0x2c
  29478. 800cf08: f423 7200 bic.w r2, r3, #512 @ 0x200
  29479. 800cf0c: 687b ldr r3, [r7, #4]
  29480. 800cf0e: 699b ldr r3, [r3, #24]
  29481. 800cf10: 4928 ldr r1, [pc, #160] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29482. 800cf12: 4313 orrs r3, r2
  29483. 800cf14: 62cb str r3, [r1, #44] @ 0x2c
  29484. /* Disable PLL3FRACN . */
  29485. __HAL_RCC_PLL3FRACN_DISABLE();
  29486. 800cf16: 4b27 ldr r3, [pc, #156] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29487. 800cf18: 6adb ldr r3, [r3, #44] @ 0x2c
  29488. 800cf1a: 4a26 ldr r2, [pc, #152] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29489. 800cf1c: f423 7380 bic.w r3, r3, #256 @ 0x100
  29490. 800cf20: 62d3 str r3, [r2, #44] @ 0x2c
  29491. /* Configures PLL3 clock Fractional Part Of The Multiplication Factor */
  29492. __HAL_RCC_PLL3FRACN_CONFIG(pll3->PLL3FRACN);
  29493. 800cf22: 4b24 ldr r3, [pc, #144] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29494. 800cf24: 6c5a ldr r2, [r3, #68] @ 0x44
  29495. 800cf26: 4b24 ldr r3, [pc, #144] @ (800cfb8 <RCCEx_PLL3_Config+0x160>)
  29496. 800cf28: 4013 ands r3, r2
  29497. 800cf2a: 687a ldr r2, [r7, #4]
  29498. 800cf2c: 69d2 ldr r2, [r2, #28]
  29499. 800cf2e: 00d2 lsls r2, r2, #3
  29500. 800cf30: 4920 ldr r1, [pc, #128] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29501. 800cf32: 4313 orrs r3, r2
  29502. 800cf34: 644b str r3, [r1, #68] @ 0x44
  29503. /* Enable PLL3FRACN . */
  29504. __HAL_RCC_PLL3FRACN_ENABLE();
  29505. 800cf36: 4b1f ldr r3, [pc, #124] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29506. 800cf38: 6adb ldr r3, [r3, #44] @ 0x2c
  29507. 800cf3a: 4a1e ldr r2, [pc, #120] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29508. 800cf3c: f443 7380 orr.w r3, r3, #256 @ 0x100
  29509. 800cf40: 62d3 str r3, [r2, #44] @ 0x2c
  29510. /* Enable the PLL3 clock output */
  29511. if (Divider == DIVIDER_P_UPDATE)
  29512. 800cf42: 683b ldr r3, [r7, #0]
  29513. 800cf44: 2b00 cmp r3, #0
  29514. 800cf46: d106 bne.n 800cf56 <RCCEx_PLL3_Config+0xfe>
  29515. {
  29516. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVP);
  29517. 800cf48: 4b1a ldr r3, [pc, #104] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29518. 800cf4a: 6adb ldr r3, [r3, #44] @ 0x2c
  29519. 800cf4c: 4a19 ldr r2, [pc, #100] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29520. 800cf4e: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  29521. 800cf52: 62d3 str r3, [r2, #44] @ 0x2c
  29522. 800cf54: e00f b.n 800cf76 <RCCEx_PLL3_Config+0x11e>
  29523. }
  29524. else if (Divider == DIVIDER_Q_UPDATE)
  29525. 800cf56: 683b ldr r3, [r7, #0]
  29526. 800cf58: 2b01 cmp r3, #1
  29527. 800cf5a: d106 bne.n 800cf6a <RCCEx_PLL3_Config+0x112>
  29528. {
  29529. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVQ);
  29530. 800cf5c: 4b15 ldr r3, [pc, #84] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29531. 800cf5e: 6adb ldr r3, [r3, #44] @ 0x2c
  29532. 800cf60: 4a14 ldr r2, [pc, #80] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29533. 800cf62: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  29534. 800cf66: 62d3 str r3, [r2, #44] @ 0x2c
  29535. 800cf68: e005 b.n 800cf76 <RCCEx_PLL3_Config+0x11e>
  29536. }
  29537. else
  29538. {
  29539. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVR);
  29540. 800cf6a: 4b12 ldr r3, [pc, #72] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29541. 800cf6c: 6adb ldr r3, [r3, #44] @ 0x2c
  29542. 800cf6e: 4a11 ldr r2, [pc, #68] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29543. 800cf70: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  29544. 800cf74: 62d3 str r3, [r2, #44] @ 0x2c
  29545. }
  29546. /* Enable PLL3. */
  29547. __HAL_RCC_PLL3_ENABLE();
  29548. 800cf76: 4b0f ldr r3, [pc, #60] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29549. 800cf78: 681b ldr r3, [r3, #0]
  29550. 800cf7a: 4a0e ldr r2, [pc, #56] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29551. 800cf7c: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  29552. 800cf80: 6013 str r3, [r2, #0]
  29553. /* Get Start Tick*/
  29554. tickstart = HAL_GetTick();
  29555. 800cf82: f7f8 fb87 bl 8005694 <HAL_GetTick>
  29556. 800cf86: 60b8 str r0, [r7, #8]
  29557. /* Wait till PLL3 is ready */
  29558. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  29559. 800cf88: e008 b.n 800cf9c <RCCEx_PLL3_Config+0x144>
  29560. {
  29561. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  29562. 800cf8a: f7f8 fb83 bl 8005694 <HAL_GetTick>
  29563. 800cf8e: 4602 mov r2, r0
  29564. 800cf90: 68bb ldr r3, [r7, #8]
  29565. 800cf92: 1ad3 subs r3, r2, r3
  29566. 800cf94: 2b02 cmp r3, #2
  29567. 800cf96: d901 bls.n 800cf9c <RCCEx_PLL3_Config+0x144>
  29568. {
  29569. return HAL_TIMEOUT;
  29570. 800cf98: 2303 movs r3, #3
  29571. 800cf9a: e006 b.n 800cfaa <RCCEx_PLL3_Config+0x152>
  29572. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  29573. 800cf9c: 4b05 ldr r3, [pc, #20] @ (800cfb4 <RCCEx_PLL3_Config+0x15c>)
  29574. 800cf9e: 681b ldr r3, [r3, #0]
  29575. 800cfa0: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  29576. 800cfa4: 2b00 cmp r3, #0
  29577. 800cfa6: d0f0 beq.n 800cf8a <RCCEx_PLL3_Config+0x132>
  29578. }
  29579. }
  29580. return status;
  29581. 800cfa8: 7bfb ldrb r3, [r7, #15]
  29582. }
  29583. 800cfaa: 4618 mov r0, r3
  29584. 800cfac: 3710 adds r7, #16
  29585. 800cfae: 46bd mov sp, r7
  29586. 800cfb0: bd80 pop {r7, pc}
  29587. 800cfb2: bf00 nop
  29588. 800cfb4: 58024400 .word 0x58024400
  29589. 800cfb8: ffff0007 .word 0xffff0007
  29590. 0800cfbc <HAL_RNG_Init>:
  29591. * @param hrng pointer to a RNG_HandleTypeDef structure that contains
  29592. * the configuration information for RNG.
  29593. * @retval HAL status
  29594. */
  29595. HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng)
  29596. {
  29597. 800cfbc: b580 push {r7, lr}
  29598. 800cfbe: b084 sub sp, #16
  29599. 800cfc0: af00 add r7, sp, #0
  29600. 800cfc2: 6078 str r0, [r7, #4]
  29601. uint32_t tickstart;
  29602. /* Check the RNG handle allocation */
  29603. if (hrng == NULL)
  29604. 800cfc4: 687b ldr r3, [r7, #4]
  29605. 800cfc6: 2b00 cmp r3, #0
  29606. 800cfc8: d101 bne.n 800cfce <HAL_RNG_Init+0x12>
  29607. {
  29608. return HAL_ERROR;
  29609. 800cfca: 2301 movs r3, #1
  29610. 800cfcc: e054 b.n 800d078 <HAL_RNG_Init+0xbc>
  29611. /* Init the low level hardware */
  29612. hrng->MspInitCallback(hrng);
  29613. }
  29614. #else
  29615. if (hrng->State == HAL_RNG_STATE_RESET)
  29616. 800cfce: 687b ldr r3, [r7, #4]
  29617. 800cfd0: 7a5b ldrb r3, [r3, #9]
  29618. 800cfd2: b2db uxtb r3, r3
  29619. 800cfd4: 2b00 cmp r3, #0
  29620. 800cfd6: d105 bne.n 800cfe4 <HAL_RNG_Init+0x28>
  29621. {
  29622. /* Allocate lock resource and initialize it */
  29623. hrng->Lock = HAL_UNLOCKED;
  29624. 800cfd8: 687b ldr r3, [r7, #4]
  29625. 800cfda: 2200 movs r2, #0
  29626. 800cfdc: 721a strb r2, [r3, #8]
  29627. /* Init the low level hardware */
  29628. HAL_RNG_MspInit(hrng);
  29629. 800cfde: 6878 ldr r0, [r7, #4]
  29630. 800cfe0: f7f6 fcba bl 8003958 <HAL_RNG_MspInit>
  29631. }
  29632. #endif /* USE_HAL_RNG_REGISTER_CALLBACKS */
  29633. /* Change RNG peripheral state */
  29634. hrng->State = HAL_RNG_STATE_BUSY;
  29635. 800cfe4: 687b ldr r3, [r7, #4]
  29636. 800cfe6: 2202 movs r2, #2
  29637. 800cfe8: 725a strb r2, [r3, #9]
  29638. }
  29639. }
  29640. }
  29641. #else
  29642. /* Clock Error Detection Configuration */
  29643. MODIFY_REG(hrng->Instance->CR, RNG_CR_CED, hrng->Init.ClockErrorDetection);
  29644. 800cfea: 687b ldr r3, [r7, #4]
  29645. 800cfec: 681b ldr r3, [r3, #0]
  29646. 800cfee: 681b ldr r3, [r3, #0]
  29647. 800cff0: f023 0120 bic.w r1, r3, #32
  29648. 800cff4: 687b ldr r3, [r7, #4]
  29649. 800cff6: 685a ldr r2, [r3, #4]
  29650. 800cff8: 687b ldr r3, [r7, #4]
  29651. 800cffa: 681b ldr r3, [r3, #0]
  29652. 800cffc: 430a orrs r2, r1
  29653. 800cffe: 601a str r2, [r3, #0]
  29654. #endif /* RNG_CR_CONDRST */
  29655. /* Enable the RNG Peripheral */
  29656. __HAL_RNG_ENABLE(hrng);
  29657. 800d000: 687b ldr r3, [r7, #4]
  29658. 800d002: 681b ldr r3, [r3, #0]
  29659. 800d004: 681a ldr r2, [r3, #0]
  29660. 800d006: 687b ldr r3, [r7, #4]
  29661. 800d008: 681b ldr r3, [r3, #0]
  29662. 800d00a: f042 0204 orr.w r2, r2, #4
  29663. 800d00e: 601a str r2, [r3, #0]
  29664. /* verify that no seed error */
  29665. if (__HAL_RNG_GET_IT(hrng, RNG_IT_SEI) != RESET)
  29666. 800d010: 687b ldr r3, [r7, #4]
  29667. 800d012: 681b ldr r3, [r3, #0]
  29668. 800d014: 685b ldr r3, [r3, #4]
  29669. 800d016: f003 0340 and.w r3, r3, #64 @ 0x40
  29670. 800d01a: 2b40 cmp r3, #64 @ 0x40
  29671. 800d01c: d104 bne.n 800d028 <HAL_RNG_Init+0x6c>
  29672. {
  29673. hrng->State = HAL_RNG_STATE_ERROR;
  29674. 800d01e: 687b ldr r3, [r7, #4]
  29675. 800d020: 2204 movs r2, #4
  29676. 800d022: 725a strb r2, [r3, #9]
  29677. return HAL_ERROR;
  29678. 800d024: 2301 movs r3, #1
  29679. 800d026: e027 b.n 800d078 <HAL_RNG_Init+0xbc>
  29680. }
  29681. /* Get tick */
  29682. tickstart = HAL_GetTick();
  29683. 800d028: f7f8 fb34 bl 8005694 <HAL_GetTick>
  29684. 800d02c: 60f8 str r0, [r7, #12]
  29685. /* Check if data register contains valid random data */
  29686. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  29687. 800d02e: e015 b.n 800d05c <HAL_RNG_Init+0xa0>
  29688. {
  29689. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  29690. 800d030: f7f8 fb30 bl 8005694 <HAL_GetTick>
  29691. 800d034: 4602 mov r2, r0
  29692. 800d036: 68fb ldr r3, [r7, #12]
  29693. 800d038: 1ad3 subs r3, r2, r3
  29694. 800d03a: 2b02 cmp r3, #2
  29695. 800d03c: d90e bls.n 800d05c <HAL_RNG_Init+0xa0>
  29696. {
  29697. /* New check to avoid false timeout detection in case of preemption */
  29698. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  29699. 800d03e: 687b ldr r3, [r7, #4]
  29700. 800d040: 681b ldr r3, [r3, #0]
  29701. 800d042: 685b ldr r3, [r3, #4]
  29702. 800d044: f003 0304 and.w r3, r3, #4
  29703. 800d048: 2b04 cmp r3, #4
  29704. 800d04a: d107 bne.n 800d05c <HAL_RNG_Init+0xa0>
  29705. {
  29706. hrng->State = HAL_RNG_STATE_ERROR;
  29707. 800d04c: 687b ldr r3, [r7, #4]
  29708. 800d04e: 2204 movs r2, #4
  29709. 800d050: 725a strb r2, [r3, #9]
  29710. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  29711. 800d052: 687b ldr r3, [r7, #4]
  29712. 800d054: 2202 movs r2, #2
  29713. 800d056: 60da str r2, [r3, #12]
  29714. return HAL_ERROR;
  29715. 800d058: 2301 movs r3, #1
  29716. 800d05a: e00d b.n 800d078 <HAL_RNG_Init+0xbc>
  29717. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  29718. 800d05c: 687b ldr r3, [r7, #4]
  29719. 800d05e: 681b ldr r3, [r3, #0]
  29720. 800d060: 685b ldr r3, [r3, #4]
  29721. 800d062: f003 0304 and.w r3, r3, #4
  29722. 800d066: 2b04 cmp r3, #4
  29723. 800d068: d0e2 beq.n 800d030 <HAL_RNG_Init+0x74>
  29724. }
  29725. }
  29726. }
  29727. /* Initialize the RNG state */
  29728. hrng->State = HAL_RNG_STATE_READY;
  29729. 800d06a: 687b ldr r3, [r7, #4]
  29730. 800d06c: 2201 movs r2, #1
  29731. 800d06e: 725a strb r2, [r3, #9]
  29732. /* Initialise the error code */
  29733. hrng->ErrorCode = HAL_RNG_ERROR_NONE;
  29734. 800d070: 687b ldr r3, [r7, #4]
  29735. 800d072: 2200 movs r2, #0
  29736. 800d074: 60da str r2, [r3, #12]
  29737. /* Return function status */
  29738. return HAL_OK;
  29739. 800d076: 2300 movs r3, #0
  29740. }
  29741. 800d078: 4618 mov r0, r3
  29742. 800d07a: 3710 adds r7, #16
  29743. 800d07c: 46bd mov sp, r7
  29744. 800d07e: bd80 pop {r7, pc}
  29745. 0800d080 <HAL_RNG_GenerateRandomNumber>:
  29746. * @param random32bit pointer to generated random number variable if successful.
  29747. * @retval HAL status
  29748. */
  29749. HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber(RNG_HandleTypeDef *hrng, uint32_t *random32bit)
  29750. {
  29751. 800d080: b580 push {r7, lr}
  29752. 800d082: b084 sub sp, #16
  29753. 800d084: af00 add r7, sp, #0
  29754. 800d086: 6078 str r0, [r7, #4]
  29755. 800d088: 6039 str r1, [r7, #0]
  29756. uint32_t tickstart;
  29757. HAL_StatusTypeDef status = HAL_OK;
  29758. 800d08a: 2300 movs r3, #0
  29759. 800d08c: 73fb strb r3, [r7, #15]
  29760. /* Process Locked */
  29761. __HAL_LOCK(hrng);
  29762. 800d08e: 687b ldr r3, [r7, #4]
  29763. 800d090: 7a1b ldrb r3, [r3, #8]
  29764. 800d092: 2b01 cmp r3, #1
  29765. 800d094: d101 bne.n 800d09a <HAL_RNG_GenerateRandomNumber+0x1a>
  29766. 800d096: 2302 movs r3, #2
  29767. 800d098: e044 b.n 800d124 <HAL_RNG_GenerateRandomNumber+0xa4>
  29768. 800d09a: 687b ldr r3, [r7, #4]
  29769. 800d09c: 2201 movs r2, #1
  29770. 800d09e: 721a strb r2, [r3, #8]
  29771. /* Check RNG peripheral state */
  29772. if (hrng->State == HAL_RNG_STATE_READY)
  29773. 800d0a0: 687b ldr r3, [r7, #4]
  29774. 800d0a2: 7a5b ldrb r3, [r3, #9]
  29775. 800d0a4: b2db uxtb r3, r3
  29776. 800d0a6: 2b01 cmp r3, #1
  29777. 800d0a8: d133 bne.n 800d112 <HAL_RNG_GenerateRandomNumber+0x92>
  29778. {
  29779. /* Change RNG peripheral state */
  29780. hrng->State = HAL_RNG_STATE_BUSY;
  29781. 800d0aa: 687b ldr r3, [r7, #4]
  29782. 800d0ac: 2202 movs r2, #2
  29783. 800d0ae: 725a strb r2, [r3, #9]
  29784. }
  29785. }
  29786. #endif /* RNG_CR_CONDRST */
  29787. /* Get tick */
  29788. tickstart = HAL_GetTick();
  29789. 800d0b0: f7f8 faf0 bl 8005694 <HAL_GetTick>
  29790. 800d0b4: 60b8 str r0, [r7, #8]
  29791. /* Check if data register contains valid random data */
  29792. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_DRDY) == RESET)
  29793. 800d0b6: e018 b.n 800d0ea <HAL_RNG_GenerateRandomNumber+0x6a>
  29794. {
  29795. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  29796. 800d0b8: f7f8 faec bl 8005694 <HAL_GetTick>
  29797. 800d0bc: 4602 mov r2, r0
  29798. 800d0be: 68bb ldr r3, [r7, #8]
  29799. 800d0c0: 1ad3 subs r3, r2, r3
  29800. 800d0c2: 2b02 cmp r3, #2
  29801. 800d0c4: d911 bls.n 800d0ea <HAL_RNG_GenerateRandomNumber+0x6a>
  29802. {
  29803. /* New check to avoid false timeout detection in case of preemption */
  29804. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_DRDY) == RESET)
  29805. 800d0c6: 687b ldr r3, [r7, #4]
  29806. 800d0c8: 681b ldr r3, [r3, #0]
  29807. 800d0ca: 685b ldr r3, [r3, #4]
  29808. 800d0cc: f003 0301 and.w r3, r3, #1
  29809. 800d0d0: 2b01 cmp r3, #1
  29810. 800d0d2: d00a beq.n 800d0ea <HAL_RNG_GenerateRandomNumber+0x6a>
  29811. {
  29812. hrng->State = HAL_RNG_STATE_READY;
  29813. 800d0d4: 687b ldr r3, [r7, #4]
  29814. 800d0d6: 2201 movs r2, #1
  29815. 800d0d8: 725a strb r2, [r3, #9]
  29816. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  29817. 800d0da: 687b ldr r3, [r7, #4]
  29818. 800d0dc: 2202 movs r2, #2
  29819. 800d0de: 60da str r2, [r3, #12]
  29820. /* Process Unlocked */
  29821. __HAL_UNLOCK(hrng);
  29822. 800d0e0: 687b ldr r3, [r7, #4]
  29823. 800d0e2: 2200 movs r2, #0
  29824. 800d0e4: 721a strb r2, [r3, #8]
  29825. return HAL_ERROR;
  29826. 800d0e6: 2301 movs r3, #1
  29827. 800d0e8: e01c b.n 800d124 <HAL_RNG_GenerateRandomNumber+0xa4>
  29828. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_DRDY) == RESET)
  29829. 800d0ea: 687b ldr r3, [r7, #4]
  29830. 800d0ec: 681b ldr r3, [r3, #0]
  29831. 800d0ee: 685b ldr r3, [r3, #4]
  29832. 800d0f0: f003 0301 and.w r3, r3, #1
  29833. 800d0f4: 2b01 cmp r3, #1
  29834. 800d0f6: d1df bne.n 800d0b8 <HAL_RNG_GenerateRandomNumber+0x38>
  29835. }
  29836. }
  29837. }
  29838. /* Get a 32bit Random number */
  29839. hrng->RandomNumber = hrng->Instance->DR;
  29840. 800d0f8: 687b ldr r3, [r7, #4]
  29841. 800d0fa: 681b ldr r3, [r3, #0]
  29842. 800d0fc: 689a ldr r2, [r3, #8]
  29843. 800d0fe: 687b ldr r3, [r7, #4]
  29844. 800d100: 611a str r2, [r3, #16]
  29845. else /* No seed error */
  29846. {
  29847. *random32bit = hrng->RandomNumber;
  29848. }
  29849. #else
  29850. *random32bit = hrng->RandomNumber;
  29851. 800d102: 687b ldr r3, [r7, #4]
  29852. 800d104: 691a ldr r2, [r3, #16]
  29853. 800d106: 683b ldr r3, [r7, #0]
  29854. 800d108: 601a str r2, [r3, #0]
  29855. #endif /* RNG_CR_CONDRST */
  29856. hrng->State = HAL_RNG_STATE_READY;
  29857. 800d10a: 687b ldr r3, [r7, #4]
  29858. 800d10c: 2201 movs r2, #1
  29859. 800d10e: 725a strb r2, [r3, #9]
  29860. 800d110: e004 b.n 800d11c <HAL_RNG_GenerateRandomNumber+0x9c>
  29861. }
  29862. else
  29863. {
  29864. hrng->ErrorCode = HAL_RNG_ERROR_BUSY;
  29865. 800d112: 687b ldr r3, [r7, #4]
  29866. 800d114: 2204 movs r2, #4
  29867. 800d116: 60da str r2, [r3, #12]
  29868. status = HAL_ERROR;
  29869. 800d118: 2301 movs r3, #1
  29870. 800d11a: 73fb strb r3, [r7, #15]
  29871. }
  29872. /* Process Unlocked */
  29873. __HAL_UNLOCK(hrng);
  29874. 800d11c: 687b ldr r3, [r7, #4]
  29875. 800d11e: 2200 movs r2, #0
  29876. 800d120: 721a strb r2, [r3, #8]
  29877. return status;
  29878. 800d122: 7bfb ldrb r3, [r7, #15]
  29879. }
  29880. 800d124: 4618 mov r0, r3
  29881. 800d126: 3710 adds r7, #16
  29882. 800d128: 46bd mov sp, r7
  29883. 800d12a: bd80 pop {r7, pc}
  29884. 0800d12c <HAL_TIM_Base_Init>:
  29885. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  29886. * @param htim TIM Base handle
  29887. * @retval HAL status
  29888. */
  29889. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  29890. {
  29891. 800d12c: b580 push {r7, lr}
  29892. 800d12e: b082 sub sp, #8
  29893. 800d130: af00 add r7, sp, #0
  29894. 800d132: 6078 str r0, [r7, #4]
  29895. /* Check the TIM handle allocation */
  29896. if (htim == NULL)
  29897. 800d134: 687b ldr r3, [r7, #4]
  29898. 800d136: 2b00 cmp r3, #0
  29899. 800d138: d101 bne.n 800d13e <HAL_TIM_Base_Init+0x12>
  29900. {
  29901. return HAL_ERROR;
  29902. 800d13a: 2301 movs r3, #1
  29903. 800d13c: e049 b.n 800d1d2 <HAL_TIM_Base_Init+0xa6>
  29904. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  29905. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  29906. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  29907. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  29908. if (htim->State == HAL_TIM_STATE_RESET)
  29909. 800d13e: 687b ldr r3, [r7, #4]
  29910. 800d140: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  29911. 800d144: b2db uxtb r3, r3
  29912. 800d146: 2b00 cmp r3, #0
  29913. 800d148: d106 bne.n 800d158 <HAL_TIM_Base_Init+0x2c>
  29914. {
  29915. /* Allocate lock resource and initialize it */
  29916. htim->Lock = HAL_UNLOCKED;
  29917. 800d14a: 687b ldr r3, [r7, #4]
  29918. 800d14c: 2200 movs r2, #0
  29919. 800d14e: f883 203c strb.w r2, [r3, #60] @ 0x3c
  29920. }
  29921. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  29922. htim->Base_MspInitCallback(htim);
  29923. #else
  29924. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  29925. HAL_TIM_Base_MspInit(htim);
  29926. 800d152: 6878 ldr r0, [r7, #4]
  29927. 800d154: f000 f841 bl 800d1da <HAL_TIM_Base_MspInit>
  29928. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29929. }
  29930. /* Set the TIM state */
  29931. htim->State = HAL_TIM_STATE_BUSY;
  29932. 800d158: 687b ldr r3, [r7, #4]
  29933. 800d15a: 2202 movs r2, #2
  29934. 800d15c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  29935. /* Set the Time Base configuration */
  29936. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  29937. 800d160: 687b ldr r3, [r7, #4]
  29938. 800d162: 681a ldr r2, [r3, #0]
  29939. 800d164: 687b ldr r3, [r7, #4]
  29940. 800d166: 3304 adds r3, #4
  29941. 800d168: 4619 mov r1, r3
  29942. 800d16a: 4610 mov r0, r2
  29943. 800d16c: f000 f9e8 bl 800d540 <TIM_Base_SetConfig>
  29944. /* Initialize the DMA burst operation state */
  29945. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  29946. 800d170: 687b ldr r3, [r7, #4]
  29947. 800d172: 2201 movs r2, #1
  29948. 800d174: f883 2048 strb.w r2, [r3, #72] @ 0x48
  29949. /* Initialize the TIM channels state */
  29950. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  29951. 800d178: 687b ldr r3, [r7, #4]
  29952. 800d17a: 2201 movs r2, #1
  29953. 800d17c: f883 203e strb.w r2, [r3, #62] @ 0x3e
  29954. 800d180: 687b ldr r3, [r7, #4]
  29955. 800d182: 2201 movs r2, #1
  29956. 800d184: f883 203f strb.w r2, [r3, #63] @ 0x3f
  29957. 800d188: 687b ldr r3, [r7, #4]
  29958. 800d18a: 2201 movs r2, #1
  29959. 800d18c: f883 2040 strb.w r2, [r3, #64] @ 0x40
  29960. 800d190: 687b ldr r3, [r7, #4]
  29961. 800d192: 2201 movs r2, #1
  29962. 800d194: f883 2041 strb.w r2, [r3, #65] @ 0x41
  29963. 800d198: 687b ldr r3, [r7, #4]
  29964. 800d19a: 2201 movs r2, #1
  29965. 800d19c: f883 2042 strb.w r2, [r3, #66] @ 0x42
  29966. 800d1a0: 687b ldr r3, [r7, #4]
  29967. 800d1a2: 2201 movs r2, #1
  29968. 800d1a4: f883 2043 strb.w r2, [r3, #67] @ 0x43
  29969. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  29970. 800d1a8: 687b ldr r3, [r7, #4]
  29971. 800d1aa: 2201 movs r2, #1
  29972. 800d1ac: f883 2044 strb.w r2, [r3, #68] @ 0x44
  29973. 800d1b0: 687b ldr r3, [r7, #4]
  29974. 800d1b2: 2201 movs r2, #1
  29975. 800d1b4: f883 2045 strb.w r2, [r3, #69] @ 0x45
  29976. 800d1b8: 687b ldr r3, [r7, #4]
  29977. 800d1ba: 2201 movs r2, #1
  29978. 800d1bc: f883 2046 strb.w r2, [r3, #70] @ 0x46
  29979. 800d1c0: 687b ldr r3, [r7, #4]
  29980. 800d1c2: 2201 movs r2, #1
  29981. 800d1c4: f883 2047 strb.w r2, [r3, #71] @ 0x47
  29982. /* Initialize the TIM state*/
  29983. htim->State = HAL_TIM_STATE_READY;
  29984. 800d1c8: 687b ldr r3, [r7, #4]
  29985. 800d1ca: 2201 movs r2, #1
  29986. 800d1cc: f883 203d strb.w r2, [r3, #61] @ 0x3d
  29987. return HAL_OK;
  29988. 800d1d0: 2300 movs r3, #0
  29989. }
  29990. 800d1d2: 4618 mov r0, r3
  29991. 800d1d4: 3708 adds r7, #8
  29992. 800d1d6: 46bd mov sp, r7
  29993. 800d1d8: bd80 pop {r7, pc}
  29994. 0800d1da <HAL_TIM_Base_MspInit>:
  29995. * @brief Initializes the TIM Base MSP.
  29996. * @param htim TIM Base handle
  29997. * @retval None
  29998. */
  29999. __weak void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim)
  30000. {
  30001. 800d1da: b480 push {r7}
  30002. 800d1dc: b083 sub sp, #12
  30003. 800d1de: af00 add r7, sp, #0
  30004. 800d1e0: 6078 str r0, [r7, #4]
  30005. UNUSED(htim);
  30006. /* NOTE : This function should not be modified, when the callback is needed,
  30007. the HAL_TIM_Base_MspInit could be implemented in the user file
  30008. */
  30009. }
  30010. 800d1e2: bf00 nop
  30011. 800d1e4: 370c adds r7, #12
  30012. 800d1e6: 46bd mov sp, r7
  30013. 800d1e8: f85d 7b04 ldr.w r7, [sp], #4
  30014. 800d1ec: 4770 bx lr
  30015. ...
  30016. 0800d1f0 <HAL_TIM_Base_Start_IT>:
  30017. * @brief Starts the TIM Base generation in interrupt mode.
  30018. * @param htim TIM Base handle
  30019. * @retval HAL status
  30020. */
  30021. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  30022. {
  30023. 800d1f0: b480 push {r7}
  30024. 800d1f2: b085 sub sp, #20
  30025. 800d1f4: af00 add r7, sp, #0
  30026. 800d1f6: 6078 str r0, [r7, #4]
  30027. /* Check the parameters */
  30028. assert_param(IS_TIM_INSTANCE(htim->Instance));
  30029. /* Check the TIM state */
  30030. if (htim->State != HAL_TIM_STATE_READY)
  30031. 800d1f8: 687b ldr r3, [r7, #4]
  30032. 800d1fa: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  30033. 800d1fe: b2db uxtb r3, r3
  30034. 800d200: 2b01 cmp r3, #1
  30035. 800d202: d001 beq.n 800d208 <HAL_TIM_Base_Start_IT+0x18>
  30036. {
  30037. return HAL_ERROR;
  30038. 800d204: 2301 movs r3, #1
  30039. 800d206: e054 b.n 800d2b2 <HAL_TIM_Base_Start_IT+0xc2>
  30040. }
  30041. /* Set the TIM state */
  30042. htim->State = HAL_TIM_STATE_BUSY;
  30043. 800d208: 687b ldr r3, [r7, #4]
  30044. 800d20a: 2202 movs r2, #2
  30045. 800d20c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  30046. /* Enable the TIM Update interrupt */
  30047. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  30048. 800d210: 687b ldr r3, [r7, #4]
  30049. 800d212: 681b ldr r3, [r3, #0]
  30050. 800d214: 68da ldr r2, [r3, #12]
  30051. 800d216: 687b ldr r3, [r7, #4]
  30052. 800d218: 681b ldr r3, [r3, #0]
  30053. 800d21a: f042 0201 orr.w r2, r2, #1
  30054. 800d21e: 60da str r2, [r3, #12]
  30055. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  30056. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  30057. 800d220: 687b ldr r3, [r7, #4]
  30058. 800d222: 681b ldr r3, [r3, #0]
  30059. 800d224: 4a26 ldr r2, [pc, #152] @ (800d2c0 <HAL_TIM_Base_Start_IT+0xd0>)
  30060. 800d226: 4293 cmp r3, r2
  30061. 800d228: d022 beq.n 800d270 <HAL_TIM_Base_Start_IT+0x80>
  30062. 800d22a: 687b ldr r3, [r7, #4]
  30063. 800d22c: 681b ldr r3, [r3, #0]
  30064. 800d22e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30065. 800d232: d01d beq.n 800d270 <HAL_TIM_Base_Start_IT+0x80>
  30066. 800d234: 687b ldr r3, [r7, #4]
  30067. 800d236: 681b ldr r3, [r3, #0]
  30068. 800d238: 4a22 ldr r2, [pc, #136] @ (800d2c4 <HAL_TIM_Base_Start_IT+0xd4>)
  30069. 800d23a: 4293 cmp r3, r2
  30070. 800d23c: d018 beq.n 800d270 <HAL_TIM_Base_Start_IT+0x80>
  30071. 800d23e: 687b ldr r3, [r7, #4]
  30072. 800d240: 681b ldr r3, [r3, #0]
  30073. 800d242: 4a21 ldr r2, [pc, #132] @ (800d2c8 <HAL_TIM_Base_Start_IT+0xd8>)
  30074. 800d244: 4293 cmp r3, r2
  30075. 800d246: d013 beq.n 800d270 <HAL_TIM_Base_Start_IT+0x80>
  30076. 800d248: 687b ldr r3, [r7, #4]
  30077. 800d24a: 681b ldr r3, [r3, #0]
  30078. 800d24c: 4a1f ldr r2, [pc, #124] @ (800d2cc <HAL_TIM_Base_Start_IT+0xdc>)
  30079. 800d24e: 4293 cmp r3, r2
  30080. 800d250: d00e beq.n 800d270 <HAL_TIM_Base_Start_IT+0x80>
  30081. 800d252: 687b ldr r3, [r7, #4]
  30082. 800d254: 681b ldr r3, [r3, #0]
  30083. 800d256: 4a1e ldr r2, [pc, #120] @ (800d2d0 <HAL_TIM_Base_Start_IT+0xe0>)
  30084. 800d258: 4293 cmp r3, r2
  30085. 800d25a: d009 beq.n 800d270 <HAL_TIM_Base_Start_IT+0x80>
  30086. 800d25c: 687b ldr r3, [r7, #4]
  30087. 800d25e: 681b ldr r3, [r3, #0]
  30088. 800d260: 4a1c ldr r2, [pc, #112] @ (800d2d4 <HAL_TIM_Base_Start_IT+0xe4>)
  30089. 800d262: 4293 cmp r3, r2
  30090. 800d264: d004 beq.n 800d270 <HAL_TIM_Base_Start_IT+0x80>
  30091. 800d266: 687b ldr r3, [r7, #4]
  30092. 800d268: 681b ldr r3, [r3, #0]
  30093. 800d26a: 4a1b ldr r2, [pc, #108] @ (800d2d8 <HAL_TIM_Base_Start_IT+0xe8>)
  30094. 800d26c: 4293 cmp r3, r2
  30095. 800d26e: d115 bne.n 800d29c <HAL_TIM_Base_Start_IT+0xac>
  30096. {
  30097. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  30098. 800d270: 687b ldr r3, [r7, #4]
  30099. 800d272: 681b ldr r3, [r3, #0]
  30100. 800d274: 689a ldr r2, [r3, #8]
  30101. 800d276: 4b19 ldr r3, [pc, #100] @ (800d2dc <HAL_TIM_Base_Start_IT+0xec>)
  30102. 800d278: 4013 ands r3, r2
  30103. 800d27a: 60fb str r3, [r7, #12]
  30104. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  30105. 800d27c: 68fb ldr r3, [r7, #12]
  30106. 800d27e: 2b06 cmp r3, #6
  30107. 800d280: d015 beq.n 800d2ae <HAL_TIM_Base_Start_IT+0xbe>
  30108. 800d282: 68fb ldr r3, [r7, #12]
  30109. 800d284: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  30110. 800d288: d011 beq.n 800d2ae <HAL_TIM_Base_Start_IT+0xbe>
  30111. {
  30112. __HAL_TIM_ENABLE(htim);
  30113. 800d28a: 687b ldr r3, [r7, #4]
  30114. 800d28c: 681b ldr r3, [r3, #0]
  30115. 800d28e: 681a ldr r2, [r3, #0]
  30116. 800d290: 687b ldr r3, [r7, #4]
  30117. 800d292: 681b ldr r3, [r3, #0]
  30118. 800d294: f042 0201 orr.w r2, r2, #1
  30119. 800d298: 601a str r2, [r3, #0]
  30120. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  30121. 800d29a: e008 b.n 800d2ae <HAL_TIM_Base_Start_IT+0xbe>
  30122. }
  30123. }
  30124. else
  30125. {
  30126. __HAL_TIM_ENABLE(htim);
  30127. 800d29c: 687b ldr r3, [r7, #4]
  30128. 800d29e: 681b ldr r3, [r3, #0]
  30129. 800d2a0: 681a ldr r2, [r3, #0]
  30130. 800d2a2: 687b ldr r3, [r7, #4]
  30131. 800d2a4: 681b ldr r3, [r3, #0]
  30132. 800d2a6: f042 0201 orr.w r2, r2, #1
  30133. 800d2aa: 601a str r2, [r3, #0]
  30134. 800d2ac: e000 b.n 800d2b0 <HAL_TIM_Base_Start_IT+0xc0>
  30135. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  30136. 800d2ae: bf00 nop
  30137. }
  30138. /* Return function status */
  30139. return HAL_OK;
  30140. 800d2b0: 2300 movs r3, #0
  30141. }
  30142. 800d2b2: 4618 mov r0, r3
  30143. 800d2b4: 3714 adds r7, #20
  30144. 800d2b6: 46bd mov sp, r7
  30145. 800d2b8: f85d 7b04 ldr.w r7, [sp], #4
  30146. 800d2bc: 4770 bx lr
  30147. 800d2be: bf00 nop
  30148. 800d2c0: 40010000 .word 0x40010000
  30149. 800d2c4: 40000400 .word 0x40000400
  30150. 800d2c8: 40000800 .word 0x40000800
  30151. 800d2cc: 40000c00 .word 0x40000c00
  30152. 800d2d0: 40010400 .word 0x40010400
  30153. 800d2d4: 40001800 .word 0x40001800
  30154. 800d2d8: 40014000 .word 0x40014000
  30155. 800d2dc: 00010007 .word 0x00010007
  30156. 0800d2e0 <HAL_TIM_IRQHandler>:
  30157. * @brief This function handles TIM interrupts requests.
  30158. * @param htim TIM handle
  30159. * @retval None
  30160. */
  30161. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  30162. {
  30163. 800d2e0: b580 push {r7, lr}
  30164. 800d2e2: b084 sub sp, #16
  30165. 800d2e4: af00 add r7, sp, #0
  30166. 800d2e6: 6078 str r0, [r7, #4]
  30167. uint32_t itsource = htim->Instance->DIER;
  30168. 800d2e8: 687b ldr r3, [r7, #4]
  30169. 800d2ea: 681b ldr r3, [r3, #0]
  30170. 800d2ec: 68db ldr r3, [r3, #12]
  30171. 800d2ee: 60fb str r3, [r7, #12]
  30172. uint32_t itflag = htim->Instance->SR;
  30173. 800d2f0: 687b ldr r3, [r7, #4]
  30174. 800d2f2: 681b ldr r3, [r3, #0]
  30175. 800d2f4: 691b ldr r3, [r3, #16]
  30176. 800d2f6: 60bb str r3, [r7, #8]
  30177. /* Capture compare 1 event */
  30178. if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
  30179. 800d2f8: 68bb ldr r3, [r7, #8]
  30180. 800d2fa: f003 0302 and.w r3, r3, #2
  30181. 800d2fe: 2b00 cmp r3, #0
  30182. 800d300: d020 beq.n 800d344 <HAL_TIM_IRQHandler+0x64>
  30183. {
  30184. if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
  30185. 800d302: 68fb ldr r3, [r7, #12]
  30186. 800d304: f003 0302 and.w r3, r3, #2
  30187. 800d308: 2b00 cmp r3, #0
  30188. 800d30a: d01b beq.n 800d344 <HAL_TIM_IRQHandler+0x64>
  30189. {
  30190. {
  30191. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
  30192. 800d30c: 687b ldr r3, [r7, #4]
  30193. 800d30e: 681b ldr r3, [r3, #0]
  30194. 800d310: f06f 0202 mvn.w r2, #2
  30195. 800d314: 611a str r2, [r3, #16]
  30196. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  30197. 800d316: 687b ldr r3, [r7, #4]
  30198. 800d318: 2201 movs r2, #1
  30199. 800d31a: 771a strb r2, [r3, #28]
  30200. /* Input capture event */
  30201. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  30202. 800d31c: 687b ldr r3, [r7, #4]
  30203. 800d31e: 681b ldr r3, [r3, #0]
  30204. 800d320: 699b ldr r3, [r3, #24]
  30205. 800d322: f003 0303 and.w r3, r3, #3
  30206. 800d326: 2b00 cmp r3, #0
  30207. 800d328: d003 beq.n 800d332 <HAL_TIM_IRQHandler+0x52>
  30208. {
  30209. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  30210. htim->IC_CaptureCallback(htim);
  30211. #else
  30212. HAL_TIM_IC_CaptureCallback(htim);
  30213. 800d32a: 6878 ldr r0, [r7, #4]
  30214. 800d32c: f000 f8e9 bl 800d502 <HAL_TIM_IC_CaptureCallback>
  30215. 800d330: e005 b.n 800d33e <HAL_TIM_IRQHandler+0x5e>
  30216. {
  30217. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  30218. htim->OC_DelayElapsedCallback(htim);
  30219. htim->PWM_PulseFinishedCallback(htim);
  30220. #else
  30221. HAL_TIM_OC_DelayElapsedCallback(htim);
  30222. 800d332: 6878 ldr r0, [r7, #4]
  30223. 800d334: f000 f8db bl 800d4ee <HAL_TIM_OC_DelayElapsedCallback>
  30224. HAL_TIM_PWM_PulseFinishedCallback(htim);
  30225. 800d338: 6878 ldr r0, [r7, #4]
  30226. 800d33a: f000 f8ec bl 800d516 <HAL_TIM_PWM_PulseFinishedCallback>
  30227. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  30228. }
  30229. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  30230. 800d33e: 687b ldr r3, [r7, #4]
  30231. 800d340: 2200 movs r2, #0
  30232. 800d342: 771a strb r2, [r3, #28]
  30233. }
  30234. }
  30235. }
  30236. /* Capture compare 2 event */
  30237. if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
  30238. 800d344: 68bb ldr r3, [r7, #8]
  30239. 800d346: f003 0304 and.w r3, r3, #4
  30240. 800d34a: 2b00 cmp r3, #0
  30241. 800d34c: d020 beq.n 800d390 <HAL_TIM_IRQHandler+0xb0>
  30242. {
  30243. if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
  30244. 800d34e: 68fb ldr r3, [r7, #12]
  30245. 800d350: f003 0304 and.w r3, r3, #4
  30246. 800d354: 2b00 cmp r3, #0
  30247. 800d356: d01b beq.n 800d390 <HAL_TIM_IRQHandler+0xb0>
  30248. {
  30249. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
  30250. 800d358: 687b ldr r3, [r7, #4]
  30251. 800d35a: 681b ldr r3, [r3, #0]
  30252. 800d35c: f06f 0204 mvn.w r2, #4
  30253. 800d360: 611a str r2, [r3, #16]
  30254. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  30255. 800d362: 687b ldr r3, [r7, #4]
  30256. 800d364: 2202 movs r2, #2
  30257. 800d366: 771a strb r2, [r3, #28]
  30258. /* Input capture event */
  30259. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  30260. 800d368: 687b ldr r3, [r7, #4]
  30261. 800d36a: 681b ldr r3, [r3, #0]
  30262. 800d36c: 699b ldr r3, [r3, #24]
  30263. 800d36e: f403 7340 and.w r3, r3, #768 @ 0x300
  30264. 800d372: 2b00 cmp r3, #0
  30265. 800d374: d003 beq.n 800d37e <HAL_TIM_IRQHandler+0x9e>
  30266. {
  30267. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  30268. htim->IC_CaptureCallback(htim);
  30269. #else
  30270. HAL_TIM_IC_CaptureCallback(htim);
  30271. 800d376: 6878 ldr r0, [r7, #4]
  30272. 800d378: f000 f8c3 bl 800d502 <HAL_TIM_IC_CaptureCallback>
  30273. 800d37c: e005 b.n 800d38a <HAL_TIM_IRQHandler+0xaa>
  30274. {
  30275. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  30276. htim->OC_DelayElapsedCallback(htim);
  30277. htim->PWM_PulseFinishedCallback(htim);
  30278. #else
  30279. HAL_TIM_OC_DelayElapsedCallback(htim);
  30280. 800d37e: 6878 ldr r0, [r7, #4]
  30281. 800d380: f000 f8b5 bl 800d4ee <HAL_TIM_OC_DelayElapsedCallback>
  30282. HAL_TIM_PWM_PulseFinishedCallback(htim);
  30283. 800d384: 6878 ldr r0, [r7, #4]
  30284. 800d386: f000 f8c6 bl 800d516 <HAL_TIM_PWM_PulseFinishedCallback>
  30285. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  30286. }
  30287. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  30288. 800d38a: 687b ldr r3, [r7, #4]
  30289. 800d38c: 2200 movs r2, #0
  30290. 800d38e: 771a strb r2, [r3, #28]
  30291. }
  30292. }
  30293. /* Capture compare 3 event */
  30294. if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
  30295. 800d390: 68bb ldr r3, [r7, #8]
  30296. 800d392: f003 0308 and.w r3, r3, #8
  30297. 800d396: 2b00 cmp r3, #0
  30298. 800d398: d020 beq.n 800d3dc <HAL_TIM_IRQHandler+0xfc>
  30299. {
  30300. if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
  30301. 800d39a: 68fb ldr r3, [r7, #12]
  30302. 800d39c: f003 0308 and.w r3, r3, #8
  30303. 800d3a0: 2b00 cmp r3, #0
  30304. 800d3a2: d01b beq.n 800d3dc <HAL_TIM_IRQHandler+0xfc>
  30305. {
  30306. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
  30307. 800d3a4: 687b ldr r3, [r7, #4]
  30308. 800d3a6: 681b ldr r3, [r3, #0]
  30309. 800d3a8: f06f 0208 mvn.w r2, #8
  30310. 800d3ac: 611a str r2, [r3, #16]
  30311. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  30312. 800d3ae: 687b ldr r3, [r7, #4]
  30313. 800d3b0: 2204 movs r2, #4
  30314. 800d3b2: 771a strb r2, [r3, #28]
  30315. /* Input capture event */
  30316. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  30317. 800d3b4: 687b ldr r3, [r7, #4]
  30318. 800d3b6: 681b ldr r3, [r3, #0]
  30319. 800d3b8: 69db ldr r3, [r3, #28]
  30320. 800d3ba: f003 0303 and.w r3, r3, #3
  30321. 800d3be: 2b00 cmp r3, #0
  30322. 800d3c0: d003 beq.n 800d3ca <HAL_TIM_IRQHandler+0xea>
  30323. {
  30324. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  30325. htim->IC_CaptureCallback(htim);
  30326. #else
  30327. HAL_TIM_IC_CaptureCallback(htim);
  30328. 800d3c2: 6878 ldr r0, [r7, #4]
  30329. 800d3c4: f000 f89d bl 800d502 <HAL_TIM_IC_CaptureCallback>
  30330. 800d3c8: e005 b.n 800d3d6 <HAL_TIM_IRQHandler+0xf6>
  30331. {
  30332. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  30333. htim->OC_DelayElapsedCallback(htim);
  30334. htim->PWM_PulseFinishedCallback(htim);
  30335. #else
  30336. HAL_TIM_OC_DelayElapsedCallback(htim);
  30337. 800d3ca: 6878 ldr r0, [r7, #4]
  30338. 800d3cc: f000 f88f bl 800d4ee <HAL_TIM_OC_DelayElapsedCallback>
  30339. HAL_TIM_PWM_PulseFinishedCallback(htim);
  30340. 800d3d0: 6878 ldr r0, [r7, #4]
  30341. 800d3d2: f000 f8a0 bl 800d516 <HAL_TIM_PWM_PulseFinishedCallback>
  30342. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  30343. }
  30344. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  30345. 800d3d6: 687b ldr r3, [r7, #4]
  30346. 800d3d8: 2200 movs r2, #0
  30347. 800d3da: 771a strb r2, [r3, #28]
  30348. }
  30349. }
  30350. /* Capture compare 4 event */
  30351. if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
  30352. 800d3dc: 68bb ldr r3, [r7, #8]
  30353. 800d3de: f003 0310 and.w r3, r3, #16
  30354. 800d3e2: 2b00 cmp r3, #0
  30355. 800d3e4: d020 beq.n 800d428 <HAL_TIM_IRQHandler+0x148>
  30356. {
  30357. if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
  30358. 800d3e6: 68fb ldr r3, [r7, #12]
  30359. 800d3e8: f003 0310 and.w r3, r3, #16
  30360. 800d3ec: 2b00 cmp r3, #0
  30361. 800d3ee: d01b beq.n 800d428 <HAL_TIM_IRQHandler+0x148>
  30362. {
  30363. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
  30364. 800d3f0: 687b ldr r3, [r7, #4]
  30365. 800d3f2: 681b ldr r3, [r3, #0]
  30366. 800d3f4: f06f 0210 mvn.w r2, #16
  30367. 800d3f8: 611a str r2, [r3, #16]
  30368. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  30369. 800d3fa: 687b ldr r3, [r7, #4]
  30370. 800d3fc: 2208 movs r2, #8
  30371. 800d3fe: 771a strb r2, [r3, #28]
  30372. /* Input capture event */
  30373. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  30374. 800d400: 687b ldr r3, [r7, #4]
  30375. 800d402: 681b ldr r3, [r3, #0]
  30376. 800d404: 69db ldr r3, [r3, #28]
  30377. 800d406: f403 7340 and.w r3, r3, #768 @ 0x300
  30378. 800d40a: 2b00 cmp r3, #0
  30379. 800d40c: d003 beq.n 800d416 <HAL_TIM_IRQHandler+0x136>
  30380. {
  30381. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  30382. htim->IC_CaptureCallback(htim);
  30383. #else
  30384. HAL_TIM_IC_CaptureCallback(htim);
  30385. 800d40e: 6878 ldr r0, [r7, #4]
  30386. 800d410: f000 f877 bl 800d502 <HAL_TIM_IC_CaptureCallback>
  30387. 800d414: e005 b.n 800d422 <HAL_TIM_IRQHandler+0x142>
  30388. {
  30389. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  30390. htim->OC_DelayElapsedCallback(htim);
  30391. htim->PWM_PulseFinishedCallback(htim);
  30392. #else
  30393. HAL_TIM_OC_DelayElapsedCallback(htim);
  30394. 800d416: 6878 ldr r0, [r7, #4]
  30395. 800d418: f000 f869 bl 800d4ee <HAL_TIM_OC_DelayElapsedCallback>
  30396. HAL_TIM_PWM_PulseFinishedCallback(htim);
  30397. 800d41c: 6878 ldr r0, [r7, #4]
  30398. 800d41e: f000 f87a bl 800d516 <HAL_TIM_PWM_PulseFinishedCallback>
  30399. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  30400. }
  30401. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  30402. 800d422: 687b ldr r3, [r7, #4]
  30403. 800d424: 2200 movs r2, #0
  30404. 800d426: 771a strb r2, [r3, #28]
  30405. }
  30406. }
  30407. /* TIM Update event */
  30408. if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
  30409. 800d428: 68bb ldr r3, [r7, #8]
  30410. 800d42a: f003 0301 and.w r3, r3, #1
  30411. 800d42e: 2b00 cmp r3, #0
  30412. 800d430: d00c beq.n 800d44c <HAL_TIM_IRQHandler+0x16c>
  30413. {
  30414. if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
  30415. 800d432: 68fb ldr r3, [r7, #12]
  30416. 800d434: f003 0301 and.w r3, r3, #1
  30417. 800d438: 2b00 cmp r3, #0
  30418. 800d43a: d007 beq.n 800d44c <HAL_TIM_IRQHandler+0x16c>
  30419. {
  30420. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
  30421. 800d43c: 687b ldr r3, [r7, #4]
  30422. 800d43e: 681b ldr r3, [r3, #0]
  30423. 800d440: f06f 0201 mvn.w r2, #1
  30424. 800d444: 611a str r2, [r3, #16]
  30425. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  30426. htim->PeriodElapsedCallback(htim);
  30427. #else
  30428. HAL_TIM_PeriodElapsedCallback(htim);
  30429. 800d446: 6878 ldr r0, [r7, #4]
  30430. 800d448: f7f5 f908 bl 800265c <HAL_TIM_PeriodElapsedCallback>
  30431. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  30432. }
  30433. }
  30434. /* TIM Break input event */
  30435. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  30436. 800d44c: 68bb ldr r3, [r7, #8]
  30437. 800d44e: f003 0380 and.w r3, r3, #128 @ 0x80
  30438. 800d452: 2b00 cmp r3, #0
  30439. 800d454: d104 bne.n 800d460 <HAL_TIM_IRQHandler+0x180>
  30440. ((itflag & (TIM_FLAG_SYSTEM_BREAK)) == (TIM_FLAG_SYSTEM_BREAK)))
  30441. 800d456: 68bb ldr r3, [r7, #8]
  30442. 800d458: f403 5300 and.w r3, r3, #8192 @ 0x2000
  30443. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  30444. 800d45c: 2b00 cmp r3, #0
  30445. 800d45e: d00c beq.n 800d47a <HAL_TIM_IRQHandler+0x19a>
  30446. {
  30447. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  30448. 800d460: 68fb ldr r3, [r7, #12]
  30449. 800d462: f003 0380 and.w r3, r3, #128 @ 0x80
  30450. 800d466: 2b00 cmp r3, #0
  30451. 800d468: d007 beq.n 800d47a <HAL_TIM_IRQHandler+0x19a>
  30452. {
  30453. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK | TIM_FLAG_SYSTEM_BREAK);
  30454. 800d46a: 687b ldr r3, [r7, #4]
  30455. 800d46c: 681b ldr r3, [r3, #0]
  30456. 800d46e: f46f 5202 mvn.w r2, #8320 @ 0x2080
  30457. 800d472: 611a str r2, [r3, #16]
  30458. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  30459. htim->BreakCallback(htim);
  30460. #else
  30461. HAL_TIMEx_BreakCallback(htim);
  30462. 800d474: 6878 ldr r0, [r7, #4]
  30463. 800d476: f000 f913 bl 800d6a0 <HAL_TIMEx_BreakCallback>
  30464. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  30465. }
  30466. }
  30467. /* TIM Break2 input event */
  30468. if ((itflag & (TIM_FLAG_BREAK2)) == (TIM_FLAG_BREAK2))
  30469. 800d47a: 68bb ldr r3, [r7, #8]
  30470. 800d47c: f403 7380 and.w r3, r3, #256 @ 0x100
  30471. 800d480: 2b00 cmp r3, #0
  30472. 800d482: d00c beq.n 800d49e <HAL_TIM_IRQHandler+0x1be>
  30473. {
  30474. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  30475. 800d484: 68fb ldr r3, [r7, #12]
  30476. 800d486: f003 0380 and.w r3, r3, #128 @ 0x80
  30477. 800d48a: 2b00 cmp r3, #0
  30478. 800d48c: d007 beq.n 800d49e <HAL_TIM_IRQHandler+0x1be>
  30479. {
  30480. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2);
  30481. 800d48e: 687b ldr r3, [r7, #4]
  30482. 800d490: 681b ldr r3, [r3, #0]
  30483. 800d492: f46f 7280 mvn.w r2, #256 @ 0x100
  30484. 800d496: 611a str r2, [r3, #16]
  30485. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  30486. htim->Break2Callback(htim);
  30487. #else
  30488. HAL_TIMEx_Break2Callback(htim);
  30489. 800d498: 6878 ldr r0, [r7, #4]
  30490. 800d49a: f000 f90b bl 800d6b4 <HAL_TIMEx_Break2Callback>
  30491. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  30492. }
  30493. }
  30494. /* TIM Trigger detection event */
  30495. if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
  30496. 800d49e: 68bb ldr r3, [r7, #8]
  30497. 800d4a0: f003 0340 and.w r3, r3, #64 @ 0x40
  30498. 800d4a4: 2b00 cmp r3, #0
  30499. 800d4a6: d00c beq.n 800d4c2 <HAL_TIM_IRQHandler+0x1e2>
  30500. {
  30501. if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
  30502. 800d4a8: 68fb ldr r3, [r7, #12]
  30503. 800d4aa: f003 0340 and.w r3, r3, #64 @ 0x40
  30504. 800d4ae: 2b00 cmp r3, #0
  30505. 800d4b0: d007 beq.n 800d4c2 <HAL_TIM_IRQHandler+0x1e2>
  30506. {
  30507. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
  30508. 800d4b2: 687b ldr r3, [r7, #4]
  30509. 800d4b4: 681b ldr r3, [r3, #0]
  30510. 800d4b6: f06f 0240 mvn.w r2, #64 @ 0x40
  30511. 800d4ba: 611a str r2, [r3, #16]
  30512. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  30513. htim->TriggerCallback(htim);
  30514. #else
  30515. HAL_TIM_TriggerCallback(htim);
  30516. 800d4bc: 6878 ldr r0, [r7, #4]
  30517. 800d4be: f000 f834 bl 800d52a <HAL_TIM_TriggerCallback>
  30518. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  30519. }
  30520. }
  30521. /* TIM commutation event */
  30522. if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
  30523. 800d4c2: 68bb ldr r3, [r7, #8]
  30524. 800d4c4: f003 0320 and.w r3, r3, #32
  30525. 800d4c8: 2b00 cmp r3, #0
  30526. 800d4ca: d00c beq.n 800d4e6 <HAL_TIM_IRQHandler+0x206>
  30527. {
  30528. if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
  30529. 800d4cc: 68fb ldr r3, [r7, #12]
  30530. 800d4ce: f003 0320 and.w r3, r3, #32
  30531. 800d4d2: 2b00 cmp r3, #0
  30532. 800d4d4: d007 beq.n 800d4e6 <HAL_TIM_IRQHandler+0x206>
  30533. {
  30534. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
  30535. 800d4d6: 687b ldr r3, [r7, #4]
  30536. 800d4d8: 681b ldr r3, [r3, #0]
  30537. 800d4da: f06f 0220 mvn.w r2, #32
  30538. 800d4de: 611a str r2, [r3, #16]
  30539. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  30540. htim->CommutationCallback(htim);
  30541. #else
  30542. HAL_TIMEx_CommutCallback(htim);
  30543. 800d4e0: 6878 ldr r0, [r7, #4]
  30544. 800d4e2: f000 f8d3 bl 800d68c <HAL_TIMEx_CommutCallback>
  30545. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  30546. }
  30547. }
  30548. }
  30549. 800d4e6: bf00 nop
  30550. 800d4e8: 3710 adds r7, #16
  30551. 800d4ea: 46bd mov sp, r7
  30552. 800d4ec: bd80 pop {r7, pc}
  30553. 0800d4ee <HAL_TIM_OC_DelayElapsedCallback>:
  30554. * @brief Output Compare callback in non-blocking mode
  30555. * @param htim TIM OC handle
  30556. * @retval None
  30557. */
  30558. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  30559. {
  30560. 800d4ee: b480 push {r7}
  30561. 800d4f0: b083 sub sp, #12
  30562. 800d4f2: af00 add r7, sp, #0
  30563. 800d4f4: 6078 str r0, [r7, #4]
  30564. UNUSED(htim);
  30565. /* NOTE : This function should not be modified, when the callback is needed,
  30566. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  30567. */
  30568. }
  30569. 800d4f6: bf00 nop
  30570. 800d4f8: 370c adds r7, #12
  30571. 800d4fa: 46bd mov sp, r7
  30572. 800d4fc: f85d 7b04 ldr.w r7, [sp], #4
  30573. 800d500: 4770 bx lr
  30574. 0800d502 <HAL_TIM_IC_CaptureCallback>:
  30575. * @brief Input Capture callback in non-blocking mode
  30576. * @param htim TIM IC handle
  30577. * @retval None
  30578. */
  30579. __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  30580. {
  30581. 800d502: b480 push {r7}
  30582. 800d504: b083 sub sp, #12
  30583. 800d506: af00 add r7, sp, #0
  30584. 800d508: 6078 str r0, [r7, #4]
  30585. UNUSED(htim);
  30586. /* NOTE : This function should not be modified, when the callback is needed,
  30587. the HAL_TIM_IC_CaptureCallback could be implemented in the user file
  30588. */
  30589. }
  30590. 800d50a: bf00 nop
  30591. 800d50c: 370c adds r7, #12
  30592. 800d50e: 46bd mov sp, r7
  30593. 800d510: f85d 7b04 ldr.w r7, [sp], #4
  30594. 800d514: 4770 bx lr
  30595. 0800d516 <HAL_TIM_PWM_PulseFinishedCallback>:
  30596. * @brief PWM Pulse finished callback in non-blocking mode
  30597. * @param htim TIM handle
  30598. * @retval None
  30599. */
  30600. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  30601. {
  30602. 800d516: b480 push {r7}
  30603. 800d518: b083 sub sp, #12
  30604. 800d51a: af00 add r7, sp, #0
  30605. 800d51c: 6078 str r0, [r7, #4]
  30606. UNUSED(htim);
  30607. /* NOTE : This function should not be modified, when the callback is needed,
  30608. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  30609. */
  30610. }
  30611. 800d51e: bf00 nop
  30612. 800d520: 370c adds r7, #12
  30613. 800d522: 46bd mov sp, r7
  30614. 800d524: f85d 7b04 ldr.w r7, [sp], #4
  30615. 800d528: 4770 bx lr
  30616. 0800d52a <HAL_TIM_TriggerCallback>:
  30617. * @brief Hall Trigger detection callback in non-blocking mode
  30618. * @param htim TIM handle
  30619. * @retval None
  30620. */
  30621. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  30622. {
  30623. 800d52a: b480 push {r7}
  30624. 800d52c: b083 sub sp, #12
  30625. 800d52e: af00 add r7, sp, #0
  30626. 800d530: 6078 str r0, [r7, #4]
  30627. UNUSED(htim);
  30628. /* NOTE : This function should not be modified, when the callback is needed,
  30629. the HAL_TIM_TriggerCallback could be implemented in the user file
  30630. */
  30631. }
  30632. 800d532: bf00 nop
  30633. 800d534: 370c adds r7, #12
  30634. 800d536: 46bd mov sp, r7
  30635. 800d538: f85d 7b04 ldr.w r7, [sp], #4
  30636. 800d53c: 4770 bx lr
  30637. ...
  30638. 0800d540 <TIM_Base_SetConfig>:
  30639. * @param TIMx TIM peripheral
  30640. * @param Structure TIM Base configuration structure
  30641. * @retval None
  30642. */
  30643. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
  30644. {
  30645. 800d540: b480 push {r7}
  30646. 800d542: b085 sub sp, #20
  30647. 800d544: af00 add r7, sp, #0
  30648. 800d546: 6078 str r0, [r7, #4]
  30649. 800d548: 6039 str r1, [r7, #0]
  30650. uint32_t tmpcr1;
  30651. tmpcr1 = TIMx->CR1;
  30652. 800d54a: 687b ldr r3, [r7, #4]
  30653. 800d54c: 681b ldr r3, [r3, #0]
  30654. 800d54e: 60fb str r3, [r7, #12]
  30655. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  30656. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  30657. 800d550: 687b ldr r3, [r7, #4]
  30658. 800d552: 4a46 ldr r2, [pc, #280] @ (800d66c <TIM_Base_SetConfig+0x12c>)
  30659. 800d554: 4293 cmp r3, r2
  30660. 800d556: d013 beq.n 800d580 <TIM_Base_SetConfig+0x40>
  30661. 800d558: 687b ldr r3, [r7, #4]
  30662. 800d55a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30663. 800d55e: d00f beq.n 800d580 <TIM_Base_SetConfig+0x40>
  30664. 800d560: 687b ldr r3, [r7, #4]
  30665. 800d562: 4a43 ldr r2, [pc, #268] @ (800d670 <TIM_Base_SetConfig+0x130>)
  30666. 800d564: 4293 cmp r3, r2
  30667. 800d566: d00b beq.n 800d580 <TIM_Base_SetConfig+0x40>
  30668. 800d568: 687b ldr r3, [r7, #4]
  30669. 800d56a: 4a42 ldr r2, [pc, #264] @ (800d674 <TIM_Base_SetConfig+0x134>)
  30670. 800d56c: 4293 cmp r3, r2
  30671. 800d56e: d007 beq.n 800d580 <TIM_Base_SetConfig+0x40>
  30672. 800d570: 687b ldr r3, [r7, #4]
  30673. 800d572: 4a41 ldr r2, [pc, #260] @ (800d678 <TIM_Base_SetConfig+0x138>)
  30674. 800d574: 4293 cmp r3, r2
  30675. 800d576: d003 beq.n 800d580 <TIM_Base_SetConfig+0x40>
  30676. 800d578: 687b ldr r3, [r7, #4]
  30677. 800d57a: 4a40 ldr r2, [pc, #256] @ (800d67c <TIM_Base_SetConfig+0x13c>)
  30678. 800d57c: 4293 cmp r3, r2
  30679. 800d57e: d108 bne.n 800d592 <TIM_Base_SetConfig+0x52>
  30680. {
  30681. /* Select the Counter Mode */
  30682. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  30683. 800d580: 68fb ldr r3, [r7, #12]
  30684. 800d582: f023 0370 bic.w r3, r3, #112 @ 0x70
  30685. 800d586: 60fb str r3, [r7, #12]
  30686. tmpcr1 |= Structure->CounterMode;
  30687. 800d588: 683b ldr r3, [r7, #0]
  30688. 800d58a: 685b ldr r3, [r3, #4]
  30689. 800d58c: 68fa ldr r2, [r7, #12]
  30690. 800d58e: 4313 orrs r3, r2
  30691. 800d590: 60fb str r3, [r7, #12]
  30692. }
  30693. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  30694. 800d592: 687b ldr r3, [r7, #4]
  30695. 800d594: 4a35 ldr r2, [pc, #212] @ (800d66c <TIM_Base_SetConfig+0x12c>)
  30696. 800d596: 4293 cmp r3, r2
  30697. 800d598: d01f beq.n 800d5da <TIM_Base_SetConfig+0x9a>
  30698. 800d59a: 687b ldr r3, [r7, #4]
  30699. 800d59c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30700. 800d5a0: d01b beq.n 800d5da <TIM_Base_SetConfig+0x9a>
  30701. 800d5a2: 687b ldr r3, [r7, #4]
  30702. 800d5a4: 4a32 ldr r2, [pc, #200] @ (800d670 <TIM_Base_SetConfig+0x130>)
  30703. 800d5a6: 4293 cmp r3, r2
  30704. 800d5a8: d017 beq.n 800d5da <TIM_Base_SetConfig+0x9a>
  30705. 800d5aa: 687b ldr r3, [r7, #4]
  30706. 800d5ac: 4a31 ldr r2, [pc, #196] @ (800d674 <TIM_Base_SetConfig+0x134>)
  30707. 800d5ae: 4293 cmp r3, r2
  30708. 800d5b0: d013 beq.n 800d5da <TIM_Base_SetConfig+0x9a>
  30709. 800d5b2: 687b ldr r3, [r7, #4]
  30710. 800d5b4: 4a30 ldr r2, [pc, #192] @ (800d678 <TIM_Base_SetConfig+0x138>)
  30711. 800d5b6: 4293 cmp r3, r2
  30712. 800d5b8: d00f beq.n 800d5da <TIM_Base_SetConfig+0x9a>
  30713. 800d5ba: 687b ldr r3, [r7, #4]
  30714. 800d5bc: 4a2f ldr r2, [pc, #188] @ (800d67c <TIM_Base_SetConfig+0x13c>)
  30715. 800d5be: 4293 cmp r3, r2
  30716. 800d5c0: d00b beq.n 800d5da <TIM_Base_SetConfig+0x9a>
  30717. 800d5c2: 687b ldr r3, [r7, #4]
  30718. 800d5c4: 4a2e ldr r2, [pc, #184] @ (800d680 <TIM_Base_SetConfig+0x140>)
  30719. 800d5c6: 4293 cmp r3, r2
  30720. 800d5c8: d007 beq.n 800d5da <TIM_Base_SetConfig+0x9a>
  30721. 800d5ca: 687b ldr r3, [r7, #4]
  30722. 800d5cc: 4a2d ldr r2, [pc, #180] @ (800d684 <TIM_Base_SetConfig+0x144>)
  30723. 800d5ce: 4293 cmp r3, r2
  30724. 800d5d0: d003 beq.n 800d5da <TIM_Base_SetConfig+0x9a>
  30725. 800d5d2: 687b ldr r3, [r7, #4]
  30726. 800d5d4: 4a2c ldr r2, [pc, #176] @ (800d688 <TIM_Base_SetConfig+0x148>)
  30727. 800d5d6: 4293 cmp r3, r2
  30728. 800d5d8: d108 bne.n 800d5ec <TIM_Base_SetConfig+0xac>
  30729. {
  30730. /* Set the clock division */
  30731. tmpcr1 &= ~TIM_CR1_CKD;
  30732. 800d5da: 68fb ldr r3, [r7, #12]
  30733. 800d5dc: f423 7340 bic.w r3, r3, #768 @ 0x300
  30734. 800d5e0: 60fb str r3, [r7, #12]
  30735. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  30736. 800d5e2: 683b ldr r3, [r7, #0]
  30737. 800d5e4: 68db ldr r3, [r3, #12]
  30738. 800d5e6: 68fa ldr r2, [r7, #12]
  30739. 800d5e8: 4313 orrs r3, r2
  30740. 800d5ea: 60fb str r3, [r7, #12]
  30741. }
  30742. /* Set the auto-reload preload */
  30743. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  30744. 800d5ec: 68fb ldr r3, [r7, #12]
  30745. 800d5ee: f023 0280 bic.w r2, r3, #128 @ 0x80
  30746. 800d5f2: 683b ldr r3, [r7, #0]
  30747. 800d5f4: 695b ldr r3, [r3, #20]
  30748. 800d5f6: 4313 orrs r3, r2
  30749. 800d5f8: 60fb str r3, [r7, #12]
  30750. TIMx->CR1 = tmpcr1;
  30751. 800d5fa: 687b ldr r3, [r7, #4]
  30752. 800d5fc: 68fa ldr r2, [r7, #12]
  30753. 800d5fe: 601a str r2, [r3, #0]
  30754. /* Set the Autoreload value */
  30755. TIMx->ARR = (uint32_t)Structure->Period ;
  30756. 800d600: 683b ldr r3, [r7, #0]
  30757. 800d602: 689a ldr r2, [r3, #8]
  30758. 800d604: 687b ldr r3, [r7, #4]
  30759. 800d606: 62da str r2, [r3, #44] @ 0x2c
  30760. /* Set the Prescaler value */
  30761. TIMx->PSC = Structure->Prescaler;
  30762. 800d608: 683b ldr r3, [r7, #0]
  30763. 800d60a: 681a ldr r2, [r3, #0]
  30764. 800d60c: 687b ldr r3, [r7, #4]
  30765. 800d60e: 629a str r2, [r3, #40] @ 0x28
  30766. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  30767. 800d610: 687b ldr r3, [r7, #4]
  30768. 800d612: 4a16 ldr r2, [pc, #88] @ (800d66c <TIM_Base_SetConfig+0x12c>)
  30769. 800d614: 4293 cmp r3, r2
  30770. 800d616: d00f beq.n 800d638 <TIM_Base_SetConfig+0xf8>
  30771. 800d618: 687b ldr r3, [r7, #4]
  30772. 800d61a: 4a18 ldr r2, [pc, #96] @ (800d67c <TIM_Base_SetConfig+0x13c>)
  30773. 800d61c: 4293 cmp r3, r2
  30774. 800d61e: d00b beq.n 800d638 <TIM_Base_SetConfig+0xf8>
  30775. 800d620: 687b ldr r3, [r7, #4]
  30776. 800d622: 4a17 ldr r2, [pc, #92] @ (800d680 <TIM_Base_SetConfig+0x140>)
  30777. 800d624: 4293 cmp r3, r2
  30778. 800d626: d007 beq.n 800d638 <TIM_Base_SetConfig+0xf8>
  30779. 800d628: 687b ldr r3, [r7, #4]
  30780. 800d62a: 4a16 ldr r2, [pc, #88] @ (800d684 <TIM_Base_SetConfig+0x144>)
  30781. 800d62c: 4293 cmp r3, r2
  30782. 800d62e: d003 beq.n 800d638 <TIM_Base_SetConfig+0xf8>
  30783. 800d630: 687b ldr r3, [r7, #4]
  30784. 800d632: 4a15 ldr r2, [pc, #84] @ (800d688 <TIM_Base_SetConfig+0x148>)
  30785. 800d634: 4293 cmp r3, r2
  30786. 800d636: d103 bne.n 800d640 <TIM_Base_SetConfig+0x100>
  30787. {
  30788. /* Set the Repetition Counter value */
  30789. TIMx->RCR = Structure->RepetitionCounter;
  30790. 800d638: 683b ldr r3, [r7, #0]
  30791. 800d63a: 691a ldr r2, [r3, #16]
  30792. 800d63c: 687b ldr r3, [r7, #4]
  30793. 800d63e: 631a str r2, [r3, #48] @ 0x30
  30794. }
  30795. /* Generate an update event to reload the Prescaler
  30796. and the repetition counter (only for advanced timer) value immediately */
  30797. TIMx->EGR = TIM_EGR_UG;
  30798. 800d640: 687b ldr r3, [r7, #4]
  30799. 800d642: 2201 movs r2, #1
  30800. 800d644: 615a str r2, [r3, #20]
  30801. /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */
  30802. if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE))
  30803. 800d646: 687b ldr r3, [r7, #4]
  30804. 800d648: 691b ldr r3, [r3, #16]
  30805. 800d64a: f003 0301 and.w r3, r3, #1
  30806. 800d64e: 2b01 cmp r3, #1
  30807. 800d650: d105 bne.n 800d65e <TIM_Base_SetConfig+0x11e>
  30808. {
  30809. /* Clear the update flag */
  30810. CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE);
  30811. 800d652: 687b ldr r3, [r7, #4]
  30812. 800d654: 691b ldr r3, [r3, #16]
  30813. 800d656: f023 0201 bic.w r2, r3, #1
  30814. 800d65a: 687b ldr r3, [r7, #4]
  30815. 800d65c: 611a str r2, [r3, #16]
  30816. }
  30817. }
  30818. 800d65e: bf00 nop
  30819. 800d660: 3714 adds r7, #20
  30820. 800d662: 46bd mov sp, r7
  30821. 800d664: f85d 7b04 ldr.w r7, [sp], #4
  30822. 800d668: 4770 bx lr
  30823. 800d66a: bf00 nop
  30824. 800d66c: 40010000 .word 0x40010000
  30825. 800d670: 40000400 .word 0x40000400
  30826. 800d674: 40000800 .word 0x40000800
  30827. 800d678: 40000c00 .word 0x40000c00
  30828. 800d67c: 40010400 .word 0x40010400
  30829. 800d680: 40014000 .word 0x40014000
  30830. 800d684: 40014400 .word 0x40014400
  30831. 800d688: 40014800 .word 0x40014800
  30832. 0800d68c <HAL_TIMEx_CommutCallback>:
  30833. * @brief Commutation callback in non-blocking mode
  30834. * @param htim TIM handle
  30835. * @retval None
  30836. */
  30837. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  30838. {
  30839. 800d68c: b480 push {r7}
  30840. 800d68e: b083 sub sp, #12
  30841. 800d690: af00 add r7, sp, #0
  30842. 800d692: 6078 str r0, [r7, #4]
  30843. UNUSED(htim);
  30844. /* NOTE : This function should not be modified, when the callback is needed,
  30845. the HAL_TIMEx_CommutCallback could be implemented in the user file
  30846. */
  30847. }
  30848. 800d694: bf00 nop
  30849. 800d696: 370c adds r7, #12
  30850. 800d698: 46bd mov sp, r7
  30851. 800d69a: f85d 7b04 ldr.w r7, [sp], #4
  30852. 800d69e: 4770 bx lr
  30853. 0800d6a0 <HAL_TIMEx_BreakCallback>:
  30854. * @brief Break detection callback in non-blocking mode
  30855. * @param htim TIM handle
  30856. * @retval None
  30857. */
  30858. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  30859. {
  30860. 800d6a0: b480 push {r7}
  30861. 800d6a2: b083 sub sp, #12
  30862. 800d6a4: af00 add r7, sp, #0
  30863. 800d6a6: 6078 str r0, [r7, #4]
  30864. UNUSED(htim);
  30865. /* NOTE : This function should not be modified, when the callback is needed,
  30866. the HAL_TIMEx_BreakCallback could be implemented in the user file
  30867. */
  30868. }
  30869. 800d6a8: bf00 nop
  30870. 800d6aa: 370c adds r7, #12
  30871. 800d6ac: 46bd mov sp, r7
  30872. 800d6ae: f85d 7b04 ldr.w r7, [sp], #4
  30873. 800d6b2: 4770 bx lr
  30874. 0800d6b4 <HAL_TIMEx_Break2Callback>:
  30875. * @brief Break2 detection callback in non blocking mode
  30876. * @param htim: TIM handle
  30877. * @retval None
  30878. */
  30879. __weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
  30880. {
  30881. 800d6b4: b480 push {r7}
  30882. 800d6b6: b083 sub sp, #12
  30883. 800d6b8: af00 add r7, sp, #0
  30884. 800d6ba: 6078 str r0, [r7, #4]
  30885. UNUSED(htim);
  30886. /* NOTE : This function Should not be modified, when the callback is needed,
  30887. the HAL_TIMEx_Break2Callback could be implemented in the user file
  30888. */
  30889. }
  30890. 800d6bc: bf00 nop
  30891. 800d6be: 370c adds r7, #12
  30892. 800d6c0: 46bd mov sp, r7
  30893. 800d6c2: f85d 7b04 ldr.w r7, [sp], #4
  30894. 800d6c6: 4770 bx lr
  30895. 0800d6c8 <HAL_UART_Init>:
  30896. * parameters in the UART_InitTypeDef and initialize the associated handle.
  30897. * @param huart UART handle.
  30898. * @retval HAL status
  30899. */
  30900. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  30901. {
  30902. 800d6c8: b580 push {r7, lr}
  30903. 800d6ca: b082 sub sp, #8
  30904. 800d6cc: af00 add r7, sp, #0
  30905. 800d6ce: 6078 str r0, [r7, #4]
  30906. /* Check the UART handle allocation */
  30907. if (huart == NULL)
  30908. 800d6d0: 687b ldr r3, [r7, #4]
  30909. 800d6d2: 2b00 cmp r3, #0
  30910. 800d6d4: d101 bne.n 800d6da <HAL_UART_Init+0x12>
  30911. {
  30912. return HAL_ERROR;
  30913. 800d6d6: 2301 movs r3, #1
  30914. 800d6d8: e042 b.n 800d760 <HAL_UART_Init+0x98>
  30915. {
  30916. /* Check the parameters */
  30917. assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance)));
  30918. }
  30919. if (huart->gState == HAL_UART_STATE_RESET)
  30920. 800d6da: 687b ldr r3, [r7, #4]
  30921. 800d6dc: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  30922. 800d6e0: 2b00 cmp r3, #0
  30923. 800d6e2: d106 bne.n 800d6f2 <HAL_UART_Init+0x2a>
  30924. {
  30925. /* Allocate lock resource and initialize it */
  30926. huart->Lock = HAL_UNLOCKED;
  30927. 800d6e4: 687b ldr r3, [r7, #4]
  30928. 800d6e6: 2200 movs r2, #0
  30929. 800d6e8: f883 2084 strb.w r2, [r3, #132] @ 0x84
  30930. /* Init the low level hardware */
  30931. huart->MspInitCallback(huart);
  30932. #else
  30933. /* Init the low level hardware : GPIO, CLOCK */
  30934. HAL_UART_MspInit(huart);
  30935. 800d6ec: 6878 ldr r0, [r7, #4]
  30936. 800d6ee: f7f6 f96d bl 80039cc <HAL_UART_MspInit>
  30937. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  30938. }
  30939. huart->gState = HAL_UART_STATE_BUSY;
  30940. 800d6f2: 687b ldr r3, [r7, #4]
  30941. 800d6f4: 2224 movs r2, #36 @ 0x24
  30942. 800d6f6: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  30943. __HAL_UART_DISABLE(huart);
  30944. 800d6fa: 687b ldr r3, [r7, #4]
  30945. 800d6fc: 681b ldr r3, [r3, #0]
  30946. 800d6fe: 681a ldr r2, [r3, #0]
  30947. 800d700: 687b ldr r3, [r7, #4]
  30948. 800d702: 681b ldr r3, [r3, #0]
  30949. 800d704: f022 0201 bic.w r2, r2, #1
  30950. 800d708: 601a str r2, [r3, #0]
  30951. /* Perform advanced settings configuration */
  30952. /* For some items, configuration requires to be done prior TE and RE bits are set */
  30953. if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
  30954. 800d70a: 687b ldr r3, [r7, #4]
  30955. 800d70c: 6a9b ldr r3, [r3, #40] @ 0x28
  30956. 800d70e: 2b00 cmp r3, #0
  30957. 800d710: d002 beq.n 800d718 <HAL_UART_Init+0x50>
  30958. {
  30959. UART_AdvFeatureConfig(huart);
  30960. 800d712: 6878 ldr r0, [r7, #4]
  30961. 800d714: f001 fa76 bl 800ec04 <UART_AdvFeatureConfig>
  30962. }
  30963. /* Set the UART Communication parameters */
  30964. if (UART_SetConfig(huart) == HAL_ERROR)
  30965. 800d718: 6878 ldr r0, [r7, #4]
  30966. 800d71a: f000 fd0b bl 800e134 <UART_SetConfig>
  30967. 800d71e: 4603 mov r3, r0
  30968. 800d720: 2b01 cmp r3, #1
  30969. 800d722: d101 bne.n 800d728 <HAL_UART_Init+0x60>
  30970. {
  30971. return HAL_ERROR;
  30972. 800d724: 2301 movs r3, #1
  30973. 800d726: e01b b.n 800d760 <HAL_UART_Init+0x98>
  30974. }
  30975. /* In asynchronous mode, the following bits must be kept cleared:
  30976. - LINEN and CLKEN bits in the USART_CR2 register,
  30977. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  30978. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  30979. 800d728: 687b ldr r3, [r7, #4]
  30980. 800d72a: 681b ldr r3, [r3, #0]
  30981. 800d72c: 685a ldr r2, [r3, #4]
  30982. 800d72e: 687b ldr r3, [r7, #4]
  30983. 800d730: 681b ldr r3, [r3, #0]
  30984. 800d732: f422 4290 bic.w r2, r2, #18432 @ 0x4800
  30985. 800d736: 605a str r2, [r3, #4]
  30986. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  30987. 800d738: 687b ldr r3, [r7, #4]
  30988. 800d73a: 681b ldr r3, [r3, #0]
  30989. 800d73c: 689a ldr r2, [r3, #8]
  30990. 800d73e: 687b ldr r3, [r7, #4]
  30991. 800d740: 681b ldr r3, [r3, #0]
  30992. 800d742: f022 022a bic.w r2, r2, #42 @ 0x2a
  30993. 800d746: 609a str r2, [r3, #8]
  30994. __HAL_UART_ENABLE(huart);
  30995. 800d748: 687b ldr r3, [r7, #4]
  30996. 800d74a: 681b ldr r3, [r3, #0]
  30997. 800d74c: 681a ldr r2, [r3, #0]
  30998. 800d74e: 687b ldr r3, [r7, #4]
  30999. 800d750: 681b ldr r3, [r3, #0]
  31000. 800d752: f042 0201 orr.w r2, r2, #1
  31001. 800d756: 601a str r2, [r3, #0]
  31002. /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
  31003. return (UART_CheckIdleState(huart));
  31004. 800d758: 6878 ldr r0, [r7, #4]
  31005. 800d75a: f001 faf5 bl 800ed48 <UART_CheckIdleState>
  31006. 800d75e: 4603 mov r3, r0
  31007. }
  31008. 800d760: 4618 mov r0, r3
  31009. 800d762: 3708 adds r7, #8
  31010. 800d764: 46bd mov sp, r7
  31011. 800d766: bd80 pop {r7, pc}
  31012. 0800d768 <HAL_UART_Transmit>:
  31013. * @param Size Amount of data elements (u8 or u16) to be sent.
  31014. * @param Timeout Timeout duration.
  31015. * @retval HAL status
  31016. */
  31017. HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout)
  31018. {
  31019. 800d768: b580 push {r7, lr}
  31020. 800d76a: b08a sub sp, #40 @ 0x28
  31021. 800d76c: af02 add r7, sp, #8
  31022. 800d76e: 60f8 str r0, [r7, #12]
  31023. 800d770: 60b9 str r1, [r7, #8]
  31024. 800d772: 603b str r3, [r7, #0]
  31025. 800d774: 4613 mov r3, r2
  31026. 800d776: 80fb strh r3, [r7, #6]
  31027. const uint8_t *pdata8bits;
  31028. const uint16_t *pdata16bits;
  31029. uint32_t tickstart;
  31030. /* Check that a Tx process is not already ongoing */
  31031. if (huart->gState == HAL_UART_STATE_READY)
  31032. 800d778: 68fb ldr r3, [r7, #12]
  31033. 800d77a: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  31034. 800d77e: 2b20 cmp r3, #32
  31035. 800d780: d17b bne.n 800d87a <HAL_UART_Transmit+0x112>
  31036. {
  31037. if ((pData == NULL) || (Size == 0U))
  31038. 800d782: 68bb ldr r3, [r7, #8]
  31039. 800d784: 2b00 cmp r3, #0
  31040. 800d786: d002 beq.n 800d78e <HAL_UART_Transmit+0x26>
  31041. 800d788: 88fb ldrh r3, [r7, #6]
  31042. 800d78a: 2b00 cmp r3, #0
  31043. 800d78c: d101 bne.n 800d792 <HAL_UART_Transmit+0x2a>
  31044. {
  31045. return HAL_ERROR;
  31046. 800d78e: 2301 movs r3, #1
  31047. 800d790: e074 b.n 800d87c <HAL_UART_Transmit+0x114>
  31048. }
  31049. huart->ErrorCode = HAL_UART_ERROR_NONE;
  31050. 800d792: 68fb ldr r3, [r7, #12]
  31051. 800d794: 2200 movs r2, #0
  31052. 800d796: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  31053. huart->gState = HAL_UART_STATE_BUSY_TX;
  31054. 800d79a: 68fb ldr r3, [r7, #12]
  31055. 800d79c: 2221 movs r2, #33 @ 0x21
  31056. 800d79e: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  31057. /* Init tickstart for timeout management */
  31058. tickstart = HAL_GetTick();
  31059. 800d7a2: f7f7 ff77 bl 8005694 <HAL_GetTick>
  31060. 800d7a6: 6178 str r0, [r7, #20]
  31061. huart->TxXferSize = Size;
  31062. 800d7a8: 68fb ldr r3, [r7, #12]
  31063. 800d7aa: 88fa ldrh r2, [r7, #6]
  31064. 800d7ac: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  31065. huart->TxXferCount = Size;
  31066. 800d7b0: 68fb ldr r3, [r7, #12]
  31067. 800d7b2: 88fa ldrh r2, [r7, #6]
  31068. 800d7b4: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  31069. /* In case of 9bits/No Parity transfer, pData needs to be handled as a uint16_t pointer */
  31070. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  31071. 800d7b8: 68fb ldr r3, [r7, #12]
  31072. 800d7ba: 689b ldr r3, [r3, #8]
  31073. 800d7bc: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  31074. 800d7c0: d108 bne.n 800d7d4 <HAL_UART_Transmit+0x6c>
  31075. 800d7c2: 68fb ldr r3, [r7, #12]
  31076. 800d7c4: 691b ldr r3, [r3, #16]
  31077. 800d7c6: 2b00 cmp r3, #0
  31078. 800d7c8: d104 bne.n 800d7d4 <HAL_UART_Transmit+0x6c>
  31079. {
  31080. pdata8bits = NULL;
  31081. 800d7ca: 2300 movs r3, #0
  31082. 800d7cc: 61fb str r3, [r7, #28]
  31083. pdata16bits = (const uint16_t *) pData;
  31084. 800d7ce: 68bb ldr r3, [r7, #8]
  31085. 800d7d0: 61bb str r3, [r7, #24]
  31086. 800d7d2: e003 b.n 800d7dc <HAL_UART_Transmit+0x74>
  31087. }
  31088. else
  31089. {
  31090. pdata8bits = pData;
  31091. 800d7d4: 68bb ldr r3, [r7, #8]
  31092. 800d7d6: 61fb str r3, [r7, #28]
  31093. pdata16bits = NULL;
  31094. 800d7d8: 2300 movs r3, #0
  31095. 800d7da: 61bb str r3, [r7, #24]
  31096. }
  31097. while (huart->TxXferCount > 0U)
  31098. 800d7dc: e030 b.n 800d840 <HAL_UART_Transmit+0xd8>
  31099. {
  31100. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  31101. 800d7de: 683b ldr r3, [r7, #0]
  31102. 800d7e0: 9300 str r3, [sp, #0]
  31103. 800d7e2: 697b ldr r3, [r7, #20]
  31104. 800d7e4: 2200 movs r2, #0
  31105. 800d7e6: 2180 movs r1, #128 @ 0x80
  31106. 800d7e8: 68f8 ldr r0, [r7, #12]
  31107. 800d7ea: f001 fb57 bl 800ee9c <UART_WaitOnFlagUntilTimeout>
  31108. 800d7ee: 4603 mov r3, r0
  31109. 800d7f0: 2b00 cmp r3, #0
  31110. 800d7f2: d005 beq.n 800d800 <HAL_UART_Transmit+0x98>
  31111. {
  31112. huart->gState = HAL_UART_STATE_READY;
  31113. 800d7f4: 68fb ldr r3, [r7, #12]
  31114. 800d7f6: 2220 movs r2, #32
  31115. 800d7f8: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  31116. return HAL_TIMEOUT;
  31117. 800d7fc: 2303 movs r3, #3
  31118. 800d7fe: e03d b.n 800d87c <HAL_UART_Transmit+0x114>
  31119. }
  31120. if (pdata8bits == NULL)
  31121. 800d800: 69fb ldr r3, [r7, #28]
  31122. 800d802: 2b00 cmp r3, #0
  31123. 800d804: d10b bne.n 800d81e <HAL_UART_Transmit+0xb6>
  31124. {
  31125. huart->Instance->TDR = (uint16_t)(*pdata16bits & 0x01FFU);
  31126. 800d806: 69bb ldr r3, [r7, #24]
  31127. 800d808: 881b ldrh r3, [r3, #0]
  31128. 800d80a: 461a mov r2, r3
  31129. 800d80c: 68fb ldr r3, [r7, #12]
  31130. 800d80e: 681b ldr r3, [r3, #0]
  31131. 800d810: f3c2 0208 ubfx r2, r2, #0, #9
  31132. 800d814: 629a str r2, [r3, #40] @ 0x28
  31133. pdata16bits++;
  31134. 800d816: 69bb ldr r3, [r7, #24]
  31135. 800d818: 3302 adds r3, #2
  31136. 800d81a: 61bb str r3, [r7, #24]
  31137. 800d81c: e007 b.n 800d82e <HAL_UART_Transmit+0xc6>
  31138. }
  31139. else
  31140. {
  31141. huart->Instance->TDR = (uint8_t)(*pdata8bits & 0xFFU);
  31142. 800d81e: 69fb ldr r3, [r7, #28]
  31143. 800d820: 781a ldrb r2, [r3, #0]
  31144. 800d822: 68fb ldr r3, [r7, #12]
  31145. 800d824: 681b ldr r3, [r3, #0]
  31146. 800d826: 629a str r2, [r3, #40] @ 0x28
  31147. pdata8bits++;
  31148. 800d828: 69fb ldr r3, [r7, #28]
  31149. 800d82a: 3301 adds r3, #1
  31150. 800d82c: 61fb str r3, [r7, #28]
  31151. }
  31152. huart->TxXferCount--;
  31153. 800d82e: 68fb ldr r3, [r7, #12]
  31154. 800d830: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  31155. 800d834: b29b uxth r3, r3
  31156. 800d836: 3b01 subs r3, #1
  31157. 800d838: b29a uxth r2, r3
  31158. 800d83a: 68fb ldr r3, [r7, #12]
  31159. 800d83c: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  31160. while (huart->TxXferCount > 0U)
  31161. 800d840: 68fb ldr r3, [r7, #12]
  31162. 800d842: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  31163. 800d846: b29b uxth r3, r3
  31164. 800d848: 2b00 cmp r3, #0
  31165. 800d84a: d1c8 bne.n 800d7de <HAL_UART_Transmit+0x76>
  31166. }
  31167. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK)
  31168. 800d84c: 683b ldr r3, [r7, #0]
  31169. 800d84e: 9300 str r3, [sp, #0]
  31170. 800d850: 697b ldr r3, [r7, #20]
  31171. 800d852: 2200 movs r2, #0
  31172. 800d854: 2140 movs r1, #64 @ 0x40
  31173. 800d856: 68f8 ldr r0, [r7, #12]
  31174. 800d858: f001 fb20 bl 800ee9c <UART_WaitOnFlagUntilTimeout>
  31175. 800d85c: 4603 mov r3, r0
  31176. 800d85e: 2b00 cmp r3, #0
  31177. 800d860: d005 beq.n 800d86e <HAL_UART_Transmit+0x106>
  31178. {
  31179. huart->gState = HAL_UART_STATE_READY;
  31180. 800d862: 68fb ldr r3, [r7, #12]
  31181. 800d864: 2220 movs r2, #32
  31182. 800d866: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  31183. return HAL_TIMEOUT;
  31184. 800d86a: 2303 movs r3, #3
  31185. 800d86c: e006 b.n 800d87c <HAL_UART_Transmit+0x114>
  31186. }
  31187. /* At end of Tx process, restore huart->gState to Ready */
  31188. huart->gState = HAL_UART_STATE_READY;
  31189. 800d86e: 68fb ldr r3, [r7, #12]
  31190. 800d870: 2220 movs r2, #32
  31191. 800d872: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  31192. return HAL_OK;
  31193. 800d876: 2300 movs r3, #0
  31194. 800d878: e000 b.n 800d87c <HAL_UART_Transmit+0x114>
  31195. }
  31196. else
  31197. {
  31198. return HAL_BUSY;
  31199. 800d87a: 2302 movs r3, #2
  31200. }
  31201. }
  31202. 800d87c: 4618 mov r0, r3
  31203. 800d87e: 3720 adds r7, #32
  31204. 800d880: 46bd mov sp, r7
  31205. 800d882: bd80 pop {r7, pc}
  31206. 0800d884 <HAL_UART_Transmit_IT>:
  31207. * @param pData Pointer to data buffer (u8 or u16 data elements).
  31208. * @param Size Amount of data elements (u8 or u16) to be sent.
  31209. * @retval HAL status
  31210. */
  31211. HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size)
  31212. {
  31213. 800d884: b480 push {r7}
  31214. 800d886: b091 sub sp, #68 @ 0x44
  31215. 800d888: af00 add r7, sp, #0
  31216. 800d88a: 60f8 str r0, [r7, #12]
  31217. 800d88c: 60b9 str r1, [r7, #8]
  31218. 800d88e: 4613 mov r3, r2
  31219. 800d890: 80fb strh r3, [r7, #6]
  31220. /* Check that a Tx process is not already ongoing */
  31221. if (huart->gState == HAL_UART_STATE_READY)
  31222. 800d892: 68fb ldr r3, [r7, #12]
  31223. 800d894: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  31224. 800d898: 2b20 cmp r3, #32
  31225. 800d89a: d178 bne.n 800d98e <HAL_UART_Transmit_IT+0x10a>
  31226. {
  31227. if ((pData == NULL) || (Size == 0U))
  31228. 800d89c: 68bb ldr r3, [r7, #8]
  31229. 800d89e: 2b00 cmp r3, #0
  31230. 800d8a0: d002 beq.n 800d8a8 <HAL_UART_Transmit_IT+0x24>
  31231. 800d8a2: 88fb ldrh r3, [r7, #6]
  31232. 800d8a4: 2b00 cmp r3, #0
  31233. 800d8a6: d101 bne.n 800d8ac <HAL_UART_Transmit_IT+0x28>
  31234. {
  31235. return HAL_ERROR;
  31236. 800d8a8: 2301 movs r3, #1
  31237. 800d8aa: e071 b.n 800d990 <HAL_UART_Transmit_IT+0x10c>
  31238. }
  31239. huart->pTxBuffPtr = pData;
  31240. 800d8ac: 68fb ldr r3, [r7, #12]
  31241. 800d8ae: 68ba ldr r2, [r7, #8]
  31242. 800d8b0: 651a str r2, [r3, #80] @ 0x50
  31243. huart->TxXferSize = Size;
  31244. 800d8b2: 68fb ldr r3, [r7, #12]
  31245. 800d8b4: 88fa ldrh r2, [r7, #6]
  31246. 800d8b6: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  31247. huart->TxXferCount = Size;
  31248. 800d8ba: 68fb ldr r3, [r7, #12]
  31249. 800d8bc: 88fa ldrh r2, [r7, #6]
  31250. 800d8be: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  31251. huart->TxISR = NULL;
  31252. 800d8c2: 68fb ldr r3, [r7, #12]
  31253. 800d8c4: 2200 movs r2, #0
  31254. 800d8c6: 679a str r2, [r3, #120] @ 0x78
  31255. huart->ErrorCode = HAL_UART_ERROR_NONE;
  31256. 800d8c8: 68fb ldr r3, [r7, #12]
  31257. 800d8ca: 2200 movs r2, #0
  31258. 800d8cc: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  31259. huart->gState = HAL_UART_STATE_BUSY_TX;
  31260. 800d8d0: 68fb ldr r3, [r7, #12]
  31261. 800d8d2: 2221 movs r2, #33 @ 0x21
  31262. 800d8d4: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  31263. /* Configure Tx interrupt processing */
  31264. if (huart->FifoMode == UART_FIFOMODE_ENABLE)
  31265. 800d8d8: 68fb ldr r3, [r7, #12]
  31266. 800d8da: 6e5b ldr r3, [r3, #100] @ 0x64
  31267. 800d8dc: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31268. 800d8e0: d12a bne.n 800d938 <HAL_UART_Transmit_IT+0xb4>
  31269. {
  31270. /* Set the Tx ISR function pointer according to the data word length */
  31271. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  31272. 800d8e2: 68fb ldr r3, [r7, #12]
  31273. 800d8e4: 689b ldr r3, [r3, #8]
  31274. 800d8e6: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  31275. 800d8ea: d107 bne.n 800d8fc <HAL_UART_Transmit_IT+0x78>
  31276. 800d8ec: 68fb ldr r3, [r7, #12]
  31277. 800d8ee: 691b ldr r3, [r3, #16]
  31278. 800d8f0: 2b00 cmp r3, #0
  31279. 800d8f2: d103 bne.n 800d8fc <HAL_UART_Transmit_IT+0x78>
  31280. {
  31281. huart->TxISR = UART_TxISR_16BIT_FIFOEN;
  31282. 800d8f4: 68fb ldr r3, [r7, #12]
  31283. 800d8f6: 4a29 ldr r2, [pc, #164] @ (800d99c <HAL_UART_Transmit_IT+0x118>)
  31284. 800d8f8: 679a str r2, [r3, #120] @ 0x78
  31285. 800d8fa: e002 b.n 800d902 <HAL_UART_Transmit_IT+0x7e>
  31286. }
  31287. else
  31288. {
  31289. huart->TxISR = UART_TxISR_8BIT_FIFOEN;
  31290. 800d8fc: 68fb ldr r3, [r7, #12]
  31291. 800d8fe: 4a28 ldr r2, [pc, #160] @ (800d9a0 <HAL_UART_Transmit_IT+0x11c>)
  31292. 800d900: 679a str r2, [r3, #120] @ 0x78
  31293. }
  31294. /* Enable the TX FIFO threshold interrupt */
  31295. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  31296. 800d902: 68fb ldr r3, [r7, #12]
  31297. 800d904: 681b ldr r3, [r3, #0]
  31298. 800d906: 3308 adds r3, #8
  31299. 800d908: 62bb str r3, [r7, #40] @ 0x28
  31300. */
  31301. __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
  31302. {
  31303. uint32_t result;
  31304. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31305. 800d90a: 6abb ldr r3, [r7, #40] @ 0x28
  31306. 800d90c: e853 3f00 ldrex r3, [r3]
  31307. 800d910: 627b str r3, [r7, #36] @ 0x24
  31308. return(result);
  31309. 800d912: 6a7b ldr r3, [r7, #36] @ 0x24
  31310. 800d914: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  31311. 800d918: 63bb str r3, [r7, #56] @ 0x38
  31312. 800d91a: 68fb ldr r3, [r7, #12]
  31313. 800d91c: 681b ldr r3, [r3, #0]
  31314. 800d91e: 3308 adds r3, #8
  31315. 800d920: 6bba ldr r2, [r7, #56] @ 0x38
  31316. 800d922: 637a str r2, [r7, #52] @ 0x34
  31317. 800d924: 633b str r3, [r7, #48] @ 0x30
  31318. */
  31319. __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
  31320. {
  31321. uint32_t result;
  31322. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31323. 800d926: 6b39 ldr r1, [r7, #48] @ 0x30
  31324. 800d928: 6b7a ldr r2, [r7, #52] @ 0x34
  31325. 800d92a: e841 2300 strex r3, r2, [r1]
  31326. 800d92e: 62fb str r3, [r7, #44] @ 0x2c
  31327. return(result);
  31328. 800d930: 6afb ldr r3, [r7, #44] @ 0x2c
  31329. 800d932: 2b00 cmp r3, #0
  31330. 800d934: d1e5 bne.n 800d902 <HAL_UART_Transmit_IT+0x7e>
  31331. 800d936: e028 b.n 800d98a <HAL_UART_Transmit_IT+0x106>
  31332. }
  31333. else
  31334. {
  31335. /* Set the Tx ISR function pointer according to the data word length */
  31336. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  31337. 800d938: 68fb ldr r3, [r7, #12]
  31338. 800d93a: 689b ldr r3, [r3, #8]
  31339. 800d93c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  31340. 800d940: d107 bne.n 800d952 <HAL_UART_Transmit_IT+0xce>
  31341. 800d942: 68fb ldr r3, [r7, #12]
  31342. 800d944: 691b ldr r3, [r3, #16]
  31343. 800d946: 2b00 cmp r3, #0
  31344. 800d948: d103 bne.n 800d952 <HAL_UART_Transmit_IT+0xce>
  31345. {
  31346. huart->TxISR = UART_TxISR_16BIT;
  31347. 800d94a: 68fb ldr r3, [r7, #12]
  31348. 800d94c: 4a15 ldr r2, [pc, #84] @ (800d9a4 <HAL_UART_Transmit_IT+0x120>)
  31349. 800d94e: 679a str r2, [r3, #120] @ 0x78
  31350. 800d950: e002 b.n 800d958 <HAL_UART_Transmit_IT+0xd4>
  31351. }
  31352. else
  31353. {
  31354. huart->TxISR = UART_TxISR_8BIT;
  31355. 800d952: 68fb ldr r3, [r7, #12]
  31356. 800d954: 4a14 ldr r2, [pc, #80] @ (800d9a8 <HAL_UART_Transmit_IT+0x124>)
  31357. 800d956: 679a str r2, [r3, #120] @ 0x78
  31358. }
  31359. /* Enable the Transmit Data Register Empty interrupt */
  31360. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  31361. 800d958: 68fb ldr r3, [r7, #12]
  31362. 800d95a: 681b ldr r3, [r3, #0]
  31363. 800d95c: 617b str r3, [r7, #20]
  31364. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31365. 800d95e: 697b ldr r3, [r7, #20]
  31366. 800d960: e853 3f00 ldrex r3, [r3]
  31367. 800d964: 613b str r3, [r7, #16]
  31368. return(result);
  31369. 800d966: 693b ldr r3, [r7, #16]
  31370. 800d968: f043 0380 orr.w r3, r3, #128 @ 0x80
  31371. 800d96c: 63fb str r3, [r7, #60] @ 0x3c
  31372. 800d96e: 68fb ldr r3, [r7, #12]
  31373. 800d970: 681b ldr r3, [r3, #0]
  31374. 800d972: 461a mov r2, r3
  31375. 800d974: 6bfb ldr r3, [r7, #60] @ 0x3c
  31376. 800d976: 623b str r3, [r7, #32]
  31377. 800d978: 61fa str r2, [r7, #28]
  31378. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31379. 800d97a: 69f9 ldr r1, [r7, #28]
  31380. 800d97c: 6a3a ldr r2, [r7, #32]
  31381. 800d97e: e841 2300 strex r3, r2, [r1]
  31382. 800d982: 61bb str r3, [r7, #24]
  31383. return(result);
  31384. 800d984: 69bb ldr r3, [r7, #24]
  31385. 800d986: 2b00 cmp r3, #0
  31386. 800d988: d1e6 bne.n 800d958 <HAL_UART_Transmit_IT+0xd4>
  31387. }
  31388. return HAL_OK;
  31389. 800d98a: 2300 movs r3, #0
  31390. 800d98c: e000 b.n 800d990 <HAL_UART_Transmit_IT+0x10c>
  31391. }
  31392. else
  31393. {
  31394. return HAL_BUSY;
  31395. 800d98e: 2302 movs r3, #2
  31396. }
  31397. }
  31398. 800d990: 4618 mov r0, r3
  31399. 800d992: 3744 adds r7, #68 @ 0x44
  31400. 800d994: 46bd mov sp, r7
  31401. 800d996: f85d 7b04 ldr.w r7, [sp], #4
  31402. 800d99a: 4770 bx lr
  31403. 800d99c: 0800f50f .word 0x0800f50f
  31404. 800d9a0: 0800f42f .word 0x0800f42f
  31405. 800d9a4: 0800f36d .word 0x0800f36d
  31406. 800d9a8: 0800f2b5 .word 0x0800f2b5
  31407. 0800d9ac <HAL_UART_IRQHandler>:
  31408. * @brief Handle UART interrupt request.
  31409. * @param huart UART handle.
  31410. * @retval None
  31411. */
  31412. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  31413. {
  31414. 800d9ac: b580 push {r7, lr}
  31415. 800d9ae: b0ba sub sp, #232 @ 0xe8
  31416. 800d9b0: af00 add r7, sp, #0
  31417. 800d9b2: 6078 str r0, [r7, #4]
  31418. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  31419. 800d9b4: 687b ldr r3, [r7, #4]
  31420. 800d9b6: 681b ldr r3, [r3, #0]
  31421. 800d9b8: 69db ldr r3, [r3, #28]
  31422. 800d9ba: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  31423. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  31424. 800d9be: 687b ldr r3, [r7, #4]
  31425. 800d9c0: 681b ldr r3, [r3, #0]
  31426. 800d9c2: 681b ldr r3, [r3, #0]
  31427. 800d9c4: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  31428. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  31429. 800d9c8: 687b ldr r3, [r7, #4]
  31430. 800d9ca: 681b ldr r3, [r3, #0]
  31431. 800d9cc: 689b ldr r3, [r3, #8]
  31432. 800d9ce: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  31433. uint32_t errorflags;
  31434. uint32_t errorcode;
  31435. /* If no error occurs */
  31436. errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE | USART_ISR_RTOF));
  31437. 800d9d2: f8d7 20e4 ldr.w r2, [r7, #228] @ 0xe4
  31438. 800d9d6: f640 030f movw r3, #2063 @ 0x80f
  31439. 800d9da: 4013 ands r3, r2
  31440. 800d9dc: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  31441. if (errorflags == 0U)
  31442. 800d9e0: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  31443. 800d9e4: 2b00 cmp r3, #0
  31444. 800d9e6: d11b bne.n 800da20 <HAL_UART_IRQHandler+0x74>
  31445. {
  31446. /* UART in mode Receiver ---------------------------------------------------*/
  31447. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  31448. 800d9e8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31449. 800d9ec: f003 0320 and.w r3, r3, #32
  31450. 800d9f0: 2b00 cmp r3, #0
  31451. 800d9f2: d015 beq.n 800da20 <HAL_UART_IRQHandler+0x74>
  31452. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  31453. 800d9f4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31454. 800d9f8: f003 0320 and.w r3, r3, #32
  31455. 800d9fc: 2b00 cmp r3, #0
  31456. 800d9fe: d105 bne.n 800da0c <HAL_UART_IRQHandler+0x60>
  31457. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  31458. 800da00: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  31459. 800da04: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  31460. 800da08: 2b00 cmp r3, #0
  31461. 800da0a: d009 beq.n 800da20 <HAL_UART_IRQHandler+0x74>
  31462. {
  31463. if (huart->RxISR != NULL)
  31464. 800da0c: 687b ldr r3, [r7, #4]
  31465. 800da0e: 6f5b ldr r3, [r3, #116] @ 0x74
  31466. 800da10: 2b00 cmp r3, #0
  31467. 800da12: f000 8377 beq.w 800e104 <HAL_UART_IRQHandler+0x758>
  31468. {
  31469. huart->RxISR(huart);
  31470. 800da16: 687b ldr r3, [r7, #4]
  31471. 800da18: 6f5b ldr r3, [r3, #116] @ 0x74
  31472. 800da1a: 6878 ldr r0, [r7, #4]
  31473. 800da1c: 4798 blx r3
  31474. }
  31475. return;
  31476. 800da1e: e371 b.n 800e104 <HAL_UART_IRQHandler+0x758>
  31477. }
  31478. }
  31479. /* If some errors occur */
  31480. if ((errorflags != 0U)
  31481. 800da20: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  31482. 800da24: 2b00 cmp r3, #0
  31483. 800da26: f000 8123 beq.w 800dc70 <HAL_UART_IRQHandler+0x2c4>
  31484. && ((((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)
  31485. 800da2a: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  31486. 800da2e: 4b8d ldr r3, [pc, #564] @ (800dc64 <HAL_UART_IRQHandler+0x2b8>)
  31487. 800da30: 4013 ands r3, r2
  31488. 800da32: 2b00 cmp r3, #0
  31489. 800da34: d106 bne.n 800da44 <HAL_UART_IRQHandler+0x98>
  31490. || ((cr1its & (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_RTOIE)) != 0U))))
  31491. 800da36: f8d7 20e0 ldr.w r2, [r7, #224] @ 0xe0
  31492. 800da3a: 4b8b ldr r3, [pc, #556] @ (800dc68 <HAL_UART_IRQHandler+0x2bc>)
  31493. 800da3c: 4013 ands r3, r2
  31494. 800da3e: 2b00 cmp r3, #0
  31495. 800da40: f000 8116 beq.w 800dc70 <HAL_UART_IRQHandler+0x2c4>
  31496. {
  31497. /* UART parity error interrupt occurred -------------------------------------*/
  31498. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  31499. 800da44: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31500. 800da48: f003 0301 and.w r3, r3, #1
  31501. 800da4c: 2b00 cmp r3, #0
  31502. 800da4e: d011 beq.n 800da74 <HAL_UART_IRQHandler+0xc8>
  31503. 800da50: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31504. 800da54: f403 7380 and.w r3, r3, #256 @ 0x100
  31505. 800da58: 2b00 cmp r3, #0
  31506. 800da5a: d00b beq.n 800da74 <HAL_UART_IRQHandler+0xc8>
  31507. {
  31508. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  31509. 800da5c: 687b ldr r3, [r7, #4]
  31510. 800da5e: 681b ldr r3, [r3, #0]
  31511. 800da60: 2201 movs r2, #1
  31512. 800da62: 621a str r2, [r3, #32]
  31513. huart->ErrorCode |= HAL_UART_ERROR_PE;
  31514. 800da64: 687b ldr r3, [r7, #4]
  31515. 800da66: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  31516. 800da6a: f043 0201 orr.w r2, r3, #1
  31517. 800da6e: 687b ldr r3, [r7, #4]
  31518. 800da70: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  31519. }
  31520. /* UART frame error interrupt occurred --------------------------------------*/
  31521. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  31522. 800da74: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31523. 800da78: f003 0302 and.w r3, r3, #2
  31524. 800da7c: 2b00 cmp r3, #0
  31525. 800da7e: d011 beq.n 800daa4 <HAL_UART_IRQHandler+0xf8>
  31526. 800da80: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  31527. 800da84: f003 0301 and.w r3, r3, #1
  31528. 800da88: 2b00 cmp r3, #0
  31529. 800da8a: d00b beq.n 800daa4 <HAL_UART_IRQHandler+0xf8>
  31530. {
  31531. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  31532. 800da8c: 687b ldr r3, [r7, #4]
  31533. 800da8e: 681b ldr r3, [r3, #0]
  31534. 800da90: 2202 movs r2, #2
  31535. 800da92: 621a str r2, [r3, #32]
  31536. huart->ErrorCode |= HAL_UART_ERROR_FE;
  31537. 800da94: 687b ldr r3, [r7, #4]
  31538. 800da96: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  31539. 800da9a: f043 0204 orr.w r2, r3, #4
  31540. 800da9e: 687b ldr r3, [r7, #4]
  31541. 800daa0: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  31542. }
  31543. /* UART noise error interrupt occurred --------------------------------------*/
  31544. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  31545. 800daa4: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31546. 800daa8: f003 0304 and.w r3, r3, #4
  31547. 800daac: 2b00 cmp r3, #0
  31548. 800daae: d011 beq.n 800dad4 <HAL_UART_IRQHandler+0x128>
  31549. 800dab0: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  31550. 800dab4: f003 0301 and.w r3, r3, #1
  31551. 800dab8: 2b00 cmp r3, #0
  31552. 800daba: d00b beq.n 800dad4 <HAL_UART_IRQHandler+0x128>
  31553. {
  31554. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  31555. 800dabc: 687b ldr r3, [r7, #4]
  31556. 800dabe: 681b ldr r3, [r3, #0]
  31557. 800dac0: 2204 movs r2, #4
  31558. 800dac2: 621a str r2, [r3, #32]
  31559. huart->ErrorCode |= HAL_UART_ERROR_NE;
  31560. 800dac4: 687b ldr r3, [r7, #4]
  31561. 800dac6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  31562. 800daca: f043 0202 orr.w r2, r3, #2
  31563. 800dace: 687b ldr r3, [r7, #4]
  31564. 800dad0: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  31565. }
  31566. /* UART Over-Run interrupt occurred -----------------------------------------*/
  31567. if (((isrflags & USART_ISR_ORE) != 0U)
  31568. 800dad4: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31569. 800dad8: f003 0308 and.w r3, r3, #8
  31570. 800dadc: 2b00 cmp r3, #0
  31571. 800dade: d017 beq.n 800db10 <HAL_UART_IRQHandler+0x164>
  31572. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  31573. 800dae0: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31574. 800dae4: f003 0320 and.w r3, r3, #32
  31575. 800dae8: 2b00 cmp r3, #0
  31576. 800daea: d105 bne.n 800daf8 <HAL_UART_IRQHandler+0x14c>
  31577. ((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)))
  31578. 800daec: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  31579. 800daf0: 4b5c ldr r3, [pc, #368] @ (800dc64 <HAL_UART_IRQHandler+0x2b8>)
  31580. 800daf2: 4013 ands r3, r2
  31581. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  31582. 800daf4: 2b00 cmp r3, #0
  31583. 800daf6: d00b beq.n 800db10 <HAL_UART_IRQHandler+0x164>
  31584. {
  31585. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  31586. 800daf8: 687b ldr r3, [r7, #4]
  31587. 800dafa: 681b ldr r3, [r3, #0]
  31588. 800dafc: 2208 movs r2, #8
  31589. 800dafe: 621a str r2, [r3, #32]
  31590. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  31591. 800db00: 687b ldr r3, [r7, #4]
  31592. 800db02: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  31593. 800db06: f043 0208 orr.w r2, r3, #8
  31594. 800db0a: 687b ldr r3, [r7, #4]
  31595. 800db0c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  31596. }
  31597. /* UART Receiver Timeout interrupt occurred ---------------------------------*/
  31598. if (((isrflags & USART_ISR_RTOF) != 0U) && ((cr1its & USART_CR1_RTOIE) != 0U))
  31599. 800db10: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31600. 800db14: f403 6300 and.w r3, r3, #2048 @ 0x800
  31601. 800db18: 2b00 cmp r3, #0
  31602. 800db1a: d012 beq.n 800db42 <HAL_UART_IRQHandler+0x196>
  31603. 800db1c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31604. 800db20: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
  31605. 800db24: 2b00 cmp r3, #0
  31606. 800db26: d00c beq.n 800db42 <HAL_UART_IRQHandler+0x196>
  31607. {
  31608. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  31609. 800db28: 687b ldr r3, [r7, #4]
  31610. 800db2a: 681b ldr r3, [r3, #0]
  31611. 800db2c: f44f 6200 mov.w r2, #2048 @ 0x800
  31612. 800db30: 621a str r2, [r3, #32]
  31613. huart->ErrorCode |= HAL_UART_ERROR_RTO;
  31614. 800db32: 687b ldr r3, [r7, #4]
  31615. 800db34: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  31616. 800db38: f043 0220 orr.w r2, r3, #32
  31617. 800db3c: 687b ldr r3, [r7, #4]
  31618. 800db3e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  31619. }
  31620. /* Call UART Error Call back function if need be ----------------------------*/
  31621. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  31622. 800db42: 687b ldr r3, [r7, #4]
  31623. 800db44: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  31624. 800db48: 2b00 cmp r3, #0
  31625. 800db4a: f000 82dd beq.w 800e108 <HAL_UART_IRQHandler+0x75c>
  31626. {
  31627. /* UART in mode Receiver --------------------------------------------------*/
  31628. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  31629. 800db4e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31630. 800db52: f003 0320 and.w r3, r3, #32
  31631. 800db56: 2b00 cmp r3, #0
  31632. 800db58: d013 beq.n 800db82 <HAL_UART_IRQHandler+0x1d6>
  31633. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  31634. 800db5a: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31635. 800db5e: f003 0320 and.w r3, r3, #32
  31636. 800db62: 2b00 cmp r3, #0
  31637. 800db64: d105 bne.n 800db72 <HAL_UART_IRQHandler+0x1c6>
  31638. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  31639. 800db66: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  31640. 800db6a: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  31641. 800db6e: 2b00 cmp r3, #0
  31642. 800db70: d007 beq.n 800db82 <HAL_UART_IRQHandler+0x1d6>
  31643. {
  31644. if (huart->RxISR != NULL)
  31645. 800db72: 687b ldr r3, [r7, #4]
  31646. 800db74: 6f5b ldr r3, [r3, #116] @ 0x74
  31647. 800db76: 2b00 cmp r3, #0
  31648. 800db78: d003 beq.n 800db82 <HAL_UART_IRQHandler+0x1d6>
  31649. {
  31650. huart->RxISR(huart);
  31651. 800db7a: 687b ldr r3, [r7, #4]
  31652. 800db7c: 6f5b ldr r3, [r3, #116] @ 0x74
  31653. 800db7e: 6878 ldr r0, [r7, #4]
  31654. 800db80: 4798 blx r3
  31655. /* If Error is to be considered as blocking :
  31656. - Receiver Timeout error in Reception
  31657. - Overrun error in Reception
  31658. - any error occurs in DMA mode reception
  31659. */
  31660. errorcode = huart->ErrorCode;
  31661. 800db82: 687b ldr r3, [r7, #4]
  31662. 800db84: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  31663. 800db88: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  31664. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  31665. 800db8c: 687b ldr r3, [r7, #4]
  31666. 800db8e: 681b ldr r3, [r3, #0]
  31667. 800db90: 689b ldr r3, [r3, #8]
  31668. 800db92: f003 0340 and.w r3, r3, #64 @ 0x40
  31669. 800db96: 2b40 cmp r3, #64 @ 0x40
  31670. 800db98: d005 beq.n 800dba6 <HAL_UART_IRQHandler+0x1fa>
  31671. ((errorcode & (HAL_UART_ERROR_RTO | HAL_UART_ERROR_ORE)) != 0U))
  31672. 800db9a: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  31673. 800db9e: f003 0328 and.w r3, r3, #40 @ 0x28
  31674. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  31675. 800dba2: 2b00 cmp r3, #0
  31676. 800dba4: d054 beq.n 800dc50 <HAL_UART_IRQHandler+0x2a4>
  31677. {
  31678. /* Blocking error : transfer is aborted
  31679. Set the UART state ready to be able to start again the process,
  31680. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  31681. UART_EndRxTransfer(huart);
  31682. 800dba6: 6878 ldr r0, [r7, #4]
  31683. 800dba8: f001 fb08 bl 800f1bc <UART_EndRxTransfer>
  31684. /* Abort the UART DMA Rx channel if enabled */
  31685. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  31686. 800dbac: 687b ldr r3, [r7, #4]
  31687. 800dbae: 681b ldr r3, [r3, #0]
  31688. 800dbb0: 689b ldr r3, [r3, #8]
  31689. 800dbb2: f003 0340 and.w r3, r3, #64 @ 0x40
  31690. 800dbb6: 2b40 cmp r3, #64 @ 0x40
  31691. 800dbb8: d146 bne.n 800dc48 <HAL_UART_IRQHandler+0x29c>
  31692. {
  31693. /* Disable the UART DMA Rx request if enabled */
  31694. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  31695. 800dbba: 687b ldr r3, [r7, #4]
  31696. 800dbbc: 681b ldr r3, [r3, #0]
  31697. 800dbbe: 3308 adds r3, #8
  31698. 800dbc0: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  31699. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31700. 800dbc4: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  31701. 800dbc8: e853 3f00 ldrex r3, [r3]
  31702. 800dbcc: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  31703. return(result);
  31704. 800dbd0: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  31705. 800dbd4: f023 0340 bic.w r3, r3, #64 @ 0x40
  31706. 800dbd8: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  31707. 800dbdc: 687b ldr r3, [r7, #4]
  31708. 800dbde: 681b ldr r3, [r3, #0]
  31709. 800dbe0: 3308 adds r3, #8
  31710. 800dbe2: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  31711. 800dbe6: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8
  31712. 800dbea: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  31713. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31714. 800dbee: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4
  31715. 800dbf2: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8
  31716. 800dbf6: e841 2300 strex r3, r2, [r1]
  31717. 800dbfa: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  31718. return(result);
  31719. 800dbfe: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  31720. 800dc02: 2b00 cmp r3, #0
  31721. 800dc04: d1d9 bne.n 800dbba <HAL_UART_IRQHandler+0x20e>
  31722. /* Abort the UART DMA Rx channel */
  31723. if (huart->hdmarx != NULL)
  31724. 800dc06: 687b ldr r3, [r7, #4]
  31725. 800dc08: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31726. 800dc0c: 2b00 cmp r3, #0
  31727. 800dc0e: d017 beq.n 800dc40 <HAL_UART_IRQHandler+0x294>
  31728. {
  31729. /* Set the UART DMA Abort callback :
  31730. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  31731. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  31732. 800dc10: 687b ldr r3, [r7, #4]
  31733. 800dc12: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31734. 800dc16: 4a15 ldr r2, [pc, #84] @ (800dc6c <HAL_UART_IRQHandler+0x2c0>)
  31735. 800dc18: 651a str r2, [r3, #80] @ 0x50
  31736. /* Abort DMA RX */
  31737. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  31738. 800dc1a: 687b ldr r3, [r7, #4]
  31739. 800dc1c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31740. 800dc20: 4618 mov r0, r3
  31741. 800dc22: f7f8 ff5f bl 8006ae4 <HAL_DMA_Abort_IT>
  31742. 800dc26: 4603 mov r3, r0
  31743. 800dc28: 2b00 cmp r3, #0
  31744. 800dc2a: d019 beq.n 800dc60 <HAL_UART_IRQHandler+0x2b4>
  31745. {
  31746. /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */
  31747. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  31748. 800dc2c: 687b ldr r3, [r7, #4]
  31749. 800dc2e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31750. 800dc32: 6d1b ldr r3, [r3, #80] @ 0x50
  31751. 800dc34: 687a ldr r2, [r7, #4]
  31752. 800dc36: f8d2 2080 ldr.w r2, [r2, #128] @ 0x80
  31753. 800dc3a: 4610 mov r0, r2
  31754. 800dc3c: 4798 blx r3
  31755. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  31756. 800dc3e: e00f b.n 800dc60 <HAL_UART_IRQHandler+0x2b4>
  31757. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  31758. /*Call registered error callback*/
  31759. huart->ErrorCallback(huart);
  31760. #else
  31761. /*Call legacy weak error callback*/
  31762. HAL_UART_ErrorCallback(huart);
  31763. 800dc40: 6878 ldr r0, [r7, #4]
  31764. 800dc42: f000 fa6d bl 800e120 <HAL_UART_ErrorCallback>
  31765. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  31766. 800dc46: e00b b.n 800dc60 <HAL_UART_IRQHandler+0x2b4>
  31767. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  31768. /*Call registered error callback*/
  31769. huart->ErrorCallback(huart);
  31770. #else
  31771. /*Call legacy weak error callback*/
  31772. HAL_UART_ErrorCallback(huart);
  31773. 800dc48: 6878 ldr r0, [r7, #4]
  31774. 800dc4a: f000 fa69 bl 800e120 <HAL_UART_ErrorCallback>
  31775. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  31776. 800dc4e: e007 b.n 800dc60 <HAL_UART_IRQHandler+0x2b4>
  31777. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  31778. /*Call registered error callback*/
  31779. huart->ErrorCallback(huart);
  31780. #else
  31781. /*Call legacy weak error callback*/
  31782. HAL_UART_ErrorCallback(huart);
  31783. 800dc50: 6878 ldr r0, [r7, #4]
  31784. 800dc52: f000 fa65 bl 800e120 <HAL_UART_ErrorCallback>
  31785. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  31786. huart->ErrorCode = HAL_UART_ERROR_NONE;
  31787. 800dc56: 687b ldr r3, [r7, #4]
  31788. 800dc58: 2200 movs r2, #0
  31789. 800dc5a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  31790. }
  31791. }
  31792. return;
  31793. 800dc5e: e253 b.n 800e108 <HAL_UART_IRQHandler+0x75c>
  31794. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  31795. 800dc60: bf00 nop
  31796. return;
  31797. 800dc62: e251 b.n 800e108 <HAL_UART_IRQHandler+0x75c>
  31798. 800dc64: 10000001 .word 0x10000001
  31799. 800dc68: 04000120 .word 0x04000120
  31800. 800dc6c: 0800f289 .word 0x0800f289
  31801. } /* End if some error occurs */
  31802. /* Check current reception Mode :
  31803. If Reception till IDLE event has been selected : */
  31804. if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  31805. 800dc70: 687b ldr r3, [r7, #4]
  31806. 800dc72: 6edb ldr r3, [r3, #108] @ 0x6c
  31807. 800dc74: 2b01 cmp r3, #1
  31808. 800dc76: f040 81e7 bne.w 800e048 <HAL_UART_IRQHandler+0x69c>
  31809. && ((isrflags & USART_ISR_IDLE) != 0U)
  31810. 800dc7a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31811. 800dc7e: f003 0310 and.w r3, r3, #16
  31812. 800dc82: 2b00 cmp r3, #0
  31813. 800dc84: f000 81e0 beq.w 800e048 <HAL_UART_IRQHandler+0x69c>
  31814. && ((cr1its & USART_ISR_IDLE) != 0U))
  31815. 800dc88: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31816. 800dc8c: f003 0310 and.w r3, r3, #16
  31817. 800dc90: 2b00 cmp r3, #0
  31818. 800dc92: f000 81d9 beq.w 800e048 <HAL_UART_IRQHandler+0x69c>
  31819. {
  31820. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  31821. 800dc96: 687b ldr r3, [r7, #4]
  31822. 800dc98: 681b ldr r3, [r3, #0]
  31823. 800dc9a: 2210 movs r2, #16
  31824. 800dc9c: 621a str r2, [r3, #32]
  31825. /* Check if DMA mode is enabled in UART */
  31826. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  31827. 800dc9e: 687b ldr r3, [r7, #4]
  31828. 800dca0: 681b ldr r3, [r3, #0]
  31829. 800dca2: 689b ldr r3, [r3, #8]
  31830. 800dca4: f003 0340 and.w r3, r3, #64 @ 0x40
  31831. 800dca8: 2b40 cmp r3, #64 @ 0x40
  31832. 800dcaa: f040 8151 bne.w 800df50 <HAL_UART_IRQHandler+0x5a4>
  31833. {
  31834. /* DMA mode enabled */
  31835. /* Check received length : If all expected data are received, do nothing,
  31836. (DMA cplt callback will be called).
  31837. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  31838. uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx);
  31839. 800dcae: 687b ldr r3, [r7, #4]
  31840. 800dcb0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31841. 800dcb4: 681b ldr r3, [r3, #0]
  31842. 800dcb6: 4a96 ldr r2, [pc, #600] @ (800df10 <HAL_UART_IRQHandler+0x564>)
  31843. 800dcb8: 4293 cmp r3, r2
  31844. 800dcba: d068 beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31845. 800dcbc: 687b ldr r3, [r7, #4]
  31846. 800dcbe: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31847. 800dcc2: 681b ldr r3, [r3, #0]
  31848. 800dcc4: 4a93 ldr r2, [pc, #588] @ (800df14 <HAL_UART_IRQHandler+0x568>)
  31849. 800dcc6: 4293 cmp r3, r2
  31850. 800dcc8: d061 beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31851. 800dcca: 687b ldr r3, [r7, #4]
  31852. 800dccc: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31853. 800dcd0: 681b ldr r3, [r3, #0]
  31854. 800dcd2: 4a91 ldr r2, [pc, #580] @ (800df18 <HAL_UART_IRQHandler+0x56c>)
  31855. 800dcd4: 4293 cmp r3, r2
  31856. 800dcd6: d05a beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31857. 800dcd8: 687b ldr r3, [r7, #4]
  31858. 800dcda: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31859. 800dcde: 681b ldr r3, [r3, #0]
  31860. 800dce0: 4a8e ldr r2, [pc, #568] @ (800df1c <HAL_UART_IRQHandler+0x570>)
  31861. 800dce2: 4293 cmp r3, r2
  31862. 800dce4: d053 beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31863. 800dce6: 687b ldr r3, [r7, #4]
  31864. 800dce8: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31865. 800dcec: 681b ldr r3, [r3, #0]
  31866. 800dcee: 4a8c ldr r2, [pc, #560] @ (800df20 <HAL_UART_IRQHandler+0x574>)
  31867. 800dcf0: 4293 cmp r3, r2
  31868. 800dcf2: d04c beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31869. 800dcf4: 687b ldr r3, [r7, #4]
  31870. 800dcf6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31871. 800dcfa: 681b ldr r3, [r3, #0]
  31872. 800dcfc: 4a89 ldr r2, [pc, #548] @ (800df24 <HAL_UART_IRQHandler+0x578>)
  31873. 800dcfe: 4293 cmp r3, r2
  31874. 800dd00: d045 beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31875. 800dd02: 687b ldr r3, [r7, #4]
  31876. 800dd04: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31877. 800dd08: 681b ldr r3, [r3, #0]
  31878. 800dd0a: 4a87 ldr r2, [pc, #540] @ (800df28 <HAL_UART_IRQHandler+0x57c>)
  31879. 800dd0c: 4293 cmp r3, r2
  31880. 800dd0e: d03e beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31881. 800dd10: 687b ldr r3, [r7, #4]
  31882. 800dd12: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31883. 800dd16: 681b ldr r3, [r3, #0]
  31884. 800dd18: 4a84 ldr r2, [pc, #528] @ (800df2c <HAL_UART_IRQHandler+0x580>)
  31885. 800dd1a: 4293 cmp r3, r2
  31886. 800dd1c: d037 beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31887. 800dd1e: 687b ldr r3, [r7, #4]
  31888. 800dd20: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31889. 800dd24: 681b ldr r3, [r3, #0]
  31890. 800dd26: 4a82 ldr r2, [pc, #520] @ (800df30 <HAL_UART_IRQHandler+0x584>)
  31891. 800dd28: 4293 cmp r3, r2
  31892. 800dd2a: d030 beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31893. 800dd2c: 687b ldr r3, [r7, #4]
  31894. 800dd2e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31895. 800dd32: 681b ldr r3, [r3, #0]
  31896. 800dd34: 4a7f ldr r2, [pc, #508] @ (800df34 <HAL_UART_IRQHandler+0x588>)
  31897. 800dd36: 4293 cmp r3, r2
  31898. 800dd38: d029 beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31899. 800dd3a: 687b ldr r3, [r7, #4]
  31900. 800dd3c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31901. 800dd40: 681b ldr r3, [r3, #0]
  31902. 800dd42: 4a7d ldr r2, [pc, #500] @ (800df38 <HAL_UART_IRQHandler+0x58c>)
  31903. 800dd44: 4293 cmp r3, r2
  31904. 800dd46: d022 beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31905. 800dd48: 687b ldr r3, [r7, #4]
  31906. 800dd4a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31907. 800dd4e: 681b ldr r3, [r3, #0]
  31908. 800dd50: 4a7a ldr r2, [pc, #488] @ (800df3c <HAL_UART_IRQHandler+0x590>)
  31909. 800dd52: 4293 cmp r3, r2
  31910. 800dd54: d01b beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31911. 800dd56: 687b ldr r3, [r7, #4]
  31912. 800dd58: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31913. 800dd5c: 681b ldr r3, [r3, #0]
  31914. 800dd5e: 4a78 ldr r2, [pc, #480] @ (800df40 <HAL_UART_IRQHandler+0x594>)
  31915. 800dd60: 4293 cmp r3, r2
  31916. 800dd62: d014 beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31917. 800dd64: 687b ldr r3, [r7, #4]
  31918. 800dd66: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31919. 800dd6a: 681b ldr r3, [r3, #0]
  31920. 800dd6c: 4a75 ldr r2, [pc, #468] @ (800df44 <HAL_UART_IRQHandler+0x598>)
  31921. 800dd6e: 4293 cmp r3, r2
  31922. 800dd70: d00d beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31923. 800dd72: 687b ldr r3, [r7, #4]
  31924. 800dd74: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31925. 800dd78: 681b ldr r3, [r3, #0]
  31926. 800dd7a: 4a73 ldr r2, [pc, #460] @ (800df48 <HAL_UART_IRQHandler+0x59c>)
  31927. 800dd7c: 4293 cmp r3, r2
  31928. 800dd7e: d006 beq.n 800dd8e <HAL_UART_IRQHandler+0x3e2>
  31929. 800dd80: 687b ldr r3, [r7, #4]
  31930. 800dd82: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31931. 800dd86: 681b ldr r3, [r3, #0]
  31932. 800dd88: 4a70 ldr r2, [pc, #448] @ (800df4c <HAL_UART_IRQHandler+0x5a0>)
  31933. 800dd8a: 4293 cmp r3, r2
  31934. 800dd8c: d106 bne.n 800dd9c <HAL_UART_IRQHandler+0x3f0>
  31935. 800dd8e: 687b ldr r3, [r7, #4]
  31936. 800dd90: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31937. 800dd94: 681b ldr r3, [r3, #0]
  31938. 800dd96: 685b ldr r3, [r3, #4]
  31939. 800dd98: b29b uxth r3, r3
  31940. 800dd9a: e005 b.n 800dda8 <HAL_UART_IRQHandler+0x3fc>
  31941. 800dd9c: 687b ldr r3, [r7, #4]
  31942. 800dd9e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31943. 800dda2: 681b ldr r3, [r3, #0]
  31944. 800dda4: 685b ldr r3, [r3, #4]
  31945. 800dda6: b29b uxth r3, r3
  31946. 800dda8: f8a7 30be strh.w r3, [r7, #190] @ 0xbe
  31947. if ((nb_remaining_rx_data > 0U)
  31948. 800ddac: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe
  31949. 800ddb0: 2b00 cmp r3, #0
  31950. 800ddb2: f000 81ab beq.w 800e10c <HAL_UART_IRQHandler+0x760>
  31951. && (nb_remaining_rx_data < huart->RxXferSize))
  31952. 800ddb6: 687b ldr r3, [r7, #4]
  31953. 800ddb8: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  31954. 800ddbc: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  31955. 800ddc0: 429a cmp r2, r3
  31956. 800ddc2: f080 81a3 bcs.w 800e10c <HAL_UART_IRQHandler+0x760>
  31957. {
  31958. /* Reception is not complete */
  31959. huart->RxXferCount = nb_remaining_rx_data;
  31960. 800ddc6: 687b ldr r3, [r7, #4]
  31961. 800ddc8: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  31962. 800ddcc: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  31963. /* In Normal mode, end DMA xfer and HAL UART Rx process*/
  31964. if (huart->hdmarx->Init.Mode != DMA_CIRCULAR)
  31965. 800ddd0: 687b ldr r3, [r7, #4]
  31966. 800ddd2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31967. 800ddd6: 69db ldr r3, [r3, #28]
  31968. 800ddd8: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31969. 800dddc: f000 8087 beq.w 800deee <HAL_UART_IRQHandler+0x542>
  31970. {
  31971. /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */
  31972. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  31973. 800dde0: 687b ldr r3, [r7, #4]
  31974. 800dde2: 681b ldr r3, [r3, #0]
  31975. 800dde4: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  31976. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31977. 800dde8: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  31978. 800ddec: e853 3f00 ldrex r3, [r3]
  31979. 800ddf0: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  31980. return(result);
  31981. 800ddf4: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  31982. 800ddf8: f423 7380 bic.w r3, r3, #256 @ 0x100
  31983. 800ddfc: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  31984. 800de00: 687b ldr r3, [r7, #4]
  31985. 800de02: 681b ldr r3, [r3, #0]
  31986. 800de04: 461a mov r2, r3
  31987. 800de06: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8
  31988. 800de0a: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  31989. 800de0e: f8c7 2090 str.w r2, [r7, #144] @ 0x90
  31990. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31991. 800de12: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90
  31992. 800de16: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  31993. 800de1a: e841 2300 strex r3, r2, [r1]
  31994. 800de1e: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  31995. return(result);
  31996. 800de22: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  31997. 800de26: 2b00 cmp r3, #0
  31998. 800de28: d1da bne.n 800dde0 <HAL_UART_IRQHandler+0x434>
  31999. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  32000. 800de2a: 687b ldr r3, [r7, #4]
  32001. 800de2c: 681b ldr r3, [r3, #0]
  32002. 800de2e: 3308 adds r3, #8
  32003. 800de30: 677b str r3, [r7, #116] @ 0x74
  32004. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32005. 800de32: 6f7b ldr r3, [r7, #116] @ 0x74
  32006. 800de34: e853 3f00 ldrex r3, [r3]
  32007. 800de38: 673b str r3, [r7, #112] @ 0x70
  32008. return(result);
  32009. 800de3a: 6f3b ldr r3, [r7, #112] @ 0x70
  32010. 800de3c: f023 0301 bic.w r3, r3, #1
  32011. 800de40: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  32012. 800de44: 687b ldr r3, [r7, #4]
  32013. 800de46: 681b ldr r3, [r3, #0]
  32014. 800de48: 3308 adds r3, #8
  32015. 800de4a: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4
  32016. 800de4e: f8c7 2080 str.w r2, [r7, #128] @ 0x80
  32017. 800de52: 67fb str r3, [r7, #124] @ 0x7c
  32018. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32019. 800de54: 6ff9 ldr r1, [r7, #124] @ 0x7c
  32020. 800de56: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  32021. 800de5a: e841 2300 strex r3, r2, [r1]
  32022. 800de5e: 67bb str r3, [r7, #120] @ 0x78
  32023. return(result);
  32024. 800de60: 6fbb ldr r3, [r7, #120] @ 0x78
  32025. 800de62: 2b00 cmp r3, #0
  32026. 800de64: d1e1 bne.n 800de2a <HAL_UART_IRQHandler+0x47e>
  32027. /* Disable the DMA transfer for the receiver request by resetting the DMAR bit
  32028. in the UART CR3 register */
  32029. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  32030. 800de66: 687b ldr r3, [r7, #4]
  32031. 800de68: 681b ldr r3, [r3, #0]
  32032. 800de6a: 3308 adds r3, #8
  32033. 800de6c: 663b str r3, [r7, #96] @ 0x60
  32034. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32035. 800de6e: 6e3b ldr r3, [r7, #96] @ 0x60
  32036. 800de70: e853 3f00 ldrex r3, [r3]
  32037. 800de74: 65fb str r3, [r7, #92] @ 0x5c
  32038. return(result);
  32039. 800de76: 6dfb ldr r3, [r7, #92] @ 0x5c
  32040. 800de78: f023 0340 bic.w r3, r3, #64 @ 0x40
  32041. 800de7c: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  32042. 800de80: 687b ldr r3, [r7, #4]
  32043. 800de82: 681b ldr r3, [r3, #0]
  32044. 800de84: 3308 adds r3, #8
  32045. 800de86: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0
  32046. 800de8a: 66fa str r2, [r7, #108] @ 0x6c
  32047. 800de8c: 66bb str r3, [r7, #104] @ 0x68
  32048. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32049. 800de8e: 6eb9 ldr r1, [r7, #104] @ 0x68
  32050. 800de90: 6efa ldr r2, [r7, #108] @ 0x6c
  32051. 800de92: e841 2300 strex r3, r2, [r1]
  32052. 800de96: 667b str r3, [r7, #100] @ 0x64
  32053. return(result);
  32054. 800de98: 6e7b ldr r3, [r7, #100] @ 0x64
  32055. 800de9a: 2b00 cmp r3, #0
  32056. 800de9c: d1e3 bne.n 800de66 <HAL_UART_IRQHandler+0x4ba>
  32057. /* At end of Rx process, restore huart->RxState to Ready */
  32058. huart->RxState = HAL_UART_STATE_READY;
  32059. 800de9e: 687b ldr r3, [r7, #4]
  32060. 800dea0: 2220 movs r2, #32
  32061. 800dea2: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  32062. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  32063. 800dea6: 687b ldr r3, [r7, #4]
  32064. 800dea8: 2200 movs r2, #0
  32065. 800deaa: 66da str r2, [r3, #108] @ 0x6c
  32066. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  32067. 800deac: 687b ldr r3, [r7, #4]
  32068. 800deae: 681b ldr r3, [r3, #0]
  32069. 800deb0: 64fb str r3, [r7, #76] @ 0x4c
  32070. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32071. 800deb2: 6cfb ldr r3, [r7, #76] @ 0x4c
  32072. 800deb4: e853 3f00 ldrex r3, [r3]
  32073. 800deb8: 64bb str r3, [r7, #72] @ 0x48
  32074. return(result);
  32075. 800deba: 6cbb ldr r3, [r7, #72] @ 0x48
  32076. 800debc: f023 0310 bic.w r3, r3, #16
  32077. 800dec0: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  32078. 800dec4: 687b ldr r3, [r7, #4]
  32079. 800dec6: 681b ldr r3, [r3, #0]
  32080. 800dec8: 461a mov r2, r3
  32081. 800deca: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  32082. 800dece: 65bb str r3, [r7, #88] @ 0x58
  32083. 800ded0: 657a str r2, [r7, #84] @ 0x54
  32084. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32085. 800ded2: 6d79 ldr r1, [r7, #84] @ 0x54
  32086. 800ded4: 6dba ldr r2, [r7, #88] @ 0x58
  32087. 800ded6: e841 2300 strex r3, r2, [r1]
  32088. 800deda: 653b str r3, [r7, #80] @ 0x50
  32089. return(result);
  32090. 800dedc: 6d3b ldr r3, [r7, #80] @ 0x50
  32091. 800dede: 2b00 cmp r3, #0
  32092. 800dee0: d1e4 bne.n 800deac <HAL_UART_IRQHandler+0x500>
  32093. /* Last bytes received, so no need as the abort is immediate */
  32094. (void)HAL_DMA_Abort(huart->hdmarx);
  32095. 800dee2: 687b ldr r3, [r7, #4]
  32096. 800dee4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  32097. 800dee8: 4618 mov r0, r3
  32098. 800deea: f7f8 fadd bl 80064a8 <HAL_DMA_Abort>
  32099. }
  32100. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  32101. In this case, Rx Event type is Idle Event */
  32102. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  32103. 800deee: 687b ldr r3, [r7, #4]
  32104. 800def0: 2202 movs r2, #2
  32105. 800def2: 671a str r2, [r3, #112] @ 0x70
  32106. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  32107. /*Call registered Rx Event callback*/
  32108. huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  32109. #else
  32110. /*Call legacy weak Rx Event callback*/
  32111. HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  32112. 800def4: 687b ldr r3, [r7, #4]
  32113. 800def6: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  32114. 800defa: 687b ldr r3, [r7, #4]
  32115. 800defc: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  32116. 800df00: b29b uxth r3, r3
  32117. 800df02: 1ad3 subs r3, r2, r3
  32118. 800df04: b29b uxth r3, r3
  32119. 800df06: 4619 mov r1, r3
  32120. 800df08: 6878 ldr r0, [r7, #4]
  32121. 800df0a: f7f6 fb39 bl 8004580 <HAL_UARTEx_RxEventCallback>
  32122. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  32123. }
  32124. return;
  32125. 800df0e: e0fd b.n 800e10c <HAL_UART_IRQHandler+0x760>
  32126. 800df10: 40020010 .word 0x40020010
  32127. 800df14: 40020028 .word 0x40020028
  32128. 800df18: 40020040 .word 0x40020040
  32129. 800df1c: 40020058 .word 0x40020058
  32130. 800df20: 40020070 .word 0x40020070
  32131. 800df24: 40020088 .word 0x40020088
  32132. 800df28: 400200a0 .word 0x400200a0
  32133. 800df2c: 400200b8 .word 0x400200b8
  32134. 800df30: 40020410 .word 0x40020410
  32135. 800df34: 40020428 .word 0x40020428
  32136. 800df38: 40020440 .word 0x40020440
  32137. 800df3c: 40020458 .word 0x40020458
  32138. 800df40: 40020470 .word 0x40020470
  32139. 800df44: 40020488 .word 0x40020488
  32140. 800df48: 400204a0 .word 0x400204a0
  32141. 800df4c: 400204b8 .word 0x400204b8
  32142. else
  32143. {
  32144. /* DMA mode not enabled */
  32145. /* Check received length : If all expected data are received, do nothing.
  32146. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  32147. uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount;
  32148. 800df50: 687b ldr r3, [r7, #4]
  32149. 800df52: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  32150. 800df56: 687b ldr r3, [r7, #4]
  32151. 800df58: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  32152. 800df5c: b29b uxth r3, r3
  32153. 800df5e: 1ad3 subs r3, r2, r3
  32154. 800df60: f8a7 30ce strh.w r3, [r7, #206] @ 0xce
  32155. if ((huart->RxXferCount > 0U)
  32156. 800df64: 687b ldr r3, [r7, #4]
  32157. 800df66: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  32158. 800df6a: b29b uxth r3, r3
  32159. 800df6c: 2b00 cmp r3, #0
  32160. 800df6e: f000 80cf beq.w 800e110 <HAL_UART_IRQHandler+0x764>
  32161. && (nb_rx_data > 0U))
  32162. 800df72: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  32163. 800df76: 2b00 cmp r3, #0
  32164. 800df78: f000 80ca beq.w 800e110 <HAL_UART_IRQHandler+0x764>
  32165. {
  32166. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  32167. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  32168. 800df7c: 687b ldr r3, [r7, #4]
  32169. 800df7e: 681b ldr r3, [r3, #0]
  32170. 800df80: 63bb str r3, [r7, #56] @ 0x38
  32171. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32172. 800df82: 6bbb ldr r3, [r7, #56] @ 0x38
  32173. 800df84: e853 3f00 ldrex r3, [r3]
  32174. 800df88: 637b str r3, [r7, #52] @ 0x34
  32175. return(result);
  32176. 800df8a: 6b7b ldr r3, [r7, #52] @ 0x34
  32177. 800df8c: f423 7390 bic.w r3, r3, #288 @ 0x120
  32178. 800df90: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  32179. 800df94: 687b ldr r3, [r7, #4]
  32180. 800df96: 681b ldr r3, [r3, #0]
  32181. 800df98: 461a mov r2, r3
  32182. 800df9a: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8
  32183. 800df9e: 647b str r3, [r7, #68] @ 0x44
  32184. 800dfa0: 643a str r2, [r7, #64] @ 0x40
  32185. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32186. 800dfa2: 6c39 ldr r1, [r7, #64] @ 0x40
  32187. 800dfa4: 6c7a ldr r2, [r7, #68] @ 0x44
  32188. 800dfa6: e841 2300 strex r3, r2, [r1]
  32189. 800dfaa: 63fb str r3, [r7, #60] @ 0x3c
  32190. return(result);
  32191. 800dfac: 6bfb ldr r3, [r7, #60] @ 0x3c
  32192. 800dfae: 2b00 cmp r3, #0
  32193. 800dfb0: d1e4 bne.n 800df7c <HAL_UART_IRQHandler+0x5d0>
  32194. /* Disable the UART Error Interrupt:(Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */
  32195. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  32196. 800dfb2: 687b ldr r3, [r7, #4]
  32197. 800dfb4: 681b ldr r3, [r3, #0]
  32198. 800dfb6: 3308 adds r3, #8
  32199. 800dfb8: 627b str r3, [r7, #36] @ 0x24
  32200. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32201. 800dfba: 6a7b ldr r3, [r7, #36] @ 0x24
  32202. 800dfbc: e853 3f00 ldrex r3, [r3]
  32203. 800dfc0: 623b str r3, [r7, #32]
  32204. return(result);
  32205. 800dfc2: 6a3a ldr r2, [r7, #32]
  32206. 800dfc4: 4b55 ldr r3, [pc, #340] @ (800e11c <HAL_UART_IRQHandler+0x770>)
  32207. 800dfc6: 4013 ands r3, r2
  32208. 800dfc8: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  32209. 800dfcc: 687b ldr r3, [r7, #4]
  32210. 800dfce: 681b ldr r3, [r3, #0]
  32211. 800dfd0: 3308 adds r3, #8
  32212. 800dfd2: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4
  32213. 800dfd6: 633a str r2, [r7, #48] @ 0x30
  32214. 800dfd8: 62fb str r3, [r7, #44] @ 0x2c
  32215. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32216. 800dfda: 6af9 ldr r1, [r7, #44] @ 0x2c
  32217. 800dfdc: 6b3a ldr r2, [r7, #48] @ 0x30
  32218. 800dfde: e841 2300 strex r3, r2, [r1]
  32219. 800dfe2: 62bb str r3, [r7, #40] @ 0x28
  32220. return(result);
  32221. 800dfe4: 6abb ldr r3, [r7, #40] @ 0x28
  32222. 800dfe6: 2b00 cmp r3, #0
  32223. 800dfe8: d1e3 bne.n 800dfb2 <HAL_UART_IRQHandler+0x606>
  32224. /* Rx process is completed, restore huart->RxState to Ready */
  32225. huart->RxState = HAL_UART_STATE_READY;
  32226. 800dfea: 687b ldr r3, [r7, #4]
  32227. 800dfec: 2220 movs r2, #32
  32228. 800dfee: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  32229. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  32230. 800dff2: 687b ldr r3, [r7, #4]
  32231. 800dff4: 2200 movs r2, #0
  32232. 800dff6: 66da str r2, [r3, #108] @ 0x6c
  32233. /* Clear RxISR function pointer */
  32234. huart->RxISR = NULL;
  32235. 800dff8: 687b ldr r3, [r7, #4]
  32236. 800dffa: 2200 movs r2, #0
  32237. 800dffc: 675a str r2, [r3, #116] @ 0x74
  32238. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  32239. 800dffe: 687b ldr r3, [r7, #4]
  32240. 800e000: 681b ldr r3, [r3, #0]
  32241. 800e002: 613b str r3, [r7, #16]
  32242. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  32243. 800e004: 693b ldr r3, [r7, #16]
  32244. 800e006: e853 3f00 ldrex r3, [r3]
  32245. 800e00a: 60fb str r3, [r7, #12]
  32246. return(result);
  32247. 800e00c: 68fb ldr r3, [r7, #12]
  32248. 800e00e: f023 0310 bic.w r3, r3, #16
  32249. 800e012: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  32250. 800e016: 687b ldr r3, [r7, #4]
  32251. 800e018: 681b ldr r3, [r3, #0]
  32252. 800e01a: 461a mov r2, r3
  32253. 800e01c: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0
  32254. 800e020: 61fb str r3, [r7, #28]
  32255. 800e022: 61ba str r2, [r7, #24]
  32256. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  32257. 800e024: 69b9 ldr r1, [r7, #24]
  32258. 800e026: 69fa ldr r2, [r7, #28]
  32259. 800e028: e841 2300 strex r3, r2, [r1]
  32260. 800e02c: 617b str r3, [r7, #20]
  32261. return(result);
  32262. 800e02e: 697b ldr r3, [r7, #20]
  32263. 800e030: 2b00 cmp r3, #0
  32264. 800e032: d1e4 bne.n 800dffe <HAL_UART_IRQHandler+0x652>
  32265. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  32266. In this case, Rx Event type is Idle Event */
  32267. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  32268. 800e034: 687b ldr r3, [r7, #4]
  32269. 800e036: 2202 movs r2, #2
  32270. 800e038: 671a str r2, [r3, #112] @ 0x70
  32271. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  32272. /*Call registered Rx complete callback*/
  32273. huart->RxEventCallback(huart, nb_rx_data);
  32274. #else
  32275. /*Call legacy weak Rx Event callback*/
  32276. HAL_UARTEx_RxEventCallback(huart, nb_rx_data);
  32277. 800e03a: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  32278. 800e03e: 4619 mov r1, r3
  32279. 800e040: 6878 ldr r0, [r7, #4]
  32280. 800e042: f7f6 fa9d bl 8004580 <HAL_UARTEx_RxEventCallback>
  32281. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  32282. }
  32283. return;
  32284. 800e046: e063 b.n 800e110 <HAL_UART_IRQHandler+0x764>
  32285. }
  32286. }
  32287. /* UART wakeup from Stop mode interrupt occurred ---------------------------*/
  32288. if (((isrflags & USART_ISR_WUF) != 0U) && ((cr3its & USART_CR3_WUFIE) != 0U))
  32289. 800e048: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  32290. 800e04c: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  32291. 800e050: 2b00 cmp r3, #0
  32292. 800e052: d00e beq.n 800e072 <HAL_UART_IRQHandler+0x6c6>
  32293. 800e054: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  32294. 800e058: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  32295. 800e05c: 2b00 cmp r3, #0
  32296. 800e05e: d008 beq.n 800e072 <HAL_UART_IRQHandler+0x6c6>
  32297. {
  32298. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_WUF);
  32299. 800e060: 687b ldr r3, [r7, #4]
  32300. 800e062: 681b ldr r3, [r3, #0]
  32301. 800e064: f44f 1280 mov.w r2, #1048576 @ 0x100000
  32302. 800e068: 621a str r2, [r3, #32]
  32303. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  32304. /* Call registered Wakeup Callback */
  32305. huart->WakeupCallback(huart);
  32306. #else
  32307. /* Call legacy weak Wakeup Callback */
  32308. HAL_UARTEx_WakeupCallback(huart);
  32309. 800e06a: 6878 ldr r0, [r7, #4]
  32310. 800e06c: f002 f80c bl 8010088 <HAL_UARTEx_WakeupCallback>
  32311. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  32312. return;
  32313. 800e070: e051 b.n 800e116 <HAL_UART_IRQHandler+0x76a>
  32314. }
  32315. /* UART in mode Transmitter ------------------------------------------------*/
  32316. if (((isrflags & USART_ISR_TXE_TXFNF) != 0U)
  32317. 800e072: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  32318. 800e076: f003 0380 and.w r3, r3, #128 @ 0x80
  32319. 800e07a: 2b00 cmp r3, #0
  32320. 800e07c: d014 beq.n 800e0a8 <HAL_UART_IRQHandler+0x6fc>
  32321. && (((cr1its & USART_CR1_TXEIE_TXFNFIE) != 0U)
  32322. 800e07e: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  32323. 800e082: f003 0380 and.w r3, r3, #128 @ 0x80
  32324. 800e086: 2b00 cmp r3, #0
  32325. 800e088: d105 bne.n 800e096 <HAL_UART_IRQHandler+0x6ea>
  32326. || ((cr3its & USART_CR3_TXFTIE) != 0U)))
  32327. 800e08a: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  32328. 800e08e: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  32329. 800e092: 2b00 cmp r3, #0
  32330. 800e094: d008 beq.n 800e0a8 <HAL_UART_IRQHandler+0x6fc>
  32331. {
  32332. if (huart->TxISR != NULL)
  32333. 800e096: 687b ldr r3, [r7, #4]
  32334. 800e098: 6f9b ldr r3, [r3, #120] @ 0x78
  32335. 800e09a: 2b00 cmp r3, #0
  32336. 800e09c: d03a beq.n 800e114 <HAL_UART_IRQHandler+0x768>
  32337. {
  32338. huart->TxISR(huart);
  32339. 800e09e: 687b ldr r3, [r7, #4]
  32340. 800e0a0: 6f9b ldr r3, [r3, #120] @ 0x78
  32341. 800e0a2: 6878 ldr r0, [r7, #4]
  32342. 800e0a4: 4798 blx r3
  32343. }
  32344. return;
  32345. 800e0a6: e035 b.n 800e114 <HAL_UART_IRQHandler+0x768>
  32346. }
  32347. /* UART in mode Transmitter (transmission end) -----------------------------*/
  32348. if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U))
  32349. 800e0a8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  32350. 800e0ac: f003 0340 and.w r3, r3, #64 @ 0x40
  32351. 800e0b0: 2b00 cmp r3, #0
  32352. 800e0b2: d009 beq.n 800e0c8 <HAL_UART_IRQHandler+0x71c>
  32353. 800e0b4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  32354. 800e0b8: f003 0340 and.w r3, r3, #64 @ 0x40
  32355. 800e0bc: 2b00 cmp r3, #0
  32356. 800e0be: d003 beq.n 800e0c8 <HAL_UART_IRQHandler+0x71c>
  32357. {
  32358. UART_EndTransmit_IT(huart);
  32359. 800e0c0: 6878 ldr r0, [r7, #4]
  32360. 800e0c2: f001 fa99 bl 800f5f8 <UART_EndTransmit_IT>
  32361. return;
  32362. 800e0c6: e026 b.n 800e116 <HAL_UART_IRQHandler+0x76a>
  32363. }
  32364. /* UART TX Fifo Empty occurred ----------------------------------------------*/
  32365. if (((isrflags & USART_ISR_TXFE) != 0U) && ((cr1its & USART_CR1_TXFEIE) != 0U))
  32366. 800e0c8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  32367. 800e0cc: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  32368. 800e0d0: 2b00 cmp r3, #0
  32369. 800e0d2: d009 beq.n 800e0e8 <HAL_UART_IRQHandler+0x73c>
  32370. 800e0d4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  32371. 800e0d8: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  32372. 800e0dc: 2b00 cmp r3, #0
  32373. 800e0de: d003 beq.n 800e0e8 <HAL_UART_IRQHandler+0x73c>
  32374. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  32375. /* Call registered Tx Fifo Empty Callback */
  32376. huart->TxFifoEmptyCallback(huart);
  32377. #else
  32378. /* Call legacy weak Tx Fifo Empty Callback */
  32379. HAL_UARTEx_TxFifoEmptyCallback(huart);
  32380. 800e0e0: 6878 ldr r0, [r7, #4]
  32381. 800e0e2: f001 ffe5 bl 80100b0 <HAL_UARTEx_TxFifoEmptyCallback>
  32382. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  32383. return;
  32384. 800e0e6: e016 b.n 800e116 <HAL_UART_IRQHandler+0x76a>
  32385. }
  32386. /* UART RX Fifo Full occurred ----------------------------------------------*/
  32387. if (((isrflags & USART_ISR_RXFF) != 0U) && ((cr1its & USART_CR1_RXFFIE) != 0U))
  32388. 800e0e8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  32389. 800e0ec: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  32390. 800e0f0: 2b00 cmp r3, #0
  32391. 800e0f2: d010 beq.n 800e116 <HAL_UART_IRQHandler+0x76a>
  32392. 800e0f4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  32393. 800e0f8: 2b00 cmp r3, #0
  32394. 800e0fa: da0c bge.n 800e116 <HAL_UART_IRQHandler+0x76a>
  32395. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  32396. /* Call registered Rx Fifo Full Callback */
  32397. huart->RxFifoFullCallback(huart);
  32398. #else
  32399. /* Call legacy weak Rx Fifo Full Callback */
  32400. HAL_UARTEx_RxFifoFullCallback(huart);
  32401. 800e0fc: 6878 ldr r0, [r7, #4]
  32402. 800e0fe: f001 ffcd bl 801009c <HAL_UARTEx_RxFifoFullCallback>
  32403. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  32404. return;
  32405. 800e102: e008 b.n 800e116 <HAL_UART_IRQHandler+0x76a>
  32406. return;
  32407. 800e104: bf00 nop
  32408. 800e106: e006 b.n 800e116 <HAL_UART_IRQHandler+0x76a>
  32409. return;
  32410. 800e108: bf00 nop
  32411. 800e10a: e004 b.n 800e116 <HAL_UART_IRQHandler+0x76a>
  32412. return;
  32413. 800e10c: bf00 nop
  32414. 800e10e: e002 b.n 800e116 <HAL_UART_IRQHandler+0x76a>
  32415. return;
  32416. 800e110: bf00 nop
  32417. 800e112: e000 b.n 800e116 <HAL_UART_IRQHandler+0x76a>
  32418. return;
  32419. 800e114: bf00 nop
  32420. }
  32421. }
  32422. 800e116: 37e8 adds r7, #232 @ 0xe8
  32423. 800e118: 46bd mov sp, r7
  32424. 800e11a: bd80 pop {r7, pc}
  32425. 800e11c: effffffe .word 0xeffffffe
  32426. 0800e120 <HAL_UART_ErrorCallback>:
  32427. * @brief UART error callback.
  32428. * @param huart UART handle.
  32429. * @retval None
  32430. */
  32431. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  32432. {
  32433. 800e120: b480 push {r7}
  32434. 800e122: b083 sub sp, #12
  32435. 800e124: af00 add r7, sp, #0
  32436. 800e126: 6078 str r0, [r7, #4]
  32437. UNUSED(huart);
  32438. /* NOTE : This function should not be modified, when the callback is needed,
  32439. the HAL_UART_ErrorCallback can be implemented in the user file.
  32440. */
  32441. }
  32442. 800e128: bf00 nop
  32443. 800e12a: 370c adds r7, #12
  32444. 800e12c: 46bd mov sp, r7
  32445. 800e12e: f85d 7b04 ldr.w r7, [sp], #4
  32446. 800e132: 4770 bx lr
  32447. 0800e134 <UART_SetConfig>:
  32448. * @brief Configure the UART peripheral.
  32449. * @param huart UART handle.
  32450. * @retval HAL status
  32451. */
  32452. HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart)
  32453. {
  32454. 800e134: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  32455. 800e138: b092 sub sp, #72 @ 0x48
  32456. 800e13a: af00 add r7, sp, #0
  32457. 800e13c: 6178 str r0, [r7, #20]
  32458. uint32_t tmpreg;
  32459. uint16_t brrtemp;
  32460. UART_ClockSourceTypeDef clocksource;
  32461. uint32_t usartdiv;
  32462. HAL_StatusTypeDef ret = HAL_OK;
  32463. 800e13e: 2300 movs r3, #0
  32464. 800e140: f887 3042 strb.w r3, [r7, #66] @ 0x42
  32465. * the UART Word Length, Parity, Mode and oversampling:
  32466. * set the M bits according to huart->Init.WordLength value
  32467. * set PCE and PS bits according to huart->Init.Parity value
  32468. * set TE and RE bits according to huart->Init.Mode value
  32469. * set OVER8 bit according to huart->Init.OverSampling value */
  32470. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ;
  32471. 800e144: 697b ldr r3, [r7, #20]
  32472. 800e146: 689a ldr r2, [r3, #8]
  32473. 800e148: 697b ldr r3, [r7, #20]
  32474. 800e14a: 691b ldr r3, [r3, #16]
  32475. 800e14c: 431a orrs r2, r3
  32476. 800e14e: 697b ldr r3, [r7, #20]
  32477. 800e150: 695b ldr r3, [r3, #20]
  32478. 800e152: 431a orrs r2, r3
  32479. 800e154: 697b ldr r3, [r7, #20]
  32480. 800e156: 69db ldr r3, [r3, #28]
  32481. 800e158: 4313 orrs r3, r2
  32482. 800e15a: 647b str r3, [r7, #68] @ 0x44
  32483. MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg);
  32484. 800e15c: 697b ldr r3, [r7, #20]
  32485. 800e15e: 681b ldr r3, [r3, #0]
  32486. 800e160: 681a ldr r2, [r3, #0]
  32487. 800e162: 4bbe ldr r3, [pc, #760] @ (800e45c <UART_SetConfig+0x328>)
  32488. 800e164: 4013 ands r3, r2
  32489. 800e166: 697a ldr r2, [r7, #20]
  32490. 800e168: 6812 ldr r2, [r2, #0]
  32491. 800e16a: 6c79 ldr r1, [r7, #68] @ 0x44
  32492. 800e16c: 430b orrs r3, r1
  32493. 800e16e: 6013 str r3, [r2, #0]
  32494. /*-------------------------- USART CR2 Configuration -----------------------*/
  32495. /* Configure the UART Stop Bits: Set STOP[13:12] bits according
  32496. * to huart->Init.StopBits value */
  32497. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  32498. 800e170: 697b ldr r3, [r7, #20]
  32499. 800e172: 681b ldr r3, [r3, #0]
  32500. 800e174: 685b ldr r3, [r3, #4]
  32501. 800e176: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  32502. 800e17a: 697b ldr r3, [r7, #20]
  32503. 800e17c: 68da ldr r2, [r3, #12]
  32504. 800e17e: 697b ldr r3, [r7, #20]
  32505. 800e180: 681b ldr r3, [r3, #0]
  32506. 800e182: 430a orrs r2, r1
  32507. 800e184: 605a str r2, [r3, #4]
  32508. /* Configure
  32509. * - UART HardWare Flow Control: set CTSE and RTSE bits according
  32510. * to huart->Init.HwFlowCtl value
  32511. * - one-bit sampling method versus three samples' majority rule according
  32512. * to huart->Init.OneBitSampling (not applicable to LPUART) */
  32513. tmpreg = (uint32_t)huart->Init.HwFlowCtl;
  32514. 800e186: 697b ldr r3, [r7, #20]
  32515. 800e188: 699b ldr r3, [r3, #24]
  32516. 800e18a: 647b str r3, [r7, #68] @ 0x44
  32517. if (!(UART_INSTANCE_LOWPOWER(huart)))
  32518. 800e18c: 697b ldr r3, [r7, #20]
  32519. 800e18e: 681b ldr r3, [r3, #0]
  32520. 800e190: 4ab3 ldr r2, [pc, #716] @ (800e460 <UART_SetConfig+0x32c>)
  32521. 800e192: 4293 cmp r3, r2
  32522. 800e194: d004 beq.n 800e1a0 <UART_SetConfig+0x6c>
  32523. {
  32524. tmpreg |= huart->Init.OneBitSampling;
  32525. 800e196: 697b ldr r3, [r7, #20]
  32526. 800e198: 6a1b ldr r3, [r3, #32]
  32527. 800e19a: 6c7a ldr r2, [r7, #68] @ 0x44
  32528. 800e19c: 4313 orrs r3, r2
  32529. 800e19e: 647b str r3, [r7, #68] @ 0x44
  32530. }
  32531. MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg);
  32532. 800e1a0: 697b ldr r3, [r7, #20]
  32533. 800e1a2: 681b ldr r3, [r3, #0]
  32534. 800e1a4: 689a ldr r2, [r3, #8]
  32535. 800e1a6: 4baf ldr r3, [pc, #700] @ (800e464 <UART_SetConfig+0x330>)
  32536. 800e1a8: 4013 ands r3, r2
  32537. 800e1aa: 697a ldr r2, [r7, #20]
  32538. 800e1ac: 6812 ldr r2, [r2, #0]
  32539. 800e1ae: 6c79 ldr r1, [r7, #68] @ 0x44
  32540. 800e1b0: 430b orrs r3, r1
  32541. 800e1b2: 6093 str r3, [r2, #8]
  32542. /*-------------------------- USART PRESC Configuration -----------------------*/
  32543. /* Configure
  32544. * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */
  32545. MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler);
  32546. 800e1b4: 697b ldr r3, [r7, #20]
  32547. 800e1b6: 681b ldr r3, [r3, #0]
  32548. 800e1b8: 6adb ldr r3, [r3, #44] @ 0x2c
  32549. 800e1ba: f023 010f bic.w r1, r3, #15
  32550. 800e1be: 697b ldr r3, [r7, #20]
  32551. 800e1c0: 6a5a ldr r2, [r3, #36] @ 0x24
  32552. 800e1c2: 697b ldr r3, [r7, #20]
  32553. 800e1c4: 681b ldr r3, [r3, #0]
  32554. 800e1c6: 430a orrs r2, r1
  32555. 800e1c8: 62da str r2, [r3, #44] @ 0x2c
  32556. /*-------------------------- USART BRR Configuration -----------------------*/
  32557. UART_GETCLOCKSOURCE(huart, clocksource);
  32558. 800e1ca: 697b ldr r3, [r7, #20]
  32559. 800e1cc: 681b ldr r3, [r3, #0]
  32560. 800e1ce: 4aa6 ldr r2, [pc, #664] @ (800e468 <UART_SetConfig+0x334>)
  32561. 800e1d0: 4293 cmp r3, r2
  32562. 800e1d2: d177 bne.n 800e2c4 <UART_SetConfig+0x190>
  32563. 800e1d4: 4ba5 ldr r3, [pc, #660] @ (800e46c <UART_SetConfig+0x338>)
  32564. 800e1d6: 6d5b ldr r3, [r3, #84] @ 0x54
  32565. 800e1d8: f003 0338 and.w r3, r3, #56 @ 0x38
  32566. 800e1dc: 2b28 cmp r3, #40 @ 0x28
  32567. 800e1de: d86d bhi.n 800e2bc <UART_SetConfig+0x188>
  32568. 800e1e0: a201 add r2, pc, #4 @ (adr r2, 800e1e8 <UART_SetConfig+0xb4>)
  32569. 800e1e2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32570. 800e1e6: bf00 nop
  32571. 800e1e8: 0800e28d .word 0x0800e28d
  32572. 800e1ec: 0800e2bd .word 0x0800e2bd
  32573. 800e1f0: 0800e2bd .word 0x0800e2bd
  32574. 800e1f4: 0800e2bd .word 0x0800e2bd
  32575. 800e1f8: 0800e2bd .word 0x0800e2bd
  32576. 800e1fc: 0800e2bd .word 0x0800e2bd
  32577. 800e200: 0800e2bd .word 0x0800e2bd
  32578. 800e204: 0800e2bd .word 0x0800e2bd
  32579. 800e208: 0800e295 .word 0x0800e295
  32580. 800e20c: 0800e2bd .word 0x0800e2bd
  32581. 800e210: 0800e2bd .word 0x0800e2bd
  32582. 800e214: 0800e2bd .word 0x0800e2bd
  32583. 800e218: 0800e2bd .word 0x0800e2bd
  32584. 800e21c: 0800e2bd .word 0x0800e2bd
  32585. 800e220: 0800e2bd .word 0x0800e2bd
  32586. 800e224: 0800e2bd .word 0x0800e2bd
  32587. 800e228: 0800e29d .word 0x0800e29d
  32588. 800e22c: 0800e2bd .word 0x0800e2bd
  32589. 800e230: 0800e2bd .word 0x0800e2bd
  32590. 800e234: 0800e2bd .word 0x0800e2bd
  32591. 800e238: 0800e2bd .word 0x0800e2bd
  32592. 800e23c: 0800e2bd .word 0x0800e2bd
  32593. 800e240: 0800e2bd .word 0x0800e2bd
  32594. 800e244: 0800e2bd .word 0x0800e2bd
  32595. 800e248: 0800e2a5 .word 0x0800e2a5
  32596. 800e24c: 0800e2bd .word 0x0800e2bd
  32597. 800e250: 0800e2bd .word 0x0800e2bd
  32598. 800e254: 0800e2bd .word 0x0800e2bd
  32599. 800e258: 0800e2bd .word 0x0800e2bd
  32600. 800e25c: 0800e2bd .word 0x0800e2bd
  32601. 800e260: 0800e2bd .word 0x0800e2bd
  32602. 800e264: 0800e2bd .word 0x0800e2bd
  32603. 800e268: 0800e2ad .word 0x0800e2ad
  32604. 800e26c: 0800e2bd .word 0x0800e2bd
  32605. 800e270: 0800e2bd .word 0x0800e2bd
  32606. 800e274: 0800e2bd .word 0x0800e2bd
  32607. 800e278: 0800e2bd .word 0x0800e2bd
  32608. 800e27c: 0800e2bd .word 0x0800e2bd
  32609. 800e280: 0800e2bd .word 0x0800e2bd
  32610. 800e284: 0800e2bd .word 0x0800e2bd
  32611. 800e288: 0800e2b5 .word 0x0800e2b5
  32612. 800e28c: 2301 movs r3, #1
  32613. 800e28e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32614. 800e292: e222 b.n 800e6da <UART_SetConfig+0x5a6>
  32615. 800e294: 2304 movs r3, #4
  32616. 800e296: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32617. 800e29a: e21e b.n 800e6da <UART_SetConfig+0x5a6>
  32618. 800e29c: 2308 movs r3, #8
  32619. 800e29e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32620. 800e2a2: e21a b.n 800e6da <UART_SetConfig+0x5a6>
  32621. 800e2a4: 2310 movs r3, #16
  32622. 800e2a6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32623. 800e2aa: e216 b.n 800e6da <UART_SetConfig+0x5a6>
  32624. 800e2ac: 2320 movs r3, #32
  32625. 800e2ae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32626. 800e2b2: e212 b.n 800e6da <UART_SetConfig+0x5a6>
  32627. 800e2b4: 2340 movs r3, #64 @ 0x40
  32628. 800e2b6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32629. 800e2ba: e20e b.n 800e6da <UART_SetConfig+0x5a6>
  32630. 800e2bc: 2380 movs r3, #128 @ 0x80
  32631. 800e2be: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32632. 800e2c2: e20a b.n 800e6da <UART_SetConfig+0x5a6>
  32633. 800e2c4: 697b ldr r3, [r7, #20]
  32634. 800e2c6: 681b ldr r3, [r3, #0]
  32635. 800e2c8: 4a69 ldr r2, [pc, #420] @ (800e470 <UART_SetConfig+0x33c>)
  32636. 800e2ca: 4293 cmp r3, r2
  32637. 800e2cc: d130 bne.n 800e330 <UART_SetConfig+0x1fc>
  32638. 800e2ce: 4b67 ldr r3, [pc, #412] @ (800e46c <UART_SetConfig+0x338>)
  32639. 800e2d0: 6d5b ldr r3, [r3, #84] @ 0x54
  32640. 800e2d2: f003 0307 and.w r3, r3, #7
  32641. 800e2d6: 2b05 cmp r3, #5
  32642. 800e2d8: d826 bhi.n 800e328 <UART_SetConfig+0x1f4>
  32643. 800e2da: a201 add r2, pc, #4 @ (adr r2, 800e2e0 <UART_SetConfig+0x1ac>)
  32644. 800e2dc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32645. 800e2e0: 0800e2f9 .word 0x0800e2f9
  32646. 800e2e4: 0800e301 .word 0x0800e301
  32647. 800e2e8: 0800e309 .word 0x0800e309
  32648. 800e2ec: 0800e311 .word 0x0800e311
  32649. 800e2f0: 0800e319 .word 0x0800e319
  32650. 800e2f4: 0800e321 .word 0x0800e321
  32651. 800e2f8: 2300 movs r3, #0
  32652. 800e2fa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32653. 800e2fe: e1ec b.n 800e6da <UART_SetConfig+0x5a6>
  32654. 800e300: 2304 movs r3, #4
  32655. 800e302: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32656. 800e306: e1e8 b.n 800e6da <UART_SetConfig+0x5a6>
  32657. 800e308: 2308 movs r3, #8
  32658. 800e30a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32659. 800e30e: e1e4 b.n 800e6da <UART_SetConfig+0x5a6>
  32660. 800e310: 2310 movs r3, #16
  32661. 800e312: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32662. 800e316: e1e0 b.n 800e6da <UART_SetConfig+0x5a6>
  32663. 800e318: 2320 movs r3, #32
  32664. 800e31a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32665. 800e31e: e1dc b.n 800e6da <UART_SetConfig+0x5a6>
  32666. 800e320: 2340 movs r3, #64 @ 0x40
  32667. 800e322: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32668. 800e326: e1d8 b.n 800e6da <UART_SetConfig+0x5a6>
  32669. 800e328: 2380 movs r3, #128 @ 0x80
  32670. 800e32a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32671. 800e32e: e1d4 b.n 800e6da <UART_SetConfig+0x5a6>
  32672. 800e330: 697b ldr r3, [r7, #20]
  32673. 800e332: 681b ldr r3, [r3, #0]
  32674. 800e334: 4a4f ldr r2, [pc, #316] @ (800e474 <UART_SetConfig+0x340>)
  32675. 800e336: 4293 cmp r3, r2
  32676. 800e338: d130 bne.n 800e39c <UART_SetConfig+0x268>
  32677. 800e33a: 4b4c ldr r3, [pc, #304] @ (800e46c <UART_SetConfig+0x338>)
  32678. 800e33c: 6d5b ldr r3, [r3, #84] @ 0x54
  32679. 800e33e: f003 0307 and.w r3, r3, #7
  32680. 800e342: 2b05 cmp r3, #5
  32681. 800e344: d826 bhi.n 800e394 <UART_SetConfig+0x260>
  32682. 800e346: a201 add r2, pc, #4 @ (adr r2, 800e34c <UART_SetConfig+0x218>)
  32683. 800e348: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32684. 800e34c: 0800e365 .word 0x0800e365
  32685. 800e350: 0800e36d .word 0x0800e36d
  32686. 800e354: 0800e375 .word 0x0800e375
  32687. 800e358: 0800e37d .word 0x0800e37d
  32688. 800e35c: 0800e385 .word 0x0800e385
  32689. 800e360: 0800e38d .word 0x0800e38d
  32690. 800e364: 2300 movs r3, #0
  32691. 800e366: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32692. 800e36a: e1b6 b.n 800e6da <UART_SetConfig+0x5a6>
  32693. 800e36c: 2304 movs r3, #4
  32694. 800e36e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32695. 800e372: e1b2 b.n 800e6da <UART_SetConfig+0x5a6>
  32696. 800e374: 2308 movs r3, #8
  32697. 800e376: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32698. 800e37a: e1ae b.n 800e6da <UART_SetConfig+0x5a6>
  32699. 800e37c: 2310 movs r3, #16
  32700. 800e37e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32701. 800e382: e1aa b.n 800e6da <UART_SetConfig+0x5a6>
  32702. 800e384: 2320 movs r3, #32
  32703. 800e386: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32704. 800e38a: e1a6 b.n 800e6da <UART_SetConfig+0x5a6>
  32705. 800e38c: 2340 movs r3, #64 @ 0x40
  32706. 800e38e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32707. 800e392: e1a2 b.n 800e6da <UART_SetConfig+0x5a6>
  32708. 800e394: 2380 movs r3, #128 @ 0x80
  32709. 800e396: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32710. 800e39a: e19e b.n 800e6da <UART_SetConfig+0x5a6>
  32711. 800e39c: 697b ldr r3, [r7, #20]
  32712. 800e39e: 681b ldr r3, [r3, #0]
  32713. 800e3a0: 4a35 ldr r2, [pc, #212] @ (800e478 <UART_SetConfig+0x344>)
  32714. 800e3a2: 4293 cmp r3, r2
  32715. 800e3a4: d130 bne.n 800e408 <UART_SetConfig+0x2d4>
  32716. 800e3a6: 4b31 ldr r3, [pc, #196] @ (800e46c <UART_SetConfig+0x338>)
  32717. 800e3a8: 6d5b ldr r3, [r3, #84] @ 0x54
  32718. 800e3aa: f003 0307 and.w r3, r3, #7
  32719. 800e3ae: 2b05 cmp r3, #5
  32720. 800e3b0: d826 bhi.n 800e400 <UART_SetConfig+0x2cc>
  32721. 800e3b2: a201 add r2, pc, #4 @ (adr r2, 800e3b8 <UART_SetConfig+0x284>)
  32722. 800e3b4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32723. 800e3b8: 0800e3d1 .word 0x0800e3d1
  32724. 800e3bc: 0800e3d9 .word 0x0800e3d9
  32725. 800e3c0: 0800e3e1 .word 0x0800e3e1
  32726. 800e3c4: 0800e3e9 .word 0x0800e3e9
  32727. 800e3c8: 0800e3f1 .word 0x0800e3f1
  32728. 800e3cc: 0800e3f9 .word 0x0800e3f9
  32729. 800e3d0: 2300 movs r3, #0
  32730. 800e3d2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32731. 800e3d6: e180 b.n 800e6da <UART_SetConfig+0x5a6>
  32732. 800e3d8: 2304 movs r3, #4
  32733. 800e3da: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32734. 800e3de: e17c b.n 800e6da <UART_SetConfig+0x5a6>
  32735. 800e3e0: 2308 movs r3, #8
  32736. 800e3e2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32737. 800e3e6: e178 b.n 800e6da <UART_SetConfig+0x5a6>
  32738. 800e3e8: 2310 movs r3, #16
  32739. 800e3ea: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32740. 800e3ee: e174 b.n 800e6da <UART_SetConfig+0x5a6>
  32741. 800e3f0: 2320 movs r3, #32
  32742. 800e3f2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32743. 800e3f6: e170 b.n 800e6da <UART_SetConfig+0x5a6>
  32744. 800e3f8: 2340 movs r3, #64 @ 0x40
  32745. 800e3fa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32746. 800e3fe: e16c b.n 800e6da <UART_SetConfig+0x5a6>
  32747. 800e400: 2380 movs r3, #128 @ 0x80
  32748. 800e402: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32749. 800e406: e168 b.n 800e6da <UART_SetConfig+0x5a6>
  32750. 800e408: 697b ldr r3, [r7, #20]
  32751. 800e40a: 681b ldr r3, [r3, #0]
  32752. 800e40c: 4a1b ldr r2, [pc, #108] @ (800e47c <UART_SetConfig+0x348>)
  32753. 800e40e: 4293 cmp r3, r2
  32754. 800e410: d142 bne.n 800e498 <UART_SetConfig+0x364>
  32755. 800e412: 4b16 ldr r3, [pc, #88] @ (800e46c <UART_SetConfig+0x338>)
  32756. 800e414: 6d5b ldr r3, [r3, #84] @ 0x54
  32757. 800e416: f003 0307 and.w r3, r3, #7
  32758. 800e41a: 2b05 cmp r3, #5
  32759. 800e41c: d838 bhi.n 800e490 <UART_SetConfig+0x35c>
  32760. 800e41e: a201 add r2, pc, #4 @ (adr r2, 800e424 <UART_SetConfig+0x2f0>)
  32761. 800e420: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32762. 800e424: 0800e43d .word 0x0800e43d
  32763. 800e428: 0800e445 .word 0x0800e445
  32764. 800e42c: 0800e44d .word 0x0800e44d
  32765. 800e430: 0800e455 .word 0x0800e455
  32766. 800e434: 0800e481 .word 0x0800e481
  32767. 800e438: 0800e489 .word 0x0800e489
  32768. 800e43c: 2300 movs r3, #0
  32769. 800e43e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32770. 800e442: e14a b.n 800e6da <UART_SetConfig+0x5a6>
  32771. 800e444: 2304 movs r3, #4
  32772. 800e446: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32773. 800e44a: e146 b.n 800e6da <UART_SetConfig+0x5a6>
  32774. 800e44c: 2308 movs r3, #8
  32775. 800e44e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32776. 800e452: e142 b.n 800e6da <UART_SetConfig+0x5a6>
  32777. 800e454: 2310 movs r3, #16
  32778. 800e456: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32779. 800e45a: e13e b.n 800e6da <UART_SetConfig+0x5a6>
  32780. 800e45c: cfff69f3 .word 0xcfff69f3
  32781. 800e460: 58000c00 .word 0x58000c00
  32782. 800e464: 11fff4ff .word 0x11fff4ff
  32783. 800e468: 40011000 .word 0x40011000
  32784. 800e46c: 58024400 .word 0x58024400
  32785. 800e470: 40004400 .word 0x40004400
  32786. 800e474: 40004800 .word 0x40004800
  32787. 800e478: 40004c00 .word 0x40004c00
  32788. 800e47c: 40005000 .word 0x40005000
  32789. 800e480: 2320 movs r3, #32
  32790. 800e482: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32791. 800e486: e128 b.n 800e6da <UART_SetConfig+0x5a6>
  32792. 800e488: 2340 movs r3, #64 @ 0x40
  32793. 800e48a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32794. 800e48e: e124 b.n 800e6da <UART_SetConfig+0x5a6>
  32795. 800e490: 2380 movs r3, #128 @ 0x80
  32796. 800e492: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32797. 800e496: e120 b.n 800e6da <UART_SetConfig+0x5a6>
  32798. 800e498: 697b ldr r3, [r7, #20]
  32799. 800e49a: 681b ldr r3, [r3, #0]
  32800. 800e49c: 4acb ldr r2, [pc, #812] @ (800e7cc <UART_SetConfig+0x698>)
  32801. 800e49e: 4293 cmp r3, r2
  32802. 800e4a0: d176 bne.n 800e590 <UART_SetConfig+0x45c>
  32803. 800e4a2: 4bcb ldr r3, [pc, #812] @ (800e7d0 <UART_SetConfig+0x69c>)
  32804. 800e4a4: 6d5b ldr r3, [r3, #84] @ 0x54
  32805. 800e4a6: f003 0338 and.w r3, r3, #56 @ 0x38
  32806. 800e4aa: 2b28 cmp r3, #40 @ 0x28
  32807. 800e4ac: d86c bhi.n 800e588 <UART_SetConfig+0x454>
  32808. 800e4ae: a201 add r2, pc, #4 @ (adr r2, 800e4b4 <UART_SetConfig+0x380>)
  32809. 800e4b0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32810. 800e4b4: 0800e559 .word 0x0800e559
  32811. 800e4b8: 0800e589 .word 0x0800e589
  32812. 800e4bc: 0800e589 .word 0x0800e589
  32813. 800e4c0: 0800e589 .word 0x0800e589
  32814. 800e4c4: 0800e589 .word 0x0800e589
  32815. 800e4c8: 0800e589 .word 0x0800e589
  32816. 800e4cc: 0800e589 .word 0x0800e589
  32817. 800e4d0: 0800e589 .word 0x0800e589
  32818. 800e4d4: 0800e561 .word 0x0800e561
  32819. 800e4d8: 0800e589 .word 0x0800e589
  32820. 800e4dc: 0800e589 .word 0x0800e589
  32821. 800e4e0: 0800e589 .word 0x0800e589
  32822. 800e4e4: 0800e589 .word 0x0800e589
  32823. 800e4e8: 0800e589 .word 0x0800e589
  32824. 800e4ec: 0800e589 .word 0x0800e589
  32825. 800e4f0: 0800e589 .word 0x0800e589
  32826. 800e4f4: 0800e569 .word 0x0800e569
  32827. 800e4f8: 0800e589 .word 0x0800e589
  32828. 800e4fc: 0800e589 .word 0x0800e589
  32829. 800e500: 0800e589 .word 0x0800e589
  32830. 800e504: 0800e589 .word 0x0800e589
  32831. 800e508: 0800e589 .word 0x0800e589
  32832. 800e50c: 0800e589 .word 0x0800e589
  32833. 800e510: 0800e589 .word 0x0800e589
  32834. 800e514: 0800e571 .word 0x0800e571
  32835. 800e518: 0800e589 .word 0x0800e589
  32836. 800e51c: 0800e589 .word 0x0800e589
  32837. 800e520: 0800e589 .word 0x0800e589
  32838. 800e524: 0800e589 .word 0x0800e589
  32839. 800e528: 0800e589 .word 0x0800e589
  32840. 800e52c: 0800e589 .word 0x0800e589
  32841. 800e530: 0800e589 .word 0x0800e589
  32842. 800e534: 0800e579 .word 0x0800e579
  32843. 800e538: 0800e589 .word 0x0800e589
  32844. 800e53c: 0800e589 .word 0x0800e589
  32845. 800e540: 0800e589 .word 0x0800e589
  32846. 800e544: 0800e589 .word 0x0800e589
  32847. 800e548: 0800e589 .word 0x0800e589
  32848. 800e54c: 0800e589 .word 0x0800e589
  32849. 800e550: 0800e589 .word 0x0800e589
  32850. 800e554: 0800e581 .word 0x0800e581
  32851. 800e558: 2301 movs r3, #1
  32852. 800e55a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32853. 800e55e: e0bc b.n 800e6da <UART_SetConfig+0x5a6>
  32854. 800e560: 2304 movs r3, #4
  32855. 800e562: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32856. 800e566: e0b8 b.n 800e6da <UART_SetConfig+0x5a6>
  32857. 800e568: 2308 movs r3, #8
  32858. 800e56a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32859. 800e56e: e0b4 b.n 800e6da <UART_SetConfig+0x5a6>
  32860. 800e570: 2310 movs r3, #16
  32861. 800e572: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32862. 800e576: e0b0 b.n 800e6da <UART_SetConfig+0x5a6>
  32863. 800e578: 2320 movs r3, #32
  32864. 800e57a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32865. 800e57e: e0ac b.n 800e6da <UART_SetConfig+0x5a6>
  32866. 800e580: 2340 movs r3, #64 @ 0x40
  32867. 800e582: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32868. 800e586: e0a8 b.n 800e6da <UART_SetConfig+0x5a6>
  32869. 800e588: 2380 movs r3, #128 @ 0x80
  32870. 800e58a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32871. 800e58e: e0a4 b.n 800e6da <UART_SetConfig+0x5a6>
  32872. 800e590: 697b ldr r3, [r7, #20]
  32873. 800e592: 681b ldr r3, [r3, #0]
  32874. 800e594: 4a8f ldr r2, [pc, #572] @ (800e7d4 <UART_SetConfig+0x6a0>)
  32875. 800e596: 4293 cmp r3, r2
  32876. 800e598: d130 bne.n 800e5fc <UART_SetConfig+0x4c8>
  32877. 800e59a: 4b8d ldr r3, [pc, #564] @ (800e7d0 <UART_SetConfig+0x69c>)
  32878. 800e59c: 6d5b ldr r3, [r3, #84] @ 0x54
  32879. 800e59e: f003 0307 and.w r3, r3, #7
  32880. 800e5a2: 2b05 cmp r3, #5
  32881. 800e5a4: d826 bhi.n 800e5f4 <UART_SetConfig+0x4c0>
  32882. 800e5a6: a201 add r2, pc, #4 @ (adr r2, 800e5ac <UART_SetConfig+0x478>)
  32883. 800e5a8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32884. 800e5ac: 0800e5c5 .word 0x0800e5c5
  32885. 800e5b0: 0800e5cd .word 0x0800e5cd
  32886. 800e5b4: 0800e5d5 .word 0x0800e5d5
  32887. 800e5b8: 0800e5dd .word 0x0800e5dd
  32888. 800e5bc: 0800e5e5 .word 0x0800e5e5
  32889. 800e5c0: 0800e5ed .word 0x0800e5ed
  32890. 800e5c4: 2300 movs r3, #0
  32891. 800e5c6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32892. 800e5ca: e086 b.n 800e6da <UART_SetConfig+0x5a6>
  32893. 800e5cc: 2304 movs r3, #4
  32894. 800e5ce: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32895. 800e5d2: e082 b.n 800e6da <UART_SetConfig+0x5a6>
  32896. 800e5d4: 2308 movs r3, #8
  32897. 800e5d6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32898. 800e5da: e07e b.n 800e6da <UART_SetConfig+0x5a6>
  32899. 800e5dc: 2310 movs r3, #16
  32900. 800e5de: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32901. 800e5e2: e07a b.n 800e6da <UART_SetConfig+0x5a6>
  32902. 800e5e4: 2320 movs r3, #32
  32903. 800e5e6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32904. 800e5ea: e076 b.n 800e6da <UART_SetConfig+0x5a6>
  32905. 800e5ec: 2340 movs r3, #64 @ 0x40
  32906. 800e5ee: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32907. 800e5f2: e072 b.n 800e6da <UART_SetConfig+0x5a6>
  32908. 800e5f4: 2380 movs r3, #128 @ 0x80
  32909. 800e5f6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32910. 800e5fa: e06e b.n 800e6da <UART_SetConfig+0x5a6>
  32911. 800e5fc: 697b ldr r3, [r7, #20]
  32912. 800e5fe: 681b ldr r3, [r3, #0]
  32913. 800e600: 4a75 ldr r2, [pc, #468] @ (800e7d8 <UART_SetConfig+0x6a4>)
  32914. 800e602: 4293 cmp r3, r2
  32915. 800e604: d130 bne.n 800e668 <UART_SetConfig+0x534>
  32916. 800e606: 4b72 ldr r3, [pc, #456] @ (800e7d0 <UART_SetConfig+0x69c>)
  32917. 800e608: 6d5b ldr r3, [r3, #84] @ 0x54
  32918. 800e60a: f003 0307 and.w r3, r3, #7
  32919. 800e60e: 2b05 cmp r3, #5
  32920. 800e610: d826 bhi.n 800e660 <UART_SetConfig+0x52c>
  32921. 800e612: a201 add r2, pc, #4 @ (adr r2, 800e618 <UART_SetConfig+0x4e4>)
  32922. 800e614: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32923. 800e618: 0800e631 .word 0x0800e631
  32924. 800e61c: 0800e639 .word 0x0800e639
  32925. 800e620: 0800e641 .word 0x0800e641
  32926. 800e624: 0800e649 .word 0x0800e649
  32927. 800e628: 0800e651 .word 0x0800e651
  32928. 800e62c: 0800e659 .word 0x0800e659
  32929. 800e630: 2300 movs r3, #0
  32930. 800e632: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32931. 800e636: e050 b.n 800e6da <UART_SetConfig+0x5a6>
  32932. 800e638: 2304 movs r3, #4
  32933. 800e63a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32934. 800e63e: e04c b.n 800e6da <UART_SetConfig+0x5a6>
  32935. 800e640: 2308 movs r3, #8
  32936. 800e642: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32937. 800e646: e048 b.n 800e6da <UART_SetConfig+0x5a6>
  32938. 800e648: 2310 movs r3, #16
  32939. 800e64a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32940. 800e64e: e044 b.n 800e6da <UART_SetConfig+0x5a6>
  32941. 800e650: 2320 movs r3, #32
  32942. 800e652: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32943. 800e656: e040 b.n 800e6da <UART_SetConfig+0x5a6>
  32944. 800e658: 2340 movs r3, #64 @ 0x40
  32945. 800e65a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32946. 800e65e: e03c b.n 800e6da <UART_SetConfig+0x5a6>
  32947. 800e660: 2380 movs r3, #128 @ 0x80
  32948. 800e662: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32949. 800e666: e038 b.n 800e6da <UART_SetConfig+0x5a6>
  32950. 800e668: 697b ldr r3, [r7, #20]
  32951. 800e66a: 681b ldr r3, [r3, #0]
  32952. 800e66c: 4a5b ldr r2, [pc, #364] @ (800e7dc <UART_SetConfig+0x6a8>)
  32953. 800e66e: 4293 cmp r3, r2
  32954. 800e670: d130 bne.n 800e6d4 <UART_SetConfig+0x5a0>
  32955. 800e672: 4b57 ldr r3, [pc, #348] @ (800e7d0 <UART_SetConfig+0x69c>)
  32956. 800e674: 6d9b ldr r3, [r3, #88] @ 0x58
  32957. 800e676: f003 0307 and.w r3, r3, #7
  32958. 800e67a: 2b05 cmp r3, #5
  32959. 800e67c: d826 bhi.n 800e6cc <UART_SetConfig+0x598>
  32960. 800e67e: a201 add r2, pc, #4 @ (adr r2, 800e684 <UART_SetConfig+0x550>)
  32961. 800e680: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32962. 800e684: 0800e69d .word 0x0800e69d
  32963. 800e688: 0800e6a5 .word 0x0800e6a5
  32964. 800e68c: 0800e6ad .word 0x0800e6ad
  32965. 800e690: 0800e6b5 .word 0x0800e6b5
  32966. 800e694: 0800e6bd .word 0x0800e6bd
  32967. 800e698: 0800e6c5 .word 0x0800e6c5
  32968. 800e69c: 2302 movs r3, #2
  32969. 800e69e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32970. 800e6a2: e01a b.n 800e6da <UART_SetConfig+0x5a6>
  32971. 800e6a4: 2304 movs r3, #4
  32972. 800e6a6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32973. 800e6aa: e016 b.n 800e6da <UART_SetConfig+0x5a6>
  32974. 800e6ac: 2308 movs r3, #8
  32975. 800e6ae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32976. 800e6b2: e012 b.n 800e6da <UART_SetConfig+0x5a6>
  32977. 800e6b4: 2310 movs r3, #16
  32978. 800e6b6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32979. 800e6ba: e00e b.n 800e6da <UART_SetConfig+0x5a6>
  32980. 800e6bc: 2320 movs r3, #32
  32981. 800e6be: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32982. 800e6c2: e00a b.n 800e6da <UART_SetConfig+0x5a6>
  32983. 800e6c4: 2340 movs r3, #64 @ 0x40
  32984. 800e6c6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32985. 800e6ca: e006 b.n 800e6da <UART_SetConfig+0x5a6>
  32986. 800e6cc: 2380 movs r3, #128 @ 0x80
  32987. 800e6ce: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32988. 800e6d2: e002 b.n 800e6da <UART_SetConfig+0x5a6>
  32989. 800e6d4: 2380 movs r3, #128 @ 0x80
  32990. 800e6d6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32991. /* Check LPUART instance */
  32992. if (UART_INSTANCE_LOWPOWER(huart))
  32993. 800e6da: 697b ldr r3, [r7, #20]
  32994. 800e6dc: 681b ldr r3, [r3, #0]
  32995. 800e6de: 4a3f ldr r2, [pc, #252] @ (800e7dc <UART_SetConfig+0x6a8>)
  32996. 800e6e0: 4293 cmp r3, r2
  32997. 800e6e2: f040 80f8 bne.w 800e8d6 <UART_SetConfig+0x7a2>
  32998. {
  32999. /* Retrieve frequency clock */
  33000. switch (clocksource)
  33001. 800e6e6: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  33002. 800e6ea: 2b20 cmp r3, #32
  33003. 800e6ec: dc46 bgt.n 800e77c <UART_SetConfig+0x648>
  33004. 800e6ee: 2b02 cmp r3, #2
  33005. 800e6f0: f2c0 8082 blt.w 800e7f8 <UART_SetConfig+0x6c4>
  33006. 800e6f4: 3b02 subs r3, #2
  33007. 800e6f6: 2b1e cmp r3, #30
  33008. 800e6f8: d87e bhi.n 800e7f8 <UART_SetConfig+0x6c4>
  33009. 800e6fa: a201 add r2, pc, #4 @ (adr r2, 800e700 <UART_SetConfig+0x5cc>)
  33010. 800e6fc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  33011. 800e700: 0800e783 .word 0x0800e783
  33012. 800e704: 0800e7f9 .word 0x0800e7f9
  33013. 800e708: 0800e78b .word 0x0800e78b
  33014. 800e70c: 0800e7f9 .word 0x0800e7f9
  33015. 800e710: 0800e7f9 .word 0x0800e7f9
  33016. 800e714: 0800e7f9 .word 0x0800e7f9
  33017. 800e718: 0800e79b .word 0x0800e79b
  33018. 800e71c: 0800e7f9 .word 0x0800e7f9
  33019. 800e720: 0800e7f9 .word 0x0800e7f9
  33020. 800e724: 0800e7f9 .word 0x0800e7f9
  33021. 800e728: 0800e7f9 .word 0x0800e7f9
  33022. 800e72c: 0800e7f9 .word 0x0800e7f9
  33023. 800e730: 0800e7f9 .word 0x0800e7f9
  33024. 800e734: 0800e7f9 .word 0x0800e7f9
  33025. 800e738: 0800e7ab .word 0x0800e7ab
  33026. 800e73c: 0800e7f9 .word 0x0800e7f9
  33027. 800e740: 0800e7f9 .word 0x0800e7f9
  33028. 800e744: 0800e7f9 .word 0x0800e7f9
  33029. 800e748: 0800e7f9 .word 0x0800e7f9
  33030. 800e74c: 0800e7f9 .word 0x0800e7f9
  33031. 800e750: 0800e7f9 .word 0x0800e7f9
  33032. 800e754: 0800e7f9 .word 0x0800e7f9
  33033. 800e758: 0800e7f9 .word 0x0800e7f9
  33034. 800e75c: 0800e7f9 .word 0x0800e7f9
  33035. 800e760: 0800e7f9 .word 0x0800e7f9
  33036. 800e764: 0800e7f9 .word 0x0800e7f9
  33037. 800e768: 0800e7f9 .word 0x0800e7f9
  33038. 800e76c: 0800e7f9 .word 0x0800e7f9
  33039. 800e770: 0800e7f9 .word 0x0800e7f9
  33040. 800e774: 0800e7f9 .word 0x0800e7f9
  33041. 800e778: 0800e7eb .word 0x0800e7eb
  33042. 800e77c: 2b40 cmp r3, #64 @ 0x40
  33043. 800e77e: d037 beq.n 800e7f0 <UART_SetConfig+0x6bc>
  33044. 800e780: e03a b.n 800e7f8 <UART_SetConfig+0x6c4>
  33045. {
  33046. case UART_CLOCKSOURCE_D3PCLK1:
  33047. pclk = HAL_RCCEx_GetD3PCLK1Freq();
  33048. 800e782: f7fd fff9 bl 800c778 <HAL_RCCEx_GetD3PCLK1Freq>
  33049. 800e786: 63f8 str r0, [r7, #60] @ 0x3c
  33050. break;
  33051. 800e788: e03c b.n 800e804 <UART_SetConfig+0x6d0>
  33052. case UART_CLOCKSOURCE_PLL2:
  33053. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33054. 800e78a: f107 0324 add.w r3, r7, #36 @ 0x24
  33055. 800e78e: 4618 mov r0, r3
  33056. 800e790: f7fe f808 bl 800c7a4 <HAL_RCCEx_GetPLL2ClockFreq>
  33057. pclk = pll2_clocks.PLL2_Q_Frequency;
  33058. 800e794: 6abb ldr r3, [r7, #40] @ 0x28
  33059. 800e796: 63fb str r3, [r7, #60] @ 0x3c
  33060. break;
  33061. 800e798: e034 b.n 800e804 <UART_SetConfig+0x6d0>
  33062. case UART_CLOCKSOURCE_PLL3:
  33063. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33064. 800e79a: f107 0318 add.w r3, r7, #24
  33065. 800e79e: 4618 mov r0, r3
  33066. 800e7a0: f7fe f954 bl 800ca4c <HAL_RCCEx_GetPLL3ClockFreq>
  33067. pclk = pll3_clocks.PLL3_Q_Frequency;
  33068. 800e7a4: 69fb ldr r3, [r7, #28]
  33069. 800e7a6: 63fb str r3, [r7, #60] @ 0x3c
  33070. break;
  33071. 800e7a8: e02c b.n 800e804 <UART_SetConfig+0x6d0>
  33072. case UART_CLOCKSOURCE_HSI:
  33073. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  33074. 800e7aa: 4b09 ldr r3, [pc, #36] @ (800e7d0 <UART_SetConfig+0x69c>)
  33075. 800e7ac: 681b ldr r3, [r3, #0]
  33076. 800e7ae: f003 0320 and.w r3, r3, #32
  33077. 800e7b2: 2b00 cmp r3, #0
  33078. 800e7b4: d016 beq.n 800e7e4 <UART_SetConfig+0x6b0>
  33079. {
  33080. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  33081. 800e7b6: 4b06 ldr r3, [pc, #24] @ (800e7d0 <UART_SetConfig+0x69c>)
  33082. 800e7b8: 681b ldr r3, [r3, #0]
  33083. 800e7ba: 08db lsrs r3, r3, #3
  33084. 800e7bc: f003 0303 and.w r3, r3, #3
  33085. 800e7c0: 4a07 ldr r2, [pc, #28] @ (800e7e0 <UART_SetConfig+0x6ac>)
  33086. 800e7c2: fa22 f303 lsr.w r3, r2, r3
  33087. 800e7c6: 63fb str r3, [r7, #60] @ 0x3c
  33088. }
  33089. else
  33090. {
  33091. pclk = (uint32_t) HSI_VALUE;
  33092. }
  33093. break;
  33094. 800e7c8: e01c b.n 800e804 <UART_SetConfig+0x6d0>
  33095. 800e7ca: bf00 nop
  33096. 800e7cc: 40011400 .word 0x40011400
  33097. 800e7d0: 58024400 .word 0x58024400
  33098. 800e7d4: 40007800 .word 0x40007800
  33099. 800e7d8: 40007c00 .word 0x40007c00
  33100. 800e7dc: 58000c00 .word 0x58000c00
  33101. 800e7e0: 03d09000 .word 0x03d09000
  33102. pclk = (uint32_t) HSI_VALUE;
  33103. 800e7e4: 4b9d ldr r3, [pc, #628] @ (800ea5c <UART_SetConfig+0x928>)
  33104. 800e7e6: 63fb str r3, [r7, #60] @ 0x3c
  33105. break;
  33106. 800e7e8: e00c b.n 800e804 <UART_SetConfig+0x6d0>
  33107. case UART_CLOCKSOURCE_CSI:
  33108. pclk = (uint32_t) CSI_VALUE;
  33109. 800e7ea: 4b9d ldr r3, [pc, #628] @ (800ea60 <UART_SetConfig+0x92c>)
  33110. 800e7ec: 63fb str r3, [r7, #60] @ 0x3c
  33111. break;
  33112. 800e7ee: e009 b.n 800e804 <UART_SetConfig+0x6d0>
  33113. case UART_CLOCKSOURCE_LSE:
  33114. pclk = (uint32_t) LSE_VALUE;
  33115. 800e7f0: f44f 4300 mov.w r3, #32768 @ 0x8000
  33116. 800e7f4: 63fb str r3, [r7, #60] @ 0x3c
  33117. break;
  33118. 800e7f6: e005 b.n 800e804 <UART_SetConfig+0x6d0>
  33119. default:
  33120. pclk = 0U;
  33121. 800e7f8: 2300 movs r3, #0
  33122. 800e7fa: 63fb str r3, [r7, #60] @ 0x3c
  33123. ret = HAL_ERROR;
  33124. 800e7fc: 2301 movs r3, #1
  33125. 800e7fe: f887 3042 strb.w r3, [r7, #66] @ 0x42
  33126. break;
  33127. 800e802: bf00 nop
  33128. }
  33129. /* If proper clock source reported */
  33130. if (pclk != 0U)
  33131. 800e804: 6bfb ldr r3, [r7, #60] @ 0x3c
  33132. 800e806: 2b00 cmp r3, #0
  33133. 800e808: f000 81de beq.w 800ebc8 <UART_SetConfig+0xa94>
  33134. {
  33135. /* Compute clock after Prescaler */
  33136. lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]);
  33137. 800e80c: 697b ldr r3, [r7, #20]
  33138. 800e80e: 6a5b ldr r3, [r3, #36] @ 0x24
  33139. 800e810: 4a94 ldr r2, [pc, #592] @ (800ea64 <UART_SetConfig+0x930>)
  33140. 800e812: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  33141. 800e816: 461a mov r2, r3
  33142. 800e818: 6bfb ldr r3, [r7, #60] @ 0x3c
  33143. 800e81a: fbb3 f3f2 udiv r3, r3, r2
  33144. 800e81e: 633b str r3, [r7, #48] @ 0x30
  33145. /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */
  33146. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  33147. 800e820: 697b ldr r3, [r7, #20]
  33148. 800e822: 685a ldr r2, [r3, #4]
  33149. 800e824: 4613 mov r3, r2
  33150. 800e826: 005b lsls r3, r3, #1
  33151. 800e828: 4413 add r3, r2
  33152. 800e82a: 6b3a ldr r2, [r7, #48] @ 0x30
  33153. 800e82c: 429a cmp r2, r3
  33154. 800e82e: d305 bcc.n 800e83c <UART_SetConfig+0x708>
  33155. (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate)))
  33156. 800e830: 697b ldr r3, [r7, #20]
  33157. 800e832: 685b ldr r3, [r3, #4]
  33158. 800e834: 031b lsls r3, r3, #12
  33159. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  33160. 800e836: 6b3a ldr r2, [r7, #48] @ 0x30
  33161. 800e838: 429a cmp r2, r3
  33162. 800e83a: d903 bls.n 800e844 <UART_SetConfig+0x710>
  33163. {
  33164. ret = HAL_ERROR;
  33165. 800e83c: 2301 movs r3, #1
  33166. 800e83e: f887 3042 strb.w r3, [r7, #66] @ 0x42
  33167. 800e842: e1c1 b.n 800ebc8 <UART_SetConfig+0xa94>
  33168. }
  33169. else
  33170. {
  33171. /* Check computed UsartDiv value is in allocated range
  33172. (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */
  33173. usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  33174. 800e844: 6bfb ldr r3, [r7, #60] @ 0x3c
  33175. 800e846: 2200 movs r2, #0
  33176. 800e848: 60bb str r3, [r7, #8]
  33177. 800e84a: 60fa str r2, [r7, #12]
  33178. 800e84c: 697b ldr r3, [r7, #20]
  33179. 800e84e: 6a5b ldr r3, [r3, #36] @ 0x24
  33180. 800e850: 4a84 ldr r2, [pc, #528] @ (800ea64 <UART_SetConfig+0x930>)
  33181. 800e852: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  33182. 800e856: b29b uxth r3, r3
  33183. 800e858: 2200 movs r2, #0
  33184. 800e85a: 603b str r3, [r7, #0]
  33185. 800e85c: 607a str r2, [r7, #4]
  33186. 800e85e: e9d7 2300 ldrd r2, r3, [r7]
  33187. 800e862: e9d7 0102 ldrd r0, r1, [r7, #8]
  33188. 800e866: f7f1 ff5f bl 8000728 <__aeabi_uldivmod>
  33189. 800e86a: 4602 mov r2, r0
  33190. 800e86c: 460b mov r3, r1
  33191. 800e86e: 4610 mov r0, r2
  33192. 800e870: 4619 mov r1, r3
  33193. 800e872: f04f 0200 mov.w r2, #0
  33194. 800e876: f04f 0300 mov.w r3, #0
  33195. 800e87a: 020b lsls r3, r1, #8
  33196. 800e87c: ea43 6310 orr.w r3, r3, r0, lsr #24
  33197. 800e880: 0202 lsls r2, r0, #8
  33198. 800e882: 6979 ldr r1, [r7, #20]
  33199. 800e884: 6849 ldr r1, [r1, #4]
  33200. 800e886: 0849 lsrs r1, r1, #1
  33201. 800e888: 2000 movs r0, #0
  33202. 800e88a: 460c mov r4, r1
  33203. 800e88c: 4605 mov r5, r0
  33204. 800e88e: eb12 0804 adds.w r8, r2, r4
  33205. 800e892: eb43 0905 adc.w r9, r3, r5
  33206. 800e896: 697b ldr r3, [r7, #20]
  33207. 800e898: 685b ldr r3, [r3, #4]
  33208. 800e89a: 2200 movs r2, #0
  33209. 800e89c: 469a mov sl, r3
  33210. 800e89e: 4693 mov fp, r2
  33211. 800e8a0: 4652 mov r2, sl
  33212. 800e8a2: 465b mov r3, fp
  33213. 800e8a4: 4640 mov r0, r8
  33214. 800e8a6: 4649 mov r1, r9
  33215. 800e8a8: f7f1 ff3e bl 8000728 <__aeabi_uldivmod>
  33216. 800e8ac: 4602 mov r2, r0
  33217. 800e8ae: 460b mov r3, r1
  33218. 800e8b0: 4613 mov r3, r2
  33219. 800e8b2: 63bb str r3, [r7, #56] @ 0x38
  33220. if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX))
  33221. 800e8b4: 6bbb ldr r3, [r7, #56] @ 0x38
  33222. 800e8b6: f5b3 7f40 cmp.w r3, #768 @ 0x300
  33223. 800e8ba: d308 bcc.n 800e8ce <UART_SetConfig+0x79a>
  33224. 800e8bc: 6bbb ldr r3, [r7, #56] @ 0x38
  33225. 800e8be: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  33226. 800e8c2: d204 bcs.n 800e8ce <UART_SetConfig+0x79a>
  33227. {
  33228. huart->Instance->BRR = usartdiv;
  33229. 800e8c4: 697b ldr r3, [r7, #20]
  33230. 800e8c6: 681b ldr r3, [r3, #0]
  33231. 800e8c8: 6bba ldr r2, [r7, #56] @ 0x38
  33232. 800e8ca: 60da str r2, [r3, #12]
  33233. 800e8cc: e17c b.n 800ebc8 <UART_SetConfig+0xa94>
  33234. }
  33235. else
  33236. {
  33237. ret = HAL_ERROR;
  33238. 800e8ce: 2301 movs r3, #1
  33239. 800e8d0: f887 3042 strb.w r3, [r7, #66] @ 0x42
  33240. 800e8d4: e178 b.n 800ebc8 <UART_SetConfig+0xa94>
  33241. } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) ||
  33242. (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */
  33243. } /* if (pclk != 0) */
  33244. }
  33245. /* Check UART Over Sampling to set Baud Rate Register */
  33246. else if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
  33247. 800e8d6: 697b ldr r3, [r7, #20]
  33248. 800e8d8: 69db ldr r3, [r3, #28]
  33249. 800e8da: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  33250. 800e8de: f040 80c5 bne.w 800ea6c <UART_SetConfig+0x938>
  33251. {
  33252. switch (clocksource)
  33253. 800e8e2: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  33254. 800e8e6: 2b20 cmp r3, #32
  33255. 800e8e8: dc48 bgt.n 800e97c <UART_SetConfig+0x848>
  33256. 800e8ea: 2b00 cmp r3, #0
  33257. 800e8ec: db7b blt.n 800e9e6 <UART_SetConfig+0x8b2>
  33258. 800e8ee: 2b20 cmp r3, #32
  33259. 800e8f0: d879 bhi.n 800e9e6 <UART_SetConfig+0x8b2>
  33260. 800e8f2: a201 add r2, pc, #4 @ (adr r2, 800e8f8 <UART_SetConfig+0x7c4>)
  33261. 800e8f4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  33262. 800e8f8: 0800e983 .word 0x0800e983
  33263. 800e8fc: 0800e98b .word 0x0800e98b
  33264. 800e900: 0800e9e7 .word 0x0800e9e7
  33265. 800e904: 0800e9e7 .word 0x0800e9e7
  33266. 800e908: 0800e993 .word 0x0800e993
  33267. 800e90c: 0800e9e7 .word 0x0800e9e7
  33268. 800e910: 0800e9e7 .word 0x0800e9e7
  33269. 800e914: 0800e9e7 .word 0x0800e9e7
  33270. 800e918: 0800e9a3 .word 0x0800e9a3
  33271. 800e91c: 0800e9e7 .word 0x0800e9e7
  33272. 800e920: 0800e9e7 .word 0x0800e9e7
  33273. 800e924: 0800e9e7 .word 0x0800e9e7
  33274. 800e928: 0800e9e7 .word 0x0800e9e7
  33275. 800e92c: 0800e9e7 .word 0x0800e9e7
  33276. 800e930: 0800e9e7 .word 0x0800e9e7
  33277. 800e934: 0800e9e7 .word 0x0800e9e7
  33278. 800e938: 0800e9b3 .word 0x0800e9b3
  33279. 800e93c: 0800e9e7 .word 0x0800e9e7
  33280. 800e940: 0800e9e7 .word 0x0800e9e7
  33281. 800e944: 0800e9e7 .word 0x0800e9e7
  33282. 800e948: 0800e9e7 .word 0x0800e9e7
  33283. 800e94c: 0800e9e7 .word 0x0800e9e7
  33284. 800e950: 0800e9e7 .word 0x0800e9e7
  33285. 800e954: 0800e9e7 .word 0x0800e9e7
  33286. 800e958: 0800e9e7 .word 0x0800e9e7
  33287. 800e95c: 0800e9e7 .word 0x0800e9e7
  33288. 800e960: 0800e9e7 .word 0x0800e9e7
  33289. 800e964: 0800e9e7 .word 0x0800e9e7
  33290. 800e968: 0800e9e7 .word 0x0800e9e7
  33291. 800e96c: 0800e9e7 .word 0x0800e9e7
  33292. 800e970: 0800e9e7 .word 0x0800e9e7
  33293. 800e974: 0800e9e7 .word 0x0800e9e7
  33294. 800e978: 0800e9d9 .word 0x0800e9d9
  33295. 800e97c: 2b40 cmp r3, #64 @ 0x40
  33296. 800e97e: d02e beq.n 800e9de <UART_SetConfig+0x8aa>
  33297. 800e980: e031 b.n 800e9e6 <UART_SetConfig+0x8b2>
  33298. {
  33299. case UART_CLOCKSOURCE_D2PCLK1:
  33300. pclk = HAL_RCC_GetPCLK1Freq();
  33301. 800e982: f7fc fc9d bl 800b2c0 <HAL_RCC_GetPCLK1Freq>
  33302. 800e986: 63f8 str r0, [r7, #60] @ 0x3c
  33303. break;
  33304. 800e988: e033 b.n 800e9f2 <UART_SetConfig+0x8be>
  33305. case UART_CLOCKSOURCE_D2PCLK2:
  33306. pclk = HAL_RCC_GetPCLK2Freq();
  33307. 800e98a: f7fc fcaf bl 800b2ec <HAL_RCC_GetPCLK2Freq>
  33308. 800e98e: 63f8 str r0, [r7, #60] @ 0x3c
  33309. break;
  33310. 800e990: e02f b.n 800e9f2 <UART_SetConfig+0x8be>
  33311. case UART_CLOCKSOURCE_PLL2:
  33312. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33313. 800e992: f107 0324 add.w r3, r7, #36 @ 0x24
  33314. 800e996: 4618 mov r0, r3
  33315. 800e998: f7fd ff04 bl 800c7a4 <HAL_RCCEx_GetPLL2ClockFreq>
  33316. pclk = pll2_clocks.PLL2_Q_Frequency;
  33317. 800e99c: 6abb ldr r3, [r7, #40] @ 0x28
  33318. 800e99e: 63fb str r3, [r7, #60] @ 0x3c
  33319. break;
  33320. 800e9a0: e027 b.n 800e9f2 <UART_SetConfig+0x8be>
  33321. case UART_CLOCKSOURCE_PLL3:
  33322. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33323. 800e9a2: f107 0318 add.w r3, r7, #24
  33324. 800e9a6: 4618 mov r0, r3
  33325. 800e9a8: f7fe f850 bl 800ca4c <HAL_RCCEx_GetPLL3ClockFreq>
  33326. pclk = pll3_clocks.PLL3_Q_Frequency;
  33327. 800e9ac: 69fb ldr r3, [r7, #28]
  33328. 800e9ae: 63fb str r3, [r7, #60] @ 0x3c
  33329. break;
  33330. 800e9b0: e01f b.n 800e9f2 <UART_SetConfig+0x8be>
  33331. case UART_CLOCKSOURCE_HSI:
  33332. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  33333. 800e9b2: 4b2d ldr r3, [pc, #180] @ (800ea68 <UART_SetConfig+0x934>)
  33334. 800e9b4: 681b ldr r3, [r3, #0]
  33335. 800e9b6: f003 0320 and.w r3, r3, #32
  33336. 800e9ba: 2b00 cmp r3, #0
  33337. 800e9bc: d009 beq.n 800e9d2 <UART_SetConfig+0x89e>
  33338. {
  33339. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  33340. 800e9be: 4b2a ldr r3, [pc, #168] @ (800ea68 <UART_SetConfig+0x934>)
  33341. 800e9c0: 681b ldr r3, [r3, #0]
  33342. 800e9c2: 08db lsrs r3, r3, #3
  33343. 800e9c4: f003 0303 and.w r3, r3, #3
  33344. 800e9c8: 4a24 ldr r2, [pc, #144] @ (800ea5c <UART_SetConfig+0x928>)
  33345. 800e9ca: fa22 f303 lsr.w r3, r2, r3
  33346. 800e9ce: 63fb str r3, [r7, #60] @ 0x3c
  33347. }
  33348. else
  33349. {
  33350. pclk = (uint32_t) HSI_VALUE;
  33351. }
  33352. break;
  33353. 800e9d0: e00f b.n 800e9f2 <UART_SetConfig+0x8be>
  33354. pclk = (uint32_t) HSI_VALUE;
  33355. 800e9d2: 4b22 ldr r3, [pc, #136] @ (800ea5c <UART_SetConfig+0x928>)
  33356. 800e9d4: 63fb str r3, [r7, #60] @ 0x3c
  33357. break;
  33358. 800e9d6: e00c b.n 800e9f2 <UART_SetConfig+0x8be>
  33359. case UART_CLOCKSOURCE_CSI:
  33360. pclk = (uint32_t) CSI_VALUE;
  33361. 800e9d8: 4b21 ldr r3, [pc, #132] @ (800ea60 <UART_SetConfig+0x92c>)
  33362. 800e9da: 63fb str r3, [r7, #60] @ 0x3c
  33363. break;
  33364. 800e9dc: e009 b.n 800e9f2 <UART_SetConfig+0x8be>
  33365. case UART_CLOCKSOURCE_LSE:
  33366. pclk = (uint32_t) LSE_VALUE;
  33367. 800e9de: f44f 4300 mov.w r3, #32768 @ 0x8000
  33368. 800e9e2: 63fb str r3, [r7, #60] @ 0x3c
  33369. break;
  33370. 800e9e4: e005 b.n 800e9f2 <UART_SetConfig+0x8be>
  33371. default:
  33372. pclk = 0U;
  33373. 800e9e6: 2300 movs r3, #0
  33374. 800e9e8: 63fb str r3, [r7, #60] @ 0x3c
  33375. ret = HAL_ERROR;
  33376. 800e9ea: 2301 movs r3, #1
  33377. 800e9ec: f887 3042 strb.w r3, [r7, #66] @ 0x42
  33378. break;
  33379. 800e9f0: bf00 nop
  33380. }
  33381. /* USARTDIV must be greater than or equal to 0d16 */
  33382. if (pclk != 0U)
  33383. 800e9f2: 6bfb ldr r3, [r7, #60] @ 0x3c
  33384. 800e9f4: 2b00 cmp r3, #0
  33385. 800e9f6: f000 80e7 beq.w 800ebc8 <UART_SetConfig+0xa94>
  33386. {
  33387. usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  33388. 800e9fa: 697b ldr r3, [r7, #20]
  33389. 800e9fc: 6a5b ldr r3, [r3, #36] @ 0x24
  33390. 800e9fe: 4a19 ldr r2, [pc, #100] @ (800ea64 <UART_SetConfig+0x930>)
  33391. 800ea00: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  33392. 800ea04: 461a mov r2, r3
  33393. 800ea06: 6bfb ldr r3, [r7, #60] @ 0x3c
  33394. 800ea08: fbb3 f3f2 udiv r3, r3, r2
  33395. 800ea0c: 005a lsls r2, r3, #1
  33396. 800ea0e: 697b ldr r3, [r7, #20]
  33397. 800ea10: 685b ldr r3, [r3, #4]
  33398. 800ea12: 085b lsrs r3, r3, #1
  33399. 800ea14: 441a add r2, r3
  33400. 800ea16: 697b ldr r3, [r7, #20]
  33401. 800ea18: 685b ldr r3, [r3, #4]
  33402. 800ea1a: fbb2 f3f3 udiv r3, r2, r3
  33403. 800ea1e: 63bb str r3, [r7, #56] @ 0x38
  33404. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  33405. 800ea20: 6bbb ldr r3, [r7, #56] @ 0x38
  33406. 800ea22: 2b0f cmp r3, #15
  33407. 800ea24: d916 bls.n 800ea54 <UART_SetConfig+0x920>
  33408. 800ea26: 6bbb ldr r3, [r7, #56] @ 0x38
  33409. 800ea28: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33410. 800ea2c: d212 bcs.n 800ea54 <UART_SetConfig+0x920>
  33411. {
  33412. brrtemp = (uint16_t)(usartdiv & 0xFFF0U);
  33413. 800ea2e: 6bbb ldr r3, [r7, #56] @ 0x38
  33414. 800ea30: b29b uxth r3, r3
  33415. 800ea32: f023 030f bic.w r3, r3, #15
  33416. 800ea36: 86fb strh r3, [r7, #54] @ 0x36
  33417. brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
  33418. 800ea38: 6bbb ldr r3, [r7, #56] @ 0x38
  33419. 800ea3a: 085b lsrs r3, r3, #1
  33420. 800ea3c: b29b uxth r3, r3
  33421. 800ea3e: f003 0307 and.w r3, r3, #7
  33422. 800ea42: b29a uxth r2, r3
  33423. 800ea44: 8efb ldrh r3, [r7, #54] @ 0x36
  33424. 800ea46: 4313 orrs r3, r2
  33425. 800ea48: 86fb strh r3, [r7, #54] @ 0x36
  33426. huart->Instance->BRR = brrtemp;
  33427. 800ea4a: 697b ldr r3, [r7, #20]
  33428. 800ea4c: 681b ldr r3, [r3, #0]
  33429. 800ea4e: 8efa ldrh r2, [r7, #54] @ 0x36
  33430. 800ea50: 60da str r2, [r3, #12]
  33431. 800ea52: e0b9 b.n 800ebc8 <UART_SetConfig+0xa94>
  33432. }
  33433. else
  33434. {
  33435. ret = HAL_ERROR;
  33436. 800ea54: 2301 movs r3, #1
  33437. 800ea56: f887 3042 strb.w r3, [r7, #66] @ 0x42
  33438. 800ea5a: e0b5 b.n 800ebc8 <UART_SetConfig+0xa94>
  33439. 800ea5c: 03d09000 .word 0x03d09000
  33440. 800ea60: 003d0900 .word 0x003d0900
  33441. 800ea64: 08031984 .word 0x08031984
  33442. 800ea68: 58024400 .word 0x58024400
  33443. }
  33444. }
  33445. }
  33446. else
  33447. {
  33448. switch (clocksource)
  33449. 800ea6c: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  33450. 800ea70: 2b20 cmp r3, #32
  33451. 800ea72: dc49 bgt.n 800eb08 <UART_SetConfig+0x9d4>
  33452. 800ea74: 2b00 cmp r3, #0
  33453. 800ea76: db7c blt.n 800eb72 <UART_SetConfig+0xa3e>
  33454. 800ea78: 2b20 cmp r3, #32
  33455. 800ea7a: d87a bhi.n 800eb72 <UART_SetConfig+0xa3e>
  33456. 800ea7c: a201 add r2, pc, #4 @ (adr r2, 800ea84 <UART_SetConfig+0x950>)
  33457. 800ea7e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  33458. 800ea82: bf00 nop
  33459. 800ea84: 0800eb0f .word 0x0800eb0f
  33460. 800ea88: 0800eb17 .word 0x0800eb17
  33461. 800ea8c: 0800eb73 .word 0x0800eb73
  33462. 800ea90: 0800eb73 .word 0x0800eb73
  33463. 800ea94: 0800eb1f .word 0x0800eb1f
  33464. 800ea98: 0800eb73 .word 0x0800eb73
  33465. 800ea9c: 0800eb73 .word 0x0800eb73
  33466. 800eaa0: 0800eb73 .word 0x0800eb73
  33467. 800eaa4: 0800eb2f .word 0x0800eb2f
  33468. 800eaa8: 0800eb73 .word 0x0800eb73
  33469. 800eaac: 0800eb73 .word 0x0800eb73
  33470. 800eab0: 0800eb73 .word 0x0800eb73
  33471. 800eab4: 0800eb73 .word 0x0800eb73
  33472. 800eab8: 0800eb73 .word 0x0800eb73
  33473. 800eabc: 0800eb73 .word 0x0800eb73
  33474. 800eac0: 0800eb73 .word 0x0800eb73
  33475. 800eac4: 0800eb3f .word 0x0800eb3f
  33476. 800eac8: 0800eb73 .word 0x0800eb73
  33477. 800eacc: 0800eb73 .word 0x0800eb73
  33478. 800ead0: 0800eb73 .word 0x0800eb73
  33479. 800ead4: 0800eb73 .word 0x0800eb73
  33480. 800ead8: 0800eb73 .word 0x0800eb73
  33481. 800eadc: 0800eb73 .word 0x0800eb73
  33482. 800eae0: 0800eb73 .word 0x0800eb73
  33483. 800eae4: 0800eb73 .word 0x0800eb73
  33484. 800eae8: 0800eb73 .word 0x0800eb73
  33485. 800eaec: 0800eb73 .word 0x0800eb73
  33486. 800eaf0: 0800eb73 .word 0x0800eb73
  33487. 800eaf4: 0800eb73 .word 0x0800eb73
  33488. 800eaf8: 0800eb73 .word 0x0800eb73
  33489. 800eafc: 0800eb73 .word 0x0800eb73
  33490. 800eb00: 0800eb73 .word 0x0800eb73
  33491. 800eb04: 0800eb65 .word 0x0800eb65
  33492. 800eb08: 2b40 cmp r3, #64 @ 0x40
  33493. 800eb0a: d02e beq.n 800eb6a <UART_SetConfig+0xa36>
  33494. 800eb0c: e031 b.n 800eb72 <UART_SetConfig+0xa3e>
  33495. {
  33496. case UART_CLOCKSOURCE_D2PCLK1:
  33497. pclk = HAL_RCC_GetPCLK1Freq();
  33498. 800eb0e: f7fc fbd7 bl 800b2c0 <HAL_RCC_GetPCLK1Freq>
  33499. 800eb12: 63f8 str r0, [r7, #60] @ 0x3c
  33500. break;
  33501. 800eb14: e033 b.n 800eb7e <UART_SetConfig+0xa4a>
  33502. case UART_CLOCKSOURCE_D2PCLK2:
  33503. pclk = HAL_RCC_GetPCLK2Freq();
  33504. 800eb16: f7fc fbe9 bl 800b2ec <HAL_RCC_GetPCLK2Freq>
  33505. 800eb1a: 63f8 str r0, [r7, #60] @ 0x3c
  33506. break;
  33507. 800eb1c: e02f b.n 800eb7e <UART_SetConfig+0xa4a>
  33508. case UART_CLOCKSOURCE_PLL2:
  33509. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33510. 800eb1e: f107 0324 add.w r3, r7, #36 @ 0x24
  33511. 800eb22: 4618 mov r0, r3
  33512. 800eb24: f7fd fe3e bl 800c7a4 <HAL_RCCEx_GetPLL2ClockFreq>
  33513. pclk = pll2_clocks.PLL2_Q_Frequency;
  33514. 800eb28: 6abb ldr r3, [r7, #40] @ 0x28
  33515. 800eb2a: 63fb str r3, [r7, #60] @ 0x3c
  33516. break;
  33517. 800eb2c: e027 b.n 800eb7e <UART_SetConfig+0xa4a>
  33518. case UART_CLOCKSOURCE_PLL3:
  33519. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33520. 800eb2e: f107 0318 add.w r3, r7, #24
  33521. 800eb32: 4618 mov r0, r3
  33522. 800eb34: f7fd ff8a bl 800ca4c <HAL_RCCEx_GetPLL3ClockFreq>
  33523. pclk = pll3_clocks.PLL3_Q_Frequency;
  33524. 800eb38: 69fb ldr r3, [r7, #28]
  33525. 800eb3a: 63fb str r3, [r7, #60] @ 0x3c
  33526. break;
  33527. 800eb3c: e01f b.n 800eb7e <UART_SetConfig+0xa4a>
  33528. case UART_CLOCKSOURCE_HSI:
  33529. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  33530. 800eb3e: 4b2d ldr r3, [pc, #180] @ (800ebf4 <UART_SetConfig+0xac0>)
  33531. 800eb40: 681b ldr r3, [r3, #0]
  33532. 800eb42: f003 0320 and.w r3, r3, #32
  33533. 800eb46: 2b00 cmp r3, #0
  33534. 800eb48: d009 beq.n 800eb5e <UART_SetConfig+0xa2a>
  33535. {
  33536. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  33537. 800eb4a: 4b2a ldr r3, [pc, #168] @ (800ebf4 <UART_SetConfig+0xac0>)
  33538. 800eb4c: 681b ldr r3, [r3, #0]
  33539. 800eb4e: 08db lsrs r3, r3, #3
  33540. 800eb50: f003 0303 and.w r3, r3, #3
  33541. 800eb54: 4a28 ldr r2, [pc, #160] @ (800ebf8 <UART_SetConfig+0xac4>)
  33542. 800eb56: fa22 f303 lsr.w r3, r2, r3
  33543. 800eb5a: 63fb str r3, [r7, #60] @ 0x3c
  33544. }
  33545. else
  33546. {
  33547. pclk = (uint32_t) HSI_VALUE;
  33548. }
  33549. break;
  33550. 800eb5c: e00f b.n 800eb7e <UART_SetConfig+0xa4a>
  33551. pclk = (uint32_t) HSI_VALUE;
  33552. 800eb5e: 4b26 ldr r3, [pc, #152] @ (800ebf8 <UART_SetConfig+0xac4>)
  33553. 800eb60: 63fb str r3, [r7, #60] @ 0x3c
  33554. break;
  33555. 800eb62: e00c b.n 800eb7e <UART_SetConfig+0xa4a>
  33556. case UART_CLOCKSOURCE_CSI:
  33557. pclk = (uint32_t) CSI_VALUE;
  33558. 800eb64: 4b25 ldr r3, [pc, #148] @ (800ebfc <UART_SetConfig+0xac8>)
  33559. 800eb66: 63fb str r3, [r7, #60] @ 0x3c
  33560. break;
  33561. 800eb68: e009 b.n 800eb7e <UART_SetConfig+0xa4a>
  33562. case UART_CLOCKSOURCE_LSE:
  33563. pclk = (uint32_t) LSE_VALUE;
  33564. 800eb6a: f44f 4300 mov.w r3, #32768 @ 0x8000
  33565. 800eb6e: 63fb str r3, [r7, #60] @ 0x3c
  33566. break;
  33567. 800eb70: e005 b.n 800eb7e <UART_SetConfig+0xa4a>
  33568. default:
  33569. pclk = 0U;
  33570. 800eb72: 2300 movs r3, #0
  33571. 800eb74: 63fb str r3, [r7, #60] @ 0x3c
  33572. ret = HAL_ERROR;
  33573. 800eb76: 2301 movs r3, #1
  33574. 800eb78: f887 3042 strb.w r3, [r7, #66] @ 0x42
  33575. break;
  33576. 800eb7c: bf00 nop
  33577. }
  33578. if (pclk != 0U)
  33579. 800eb7e: 6bfb ldr r3, [r7, #60] @ 0x3c
  33580. 800eb80: 2b00 cmp r3, #0
  33581. 800eb82: d021 beq.n 800ebc8 <UART_SetConfig+0xa94>
  33582. {
  33583. /* USARTDIV must be greater than or equal to 0d16 */
  33584. usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  33585. 800eb84: 697b ldr r3, [r7, #20]
  33586. 800eb86: 6a5b ldr r3, [r3, #36] @ 0x24
  33587. 800eb88: 4a1d ldr r2, [pc, #116] @ (800ec00 <UART_SetConfig+0xacc>)
  33588. 800eb8a: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  33589. 800eb8e: 461a mov r2, r3
  33590. 800eb90: 6bfb ldr r3, [r7, #60] @ 0x3c
  33591. 800eb92: fbb3 f2f2 udiv r2, r3, r2
  33592. 800eb96: 697b ldr r3, [r7, #20]
  33593. 800eb98: 685b ldr r3, [r3, #4]
  33594. 800eb9a: 085b lsrs r3, r3, #1
  33595. 800eb9c: 441a add r2, r3
  33596. 800eb9e: 697b ldr r3, [r7, #20]
  33597. 800eba0: 685b ldr r3, [r3, #4]
  33598. 800eba2: fbb2 f3f3 udiv r3, r2, r3
  33599. 800eba6: 63bb str r3, [r7, #56] @ 0x38
  33600. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  33601. 800eba8: 6bbb ldr r3, [r7, #56] @ 0x38
  33602. 800ebaa: 2b0f cmp r3, #15
  33603. 800ebac: d909 bls.n 800ebc2 <UART_SetConfig+0xa8e>
  33604. 800ebae: 6bbb ldr r3, [r7, #56] @ 0x38
  33605. 800ebb0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33606. 800ebb4: d205 bcs.n 800ebc2 <UART_SetConfig+0xa8e>
  33607. {
  33608. huart->Instance->BRR = (uint16_t)usartdiv;
  33609. 800ebb6: 6bbb ldr r3, [r7, #56] @ 0x38
  33610. 800ebb8: b29a uxth r2, r3
  33611. 800ebba: 697b ldr r3, [r7, #20]
  33612. 800ebbc: 681b ldr r3, [r3, #0]
  33613. 800ebbe: 60da str r2, [r3, #12]
  33614. 800ebc0: e002 b.n 800ebc8 <UART_SetConfig+0xa94>
  33615. }
  33616. else
  33617. {
  33618. ret = HAL_ERROR;
  33619. 800ebc2: 2301 movs r3, #1
  33620. 800ebc4: f887 3042 strb.w r3, [r7, #66] @ 0x42
  33621. }
  33622. }
  33623. }
  33624. /* Initialize the number of data to process during RX/TX ISR execution */
  33625. huart->NbTxDataToProcess = 1;
  33626. 800ebc8: 697b ldr r3, [r7, #20]
  33627. 800ebca: 2201 movs r2, #1
  33628. 800ebcc: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  33629. huart->NbRxDataToProcess = 1;
  33630. 800ebd0: 697b ldr r3, [r7, #20]
  33631. 800ebd2: 2201 movs r2, #1
  33632. 800ebd4: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  33633. /* Clear ISR function pointers */
  33634. huart->RxISR = NULL;
  33635. 800ebd8: 697b ldr r3, [r7, #20]
  33636. 800ebda: 2200 movs r2, #0
  33637. 800ebdc: 675a str r2, [r3, #116] @ 0x74
  33638. huart->TxISR = NULL;
  33639. 800ebde: 697b ldr r3, [r7, #20]
  33640. 800ebe0: 2200 movs r2, #0
  33641. 800ebe2: 679a str r2, [r3, #120] @ 0x78
  33642. return ret;
  33643. 800ebe4: f897 3042 ldrb.w r3, [r7, #66] @ 0x42
  33644. }
  33645. 800ebe8: 4618 mov r0, r3
  33646. 800ebea: 3748 adds r7, #72 @ 0x48
  33647. 800ebec: 46bd mov sp, r7
  33648. 800ebee: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  33649. 800ebf2: bf00 nop
  33650. 800ebf4: 58024400 .word 0x58024400
  33651. 800ebf8: 03d09000 .word 0x03d09000
  33652. 800ebfc: 003d0900 .word 0x003d0900
  33653. 800ec00: 08031984 .word 0x08031984
  33654. 0800ec04 <UART_AdvFeatureConfig>:
  33655. * @brief Configure the UART peripheral advanced features.
  33656. * @param huart UART handle.
  33657. * @retval None
  33658. */
  33659. void UART_AdvFeatureConfig(UART_HandleTypeDef *huart)
  33660. {
  33661. 800ec04: b480 push {r7}
  33662. 800ec06: b083 sub sp, #12
  33663. 800ec08: af00 add r7, sp, #0
  33664. 800ec0a: 6078 str r0, [r7, #4]
  33665. /* Check whether the set of advanced features to configure is properly set */
  33666. assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit));
  33667. /* if required, configure RX/TX pins swap */
  33668. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT))
  33669. 800ec0c: 687b ldr r3, [r7, #4]
  33670. 800ec0e: 6a9b ldr r3, [r3, #40] @ 0x28
  33671. 800ec10: f003 0308 and.w r3, r3, #8
  33672. 800ec14: 2b00 cmp r3, #0
  33673. 800ec16: d00a beq.n 800ec2e <UART_AdvFeatureConfig+0x2a>
  33674. {
  33675. assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap));
  33676. MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap);
  33677. 800ec18: 687b ldr r3, [r7, #4]
  33678. 800ec1a: 681b ldr r3, [r3, #0]
  33679. 800ec1c: 685b ldr r3, [r3, #4]
  33680. 800ec1e: f423 4100 bic.w r1, r3, #32768 @ 0x8000
  33681. 800ec22: 687b ldr r3, [r7, #4]
  33682. 800ec24: 6b9a ldr r2, [r3, #56] @ 0x38
  33683. 800ec26: 687b ldr r3, [r7, #4]
  33684. 800ec28: 681b ldr r3, [r3, #0]
  33685. 800ec2a: 430a orrs r2, r1
  33686. 800ec2c: 605a str r2, [r3, #4]
  33687. }
  33688. /* if required, configure TX pin active level inversion */
  33689. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT))
  33690. 800ec2e: 687b ldr r3, [r7, #4]
  33691. 800ec30: 6a9b ldr r3, [r3, #40] @ 0x28
  33692. 800ec32: f003 0301 and.w r3, r3, #1
  33693. 800ec36: 2b00 cmp r3, #0
  33694. 800ec38: d00a beq.n 800ec50 <UART_AdvFeatureConfig+0x4c>
  33695. {
  33696. assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert));
  33697. MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert);
  33698. 800ec3a: 687b ldr r3, [r7, #4]
  33699. 800ec3c: 681b ldr r3, [r3, #0]
  33700. 800ec3e: 685b ldr r3, [r3, #4]
  33701. 800ec40: f423 3100 bic.w r1, r3, #131072 @ 0x20000
  33702. 800ec44: 687b ldr r3, [r7, #4]
  33703. 800ec46: 6ada ldr r2, [r3, #44] @ 0x2c
  33704. 800ec48: 687b ldr r3, [r7, #4]
  33705. 800ec4a: 681b ldr r3, [r3, #0]
  33706. 800ec4c: 430a orrs r2, r1
  33707. 800ec4e: 605a str r2, [r3, #4]
  33708. }
  33709. /* if required, configure RX pin active level inversion */
  33710. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT))
  33711. 800ec50: 687b ldr r3, [r7, #4]
  33712. 800ec52: 6a9b ldr r3, [r3, #40] @ 0x28
  33713. 800ec54: f003 0302 and.w r3, r3, #2
  33714. 800ec58: 2b00 cmp r3, #0
  33715. 800ec5a: d00a beq.n 800ec72 <UART_AdvFeatureConfig+0x6e>
  33716. {
  33717. assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert));
  33718. MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert);
  33719. 800ec5c: 687b ldr r3, [r7, #4]
  33720. 800ec5e: 681b ldr r3, [r3, #0]
  33721. 800ec60: 685b ldr r3, [r3, #4]
  33722. 800ec62: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  33723. 800ec66: 687b ldr r3, [r7, #4]
  33724. 800ec68: 6b1a ldr r2, [r3, #48] @ 0x30
  33725. 800ec6a: 687b ldr r3, [r7, #4]
  33726. 800ec6c: 681b ldr r3, [r3, #0]
  33727. 800ec6e: 430a orrs r2, r1
  33728. 800ec70: 605a str r2, [r3, #4]
  33729. }
  33730. /* if required, configure data inversion */
  33731. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT))
  33732. 800ec72: 687b ldr r3, [r7, #4]
  33733. 800ec74: 6a9b ldr r3, [r3, #40] @ 0x28
  33734. 800ec76: f003 0304 and.w r3, r3, #4
  33735. 800ec7a: 2b00 cmp r3, #0
  33736. 800ec7c: d00a beq.n 800ec94 <UART_AdvFeatureConfig+0x90>
  33737. {
  33738. assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert));
  33739. MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert);
  33740. 800ec7e: 687b ldr r3, [r7, #4]
  33741. 800ec80: 681b ldr r3, [r3, #0]
  33742. 800ec82: 685b ldr r3, [r3, #4]
  33743. 800ec84: f423 2180 bic.w r1, r3, #262144 @ 0x40000
  33744. 800ec88: 687b ldr r3, [r7, #4]
  33745. 800ec8a: 6b5a ldr r2, [r3, #52] @ 0x34
  33746. 800ec8c: 687b ldr r3, [r7, #4]
  33747. 800ec8e: 681b ldr r3, [r3, #0]
  33748. 800ec90: 430a orrs r2, r1
  33749. 800ec92: 605a str r2, [r3, #4]
  33750. }
  33751. /* if required, configure RX overrun detection disabling */
  33752. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT))
  33753. 800ec94: 687b ldr r3, [r7, #4]
  33754. 800ec96: 6a9b ldr r3, [r3, #40] @ 0x28
  33755. 800ec98: f003 0310 and.w r3, r3, #16
  33756. 800ec9c: 2b00 cmp r3, #0
  33757. 800ec9e: d00a beq.n 800ecb6 <UART_AdvFeatureConfig+0xb2>
  33758. {
  33759. assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable));
  33760. MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable);
  33761. 800eca0: 687b ldr r3, [r7, #4]
  33762. 800eca2: 681b ldr r3, [r3, #0]
  33763. 800eca4: 689b ldr r3, [r3, #8]
  33764. 800eca6: f423 5180 bic.w r1, r3, #4096 @ 0x1000
  33765. 800ecaa: 687b ldr r3, [r7, #4]
  33766. 800ecac: 6bda ldr r2, [r3, #60] @ 0x3c
  33767. 800ecae: 687b ldr r3, [r7, #4]
  33768. 800ecb0: 681b ldr r3, [r3, #0]
  33769. 800ecb2: 430a orrs r2, r1
  33770. 800ecb4: 609a str r2, [r3, #8]
  33771. }
  33772. /* if required, configure DMA disabling on reception error */
  33773. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT))
  33774. 800ecb6: 687b ldr r3, [r7, #4]
  33775. 800ecb8: 6a9b ldr r3, [r3, #40] @ 0x28
  33776. 800ecba: f003 0320 and.w r3, r3, #32
  33777. 800ecbe: 2b00 cmp r3, #0
  33778. 800ecc0: d00a beq.n 800ecd8 <UART_AdvFeatureConfig+0xd4>
  33779. {
  33780. assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError));
  33781. MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError);
  33782. 800ecc2: 687b ldr r3, [r7, #4]
  33783. 800ecc4: 681b ldr r3, [r3, #0]
  33784. 800ecc6: 689b ldr r3, [r3, #8]
  33785. 800ecc8: f423 5100 bic.w r1, r3, #8192 @ 0x2000
  33786. 800eccc: 687b ldr r3, [r7, #4]
  33787. 800ecce: 6c1a ldr r2, [r3, #64] @ 0x40
  33788. 800ecd0: 687b ldr r3, [r7, #4]
  33789. 800ecd2: 681b ldr r3, [r3, #0]
  33790. 800ecd4: 430a orrs r2, r1
  33791. 800ecd6: 609a str r2, [r3, #8]
  33792. }
  33793. /* if required, configure auto Baud rate detection scheme */
  33794. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT))
  33795. 800ecd8: 687b ldr r3, [r7, #4]
  33796. 800ecda: 6a9b ldr r3, [r3, #40] @ 0x28
  33797. 800ecdc: f003 0340 and.w r3, r3, #64 @ 0x40
  33798. 800ece0: 2b00 cmp r3, #0
  33799. 800ece2: d01a beq.n 800ed1a <UART_AdvFeatureConfig+0x116>
  33800. {
  33801. assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance));
  33802. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable));
  33803. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable);
  33804. 800ece4: 687b ldr r3, [r7, #4]
  33805. 800ece6: 681b ldr r3, [r3, #0]
  33806. 800ece8: 685b ldr r3, [r3, #4]
  33807. 800ecea: f423 1180 bic.w r1, r3, #1048576 @ 0x100000
  33808. 800ecee: 687b ldr r3, [r7, #4]
  33809. 800ecf0: 6c5a ldr r2, [r3, #68] @ 0x44
  33810. 800ecf2: 687b ldr r3, [r7, #4]
  33811. 800ecf4: 681b ldr r3, [r3, #0]
  33812. 800ecf6: 430a orrs r2, r1
  33813. 800ecf8: 605a str r2, [r3, #4]
  33814. /* set auto Baudrate detection parameters if detection is enabled */
  33815. if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)
  33816. 800ecfa: 687b ldr r3, [r7, #4]
  33817. 800ecfc: 6c5b ldr r3, [r3, #68] @ 0x44
  33818. 800ecfe: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  33819. 800ed02: d10a bne.n 800ed1a <UART_AdvFeatureConfig+0x116>
  33820. {
  33821. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode));
  33822. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode);
  33823. 800ed04: 687b ldr r3, [r7, #4]
  33824. 800ed06: 681b ldr r3, [r3, #0]
  33825. 800ed08: 685b ldr r3, [r3, #4]
  33826. 800ed0a: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000
  33827. 800ed0e: 687b ldr r3, [r7, #4]
  33828. 800ed10: 6c9a ldr r2, [r3, #72] @ 0x48
  33829. 800ed12: 687b ldr r3, [r7, #4]
  33830. 800ed14: 681b ldr r3, [r3, #0]
  33831. 800ed16: 430a orrs r2, r1
  33832. 800ed18: 605a str r2, [r3, #4]
  33833. }
  33834. }
  33835. /* if required, configure MSB first on communication line */
  33836. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT))
  33837. 800ed1a: 687b ldr r3, [r7, #4]
  33838. 800ed1c: 6a9b ldr r3, [r3, #40] @ 0x28
  33839. 800ed1e: f003 0380 and.w r3, r3, #128 @ 0x80
  33840. 800ed22: 2b00 cmp r3, #0
  33841. 800ed24: d00a beq.n 800ed3c <UART_AdvFeatureConfig+0x138>
  33842. {
  33843. assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst));
  33844. MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst);
  33845. 800ed26: 687b ldr r3, [r7, #4]
  33846. 800ed28: 681b ldr r3, [r3, #0]
  33847. 800ed2a: 685b ldr r3, [r3, #4]
  33848. 800ed2c: f423 2100 bic.w r1, r3, #524288 @ 0x80000
  33849. 800ed30: 687b ldr r3, [r7, #4]
  33850. 800ed32: 6cda ldr r2, [r3, #76] @ 0x4c
  33851. 800ed34: 687b ldr r3, [r7, #4]
  33852. 800ed36: 681b ldr r3, [r3, #0]
  33853. 800ed38: 430a orrs r2, r1
  33854. 800ed3a: 605a str r2, [r3, #4]
  33855. }
  33856. }
  33857. 800ed3c: bf00 nop
  33858. 800ed3e: 370c adds r7, #12
  33859. 800ed40: 46bd mov sp, r7
  33860. 800ed42: f85d 7b04 ldr.w r7, [sp], #4
  33861. 800ed46: 4770 bx lr
  33862. 0800ed48 <UART_CheckIdleState>:
  33863. * @brief Check the UART Idle State.
  33864. * @param huart UART handle.
  33865. * @retval HAL status
  33866. */
  33867. HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart)
  33868. {
  33869. 800ed48: b580 push {r7, lr}
  33870. 800ed4a: b098 sub sp, #96 @ 0x60
  33871. 800ed4c: af02 add r7, sp, #8
  33872. 800ed4e: 6078 str r0, [r7, #4]
  33873. uint32_t tickstart;
  33874. /* Initialize the UART ErrorCode */
  33875. huart->ErrorCode = HAL_UART_ERROR_NONE;
  33876. 800ed50: 687b ldr r3, [r7, #4]
  33877. 800ed52: 2200 movs r2, #0
  33878. 800ed54: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  33879. /* Init tickstart for timeout management */
  33880. tickstart = HAL_GetTick();
  33881. 800ed58: f7f6 fc9c bl 8005694 <HAL_GetTick>
  33882. 800ed5c: 6578 str r0, [r7, #84] @ 0x54
  33883. /* Check if the Transmitter is enabled */
  33884. if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE)
  33885. 800ed5e: 687b ldr r3, [r7, #4]
  33886. 800ed60: 681b ldr r3, [r3, #0]
  33887. 800ed62: 681b ldr r3, [r3, #0]
  33888. 800ed64: f003 0308 and.w r3, r3, #8
  33889. 800ed68: 2b08 cmp r3, #8
  33890. 800ed6a: d12f bne.n 800edcc <UART_CheckIdleState+0x84>
  33891. {
  33892. /* Wait until TEACK flag is set */
  33893. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  33894. 800ed6c: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  33895. 800ed70: 9300 str r3, [sp, #0]
  33896. 800ed72: 6d7b ldr r3, [r7, #84] @ 0x54
  33897. 800ed74: 2200 movs r2, #0
  33898. 800ed76: f44f 1100 mov.w r1, #2097152 @ 0x200000
  33899. 800ed7a: 6878 ldr r0, [r7, #4]
  33900. 800ed7c: f000 f88e bl 800ee9c <UART_WaitOnFlagUntilTimeout>
  33901. 800ed80: 4603 mov r3, r0
  33902. 800ed82: 2b00 cmp r3, #0
  33903. 800ed84: d022 beq.n 800edcc <UART_CheckIdleState+0x84>
  33904. {
  33905. /* Disable TXE interrupt for the interrupt process */
  33906. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE));
  33907. 800ed86: 687b ldr r3, [r7, #4]
  33908. 800ed88: 681b ldr r3, [r3, #0]
  33909. 800ed8a: 63bb str r3, [r7, #56] @ 0x38
  33910. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33911. 800ed8c: 6bbb ldr r3, [r7, #56] @ 0x38
  33912. 800ed8e: e853 3f00 ldrex r3, [r3]
  33913. 800ed92: 637b str r3, [r7, #52] @ 0x34
  33914. return(result);
  33915. 800ed94: 6b7b ldr r3, [r7, #52] @ 0x34
  33916. 800ed96: f023 0380 bic.w r3, r3, #128 @ 0x80
  33917. 800ed9a: 653b str r3, [r7, #80] @ 0x50
  33918. 800ed9c: 687b ldr r3, [r7, #4]
  33919. 800ed9e: 681b ldr r3, [r3, #0]
  33920. 800eda0: 461a mov r2, r3
  33921. 800eda2: 6d3b ldr r3, [r7, #80] @ 0x50
  33922. 800eda4: 647b str r3, [r7, #68] @ 0x44
  33923. 800eda6: 643a str r2, [r7, #64] @ 0x40
  33924. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33925. 800eda8: 6c39 ldr r1, [r7, #64] @ 0x40
  33926. 800edaa: 6c7a ldr r2, [r7, #68] @ 0x44
  33927. 800edac: e841 2300 strex r3, r2, [r1]
  33928. 800edb0: 63fb str r3, [r7, #60] @ 0x3c
  33929. return(result);
  33930. 800edb2: 6bfb ldr r3, [r7, #60] @ 0x3c
  33931. 800edb4: 2b00 cmp r3, #0
  33932. 800edb6: d1e6 bne.n 800ed86 <UART_CheckIdleState+0x3e>
  33933. huart->gState = HAL_UART_STATE_READY;
  33934. 800edb8: 687b ldr r3, [r7, #4]
  33935. 800edba: 2220 movs r2, #32
  33936. 800edbc: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  33937. __HAL_UNLOCK(huart);
  33938. 800edc0: 687b ldr r3, [r7, #4]
  33939. 800edc2: 2200 movs r2, #0
  33940. 800edc4: f883 2084 strb.w r2, [r3, #132] @ 0x84
  33941. /* Timeout occurred */
  33942. return HAL_TIMEOUT;
  33943. 800edc8: 2303 movs r3, #3
  33944. 800edca: e063 b.n 800ee94 <UART_CheckIdleState+0x14c>
  33945. }
  33946. }
  33947. /* Check if the Receiver is enabled */
  33948. if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE)
  33949. 800edcc: 687b ldr r3, [r7, #4]
  33950. 800edce: 681b ldr r3, [r3, #0]
  33951. 800edd0: 681b ldr r3, [r3, #0]
  33952. 800edd2: f003 0304 and.w r3, r3, #4
  33953. 800edd6: 2b04 cmp r3, #4
  33954. 800edd8: d149 bne.n 800ee6e <UART_CheckIdleState+0x126>
  33955. {
  33956. /* Wait until REACK flag is set */
  33957. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  33958. 800edda: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  33959. 800edde: 9300 str r3, [sp, #0]
  33960. 800ede0: 6d7b ldr r3, [r7, #84] @ 0x54
  33961. 800ede2: 2200 movs r2, #0
  33962. 800ede4: f44f 0180 mov.w r1, #4194304 @ 0x400000
  33963. 800ede8: 6878 ldr r0, [r7, #4]
  33964. 800edea: f000 f857 bl 800ee9c <UART_WaitOnFlagUntilTimeout>
  33965. 800edee: 4603 mov r3, r0
  33966. 800edf0: 2b00 cmp r3, #0
  33967. 800edf2: d03c beq.n 800ee6e <UART_CheckIdleState+0x126>
  33968. {
  33969. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error)
  33970. interrupts for the interrupt process */
  33971. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  33972. 800edf4: 687b ldr r3, [r7, #4]
  33973. 800edf6: 681b ldr r3, [r3, #0]
  33974. 800edf8: 627b str r3, [r7, #36] @ 0x24
  33975. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33976. 800edfa: 6a7b ldr r3, [r7, #36] @ 0x24
  33977. 800edfc: e853 3f00 ldrex r3, [r3]
  33978. 800ee00: 623b str r3, [r7, #32]
  33979. return(result);
  33980. 800ee02: 6a3b ldr r3, [r7, #32]
  33981. 800ee04: f423 7390 bic.w r3, r3, #288 @ 0x120
  33982. 800ee08: 64fb str r3, [r7, #76] @ 0x4c
  33983. 800ee0a: 687b ldr r3, [r7, #4]
  33984. 800ee0c: 681b ldr r3, [r3, #0]
  33985. 800ee0e: 461a mov r2, r3
  33986. 800ee10: 6cfb ldr r3, [r7, #76] @ 0x4c
  33987. 800ee12: 633b str r3, [r7, #48] @ 0x30
  33988. 800ee14: 62fa str r2, [r7, #44] @ 0x2c
  33989. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33990. 800ee16: 6af9 ldr r1, [r7, #44] @ 0x2c
  33991. 800ee18: 6b3a ldr r2, [r7, #48] @ 0x30
  33992. 800ee1a: e841 2300 strex r3, r2, [r1]
  33993. 800ee1e: 62bb str r3, [r7, #40] @ 0x28
  33994. return(result);
  33995. 800ee20: 6abb ldr r3, [r7, #40] @ 0x28
  33996. 800ee22: 2b00 cmp r3, #0
  33997. 800ee24: d1e6 bne.n 800edf4 <UART_CheckIdleState+0xac>
  33998. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  33999. 800ee26: 687b ldr r3, [r7, #4]
  34000. 800ee28: 681b ldr r3, [r3, #0]
  34001. 800ee2a: 3308 adds r3, #8
  34002. 800ee2c: 613b str r3, [r7, #16]
  34003. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34004. 800ee2e: 693b ldr r3, [r7, #16]
  34005. 800ee30: e853 3f00 ldrex r3, [r3]
  34006. 800ee34: 60fb str r3, [r7, #12]
  34007. return(result);
  34008. 800ee36: 68fb ldr r3, [r7, #12]
  34009. 800ee38: f023 0301 bic.w r3, r3, #1
  34010. 800ee3c: 64bb str r3, [r7, #72] @ 0x48
  34011. 800ee3e: 687b ldr r3, [r7, #4]
  34012. 800ee40: 681b ldr r3, [r3, #0]
  34013. 800ee42: 3308 adds r3, #8
  34014. 800ee44: 6cba ldr r2, [r7, #72] @ 0x48
  34015. 800ee46: 61fa str r2, [r7, #28]
  34016. 800ee48: 61bb str r3, [r7, #24]
  34017. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34018. 800ee4a: 69b9 ldr r1, [r7, #24]
  34019. 800ee4c: 69fa ldr r2, [r7, #28]
  34020. 800ee4e: e841 2300 strex r3, r2, [r1]
  34021. 800ee52: 617b str r3, [r7, #20]
  34022. return(result);
  34023. 800ee54: 697b ldr r3, [r7, #20]
  34024. 800ee56: 2b00 cmp r3, #0
  34025. 800ee58: d1e5 bne.n 800ee26 <UART_CheckIdleState+0xde>
  34026. huart->RxState = HAL_UART_STATE_READY;
  34027. 800ee5a: 687b ldr r3, [r7, #4]
  34028. 800ee5c: 2220 movs r2, #32
  34029. 800ee5e: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  34030. __HAL_UNLOCK(huart);
  34031. 800ee62: 687b ldr r3, [r7, #4]
  34032. 800ee64: 2200 movs r2, #0
  34033. 800ee66: f883 2084 strb.w r2, [r3, #132] @ 0x84
  34034. /* Timeout occurred */
  34035. return HAL_TIMEOUT;
  34036. 800ee6a: 2303 movs r3, #3
  34037. 800ee6c: e012 b.n 800ee94 <UART_CheckIdleState+0x14c>
  34038. }
  34039. }
  34040. /* Initialize the UART State */
  34041. huart->gState = HAL_UART_STATE_READY;
  34042. 800ee6e: 687b ldr r3, [r7, #4]
  34043. 800ee70: 2220 movs r2, #32
  34044. 800ee72: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  34045. huart->RxState = HAL_UART_STATE_READY;
  34046. 800ee76: 687b ldr r3, [r7, #4]
  34047. 800ee78: 2220 movs r2, #32
  34048. 800ee7a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  34049. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  34050. 800ee7e: 687b ldr r3, [r7, #4]
  34051. 800ee80: 2200 movs r2, #0
  34052. 800ee82: 66da str r2, [r3, #108] @ 0x6c
  34053. huart->RxEventType = HAL_UART_RXEVENT_TC;
  34054. 800ee84: 687b ldr r3, [r7, #4]
  34055. 800ee86: 2200 movs r2, #0
  34056. 800ee88: 671a str r2, [r3, #112] @ 0x70
  34057. __HAL_UNLOCK(huart);
  34058. 800ee8a: 687b ldr r3, [r7, #4]
  34059. 800ee8c: 2200 movs r2, #0
  34060. 800ee8e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  34061. return HAL_OK;
  34062. 800ee92: 2300 movs r3, #0
  34063. }
  34064. 800ee94: 4618 mov r0, r3
  34065. 800ee96: 3758 adds r7, #88 @ 0x58
  34066. 800ee98: 46bd mov sp, r7
  34067. 800ee9a: bd80 pop {r7, pc}
  34068. 0800ee9c <UART_WaitOnFlagUntilTimeout>:
  34069. * @param Timeout Timeout duration
  34070. * @retval HAL status
  34071. */
  34072. HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status,
  34073. uint32_t Tickstart, uint32_t Timeout)
  34074. {
  34075. 800ee9c: b580 push {r7, lr}
  34076. 800ee9e: b084 sub sp, #16
  34077. 800eea0: af00 add r7, sp, #0
  34078. 800eea2: 60f8 str r0, [r7, #12]
  34079. 800eea4: 60b9 str r1, [r7, #8]
  34080. 800eea6: 603b str r3, [r7, #0]
  34081. 800eea8: 4613 mov r3, r2
  34082. 800eeaa: 71fb strb r3, [r7, #7]
  34083. /* Wait until flag is set */
  34084. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  34085. 800eeac: e04f b.n 800ef4e <UART_WaitOnFlagUntilTimeout+0xb2>
  34086. {
  34087. /* Check for the Timeout */
  34088. if (Timeout != HAL_MAX_DELAY)
  34089. 800eeae: 69bb ldr r3, [r7, #24]
  34090. 800eeb0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  34091. 800eeb4: d04b beq.n 800ef4e <UART_WaitOnFlagUntilTimeout+0xb2>
  34092. {
  34093. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  34094. 800eeb6: f7f6 fbed bl 8005694 <HAL_GetTick>
  34095. 800eeba: 4602 mov r2, r0
  34096. 800eebc: 683b ldr r3, [r7, #0]
  34097. 800eebe: 1ad3 subs r3, r2, r3
  34098. 800eec0: 69ba ldr r2, [r7, #24]
  34099. 800eec2: 429a cmp r2, r3
  34100. 800eec4: d302 bcc.n 800eecc <UART_WaitOnFlagUntilTimeout+0x30>
  34101. 800eec6: 69bb ldr r3, [r7, #24]
  34102. 800eec8: 2b00 cmp r3, #0
  34103. 800eeca: d101 bne.n 800eed0 <UART_WaitOnFlagUntilTimeout+0x34>
  34104. {
  34105. return HAL_TIMEOUT;
  34106. 800eecc: 2303 movs r3, #3
  34107. 800eece: e04e b.n 800ef6e <UART_WaitOnFlagUntilTimeout+0xd2>
  34108. }
  34109. if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC))
  34110. 800eed0: 68fb ldr r3, [r7, #12]
  34111. 800eed2: 681b ldr r3, [r3, #0]
  34112. 800eed4: 681b ldr r3, [r3, #0]
  34113. 800eed6: f003 0304 and.w r3, r3, #4
  34114. 800eeda: 2b00 cmp r3, #0
  34115. 800eedc: d037 beq.n 800ef4e <UART_WaitOnFlagUntilTimeout+0xb2>
  34116. 800eede: 68bb ldr r3, [r7, #8]
  34117. 800eee0: 2b80 cmp r3, #128 @ 0x80
  34118. 800eee2: d034 beq.n 800ef4e <UART_WaitOnFlagUntilTimeout+0xb2>
  34119. 800eee4: 68bb ldr r3, [r7, #8]
  34120. 800eee6: 2b40 cmp r3, #64 @ 0x40
  34121. 800eee8: d031 beq.n 800ef4e <UART_WaitOnFlagUntilTimeout+0xb2>
  34122. {
  34123. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
  34124. 800eeea: 68fb ldr r3, [r7, #12]
  34125. 800eeec: 681b ldr r3, [r3, #0]
  34126. 800eeee: 69db ldr r3, [r3, #28]
  34127. 800eef0: f003 0308 and.w r3, r3, #8
  34128. 800eef4: 2b08 cmp r3, #8
  34129. 800eef6: d110 bne.n 800ef1a <UART_WaitOnFlagUntilTimeout+0x7e>
  34130. {
  34131. /* Clear Overrun Error flag*/
  34132. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  34133. 800eef8: 68fb ldr r3, [r7, #12]
  34134. 800eefa: 681b ldr r3, [r3, #0]
  34135. 800eefc: 2208 movs r2, #8
  34136. 800eefe: 621a str r2, [r3, #32]
  34137. /* Blocking error : transfer is aborted
  34138. Set the UART state ready to be able to start again the process,
  34139. Disable Rx Interrupts if ongoing */
  34140. UART_EndRxTransfer(huart);
  34141. 800ef00: 68f8 ldr r0, [r7, #12]
  34142. 800ef02: f000 f95b bl 800f1bc <UART_EndRxTransfer>
  34143. huart->ErrorCode = HAL_UART_ERROR_ORE;
  34144. 800ef06: 68fb ldr r3, [r7, #12]
  34145. 800ef08: 2208 movs r2, #8
  34146. 800ef0a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  34147. /* Process Unlocked */
  34148. __HAL_UNLOCK(huart);
  34149. 800ef0e: 68fb ldr r3, [r7, #12]
  34150. 800ef10: 2200 movs r2, #0
  34151. 800ef12: f883 2084 strb.w r2, [r3, #132] @ 0x84
  34152. return HAL_ERROR;
  34153. 800ef16: 2301 movs r3, #1
  34154. 800ef18: e029 b.n 800ef6e <UART_WaitOnFlagUntilTimeout+0xd2>
  34155. }
  34156. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET)
  34157. 800ef1a: 68fb ldr r3, [r7, #12]
  34158. 800ef1c: 681b ldr r3, [r3, #0]
  34159. 800ef1e: 69db ldr r3, [r3, #28]
  34160. 800ef20: f403 6300 and.w r3, r3, #2048 @ 0x800
  34161. 800ef24: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  34162. 800ef28: d111 bne.n 800ef4e <UART_WaitOnFlagUntilTimeout+0xb2>
  34163. {
  34164. /* Clear Receiver Timeout flag*/
  34165. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  34166. 800ef2a: 68fb ldr r3, [r7, #12]
  34167. 800ef2c: 681b ldr r3, [r3, #0]
  34168. 800ef2e: f44f 6200 mov.w r2, #2048 @ 0x800
  34169. 800ef32: 621a str r2, [r3, #32]
  34170. /* Blocking error : transfer is aborted
  34171. Set the UART state ready to be able to start again the process,
  34172. Disable Rx Interrupts if ongoing */
  34173. UART_EndRxTransfer(huart);
  34174. 800ef34: 68f8 ldr r0, [r7, #12]
  34175. 800ef36: f000 f941 bl 800f1bc <UART_EndRxTransfer>
  34176. huart->ErrorCode = HAL_UART_ERROR_RTO;
  34177. 800ef3a: 68fb ldr r3, [r7, #12]
  34178. 800ef3c: 2220 movs r2, #32
  34179. 800ef3e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  34180. /* Process Unlocked */
  34181. __HAL_UNLOCK(huart);
  34182. 800ef42: 68fb ldr r3, [r7, #12]
  34183. 800ef44: 2200 movs r2, #0
  34184. 800ef46: f883 2084 strb.w r2, [r3, #132] @ 0x84
  34185. return HAL_TIMEOUT;
  34186. 800ef4a: 2303 movs r3, #3
  34187. 800ef4c: e00f b.n 800ef6e <UART_WaitOnFlagUntilTimeout+0xd2>
  34188. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  34189. 800ef4e: 68fb ldr r3, [r7, #12]
  34190. 800ef50: 681b ldr r3, [r3, #0]
  34191. 800ef52: 69da ldr r2, [r3, #28]
  34192. 800ef54: 68bb ldr r3, [r7, #8]
  34193. 800ef56: 4013 ands r3, r2
  34194. 800ef58: 68ba ldr r2, [r7, #8]
  34195. 800ef5a: 429a cmp r2, r3
  34196. 800ef5c: bf0c ite eq
  34197. 800ef5e: 2301 moveq r3, #1
  34198. 800ef60: 2300 movne r3, #0
  34199. 800ef62: b2db uxtb r3, r3
  34200. 800ef64: 461a mov r2, r3
  34201. 800ef66: 79fb ldrb r3, [r7, #7]
  34202. 800ef68: 429a cmp r2, r3
  34203. 800ef6a: d0a0 beq.n 800eeae <UART_WaitOnFlagUntilTimeout+0x12>
  34204. }
  34205. }
  34206. }
  34207. }
  34208. return HAL_OK;
  34209. 800ef6c: 2300 movs r3, #0
  34210. }
  34211. 800ef6e: 4618 mov r0, r3
  34212. 800ef70: 3710 adds r7, #16
  34213. 800ef72: 46bd mov sp, r7
  34214. 800ef74: bd80 pop {r7, pc}
  34215. ...
  34216. 0800ef78 <UART_Start_Receive_IT>:
  34217. * @param pData Pointer to data buffer (u8 or u16 data elements).
  34218. * @param Size Amount of data elements (u8 or u16) to be received.
  34219. * @retval HAL status
  34220. */
  34221. HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  34222. {
  34223. 800ef78: b480 push {r7}
  34224. 800ef7a: b0a3 sub sp, #140 @ 0x8c
  34225. 800ef7c: af00 add r7, sp, #0
  34226. 800ef7e: 60f8 str r0, [r7, #12]
  34227. 800ef80: 60b9 str r1, [r7, #8]
  34228. 800ef82: 4613 mov r3, r2
  34229. 800ef84: 80fb strh r3, [r7, #6]
  34230. huart->pRxBuffPtr = pData;
  34231. 800ef86: 68fb ldr r3, [r7, #12]
  34232. 800ef88: 68ba ldr r2, [r7, #8]
  34233. 800ef8a: 659a str r2, [r3, #88] @ 0x58
  34234. huart->RxXferSize = Size;
  34235. 800ef8c: 68fb ldr r3, [r7, #12]
  34236. 800ef8e: 88fa ldrh r2, [r7, #6]
  34237. 800ef90: f8a3 205c strh.w r2, [r3, #92] @ 0x5c
  34238. huart->RxXferCount = Size;
  34239. 800ef94: 68fb ldr r3, [r7, #12]
  34240. 800ef96: 88fa ldrh r2, [r7, #6]
  34241. 800ef98: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  34242. huart->RxISR = NULL;
  34243. 800ef9c: 68fb ldr r3, [r7, #12]
  34244. 800ef9e: 2200 movs r2, #0
  34245. 800efa0: 675a str r2, [r3, #116] @ 0x74
  34246. /* Computation of UART mask to apply to RDR register */
  34247. UART_MASK_COMPUTATION(huart);
  34248. 800efa2: 68fb ldr r3, [r7, #12]
  34249. 800efa4: 689b ldr r3, [r3, #8]
  34250. 800efa6: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  34251. 800efaa: d10e bne.n 800efca <UART_Start_Receive_IT+0x52>
  34252. 800efac: 68fb ldr r3, [r7, #12]
  34253. 800efae: 691b ldr r3, [r3, #16]
  34254. 800efb0: 2b00 cmp r3, #0
  34255. 800efb2: d105 bne.n 800efc0 <UART_Start_Receive_IT+0x48>
  34256. 800efb4: 68fb ldr r3, [r7, #12]
  34257. 800efb6: f240 12ff movw r2, #511 @ 0x1ff
  34258. 800efba: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  34259. 800efbe: e02d b.n 800f01c <UART_Start_Receive_IT+0xa4>
  34260. 800efc0: 68fb ldr r3, [r7, #12]
  34261. 800efc2: 22ff movs r2, #255 @ 0xff
  34262. 800efc4: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  34263. 800efc8: e028 b.n 800f01c <UART_Start_Receive_IT+0xa4>
  34264. 800efca: 68fb ldr r3, [r7, #12]
  34265. 800efcc: 689b ldr r3, [r3, #8]
  34266. 800efce: 2b00 cmp r3, #0
  34267. 800efd0: d10d bne.n 800efee <UART_Start_Receive_IT+0x76>
  34268. 800efd2: 68fb ldr r3, [r7, #12]
  34269. 800efd4: 691b ldr r3, [r3, #16]
  34270. 800efd6: 2b00 cmp r3, #0
  34271. 800efd8: d104 bne.n 800efe4 <UART_Start_Receive_IT+0x6c>
  34272. 800efda: 68fb ldr r3, [r7, #12]
  34273. 800efdc: 22ff movs r2, #255 @ 0xff
  34274. 800efde: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  34275. 800efe2: e01b b.n 800f01c <UART_Start_Receive_IT+0xa4>
  34276. 800efe4: 68fb ldr r3, [r7, #12]
  34277. 800efe6: 227f movs r2, #127 @ 0x7f
  34278. 800efe8: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  34279. 800efec: e016 b.n 800f01c <UART_Start_Receive_IT+0xa4>
  34280. 800efee: 68fb ldr r3, [r7, #12]
  34281. 800eff0: 689b ldr r3, [r3, #8]
  34282. 800eff2: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  34283. 800eff6: d10d bne.n 800f014 <UART_Start_Receive_IT+0x9c>
  34284. 800eff8: 68fb ldr r3, [r7, #12]
  34285. 800effa: 691b ldr r3, [r3, #16]
  34286. 800effc: 2b00 cmp r3, #0
  34287. 800effe: d104 bne.n 800f00a <UART_Start_Receive_IT+0x92>
  34288. 800f000: 68fb ldr r3, [r7, #12]
  34289. 800f002: 227f movs r2, #127 @ 0x7f
  34290. 800f004: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  34291. 800f008: e008 b.n 800f01c <UART_Start_Receive_IT+0xa4>
  34292. 800f00a: 68fb ldr r3, [r7, #12]
  34293. 800f00c: 223f movs r2, #63 @ 0x3f
  34294. 800f00e: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  34295. 800f012: e003 b.n 800f01c <UART_Start_Receive_IT+0xa4>
  34296. 800f014: 68fb ldr r3, [r7, #12]
  34297. 800f016: 2200 movs r2, #0
  34298. 800f018: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  34299. huart->ErrorCode = HAL_UART_ERROR_NONE;
  34300. 800f01c: 68fb ldr r3, [r7, #12]
  34301. 800f01e: 2200 movs r2, #0
  34302. 800f020: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  34303. huart->RxState = HAL_UART_STATE_BUSY_RX;
  34304. 800f024: 68fb ldr r3, [r7, #12]
  34305. 800f026: 2222 movs r2, #34 @ 0x22
  34306. 800f028: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  34307. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  34308. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  34309. 800f02c: 68fb ldr r3, [r7, #12]
  34310. 800f02e: 681b ldr r3, [r3, #0]
  34311. 800f030: 3308 adds r3, #8
  34312. 800f032: 667b str r3, [r7, #100] @ 0x64
  34313. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34314. 800f034: 6e7b ldr r3, [r7, #100] @ 0x64
  34315. 800f036: e853 3f00 ldrex r3, [r3]
  34316. 800f03a: 663b str r3, [r7, #96] @ 0x60
  34317. return(result);
  34318. 800f03c: 6e3b ldr r3, [r7, #96] @ 0x60
  34319. 800f03e: f043 0301 orr.w r3, r3, #1
  34320. 800f042: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  34321. 800f046: 68fb ldr r3, [r7, #12]
  34322. 800f048: 681b ldr r3, [r3, #0]
  34323. 800f04a: 3308 adds r3, #8
  34324. 800f04c: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  34325. 800f050: 673a str r2, [r7, #112] @ 0x70
  34326. 800f052: 66fb str r3, [r7, #108] @ 0x6c
  34327. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34328. 800f054: 6ef9 ldr r1, [r7, #108] @ 0x6c
  34329. 800f056: 6f3a ldr r2, [r7, #112] @ 0x70
  34330. 800f058: e841 2300 strex r3, r2, [r1]
  34331. 800f05c: 66bb str r3, [r7, #104] @ 0x68
  34332. return(result);
  34333. 800f05e: 6ebb ldr r3, [r7, #104] @ 0x68
  34334. 800f060: 2b00 cmp r3, #0
  34335. 800f062: d1e3 bne.n 800f02c <UART_Start_Receive_IT+0xb4>
  34336. /* Configure Rx interrupt processing */
  34337. if ((huart->FifoMode == UART_FIFOMODE_ENABLE) && (Size >= huart->NbRxDataToProcess))
  34338. 800f064: 68fb ldr r3, [r7, #12]
  34339. 800f066: 6e5b ldr r3, [r3, #100] @ 0x64
  34340. 800f068: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  34341. 800f06c: d14f bne.n 800f10e <UART_Start_Receive_IT+0x196>
  34342. 800f06e: 68fb ldr r3, [r7, #12]
  34343. 800f070: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  34344. 800f074: 88fa ldrh r2, [r7, #6]
  34345. 800f076: 429a cmp r2, r3
  34346. 800f078: d349 bcc.n 800f10e <UART_Start_Receive_IT+0x196>
  34347. {
  34348. /* Set the Rx ISR function pointer according to the data word length */
  34349. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  34350. 800f07a: 68fb ldr r3, [r7, #12]
  34351. 800f07c: 689b ldr r3, [r3, #8]
  34352. 800f07e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  34353. 800f082: d107 bne.n 800f094 <UART_Start_Receive_IT+0x11c>
  34354. 800f084: 68fb ldr r3, [r7, #12]
  34355. 800f086: 691b ldr r3, [r3, #16]
  34356. 800f088: 2b00 cmp r3, #0
  34357. 800f08a: d103 bne.n 800f094 <UART_Start_Receive_IT+0x11c>
  34358. {
  34359. huart->RxISR = UART_RxISR_16BIT_FIFOEN;
  34360. 800f08c: 68fb ldr r3, [r7, #12]
  34361. 800f08e: 4a47 ldr r2, [pc, #284] @ (800f1ac <UART_Start_Receive_IT+0x234>)
  34362. 800f090: 675a str r2, [r3, #116] @ 0x74
  34363. 800f092: e002 b.n 800f09a <UART_Start_Receive_IT+0x122>
  34364. }
  34365. else
  34366. {
  34367. huart->RxISR = UART_RxISR_8BIT_FIFOEN;
  34368. 800f094: 68fb ldr r3, [r7, #12]
  34369. 800f096: 4a46 ldr r2, [pc, #280] @ (800f1b0 <UART_Start_Receive_IT+0x238>)
  34370. 800f098: 675a str r2, [r3, #116] @ 0x74
  34371. }
  34372. /* Enable the UART Parity Error interrupt and RX FIFO Threshold interrupt */
  34373. if (huart->Init.Parity != UART_PARITY_NONE)
  34374. 800f09a: 68fb ldr r3, [r7, #12]
  34375. 800f09c: 691b ldr r3, [r3, #16]
  34376. 800f09e: 2b00 cmp r3, #0
  34377. 800f0a0: d01a beq.n 800f0d8 <UART_Start_Receive_IT+0x160>
  34378. {
  34379. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  34380. 800f0a2: 68fb ldr r3, [r7, #12]
  34381. 800f0a4: 681b ldr r3, [r3, #0]
  34382. 800f0a6: 653b str r3, [r7, #80] @ 0x50
  34383. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34384. 800f0a8: 6d3b ldr r3, [r7, #80] @ 0x50
  34385. 800f0aa: e853 3f00 ldrex r3, [r3]
  34386. 800f0ae: 64fb str r3, [r7, #76] @ 0x4c
  34387. return(result);
  34388. 800f0b0: 6cfb ldr r3, [r7, #76] @ 0x4c
  34389. 800f0b2: f443 7380 orr.w r3, r3, #256 @ 0x100
  34390. 800f0b6: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  34391. 800f0ba: 68fb ldr r3, [r7, #12]
  34392. 800f0bc: 681b ldr r3, [r3, #0]
  34393. 800f0be: 461a mov r2, r3
  34394. 800f0c0: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  34395. 800f0c4: 65fb str r3, [r7, #92] @ 0x5c
  34396. 800f0c6: 65ba str r2, [r7, #88] @ 0x58
  34397. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34398. 800f0c8: 6db9 ldr r1, [r7, #88] @ 0x58
  34399. 800f0ca: 6dfa ldr r2, [r7, #92] @ 0x5c
  34400. 800f0cc: e841 2300 strex r3, r2, [r1]
  34401. 800f0d0: 657b str r3, [r7, #84] @ 0x54
  34402. return(result);
  34403. 800f0d2: 6d7b ldr r3, [r7, #84] @ 0x54
  34404. 800f0d4: 2b00 cmp r3, #0
  34405. 800f0d6: d1e4 bne.n 800f0a2 <UART_Start_Receive_IT+0x12a>
  34406. }
  34407. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  34408. 800f0d8: 68fb ldr r3, [r7, #12]
  34409. 800f0da: 681b ldr r3, [r3, #0]
  34410. 800f0dc: 3308 adds r3, #8
  34411. 800f0de: 63fb str r3, [r7, #60] @ 0x3c
  34412. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34413. 800f0e0: 6bfb ldr r3, [r7, #60] @ 0x3c
  34414. 800f0e2: e853 3f00 ldrex r3, [r3]
  34415. 800f0e6: 63bb str r3, [r7, #56] @ 0x38
  34416. return(result);
  34417. 800f0e8: 6bbb ldr r3, [r7, #56] @ 0x38
  34418. 800f0ea: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  34419. 800f0ee: 67fb str r3, [r7, #124] @ 0x7c
  34420. 800f0f0: 68fb ldr r3, [r7, #12]
  34421. 800f0f2: 681b ldr r3, [r3, #0]
  34422. 800f0f4: 3308 adds r3, #8
  34423. 800f0f6: 6ffa ldr r2, [r7, #124] @ 0x7c
  34424. 800f0f8: 64ba str r2, [r7, #72] @ 0x48
  34425. 800f0fa: 647b str r3, [r7, #68] @ 0x44
  34426. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34427. 800f0fc: 6c79 ldr r1, [r7, #68] @ 0x44
  34428. 800f0fe: 6cba ldr r2, [r7, #72] @ 0x48
  34429. 800f100: e841 2300 strex r3, r2, [r1]
  34430. 800f104: 643b str r3, [r7, #64] @ 0x40
  34431. return(result);
  34432. 800f106: 6c3b ldr r3, [r7, #64] @ 0x40
  34433. 800f108: 2b00 cmp r3, #0
  34434. 800f10a: d1e5 bne.n 800f0d8 <UART_Start_Receive_IT+0x160>
  34435. 800f10c: e046 b.n 800f19c <UART_Start_Receive_IT+0x224>
  34436. }
  34437. else
  34438. {
  34439. /* Set the Rx ISR function pointer according to the data word length */
  34440. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  34441. 800f10e: 68fb ldr r3, [r7, #12]
  34442. 800f110: 689b ldr r3, [r3, #8]
  34443. 800f112: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  34444. 800f116: d107 bne.n 800f128 <UART_Start_Receive_IT+0x1b0>
  34445. 800f118: 68fb ldr r3, [r7, #12]
  34446. 800f11a: 691b ldr r3, [r3, #16]
  34447. 800f11c: 2b00 cmp r3, #0
  34448. 800f11e: d103 bne.n 800f128 <UART_Start_Receive_IT+0x1b0>
  34449. {
  34450. huart->RxISR = UART_RxISR_16BIT;
  34451. 800f120: 68fb ldr r3, [r7, #12]
  34452. 800f122: 4a24 ldr r2, [pc, #144] @ (800f1b4 <UART_Start_Receive_IT+0x23c>)
  34453. 800f124: 675a str r2, [r3, #116] @ 0x74
  34454. 800f126: e002 b.n 800f12e <UART_Start_Receive_IT+0x1b6>
  34455. }
  34456. else
  34457. {
  34458. huart->RxISR = UART_RxISR_8BIT;
  34459. 800f128: 68fb ldr r3, [r7, #12]
  34460. 800f12a: 4a23 ldr r2, [pc, #140] @ (800f1b8 <UART_Start_Receive_IT+0x240>)
  34461. 800f12c: 675a str r2, [r3, #116] @ 0x74
  34462. }
  34463. /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */
  34464. if (huart->Init.Parity != UART_PARITY_NONE)
  34465. 800f12e: 68fb ldr r3, [r7, #12]
  34466. 800f130: 691b ldr r3, [r3, #16]
  34467. 800f132: 2b00 cmp r3, #0
  34468. 800f134: d019 beq.n 800f16a <UART_Start_Receive_IT+0x1f2>
  34469. {
  34470. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE);
  34471. 800f136: 68fb ldr r3, [r7, #12]
  34472. 800f138: 681b ldr r3, [r3, #0]
  34473. 800f13a: 62bb str r3, [r7, #40] @ 0x28
  34474. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34475. 800f13c: 6abb ldr r3, [r7, #40] @ 0x28
  34476. 800f13e: e853 3f00 ldrex r3, [r3]
  34477. 800f142: 627b str r3, [r7, #36] @ 0x24
  34478. return(result);
  34479. 800f144: 6a7b ldr r3, [r7, #36] @ 0x24
  34480. 800f146: f443 7390 orr.w r3, r3, #288 @ 0x120
  34481. 800f14a: 677b str r3, [r7, #116] @ 0x74
  34482. 800f14c: 68fb ldr r3, [r7, #12]
  34483. 800f14e: 681b ldr r3, [r3, #0]
  34484. 800f150: 461a mov r2, r3
  34485. 800f152: 6f7b ldr r3, [r7, #116] @ 0x74
  34486. 800f154: 637b str r3, [r7, #52] @ 0x34
  34487. 800f156: 633a str r2, [r7, #48] @ 0x30
  34488. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34489. 800f158: 6b39 ldr r1, [r7, #48] @ 0x30
  34490. 800f15a: 6b7a ldr r2, [r7, #52] @ 0x34
  34491. 800f15c: e841 2300 strex r3, r2, [r1]
  34492. 800f160: 62fb str r3, [r7, #44] @ 0x2c
  34493. return(result);
  34494. 800f162: 6afb ldr r3, [r7, #44] @ 0x2c
  34495. 800f164: 2b00 cmp r3, #0
  34496. 800f166: d1e6 bne.n 800f136 <UART_Start_Receive_IT+0x1be>
  34497. 800f168: e018 b.n 800f19c <UART_Start_Receive_IT+0x224>
  34498. }
  34499. else
  34500. {
  34501. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  34502. 800f16a: 68fb ldr r3, [r7, #12]
  34503. 800f16c: 681b ldr r3, [r3, #0]
  34504. 800f16e: 617b str r3, [r7, #20]
  34505. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34506. 800f170: 697b ldr r3, [r7, #20]
  34507. 800f172: e853 3f00 ldrex r3, [r3]
  34508. 800f176: 613b str r3, [r7, #16]
  34509. return(result);
  34510. 800f178: 693b ldr r3, [r7, #16]
  34511. 800f17a: f043 0320 orr.w r3, r3, #32
  34512. 800f17e: 67bb str r3, [r7, #120] @ 0x78
  34513. 800f180: 68fb ldr r3, [r7, #12]
  34514. 800f182: 681b ldr r3, [r3, #0]
  34515. 800f184: 461a mov r2, r3
  34516. 800f186: 6fbb ldr r3, [r7, #120] @ 0x78
  34517. 800f188: 623b str r3, [r7, #32]
  34518. 800f18a: 61fa str r2, [r7, #28]
  34519. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34520. 800f18c: 69f9 ldr r1, [r7, #28]
  34521. 800f18e: 6a3a ldr r2, [r7, #32]
  34522. 800f190: e841 2300 strex r3, r2, [r1]
  34523. 800f194: 61bb str r3, [r7, #24]
  34524. return(result);
  34525. 800f196: 69bb ldr r3, [r7, #24]
  34526. 800f198: 2b00 cmp r3, #0
  34527. 800f19a: d1e6 bne.n 800f16a <UART_Start_Receive_IT+0x1f2>
  34528. }
  34529. }
  34530. return HAL_OK;
  34531. 800f19c: 2300 movs r3, #0
  34532. }
  34533. 800f19e: 4618 mov r0, r3
  34534. 800f1a0: 378c adds r7, #140 @ 0x8c
  34535. 800f1a2: 46bd mov sp, r7
  34536. 800f1a4: f85d 7b04 ldr.w r7, [sp], #4
  34537. 800f1a8: 4770 bx lr
  34538. 800f1aa: bf00 nop
  34539. 800f1ac: 0800fd21 .word 0x0800fd21
  34540. 800f1b0: 0800f9c1 .word 0x0800f9c1
  34541. 800f1b4: 0800f809 .word 0x0800f809
  34542. 800f1b8: 0800f651 .word 0x0800f651
  34543. 0800f1bc <UART_EndRxTransfer>:
  34544. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  34545. * @param huart UART handle.
  34546. * @retval None
  34547. */
  34548. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  34549. {
  34550. 800f1bc: b480 push {r7}
  34551. 800f1be: b095 sub sp, #84 @ 0x54
  34552. 800f1c0: af00 add r7, sp, #0
  34553. 800f1c2: 6078 str r0, [r7, #4]
  34554. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  34555. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  34556. 800f1c4: 687b ldr r3, [r7, #4]
  34557. 800f1c6: 681b ldr r3, [r3, #0]
  34558. 800f1c8: 637b str r3, [r7, #52] @ 0x34
  34559. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34560. 800f1ca: 6b7b ldr r3, [r7, #52] @ 0x34
  34561. 800f1cc: e853 3f00 ldrex r3, [r3]
  34562. 800f1d0: 633b str r3, [r7, #48] @ 0x30
  34563. return(result);
  34564. 800f1d2: 6b3b ldr r3, [r7, #48] @ 0x30
  34565. 800f1d4: f423 7390 bic.w r3, r3, #288 @ 0x120
  34566. 800f1d8: 64fb str r3, [r7, #76] @ 0x4c
  34567. 800f1da: 687b ldr r3, [r7, #4]
  34568. 800f1dc: 681b ldr r3, [r3, #0]
  34569. 800f1de: 461a mov r2, r3
  34570. 800f1e0: 6cfb ldr r3, [r7, #76] @ 0x4c
  34571. 800f1e2: 643b str r3, [r7, #64] @ 0x40
  34572. 800f1e4: 63fa str r2, [r7, #60] @ 0x3c
  34573. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34574. 800f1e6: 6bf9 ldr r1, [r7, #60] @ 0x3c
  34575. 800f1e8: 6c3a ldr r2, [r7, #64] @ 0x40
  34576. 800f1ea: e841 2300 strex r3, r2, [r1]
  34577. 800f1ee: 63bb str r3, [r7, #56] @ 0x38
  34578. return(result);
  34579. 800f1f0: 6bbb ldr r3, [r7, #56] @ 0x38
  34580. 800f1f2: 2b00 cmp r3, #0
  34581. 800f1f4: d1e6 bne.n 800f1c4 <UART_EndRxTransfer+0x8>
  34582. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  34583. 800f1f6: 687b ldr r3, [r7, #4]
  34584. 800f1f8: 681b ldr r3, [r3, #0]
  34585. 800f1fa: 3308 adds r3, #8
  34586. 800f1fc: 623b str r3, [r7, #32]
  34587. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34588. 800f1fe: 6a3b ldr r3, [r7, #32]
  34589. 800f200: e853 3f00 ldrex r3, [r3]
  34590. 800f204: 61fb str r3, [r7, #28]
  34591. return(result);
  34592. 800f206: 69fa ldr r2, [r7, #28]
  34593. 800f208: 4b1e ldr r3, [pc, #120] @ (800f284 <UART_EndRxTransfer+0xc8>)
  34594. 800f20a: 4013 ands r3, r2
  34595. 800f20c: 64bb str r3, [r7, #72] @ 0x48
  34596. 800f20e: 687b ldr r3, [r7, #4]
  34597. 800f210: 681b ldr r3, [r3, #0]
  34598. 800f212: 3308 adds r3, #8
  34599. 800f214: 6cba ldr r2, [r7, #72] @ 0x48
  34600. 800f216: 62fa str r2, [r7, #44] @ 0x2c
  34601. 800f218: 62bb str r3, [r7, #40] @ 0x28
  34602. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34603. 800f21a: 6ab9 ldr r1, [r7, #40] @ 0x28
  34604. 800f21c: 6afa ldr r2, [r7, #44] @ 0x2c
  34605. 800f21e: e841 2300 strex r3, r2, [r1]
  34606. 800f222: 627b str r3, [r7, #36] @ 0x24
  34607. return(result);
  34608. 800f224: 6a7b ldr r3, [r7, #36] @ 0x24
  34609. 800f226: 2b00 cmp r3, #0
  34610. 800f228: d1e5 bne.n 800f1f6 <UART_EndRxTransfer+0x3a>
  34611. /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */
  34612. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  34613. 800f22a: 687b ldr r3, [r7, #4]
  34614. 800f22c: 6edb ldr r3, [r3, #108] @ 0x6c
  34615. 800f22e: 2b01 cmp r3, #1
  34616. 800f230: d118 bne.n 800f264 <UART_EndRxTransfer+0xa8>
  34617. {
  34618. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  34619. 800f232: 687b ldr r3, [r7, #4]
  34620. 800f234: 681b ldr r3, [r3, #0]
  34621. 800f236: 60fb str r3, [r7, #12]
  34622. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34623. 800f238: 68fb ldr r3, [r7, #12]
  34624. 800f23a: e853 3f00 ldrex r3, [r3]
  34625. 800f23e: 60bb str r3, [r7, #8]
  34626. return(result);
  34627. 800f240: 68bb ldr r3, [r7, #8]
  34628. 800f242: f023 0310 bic.w r3, r3, #16
  34629. 800f246: 647b str r3, [r7, #68] @ 0x44
  34630. 800f248: 687b ldr r3, [r7, #4]
  34631. 800f24a: 681b ldr r3, [r3, #0]
  34632. 800f24c: 461a mov r2, r3
  34633. 800f24e: 6c7b ldr r3, [r7, #68] @ 0x44
  34634. 800f250: 61bb str r3, [r7, #24]
  34635. 800f252: 617a str r2, [r7, #20]
  34636. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34637. 800f254: 6979 ldr r1, [r7, #20]
  34638. 800f256: 69ba ldr r2, [r7, #24]
  34639. 800f258: e841 2300 strex r3, r2, [r1]
  34640. 800f25c: 613b str r3, [r7, #16]
  34641. return(result);
  34642. 800f25e: 693b ldr r3, [r7, #16]
  34643. 800f260: 2b00 cmp r3, #0
  34644. 800f262: d1e6 bne.n 800f232 <UART_EndRxTransfer+0x76>
  34645. }
  34646. /* At end of Rx process, restore huart->RxState to Ready */
  34647. huart->RxState = HAL_UART_STATE_READY;
  34648. 800f264: 687b ldr r3, [r7, #4]
  34649. 800f266: 2220 movs r2, #32
  34650. 800f268: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  34651. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  34652. 800f26c: 687b ldr r3, [r7, #4]
  34653. 800f26e: 2200 movs r2, #0
  34654. 800f270: 66da str r2, [r3, #108] @ 0x6c
  34655. /* Reset RxIsr function pointer */
  34656. huart->RxISR = NULL;
  34657. 800f272: 687b ldr r3, [r7, #4]
  34658. 800f274: 2200 movs r2, #0
  34659. 800f276: 675a str r2, [r3, #116] @ 0x74
  34660. }
  34661. 800f278: bf00 nop
  34662. 800f27a: 3754 adds r7, #84 @ 0x54
  34663. 800f27c: 46bd mov sp, r7
  34664. 800f27e: f85d 7b04 ldr.w r7, [sp], #4
  34665. 800f282: 4770 bx lr
  34666. 800f284: effffffe .word 0xeffffffe
  34667. 0800f288 <UART_DMAAbortOnError>:
  34668. * (To be called at end of DMA Abort procedure following error occurrence).
  34669. * @param hdma DMA handle.
  34670. * @retval None
  34671. */
  34672. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  34673. {
  34674. 800f288: b580 push {r7, lr}
  34675. 800f28a: b084 sub sp, #16
  34676. 800f28c: af00 add r7, sp, #0
  34677. 800f28e: 6078 str r0, [r7, #4]
  34678. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent);
  34679. 800f290: 687b ldr r3, [r7, #4]
  34680. 800f292: 6b9b ldr r3, [r3, #56] @ 0x38
  34681. 800f294: 60fb str r3, [r7, #12]
  34682. huart->RxXferCount = 0U;
  34683. 800f296: 68fb ldr r3, [r7, #12]
  34684. 800f298: 2200 movs r2, #0
  34685. 800f29a: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  34686. huart->TxXferCount = 0U;
  34687. 800f29e: 68fb ldr r3, [r7, #12]
  34688. 800f2a0: 2200 movs r2, #0
  34689. 800f2a2: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  34690. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  34691. /*Call registered error callback*/
  34692. huart->ErrorCallback(huart);
  34693. #else
  34694. /*Call legacy weak error callback*/
  34695. HAL_UART_ErrorCallback(huart);
  34696. 800f2a6: 68f8 ldr r0, [r7, #12]
  34697. 800f2a8: f7fe ff3a bl 800e120 <HAL_UART_ErrorCallback>
  34698. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  34699. }
  34700. 800f2ac: bf00 nop
  34701. 800f2ae: 3710 adds r7, #16
  34702. 800f2b0: 46bd mov sp, r7
  34703. 800f2b2: bd80 pop {r7, pc}
  34704. 0800f2b4 <UART_TxISR_8BIT>:
  34705. * interruptions have been enabled by HAL_UART_Transmit_IT().
  34706. * @param huart UART handle.
  34707. * @retval None
  34708. */
  34709. static void UART_TxISR_8BIT(UART_HandleTypeDef *huart)
  34710. {
  34711. 800f2b4: b480 push {r7}
  34712. 800f2b6: b08f sub sp, #60 @ 0x3c
  34713. 800f2b8: af00 add r7, sp, #0
  34714. 800f2ba: 6078 str r0, [r7, #4]
  34715. /* Check that a Tx process is ongoing */
  34716. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  34717. 800f2bc: 687b ldr r3, [r7, #4]
  34718. 800f2be: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  34719. 800f2c2: 2b21 cmp r3, #33 @ 0x21
  34720. 800f2c4: d14c bne.n 800f360 <UART_TxISR_8BIT+0xac>
  34721. {
  34722. if (huart->TxXferCount == 0U)
  34723. 800f2c6: 687b ldr r3, [r7, #4]
  34724. 800f2c8: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  34725. 800f2cc: b29b uxth r3, r3
  34726. 800f2ce: 2b00 cmp r3, #0
  34727. 800f2d0: d132 bne.n 800f338 <UART_TxISR_8BIT+0x84>
  34728. {
  34729. /* Disable the UART Transmit Data Register Empty Interrupt */
  34730. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  34731. 800f2d2: 687b ldr r3, [r7, #4]
  34732. 800f2d4: 681b ldr r3, [r3, #0]
  34733. 800f2d6: 623b str r3, [r7, #32]
  34734. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34735. 800f2d8: 6a3b ldr r3, [r7, #32]
  34736. 800f2da: e853 3f00 ldrex r3, [r3]
  34737. 800f2de: 61fb str r3, [r7, #28]
  34738. return(result);
  34739. 800f2e0: 69fb ldr r3, [r7, #28]
  34740. 800f2e2: f023 0380 bic.w r3, r3, #128 @ 0x80
  34741. 800f2e6: 637b str r3, [r7, #52] @ 0x34
  34742. 800f2e8: 687b ldr r3, [r7, #4]
  34743. 800f2ea: 681b ldr r3, [r3, #0]
  34744. 800f2ec: 461a mov r2, r3
  34745. 800f2ee: 6b7b ldr r3, [r7, #52] @ 0x34
  34746. 800f2f0: 62fb str r3, [r7, #44] @ 0x2c
  34747. 800f2f2: 62ba str r2, [r7, #40] @ 0x28
  34748. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34749. 800f2f4: 6ab9 ldr r1, [r7, #40] @ 0x28
  34750. 800f2f6: 6afa ldr r2, [r7, #44] @ 0x2c
  34751. 800f2f8: e841 2300 strex r3, r2, [r1]
  34752. 800f2fc: 627b str r3, [r7, #36] @ 0x24
  34753. return(result);
  34754. 800f2fe: 6a7b ldr r3, [r7, #36] @ 0x24
  34755. 800f300: 2b00 cmp r3, #0
  34756. 800f302: d1e6 bne.n 800f2d2 <UART_TxISR_8BIT+0x1e>
  34757. /* Enable the UART Transmit Complete Interrupt */
  34758. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  34759. 800f304: 687b ldr r3, [r7, #4]
  34760. 800f306: 681b ldr r3, [r3, #0]
  34761. 800f308: 60fb str r3, [r7, #12]
  34762. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34763. 800f30a: 68fb ldr r3, [r7, #12]
  34764. 800f30c: e853 3f00 ldrex r3, [r3]
  34765. 800f310: 60bb str r3, [r7, #8]
  34766. return(result);
  34767. 800f312: 68bb ldr r3, [r7, #8]
  34768. 800f314: f043 0340 orr.w r3, r3, #64 @ 0x40
  34769. 800f318: 633b str r3, [r7, #48] @ 0x30
  34770. 800f31a: 687b ldr r3, [r7, #4]
  34771. 800f31c: 681b ldr r3, [r3, #0]
  34772. 800f31e: 461a mov r2, r3
  34773. 800f320: 6b3b ldr r3, [r7, #48] @ 0x30
  34774. 800f322: 61bb str r3, [r7, #24]
  34775. 800f324: 617a str r2, [r7, #20]
  34776. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34777. 800f326: 6979 ldr r1, [r7, #20]
  34778. 800f328: 69ba ldr r2, [r7, #24]
  34779. 800f32a: e841 2300 strex r3, r2, [r1]
  34780. 800f32e: 613b str r3, [r7, #16]
  34781. return(result);
  34782. 800f330: 693b ldr r3, [r7, #16]
  34783. 800f332: 2b00 cmp r3, #0
  34784. 800f334: d1e6 bne.n 800f304 <UART_TxISR_8BIT+0x50>
  34785. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  34786. huart->pTxBuffPtr++;
  34787. huart->TxXferCount--;
  34788. }
  34789. }
  34790. }
  34791. 800f336: e013 b.n 800f360 <UART_TxISR_8BIT+0xac>
  34792. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  34793. 800f338: 687b ldr r3, [r7, #4]
  34794. 800f33a: 6d1b ldr r3, [r3, #80] @ 0x50
  34795. 800f33c: 781a ldrb r2, [r3, #0]
  34796. 800f33e: 687b ldr r3, [r7, #4]
  34797. 800f340: 681b ldr r3, [r3, #0]
  34798. 800f342: 629a str r2, [r3, #40] @ 0x28
  34799. huart->pTxBuffPtr++;
  34800. 800f344: 687b ldr r3, [r7, #4]
  34801. 800f346: 6d1b ldr r3, [r3, #80] @ 0x50
  34802. 800f348: 1c5a adds r2, r3, #1
  34803. 800f34a: 687b ldr r3, [r7, #4]
  34804. 800f34c: 651a str r2, [r3, #80] @ 0x50
  34805. huart->TxXferCount--;
  34806. 800f34e: 687b ldr r3, [r7, #4]
  34807. 800f350: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  34808. 800f354: b29b uxth r3, r3
  34809. 800f356: 3b01 subs r3, #1
  34810. 800f358: b29a uxth r2, r3
  34811. 800f35a: 687b ldr r3, [r7, #4]
  34812. 800f35c: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  34813. }
  34814. 800f360: bf00 nop
  34815. 800f362: 373c adds r7, #60 @ 0x3c
  34816. 800f364: 46bd mov sp, r7
  34817. 800f366: f85d 7b04 ldr.w r7, [sp], #4
  34818. 800f36a: 4770 bx lr
  34819. 0800f36c <UART_TxISR_16BIT>:
  34820. * interruptions have been enabled by HAL_UART_Transmit_IT().
  34821. * @param huart UART handle.
  34822. * @retval None
  34823. */
  34824. static void UART_TxISR_16BIT(UART_HandleTypeDef *huart)
  34825. {
  34826. 800f36c: b480 push {r7}
  34827. 800f36e: b091 sub sp, #68 @ 0x44
  34828. 800f370: af00 add r7, sp, #0
  34829. 800f372: 6078 str r0, [r7, #4]
  34830. const uint16_t *tmp;
  34831. /* Check that a Tx process is ongoing */
  34832. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  34833. 800f374: 687b ldr r3, [r7, #4]
  34834. 800f376: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  34835. 800f37a: 2b21 cmp r3, #33 @ 0x21
  34836. 800f37c: d151 bne.n 800f422 <UART_TxISR_16BIT+0xb6>
  34837. {
  34838. if (huart->TxXferCount == 0U)
  34839. 800f37e: 687b ldr r3, [r7, #4]
  34840. 800f380: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  34841. 800f384: b29b uxth r3, r3
  34842. 800f386: 2b00 cmp r3, #0
  34843. 800f388: d132 bne.n 800f3f0 <UART_TxISR_16BIT+0x84>
  34844. {
  34845. /* Disable the UART Transmit Data Register Empty Interrupt */
  34846. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  34847. 800f38a: 687b ldr r3, [r7, #4]
  34848. 800f38c: 681b ldr r3, [r3, #0]
  34849. 800f38e: 627b str r3, [r7, #36] @ 0x24
  34850. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34851. 800f390: 6a7b ldr r3, [r7, #36] @ 0x24
  34852. 800f392: e853 3f00 ldrex r3, [r3]
  34853. 800f396: 623b str r3, [r7, #32]
  34854. return(result);
  34855. 800f398: 6a3b ldr r3, [r7, #32]
  34856. 800f39a: f023 0380 bic.w r3, r3, #128 @ 0x80
  34857. 800f39e: 63bb str r3, [r7, #56] @ 0x38
  34858. 800f3a0: 687b ldr r3, [r7, #4]
  34859. 800f3a2: 681b ldr r3, [r3, #0]
  34860. 800f3a4: 461a mov r2, r3
  34861. 800f3a6: 6bbb ldr r3, [r7, #56] @ 0x38
  34862. 800f3a8: 633b str r3, [r7, #48] @ 0x30
  34863. 800f3aa: 62fa str r2, [r7, #44] @ 0x2c
  34864. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34865. 800f3ac: 6af9 ldr r1, [r7, #44] @ 0x2c
  34866. 800f3ae: 6b3a ldr r2, [r7, #48] @ 0x30
  34867. 800f3b0: e841 2300 strex r3, r2, [r1]
  34868. 800f3b4: 62bb str r3, [r7, #40] @ 0x28
  34869. return(result);
  34870. 800f3b6: 6abb ldr r3, [r7, #40] @ 0x28
  34871. 800f3b8: 2b00 cmp r3, #0
  34872. 800f3ba: d1e6 bne.n 800f38a <UART_TxISR_16BIT+0x1e>
  34873. /* Enable the UART Transmit Complete Interrupt */
  34874. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  34875. 800f3bc: 687b ldr r3, [r7, #4]
  34876. 800f3be: 681b ldr r3, [r3, #0]
  34877. 800f3c0: 613b str r3, [r7, #16]
  34878. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34879. 800f3c2: 693b ldr r3, [r7, #16]
  34880. 800f3c4: e853 3f00 ldrex r3, [r3]
  34881. 800f3c8: 60fb str r3, [r7, #12]
  34882. return(result);
  34883. 800f3ca: 68fb ldr r3, [r7, #12]
  34884. 800f3cc: f043 0340 orr.w r3, r3, #64 @ 0x40
  34885. 800f3d0: 637b str r3, [r7, #52] @ 0x34
  34886. 800f3d2: 687b ldr r3, [r7, #4]
  34887. 800f3d4: 681b ldr r3, [r3, #0]
  34888. 800f3d6: 461a mov r2, r3
  34889. 800f3d8: 6b7b ldr r3, [r7, #52] @ 0x34
  34890. 800f3da: 61fb str r3, [r7, #28]
  34891. 800f3dc: 61ba str r2, [r7, #24]
  34892. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34893. 800f3de: 69b9 ldr r1, [r7, #24]
  34894. 800f3e0: 69fa ldr r2, [r7, #28]
  34895. 800f3e2: e841 2300 strex r3, r2, [r1]
  34896. 800f3e6: 617b str r3, [r7, #20]
  34897. return(result);
  34898. 800f3e8: 697b ldr r3, [r7, #20]
  34899. 800f3ea: 2b00 cmp r3, #0
  34900. 800f3ec: d1e6 bne.n 800f3bc <UART_TxISR_16BIT+0x50>
  34901. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  34902. huart->pTxBuffPtr += 2U;
  34903. huart->TxXferCount--;
  34904. }
  34905. }
  34906. }
  34907. 800f3ee: e018 b.n 800f422 <UART_TxISR_16BIT+0xb6>
  34908. tmp = (const uint16_t *) huart->pTxBuffPtr;
  34909. 800f3f0: 687b ldr r3, [r7, #4]
  34910. 800f3f2: 6d1b ldr r3, [r3, #80] @ 0x50
  34911. 800f3f4: 63fb str r3, [r7, #60] @ 0x3c
  34912. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  34913. 800f3f6: 6bfb ldr r3, [r7, #60] @ 0x3c
  34914. 800f3f8: 881b ldrh r3, [r3, #0]
  34915. 800f3fa: 461a mov r2, r3
  34916. 800f3fc: 687b ldr r3, [r7, #4]
  34917. 800f3fe: 681b ldr r3, [r3, #0]
  34918. 800f400: f3c2 0208 ubfx r2, r2, #0, #9
  34919. 800f404: 629a str r2, [r3, #40] @ 0x28
  34920. huart->pTxBuffPtr += 2U;
  34921. 800f406: 687b ldr r3, [r7, #4]
  34922. 800f408: 6d1b ldr r3, [r3, #80] @ 0x50
  34923. 800f40a: 1c9a adds r2, r3, #2
  34924. 800f40c: 687b ldr r3, [r7, #4]
  34925. 800f40e: 651a str r2, [r3, #80] @ 0x50
  34926. huart->TxXferCount--;
  34927. 800f410: 687b ldr r3, [r7, #4]
  34928. 800f412: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  34929. 800f416: b29b uxth r3, r3
  34930. 800f418: 3b01 subs r3, #1
  34931. 800f41a: b29a uxth r2, r3
  34932. 800f41c: 687b ldr r3, [r7, #4]
  34933. 800f41e: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  34934. }
  34935. 800f422: bf00 nop
  34936. 800f424: 3744 adds r7, #68 @ 0x44
  34937. 800f426: 46bd mov sp, r7
  34938. 800f428: f85d 7b04 ldr.w r7, [sp], #4
  34939. 800f42c: 4770 bx lr
  34940. 0800f42e <UART_TxISR_8BIT_FIFOEN>:
  34941. * interruptions have been enabled by HAL_UART_Transmit_IT().
  34942. * @param huart UART handle.
  34943. * @retval None
  34944. */
  34945. static void UART_TxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  34946. {
  34947. 800f42e: b480 push {r7}
  34948. 800f430: b091 sub sp, #68 @ 0x44
  34949. 800f432: af00 add r7, sp, #0
  34950. 800f434: 6078 str r0, [r7, #4]
  34951. uint16_t nb_tx_data;
  34952. /* Check that a Tx process is ongoing */
  34953. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  34954. 800f436: 687b ldr r3, [r7, #4]
  34955. 800f438: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  34956. 800f43c: 2b21 cmp r3, #33 @ 0x21
  34957. 800f43e: d160 bne.n 800f502 <UART_TxISR_8BIT_FIFOEN+0xd4>
  34958. {
  34959. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  34960. 800f440: 687b ldr r3, [r7, #4]
  34961. 800f442: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  34962. 800f446: 87fb strh r3, [r7, #62] @ 0x3e
  34963. 800f448: e057 b.n 800f4fa <UART_TxISR_8BIT_FIFOEN+0xcc>
  34964. {
  34965. if (huart->TxXferCount == 0U)
  34966. 800f44a: 687b ldr r3, [r7, #4]
  34967. 800f44c: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  34968. 800f450: b29b uxth r3, r3
  34969. 800f452: 2b00 cmp r3, #0
  34970. 800f454: d133 bne.n 800f4be <UART_TxISR_8BIT_FIFOEN+0x90>
  34971. {
  34972. /* Disable the TX FIFO threshold interrupt */
  34973. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  34974. 800f456: 687b ldr r3, [r7, #4]
  34975. 800f458: 681b ldr r3, [r3, #0]
  34976. 800f45a: 3308 adds r3, #8
  34977. 800f45c: 627b str r3, [r7, #36] @ 0x24
  34978. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34979. 800f45e: 6a7b ldr r3, [r7, #36] @ 0x24
  34980. 800f460: e853 3f00 ldrex r3, [r3]
  34981. 800f464: 623b str r3, [r7, #32]
  34982. return(result);
  34983. 800f466: 6a3b ldr r3, [r7, #32]
  34984. 800f468: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  34985. 800f46c: 63bb str r3, [r7, #56] @ 0x38
  34986. 800f46e: 687b ldr r3, [r7, #4]
  34987. 800f470: 681b ldr r3, [r3, #0]
  34988. 800f472: 3308 adds r3, #8
  34989. 800f474: 6bba ldr r2, [r7, #56] @ 0x38
  34990. 800f476: 633a str r2, [r7, #48] @ 0x30
  34991. 800f478: 62fb str r3, [r7, #44] @ 0x2c
  34992. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34993. 800f47a: 6af9 ldr r1, [r7, #44] @ 0x2c
  34994. 800f47c: 6b3a ldr r2, [r7, #48] @ 0x30
  34995. 800f47e: e841 2300 strex r3, r2, [r1]
  34996. 800f482: 62bb str r3, [r7, #40] @ 0x28
  34997. return(result);
  34998. 800f484: 6abb ldr r3, [r7, #40] @ 0x28
  34999. 800f486: 2b00 cmp r3, #0
  35000. 800f488: d1e5 bne.n 800f456 <UART_TxISR_8BIT_FIFOEN+0x28>
  35001. /* Enable the UART Transmit Complete Interrupt */
  35002. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  35003. 800f48a: 687b ldr r3, [r7, #4]
  35004. 800f48c: 681b ldr r3, [r3, #0]
  35005. 800f48e: 613b str r3, [r7, #16]
  35006. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35007. 800f490: 693b ldr r3, [r7, #16]
  35008. 800f492: e853 3f00 ldrex r3, [r3]
  35009. 800f496: 60fb str r3, [r7, #12]
  35010. return(result);
  35011. 800f498: 68fb ldr r3, [r7, #12]
  35012. 800f49a: f043 0340 orr.w r3, r3, #64 @ 0x40
  35013. 800f49e: 637b str r3, [r7, #52] @ 0x34
  35014. 800f4a0: 687b ldr r3, [r7, #4]
  35015. 800f4a2: 681b ldr r3, [r3, #0]
  35016. 800f4a4: 461a mov r2, r3
  35017. 800f4a6: 6b7b ldr r3, [r7, #52] @ 0x34
  35018. 800f4a8: 61fb str r3, [r7, #28]
  35019. 800f4aa: 61ba str r2, [r7, #24]
  35020. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35021. 800f4ac: 69b9 ldr r1, [r7, #24]
  35022. 800f4ae: 69fa ldr r2, [r7, #28]
  35023. 800f4b0: e841 2300 strex r3, r2, [r1]
  35024. 800f4b4: 617b str r3, [r7, #20]
  35025. return(result);
  35026. 800f4b6: 697b ldr r3, [r7, #20]
  35027. 800f4b8: 2b00 cmp r3, #0
  35028. 800f4ba: d1e6 bne.n 800f48a <UART_TxISR_8BIT_FIFOEN+0x5c>
  35029. break; /* force exit loop */
  35030. 800f4bc: e021 b.n 800f502 <UART_TxISR_8BIT_FIFOEN+0xd4>
  35031. }
  35032. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  35033. 800f4be: 687b ldr r3, [r7, #4]
  35034. 800f4c0: 681b ldr r3, [r3, #0]
  35035. 800f4c2: 69db ldr r3, [r3, #28]
  35036. 800f4c4: f003 0380 and.w r3, r3, #128 @ 0x80
  35037. 800f4c8: 2b00 cmp r3, #0
  35038. 800f4ca: d013 beq.n 800f4f4 <UART_TxISR_8BIT_FIFOEN+0xc6>
  35039. {
  35040. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  35041. 800f4cc: 687b ldr r3, [r7, #4]
  35042. 800f4ce: 6d1b ldr r3, [r3, #80] @ 0x50
  35043. 800f4d0: 781a ldrb r2, [r3, #0]
  35044. 800f4d2: 687b ldr r3, [r7, #4]
  35045. 800f4d4: 681b ldr r3, [r3, #0]
  35046. 800f4d6: 629a str r2, [r3, #40] @ 0x28
  35047. huart->pTxBuffPtr++;
  35048. 800f4d8: 687b ldr r3, [r7, #4]
  35049. 800f4da: 6d1b ldr r3, [r3, #80] @ 0x50
  35050. 800f4dc: 1c5a adds r2, r3, #1
  35051. 800f4de: 687b ldr r3, [r7, #4]
  35052. 800f4e0: 651a str r2, [r3, #80] @ 0x50
  35053. huart->TxXferCount--;
  35054. 800f4e2: 687b ldr r3, [r7, #4]
  35055. 800f4e4: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  35056. 800f4e8: b29b uxth r3, r3
  35057. 800f4ea: 3b01 subs r3, #1
  35058. 800f4ec: b29a uxth r2, r3
  35059. 800f4ee: 687b ldr r3, [r7, #4]
  35060. 800f4f0: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  35061. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  35062. 800f4f4: 8ffb ldrh r3, [r7, #62] @ 0x3e
  35063. 800f4f6: 3b01 subs r3, #1
  35064. 800f4f8: 87fb strh r3, [r7, #62] @ 0x3e
  35065. 800f4fa: 8ffb ldrh r3, [r7, #62] @ 0x3e
  35066. 800f4fc: 2b00 cmp r3, #0
  35067. 800f4fe: d1a4 bne.n 800f44a <UART_TxISR_8BIT_FIFOEN+0x1c>
  35068. {
  35069. /* Nothing to do */
  35070. }
  35071. }
  35072. }
  35073. }
  35074. 800f500: e7ff b.n 800f502 <UART_TxISR_8BIT_FIFOEN+0xd4>
  35075. 800f502: bf00 nop
  35076. 800f504: 3744 adds r7, #68 @ 0x44
  35077. 800f506: 46bd mov sp, r7
  35078. 800f508: f85d 7b04 ldr.w r7, [sp], #4
  35079. 800f50c: 4770 bx lr
  35080. 0800f50e <UART_TxISR_16BIT_FIFOEN>:
  35081. * interruptions have been enabled by HAL_UART_Transmit_IT().
  35082. * @param huart UART handle.
  35083. * @retval None
  35084. */
  35085. static void UART_TxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  35086. {
  35087. 800f50e: b480 push {r7}
  35088. 800f510: b091 sub sp, #68 @ 0x44
  35089. 800f512: af00 add r7, sp, #0
  35090. 800f514: 6078 str r0, [r7, #4]
  35091. const uint16_t *tmp;
  35092. uint16_t nb_tx_data;
  35093. /* Check that a Tx process is ongoing */
  35094. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  35095. 800f516: 687b ldr r3, [r7, #4]
  35096. 800f518: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  35097. 800f51c: 2b21 cmp r3, #33 @ 0x21
  35098. 800f51e: d165 bne.n 800f5ec <UART_TxISR_16BIT_FIFOEN+0xde>
  35099. {
  35100. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  35101. 800f520: 687b ldr r3, [r7, #4]
  35102. 800f522: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  35103. 800f526: 87fb strh r3, [r7, #62] @ 0x3e
  35104. 800f528: e05c b.n 800f5e4 <UART_TxISR_16BIT_FIFOEN+0xd6>
  35105. {
  35106. if (huart->TxXferCount == 0U)
  35107. 800f52a: 687b ldr r3, [r7, #4]
  35108. 800f52c: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  35109. 800f530: b29b uxth r3, r3
  35110. 800f532: 2b00 cmp r3, #0
  35111. 800f534: d133 bne.n 800f59e <UART_TxISR_16BIT_FIFOEN+0x90>
  35112. {
  35113. /* Disable the TX FIFO threshold interrupt */
  35114. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  35115. 800f536: 687b ldr r3, [r7, #4]
  35116. 800f538: 681b ldr r3, [r3, #0]
  35117. 800f53a: 3308 adds r3, #8
  35118. 800f53c: 623b str r3, [r7, #32]
  35119. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35120. 800f53e: 6a3b ldr r3, [r7, #32]
  35121. 800f540: e853 3f00 ldrex r3, [r3]
  35122. 800f544: 61fb str r3, [r7, #28]
  35123. return(result);
  35124. 800f546: 69fb ldr r3, [r7, #28]
  35125. 800f548: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  35126. 800f54c: 637b str r3, [r7, #52] @ 0x34
  35127. 800f54e: 687b ldr r3, [r7, #4]
  35128. 800f550: 681b ldr r3, [r3, #0]
  35129. 800f552: 3308 adds r3, #8
  35130. 800f554: 6b7a ldr r2, [r7, #52] @ 0x34
  35131. 800f556: 62fa str r2, [r7, #44] @ 0x2c
  35132. 800f558: 62bb str r3, [r7, #40] @ 0x28
  35133. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35134. 800f55a: 6ab9 ldr r1, [r7, #40] @ 0x28
  35135. 800f55c: 6afa ldr r2, [r7, #44] @ 0x2c
  35136. 800f55e: e841 2300 strex r3, r2, [r1]
  35137. 800f562: 627b str r3, [r7, #36] @ 0x24
  35138. return(result);
  35139. 800f564: 6a7b ldr r3, [r7, #36] @ 0x24
  35140. 800f566: 2b00 cmp r3, #0
  35141. 800f568: d1e5 bne.n 800f536 <UART_TxISR_16BIT_FIFOEN+0x28>
  35142. /* Enable the UART Transmit Complete Interrupt */
  35143. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  35144. 800f56a: 687b ldr r3, [r7, #4]
  35145. 800f56c: 681b ldr r3, [r3, #0]
  35146. 800f56e: 60fb str r3, [r7, #12]
  35147. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35148. 800f570: 68fb ldr r3, [r7, #12]
  35149. 800f572: e853 3f00 ldrex r3, [r3]
  35150. 800f576: 60bb str r3, [r7, #8]
  35151. return(result);
  35152. 800f578: 68bb ldr r3, [r7, #8]
  35153. 800f57a: f043 0340 orr.w r3, r3, #64 @ 0x40
  35154. 800f57e: 633b str r3, [r7, #48] @ 0x30
  35155. 800f580: 687b ldr r3, [r7, #4]
  35156. 800f582: 681b ldr r3, [r3, #0]
  35157. 800f584: 461a mov r2, r3
  35158. 800f586: 6b3b ldr r3, [r7, #48] @ 0x30
  35159. 800f588: 61bb str r3, [r7, #24]
  35160. 800f58a: 617a str r2, [r7, #20]
  35161. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35162. 800f58c: 6979 ldr r1, [r7, #20]
  35163. 800f58e: 69ba ldr r2, [r7, #24]
  35164. 800f590: e841 2300 strex r3, r2, [r1]
  35165. 800f594: 613b str r3, [r7, #16]
  35166. return(result);
  35167. 800f596: 693b ldr r3, [r7, #16]
  35168. 800f598: 2b00 cmp r3, #0
  35169. 800f59a: d1e6 bne.n 800f56a <UART_TxISR_16BIT_FIFOEN+0x5c>
  35170. break; /* force exit loop */
  35171. 800f59c: e026 b.n 800f5ec <UART_TxISR_16BIT_FIFOEN+0xde>
  35172. }
  35173. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  35174. 800f59e: 687b ldr r3, [r7, #4]
  35175. 800f5a0: 681b ldr r3, [r3, #0]
  35176. 800f5a2: 69db ldr r3, [r3, #28]
  35177. 800f5a4: f003 0380 and.w r3, r3, #128 @ 0x80
  35178. 800f5a8: 2b00 cmp r3, #0
  35179. 800f5aa: d018 beq.n 800f5de <UART_TxISR_16BIT_FIFOEN+0xd0>
  35180. {
  35181. tmp = (const uint16_t *) huart->pTxBuffPtr;
  35182. 800f5ac: 687b ldr r3, [r7, #4]
  35183. 800f5ae: 6d1b ldr r3, [r3, #80] @ 0x50
  35184. 800f5b0: 63bb str r3, [r7, #56] @ 0x38
  35185. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  35186. 800f5b2: 6bbb ldr r3, [r7, #56] @ 0x38
  35187. 800f5b4: 881b ldrh r3, [r3, #0]
  35188. 800f5b6: 461a mov r2, r3
  35189. 800f5b8: 687b ldr r3, [r7, #4]
  35190. 800f5ba: 681b ldr r3, [r3, #0]
  35191. 800f5bc: f3c2 0208 ubfx r2, r2, #0, #9
  35192. 800f5c0: 629a str r2, [r3, #40] @ 0x28
  35193. huart->pTxBuffPtr += 2U;
  35194. 800f5c2: 687b ldr r3, [r7, #4]
  35195. 800f5c4: 6d1b ldr r3, [r3, #80] @ 0x50
  35196. 800f5c6: 1c9a adds r2, r3, #2
  35197. 800f5c8: 687b ldr r3, [r7, #4]
  35198. 800f5ca: 651a str r2, [r3, #80] @ 0x50
  35199. huart->TxXferCount--;
  35200. 800f5cc: 687b ldr r3, [r7, #4]
  35201. 800f5ce: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  35202. 800f5d2: b29b uxth r3, r3
  35203. 800f5d4: 3b01 subs r3, #1
  35204. 800f5d6: b29a uxth r2, r3
  35205. 800f5d8: 687b ldr r3, [r7, #4]
  35206. 800f5da: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  35207. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  35208. 800f5de: 8ffb ldrh r3, [r7, #62] @ 0x3e
  35209. 800f5e0: 3b01 subs r3, #1
  35210. 800f5e2: 87fb strh r3, [r7, #62] @ 0x3e
  35211. 800f5e4: 8ffb ldrh r3, [r7, #62] @ 0x3e
  35212. 800f5e6: 2b00 cmp r3, #0
  35213. 800f5e8: d19f bne.n 800f52a <UART_TxISR_16BIT_FIFOEN+0x1c>
  35214. {
  35215. /* Nothing to do */
  35216. }
  35217. }
  35218. }
  35219. }
  35220. 800f5ea: e7ff b.n 800f5ec <UART_TxISR_16BIT_FIFOEN+0xde>
  35221. 800f5ec: bf00 nop
  35222. 800f5ee: 3744 adds r7, #68 @ 0x44
  35223. 800f5f0: 46bd mov sp, r7
  35224. 800f5f2: f85d 7b04 ldr.w r7, [sp], #4
  35225. 800f5f6: 4770 bx lr
  35226. 0800f5f8 <UART_EndTransmit_IT>:
  35227. * @param huart pointer to a UART_HandleTypeDef structure that contains
  35228. * the configuration information for the specified UART module.
  35229. * @retval None
  35230. */
  35231. static void UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  35232. {
  35233. 800f5f8: b580 push {r7, lr}
  35234. 800f5fa: b088 sub sp, #32
  35235. 800f5fc: af00 add r7, sp, #0
  35236. 800f5fe: 6078 str r0, [r7, #4]
  35237. /* Disable the UART Transmit Complete Interrupt */
  35238. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  35239. 800f600: 687b ldr r3, [r7, #4]
  35240. 800f602: 681b ldr r3, [r3, #0]
  35241. 800f604: 60fb str r3, [r7, #12]
  35242. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35243. 800f606: 68fb ldr r3, [r7, #12]
  35244. 800f608: e853 3f00 ldrex r3, [r3]
  35245. 800f60c: 60bb str r3, [r7, #8]
  35246. return(result);
  35247. 800f60e: 68bb ldr r3, [r7, #8]
  35248. 800f610: f023 0340 bic.w r3, r3, #64 @ 0x40
  35249. 800f614: 61fb str r3, [r7, #28]
  35250. 800f616: 687b ldr r3, [r7, #4]
  35251. 800f618: 681b ldr r3, [r3, #0]
  35252. 800f61a: 461a mov r2, r3
  35253. 800f61c: 69fb ldr r3, [r7, #28]
  35254. 800f61e: 61bb str r3, [r7, #24]
  35255. 800f620: 617a str r2, [r7, #20]
  35256. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35257. 800f622: 6979 ldr r1, [r7, #20]
  35258. 800f624: 69ba ldr r2, [r7, #24]
  35259. 800f626: e841 2300 strex r3, r2, [r1]
  35260. 800f62a: 613b str r3, [r7, #16]
  35261. return(result);
  35262. 800f62c: 693b ldr r3, [r7, #16]
  35263. 800f62e: 2b00 cmp r3, #0
  35264. 800f630: d1e6 bne.n 800f600 <UART_EndTransmit_IT+0x8>
  35265. /* Tx process is ended, restore huart->gState to Ready */
  35266. huart->gState = HAL_UART_STATE_READY;
  35267. 800f632: 687b ldr r3, [r7, #4]
  35268. 800f634: 2220 movs r2, #32
  35269. 800f636: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  35270. /* Cleat TxISR function pointer */
  35271. huart->TxISR = NULL;
  35272. 800f63a: 687b ldr r3, [r7, #4]
  35273. 800f63c: 2200 movs r2, #0
  35274. 800f63e: 679a str r2, [r3, #120] @ 0x78
  35275. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  35276. /*Call registered Tx complete callback*/
  35277. huart->TxCpltCallback(huart);
  35278. #else
  35279. /*Call legacy weak Tx complete callback*/
  35280. HAL_UART_TxCpltCallback(huart);
  35281. 800f640: 6878 ldr r0, [r7, #4]
  35282. 800f642: f7f4 fff7 bl 8004634 <HAL_UART_TxCpltCallback>
  35283. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  35284. }
  35285. 800f646: bf00 nop
  35286. 800f648: 3720 adds r7, #32
  35287. 800f64a: 46bd mov sp, r7
  35288. 800f64c: bd80 pop {r7, pc}
  35289. ...
  35290. 0800f650 <UART_RxISR_8BIT>:
  35291. * @brief RX interrupt handler for 7 or 8 bits data word length .
  35292. * @param huart UART handle.
  35293. * @retval None
  35294. */
  35295. static void UART_RxISR_8BIT(UART_HandleTypeDef *huart)
  35296. {
  35297. 800f650: b580 push {r7, lr}
  35298. 800f652: b09c sub sp, #112 @ 0x70
  35299. 800f654: af00 add r7, sp, #0
  35300. 800f656: 6078 str r0, [r7, #4]
  35301. uint16_t uhMask = huart->Mask;
  35302. 800f658: 687b ldr r3, [r7, #4]
  35303. 800f65a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  35304. 800f65e: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  35305. uint16_t uhdata;
  35306. /* Check that a Rx process is ongoing */
  35307. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  35308. 800f662: 687b ldr r3, [r7, #4]
  35309. 800f664: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  35310. 800f668: 2b22 cmp r3, #34 @ 0x22
  35311. 800f66a: f040 80be bne.w 800f7ea <UART_RxISR_8BIT+0x19a>
  35312. {
  35313. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  35314. 800f66e: 687b ldr r3, [r7, #4]
  35315. 800f670: 681b ldr r3, [r3, #0]
  35316. 800f672: 6a5b ldr r3, [r3, #36] @ 0x24
  35317. 800f674: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  35318. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  35319. 800f678: f8b7 306c ldrh.w r3, [r7, #108] @ 0x6c
  35320. 800f67c: b2d9 uxtb r1, r3
  35321. 800f67e: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  35322. 800f682: b2da uxtb r2, r3
  35323. 800f684: 687b ldr r3, [r7, #4]
  35324. 800f686: 6d9b ldr r3, [r3, #88] @ 0x58
  35325. 800f688: 400a ands r2, r1
  35326. 800f68a: b2d2 uxtb r2, r2
  35327. 800f68c: 701a strb r2, [r3, #0]
  35328. huart->pRxBuffPtr++;
  35329. 800f68e: 687b ldr r3, [r7, #4]
  35330. 800f690: 6d9b ldr r3, [r3, #88] @ 0x58
  35331. 800f692: 1c5a adds r2, r3, #1
  35332. 800f694: 687b ldr r3, [r7, #4]
  35333. 800f696: 659a str r2, [r3, #88] @ 0x58
  35334. huart->RxXferCount--;
  35335. 800f698: 687b ldr r3, [r7, #4]
  35336. 800f69a: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35337. 800f69e: b29b uxth r3, r3
  35338. 800f6a0: 3b01 subs r3, #1
  35339. 800f6a2: b29a uxth r2, r3
  35340. 800f6a4: 687b ldr r3, [r7, #4]
  35341. 800f6a6: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  35342. if (huart->RxXferCount == 0U)
  35343. 800f6aa: 687b ldr r3, [r7, #4]
  35344. 800f6ac: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35345. 800f6b0: b29b uxth r3, r3
  35346. 800f6b2: 2b00 cmp r3, #0
  35347. 800f6b4: f040 80a1 bne.w 800f7fa <UART_RxISR_8BIT+0x1aa>
  35348. {
  35349. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  35350. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  35351. 800f6b8: 687b ldr r3, [r7, #4]
  35352. 800f6ba: 681b ldr r3, [r3, #0]
  35353. 800f6bc: 64fb str r3, [r7, #76] @ 0x4c
  35354. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35355. 800f6be: 6cfb ldr r3, [r7, #76] @ 0x4c
  35356. 800f6c0: e853 3f00 ldrex r3, [r3]
  35357. 800f6c4: 64bb str r3, [r7, #72] @ 0x48
  35358. return(result);
  35359. 800f6c6: 6cbb ldr r3, [r7, #72] @ 0x48
  35360. 800f6c8: f423 7390 bic.w r3, r3, #288 @ 0x120
  35361. 800f6cc: 66bb str r3, [r7, #104] @ 0x68
  35362. 800f6ce: 687b ldr r3, [r7, #4]
  35363. 800f6d0: 681b ldr r3, [r3, #0]
  35364. 800f6d2: 461a mov r2, r3
  35365. 800f6d4: 6ebb ldr r3, [r7, #104] @ 0x68
  35366. 800f6d6: 65bb str r3, [r7, #88] @ 0x58
  35367. 800f6d8: 657a str r2, [r7, #84] @ 0x54
  35368. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35369. 800f6da: 6d79 ldr r1, [r7, #84] @ 0x54
  35370. 800f6dc: 6dba ldr r2, [r7, #88] @ 0x58
  35371. 800f6de: e841 2300 strex r3, r2, [r1]
  35372. 800f6e2: 653b str r3, [r7, #80] @ 0x50
  35373. return(result);
  35374. 800f6e4: 6d3b ldr r3, [r7, #80] @ 0x50
  35375. 800f6e6: 2b00 cmp r3, #0
  35376. 800f6e8: d1e6 bne.n 800f6b8 <UART_RxISR_8BIT+0x68>
  35377. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  35378. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  35379. 800f6ea: 687b ldr r3, [r7, #4]
  35380. 800f6ec: 681b ldr r3, [r3, #0]
  35381. 800f6ee: 3308 adds r3, #8
  35382. 800f6f0: 63bb str r3, [r7, #56] @ 0x38
  35383. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35384. 800f6f2: 6bbb ldr r3, [r7, #56] @ 0x38
  35385. 800f6f4: e853 3f00 ldrex r3, [r3]
  35386. 800f6f8: 637b str r3, [r7, #52] @ 0x34
  35387. return(result);
  35388. 800f6fa: 6b7b ldr r3, [r7, #52] @ 0x34
  35389. 800f6fc: f023 0301 bic.w r3, r3, #1
  35390. 800f700: 667b str r3, [r7, #100] @ 0x64
  35391. 800f702: 687b ldr r3, [r7, #4]
  35392. 800f704: 681b ldr r3, [r3, #0]
  35393. 800f706: 3308 adds r3, #8
  35394. 800f708: 6e7a ldr r2, [r7, #100] @ 0x64
  35395. 800f70a: 647a str r2, [r7, #68] @ 0x44
  35396. 800f70c: 643b str r3, [r7, #64] @ 0x40
  35397. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35398. 800f70e: 6c39 ldr r1, [r7, #64] @ 0x40
  35399. 800f710: 6c7a ldr r2, [r7, #68] @ 0x44
  35400. 800f712: e841 2300 strex r3, r2, [r1]
  35401. 800f716: 63fb str r3, [r7, #60] @ 0x3c
  35402. return(result);
  35403. 800f718: 6bfb ldr r3, [r7, #60] @ 0x3c
  35404. 800f71a: 2b00 cmp r3, #0
  35405. 800f71c: d1e5 bne.n 800f6ea <UART_RxISR_8BIT+0x9a>
  35406. /* Rx process is completed, restore huart->RxState to Ready */
  35407. huart->RxState = HAL_UART_STATE_READY;
  35408. 800f71e: 687b ldr r3, [r7, #4]
  35409. 800f720: 2220 movs r2, #32
  35410. 800f722: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  35411. /* Clear RxISR function pointer */
  35412. huart->RxISR = NULL;
  35413. 800f726: 687b ldr r3, [r7, #4]
  35414. 800f728: 2200 movs r2, #0
  35415. 800f72a: 675a str r2, [r3, #116] @ 0x74
  35416. /* Initialize type of RxEvent to Transfer Complete */
  35417. huart->RxEventType = HAL_UART_RXEVENT_TC;
  35418. 800f72c: 687b ldr r3, [r7, #4]
  35419. 800f72e: 2200 movs r2, #0
  35420. 800f730: 671a str r2, [r3, #112] @ 0x70
  35421. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  35422. 800f732: 687b ldr r3, [r7, #4]
  35423. 800f734: 681b ldr r3, [r3, #0]
  35424. 800f736: 4a33 ldr r2, [pc, #204] @ (800f804 <UART_RxISR_8BIT+0x1b4>)
  35425. 800f738: 4293 cmp r3, r2
  35426. 800f73a: d01f beq.n 800f77c <UART_RxISR_8BIT+0x12c>
  35427. {
  35428. /* Check that USART RTOEN bit is set */
  35429. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  35430. 800f73c: 687b ldr r3, [r7, #4]
  35431. 800f73e: 681b ldr r3, [r3, #0]
  35432. 800f740: 685b ldr r3, [r3, #4]
  35433. 800f742: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  35434. 800f746: 2b00 cmp r3, #0
  35435. 800f748: d018 beq.n 800f77c <UART_RxISR_8BIT+0x12c>
  35436. {
  35437. /* Enable the UART Receiver Timeout Interrupt */
  35438. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  35439. 800f74a: 687b ldr r3, [r7, #4]
  35440. 800f74c: 681b ldr r3, [r3, #0]
  35441. 800f74e: 627b str r3, [r7, #36] @ 0x24
  35442. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35443. 800f750: 6a7b ldr r3, [r7, #36] @ 0x24
  35444. 800f752: e853 3f00 ldrex r3, [r3]
  35445. 800f756: 623b str r3, [r7, #32]
  35446. return(result);
  35447. 800f758: 6a3b ldr r3, [r7, #32]
  35448. 800f75a: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  35449. 800f75e: 663b str r3, [r7, #96] @ 0x60
  35450. 800f760: 687b ldr r3, [r7, #4]
  35451. 800f762: 681b ldr r3, [r3, #0]
  35452. 800f764: 461a mov r2, r3
  35453. 800f766: 6e3b ldr r3, [r7, #96] @ 0x60
  35454. 800f768: 633b str r3, [r7, #48] @ 0x30
  35455. 800f76a: 62fa str r2, [r7, #44] @ 0x2c
  35456. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35457. 800f76c: 6af9 ldr r1, [r7, #44] @ 0x2c
  35458. 800f76e: 6b3a ldr r2, [r7, #48] @ 0x30
  35459. 800f770: e841 2300 strex r3, r2, [r1]
  35460. 800f774: 62bb str r3, [r7, #40] @ 0x28
  35461. return(result);
  35462. 800f776: 6abb ldr r3, [r7, #40] @ 0x28
  35463. 800f778: 2b00 cmp r3, #0
  35464. 800f77a: d1e6 bne.n 800f74a <UART_RxISR_8BIT+0xfa>
  35465. }
  35466. }
  35467. /* Check current reception Mode :
  35468. If Reception till IDLE event has been selected : */
  35469. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  35470. 800f77c: 687b ldr r3, [r7, #4]
  35471. 800f77e: 6edb ldr r3, [r3, #108] @ 0x6c
  35472. 800f780: 2b01 cmp r3, #1
  35473. 800f782: d12e bne.n 800f7e2 <UART_RxISR_8BIT+0x192>
  35474. {
  35475. /* Set reception type to Standard */
  35476. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  35477. 800f784: 687b ldr r3, [r7, #4]
  35478. 800f786: 2200 movs r2, #0
  35479. 800f788: 66da str r2, [r3, #108] @ 0x6c
  35480. /* Disable IDLE interrupt */
  35481. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  35482. 800f78a: 687b ldr r3, [r7, #4]
  35483. 800f78c: 681b ldr r3, [r3, #0]
  35484. 800f78e: 613b str r3, [r7, #16]
  35485. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35486. 800f790: 693b ldr r3, [r7, #16]
  35487. 800f792: e853 3f00 ldrex r3, [r3]
  35488. 800f796: 60fb str r3, [r7, #12]
  35489. return(result);
  35490. 800f798: 68fb ldr r3, [r7, #12]
  35491. 800f79a: f023 0310 bic.w r3, r3, #16
  35492. 800f79e: 65fb str r3, [r7, #92] @ 0x5c
  35493. 800f7a0: 687b ldr r3, [r7, #4]
  35494. 800f7a2: 681b ldr r3, [r3, #0]
  35495. 800f7a4: 461a mov r2, r3
  35496. 800f7a6: 6dfb ldr r3, [r7, #92] @ 0x5c
  35497. 800f7a8: 61fb str r3, [r7, #28]
  35498. 800f7aa: 61ba str r2, [r7, #24]
  35499. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35500. 800f7ac: 69b9 ldr r1, [r7, #24]
  35501. 800f7ae: 69fa ldr r2, [r7, #28]
  35502. 800f7b0: e841 2300 strex r3, r2, [r1]
  35503. 800f7b4: 617b str r3, [r7, #20]
  35504. return(result);
  35505. 800f7b6: 697b ldr r3, [r7, #20]
  35506. 800f7b8: 2b00 cmp r3, #0
  35507. 800f7ba: d1e6 bne.n 800f78a <UART_RxISR_8BIT+0x13a>
  35508. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  35509. 800f7bc: 687b ldr r3, [r7, #4]
  35510. 800f7be: 681b ldr r3, [r3, #0]
  35511. 800f7c0: 69db ldr r3, [r3, #28]
  35512. 800f7c2: f003 0310 and.w r3, r3, #16
  35513. 800f7c6: 2b10 cmp r3, #16
  35514. 800f7c8: d103 bne.n 800f7d2 <UART_RxISR_8BIT+0x182>
  35515. {
  35516. /* Clear IDLE Flag */
  35517. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  35518. 800f7ca: 687b ldr r3, [r7, #4]
  35519. 800f7cc: 681b ldr r3, [r3, #0]
  35520. 800f7ce: 2210 movs r2, #16
  35521. 800f7d0: 621a str r2, [r3, #32]
  35522. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  35523. /*Call registered Rx Event callback*/
  35524. huart->RxEventCallback(huart, huart->RxXferSize);
  35525. #else
  35526. /*Call legacy weak Rx Event callback*/
  35527. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  35528. 800f7d2: 687b ldr r3, [r7, #4]
  35529. 800f7d4: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  35530. 800f7d8: 4619 mov r1, r3
  35531. 800f7da: 6878 ldr r0, [r7, #4]
  35532. 800f7dc: f7f4 fed0 bl 8004580 <HAL_UARTEx_RxEventCallback>
  35533. else
  35534. {
  35535. /* Clear RXNE interrupt flag */
  35536. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  35537. }
  35538. }
  35539. 800f7e0: e00b b.n 800f7fa <UART_RxISR_8BIT+0x1aa>
  35540. HAL_UART_RxCpltCallback(huart);
  35541. 800f7e2: 6878 ldr r0, [r7, #4]
  35542. 800f7e4: f7f4 fec2 bl 800456c <HAL_UART_RxCpltCallback>
  35543. }
  35544. 800f7e8: e007 b.n 800f7fa <UART_RxISR_8BIT+0x1aa>
  35545. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  35546. 800f7ea: 687b ldr r3, [r7, #4]
  35547. 800f7ec: 681b ldr r3, [r3, #0]
  35548. 800f7ee: 699a ldr r2, [r3, #24]
  35549. 800f7f0: 687b ldr r3, [r7, #4]
  35550. 800f7f2: 681b ldr r3, [r3, #0]
  35551. 800f7f4: f042 0208 orr.w r2, r2, #8
  35552. 800f7f8: 619a str r2, [r3, #24]
  35553. }
  35554. 800f7fa: bf00 nop
  35555. 800f7fc: 3770 adds r7, #112 @ 0x70
  35556. 800f7fe: 46bd mov sp, r7
  35557. 800f800: bd80 pop {r7, pc}
  35558. 800f802: bf00 nop
  35559. 800f804: 58000c00 .word 0x58000c00
  35560. 0800f808 <UART_RxISR_16BIT>:
  35561. * interruptions have been enabled by HAL_UART_Receive_IT()
  35562. * @param huart UART handle.
  35563. * @retval None
  35564. */
  35565. static void UART_RxISR_16BIT(UART_HandleTypeDef *huart)
  35566. {
  35567. 800f808: b580 push {r7, lr}
  35568. 800f80a: b09c sub sp, #112 @ 0x70
  35569. 800f80c: af00 add r7, sp, #0
  35570. 800f80e: 6078 str r0, [r7, #4]
  35571. uint16_t *tmp;
  35572. uint16_t uhMask = huart->Mask;
  35573. 800f810: 687b ldr r3, [r7, #4]
  35574. 800f812: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  35575. 800f816: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  35576. uint16_t uhdata;
  35577. /* Check that a Rx process is ongoing */
  35578. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  35579. 800f81a: 687b ldr r3, [r7, #4]
  35580. 800f81c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  35581. 800f820: 2b22 cmp r3, #34 @ 0x22
  35582. 800f822: f040 80be bne.w 800f9a2 <UART_RxISR_16BIT+0x19a>
  35583. {
  35584. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  35585. 800f826: 687b ldr r3, [r7, #4]
  35586. 800f828: 681b ldr r3, [r3, #0]
  35587. 800f82a: 6a5b ldr r3, [r3, #36] @ 0x24
  35588. 800f82c: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  35589. tmp = (uint16_t *) huart->pRxBuffPtr ;
  35590. 800f830: 687b ldr r3, [r7, #4]
  35591. 800f832: 6d9b ldr r3, [r3, #88] @ 0x58
  35592. 800f834: 66bb str r3, [r7, #104] @ 0x68
  35593. *tmp = (uint16_t)(uhdata & uhMask);
  35594. 800f836: f8b7 206c ldrh.w r2, [r7, #108] @ 0x6c
  35595. 800f83a: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  35596. 800f83e: 4013 ands r3, r2
  35597. 800f840: b29a uxth r2, r3
  35598. 800f842: 6ebb ldr r3, [r7, #104] @ 0x68
  35599. 800f844: 801a strh r2, [r3, #0]
  35600. huart->pRxBuffPtr += 2U;
  35601. 800f846: 687b ldr r3, [r7, #4]
  35602. 800f848: 6d9b ldr r3, [r3, #88] @ 0x58
  35603. 800f84a: 1c9a adds r2, r3, #2
  35604. 800f84c: 687b ldr r3, [r7, #4]
  35605. 800f84e: 659a str r2, [r3, #88] @ 0x58
  35606. huart->RxXferCount--;
  35607. 800f850: 687b ldr r3, [r7, #4]
  35608. 800f852: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35609. 800f856: b29b uxth r3, r3
  35610. 800f858: 3b01 subs r3, #1
  35611. 800f85a: b29a uxth r2, r3
  35612. 800f85c: 687b ldr r3, [r7, #4]
  35613. 800f85e: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  35614. if (huart->RxXferCount == 0U)
  35615. 800f862: 687b ldr r3, [r7, #4]
  35616. 800f864: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35617. 800f868: b29b uxth r3, r3
  35618. 800f86a: 2b00 cmp r3, #0
  35619. 800f86c: f040 80a1 bne.w 800f9b2 <UART_RxISR_16BIT+0x1aa>
  35620. {
  35621. /* Disable the UART Parity Error Interrupt and RXNE interrupt*/
  35622. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  35623. 800f870: 687b ldr r3, [r7, #4]
  35624. 800f872: 681b ldr r3, [r3, #0]
  35625. 800f874: 64bb str r3, [r7, #72] @ 0x48
  35626. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35627. 800f876: 6cbb ldr r3, [r7, #72] @ 0x48
  35628. 800f878: e853 3f00 ldrex r3, [r3]
  35629. 800f87c: 647b str r3, [r7, #68] @ 0x44
  35630. return(result);
  35631. 800f87e: 6c7b ldr r3, [r7, #68] @ 0x44
  35632. 800f880: f423 7390 bic.w r3, r3, #288 @ 0x120
  35633. 800f884: 667b str r3, [r7, #100] @ 0x64
  35634. 800f886: 687b ldr r3, [r7, #4]
  35635. 800f888: 681b ldr r3, [r3, #0]
  35636. 800f88a: 461a mov r2, r3
  35637. 800f88c: 6e7b ldr r3, [r7, #100] @ 0x64
  35638. 800f88e: 657b str r3, [r7, #84] @ 0x54
  35639. 800f890: 653a str r2, [r7, #80] @ 0x50
  35640. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35641. 800f892: 6d39 ldr r1, [r7, #80] @ 0x50
  35642. 800f894: 6d7a ldr r2, [r7, #84] @ 0x54
  35643. 800f896: e841 2300 strex r3, r2, [r1]
  35644. 800f89a: 64fb str r3, [r7, #76] @ 0x4c
  35645. return(result);
  35646. 800f89c: 6cfb ldr r3, [r7, #76] @ 0x4c
  35647. 800f89e: 2b00 cmp r3, #0
  35648. 800f8a0: d1e6 bne.n 800f870 <UART_RxISR_16BIT+0x68>
  35649. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  35650. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  35651. 800f8a2: 687b ldr r3, [r7, #4]
  35652. 800f8a4: 681b ldr r3, [r3, #0]
  35653. 800f8a6: 3308 adds r3, #8
  35654. 800f8a8: 637b str r3, [r7, #52] @ 0x34
  35655. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35656. 800f8aa: 6b7b ldr r3, [r7, #52] @ 0x34
  35657. 800f8ac: e853 3f00 ldrex r3, [r3]
  35658. 800f8b0: 633b str r3, [r7, #48] @ 0x30
  35659. return(result);
  35660. 800f8b2: 6b3b ldr r3, [r7, #48] @ 0x30
  35661. 800f8b4: f023 0301 bic.w r3, r3, #1
  35662. 800f8b8: 663b str r3, [r7, #96] @ 0x60
  35663. 800f8ba: 687b ldr r3, [r7, #4]
  35664. 800f8bc: 681b ldr r3, [r3, #0]
  35665. 800f8be: 3308 adds r3, #8
  35666. 800f8c0: 6e3a ldr r2, [r7, #96] @ 0x60
  35667. 800f8c2: 643a str r2, [r7, #64] @ 0x40
  35668. 800f8c4: 63fb str r3, [r7, #60] @ 0x3c
  35669. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35670. 800f8c6: 6bf9 ldr r1, [r7, #60] @ 0x3c
  35671. 800f8c8: 6c3a ldr r2, [r7, #64] @ 0x40
  35672. 800f8ca: e841 2300 strex r3, r2, [r1]
  35673. 800f8ce: 63bb str r3, [r7, #56] @ 0x38
  35674. return(result);
  35675. 800f8d0: 6bbb ldr r3, [r7, #56] @ 0x38
  35676. 800f8d2: 2b00 cmp r3, #0
  35677. 800f8d4: d1e5 bne.n 800f8a2 <UART_RxISR_16BIT+0x9a>
  35678. /* Rx process is completed, restore huart->RxState to Ready */
  35679. huart->RxState = HAL_UART_STATE_READY;
  35680. 800f8d6: 687b ldr r3, [r7, #4]
  35681. 800f8d8: 2220 movs r2, #32
  35682. 800f8da: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  35683. /* Clear RxISR function pointer */
  35684. huart->RxISR = NULL;
  35685. 800f8de: 687b ldr r3, [r7, #4]
  35686. 800f8e0: 2200 movs r2, #0
  35687. 800f8e2: 675a str r2, [r3, #116] @ 0x74
  35688. /* Initialize type of RxEvent to Transfer Complete */
  35689. huart->RxEventType = HAL_UART_RXEVENT_TC;
  35690. 800f8e4: 687b ldr r3, [r7, #4]
  35691. 800f8e6: 2200 movs r2, #0
  35692. 800f8e8: 671a str r2, [r3, #112] @ 0x70
  35693. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  35694. 800f8ea: 687b ldr r3, [r7, #4]
  35695. 800f8ec: 681b ldr r3, [r3, #0]
  35696. 800f8ee: 4a33 ldr r2, [pc, #204] @ (800f9bc <UART_RxISR_16BIT+0x1b4>)
  35697. 800f8f0: 4293 cmp r3, r2
  35698. 800f8f2: d01f beq.n 800f934 <UART_RxISR_16BIT+0x12c>
  35699. {
  35700. /* Check that USART RTOEN bit is set */
  35701. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  35702. 800f8f4: 687b ldr r3, [r7, #4]
  35703. 800f8f6: 681b ldr r3, [r3, #0]
  35704. 800f8f8: 685b ldr r3, [r3, #4]
  35705. 800f8fa: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  35706. 800f8fe: 2b00 cmp r3, #0
  35707. 800f900: d018 beq.n 800f934 <UART_RxISR_16BIT+0x12c>
  35708. {
  35709. /* Enable the UART Receiver Timeout Interrupt */
  35710. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  35711. 800f902: 687b ldr r3, [r7, #4]
  35712. 800f904: 681b ldr r3, [r3, #0]
  35713. 800f906: 623b str r3, [r7, #32]
  35714. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35715. 800f908: 6a3b ldr r3, [r7, #32]
  35716. 800f90a: e853 3f00 ldrex r3, [r3]
  35717. 800f90e: 61fb str r3, [r7, #28]
  35718. return(result);
  35719. 800f910: 69fb ldr r3, [r7, #28]
  35720. 800f912: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  35721. 800f916: 65fb str r3, [r7, #92] @ 0x5c
  35722. 800f918: 687b ldr r3, [r7, #4]
  35723. 800f91a: 681b ldr r3, [r3, #0]
  35724. 800f91c: 461a mov r2, r3
  35725. 800f91e: 6dfb ldr r3, [r7, #92] @ 0x5c
  35726. 800f920: 62fb str r3, [r7, #44] @ 0x2c
  35727. 800f922: 62ba str r2, [r7, #40] @ 0x28
  35728. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35729. 800f924: 6ab9 ldr r1, [r7, #40] @ 0x28
  35730. 800f926: 6afa ldr r2, [r7, #44] @ 0x2c
  35731. 800f928: e841 2300 strex r3, r2, [r1]
  35732. 800f92c: 627b str r3, [r7, #36] @ 0x24
  35733. return(result);
  35734. 800f92e: 6a7b ldr r3, [r7, #36] @ 0x24
  35735. 800f930: 2b00 cmp r3, #0
  35736. 800f932: d1e6 bne.n 800f902 <UART_RxISR_16BIT+0xfa>
  35737. }
  35738. }
  35739. /* Check current reception Mode :
  35740. If Reception till IDLE event has been selected : */
  35741. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  35742. 800f934: 687b ldr r3, [r7, #4]
  35743. 800f936: 6edb ldr r3, [r3, #108] @ 0x6c
  35744. 800f938: 2b01 cmp r3, #1
  35745. 800f93a: d12e bne.n 800f99a <UART_RxISR_16BIT+0x192>
  35746. {
  35747. /* Set reception type to Standard */
  35748. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  35749. 800f93c: 687b ldr r3, [r7, #4]
  35750. 800f93e: 2200 movs r2, #0
  35751. 800f940: 66da str r2, [r3, #108] @ 0x6c
  35752. /* Disable IDLE interrupt */
  35753. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  35754. 800f942: 687b ldr r3, [r7, #4]
  35755. 800f944: 681b ldr r3, [r3, #0]
  35756. 800f946: 60fb str r3, [r7, #12]
  35757. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35758. 800f948: 68fb ldr r3, [r7, #12]
  35759. 800f94a: e853 3f00 ldrex r3, [r3]
  35760. 800f94e: 60bb str r3, [r7, #8]
  35761. return(result);
  35762. 800f950: 68bb ldr r3, [r7, #8]
  35763. 800f952: f023 0310 bic.w r3, r3, #16
  35764. 800f956: 65bb str r3, [r7, #88] @ 0x58
  35765. 800f958: 687b ldr r3, [r7, #4]
  35766. 800f95a: 681b ldr r3, [r3, #0]
  35767. 800f95c: 461a mov r2, r3
  35768. 800f95e: 6dbb ldr r3, [r7, #88] @ 0x58
  35769. 800f960: 61bb str r3, [r7, #24]
  35770. 800f962: 617a str r2, [r7, #20]
  35771. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35772. 800f964: 6979 ldr r1, [r7, #20]
  35773. 800f966: 69ba ldr r2, [r7, #24]
  35774. 800f968: e841 2300 strex r3, r2, [r1]
  35775. 800f96c: 613b str r3, [r7, #16]
  35776. return(result);
  35777. 800f96e: 693b ldr r3, [r7, #16]
  35778. 800f970: 2b00 cmp r3, #0
  35779. 800f972: d1e6 bne.n 800f942 <UART_RxISR_16BIT+0x13a>
  35780. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  35781. 800f974: 687b ldr r3, [r7, #4]
  35782. 800f976: 681b ldr r3, [r3, #0]
  35783. 800f978: 69db ldr r3, [r3, #28]
  35784. 800f97a: f003 0310 and.w r3, r3, #16
  35785. 800f97e: 2b10 cmp r3, #16
  35786. 800f980: d103 bne.n 800f98a <UART_RxISR_16BIT+0x182>
  35787. {
  35788. /* Clear IDLE Flag */
  35789. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  35790. 800f982: 687b ldr r3, [r7, #4]
  35791. 800f984: 681b ldr r3, [r3, #0]
  35792. 800f986: 2210 movs r2, #16
  35793. 800f988: 621a str r2, [r3, #32]
  35794. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  35795. /*Call registered Rx Event callback*/
  35796. huart->RxEventCallback(huart, huart->RxXferSize);
  35797. #else
  35798. /*Call legacy weak Rx Event callback*/
  35799. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  35800. 800f98a: 687b ldr r3, [r7, #4]
  35801. 800f98c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  35802. 800f990: 4619 mov r1, r3
  35803. 800f992: 6878 ldr r0, [r7, #4]
  35804. 800f994: f7f4 fdf4 bl 8004580 <HAL_UARTEx_RxEventCallback>
  35805. else
  35806. {
  35807. /* Clear RXNE interrupt flag */
  35808. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  35809. }
  35810. }
  35811. 800f998: e00b b.n 800f9b2 <UART_RxISR_16BIT+0x1aa>
  35812. HAL_UART_RxCpltCallback(huart);
  35813. 800f99a: 6878 ldr r0, [r7, #4]
  35814. 800f99c: f7f4 fde6 bl 800456c <HAL_UART_RxCpltCallback>
  35815. }
  35816. 800f9a0: e007 b.n 800f9b2 <UART_RxISR_16BIT+0x1aa>
  35817. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  35818. 800f9a2: 687b ldr r3, [r7, #4]
  35819. 800f9a4: 681b ldr r3, [r3, #0]
  35820. 800f9a6: 699a ldr r2, [r3, #24]
  35821. 800f9a8: 687b ldr r3, [r7, #4]
  35822. 800f9aa: 681b ldr r3, [r3, #0]
  35823. 800f9ac: f042 0208 orr.w r2, r2, #8
  35824. 800f9b0: 619a str r2, [r3, #24]
  35825. }
  35826. 800f9b2: bf00 nop
  35827. 800f9b4: 3770 adds r7, #112 @ 0x70
  35828. 800f9b6: 46bd mov sp, r7
  35829. 800f9b8: bd80 pop {r7, pc}
  35830. 800f9ba: bf00 nop
  35831. 800f9bc: 58000c00 .word 0x58000c00
  35832. 0800f9c0 <UART_RxISR_8BIT_FIFOEN>:
  35833. * interruptions have been enabled by HAL_UART_Receive_IT()
  35834. * @param huart UART handle.
  35835. * @retval None
  35836. */
  35837. static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  35838. {
  35839. 800f9c0: b580 push {r7, lr}
  35840. 800f9c2: b0ac sub sp, #176 @ 0xb0
  35841. 800f9c4: af00 add r7, sp, #0
  35842. 800f9c6: 6078 str r0, [r7, #4]
  35843. uint16_t uhMask = huart->Mask;
  35844. 800f9c8: 687b ldr r3, [r7, #4]
  35845. 800f9ca: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  35846. 800f9ce: f8a7 30aa strh.w r3, [r7, #170] @ 0xaa
  35847. uint16_t uhdata;
  35848. uint16_t nb_rx_data;
  35849. uint16_t rxdatacount;
  35850. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  35851. 800f9d2: 687b ldr r3, [r7, #4]
  35852. 800f9d4: 681b ldr r3, [r3, #0]
  35853. 800f9d6: 69db ldr r3, [r3, #28]
  35854. 800f9d8: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  35855. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  35856. 800f9dc: 687b ldr r3, [r7, #4]
  35857. 800f9de: 681b ldr r3, [r3, #0]
  35858. 800f9e0: 681b ldr r3, [r3, #0]
  35859. 800f9e2: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  35860. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  35861. 800f9e6: 687b ldr r3, [r7, #4]
  35862. 800f9e8: 681b ldr r3, [r3, #0]
  35863. 800f9ea: 689b ldr r3, [r3, #8]
  35864. 800f9ec: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  35865. /* Check that a Rx process is ongoing */
  35866. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  35867. 800f9f0: 687b ldr r3, [r7, #4]
  35868. 800f9f2: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  35869. 800f9f6: 2b22 cmp r3, #34 @ 0x22
  35870. 800f9f8: f040 8180 bne.w 800fcfc <UART_RxISR_8BIT_FIFOEN+0x33c>
  35871. {
  35872. nb_rx_data = huart->NbRxDataToProcess;
  35873. 800f9fc: 687b ldr r3, [r7, #4]
  35874. 800f9fe: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  35875. 800fa02: f8a7 309e strh.w r3, [r7, #158] @ 0x9e
  35876. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  35877. 800fa06: e123 b.n 800fc50 <UART_RxISR_8BIT_FIFOEN+0x290>
  35878. {
  35879. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  35880. 800fa08: 687b ldr r3, [r7, #4]
  35881. 800fa0a: 681b ldr r3, [r3, #0]
  35882. 800fa0c: 6a5b ldr r3, [r3, #36] @ 0x24
  35883. 800fa0e: f8a7 309c strh.w r3, [r7, #156] @ 0x9c
  35884. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  35885. 800fa12: f8b7 309c ldrh.w r3, [r7, #156] @ 0x9c
  35886. 800fa16: b2d9 uxtb r1, r3
  35887. 800fa18: f8b7 30aa ldrh.w r3, [r7, #170] @ 0xaa
  35888. 800fa1c: b2da uxtb r2, r3
  35889. 800fa1e: 687b ldr r3, [r7, #4]
  35890. 800fa20: 6d9b ldr r3, [r3, #88] @ 0x58
  35891. 800fa22: 400a ands r2, r1
  35892. 800fa24: b2d2 uxtb r2, r2
  35893. 800fa26: 701a strb r2, [r3, #0]
  35894. huart->pRxBuffPtr++;
  35895. 800fa28: 687b ldr r3, [r7, #4]
  35896. 800fa2a: 6d9b ldr r3, [r3, #88] @ 0x58
  35897. 800fa2c: 1c5a adds r2, r3, #1
  35898. 800fa2e: 687b ldr r3, [r7, #4]
  35899. 800fa30: 659a str r2, [r3, #88] @ 0x58
  35900. huart->RxXferCount--;
  35901. 800fa32: 687b ldr r3, [r7, #4]
  35902. 800fa34: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35903. 800fa38: b29b uxth r3, r3
  35904. 800fa3a: 3b01 subs r3, #1
  35905. 800fa3c: b29a uxth r2, r3
  35906. 800fa3e: 687b ldr r3, [r7, #4]
  35907. 800fa40: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  35908. isrflags = READ_REG(huart->Instance->ISR);
  35909. 800fa44: 687b ldr r3, [r7, #4]
  35910. 800fa46: 681b ldr r3, [r3, #0]
  35911. 800fa48: 69db ldr r3, [r3, #28]
  35912. 800fa4a: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  35913. /* If some non blocking errors occurred */
  35914. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  35915. 800fa4e: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  35916. 800fa52: f003 0307 and.w r3, r3, #7
  35917. 800fa56: 2b00 cmp r3, #0
  35918. 800fa58: d053 beq.n 800fb02 <UART_RxISR_8BIT_FIFOEN+0x142>
  35919. {
  35920. /* UART parity error interrupt occurred -------------------------------------*/
  35921. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  35922. 800fa5a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  35923. 800fa5e: f003 0301 and.w r3, r3, #1
  35924. 800fa62: 2b00 cmp r3, #0
  35925. 800fa64: d011 beq.n 800fa8a <UART_RxISR_8BIT_FIFOEN+0xca>
  35926. 800fa66: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  35927. 800fa6a: f403 7380 and.w r3, r3, #256 @ 0x100
  35928. 800fa6e: 2b00 cmp r3, #0
  35929. 800fa70: d00b beq.n 800fa8a <UART_RxISR_8BIT_FIFOEN+0xca>
  35930. {
  35931. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  35932. 800fa72: 687b ldr r3, [r7, #4]
  35933. 800fa74: 681b ldr r3, [r3, #0]
  35934. 800fa76: 2201 movs r2, #1
  35935. 800fa78: 621a str r2, [r3, #32]
  35936. huart->ErrorCode |= HAL_UART_ERROR_PE;
  35937. 800fa7a: 687b ldr r3, [r7, #4]
  35938. 800fa7c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35939. 800fa80: f043 0201 orr.w r2, r3, #1
  35940. 800fa84: 687b ldr r3, [r7, #4]
  35941. 800fa86: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35942. }
  35943. /* UART frame error interrupt occurred --------------------------------------*/
  35944. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  35945. 800fa8a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  35946. 800fa8e: f003 0302 and.w r3, r3, #2
  35947. 800fa92: 2b00 cmp r3, #0
  35948. 800fa94: d011 beq.n 800faba <UART_RxISR_8BIT_FIFOEN+0xfa>
  35949. 800fa96: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  35950. 800fa9a: f003 0301 and.w r3, r3, #1
  35951. 800fa9e: 2b00 cmp r3, #0
  35952. 800faa0: d00b beq.n 800faba <UART_RxISR_8BIT_FIFOEN+0xfa>
  35953. {
  35954. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  35955. 800faa2: 687b ldr r3, [r7, #4]
  35956. 800faa4: 681b ldr r3, [r3, #0]
  35957. 800faa6: 2202 movs r2, #2
  35958. 800faa8: 621a str r2, [r3, #32]
  35959. huart->ErrorCode |= HAL_UART_ERROR_FE;
  35960. 800faaa: 687b ldr r3, [r7, #4]
  35961. 800faac: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35962. 800fab0: f043 0204 orr.w r2, r3, #4
  35963. 800fab4: 687b ldr r3, [r7, #4]
  35964. 800fab6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35965. }
  35966. /* UART noise error interrupt occurred --------------------------------------*/
  35967. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  35968. 800faba: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  35969. 800fabe: f003 0304 and.w r3, r3, #4
  35970. 800fac2: 2b00 cmp r3, #0
  35971. 800fac4: d011 beq.n 800faea <UART_RxISR_8BIT_FIFOEN+0x12a>
  35972. 800fac6: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  35973. 800faca: f003 0301 and.w r3, r3, #1
  35974. 800face: 2b00 cmp r3, #0
  35975. 800fad0: d00b beq.n 800faea <UART_RxISR_8BIT_FIFOEN+0x12a>
  35976. {
  35977. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  35978. 800fad2: 687b ldr r3, [r7, #4]
  35979. 800fad4: 681b ldr r3, [r3, #0]
  35980. 800fad6: 2204 movs r2, #4
  35981. 800fad8: 621a str r2, [r3, #32]
  35982. huart->ErrorCode |= HAL_UART_ERROR_NE;
  35983. 800fada: 687b ldr r3, [r7, #4]
  35984. 800fadc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35985. 800fae0: f043 0202 orr.w r2, r3, #2
  35986. 800fae4: 687b ldr r3, [r7, #4]
  35987. 800fae6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35988. }
  35989. /* Call UART Error Call back function if need be ----------------------------*/
  35990. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  35991. 800faea: 687b ldr r3, [r7, #4]
  35992. 800faec: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35993. 800faf0: 2b00 cmp r3, #0
  35994. 800faf2: d006 beq.n 800fb02 <UART_RxISR_8BIT_FIFOEN+0x142>
  35995. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  35996. /*Call registered error callback*/
  35997. huart->ErrorCallback(huart);
  35998. #else
  35999. /*Call legacy weak error callback*/
  36000. HAL_UART_ErrorCallback(huart);
  36001. 800faf4: 6878 ldr r0, [r7, #4]
  36002. 800faf6: f7fe fb13 bl 800e120 <HAL_UART_ErrorCallback>
  36003. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  36004. huart->ErrorCode = HAL_UART_ERROR_NONE;
  36005. 800fafa: 687b ldr r3, [r7, #4]
  36006. 800fafc: 2200 movs r2, #0
  36007. 800fafe: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  36008. }
  36009. }
  36010. if (huart->RxXferCount == 0U)
  36011. 800fb02: 687b ldr r3, [r7, #4]
  36012. 800fb04: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  36013. 800fb08: b29b uxth r3, r3
  36014. 800fb0a: 2b00 cmp r3, #0
  36015. 800fb0c: f040 80a0 bne.w 800fc50 <UART_RxISR_8BIT_FIFOEN+0x290>
  36016. {
  36017. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  36018. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  36019. 800fb10: 687b ldr r3, [r7, #4]
  36020. 800fb12: 681b ldr r3, [r3, #0]
  36021. 800fb14: 673b str r3, [r7, #112] @ 0x70
  36022. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36023. 800fb16: 6f3b ldr r3, [r7, #112] @ 0x70
  36024. 800fb18: e853 3f00 ldrex r3, [r3]
  36025. 800fb1c: 66fb str r3, [r7, #108] @ 0x6c
  36026. return(result);
  36027. 800fb1e: 6efb ldr r3, [r7, #108] @ 0x6c
  36028. 800fb20: f423 7380 bic.w r3, r3, #256 @ 0x100
  36029. 800fb24: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  36030. 800fb28: 687b ldr r3, [r7, #4]
  36031. 800fb2a: 681b ldr r3, [r3, #0]
  36032. 800fb2c: 461a mov r2, r3
  36033. 800fb2e: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  36034. 800fb32: 67fb str r3, [r7, #124] @ 0x7c
  36035. 800fb34: 67ba str r2, [r7, #120] @ 0x78
  36036. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36037. 800fb36: 6fb9 ldr r1, [r7, #120] @ 0x78
  36038. 800fb38: 6ffa ldr r2, [r7, #124] @ 0x7c
  36039. 800fb3a: e841 2300 strex r3, r2, [r1]
  36040. 800fb3e: 677b str r3, [r7, #116] @ 0x74
  36041. return(result);
  36042. 800fb40: 6f7b ldr r3, [r7, #116] @ 0x74
  36043. 800fb42: 2b00 cmp r3, #0
  36044. 800fb44: d1e4 bne.n 800fb10 <UART_RxISR_8BIT_FIFOEN+0x150>
  36045. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  36046. and RX FIFO Threshold interrupt */
  36047. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  36048. 800fb46: 687b ldr r3, [r7, #4]
  36049. 800fb48: 681b ldr r3, [r3, #0]
  36050. 800fb4a: 3308 adds r3, #8
  36051. 800fb4c: 65fb str r3, [r7, #92] @ 0x5c
  36052. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36053. 800fb4e: 6dfb ldr r3, [r7, #92] @ 0x5c
  36054. 800fb50: e853 3f00 ldrex r3, [r3]
  36055. 800fb54: 65bb str r3, [r7, #88] @ 0x58
  36056. return(result);
  36057. 800fb56: 6dba ldr r2, [r7, #88] @ 0x58
  36058. 800fb58: 4b6e ldr r3, [pc, #440] @ (800fd14 <UART_RxISR_8BIT_FIFOEN+0x354>)
  36059. 800fb5a: 4013 ands r3, r2
  36060. 800fb5c: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  36061. 800fb60: 687b ldr r3, [r7, #4]
  36062. 800fb62: 681b ldr r3, [r3, #0]
  36063. 800fb64: 3308 adds r3, #8
  36064. 800fb66: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  36065. 800fb6a: 66ba str r2, [r7, #104] @ 0x68
  36066. 800fb6c: 667b str r3, [r7, #100] @ 0x64
  36067. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36068. 800fb6e: 6e79 ldr r1, [r7, #100] @ 0x64
  36069. 800fb70: 6eba ldr r2, [r7, #104] @ 0x68
  36070. 800fb72: e841 2300 strex r3, r2, [r1]
  36071. 800fb76: 663b str r3, [r7, #96] @ 0x60
  36072. return(result);
  36073. 800fb78: 6e3b ldr r3, [r7, #96] @ 0x60
  36074. 800fb7a: 2b00 cmp r3, #0
  36075. 800fb7c: d1e3 bne.n 800fb46 <UART_RxISR_8BIT_FIFOEN+0x186>
  36076. /* Rx process is completed, restore huart->RxState to Ready */
  36077. huart->RxState = HAL_UART_STATE_READY;
  36078. 800fb7e: 687b ldr r3, [r7, #4]
  36079. 800fb80: 2220 movs r2, #32
  36080. 800fb82: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  36081. /* Clear RxISR function pointer */
  36082. huart->RxISR = NULL;
  36083. 800fb86: 687b ldr r3, [r7, #4]
  36084. 800fb88: 2200 movs r2, #0
  36085. 800fb8a: 675a str r2, [r3, #116] @ 0x74
  36086. /* Initialize type of RxEvent to Transfer Complete */
  36087. huart->RxEventType = HAL_UART_RXEVENT_TC;
  36088. 800fb8c: 687b ldr r3, [r7, #4]
  36089. 800fb8e: 2200 movs r2, #0
  36090. 800fb90: 671a str r2, [r3, #112] @ 0x70
  36091. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  36092. 800fb92: 687b ldr r3, [r7, #4]
  36093. 800fb94: 681b ldr r3, [r3, #0]
  36094. 800fb96: 4a60 ldr r2, [pc, #384] @ (800fd18 <UART_RxISR_8BIT_FIFOEN+0x358>)
  36095. 800fb98: 4293 cmp r3, r2
  36096. 800fb9a: d021 beq.n 800fbe0 <UART_RxISR_8BIT_FIFOEN+0x220>
  36097. {
  36098. /* Check that USART RTOEN bit is set */
  36099. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  36100. 800fb9c: 687b ldr r3, [r7, #4]
  36101. 800fb9e: 681b ldr r3, [r3, #0]
  36102. 800fba0: 685b ldr r3, [r3, #4]
  36103. 800fba2: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  36104. 800fba6: 2b00 cmp r3, #0
  36105. 800fba8: d01a beq.n 800fbe0 <UART_RxISR_8BIT_FIFOEN+0x220>
  36106. {
  36107. /* Enable the UART Receiver Timeout Interrupt */
  36108. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  36109. 800fbaa: 687b ldr r3, [r7, #4]
  36110. 800fbac: 681b ldr r3, [r3, #0]
  36111. 800fbae: 64bb str r3, [r7, #72] @ 0x48
  36112. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36113. 800fbb0: 6cbb ldr r3, [r7, #72] @ 0x48
  36114. 800fbb2: e853 3f00 ldrex r3, [r3]
  36115. 800fbb6: 647b str r3, [r7, #68] @ 0x44
  36116. return(result);
  36117. 800fbb8: 6c7b ldr r3, [r7, #68] @ 0x44
  36118. 800fbba: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  36119. 800fbbe: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  36120. 800fbc2: 687b ldr r3, [r7, #4]
  36121. 800fbc4: 681b ldr r3, [r3, #0]
  36122. 800fbc6: 461a mov r2, r3
  36123. 800fbc8: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  36124. 800fbcc: 657b str r3, [r7, #84] @ 0x54
  36125. 800fbce: 653a str r2, [r7, #80] @ 0x50
  36126. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36127. 800fbd0: 6d39 ldr r1, [r7, #80] @ 0x50
  36128. 800fbd2: 6d7a ldr r2, [r7, #84] @ 0x54
  36129. 800fbd4: e841 2300 strex r3, r2, [r1]
  36130. 800fbd8: 64fb str r3, [r7, #76] @ 0x4c
  36131. return(result);
  36132. 800fbda: 6cfb ldr r3, [r7, #76] @ 0x4c
  36133. 800fbdc: 2b00 cmp r3, #0
  36134. 800fbde: d1e4 bne.n 800fbaa <UART_RxISR_8BIT_FIFOEN+0x1ea>
  36135. }
  36136. }
  36137. /* Check current reception Mode :
  36138. If Reception till IDLE event has been selected : */
  36139. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  36140. 800fbe0: 687b ldr r3, [r7, #4]
  36141. 800fbe2: 6edb ldr r3, [r3, #108] @ 0x6c
  36142. 800fbe4: 2b01 cmp r3, #1
  36143. 800fbe6: d130 bne.n 800fc4a <UART_RxISR_8BIT_FIFOEN+0x28a>
  36144. {
  36145. /* Set reception type to Standard */
  36146. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  36147. 800fbe8: 687b ldr r3, [r7, #4]
  36148. 800fbea: 2200 movs r2, #0
  36149. 800fbec: 66da str r2, [r3, #108] @ 0x6c
  36150. /* Disable IDLE interrupt */
  36151. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  36152. 800fbee: 687b ldr r3, [r7, #4]
  36153. 800fbf0: 681b ldr r3, [r3, #0]
  36154. 800fbf2: 637b str r3, [r7, #52] @ 0x34
  36155. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36156. 800fbf4: 6b7b ldr r3, [r7, #52] @ 0x34
  36157. 800fbf6: e853 3f00 ldrex r3, [r3]
  36158. 800fbfa: 633b str r3, [r7, #48] @ 0x30
  36159. return(result);
  36160. 800fbfc: 6b3b ldr r3, [r7, #48] @ 0x30
  36161. 800fbfe: f023 0310 bic.w r3, r3, #16
  36162. 800fc02: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  36163. 800fc06: 687b ldr r3, [r7, #4]
  36164. 800fc08: 681b ldr r3, [r3, #0]
  36165. 800fc0a: 461a mov r2, r3
  36166. 800fc0c: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  36167. 800fc10: 643b str r3, [r7, #64] @ 0x40
  36168. 800fc12: 63fa str r2, [r7, #60] @ 0x3c
  36169. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36170. 800fc14: 6bf9 ldr r1, [r7, #60] @ 0x3c
  36171. 800fc16: 6c3a ldr r2, [r7, #64] @ 0x40
  36172. 800fc18: e841 2300 strex r3, r2, [r1]
  36173. 800fc1c: 63bb str r3, [r7, #56] @ 0x38
  36174. return(result);
  36175. 800fc1e: 6bbb ldr r3, [r7, #56] @ 0x38
  36176. 800fc20: 2b00 cmp r3, #0
  36177. 800fc22: d1e4 bne.n 800fbee <UART_RxISR_8BIT_FIFOEN+0x22e>
  36178. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  36179. 800fc24: 687b ldr r3, [r7, #4]
  36180. 800fc26: 681b ldr r3, [r3, #0]
  36181. 800fc28: 69db ldr r3, [r3, #28]
  36182. 800fc2a: f003 0310 and.w r3, r3, #16
  36183. 800fc2e: 2b10 cmp r3, #16
  36184. 800fc30: d103 bne.n 800fc3a <UART_RxISR_8BIT_FIFOEN+0x27a>
  36185. {
  36186. /* Clear IDLE Flag */
  36187. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  36188. 800fc32: 687b ldr r3, [r7, #4]
  36189. 800fc34: 681b ldr r3, [r3, #0]
  36190. 800fc36: 2210 movs r2, #16
  36191. 800fc38: 621a str r2, [r3, #32]
  36192. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  36193. /*Call registered Rx Event callback*/
  36194. huart->RxEventCallback(huart, huart->RxXferSize);
  36195. #else
  36196. /*Call legacy weak Rx Event callback*/
  36197. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  36198. 800fc3a: 687b ldr r3, [r7, #4]
  36199. 800fc3c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  36200. 800fc40: 4619 mov r1, r3
  36201. 800fc42: 6878 ldr r0, [r7, #4]
  36202. 800fc44: f7f4 fc9c bl 8004580 <HAL_UARTEx_RxEventCallback>
  36203. 800fc48: e002 b.n 800fc50 <UART_RxISR_8BIT_FIFOEN+0x290>
  36204. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  36205. /*Call registered Rx complete callback*/
  36206. huart->RxCpltCallback(huart);
  36207. #else
  36208. /*Call legacy weak Rx complete callback*/
  36209. HAL_UART_RxCpltCallback(huart);
  36210. 800fc4a: 6878 ldr r0, [r7, #4]
  36211. 800fc4c: f7f4 fc8e bl 800456c <HAL_UART_RxCpltCallback>
  36212. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  36213. 800fc50: f8b7 309e ldrh.w r3, [r7, #158] @ 0x9e
  36214. 800fc54: 2b00 cmp r3, #0
  36215. 800fc56: d006 beq.n 800fc66 <UART_RxISR_8BIT_FIFOEN+0x2a6>
  36216. 800fc58: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  36217. 800fc5c: f003 0320 and.w r3, r3, #32
  36218. 800fc60: 2b00 cmp r3, #0
  36219. 800fc62: f47f aed1 bne.w 800fa08 <UART_RxISR_8BIT_FIFOEN+0x48>
  36220. /* When remaining number of bytes to receive is less than the RX FIFO
  36221. threshold, next incoming frames are processed as if FIFO mode was
  36222. disabled (i.e. one interrupt per received frame).
  36223. */
  36224. rxdatacount = huart->RxXferCount;
  36225. 800fc66: 687b ldr r3, [r7, #4]
  36226. 800fc68: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  36227. 800fc6c: f8a7 308a strh.w r3, [r7, #138] @ 0x8a
  36228. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  36229. 800fc70: f8b7 308a ldrh.w r3, [r7, #138] @ 0x8a
  36230. 800fc74: 2b00 cmp r3, #0
  36231. 800fc76: d049 beq.n 800fd0c <UART_RxISR_8BIT_FIFOEN+0x34c>
  36232. 800fc78: 687b ldr r3, [r7, #4]
  36233. 800fc7a: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  36234. 800fc7e: f8b7 208a ldrh.w r2, [r7, #138] @ 0x8a
  36235. 800fc82: 429a cmp r2, r3
  36236. 800fc84: d242 bcs.n 800fd0c <UART_RxISR_8BIT_FIFOEN+0x34c>
  36237. {
  36238. /* Disable the UART RXFT interrupt*/
  36239. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  36240. 800fc86: 687b ldr r3, [r7, #4]
  36241. 800fc88: 681b ldr r3, [r3, #0]
  36242. 800fc8a: 3308 adds r3, #8
  36243. 800fc8c: 623b str r3, [r7, #32]
  36244. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36245. 800fc8e: 6a3b ldr r3, [r7, #32]
  36246. 800fc90: e853 3f00 ldrex r3, [r3]
  36247. 800fc94: 61fb str r3, [r7, #28]
  36248. return(result);
  36249. 800fc96: 69fb ldr r3, [r7, #28]
  36250. 800fc98: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  36251. 800fc9c: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  36252. 800fca0: 687b ldr r3, [r7, #4]
  36253. 800fca2: 681b ldr r3, [r3, #0]
  36254. 800fca4: 3308 adds r3, #8
  36255. 800fca6: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  36256. 800fcaa: 62fa str r2, [r7, #44] @ 0x2c
  36257. 800fcac: 62bb str r3, [r7, #40] @ 0x28
  36258. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36259. 800fcae: 6ab9 ldr r1, [r7, #40] @ 0x28
  36260. 800fcb0: 6afa ldr r2, [r7, #44] @ 0x2c
  36261. 800fcb2: e841 2300 strex r3, r2, [r1]
  36262. 800fcb6: 627b str r3, [r7, #36] @ 0x24
  36263. return(result);
  36264. 800fcb8: 6a7b ldr r3, [r7, #36] @ 0x24
  36265. 800fcba: 2b00 cmp r3, #0
  36266. 800fcbc: d1e3 bne.n 800fc86 <UART_RxISR_8BIT_FIFOEN+0x2c6>
  36267. /* Update the RxISR function pointer */
  36268. huart->RxISR = UART_RxISR_8BIT;
  36269. 800fcbe: 687b ldr r3, [r7, #4]
  36270. 800fcc0: 4a16 ldr r2, [pc, #88] @ (800fd1c <UART_RxISR_8BIT_FIFOEN+0x35c>)
  36271. 800fcc2: 675a str r2, [r3, #116] @ 0x74
  36272. /* Enable the UART Data Register Not Empty interrupt */
  36273. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  36274. 800fcc4: 687b ldr r3, [r7, #4]
  36275. 800fcc6: 681b ldr r3, [r3, #0]
  36276. 800fcc8: 60fb str r3, [r7, #12]
  36277. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36278. 800fcca: 68fb ldr r3, [r7, #12]
  36279. 800fccc: e853 3f00 ldrex r3, [r3]
  36280. 800fcd0: 60bb str r3, [r7, #8]
  36281. return(result);
  36282. 800fcd2: 68bb ldr r3, [r7, #8]
  36283. 800fcd4: f043 0320 orr.w r3, r3, #32
  36284. 800fcd8: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  36285. 800fcdc: 687b ldr r3, [r7, #4]
  36286. 800fcde: 681b ldr r3, [r3, #0]
  36287. 800fce0: 461a mov r2, r3
  36288. 800fce2: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  36289. 800fce6: 61bb str r3, [r7, #24]
  36290. 800fce8: 617a str r2, [r7, #20]
  36291. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36292. 800fcea: 6979 ldr r1, [r7, #20]
  36293. 800fcec: 69ba ldr r2, [r7, #24]
  36294. 800fcee: e841 2300 strex r3, r2, [r1]
  36295. 800fcf2: 613b str r3, [r7, #16]
  36296. return(result);
  36297. 800fcf4: 693b ldr r3, [r7, #16]
  36298. 800fcf6: 2b00 cmp r3, #0
  36299. 800fcf8: d1e4 bne.n 800fcc4 <UART_RxISR_8BIT_FIFOEN+0x304>
  36300. else
  36301. {
  36302. /* Clear RXNE interrupt flag */
  36303. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  36304. }
  36305. }
  36306. 800fcfa: e007 b.n 800fd0c <UART_RxISR_8BIT_FIFOEN+0x34c>
  36307. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  36308. 800fcfc: 687b ldr r3, [r7, #4]
  36309. 800fcfe: 681b ldr r3, [r3, #0]
  36310. 800fd00: 699a ldr r2, [r3, #24]
  36311. 800fd02: 687b ldr r3, [r7, #4]
  36312. 800fd04: 681b ldr r3, [r3, #0]
  36313. 800fd06: f042 0208 orr.w r2, r2, #8
  36314. 800fd0a: 619a str r2, [r3, #24]
  36315. }
  36316. 800fd0c: bf00 nop
  36317. 800fd0e: 37b0 adds r7, #176 @ 0xb0
  36318. 800fd10: 46bd mov sp, r7
  36319. 800fd12: bd80 pop {r7, pc}
  36320. 800fd14: effffffe .word 0xeffffffe
  36321. 800fd18: 58000c00 .word 0x58000c00
  36322. 800fd1c: 0800f651 .word 0x0800f651
  36323. 0800fd20 <UART_RxISR_16BIT_FIFOEN>:
  36324. * interruptions have been enabled by HAL_UART_Receive_IT()
  36325. * @param huart UART handle.
  36326. * @retval None
  36327. */
  36328. static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  36329. {
  36330. 800fd20: b580 push {r7, lr}
  36331. 800fd22: b0ae sub sp, #184 @ 0xb8
  36332. 800fd24: af00 add r7, sp, #0
  36333. 800fd26: 6078 str r0, [r7, #4]
  36334. uint16_t *tmp;
  36335. uint16_t uhMask = huart->Mask;
  36336. 800fd28: 687b ldr r3, [r7, #4]
  36337. 800fd2a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  36338. 800fd2e: f8a7 30b2 strh.w r3, [r7, #178] @ 0xb2
  36339. uint16_t uhdata;
  36340. uint16_t nb_rx_data;
  36341. uint16_t rxdatacount;
  36342. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  36343. 800fd32: 687b ldr r3, [r7, #4]
  36344. 800fd34: 681b ldr r3, [r3, #0]
  36345. 800fd36: 69db ldr r3, [r3, #28]
  36346. 800fd38: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  36347. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  36348. 800fd3c: 687b ldr r3, [r7, #4]
  36349. 800fd3e: 681b ldr r3, [r3, #0]
  36350. 800fd40: 681b ldr r3, [r3, #0]
  36351. 800fd42: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  36352. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  36353. 800fd46: 687b ldr r3, [r7, #4]
  36354. 800fd48: 681b ldr r3, [r3, #0]
  36355. 800fd4a: 689b ldr r3, [r3, #8]
  36356. 800fd4c: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  36357. /* Check that a Rx process is ongoing */
  36358. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  36359. 800fd50: 687b ldr r3, [r7, #4]
  36360. 800fd52: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  36361. 800fd56: 2b22 cmp r3, #34 @ 0x22
  36362. 800fd58: f040 8184 bne.w 8010064 <UART_RxISR_16BIT_FIFOEN+0x344>
  36363. {
  36364. nb_rx_data = huart->NbRxDataToProcess;
  36365. 800fd5c: 687b ldr r3, [r7, #4]
  36366. 800fd5e: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  36367. 800fd62: f8a7 30a6 strh.w r3, [r7, #166] @ 0xa6
  36368. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  36369. 800fd66: e127 b.n 800ffb8 <UART_RxISR_16BIT_FIFOEN+0x298>
  36370. {
  36371. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  36372. 800fd68: 687b ldr r3, [r7, #4]
  36373. 800fd6a: 681b ldr r3, [r3, #0]
  36374. 800fd6c: 6a5b ldr r3, [r3, #36] @ 0x24
  36375. 800fd6e: f8a7 30a4 strh.w r3, [r7, #164] @ 0xa4
  36376. tmp = (uint16_t *) huart->pRxBuffPtr ;
  36377. 800fd72: 687b ldr r3, [r7, #4]
  36378. 800fd74: 6d9b ldr r3, [r3, #88] @ 0x58
  36379. 800fd76: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  36380. *tmp = (uint16_t)(uhdata & uhMask);
  36381. 800fd7a: f8b7 20a4 ldrh.w r2, [r7, #164] @ 0xa4
  36382. 800fd7e: f8b7 30b2 ldrh.w r3, [r7, #178] @ 0xb2
  36383. 800fd82: 4013 ands r3, r2
  36384. 800fd84: b29a uxth r2, r3
  36385. 800fd86: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  36386. 800fd8a: 801a strh r2, [r3, #0]
  36387. huart->pRxBuffPtr += 2U;
  36388. 800fd8c: 687b ldr r3, [r7, #4]
  36389. 800fd8e: 6d9b ldr r3, [r3, #88] @ 0x58
  36390. 800fd90: 1c9a adds r2, r3, #2
  36391. 800fd92: 687b ldr r3, [r7, #4]
  36392. 800fd94: 659a str r2, [r3, #88] @ 0x58
  36393. huart->RxXferCount--;
  36394. 800fd96: 687b ldr r3, [r7, #4]
  36395. 800fd98: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  36396. 800fd9c: b29b uxth r3, r3
  36397. 800fd9e: 3b01 subs r3, #1
  36398. 800fda0: b29a uxth r2, r3
  36399. 800fda2: 687b ldr r3, [r7, #4]
  36400. 800fda4: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  36401. isrflags = READ_REG(huart->Instance->ISR);
  36402. 800fda8: 687b ldr r3, [r7, #4]
  36403. 800fdaa: 681b ldr r3, [r3, #0]
  36404. 800fdac: 69db ldr r3, [r3, #28]
  36405. 800fdae: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  36406. /* If some non blocking errors occurred */
  36407. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  36408. 800fdb2: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  36409. 800fdb6: f003 0307 and.w r3, r3, #7
  36410. 800fdba: 2b00 cmp r3, #0
  36411. 800fdbc: d053 beq.n 800fe66 <UART_RxISR_16BIT_FIFOEN+0x146>
  36412. {
  36413. /* UART parity error interrupt occurred -------------------------------------*/
  36414. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  36415. 800fdbe: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  36416. 800fdc2: f003 0301 and.w r3, r3, #1
  36417. 800fdc6: 2b00 cmp r3, #0
  36418. 800fdc8: d011 beq.n 800fdee <UART_RxISR_16BIT_FIFOEN+0xce>
  36419. 800fdca: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  36420. 800fdce: f403 7380 and.w r3, r3, #256 @ 0x100
  36421. 800fdd2: 2b00 cmp r3, #0
  36422. 800fdd4: d00b beq.n 800fdee <UART_RxISR_16BIT_FIFOEN+0xce>
  36423. {
  36424. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  36425. 800fdd6: 687b ldr r3, [r7, #4]
  36426. 800fdd8: 681b ldr r3, [r3, #0]
  36427. 800fdda: 2201 movs r2, #1
  36428. 800fddc: 621a str r2, [r3, #32]
  36429. huart->ErrorCode |= HAL_UART_ERROR_PE;
  36430. 800fdde: 687b ldr r3, [r7, #4]
  36431. 800fde0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  36432. 800fde4: f043 0201 orr.w r2, r3, #1
  36433. 800fde8: 687b ldr r3, [r7, #4]
  36434. 800fdea: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  36435. }
  36436. /* UART frame error interrupt occurred --------------------------------------*/
  36437. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  36438. 800fdee: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  36439. 800fdf2: f003 0302 and.w r3, r3, #2
  36440. 800fdf6: 2b00 cmp r3, #0
  36441. 800fdf8: d011 beq.n 800fe1e <UART_RxISR_16BIT_FIFOEN+0xfe>
  36442. 800fdfa: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  36443. 800fdfe: f003 0301 and.w r3, r3, #1
  36444. 800fe02: 2b00 cmp r3, #0
  36445. 800fe04: d00b beq.n 800fe1e <UART_RxISR_16BIT_FIFOEN+0xfe>
  36446. {
  36447. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  36448. 800fe06: 687b ldr r3, [r7, #4]
  36449. 800fe08: 681b ldr r3, [r3, #0]
  36450. 800fe0a: 2202 movs r2, #2
  36451. 800fe0c: 621a str r2, [r3, #32]
  36452. huart->ErrorCode |= HAL_UART_ERROR_FE;
  36453. 800fe0e: 687b ldr r3, [r7, #4]
  36454. 800fe10: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  36455. 800fe14: f043 0204 orr.w r2, r3, #4
  36456. 800fe18: 687b ldr r3, [r7, #4]
  36457. 800fe1a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  36458. }
  36459. /* UART noise error interrupt occurred --------------------------------------*/
  36460. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  36461. 800fe1e: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  36462. 800fe22: f003 0304 and.w r3, r3, #4
  36463. 800fe26: 2b00 cmp r3, #0
  36464. 800fe28: d011 beq.n 800fe4e <UART_RxISR_16BIT_FIFOEN+0x12e>
  36465. 800fe2a: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  36466. 800fe2e: f003 0301 and.w r3, r3, #1
  36467. 800fe32: 2b00 cmp r3, #0
  36468. 800fe34: d00b beq.n 800fe4e <UART_RxISR_16BIT_FIFOEN+0x12e>
  36469. {
  36470. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  36471. 800fe36: 687b ldr r3, [r7, #4]
  36472. 800fe38: 681b ldr r3, [r3, #0]
  36473. 800fe3a: 2204 movs r2, #4
  36474. 800fe3c: 621a str r2, [r3, #32]
  36475. huart->ErrorCode |= HAL_UART_ERROR_NE;
  36476. 800fe3e: 687b ldr r3, [r7, #4]
  36477. 800fe40: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  36478. 800fe44: f043 0202 orr.w r2, r3, #2
  36479. 800fe48: 687b ldr r3, [r7, #4]
  36480. 800fe4a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  36481. }
  36482. /* Call UART Error Call back function if need be ----------------------------*/
  36483. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  36484. 800fe4e: 687b ldr r3, [r7, #4]
  36485. 800fe50: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  36486. 800fe54: 2b00 cmp r3, #0
  36487. 800fe56: d006 beq.n 800fe66 <UART_RxISR_16BIT_FIFOEN+0x146>
  36488. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  36489. /*Call registered error callback*/
  36490. huart->ErrorCallback(huart);
  36491. #else
  36492. /*Call legacy weak error callback*/
  36493. HAL_UART_ErrorCallback(huart);
  36494. 800fe58: 6878 ldr r0, [r7, #4]
  36495. 800fe5a: f7fe f961 bl 800e120 <HAL_UART_ErrorCallback>
  36496. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  36497. huart->ErrorCode = HAL_UART_ERROR_NONE;
  36498. 800fe5e: 687b ldr r3, [r7, #4]
  36499. 800fe60: 2200 movs r2, #0
  36500. 800fe62: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  36501. }
  36502. }
  36503. if (huart->RxXferCount == 0U)
  36504. 800fe66: 687b ldr r3, [r7, #4]
  36505. 800fe68: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  36506. 800fe6c: b29b uxth r3, r3
  36507. 800fe6e: 2b00 cmp r3, #0
  36508. 800fe70: f040 80a2 bne.w 800ffb8 <UART_RxISR_16BIT_FIFOEN+0x298>
  36509. {
  36510. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  36511. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  36512. 800fe74: 687b ldr r3, [r7, #4]
  36513. 800fe76: 681b ldr r3, [r3, #0]
  36514. 800fe78: 677b str r3, [r7, #116] @ 0x74
  36515. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36516. 800fe7a: 6f7b ldr r3, [r7, #116] @ 0x74
  36517. 800fe7c: e853 3f00 ldrex r3, [r3]
  36518. 800fe80: 673b str r3, [r7, #112] @ 0x70
  36519. return(result);
  36520. 800fe82: 6f3b ldr r3, [r7, #112] @ 0x70
  36521. 800fe84: f423 7380 bic.w r3, r3, #256 @ 0x100
  36522. 800fe88: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  36523. 800fe8c: 687b ldr r3, [r7, #4]
  36524. 800fe8e: 681b ldr r3, [r3, #0]
  36525. 800fe90: 461a mov r2, r3
  36526. 800fe92: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  36527. 800fe96: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  36528. 800fe9a: 67fa str r2, [r7, #124] @ 0x7c
  36529. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36530. 800fe9c: 6ff9 ldr r1, [r7, #124] @ 0x7c
  36531. 800fe9e: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  36532. 800fea2: e841 2300 strex r3, r2, [r1]
  36533. 800fea6: 67bb str r3, [r7, #120] @ 0x78
  36534. return(result);
  36535. 800fea8: 6fbb ldr r3, [r7, #120] @ 0x78
  36536. 800feaa: 2b00 cmp r3, #0
  36537. 800feac: d1e2 bne.n 800fe74 <UART_RxISR_16BIT_FIFOEN+0x154>
  36538. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  36539. and RX FIFO Threshold interrupt */
  36540. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  36541. 800feae: 687b ldr r3, [r7, #4]
  36542. 800feb0: 681b ldr r3, [r3, #0]
  36543. 800feb2: 3308 adds r3, #8
  36544. 800feb4: 663b str r3, [r7, #96] @ 0x60
  36545. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36546. 800feb6: 6e3b ldr r3, [r7, #96] @ 0x60
  36547. 800feb8: e853 3f00 ldrex r3, [r3]
  36548. 800febc: 65fb str r3, [r7, #92] @ 0x5c
  36549. return(result);
  36550. 800febe: 6dfa ldr r2, [r7, #92] @ 0x5c
  36551. 800fec0: 4b6e ldr r3, [pc, #440] @ (801007c <UART_RxISR_16BIT_FIFOEN+0x35c>)
  36552. 800fec2: 4013 ands r3, r2
  36553. 800fec4: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  36554. 800fec8: 687b ldr r3, [r7, #4]
  36555. 800feca: 681b ldr r3, [r3, #0]
  36556. 800fecc: 3308 adds r3, #8
  36557. 800fece: f8d7 2098 ldr.w r2, [r7, #152] @ 0x98
  36558. 800fed2: 66fa str r2, [r7, #108] @ 0x6c
  36559. 800fed4: 66bb str r3, [r7, #104] @ 0x68
  36560. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36561. 800fed6: 6eb9 ldr r1, [r7, #104] @ 0x68
  36562. 800fed8: 6efa ldr r2, [r7, #108] @ 0x6c
  36563. 800feda: e841 2300 strex r3, r2, [r1]
  36564. 800fede: 667b str r3, [r7, #100] @ 0x64
  36565. return(result);
  36566. 800fee0: 6e7b ldr r3, [r7, #100] @ 0x64
  36567. 800fee2: 2b00 cmp r3, #0
  36568. 800fee4: d1e3 bne.n 800feae <UART_RxISR_16BIT_FIFOEN+0x18e>
  36569. /* Rx process is completed, restore huart->RxState to Ready */
  36570. huart->RxState = HAL_UART_STATE_READY;
  36571. 800fee6: 687b ldr r3, [r7, #4]
  36572. 800fee8: 2220 movs r2, #32
  36573. 800feea: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  36574. /* Clear RxISR function pointer */
  36575. huart->RxISR = NULL;
  36576. 800feee: 687b ldr r3, [r7, #4]
  36577. 800fef0: 2200 movs r2, #0
  36578. 800fef2: 675a str r2, [r3, #116] @ 0x74
  36579. /* Initialize type of RxEvent to Transfer Complete */
  36580. huart->RxEventType = HAL_UART_RXEVENT_TC;
  36581. 800fef4: 687b ldr r3, [r7, #4]
  36582. 800fef6: 2200 movs r2, #0
  36583. 800fef8: 671a str r2, [r3, #112] @ 0x70
  36584. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  36585. 800fefa: 687b ldr r3, [r7, #4]
  36586. 800fefc: 681b ldr r3, [r3, #0]
  36587. 800fefe: 4a60 ldr r2, [pc, #384] @ (8010080 <UART_RxISR_16BIT_FIFOEN+0x360>)
  36588. 800ff00: 4293 cmp r3, r2
  36589. 800ff02: d021 beq.n 800ff48 <UART_RxISR_16BIT_FIFOEN+0x228>
  36590. {
  36591. /* Check that USART RTOEN bit is set */
  36592. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  36593. 800ff04: 687b ldr r3, [r7, #4]
  36594. 800ff06: 681b ldr r3, [r3, #0]
  36595. 800ff08: 685b ldr r3, [r3, #4]
  36596. 800ff0a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  36597. 800ff0e: 2b00 cmp r3, #0
  36598. 800ff10: d01a beq.n 800ff48 <UART_RxISR_16BIT_FIFOEN+0x228>
  36599. {
  36600. /* Enable the UART Receiver Timeout Interrupt */
  36601. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  36602. 800ff12: 687b ldr r3, [r7, #4]
  36603. 800ff14: 681b ldr r3, [r3, #0]
  36604. 800ff16: 64fb str r3, [r7, #76] @ 0x4c
  36605. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36606. 800ff18: 6cfb ldr r3, [r7, #76] @ 0x4c
  36607. 800ff1a: e853 3f00 ldrex r3, [r3]
  36608. 800ff1e: 64bb str r3, [r7, #72] @ 0x48
  36609. return(result);
  36610. 800ff20: 6cbb ldr r3, [r7, #72] @ 0x48
  36611. 800ff22: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  36612. 800ff26: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  36613. 800ff2a: 687b ldr r3, [r7, #4]
  36614. 800ff2c: 681b ldr r3, [r3, #0]
  36615. 800ff2e: 461a mov r2, r3
  36616. 800ff30: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94
  36617. 800ff34: 65bb str r3, [r7, #88] @ 0x58
  36618. 800ff36: 657a str r2, [r7, #84] @ 0x54
  36619. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36620. 800ff38: 6d79 ldr r1, [r7, #84] @ 0x54
  36621. 800ff3a: 6dba ldr r2, [r7, #88] @ 0x58
  36622. 800ff3c: e841 2300 strex r3, r2, [r1]
  36623. 800ff40: 653b str r3, [r7, #80] @ 0x50
  36624. return(result);
  36625. 800ff42: 6d3b ldr r3, [r7, #80] @ 0x50
  36626. 800ff44: 2b00 cmp r3, #0
  36627. 800ff46: d1e4 bne.n 800ff12 <UART_RxISR_16BIT_FIFOEN+0x1f2>
  36628. }
  36629. }
  36630. /* Check current reception Mode :
  36631. If Reception till IDLE event has been selected : */
  36632. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  36633. 800ff48: 687b ldr r3, [r7, #4]
  36634. 800ff4a: 6edb ldr r3, [r3, #108] @ 0x6c
  36635. 800ff4c: 2b01 cmp r3, #1
  36636. 800ff4e: d130 bne.n 800ffb2 <UART_RxISR_16BIT_FIFOEN+0x292>
  36637. {
  36638. /* Set reception type to Standard */
  36639. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  36640. 800ff50: 687b ldr r3, [r7, #4]
  36641. 800ff52: 2200 movs r2, #0
  36642. 800ff54: 66da str r2, [r3, #108] @ 0x6c
  36643. /* Disable IDLE interrupt */
  36644. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  36645. 800ff56: 687b ldr r3, [r7, #4]
  36646. 800ff58: 681b ldr r3, [r3, #0]
  36647. 800ff5a: 63bb str r3, [r7, #56] @ 0x38
  36648. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36649. 800ff5c: 6bbb ldr r3, [r7, #56] @ 0x38
  36650. 800ff5e: e853 3f00 ldrex r3, [r3]
  36651. 800ff62: 637b str r3, [r7, #52] @ 0x34
  36652. return(result);
  36653. 800ff64: 6b7b ldr r3, [r7, #52] @ 0x34
  36654. 800ff66: f023 0310 bic.w r3, r3, #16
  36655. 800ff6a: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  36656. 800ff6e: 687b ldr r3, [r7, #4]
  36657. 800ff70: 681b ldr r3, [r3, #0]
  36658. 800ff72: 461a mov r2, r3
  36659. 800ff74: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  36660. 800ff78: 647b str r3, [r7, #68] @ 0x44
  36661. 800ff7a: 643a str r2, [r7, #64] @ 0x40
  36662. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36663. 800ff7c: 6c39 ldr r1, [r7, #64] @ 0x40
  36664. 800ff7e: 6c7a ldr r2, [r7, #68] @ 0x44
  36665. 800ff80: e841 2300 strex r3, r2, [r1]
  36666. 800ff84: 63fb str r3, [r7, #60] @ 0x3c
  36667. return(result);
  36668. 800ff86: 6bfb ldr r3, [r7, #60] @ 0x3c
  36669. 800ff88: 2b00 cmp r3, #0
  36670. 800ff8a: d1e4 bne.n 800ff56 <UART_RxISR_16BIT_FIFOEN+0x236>
  36671. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  36672. 800ff8c: 687b ldr r3, [r7, #4]
  36673. 800ff8e: 681b ldr r3, [r3, #0]
  36674. 800ff90: 69db ldr r3, [r3, #28]
  36675. 800ff92: f003 0310 and.w r3, r3, #16
  36676. 800ff96: 2b10 cmp r3, #16
  36677. 800ff98: d103 bne.n 800ffa2 <UART_RxISR_16BIT_FIFOEN+0x282>
  36678. {
  36679. /* Clear IDLE Flag */
  36680. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  36681. 800ff9a: 687b ldr r3, [r7, #4]
  36682. 800ff9c: 681b ldr r3, [r3, #0]
  36683. 800ff9e: 2210 movs r2, #16
  36684. 800ffa0: 621a str r2, [r3, #32]
  36685. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  36686. /*Call registered Rx Event callback*/
  36687. huart->RxEventCallback(huart, huart->RxXferSize);
  36688. #else
  36689. /*Call legacy weak Rx Event callback*/
  36690. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  36691. 800ffa2: 687b ldr r3, [r7, #4]
  36692. 800ffa4: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  36693. 800ffa8: 4619 mov r1, r3
  36694. 800ffaa: 6878 ldr r0, [r7, #4]
  36695. 800ffac: f7f4 fae8 bl 8004580 <HAL_UARTEx_RxEventCallback>
  36696. 800ffb0: e002 b.n 800ffb8 <UART_RxISR_16BIT_FIFOEN+0x298>
  36697. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  36698. /*Call registered Rx complete callback*/
  36699. huart->RxCpltCallback(huart);
  36700. #else
  36701. /*Call legacy weak Rx complete callback*/
  36702. HAL_UART_RxCpltCallback(huart);
  36703. 800ffb2: 6878 ldr r0, [r7, #4]
  36704. 800ffb4: f7f4 fada bl 800456c <HAL_UART_RxCpltCallback>
  36705. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  36706. 800ffb8: f8b7 30a6 ldrh.w r3, [r7, #166] @ 0xa6
  36707. 800ffbc: 2b00 cmp r3, #0
  36708. 800ffbe: d006 beq.n 800ffce <UART_RxISR_16BIT_FIFOEN+0x2ae>
  36709. 800ffc0: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  36710. 800ffc4: f003 0320 and.w r3, r3, #32
  36711. 800ffc8: 2b00 cmp r3, #0
  36712. 800ffca: f47f aecd bne.w 800fd68 <UART_RxISR_16BIT_FIFOEN+0x48>
  36713. /* When remaining number of bytes to receive is less than the RX FIFO
  36714. threshold, next incoming frames are processed as if FIFO mode was
  36715. disabled (i.e. one interrupt per received frame).
  36716. */
  36717. rxdatacount = huart->RxXferCount;
  36718. 800ffce: 687b ldr r3, [r7, #4]
  36719. 800ffd0: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  36720. 800ffd4: f8a7 308e strh.w r3, [r7, #142] @ 0x8e
  36721. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  36722. 800ffd8: f8b7 308e ldrh.w r3, [r7, #142] @ 0x8e
  36723. 800ffdc: 2b00 cmp r3, #0
  36724. 800ffde: d049 beq.n 8010074 <UART_RxISR_16BIT_FIFOEN+0x354>
  36725. 800ffe0: 687b ldr r3, [r7, #4]
  36726. 800ffe2: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  36727. 800ffe6: f8b7 208e ldrh.w r2, [r7, #142] @ 0x8e
  36728. 800ffea: 429a cmp r2, r3
  36729. 800ffec: d242 bcs.n 8010074 <UART_RxISR_16BIT_FIFOEN+0x354>
  36730. {
  36731. /* Disable the UART RXFT interrupt*/
  36732. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  36733. 800ffee: 687b ldr r3, [r7, #4]
  36734. 800fff0: 681b ldr r3, [r3, #0]
  36735. 800fff2: 3308 adds r3, #8
  36736. 800fff4: 627b str r3, [r7, #36] @ 0x24
  36737. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36738. 800fff6: 6a7b ldr r3, [r7, #36] @ 0x24
  36739. 800fff8: e853 3f00 ldrex r3, [r3]
  36740. 800fffc: 623b str r3, [r7, #32]
  36741. return(result);
  36742. 800fffe: 6a3b ldr r3, [r7, #32]
  36743. 8010000: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  36744. 8010004: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  36745. 8010008: 687b ldr r3, [r7, #4]
  36746. 801000a: 681b ldr r3, [r3, #0]
  36747. 801000c: 3308 adds r3, #8
  36748. 801000e: f8d7 2088 ldr.w r2, [r7, #136] @ 0x88
  36749. 8010012: 633a str r2, [r7, #48] @ 0x30
  36750. 8010014: 62fb str r3, [r7, #44] @ 0x2c
  36751. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36752. 8010016: 6af9 ldr r1, [r7, #44] @ 0x2c
  36753. 8010018: 6b3a ldr r2, [r7, #48] @ 0x30
  36754. 801001a: e841 2300 strex r3, r2, [r1]
  36755. 801001e: 62bb str r3, [r7, #40] @ 0x28
  36756. return(result);
  36757. 8010020: 6abb ldr r3, [r7, #40] @ 0x28
  36758. 8010022: 2b00 cmp r3, #0
  36759. 8010024: d1e3 bne.n 800ffee <UART_RxISR_16BIT_FIFOEN+0x2ce>
  36760. /* Update the RxISR function pointer */
  36761. huart->RxISR = UART_RxISR_16BIT;
  36762. 8010026: 687b ldr r3, [r7, #4]
  36763. 8010028: 4a16 ldr r2, [pc, #88] @ (8010084 <UART_RxISR_16BIT_FIFOEN+0x364>)
  36764. 801002a: 675a str r2, [r3, #116] @ 0x74
  36765. /* Enable the UART Data Register Not Empty interrupt */
  36766. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  36767. 801002c: 687b ldr r3, [r7, #4]
  36768. 801002e: 681b ldr r3, [r3, #0]
  36769. 8010030: 613b str r3, [r7, #16]
  36770. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36771. 8010032: 693b ldr r3, [r7, #16]
  36772. 8010034: e853 3f00 ldrex r3, [r3]
  36773. 8010038: 60fb str r3, [r7, #12]
  36774. return(result);
  36775. 801003a: 68fb ldr r3, [r7, #12]
  36776. 801003c: f043 0320 orr.w r3, r3, #32
  36777. 8010040: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  36778. 8010044: 687b ldr r3, [r7, #4]
  36779. 8010046: 681b ldr r3, [r3, #0]
  36780. 8010048: 461a mov r2, r3
  36781. 801004a: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  36782. 801004e: 61fb str r3, [r7, #28]
  36783. 8010050: 61ba str r2, [r7, #24]
  36784. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36785. 8010052: 69b9 ldr r1, [r7, #24]
  36786. 8010054: 69fa ldr r2, [r7, #28]
  36787. 8010056: e841 2300 strex r3, r2, [r1]
  36788. 801005a: 617b str r3, [r7, #20]
  36789. return(result);
  36790. 801005c: 697b ldr r3, [r7, #20]
  36791. 801005e: 2b00 cmp r3, #0
  36792. 8010060: d1e4 bne.n 801002c <UART_RxISR_16BIT_FIFOEN+0x30c>
  36793. else
  36794. {
  36795. /* Clear RXNE interrupt flag */
  36796. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  36797. }
  36798. }
  36799. 8010062: e007 b.n 8010074 <UART_RxISR_16BIT_FIFOEN+0x354>
  36800. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  36801. 8010064: 687b ldr r3, [r7, #4]
  36802. 8010066: 681b ldr r3, [r3, #0]
  36803. 8010068: 699a ldr r2, [r3, #24]
  36804. 801006a: 687b ldr r3, [r7, #4]
  36805. 801006c: 681b ldr r3, [r3, #0]
  36806. 801006e: f042 0208 orr.w r2, r2, #8
  36807. 8010072: 619a str r2, [r3, #24]
  36808. }
  36809. 8010074: bf00 nop
  36810. 8010076: 37b8 adds r7, #184 @ 0xb8
  36811. 8010078: 46bd mov sp, r7
  36812. 801007a: bd80 pop {r7, pc}
  36813. 801007c: effffffe .word 0xeffffffe
  36814. 8010080: 58000c00 .word 0x58000c00
  36815. 8010084: 0800f809 .word 0x0800f809
  36816. 08010088 <HAL_UARTEx_WakeupCallback>:
  36817. * @brief UART wakeup from Stop mode callback.
  36818. * @param huart UART handle.
  36819. * @retval None
  36820. */
  36821. __weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart)
  36822. {
  36823. 8010088: b480 push {r7}
  36824. 801008a: b083 sub sp, #12
  36825. 801008c: af00 add r7, sp, #0
  36826. 801008e: 6078 str r0, [r7, #4]
  36827. UNUSED(huart);
  36828. /* NOTE : This function should not be modified, when the callback is needed,
  36829. the HAL_UARTEx_WakeupCallback can be implemented in the user file.
  36830. */
  36831. }
  36832. 8010090: bf00 nop
  36833. 8010092: 370c adds r7, #12
  36834. 8010094: 46bd mov sp, r7
  36835. 8010096: f85d 7b04 ldr.w r7, [sp], #4
  36836. 801009a: 4770 bx lr
  36837. 0801009c <HAL_UARTEx_RxFifoFullCallback>:
  36838. * @brief UART RX Fifo full callback.
  36839. * @param huart UART handle.
  36840. * @retval None
  36841. */
  36842. __weak void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart)
  36843. {
  36844. 801009c: b480 push {r7}
  36845. 801009e: b083 sub sp, #12
  36846. 80100a0: af00 add r7, sp, #0
  36847. 80100a2: 6078 str r0, [r7, #4]
  36848. UNUSED(huart);
  36849. /* NOTE : This function should not be modified, when the callback is needed,
  36850. the HAL_UARTEx_RxFifoFullCallback can be implemented in the user file.
  36851. */
  36852. }
  36853. 80100a4: bf00 nop
  36854. 80100a6: 370c adds r7, #12
  36855. 80100a8: 46bd mov sp, r7
  36856. 80100aa: f85d 7b04 ldr.w r7, [sp], #4
  36857. 80100ae: 4770 bx lr
  36858. 080100b0 <HAL_UARTEx_TxFifoEmptyCallback>:
  36859. * @brief UART TX Fifo empty callback.
  36860. * @param huart UART handle.
  36861. * @retval None
  36862. */
  36863. __weak void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart)
  36864. {
  36865. 80100b0: b480 push {r7}
  36866. 80100b2: b083 sub sp, #12
  36867. 80100b4: af00 add r7, sp, #0
  36868. 80100b6: 6078 str r0, [r7, #4]
  36869. UNUSED(huart);
  36870. /* NOTE : This function should not be modified, when the callback is needed,
  36871. the HAL_UARTEx_TxFifoEmptyCallback can be implemented in the user file.
  36872. */
  36873. }
  36874. 80100b8: bf00 nop
  36875. 80100ba: 370c adds r7, #12
  36876. 80100bc: 46bd mov sp, r7
  36877. 80100be: f85d 7b04 ldr.w r7, [sp], #4
  36878. 80100c2: 4770 bx lr
  36879. 080100c4 <HAL_UARTEx_DisableFifoMode>:
  36880. * @brief Disable the FIFO mode.
  36881. * @param huart UART handle.
  36882. * @retval HAL status
  36883. */
  36884. HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart)
  36885. {
  36886. 80100c4: b480 push {r7}
  36887. 80100c6: b085 sub sp, #20
  36888. 80100c8: af00 add r7, sp, #0
  36889. 80100ca: 6078 str r0, [r7, #4]
  36890. /* Check parameters */
  36891. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  36892. /* Process Locked */
  36893. __HAL_LOCK(huart);
  36894. 80100cc: 687b ldr r3, [r7, #4]
  36895. 80100ce: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  36896. 80100d2: 2b01 cmp r3, #1
  36897. 80100d4: d101 bne.n 80100da <HAL_UARTEx_DisableFifoMode+0x16>
  36898. 80100d6: 2302 movs r3, #2
  36899. 80100d8: e027 b.n 801012a <HAL_UARTEx_DisableFifoMode+0x66>
  36900. 80100da: 687b ldr r3, [r7, #4]
  36901. 80100dc: 2201 movs r2, #1
  36902. 80100de: f883 2084 strb.w r2, [r3, #132] @ 0x84
  36903. huart->gState = HAL_UART_STATE_BUSY;
  36904. 80100e2: 687b ldr r3, [r7, #4]
  36905. 80100e4: 2224 movs r2, #36 @ 0x24
  36906. 80100e6: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  36907. /* Save actual UART configuration */
  36908. tmpcr1 = READ_REG(huart->Instance->CR1);
  36909. 80100ea: 687b ldr r3, [r7, #4]
  36910. 80100ec: 681b ldr r3, [r3, #0]
  36911. 80100ee: 681b ldr r3, [r3, #0]
  36912. 80100f0: 60fb str r3, [r7, #12]
  36913. /* Disable UART */
  36914. __HAL_UART_DISABLE(huart);
  36915. 80100f2: 687b ldr r3, [r7, #4]
  36916. 80100f4: 681b ldr r3, [r3, #0]
  36917. 80100f6: 681a ldr r2, [r3, #0]
  36918. 80100f8: 687b ldr r3, [r7, #4]
  36919. 80100fa: 681b ldr r3, [r3, #0]
  36920. 80100fc: f022 0201 bic.w r2, r2, #1
  36921. 8010100: 601a str r2, [r3, #0]
  36922. /* Enable FIFO mode */
  36923. CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN);
  36924. 8010102: 68fb ldr r3, [r7, #12]
  36925. 8010104: f023 5300 bic.w r3, r3, #536870912 @ 0x20000000
  36926. 8010108: 60fb str r3, [r7, #12]
  36927. huart->FifoMode = UART_FIFOMODE_DISABLE;
  36928. 801010a: 687b ldr r3, [r7, #4]
  36929. 801010c: 2200 movs r2, #0
  36930. 801010e: 665a str r2, [r3, #100] @ 0x64
  36931. /* Restore UART configuration */
  36932. WRITE_REG(huart->Instance->CR1, tmpcr1);
  36933. 8010110: 687b ldr r3, [r7, #4]
  36934. 8010112: 681b ldr r3, [r3, #0]
  36935. 8010114: 68fa ldr r2, [r7, #12]
  36936. 8010116: 601a str r2, [r3, #0]
  36937. huart->gState = HAL_UART_STATE_READY;
  36938. 8010118: 687b ldr r3, [r7, #4]
  36939. 801011a: 2220 movs r2, #32
  36940. 801011c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  36941. /* Process Unlocked */
  36942. __HAL_UNLOCK(huart);
  36943. 8010120: 687b ldr r3, [r7, #4]
  36944. 8010122: 2200 movs r2, #0
  36945. 8010124: f883 2084 strb.w r2, [r3, #132] @ 0x84
  36946. return HAL_OK;
  36947. 8010128: 2300 movs r3, #0
  36948. }
  36949. 801012a: 4618 mov r0, r3
  36950. 801012c: 3714 adds r7, #20
  36951. 801012e: 46bd mov sp, r7
  36952. 8010130: f85d 7b04 ldr.w r7, [sp], #4
  36953. 8010134: 4770 bx lr
  36954. 08010136 <HAL_UARTEx_SetTxFifoThreshold>:
  36955. * @arg @ref UART_TXFIFO_THRESHOLD_7_8
  36956. * @arg @ref UART_TXFIFO_THRESHOLD_8_8
  36957. * @retval HAL status
  36958. */
  36959. HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  36960. {
  36961. 8010136: b580 push {r7, lr}
  36962. 8010138: b084 sub sp, #16
  36963. 801013a: af00 add r7, sp, #0
  36964. 801013c: 6078 str r0, [r7, #4]
  36965. 801013e: 6039 str r1, [r7, #0]
  36966. /* Check parameters */
  36967. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  36968. assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold));
  36969. /* Process Locked */
  36970. __HAL_LOCK(huart);
  36971. 8010140: 687b ldr r3, [r7, #4]
  36972. 8010142: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  36973. 8010146: 2b01 cmp r3, #1
  36974. 8010148: d101 bne.n 801014e <HAL_UARTEx_SetTxFifoThreshold+0x18>
  36975. 801014a: 2302 movs r3, #2
  36976. 801014c: e02d b.n 80101aa <HAL_UARTEx_SetTxFifoThreshold+0x74>
  36977. 801014e: 687b ldr r3, [r7, #4]
  36978. 8010150: 2201 movs r2, #1
  36979. 8010152: f883 2084 strb.w r2, [r3, #132] @ 0x84
  36980. huart->gState = HAL_UART_STATE_BUSY;
  36981. 8010156: 687b ldr r3, [r7, #4]
  36982. 8010158: 2224 movs r2, #36 @ 0x24
  36983. 801015a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  36984. /* Save actual UART configuration */
  36985. tmpcr1 = READ_REG(huart->Instance->CR1);
  36986. 801015e: 687b ldr r3, [r7, #4]
  36987. 8010160: 681b ldr r3, [r3, #0]
  36988. 8010162: 681b ldr r3, [r3, #0]
  36989. 8010164: 60fb str r3, [r7, #12]
  36990. /* Disable UART */
  36991. __HAL_UART_DISABLE(huart);
  36992. 8010166: 687b ldr r3, [r7, #4]
  36993. 8010168: 681b ldr r3, [r3, #0]
  36994. 801016a: 681a ldr r2, [r3, #0]
  36995. 801016c: 687b ldr r3, [r7, #4]
  36996. 801016e: 681b ldr r3, [r3, #0]
  36997. 8010170: f022 0201 bic.w r2, r2, #1
  36998. 8010174: 601a str r2, [r3, #0]
  36999. /* Update TX threshold configuration */
  37000. MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold);
  37001. 8010176: 687b ldr r3, [r7, #4]
  37002. 8010178: 681b ldr r3, [r3, #0]
  37003. 801017a: 689b ldr r3, [r3, #8]
  37004. 801017c: f023 4160 bic.w r1, r3, #3758096384 @ 0xe0000000
  37005. 8010180: 687b ldr r3, [r7, #4]
  37006. 8010182: 681b ldr r3, [r3, #0]
  37007. 8010184: 683a ldr r2, [r7, #0]
  37008. 8010186: 430a orrs r2, r1
  37009. 8010188: 609a str r2, [r3, #8]
  37010. /* Determine the number of data to process during RX/TX ISR execution */
  37011. UARTEx_SetNbDataToProcess(huart);
  37012. 801018a: 6878 ldr r0, [r7, #4]
  37013. 801018c: f000 f8a0 bl 80102d0 <UARTEx_SetNbDataToProcess>
  37014. /* Restore UART configuration */
  37015. WRITE_REG(huart->Instance->CR1, tmpcr1);
  37016. 8010190: 687b ldr r3, [r7, #4]
  37017. 8010192: 681b ldr r3, [r3, #0]
  37018. 8010194: 68fa ldr r2, [r7, #12]
  37019. 8010196: 601a str r2, [r3, #0]
  37020. huart->gState = HAL_UART_STATE_READY;
  37021. 8010198: 687b ldr r3, [r7, #4]
  37022. 801019a: 2220 movs r2, #32
  37023. 801019c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  37024. /* Process Unlocked */
  37025. __HAL_UNLOCK(huart);
  37026. 80101a0: 687b ldr r3, [r7, #4]
  37027. 80101a2: 2200 movs r2, #0
  37028. 80101a4: f883 2084 strb.w r2, [r3, #132] @ 0x84
  37029. return HAL_OK;
  37030. 80101a8: 2300 movs r3, #0
  37031. }
  37032. 80101aa: 4618 mov r0, r3
  37033. 80101ac: 3710 adds r7, #16
  37034. 80101ae: 46bd mov sp, r7
  37035. 80101b0: bd80 pop {r7, pc}
  37036. 080101b2 <HAL_UARTEx_SetRxFifoThreshold>:
  37037. * @arg @ref UART_RXFIFO_THRESHOLD_7_8
  37038. * @arg @ref UART_RXFIFO_THRESHOLD_8_8
  37039. * @retval HAL status
  37040. */
  37041. HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  37042. {
  37043. 80101b2: b580 push {r7, lr}
  37044. 80101b4: b084 sub sp, #16
  37045. 80101b6: af00 add r7, sp, #0
  37046. 80101b8: 6078 str r0, [r7, #4]
  37047. 80101ba: 6039 str r1, [r7, #0]
  37048. /* Check the parameters */
  37049. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  37050. assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold));
  37051. /* Process Locked */
  37052. __HAL_LOCK(huart);
  37053. 80101bc: 687b ldr r3, [r7, #4]
  37054. 80101be: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  37055. 80101c2: 2b01 cmp r3, #1
  37056. 80101c4: d101 bne.n 80101ca <HAL_UARTEx_SetRxFifoThreshold+0x18>
  37057. 80101c6: 2302 movs r3, #2
  37058. 80101c8: e02d b.n 8010226 <HAL_UARTEx_SetRxFifoThreshold+0x74>
  37059. 80101ca: 687b ldr r3, [r7, #4]
  37060. 80101cc: 2201 movs r2, #1
  37061. 80101ce: f883 2084 strb.w r2, [r3, #132] @ 0x84
  37062. huart->gState = HAL_UART_STATE_BUSY;
  37063. 80101d2: 687b ldr r3, [r7, #4]
  37064. 80101d4: 2224 movs r2, #36 @ 0x24
  37065. 80101d6: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  37066. /* Save actual UART configuration */
  37067. tmpcr1 = READ_REG(huart->Instance->CR1);
  37068. 80101da: 687b ldr r3, [r7, #4]
  37069. 80101dc: 681b ldr r3, [r3, #0]
  37070. 80101de: 681b ldr r3, [r3, #0]
  37071. 80101e0: 60fb str r3, [r7, #12]
  37072. /* Disable UART */
  37073. __HAL_UART_DISABLE(huart);
  37074. 80101e2: 687b ldr r3, [r7, #4]
  37075. 80101e4: 681b ldr r3, [r3, #0]
  37076. 80101e6: 681a ldr r2, [r3, #0]
  37077. 80101e8: 687b ldr r3, [r7, #4]
  37078. 80101ea: 681b ldr r3, [r3, #0]
  37079. 80101ec: f022 0201 bic.w r2, r2, #1
  37080. 80101f0: 601a str r2, [r3, #0]
  37081. /* Update RX threshold configuration */
  37082. MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold);
  37083. 80101f2: 687b ldr r3, [r7, #4]
  37084. 80101f4: 681b ldr r3, [r3, #0]
  37085. 80101f6: 689b ldr r3, [r3, #8]
  37086. 80101f8: f023 6160 bic.w r1, r3, #234881024 @ 0xe000000
  37087. 80101fc: 687b ldr r3, [r7, #4]
  37088. 80101fe: 681b ldr r3, [r3, #0]
  37089. 8010200: 683a ldr r2, [r7, #0]
  37090. 8010202: 430a orrs r2, r1
  37091. 8010204: 609a str r2, [r3, #8]
  37092. /* Determine the number of data to process during RX/TX ISR execution */
  37093. UARTEx_SetNbDataToProcess(huart);
  37094. 8010206: 6878 ldr r0, [r7, #4]
  37095. 8010208: f000 f862 bl 80102d0 <UARTEx_SetNbDataToProcess>
  37096. /* Restore UART configuration */
  37097. WRITE_REG(huart->Instance->CR1, tmpcr1);
  37098. 801020c: 687b ldr r3, [r7, #4]
  37099. 801020e: 681b ldr r3, [r3, #0]
  37100. 8010210: 68fa ldr r2, [r7, #12]
  37101. 8010212: 601a str r2, [r3, #0]
  37102. huart->gState = HAL_UART_STATE_READY;
  37103. 8010214: 687b ldr r3, [r7, #4]
  37104. 8010216: 2220 movs r2, #32
  37105. 8010218: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  37106. /* Process Unlocked */
  37107. __HAL_UNLOCK(huart);
  37108. 801021c: 687b ldr r3, [r7, #4]
  37109. 801021e: 2200 movs r2, #0
  37110. 8010220: f883 2084 strb.w r2, [r3, #132] @ 0x84
  37111. return HAL_OK;
  37112. 8010224: 2300 movs r3, #0
  37113. }
  37114. 8010226: 4618 mov r0, r3
  37115. 8010228: 3710 adds r7, #16
  37116. 801022a: 46bd mov sp, r7
  37117. 801022c: bd80 pop {r7, pc}
  37118. 0801022e <HAL_UARTEx_ReceiveToIdle_IT>:
  37119. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  37120. * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  37121. * @retval HAL status
  37122. */
  37123. HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  37124. {
  37125. 801022e: b580 push {r7, lr}
  37126. 8010230: b08c sub sp, #48 @ 0x30
  37127. 8010232: af00 add r7, sp, #0
  37128. 8010234: 60f8 str r0, [r7, #12]
  37129. 8010236: 60b9 str r1, [r7, #8]
  37130. 8010238: 4613 mov r3, r2
  37131. 801023a: 80fb strh r3, [r7, #6]
  37132. HAL_StatusTypeDef status = HAL_OK;
  37133. 801023c: 2300 movs r3, #0
  37134. 801023e: f887 302f strb.w r3, [r7, #47] @ 0x2f
  37135. /* Check that a Rx process is not already ongoing */
  37136. if (huart->RxState == HAL_UART_STATE_READY)
  37137. 8010242: 68fb ldr r3, [r7, #12]
  37138. 8010244: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  37139. 8010248: 2b20 cmp r3, #32
  37140. 801024a: d13b bne.n 80102c4 <HAL_UARTEx_ReceiveToIdle_IT+0x96>
  37141. {
  37142. if ((pData == NULL) || (Size == 0U))
  37143. 801024c: 68bb ldr r3, [r7, #8]
  37144. 801024e: 2b00 cmp r3, #0
  37145. 8010250: d002 beq.n 8010258 <HAL_UARTEx_ReceiveToIdle_IT+0x2a>
  37146. 8010252: 88fb ldrh r3, [r7, #6]
  37147. 8010254: 2b00 cmp r3, #0
  37148. 8010256: d101 bne.n 801025c <HAL_UARTEx_ReceiveToIdle_IT+0x2e>
  37149. {
  37150. return HAL_ERROR;
  37151. 8010258: 2301 movs r3, #1
  37152. 801025a: e034 b.n 80102c6 <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  37153. }
  37154. /* Set Reception type to reception till IDLE Event*/
  37155. huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  37156. 801025c: 68fb ldr r3, [r7, #12]
  37157. 801025e: 2201 movs r2, #1
  37158. 8010260: 66da str r2, [r3, #108] @ 0x6c
  37159. huart->RxEventType = HAL_UART_RXEVENT_TC;
  37160. 8010262: 68fb ldr r3, [r7, #12]
  37161. 8010264: 2200 movs r2, #0
  37162. 8010266: 671a str r2, [r3, #112] @ 0x70
  37163. (void)UART_Start_Receive_IT(huart, pData, Size);
  37164. 8010268: 88fb ldrh r3, [r7, #6]
  37165. 801026a: 461a mov r2, r3
  37166. 801026c: 68b9 ldr r1, [r7, #8]
  37167. 801026e: 68f8 ldr r0, [r7, #12]
  37168. 8010270: f7fe fe82 bl 800ef78 <UART_Start_Receive_IT>
  37169. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  37170. 8010274: 68fb ldr r3, [r7, #12]
  37171. 8010276: 6edb ldr r3, [r3, #108] @ 0x6c
  37172. 8010278: 2b01 cmp r3, #1
  37173. 801027a: d11d bne.n 80102b8 <HAL_UARTEx_ReceiveToIdle_IT+0x8a>
  37174. {
  37175. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  37176. 801027c: 68fb ldr r3, [r7, #12]
  37177. 801027e: 681b ldr r3, [r3, #0]
  37178. 8010280: 2210 movs r2, #16
  37179. 8010282: 621a str r2, [r3, #32]
  37180. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  37181. 8010284: 68fb ldr r3, [r7, #12]
  37182. 8010286: 681b ldr r3, [r3, #0]
  37183. 8010288: 61bb str r3, [r7, #24]
  37184. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  37185. 801028a: 69bb ldr r3, [r7, #24]
  37186. 801028c: e853 3f00 ldrex r3, [r3]
  37187. 8010290: 617b str r3, [r7, #20]
  37188. return(result);
  37189. 8010292: 697b ldr r3, [r7, #20]
  37190. 8010294: f043 0310 orr.w r3, r3, #16
  37191. 8010298: 62bb str r3, [r7, #40] @ 0x28
  37192. 801029a: 68fb ldr r3, [r7, #12]
  37193. 801029c: 681b ldr r3, [r3, #0]
  37194. 801029e: 461a mov r2, r3
  37195. 80102a0: 6abb ldr r3, [r7, #40] @ 0x28
  37196. 80102a2: 627b str r3, [r7, #36] @ 0x24
  37197. 80102a4: 623a str r2, [r7, #32]
  37198. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  37199. 80102a6: 6a39 ldr r1, [r7, #32]
  37200. 80102a8: 6a7a ldr r2, [r7, #36] @ 0x24
  37201. 80102aa: e841 2300 strex r3, r2, [r1]
  37202. 80102ae: 61fb str r3, [r7, #28]
  37203. return(result);
  37204. 80102b0: 69fb ldr r3, [r7, #28]
  37205. 80102b2: 2b00 cmp r3, #0
  37206. 80102b4: d1e6 bne.n 8010284 <HAL_UARTEx_ReceiveToIdle_IT+0x56>
  37207. 80102b6: e002 b.n 80102be <HAL_UARTEx_ReceiveToIdle_IT+0x90>
  37208. {
  37209. /* In case of errors already pending when reception is started,
  37210. Interrupts may have already been raised and lead to reception abortion.
  37211. (Overrun error for instance).
  37212. In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */
  37213. status = HAL_ERROR;
  37214. 80102b8: 2301 movs r3, #1
  37215. 80102ba: f887 302f strb.w r3, [r7, #47] @ 0x2f
  37216. }
  37217. return status;
  37218. 80102be: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
  37219. 80102c2: e000 b.n 80102c6 <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  37220. }
  37221. else
  37222. {
  37223. return HAL_BUSY;
  37224. 80102c4: 2302 movs r3, #2
  37225. }
  37226. }
  37227. 80102c6: 4618 mov r0, r3
  37228. 80102c8: 3730 adds r7, #48 @ 0x30
  37229. 80102ca: 46bd mov sp, r7
  37230. 80102cc: bd80 pop {r7, pc}
  37231. ...
  37232. 080102d0 <UARTEx_SetNbDataToProcess>:
  37233. * the UART configuration registers.
  37234. * @param huart UART handle.
  37235. * @retval None
  37236. */
  37237. static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart)
  37238. {
  37239. 80102d0: b480 push {r7}
  37240. 80102d2: b085 sub sp, #20
  37241. 80102d4: af00 add r7, sp, #0
  37242. 80102d6: 6078 str r0, [r7, #4]
  37243. uint8_t rx_fifo_threshold;
  37244. uint8_t tx_fifo_threshold;
  37245. static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U};
  37246. static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U};
  37247. if (huart->FifoMode == UART_FIFOMODE_DISABLE)
  37248. 80102d8: 687b ldr r3, [r7, #4]
  37249. 80102da: 6e5b ldr r3, [r3, #100] @ 0x64
  37250. 80102dc: 2b00 cmp r3, #0
  37251. 80102de: d108 bne.n 80102f2 <UARTEx_SetNbDataToProcess+0x22>
  37252. {
  37253. huart->NbTxDataToProcess = 1U;
  37254. 80102e0: 687b ldr r3, [r7, #4]
  37255. 80102e2: 2201 movs r2, #1
  37256. 80102e4: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  37257. huart->NbRxDataToProcess = 1U;
  37258. 80102e8: 687b ldr r3, [r7, #4]
  37259. 80102ea: 2201 movs r2, #1
  37260. 80102ec: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  37261. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  37262. (uint16_t)denominator[tx_fifo_threshold];
  37263. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  37264. (uint16_t)denominator[rx_fifo_threshold];
  37265. }
  37266. }
  37267. 80102f0: e031 b.n 8010356 <UARTEx_SetNbDataToProcess+0x86>
  37268. rx_fifo_depth = RX_FIFO_DEPTH;
  37269. 80102f2: 2310 movs r3, #16
  37270. 80102f4: 73fb strb r3, [r7, #15]
  37271. tx_fifo_depth = TX_FIFO_DEPTH;
  37272. 80102f6: 2310 movs r3, #16
  37273. 80102f8: 73bb strb r3, [r7, #14]
  37274. rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos);
  37275. 80102fa: 687b ldr r3, [r7, #4]
  37276. 80102fc: 681b ldr r3, [r3, #0]
  37277. 80102fe: 689b ldr r3, [r3, #8]
  37278. 8010300: 0e5b lsrs r3, r3, #25
  37279. 8010302: b2db uxtb r3, r3
  37280. 8010304: f003 0307 and.w r3, r3, #7
  37281. 8010308: 737b strb r3, [r7, #13]
  37282. tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos);
  37283. 801030a: 687b ldr r3, [r7, #4]
  37284. 801030c: 681b ldr r3, [r3, #0]
  37285. 801030e: 689b ldr r3, [r3, #8]
  37286. 8010310: 0f5b lsrs r3, r3, #29
  37287. 8010312: b2db uxtb r3, r3
  37288. 8010314: f003 0307 and.w r3, r3, #7
  37289. 8010318: 733b strb r3, [r7, #12]
  37290. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  37291. 801031a: 7bbb ldrb r3, [r7, #14]
  37292. 801031c: 7b3a ldrb r2, [r7, #12]
  37293. 801031e: 4911 ldr r1, [pc, #68] @ (8010364 <UARTEx_SetNbDataToProcess+0x94>)
  37294. 8010320: 5c8a ldrb r2, [r1, r2]
  37295. 8010322: fb02 f303 mul.w r3, r2, r3
  37296. (uint16_t)denominator[tx_fifo_threshold];
  37297. 8010326: 7b3a ldrb r2, [r7, #12]
  37298. 8010328: 490f ldr r1, [pc, #60] @ (8010368 <UARTEx_SetNbDataToProcess+0x98>)
  37299. 801032a: 5c8a ldrb r2, [r1, r2]
  37300. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  37301. 801032c: fb93 f3f2 sdiv r3, r3, r2
  37302. 8010330: b29a uxth r2, r3
  37303. 8010332: 687b ldr r3, [r7, #4]
  37304. 8010334: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  37305. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  37306. 8010338: 7bfb ldrb r3, [r7, #15]
  37307. 801033a: 7b7a ldrb r2, [r7, #13]
  37308. 801033c: 4909 ldr r1, [pc, #36] @ (8010364 <UARTEx_SetNbDataToProcess+0x94>)
  37309. 801033e: 5c8a ldrb r2, [r1, r2]
  37310. 8010340: fb02 f303 mul.w r3, r2, r3
  37311. (uint16_t)denominator[rx_fifo_threshold];
  37312. 8010344: 7b7a ldrb r2, [r7, #13]
  37313. 8010346: 4908 ldr r1, [pc, #32] @ (8010368 <UARTEx_SetNbDataToProcess+0x98>)
  37314. 8010348: 5c8a ldrb r2, [r1, r2]
  37315. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  37316. 801034a: fb93 f3f2 sdiv r3, r3, r2
  37317. 801034e: b29a uxth r2, r3
  37318. 8010350: 687b ldr r3, [r7, #4]
  37319. 8010352: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  37320. }
  37321. 8010356: bf00 nop
  37322. 8010358: 3714 adds r7, #20
  37323. 801035a: 46bd mov sp, r7
  37324. 801035c: f85d 7b04 ldr.w r7, [sp], #4
  37325. 8010360: 4770 bx lr
  37326. 8010362: bf00 nop
  37327. 8010364: 0803199c .word 0x0803199c
  37328. 8010368: 080319a4 .word 0x080319a4
  37329. 0801036c <tcpip_init_wrap>:
  37330. /* USER CODE END OS_THREAD_ATTR_CMSIS_RTOS_V2 */
  37331. /* USER CODE BEGIN 2 */
  37332. /* ETH_CODE: workaround to call LOCK_TCPIP_CORE after tcpip_init in MX_LWIP_Init
  37333. * This is to keep the code after MX code re-generation */
  37334. static inline void tcpip_init_wrap(tcpip_init_done_fn tcpip_init_done, void *arg){
  37335. 801036c: b580 push {r7, lr}
  37336. 801036e: b082 sub sp, #8
  37337. 8010370: af00 add r7, sp, #0
  37338. 8010372: 6078 str r0, [r7, #4]
  37339. 8010374: 6039 str r1, [r7, #0]
  37340. tcpip_init(tcpip_init_done, arg);
  37341. 8010376: 6839 ldr r1, [r7, #0]
  37342. 8010378: 6878 ldr r0, [r7, #4]
  37343. 801037a: f009 fa4b bl 8019814 <tcpip_init>
  37344. LOCK_TCPIP_CORE();
  37345. 801037e: f000 fda1 bl 8010ec4 <sys_lock_tcpip_core>
  37346. }
  37347. 8010382: bf00 nop
  37348. 8010384: 3708 adds r7, #8
  37349. 8010386: 46bd mov sp, r7
  37350. 8010388: bd80 pop {r7, pc}
  37351. ...
  37352. 0801038c <is_link_up>:
  37353. #define tcpip_init tcpip_init_wrap
  37354. uint8_t is_link_up(void)
  37355. {
  37356. 801038c: b480 push {r7}
  37357. 801038e: af00 add r7, sp, #0
  37358. return netif_is_up(&gnetif);
  37359. 8010390: 4b05 ldr r3, [pc, #20] @ (80103a8 <is_link_up+0x1c>)
  37360. 8010392: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  37361. 8010396: f003 0301 and.w r3, r3, #1
  37362. 801039a: b2db uxtb r3, r3
  37363. }
  37364. 801039c: 4618 mov r0, r3
  37365. 801039e: 46bd mov sp, r7
  37366. 80103a0: f85d 7b04 ldr.w r7, [sp], #4
  37367. 80103a4: 4770 bx lr
  37368. 80103a6: bf00 nop
  37369. 80103a8: 24002254 .word 0x24002254
  37370. 080103ac <MX_LWIP_Init>:
  37371. /**
  37372. * LwIP initialization function
  37373. */
  37374. void MX_LWIP_Init(void)
  37375. {
  37376. 80103ac: b580 push {r7, lr}
  37377. 80103ae: b084 sub sp, #16
  37378. 80103b0: af04 add r7, sp, #16
  37379. /* IP addresses initialization without DHCP (IPv4) */
  37380. ipaddr_aton(STATIC_IP, &ipaddr);
  37381. ipaddr_aton(STATIC_MASK, &netmask);
  37382. ipaddr_aton(STATIC_GW, &gw);
  37383. #else
  37384. ip_addr_set_zero_ip4(&ipaddr);
  37385. 80103b2: 4b27 ldr r3, [pc, #156] @ (8010450 <MX_LWIP_Init+0xa4>)
  37386. 80103b4: 2200 movs r2, #0
  37387. 80103b6: 601a str r2, [r3, #0]
  37388. ip_addr_set_zero_ip4(&netmask);
  37389. 80103b8: 4b26 ldr r3, [pc, #152] @ (8010454 <MX_LWIP_Init+0xa8>)
  37390. 80103ba: 2200 movs r2, #0
  37391. 80103bc: 601a str r2, [r3, #0]
  37392. ip_addr_set_zero_ip4(&gw);
  37393. 80103be: 4b26 ldr r3, [pc, #152] @ (8010458 <MX_LWIP_Init+0xac>)
  37394. 80103c0: 2200 movs r2, #0
  37395. 80103c2: 601a str r2, [r3, #0]
  37396. #endif
  37397. /* USER CODE END IP_ADDRESSES */
  37398. /* Initilialize the LwIP stack with RTOS */
  37399. tcpip_init( NULL, NULL );
  37400. 80103c4: 2100 movs r1, #0
  37401. 80103c6: 2000 movs r0, #0
  37402. 80103c8: f7ff ffd0 bl 801036c <tcpip_init_wrap>
  37403. // IP4_ADDR(&ipaddr, IP_ADDRESS[0], IP_ADDRESS[1], IP_ADDRESS[2], IP_ADDRESS[3]);
  37404. // IP4_ADDR(&netmask, NETMASK_ADDRESS[0], NETMASK_ADDRESS[1] , NETMASK_ADDRESS[2], NETMASK_ADDRESS[3]);
  37405. // IP4_ADDR(&gw, GATEWAY_ADDRESS[0], GATEWAY_ADDRESS[1], GATEWAY_ADDRESS[2], GATEWAY_ADDRESS[3]);
  37406. /* add the network interface (IPv4/IPv6) with RTOS */
  37407. netif_add(&gnetif, &ipaddr, &netmask, &gw, NULL, &ethernetif_init, &tcpip_input);
  37408. 80103cc: 4b23 ldr r3, [pc, #140] @ (801045c <MX_LWIP_Init+0xb0>)
  37409. 80103ce: 9302 str r3, [sp, #8]
  37410. 80103d0: 4b23 ldr r3, [pc, #140] @ (8010460 <MX_LWIP_Init+0xb4>)
  37411. 80103d2: 9301 str r3, [sp, #4]
  37412. 80103d4: 2300 movs r3, #0
  37413. 80103d6: 9300 str r3, [sp, #0]
  37414. 80103d8: 4b1f ldr r3, [pc, #124] @ (8010458 <MX_LWIP_Init+0xac>)
  37415. 80103da: 4a1e ldr r2, [pc, #120] @ (8010454 <MX_LWIP_Init+0xa8>)
  37416. 80103dc: 491c ldr r1, [pc, #112] @ (8010450 <MX_LWIP_Init+0xa4>)
  37417. 80103de: 4821 ldr r0, [pc, #132] @ (8010464 <MX_LWIP_Init+0xb8>)
  37418. 80103e0: f00a f888 bl 801a4f4 <netif_add>
  37419. /* Registers the default network interface */
  37420. netif_set_default(&gnetif);
  37421. 80103e4: 481f ldr r0, [pc, #124] @ (8010464 <MX_LWIP_Init+0xb8>)
  37422. 80103e6: f00a fa43 bl 801a870 <netif_set_default>
  37423. if (netif_is_link_up(&gnetif))
  37424. 80103ea: 4b1e ldr r3, [pc, #120] @ (8010464 <MX_LWIP_Init+0xb8>)
  37425. 80103ec: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  37426. 80103f0: 089b lsrs r3, r3, #2
  37427. 80103f2: f003 0301 and.w r3, r3, #1
  37428. 80103f6: b2db uxtb r3, r3
  37429. 80103f8: 2b00 cmp r3, #0
  37430. 80103fa: d003 beq.n 8010404 <MX_LWIP_Init+0x58>
  37431. {
  37432. /* When the netif is fully configured this function must be called */
  37433. netif_set_up(&gnetif);
  37434. 80103fc: 4819 ldr r0, [pc, #100] @ (8010464 <MX_LWIP_Init+0xb8>)
  37435. 80103fe: f00a fa47 bl 801a890 <netif_set_up>
  37436. 8010402: e002 b.n 801040a <MX_LWIP_Init+0x5e>
  37437. }
  37438. else
  37439. {
  37440. /* When the netif link is down this function must be called */
  37441. netif_set_down(&gnetif);
  37442. 8010404: 4817 ldr r0, [pc, #92] @ (8010464 <MX_LWIP_Init+0xb8>)
  37443. 8010406: f00a fab1 bl 801a96c <netif_set_down>
  37444. }
  37445. /* Set the link callback function, this function is called on change of link status*/
  37446. netif_set_link_callback(&gnetif, ethernet_link_status_updated);
  37447. 801040a: 4917 ldr r1, [pc, #92] @ (8010468 <MX_LWIP_Init+0xbc>)
  37448. 801040c: 4815 ldr r0, [pc, #84] @ (8010464 <MX_LWIP_Init+0xb8>)
  37449. 801040e: f00a fb4d bl 801aaac <netif_set_link_callback>
  37450. /* Create the Ethernet link handler thread */
  37451. /* USER CODE BEGIN H7_OS_THREAD_NEW_CMSIS_RTOS_V2 */
  37452. memset(&attributes, 0x0, sizeof(osThreadAttr_t));
  37453. 8010412: 2224 movs r2, #36 @ 0x24
  37454. 8010414: 2100 movs r1, #0
  37455. 8010416: 4815 ldr r0, [pc, #84] @ (801046c <MX_LWIP_Init+0xc0>)
  37456. 8010418: f01a fb32 bl 802aa80 <memset>
  37457. attributes.name = "EthLink";
  37458. 801041c: 4b13 ldr r3, [pc, #76] @ (801046c <MX_LWIP_Init+0xc0>)
  37459. 801041e: 4a14 ldr r2, [pc, #80] @ (8010470 <MX_LWIP_Init+0xc4>)
  37460. 8010420: 601a str r2, [r3, #0]
  37461. attributes.stack_size = INTERFACE_THREAD_STACK_SIZE * 2;
  37462. 8010422: 4b12 ldr r3, [pc, #72] @ (801046c <MX_LWIP_Init+0xc0>)
  37463. 8010424: f44f 6200 mov.w r2, #2048 @ 0x800
  37464. 8010428: 615a str r2, [r3, #20]
  37465. attributes.priority = osPriorityBelowNormal;
  37466. 801042a: 4b10 ldr r3, [pc, #64] @ (801046c <MX_LWIP_Init+0xc0>)
  37467. 801042c: 2210 movs r2, #16
  37468. 801042e: 619a str r2, [r3, #24]
  37469. osThreadNew(ethernet_link_thread, &gnetif, &attributes);
  37470. 8010430: 4a0e ldr r2, [pc, #56] @ (801046c <MX_LWIP_Init+0xc0>)
  37471. 8010432: 490c ldr r1, [pc, #48] @ (8010464 <MX_LWIP_Init+0xb8>)
  37472. 8010434: 480f ldr r0, [pc, #60] @ (8010474 <MX_LWIP_Init+0xc8>)
  37473. 8010436: f000 feee bl 8011216 <osThreadNew>
  37474. /* USER CODE END H7_OS_THREAD_NEW_CMSIS_RTOS_V2 */
  37475. /* USER CODE BEGIN 3 */
  37476. /* Start DHCP negotiation for a network interface (IPv4) */
  37477. #if USE_DHCP
  37478. netif_set_up(&gnetif);
  37479. 801043a: 480a ldr r0, [pc, #40] @ (8010464 <MX_LWIP_Init+0xb8>)
  37480. 801043c: f00a fa28 bl 801a890 <netif_set_up>
  37481. dhcp_start(&gnetif);
  37482. 8010440: 4808 ldr r0, [pc, #32] @ (8010464 <MX_LWIP_Init+0xb8>)
  37483. 8010442: f012 fd15 bl 8022e70 <dhcp_start>
  37484. #else
  37485. netif_set_addr(&gnetif, ip_2_ip4(&ipaddr), ip_2_ip4(&netmask), ip_2_ip4(&gw));
  37486. #endif
  37487. /* ETH_CODE: call UNLOCK_TCPIP_CORE after we are done */
  37488. UNLOCK_TCPIP_CORE();
  37489. 8010446: f000 fd4d bl 8010ee4 <sys_unlock_tcpip_core>
  37490. /* USER CODE END 3 */
  37491. }
  37492. 801044a: bf00 nop
  37493. 801044c: 46bd mov sp, r7
  37494. 801044e: bd80 pop {r7, pc}
  37495. 8010450: 2400228c .word 0x2400228c
  37496. 8010454: 24002290 .word 0x24002290
  37497. 8010458: 24002294 .word 0x24002294
  37498. 801045c: 0801972d .word 0x0801972d
  37499. 8010460: 0801092d .word 0x0801092d
  37500. 8010464: 24002254 .word 0x24002254
  37501. 8010468: 08010479 .word 0x08010479
  37502. 801046c: 24002298 .word 0x24002298
  37503. 8010470: 0802d8bc .word 0x0802d8bc
  37504. 8010474: 08010bfd .word 0x08010bfd
  37505. 08010478 <ethernet_link_status_updated>:
  37506. * @brief Notify the User about the network interface config status
  37507. * @param netif: the network interface
  37508. * @retval None
  37509. */
  37510. static void ethernet_link_status_updated(struct netif *netif)
  37511. {
  37512. 8010478: b480 push {r7}
  37513. 801047a: b083 sub sp, #12
  37514. 801047c: af00 add r7, sp, #0
  37515. 801047e: 6078 str r0, [r7, #4]
  37516. else /* netif is down */
  37517. {
  37518. /* USER CODE BEGIN 6 */
  37519. /* USER CODE END 6 */
  37520. }
  37521. }
  37522. 8010480: bf00 nop
  37523. 8010482: 370c adds r7, #12
  37524. 8010484: 46bd mov sp, r7
  37525. 8010486: f85d 7b04 ldr.w r7, [sp], #4
  37526. 801048a: 4770 bx lr
  37527. 0801048c <HAL_ETH_RxCpltCallback>:
  37528. * @brief Ethernet Rx Transfer completed callback
  37529. * @param handlerEth: ETH handler
  37530. * @retval None
  37531. */
  37532. void HAL_ETH_RxCpltCallback(ETH_HandleTypeDef *handlerEth)
  37533. {
  37534. 801048c: b580 push {r7, lr}
  37535. 801048e: b082 sub sp, #8
  37536. 8010490: af00 add r7, sp, #0
  37537. 8010492: 6078 str r0, [r7, #4]
  37538. osSemaphoreRelease(RxPktSemaphore);
  37539. 8010494: 4b04 ldr r3, [pc, #16] @ (80104a8 <HAL_ETH_RxCpltCallback+0x1c>)
  37540. 8010496: 681b ldr r3, [r3, #0]
  37541. 8010498: 4618 mov r0, r3
  37542. 801049a: f001 fa55 bl 8011948 <osSemaphoreRelease>
  37543. }
  37544. 801049e: bf00 nop
  37545. 80104a0: 3708 adds r7, #8
  37546. 80104a2: 46bd mov sp, r7
  37547. 80104a4: bd80 pop {r7, pc}
  37548. 80104a6: bf00 nop
  37549. 80104a8: 240022c4 .word 0x240022c4
  37550. 080104ac <HAL_ETH_TxCpltCallback>:
  37551. * @brief Ethernet Tx Transfer completed callback
  37552. * @param handlerEth: ETH handler
  37553. * @retval None
  37554. */
  37555. void HAL_ETH_TxCpltCallback(ETH_HandleTypeDef *handlerEth)
  37556. {
  37557. 80104ac: b580 push {r7, lr}
  37558. 80104ae: b082 sub sp, #8
  37559. 80104b0: af00 add r7, sp, #0
  37560. 80104b2: 6078 str r0, [r7, #4]
  37561. osSemaphoreRelease(TxPktSemaphore);
  37562. 80104b4: 4b04 ldr r3, [pc, #16] @ (80104c8 <HAL_ETH_TxCpltCallback+0x1c>)
  37563. 80104b6: 681b ldr r3, [r3, #0]
  37564. 80104b8: 4618 mov r0, r3
  37565. 80104ba: f001 fa45 bl 8011948 <osSemaphoreRelease>
  37566. }
  37567. 80104be: bf00 nop
  37568. 80104c0: 3708 adds r7, #8
  37569. 80104c2: 46bd mov sp, r7
  37570. 80104c4: bd80 pop {r7, pc}
  37571. 80104c6: bf00 nop
  37572. 80104c8: 240022c8 .word 0x240022c8
  37573. 080104cc <HAL_ETH_ErrorCallback>:
  37574. * @brief Ethernet DMA transfer error callback
  37575. * @param handlerEth: ETH handler
  37576. * @retval None
  37577. */
  37578. void HAL_ETH_ErrorCallback(ETH_HandleTypeDef *handlerEth)
  37579. {
  37580. 80104cc: b580 push {r7, lr}
  37581. 80104ce: b082 sub sp, #8
  37582. 80104d0: af00 add r7, sp, #0
  37583. 80104d2: 6078 str r0, [r7, #4]
  37584. if((HAL_ETH_GetDMAError(handlerEth) & ETH_DMACSR_RBU) == ETH_DMACSR_RBU)
  37585. 80104d4: 6878 ldr r0, [r7, #4]
  37586. 80104d6: f7f8 fe7d bl 80091d4 <HAL_ETH_GetDMAError>
  37587. 80104da: 4603 mov r3, r0
  37588. 80104dc: f003 0380 and.w r3, r3, #128 @ 0x80
  37589. 80104e0: 2b80 cmp r3, #128 @ 0x80
  37590. 80104e2: d104 bne.n 80104ee <HAL_ETH_ErrorCallback+0x22>
  37591. {
  37592. osSemaphoreRelease(RxPktSemaphore);
  37593. 80104e4: 4b04 ldr r3, [pc, #16] @ (80104f8 <HAL_ETH_ErrorCallback+0x2c>)
  37594. 80104e6: 681b ldr r3, [r3, #0]
  37595. 80104e8: 4618 mov r0, r3
  37596. 80104ea: f001 fa2d bl 8011948 <osSemaphoreRelease>
  37597. }
  37598. }
  37599. 80104ee: bf00 nop
  37600. 80104f0: 3708 adds r7, #8
  37601. 80104f2: 46bd mov sp, r7
  37602. 80104f4: bd80 pop {r7, pc}
  37603. 80104f6: bf00 nop
  37604. 80104f8: 240022c4 .word 0x240022c4
  37605. 080104fc <low_level_init>:
  37606. *
  37607. * @param netif the already initialized lwip network interface structure
  37608. * for this ethernetif
  37609. */
  37610. static void low_level_init(struct netif *netif)
  37611. {
  37612. 80104fc: b580 push {r7, lr}
  37613. 80104fe: b0aa sub sp, #168 @ 0xa8
  37614. 8010500: af00 add r7, sp, #0
  37615. 8010502: 6078 str r0, [r7, #4]
  37616. HAL_StatusTypeDef hal_eth_init_status = HAL_OK;
  37617. 8010504: 2300 movs r3, #0
  37618. 8010506: f887 309f strb.w r3, [r7, #159] @ 0x9f
  37619. /* USER CODE BEGIN OS_THREAD_ATTR_CMSIS_RTOS_V2 */
  37620. osThreadAttr_t attributes;
  37621. /* USER CODE END OS_THREAD_ATTR_CMSIS_RTOS_V2 */
  37622. uint32_t duplex, speed = 0;
  37623. 801050a: 2300 movs r3, #0
  37624. 801050c: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  37625. int32_t PHYLinkState = 0;
  37626. 8010510: 2300 movs r3, #0
  37627. 8010512: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  37628. ETH_MACConfigTypeDef MACConf = {0};
  37629. 8010516: f107 0310 add.w r3, r7, #16
  37630. 801051a: 2264 movs r2, #100 @ 0x64
  37631. 801051c: 2100 movs r1, #0
  37632. 801051e: 4618 mov r0, r3
  37633. 8010520: f01a faae bl 802aa80 <memset>
  37634. /* Start ETH HAL Init */
  37635. uint8_t MACAddr[6] ;
  37636. heth.Instance = ETH;
  37637. 8010524: 4b86 ldr r3, [pc, #536] @ (8010740 <low_level_init+0x244>)
  37638. 8010526: 4a87 ldr r2, [pc, #540] @ (8010744 <low_level_init+0x248>)
  37639. 8010528: 601a str r2, [r3, #0]
  37640. // MACAddr[1] = 0x80;
  37641. // MACAddr[2] = 0xE1;
  37642. // MACAddr[3] = 0x00;
  37643. // MACAddr[4] = 0x00;
  37644. // MACAddr[5] = 0x00;
  37645. MACAddr[0] = 0x7C;
  37646. 801052a: 237c movs r3, #124 @ 0x7c
  37647. 801052c: 723b strb r3, [r7, #8]
  37648. MACAddr[1] = 0xF6;
  37649. 801052e: 23f6 movs r3, #246 @ 0xf6
  37650. 8010530: 727b strb r3, [r7, #9]
  37651. MACAddr[2] = 0x66;
  37652. 8010532: 2366 movs r3, #102 @ 0x66
  37653. 8010534: 72bb strb r3, [r7, #10]
  37654. MACAddr[3] = 0xE4;
  37655. 8010536: 23e4 movs r3, #228 @ 0xe4
  37656. 8010538: 72fb strb r3, [r7, #11]
  37657. MACAddr[4] = 0xB5;
  37658. 801053a: 23b5 movs r3, #181 @ 0xb5
  37659. 801053c: 733b strb r3, [r7, #12]
  37660. MACAddr[5] = 0x41;
  37661. 801053e: 2341 movs r3, #65 @ 0x41
  37662. 8010540: 737b strb r3, [r7, #13]
  37663. heth.Init.MACAddr = &MACAddr[0];
  37664. 8010542: 4a7f ldr r2, [pc, #508] @ (8010740 <low_level_init+0x244>)
  37665. 8010544: f107 0308 add.w r3, r7, #8
  37666. 8010548: 6053 str r3, [r2, #4]
  37667. heth.Init.MediaInterface = HAL_ETH_MII_MODE;
  37668. 801054a: 4b7d ldr r3, [pc, #500] @ (8010740 <low_level_init+0x244>)
  37669. 801054c: 2200 movs r2, #0
  37670. 801054e: 721a strb r2, [r3, #8]
  37671. heth.Init.TxDesc = DMATxDscrTab;
  37672. 8010550: 4b7b ldr r3, [pc, #492] @ (8010740 <low_level_init+0x244>)
  37673. 8010552: 4a7d ldr r2, [pc, #500] @ (8010748 <low_level_init+0x24c>)
  37674. 8010554: 60da str r2, [r3, #12]
  37675. heth.Init.RxDesc = DMARxDscrTab;
  37676. 8010556: 4b7a ldr r3, [pc, #488] @ (8010740 <low_level_init+0x244>)
  37677. 8010558: 4a7c ldr r2, [pc, #496] @ (801074c <low_level_init+0x250>)
  37678. 801055a: 611a str r2, [r3, #16]
  37679. heth.Init.RxBuffLen = 1536;
  37680. 801055c: 4b78 ldr r3, [pc, #480] @ (8010740 <low_level_init+0x244>)
  37681. 801055e: f44f 62c0 mov.w r2, #1536 @ 0x600
  37682. 8010562: 615a str r2, [r3, #20]
  37683. /* USER CODE BEGIN MACADDRESS */
  37684. /* USER CODE END MACADDRESS */
  37685. hal_eth_init_status = HAL_ETH_Init(&heth);
  37686. 8010564: 4876 ldr r0, [pc, #472] @ (8010740 <low_level_init+0x244>)
  37687. 8010566: f7f7 fe69 bl 800823c <HAL_ETH_Init>
  37688. 801056a: 4603 mov r3, r0
  37689. 801056c: f887 309f strb.w r3, [r7, #159] @ 0x9f
  37690. memset(&TxConfig, 0 , sizeof(ETH_TxPacketConfig));
  37691. 8010570: 2238 movs r2, #56 @ 0x38
  37692. 8010572: 2100 movs r1, #0
  37693. 8010574: 4876 ldr r0, [pc, #472] @ (8010750 <low_level_init+0x254>)
  37694. 8010576: f01a fa83 bl 802aa80 <memset>
  37695. TxConfig.Attributes = ETH_TX_PACKETS_FEATURES_CSUM | ETH_TX_PACKETS_FEATURES_CRCPAD;
  37696. 801057a: 4b75 ldr r3, [pc, #468] @ (8010750 <low_level_init+0x254>)
  37697. 801057c: 2221 movs r2, #33 @ 0x21
  37698. 801057e: 601a str r2, [r3, #0]
  37699. TxConfig.ChecksumCtrl = ETH_CHECKSUM_IPHDR_PAYLOAD_INSERT_PHDR_CALC;
  37700. 8010580: 4b73 ldr r3, [pc, #460] @ (8010750 <low_level_init+0x254>)
  37701. 8010582: f44f 3240 mov.w r2, #196608 @ 0x30000
  37702. 8010586: 615a str r2, [r3, #20]
  37703. TxConfig.CRCPadCtrl = ETH_CRC_PAD_INSERT;
  37704. 8010588: 4b71 ldr r3, [pc, #452] @ (8010750 <low_level_init+0x254>)
  37705. 801058a: 2200 movs r2, #0
  37706. 801058c: 611a str r2, [r3, #16]
  37707. /* End ETH HAL Init */
  37708. /* Initialize the RX POOL */
  37709. LWIP_MEMPOOL_INIT(RX_POOL);
  37710. 801058e: 4871 ldr r0, [pc, #452] @ (8010754 <low_level_init+0x258>)
  37711. 8010590: f009 fe6a bl 801a268 <memp_init_pool>
  37712. #if LWIP_ARP || LWIP_ETHERNET
  37713. /* set MAC hardware address length */
  37714. netif->hwaddr_len = ETH_HWADDR_LEN;
  37715. 8010594: 687b ldr r3, [r7, #4]
  37716. 8010596: 2206 movs r2, #6
  37717. 8010598: f883 2030 strb.w r2, [r3, #48] @ 0x30
  37718. /* set MAC hardware address */
  37719. netif->hwaddr[0] = heth.Init.MACAddr[0];
  37720. 801059c: 4b68 ldr r3, [pc, #416] @ (8010740 <low_level_init+0x244>)
  37721. 801059e: 685b ldr r3, [r3, #4]
  37722. 80105a0: 781a ldrb r2, [r3, #0]
  37723. 80105a2: 687b ldr r3, [r7, #4]
  37724. 80105a4: f883 202a strb.w r2, [r3, #42] @ 0x2a
  37725. netif->hwaddr[1] = heth.Init.MACAddr[1];
  37726. 80105a8: 4b65 ldr r3, [pc, #404] @ (8010740 <low_level_init+0x244>)
  37727. 80105aa: 685b ldr r3, [r3, #4]
  37728. 80105ac: 785a ldrb r2, [r3, #1]
  37729. 80105ae: 687b ldr r3, [r7, #4]
  37730. 80105b0: f883 202b strb.w r2, [r3, #43] @ 0x2b
  37731. netif->hwaddr[2] = heth.Init.MACAddr[2];
  37732. 80105b4: 4b62 ldr r3, [pc, #392] @ (8010740 <low_level_init+0x244>)
  37733. 80105b6: 685b ldr r3, [r3, #4]
  37734. 80105b8: 789a ldrb r2, [r3, #2]
  37735. 80105ba: 687b ldr r3, [r7, #4]
  37736. 80105bc: f883 202c strb.w r2, [r3, #44] @ 0x2c
  37737. netif->hwaddr[3] = heth.Init.MACAddr[3];
  37738. 80105c0: 4b5f ldr r3, [pc, #380] @ (8010740 <low_level_init+0x244>)
  37739. 80105c2: 685b ldr r3, [r3, #4]
  37740. 80105c4: 78da ldrb r2, [r3, #3]
  37741. 80105c6: 687b ldr r3, [r7, #4]
  37742. 80105c8: f883 202d strb.w r2, [r3, #45] @ 0x2d
  37743. netif->hwaddr[4] = heth.Init.MACAddr[4];
  37744. 80105cc: 4b5c ldr r3, [pc, #368] @ (8010740 <low_level_init+0x244>)
  37745. 80105ce: 685b ldr r3, [r3, #4]
  37746. 80105d0: 791a ldrb r2, [r3, #4]
  37747. 80105d2: 687b ldr r3, [r7, #4]
  37748. 80105d4: f883 202e strb.w r2, [r3, #46] @ 0x2e
  37749. netif->hwaddr[5] = heth.Init.MACAddr[5];
  37750. 80105d8: 4b59 ldr r3, [pc, #356] @ (8010740 <low_level_init+0x244>)
  37751. 80105da: 685b ldr r3, [r3, #4]
  37752. 80105dc: 795a ldrb r2, [r3, #5]
  37753. 80105de: 687b ldr r3, [r7, #4]
  37754. 80105e0: f883 202f strb.w r2, [r3, #47] @ 0x2f
  37755. /* maximum transfer unit */
  37756. netif->mtu = ETH_MAX_PAYLOAD;
  37757. 80105e4: 687b ldr r3, [r7, #4]
  37758. 80105e6: f240 52dc movw r2, #1500 @ 0x5dc
  37759. 80105ea: 851a strh r2, [r3, #40] @ 0x28
  37760. /* Accept broadcast address and ARP traffic */
  37761. /* don't set NETIF_FLAG_ETHARP if this device is not an ethernet one */
  37762. #if LWIP_ARP
  37763. netif->flags |= NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP;
  37764. 80105ec: 687b ldr r3, [r7, #4]
  37765. 80105ee: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  37766. 80105f2: f043 030a orr.w r3, r3, #10
  37767. 80105f6: b2da uxtb r2, r3
  37768. 80105f8: 687b ldr r3, [r7, #4]
  37769. 80105fa: f883 2031 strb.w r2, [r3, #49] @ 0x31
  37770. #else
  37771. netif->flags |= NETIF_FLAG_BROADCAST;
  37772. #endif /* LWIP_ARP */
  37773. /* create a binary semaphore used for informing ethernetif of frame reception */
  37774. RxPktSemaphore = osSemaphoreNew(1, 1, NULL);
  37775. 80105fe: 2200 movs r2, #0
  37776. 8010600: 2101 movs r1, #1
  37777. 8010602: 2001 movs r0, #1
  37778. 8010604: f001 f8c5 bl 8011792 <osSemaphoreNew>
  37779. 8010608: 4603 mov r3, r0
  37780. 801060a: 4a53 ldr r2, [pc, #332] @ (8010758 <low_level_init+0x25c>)
  37781. 801060c: 6013 str r3, [r2, #0]
  37782. /* create a binary semaphore used for informing ethernetif of frame transmission */
  37783. TxPktSemaphore = osSemaphoreNew(1, 1, NULL);
  37784. 801060e: 2200 movs r2, #0
  37785. 8010610: 2101 movs r1, #1
  37786. 8010612: 2001 movs r0, #1
  37787. 8010614: f001 f8bd bl 8011792 <osSemaphoreNew>
  37788. 8010618: 4603 mov r3, r0
  37789. 801061a: 4a50 ldr r2, [pc, #320] @ (801075c <low_level_init+0x260>)
  37790. 801061c: 6013 str r3, [r2, #0]
  37791. /* create the task that handles the ETH_MAC */
  37792. /* USER CODE BEGIN OS_THREAD_NEW_CMSIS_RTOS_V2 */
  37793. memset(&attributes, 0x0, sizeof(osThreadAttr_t));
  37794. 801061e: f107 0374 add.w r3, r7, #116 @ 0x74
  37795. 8010622: 2224 movs r2, #36 @ 0x24
  37796. 8010624: 2100 movs r1, #0
  37797. 8010626: 4618 mov r0, r3
  37798. 8010628: f01a fa2a bl 802aa80 <memset>
  37799. attributes.name = "EthIf";
  37800. 801062c: 4b4c ldr r3, [pc, #304] @ (8010760 <low_level_init+0x264>)
  37801. 801062e: 677b str r3, [r7, #116] @ 0x74
  37802. attributes.stack_size = INTERFACE_THREAD_STACK_SIZE;
  37803. 8010630: f44f 6380 mov.w r3, #1024 @ 0x400
  37804. 8010634: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  37805. attributes.priority = osPriorityRealtime;
  37806. 8010638: 2330 movs r3, #48 @ 0x30
  37807. 801063a: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  37808. osThreadNew(ethernetif_input, netif, &attributes);
  37809. 801063e: f107 0374 add.w r3, r7, #116 @ 0x74
  37810. 8010642: 461a mov r2, r3
  37811. 8010644: 6879 ldr r1, [r7, #4]
  37812. 8010646: 4847 ldr r0, [pc, #284] @ (8010764 <low_level_init+0x268>)
  37813. 8010648: f000 fde5 bl 8011216 <osThreadNew>
  37814. /* USER CODE BEGIN PHY_PRE_CONFIG */
  37815. /* USER CODE END PHY_PRE_CONFIG */
  37816. /* Set PHY IO functions */
  37817. DP83848_RegisterBusIO(&DP83848, &DP83848_IOCtx);
  37818. 801064c: 4946 ldr r1, [pc, #280] @ (8010768 <low_level_init+0x26c>)
  37819. 801064e: 4847 ldr r0, [pc, #284] @ (801076c <low_level_init+0x270>)
  37820. 8010650: f7f4 fec9 bl 80053e6 <DP83848_RegisterBusIO>
  37821. /* Initialize the DP83848 ETH PHY */
  37822. DP83848_Init(&DP83848);
  37823. 8010654: 4845 ldr r0, [pc, #276] @ (801076c <low_level_init+0x270>)
  37824. 8010656: f7f4 fef8 bl 800544a <DP83848_Init>
  37825. if (hal_eth_init_status == HAL_OK)
  37826. 801065a: f897 309f ldrb.w r3, [r7, #159] @ 0x9f
  37827. 801065e: 2b00 cmp r3, #0
  37828. 8010660: d168 bne.n 8010734 <low_level_init+0x238>
  37829. {
  37830. PHYLinkState = DP83848_GetLinkState(&DP83848);
  37831. 8010662: 4842 ldr r0, [pc, #264] @ (801076c <low_level_init+0x270>)
  37832. 8010664: f7f4 ff3e bl 80054e4 <DP83848_GetLinkState>
  37833. 8010668: f8c7 0098 str.w r0, [r7, #152] @ 0x98
  37834. /* Get link state */
  37835. if(PHYLinkState <= DP83848_STATUS_LINK_DOWN)
  37836. 801066c: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  37837. 8010670: 2b01 cmp r3, #1
  37838. 8010672: dc06 bgt.n 8010682 <low_level_init+0x186>
  37839. {
  37840. netif_set_link_down(netif);
  37841. 8010674: 6878 ldr r0, [r7, #4]
  37842. 8010676: f00a f9e7 bl 801aa48 <netif_set_link_down>
  37843. netif_set_down(netif);
  37844. 801067a: 6878 ldr r0, [r7, #4]
  37845. 801067c: f00a f976 bl 801a96c <netif_set_down>
  37846. #endif /* LWIP_ARP || LWIP_ETHERNET */
  37847. /* USER CODE BEGIN LOW_LEVEL_INIT */
  37848. /* USER CODE END LOW_LEVEL_INIT */
  37849. }
  37850. 8010680: e05a b.n 8010738 <low_level_init+0x23c>
  37851. switch (PHYLinkState)
  37852. 8010682: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  37853. 8010686: 3b02 subs r3, #2
  37854. 8010688: 2b03 cmp r3, #3
  37855. 801068a: d82b bhi.n 80106e4 <low_level_init+0x1e8>
  37856. 801068c: a201 add r2, pc, #4 @ (adr r2, 8010694 <low_level_init+0x198>)
  37857. 801068e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  37858. 8010692: bf00 nop
  37859. 8010694: 080106a5 .word 0x080106a5
  37860. 8010698: 080106b7 .word 0x080106b7
  37861. 801069c: 080106c7 .word 0x080106c7
  37862. 80106a0: 080106d7 .word 0x080106d7
  37863. duplex = ETH_FULLDUPLEX_MODE;
  37864. 80106a4: f44f 5300 mov.w r3, #8192 @ 0x2000
  37865. 80106a8: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  37866. speed = ETH_SPEED_100M;
  37867. 80106ac: f44f 4380 mov.w r3, #16384 @ 0x4000
  37868. 80106b0: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  37869. break;
  37870. 80106b4: e01f b.n 80106f6 <low_level_init+0x1fa>
  37871. duplex = ETH_HALFDUPLEX_MODE;
  37872. 80106b6: 2300 movs r3, #0
  37873. 80106b8: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  37874. speed = ETH_SPEED_100M;
  37875. 80106bc: f44f 4380 mov.w r3, #16384 @ 0x4000
  37876. 80106c0: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  37877. break;
  37878. 80106c4: e017 b.n 80106f6 <low_level_init+0x1fa>
  37879. duplex = ETH_FULLDUPLEX_MODE;
  37880. 80106c6: f44f 5300 mov.w r3, #8192 @ 0x2000
  37881. 80106ca: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  37882. speed = ETH_SPEED_10M;
  37883. 80106ce: 2300 movs r3, #0
  37884. 80106d0: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  37885. break;
  37886. 80106d4: e00f b.n 80106f6 <low_level_init+0x1fa>
  37887. duplex = ETH_HALFDUPLEX_MODE;
  37888. 80106d6: 2300 movs r3, #0
  37889. 80106d8: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  37890. speed = ETH_SPEED_10M;
  37891. 80106dc: 2300 movs r3, #0
  37892. 80106de: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  37893. break;
  37894. 80106e2: e008 b.n 80106f6 <low_level_init+0x1fa>
  37895. duplex = ETH_FULLDUPLEX_MODE;
  37896. 80106e4: f44f 5300 mov.w r3, #8192 @ 0x2000
  37897. 80106e8: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  37898. speed = ETH_SPEED_100M;
  37899. 80106ec: f44f 4380 mov.w r3, #16384 @ 0x4000
  37900. 80106f0: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  37901. break;
  37902. 80106f4: bf00 nop
  37903. HAL_ETH_GetMACConfig(&heth, &MACConf);
  37904. 80106f6: f107 0310 add.w r3, r7, #16
  37905. 80106fa: 4619 mov r1, r3
  37906. 80106fc: 4810 ldr r0, [pc, #64] @ (8010740 <low_level_init+0x244>)
  37907. 80106fe: f7f8 fb2b bl 8008d58 <HAL_ETH_GetMACConfig>
  37908. MACConf.DuplexMode = duplex;
  37909. 8010702: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  37910. 8010706: 62bb str r3, [r7, #40] @ 0x28
  37911. MACConf.Speed = speed;
  37912. 8010708: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  37913. 801070c: 627b str r3, [r7, #36] @ 0x24
  37914. HAL_ETH_SetMACConfig(&heth, &MACConf);
  37915. 801070e: f107 0310 add.w r3, r7, #16
  37916. 8010712: 4619 mov r1, r3
  37917. 8010714: 480a ldr r0, [pc, #40] @ (8010740 <low_level_init+0x244>)
  37918. 8010716: f7f8 fcf3 bl 8009100 <HAL_ETH_SetMACConfig>
  37919. HAL_ETH_Start_IT(&heth);
  37920. 801071a: 4809 ldr r0, [pc, #36] @ (8010740 <low_level_init+0x244>)
  37921. 801071c: f7f7 fe8c bl 8008438 <HAL_ETH_Start_IT>
  37922. netif_set_up(netif);
  37923. 8010720: 6878 ldr r0, [r7, #4]
  37924. 8010722: f00a f8b5 bl 801a890 <netif_set_up>
  37925. netif_set_link_up(netif);
  37926. 8010726: 6878 ldr r0, [r7, #4]
  37927. 8010728: f00a f954 bl 801a9d4 <netif_set_link_up>
  37928. ethernetif_notify_conn_changed(netif);
  37929. 801072c: 6878 ldr r0, [r7, #4]
  37930. 801072e: f000 fb1b bl 8010d68 <ethernetif_notify_conn_changed>
  37931. }
  37932. 8010732: e001 b.n 8010738 <low_level_init+0x23c>
  37933. Error_Handler();
  37934. 8010734: f7f1 ffb0 bl 8002698 <Error_Handler>
  37935. }
  37936. 8010738: bf00 nop
  37937. 801073a: 37a8 adds r7, #168 @ 0xa8
  37938. 801073c: 46bd mov sp, r7
  37939. 801073e: bd80 pop {r7, pc}
  37940. 8010740: 240022cc .word 0x240022cc
  37941. 8010744: 40028000 .word 0x40028000
  37942. 8010748: 24040100 .word 0x24040100
  37943. 801074c: 24040000 .word 0x24040000
  37944. 8010750: 2400237c .word 0x2400237c
  37945. 8010754: 080319ac .word 0x080319ac
  37946. 8010758: 240022c4 .word 0x240022c4
  37947. 801075c: 240022c8 .word 0x240022c8
  37948. 8010760: 0802d8dc .word 0x0802d8dc
  37949. 8010764: 080108d9 .word 0x080108d9
  37950. 8010768: 24000034 .word 0x24000034
  37951. 801076c: 240023b4 .word 0x240023b4
  37952. 08010770 <low_level_output>:
  37953. * to become available since the stack doesn't retry to send a packet
  37954. * dropped because of memory failure (except for the TCP timers).
  37955. */
  37956. static err_t low_level_output(struct netif *netif, struct pbuf *p)
  37957. {
  37958. 8010770: b580 push {r7, lr}
  37959. 8010772: b092 sub sp, #72 @ 0x48
  37960. 8010774: af00 add r7, sp, #0
  37961. 8010776: 6078 str r0, [r7, #4]
  37962. 8010778: 6039 str r1, [r7, #0]
  37963. uint32_t i = 0U;
  37964. 801077a: 2300 movs r3, #0
  37965. 801077c: 647b str r3, [r7, #68] @ 0x44
  37966. struct pbuf *q = NULL;
  37967. 801077e: 2300 movs r3, #0
  37968. 8010780: 643b str r3, [r7, #64] @ 0x40
  37969. err_t errval = ERR_OK;
  37970. 8010782: 2300 movs r3, #0
  37971. 8010784: f887 303f strb.w r3, [r7, #63] @ 0x3f
  37972. ETH_BufferTypeDef Txbuffer[ETH_TX_DESC_CNT] = {0};
  37973. 8010788: f107 030c add.w r3, r7, #12
  37974. 801078c: 2230 movs r2, #48 @ 0x30
  37975. 801078e: 2100 movs r1, #0
  37976. 8010790: 4618 mov r0, r3
  37977. 8010792: f01a f975 bl 802aa80 <memset>
  37978. memset(Txbuffer, 0 , ETH_TX_DESC_CNT*sizeof(ETH_BufferTypeDef));
  37979. 8010796: f107 030c add.w r3, r7, #12
  37980. 801079a: 2230 movs r2, #48 @ 0x30
  37981. 801079c: 2100 movs r1, #0
  37982. 801079e: 4618 mov r0, r3
  37983. 80107a0: f01a f96e bl 802aa80 <memset>
  37984. for(q = p; q != NULL; q = q->next)
  37985. 80107a4: 683b ldr r3, [r7, #0]
  37986. 80107a6: 643b str r3, [r7, #64] @ 0x40
  37987. 80107a8: e045 b.n 8010836 <low_level_output+0xc6>
  37988. {
  37989. if(i >= ETH_TX_DESC_CNT)
  37990. 80107aa: 6c7b ldr r3, [r7, #68] @ 0x44
  37991. 80107ac: 2b03 cmp r3, #3
  37992. 80107ae: d902 bls.n 80107b6 <low_level_output+0x46>
  37993. return ERR_IF;
  37994. 80107b0: f06f 030b mvn.w r3, #11
  37995. 80107b4: e06c b.n 8010890 <low_level_output+0x120>
  37996. Txbuffer[i].buffer = q->payload;
  37997. 80107b6: 6c3b ldr r3, [r7, #64] @ 0x40
  37998. 80107b8: 6859 ldr r1, [r3, #4]
  37999. 80107ba: 6c7a ldr r2, [r7, #68] @ 0x44
  38000. 80107bc: 4613 mov r3, r2
  38001. 80107be: 005b lsls r3, r3, #1
  38002. 80107c0: 4413 add r3, r2
  38003. 80107c2: 009b lsls r3, r3, #2
  38004. 80107c4: 3348 adds r3, #72 @ 0x48
  38005. 80107c6: 443b add r3, r7
  38006. 80107c8: 3b3c subs r3, #60 @ 0x3c
  38007. 80107ca: 6019 str r1, [r3, #0]
  38008. Txbuffer[i].len = q->len;
  38009. 80107cc: 6c3b ldr r3, [r7, #64] @ 0x40
  38010. 80107ce: 895b ldrh r3, [r3, #10]
  38011. 80107d0: 4619 mov r1, r3
  38012. 80107d2: 6c7a ldr r2, [r7, #68] @ 0x44
  38013. 80107d4: 4613 mov r3, r2
  38014. 80107d6: 005b lsls r3, r3, #1
  38015. 80107d8: 4413 add r3, r2
  38016. 80107da: 009b lsls r3, r3, #2
  38017. 80107dc: 3348 adds r3, #72 @ 0x48
  38018. 80107de: 443b add r3, r7
  38019. 80107e0: 3b38 subs r3, #56 @ 0x38
  38020. 80107e2: 6019 str r1, [r3, #0]
  38021. if(i>0)
  38022. 80107e4: 6c7b ldr r3, [r7, #68] @ 0x44
  38023. 80107e6: 2b00 cmp r3, #0
  38024. 80107e8: d011 beq.n 801080e <low_level_output+0x9e>
  38025. {
  38026. Txbuffer[i-1].next = &Txbuffer[i];
  38027. 80107ea: 6c7b ldr r3, [r7, #68] @ 0x44
  38028. 80107ec: 1e5a subs r2, r3, #1
  38029. 80107ee: f107 000c add.w r0, r7, #12
  38030. 80107f2: 6c79 ldr r1, [r7, #68] @ 0x44
  38031. 80107f4: 460b mov r3, r1
  38032. 80107f6: 005b lsls r3, r3, #1
  38033. 80107f8: 440b add r3, r1
  38034. 80107fa: 009b lsls r3, r3, #2
  38035. 80107fc: 18c1 adds r1, r0, r3
  38036. 80107fe: 4613 mov r3, r2
  38037. 8010800: 005b lsls r3, r3, #1
  38038. 8010802: 4413 add r3, r2
  38039. 8010804: 009b lsls r3, r3, #2
  38040. 8010806: 3348 adds r3, #72 @ 0x48
  38041. 8010808: 443b add r3, r7
  38042. 801080a: 3b34 subs r3, #52 @ 0x34
  38043. 801080c: 6019 str r1, [r3, #0]
  38044. }
  38045. if(q->next == NULL)
  38046. 801080e: 6c3b ldr r3, [r7, #64] @ 0x40
  38047. 8010810: 681b ldr r3, [r3, #0]
  38048. 8010812: 2b00 cmp r3, #0
  38049. 8010814: d109 bne.n 801082a <low_level_output+0xba>
  38050. {
  38051. Txbuffer[i].next = NULL;
  38052. 8010816: 6c7a ldr r2, [r7, #68] @ 0x44
  38053. 8010818: 4613 mov r3, r2
  38054. 801081a: 005b lsls r3, r3, #1
  38055. 801081c: 4413 add r3, r2
  38056. 801081e: 009b lsls r3, r3, #2
  38057. 8010820: 3348 adds r3, #72 @ 0x48
  38058. 8010822: 443b add r3, r7
  38059. 8010824: 3b34 subs r3, #52 @ 0x34
  38060. 8010826: 2200 movs r2, #0
  38061. 8010828: 601a str r2, [r3, #0]
  38062. }
  38063. i++;
  38064. 801082a: 6c7b ldr r3, [r7, #68] @ 0x44
  38065. 801082c: 3301 adds r3, #1
  38066. 801082e: 647b str r3, [r7, #68] @ 0x44
  38067. for(q = p; q != NULL; q = q->next)
  38068. 8010830: 6c3b ldr r3, [r7, #64] @ 0x40
  38069. 8010832: 681b ldr r3, [r3, #0]
  38070. 8010834: 643b str r3, [r7, #64] @ 0x40
  38071. 8010836: 6c3b ldr r3, [r7, #64] @ 0x40
  38072. 8010838: 2b00 cmp r3, #0
  38073. 801083a: d1b6 bne.n 80107aa <low_level_output+0x3a>
  38074. }
  38075. TxConfig.Length = p->tot_len;
  38076. 801083c: 683b ldr r3, [r7, #0]
  38077. 801083e: 891b ldrh r3, [r3, #8]
  38078. 8010840: 461a mov r2, r3
  38079. 8010842: 4b15 ldr r3, [pc, #84] @ (8010898 <low_level_output+0x128>)
  38080. 8010844: 605a str r2, [r3, #4]
  38081. TxConfig.TxBuffer = Txbuffer;
  38082. 8010846: 4a14 ldr r2, [pc, #80] @ (8010898 <low_level_output+0x128>)
  38083. 8010848: f107 030c add.w r3, r7, #12
  38084. 801084c: 6093 str r3, [r2, #8]
  38085. TxConfig.pData = p;
  38086. 801084e: 4a12 ldr r2, [pc, #72] @ (8010898 <low_level_output+0x128>)
  38087. 8010850: 683b ldr r3, [r7, #0]
  38088. 8010852: 6353 str r3, [r2, #52] @ 0x34
  38089. pbuf_ref(p);
  38090. 8010854: 6838 ldr r0, [r7, #0]
  38091. 8010856: f00a fdaf bl 801b3b8 <pbuf_ref>
  38092. #if 1
  38093. if (HAL_ETH_Transmit_IT(&heth, &TxConfig) == HAL_OK) {
  38094. 801085a: 490f ldr r1, [pc, #60] @ (8010898 <low_level_output+0x128>)
  38095. 801085c: 480f ldr r0, [pc, #60] @ (801089c <low_level_output+0x12c>)
  38096. 801085e: f7f7 fed7 bl 8008610 <HAL_ETH_Transmit_IT>
  38097. 8010862: 4603 mov r3, r0
  38098. 8010864: 2b00 cmp r3, #0
  38099. 8010866: d10e bne.n 8010886 <low_level_output+0x116>
  38100. while(osSemaphoreAcquire(TxPktSemaphore, TIME_WAITING_FOR_INPUT)!=osOK)
  38101. 8010868: bf00 nop
  38102. 801086a: 4b0d ldr r3, [pc, #52] @ (80108a0 <low_level_output+0x130>)
  38103. 801086c: 681b ldr r3, [r3, #0]
  38104. 801086e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  38105. 8010872: 4618 mov r0, r3
  38106. 8010874: f001 f816 bl 80118a4 <osSemaphoreAcquire>
  38107. 8010878: 4603 mov r3, r0
  38108. 801087a: 2b00 cmp r3, #0
  38109. 801087c: d1f5 bne.n 801086a <low_level_output+0xfa>
  38110. {
  38111. }
  38112. // osSemaphoreAcquire(TxPktSemaphore, pdMS_TO_TICKS(1000));
  38113. HAL_ETH_ReleaseTxPacket(&heth);
  38114. 801087e: 4807 ldr r0, [pc, #28] @ (801089c <low_level_output+0x12c>)
  38115. 8010880: f7f8 f84d bl 800891e <HAL_ETH_ReleaseTxPacket>
  38116. 8010884: e002 b.n 801088c <low_level_output+0x11c>
  38117. } else {
  38118. pbuf_free(p);
  38119. 8010886: 6838 ldr r0, [r7, #0]
  38120. 8010888: f00a fcf0 bl 801b26c <pbuf_free>
  38121. HAL_ETH_Transmit_IT(&heth, &TxConfig);
  38122. osSemaphoreAcquire(TxPktSemaphore, pdMS_TO_TICKS(100));
  38123. HAL_ETH_ReleaseTxPacket(&heth);
  38124. #endif
  38125. return errval;
  38126. 801088c: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  38127. }
  38128. 8010890: 4618 mov r0, r3
  38129. 8010892: 3748 adds r7, #72 @ 0x48
  38130. 8010894: 46bd mov sp, r7
  38131. 8010896: bd80 pop {r7, pc}
  38132. 8010898: 2400237c .word 0x2400237c
  38133. 801089c: 240022cc .word 0x240022cc
  38134. 80108a0: 240022c8 .word 0x240022c8
  38135. 080108a4 <low_level_input>:
  38136. * @param netif the lwip network interface structure for this ethernetif
  38137. * @return a pbuf filled with the received packet (including MAC header)
  38138. * NULL on memory error
  38139. */
  38140. static struct pbuf * low_level_input(struct netif *netif)
  38141. {
  38142. 80108a4: b580 push {r7, lr}
  38143. 80108a6: b084 sub sp, #16
  38144. 80108a8: af00 add r7, sp, #0
  38145. 80108aa: 6078 str r0, [r7, #4]
  38146. struct pbuf *p = NULL;
  38147. 80108ac: 2300 movs r3, #0
  38148. 80108ae: 60fb str r3, [r7, #12]
  38149. if(RxAllocStatus == RX_ALLOC_OK)
  38150. 80108b0: 4b07 ldr r3, [pc, #28] @ (80108d0 <low_level_input+0x2c>)
  38151. 80108b2: 781b ldrb r3, [r3, #0]
  38152. 80108b4: 2b00 cmp r3, #0
  38153. 80108b6: d105 bne.n 80108c4 <low_level_input+0x20>
  38154. {
  38155. HAL_ETH_ReadData(&heth, (void **)&p);
  38156. 80108b8: f107 030c add.w r3, r7, #12
  38157. 80108bc: 4619 mov r1, r3
  38158. 80108be: 4805 ldr r0, [pc, #20] @ (80108d4 <low_level_input+0x30>)
  38159. 80108c0: f7f7 fef7 bl 80086b2 <HAL_ETH_ReadData>
  38160. }
  38161. return p;
  38162. 80108c4: 68fb ldr r3, [r7, #12]
  38163. }
  38164. 80108c6: 4618 mov r0, r3
  38165. 80108c8: 3710 adds r7, #16
  38166. 80108ca: 46bd mov sp, r7
  38167. 80108cc: bd80 pop {r7, pc}
  38168. 80108ce: bf00 nop
  38169. 80108d0: 240022c0 .word 0x240022c0
  38170. 80108d4: 240022cc .word 0x240022cc
  38171. 080108d8 <ethernetif_input>:
  38172. * the appropriate input function is called.
  38173. *
  38174. * @param netif the lwip network interface structure for this ethernetif
  38175. */
  38176. void ethernetif_input(void* argument)
  38177. {
  38178. 80108d8: b580 push {r7, lr}
  38179. 80108da: b084 sub sp, #16
  38180. 80108dc: af00 add r7, sp, #0
  38181. 80108de: 6078 str r0, [r7, #4]
  38182. struct pbuf *p = NULL;
  38183. 80108e0: 2300 movs r3, #0
  38184. 80108e2: 60fb str r3, [r7, #12]
  38185. struct netif *netif = (struct netif *) argument;
  38186. 80108e4: 687b ldr r3, [r7, #4]
  38187. 80108e6: 60bb str r3, [r7, #8]
  38188. for( ;; )
  38189. {
  38190. if (osSemaphoreAcquire(RxPktSemaphore, TIME_WAITING_FOR_INPUT) == osOK)
  38191. 80108e8: 4b0f ldr r3, [pc, #60] @ (8010928 <ethernetif_input+0x50>)
  38192. 80108ea: 681b ldr r3, [r3, #0]
  38193. 80108ec: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  38194. 80108f0: 4618 mov r0, r3
  38195. 80108f2: f000 ffd7 bl 80118a4 <osSemaphoreAcquire>
  38196. 80108f6: 4603 mov r3, r0
  38197. 80108f8: 2b00 cmp r3, #0
  38198. 80108fa: d1f5 bne.n 80108e8 <ethernetif_input+0x10>
  38199. {
  38200. do
  38201. {
  38202. p = low_level_input( netif );
  38203. 80108fc: 68b8 ldr r0, [r7, #8]
  38204. 80108fe: f7ff ffd1 bl 80108a4 <low_level_input>
  38205. 8010902: 60f8 str r0, [r7, #12]
  38206. if (p != NULL)
  38207. 8010904: 68fb ldr r3, [r7, #12]
  38208. 8010906: 2b00 cmp r3, #0
  38209. 8010908: d00a beq.n 8010920 <ethernetif_input+0x48>
  38210. {
  38211. if (netif->input( p, netif) != ERR_OK )
  38212. 801090a: 68bb ldr r3, [r7, #8]
  38213. 801090c: 691b ldr r3, [r3, #16]
  38214. 801090e: 68b9 ldr r1, [r7, #8]
  38215. 8010910: 68f8 ldr r0, [r7, #12]
  38216. 8010912: 4798 blx r3
  38217. 8010914: 4603 mov r3, r0
  38218. 8010916: 2b00 cmp r3, #0
  38219. 8010918: d002 beq.n 8010920 <ethernetif_input+0x48>
  38220. {
  38221. pbuf_free(p);
  38222. 801091a: 68f8 ldr r0, [r7, #12]
  38223. 801091c: f00a fca6 bl 801b26c <pbuf_free>
  38224. }
  38225. }
  38226. } while(p!=NULL);
  38227. 8010920: 68fb ldr r3, [r7, #12]
  38228. 8010922: 2b00 cmp r3, #0
  38229. 8010924: d1ea bne.n 80108fc <ethernetif_input+0x24>
  38230. if (osSemaphoreAcquire(RxPktSemaphore, TIME_WAITING_FOR_INPUT) == osOK)
  38231. 8010926: e7df b.n 80108e8 <ethernetif_input+0x10>
  38232. 8010928: 240022c4 .word 0x240022c4
  38233. 0801092c <ethernetif_init>:
  38234. * @return ERR_OK if the loopif is initialized
  38235. * ERR_MEM if private data couldn't be allocated
  38236. * any other err_t on error
  38237. */
  38238. err_t ethernetif_init(struct netif *netif)
  38239. {
  38240. 801092c: b580 push {r7, lr}
  38241. 801092e: b082 sub sp, #8
  38242. 8010930: af00 add r7, sp, #0
  38243. 8010932: 6078 str r0, [r7, #4]
  38244. LWIP_ASSERT("netif != NULL", (netif != NULL));
  38245. 8010934: 687b ldr r3, [r7, #4]
  38246. 8010936: 2b00 cmp r3, #0
  38247. 8010938: d106 bne.n 8010948 <ethernetif_init+0x1c>
  38248. 801093a: 4b0e ldr r3, [pc, #56] @ (8010974 <ethernetif_init+0x48>)
  38249. 801093c: f240 2235 movw r2, #565 @ 0x235
  38250. 8010940: 490d ldr r1, [pc, #52] @ (8010978 <ethernetif_init+0x4c>)
  38251. 8010942: 480e ldr r0, [pc, #56] @ (801097c <ethernetif_init+0x50>)
  38252. 8010944: f019 ff0a bl 802a75c <iprintf>
  38253. * The last argument should be replaced with your link speed, in units
  38254. * of bits per second.
  38255. */
  38256. // MIB2_INIT_NETIF(netif, snmp_ifType_ethernet_csmacd, LINK_SPEED_OF_YOUR_NETIF_IN_BPS);
  38257. netif->name[0] = IFNAME0;
  38258. 8010948: 687b ldr r3, [r7, #4]
  38259. 801094a: 2273 movs r2, #115 @ 0x73
  38260. 801094c: f883 2032 strb.w r2, [r3, #50] @ 0x32
  38261. netif->name[1] = IFNAME1;
  38262. 8010950: 687b ldr r3, [r7, #4]
  38263. 8010952: 2274 movs r2, #116 @ 0x74
  38264. 8010954: f883 2033 strb.w r2, [r3, #51] @ 0x33
  38265. * is available...) */
  38266. #if LWIP_IPV4
  38267. #if LWIP_ARP || LWIP_ETHERNET
  38268. #if LWIP_ARP
  38269. netif->output = etharp_output;
  38270. 8010958: 687b ldr r3, [r7, #4]
  38271. 801095a: 4a09 ldr r2, [pc, #36] @ (8010980 <ethernetif_init+0x54>)
  38272. 801095c: 615a str r2, [r3, #20]
  38273. #if LWIP_IPV6
  38274. netif->output_ip6 = ethip6_output;
  38275. #endif /* LWIP_IPV6 */
  38276. netif->linkoutput = low_level_output;
  38277. 801095e: 687b ldr r3, [r7, #4]
  38278. 8010960: 4a08 ldr r2, [pc, #32] @ (8010984 <ethernetif_init+0x58>)
  38279. 8010962: 619a str r2, [r3, #24]
  38280. /* initialize the hardware */
  38281. low_level_init(netif);
  38282. 8010964: 6878 ldr r0, [r7, #4]
  38283. 8010966: f7ff fdc9 bl 80104fc <low_level_init>
  38284. return ERR_OK;
  38285. 801096a: 2300 movs r3, #0
  38286. }
  38287. 801096c: 4618 mov r0, r3
  38288. 801096e: 3708 adds r7, #8
  38289. 8010970: 46bd mov sp, r7
  38290. 8010972: bd80 pop {r7, pc}
  38291. 8010974: 0802d8e4 .word 0x0802d8e4
  38292. 8010978: 0802d900 .word 0x0802d900
  38293. 801097c: 0802d910 .word 0x0802d910
  38294. 8010980: 08024dcd .word 0x08024dcd
  38295. 8010984: 08010771 .word 0x08010771
  38296. 08010988 <pbuf_free_custom>:
  38297. * @brief Custom Rx pbuf free callback
  38298. * @param pbuf: pbuf to be freed
  38299. * @retval None
  38300. */
  38301. void pbuf_free_custom(struct pbuf *p)
  38302. {
  38303. 8010988: b580 push {r7, lr}
  38304. 801098a: b084 sub sp, #16
  38305. 801098c: af00 add r7, sp, #0
  38306. 801098e: 6078 str r0, [r7, #4]
  38307. struct pbuf_custom* custom_pbuf = (struct pbuf_custom*)p;
  38308. 8010990: 687b ldr r3, [r7, #4]
  38309. 8010992: 60fb str r3, [r7, #12]
  38310. LWIP_MEMPOOL_FREE(RX_POOL, custom_pbuf);
  38311. 8010994: 68f9 ldr r1, [r7, #12]
  38312. 8010996: 4809 ldr r0, [pc, #36] @ (80109bc <pbuf_free_custom+0x34>)
  38313. 8010998: f009 fd56 bl 801a448 <memp_free_pool>
  38314. /* If the Rx Buffer Pool was exhausted, signal the ethernetif_input task to
  38315. * call HAL_ETH_GetRxDataBuffer to rebuild the Rx descriptors. */
  38316. if (RxAllocStatus == RX_ALLOC_ERROR)
  38317. 801099c: 4b08 ldr r3, [pc, #32] @ (80109c0 <pbuf_free_custom+0x38>)
  38318. 801099e: 781b ldrb r3, [r3, #0]
  38319. 80109a0: 2b01 cmp r3, #1
  38320. 80109a2: d107 bne.n 80109b4 <pbuf_free_custom+0x2c>
  38321. {
  38322. RxAllocStatus = RX_ALLOC_OK;
  38323. 80109a4: 4b06 ldr r3, [pc, #24] @ (80109c0 <pbuf_free_custom+0x38>)
  38324. 80109a6: 2200 movs r2, #0
  38325. 80109a8: 701a strb r2, [r3, #0]
  38326. osSemaphoreRelease(RxPktSemaphore);
  38327. 80109aa: 4b06 ldr r3, [pc, #24] @ (80109c4 <pbuf_free_custom+0x3c>)
  38328. 80109ac: 681b ldr r3, [r3, #0]
  38329. 80109ae: 4618 mov r0, r3
  38330. 80109b0: f000 ffca bl 8011948 <osSemaphoreRelease>
  38331. }
  38332. }
  38333. 80109b4: bf00 nop
  38334. 80109b6: 3710 adds r7, #16
  38335. 80109b8: 46bd mov sp, r7
  38336. 80109ba: bd80 pop {r7, pc}
  38337. 80109bc: 080319ac .word 0x080319ac
  38338. 80109c0: 240022c0 .word 0x240022c0
  38339. 80109c4: 240022c4 .word 0x240022c4
  38340. 080109c8 <sys_now>:
  38341. * when LWIP_TIMERS == 1 and NO_SYS == 1
  38342. * @param None
  38343. * @retval Current Time value
  38344. */
  38345. u32_t sys_now(void)
  38346. {
  38347. 80109c8: b580 push {r7, lr}
  38348. 80109ca: af00 add r7, sp, #0
  38349. return HAL_GetTick();
  38350. 80109cc: f7f4 fe62 bl 8005694 <HAL_GetTick>
  38351. 80109d0: 4603 mov r3, r0
  38352. }
  38353. 80109d2: 4618 mov r0, r3
  38354. 80109d4: bd80 pop {r7, pc}
  38355. ...
  38356. 080109d8 <HAL_ETH_MspInit>:
  38357. * @param ethHandle: ETH handle
  38358. * @retval None
  38359. */
  38360. void HAL_ETH_MspInit(ETH_HandleTypeDef* ethHandle)
  38361. {
  38362. 80109d8: b580 push {r7, lr}
  38363. 80109da: b08e sub sp, #56 @ 0x38
  38364. 80109dc: af00 add r7, sp, #0
  38365. 80109de: 6078 str r0, [r7, #4]
  38366. GPIO_InitTypeDef GPIO_InitStruct = {0};
  38367. 80109e0: f107 0324 add.w r3, r7, #36 @ 0x24
  38368. 80109e4: 2200 movs r2, #0
  38369. 80109e6: 601a str r2, [r3, #0]
  38370. 80109e8: 605a str r2, [r3, #4]
  38371. 80109ea: 609a str r2, [r3, #8]
  38372. 80109ec: 60da str r2, [r3, #12]
  38373. 80109ee: 611a str r2, [r3, #16]
  38374. if(ethHandle->Instance==ETH)
  38375. 80109f0: 687b ldr r3, [r7, #4]
  38376. 80109f2: 681b ldr r3, [r3, #0]
  38377. 80109f4: 4a55 ldr r2, [pc, #340] @ (8010b4c <HAL_ETH_MspInit+0x174>)
  38378. 80109f6: 4293 cmp r3, r2
  38379. 80109f8: f040 80a4 bne.w 8010b44 <HAL_ETH_MspInit+0x16c>
  38380. {
  38381. /* USER CODE BEGIN ETH_MspInit 0 */
  38382. /* USER CODE END ETH_MspInit 0 */
  38383. /* Enable Peripheral clock */
  38384. __HAL_RCC_ETH1MAC_CLK_ENABLE();
  38385. 80109fc: 4b54 ldr r3, [pc, #336] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38386. 80109fe: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  38387. 8010a02: 4a53 ldr r2, [pc, #332] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38388. 8010a04: f443 4300 orr.w r3, r3, #32768 @ 0x8000
  38389. 8010a08: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  38390. 8010a0c: 4b50 ldr r3, [pc, #320] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38391. 8010a0e: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  38392. 8010a12: f403 4300 and.w r3, r3, #32768 @ 0x8000
  38393. 8010a16: 623b str r3, [r7, #32]
  38394. 8010a18: 6a3b ldr r3, [r7, #32]
  38395. __HAL_RCC_ETH1TX_CLK_ENABLE();
  38396. 8010a1a: 4b4d ldr r3, [pc, #308] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38397. 8010a1c: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  38398. 8010a20: 4a4b ldr r2, [pc, #300] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38399. 8010a22: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  38400. 8010a26: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  38401. 8010a2a: 4b49 ldr r3, [pc, #292] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38402. 8010a2c: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  38403. 8010a30: f403 3380 and.w r3, r3, #65536 @ 0x10000
  38404. 8010a34: 61fb str r3, [r7, #28]
  38405. 8010a36: 69fb ldr r3, [r7, #28]
  38406. __HAL_RCC_ETH1RX_CLK_ENABLE();
  38407. 8010a38: 4b45 ldr r3, [pc, #276] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38408. 8010a3a: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  38409. 8010a3e: 4a44 ldr r2, [pc, #272] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38410. 8010a40: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  38411. 8010a44: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  38412. 8010a48: 4b41 ldr r3, [pc, #260] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38413. 8010a4a: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  38414. 8010a4e: f403 3300 and.w r3, r3, #131072 @ 0x20000
  38415. 8010a52: 61bb str r3, [r7, #24]
  38416. 8010a54: 69bb ldr r3, [r7, #24]
  38417. __HAL_RCC_GPIOC_CLK_ENABLE();
  38418. 8010a56: 4b3e ldr r3, [pc, #248] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38419. 8010a58: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  38420. 8010a5c: 4a3c ldr r2, [pc, #240] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38421. 8010a5e: f043 0304 orr.w r3, r3, #4
  38422. 8010a62: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  38423. 8010a66: 4b3a ldr r3, [pc, #232] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38424. 8010a68: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  38425. 8010a6c: f003 0304 and.w r3, r3, #4
  38426. 8010a70: 617b str r3, [r7, #20]
  38427. 8010a72: 697b ldr r3, [r7, #20]
  38428. __HAL_RCC_GPIOA_CLK_ENABLE();
  38429. 8010a74: 4b36 ldr r3, [pc, #216] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38430. 8010a76: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  38431. 8010a7a: 4a35 ldr r2, [pc, #212] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38432. 8010a7c: f043 0301 orr.w r3, r3, #1
  38433. 8010a80: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  38434. 8010a84: 4b32 ldr r3, [pc, #200] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38435. 8010a86: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  38436. 8010a8a: f003 0301 and.w r3, r3, #1
  38437. 8010a8e: 613b str r3, [r7, #16]
  38438. 8010a90: 693b ldr r3, [r7, #16]
  38439. __HAL_RCC_GPIOB_CLK_ENABLE();
  38440. 8010a92: 4b2f ldr r3, [pc, #188] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38441. 8010a94: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  38442. 8010a98: 4a2d ldr r2, [pc, #180] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38443. 8010a9a: f043 0302 orr.w r3, r3, #2
  38444. 8010a9e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  38445. 8010aa2: 4b2b ldr r3, [pc, #172] @ (8010b50 <HAL_ETH_MspInit+0x178>)
  38446. 8010aa4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  38447. 8010aa8: f003 0302 and.w r3, r3, #2
  38448. 8010aac: 60fb str r3, [r7, #12]
  38449. 8010aae: 68fb ldr r3, [r7, #12]
  38450. PB11 ------> ETH_TX_EN
  38451. PB12 ------> ETH_TXD0
  38452. PB13 ------> ETH_TXD1
  38453. PB8 ------> ETH_TXD3
  38454. */
  38455. GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4
  38456. 8010ab0: 233e movs r3, #62 @ 0x3e
  38457. 8010ab2: 627b str r3, [r7, #36] @ 0x24
  38458. |GPIO_PIN_5;
  38459. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  38460. 8010ab4: 2302 movs r3, #2
  38461. 8010ab6: 62bb str r3, [r7, #40] @ 0x28
  38462. GPIO_InitStruct.Pull = GPIO_NOPULL;
  38463. 8010ab8: 2300 movs r3, #0
  38464. 8010aba: 62fb str r3, [r7, #44] @ 0x2c
  38465. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  38466. 8010abc: 2303 movs r3, #3
  38467. 8010abe: 633b str r3, [r7, #48] @ 0x30
  38468. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  38469. 8010ac0: 230b movs r3, #11
  38470. 8010ac2: 637b str r3, [r7, #52] @ 0x34
  38471. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  38472. 8010ac4: f107 0324 add.w r3, r7, #36 @ 0x24
  38473. 8010ac8: 4619 mov r1, r3
  38474. 8010aca: 4822 ldr r0, [pc, #136] @ (8010b54 <HAL_ETH_MspInit+0x17c>)
  38475. 8010acc: f7f9 f912 bl 8009cf4 <HAL_GPIO_Init>
  38476. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
  38477. 8010ad0: 238f movs r3, #143 @ 0x8f
  38478. 8010ad2: 627b str r3, [r7, #36] @ 0x24
  38479. |GPIO_PIN_7;
  38480. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  38481. 8010ad4: 2302 movs r3, #2
  38482. 8010ad6: 62bb str r3, [r7, #40] @ 0x28
  38483. GPIO_InitStruct.Pull = GPIO_NOPULL;
  38484. 8010ad8: 2300 movs r3, #0
  38485. 8010ada: 62fb str r3, [r7, #44] @ 0x2c
  38486. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  38487. 8010adc: 2303 movs r3, #3
  38488. 8010ade: 633b str r3, [r7, #48] @ 0x30
  38489. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  38490. 8010ae0: 230b movs r3, #11
  38491. 8010ae2: 637b str r3, [r7, #52] @ 0x34
  38492. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  38493. 8010ae4: f107 0324 add.w r3, r7, #36 @ 0x24
  38494. 8010ae8: 4619 mov r1, r3
  38495. 8010aea: 481b ldr r0, [pc, #108] @ (8010b58 <HAL_ETH_MspInit+0x180>)
  38496. 8010aec: f7f9 f902 bl 8009cf4 <HAL_GPIO_Init>
  38497. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_11|GPIO_PIN_12
  38498. 8010af0: f643 1303 movw r3, #14595 @ 0x3903
  38499. 8010af4: 627b str r3, [r7, #36] @ 0x24
  38500. |GPIO_PIN_13|GPIO_PIN_8;
  38501. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  38502. 8010af6: 2302 movs r3, #2
  38503. 8010af8: 62bb str r3, [r7, #40] @ 0x28
  38504. GPIO_InitStruct.Pull = GPIO_NOPULL;
  38505. 8010afa: 2300 movs r3, #0
  38506. 8010afc: 62fb str r3, [r7, #44] @ 0x2c
  38507. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  38508. 8010afe: 2303 movs r3, #3
  38509. 8010b00: 633b str r3, [r7, #48] @ 0x30
  38510. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  38511. 8010b02: 230b movs r3, #11
  38512. 8010b04: 637b str r3, [r7, #52] @ 0x34
  38513. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  38514. 8010b06: f107 0324 add.w r3, r7, #36 @ 0x24
  38515. 8010b0a: 4619 mov r1, r3
  38516. 8010b0c: 4813 ldr r0, [pc, #76] @ (8010b5c <HAL_ETH_MspInit+0x184>)
  38517. 8010b0e: f7f9 f8f1 bl 8009cf4 <HAL_GPIO_Init>
  38518. GPIO_InitStruct.Pin = GPIO_PIN_10;
  38519. 8010b12: f44f 6380 mov.w r3, #1024 @ 0x400
  38520. 8010b16: 627b str r3, [r7, #36] @ 0x24
  38521. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  38522. 8010b18: 2302 movs r3, #2
  38523. 8010b1a: 62bb str r3, [r7, #40] @ 0x28
  38524. GPIO_InitStruct.Pull = GPIO_NOPULL;
  38525. 8010b1c: 2300 movs r3, #0
  38526. 8010b1e: 62fb str r3, [r7, #44] @ 0x2c
  38527. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  38528. 8010b20: 2303 movs r3, #3
  38529. 8010b22: 633b str r3, [r7, #48] @ 0x30
  38530. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  38531. 8010b24: 230b movs r3, #11
  38532. 8010b26: 637b str r3, [r7, #52] @ 0x34
  38533. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  38534. 8010b28: f107 0324 add.w r3, r7, #36 @ 0x24
  38535. 8010b2c: 4619 mov r1, r3
  38536. 8010b2e: 480b ldr r0, [pc, #44] @ (8010b5c <HAL_ETH_MspInit+0x184>)
  38537. 8010b30: f7f9 f8e0 bl 8009cf4 <HAL_GPIO_Init>
  38538. /* Peripheral interrupt init */
  38539. HAL_NVIC_SetPriority(ETH_IRQn, 5, 0);
  38540. 8010b34: 2200 movs r2, #0
  38541. 8010b36: 2105 movs r1, #5
  38542. 8010b38: 203d movs r0, #61 @ 0x3d
  38543. 8010b3a: f7f4 feb3 bl 80058a4 <HAL_NVIC_SetPriority>
  38544. HAL_NVIC_EnableIRQ(ETH_IRQn);
  38545. 8010b3e: 203d movs r0, #61 @ 0x3d
  38546. 8010b40: f7f4 feca bl 80058d8 <HAL_NVIC_EnableIRQ>
  38547. /* USER CODE BEGIN ETH_MspInit 1 */
  38548. /* USER CODE END ETH_MspInit 1 */
  38549. }
  38550. }
  38551. 8010b44: bf00 nop
  38552. 8010b46: 3738 adds r7, #56 @ 0x38
  38553. 8010b48: 46bd mov sp, r7
  38554. 8010b4a: bd80 pop {r7, pc}
  38555. 8010b4c: 40028000 .word 0x40028000
  38556. 8010b50: 58024400 .word 0x58024400
  38557. 8010b54: 58020800 .word 0x58020800
  38558. 8010b58: 58020000 .word 0x58020000
  38559. 8010b5c: 58020400 .word 0x58020400
  38560. 08010b60 <ETH_PHY_IO_Init>:
  38561. * @brief Initializes the MDIO interface GPIO and clocks.
  38562. * @param None
  38563. * @retval 0 if OK, -1 if ERROR
  38564. */
  38565. int32_t ETH_PHY_IO_Init(void)
  38566. {
  38567. 8010b60: b580 push {r7, lr}
  38568. 8010b62: af00 add r7, sp, #0
  38569. /* We assume that MDIO GPIO configuration is already done
  38570. in the ETH_MspInit() else it should be done here
  38571. */
  38572. /* Configure the MDIO Clock */
  38573. HAL_ETH_SetMDIOClockRange(&heth);
  38574. 8010b64: 4802 ldr r0, [pc, #8] @ (8010b70 <ETH_PHY_IO_Init+0x10>)
  38575. 8010b66: f7f8 fae5 bl 8009134 <HAL_ETH_SetMDIOClockRange>
  38576. return 0;
  38577. 8010b6a: 2300 movs r3, #0
  38578. }
  38579. 8010b6c: 4618 mov r0, r3
  38580. 8010b6e: bd80 pop {r7, pc}
  38581. 8010b70: 240022cc .word 0x240022cc
  38582. 08010b74 <ETH_PHY_IO_DeInit>:
  38583. * @brief De-Initializes the MDIO interface .
  38584. * @param None
  38585. * @retval 0 if OK, -1 if ERROR
  38586. */
  38587. int32_t ETH_PHY_IO_DeInit (void)
  38588. {
  38589. 8010b74: b480 push {r7}
  38590. 8010b76: af00 add r7, sp, #0
  38591. return 0;
  38592. 8010b78: 2300 movs r3, #0
  38593. }
  38594. 8010b7a: 4618 mov r0, r3
  38595. 8010b7c: 46bd mov sp, r7
  38596. 8010b7e: f85d 7b04 ldr.w r7, [sp], #4
  38597. 8010b82: 4770 bx lr
  38598. 08010b84 <ETH_PHY_IO_ReadReg>:
  38599. * @param RegAddr: PHY register address
  38600. * @param pRegVal: pointer to hold the register value
  38601. * @retval 0 if OK -1 if Error
  38602. */
  38603. int32_t ETH_PHY_IO_ReadReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t *pRegVal)
  38604. {
  38605. 8010b84: b580 push {r7, lr}
  38606. 8010b86: b084 sub sp, #16
  38607. 8010b88: af00 add r7, sp, #0
  38608. 8010b8a: 60f8 str r0, [r7, #12]
  38609. 8010b8c: 60b9 str r1, [r7, #8]
  38610. 8010b8e: 607a str r2, [r7, #4]
  38611. if(HAL_ETH_ReadPHYRegister(&heth, DevAddr, RegAddr, pRegVal) != HAL_OK)
  38612. 8010b90: 687b ldr r3, [r7, #4]
  38613. 8010b92: 68ba ldr r2, [r7, #8]
  38614. 8010b94: 68f9 ldr r1, [r7, #12]
  38615. 8010b96: 4807 ldr r0, [pc, #28] @ (8010bb4 <ETH_PHY_IO_ReadReg+0x30>)
  38616. 8010b98: f7f8 f836 bl 8008c08 <HAL_ETH_ReadPHYRegister>
  38617. 8010b9c: 4603 mov r3, r0
  38618. 8010b9e: 2b00 cmp r3, #0
  38619. 8010ba0: d002 beq.n 8010ba8 <ETH_PHY_IO_ReadReg+0x24>
  38620. {
  38621. return -1;
  38622. 8010ba2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  38623. 8010ba6: e000 b.n 8010baa <ETH_PHY_IO_ReadReg+0x26>
  38624. }
  38625. return 0;
  38626. 8010ba8: 2300 movs r3, #0
  38627. }
  38628. 8010baa: 4618 mov r0, r3
  38629. 8010bac: 3710 adds r7, #16
  38630. 8010bae: 46bd mov sp, r7
  38631. 8010bb0: bd80 pop {r7, pc}
  38632. 8010bb2: bf00 nop
  38633. 8010bb4: 240022cc .word 0x240022cc
  38634. 08010bb8 <ETH_PHY_IO_WriteReg>:
  38635. * @param RegAddr: PHY register address
  38636. * @param RegVal: Value to be written
  38637. * @retval 0 if OK -1 if Error
  38638. */
  38639. int32_t ETH_PHY_IO_WriteReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t RegVal)
  38640. {
  38641. 8010bb8: b580 push {r7, lr}
  38642. 8010bba: b084 sub sp, #16
  38643. 8010bbc: af00 add r7, sp, #0
  38644. 8010bbe: 60f8 str r0, [r7, #12]
  38645. 8010bc0: 60b9 str r1, [r7, #8]
  38646. 8010bc2: 607a str r2, [r7, #4]
  38647. if(HAL_ETH_WritePHYRegister(&heth, DevAddr, RegAddr, RegVal) != HAL_OK)
  38648. 8010bc4: 687b ldr r3, [r7, #4]
  38649. 8010bc6: 68ba ldr r2, [r7, #8]
  38650. 8010bc8: 68f9 ldr r1, [r7, #12]
  38651. 8010bca: 4807 ldr r0, [pc, #28] @ (8010be8 <ETH_PHY_IO_WriteReg+0x30>)
  38652. 8010bcc: f7f8 f870 bl 8008cb0 <HAL_ETH_WritePHYRegister>
  38653. 8010bd0: 4603 mov r3, r0
  38654. 8010bd2: 2b00 cmp r3, #0
  38655. 8010bd4: d002 beq.n 8010bdc <ETH_PHY_IO_WriteReg+0x24>
  38656. {
  38657. return -1;
  38658. 8010bd6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  38659. 8010bda: e000 b.n 8010bde <ETH_PHY_IO_WriteReg+0x26>
  38660. }
  38661. return 0;
  38662. 8010bdc: 2300 movs r3, #0
  38663. }
  38664. 8010bde: 4618 mov r0, r3
  38665. 8010be0: 3710 adds r7, #16
  38666. 8010be2: 46bd mov sp, r7
  38667. 8010be4: bd80 pop {r7, pc}
  38668. 8010be6: bf00 nop
  38669. 8010be8: 240022cc .word 0x240022cc
  38670. 08010bec <ETH_PHY_IO_GetTick>:
  38671. /**
  38672. * @brief Get the time in millisecons used for internal PHY driver process.
  38673. * @retval Time value
  38674. */
  38675. int32_t ETH_PHY_IO_GetTick(void)
  38676. {
  38677. 8010bec: b580 push {r7, lr}
  38678. 8010bee: af00 add r7, sp, #0
  38679. return HAL_GetTick();
  38680. 8010bf0: f7f4 fd50 bl 8005694 <HAL_GetTick>
  38681. 8010bf4: 4603 mov r3, r0
  38682. }
  38683. 8010bf6: 4618 mov r0, r3
  38684. 8010bf8: bd80 pop {r7, pc}
  38685. ...
  38686. 08010bfc <ethernet_link_thread>:
  38687. /**
  38688. * @brief Check the ETH link state then update ETH driver and netif link accordingly.
  38689. * @retval None
  38690. */
  38691. void ethernet_link_thread(void* argument)
  38692. {
  38693. 8010bfc: b580 push {r7, lr}
  38694. 8010bfe: b0a2 sub sp, #136 @ 0x88
  38695. 8010c00: af00 add r7, sp, #0
  38696. 8010c02: 6078 str r0, [r7, #4]
  38697. ETH_MACConfigTypeDef MACConf = {0};
  38698. 8010c04: f107 0310 add.w r3, r7, #16
  38699. 8010c08: 2264 movs r2, #100 @ 0x64
  38700. 8010c0a: 2100 movs r1, #0
  38701. 8010c0c: 4618 mov r0, r3
  38702. 8010c0e: f019 ff37 bl 802aa80 <memset>
  38703. int32_t PHYLinkState = 0;
  38704. 8010c12: 2300 movs r3, #0
  38705. 8010c14: 67bb str r3, [r7, #120] @ 0x78
  38706. uint32_t linkchanged = 0U, speed = 0U, duplex = 0U;
  38707. 8010c16: 2300 movs r3, #0
  38708. 8010c18: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  38709. 8010c1c: 2300 movs r3, #0
  38710. 8010c1e: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  38711. 8010c22: 2300 movs r3, #0
  38712. 8010c24: 67fb str r3, [r7, #124] @ 0x7c
  38713. struct netif *netif = (struct netif *) argument;
  38714. 8010c26: 687b ldr r3, [r7, #4]
  38715. 8010c28: 677b str r3, [r7, #116] @ 0x74
  38716. /* USER CODE BEGIN ETH link init */
  38717. #if USE_DHCP
  38718. enum dhcp_states DHCP_state = DHCP_START;
  38719. 8010c2a: 2301 movs r3, #1
  38720. 8010c2c: 73fb strb r3, [r7, #15]
  38721. // LOCK_TCPIP_CORE();
  38722. /* USER CODE END ETH link init */
  38723. for(;;)
  38724. {
  38725. PHYLinkState = DP83848_GetLinkState(&DP83848);
  38726. 8010c2e: 484a ldr r0, [pc, #296] @ (8010d58 <ethernet_link_thread+0x15c>)
  38727. 8010c30: f7f4 fc58 bl 80054e4 <DP83848_GetLinkState>
  38728. 8010c34: 67b8 str r0, [r7, #120] @ 0x78
  38729. if(netif_is_link_up(netif) && (PHYLinkState <= DP83848_STATUS_LINK_DOWN))
  38730. 8010c36: 6f7b ldr r3, [r7, #116] @ 0x74
  38731. 8010c38: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  38732. 8010c3c: 089b lsrs r3, r3, #2
  38733. 8010c3e: f003 0301 and.w r3, r3, #1
  38734. 8010c42: b2db uxtb r3, r3
  38735. 8010c44: 2b00 cmp r3, #0
  38736. 8010c46: d013 beq.n 8010c70 <ethernet_link_thread+0x74>
  38737. 8010c48: 6fbb ldr r3, [r7, #120] @ 0x78
  38738. 8010c4a: 2b01 cmp r3, #1
  38739. 8010c4c: dc10 bgt.n 8010c70 <ethernet_link_thread+0x74>
  38740. {
  38741. HAL_ETH_Stop_IT(&heth);
  38742. 8010c4e: 4843 ldr r0, [pc, #268] @ (8010d5c <ethernet_link_thread+0x160>)
  38743. 8010c50: f7f7 fc66 bl 8008520 <HAL_ETH_Stop_IT>
  38744. LOCK_TCPIP_CORE();
  38745. 8010c54: f000 f936 bl 8010ec4 <sys_lock_tcpip_core>
  38746. netif_set_down(netif);
  38747. 8010c58: 6f78 ldr r0, [r7, #116] @ 0x74
  38748. 8010c5a: f009 fe87 bl 801a96c <netif_set_down>
  38749. netif_set_link_down(netif);
  38750. 8010c5e: 6f78 ldr r0, [r7, #116] @ 0x74
  38751. 8010c60: f009 fef2 bl 801aa48 <netif_set_link_down>
  38752. UNLOCK_TCPIP_CORE();
  38753. 8010c64: f000 f93e bl 8010ee4 <sys_unlock_tcpip_core>
  38754. printf("Link down...\r\n");
  38755. 8010c68: 483d ldr r0, [pc, #244] @ (8010d60 <ethernet_link_thread+0x164>)
  38756. 8010c6a: f019 fddf bl 802a82c <puts>
  38757. 8010c6e: e067 b.n 8010d40 <ethernet_link_thread+0x144>
  38758. }
  38759. else if(!netif_is_link_up(netif) && (PHYLinkState > DP83848_STATUS_LINK_DOWN))
  38760. 8010c70: 6f7b ldr r3, [r7, #116] @ 0x74
  38761. 8010c72: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  38762. 8010c76: f003 0304 and.w r3, r3, #4
  38763. 8010c7a: 2b00 cmp r3, #0
  38764. 8010c7c: d160 bne.n 8010d40 <ethernet_link_thread+0x144>
  38765. 8010c7e: 6fbb ldr r3, [r7, #120] @ 0x78
  38766. 8010c80: 2b01 cmp r3, #1
  38767. 8010c82: dd5d ble.n 8010d40 <ethernet_link_thread+0x144>
  38768. {
  38769. switch (PHYLinkState)
  38770. 8010c84: 6fbb ldr r3, [r7, #120] @ 0x78
  38771. 8010c86: 3b02 subs r3, #2
  38772. 8010c88: 2b03 cmp r3, #3
  38773. 8010c8a: d833 bhi.n 8010cf4 <ethernet_link_thread+0xf8>
  38774. 8010c8c: a201 add r2, pc, #4 @ (adr r2, 8010c94 <ethernet_link_thread+0x98>)
  38775. 8010c8e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  38776. 8010c92: bf00 nop
  38777. 8010c94: 08010ca5 .word 0x08010ca5
  38778. 8010c98: 08010cbb .word 0x08010cbb
  38779. 8010c9c: 08010ccf .word 0x08010ccf
  38780. 8010ca0: 08010ce3 .word 0x08010ce3
  38781. {
  38782. case DP83848_STATUS_100MBITS_FULLDUPLEX:
  38783. duplex = ETH_FULLDUPLEX_MODE;
  38784. 8010ca4: f44f 5300 mov.w r3, #8192 @ 0x2000
  38785. 8010ca8: 67fb str r3, [r7, #124] @ 0x7c
  38786. speed = ETH_SPEED_100M;
  38787. 8010caa: f44f 4380 mov.w r3, #16384 @ 0x4000
  38788. 8010cae: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  38789. linkchanged = 1;
  38790. 8010cb2: 2301 movs r3, #1
  38791. 8010cb4: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  38792. break;
  38793. 8010cb8: e01d b.n 8010cf6 <ethernet_link_thread+0xfa>
  38794. case DP83848_STATUS_100MBITS_HALFDUPLEX:
  38795. duplex = ETH_HALFDUPLEX_MODE;
  38796. 8010cba: 2300 movs r3, #0
  38797. 8010cbc: 67fb str r3, [r7, #124] @ 0x7c
  38798. speed = ETH_SPEED_100M;
  38799. 8010cbe: f44f 4380 mov.w r3, #16384 @ 0x4000
  38800. 8010cc2: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  38801. linkchanged = 1;
  38802. 8010cc6: 2301 movs r3, #1
  38803. 8010cc8: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  38804. break;
  38805. 8010ccc: e013 b.n 8010cf6 <ethernet_link_thread+0xfa>
  38806. case DP83848_STATUS_10MBITS_FULLDUPLEX:
  38807. duplex = ETH_FULLDUPLEX_MODE;
  38808. 8010cce: f44f 5300 mov.w r3, #8192 @ 0x2000
  38809. 8010cd2: 67fb str r3, [r7, #124] @ 0x7c
  38810. speed = ETH_SPEED_10M;
  38811. 8010cd4: 2300 movs r3, #0
  38812. 8010cd6: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  38813. linkchanged = 1;
  38814. 8010cda: 2301 movs r3, #1
  38815. 8010cdc: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  38816. break;
  38817. 8010ce0: e009 b.n 8010cf6 <ethernet_link_thread+0xfa>
  38818. case DP83848_STATUS_10MBITS_HALFDUPLEX:
  38819. duplex = ETH_HALFDUPLEX_MODE;
  38820. 8010ce2: 2300 movs r3, #0
  38821. 8010ce4: 67fb str r3, [r7, #124] @ 0x7c
  38822. speed = ETH_SPEED_10M;
  38823. 8010ce6: 2300 movs r3, #0
  38824. 8010ce8: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  38825. linkchanged = 1;
  38826. 8010cec: 2301 movs r3, #1
  38827. 8010cee: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  38828. break;
  38829. 8010cf2: e000 b.n 8010cf6 <ethernet_link_thread+0xfa>
  38830. default:
  38831. break;
  38832. 8010cf4: bf00 nop
  38833. }
  38834. if(linkchanged)
  38835. 8010cf6: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  38836. 8010cfa: 2b00 cmp r3, #0
  38837. 8010cfc: d020 beq.n 8010d40 <ethernet_link_thread+0x144>
  38838. {
  38839. /* Get MAC Config MAC */
  38840. HAL_ETH_GetMACConfig(&heth, &MACConf);
  38841. 8010cfe: f107 0310 add.w r3, r7, #16
  38842. 8010d02: 4619 mov r1, r3
  38843. 8010d04: 4815 ldr r0, [pc, #84] @ (8010d5c <ethernet_link_thread+0x160>)
  38844. 8010d06: f7f8 f827 bl 8008d58 <HAL_ETH_GetMACConfig>
  38845. MACConf.DuplexMode = duplex;
  38846. 8010d0a: 6ffb ldr r3, [r7, #124] @ 0x7c
  38847. 8010d0c: 62bb str r3, [r7, #40] @ 0x28
  38848. MACConf.Speed = speed;
  38849. 8010d0e: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  38850. 8010d12: 627b str r3, [r7, #36] @ 0x24
  38851. HAL_ETH_SetMACConfig(&heth, &MACConf);
  38852. 8010d14: f107 0310 add.w r3, r7, #16
  38853. 8010d18: 4619 mov r1, r3
  38854. 8010d1a: 4810 ldr r0, [pc, #64] @ (8010d5c <ethernet_link_thread+0x160>)
  38855. 8010d1c: f7f8 f9f0 bl 8009100 <HAL_ETH_SetMACConfig>
  38856. HAL_ETH_Start_IT(&heth);
  38857. 8010d20: 480e ldr r0, [pc, #56] @ (8010d5c <ethernet_link_thread+0x160>)
  38858. 8010d22: f7f7 fb89 bl 8008438 <HAL_ETH_Start_IT>
  38859. LOCK_TCPIP_CORE();
  38860. 8010d26: f000 f8cd bl 8010ec4 <sys_lock_tcpip_core>
  38861. netif_set_up(netif);
  38862. 8010d2a: 6f78 ldr r0, [r7, #116] @ 0x74
  38863. 8010d2c: f009 fdb0 bl 801a890 <netif_set_up>
  38864. netif_set_link_up(netif);
  38865. 8010d30: 6f78 ldr r0, [r7, #116] @ 0x74
  38866. 8010d32: f009 fe4f bl 801a9d4 <netif_set_link_up>
  38867. UNLOCK_TCPIP_CORE();
  38868. 8010d36: f000 f8d5 bl 8010ee4 <sys_unlock_tcpip_core>
  38869. printf("Link up...\r\n");
  38870. 8010d3a: 480a ldr r0, [pc, #40] @ (8010d64 <ethernet_link_thread+0x168>)
  38871. 8010d3c: f019 fd76 bl 802a82c <puts>
  38872. }
  38873. }
  38874. /* USER CODE BEGIN ETH link Thread core code for User BSP */
  38875. #if USE_DHCP
  38876. dhcp_sm(netif, &DHCP_state);
  38877. 8010d40: f107 030f add.w r3, r7, #15
  38878. 8010d44: 4619 mov r1, r3
  38879. 8010d46: 6f78 ldr r0, [r7, #116] @ 0x74
  38880. 8010d48: f000 f922 bl 8010f90 <dhcp_sm>
  38881. #endif
  38882. /* ETH_CODE: workaround to call LOCK_TCPIP_CORE when accessing netif link functions*/
  38883. // UNLOCK_TCPIP_CORE();
  38884. osDelay(pdMS_TO_TICKS(500));
  38885. 8010d4c: f44f 70fa mov.w r0, #500 @ 0x1f4
  38886. 8010d50: f000 faff bl 8011352 <osDelay>
  38887. // LOCK_TCPIP_CORE();
  38888. continue; /* skip next osDelay */
  38889. 8010d54: bf00 nop
  38890. PHYLinkState = DP83848_GetLinkState(&DP83848);
  38891. 8010d56: e76a b.n 8010c2e <ethernet_link_thread+0x32>
  38892. 8010d58: 240023b4 .word 0x240023b4
  38893. 8010d5c: 240022cc .word 0x240022cc
  38894. 8010d60: 0802d938 .word 0x0802d938
  38895. 8010d64: 0802d948 .word 0x0802d948
  38896. 08010d68 <ethernetif_notify_conn_changed>:
  38897. * @brief This function notify user about link status changement.
  38898. * @param netif: the network interface
  38899. * @retval None
  38900. */
  38901. __weak void ethernetif_notify_conn_changed(struct netif *netif)
  38902. {
  38903. 8010d68: b480 push {r7}
  38904. 8010d6a: b083 sub sp, #12
  38905. 8010d6c: af00 add r7, sp, #0
  38906. 8010d6e: 6078 str r0, [r7, #4]
  38907. /* NOTE : This is function could be implemented in user file
  38908. when the callback is needed,
  38909. */
  38910. }
  38911. 8010d70: bf00 nop
  38912. 8010d72: 370c adds r7, #12
  38913. 8010d74: 46bd mov sp, r7
  38914. 8010d76: f85d 7b04 ldr.w r7, [sp], #4
  38915. 8010d7a: 4770 bx lr
  38916. 08010d7c <HAL_ETH_RxAllocateCallback>:
  38917. void HAL_ETH_RxAllocateCallback(uint8_t **buff)
  38918. {
  38919. 8010d7c: b580 push {r7, lr}
  38920. 8010d7e: b086 sub sp, #24
  38921. 8010d80: af02 add r7, sp, #8
  38922. 8010d82: 6078 str r0, [r7, #4]
  38923. /* USER CODE BEGIN HAL ETH RxAllocateCallback */
  38924. struct pbuf_custom *p = LWIP_MEMPOOL_ALLOC(RX_POOL);
  38925. 8010d84: 4812 ldr r0, [pc, #72] @ (8010dd0 <HAL_ETH_RxAllocateCallback+0x54>)
  38926. 8010d86: f009 faeb bl 801a360 <memp_malloc_pool>
  38927. 8010d8a: 60f8 str r0, [r7, #12]
  38928. if (p)
  38929. 8010d8c: 68fb ldr r3, [r7, #12]
  38930. 8010d8e: 2b00 cmp r3, #0
  38931. 8010d90: d014 beq.n 8010dbc <HAL_ETH_RxAllocateCallback+0x40>
  38932. {
  38933. /* Get the buff from the struct pbuf address. */
  38934. *buff = (uint8_t *)p + offsetof(RxBuff_t, buff);
  38935. 8010d92: 68fb ldr r3, [r7, #12]
  38936. 8010d94: f103 0220 add.w r2, r3, #32
  38937. 8010d98: 687b ldr r3, [r7, #4]
  38938. 8010d9a: 601a str r2, [r3, #0]
  38939. p->custom_free_function = pbuf_free_custom;
  38940. 8010d9c: 68fb ldr r3, [r7, #12]
  38941. 8010d9e: 4a0d ldr r2, [pc, #52] @ (8010dd4 <HAL_ETH_RxAllocateCallback+0x58>)
  38942. 8010da0: 611a str r2, [r3, #16]
  38943. /* Initialize the struct pbuf.
  38944. * This must be performed whenever a buffer's allocated because it may be
  38945. * changed by lwIP or the app, e.g., pbuf_free decrements ref. */
  38946. pbuf_alloced_custom(PBUF_RAW, 0, PBUF_REF, p, *buff, ETH_RX_BUFFER_SIZE);
  38947. 8010da2: 687b ldr r3, [r7, #4]
  38948. 8010da4: 681b ldr r3, [r3, #0]
  38949. 8010da6: f44f 62c0 mov.w r2, #1536 @ 0x600
  38950. 8010daa: 9201 str r2, [sp, #4]
  38951. 8010dac: 9300 str r3, [sp, #0]
  38952. 8010dae: 68fb ldr r3, [r7, #12]
  38953. 8010db0: 2241 movs r2, #65 @ 0x41
  38954. 8010db2: 2100 movs r1, #0
  38955. 8010db4: 2000 movs r0, #0
  38956. 8010db6: f00a f86f bl 801ae98 <pbuf_alloced_custom>
  38957. {
  38958. RxAllocStatus = RX_ALLOC_ERROR;
  38959. *buff = NULL;
  38960. }
  38961. /* USER CODE END HAL ETH RxAllocateCallback */
  38962. }
  38963. 8010dba: e005 b.n 8010dc8 <HAL_ETH_RxAllocateCallback+0x4c>
  38964. RxAllocStatus = RX_ALLOC_ERROR;
  38965. 8010dbc: 4b06 ldr r3, [pc, #24] @ (8010dd8 <HAL_ETH_RxAllocateCallback+0x5c>)
  38966. 8010dbe: 2201 movs r2, #1
  38967. 8010dc0: 701a strb r2, [r3, #0]
  38968. *buff = NULL;
  38969. 8010dc2: 687b ldr r3, [r7, #4]
  38970. 8010dc4: 2200 movs r2, #0
  38971. 8010dc6: 601a str r2, [r3, #0]
  38972. }
  38973. 8010dc8: bf00 nop
  38974. 8010dca: 3710 adds r7, #16
  38975. 8010dcc: 46bd mov sp, r7
  38976. 8010dce: bd80 pop {r7, pc}
  38977. 8010dd0: 080319ac .word 0x080319ac
  38978. 8010dd4: 08010989 .word 0x08010989
  38979. 8010dd8: 240022c0 .word 0x240022c0
  38980. 08010ddc <HAL_ETH_RxLinkCallback>:
  38981. void HAL_ETH_RxLinkCallback(void **pStart, void **pEnd, uint8_t *buff, uint16_t Length)
  38982. {
  38983. 8010ddc: b480 push {r7}
  38984. 8010dde: b08d sub sp, #52 @ 0x34
  38985. 8010de0: af00 add r7, sp, #0
  38986. 8010de2: 60f8 str r0, [r7, #12]
  38987. 8010de4: 60b9 str r1, [r7, #8]
  38988. 8010de6: 607a str r2, [r7, #4]
  38989. 8010de8: 807b strh r3, [r7, #2]
  38990. /* USER CODE BEGIN HAL ETH RxLinkCallback */
  38991. struct pbuf **ppStart = (struct pbuf **)pStart;
  38992. 8010dea: 68fb ldr r3, [r7, #12]
  38993. 8010dec: 62bb str r3, [r7, #40] @ 0x28
  38994. struct pbuf **ppEnd = (struct pbuf **)pEnd;
  38995. 8010dee: 68bb ldr r3, [r7, #8]
  38996. 8010df0: 627b str r3, [r7, #36] @ 0x24
  38997. struct pbuf *p = NULL;
  38998. 8010df2: 2300 movs r3, #0
  38999. 8010df4: 62fb str r3, [r7, #44] @ 0x2c
  39000. /* Get the struct pbuf from the buff address. */
  39001. p = (struct pbuf *)(buff - offsetof(RxBuff_t, buff));
  39002. 8010df6: 687b ldr r3, [r7, #4]
  39003. 8010df8: 3b20 subs r3, #32
  39004. 8010dfa: 62fb str r3, [r7, #44] @ 0x2c
  39005. p->next = NULL;
  39006. 8010dfc: 6afb ldr r3, [r7, #44] @ 0x2c
  39007. 8010dfe: 2200 movs r2, #0
  39008. 8010e00: 601a str r2, [r3, #0]
  39009. p->tot_len = 0;
  39010. 8010e02: 6afb ldr r3, [r7, #44] @ 0x2c
  39011. 8010e04: 2200 movs r2, #0
  39012. 8010e06: 811a strh r2, [r3, #8]
  39013. p->len = Length;
  39014. 8010e08: 6afb ldr r3, [r7, #44] @ 0x2c
  39015. 8010e0a: 887a ldrh r2, [r7, #2]
  39016. 8010e0c: 815a strh r2, [r3, #10]
  39017. /* Chain the buffer. */
  39018. if (!*ppStart)
  39019. 8010e0e: 6abb ldr r3, [r7, #40] @ 0x28
  39020. 8010e10: 681b ldr r3, [r3, #0]
  39021. 8010e12: 2b00 cmp r3, #0
  39022. 8010e14: d103 bne.n 8010e1e <HAL_ETH_RxLinkCallback+0x42>
  39023. {
  39024. /* The first buffer of the packet. */
  39025. *ppStart = p;
  39026. 8010e16: 6abb ldr r3, [r7, #40] @ 0x28
  39027. 8010e18: 6afa ldr r2, [r7, #44] @ 0x2c
  39028. 8010e1a: 601a str r2, [r3, #0]
  39029. 8010e1c: e003 b.n 8010e26 <HAL_ETH_RxLinkCallback+0x4a>
  39030. }
  39031. else
  39032. {
  39033. /* Chain the buffer to the end of the packet. */
  39034. (*ppEnd)->next = p;
  39035. 8010e1e: 6a7b ldr r3, [r7, #36] @ 0x24
  39036. 8010e20: 681b ldr r3, [r3, #0]
  39037. 8010e22: 6afa ldr r2, [r7, #44] @ 0x2c
  39038. 8010e24: 601a str r2, [r3, #0]
  39039. }
  39040. *ppEnd = p;
  39041. 8010e26: 6a7b ldr r3, [r7, #36] @ 0x24
  39042. 8010e28: 6afa ldr r2, [r7, #44] @ 0x2c
  39043. 8010e2a: 601a str r2, [r3, #0]
  39044. /* Update the total length of all the buffers of the chain. Each pbuf in the chain should have its tot_len
  39045. * set to its own length, plus the length of all the following pbufs in the chain. */
  39046. for (p = *ppStart; p != NULL; p = p->next)
  39047. 8010e2c: 6abb ldr r3, [r7, #40] @ 0x28
  39048. 8010e2e: 681b ldr r3, [r3, #0]
  39049. 8010e30: 62fb str r3, [r7, #44] @ 0x2c
  39050. 8010e32: e009 b.n 8010e48 <HAL_ETH_RxLinkCallback+0x6c>
  39051. {
  39052. p->tot_len += Length;
  39053. 8010e34: 6afb ldr r3, [r7, #44] @ 0x2c
  39054. 8010e36: 891a ldrh r2, [r3, #8]
  39055. 8010e38: 887b ldrh r3, [r7, #2]
  39056. 8010e3a: 4413 add r3, r2
  39057. 8010e3c: b29a uxth r2, r3
  39058. 8010e3e: 6afb ldr r3, [r7, #44] @ 0x2c
  39059. 8010e40: 811a strh r2, [r3, #8]
  39060. for (p = *ppStart; p != NULL; p = p->next)
  39061. 8010e42: 6afb ldr r3, [r7, #44] @ 0x2c
  39062. 8010e44: 681b ldr r3, [r3, #0]
  39063. 8010e46: 62fb str r3, [r7, #44] @ 0x2c
  39064. 8010e48: 6afb ldr r3, [r7, #44] @ 0x2c
  39065. 8010e4a: 2b00 cmp r3, #0
  39066. 8010e4c: d1f2 bne.n 8010e34 <HAL_ETH_RxLinkCallback+0x58>
  39067. }
  39068. /* Invalidate data cache because Rx DMA's writing to physical memory makes it stale. */
  39069. SCB_InvalidateDCache_by_Addr((uint32_t *)buff, Length);
  39070. 8010e4e: 887b ldrh r3, [r7, #2]
  39071. 8010e50: 687a ldr r2, [r7, #4]
  39072. 8010e52: 623a str r2, [r7, #32]
  39073. 8010e54: 61fb str r3, [r7, #28]
  39074. \param[in] dsize size of memory block (in number of bytes)
  39075. */
  39076. __STATIC_FORCEINLINE void SCB_InvalidateDCache_by_Addr (void *addr, int32_t dsize)
  39077. {
  39078. #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
  39079. if ( dsize > 0 ) {
  39080. 8010e56: 69fb ldr r3, [r7, #28]
  39081. 8010e58: 2b00 cmp r3, #0
  39082. 8010e5a: dd1d ble.n 8010e98 <HAL_ETH_RxLinkCallback+0xbc>
  39083. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  39084. 8010e5c: 6a3b ldr r3, [r7, #32]
  39085. 8010e5e: f003 021f and.w r2, r3, #31
  39086. 8010e62: 69fb ldr r3, [r7, #28]
  39087. 8010e64: 4413 add r3, r2
  39088. 8010e66: 61bb str r3, [r7, #24]
  39089. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  39090. 8010e68: 6a3b ldr r3, [r7, #32]
  39091. 8010e6a: 617b str r3, [r7, #20]
  39092. __ASM volatile ("dsb 0xF":::"memory");
  39093. 8010e6c: f3bf 8f4f dsb sy
  39094. }
  39095. 8010e70: bf00 nop
  39096. __DSB();
  39097. do {
  39098. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  39099. 8010e72: 4a0d ldr r2, [pc, #52] @ (8010ea8 <HAL_ETH_RxLinkCallback+0xcc>)
  39100. 8010e74: 697b ldr r3, [r7, #20]
  39101. 8010e76: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  39102. op_addr += __SCB_DCACHE_LINE_SIZE;
  39103. 8010e7a: 697b ldr r3, [r7, #20]
  39104. 8010e7c: 3320 adds r3, #32
  39105. 8010e7e: 617b str r3, [r7, #20]
  39106. op_size -= __SCB_DCACHE_LINE_SIZE;
  39107. 8010e80: 69bb ldr r3, [r7, #24]
  39108. 8010e82: 3b20 subs r3, #32
  39109. 8010e84: 61bb str r3, [r7, #24]
  39110. } while ( op_size > 0 );
  39111. 8010e86: 69bb ldr r3, [r7, #24]
  39112. 8010e88: 2b00 cmp r3, #0
  39113. 8010e8a: dcf2 bgt.n 8010e72 <HAL_ETH_RxLinkCallback+0x96>
  39114. __ASM volatile ("dsb 0xF":::"memory");
  39115. 8010e8c: f3bf 8f4f dsb sy
  39116. }
  39117. 8010e90: bf00 nop
  39118. __ASM volatile ("isb 0xF":::"memory");
  39119. 8010e92: f3bf 8f6f isb sy
  39120. }
  39121. 8010e96: bf00 nop
  39122. __DSB();
  39123. __ISB();
  39124. }
  39125. #endif
  39126. }
  39127. 8010e98: bf00 nop
  39128. /* USER CODE END HAL ETH RxLinkCallback */
  39129. }
  39130. 8010e9a: bf00 nop
  39131. 8010e9c: 3734 adds r7, #52 @ 0x34
  39132. 8010e9e: 46bd mov sp, r7
  39133. 8010ea0: f85d 7b04 ldr.w r7, [sp], #4
  39134. 8010ea4: 4770 bx lr
  39135. 8010ea6: bf00 nop
  39136. 8010ea8: e000ed00 .word 0xe000ed00
  39137. 08010eac <HAL_ETH_TxFreeCallback>:
  39138. void HAL_ETH_TxFreeCallback(uint32_t * buff)
  39139. {
  39140. 8010eac: b580 push {r7, lr}
  39141. 8010eae: b082 sub sp, #8
  39142. 8010eb0: af00 add r7, sp, #0
  39143. 8010eb2: 6078 str r0, [r7, #4]
  39144. /* USER CODE BEGIN HAL ETH TxFreeCallback */
  39145. pbuf_free((struct pbuf *)buff);
  39146. 8010eb4: 6878 ldr r0, [r7, #4]
  39147. 8010eb6: f00a f9d9 bl 801b26c <pbuf_free>
  39148. /* USER CODE END HAL ETH TxFreeCallback */
  39149. }
  39150. 8010eba: bf00 nop
  39151. 8010ebc: 3708 adds r7, #8
  39152. 8010ebe: 46bd mov sp, r7
  39153. 8010ec0: bd80 pop {r7, pc}
  39154. ...
  39155. 08010ec4 <sys_lock_tcpip_core>:
  39156. /* ETH_CODE: add functions needed for proper multithreading support and check */
  39157. static osThreadId_t lwip_core_lock_holder_thread_id;
  39158. static osThreadId_t lwip_tcpip_thread_id;
  39159. void sys_lock_tcpip_core(void){
  39160. 8010ec4: b580 push {r7, lr}
  39161. 8010ec6: af00 add r7, sp, #0
  39162. sys_mutex_lock(&lock_tcpip_core);
  39163. 8010ec8: 4804 ldr r0, [pc, #16] @ (8010edc <sys_lock_tcpip_core+0x18>)
  39164. 8010eca: f016 f975 bl 80271b8 <sys_mutex_lock>
  39165. lwip_core_lock_holder_thread_id = osThreadGetId();
  39166. 8010ece: f000 fa35 bl 801133c <osThreadGetId>
  39167. 8010ed2: 4603 mov r3, r0
  39168. 8010ed4: 4a02 ldr r2, [pc, #8] @ (8010ee0 <sys_lock_tcpip_core+0x1c>)
  39169. 8010ed6: 6013 str r3, [r2, #0]
  39170. }
  39171. 8010ed8: bf00 nop
  39172. 8010eda: bd80 pop {r7, pc}
  39173. 8010edc: 24024414 .word 0x24024414
  39174. 8010ee0: 240023d4 .word 0x240023d4
  39175. 08010ee4 <sys_unlock_tcpip_core>:
  39176. void sys_unlock_tcpip_core(void){
  39177. 8010ee4: b580 push {r7, lr}
  39178. 8010ee6: af00 add r7, sp, #0
  39179. lwip_core_lock_holder_thread_id = 0;
  39180. 8010ee8: 4b03 ldr r3, [pc, #12] @ (8010ef8 <sys_unlock_tcpip_core+0x14>)
  39181. 8010eea: 2200 movs r2, #0
  39182. 8010eec: 601a str r2, [r3, #0]
  39183. sys_mutex_unlock(&lock_tcpip_core);
  39184. 8010eee: 4803 ldr r0, [pc, #12] @ (8010efc <sys_unlock_tcpip_core+0x18>)
  39185. 8010ef0: f016 f971 bl 80271d6 <sys_mutex_unlock>
  39186. }
  39187. 8010ef4: bf00 nop
  39188. 8010ef6: bd80 pop {r7, pc}
  39189. 8010ef8: 240023d4 .word 0x240023d4
  39190. 8010efc: 24024414 .word 0x24024414
  39191. 08010f00 <sys_check_core_locking>:
  39192. void sys_check_core_locking(void){
  39193. 8010f00: b580 push {r7, lr}
  39194. 8010f02: b082 sub sp, #8
  39195. 8010f04: af00 add r7, sp, #0
  39196. /* Embedded systems should check we are NOT in an interrupt context here */
  39197. LWIP_ASSERT("Function called from interrupt context", (SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) == 0);
  39198. 8010f06: 4b15 ldr r3, [pc, #84] @ (8010f5c <sys_check_core_locking+0x5c>)
  39199. 8010f08: 685b ldr r3, [r3, #4]
  39200. 8010f0a: f3c3 0308 ubfx r3, r3, #0, #9
  39201. 8010f0e: 2b00 cmp r3, #0
  39202. 8010f10: d006 beq.n 8010f20 <sys_check_core_locking+0x20>
  39203. 8010f12: 4b13 ldr r3, [pc, #76] @ (8010f60 <sys_check_core_locking+0x60>)
  39204. 8010f14: f240 4216 movw r2, #1046 @ 0x416
  39205. 8010f18: 4912 ldr r1, [pc, #72] @ (8010f64 <sys_check_core_locking+0x64>)
  39206. 8010f1a: 4813 ldr r0, [pc, #76] @ (8010f68 <sys_check_core_locking+0x68>)
  39207. 8010f1c: f019 fc1e bl 802a75c <iprintf>
  39208. if (lwip_tcpip_thread_id != 0) {
  39209. 8010f20: 4b12 ldr r3, [pc, #72] @ (8010f6c <sys_check_core_locking+0x6c>)
  39210. 8010f22: 681b ldr r3, [r3, #0]
  39211. 8010f24: 2b00 cmp r3, #0
  39212. 8010f26: d014 beq.n 8010f52 <sys_check_core_locking+0x52>
  39213. osThreadId_t current_thread_id = osThreadGetId();
  39214. 8010f28: f000 fa08 bl 801133c <osThreadGetId>
  39215. 8010f2c: 6078 str r0, [r7, #4]
  39216. #if LWIP_TCPIP_CORE_LOCKING
  39217. LWIP_ASSERT("Function called without core lock", current_thread_id == lwip_core_lock_holder_thread_id);
  39218. 8010f2e: 4b10 ldr r3, [pc, #64] @ (8010f70 <sys_check_core_locking+0x70>)
  39219. 8010f30: 681b ldr r3, [r3, #0]
  39220. 8010f32: 687a ldr r2, [r7, #4]
  39221. 8010f34: 429a cmp r2, r3
  39222. 8010f36: d006 beq.n 8010f46 <sys_check_core_locking+0x46>
  39223. 8010f38: 4b09 ldr r3, [pc, #36] @ (8010f60 <sys_check_core_locking+0x60>)
  39224. 8010f3a: f240 421c movw r2, #1052 @ 0x41c
  39225. 8010f3e: 490d ldr r1, [pc, #52] @ (8010f74 <sys_check_core_locking+0x74>)
  39226. 8010f40: 4809 ldr r0, [pc, #36] @ (8010f68 <sys_check_core_locking+0x68>)
  39227. 8010f42: f019 fc0b bl 802a75c <iprintf>
  39228. /* ETH_CODE: to easily check that example has correct handling of core lock
  39229. * This will trigger breakpoint (__BKPT)
  39230. */
  39231. #warning Below check should be removed in production code
  39232. if(current_thread_id != lwip_core_lock_holder_thread_id) __BKPT(0);
  39233. 8010f46: 4b0a ldr r3, [pc, #40] @ (8010f70 <sys_check_core_locking+0x70>)
  39234. 8010f48: 681b ldr r3, [r3, #0]
  39235. 8010f4a: 687a ldr r2, [r7, #4]
  39236. 8010f4c: 429a cmp r2, r3
  39237. 8010f4e: d000 beq.n 8010f52 <sys_check_core_locking+0x52>
  39238. 8010f50: be00 bkpt 0x0000
  39239. #else /* LWIP_TCPIP_CORE_LOCKING */
  39240. LWIP_ASSERT("Function called from wrong thread", current_thread_id == lwip_tcpip_thread_id);
  39241. #endif /* LWIP_TCPIP_CORE_LOCKING */
  39242. LWIP_UNUSED_ARG(current_thread_id); /* for LWIP_NOASSERT */
  39243. }
  39244. }
  39245. 8010f52: bf00 nop
  39246. 8010f54: 3708 adds r7, #8
  39247. 8010f56: 46bd mov sp, r7
  39248. 8010f58: bd80 pop {r7, pc}
  39249. 8010f5a: bf00 nop
  39250. 8010f5c: e000ed00 .word 0xe000ed00
  39251. 8010f60: 0802d8e4 .word 0x0802d8e4
  39252. 8010f64: 0802d954 .word 0x0802d954
  39253. 8010f68: 0802d910 .word 0x0802d910
  39254. 8010f6c: 240023d8 .word 0x240023d8
  39255. 8010f70: 240023d4 .word 0x240023d4
  39256. 8010f74: 0802d97c .word 0x0802d97c
  39257. 08010f78 <sys_mark_tcpip_thread>:
  39258. void sys_mark_tcpip_thread(void){
  39259. 8010f78: b580 push {r7, lr}
  39260. 8010f7a: af00 add r7, sp, #0
  39261. lwip_tcpip_thread_id = osThreadGetId();
  39262. 8010f7c: f000 f9de bl 801133c <osThreadGetId>
  39263. 8010f80: 4603 mov r3, r0
  39264. 8010f82: 4a02 ldr r2, [pc, #8] @ (8010f8c <sys_mark_tcpip_thread+0x14>)
  39265. 8010f84: 6013 str r3, [r2, #0]
  39266. }
  39267. 8010f86: bf00 nop
  39268. 8010f88: bd80 pop {r7, pc}
  39269. 8010f8a: bf00 nop
  39270. 8010f8c: 240023d8 .word 0x240023d8
  39271. 08010f90 <dhcp_sm>:
  39272. #if USE_DHCP
  39273. void dhcp_sm(struct netif *netif, enum dhcp_states *state)
  39274. {
  39275. 8010f90: b580 push {r7, lr}
  39276. 8010f92: b08c sub sp, #48 @ 0x30
  39277. 8010f94: af00 add r7, sp, #0
  39278. 8010f96: 6078 str r0, [r7, #4]
  39279. 8010f98: 6039 str r1, [r7, #0]
  39280. ip_addr_t gw;
  39281. #ifdef DHCP_USER_LOGS
  39282. uint8_t iptxt[20];
  39283. #endif
  39284. switch(*state)
  39285. 8010f9a: 683b ldr r3, [r7, #0]
  39286. 8010f9c: 781b ldrb r3, [r3, #0]
  39287. 8010f9e: 2b03 cmp r3, #3
  39288. 8010fa0: d072 beq.n 8011088 <dhcp_sm+0xf8>
  39289. 8010fa2: 2b03 cmp r3, #3
  39290. 8010fa4: dc7b bgt.n 801109e <dhcp_sm+0x10e>
  39291. 8010fa6: 2b01 cmp r3, #1
  39292. 8010fa8: d002 beq.n 8010fb0 <dhcp_sm+0x20>
  39293. 8010faa: 2b02 cmp r3, #2
  39294. 8010fac: d00a beq.n 8010fc4 <dhcp_sm+0x34>
  39295. {
  39296. *state = DHCP_START;
  39297. }
  39298. break;
  39299. default:
  39300. break;
  39301. 8010fae: e076 b.n 801109e <dhcp_sm+0x10e>
  39302. *state = DHCP_WAIT_ADDRESS;
  39303. 8010fb0: 683b ldr r3, [r7, #0]
  39304. 8010fb2: 2202 movs r2, #2
  39305. 8010fb4: 701a strb r2, [r3, #0]
  39306. dhcp = (struct dhcp *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP);
  39307. 8010fb6: 687b ldr r3, [r7, #4]
  39308. 8010fb8: 6a5b ldr r3, [r3, #36] @ 0x24
  39309. 8010fba: 62fb str r3, [r7, #44] @ 0x2c
  39310. printf(" State: Looking for DHCP server ...\n");
  39311. 8010fbc: 483c ldr r0, [pc, #240] @ (80110b0 <dhcp_sm+0x120>)
  39312. 8010fbe: f019 fc35 bl 802a82c <puts>
  39313. break;
  39314. 8010fc2: e071 b.n 80110a8 <dhcp_sm+0x118>
  39315. if (dhcp_supplied_address(netif))
  39316. 8010fc4: 6878 ldr r0, [r7, #4]
  39317. 8010fc6: f013 fa5b bl 8024480 <dhcp_supplied_address>
  39318. 8010fca: 4603 mov r3, r0
  39319. 8010fcc: 2b00 cmp r3, #0
  39320. 8010fce: d015 beq.n 8010ffc <dhcp_sm+0x6c>
  39321. *state = DHCP_ADDRESS_ASSIGNED;
  39322. 8010fd0: 683b ldr r3, [r7, #0]
  39323. 8010fd2: 2203 movs r2, #3
  39324. 8010fd4: 701a strb r2, [r3, #0]
  39325. sprintf((char *)iptxt, "%s", ip4addr_ntoa((const ip4_addr_t *)&netif->ip_addr));
  39326. 8010fd6: 687b ldr r3, [r7, #4]
  39327. 8010fd8: 3304 adds r3, #4
  39328. 8010fda: 4618 mov r0, r3
  39329. 8010fdc: f014 ffe8 bl 8025fb0 <ip4addr_ntoa>
  39330. 8010fe0: 4602 mov r2, r0
  39331. 8010fe2: f107 030c add.w r3, r7, #12
  39332. 8010fe6: 4933 ldr r1, [pc, #204] @ (80110b4 <dhcp_sm+0x124>)
  39333. 8010fe8: 4618 mov r0, r3
  39334. 8010fea: f019 fc27 bl 802a83c <siprintf>
  39335. printf("IP address assigned by a DHCP server: %s\n", iptxt);
  39336. 8010fee: f107 030c add.w r3, r7, #12
  39337. 8010ff2: 4619 mov r1, r3
  39338. 8010ff4: 4830 ldr r0, [pc, #192] @ (80110b8 <dhcp_sm+0x128>)
  39339. 8010ff6: f019 fbb1 bl 802a75c <iprintf>
  39340. break;
  39341. 8010ffa: e052 b.n 80110a2 <dhcp_sm+0x112>
  39342. dhcp = (struct dhcp *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP);
  39343. 8010ffc: 687b ldr r3, [r7, #4]
  39344. 8010ffe: 6a5b ldr r3, [r3, #36] @ 0x24
  39345. 8011000: 62fb str r3, [r7, #44] @ 0x2c
  39346. if (dhcp->tries > MAX_DHCP_TRIES)
  39347. 8011002: 6afb ldr r3, [r7, #44] @ 0x2c
  39348. 8011004: 799b ldrb r3, [r3, #6]
  39349. 8011006: 2b04 cmp r3, #4
  39350. 8011008: d94b bls.n 80110a2 <dhcp_sm+0x112>
  39351. *state = DHCP_TIMEOUT;
  39352. 801100a: 683b ldr r3, [r7, #0]
  39353. 801100c: 2204 movs r2, #4
  39354. 801100e: 701a strb r2, [r3, #0]
  39355. LOCK_TCPIP_CORE();
  39356. 8011010: f7ff ff58 bl 8010ec4 <sys_lock_tcpip_core>
  39357. dhcp_stop(netif);
  39358. 8011014: 6878 ldr r0, [r7, #4]
  39359. 8011016: f012 fc8b bl 8023930 <dhcp_stop>
  39360. UNLOCK_TCPIP_CORE();
  39361. 801101a: f7ff ff63 bl 8010ee4 <sys_unlock_tcpip_core>
  39362. ipaddr_aton(STATIC_IP, &ipaddr);
  39363. 801101e: f107 0328 add.w r3, r7, #40 @ 0x28
  39364. 8011022: 4619 mov r1, r3
  39365. 8011024: 4825 ldr r0, [pc, #148] @ (80110bc <dhcp_sm+0x12c>)
  39366. 8011026: f014 fe99 bl 8025d5c <ip4addr_aton>
  39367. ipaddr_aton(STATIC_MASK, &netmask);
  39368. 801102a: f107 0324 add.w r3, r7, #36 @ 0x24
  39369. 801102e: 4619 mov r1, r3
  39370. 8011030: 4823 ldr r0, [pc, #140] @ (80110c0 <dhcp_sm+0x130>)
  39371. 8011032: f014 fe93 bl 8025d5c <ip4addr_aton>
  39372. ipaddr_aton(STATIC_GW, &gw);
  39373. 8011036: f107 0320 add.w r3, r7, #32
  39374. 801103a: 4619 mov r1, r3
  39375. 801103c: 4821 ldr r0, [pc, #132] @ (80110c4 <dhcp_sm+0x134>)
  39376. 801103e: f014 fe8d bl 8025d5c <ip4addr_aton>
  39377. LOCK_TCPIP_CORE();
  39378. 8011042: f7ff ff3f bl 8010ec4 <sys_lock_tcpip_core>
  39379. netif_set_addr(netif, ip_2_ip4(&ipaddr), ip_2_ip4(&netmask), ip_2_ip4(&gw));
  39380. 8011046: f107 0320 add.w r3, r7, #32
  39381. 801104a: f107 0224 add.w r2, r7, #36 @ 0x24
  39382. 801104e: f107 0128 add.w r1, r7, #40 @ 0x28
  39383. 8011052: 6878 ldr r0, [r7, #4]
  39384. 8011054: f009 fbc0 bl 801a7d8 <netif_set_addr>
  39385. UNLOCK_TCPIP_CORE();
  39386. 8011058: f7ff ff44 bl 8010ee4 <sys_unlock_tcpip_core>
  39387. sprintf((char *)iptxt, "%s", ip4addr_ntoa((const ip4_addr_t *)&netif->ip_addr));
  39388. 801105c: 687b ldr r3, [r7, #4]
  39389. 801105e: 3304 adds r3, #4
  39390. 8011060: 4618 mov r0, r3
  39391. 8011062: f014 ffa5 bl 8025fb0 <ip4addr_ntoa>
  39392. 8011066: 4602 mov r2, r0
  39393. 8011068: f107 030c add.w r3, r7, #12
  39394. 801106c: 4911 ldr r1, [pc, #68] @ (80110b4 <dhcp_sm+0x124>)
  39395. 801106e: 4618 mov r0, r3
  39396. 8011070: f019 fbe4 bl 802a83c <siprintf>
  39397. printf("DHCP Timeout !! \n");
  39398. 8011074: 4814 ldr r0, [pc, #80] @ (80110c8 <dhcp_sm+0x138>)
  39399. 8011076: f019 fbd9 bl 802a82c <puts>
  39400. printf("Static IP address: %s\n", iptxt);
  39401. 801107a: f107 030c add.w r3, r7, #12
  39402. 801107e: 4619 mov r1, r3
  39403. 8011080: 4812 ldr r0, [pc, #72] @ (80110cc <dhcp_sm+0x13c>)
  39404. 8011082: f019 fb6b bl 802a75c <iprintf>
  39405. break;
  39406. 8011086: e00c b.n 80110a2 <dhcp_sm+0x112>
  39407. dhcp = (struct dhcp *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP);
  39408. 8011088: 687b ldr r3, [r7, #4]
  39409. 801108a: 6a5b ldr r3, [r3, #36] @ 0x24
  39410. 801108c: 62fb str r3, [r7, #44] @ 0x2c
  39411. if(dhcp->state == 3)
  39412. 801108e: 6afb ldr r3, [r7, #44] @ 0x2c
  39413. 8011090: 795b ldrb r3, [r3, #5]
  39414. 8011092: 2b03 cmp r3, #3
  39415. 8011094: d107 bne.n 80110a6 <dhcp_sm+0x116>
  39416. *state = DHCP_START;
  39417. 8011096: 683b ldr r3, [r7, #0]
  39418. 8011098: 2201 movs r2, #1
  39419. 801109a: 701a strb r2, [r3, #0]
  39420. break;
  39421. 801109c: e003 b.n 80110a6 <dhcp_sm+0x116>
  39422. break;
  39423. 801109e: bf00 nop
  39424. 80110a0: e002 b.n 80110a8 <dhcp_sm+0x118>
  39425. break;
  39426. 80110a2: bf00 nop
  39427. 80110a4: e000 b.n 80110a8 <dhcp_sm+0x118>
  39428. break;
  39429. 80110a6: bf00 nop
  39430. }
  39431. }
  39432. 80110a8: bf00 nop
  39433. 80110aa: 3730 adds r7, #48 @ 0x30
  39434. 80110ac: 46bd mov sp, r7
  39435. 80110ae: bd80 pop {r7, pc}
  39436. 80110b0: 0802d9a0 .word 0x0802d9a0
  39437. 80110b4: 0802d9c8 .word 0x0802d9c8
  39438. 80110b8: 0802d9cc .word 0x0802d9cc
  39439. 80110bc: 0802d9f8 .word 0x0802d9f8
  39440. 80110c0: 0802da08 .word 0x0802da08
  39441. 80110c4: 0802da18 .word 0x0802da18
  39442. 80110c8: 0802da24 .word 0x0802da24
  39443. 80110cc: 0802da38 .word 0x0802da38
  39444. 080110d0 <__NVIC_SetPriority>:
  39445. {
  39446. 80110d0: b480 push {r7}
  39447. 80110d2: b083 sub sp, #12
  39448. 80110d4: af00 add r7, sp, #0
  39449. 80110d6: 4603 mov r3, r0
  39450. 80110d8: 6039 str r1, [r7, #0]
  39451. 80110da: 80fb strh r3, [r7, #6]
  39452. if ((int32_t)(IRQn) >= 0)
  39453. 80110dc: f9b7 3006 ldrsh.w r3, [r7, #6]
  39454. 80110e0: 2b00 cmp r3, #0
  39455. 80110e2: db0a blt.n 80110fa <__NVIC_SetPriority+0x2a>
  39456. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  39457. 80110e4: 683b ldr r3, [r7, #0]
  39458. 80110e6: b2da uxtb r2, r3
  39459. 80110e8: 490c ldr r1, [pc, #48] @ (801111c <__NVIC_SetPriority+0x4c>)
  39460. 80110ea: f9b7 3006 ldrsh.w r3, [r7, #6]
  39461. 80110ee: 0112 lsls r2, r2, #4
  39462. 80110f0: b2d2 uxtb r2, r2
  39463. 80110f2: 440b add r3, r1
  39464. 80110f4: f883 2300 strb.w r2, [r3, #768] @ 0x300
  39465. }
  39466. 80110f8: e00a b.n 8011110 <__NVIC_SetPriority+0x40>
  39467. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  39468. 80110fa: 683b ldr r3, [r7, #0]
  39469. 80110fc: b2da uxtb r2, r3
  39470. 80110fe: 4908 ldr r1, [pc, #32] @ (8011120 <__NVIC_SetPriority+0x50>)
  39471. 8011100: 88fb ldrh r3, [r7, #6]
  39472. 8011102: f003 030f and.w r3, r3, #15
  39473. 8011106: 3b04 subs r3, #4
  39474. 8011108: 0112 lsls r2, r2, #4
  39475. 801110a: b2d2 uxtb r2, r2
  39476. 801110c: 440b add r3, r1
  39477. 801110e: 761a strb r2, [r3, #24]
  39478. }
  39479. 8011110: bf00 nop
  39480. 8011112: 370c adds r7, #12
  39481. 8011114: 46bd mov sp, r7
  39482. 8011116: f85d 7b04 ldr.w r7, [sp], #4
  39483. 801111a: 4770 bx lr
  39484. 801111c: e000e100 .word 0xe000e100
  39485. 8011120: e000ed00 .word 0xe000ed00
  39486. 08011124 <SysTick_Handler>:
  39487. /*
  39488. SysTick handler implementation that also clears overflow flag.
  39489. */
  39490. #if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0)
  39491. void SysTick_Handler (void) {
  39492. 8011124: b580 push {r7, lr}
  39493. 8011126: af00 add r7, sp, #0
  39494. /* Clear overflow flag */
  39495. SysTick->CTRL;
  39496. 8011128: 4b05 ldr r3, [pc, #20] @ (8011140 <SysTick_Handler+0x1c>)
  39497. 801112a: 681b ldr r3, [r3, #0]
  39498. if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) {
  39499. 801112c: f003 fa3c bl 80145a8 <xTaskGetSchedulerState>
  39500. 8011130: 4603 mov r3, r0
  39501. 8011132: 2b01 cmp r3, #1
  39502. 8011134: d001 beq.n 801113a <SysTick_Handler+0x16>
  39503. /* Call tick handler */
  39504. xPortSysTickHandler();
  39505. 8011136: f004 fc4f bl 80159d8 <xPortSysTickHandler>
  39506. }
  39507. }
  39508. 801113a: bf00 nop
  39509. 801113c: bd80 pop {r7, pc}
  39510. 801113e: bf00 nop
  39511. 8011140: e000e010 .word 0xe000e010
  39512. 08011144 <SVC_Setup>:
  39513. #endif /* SysTick */
  39514. /*
  39515. Setup SVC to reset value.
  39516. */
  39517. __STATIC_INLINE void SVC_Setup (void) {
  39518. 8011144: b580 push {r7, lr}
  39519. 8011146: af00 add r7, sp, #0
  39520. #if (__ARM_ARCH_7A__ == 0U)
  39521. /* Service Call interrupt might be configured before kernel start */
  39522. /* and when its priority is lower or equal to BASEPRI, svc intruction */
  39523. /* causes a Hard Fault. */
  39524. NVIC_SetPriority (SVCall_IRQ_NBR, 0U);
  39525. 8011148: 2100 movs r1, #0
  39526. 801114a: f06f 0004 mvn.w r0, #4
  39527. 801114e: f7ff ffbf bl 80110d0 <__NVIC_SetPriority>
  39528. #endif
  39529. }
  39530. 8011152: bf00 nop
  39531. 8011154: bd80 pop {r7, pc}
  39532. ...
  39533. 08011158 <osKernelInitialize>:
  39534. static uint32_t OS_Tick_GetOverflow (void);
  39535. /* Get OS Tick interval */
  39536. static uint32_t OS_Tick_GetInterval (void);
  39537. /*---------------------------------------------------------------------------*/
  39538. osStatus_t osKernelInitialize (void) {
  39539. 8011158: b480 push {r7}
  39540. 801115a: b083 sub sp, #12
  39541. 801115c: af00 add r7, sp, #0
  39542. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39543. 801115e: f3ef 8305 mrs r3, IPSR
  39544. 8011162: 603b str r3, [r7, #0]
  39545. return(result);
  39546. 8011164: 683b ldr r3, [r7, #0]
  39547. osStatus_t stat;
  39548. if (IS_IRQ()) {
  39549. 8011166: 2b00 cmp r3, #0
  39550. 8011168: d003 beq.n 8011172 <osKernelInitialize+0x1a>
  39551. stat = osErrorISR;
  39552. 801116a: f06f 0305 mvn.w r3, #5
  39553. 801116e: 607b str r3, [r7, #4]
  39554. 8011170: e00c b.n 801118c <osKernelInitialize+0x34>
  39555. }
  39556. else {
  39557. if (KernelState == osKernelInactive) {
  39558. 8011172: 4b0a ldr r3, [pc, #40] @ (801119c <osKernelInitialize+0x44>)
  39559. 8011174: 681b ldr r3, [r3, #0]
  39560. 8011176: 2b00 cmp r3, #0
  39561. 8011178: d105 bne.n 8011186 <osKernelInitialize+0x2e>
  39562. EvrFreeRTOSSetup(0U);
  39563. #endif
  39564. #if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1)
  39565. vPortDefineHeapRegions (configHEAP_5_REGIONS);
  39566. #endif
  39567. KernelState = osKernelReady;
  39568. 801117a: 4b08 ldr r3, [pc, #32] @ (801119c <osKernelInitialize+0x44>)
  39569. 801117c: 2201 movs r2, #1
  39570. 801117e: 601a str r2, [r3, #0]
  39571. stat = osOK;
  39572. 8011180: 2300 movs r3, #0
  39573. 8011182: 607b str r3, [r7, #4]
  39574. 8011184: e002 b.n 801118c <osKernelInitialize+0x34>
  39575. } else {
  39576. stat = osError;
  39577. 8011186: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  39578. 801118a: 607b str r3, [r7, #4]
  39579. }
  39580. }
  39581. return (stat);
  39582. 801118c: 687b ldr r3, [r7, #4]
  39583. }
  39584. 801118e: 4618 mov r0, r3
  39585. 8011190: 370c adds r7, #12
  39586. 8011192: 46bd mov sp, r7
  39587. 8011194: f85d 7b04 ldr.w r7, [sp], #4
  39588. 8011198: 4770 bx lr
  39589. 801119a: bf00 nop
  39590. 801119c: 240023dc .word 0x240023dc
  39591. 080111a0 <osKernelStart>:
  39592. }
  39593. return (state);
  39594. }
  39595. osStatus_t osKernelStart (void) {
  39596. 80111a0: b580 push {r7, lr}
  39597. 80111a2: b082 sub sp, #8
  39598. 80111a4: af00 add r7, sp, #0
  39599. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39600. 80111a6: f3ef 8305 mrs r3, IPSR
  39601. 80111aa: 603b str r3, [r7, #0]
  39602. return(result);
  39603. 80111ac: 683b ldr r3, [r7, #0]
  39604. osStatus_t stat;
  39605. if (IS_IRQ()) {
  39606. 80111ae: 2b00 cmp r3, #0
  39607. 80111b0: d003 beq.n 80111ba <osKernelStart+0x1a>
  39608. stat = osErrorISR;
  39609. 80111b2: f06f 0305 mvn.w r3, #5
  39610. 80111b6: 607b str r3, [r7, #4]
  39611. 80111b8: e010 b.n 80111dc <osKernelStart+0x3c>
  39612. }
  39613. else {
  39614. if (KernelState == osKernelReady) {
  39615. 80111ba: 4b0b ldr r3, [pc, #44] @ (80111e8 <osKernelStart+0x48>)
  39616. 80111bc: 681b ldr r3, [r3, #0]
  39617. 80111be: 2b01 cmp r3, #1
  39618. 80111c0: d109 bne.n 80111d6 <osKernelStart+0x36>
  39619. /* Ensure SVC priority is at the reset value */
  39620. SVC_Setup();
  39621. 80111c2: f7ff ffbf bl 8011144 <SVC_Setup>
  39622. /* Change state to enable IRQ masking check */
  39623. KernelState = osKernelRunning;
  39624. 80111c6: 4b08 ldr r3, [pc, #32] @ (80111e8 <osKernelStart+0x48>)
  39625. 80111c8: 2202 movs r2, #2
  39626. 80111ca: 601a str r2, [r3, #0]
  39627. /* Start the kernel scheduler */
  39628. vTaskStartScheduler();
  39629. 80111cc: f002 fd30 bl 8013c30 <vTaskStartScheduler>
  39630. stat = osOK;
  39631. 80111d0: 2300 movs r3, #0
  39632. 80111d2: 607b str r3, [r7, #4]
  39633. 80111d4: e002 b.n 80111dc <osKernelStart+0x3c>
  39634. } else {
  39635. stat = osError;
  39636. 80111d6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  39637. 80111da: 607b str r3, [r7, #4]
  39638. }
  39639. }
  39640. return (stat);
  39641. 80111dc: 687b ldr r3, [r7, #4]
  39642. }
  39643. 80111de: 4618 mov r0, r3
  39644. 80111e0: 3708 adds r7, #8
  39645. 80111e2: 46bd mov sp, r7
  39646. 80111e4: bd80 pop {r7, pc}
  39647. 80111e6: bf00 nop
  39648. 80111e8: 240023dc .word 0x240023dc
  39649. 080111ec <osKernelGetTickCount>:
  39650. }
  39651. return (lock);
  39652. }
  39653. uint32_t osKernelGetTickCount (void) {
  39654. 80111ec: b580 push {r7, lr}
  39655. 80111ee: b082 sub sp, #8
  39656. 80111f0: af00 add r7, sp, #0
  39657. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39658. 80111f2: f3ef 8305 mrs r3, IPSR
  39659. 80111f6: 603b str r3, [r7, #0]
  39660. return(result);
  39661. 80111f8: 683b ldr r3, [r7, #0]
  39662. TickType_t ticks;
  39663. if (IS_IRQ()) {
  39664. 80111fa: 2b00 cmp r3, #0
  39665. 80111fc: d003 beq.n 8011206 <osKernelGetTickCount+0x1a>
  39666. ticks = xTaskGetTickCountFromISR();
  39667. 80111fe: f002 fe43 bl 8013e88 <xTaskGetTickCountFromISR>
  39668. 8011202: 6078 str r0, [r7, #4]
  39669. 8011204: e002 b.n 801120c <osKernelGetTickCount+0x20>
  39670. } else {
  39671. ticks = xTaskGetTickCount();
  39672. 8011206: f002 fe2f bl 8013e68 <xTaskGetTickCount>
  39673. 801120a: 6078 str r0, [r7, #4]
  39674. }
  39675. return (ticks);
  39676. 801120c: 687b ldr r3, [r7, #4]
  39677. }
  39678. 801120e: 4618 mov r0, r3
  39679. 8011210: 3708 adds r7, #8
  39680. 8011212: 46bd mov sp, r7
  39681. 8011214: bd80 pop {r7, pc}
  39682. 08011216 <osThreadNew>:
  39683. return (configCPU_CLOCK_HZ);
  39684. }
  39685. /*---------------------------------------------------------------------------*/
  39686. osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) {
  39687. 8011216: b580 push {r7, lr}
  39688. 8011218: b08e sub sp, #56 @ 0x38
  39689. 801121a: af04 add r7, sp, #16
  39690. 801121c: 60f8 str r0, [r7, #12]
  39691. 801121e: 60b9 str r1, [r7, #8]
  39692. 8011220: 607a str r2, [r7, #4]
  39693. uint32_t stack;
  39694. TaskHandle_t hTask;
  39695. UBaseType_t prio;
  39696. int32_t mem;
  39697. hTask = NULL;
  39698. 8011222: 2300 movs r3, #0
  39699. 8011224: 613b str r3, [r7, #16]
  39700. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39701. 8011226: f3ef 8305 mrs r3, IPSR
  39702. 801122a: 617b str r3, [r7, #20]
  39703. return(result);
  39704. 801122c: 697b ldr r3, [r7, #20]
  39705. if (!IS_IRQ() && (func != NULL)) {
  39706. 801122e: 2b00 cmp r3, #0
  39707. 8011230: d17f bne.n 8011332 <osThreadNew+0x11c>
  39708. 8011232: 68fb ldr r3, [r7, #12]
  39709. 8011234: 2b00 cmp r3, #0
  39710. 8011236: d07c beq.n 8011332 <osThreadNew+0x11c>
  39711. stack = configMINIMAL_STACK_SIZE;
  39712. 8011238: f44f 7300 mov.w r3, #512 @ 0x200
  39713. 801123c: 623b str r3, [r7, #32]
  39714. prio = (UBaseType_t)osPriorityNormal;
  39715. 801123e: 2318 movs r3, #24
  39716. 8011240: 61fb str r3, [r7, #28]
  39717. name = NULL;
  39718. 8011242: 2300 movs r3, #0
  39719. 8011244: 627b str r3, [r7, #36] @ 0x24
  39720. mem = -1;
  39721. 8011246: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  39722. 801124a: 61bb str r3, [r7, #24]
  39723. if (attr != NULL) {
  39724. 801124c: 687b ldr r3, [r7, #4]
  39725. 801124e: 2b00 cmp r3, #0
  39726. 8011250: d045 beq.n 80112de <osThreadNew+0xc8>
  39727. if (attr->name != NULL) {
  39728. 8011252: 687b ldr r3, [r7, #4]
  39729. 8011254: 681b ldr r3, [r3, #0]
  39730. 8011256: 2b00 cmp r3, #0
  39731. 8011258: d002 beq.n 8011260 <osThreadNew+0x4a>
  39732. name = attr->name;
  39733. 801125a: 687b ldr r3, [r7, #4]
  39734. 801125c: 681b ldr r3, [r3, #0]
  39735. 801125e: 627b str r3, [r7, #36] @ 0x24
  39736. }
  39737. if (attr->priority != osPriorityNone) {
  39738. 8011260: 687b ldr r3, [r7, #4]
  39739. 8011262: 699b ldr r3, [r3, #24]
  39740. 8011264: 2b00 cmp r3, #0
  39741. 8011266: d002 beq.n 801126e <osThreadNew+0x58>
  39742. prio = (UBaseType_t)attr->priority;
  39743. 8011268: 687b ldr r3, [r7, #4]
  39744. 801126a: 699b ldr r3, [r3, #24]
  39745. 801126c: 61fb str r3, [r7, #28]
  39746. }
  39747. if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) {
  39748. 801126e: 69fb ldr r3, [r7, #28]
  39749. 8011270: 2b00 cmp r3, #0
  39750. 8011272: d008 beq.n 8011286 <osThreadNew+0x70>
  39751. 8011274: 69fb ldr r3, [r7, #28]
  39752. 8011276: 2b38 cmp r3, #56 @ 0x38
  39753. 8011278: d805 bhi.n 8011286 <osThreadNew+0x70>
  39754. 801127a: 687b ldr r3, [r7, #4]
  39755. 801127c: 685b ldr r3, [r3, #4]
  39756. 801127e: f003 0301 and.w r3, r3, #1
  39757. 8011282: 2b00 cmp r3, #0
  39758. 8011284: d001 beq.n 801128a <osThreadNew+0x74>
  39759. return (NULL);
  39760. 8011286: 2300 movs r3, #0
  39761. 8011288: e054 b.n 8011334 <osThreadNew+0x11e>
  39762. }
  39763. if (attr->stack_size > 0U) {
  39764. 801128a: 687b ldr r3, [r7, #4]
  39765. 801128c: 695b ldr r3, [r3, #20]
  39766. 801128e: 2b00 cmp r3, #0
  39767. 8011290: d003 beq.n 801129a <osThreadNew+0x84>
  39768. /* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */
  39769. /* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */
  39770. stack = attr->stack_size / sizeof(StackType_t);
  39771. 8011292: 687b ldr r3, [r7, #4]
  39772. 8011294: 695b ldr r3, [r3, #20]
  39773. 8011296: 089b lsrs r3, r3, #2
  39774. 8011298: 623b str r3, [r7, #32]
  39775. }
  39776. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  39777. 801129a: 687b ldr r3, [r7, #4]
  39778. 801129c: 689b ldr r3, [r3, #8]
  39779. 801129e: 2b00 cmp r3, #0
  39780. 80112a0: d00e beq.n 80112c0 <osThreadNew+0xaa>
  39781. 80112a2: 687b ldr r3, [r7, #4]
  39782. 80112a4: 68db ldr r3, [r3, #12]
  39783. 80112a6: 2ba7 cmp r3, #167 @ 0xa7
  39784. 80112a8: d90a bls.n 80112c0 <osThreadNew+0xaa>
  39785. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  39786. 80112aa: 687b ldr r3, [r7, #4]
  39787. 80112ac: 691b ldr r3, [r3, #16]
  39788. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  39789. 80112ae: 2b00 cmp r3, #0
  39790. 80112b0: d006 beq.n 80112c0 <osThreadNew+0xaa>
  39791. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  39792. 80112b2: 687b ldr r3, [r7, #4]
  39793. 80112b4: 695b ldr r3, [r3, #20]
  39794. 80112b6: 2b00 cmp r3, #0
  39795. 80112b8: d002 beq.n 80112c0 <osThreadNew+0xaa>
  39796. mem = 1;
  39797. 80112ba: 2301 movs r3, #1
  39798. 80112bc: 61bb str r3, [r7, #24]
  39799. 80112be: e010 b.n 80112e2 <osThreadNew+0xcc>
  39800. }
  39801. else {
  39802. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) {
  39803. 80112c0: 687b ldr r3, [r7, #4]
  39804. 80112c2: 689b ldr r3, [r3, #8]
  39805. 80112c4: 2b00 cmp r3, #0
  39806. 80112c6: d10c bne.n 80112e2 <osThreadNew+0xcc>
  39807. 80112c8: 687b ldr r3, [r7, #4]
  39808. 80112ca: 68db ldr r3, [r3, #12]
  39809. 80112cc: 2b00 cmp r3, #0
  39810. 80112ce: d108 bne.n 80112e2 <osThreadNew+0xcc>
  39811. 80112d0: 687b ldr r3, [r7, #4]
  39812. 80112d2: 691b ldr r3, [r3, #16]
  39813. 80112d4: 2b00 cmp r3, #0
  39814. 80112d6: d104 bne.n 80112e2 <osThreadNew+0xcc>
  39815. mem = 0;
  39816. 80112d8: 2300 movs r3, #0
  39817. 80112da: 61bb str r3, [r7, #24]
  39818. 80112dc: e001 b.n 80112e2 <osThreadNew+0xcc>
  39819. }
  39820. }
  39821. }
  39822. else {
  39823. mem = 0;
  39824. 80112de: 2300 movs r3, #0
  39825. 80112e0: 61bb str r3, [r7, #24]
  39826. }
  39827. if (mem == 1) {
  39828. 80112e2: 69bb ldr r3, [r7, #24]
  39829. 80112e4: 2b01 cmp r3, #1
  39830. 80112e6: d110 bne.n 801130a <osThreadNew+0xf4>
  39831. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  39832. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  39833. 80112e8: 687b ldr r3, [r7, #4]
  39834. 80112ea: 691b ldr r3, [r3, #16]
  39835. (StaticTask_t *)attr->cb_mem);
  39836. 80112ec: 687a ldr r2, [r7, #4]
  39837. 80112ee: 6892 ldr r2, [r2, #8]
  39838. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  39839. 80112f0: 9202 str r2, [sp, #8]
  39840. 80112f2: 9301 str r3, [sp, #4]
  39841. 80112f4: 69fb ldr r3, [r7, #28]
  39842. 80112f6: 9300 str r3, [sp, #0]
  39843. 80112f8: 68bb ldr r3, [r7, #8]
  39844. 80112fa: 6a3a ldr r2, [r7, #32]
  39845. 80112fc: 6a79 ldr r1, [r7, #36] @ 0x24
  39846. 80112fe: 68f8 ldr r0, [r7, #12]
  39847. 8011300: f002 faa2 bl 8013848 <xTaskCreateStatic>
  39848. 8011304: 4603 mov r3, r0
  39849. 8011306: 613b str r3, [r7, #16]
  39850. 8011308: e013 b.n 8011332 <osThreadNew+0x11c>
  39851. #endif
  39852. }
  39853. else {
  39854. if (mem == 0) {
  39855. 801130a: 69bb ldr r3, [r7, #24]
  39856. 801130c: 2b00 cmp r3, #0
  39857. 801130e: d110 bne.n 8011332 <osThreadNew+0x11c>
  39858. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  39859. if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) {
  39860. 8011310: 6a3b ldr r3, [r7, #32]
  39861. 8011312: b29a uxth r2, r3
  39862. 8011314: f107 0310 add.w r3, r7, #16
  39863. 8011318: 9301 str r3, [sp, #4]
  39864. 801131a: 69fb ldr r3, [r7, #28]
  39865. 801131c: 9300 str r3, [sp, #0]
  39866. 801131e: 68bb ldr r3, [r7, #8]
  39867. 8011320: 6a79 ldr r1, [r7, #36] @ 0x24
  39868. 8011322: 68f8 ldr r0, [r7, #12]
  39869. 8011324: f002 faf0 bl 8013908 <xTaskCreate>
  39870. 8011328: 4603 mov r3, r0
  39871. 801132a: 2b01 cmp r3, #1
  39872. 801132c: d001 beq.n 8011332 <osThreadNew+0x11c>
  39873. hTask = NULL;
  39874. 801132e: 2300 movs r3, #0
  39875. 8011330: 613b str r3, [r7, #16]
  39876. #endif
  39877. }
  39878. }
  39879. }
  39880. return ((osThreadId_t)hTask);
  39881. 8011332: 693b ldr r3, [r7, #16]
  39882. }
  39883. 8011334: 4618 mov r0, r3
  39884. 8011336: 3728 adds r7, #40 @ 0x28
  39885. 8011338: 46bd mov sp, r7
  39886. 801133a: bd80 pop {r7, pc}
  39887. 0801133c <osThreadGetId>:
  39888. }
  39889. return (name);
  39890. }
  39891. osThreadId_t osThreadGetId (void) {
  39892. 801133c: b580 push {r7, lr}
  39893. 801133e: b082 sub sp, #8
  39894. 8011340: af00 add r7, sp, #0
  39895. osThreadId_t id;
  39896. id = (osThreadId_t)xTaskGetCurrentTaskHandle();
  39897. 8011342: f003 f921 bl 8014588 <xTaskGetCurrentTaskHandle>
  39898. 8011346: 6078 str r0, [r7, #4]
  39899. return (id);
  39900. 8011348: 687b ldr r3, [r7, #4]
  39901. }
  39902. 801134a: 4618 mov r0, r3
  39903. 801134c: 3708 adds r7, #8
  39904. 801134e: 46bd mov sp, r7
  39905. 8011350: bd80 pop {r7, pc}
  39906. 08011352 <osDelay>:
  39907. /* Return flags before clearing */
  39908. return (rflags);
  39909. }
  39910. #endif /* (configUSE_OS2_THREAD_FLAGS == 1) */
  39911. osStatus_t osDelay (uint32_t ticks) {
  39912. 8011352: b580 push {r7, lr}
  39913. 8011354: b084 sub sp, #16
  39914. 8011356: af00 add r7, sp, #0
  39915. 8011358: 6078 str r0, [r7, #4]
  39916. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39917. 801135a: f3ef 8305 mrs r3, IPSR
  39918. 801135e: 60bb str r3, [r7, #8]
  39919. return(result);
  39920. 8011360: 68bb ldr r3, [r7, #8]
  39921. osStatus_t stat;
  39922. if (IS_IRQ()) {
  39923. 8011362: 2b00 cmp r3, #0
  39924. 8011364: d003 beq.n 801136e <osDelay+0x1c>
  39925. stat = osErrorISR;
  39926. 8011366: f06f 0305 mvn.w r3, #5
  39927. 801136a: 60fb str r3, [r7, #12]
  39928. 801136c: e007 b.n 801137e <osDelay+0x2c>
  39929. }
  39930. else {
  39931. stat = osOK;
  39932. 801136e: 2300 movs r3, #0
  39933. 8011370: 60fb str r3, [r7, #12]
  39934. if (ticks != 0U) {
  39935. 8011372: 687b ldr r3, [r7, #4]
  39936. 8011374: 2b00 cmp r3, #0
  39937. 8011376: d002 beq.n 801137e <osDelay+0x2c>
  39938. vTaskDelay(ticks);
  39939. 8011378: 6878 ldr r0, [r7, #4]
  39940. 801137a: f002 fc23 bl 8013bc4 <vTaskDelay>
  39941. }
  39942. }
  39943. return (stat);
  39944. 801137e: 68fb ldr r3, [r7, #12]
  39945. }
  39946. 8011380: 4618 mov r0, r3
  39947. 8011382: 3710 adds r7, #16
  39948. 8011384: 46bd mov sp, r7
  39949. 8011386: bd80 pop {r7, pc}
  39950. 08011388 <TimerCallback>:
  39951. }
  39952. /*---------------------------------------------------------------------------*/
  39953. #if (configUSE_OS2_TIMER == 1)
  39954. static void TimerCallback (TimerHandle_t hTimer) {
  39955. 8011388: b580 push {r7, lr}
  39956. 801138a: b084 sub sp, #16
  39957. 801138c: af00 add r7, sp, #0
  39958. 801138e: 6078 str r0, [r7, #4]
  39959. TimerCallback_t *callb;
  39960. callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer);
  39961. 8011390: 6878 ldr r0, [r7, #4]
  39962. 8011392: f004 f93b bl 801560c <pvTimerGetTimerID>
  39963. 8011396: 60f8 str r0, [r7, #12]
  39964. if (callb != NULL) {
  39965. 8011398: 68fb ldr r3, [r7, #12]
  39966. 801139a: 2b00 cmp r3, #0
  39967. 801139c: d005 beq.n 80113aa <TimerCallback+0x22>
  39968. callb->func (callb->arg);
  39969. 801139e: 68fb ldr r3, [r7, #12]
  39970. 80113a0: 681b ldr r3, [r3, #0]
  39971. 80113a2: 68fa ldr r2, [r7, #12]
  39972. 80113a4: 6852 ldr r2, [r2, #4]
  39973. 80113a6: 4610 mov r0, r2
  39974. 80113a8: 4798 blx r3
  39975. }
  39976. }
  39977. 80113aa: bf00 nop
  39978. 80113ac: 3710 adds r7, #16
  39979. 80113ae: 46bd mov sp, r7
  39980. 80113b0: bd80 pop {r7, pc}
  39981. ...
  39982. 080113b4 <osTimerNew>:
  39983. osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr) {
  39984. 80113b4: b580 push {r7, lr}
  39985. 80113b6: b08c sub sp, #48 @ 0x30
  39986. 80113b8: af02 add r7, sp, #8
  39987. 80113ba: 60f8 str r0, [r7, #12]
  39988. 80113bc: 607a str r2, [r7, #4]
  39989. 80113be: 603b str r3, [r7, #0]
  39990. 80113c0: 460b mov r3, r1
  39991. 80113c2: 72fb strb r3, [r7, #11]
  39992. TimerHandle_t hTimer;
  39993. TimerCallback_t *callb;
  39994. UBaseType_t reload;
  39995. int32_t mem;
  39996. hTimer = NULL;
  39997. 80113c4: 2300 movs r3, #0
  39998. 80113c6: 623b str r3, [r7, #32]
  39999. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40000. 80113c8: f3ef 8305 mrs r3, IPSR
  40001. 80113cc: 613b str r3, [r7, #16]
  40002. return(result);
  40003. 80113ce: 693b ldr r3, [r7, #16]
  40004. if (!IS_IRQ() && (func != NULL)) {
  40005. 80113d0: 2b00 cmp r3, #0
  40006. 80113d2: d163 bne.n 801149c <osTimerNew+0xe8>
  40007. 80113d4: 68fb ldr r3, [r7, #12]
  40008. 80113d6: 2b00 cmp r3, #0
  40009. 80113d8: d060 beq.n 801149c <osTimerNew+0xe8>
  40010. /* Allocate memory to store callback function and argument */
  40011. callb = pvPortMalloc (sizeof(TimerCallback_t));
  40012. 80113da: 2008 movs r0, #8
  40013. 80113dc: f004 fb8e bl 8015afc <pvPortMalloc>
  40014. 80113e0: 6178 str r0, [r7, #20]
  40015. if (callb != NULL) {
  40016. 80113e2: 697b ldr r3, [r7, #20]
  40017. 80113e4: 2b00 cmp r3, #0
  40018. 80113e6: d059 beq.n 801149c <osTimerNew+0xe8>
  40019. callb->func = func;
  40020. 80113e8: 697b ldr r3, [r7, #20]
  40021. 80113ea: 68fa ldr r2, [r7, #12]
  40022. 80113ec: 601a str r2, [r3, #0]
  40023. callb->arg = argument;
  40024. 80113ee: 697b ldr r3, [r7, #20]
  40025. 80113f0: 687a ldr r2, [r7, #4]
  40026. 80113f2: 605a str r2, [r3, #4]
  40027. if (type == osTimerOnce) {
  40028. 80113f4: 7afb ldrb r3, [r7, #11]
  40029. 80113f6: 2b00 cmp r3, #0
  40030. 80113f8: d102 bne.n 8011400 <osTimerNew+0x4c>
  40031. reload = pdFALSE;
  40032. 80113fa: 2300 movs r3, #0
  40033. 80113fc: 61fb str r3, [r7, #28]
  40034. 80113fe: e001 b.n 8011404 <osTimerNew+0x50>
  40035. } else {
  40036. reload = pdTRUE;
  40037. 8011400: 2301 movs r3, #1
  40038. 8011402: 61fb str r3, [r7, #28]
  40039. }
  40040. mem = -1;
  40041. 8011404: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  40042. 8011408: 61bb str r3, [r7, #24]
  40043. name = NULL;
  40044. 801140a: 2300 movs r3, #0
  40045. 801140c: 627b str r3, [r7, #36] @ 0x24
  40046. if (attr != NULL) {
  40047. 801140e: 683b ldr r3, [r7, #0]
  40048. 8011410: 2b00 cmp r3, #0
  40049. 8011412: d01c beq.n 801144e <osTimerNew+0x9a>
  40050. if (attr->name != NULL) {
  40051. 8011414: 683b ldr r3, [r7, #0]
  40052. 8011416: 681b ldr r3, [r3, #0]
  40053. 8011418: 2b00 cmp r3, #0
  40054. 801141a: d002 beq.n 8011422 <osTimerNew+0x6e>
  40055. name = attr->name;
  40056. 801141c: 683b ldr r3, [r7, #0]
  40057. 801141e: 681b ldr r3, [r3, #0]
  40058. 8011420: 627b str r3, [r7, #36] @ 0x24
  40059. }
  40060. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTimer_t))) {
  40061. 8011422: 683b ldr r3, [r7, #0]
  40062. 8011424: 689b ldr r3, [r3, #8]
  40063. 8011426: 2b00 cmp r3, #0
  40064. 8011428: d006 beq.n 8011438 <osTimerNew+0x84>
  40065. 801142a: 683b ldr r3, [r7, #0]
  40066. 801142c: 68db ldr r3, [r3, #12]
  40067. 801142e: 2b2b cmp r3, #43 @ 0x2b
  40068. 8011430: d902 bls.n 8011438 <osTimerNew+0x84>
  40069. mem = 1;
  40070. 8011432: 2301 movs r3, #1
  40071. 8011434: 61bb str r3, [r7, #24]
  40072. 8011436: e00c b.n 8011452 <osTimerNew+0x9e>
  40073. }
  40074. else {
  40075. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  40076. 8011438: 683b ldr r3, [r7, #0]
  40077. 801143a: 689b ldr r3, [r3, #8]
  40078. 801143c: 2b00 cmp r3, #0
  40079. 801143e: d108 bne.n 8011452 <osTimerNew+0x9e>
  40080. 8011440: 683b ldr r3, [r7, #0]
  40081. 8011442: 68db ldr r3, [r3, #12]
  40082. 8011444: 2b00 cmp r3, #0
  40083. 8011446: d104 bne.n 8011452 <osTimerNew+0x9e>
  40084. mem = 0;
  40085. 8011448: 2300 movs r3, #0
  40086. 801144a: 61bb str r3, [r7, #24]
  40087. 801144c: e001 b.n 8011452 <osTimerNew+0x9e>
  40088. }
  40089. }
  40090. }
  40091. else {
  40092. mem = 0;
  40093. 801144e: 2300 movs r3, #0
  40094. 8011450: 61bb str r3, [r7, #24]
  40095. }
  40096. if (mem == 1) {
  40097. 8011452: 69bb ldr r3, [r7, #24]
  40098. 8011454: 2b01 cmp r3, #1
  40099. 8011456: d10c bne.n 8011472 <osTimerNew+0xbe>
  40100. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  40101. hTimer = xTimerCreateStatic (name, 1, reload, callb, TimerCallback, (StaticTimer_t *)attr->cb_mem);
  40102. 8011458: 683b ldr r3, [r7, #0]
  40103. 801145a: 689b ldr r3, [r3, #8]
  40104. 801145c: 9301 str r3, [sp, #4]
  40105. 801145e: 4b12 ldr r3, [pc, #72] @ (80114a8 <osTimerNew+0xf4>)
  40106. 8011460: 9300 str r3, [sp, #0]
  40107. 8011462: 697b ldr r3, [r7, #20]
  40108. 8011464: 69fa ldr r2, [r7, #28]
  40109. 8011466: 2101 movs r1, #1
  40110. 8011468: 6a78 ldr r0, [r7, #36] @ 0x24
  40111. 801146a: f003 fd18 bl 8014e9e <xTimerCreateStatic>
  40112. 801146e: 6238 str r0, [r7, #32]
  40113. 8011470: e00b b.n 801148a <osTimerNew+0xd6>
  40114. #endif
  40115. }
  40116. else {
  40117. if (mem == 0) {
  40118. 8011472: 69bb ldr r3, [r7, #24]
  40119. 8011474: 2b00 cmp r3, #0
  40120. 8011476: d108 bne.n 801148a <osTimerNew+0xd6>
  40121. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  40122. hTimer = xTimerCreate (name, 1, reload, callb, TimerCallback);
  40123. 8011478: 4b0b ldr r3, [pc, #44] @ (80114a8 <osTimerNew+0xf4>)
  40124. 801147a: 9300 str r3, [sp, #0]
  40125. 801147c: 697b ldr r3, [r7, #20]
  40126. 801147e: 69fa ldr r2, [r7, #28]
  40127. 8011480: 2101 movs r1, #1
  40128. 8011482: 6a78 ldr r0, [r7, #36] @ 0x24
  40129. 8011484: f003 fcea bl 8014e5c <xTimerCreate>
  40130. 8011488: 6238 str r0, [r7, #32]
  40131. #endif
  40132. }
  40133. }
  40134. if ((hTimer == NULL) && (callb != NULL)) {
  40135. 801148a: 6a3b ldr r3, [r7, #32]
  40136. 801148c: 2b00 cmp r3, #0
  40137. 801148e: d105 bne.n 801149c <osTimerNew+0xe8>
  40138. 8011490: 697b ldr r3, [r7, #20]
  40139. 8011492: 2b00 cmp r3, #0
  40140. 8011494: d002 beq.n 801149c <osTimerNew+0xe8>
  40141. vPortFree (callb);
  40142. 8011496: 6978 ldr r0, [r7, #20]
  40143. 8011498: f004 fbfe bl 8015c98 <vPortFree>
  40144. }
  40145. }
  40146. }
  40147. return ((osTimerId_t)hTimer);
  40148. 801149c: 6a3b ldr r3, [r7, #32]
  40149. }
  40150. 801149e: 4618 mov r0, r3
  40151. 80114a0: 3728 adds r7, #40 @ 0x28
  40152. 80114a2: 46bd mov sp, r7
  40153. 80114a4: bd80 pop {r7, pc}
  40154. 80114a6: bf00 nop
  40155. 80114a8: 08011389 .word 0x08011389
  40156. 080114ac <osTimerStart>:
  40157. }
  40158. return (p);
  40159. }
  40160. osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks) {
  40161. 80114ac: b580 push {r7, lr}
  40162. 80114ae: b088 sub sp, #32
  40163. 80114b0: af02 add r7, sp, #8
  40164. 80114b2: 6078 str r0, [r7, #4]
  40165. 80114b4: 6039 str r1, [r7, #0]
  40166. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  40167. 80114b6: 687b ldr r3, [r7, #4]
  40168. 80114b8: 613b str r3, [r7, #16]
  40169. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40170. 80114ba: f3ef 8305 mrs r3, IPSR
  40171. 80114be: 60fb str r3, [r7, #12]
  40172. return(result);
  40173. 80114c0: 68fb ldr r3, [r7, #12]
  40174. osStatus_t stat;
  40175. if (IS_IRQ()) {
  40176. 80114c2: 2b00 cmp r3, #0
  40177. 80114c4: d003 beq.n 80114ce <osTimerStart+0x22>
  40178. stat = osErrorISR;
  40179. 80114c6: f06f 0305 mvn.w r3, #5
  40180. 80114ca: 617b str r3, [r7, #20]
  40181. 80114cc: e017 b.n 80114fe <osTimerStart+0x52>
  40182. }
  40183. else if (hTimer == NULL) {
  40184. 80114ce: 693b ldr r3, [r7, #16]
  40185. 80114d0: 2b00 cmp r3, #0
  40186. 80114d2: d103 bne.n 80114dc <osTimerStart+0x30>
  40187. stat = osErrorParameter;
  40188. 80114d4: f06f 0303 mvn.w r3, #3
  40189. 80114d8: 617b str r3, [r7, #20]
  40190. 80114da: e010 b.n 80114fe <osTimerStart+0x52>
  40191. }
  40192. else {
  40193. if (xTimerChangePeriod (hTimer, ticks, 0) == pdPASS) {
  40194. 80114dc: 2300 movs r3, #0
  40195. 80114de: 9300 str r3, [sp, #0]
  40196. 80114e0: 2300 movs r3, #0
  40197. 80114e2: 683a ldr r2, [r7, #0]
  40198. 80114e4: 2104 movs r1, #4
  40199. 80114e6: 6938 ldr r0, [r7, #16]
  40200. 80114e8: f003 fd56 bl 8014f98 <xTimerGenericCommand>
  40201. 80114ec: 4603 mov r3, r0
  40202. 80114ee: 2b01 cmp r3, #1
  40203. 80114f0: d102 bne.n 80114f8 <osTimerStart+0x4c>
  40204. stat = osOK;
  40205. 80114f2: 2300 movs r3, #0
  40206. 80114f4: 617b str r3, [r7, #20]
  40207. 80114f6: e002 b.n 80114fe <osTimerStart+0x52>
  40208. } else {
  40209. stat = osErrorResource;
  40210. 80114f8: f06f 0302 mvn.w r3, #2
  40211. 80114fc: 617b str r3, [r7, #20]
  40212. }
  40213. }
  40214. return (stat);
  40215. 80114fe: 697b ldr r3, [r7, #20]
  40216. }
  40217. 8011500: 4618 mov r0, r3
  40218. 8011502: 3718 adds r7, #24
  40219. 8011504: 46bd mov sp, r7
  40220. 8011506: bd80 pop {r7, pc}
  40221. 08011508 <osTimerStop>:
  40222. osStatus_t osTimerStop (osTimerId_t timer_id) {
  40223. 8011508: b580 push {r7, lr}
  40224. 801150a: b088 sub sp, #32
  40225. 801150c: af02 add r7, sp, #8
  40226. 801150e: 6078 str r0, [r7, #4]
  40227. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  40228. 8011510: 687b ldr r3, [r7, #4]
  40229. 8011512: 613b str r3, [r7, #16]
  40230. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40231. 8011514: f3ef 8305 mrs r3, IPSR
  40232. 8011518: 60fb str r3, [r7, #12]
  40233. return(result);
  40234. 801151a: 68fb ldr r3, [r7, #12]
  40235. osStatus_t stat;
  40236. if (IS_IRQ()) {
  40237. 801151c: 2b00 cmp r3, #0
  40238. 801151e: d003 beq.n 8011528 <osTimerStop+0x20>
  40239. stat = osErrorISR;
  40240. 8011520: f06f 0305 mvn.w r3, #5
  40241. 8011524: 617b str r3, [r7, #20]
  40242. 8011526: e021 b.n 801156c <osTimerStop+0x64>
  40243. }
  40244. else if (hTimer == NULL) {
  40245. 8011528: 693b ldr r3, [r7, #16]
  40246. 801152a: 2b00 cmp r3, #0
  40247. 801152c: d103 bne.n 8011536 <osTimerStop+0x2e>
  40248. stat = osErrorParameter;
  40249. 801152e: f06f 0303 mvn.w r3, #3
  40250. 8011532: 617b str r3, [r7, #20]
  40251. 8011534: e01a b.n 801156c <osTimerStop+0x64>
  40252. }
  40253. else {
  40254. if (xTimerIsTimerActive (hTimer) == pdFALSE) {
  40255. 8011536: 6938 ldr r0, [r7, #16]
  40256. 8011538: f004 f83e bl 80155b8 <xTimerIsTimerActive>
  40257. 801153c: 4603 mov r3, r0
  40258. 801153e: 2b00 cmp r3, #0
  40259. 8011540: d103 bne.n 801154a <osTimerStop+0x42>
  40260. stat = osErrorResource;
  40261. 8011542: f06f 0302 mvn.w r3, #2
  40262. 8011546: 617b str r3, [r7, #20]
  40263. 8011548: e010 b.n 801156c <osTimerStop+0x64>
  40264. }
  40265. else {
  40266. if (xTimerStop (hTimer, 0) == pdPASS) {
  40267. 801154a: 2300 movs r3, #0
  40268. 801154c: 9300 str r3, [sp, #0]
  40269. 801154e: 2300 movs r3, #0
  40270. 8011550: 2200 movs r2, #0
  40271. 8011552: 2103 movs r1, #3
  40272. 8011554: 6938 ldr r0, [r7, #16]
  40273. 8011556: f003 fd1f bl 8014f98 <xTimerGenericCommand>
  40274. 801155a: 4603 mov r3, r0
  40275. 801155c: 2b01 cmp r3, #1
  40276. 801155e: d102 bne.n 8011566 <osTimerStop+0x5e>
  40277. stat = osOK;
  40278. 8011560: 2300 movs r3, #0
  40279. 8011562: 617b str r3, [r7, #20]
  40280. 8011564: e002 b.n 801156c <osTimerStop+0x64>
  40281. } else {
  40282. stat = osError;
  40283. 8011566: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  40284. 801156a: 617b str r3, [r7, #20]
  40285. }
  40286. }
  40287. }
  40288. return (stat);
  40289. 801156c: 697b ldr r3, [r7, #20]
  40290. }
  40291. 801156e: 4618 mov r0, r3
  40292. 8011570: 3718 adds r7, #24
  40293. 8011572: 46bd mov sp, r7
  40294. 8011574: bd80 pop {r7, pc}
  40295. 08011576 <osMutexNew>:
  40296. }
  40297. /*---------------------------------------------------------------------------*/
  40298. #if (configUSE_OS2_MUTEX == 1)
  40299. osMutexId_t osMutexNew (const osMutexAttr_t *attr) {
  40300. 8011576: b580 push {r7, lr}
  40301. 8011578: b088 sub sp, #32
  40302. 801157a: af00 add r7, sp, #0
  40303. 801157c: 6078 str r0, [r7, #4]
  40304. int32_t mem;
  40305. #if (configQUEUE_REGISTRY_SIZE > 0)
  40306. const char *name;
  40307. #endif
  40308. hMutex = NULL;
  40309. 801157e: 2300 movs r3, #0
  40310. 8011580: 61fb str r3, [r7, #28]
  40311. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40312. 8011582: f3ef 8305 mrs r3, IPSR
  40313. 8011586: 60bb str r3, [r7, #8]
  40314. return(result);
  40315. 8011588: 68bb ldr r3, [r7, #8]
  40316. if (!IS_IRQ()) {
  40317. 801158a: 2b00 cmp r3, #0
  40318. 801158c: d174 bne.n 8011678 <osMutexNew+0x102>
  40319. if (attr != NULL) {
  40320. 801158e: 687b ldr r3, [r7, #4]
  40321. 8011590: 2b00 cmp r3, #0
  40322. 8011592: d003 beq.n 801159c <osMutexNew+0x26>
  40323. type = attr->attr_bits;
  40324. 8011594: 687b ldr r3, [r7, #4]
  40325. 8011596: 685b ldr r3, [r3, #4]
  40326. 8011598: 61bb str r3, [r7, #24]
  40327. 801159a: e001 b.n 80115a0 <osMutexNew+0x2a>
  40328. } else {
  40329. type = 0U;
  40330. 801159c: 2300 movs r3, #0
  40331. 801159e: 61bb str r3, [r7, #24]
  40332. }
  40333. if ((type & osMutexRecursive) == osMutexRecursive) {
  40334. 80115a0: 69bb ldr r3, [r7, #24]
  40335. 80115a2: f003 0301 and.w r3, r3, #1
  40336. 80115a6: 2b00 cmp r3, #0
  40337. 80115a8: d002 beq.n 80115b0 <osMutexNew+0x3a>
  40338. rmtx = 1U;
  40339. 80115aa: 2301 movs r3, #1
  40340. 80115ac: 617b str r3, [r7, #20]
  40341. 80115ae: e001 b.n 80115b4 <osMutexNew+0x3e>
  40342. } else {
  40343. rmtx = 0U;
  40344. 80115b0: 2300 movs r3, #0
  40345. 80115b2: 617b str r3, [r7, #20]
  40346. }
  40347. if ((type & osMutexRobust) != osMutexRobust) {
  40348. 80115b4: 69bb ldr r3, [r7, #24]
  40349. 80115b6: f003 0308 and.w r3, r3, #8
  40350. 80115ba: 2b00 cmp r3, #0
  40351. 80115bc: d15c bne.n 8011678 <osMutexNew+0x102>
  40352. mem = -1;
  40353. 80115be: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  40354. 80115c2: 613b str r3, [r7, #16]
  40355. if (attr != NULL) {
  40356. 80115c4: 687b ldr r3, [r7, #4]
  40357. 80115c6: 2b00 cmp r3, #0
  40358. 80115c8: d015 beq.n 80115f6 <osMutexNew+0x80>
  40359. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  40360. 80115ca: 687b ldr r3, [r7, #4]
  40361. 80115cc: 689b ldr r3, [r3, #8]
  40362. 80115ce: 2b00 cmp r3, #0
  40363. 80115d0: d006 beq.n 80115e0 <osMutexNew+0x6a>
  40364. 80115d2: 687b ldr r3, [r7, #4]
  40365. 80115d4: 68db ldr r3, [r3, #12]
  40366. 80115d6: 2b4f cmp r3, #79 @ 0x4f
  40367. 80115d8: d902 bls.n 80115e0 <osMutexNew+0x6a>
  40368. mem = 1;
  40369. 80115da: 2301 movs r3, #1
  40370. 80115dc: 613b str r3, [r7, #16]
  40371. 80115de: e00c b.n 80115fa <osMutexNew+0x84>
  40372. }
  40373. else {
  40374. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  40375. 80115e0: 687b ldr r3, [r7, #4]
  40376. 80115e2: 689b ldr r3, [r3, #8]
  40377. 80115e4: 2b00 cmp r3, #0
  40378. 80115e6: d108 bne.n 80115fa <osMutexNew+0x84>
  40379. 80115e8: 687b ldr r3, [r7, #4]
  40380. 80115ea: 68db ldr r3, [r3, #12]
  40381. 80115ec: 2b00 cmp r3, #0
  40382. 80115ee: d104 bne.n 80115fa <osMutexNew+0x84>
  40383. mem = 0;
  40384. 80115f0: 2300 movs r3, #0
  40385. 80115f2: 613b str r3, [r7, #16]
  40386. 80115f4: e001 b.n 80115fa <osMutexNew+0x84>
  40387. }
  40388. }
  40389. }
  40390. else {
  40391. mem = 0;
  40392. 80115f6: 2300 movs r3, #0
  40393. 80115f8: 613b str r3, [r7, #16]
  40394. }
  40395. if (mem == 1) {
  40396. 80115fa: 693b ldr r3, [r7, #16]
  40397. 80115fc: 2b01 cmp r3, #1
  40398. 80115fe: d112 bne.n 8011626 <osMutexNew+0xb0>
  40399. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  40400. if (rmtx != 0U) {
  40401. 8011600: 697b ldr r3, [r7, #20]
  40402. 8011602: 2b00 cmp r3, #0
  40403. 8011604: d007 beq.n 8011616 <osMutexNew+0xa0>
  40404. #if (configUSE_RECURSIVE_MUTEXES == 1)
  40405. hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem);
  40406. 8011606: 687b ldr r3, [r7, #4]
  40407. 8011608: 689b ldr r3, [r3, #8]
  40408. 801160a: 4619 mov r1, r3
  40409. 801160c: 2004 movs r0, #4
  40410. 801160e: f000 fdd8 bl 80121c2 <xQueueCreateMutexStatic>
  40411. 8011612: 61f8 str r0, [r7, #28]
  40412. 8011614: e016 b.n 8011644 <osMutexNew+0xce>
  40413. #endif
  40414. }
  40415. else {
  40416. hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem);
  40417. 8011616: 687b ldr r3, [r7, #4]
  40418. 8011618: 689b ldr r3, [r3, #8]
  40419. 801161a: 4619 mov r1, r3
  40420. 801161c: 2001 movs r0, #1
  40421. 801161e: f000 fdd0 bl 80121c2 <xQueueCreateMutexStatic>
  40422. 8011622: 61f8 str r0, [r7, #28]
  40423. 8011624: e00e b.n 8011644 <osMutexNew+0xce>
  40424. }
  40425. #endif
  40426. }
  40427. else {
  40428. if (mem == 0) {
  40429. 8011626: 693b ldr r3, [r7, #16]
  40430. 8011628: 2b00 cmp r3, #0
  40431. 801162a: d10b bne.n 8011644 <osMutexNew+0xce>
  40432. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  40433. if (rmtx != 0U) {
  40434. 801162c: 697b ldr r3, [r7, #20]
  40435. 801162e: 2b00 cmp r3, #0
  40436. 8011630: d004 beq.n 801163c <osMutexNew+0xc6>
  40437. #if (configUSE_RECURSIVE_MUTEXES == 1)
  40438. hMutex = xSemaphoreCreateRecursiveMutex ();
  40439. 8011632: 2004 movs r0, #4
  40440. 8011634: f000 fdad bl 8012192 <xQueueCreateMutex>
  40441. 8011638: 61f8 str r0, [r7, #28]
  40442. 801163a: e003 b.n 8011644 <osMutexNew+0xce>
  40443. #endif
  40444. } else {
  40445. hMutex = xSemaphoreCreateMutex ();
  40446. 801163c: 2001 movs r0, #1
  40447. 801163e: f000 fda8 bl 8012192 <xQueueCreateMutex>
  40448. 8011642: 61f8 str r0, [r7, #28]
  40449. #endif
  40450. }
  40451. }
  40452. #if (configQUEUE_REGISTRY_SIZE > 0)
  40453. if (hMutex != NULL) {
  40454. 8011644: 69fb ldr r3, [r7, #28]
  40455. 8011646: 2b00 cmp r3, #0
  40456. 8011648: d00c beq.n 8011664 <osMutexNew+0xee>
  40457. if (attr != NULL) {
  40458. 801164a: 687b ldr r3, [r7, #4]
  40459. 801164c: 2b00 cmp r3, #0
  40460. 801164e: d003 beq.n 8011658 <osMutexNew+0xe2>
  40461. name = attr->name;
  40462. 8011650: 687b ldr r3, [r7, #4]
  40463. 8011652: 681b ldr r3, [r3, #0]
  40464. 8011654: 60fb str r3, [r7, #12]
  40465. 8011656: e001 b.n 801165c <osMutexNew+0xe6>
  40466. } else {
  40467. name = NULL;
  40468. 8011658: 2300 movs r3, #0
  40469. 801165a: 60fb str r3, [r7, #12]
  40470. }
  40471. vQueueAddToRegistry (hMutex, name);
  40472. 801165c: 68f9 ldr r1, [r7, #12]
  40473. 801165e: 69f8 ldr r0, [r7, #28]
  40474. 8011660: f001 fcd2 bl 8013008 <vQueueAddToRegistry>
  40475. }
  40476. #endif
  40477. if ((hMutex != NULL) && (rmtx != 0U)) {
  40478. 8011664: 69fb ldr r3, [r7, #28]
  40479. 8011666: 2b00 cmp r3, #0
  40480. 8011668: d006 beq.n 8011678 <osMutexNew+0x102>
  40481. 801166a: 697b ldr r3, [r7, #20]
  40482. 801166c: 2b00 cmp r3, #0
  40483. 801166e: d003 beq.n 8011678 <osMutexNew+0x102>
  40484. hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U);
  40485. 8011670: 69fb ldr r3, [r7, #28]
  40486. 8011672: f043 0301 orr.w r3, r3, #1
  40487. 8011676: 61fb str r3, [r7, #28]
  40488. }
  40489. }
  40490. }
  40491. return ((osMutexId_t)hMutex);
  40492. 8011678: 69fb ldr r3, [r7, #28]
  40493. }
  40494. 801167a: 4618 mov r0, r3
  40495. 801167c: 3720 adds r7, #32
  40496. 801167e: 46bd mov sp, r7
  40497. 8011680: bd80 pop {r7, pc}
  40498. 08011682 <osMutexAcquire>:
  40499. osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) {
  40500. 8011682: b580 push {r7, lr}
  40501. 8011684: b086 sub sp, #24
  40502. 8011686: af00 add r7, sp, #0
  40503. 8011688: 6078 str r0, [r7, #4]
  40504. 801168a: 6039 str r1, [r7, #0]
  40505. SemaphoreHandle_t hMutex;
  40506. osStatus_t stat;
  40507. uint32_t rmtx;
  40508. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  40509. 801168c: 687b ldr r3, [r7, #4]
  40510. 801168e: f023 0301 bic.w r3, r3, #1
  40511. 8011692: 613b str r3, [r7, #16]
  40512. rmtx = (uint32_t)mutex_id & 1U;
  40513. 8011694: 687b ldr r3, [r7, #4]
  40514. 8011696: f003 0301 and.w r3, r3, #1
  40515. 801169a: 60fb str r3, [r7, #12]
  40516. stat = osOK;
  40517. 801169c: 2300 movs r3, #0
  40518. 801169e: 617b str r3, [r7, #20]
  40519. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40520. 80116a0: f3ef 8305 mrs r3, IPSR
  40521. 80116a4: 60bb str r3, [r7, #8]
  40522. return(result);
  40523. 80116a6: 68bb ldr r3, [r7, #8]
  40524. if (IS_IRQ()) {
  40525. 80116a8: 2b00 cmp r3, #0
  40526. 80116aa: d003 beq.n 80116b4 <osMutexAcquire+0x32>
  40527. stat = osErrorISR;
  40528. 80116ac: f06f 0305 mvn.w r3, #5
  40529. 80116b0: 617b str r3, [r7, #20]
  40530. 80116b2: e02c b.n 801170e <osMutexAcquire+0x8c>
  40531. }
  40532. else if (hMutex == NULL) {
  40533. 80116b4: 693b ldr r3, [r7, #16]
  40534. 80116b6: 2b00 cmp r3, #0
  40535. 80116b8: d103 bne.n 80116c2 <osMutexAcquire+0x40>
  40536. stat = osErrorParameter;
  40537. 80116ba: f06f 0303 mvn.w r3, #3
  40538. 80116be: 617b str r3, [r7, #20]
  40539. 80116c0: e025 b.n 801170e <osMutexAcquire+0x8c>
  40540. }
  40541. else {
  40542. if (rmtx != 0U) {
  40543. 80116c2: 68fb ldr r3, [r7, #12]
  40544. 80116c4: 2b00 cmp r3, #0
  40545. 80116c6: d011 beq.n 80116ec <osMutexAcquire+0x6a>
  40546. #if (configUSE_RECURSIVE_MUTEXES == 1)
  40547. if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) {
  40548. 80116c8: 6839 ldr r1, [r7, #0]
  40549. 80116ca: 6938 ldr r0, [r7, #16]
  40550. 80116cc: f000 fdc9 bl 8012262 <xQueueTakeMutexRecursive>
  40551. 80116d0: 4603 mov r3, r0
  40552. 80116d2: 2b01 cmp r3, #1
  40553. 80116d4: d01b beq.n 801170e <osMutexAcquire+0x8c>
  40554. if (timeout != 0U) {
  40555. 80116d6: 683b ldr r3, [r7, #0]
  40556. 80116d8: 2b00 cmp r3, #0
  40557. 80116da: d003 beq.n 80116e4 <osMutexAcquire+0x62>
  40558. stat = osErrorTimeout;
  40559. 80116dc: f06f 0301 mvn.w r3, #1
  40560. 80116e0: 617b str r3, [r7, #20]
  40561. 80116e2: e014 b.n 801170e <osMutexAcquire+0x8c>
  40562. } else {
  40563. stat = osErrorResource;
  40564. 80116e4: f06f 0302 mvn.w r3, #2
  40565. 80116e8: 617b str r3, [r7, #20]
  40566. 80116ea: e010 b.n 801170e <osMutexAcquire+0x8c>
  40567. }
  40568. }
  40569. #endif
  40570. }
  40571. else {
  40572. if (xSemaphoreTake (hMutex, timeout) != pdPASS) {
  40573. 80116ec: 6839 ldr r1, [r7, #0]
  40574. 80116ee: 6938 ldr r0, [r7, #16]
  40575. 80116f0: f001 f96e bl 80129d0 <xQueueSemaphoreTake>
  40576. 80116f4: 4603 mov r3, r0
  40577. 80116f6: 2b01 cmp r3, #1
  40578. 80116f8: d009 beq.n 801170e <osMutexAcquire+0x8c>
  40579. if (timeout != 0U) {
  40580. 80116fa: 683b ldr r3, [r7, #0]
  40581. 80116fc: 2b00 cmp r3, #0
  40582. 80116fe: d003 beq.n 8011708 <osMutexAcquire+0x86>
  40583. stat = osErrorTimeout;
  40584. 8011700: f06f 0301 mvn.w r3, #1
  40585. 8011704: 617b str r3, [r7, #20]
  40586. 8011706: e002 b.n 801170e <osMutexAcquire+0x8c>
  40587. } else {
  40588. stat = osErrorResource;
  40589. 8011708: f06f 0302 mvn.w r3, #2
  40590. 801170c: 617b str r3, [r7, #20]
  40591. }
  40592. }
  40593. }
  40594. }
  40595. return (stat);
  40596. 801170e: 697b ldr r3, [r7, #20]
  40597. }
  40598. 8011710: 4618 mov r0, r3
  40599. 8011712: 3718 adds r7, #24
  40600. 8011714: 46bd mov sp, r7
  40601. 8011716: bd80 pop {r7, pc}
  40602. 08011718 <osMutexRelease>:
  40603. osStatus_t osMutexRelease (osMutexId_t mutex_id) {
  40604. 8011718: b580 push {r7, lr}
  40605. 801171a: b086 sub sp, #24
  40606. 801171c: af00 add r7, sp, #0
  40607. 801171e: 6078 str r0, [r7, #4]
  40608. SemaphoreHandle_t hMutex;
  40609. osStatus_t stat;
  40610. uint32_t rmtx;
  40611. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  40612. 8011720: 687b ldr r3, [r7, #4]
  40613. 8011722: f023 0301 bic.w r3, r3, #1
  40614. 8011726: 613b str r3, [r7, #16]
  40615. rmtx = (uint32_t)mutex_id & 1U;
  40616. 8011728: 687b ldr r3, [r7, #4]
  40617. 801172a: f003 0301 and.w r3, r3, #1
  40618. 801172e: 60fb str r3, [r7, #12]
  40619. stat = osOK;
  40620. 8011730: 2300 movs r3, #0
  40621. 8011732: 617b str r3, [r7, #20]
  40622. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40623. 8011734: f3ef 8305 mrs r3, IPSR
  40624. 8011738: 60bb str r3, [r7, #8]
  40625. return(result);
  40626. 801173a: 68bb ldr r3, [r7, #8]
  40627. if (IS_IRQ()) {
  40628. 801173c: 2b00 cmp r3, #0
  40629. 801173e: d003 beq.n 8011748 <osMutexRelease+0x30>
  40630. stat = osErrorISR;
  40631. 8011740: f06f 0305 mvn.w r3, #5
  40632. 8011744: 617b str r3, [r7, #20]
  40633. 8011746: e01f b.n 8011788 <osMutexRelease+0x70>
  40634. }
  40635. else if (hMutex == NULL) {
  40636. 8011748: 693b ldr r3, [r7, #16]
  40637. 801174a: 2b00 cmp r3, #0
  40638. 801174c: d103 bne.n 8011756 <osMutexRelease+0x3e>
  40639. stat = osErrorParameter;
  40640. 801174e: f06f 0303 mvn.w r3, #3
  40641. 8011752: 617b str r3, [r7, #20]
  40642. 8011754: e018 b.n 8011788 <osMutexRelease+0x70>
  40643. }
  40644. else {
  40645. if (rmtx != 0U) {
  40646. 8011756: 68fb ldr r3, [r7, #12]
  40647. 8011758: 2b00 cmp r3, #0
  40648. 801175a: d009 beq.n 8011770 <osMutexRelease+0x58>
  40649. #if (configUSE_RECURSIVE_MUTEXES == 1)
  40650. if (xSemaphoreGiveRecursive (hMutex) != pdPASS) {
  40651. 801175c: 6938 ldr r0, [r7, #16]
  40652. 801175e: f000 fd4b bl 80121f8 <xQueueGiveMutexRecursive>
  40653. 8011762: 4603 mov r3, r0
  40654. 8011764: 2b01 cmp r3, #1
  40655. 8011766: d00f beq.n 8011788 <osMutexRelease+0x70>
  40656. stat = osErrorResource;
  40657. 8011768: f06f 0302 mvn.w r3, #2
  40658. 801176c: 617b str r3, [r7, #20]
  40659. 801176e: e00b b.n 8011788 <osMutexRelease+0x70>
  40660. }
  40661. #endif
  40662. }
  40663. else {
  40664. if (xSemaphoreGive (hMutex) != pdPASS) {
  40665. 8011770: 2300 movs r3, #0
  40666. 8011772: 2200 movs r2, #0
  40667. 8011774: 2100 movs r1, #0
  40668. 8011776: 6938 ldr r0, [r7, #16]
  40669. 8011778: f000 fe18 bl 80123ac <xQueueGenericSend>
  40670. 801177c: 4603 mov r3, r0
  40671. 801177e: 2b01 cmp r3, #1
  40672. 8011780: d002 beq.n 8011788 <osMutexRelease+0x70>
  40673. stat = osErrorResource;
  40674. 8011782: f06f 0302 mvn.w r3, #2
  40675. 8011786: 617b str r3, [r7, #20]
  40676. }
  40677. }
  40678. }
  40679. return (stat);
  40680. 8011788: 697b ldr r3, [r7, #20]
  40681. }
  40682. 801178a: 4618 mov r0, r3
  40683. 801178c: 3718 adds r7, #24
  40684. 801178e: 46bd mov sp, r7
  40685. 8011790: bd80 pop {r7, pc}
  40686. 08011792 <osSemaphoreNew>:
  40687. }
  40688. #endif /* (configUSE_OS2_MUTEX == 1) */
  40689. /*---------------------------------------------------------------------------*/
  40690. osSemaphoreId_t osSemaphoreNew (uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr) {
  40691. 8011792: b580 push {r7, lr}
  40692. 8011794: b08a sub sp, #40 @ 0x28
  40693. 8011796: af02 add r7, sp, #8
  40694. 8011798: 60f8 str r0, [r7, #12]
  40695. 801179a: 60b9 str r1, [r7, #8]
  40696. 801179c: 607a str r2, [r7, #4]
  40697. int32_t mem;
  40698. #if (configQUEUE_REGISTRY_SIZE > 0)
  40699. const char *name;
  40700. #endif
  40701. hSemaphore = NULL;
  40702. 801179e: 2300 movs r3, #0
  40703. 80117a0: 61fb str r3, [r7, #28]
  40704. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40705. 80117a2: f3ef 8305 mrs r3, IPSR
  40706. 80117a6: 613b str r3, [r7, #16]
  40707. return(result);
  40708. 80117a8: 693b ldr r3, [r7, #16]
  40709. if (!IS_IRQ() && (max_count > 0U) && (initial_count <= max_count)) {
  40710. 80117aa: 2b00 cmp r3, #0
  40711. 80117ac: d175 bne.n 801189a <osSemaphoreNew+0x108>
  40712. 80117ae: 68fb ldr r3, [r7, #12]
  40713. 80117b0: 2b00 cmp r3, #0
  40714. 80117b2: d072 beq.n 801189a <osSemaphoreNew+0x108>
  40715. 80117b4: 68ba ldr r2, [r7, #8]
  40716. 80117b6: 68fb ldr r3, [r7, #12]
  40717. 80117b8: 429a cmp r2, r3
  40718. 80117ba: d86e bhi.n 801189a <osSemaphoreNew+0x108>
  40719. mem = -1;
  40720. 80117bc: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  40721. 80117c0: 61bb str r3, [r7, #24]
  40722. if (attr != NULL) {
  40723. 80117c2: 687b ldr r3, [r7, #4]
  40724. 80117c4: 2b00 cmp r3, #0
  40725. 80117c6: d015 beq.n 80117f4 <osSemaphoreNew+0x62>
  40726. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  40727. 80117c8: 687b ldr r3, [r7, #4]
  40728. 80117ca: 689b ldr r3, [r3, #8]
  40729. 80117cc: 2b00 cmp r3, #0
  40730. 80117ce: d006 beq.n 80117de <osSemaphoreNew+0x4c>
  40731. 80117d0: 687b ldr r3, [r7, #4]
  40732. 80117d2: 68db ldr r3, [r3, #12]
  40733. 80117d4: 2b4f cmp r3, #79 @ 0x4f
  40734. 80117d6: d902 bls.n 80117de <osSemaphoreNew+0x4c>
  40735. mem = 1;
  40736. 80117d8: 2301 movs r3, #1
  40737. 80117da: 61bb str r3, [r7, #24]
  40738. 80117dc: e00c b.n 80117f8 <osSemaphoreNew+0x66>
  40739. }
  40740. else {
  40741. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  40742. 80117de: 687b ldr r3, [r7, #4]
  40743. 80117e0: 689b ldr r3, [r3, #8]
  40744. 80117e2: 2b00 cmp r3, #0
  40745. 80117e4: d108 bne.n 80117f8 <osSemaphoreNew+0x66>
  40746. 80117e6: 687b ldr r3, [r7, #4]
  40747. 80117e8: 68db ldr r3, [r3, #12]
  40748. 80117ea: 2b00 cmp r3, #0
  40749. 80117ec: d104 bne.n 80117f8 <osSemaphoreNew+0x66>
  40750. mem = 0;
  40751. 80117ee: 2300 movs r3, #0
  40752. 80117f0: 61bb str r3, [r7, #24]
  40753. 80117f2: e001 b.n 80117f8 <osSemaphoreNew+0x66>
  40754. }
  40755. }
  40756. }
  40757. else {
  40758. mem = 0;
  40759. 80117f4: 2300 movs r3, #0
  40760. 80117f6: 61bb str r3, [r7, #24]
  40761. }
  40762. if (mem != -1) {
  40763. 80117f8: 69bb ldr r3, [r7, #24]
  40764. 80117fa: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  40765. 80117fe: d04c beq.n 801189a <osSemaphoreNew+0x108>
  40766. if (max_count == 1U) {
  40767. 8011800: 68fb ldr r3, [r7, #12]
  40768. 8011802: 2b01 cmp r3, #1
  40769. 8011804: d128 bne.n 8011858 <osSemaphoreNew+0xc6>
  40770. if (mem == 1) {
  40771. 8011806: 69bb ldr r3, [r7, #24]
  40772. 8011808: 2b01 cmp r3, #1
  40773. 801180a: d10a bne.n 8011822 <osSemaphoreNew+0x90>
  40774. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  40775. hSemaphore = xSemaphoreCreateBinaryStatic ((StaticSemaphore_t *)attr->cb_mem);
  40776. 801180c: 687b ldr r3, [r7, #4]
  40777. 801180e: 689b ldr r3, [r3, #8]
  40778. 8011810: 2203 movs r2, #3
  40779. 8011812: 9200 str r2, [sp, #0]
  40780. 8011814: 2200 movs r2, #0
  40781. 8011816: 2100 movs r1, #0
  40782. 8011818: 2001 movs r0, #1
  40783. 801181a: f000 fbc5 bl 8011fa8 <xQueueGenericCreateStatic>
  40784. 801181e: 61f8 str r0, [r7, #28]
  40785. 8011820: e005 b.n 801182e <osSemaphoreNew+0x9c>
  40786. #endif
  40787. }
  40788. else {
  40789. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  40790. hSemaphore = xSemaphoreCreateBinary();
  40791. 8011822: 2203 movs r2, #3
  40792. 8011824: 2100 movs r1, #0
  40793. 8011826: 2001 movs r0, #1
  40794. 8011828: f000 fc3b bl 80120a2 <xQueueGenericCreate>
  40795. 801182c: 61f8 str r0, [r7, #28]
  40796. #endif
  40797. }
  40798. if ((hSemaphore != NULL) && (initial_count != 0U)) {
  40799. 801182e: 69fb ldr r3, [r7, #28]
  40800. 8011830: 2b00 cmp r3, #0
  40801. 8011832: d022 beq.n 801187a <osSemaphoreNew+0xe8>
  40802. 8011834: 68bb ldr r3, [r7, #8]
  40803. 8011836: 2b00 cmp r3, #0
  40804. 8011838: d01f beq.n 801187a <osSemaphoreNew+0xe8>
  40805. if (xSemaphoreGive (hSemaphore) != pdPASS) {
  40806. 801183a: 2300 movs r3, #0
  40807. 801183c: 2200 movs r2, #0
  40808. 801183e: 2100 movs r1, #0
  40809. 8011840: 69f8 ldr r0, [r7, #28]
  40810. 8011842: f000 fdb3 bl 80123ac <xQueueGenericSend>
  40811. 8011846: 4603 mov r3, r0
  40812. 8011848: 2b01 cmp r3, #1
  40813. 801184a: d016 beq.n 801187a <osSemaphoreNew+0xe8>
  40814. vSemaphoreDelete (hSemaphore);
  40815. 801184c: 69f8 ldr r0, [r7, #28]
  40816. 801184e: f001 fa8f bl 8012d70 <vQueueDelete>
  40817. hSemaphore = NULL;
  40818. 8011852: 2300 movs r3, #0
  40819. 8011854: 61fb str r3, [r7, #28]
  40820. 8011856: e010 b.n 801187a <osSemaphoreNew+0xe8>
  40821. }
  40822. }
  40823. }
  40824. else {
  40825. if (mem == 1) {
  40826. 8011858: 69bb ldr r3, [r7, #24]
  40827. 801185a: 2b01 cmp r3, #1
  40828. 801185c: d108 bne.n 8011870 <osSemaphoreNew+0xde>
  40829. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  40830. hSemaphore = xSemaphoreCreateCountingStatic (max_count, initial_count, (StaticSemaphore_t *)attr->cb_mem);
  40831. 801185e: 687b ldr r3, [r7, #4]
  40832. 8011860: 689b ldr r3, [r3, #8]
  40833. 8011862: 461a mov r2, r3
  40834. 8011864: 68b9 ldr r1, [r7, #8]
  40835. 8011866: 68f8 ldr r0, [r7, #12]
  40836. 8011868: f000 fd32 bl 80122d0 <xQueueCreateCountingSemaphoreStatic>
  40837. 801186c: 61f8 str r0, [r7, #28]
  40838. 801186e: e004 b.n 801187a <osSemaphoreNew+0xe8>
  40839. #endif
  40840. }
  40841. else {
  40842. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  40843. hSemaphore = xSemaphoreCreateCounting (max_count, initial_count);
  40844. 8011870: 68b9 ldr r1, [r7, #8]
  40845. 8011872: 68f8 ldr r0, [r7, #12]
  40846. 8011874: f000 fd65 bl 8012342 <xQueueCreateCountingSemaphore>
  40847. 8011878: 61f8 str r0, [r7, #28]
  40848. #endif
  40849. }
  40850. }
  40851. #if (configQUEUE_REGISTRY_SIZE > 0)
  40852. if (hSemaphore != NULL) {
  40853. 801187a: 69fb ldr r3, [r7, #28]
  40854. 801187c: 2b00 cmp r3, #0
  40855. 801187e: d00c beq.n 801189a <osSemaphoreNew+0x108>
  40856. if (attr != NULL) {
  40857. 8011880: 687b ldr r3, [r7, #4]
  40858. 8011882: 2b00 cmp r3, #0
  40859. 8011884: d003 beq.n 801188e <osSemaphoreNew+0xfc>
  40860. name = attr->name;
  40861. 8011886: 687b ldr r3, [r7, #4]
  40862. 8011888: 681b ldr r3, [r3, #0]
  40863. 801188a: 617b str r3, [r7, #20]
  40864. 801188c: e001 b.n 8011892 <osSemaphoreNew+0x100>
  40865. } else {
  40866. name = NULL;
  40867. 801188e: 2300 movs r3, #0
  40868. 8011890: 617b str r3, [r7, #20]
  40869. }
  40870. vQueueAddToRegistry (hSemaphore, name);
  40871. 8011892: 6979 ldr r1, [r7, #20]
  40872. 8011894: 69f8 ldr r0, [r7, #28]
  40873. 8011896: f001 fbb7 bl 8013008 <vQueueAddToRegistry>
  40874. }
  40875. #endif
  40876. }
  40877. }
  40878. return ((osSemaphoreId_t)hSemaphore);
  40879. 801189a: 69fb ldr r3, [r7, #28]
  40880. }
  40881. 801189c: 4618 mov r0, r3
  40882. 801189e: 3720 adds r7, #32
  40883. 80118a0: 46bd mov sp, r7
  40884. 80118a2: bd80 pop {r7, pc}
  40885. 080118a4 <osSemaphoreAcquire>:
  40886. osStatus_t osSemaphoreAcquire (osSemaphoreId_t semaphore_id, uint32_t timeout) {
  40887. 80118a4: b580 push {r7, lr}
  40888. 80118a6: b086 sub sp, #24
  40889. 80118a8: af00 add r7, sp, #0
  40890. 80118aa: 6078 str r0, [r7, #4]
  40891. 80118ac: 6039 str r1, [r7, #0]
  40892. SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id;
  40893. 80118ae: 687b ldr r3, [r7, #4]
  40894. 80118b0: 613b str r3, [r7, #16]
  40895. osStatus_t stat;
  40896. BaseType_t yield;
  40897. stat = osOK;
  40898. 80118b2: 2300 movs r3, #0
  40899. 80118b4: 617b str r3, [r7, #20]
  40900. if (hSemaphore == NULL) {
  40901. 80118b6: 693b ldr r3, [r7, #16]
  40902. 80118b8: 2b00 cmp r3, #0
  40903. 80118ba: d103 bne.n 80118c4 <osSemaphoreAcquire+0x20>
  40904. stat = osErrorParameter;
  40905. 80118bc: f06f 0303 mvn.w r3, #3
  40906. 80118c0: 617b str r3, [r7, #20]
  40907. 80118c2: e039 b.n 8011938 <osSemaphoreAcquire+0x94>
  40908. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40909. 80118c4: f3ef 8305 mrs r3, IPSR
  40910. 80118c8: 60fb str r3, [r7, #12]
  40911. return(result);
  40912. 80118ca: 68fb ldr r3, [r7, #12]
  40913. }
  40914. else if (IS_IRQ()) {
  40915. 80118cc: 2b00 cmp r3, #0
  40916. 80118ce: d022 beq.n 8011916 <osSemaphoreAcquire+0x72>
  40917. if (timeout != 0U) {
  40918. 80118d0: 683b ldr r3, [r7, #0]
  40919. 80118d2: 2b00 cmp r3, #0
  40920. 80118d4: d003 beq.n 80118de <osSemaphoreAcquire+0x3a>
  40921. stat = osErrorParameter;
  40922. 80118d6: f06f 0303 mvn.w r3, #3
  40923. 80118da: 617b str r3, [r7, #20]
  40924. 80118dc: e02c b.n 8011938 <osSemaphoreAcquire+0x94>
  40925. }
  40926. else {
  40927. yield = pdFALSE;
  40928. 80118de: 2300 movs r3, #0
  40929. 80118e0: 60bb str r3, [r7, #8]
  40930. if (xSemaphoreTakeFromISR (hSemaphore, &yield) != pdPASS) {
  40931. 80118e2: f107 0308 add.w r3, r7, #8
  40932. 80118e6: 461a mov r2, r3
  40933. 80118e8: 2100 movs r1, #0
  40934. 80118ea: 6938 ldr r0, [r7, #16]
  40935. 80118ec: f001 f980 bl 8012bf0 <xQueueReceiveFromISR>
  40936. 80118f0: 4603 mov r3, r0
  40937. 80118f2: 2b01 cmp r3, #1
  40938. 80118f4: d003 beq.n 80118fe <osSemaphoreAcquire+0x5a>
  40939. stat = osErrorResource;
  40940. 80118f6: f06f 0302 mvn.w r3, #2
  40941. 80118fa: 617b str r3, [r7, #20]
  40942. 80118fc: e01c b.n 8011938 <osSemaphoreAcquire+0x94>
  40943. } else {
  40944. portYIELD_FROM_ISR (yield);
  40945. 80118fe: 68bb ldr r3, [r7, #8]
  40946. 8011900: 2b00 cmp r3, #0
  40947. 8011902: d019 beq.n 8011938 <osSemaphoreAcquire+0x94>
  40948. 8011904: 4b0f ldr r3, [pc, #60] @ (8011944 <osSemaphoreAcquire+0xa0>)
  40949. 8011906: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  40950. 801190a: 601a str r2, [r3, #0]
  40951. 801190c: f3bf 8f4f dsb sy
  40952. 8011910: f3bf 8f6f isb sy
  40953. 8011914: e010 b.n 8011938 <osSemaphoreAcquire+0x94>
  40954. }
  40955. }
  40956. }
  40957. else {
  40958. if (xSemaphoreTake (hSemaphore, (TickType_t)timeout) != pdPASS) {
  40959. 8011916: 6839 ldr r1, [r7, #0]
  40960. 8011918: 6938 ldr r0, [r7, #16]
  40961. 801191a: f001 f859 bl 80129d0 <xQueueSemaphoreTake>
  40962. 801191e: 4603 mov r3, r0
  40963. 8011920: 2b01 cmp r3, #1
  40964. 8011922: d009 beq.n 8011938 <osSemaphoreAcquire+0x94>
  40965. if (timeout != 0U) {
  40966. 8011924: 683b ldr r3, [r7, #0]
  40967. 8011926: 2b00 cmp r3, #0
  40968. 8011928: d003 beq.n 8011932 <osSemaphoreAcquire+0x8e>
  40969. stat = osErrorTimeout;
  40970. 801192a: f06f 0301 mvn.w r3, #1
  40971. 801192e: 617b str r3, [r7, #20]
  40972. 8011930: e002 b.n 8011938 <osSemaphoreAcquire+0x94>
  40973. } else {
  40974. stat = osErrorResource;
  40975. 8011932: f06f 0302 mvn.w r3, #2
  40976. 8011936: 617b str r3, [r7, #20]
  40977. }
  40978. }
  40979. }
  40980. return (stat);
  40981. 8011938: 697b ldr r3, [r7, #20]
  40982. }
  40983. 801193a: 4618 mov r0, r3
  40984. 801193c: 3718 adds r7, #24
  40985. 801193e: 46bd mov sp, r7
  40986. 8011940: bd80 pop {r7, pc}
  40987. 8011942: bf00 nop
  40988. 8011944: e000ed04 .word 0xe000ed04
  40989. 08011948 <osSemaphoreRelease>:
  40990. osStatus_t osSemaphoreRelease (osSemaphoreId_t semaphore_id) {
  40991. 8011948: b580 push {r7, lr}
  40992. 801194a: b086 sub sp, #24
  40993. 801194c: af00 add r7, sp, #0
  40994. 801194e: 6078 str r0, [r7, #4]
  40995. SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id;
  40996. 8011950: 687b ldr r3, [r7, #4]
  40997. 8011952: 613b str r3, [r7, #16]
  40998. osStatus_t stat;
  40999. BaseType_t yield;
  41000. stat = osOK;
  41001. 8011954: 2300 movs r3, #0
  41002. 8011956: 617b str r3, [r7, #20]
  41003. if (hSemaphore == NULL) {
  41004. 8011958: 693b ldr r3, [r7, #16]
  41005. 801195a: 2b00 cmp r3, #0
  41006. 801195c: d103 bne.n 8011966 <osSemaphoreRelease+0x1e>
  41007. stat = osErrorParameter;
  41008. 801195e: f06f 0303 mvn.w r3, #3
  41009. 8011962: 617b str r3, [r7, #20]
  41010. 8011964: e02c b.n 80119c0 <osSemaphoreRelease+0x78>
  41011. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  41012. 8011966: f3ef 8305 mrs r3, IPSR
  41013. 801196a: 60fb str r3, [r7, #12]
  41014. return(result);
  41015. 801196c: 68fb ldr r3, [r7, #12]
  41016. }
  41017. else if (IS_IRQ()) {
  41018. 801196e: 2b00 cmp r3, #0
  41019. 8011970: d01a beq.n 80119a8 <osSemaphoreRelease+0x60>
  41020. yield = pdFALSE;
  41021. 8011972: 2300 movs r3, #0
  41022. 8011974: 60bb str r3, [r7, #8]
  41023. if (xSemaphoreGiveFromISR (hSemaphore, &yield) != pdTRUE) {
  41024. 8011976: f107 0308 add.w r3, r7, #8
  41025. 801197a: 4619 mov r1, r3
  41026. 801197c: 6938 ldr r0, [r7, #16]
  41027. 801197e: f000 feb5 bl 80126ec <xQueueGiveFromISR>
  41028. 8011982: 4603 mov r3, r0
  41029. 8011984: 2b01 cmp r3, #1
  41030. 8011986: d003 beq.n 8011990 <osSemaphoreRelease+0x48>
  41031. stat = osErrorResource;
  41032. 8011988: f06f 0302 mvn.w r3, #2
  41033. 801198c: 617b str r3, [r7, #20]
  41034. 801198e: e017 b.n 80119c0 <osSemaphoreRelease+0x78>
  41035. } else {
  41036. portYIELD_FROM_ISR (yield);
  41037. 8011990: 68bb ldr r3, [r7, #8]
  41038. 8011992: 2b00 cmp r3, #0
  41039. 8011994: d014 beq.n 80119c0 <osSemaphoreRelease+0x78>
  41040. 8011996: 4b0d ldr r3, [pc, #52] @ (80119cc <osSemaphoreRelease+0x84>)
  41041. 8011998: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  41042. 801199c: 601a str r2, [r3, #0]
  41043. 801199e: f3bf 8f4f dsb sy
  41044. 80119a2: f3bf 8f6f isb sy
  41045. 80119a6: e00b b.n 80119c0 <osSemaphoreRelease+0x78>
  41046. }
  41047. }
  41048. else {
  41049. if (xSemaphoreGive (hSemaphore) != pdPASS) {
  41050. 80119a8: 2300 movs r3, #0
  41051. 80119aa: 2200 movs r2, #0
  41052. 80119ac: 2100 movs r1, #0
  41053. 80119ae: 6938 ldr r0, [r7, #16]
  41054. 80119b0: f000 fcfc bl 80123ac <xQueueGenericSend>
  41055. 80119b4: 4603 mov r3, r0
  41056. 80119b6: 2b01 cmp r3, #1
  41057. 80119b8: d002 beq.n 80119c0 <osSemaphoreRelease+0x78>
  41058. stat = osErrorResource;
  41059. 80119ba: f06f 0302 mvn.w r3, #2
  41060. 80119be: 617b str r3, [r7, #20]
  41061. }
  41062. }
  41063. return (stat);
  41064. 80119c0: 697b ldr r3, [r7, #20]
  41065. }
  41066. 80119c2: 4618 mov r0, r3
  41067. 80119c4: 3718 adds r7, #24
  41068. 80119c6: 46bd mov sp, r7
  41069. 80119c8: bd80 pop {r7, pc}
  41070. 80119ca: bf00 nop
  41071. 80119cc: e000ed04 .word 0xe000ed04
  41072. 080119d0 <osSemaphoreDelete>:
  41073. }
  41074. return (count);
  41075. }
  41076. osStatus_t osSemaphoreDelete (osSemaphoreId_t semaphore_id) {
  41077. 80119d0: b580 push {r7, lr}
  41078. 80119d2: b086 sub sp, #24
  41079. 80119d4: af00 add r7, sp, #0
  41080. 80119d6: 6078 str r0, [r7, #4]
  41081. SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id;
  41082. 80119d8: 687b ldr r3, [r7, #4]
  41083. 80119da: 613b str r3, [r7, #16]
  41084. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  41085. 80119dc: f3ef 8305 mrs r3, IPSR
  41086. 80119e0: 60fb str r3, [r7, #12]
  41087. return(result);
  41088. 80119e2: 68fb ldr r3, [r7, #12]
  41089. osStatus_t stat;
  41090. #ifndef USE_FreeRTOS_HEAP_1
  41091. if (IS_IRQ()) {
  41092. 80119e4: 2b00 cmp r3, #0
  41093. 80119e6: d003 beq.n 80119f0 <osSemaphoreDelete+0x20>
  41094. stat = osErrorISR;
  41095. 80119e8: f06f 0305 mvn.w r3, #5
  41096. 80119ec: 617b str r3, [r7, #20]
  41097. 80119ee: e00e b.n 8011a0e <osSemaphoreDelete+0x3e>
  41098. }
  41099. else if (hSemaphore == NULL) {
  41100. 80119f0: 693b ldr r3, [r7, #16]
  41101. 80119f2: 2b00 cmp r3, #0
  41102. 80119f4: d103 bne.n 80119fe <osSemaphoreDelete+0x2e>
  41103. stat = osErrorParameter;
  41104. 80119f6: f06f 0303 mvn.w r3, #3
  41105. 80119fa: 617b str r3, [r7, #20]
  41106. 80119fc: e007 b.n 8011a0e <osSemaphoreDelete+0x3e>
  41107. }
  41108. else {
  41109. #if (configQUEUE_REGISTRY_SIZE > 0)
  41110. vQueueUnregisterQueue (hSemaphore);
  41111. 80119fe: 6938 ldr r0, [r7, #16]
  41112. 8011a00: f001 fb2c bl 801305c <vQueueUnregisterQueue>
  41113. #endif
  41114. stat = osOK;
  41115. 8011a04: 2300 movs r3, #0
  41116. 8011a06: 617b str r3, [r7, #20]
  41117. vSemaphoreDelete (hSemaphore);
  41118. 8011a08: 6938 ldr r0, [r7, #16]
  41119. 8011a0a: f001 f9b1 bl 8012d70 <vQueueDelete>
  41120. }
  41121. #else
  41122. stat = osError;
  41123. #endif
  41124. return (stat);
  41125. 8011a0e: 697b ldr r3, [r7, #20]
  41126. }
  41127. 8011a10: 4618 mov r0, r3
  41128. 8011a12: 3718 adds r7, #24
  41129. 8011a14: 46bd mov sp, r7
  41130. 8011a16: bd80 pop {r7, pc}
  41131. 08011a18 <osMessageQueueNew>:
  41132. /*---------------------------------------------------------------------------*/
  41133. osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) {
  41134. 8011a18: b580 push {r7, lr}
  41135. 8011a1a: b08a sub sp, #40 @ 0x28
  41136. 8011a1c: af02 add r7, sp, #8
  41137. 8011a1e: 60f8 str r0, [r7, #12]
  41138. 8011a20: 60b9 str r1, [r7, #8]
  41139. 8011a22: 607a str r2, [r7, #4]
  41140. int32_t mem;
  41141. #if (configQUEUE_REGISTRY_SIZE > 0)
  41142. const char *name;
  41143. #endif
  41144. hQueue = NULL;
  41145. 8011a24: 2300 movs r3, #0
  41146. 8011a26: 61fb str r3, [r7, #28]
  41147. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  41148. 8011a28: f3ef 8305 mrs r3, IPSR
  41149. 8011a2c: 613b str r3, [r7, #16]
  41150. return(result);
  41151. 8011a2e: 693b ldr r3, [r7, #16]
  41152. if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) {
  41153. 8011a30: 2b00 cmp r3, #0
  41154. 8011a32: d15f bne.n 8011af4 <osMessageQueueNew+0xdc>
  41155. 8011a34: 68fb ldr r3, [r7, #12]
  41156. 8011a36: 2b00 cmp r3, #0
  41157. 8011a38: d05c beq.n 8011af4 <osMessageQueueNew+0xdc>
  41158. 8011a3a: 68bb ldr r3, [r7, #8]
  41159. 8011a3c: 2b00 cmp r3, #0
  41160. 8011a3e: d059 beq.n 8011af4 <osMessageQueueNew+0xdc>
  41161. mem = -1;
  41162. 8011a40: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  41163. 8011a44: 61bb str r3, [r7, #24]
  41164. if (attr != NULL) {
  41165. 8011a46: 687b ldr r3, [r7, #4]
  41166. 8011a48: 2b00 cmp r3, #0
  41167. 8011a4a: d029 beq.n 8011aa0 <osMessageQueueNew+0x88>
  41168. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  41169. 8011a4c: 687b ldr r3, [r7, #4]
  41170. 8011a4e: 689b ldr r3, [r3, #8]
  41171. 8011a50: 2b00 cmp r3, #0
  41172. 8011a52: d012 beq.n 8011a7a <osMessageQueueNew+0x62>
  41173. 8011a54: 687b ldr r3, [r7, #4]
  41174. 8011a56: 68db ldr r3, [r3, #12]
  41175. 8011a58: 2b4f cmp r3, #79 @ 0x4f
  41176. 8011a5a: d90e bls.n 8011a7a <osMessageQueueNew+0x62>
  41177. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  41178. 8011a5c: 687b ldr r3, [r7, #4]
  41179. 8011a5e: 691b ldr r3, [r3, #16]
  41180. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  41181. 8011a60: 2b00 cmp r3, #0
  41182. 8011a62: d00a beq.n 8011a7a <osMessageQueueNew+0x62>
  41183. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  41184. 8011a64: 687b ldr r3, [r7, #4]
  41185. 8011a66: 695a ldr r2, [r3, #20]
  41186. 8011a68: 68fb ldr r3, [r7, #12]
  41187. 8011a6a: 68b9 ldr r1, [r7, #8]
  41188. 8011a6c: fb01 f303 mul.w r3, r1, r3
  41189. 8011a70: 429a cmp r2, r3
  41190. 8011a72: d302 bcc.n 8011a7a <osMessageQueueNew+0x62>
  41191. mem = 1;
  41192. 8011a74: 2301 movs r3, #1
  41193. 8011a76: 61bb str r3, [r7, #24]
  41194. 8011a78: e014 b.n 8011aa4 <osMessageQueueNew+0x8c>
  41195. }
  41196. else {
  41197. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  41198. 8011a7a: 687b ldr r3, [r7, #4]
  41199. 8011a7c: 689b ldr r3, [r3, #8]
  41200. 8011a7e: 2b00 cmp r3, #0
  41201. 8011a80: d110 bne.n 8011aa4 <osMessageQueueNew+0x8c>
  41202. 8011a82: 687b ldr r3, [r7, #4]
  41203. 8011a84: 68db ldr r3, [r3, #12]
  41204. 8011a86: 2b00 cmp r3, #0
  41205. 8011a88: d10c bne.n 8011aa4 <osMessageQueueNew+0x8c>
  41206. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  41207. 8011a8a: 687b ldr r3, [r7, #4]
  41208. 8011a8c: 691b ldr r3, [r3, #16]
  41209. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  41210. 8011a8e: 2b00 cmp r3, #0
  41211. 8011a90: d108 bne.n 8011aa4 <osMessageQueueNew+0x8c>
  41212. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  41213. 8011a92: 687b ldr r3, [r7, #4]
  41214. 8011a94: 695b ldr r3, [r3, #20]
  41215. 8011a96: 2b00 cmp r3, #0
  41216. 8011a98: d104 bne.n 8011aa4 <osMessageQueueNew+0x8c>
  41217. mem = 0;
  41218. 8011a9a: 2300 movs r3, #0
  41219. 8011a9c: 61bb str r3, [r7, #24]
  41220. 8011a9e: e001 b.n 8011aa4 <osMessageQueueNew+0x8c>
  41221. }
  41222. }
  41223. }
  41224. else {
  41225. mem = 0;
  41226. 8011aa0: 2300 movs r3, #0
  41227. 8011aa2: 61bb str r3, [r7, #24]
  41228. }
  41229. if (mem == 1) {
  41230. 8011aa4: 69bb ldr r3, [r7, #24]
  41231. 8011aa6: 2b01 cmp r3, #1
  41232. 8011aa8: d10b bne.n 8011ac2 <osMessageQueueNew+0xaa>
  41233. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  41234. hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem);
  41235. 8011aaa: 687b ldr r3, [r7, #4]
  41236. 8011aac: 691a ldr r2, [r3, #16]
  41237. 8011aae: 687b ldr r3, [r7, #4]
  41238. 8011ab0: 689b ldr r3, [r3, #8]
  41239. 8011ab2: 2100 movs r1, #0
  41240. 8011ab4: 9100 str r1, [sp, #0]
  41241. 8011ab6: 68b9 ldr r1, [r7, #8]
  41242. 8011ab8: 68f8 ldr r0, [r7, #12]
  41243. 8011aba: f000 fa75 bl 8011fa8 <xQueueGenericCreateStatic>
  41244. 8011abe: 61f8 str r0, [r7, #28]
  41245. 8011ac0: e008 b.n 8011ad4 <osMessageQueueNew+0xbc>
  41246. #endif
  41247. }
  41248. else {
  41249. if (mem == 0) {
  41250. 8011ac2: 69bb ldr r3, [r7, #24]
  41251. 8011ac4: 2b00 cmp r3, #0
  41252. 8011ac6: d105 bne.n 8011ad4 <osMessageQueueNew+0xbc>
  41253. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  41254. hQueue = xQueueCreate (msg_count, msg_size);
  41255. 8011ac8: 2200 movs r2, #0
  41256. 8011aca: 68b9 ldr r1, [r7, #8]
  41257. 8011acc: 68f8 ldr r0, [r7, #12]
  41258. 8011ace: f000 fae8 bl 80120a2 <xQueueGenericCreate>
  41259. 8011ad2: 61f8 str r0, [r7, #28]
  41260. #endif
  41261. }
  41262. }
  41263. #if (configQUEUE_REGISTRY_SIZE > 0)
  41264. if (hQueue != NULL) {
  41265. 8011ad4: 69fb ldr r3, [r7, #28]
  41266. 8011ad6: 2b00 cmp r3, #0
  41267. 8011ad8: d00c beq.n 8011af4 <osMessageQueueNew+0xdc>
  41268. if (attr != NULL) {
  41269. 8011ada: 687b ldr r3, [r7, #4]
  41270. 8011adc: 2b00 cmp r3, #0
  41271. 8011ade: d003 beq.n 8011ae8 <osMessageQueueNew+0xd0>
  41272. name = attr->name;
  41273. 8011ae0: 687b ldr r3, [r7, #4]
  41274. 8011ae2: 681b ldr r3, [r3, #0]
  41275. 8011ae4: 617b str r3, [r7, #20]
  41276. 8011ae6: e001 b.n 8011aec <osMessageQueueNew+0xd4>
  41277. } else {
  41278. name = NULL;
  41279. 8011ae8: 2300 movs r3, #0
  41280. 8011aea: 617b str r3, [r7, #20]
  41281. }
  41282. vQueueAddToRegistry (hQueue, name);
  41283. 8011aec: 6979 ldr r1, [r7, #20]
  41284. 8011aee: 69f8 ldr r0, [r7, #28]
  41285. 8011af0: f001 fa8a bl 8013008 <vQueueAddToRegistry>
  41286. }
  41287. #endif
  41288. }
  41289. return ((osMessageQueueId_t)hQueue);
  41290. 8011af4: 69fb ldr r3, [r7, #28]
  41291. }
  41292. 8011af6: 4618 mov r0, r3
  41293. 8011af8: 3720 adds r7, #32
  41294. 8011afa: 46bd mov sp, r7
  41295. 8011afc: bd80 pop {r7, pc}
  41296. ...
  41297. 08011b00 <osMessageQueuePut>:
  41298. osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout) {
  41299. 8011b00: b580 push {r7, lr}
  41300. 8011b02: b088 sub sp, #32
  41301. 8011b04: af00 add r7, sp, #0
  41302. 8011b06: 60f8 str r0, [r7, #12]
  41303. 8011b08: 60b9 str r1, [r7, #8]
  41304. 8011b0a: 603b str r3, [r7, #0]
  41305. 8011b0c: 4613 mov r3, r2
  41306. 8011b0e: 71fb strb r3, [r7, #7]
  41307. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  41308. 8011b10: 68fb ldr r3, [r7, #12]
  41309. 8011b12: 61bb str r3, [r7, #24]
  41310. osStatus_t stat;
  41311. BaseType_t yield;
  41312. (void)msg_prio; /* Message priority is ignored */
  41313. stat = osOK;
  41314. 8011b14: 2300 movs r3, #0
  41315. 8011b16: 61fb str r3, [r7, #28]
  41316. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  41317. 8011b18: f3ef 8305 mrs r3, IPSR
  41318. 8011b1c: 617b str r3, [r7, #20]
  41319. return(result);
  41320. 8011b1e: 697b ldr r3, [r7, #20]
  41321. if (IS_IRQ()) {
  41322. 8011b20: 2b00 cmp r3, #0
  41323. 8011b22: d028 beq.n 8011b76 <osMessageQueuePut+0x76>
  41324. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  41325. 8011b24: 69bb ldr r3, [r7, #24]
  41326. 8011b26: 2b00 cmp r3, #0
  41327. 8011b28: d005 beq.n 8011b36 <osMessageQueuePut+0x36>
  41328. 8011b2a: 68bb ldr r3, [r7, #8]
  41329. 8011b2c: 2b00 cmp r3, #0
  41330. 8011b2e: d002 beq.n 8011b36 <osMessageQueuePut+0x36>
  41331. 8011b30: 683b ldr r3, [r7, #0]
  41332. 8011b32: 2b00 cmp r3, #0
  41333. 8011b34: d003 beq.n 8011b3e <osMessageQueuePut+0x3e>
  41334. stat = osErrorParameter;
  41335. 8011b36: f06f 0303 mvn.w r3, #3
  41336. 8011b3a: 61fb str r3, [r7, #28]
  41337. 8011b3c: e038 b.n 8011bb0 <osMessageQueuePut+0xb0>
  41338. }
  41339. else {
  41340. yield = pdFALSE;
  41341. 8011b3e: 2300 movs r3, #0
  41342. 8011b40: 613b str r3, [r7, #16]
  41343. if (xQueueSendToBackFromISR (hQueue, msg_ptr, &yield) != pdTRUE) {
  41344. 8011b42: f107 0210 add.w r2, r7, #16
  41345. 8011b46: 2300 movs r3, #0
  41346. 8011b48: 68b9 ldr r1, [r7, #8]
  41347. 8011b4a: 69b8 ldr r0, [r7, #24]
  41348. 8011b4c: f000 fd30 bl 80125b0 <xQueueGenericSendFromISR>
  41349. 8011b50: 4603 mov r3, r0
  41350. 8011b52: 2b01 cmp r3, #1
  41351. 8011b54: d003 beq.n 8011b5e <osMessageQueuePut+0x5e>
  41352. stat = osErrorResource;
  41353. 8011b56: f06f 0302 mvn.w r3, #2
  41354. 8011b5a: 61fb str r3, [r7, #28]
  41355. 8011b5c: e028 b.n 8011bb0 <osMessageQueuePut+0xb0>
  41356. } else {
  41357. portYIELD_FROM_ISR (yield);
  41358. 8011b5e: 693b ldr r3, [r7, #16]
  41359. 8011b60: 2b00 cmp r3, #0
  41360. 8011b62: d025 beq.n 8011bb0 <osMessageQueuePut+0xb0>
  41361. 8011b64: 4b15 ldr r3, [pc, #84] @ (8011bbc <osMessageQueuePut+0xbc>)
  41362. 8011b66: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  41363. 8011b6a: 601a str r2, [r3, #0]
  41364. 8011b6c: f3bf 8f4f dsb sy
  41365. 8011b70: f3bf 8f6f isb sy
  41366. 8011b74: e01c b.n 8011bb0 <osMessageQueuePut+0xb0>
  41367. }
  41368. }
  41369. }
  41370. else {
  41371. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  41372. 8011b76: 69bb ldr r3, [r7, #24]
  41373. 8011b78: 2b00 cmp r3, #0
  41374. 8011b7a: d002 beq.n 8011b82 <osMessageQueuePut+0x82>
  41375. 8011b7c: 68bb ldr r3, [r7, #8]
  41376. 8011b7e: 2b00 cmp r3, #0
  41377. 8011b80: d103 bne.n 8011b8a <osMessageQueuePut+0x8a>
  41378. stat = osErrorParameter;
  41379. 8011b82: f06f 0303 mvn.w r3, #3
  41380. 8011b86: 61fb str r3, [r7, #28]
  41381. 8011b88: e012 b.n 8011bb0 <osMessageQueuePut+0xb0>
  41382. }
  41383. else {
  41384. if (xQueueSendToBack (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  41385. 8011b8a: 2300 movs r3, #0
  41386. 8011b8c: 683a ldr r2, [r7, #0]
  41387. 8011b8e: 68b9 ldr r1, [r7, #8]
  41388. 8011b90: 69b8 ldr r0, [r7, #24]
  41389. 8011b92: f000 fc0b bl 80123ac <xQueueGenericSend>
  41390. 8011b96: 4603 mov r3, r0
  41391. 8011b98: 2b01 cmp r3, #1
  41392. 8011b9a: d009 beq.n 8011bb0 <osMessageQueuePut+0xb0>
  41393. if (timeout != 0U) {
  41394. 8011b9c: 683b ldr r3, [r7, #0]
  41395. 8011b9e: 2b00 cmp r3, #0
  41396. 8011ba0: d003 beq.n 8011baa <osMessageQueuePut+0xaa>
  41397. stat = osErrorTimeout;
  41398. 8011ba2: f06f 0301 mvn.w r3, #1
  41399. 8011ba6: 61fb str r3, [r7, #28]
  41400. 8011ba8: e002 b.n 8011bb0 <osMessageQueuePut+0xb0>
  41401. } else {
  41402. stat = osErrorResource;
  41403. 8011baa: f06f 0302 mvn.w r3, #2
  41404. 8011bae: 61fb str r3, [r7, #28]
  41405. }
  41406. }
  41407. }
  41408. }
  41409. return (stat);
  41410. 8011bb0: 69fb ldr r3, [r7, #28]
  41411. }
  41412. 8011bb2: 4618 mov r0, r3
  41413. 8011bb4: 3720 adds r7, #32
  41414. 8011bb6: 46bd mov sp, r7
  41415. 8011bb8: bd80 pop {r7, pc}
  41416. 8011bba: bf00 nop
  41417. 8011bbc: e000ed04 .word 0xe000ed04
  41418. 08011bc0 <osMessageQueueGet>:
  41419. osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) {
  41420. 8011bc0: b580 push {r7, lr}
  41421. 8011bc2: b088 sub sp, #32
  41422. 8011bc4: af00 add r7, sp, #0
  41423. 8011bc6: 60f8 str r0, [r7, #12]
  41424. 8011bc8: 60b9 str r1, [r7, #8]
  41425. 8011bca: 607a str r2, [r7, #4]
  41426. 8011bcc: 603b str r3, [r7, #0]
  41427. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  41428. 8011bce: 68fb ldr r3, [r7, #12]
  41429. 8011bd0: 61bb str r3, [r7, #24]
  41430. osStatus_t stat;
  41431. BaseType_t yield;
  41432. (void)msg_prio; /* Message priority is ignored */
  41433. stat = osOK;
  41434. 8011bd2: 2300 movs r3, #0
  41435. 8011bd4: 61fb str r3, [r7, #28]
  41436. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  41437. 8011bd6: f3ef 8305 mrs r3, IPSR
  41438. 8011bda: 617b str r3, [r7, #20]
  41439. return(result);
  41440. 8011bdc: 697b ldr r3, [r7, #20]
  41441. if (IS_IRQ()) {
  41442. 8011bde: 2b00 cmp r3, #0
  41443. 8011be0: d028 beq.n 8011c34 <osMessageQueueGet+0x74>
  41444. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  41445. 8011be2: 69bb ldr r3, [r7, #24]
  41446. 8011be4: 2b00 cmp r3, #0
  41447. 8011be6: d005 beq.n 8011bf4 <osMessageQueueGet+0x34>
  41448. 8011be8: 68bb ldr r3, [r7, #8]
  41449. 8011bea: 2b00 cmp r3, #0
  41450. 8011bec: d002 beq.n 8011bf4 <osMessageQueueGet+0x34>
  41451. 8011bee: 683b ldr r3, [r7, #0]
  41452. 8011bf0: 2b00 cmp r3, #0
  41453. 8011bf2: d003 beq.n 8011bfc <osMessageQueueGet+0x3c>
  41454. stat = osErrorParameter;
  41455. 8011bf4: f06f 0303 mvn.w r3, #3
  41456. 8011bf8: 61fb str r3, [r7, #28]
  41457. 8011bfa: e037 b.n 8011c6c <osMessageQueueGet+0xac>
  41458. }
  41459. else {
  41460. yield = pdFALSE;
  41461. 8011bfc: 2300 movs r3, #0
  41462. 8011bfe: 613b str r3, [r7, #16]
  41463. if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) {
  41464. 8011c00: f107 0310 add.w r3, r7, #16
  41465. 8011c04: 461a mov r2, r3
  41466. 8011c06: 68b9 ldr r1, [r7, #8]
  41467. 8011c08: 69b8 ldr r0, [r7, #24]
  41468. 8011c0a: f000 fff1 bl 8012bf0 <xQueueReceiveFromISR>
  41469. 8011c0e: 4603 mov r3, r0
  41470. 8011c10: 2b01 cmp r3, #1
  41471. 8011c12: d003 beq.n 8011c1c <osMessageQueueGet+0x5c>
  41472. stat = osErrorResource;
  41473. 8011c14: f06f 0302 mvn.w r3, #2
  41474. 8011c18: 61fb str r3, [r7, #28]
  41475. 8011c1a: e027 b.n 8011c6c <osMessageQueueGet+0xac>
  41476. } else {
  41477. portYIELD_FROM_ISR (yield);
  41478. 8011c1c: 693b ldr r3, [r7, #16]
  41479. 8011c1e: 2b00 cmp r3, #0
  41480. 8011c20: d024 beq.n 8011c6c <osMessageQueueGet+0xac>
  41481. 8011c22: 4b15 ldr r3, [pc, #84] @ (8011c78 <osMessageQueueGet+0xb8>)
  41482. 8011c24: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  41483. 8011c28: 601a str r2, [r3, #0]
  41484. 8011c2a: f3bf 8f4f dsb sy
  41485. 8011c2e: f3bf 8f6f isb sy
  41486. 8011c32: e01b b.n 8011c6c <osMessageQueueGet+0xac>
  41487. }
  41488. }
  41489. }
  41490. else {
  41491. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  41492. 8011c34: 69bb ldr r3, [r7, #24]
  41493. 8011c36: 2b00 cmp r3, #0
  41494. 8011c38: d002 beq.n 8011c40 <osMessageQueueGet+0x80>
  41495. 8011c3a: 68bb ldr r3, [r7, #8]
  41496. 8011c3c: 2b00 cmp r3, #0
  41497. 8011c3e: d103 bne.n 8011c48 <osMessageQueueGet+0x88>
  41498. stat = osErrorParameter;
  41499. 8011c40: f06f 0303 mvn.w r3, #3
  41500. 8011c44: 61fb str r3, [r7, #28]
  41501. 8011c46: e011 b.n 8011c6c <osMessageQueueGet+0xac>
  41502. }
  41503. else {
  41504. if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  41505. 8011c48: 683a ldr r2, [r7, #0]
  41506. 8011c4a: 68b9 ldr r1, [r7, #8]
  41507. 8011c4c: 69b8 ldr r0, [r7, #24]
  41508. 8011c4e: f000 fddd bl 801280c <xQueueReceive>
  41509. 8011c52: 4603 mov r3, r0
  41510. 8011c54: 2b01 cmp r3, #1
  41511. 8011c56: d009 beq.n 8011c6c <osMessageQueueGet+0xac>
  41512. if (timeout != 0U) {
  41513. 8011c58: 683b ldr r3, [r7, #0]
  41514. 8011c5a: 2b00 cmp r3, #0
  41515. 8011c5c: d003 beq.n 8011c66 <osMessageQueueGet+0xa6>
  41516. stat = osErrorTimeout;
  41517. 8011c5e: f06f 0301 mvn.w r3, #1
  41518. 8011c62: 61fb str r3, [r7, #28]
  41519. 8011c64: e002 b.n 8011c6c <osMessageQueueGet+0xac>
  41520. } else {
  41521. stat = osErrorResource;
  41522. 8011c66: f06f 0302 mvn.w r3, #2
  41523. 8011c6a: 61fb str r3, [r7, #28]
  41524. }
  41525. }
  41526. }
  41527. }
  41528. return (stat);
  41529. 8011c6c: 69fb ldr r3, [r7, #28]
  41530. }
  41531. 8011c6e: 4618 mov r0, r3
  41532. 8011c70: 3720 adds r7, #32
  41533. 8011c72: 46bd mov sp, r7
  41534. 8011c74: bd80 pop {r7, pc}
  41535. 8011c76: bf00 nop
  41536. 8011c78: e000ed04 .word 0xe000ed04
  41537. 08011c7c <osMessageQueueGetCount>:
  41538. }
  41539. return (size);
  41540. }
  41541. uint32_t osMessageQueueGetCount (osMessageQueueId_t mq_id) {
  41542. 8011c7c: b580 push {r7, lr}
  41543. 8011c7e: b086 sub sp, #24
  41544. 8011c80: af00 add r7, sp, #0
  41545. 8011c82: 6078 str r0, [r7, #4]
  41546. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  41547. 8011c84: 687b ldr r3, [r7, #4]
  41548. 8011c86: 613b str r3, [r7, #16]
  41549. UBaseType_t count;
  41550. if (hQueue == NULL) {
  41551. 8011c88: 693b ldr r3, [r7, #16]
  41552. 8011c8a: 2b00 cmp r3, #0
  41553. 8011c8c: d102 bne.n 8011c94 <osMessageQueueGetCount+0x18>
  41554. count = 0U;
  41555. 8011c8e: 2300 movs r3, #0
  41556. 8011c90: 617b str r3, [r7, #20]
  41557. 8011c92: e00e b.n 8011cb2 <osMessageQueueGetCount+0x36>
  41558. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  41559. 8011c94: f3ef 8305 mrs r3, IPSR
  41560. 8011c98: 60fb str r3, [r7, #12]
  41561. return(result);
  41562. 8011c9a: 68fb ldr r3, [r7, #12]
  41563. }
  41564. else if (IS_IRQ()) {
  41565. 8011c9c: 2b00 cmp r3, #0
  41566. 8011c9e: d004 beq.n 8011caa <osMessageQueueGetCount+0x2e>
  41567. count = uxQueueMessagesWaitingFromISR (hQueue);
  41568. 8011ca0: 6938 ldr r0, [r7, #16]
  41569. 8011ca2: f001 f846 bl 8012d32 <uxQueueMessagesWaitingFromISR>
  41570. 8011ca6: 6178 str r0, [r7, #20]
  41571. 8011ca8: e003 b.n 8011cb2 <osMessageQueueGetCount+0x36>
  41572. }
  41573. else {
  41574. count = uxQueueMessagesWaiting (hQueue);
  41575. 8011caa: 6938 ldr r0, [r7, #16]
  41576. 8011cac: f001 f822 bl 8012cf4 <uxQueueMessagesWaiting>
  41577. 8011cb0: 6178 str r0, [r7, #20]
  41578. }
  41579. return ((uint32_t)count);
  41580. 8011cb2: 697b ldr r3, [r7, #20]
  41581. }
  41582. 8011cb4: 4618 mov r0, r3
  41583. 8011cb6: 3718 adds r7, #24
  41584. 8011cb8: 46bd mov sp, r7
  41585. 8011cba: bd80 pop {r7, pc}
  41586. 08011cbc <osMessageQueueDelete>:
  41587. }
  41588. return (stat);
  41589. }
  41590. osStatus_t osMessageQueueDelete (osMessageQueueId_t mq_id) {
  41591. 8011cbc: b580 push {r7, lr}
  41592. 8011cbe: b086 sub sp, #24
  41593. 8011cc0: af00 add r7, sp, #0
  41594. 8011cc2: 6078 str r0, [r7, #4]
  41595. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  41596. 8011cc4: 687b ldr r3, [r7, #4]
  41597. 8011cc6: 613b str r3, [r7, #16]
  41598. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  41599. 8011cc8: f3ef 8305 mrs r3, IPSR
  41600. 8011ccc: 60fb str r3, [r7, #12]
  41601. return(result);
  41602. 8011cce: 68fb ldr r3, [r7, #12]
  41603. osStatus_t stat;
  41604. #ifndef USE_FreeRTOS_HEAP_1
  41605. if (IS_IRQ()) {
  41606. 8011cd0: 2b00 cmp r3, #0
  41607. 8011cd2: d003 beq.n 8011cdc <osMessageQueueDelete+0x20>
  41608. stat = osErrorISR;
  41609. 8011cd4: f06f 0305 mvn.w r3, #5
  41610. 8011cd8: 617b str r3, [r7, #20]
  41611. 8011cda: e00e b.n 8011cfa <osMessageQueueDelete+0x3e>
  41612. }
  41613. else if (hQueue == NULL) {
  41614. 8011cdc: 693b ldr r3, [r7, #16]
  41615. 8011cde: 2b00 cmp r3, #0
  41616. 8011ce0: d103 bne.n 8011cea <osMessageQueueDelete+0x2e>
  41617. stat = osErrorParameter;
  41618. 8011ce2: f06f 0303 mvn.w r3, #3
  41619. 8011ce6: 617b str r3, [r7, #20]
  41620. 8011ce8: e007 b.n 8011cfa <osMessageQueueDelete+0x3e>
  41621. }
  41622. else {
  41623. #if (configQUEUE_REGISTRY_SIZE > 0)
  41624. vQueueUnregisterQueue (hQueue);
  41625. 8011cea: 6938 ldr r0, [r7, #16]
  41626. 8011cec: f001 f9b6 bl 801305c <vQueueUnregisterQueue>
  41627. #endif
  41628. stat = osOK;
  41629. 8011cf0: 2300 movs r3, #0
  41630. 8011cf2: 617b str r3, [r7, #20]
  41631. vQueueDelete (hQueue);
  41632. 8011cf4: 6938 ldr r0, [r7, #16]
  41633. 8011cf6: f001 f83b bl 8012d70 <vQueueDelete>
  41634. }
  41635. #else
  41636. stat = osError;
  41637. #endif
  41638. return (stat);
  41639. 8011cfa: 697b ldr r3, [r7, #20]
  41640. }
  41641. 8011cfc: 4618 mov r0, r3
  41642. 8011cfe: 3718 adds r7, #24
  41643. 8011d00: 46bd mov sp, r7
  41644. 8011d02: bd80 pop {r7, pc}
  41645. 08011d04 <vApplicationGetIdleTaskMemory>:
  41646. /*
  41647. vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  41648. equals to 1 and is required for static memory allocation support.
  41649. */
  41650. __WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) {
  41651. 8011d04: b480 push {r7}
  41652. 8011d06: b085 sub sp, #20
  41653. 8011d08: af00 add r7, sp, #0
  41654. 8011d0a: 60f8 str r0, [r7, #12]
  41655. 8011d0c: 60b9 str r1, [r7, #8]
  41656. 8011d0e: 607a str r2, [r7, #4]
  41657. /* Idle task control block and stack */
  41658. static StaticTask_t Idle_TCB;
  41659. static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE];
  41660. *ppxIdleTaskTCBBuffer = &Idle_TCB;
  41661. 8011d10: 68fb ldr r3, [r7, #12]
  41662. 8011d12: 4a07 ldr r2, [pc, #28] @ (8011d30 <vApplicationGetIdleTaskMemory+0x2c>)
  41663. 8011d14: 601a str r2, [r3, #0]
  41664. *ppxIdleTaskStackBuffer = &Idle_Stack[0];
  41665. 8011d16: 68bb ldr r3, [r7, #8]
  41666. 8011d18: 4a06 ldr r2, [pc, #24] @ (8011d34 <vApplicationGetIdleTaskMemory+0x30>)
  41667. 8011d1a: 601a str r2, [r3, #0]
  41668. *pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE;
  41669. 8011d1c: 687b ldr r3, [r7, #4]
  41670. 8011d1e: f44f 7200 mov.w r2, #512 @ 0x200
  41671. 8011d22: 601a str r2, [r3, #0]
  41672. }
  41673. 8011d24: bf00 nop
  41674. 8011d26: 3714 adds r7, #20
  41675. 8011d28: 46bd mov sp, r7
  41676. 8011d2a: f85d 7b04 ldr.w r7, [sp], #4
  41677. 8011d2e: 4770 bx lr
  41678. 8011d30: 240023e0 .word 0x240023e0
  41679. 8011d34: 24002488 .word 0x24002488
  41680. 08011d38 <vApplicationGetTimerTaskMemory>:
  41681. /*
  41682. vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  41683. equals to 1 and is required for static memory allocation support.
  41684. */
  41685. __WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) {
  41686. 8011d38: b480 push {r7}
  41687. 8011d3a: b085 sub sp, #20
  41688. 8011d3c: af00 add r7, sp, #0
  41689. 8011d3e: 60f8 str r0, [r7, #12]
  41690. 8011d40: 60b9 str r1, [r7, #8]
  41691. 8011d42: 607a str r2, [r7, #4]
  41692. /* Timer task control block and stack */
  41693. static StaticTask_t Timer_TCB;
  41694. static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH];
  41695. *ppxTimerTaskTCBBuffer = &Timer_TCB;
  41696. 8011d44: 68fb ldr r3, [r7, #12]
  41697. 8011d46: 4a07 ldr r2, [pc, #28] @ (8011d64 <vApplicationGetTimerTaskMemory+0x2c>)
  41698. 8011d48: 601a str r2, [r3, #0]
  41699. *ppxTimerTaskStackBuffer = &Timer_Stack[0];
  41700. 8011d4a: 68bb ldr r3, [r7, #8]
  41701. 8011d4c: 4a06 ldr r2, [pc, #24] @ (8011d68 <vApplicationGetTimerTaskMemory+0x30>)
  41702. 8011d4e: 601a str r2, [r3, #0]
  41703. *pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH;
  41704. 8011d50: 687b ldr r3, [r7, #4]
  41705. 8011d52: f44f 6280 mov.w r2, #1024 @ 0x400
  41706. 8011d56: 601a str r2, [r3, #0]
  41707. }
  41708. 8011d58: bf00 nop
  41709. 8011d5a: 3714 adds r7, #20
  41710. 8011d5c: 46bd mov sp, r7
  41711. 8011d5e: f85d 7b04 ldr.w r7, [sp], #4
  41712. 8011d62: 4770 bx lr
  41713. 8011d64: 24002c88 .word 0x24002c88
  41714. 8011d68: 24002d30 .word 0x24002d30
  41715. 08011d6c <vListInitialise>:
  41716. /*-----------------------------------------------------------
  41717. * PUBLIC LIST API documented in list.h
  41718. *----------------------------------------------------------*/
  41719. void vListInitialise( List_t * const pxList )
  41720. {
  41721. 8011d6c: b480 push {r7}
  41722. 8011d6e: b083 sub sp, #12
  41723. 8011d70: af00 add r7, sp, #0
  41724. 8011d72: 6078 str r0, [r7, #4]
  41725. /* The list structure contains a list item which is used to mark the
  41726. end of the list. To initialise the list the list end is inserted
  41727. as the only list entry. */
  41728. 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. */
  41729. 8011d74: 687b ldr r3, [r7, #4]
  41730. 8011d76: f103 0208 add.w r2, r3, #8
  41731. 8011d7a: 687b ldr r3, [r7, #4]
  41732. 8011d7c: 605a str r2, [r3, #4]
  41733. /* The list end value is the highest possible value in the list to
  41734. ensure it remains at the end of the list. */
  41735. pxList->xListEnd.xItemValue = portMAX_DELAY;
  41736. 8011d7e: 687b ldr r3, [r7, #4]
  41737. 8011d80: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  41738. 8011d84: 609a str r2, [r3, #8]
  41739. /* The list end next and previous pointers point to itself so we know
  41740. when the list is empty. */
  41741. 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. */
  41742. 8011d86: 687b ldr r3, [r7, #4]
  41743. 8011d88: f103 0208 add.w r2, r3, #8
  41744. 8011d8c: 687b ldr r3, [r7, #4]
  41745. 8011d8e: 60da str r2, [r3, #12]
  41746. 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. */
  41747. 8011d90: 687b ldr r3, [r7, #4]
  41748. 8011d92: f103 0208 add.w r2, r3, #8
  41749. 8011d96: 687b ldr r3, [r7, #4]
  41750. 8011d98: 611a str r2, [r3, #16]
  41751. pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
  41752. 8011d9a: 687b ldr r3, [r7, #4]
  41753. 8011d9c: 2200 movs r2, #0
  41754. 8011d9e: 601a str r2, [r3, #0]
  41755. /* Write known values into the list if
  41756. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  41757. listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
  41758. listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
  41759. }
  41760. 8011da0: bf00 nop
  41761. 8011da2: 370c adds r7, #12
  41762. 8011da4: 46bd mov sp, r7
  41763. 8011da6: f85d 7b04 ldr.w r7, [sp], #4
  41764. 8011daa: 4770 bx lr
  41765. 08011dac <vListInitialiseItem>:
  41766. /*-----------------------------------------------------------*/
  41767. void vListInitialiseItem( ListItem_t * const pxItem )
  41768. {
  41769. 8011dac: b480 push {r7}
  41770. 8011dae: b083 sub sp, #12
  41771. 8011db0: af00 add r7, sp, #0
  41772. 8011db2: 6078 str r0, [r7, #4]
  41773. /* Make sure the list item is not recorded as being on a list. */
  41774. pxItem->pxContainer = NULL;
  41775. 8011db4: 687b ldr r3, [r7, #4]
  41776. 8011db6: 2200 movs r2, #0
  41777. 8011db8: 611a str r2, [r3, #16]
  41778. /* Write known values into the list item if
  41779. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  41780. listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  41781. listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  41782. }
  41783. 8011dba: bf00 nop
  41784. 8011dbc: 370c adds r7, #12
  41785. 8011dbe: 46bd mov sp, r7
  41786. 8011dc0: f85d 7b04 ldr.w r7, [sp], #4
  41787. 8011dc4: 4770 bx lr
  41788. 08011dc6 <vListInsertEnd>:
  41789. /*-----------------------------------------------------------*/
  41790. void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
  41791. {
  41792. 8011dc6: b480 push {r7}
  41793. 8011dc8: b085 sub sp, #20
  41794. 8011dca: af00 add r7, sp, #0
  41795. 8011dcc: 6078 str r0, [r7, #4]
  41796. 8011dce: 6039 str r1, [r7, #0]
  41797. ListItem_t * const pxIndex = pxList->pxIndex;
  41798. 8011dd0: 687b ldr r3, [r7, #4]
  41799. 8011dd2: 685b ldr r3, [r3, #4]
  41800. 8011dd4: 60fb str r3, [r7, #12]
  41801. listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
  41802. /* Insert a new list item into pxList, but rather than sort the list,
  41803. makes the new list item the last item to be removed by a call to
  41804. listGET_OWNER_OF_NEXT_ENTRY(). */
  41805. pxNewListItem->pxNext = pxIndex;
  41806. 8011dd6: 683b ldr r3, [r7, #0]
  41807. 8011dd8: 68fa ldr r2, [r7, #12]
  41808. 8011dda: 605a str r2, [r3, #4]
  41809. pxNewListItem->pxPrevious = pxIndex->pxPrevious;
  41810. 8011ddc: 68fb ldr r3, [r7, #12]
  41811. 8011dde: 689a ldr r2, [r3, #8]
  41812. 8011de0: 683b ldr r3, [r7, #0]
  41813. 8011de2: 609a str r2, [r3, #8]
  41814. /* Only used during decision coverage testing. */
  41815. mtCOVERAGE_TEST_DELAY();
  41816. pxIndex->pxPrevious->pxNext = pxNewListItem;
  41817. 8011de4: 68fb ldr r3, [r7, #12]
  41818. 8011de6: 689b ldr r3, [r3, #8]
  41819. 8011de8: 683a ldr r2, [r7, #0]
  41820. 8011dea: 605a str r2, [r3, #4]
  41821. pxIndex->pxPrevious = pxNewListItem;
  41822. 8011dec: 68fb ldr r3, [r7, #12]
  41823. 8011dee: 683a ldr r2, [r7, #0]
  41824. 8011df0: 609a str r2, [r3, #8]
  41825. /* Remember which list the item is in. */
  41826. pxNewListItem->pxContainer = pxList;
  41827. 8011df2: 683b ldr r3, [r7, #0]
  41828. 8011df4: 687a ldr r2, [r7, #4]
  41829. 8011df6: 611a str r2, [r3, #16]
  41830. ( pxList->uxNumberOfItems )++;
  41831. 8011df8: 687b ldr r3, [r7, #4]
  41832. 8011dfa: 681b ldr r3, [r3, #0]
  41833. 8011dfc: 1c5a adds r2, r3, #1
  41834. 8011dfe: 687b ldr r3, [r7, #4]
  41835. 8011e00: 601a str r2, [r3, #0]
  41836. }
  41837. 8011e02: bf00 nop
  41838. 8011e04: 3714 adds r7, #20
  41839. 8011e06: 46bd mov sp, r7
  41840. 8011e08: f85d 7b04 ldr.w r7, [sp], #4
  41841. 8011e0c: 4770 bx lr
  41842. 08011e0e <vListInsert>:
  41843. /*-----------------------------------------------------------*/
  41844. void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
  41845. {
  41846. 8011e0e: b480 push {r7}
  41847. 8011e10: b085 sub sp, #20
  41848. 8011e12: af00 add r7, sp, #0
  41849. 8011e14: 6078 str r0, [r7, #4]
  41850. 8011e16: 6039 str r1, [r7, #0]
  41851. ListItem_t *pxIterator;
  41852. const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
  41853. 8011e18: 683b ldr r3, [r7, #0]
  41854. 8011e1a: 681b ldr r3, [r3, #0]
  41855. 8011e1c: 60bb str r3, [r7, #8]
  41856. new list item should be placed after it. This ensures that TCBs which are
  41857. stored in ready lists (all of which have the same xItemValue value) get a
  41858. share of the CPU. However, if the xItemValue is the same as the back marker
  41859. the iteration loop below will not end. Therefore the value is checked
  41860. first, and the algorithm slightly modified if necessary. */
  41861. if( xValueOfInsertion == portMAX_DELAY )
  41862. 8011e1e: 68bb ldr r3, [r7, #8]
  41863. 8011e20: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  41864. 8011e24: d103 bne.n 8011e2e <vListInsert+0x20>
  41865. {
  41866. pxIterator = pxList->xListEnd.pxPrevious;
  41867. 8011e26: 687b ldr r3, [r7, #4]
  41868. 8011e28: 691b ldr r3, [r3, #16]
  41869. 8011e2a: 60fb str r3, [r7, #12]
  41870. 8011e2c: e00c b.n 8011e48 <vListInsert+0x3a>
  41871. 4) Using a queue or semaphore before it has been initialised or
  41872. before the scheduler has been started (are interrupts firing
  41873. before vTaskStartScheduler() has been called?).
  41874. **********************************************************************/
  41875. 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. */
  41876. 8011e2e: 687b ldr r3, [r7, #4]
  41877. 8011e30: 3308 adds r3, #8
  41878. 8011e32: 60fb str r3, [r7, #12]
  41879. 8011e34: e002 b.n 8011e3c <vListInsert+0x2e>
  41880. 8011e36: 68fb ldr r3, [r7, #12]
  41881. 8011e38: 685b ldr r3, [r3, #4]
  41882. 8011e3a: 60fb str r3, [r7, #12]
  41883. 8011e3c: 68fb ldr r3, [r7, #12]
  41884. 8011e3e: 685b ldr r3, [r3, #4]
  41885. 8011e40: 681b ldr r3, [r3, #0]
  41886. 8011e42: 68ba ldr r2, [r7, #8]
  41887. 8011e44: 429a cmp r2, r3
  41888. 8011e46: d2f6 bcs.n 8011e36 <vListInsert+0x28>
  41889. /* There is nothing to do here, just iterating to the wanted
  41890. insertion position. */
  41891. }
  41892. }
  41893. pxNewListItem->pxNext = pxIterator->pxNext;
  41894. 8011e48: 68fb ldr r3, [r7, #12]
  41895. 8011e4a: 685a ldr r2, [r3, #4]
  41896. 8011e4c: 683b ldr r3, [r7, #0]
  41897. 8011e4e: 605a str r2, [r3, #4]
  41898. pxNewListItem->pxNext->pxPrevious = pxNewListItem;
  41899. 8011e50: 683b ldr r3, [r7, #0]
  41900. 8011e52: 685b ldr r3, [r3, #4]
  41901. 8011e54: 683a ldr r2, [r7, #0]
  41902. 8011e56: 609a str r2, [r3, #8]
  41903. pxNewListItem->pxPrevious = pxIterator;
  41904. 8011e58: 683b ldr r3, [r7, #0]
  41905. 8011e5a: 68fa ldr r2, [r7, #12]
  41906. 8011e5c: 609a str r2, [r3, #8]
  41907. pxIterator->pxNext = pxNewListItem;
  41908. 8011e5e: 68fb ldr r3, [r7, #12]
  41909. 8011e60: 683a ldr r2, [r7, #0]
  41910. 8011e62: 605a str r2, [r3, #4]
  41911. /* Remember which list the item is in. This allows fast removal of the
  41912. item later. */
  41913. pxNewListItem->pxContainer = pxList;
  41914. 8011e64: 683b ldr r3, [r7, #0]
  41915. 8011e66: 687a ldr r2, [r7, #4]
  41916. 8011e68: 611a str r2, [r3, #16]
  41917. ( pxList->uxNumberOfItems )++;
  41918. 8011e6a: 687b ldr r3, [r7, #4]
  41919. 8011e6c: 681b ldr r3, [r3, #0]
  41920. 8011e6e: 1c5a adds r2, r3, #1
  41921. 8011e70: 687b ldr r3, [r7, #4]
  41922. 8011e72: 601a str r2, [r3, #0]
  41923. }
  41924. 8011e74: bf00 nop
  41925. 8011e76: 3714 adds r7, #20
  41926. 8011e78: 46bd mov sp, r7
  41927. 8011e7a: f85d 7b04 ldr.w r7, [sp], #4
  41928. 8011e7e: 4770 bx lr
  41929. 08011e80 <uxListRemove>:
  41930. /*-----------------------------------------------------------*/
  41931. UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
  41932. {
  41933. 8011e80: b480 push {r7}
  41934. 8011e82: b085 sub sp, #20
  41935. 8011e84: af00 add r7, sp, #0
  41936. 8011e86: 6078 str r0, [r7, #4]
  41937. /* The list item knows which list it is in. Obtain the list from the list
  41938. item. */
  41939. List_t * const pxList = pxItemToRemove->pxContainer;
  41940. 8011e88: 687b ldr r3, [r7, #4]
  41941. 8011e8a: 691b ldr r3, [r3, #16]
  41942. 8011e8c: 60fb str r3, [r7, #12]
  41943. pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
  41944. 8011e8e: 687b ldr r3, [r7, #4]
  41945. 8011e90: 685b ldr r3, [r3, #4]
  41946. 8011e92: 687a ldr r2, [r7, #4]
  41947. 8011e94: 6892 ldr r2, [r2, #8]
  41948. 8011e96: 609a str r2, [r3, #8]
  41949. pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
  41950. 8011e98: 687b ldr r3, [r7, #4]
  41951. 8011e9a: 689b ldr r3, [r3, #8]
  41952. 8011e9c: 687a ldr r2, [r7, #4]
  41953. 8011e9e: 6852 ldr r2, [r2, #4]
  41954. 8011ea0: 605a str r2, [r3, #4]
  41955. /* Only used during decision coverage testing. */
  41956. mtCOVERAGE_TEST_DELAY();
  41957. /* Make sure the index is left pointing to a valid item. */
  41958. if( pxList->pxIndex == pxItemToRemove )
  41959. 8011ea2: 68fb ldr r3, [r7, #12]
  41960. 8011ea4: 685b ldr r3, [r3, #4]
  41961. 8011ea6: 687a ldr r2, [r7, #4]
  41962. 8011ea8: 429a cmp r2, r3
  41963. 8011eaa: d103 bne.n 8011eb4 <uxListRemove+0x34>
  41964. {
  41965. pxList->pxIndex = pxItemToRemove->pxPrevious;
  41966. 8011eac: 687b ldr r3, [r7, #4]
  41967. 8011eae: 689a ldr r2, [r3, #8]
  41968. 8011eb0: 68fb ldr r3, [r7, #12]
  41969. 8011eb2: 605a str r2, [r3, #4]
  41970. else
  41971. {
  41972. mtCOVERAGE_TEST_MARKER();
  41973. }
  41974. pxItemToRemove->pxContainer = NULL;
  41975. 8011eb4: 687b ldr r3, [r7, #4]
  41976. 8011eb6: 2200 movs r2, #0
  41977. 8011eb8: 611a str r2, [r3, #16]
  41978. ( pxList->uxNumberOfItems )--;
  41979. 8011eba: 68fb ldr r3, [r7, #12]
  41980. 8011ebc: 681b ldr r3, [r3, #0]
  41981. 8011ebe: 1e5a subs r2, r3, #1
  41982. 8011ec0: 68fb ldr r3, [r7, #12]
  41983. 8011ec2: 601a str r2, [r3, #0]
  41984. return pxList->uxNumberOfItems;
  41985. 8011ec4: 68fb ldr r3, [r7, #12]
  41986. 8011ec6: 681b ldr r3, [r3, #0]
  41987. }
  41988. 8011ec8: 4618 mov r0, r3
  41989. 8011eca: 3714 adds r7, #20
  41990. 8011ecc: 46bd mov sp, r7
  41991. 8011ece: f85d 7b04 ldr.w r7, [sp], #4
  41992. 8011ed2: 4770 bx lr
  41993. 08011ed4 <xQueueGenericReset>:
  41994. } \
  41995. taskEXIT_CRITICAL()
  41996. /*-----------------------------------------------------------*/
  41997. BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
  41998. {
  41999. 8011ed4: b580 push {r7, lr}
  42000. 8011ed6: b084 sub sp, #16
  42001. 8011ed8: af00 add r7, sp, #0
  42002. 8011eda: 6078 str r0, [r7, #4]
  42003. 8011edc: 6039 str r1, [r7, #0]
  42004. Queue_t * const pxQueue = xQueue;
  42005. 8011ede: 687b ldr r3, [r7, #4]
  42006. 8011ee0: 60fb str r3, [r7, #12]
  42007. configASSERT( pxQueue );
  42008. 8011ee2: 68fb ldr r3, [r7, #12]
  42009. 8011ee4: 2b00 cmp r3, #0
  42010. 8011ee6: d10b bne.n 8011f00 <xQueueGenericReset+0x2c>
  42011. portFORCE_INLINE static void vPortRaiseBASEPRI( void )
  42012. {
  42013. uint32_t ulNewBASEPRI;
  42014. __asm volatile
  42015. 8011ee8: f04f 0350 mov.w r3, #80 @ 0x50
  42016. 8011eec: f383 8811 msr BASEPRI, r3
  42017. 8011ef0: f3bf 8f6f isb sy
  42018. 8011ef4: f3bf 8f4f dsb sy
  42019. 8011ef8: 60bb str r3, [r7, #8]
  42020. " msr basepri, %0 \n" \
  42021. " isb \n" \
  42022. " dsb \n" \
  42023. :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  42024. );
  42025. }
  42026. 8011efa: bf00 nop
  42027. 8011efc: bf00 nop
  42028. 8011efe: e7fd b.n 8011efc <xQueueGenericReset+0x28>
  42029. taskENTER_CRITICAL();
  42030. 8011f00: f003 fcda bl 80158b8 <vPortEnterCritical>
  42031. {
  42032. pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  42033. 8011f04: 68fb ldr r3, [r7, #12]
  42034. 8011f06: 681a ldr r2, [r3, #0]
  42035. 8011f08: 68fb ldr r3, [r7, #12]
  42036. 8011f0a: 6bdb ldr r3, [r3, #60] @ 0x3c
  42037. 8011f0c: 68f9 ldr r1, [r7, #12]
  42038. 8011f0e: 6c09 ldr r1, [r1, #64] @ 0x40
  42039. 8011f10: fb01 f303 mul.w r3, r1, r3
  42040. 8011f14: 441a add r2, r3
  42041. 8011f16: 68fb ldr r3, [r7, #12]
  42042. 8011f18: 609a str r2, [r3, #8]
  42043. pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
  42044. 8011f1a: 68fb ldr r3, [r7, #12]
  42045. 8011f1c: 2200 movs r2, #0
  42046. 8011f1e: 639a str r2, [r3, #56] @ 0x38
  42047. pxQueue->pcWriteTo = pxQueue->pcHead;
  42048. 8011f20: 68fb ldr r3, [r7, #12]
  42049. 8011f22: 681a ldr r2, [r3, #0]
  42050. 8011f24: 68fb ldr r3, [r7, #12]
  42051. 8011f26: 605a str r2, [r3, #4]
  42052. 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. */
  42053. 8011f28: 68fb ldr r3, [r7, #12]
  42054. 8011f2a: 681a ldr r2, [r3, #0]
  42055. 8011f2c: 68fb ldr r3, [r7, #12]
  42056. 8011f2e: 6bdb ldr r3, [r3, #60] @ 0x3c
  42057. 8011f30: 3b01 subs r3, #1
  42058. 8011f32: 68f9 ldr r1, [r7, #12]
  42059. 8011f34: 6c09 ldr r1, [r1, #64] @ 0x40
  42060. 8011f36: fb01 f303 mul.w r3, r1, r3
  42061. 8011f3a: 441a add r2, r3
  42062. 8011f3c: 68fb ldr r3, [r7, #12]
  42063. 8011f3e: 60da str r2, [r3, #12]
  42064. pxQueue->cRxLock = queueUNLOCKED;
  42065. 8011f40: 68fb ldr r3, [r7, #12]
  42066. 8011f42: 22ff movs r2, #255 @ 0xff
  42067. 8011f44: f883 2044 strb.w r2, [r3, #68] @ 0x44
  42068. pxQueue->cTxLock = queueUNLOCKED;
  42069. 8011f48: 68fb ldr r3, [r7, #12]
  42070. 8011f4a: 22ff movs r2, #255 @ 0xff
  42071. 8011f4c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  42072. if( xNewQueue == pdFALSE )
  42073. 8011f50: 683b ldr r3, [r7, #0]
  42074. 8011f52: 2b00 cmp r3, #0
  42075. 8011f54: d114 bne.n 8011f80 <xQueueGenericReset+0xac>
  42076. /* If there are tasks blocked waiting to read from the queue, then
  42077. the tasks will remain blocked as after this function exits the queue
  42078. will still be empty. If there are tasks blocked waiting to write to
  42079. the queue, then one should be unblocked as after this function exits
  42080. it will be possible to write to it. */
  42081. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  42082. 8011f56: 68fb ldr r3, [r7, #12]
  42083. 8011f58: 691b ldr r3, [r3, #16]
  42084. 8011f5a: 2b00 cmp r3, #0
  42085. 8011f5c: d01a beq.n 8011f94 <xQueueGenericReset+0xc0>
  42086. {
  42087. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  42088. 8011f5e: 68fb ldr r3, [r7, #12]
  42089. 8011f60: 3310 adds r3, #16
  42090. 8011f62: 4618 mov r0, r3
  42091. 8011f64: f002 f922 bl 80141ac <xTaskRemoveFromEventList>
  42092. 8011f68: 4603 mov r3, r0
  42093. 8011f6a: 2b00 cmp r3, #0
  42094. 8011f6c: d012 beq.n 8011f94 <xQueueGenericReset+0xc0>
  42095. {
  42096. queueYIELD_IF_USING_PREEMPTION();
  42097. 8011f6e: 4b0d ldr r3, [pc, #52] @ (8011fa4 <xQueueGenericReset+0xd0>)
  42098. 8011f70: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  42099. 8011f74: 601a str r2, [r3, #0]
  42100. 8011f76: f3bf 8f4f dsb sy
  42101. 8011f7a: f3bf 8f6f isb sy
  42102. 8011f7e: e009 b.n 8011f94 <xQueueGenericReset+0xc0>
  42103. }
  42104. }
  42105. else
  42106. {
  42107. /* Ensure the event queues start in the correct state. */
  42108. vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
  42109. 8011f80: 68fb ldr r3, [r7, #12]
  42110. 8011f82: 3310 adds r3, #16
  42111. 8011f84: 4618 mov r0, r3
  42112. 8011f86: f7ff fef1 bl 8011d6c <vListInitialise>
  42113. vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
  42114. 8011f8a: 68fb ldr r3, [r7, #12]
  42115. 8011f8c: 3324 adds r3, #36 @ 0x24
  42116. 8011f8e: 4618 mov r0, r3
  42117. 8011f90: f7ff feec bl 8011d6c <vListInitialise>
  42118. }
  42119. }
  42120. taskEXIT_CRITICAL();
  42121. 8011f94: f003 fcc2 bl 801591c <vPortExitCritical>
  42122. /* A value is returned for calling semantic consistency with previous
  42123. versions. */
  42124. return pdPASS;
  42125. 8011f98: 2301 movs r3, #1
  42126. }
  42127. 8011f9a: 4618 mov r0, r3
  42128. 8011f9c: 3710 adds r7, #16
  42129. 8011f9e: 46bd mov sp, r7
  42130. 8011fa0: bd80 pop {r7, pc}
  42131. 8011fa2: bf00 nop
  42132. 8011fa4: e000ed04 .word 0xe000ed04
  42133. 08011fa8 <xQueueGenericCreateStatic>:
  42134. /*-----------------------------------------------------------*/
  42135. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  42136. QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType )
  42137. {
  42138. 8011fa8: b580 push {r7, lr}
  42139. 8011faa: b08e sub sp, #56 @ 0x38
  42140. 8011fac: af02 add r7, sp, #8
  42141. 8011fae: 60f8 str r0, [r7, #12]
  42142. 8011fb0: 60b9 str r1, [r7, #8]
  42143. 8011fb2: 607a str r2, [r7, #4]
  42144. 8011fb4: 603b str r3, [r7, #0]
  42145. Queue_t *pxNewQueue;
  42146. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  42147. 8011fb6: 68fb ldr r3, [r7, #12]
  42148. 8011fb8: 2b00 cmp r3, #0
  42149. 8011fba: d10b bne.n 8011fd4 <xQueueGenericCreateStatic+0x2c>
  42150. __asm volatile
  42151. 8011fbc: f04f 0350 mov.w r3, #80 @ 0x50
  42152. 8011fc0: f383 8811 msr BASEPRI, r3
  42153. 8011fc4: f3bf 8f6f isb sy
  42154. 8011fc8: f3bf 8f4f dsb sy
  42155. 8011fcc: 62bb str r3, [r7, #40] @ 0x28
  42156. }
  42157. 8011fce: bf00 nop
  42158. 8011fd0: bf00 nop
  42159. 8011fd2: e7fd b.n 8011fd0 <xQueueGenericCreateStatic+0x28>
  42160. /* The StaticQueue_t structure and the queue storage area must be
  42161. supplied. */
  42162. configASSERT( pxStaticQueue != NULL );
  42163. 8011fd4: 683b ldr r3, [r7, #0]
  42164. 8011fd6: 2b00 cmp r3, #0
  42165. 8011fd8: d10b bne.n 8011ff2 <xQueueGenericCreateStatic+0x4a>
  42166. __asm volatile
  42167. 8011fda: f04f 0350 mov.w r3, #80 @ 0x50
  42168. 8011fde: f383 8811 msr BASEPRI, r3
  42169. 8011fe2: f3bf 8f6f isb sy
  42170. 8011fe6: f3bf 8f4f dsb sy
  42171. 8011fea: 627b str r3, [r7, #36] @ 0x24
  42172. }
  42173. 8011fec: bf00 nop
  42174. 8011fee: bf00 nop
  42175. 8011ff0: e7fd b.n 8011fee <xQueueGenericCreateStatic+0x46>
  42176. /* A queue storage area should be provided if the item size is not 0, and
  42177. should not be provided if the item size is 0. */
  42178. configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) );
  42179. 8011ff2: 687b ldr r3, [r7, #4]
  42180. 8011ff4: 2b00 cmp r3, #0
  42181. 8011ff6: d002 beq.n 8011ffe <xQueueGenericCreateStatic+0x56>
  42182. 8011ff8: 68bb ldr r3, [r7, #8]
  42183. 8011ffa: 2b00 cmp r3, #0
  42184. 8011ffc: d001 beq.n 8012002 <xQueueGenericCreateStatic+0x5a>
  42185. 8011ffe: 2301 movs r3, #1
  42186. 8012000: e000 b.n 8012004 <xQueueGenericCreateStatic+0x5c>
  42187. 8012002: 2300 movs r3, #0
  42188. 8012004: 2b00 cmp r3, #0
  42189. 8012006: d10b bne.n 8012020 <xQueueGenericCreateStatic+0x78>
  42190. __asm volatile
  42191. 8012008: f04f 0350 mov.w r3, #80 @ 0x50
  42192. 801200c: f383 8811 msr BASEPRI, r3
  42193. 8012010: f3bf 8f6f isb sy
  42194. 8012014: f3bf 8f4f dsb sy
  42195. 8012018: 623b str r3, [r7, #32]
  42196. }
  42197. 801201a: bf00 nop
  42198. 801201c: bf00 nop
  42199. 801201e: e7fd b.n 801201c <xQueueGenericCreateStatic+0x74>
  42200. configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) );
  42201. 8012020: 687b ldr r3, [r7, #4]
  42202. 8012022: 2b00 cmp r3, #0
  42203. 8012024: d102 bne.n 801202c <xQueueGenericCreateStatic+0x84>
  42204. 8012026: 68bb ldr r3, [r7, #8]
  42205. 8012028: 2b00 cmp r3, #0
  42206. 801202a: d101 bne.n 8012030 <xQueueGenericCreateStatic+0x88>
  42207. 801202c: 2301 movs r3, #1
  42208. 801202e: e000 b.n 8012032 <xQueueGenericCreateStatic+0x8a>
  42209. 8012030: 2300 movs r3, #0
  42210. 8012032: 2b00 cmp r3, #0
  42211. 8012034: d10b bne.n 801204e <xQueueGenericCreateStatic+0xa6>
  42212. __asm volatile
  42213. 8012036: f04f 0350 mov.w r3, #80 @ 0x50
  42214. 801203a: f383 8811 msr BASEPRI, r3
  42215. 801203e: f3bf 8f6f isb sy
  42216. 8012042: f3bf 8f4f dsb sy
  42217. 8012046: 61fb str r3, [r7, #28]
  42218. }
  42219. 8012048: bf00 nop
  42220. 801204a: bf00 nop
  42221. 801204c: e7fd b.n 801204a <xQueueGenericCreateStatic+0xa2>
  42222. #if( configASSERT_DEFINED == 1 )
  42223. {
  42224. /* Sanity check that the size of the structure used to declare a
  42225. variable of type StaticQueue_t or StaticSemaphore_t equals the size of
  42226. the real queue and semaphore structures. */
  42227. volatile size_t xSize = sizeof( StaticQueue_t );
  42228. 801204e: 2350 movs r3, #80 @ 0x50
  42229. 8012050: 617b str r3, [r7, #20]
  42230. configASSERT( xSize == sizeof( Queue_t ) );
  42231. 8012052: 697b ldr r3, [r7, #20]
  42232. 8012054: 2b50 cmp r3, #80 @ 0x50
  42233. 8012056: d00b beq.n 8012070 <xQueueGenericCreateStatic+0xc8>
  42234. __asm volatile
  42235. 8012058: f04f 0350 mov.w r3, #80 @ 0x50
  42236. 801205c: f383 8811 msr BASEPRI, r3
  42237. 8012060: f3bf 8f6f isb sy
  42238. 8012064: f3bf 8f4f dsb sy
  42239. 8012068: 61bb str r3, [r7, #24]
  42240. }
  42241. 801206a: bf00 nop
  42242. 801206c: bf00 nop
  42243. 801206e: e7fd b.n 801206c <xQueueGenericCreateStatic+0xc4>
  42244. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  42245. 8012070: 697b ldr r3, [r7, #20]
  42246. #endif /* configASSERT_DEFINED */
  42247. /* The address of a statically allocated queue was passed in, use it.
  42248. The address of a statically allocated storage area was also passed in
  42249. but is already set. */
  42250. 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. */
  42251. 8012072: 683b ldr r3, [r7, #0]
  42252. 8012074: 62fb str r3, [r7, #44] @ 0x2c
  42253. if( pxNewQueue != NULL )
  42254. 8012076: 6afb ldr r3, [r7, #44] @ 0x2c
  42255. 8012078: 2b00 cmp r3, #0
  42256. 801207a: d00d beq.n 8012098 <xQueueGenericCreateStatic+0xf0>
  42257. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  42258. {
  42259. /* Queues can be allocated wither statically or dynamically, so
  42260. note this queue was allocated statically in case the queue is
  42261. later deleted. */
  42262. pxNewQueue->ucStaticallyAllocated = pdTRUE;
  42263. 801207c: 6afb ldr r3, [r7, #44] @ 0x2c
  42264. 801207e: 2201 movs r2, #1
  42265. 8012080: f883 2046 strb.w r2, [r3, #70] @ 0x46
  42266. }
  42267. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  42268. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  42269. 8012084: f897 2038 ldrb.w r2, [r7, #56] @ 0x38
  42270. 8012088: 6afb ldr r3, [r7, #44] @ 0x2c
  42271. 801208a: 9300 str r3, [sp, #0]
  42272. 801208c: 4613 mov r3, r2
  42273. 801208e: 687a ldr r2, [r7, #4]
  42274. 8012090: 68b9 ldr r1, [r7, #8]
  42275. 8012092: 68f8 ldr r0, [r7, #12]
  42276. 8012094: f000 f840 bl 8012118 <prvInitialiseNewQueue>
  42277. {
  42278. traceQUEUE_CREATE_FAILED( ucQueueType );
  42279. mtCOVERAGE_TEST_MARKER();
  42280. }
  42281. return pxNewQueue;
  42282. 8012098: 6afb ldr r3, [r7, #44] @ 0x2c
  42283. }
  42284. 801209a: 4618 mov r0, r3
  42285. 801209c: 3730 adds r7, #48 @ 0x30
  42286. 801209e: 46bd mov sp, r7
  42287. 80120a0: bd80 pop {r7, pc}
  42288. 080120a2 <xQueueGenericCreate>:
  42289. /*-----------------------------------------------------------*/
  42290. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  42291. QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType )
  42292. {
  42293. 80120a2: b580 push {r7, lr}
  42294. 80120a4: b08a sub sp, #40 @ 0x28
  42295. 80120a6: af02 add r7, sp, #8
  42296. 80120a8: 60f8 str r0, [r7, #12]
  42297. 80120aa: 60b9 str r1, [r7, #8]
  42298. 80120ac: 4613 mov r3, r2
  42299. 80120ae: 71fb strb r3, [r7, #7]
  42300. Queue_t *pxNewQueue;
  42301. size_t xQueueSizeInBytes;
  42302. uint8_t *pucQueueStorage;
  42303. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  42304. 80120b0: 68fb ldr r3, [r7, #12]
  42305. 80120b2: 2b00 cmp r3, #0
  42306. 80120b4: d10b bne.n 80120ce <xQueueGenericCreate+0x2c>
  42307. __asm volatile
  42308. 80120b6: f04f 0350 mov.w r3, #80 @ 0x50
  42309. 80120ba: f383 8811 msr BASEPRI, r3
  42310. 80120be: f3bf 8f6f isb sy
  42311. 80120c2: f3bf 8f4f dsb sy
  42312. 80120c6: 613b str r3, [r7, #16]
  42313. }
  42314. 80120c8: bf00 nop
  42315. 80120ca: bf00 nop
  42316. 80120cc: e7fd b.n 80120ca <xQueueGenericCreate+0x28>
  42317. /* Allocate enough space to hold the maximum number of items that
  42318. can be in the queue at any time. It is valid for uxItemSize to be
  42319. zero in the case the queue is used as a semaphore. */
  42320. xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  42321. 80120ce: 68fb ldr r3, [r7, #12]
  42322. 80120d0: 68ba ldr r2, [r7, #8]
  42323. 80120d2: fb02 f303 mul.w r3, r2, r3
  42324. 80120d6: 61fb str r3, [r7, #28]
  42325. alignment requirements of the Queue_t structure - which in this case
  42326. is an int8_t *. Therefore, whenever the stack alignment requirements
  42327. are greater than or equal to the pointer to char requirements the cast
  42328. is safe. In other cases alignment requirements are not strict (one or
  42329. two bytes). */
  42330. pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
  42331. 80120d8: 69fb ldr r3, [r7, #28]
  42332. 80120da: 3350 adds r3, #80 @ 0x50
  42333. 80120dc: 4618 mov r0, r3
  42334. 80120de: f003 fd0d bl 8015afc <pvPortMalloc>
  42335. 80120e2: 61b8 str r0, [r7, #24]
  42336. if( pxNewQueue != NULL )
  42337. 80120e4: 69bb ldr r3, [r7, #24]
  42338. 80120e6: 2b00 cmp r3, #0
  42339. 80120e8: d011 beq.n 801210e <xQueueGenericCreate+0x6c>
  42340. {
  42341. /* Jump past the queue structure to find the location of the queue
  42342. storage area. */
  42343. pucQueueStorage = ( uint8_t * ) pxNewQueue;
  42344. 80120ea: 69bb ldr r3, [r7, #24]
  42345. 80120ec: 617b str r3, [r7, #20]
  42346. pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  42347. 80120ee: 697b ldr r3, [r7, #20]
  42348. 80120f0: 3350 adds r3, #80 @ 0x50
  42349. 80120f2: 617b str r3, [r7, #20]
  42350. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  42351. {
  42352. /* Queues can be created either statically or dynamically, so
  42353. note this task was created dynamically in case it is later
  42354. deleted. */
  42355. pxNewQueue->ucStaticallyAllocated = pdFALSE;
  42356. 80120f4: 69bb ldr r3, [r7, #24]
  42357. 80120f6: 2200 movs r2, #0
  42358. 80120f8: f883 2046 strb.w r2, [r3, #70] @ 0x46
  42359. }
  42360. #endif /* configSUPPORT_STATIC_ALLOCATION */
  42361. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  42362. 80120fc: 79fa ldrb r2, [r7, #7]
  42363. 80120fe: 69bb ldr r3, [r7, #24]
  42364. 8012100: 9300 str r3, [sp, #0]
  42365. 8012102: 4613 mov r3, r2
  42366. 8012104: 697a ldr r2, [r7, #20]
  42367. 8012106: 68b9 ldr r1, [r7, #8]
  42368. 8012108: 68f8 ldr r0, [r7, #12]
  42369. 801210a: f000 f805 bl 8012118 <prvInitialiseNewQueue>
  42370. {
  42371. traceQUEUE_CREATE_FAILED( ucQueueType );
  42372. mtCOVERAGE_TEST_MARKER();
  42373. }
  42374. return pxNewQueue;
  42375. 801210e: 69bb ldr r3, [r7, #24]
  42376. }
  42377. 8012110: 4618 mov r0, r3
  42378. 8012112: 3720 adds r7, #32
  42379. 8012114: 46bd mov sp, r7
  42380. 8012116: bd80 pop {r7, pc}
  42381. 08012118 <prvInitialiseNewQueue>:
  42382. #endif /* configSUPPORT_STATIC_ALLOCATION */
  42383. /*-----------------------------------------------------------*/
  42384. static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
  42385. {
  42386. 8012118: b580 push {r7, lr}
  42387. 801211a: b084 sub sp, #16
  42388. 801211c: af00 add r7, sp, #0
  42389. 801211e: 60f8 str r0, [r7, #12]
  42390. 8012120: 60b9 str r1, [r7, #8]
  42391. 8012122: 607a str r2, [r7, #4]
  42392. 8012124: 70fb strb r3, [r7, #3]
  42393. /* Remove compiler warnings about unused parameters should
  42394. configUSE_TRACE_FACILITY not be set to 1. */
  42395. ( void ) ucQueueType;
  42396. if( uxItemSize == ( UBaseType_t ) 0 )
  42397. 8012126: 68bb ldr r3, [r7, #8]
  42398. 8012128: 2b00 cmp r3, #0
  42399. 801212a: d103 bne.n 8012134 <prvInitialiseNewQueue+0x1c>
  42400. {
  42401. /* No RAM was allocated for the queue storage area, but PC head cannot
  42402. be set to NULL because NULL is used as a key to say the queue is used as
  42403. a mutex. Therefore just set pcHead to point to the queue as a benign
  42404. value that is known to be within the memory map. */
  42405. pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
  42406. 801212c: 69bb ldr r3, [r7, #24]
  42407. 801212e: 69ba ldr r2, [r7, #24]
  42408. 8012130: 601a str r2, [r3, #0]
  42409. 8012132: e002 b.n 801213a <prvInitialiseNewQueue+0x22>
  42410. }
  42411. else
  42412. {
  42413. /* Set the head to the start of the queue storage area. */
  42414. pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
  42415. 8012134: 69bb ldr r3, [r7, #24]
  42416. 8012136: 687a ldr r2, [r7, #4]
  42417. 8012138: 601a str r2, [r3, #0]
  42418. }
  42419. /* Initialise the queue members as described where the queue type is
  42420. defined. */
  42421. pxNewQueue->uxLength = uxQueueLength;
  42422. 801213a: 69bb ldr r3, [r7, #24]
  42423. 801213c: 68fa ldr r2, [r7, #12]
  42424. 801213e: 63da str r2, [r3, #60] @ 0x3c
  42425. pxNewQueue->uxItemSize = uxItemSize;
  42426. 8012140: 69bb ldr r3, [r7, #24]
  42427. 8012142: 68ba ldr r2, [r7, #8]
  42428. 8012144: 641a str r2, [r3, #64] @ 0x40
  42429. ( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
  42430. 8012146: 2101 movs r1, #1
  42431. 8012148: 69b8 ldr r0, [r7, #24]
  42432. 801214a: f7ff fec3 bl 8011ed4 <xQueueGenericReset>
  42433. #if ( configUSE_TRACE_FACILITY == 1 )
  42434. {
  42435. pxNewQueue->ucQueueType = ucQueueType;
  42436. 801214e: 69bb ldr r3, [r7, #24]
  42437. 8012150: 78fa ldrb r2, [r7, #3]
  42438. 8012152: f883 204c strb.w r2, [r3, #76] @ 0x4c
  42439. pxNewQueue->pxQueueSetContainer = NULL;
  42440. }
  42441. #endif /* configUSE_QUEUE_SETS */
  42442. traceQUEUE_CREATE( pxNewQueue );
  42443. }
  42444. 8012156: bf00 nop
  42445. 8012158: 3710 adds r7, #16
  42446. 801215a: 46bd mov sp, r7
  42447. 801215c: bd80 pop {r7, pc}
  42448. 0801215e <prvInitialiseMutex>:
  42449. /*-----------------------------------------------------------*/
  42450. #if( configUSE_MUTEXES == 1 )
  42451. static void prvInitialiseMutex( Queue_t *pxNewQueue )
  42452. {
  42453. 801215e: b580 push {r7, lr}
  42454. 8012160: b082 sub sp, #8
  42455. 8012162: af00 add r7, sp, #0
  42456. 8012164: 6078 str r0, [r7, #4]
  42457. if( pxNewQueue != NULL )
  42458. 8012166: 687b ldr r3, [r7, #4]
  42459. 8012168: 2b00 cmp r3, #0
  42460. 801216a: d00e beq.n 801218a <prvInitialiseMutex+0x2c>
  42461. {
  42462. /* The queue create function will set all the queue structure members
  42463. correctly for a generic queue, but this function is creating a
  42464. mutex. Overwrite those members that need to be set differently -
  42465. in particular the information required for priority inheritance. */
  42466. pxNewQueue->u.xSemaphore.xMutexHolder = NULL;
  42467. 801216c: 687b ldr r3, [r7, #4]
  42468. 801216e: 2200 movs r2, #0
  42469. 8012170: 609a str r2, [r3, #8]
  42470. pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX;
  42471. 8012172: 687b ldr r3, [r7, #4]
  42472. 8012174: 2200 movs r2, #0
  42473. 8012176: 601a str r2, [r3, #0]
  42474. /* In case this is a recursive mutex. */
  42475. pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0;
  42476. 8012178: 687b ldr r3, [r7, #4]
  42477. 801217a: 2200 movs r2, #0
  42478. 801217c: 60da str r2, [r3, #12]
  42479. traceCREATE_MUTEX( pxNewQueue );
  42480. /* Start with the semaphore in the expected state. */
  42481. ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK );
  42482. 801217e: 2300 movs r3, #0
  42483. 8012180: 2200 movs r2, #0
  42484. 8012182: 2100 movs r1, #0
  42485. 8012184: 6878 ldr r0, [r7, #4]
  42486. 8012186: f000 f911 bl 80123ac <xQueueGenericSend>
  42487. }
  42488. else
  42489. {
  42490. traceCREATE_MUTEX_FAILED();
  42491. }
  42492. }
  42493. 801218a: bf00 nop
  42494. 801218c: 3708 adds r7, #8
  42495. 801218e: 46bd mov sp, r7
  42496. 8012190: bd80 pop {r7, pc}
  42497. 08012192 <xQueueCreateMutex>:
  42498. /*-----------------------------------------------------------*/
  42499. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  42500. QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType )
  42501. {
  42502. 8012192: b580 push {r7, lr}
  42503. 8012194: b086 sub sp, #24
  42504. 8012196: af00 add r7, sp, #0
  42505. 8012198: 4603 mov r3, r0
  42506. 801219a: 71fb strb r3, [r7, #7]
  42507. QueueHandle_t xNewQueue;
  42508. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  42509. 801219c: 2301 movs r3, #1
  42510. 801219e: 617b str r3, [r7, #20]
  42511. 80121a0: 2300 movs r3, #0
  42512. 80121a2: 613b str r3, [r7, #16]
  42513. xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType );
  42514. 80121a4: 79fb ldrb r3, [r7, #7]
  42515. 80121a6: 461a mov r2, r3
  42516. 80121a8: 6939 ldr r1, [r7, #16]
  42517. 80121aa: 6978 ldr r0, [r7, #20]
  42518. 80121ac: f7ff ff79 bl 80120a2 <xQueueGenericCreate>
  42519. 80121b0: 60f8 str r0, [r7, #12]
  42520. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  42521. 80121b2: 68f8 ldr r0, [r7, #12]
  42522. 80121b4: f7ff ffd3 bl 801215e <prvInitialiseMutex>
  42523. return xNewQueue;
  42524. 80121b8: 68fb ldr r3, [r7, #12]
  42525. }
  42526. 80121ba: 4618 mov r0, r3
  42527. 80121bc: 3718 adds r7, #24
  42528. 80121be: 46bd mov sp, r7
  42529. 80121c0: bd80 pop {r7, pc}
  42530. 080121c2 <xQueueCreateMutexStatic>:
  42531. /*-----------------------------------------------------------*/
  42532. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  42533. QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )
  42534. {
  42535. 80121c2: b580 push {r7, lr}
  42536. 80121c4: b088 sub sp, #32
  42537. 80121c6: af02 add r7, sp, #8
  42538. 80121c8: 4603 mov r3, r0
  42539. 80121ca: 6039 str r1, [r7, #0]
  42540. 80121cc: 71fb strb r3, [r7, #7]
  42541. QueueHandle_t xNewQueue;
  42542. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  42543. 80121ce: 2301 movs r3, #1
  42544. 80121d0: 617b str r3, [r7, #20]
  42545. 80121d2: 2300 movs r3, #0
  42546. 80121d4: 613b str r3, [r7, #16]
  42547. /* Prevent compiler warnings about unused parameters if
  42548. configUSE_TRACE_FACILITY does not equal 1. */
  42549. ( void ) ucQueueType;
  42550. xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType );
  42551. 80121d6: 79fb ldrb r3, [r7, #7]
  42552. 80121d8: 9300 str r3, [sp, #0]
  42553. 80121da: 683b ldr r3, [r7, #0]
  42554. 80121dc: 2200 movs r2, #0
  42555. 80121de: 6939 ldr r1, [r7, #16]
  42556. 80121e0: 6978 ldr r0, [r7, #20]
  42557. 80121e2: f7ff fee1 bl 8011fa8 <xQueueGenericCreateStatic>
  42558. 80121e6: 60f8 str r0, [r7, #12]
  42559. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  42560. 80121e8: 68f8 ldr r0, [r7, #12]
  42561. 80121ea: f7ff ffb8 bl 801215e <prvInitialiseMutex>
  42562. return xNewQueue;
  42563. 80121ee: 68fb ldr r3, [r7, #12]
  42564. }
  42565. 80121f0: 4618 mov r0, r3
  42566. 80121f2: 3718 adds r7, #24
  42567. 80121f4: 46bd mov sp, r7
  42568. 80121f6: bd80 pop {r7, pc}
  42569. 080121f8 <xQueueGiveMutexRecursive>:
  42570. /*-----------------------------------------------------------*/
  42571. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  42572. BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex )
  42573. {
  42574. 80121f8: b590 push {r4, r7, lr}
  42575. 80121fa: b087 sub sp, #28
  42576. 80121fc: af00 add r7, sp, #0
  42577. 80121fe: 6078 str r0, [r7, #4]
  42578. BaseType_t xReturn;
  42579. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  42580. 8012200: 687b ldr r3, [r7, #4]
  42581. 8012202: 613b str r3, [r7, #16]
  42582. configASSERT( pxMutex );
  42583. 8012204: 693b ldr r3, [r7, #16]
  42584. 8012206: 2b00 cmp r3, #0
  42585. 8012208: d10b bne.n 8012222 <xQueueGiveMutexRecursive+0x2a>
  42586. __asm volatile
  42587. 801220a: f04f 0350 mov.w r3, #80 @ 0x50
  42588. 801220e: f383 8811 msr BASEPRI, r3
  42589. 8012212: f3bf 8f6f isb sy
  42590. 8012216: f3bf 8f4f dsb sy
  42591. 801221a: 60fb str r3, [r7, #12]
  42592. }
  42593. 801221c: bf00 nop
  42594. 801221e: bf00 nop
  42595. 8012220: e7fd b.n 801221e <xQueueGiveMutexRecursive+0x26>
  42596. change outside of this task. If this task does not hold the mutex then
  42597. pxMutexHolder can never coincidentally equal the tasks handle, and as
  42598. this is the only condition we are interested in it does not matter if
  42599. pxMutexHolder is accessed simultaneously by another task. Therefore no
  42600. mutual exclusion is required to test the pxMutexHolder variable. */
  42601. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  42602. 8012222: 693b ldr r3, [r7, #16]
  42603. 8012224: 689c ldr r4, [r3, #8]
  42604. 8012226: f002 f9af bl 8014588 <xTaskGetCurrentTaskHandle>
  42605. 801222a: 4603 mov r3, r0
  42606. 801222c: 429c cmp r4, r3
  42607. 801222e: d111 bne.n 8012254 <xQueueGiveMutexRecursive+0x5c>
  42608. /* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to
  42609. the task handle, therefore no underflow check is required. Also,
  42610. uxRecursiveCallCount is only modified by the mutex holder, and as
  42611. there can only be one, no mutual exclusion is required to modify the
  42612. uxRecursiveCallCount member. */
  42613. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )--;
  42614. 8012230: 693b ldr r3, [r7, #16]
  42615. 8012232: 68db ldr r3, [r3, #12]
  42616. 8012234: 1e5a subs r2, r3, #1
  42617. 8012236: 693b ldr r3, [r7, #16]
  42618. 8012238: 60da str r2, [r3, #12]
  42619. /* Has the recursive call count unwound to 0? */
  42620. if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 )
  42621. 801223a: 693b ldr r3, [r7, #16]
  42622. 801223c: 68db ldr r3, [r3, #12]
  42623. 801223e: 2b00 cmp r3, #0
  42624. 8012240: d105 bne.n 801224e <xQueueGiveMutexRecursive+0x56>
  42625. {
  42626. /* Return the mutex. This will automatically unblock any other
  42627. task that might be waiting to access the mutex. */
  42628. ( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK );
  42629. 8012242: 2300 movs r3, #0
  42630. 8012244: 2200 movs r2, #0
  42631. 8012246: 2100 movs r1, #0
  42632. 8012248: 6938 ldr r0, [r7, #16]
  42633. 801224a: f000 f8af bl 80123ac <xQueueGenericSend>
  42634. else
  42635. {
  42636. mtCOVERAGE_TEST_MARKER();
  42637. }
  42638. xReturn = pdPASS;
  42639. 801224e: 2301 movs r3, #1
  42640. 8012250: 617b str r3, [r7, #20]
  42641. 8012252: e001 b.n 8012258 <xQueueGiveMutexRecursive+0x60>
  42642. }
  42643. else
  42644. {
  42645. /* The mutex cannot be given because the calling task is not the
  42646. holder. */
  42647. xReturn = pdFAIL;
  42648. 8012254: 2300 movs r3, #0
  42649. 8012256: 617b str r3, [r7, #20]
  42650. traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex );
  42651. }
  42652. return xReturn;
  42653. 8012258: 697b ldr r3, [r7, #20]
  42654. }
  42655. 801225a: 4618 mov r0, r3
  42656. 801225c: 371c adds r7, #28
  42657. 801225e: 46bd mov sp, r7
  42658. 8012260: bd90 pop {r4, r7, pc}
  42659. 08012262 <xQueueTakeMutexRecursive>:
  42660. /*-----------------------------------------------------------*/
  42661. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  42662. BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait )
  42663. {
  42664. 8012262: b590 push {r4, r7, lr}
  42665. 8012264: b087 sub sp, #28
  42666. 8012266: af00 add r7, sp, #0
  42667. 8012268: 6078 str r0, [r7, #4]
  42668. 801226a: 6039 str r1, [r7, #0]
  42669. BaseType_t xReturn;
  42670. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  42671. 801226c: 687b ldr r3, [r7, #4]
  42672. 801226e: 613b str r3, [r7, #16]
  42673. configASSERT( pxMutex );
  42674. 8012270: 693b ldr r3, [r7, #16]
  42675. 8012272: 2b00 cmp r3, #0
  42676. 8012274: d10b bne.n 801228e <xQueueTakeMutexRecursive+0x2c>
  42677. __asm volatile
  42678. 8012276: f04f 0350 mov.w r3, #80 @ 0x50
  42679. 801227a: f383 8811 msr BASEPRI, r3
  42680. 801227e: f3bf 8f6f isb sy
  42681. 8012282: f3bf 8f4f dsb sy
  42682. 8012286: 60fb str r3, [r7, #12]
  42683. }
  42684. 8012288: bf00 nop
  42685. 801228a: bf00 nop
  42686. 801228c: e7fd b.n 801228a <xQueueTakeMutexRecursive+0x28>
  42687. /* Comments regarding mutual exclusion as per those within
  42688. xQueueGiveMutexRecursive(). */
  42689. traceTAKE_MUTEX_RECURSIVE( pxMutex );
  42690. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  42691. 801228e: 693b ldr r3, [r7, #16]
  42692. 8012290: 689c ldr r4, [r3, #8]
  42693. 8012292: f002 f979 bl 8014588 <xTaskGetCurrentTaskHandle>
  42694. 8012296: 4603 mov r3, r0
  42695. 8012298: 429c cmp r4, r3
  42696. 801229a: d107 bne.n 80122ac <xQueueTakeMutexRecursive+0x4a>
  42697. {
  42698. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  42699. 801229c: 693b ldr r3, [r7, #16]
  42700. 801229e: 68db ldr r3, [r3, #12]
  42701. 80122a0: 1c5a adds r2, r3, #1
  42702. 80122a2: 693b ldr r3, [r7, #16]
  42703. 80122a4: 60da str r2, [r3, #12]
  42704. xReturn = pdPASS;
  42705. 80122a6: 2301 movs r3, #1
  42706. 80122a8: 617b str r3, [r7, #20]
  42707. 80122aa: e00c b.n 80122c6 <xQueueTakeMutexRecursive+0x64>
  42708. }
  42709. else
  42710. {
  42711. xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait );
  42712. 80122ac: 6839 ldr r1, [r7, #0]
  42713. 80122ae: 6938 ldr r0, [r7, #16]
  42714. 80122b0: f000 fb8e bl 80129d0 <xQueueSemaphoreTake>
  42715. 80122b4: 6178 str r0, [r7, #20]
  42716. /* pdPASS will only be returned if the mutex was successfully
  42717. obtained. The calling task may have entered the Blocked state
  42718. before reaching here. */
  42719. if( xReturn != pdFAIL )
  42720. 80122b6: 697b ldr r3, [r7, #20]
  42721. 80122b8: 2b00 cmp r3, #0
  42722. 80122ba: d004 beq.n 80122c6 <xQueueTakeMutexRecursive+0x64>
  42723. {
  42724. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  42725. 80122bc: 693b ldr r3, [r7, #16]
  42726. 80122be: 68db ldr r3, [r3, #12]
  42727. 80122c0: 1c5a adds r2, r3, #1
  42728. 80122c2: 693b ldr r3, [r7, #16]
  42729. 80122c4: 60da str r2, [r3, #12]
  42730. {
  42731. traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
  42732. }
  42733. }
  42734. return xReturn;
  42735. 80122c6: 697b ldr r3, [r7, #20]
  42736. }
  42737. 80122c8: 4618 mov r0, r3
  42738. 80122ca: 371c adds r7, #28
  42739. 80122cc: 46bd mov sp, r7
  42740. 80122ce: bd90 pop {r4, r7, pc}
  42741. 080122d0 <xQueueCreateCountingSemaphoreStatic>:
  42742. /*-----------------------------------------------------------*/
  42743. #if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  42744. QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t *pxStaticQueue )
  42745. {
  42746. 80122d0: b580 push {r7, lr}
  42747. 80122d2: b08a sub sp, #40 @ 0x28
  42748. 80122d4: af02 add r7, sp, #8
  42749. 80122d6: 60f8 str r0, [r7, #12]
  42750. 80122d8: 60b9 str r1, [r7, #8]
  42751. 80122da: 607a str r2, [r7, #4]
  42752. QueueHandle_t xHandle;
  42753. configASSERT( uxMaxCount != 0 );
  42754. 80122dc: 68fb ldr r3, [r7, #12]
  42755. 80122de: 2b00 cmp r3, #0
  42756. 80122e0: d10b bne.n 80122fa <xQueueCreateCountingSemaphoreStatic+0x2a>
  42757. __asm volatile
  42758. 80122e2: f04f 0350 mov.w r3, #80 @ 0x50
  42759. 80122e6: f383 8811 msr BASEPRI, r3
  42760. 80122ea: f3bf 8f6f isb sy
  42761. 80122ee: f3bf 8f4f dsb sy
  42762. 80122f2: 61bb str r3, [r7, #24]
  42763. }
  42764. 80122f4: bf00 nop
  42765. 80122f6: bf00 nop
  42766. 80122f8: e7fd b.n 80122f6 <xQueueCreateCountingSemaphoreStatic+0x26>
  42767. configASSERT( uxInitialCount <= uxMaxCount );
  42768. 80122fa: 68ba ldr r2, [r7, #8]
  42769. 80122fc: 68fb ldr r3, [r7, #12]
  42770. 80122fe: 429a cmp r2, r3
  42771. 8012300: d90b bls.n 801231a <xQueueCreateCountingSemaphoreStatic+0x4a>
  42772. __asm volatile
  42773. 8012302: f04f 0350 mov.w r3, #80 @ 0x50
  42774. 8012306: f383 8811 msr BASEPRI, r3
  42775. 801230a: f3bf 8f6f isb sy
  42776. 801230e: f3bf 8f4f dsb sy
  42777. 8012312: 617b str r3, [r7, #20]
  42778. }
  42779. 8012314: bf00 nop
  42780. 8012316: bf00 nop
  42781. 8012318: e7fd b.n 8012316 <xQueueCreateCountingSemaphoreStatic+0x46>
  42782. xHandle = xQueueGenericCreateStatic( uxMaxCount, queueSEMAPHORE_QUEUE_ITEM_LENGTH, NULL, pxStaticQueue, queueQUEUE_TYPE_COUNTING_SEMAPHORE );
  42783. 801231a: 2302 movs r3, #2
  42784. 801231c: 9300 str r3, [sp, #0]
  42785. 801231e: 687b ldr r3, [r7, #4]
  42786. 8012320: 2200 movs r2, #0
  42787. 8012322: 2100 movs r1, #0
  42788. 8012324: 68f8 ldr r0, [r7, #12]
  42789. 8012326: f7ff fe3f bl 8011fa8 <xQueueGenericCreateStatic>
  42790. 801232a: 61f8 str r0, [r7, #28]
  42791. if( xHandle != NULL )
  42792. 801232c: 69fb ldr r3, [r7, #28]
  42793. 801232e: 2b00 cmp r3, #0
  42794. 8012330: d002 beq.n 8012338 <xQueueCreateCountingSemaphoreStatic+0x68>
  42795. {
  42796. ( ( Queue_t * ) xHandle )->uxMessagesWaiting = uxInitialCount;
  42797. 8012332: 69fb ldr r3, [r7, #28]
  42798. 8012334: 68ba ldr r2, [r7, #8]
  42799. 8012336: 639a str r2, [r3, #56] @ 0x38
  42800. else
  42801. {
  42802. traceCREATE_COUNTING_SEMAPHORE_FAILED();
  42803. }
  42804. return xHandle;
  42805. 8012338: 69fb ldr r3, [r7, #28]
  42806. }
  42807. 801233a: 4618 mov r0, r3
  42808. 801233c: 3720 adds r7, #32
  42809. 801233e: 46bd mov sp, r7
  42810. 8012340: bd80 pop {r7, pc}
  42811. 08012342 <xQueueCreateCountingSemaphore>:
  42812. /*-----------------------------------------------------------*/
  42813. #if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  42814. QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount )
  42815. {
  42816. 8012342: b580 push {r7, lr}
  42817. 8012344: b086 sub sp, #24
  42818. 8012346: af00 add r7, sp, #0
  42819. 8012348: 6078 str r0, [r7, #4]
  42820. 801234a: 6039 str r1, [r7, #0]
  42821. QueueHandle_t xHandle;
  42822. configASSERT( uxMaxCount != 0 );
  42823. 801234c: 687b ldr r3, [r7, #4]
  42824. 801234e: 2b00 cmp r3, #0
  42825. 8012350: d10b bne.n 801236a <xQueueCreateCountingSemaphore+0x28>
  42826. __asm volatile
  42827. 8012352: f04f 0350 mov.w r3, #80 @ 0x50
  42828. 8012356: f383 8811 msr BASEPRI, r3
  42829. 801235a: f3bf 8f6f isb sy
  42830. 801235e: f3bf 8f4f dsb sy
  42831. 8012362: 613b str r3, [r7, #16]
  42832. }
  42833. 8012364: bf00 nop
  42834. 8012366: bf00 nop
  42835. 8012368: e7fd b.n 8012366 <xQueueCreateCountingSemaphore+0x24>
  42836. configASSERT( uxInitialCount <= uxMaxCount );
  42837. 801236a: 683a ldr r2, [r7, #0]
  42838. 801236c: 687b ldr r3, [r7, #4]
  42839. 801236e: 429a cmp r2, r3
  42840. 8012370: d90b bls.n 801238a <xQueueCreateCountingSemaphore+0x48>
  42841. __asm volatile
  42842. 8012372: f04f 0350 mov.w r3, #80 @ 0x50
  42843. 8012376: f383 8811 msr BASEPRI, r3
  42844. 801237a: f3bf 8f6f isb sy
  42845. 801237e: f3bf 8f4f dsb sy
  42846. 8012382: 60fb str r3, [r7, #12]
  42847. }
  42848. 8012384: bf00 nop
  42849. 8012386: bf00 nop
  42850. 8012388: e7fd b.n 8012386 <xQueueCreateCountingSemaphore+0x44>
  42851. xHandle = xQueueGenericCreate( uxMaxCount, queueSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_COUNTING_SEMAPHORE );
  42852. 801238a: 2202 movs r2, #2
  42853. 801238c: 2100 movs r1, #0
  42854. 801238e: 6878 ldr r0, [r7, #4]
  42855. 8012390: f7ff fe87 bl 80120a2 <xQueueGenericCreate>
  42856. 8012394: 6178 str r0, [r7, #20]
  42857. if( xHandle != NULL )
  42858. 8012396: 697b ldr r3, [r7, #20]
  42859. 8012398: 2b00 cmp r3, #0
  42860. 801239a: d002 beq.n 80123a2 <xQueueCreateCountingSemaphore+0x60>
  42861. {
  42862. ( ( Queue_t * ) xHandle )->uxMessagesWaiting = uxInitialCount;
  42863. 801239c: 697b ldr r3, [r7, #20]
  42864. 801239e: 683a ldr r2, [r7, #0]
  42865. 80123a0: 639a str r2, [r3, #56] @ 0x38
  42866. else
  42867. {
  42868. traceCREATE_COUNTING_SEMAPHORE_FAILED();
  42869. }
  42870. return xHandle;
  42871. 80123a2: 697b ldr r3, [r7, #20]
  42872. }
  42873. 80123a4: 4618 mov r0, r3
  42874. 80123a6: 3718 adds r7, #24
  42875. 80123a8: 46bd mov sp, r7
  42876. 80123aa: bd80 pop {r7, pc}
  42877. 080123ac <xQueueGenericSend>:
  42878. #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
  42879. /*-----------------------------------------------------------*/
  42880. BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
  42881. {
  42882. 80123ac: b580 push {r7, lr}
  42883. 80123ae: b08e sub sp, #56 @ 0x38
  42884. 80123b0: af00 add r7, sp, #0
  42885. 80123b2: 60f8 str r0, [r7, #12]
  42886. 80123b4: 60b9 str r1, [r7, #8]
  42887. 80123b6: 607a str r2, [r7, #4]
  42888. 80123b8: 603b str r3, [r7, #0]
  42889. BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
  42890. 80123ba: 2300 movs r3, #0
  42891. 80123bc: 637b str r3, [r7, #52] @ 0x34
  42892. TimeOut_t xTimeOut;
  42893. Queue_t * const pxQueue = xQueue;
  42894. 80123be: 68fb ldr r3, [r7, #12]
  42895. 80123c0: 633b str r3, [r7, #48] @ 0x30
  42896. configASSERT( pxQueue );
  42897. 80123c2: 6b3b ldr r3, [r7, #48] @ 0x30
  42898. 80123c4: 2b00 cmp r3, #0
  42899. 80123c6: d10b bne.n 80123e0 <xQueueGenericSend+0x34>
  42900. __asm volatile
  42901. 80123c8: f04f 0350 mov.w r3, #80 @ 0x50
  42902. 80123cc: f383 8811 msr BASEPRI, r3
  42903. 80123d0: f3bf 8f6f isb sy
  42904. 80123d4: f3bf 8f4f dsb sy
  42905. 80123d8: 62bb str r3, [r7, #40] @ 0x28
  42906. }
  42907. 80123da: bf00 nop
  42908. 80123dc: bf00 nop
  42909. 80123de: e7fd b.n 80123dc <xQueueGenericSend+0x30>
  42910. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  42911. 80123e0: 68bb ldr r3, [r7, #8]
  42912. 80123e2: 2b00 cmp r3, #0
  42913. 80123e4: d103 bne.n 80123ee <xQueueGenericSend+0x42>
  42914. 80123e6: 6b3b ldr r3, [r7, #48] @ 0x30
  42915. 80123e8: 6c1b ldr r3, [r3, #64] @ 0x40
  42916. 80123ea: 2b00 cmp r3, #0
  42917. 80123ec: d101 bne.n 80123f2 <xQueueGenericSend+0x46>
  42918. 80123ee: 2301 movs r3, #1
  42919. 80123f0: e000 b.n 80123f4 <xQueueGenericSend+0x48>
  42920. 80123f2: 2300 movs r3, #0
  42921. 80123f4: 2b00 cmp r3, #0
  42922. 80123f6: d10b bne.n 8012410 <xQueueGenericSend+0x64>
  42923. __asm volatile
  42924. 80123f8: f04f 0350 mov.w r3, #80 @ 0x50
  42925. 80123fc: f383 8811 msr BASEPRI, r3
  42926. 8012400: f3bf 8f6f isb sy
  42927. 8012404: f3bf 8f4f dsb sy
  42928. 8012408: 627b str r3, [r7, #36] @ 0x24
  42929. }
  42930. 801240a: bf00 nop
  42931. 801240c: bf00 nop
  42932. 801240e: e7fd b.n 801240c <xQueueGenericSend+0x60>
  42933. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  42934. 8012410: 683b ldr r3, [r7, #0]
  42935. 8012412: 2b02 cmp r3, #2
  42936. 8012414: d103 bne.n 801241e <xQueueGenericSend+0x72>
  42937. 8012416: 6b3b ldr r3, [r7, #48] @ 0x30
  42938. 8012418: 6bdb ldr r3, [r3, #60] @ 0x3c
  42939. 801241a: 2b01 cmp r3, #1
  42940. 801241c: d101 bne.n 8012422 <xQueueGenericSend+0x76>
  42941. 801241e: 2301 movs r3, #1
  42942. 8012420: e000 b.n 8012424 <xQueueGenericSend+0x78>
  42943. 8012422: 2300 movs r3, #0
  42944. 8012424: 2b00 cmp r3, #0
  42945. 8012426: d10b bne.n 8012440 <xQueueGenericSend+0x94>
  42946. __asm volatile
  42947. 8012428: f04f 0350 mov.w r3, #80 @ 0x50
  42948. 801242c: f383 8811 msr BASEPRI, r3
  42949. 8012430: f3bf 8f6f isb sy
  42950. 8012434: f3bf 8f4f dsb sy
  42951. 8012438: 623b str r3, [r7, #32]
  42952. }
  42953. 801243a: bf00 nop
  42954. 801243c: bf00 nop
  42955. 801243e: e7fd b.n 801243c <xQueueGenericSend+0x90>
  42956. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  42957. {
  42958. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  42959. 8012440: f002 f8b2 bl 80145a8 <xTaskGetSchedulerState>
  42960. 8012444: 4603 mov r3, r0
  42961. 8012446: 2b00 cmp r3, #0
  42962. 8012448: d102 bne.n 8012450 <xQueueGenericSend+0xa4>
  42963. 801244a: 687b ldr r3, [r7, #4]
  42964. 801244c: 2b00 cmp r3, #0
  42965. 801244e: d101 bne.n 8012454 <xQueueGenericSend+0xa8>
  42966. 8012450: 2301 movs r3, #1
  42967. 8012452: e000 b.n 8012456 <xQueueGenericSend+0xaa>
  42968. 8012454: 2300 movs r3, #0
  42969. 8012456: 2b00 cmp r3, #0
  42970. 8012458: d10b bne.n 8012472 <xQueueGenericSend+0xc6>
  42971. __asm volatile
  42972. 801245a: f04f 0350 mov.w r3, #80 @ 0x50
  42973. 801245e: f383 8811 msr BASEPRI, r3
  42974. 8012462: f3bf 8f6f isb sy
  42975. 8012466: f3bf 8f4f dsb sy
  42976. 801246a: 61fb str r3, [r7, #28]
  42977. }
  42978. 801246c: bf00 nop
  42979. 801246e: bf00 nop
  42980. 8012470: e7fd b.n 801246e <xQueueGenericSend+0xc2>
  42981. /*lint -save -e904 This function relaxes the coding standard somewhat to
  42982. allow return statements within the function itself. This is done in the
  42983. interest of execution time efficiency. */
  42984. for( ;; )
  42985. {
  42986. taskENTER_CRITICAL();
  42987. 8012472: f003 fa21 bl 80158b8 <vPortEnterCritical>
  42988. {
  42989. /* Is there room on the queue now? The running task must be the
  42990. highest priority task wanting to access the queue. If the head item
  42991. in the queue is to be overwritten then it does not matter if the
  42992. queue is full. */
  42993. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  42994. 8012476: 6b3b ldr r3, [r7, #48] @ 0x30
  42995. 8012478: 6b9a ldr r2, [r3, #56] @ 0x38
  42996. 801247a: 6b3b ldr r3, [r7, #48] @ 0x30
  42997. 801247c: 6bdb ldr r3, [r3, #60] @ 0x3c
  42998. 801247e: 429a cmp r2, r3
  42999. 8012480: d302 bcc.n 8012488 <xQueueGenericSend+0xdc>
  43000. 8012482: 683b ldr r3, [r7, #0]
  43001. 8012484: 2b02 cmp r3, #2
  43002. 8012486: d129 bne.n 80124dc <xQueueGenericSend+0x130>
  43003. }
  43004. }
  43005. }
  43006. #else /* configUSE_QUEUE_SETS */
  43007. {
  43008. xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  43009. 8012488: 683a ldr r2, [r7, #0]
  43010. 801248a: 68b9 ldr r1, [r7, #8]
  43011. 801248c: 6b38 ldr r0, [r7, #48] @ 0x30
  43012. 801248e: f000 fcab bl 8012de8 <prvCopyDataToQueue>
  43013. 8012492: 62f8 str r0, [r7, #44] @ 0x2c
  43014. /* If there was a task waiting for data to arrive on the
  43015. queue then unblock it now. */
  43016. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  43017. 8012494: 6b3b ldr r3, [r7, #48] @ 0x30
  43018. 8012496: 6a5b ldr r3, [r3, #36] @ 0x24
  43019. 8012498: 2b00 cmp r3, #0
  43020. 801249a: d010 beq.n 80124be <xQueueGenericSend+0x112>
  43021. {
  43022. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  43023. 801249c: 6b3b ldr r3, [r7, #48] @ 0x30
  43024. 801249e: 3324 adds r3, #36 @ 0x24
  43025. 80124a0: 4618 mov r0, r3
  43026. 80124a2: f001 fe83 bl 80141ac <xTaskRemoveFromEventList>
  43027. 80124a6: 4603 mov r3, r0
  43028. 80124a8: 2b00 cmp r3, #0
  43029. 80124aa: d013 beq.n 80124d4 <xQueueGenericSend+0x128>
  43030. {
  43031. /* The unblocked task has a priority higher than
  43032. our own so yield immediately. Yes it is ok to do
  43033. this from within the critical section - the kernel
  43034. takes care of that. */
  43035. queueYIELD_IF_USING_PREEMPTION();
  43036. 80124ac: 4b3f ldr r3, [pc, #252] @ (80125ac <xQueueGenericSend+0x200>)
  43037. 80124ae: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  43038. 80124b2: 601a str r2, [r3, #0]
  43039. 80124b4: f3bf 8f4f dsb sy
  43040. 80124b8: f3bf 8f6f isb sy
  43041. 80124bc: e00a b.n 80124d4 <xQueueGenericSend+0x128>
  43042. else
  43043. {
  43044. mtCOVERAGE_TEST_MARKER();
  43045. }
  43046. }
  43047. else if( xYieldRequired != pdFALSE )
  43048. 80124be: 6afb ldr r3, [r7, #44] @ 0x2c
  43049. 80124c0: 2b00 cmp r3, #0
  43050. 80124c2: d007 beq.n 80124d4 <xQueueGenericSend+0x128>
  43051. {
  43052. /* This path is a special case that will only get
  43053. executed if the task was holding multiple mutexes and
  43054. the mutexes were given back in an order that is
  43055. different to that in which they were taken. */
  43056. queueYIELD_IF_USING_PREEMPTION();
  43057. 80124c4: 4b39 ldr r3, [pc, #228] @ (80125ac <xQueueGenericSend+0x200>)
  43058. 80124c6: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  43059. 80124ca: 601a str r2, [r3, #0]
  43060. 80124cc: f3bf 8f4f dsb sy
  43061. 80124d0: f3bf 8f6f isb sy
  43062. mtCOVERAGE_TEST_MARKER();
  43063. }
  43064. }
  43065. #endif /* configUSE_QUEUE_SETS */
  43066. taskEXIT_CRITICAL();
  43067. 80124d4: f003 fa22 bl 801591c <vPortExitCritical>
  43068. return pdPASS;
  43069. 80124d8: 2301 movs r3, #1
  43070. 80124da: e063 b.n 80125a4 <xQueueGenericSend+0x1f8>
  43071. }
  43072. else
  43073. {
  43074. if( xTicksToWait == ( TickType_t ) 0 )
  43075. 80124dc: 687b ldr r3, [r7, #4]
  43076. 80124de: 2b00 cmp r3, #0
  43077. 80124e0: d103 bne.n 80124ea <xQueueGenericSend+0x13e>
  43078. {
  43079. /* The queue was full and no block time is specified (or
  43080. the block time has expired) so leave now. */
  43081. taskEXIT_CRITICAL();
  43082. 80124e2: f003 fa1b bl 801591c <vPortExitCritical>
  43083. /* Return to the original privilege level before exiting
  43084. the function. */
  43085. traceQUEUE_SEND_FAILED( pxQueue );
  43086. return errQUEUE_FULL;
  43087. 80124e6: 2300 movs r3, #0
  43088. 80124e8: e05c b.n 80125a4 <xQueueGenericSend+0x1f8>
  43089. }
  43090. else if( xEntryTimeSet == pdFALSE )
  43091. 80124ea: 6b7b ldr r3, [r7, #52] @ 0x34
  43092. 80124ec: 2b00 cmp r3, #0
  43093. 80124ee: d106 bne.n 80124fe <xQueueGenericSend+0x152>
  43094. {
  43095. /* The queue was full and a block time was specified so
  43096. configure the timeout structure. */
  43097. vTaskInternalSetTimeOutState( &xTimeOut );
  43098. 80124f0: f107 0314 add.w r3, r7, #20
  43099. 80124f4: 4618 mov r0, r3
  43100. 80124f6: f001 fee5 bl 80142c4 <vTaskInternalSetTimeOutState>
  43101. xEntryTimeSet = pdTRUE;
  43102. 80124fa: 2301 movs r3, #1
  43103. 80124fc: 637b str r3, [r7, #52] @ 0x34
  43104. /* Entry time was already set. */
  43105. mtCOVERAGE_TEST_MARKER();
  43106. }
  43107. }
  43108. }
  43109. taskEXIT_CRITICAL();
  43110. 80124fe: f003 fa0d bl 801591c <vPortExitCritical>
  43111. /* Interrupts and other tasks can send to and receive from the queue
  43112. now the critical section has been exited. */
  43113. vTaskSuspendAll();
  43114. 8012502: f001 fc05 bl 8013d10 <vTaskSuspendAll>
  43115. prvLockQueue( pxQueue );
  43116. 8012506: f003 f9d7 bl 80158b8 <vPortEnterCritical>
  43117. 801250a: 6b3b ldr r3, [r7, #48] @ 0x30
  43118. 801250c: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  43119. 8012510: b25b sxtb r3, r3
  43120. 8012512: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43121. 8012516: d103 bne.n 8012520 <xQueueGenericSend+0x174>
  43122. 8012518: 6b3b ldr r3, [r7, #48] @ 0x30
  43123. 801251a: 2200 movs r2, #0
  43124. 801251c: f883 2044 strb.w r2, [r3, #68] @ 0x44
  43125. 8012520: 6b3b ldr r3, [r7, #48] @ 0x30
  43126. 8012522: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  43127. 8012526: b25b sxtb r3, r3
  43128. 8012528: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43129. 801252c: d103 bne.n 8012536 <xQueueGenericSend+0x18a>
  43130. 801252e: 6b3b ldr r3, [r7, #48] @ 0x30
  43131. 8012530: 2200 movs r2, #0
  43132. 8012532: f883 2045 strb.w r2, [r3, #69] @ 0x45
  43133. 8012536: f003 f9f1 bl 801591c <vPortExitCritical>
  43134. /* Update the timeout state to see if it has expired yet. */
  43135. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  43136. 801253a: 1d3a adds r2, r7, #4
  43137. 801253c: f107 0314 add.w r3, r7, #20
  43138. 8012540: 4611 mov r1, r2
  43139. 8012542: 4618 mov r0, r3
  43140. 8012544: f001 fed4 bl 80142f0 <xTaskCheckForTimeOut>
  43141. 8012548: 4603 mov r3, r0
  43142. 801254a: 2b00 cmp r3, #0
  43143. 801254c: d124 bne.n 8012598 <xQueueGenericSend+0x1ec>
  43144. {
  43145. if( prvIsQueueFull( pxQueue ) != pdFALSE )
  43146. 801254e: 6b38 ldr r0, [r7, #48] @ 0x30
  43147. 8012550: f000 fd42 bl 8012fd8 <prvIsQueueFull>
  43148. 8012554: 4603 mov r3, r0
  43149. 8012556: 2b00 cmp r3, #0
  43150. 8012558: d018 beq.n 801258c <xQueueGenericSend+0x1e0>
  43151. {
  43152. traceBLOCKING_ON_QUEUE_SEND( pxQueue );
  43153. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
  43154. 801255a: 6b3b ldr r3, [r7, #48] @ 0x30
  43155. 801255c: 3310 adds r3, #16
  43156. 801255e: 687a ldr r2, [r7, #4]
  43157. 8012560: 4611 mov r1, r2
  43158. 8012562: 4618 mov r0, r3
  43159. 8012564: f001 fdd0 bl 8014108 <vTaskPlaceOnEventList>
  43160. /* Unlocking the queue means queue events can effect the
  43161. event list. It is possible that interrupts occurring now
  43162. remove this task from the event list again - but as the
  43163. scheduler is suspended the task will go onto the pending
  43164. ready last instead of the actual ready list. */
  43165. prvUnlockQueue( pxQueue );
  43166. 8012568: 6b38 ldr r0, [r7, #48] @ 0x30
  43167. 801256a: f000 fccd bl 8012f08 <prvUnlockQueue>
  43168. /* Resuming the scheduler will move tasks from the pending
  43169. ready list into the ready list - so it is feasible that this
  43170. task is already in a ready list before it yields - in which
  43171. case the yield will not cause a context switch unless there
  43172. is also a higher priority task in the pending ready list. */
  43173. if( xTaskResumeAll() == pdFALSE )
  43174. 801256e: f001 fbdd bl 8013d2c <xTaskResumeAll>
  43175. 8012572: 4603 mov r3, r0
  43176. 8012574: 2b00 cmp r3, #0
  43177. 8012576: f47f af7c bne.w 8012472 <xQueueGenericSend+0xc6>
  43178. {
  43179. portYIELD_WITHIN_API();
  43180. 801257a: 4b0c ldr r3, [pc, #48] @ (80125ac <xQueueGenericSend+0x200>)
  43181. 801257c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  43182. 8012580: 601a str r2, [r3, #0]
  43183. 8012582: f3bf 8f4f dsb sy
  43184. 8012586: f3bf 8f6f isb sy
  43185. 801258a: e772 b.n 8012472 <xQueueGenericSend+0xc6>
  43186. }
  43187. }
  43188. else
  43189. {
  43190. /* Try again. */
  43191. prvUnlockQueue( pxQueue );
  43192. 801258c: 6b38 ldr r0, [r7, #48] @ 0x30
  43193. 801258e: f000 fcbb bl 8012f08 <prvUnlockQueue>
  43194. ( void ) xTaskResumeAll();
  43195. 8012592: f001 fbcb bl 8013d2c <xTaskResumeAll>
  43196. 8012596: e76c b.n 8012472 <xQueueGenericSend+0xc6>
  43197. }
  43198. }
  43199. else
  43200. {
  43201. /* The timeout has expired. */
  43202. prvUnlockQueue( pxQueue );
  43203. 8012598: 6b38 ldr r0, [r7, #48] @ 0x30
  43204. 801259a: f000 fcb5 bl 8012f08 <prvUnlockQueue>
  43205. ( void ) xTaskResumeAll();
  43206. 801259e: f001 fbc5 bl 8013d2c <xTaskResumeAll>
  43207. traceQUEUE_SEND_FAILED( pxQueue );
  43208. return errQUEUE_FULL;
  43209. 80125a2: 2300 movs r3, #0
  43210. }
  43211. } /*lint -restore */
  43212. }
  43213. 80125a4: 4618 mov r0, r3
  43214. 80125a6: 3738 adds r7, #56 @ 0x38
  43215. 80125a8: 46bd mov sp, r7
  43216. 80125aa: bd80 pop {r7, pc}
  43217. 80125ac: e000ed04 .word 0xe000ed04
  43218. 080125b0 <xQueueGenericSendFromISR>:
  43219. /*-----------------------------------------------------------*/
  43220. BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
  43221. {
  43222. 80125b0: b580 push {r7, lr}
  43223. 80125b2: b090 sub sp, #64 @ 0x40
  43224. 80125b4: af00 add r7, sp, #0
  43225. 80125b6: 60f8 str r0, [r7, #12]
  43226. 80125b8: 60b9 str r1, [r7, #8]
  43227. 80125ba: 607a str r2, [r7, #4]
  43228. 80125bc: 603b str r3, [r7, #0]
  43229. BaseType_t xReturn;
  43230. UBaseType_t uxSavedInterruptStatus;
  43231. Queue_t * const pxQueue = xQueue;
  43232. 80125be: 68fb ldr r3, [r7, #12]
  43233. 80125c0: 63bb str r3, [r7, #56] @ 0x38
  43234. configASSERT( pxQueue );
  43235. 80125c2: 6bbb ldr r3, [r7, #56] @ 0x38
  43236. 80125c4: 2b00 cmp r3, #0
  43237. 80125c6: d10b bne.n 80125e0 <xQueueGenericSendFromISR+0x30>
  43238. __asm volatile
  43239. 80125c8: f04f 0350 mov.w r3, #80 @ 0x50
  43240. 80125cc: f383 8811 msr BASEPRI, r3
  43241. 80125d0: f3bf 8f6f isb sy
  43242. 80125d4: f3bf 8f4f dsb sy
  43243. 80125d8: 62bb str r3, [r7, #40] @ 0x28
  43244. }
  43245. 80125da: bf00 nop
  43246. 80125dc: bf00 nop
  43247. 80125de: e7fd b.n 80125dc <xQueueGenericSendFromISR+0x2c>
  43248. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  43249. 80125e0: 68bb ldr r3, [r7, #8]
  43250. 80125e2: 2b00 cmp r3, #0
  43251. 80125e4: d103 bne.n 80125ee <xQueueGenericSendFromISR+0x3e>
  43252. 80125e6: 6bbb ldr r3, [r7, #56] @ 0x38
  43253. 80125e8: 6c1b ldr r3, [r3, #64] @ 0x40
  43254. 80125ea: 2b00 cmp r3, #0
  43255. 80125ec: d101 bne.n 80125f2 <xQueueGenericSendFromISR+0x42>
  43256. 80125ee: 2301 movs r3, #1
  43257. 80125f0: e000 b.n 80125f4 <xQueueGenericSendFromISR+0x44>
  43258. 80125f2: 2300 movs r3, #0
  43259. 80125f4: 2b00 cmp r3, #0
  43260. 80125f6: d10b bne.n 8012610 <xQueueGenericSendFromISR+0x60>
  43261. __asm volatile
  43262. 80125f8: f04f 0350 mov.w r3, #80 @ 0x50
  43263. 80125fc: f383 8811 msr BASEPRI, r3
  43264. 8012600: f3bf 8f6f isb sy
  43265. 8012604: f3bf 8f4f dsb sy
  43266. 8012608: 627b str r3, [r7, #36] @ 0x24
  43267. }
  43268. 801260a: bf00 nop
  43269. 801260c: bf00 nop
  43270. 801260e: e7fd b.n 801260c <xQueueGenericSendFromISR+0x5c>
  43271. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  43272. 8012610: 683b ldr r3, [r7, #0]
  43273. 8012612: 2b02 cmp r3, #2
  43274. 8012614: d103 bne.n 801261e <xQueueGenericSendFromISR+0x6e>
  43275. 8012616: 6bbb ldr r3, [r7, #56] @ 0x38
  43276. 8012618: 6bdb ldr r3, [r3, #60] @ 0x3c
  43277. 801261a: 2b01 cmp r3, #1
  43278. 801261c: d101 bne.n 8012622 <xQueueGenericSendFromISR+0x72>
  43279. 801261e: 2301 movs r3, #1
  43280. 8012620: e000 b.n 8012624 <xQueueGenericSendFromISR+0x74>
  43281. 8012622: 2300 movs r3, #0
  43282. 8012624: 2b00 cmp r3, #0
  43283. 8012626: d10b bne.n 8012640 <xQueueGenericSendFromISR+0x90>
  43284. __asm volatile
  43285. 8012628: f04f 0350 mov.w r3, #80 @ 0x50
  43286. 801262c: f383 8811 msr BASEPRI, r3
  43287. 8012630: f3bf 8f6f isb sy
  43288. 8012634: f3bf 8f4f dsb sy
  43289. 8012638: 623b str r3, [r7, #32]
  43290. }
  43291. 801263a: bf00 nop
  43292. 801263c: bf00 nop
  43293. 801263e: e7fd b.n 801263c <xQueueGenericSendFromISR+0x8c>
  43294. that have been assigned a priority at or (logically) below the maximum
  43295. system call interrupt priority. FreeRTOS maintains a separate interrupt
  43296. safe API to ensure interrupt entry is as fast and as simple as possible.
  43297. More information (albeit Cortex-M specific) is provided on the following
  43298. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  43299. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  43300. 8012640: f003 fa1a bl 8015a78 <vPortValidateInterruptPriority>
  43301. portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
  43302. {
  43303. uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
  43304. __asm volatile
  43305. 8012644: f3ef 8211 mrs r2, BASEPRI
  43306. 8012648: f04f 0350 mov.w r3, #80 @ 0x50
  43307. 801264c: f383 8811 msr BASEPRI, r3
  43308. 8012650: f3bf 8f6f isb sy
  43309. 8012654: f3bf 8f4f dsb sy
  43310. 8012658: 61fa str r2, [r7, #28]
  43311. 801265a: 61bb str r3, [r7, #24]
  43312. :"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  43313. );
  43314. /* This return will not be reached but is necessary to prevent compiler
  43315. warnings. */
  43316. return ulOriginalBASEPRI;
  43317. 801265c: 69fb ldr r3, [r7, #28]
  43318. /* Similar to xQueueGenericSend, except without blocking if there is no room
  43319. in the queue. Also don't directly wake a task that was blocked on a queue
  43320. read, instead return a flag to say whether a context switch is required or
  43321. not (i.e. has a task with a higher priority than us been woken by this
  43322. post). */
  43323. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  43324. 801265e: 637b str r3, [r7, #52] @ 0x34
  43325. {
  43326. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  43327. 8012660: 6bbb ldr r3, [r7, #56] @ 0x38
  43328. 8012662: 6b9a ldr r2, [r3, #56] @ 0x38
  43329. 8012664: 6bbb ldr r3, [r7, #56] @ 0x38
  43330. 8012666: 6bdb ldr r3, [r3, #60] @ 0x3c
  43331. 8012668: 429a cmp r2, r3
  43332. 801266a: d302 bcc.n 8012672 <xQueueGenericSendFromISR+0xc2>
  43333. 801266c: 683b ldr r3, [r7, #0]
  43334. 801266e: 2b02 cmp r3, #2
  43335. 8012670: d12f bne.n 80126d2 <xQueueGenericSendFromISR+0x122>
  43336. {
  43337. const int8_t cTxLock = pxQueue->cTxLock;
  43338. 8012672: 6bbb ldr r3, [r7, #56] @ 0x38
  43339. 8012674: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  43340. 8012678: f887 3033 strb.w r3, [r7, #51] @ 0x33
  43341. const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
  43342. 801267c: 6bbb ldr r3, [r7, #56] @ 0x38
  43343. 801267e: 6b9b ldr r3, [r3, #56] @ 0x38
  43344. 8012680: 62fb str r3, [r7, #44] @ 0x2c
  43345. /* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
  43346. semaphore or mutex. That means prvCopyDataToQueue() cannot result
  43347. in a task disinheriting a priority and prvCopyDataToQueue() can be
  43348. called here even though the disinherit function does not check if
  43349. the scheduler is suspended before accessing the ready lists. */
  43350. ( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  43351. 8012682: 683a ldr r2, [r7, #0]
  43352. 8012684: 68b9 ldr r1, [r7, #8]
  43353. 8012686: 6bb8 ldr r0, [r7, #56] @ 0x38
  43354. 8012688: f000 fbae bl 8012de8 <prvCopyDataToQueue>
  43355. /* The event list is not altered if the queue is locked. This will
  43356. be done when the queue is unlocked later. */
  43357. if( cTxLock == queueUNLOCKED )
  43358. 801268c: f997 3033 ldrsb.w r3, [r7, #51] @ 0x33
  43359. 8012690: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43360. 8012694: d112 bne.n 80126bc <xQueueGenericSendFromISR+0x10c>
  43361. }
  43362. }
  43363. }
  43364. #else /* configUSE_QUEUE_SETS */
  43365. {
  43366. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  43367. 8012696: 6bbb ldr r3, [r7, #56] @ 0x38
  43368. 8012698: 6a5b ldr r3, [r3, #36] @ 0x24
  43369. 801269a: 2b00 cmp r3, #0
  43370. 801269c: d016 beq.n 80126cc <xQueueGenericSendFromISR+0x11c>
  43371. {
  43372. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  43373. 801269e: 6bbb ldr r3, [r7, #56] @ 0x38
  43374. 80126a0: 3324 adds r3, #36 @ 0x24
  43375. 80126a2: 4618 mov r0, r3
  43376. 80126a4: f001 fd82 bl 80141ac <xTaskRemoveFromEventList>
  43377. 80126a8: 4603 mov r3, r0
  43378. 80126aa: 2b00 cmp r3, #0
  43379. 80126ac: d00e beq.n 80126cc <xQueueGenericSendFromISR+0x11c>
  43380. {
  43381. /* The task waiting has a higher priority so record that a
  43382. context switch is required. */
  43383. if( pxHigherPriorityTaskWoken != NULL )
  43384. 80126ae: 687b ldr r3, [r7, #4]
  43385. 80126b0: 2b00 cmp r3, #0
  43386. 80126b2: d00b beq.n 80126cc <xQueueGenericSendFromISR+0x11c>
  43387. {
  43388. *pxHigherPriorityTaskWoken = pdTRUE;
  43389. 80126b4: 687b ldr r3, [r7, #4]
  43390. 80126b6: 2201 movs r2, #1
  43391. 80126b8: 601a str r2, [r3, #0]
  43392. 80126ba: e007 b.n 80126cc <xQueueGenericSendFromISR+0x11c>
  43393. }
  43394. else
  43395. {
  43396. /* Increment the lock count so the task that unlocks the queue
  43397. knows that data was posted while it was locked. */
  43398. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  43399. 80126bc: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
  43400. 80126c0: 3301 adds r3, #1
  43401. 80126c2: b2db uxtb r3, r3
  43402. 80126c4: b25a sxtb r2, r3
  43403. 80126c6: 6bbb ldr r3, [r7, #56] @ 0x38
  43404. 80126c8: f883 2045 strb.w r2, [r3, #69] @ 0x45
  43405. }
  43406. xReturn = pdPASS;
  43407. 80126cc: 2301 movs r3, #1
  43408. 80126ce: 63fb str r3, [r7, #60] @ 0x3c
  43409. {
  43410. 80126d0: e001 b.n 80126d6 <xQueueGenericSendFromISR+0x126>
  43411. }
  43412. else
  43413. {
  43414. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  43415. xReturn = errQUEUE_FULL;
  43416. 80126d2: 2300 movs r3, #0
  43417. 80126d4: 63fb str r3, [r7, #60] @ 0x3c
  43418. 80126d6: 6b7b ldr r3, [r7, #52] @ 0x34
  43419. 80126d8: 617b str r3, [r7, #20]
  43420. }
  43421. /*-----------------------------------------------------------*/
  43422. portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
  43423. {
  43424. __asm volatile
  43425. 80126da: 697b ldr r3, [r7, #20]
  43426. 80126dc: f383 8811 msr BASEPRI, r3
  43427. (
  43428. " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
  43429. );
  43430. }
  43431. 80126e0: bf00 nop
  43432. }
  43433. }
  43434. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  43435. return xReturn;
  43436. 80126e2: 6bfb ldr r3, [r7, #60] @ 0x3c
  43437. }
  43438. 80126e4: 4618 mov r0, r3
  43439. 80126e6: 3740 adds r7, #64 @ 0x40
  43440. 80126e8: 46bd mov sp, r7
  43441. 80126ea: bd80 pop {r7, pc}
  43442. 080126ec <xQueueGiveFromISR>:
  43443. /*-----------------------------------------------------------*/
  43444. BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue, BaseType_t * const pxHigherPriorityTaskWoken )
  43445. {
  43446. 80126ec: b580 push {r7, lr}
  43447. 80126ee: b08e sub sp, #56 @ 0x38
  43448. 80126f0: af00 add r7, sp, #0
  43449. 80126f2: 6078 str r0, [r7, #4]
  43450. 80126f4: 6039 str r1, [r7, #0]
  43451. BaseType_t xReturn;
  43452. UBaseType_t uxSavedInterruptStatus;
  43453. Queue_t * const pxQueue = xQueue;
  43454. 80126f6: 687b ldr r3, [r7, #4]
  43455. 80126f8: 633b str r3, [r7, #48] @ 0x30
  43456. item size is 0. Don't directly wake a task that was blocked on a queue
  43457. read, instead return a flag to say whether a context switch is required or
  43458. not (i.e. has a task with a higher priority than us been woken by this
  43459. post). */
  43460. configASSERT( pxQueue );
  43461. 80126fa: 6b3b ldr r3, [r7, #48] @ 0x30
  43462. 80126fc: 2b00 cmp r3, #0
  43463. 80126fe: d10b bne.n 8012718 <xQueueGiveFromISR+0x2c>
  43464. __asm volatile
  43465. 8012700: f04f 0350 mov.w r3, #80 @ 0x50
  43466. 8012704: f383 8811 msr BASEPRI, r3
  43467. 8012708: f3bf 8f6f isb sy
  43468. 801270c: f3bf 8f4f dsb sy
  43469. 8012710: 623b str r3, [r7, #32]
  43470. }
  43471. 8012712: bf00 nop
  43472. 8012714: bf00 nop
  43473. 8012716: e7fd b.n 8012714 <xQueueGiveFromISR+0x28>
  43474. /* xQueueGenericSendFromISR() should be used instead of xQueueGiveFromISR()
  43475. if the item size is not 0. */
  43476. configASSERT( pxQueue->uxItemSize == 0 );
  43477. 8012718: 6b3b ldr r3, [r7, #48] @ 0x30
  43478. 801271a: 6c1b ldr r3, [r3, #64] @ 0x40
  43479. 801271c: 2b00 cmp r3, #0
  43480. 801271e: d00b beq.n 8012738 <xQueueGiveFromISR+0x4c>
  43481. __asm volatile
  43482. 8012720: f04f 0350 mov.w r3, #80 @ 0x50
  43483. 8012724: f383 8811 msr BASEPRI, r3
  43484. 8012728: f3bf 8f6f isb sy
  43485. 801272c: f3bf 8f4f dsb sy
  43486. 8012730: 61fb str r3, [r7, #28]
  43487. }
  43488. 8012732: bf00 nop
  43489. 8012734: bf00 nop
  43490. 8012736: e7fd b.n 8012734 <xQueueGiveFromISR+0x48>
  43491. /* Normally a mutex would not be given from an interrupt, especially if
  43492. there is a mutex holder, as priority inheritance makes no sense for an
  43493. interrupts, only tasks. */
  43494. configASSERT( !( ( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) && ( pxQueue->u.xSemaphore.xMutexHolder != NULL ) ) );
  43495. 8012738: 6b3b ldr r3, [r7, #48] @ 0x30
  43496. 801273a: 681b ldr r3, [r3, #0]
  43497. 801273c: 2b00 cmp r3, #0
  43498. 801273e: d103 bne.n 8012748 <xQueueGiveFromISR+0x5c>
  43499. 8012740: 6b3b ldr r3, [r7, #48] @ 0x30
  43500. 8012742: 689b ldr r3, [r3, #8]
  43501. 8012744: 2b00 cmp r3, #0
  43502. 8012746: d101 bne.n 801274c <xQueueGiveFromISR+0x60>
  43503. 8012748: 2301 movs r3, #1
  43504. 801274a: e000 b.n 801274e <xQueueGiveFromISR+0x62>
  43505. 801274c: 2300 movs r3, #0
  43506. 801274e: 2b00 cmp r3, #0
  43507. 8012750: d10b bne.n 801276a <xQueueGiveFromISR+0x7e>
  43508. __asm volatile
  43509. 8012752: f04f 0350 mov.w r3, #80 @ 0x50
  43510. 8012756: f383 8811 msr BASEPRI, r3
  43511. 801275a: f3bf 8f6f isb sy
  43512. 801275e: f3bf 8f4f dsb sy
  43513. 8012762: 61bb str r3, [r7, #24]
  43514. }
  43515. 8012764: bf00 nop
  43516. 8012766: bf00 nop
  43517. 8012768: e7fd b.n 8012766 <xQueueGiveFromISR+0x7a>
  43518. that have been assigned a priority at or (logically) below the maximum
  43519. system call interrupt priority. FreeRTOS maintains a separate interrupt
  43520. safe API to ensure interrupt entry is as fast and as simple as possible.
  43521. More information (albeit Cortex-M specific) is provided on the following
  43522. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  43523. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  43524. 801276a: f003 f985 bl 8015a78 <vPortValidateInterruptPriority>
  43525. __asm volatile
  43526. 801276e: f3ef 8211 mrs r2, BASEPRI
  43527. 8012772: f04f 0350 mov.w r3, #80 @ 0x50
  43528. 8012776: f383 8811 msr BASEPRI, r3
  43529. 801277a: f3bf 8f6f isb sy
  43530. 801277e: f3bf 8f4f dsb sy
  43531. 8012782: 617a str r2, [r7, #20]
  43532. 8012784: 613b str r3, [r7, #16]
  43533. return ulOriginalBASEPRI;
  43534. 8012786: 697b ldr r3, [r7, #20]
  43535. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  43536. 8012788: 62fb str r3, [r7, #44] @ 0x2c
  43537. {
  43538. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  43539. 801278a: 6b3b ldr r3, [r7, #48] @ 0x30
  43540. 801278c: 6b9b ldr r3, [r3, #56] @ 0x38
  43541. 801278e: 62bb str r3, [r7, #40] @ 0x28
  43542. /* When the queue is used to implement a semaphore no data is ever
  43543. moved through the queue but it is still valid to see if the queue 'has
  43544. space'. */
  43545. if( uxMessagesWaiting < pxQueue->uxLength )
  43546. 8012790: 6b3b ldr r3, [r7, #48] @ 0x30
  43547. 8012792: 6bdb ldr r3, [r3, #60] @ 0x3c
  43548. 8012794: 6aba ldr r2, [r7, #40] @ 0x28
  43549. 8012796: 429a cmp r2, r3
  43550. 8012798: d22b bcs.n 80127f2 <xQueueGiveFromISR+0x106>
  43551. {
  43552. const int8_t cTxLock = pxQueue->cTxLock;
  43553. 801279a: 6b3b ldr r3, [r7, #48] @ 0x30
  43554. 801279c: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  43555. 80127a0: f887 3027 strb.w r3, [r7, #39] @ 0x27
  43556. holder - and if there is a mutex holder then the mutex cannot be
  43557. given from an ISR. As this is the ISR version of the function it
  43558. can be assumed there is no mutex holder and no need to determine if
  43559. priority disinheritance is needed. Simply increase the count of
  43560. messages (semaphores) available. */
  43561. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  43562. 80127a4: 6abb ldr r3, [r7, #40] @ 0x28
  43563. 80127a6: 1c5a adds r2, r3, #1
  43564. 80127a8: 6b3b ldr r3, [r7, #48] @ 0x30
  43565. 80127aa: 639a str r2, [r3, #56] @ 0x38
  43566. /* The event list is not altered if the queue is locked. This will
  43567. be done when the queue is unlocked later. */
  43568. if( cTxLock == queueUNLOCKED )
  43569. 80127ac: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  43570. 80127b0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43571. 80127b4: d112 bne.n 80127dc <xQueueGiveFromISR+0xf0>
  43572. }
  43573. }
  43574. }
  43575. #else /* configUSE_QUEUE_SETS */
  43576. {
  43577. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  43578. 80127b6: 6b3b ldr r3, [r7, #48] @ 0x30
  43579. 80127b8: 6a5b ldr r3, [r3, #36] @ 0x24
  43580. 80127ba: 2b00 cmp r3, #0
  43581. 80127bc: d016 beq.n 80127ec <xQueueGiveFromISR+0x100>
  43582. {
  43583. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  43584. 80127be: 6b3b ldr r3, [r7, #48] @ 0x30
  43585. 80127c0: 3324 adds r3, #36 @ 0x24
  43586. 80127c2: 4618 mov r0, r3
  43587. 80127c4: f001 fcf2 bl 80141ac <xTaskRemoveFromEventList>
  43588. 80127c8: 4603 mov r3, r0
  43589. 80127ca: 2b00 cmp r3, #0
  43590. 80127cc: d00e beq.n 80127ec <xQueueGiveFromISR+0x100>
  43591. {
  43592. /* The task waiting has a higher priority so record that a
  43593. context switch is required. */
  43594. if( pxHigherPriorityTaskWoken != NULL )
  43595. 80127ce: 683b ldr r3, [r7, #0]
  43596. 80127d0: 2b00 cmp r3, #0
  43597. 80127d2: d00b beq.n 80127ec <xQueueGiveFromISR+0x100>
  43598. {
  43599. *pxHigherPriorityTaskWoken = pdTRUE;
  43600. 80127d4: 683b ldr r3, [r7, #0]
  43601. 80127d6: 2201 movs r2, #1
  43602. 80127d8: 601a str r2, [r3, #0]
  43603. 80127da: e007 b.n 80127ec <xQueueGiveFromISR+0x100>
  43604. }
  43605. else
  43606. {
  43607. /* Increment the lock count so the task that unlocks the queue
  43608. knows that data was posted while it was locked. */
  43609. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  43610. 80127dc: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  43611. 80127e0: 3301 adds r3, #1
  43612. 80127e2: b2db uxtb r3, r3
  43613. 80127e4: b25a sxtb r2, r3
  43614. 80127e6: 6b3b ldr r3, [r7, #48] @ 0x30
  43615. 80127e8: f883 2045 strb.w r2, [r3, #69] @ 0x45
  43616. }
  43617. xReturn = pdPASS;
  43618. 80127ec: 2301 movs r3, #1
  43619. 80127ee: 637b str r3, [r7, #52] @ 0x34
  43620. 80127f0: e001 b.n 80127f6 <xQueueGiveFromISR+0x10a>
  43621. }
  43622. else
  43623. {
  43624. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  43625. xReturn = errQUEUE_FULL;
  43626. 80127f2: 2300 movs r3, #0
  43627. 80127f4: 637b str r3, [r7, #52] @ 0x34
  43628. 80127f6: 6afb ldr r3, [r7, #44] @ 0x2c
  43629. 80127f8: 60fb str r3, [r7, #12]
  43630. __asm volatile
  43631. 80127fa: 68fb ldr r3, [r7, #12]
  43632. 80127fc: f383 8811 msr BASEPRI, r3
  43633. }
  43634. 8012800: bf00 nop
  43635. }
  43636. }
  43637. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  43638. return xReturn;
  43639. 8012802: 6b7b ldr r3, [r7, #52] @ 0x34
  43640. }
  43641. 8012804: 4618 mov r0, r3
  43642. 8012806: 3738 adds r7, #56 @ 0x38
  43643. 8012808: 46bd mov sp, r7
  43644. 801280a: bd80 pop {r7, pc}
  43645. 0801280c <xQueueReceive>:
  43646. /*-----------------------------------------------------------*/
  43647. BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
  43648. {
  43649. 801280c: b580 push {r7, lr}
  43650. 801280e: b08c sub sp, #48 @ 0x30
  43651. 8012810: af00 add r7, sp, #0
  43652. 8012812: 60f8 str r0, [r7, #12]
  43653. 8012814: 60b9 str r1, [r7, #8]
  43654. 8012816: 607a str r2, [r7, #4]
  43655. BaseType_t xEntryTimeSet = pdFALSE;
  43656. 8012818: 2300 movs r3, #0
  43657. 801281a: 62fb str r3, [r7, #44] @ 0x2c
  43658. TimeOut_t xTimeOut;
  43659. Queue_t * const pxQueue = xQueue;
  43660. 801281c: 68fb ldr r3, [r7, #12]
  43661. 801281e: 62bb str r3, [r7, #40] @ 0x28
  43662. /* Check the pointer is not NULL. */
  43663. configASSERT( ( pxQueue ) );
  43664. 8012820: 6abb ldr r3, [r7, #40] @ 0x28
  43665. 8012822: 2b00 cmp r3, #0
  43666. 8012824: d10b bne.n 801283e <xQueueReceive+0x32>
  43667. __asm volatile
  43668. 8012826: f04f 0350 mov.w r3, #80 @ 0x50
  43669. 801282a: f383 8811 msr BASEPRI, r3
  43670. 801282e: f3bf 8f6f isb sy
  43671. 8012832: f3bf 8f4f dsb sy
  43672. 8012836: 623b str r3, [r7, #32]
  43673. }
  43674. 8012838: bf00 nop
  43675. 801283a: bf00 nop
  43676. 801283c: e7fd b.n 801283a <xQueueReceive+0x2e>
  43677. /* The buffer into which data is received can only be NULL if the data size
  43678. is zero (so no data is copied into the buffer. */
  43679. configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
  43680. 801283e: 68bb ldr r3, [r7, #8]
  43681. 8012840: 2b00 cmp r3, #0
  43682. 8012842: d103 bne.n 801284c <xQueueReceive+0x40>
  43683. 8012844: 6abb ldr r3, [r7, #40] @ 0x28
  43684. 8012846: 6c1b ldr r3, [r3, #64] @ 0x40
  43685. 8012848: 2b00 cmp r3, #0
  43686. 801284a: d101 bne.n 8012850 <xQueueReceive+0x44>
  43687. 801284c: 2301 movs r3, #1
  43688. 801284e: e000 b.n 8012852 <xQueueReceive+0x46>
  43689. 8012850: 2300 movs r3, #0
  43690. 8012852: 2b00 cmp r3, #0
  43691. 8012854: d10b bne.n 801286e <xQueueReceive+0x62>
  43692. __asm volatile
  43693. 8012856: f04f 0350 mov.w r3, #80 @ 0x50
  43694. 801285a: f383 8811 msr BASEPRI, r3
  43695. 801285e: f3bf 8f6f isb sy
  43696. 8012862: f3bf 8f4f dsb sy
  43697. 8012866: 61fb str r3, [r7, #28]
  43698. }
  43699. 8012868: bf00 nop
  43700. 801286a: bf00 nop
  43701. 801286c: e7fd b.n 801286a <xQueueReceive+0x5e>
  43702. /* Cannot block if the scheduler is suspended. */
  43703. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  43704. {
  43705. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  43706. 801286e: f001 fe9b bl 80145a8 <xTaskGetSchedulerState>
  43707. 8012872: 4603 mov r3, r0
  43708. 8012874: 2b00 cmp r3, #0
  43709. 8012876: d102 bne.n 801287e <xQueueReceive+0x72>
  43710. 8012878: 687b ldr r3, [r7, #4]
  43711. 801287a: 2b00 cmp r3, #0
  43712. 801287c: d101 bne.n 8012882 <xQueueReceive+0x76>
  43713. 801287e: 2301 movs r3, #1
  43714. 8012880: e000 b.n 8012884 <xQueueReceive+0x78>
  43715. 8012882: 2300 movs r3, #0
  43716. 8012884: 2b00 cmp r3, #0
  43717. 8012886: d10b bne.n 80128a0 <xQueueReceive+0x94>
  43718. __asm volatile
  43719. 8012888: f04f 0350 mov.w r3, #80 @ 0x50
  43720. 801288c: f383 8811 msr BASEPRI, r3
  43721. 8012890: f3bf 8f6f isb sy
  43722. 8012894: f3bf 8f4f dsb sy
  43723. 8012898: 61bb str r3, [r7, #24]
  43724. }
  43725. 801289a: bf00 nop
  43726. 801289c: bf00 nop
  43727. 801289e: e7fd b.n 801289c <xQueueReceive+0x90>
  43728. /*lint -save -e904 This function relaxes the coding standard somewhat to
  43729. allow return statements within the function itself. This is done in the
  43730. interest of execution time efficiency. */
  43731. for( ;; )
  43732. {
  43733. taskENTER_CRITICAL();
  43734. 80128a0: f003 f80a bl 80158b8 <vPortEnterCritical>
  43735. {
  43736. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  43737. 80128a4: 6abb ldr r3, [r7, #40] @ 0x28
  43738. 80128a6: 6b9b ldr r3, [r3, #56] @ 0x38
  43739. 80128a8: 627b str r3, [r7, #36] @ 0x24
  43740. /* Is there data in the queue now? To be running the calling task
  43741. must be the highest priority task wanting to access the queue. */
  43742. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  43743. 80128aa: 6a7b ldr r3, [r7, #36] @ 0x24
  43744. 80128ac: 2b00 cmp r3, #0
  43745. 80128ae: d01f beq.n 80128f0 <xQueueReceive+0xe4>
  43746. {
  43747. /* Data available, remove one item. */
  43748. prvCopyDataFromQueue( pxQueue, pvBuffer );
  43749. 80128b0: 68b9 ldr r1, [r7, #8]
  43750. 80128b2: 6ab8 ldr r0, [r7, #40] @ 0x28
  43751. 80128b4: f000 fb02 bl 8012ebc <prvCopyDataFromQueue>
  43752. traceQUEUE_RECEIVE( pxQueue );
  43753. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  43754. 80128b8: 6a7b ldr r3, [r7, #36] @ 0x24
  43755. 80128ba: 1e5a subs r2, r3, #1
  43756. 80128bc: 6abb ldr r3, [r7, #40] @ 0x28
  43757. 80128be: 639a str r2, [r3, #56] @ 0x38
  43758. /* There is now space in the queue, were any tasks waiting to
  43759. post to the queue? If so, unblock the highest priority waiting
  43760. task. */
  43761. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  43762. 80128c0: 6abb ldr r3, [r7, #40] @ 0x28
  43763. 80128c2: 691b ldr r3, [r3, #16]
  43764. 80128c4: 2b00 cmp r3, #0
  43765. 80128c6: d00f beq.n 80128e8 <xQueueReceive+0xdc>
  43766. {
  43767. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  43768. 80128c8: 6abb ldr r3, [r7, #40] @ 0x28
  43769. 80128ca: 3310 adds r3, #16
  43770. 80128cc: 4618 mov r0, r3
  43771. 80128ce: f001 fc6d bl 80141ac <xTaskRemoveFromEventList>
  43772. 80128d2: 4603 mov r3, r0
  43773. 80128d4: 2b00 cmp r3, #0
  43774. 80128d6: d007 beq.n 80128e8 <xQueueReceive+0xdc>
  43775. {
  43776. queueYIELD_IF_USING_PREEMPTION();
  43777. 80128d8: 4b3c ldr r3, [pc, #240] @ (80129cc <xQueueReceive+0x1c0>)
  43778. 80128da: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  43779. 80128de: 601a str r2, [r3, #0]
  43780. 80128e0: f3bf 8f4f dsb sy
  43781. 80128e4: f3bf 8f6f isb sy
  43782. else
  43783. {
  43784. mtCOVERAGE_TEST_MARKER();
  43785. }
  43786. taskEXIT_CRITICAL();
  43787. 80128e8: f003 f818 bl 801591c <vPortExitCritical>
  43788. return pdPASS;
  43789. 80128ec: 2301 movs r3, #1
  43790. 80128ee: e069 b.n 80129c4 <xQueueReceive+0x1b8>
  43791. }
  43792. else
  43793. {
  43794. if( xTicksToWait == ( TickType_t ) 0 )
  43795. 80128f0: 687b ldr r3, [r7, #4]
  43796. 80128f2: 2b00 cmp r3, #0
  43797. 80128f4: d103 bne.n 80128fe <xQueueReceive+0xf2>
  43798. {
  43799. /* The queue was empty and no block time is specified (or
  43800. the block time has expired) so leave now. */
  43801. taskEXIT_CRITICAL();
  43802. 80128f6: f003 f811 bl 801591c <vPortExitCritical>
  43803. traceQUEUE_RECEIVE_FAILED( pxQueue );
  43804. return errQUEUE_EMPTY;
  43805. 80128fa: 2300 movs r3, #0
  43806. 80128fc: e062 b.n 80129c4 <xQueueReceive+0x1b8>
  43807. }
  43808. else if( xEntryTimeSet == pdFALSE )
  43809. 80128fe: 6afb ldr r3, [r7, #44] @ 0x2c
  43810. 8012900: 2b00 cmp r3, #0
  43811. 8012902: d106 bne.n 8012912 <xQueueReceive+0x106>
  43812. {
  43813. /* The queue was empty and a block time was specified so
  43814. configure the timeout structure. */
  43815. vTaskInternalSetTimeOutState( &xTimeOut );
  43816. 8012904: f107 0310 add.w r3, r7, #16
  43817. 8012908: 4618 mov r0, r3
  43818. 801290a: f001 fcdb bl 80142c4 <vTaskInternalSetTimeOutState>
  43819. xEntryTimeSet = pdTRUE;
  43820. 801290e: 2301 movs r3, #1
  43821. 8012910: 62fb str r3, [r7, #44] @ 0x2c
  43822. /* Entry time was already set. */
  43823. mtCOVERAGE_TEST_MARKER();
  43824. }
  43825. }
  43826. }
  43827. taskEXIT_CRITICAL();
  43828. 8012912: f003 f803 bl 801591c <vPortExitCritical>
  43829. /* Interrupts and other tasks can send to and receive from the queue
  43830. now the critical section has been exited. */
  43831. vTaskSuspendAll();
  43832. 8012916: f001 f9fb bl 8013d10 <vTaskSuspendAll>
  43833. prvLockQueue( pxQueue );
  43834. 801291a: f002 ffcd bl 80158b8 <vPortEnterCritical>
  43835. 801291e: 6abb ldr r3, [r7, #40] @ 0x28
  43836. 8012920: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  43837. 8012924: b25b sxtb r3, r3
  43838. 8012926: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43839. 801292a: d103 bne.n 8012934 <xQueueReceive+0x128>
  43840. 801292c: 6abb ldr r3, [r7, #40] @ 0x28
  43841. 801292e: 2200 movs r2, #0
  43842. 8012930: f883 2044 strb.w r2, [r3, #68] @ 0x44
  43843. 8012934: 6abb ldr r3, [r7, #40] @ 0x28
  43844. 8012936: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  43845. 801293a: b25b sxtb r3, r3
  43846. 801293c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43847. 8012940: d103 bne.n 801294a <xQueueReceive+0x13e>
  43848. 8012942: 6abb ldr r3, [r7, #40] @ 0x28
  43849. 8012944: 2200 movs r2, #0
  43850. 8012946: f883 2045 strb.w r2, [r3, #69] @ 0x45
  43851. 801294a: f002 ffe7 bl 801591c <vPortExitCritical>
  43852. /* Update the timeout state to see if it has expired yet. */
  43853. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  43854. 801294e: 1d3a adds r2, r7, #4
  43855. 8012950: f107 0310 add.w r3, r7, #16
  43856. 8012954: 4611 mov r1, r2
  43857. 8012956: 4618 mov r0, r3
  43858. 8012958: f001 fcca bl 80142f0 <xTaskCheckForTimeOut>
  43859. 801295c: 4603 mov r3, r0
  43860. 801295e: 2b00 cmp r3, #0
  43861. 8012960: d123 bne.n 80129aa <xQueueReceive+0x19e>
  43862. {
  43863. /* The timeout has not expired. If the queue is still empty place
  43864. the task on the list of tasks waiting to receive from the queue. */
  43865. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  43866. 8012962: 6ab8 ldr r0, [r7, #40] @ 0x28
  43867. 8012964: f000 fb22 bl 8012fac <prvIsQueueEmpty>
  43868. 8012968: 4603 mov r3, r0
  43869. 801296a: 2b00 cmp r3, #0
  43870. 801296c: d017 beq.n 801299e <xQueueReceive+0x192>
  43871. {
  43872. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  43873. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  43874. 801296e: 6abb ldr r3, [r7, #40] @ 0x28
  43875. 8012970: 3324 adds r3, #36 @ 0x24
  43876. 8012972: 687a ldr r2, [r7, #4]
  43877. 8012974: 4611 mov r1, r2
  43878. 8012976: 4618 mov r0, r3
  43879. 8012978: f001 fbc6 bl 8014108 <vTaskPlaceOnEventList>
  43880. prvUnlockQueue( pxQueue );
  43881. 801297c: 6ab8 ldr r0, [r7, #40] @ 0x28
  43882. 801297e: f000 fac3 bl 8012f08 <prvUnlockQueue>
  43883. if( xTaskResumeAll() == pdFALSE )
  43884. 8012982: f001 f9d3 bl 8013d2c <xTaskResumeAll>
  43885. 8012986: 4603 mov r3, r0
  43886. 8012988: 2b00 cmp r3, #0
  43887. 801298a: d189 bne.n 80128a0 <xQueueReceive+0x94>
  43888. {
  43889. portYIELD_WITHIN_API();
  43890. 801298c: 4b0f ldr r3, [pc, #60] @ (80129cc <xQueueReceive+0x1c0>)
  43891. 801298e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  43892. 8012992: 601a str r2, [r3, #0]
  43893. 8012994: f3bf 8f4f dsb sy
  43894. 8012998: f3bf 8f6f isb sy
  43895. 801299c: e780 b.n 80128a0 <xQueueReceive+0x94>
  43896. }
  43897. else
  43898. {
  43899. /* The queue contains data again. Loop back to try and read the
  43900. data. */
  43901. prvUnlockQueue( pxQueue );
  43902. 801299e: 6ab8 ldr r0, [r7, #40] @ 0x28
  43903. 80129a0: f000 fab2 bl 8012f08 <prvUnlockQueue>
  43904. ( void ) xTaskResumeAll();
  43905. 80129a4: f001 f9c2 bl 8013d2c <xTaskResumeAll>
  43906. 80129a8: e77a b.n 80128a0 <xQueueReceive+0x94>
  43907. }
  43908. else
  43909. {
  43910. /* Timed out. If there is no data in the queue exit, otherwise loop
  43911. back and attempt to read the data. */
  43912. prvUnlockQueue( pxQueue );
  43913. 80129aa: 6ab8 ldr r0, [r7, #40] @ 0x28
  43914. 80129ac: f000 faac bl 8012f08 <prvUnlockQueue>
  43915. ( void ) xTaskResumeAll();
  43916. 80129b0: f001 f9bc bl 8013d2c <xTaskResumeAll>
  43917. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  43918. 80129b4: 6ab8 ldr r0, [r7, #40] @ 0x28
  43919. 80129b6: f000 faf9 bl 8012fac <prvIsQueueEmpty>
  43920. 80129ba: 4603 mov r3, r0
  43921. 80129bc: 2b00 cmp r3, #0
  43922. 80129be: f43f af6f beq.w 80128a0 <xQueueReceive+0x94>
  43923. {
  43924. traceQUEUE_RECEIVE_FAILED( pxQueue );
  43925. return errQUEUE_EMPTY;
  43926. 80129c2: 2300 movs r3, #0
  43927. {
  43928. mtCOVERAGE_TEST_MARKER();
  43929. }
  43930. }
  43931. } /*lint -restore */
  43932. }
  43933. 80129c4: 4618 mov r0, r3
  43934. 80129c6: 3730 adds r7, #48 @ 0x30
  43935. 80129c8: 46bd mov sp, r7
  43936. 80129ca: bd80 pop {r7, pc}
  43937. 80129cc: e000ed04 .word 0xe000ed04
  43938. 080129d0 <xQueueSemaphoreTake>:
  43939. /*-----------------------------------------------------------*/
  43940. BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait )
  43941. {
  43942. 80129d0: b580 push {r7, lr}
  43943. 80129d2: b08e sub sp, #56 @ 0x38
  43944. 80129d4: af00 add r7, sp, #0
  43945. 80129d6: 6078 str r0, [r7, #4]
  43946. 80129d8: 6039 str r1, [r7, #0]
  43947. BaseType_t xEntryTimeSet = pdFALSE;
  43948. 80129da: 2300 movs r3, #0
  43949. 80129dc: 637b str r3, [r7, #52] @ 0x34
  43950. TimeOut_t xTimeOut;
  43951. Queue_t * const pxQueue = xQueue;
  43952. 80129de: 687b ldr r3, [r7, #4]
  43953. 80129e0: 62fb str r3, [r7, #44] @ 0x2c
  43954. #if( configUSE_MUTEXES == 1 )
  43955. BaseType_t xInheritanceOccurred = pdFALSE;
  43956. 80129e2: 2300 movs r3, #0
  43957. 80129e4: 633b str r3, [r7, #48] @ 0x30
  43958. #endif
  43959. /* Check the queue pointer is not NULL. */
  43960. configASSERT( ( pxQueue ) );
  43961. 80129e6: 6afb ldr r3, [r7, #44] @ 0x2c
  43962. 80129e8: 2b00 cmp r3, #0
  43963. 80129ea: d10b bne.n 8012a04 <xQueueSemaphoreTake+0x34>
  43964. __asm volatile
  43965. 80129ec: f04f 0350 mov.w r3, #80 @ 0x50
  43966. 80129f0: f383 8811 msr BASEPRI, r3
  43967. 80129f4: f3bf 8f6f isb sy
  43968. 80129f8: f3bf 8f4f dsb sy
  43969. 80129fc: 623b str r3, [r7, #32]
  43970. }
  43971. 80129fe: bf00 nop
  43972. 8012a00: bf00 nop
  43973. 8012a02: e7fd b.n 8012a00 <xQueueSemaphoreTake+0x30>
  43974. /* Check this really is a semaphore, in which case the item size will be
  43975. 0. */
  43976. configASSERT( pxQueue->uxItemSize == 0 );
  43977. 8012a04: 6afb ldr r3, [r7, #44] @ 0x2c
  43978. 8012a06: 6c1b ldr r3, [r3, #64] @ 0x40
  43979. 8012a08: 2b00 cmp r3, #0
  43980. 8012a0a: d00b beq.n 8012a24 <xQueueSemaphoreTake+0x54>
  43981. __asm volatile
  43982. 8012a0c: f04f 0350 mov.w r3, #80 @ 0x50
  43983. 8012a10: f383 8811 msr BASEPRI, r3
  43984. 8012a14: f3bf 8f6f isb sy
  43985. 8012a18: f3bf 8f4f dsb sy
  43986. 8012a1c: 61fb str r3, [r7, #28]
  43987. }
  43988. 8012a1e: bf00 nop
  43989. 8012a20: bf00 nop
  43990. 8012a22: e7fd b.n 8012a20 <xQueueSemaphoreTake+0x50>
  43991. /* Cannot block if the scheduler is suspended. */
  43992. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  43993. {
  43994. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  43995. 8012a24: f001 fdc0 bl 80145a8 <xTaskGetSchedulerState>
  43996. 8012a28: 4603 mov r3, r0
  43997. 8012a2a: 2b00 cmp r3, #0
  43998. 8012a2c: d102 bne.n 8012a34 <xQueueSemaphoreTake+0x64>
  43999. 8012a2e: 683b ldr r3, [r7, #0]
  44000. 8012a30: 2b00 cmp r3, #0
  44001. 8012a32: d101 bne.n 8012a38 <xQueueSemaphoreTake+0x68>
  44002. 8012a34: 2301 movs r3, #1
  44003. 8012a36: e000 b.n 8012a3a <xQueueSemaphoreTake+0x6a>
  44004. 8012a38: 2300 movs r3, #0
  44005. 8012a3a: 2b00 cmp r3, #0
  44006. 8012a3c: d10b bne.n 8012a56 <xQueueSemaphoreTake+0x86>
  44007. __asm volatile
  44008. 8012a3e: f04f 0350 mov.w r3, #80 @ 0x50
  44009. 8012a42: f383 8811 msr BASEPRI, r3
  44010. 8012a46: f3bf 8f6f isb sy
  44011. 8012a4a: f3bf 8f4f dsb sy
  44012. 8012a4e: 61bb str r3, [r7, #24]
  44013. }
  44014. 8012a50: bf00 nop
  44015. 8012a52: bf00 nop
  44016. 8012a54: e7fd b.n 8012a52 <xQueueSemaphoreTake+0x82>
  44017. /*lint -save -e904 This function relaxes the coding standard somewhat to allow return
  44018. statements within the function itself. This is done in the interest
  44019. of execution time efficiency. */
  44020. for( ;; )
  44021. {
  44022. taskENTER_CRITICAL();
  44023. 8012a56: f002 ff2f bl 80158b8 <vPortEnterCritical>
  44024. {
  44025. /* Semaphores are queues with an item size of 0, and where the
  44026. number of messages in the queue is the semaphore's count value. */
  44027. const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting;
  44028. 8012a5a: 6afb ldr r3, [r7, #44] @ 0x2c
  44029. 8012a5c: 6b9b ldr r3, [r3, #56] @ 0x38
  44030. 8012a5e: 62bb str r3, [r7, #40] @ 0x28
  44031. /* Is there data in the queue now? To be running the calling task
  44032. must be the highest priority task wanting to access the queue. */
  44033. if( uxSemaphoreCount > ( UBaseType_t ) 0 )
  44034. 8012a60: 6abb ldr r3, [r7, #40] @ 0x28
  44035. 8012a62: 2b00 cmp r3, #0
  44036. 8012a64: d024 beq.n 8012ab0 <xQueueSemaphoreTake+0xe0>
  44037. {
  44038. traceQUEUE_RECEIVE( pxQueue );
  44039. /* Semaphores are queues with a data size of zero and where the
  44040. messages waiting is the semaphore's count. Reduce the count. */
  44041. pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1;
  44042. 8012a66: 6abb ldr r3, [r7, #40] @ 0x28
  44043. 8012a68: 1e5a subs r2, r3, #1
  44044. 8012a6a: 6afb ldr r3, [r7, #44] @ 0x2c
  44045. 8012a6c: 639a str r2, [r3, #56] @ 0x38
  44046. #if ( configUSE_MUTEXES == 1 )
  44047. {
  44048. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  44049. 8012a6e: 6afb ldr r3, [r7, #44] @ 0x2c
  44050. 8012a70: 681b ldr r3, [r3, #0]
  44051. 8012a72: 2b00 cmp r3, #0
  44052. 8012a74: d104 bne.n 8012a80 <xQueueSemaphoreTake+0xb0>
  44053. {
  44054. /* Record the information required to implement
  44055. priority inheritance should it become necessary. */
  44056. pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount();
  44057. 8012a76: f001 ff11 bl 801489c <pvTaskIncrementMutexHeldCount>
  44058. 8012a7a: 4602 mov r2, r0
  44059. 8012a7c: 6afb ldr r3, [r7, #44] @ 0x2c
  44060. 8012a7e: 609a str r2, [r3, #8]
  44061. }
  44062. #endif /* configUSE_MUTEXES */
  44063. /* Check to see if other tasks are blocked waiting to give the
  44064. semaphore, and if so, unblock the highest priority such task. */
  44065. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  44066. 8012a80: 6afb ldr r3, [r7, #44] @ 0x2c
  44067. 8012a82: 691b ldr r3, [r3, #16]
  44068. 8012a84: 2b00 cmp r3, #0
  44069. 8012a86: d00f beq.n 8012aa8 <xQueueSemaphoreTake+0xd8>
  44070. {
  44071. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  44072. 8012a88: 6afb ldr r3, [r7, #44] @ 0x2c
  44073. 8012a8a: 3310 adds r3, #16
  44074. 8012a8c: 4618 mov r0, r3
  44075. 8012a8e: f001 fb8d bl 80141ac <xTaskRemoveFromEventList>
  44076. 8012a92: 4603 mov r3, r0
  44077. 8012a94: 2b00 cmp r3, #0
  44078. 8012a96: d007 beq.n 8012aa8 <xQueueSemaphoreTake+0xd8>
  44079. {
  44080. queueYIELD_IF_USING_PREEMPTION();
  44081. 8012a98: 4b54 ldr r3, [pc, #336] @ (8012bec <xQueueSemaphoreTake+0x21c>)
  44082. 8012a9a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  44083. 8012a9e: 601a str r2, [r3, #0]
  44084. 8012aa0: f3bf 8f4f dsb sy
  44085. 8012aa4: f3bf 8f6f isb sy
  44086. else
  44087. {
  44088. mtCOVERAGE_TEST_MARKER();
  44089. }
  44090. taskEXIT_CRITICAL();
  44091. 8012aa8: f002 ff38 bl 801591c <vPortExitCritical>
  44092. return pdPASS;
  44093. 8012aac: 2301 movs r3, #1
  44094. 8012aae: e098 b.n 8012be2 <xQueueSemaphoreTake+0x212>
  44095. }
  44096. else
  44097. {
  44098. if( xTicksToWait == ( TickType_t ) 0 )
  44099. 8012ab0: 683b ldr r3, [r7, #0]
  44100. 8012ab2: 2b00 cmp r3, #0
  44101. 8012ab4: d112 bne.n 8012adc <xQueueSemaphoreTake+0x10c>
  44102. /* For inheritance to have occurred there must have been an
  44103. initial timeout, and an adjusted timeout cannot become 0, as
  44104. if it were 0 the function would have exited. */
  44105. #if( configUSE_MUTEXES == 1 )
  44106. {
  44107. configASSERT( xInheritanceOccurred == pdFALSE );
  44108. 8012ab6: 6b3b ldr r3, [r7, #48] @ 0x30
  44109. 8012ab8: 2b00 cmp r3, #0
  44110. 8012aba: d00b beq.n 8012ad4 <xQueueSemaphoreTake+0x104>
  44111. __asm volatile
  44112. 8012abc: f04f 0350 mov.w r3, #80 @ 0x50
  44113. 8012ac0: f383 8811 msr BASEPRI, r3
  44114. 8012ac4: f3bf 8f6f isb sy
  44115. 8012ac8: f3bf 8f4f dsb sy
  44116. 8012acc: 617b str r3, [r7, #20]
  44117. }
  44118. 8012ace: bf00 nop
  44119. 8012ad0: bf00 nop
  44120. 8012ad2: e7fd b.n 8012ad0 <xQueueSemaphoreTake+0x100>
  44121. }
  44122. #endif /* configUSE_MUTEXES */
  44123. /* The semaphore count was 0 and no block time is specified
  44124. (or the block time has expired) so exit now. */
  44125. taskEXIT_CRITICAL();
  44126. 8012ad4: f002 ff22 bl 801591c <vPortExitCritical>
  44127. traceQUEUE_RECEIVE_FAILED( pxQueue );
  44128. return errQUEUE_EMPTY;
  44129. 8012ad8: 2300 movs r3, #0
  44130. 8012ada: e082 b.n 8012be2 <xQueueSemaphoreTake+0x212>
  44131. }
  44132. else if( xEntryTimeSet == pdFALSE )
  44133. 8012adc: 6b7b ldr r3, [r7, #52] @ 0x34
  44134. 8012ade: 2b00 cmp r3, #0
  44135. 8012ae0: d106 bne.n 8012af0 <xQueueSemaphoreTake+0x120>
  44136. {
  44137. /* The semaphore count was 0 and a block time was specified
  44138. so configure the timeout structure ready to block. */
  44139. vTaskInternalSetTimeOutState( &xTimeOut );
  44140. 8012ae2: f107 030c add.w r3, r7, #12
  44141. 8012ae6: 4618 mov r0, r3
  44142. 8012ae8: f001 fbec bl 80142c4 <vTaskInternalSetTimeOutState>
  44143. xEntryTimeSet = pdTRUE;
  44144. 8012aec: 2301 movs r3, #1
  44145. 8012aee: 637b str r3, [r7, #52] @ 0x34
  44146. /* Entry time was already set. */
  44147. mtCOVERAGE_TEST_MARKER();
  44148. }
  44149. }
  44150. }
  44151. taskEXIT_CRITICAL();
  44152. 8012af0: f002 ff14 bl 801591c <vPortExitCritical>
  44153. /* Interrupts and other tasks can give to and take from the semaphore
  44154. now the critical section has been exited. */
  44155. vTaskSuspendAll();
  44156. 8012af4: f001 f90c bl 8013d10 <vTaskSuspendAll>
  44157. prvLockQueue( pxQueue );
  44158. 8012af8: f002 fede bl 80158b8 <vPortEnterCritical>
  44159. 8012afc: 6afb ldr r3, [r7, #44] @ 0x2c
  44160. 8012afe: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  44161. 8012b02: b25b sxtb r3, r3
  44162. 8012b04: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  44163. 8012b08: d103 bne.n 8012b12 <xQueueSemaphoreTake+0x142>
  44164. 8012b0a: 6afb ldr r3, [r7, #44] @ 0x2c
  44165. 8012b0c: 2200 movs r2, #0
  44166. 8012b0e: f883 2044 strb.w r2, [r3, #68] @ 0x44
  44167. 8012b12: 6afb ldr r3, [r7, #44] @ 0x2c
  44168. 8012b14: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  44169. 8012b18: b25b sxtb r3, r3
  44170. 8012b1a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  44171. 8012b1e: d103 bne.n 8012b28 <xQueueSemaphoreTake+0x158>
  44172. 8012b20: 6afb ldr r3, [r7, #44] @ 0x2c
  44173. 8012b22: 2200 movs r2, #0
  44174. 8012b24: f883 2045 strb.w r2, [r3, #69] @ 0x45
  44175. 8012b28: f002 fef8 bl 801591c <vPortExitCritical>
  44176. /* Update the timeout state to see if it has expired yet. */
  44177. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  44178. 8012b2c: 463a mov r2, r7
  44179. 8012b2e: f107 030c add.w r3, r7, #12
  44180. 8012b32: 4611 mov r1, r2
  44181. 8012b34: 4618 mov r0, r3
  44182. 8012b36: f001 fbdb bl 80142f0 <xTaskCheckForTimeOut>
  44183. 8012b3a: 4603 mov r3, r0
  44184. 8012b3c: 2b00 cmp r3, #0
  44185. 8012b3e: d132 bne.n 8012ba6 <xQueueSemaphoreTake+0x1d6>
  44186. {
  44187. /* A block time is specified and not expired. If the semaphore
  44188. count is 0 then enter the Blocked state to wait for a semaphore to
  44189. become available. As semaphores are implemented with queues the
  44190. queue being empty is equivalent to the semaphore count being 0. */
  44191. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  44192. 8012b40: 6af8 ldr r0, [r7, #44] @ 0x2c
  44193. 8012b42: f000 fa33 bl 8012fac <prvIsQueueEmpty>
  44194. 8012b46: 4603 mov r3, r0
  44195. 8012b48: 2b00 cmp r3, #0
  44196. 8012b4a: d026 beq.n 8012b9a <xQueueSemaphoreTake+0x1ca>
  44197. {
  44198. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  44199. #if ( configUSE_MUTEXES == 1 )
  44200. {
  44201. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  44202. 8012b4c: 6afb ldr r3, [r7, #44] @ 0x2c
  44203. 8012b4e: 681b ldr r3, [r3, #0]
  44204. 8012b50: 2b00 cmp r3, #0
  44205. 8012b52: d109 bne.n 8012b68 <xQueueSemaphoreTake+0x198>
  44206. {
  44207. taskENTER_CRITICAL();
  44208. 8012b54: f002 feb0 bl 80158b8 <vPortEnterCritical>
  44209. {
  44210. xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder );
  44211. 8012b58: 6afb ldr r3, [r7, #44] @ 0x2c
  44212. 8012b5a: 689b ldr r3, [r3, #8]
  44213. 8012b5c: 4618 mov r0, r3
  44214. 8012b5e: f001 fd41 bl 80145e4 <xTaskPriorityInherit>
  44215. 8012b62: 6338 str r0, [r7, #48] @ 0x30
  44216. }
  44217. taskEXIT_CRITICAL();
  44218. 8012b64: f002 feda bl 801591c <vPortExitCritical>
  44219. mtCOVERAGE_TEST_MARKER();
  44220. }
  44221. }
  44222. #endif
  44223. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  44224. 8012b68: 6afb ldr r3, [r7, #44] @ 0x2c
  44225. 8012b6a: 3324 adds r3, #36 @ 0x24
  44226. 8012b6c: 683a ldr r2, [r7, #0]
  44227. 8012b6e: 4611 mov r1, r2
  44228. 8012b70: 4618 mov r0, r3
  44229. 8012b72: f001 fac9 bl 8014108 <vTaskPlaceOnEventList>
  44230. prvUnlockQueue( pxQueue );
  44231. 8012b76: 6af8 ldr r0, [r7, #44] @ 0x2c
  44232. 8012b78: f000 f9c6 bl 8012f08 <prvUnlockQueue>
  44233. if( xTaskResumeAll() == pdFALSE )
  44234. 8012b7c: f001 f8d6 bl 8013d2c <xTaskResumeAll>
  44235. 8012b80: 4603 mov r3, r0
  44236. 8012b82: 2b00 cmp r3, #0
  44237. 8012b84: f47f af67 bne.w 8012a56 <xQueueSemaphoreTake+0x86>
  44238. {
  44239. portYIELD_WITHIN_API();
  44240. 8012b88: 4b18 ldr r3, [pc, #96] @ (8012bec <xQueueSemaphoreTake+0x21c>)
  44241. 8012b8a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  44242. 8012b8e: 601a str r2, [r3, #0]
  44243. 8012b90: f3bf 8f4f dsb sy
  44244. 8012b94: f3bf 8f6f isb sy
  44245. 8012b98: e75d b.n 8012a56 <xQueueSemaphoreTake+0x86>
  44246. }
  44247. else
  44248. {
  44249. /* There was no timeout and the semaphore count was not 0, so
  44250. attempt to take the semaphore again. */
  44251. prvUnlockQueue( pxQueue );
  44252. 8012b9a: 6af8 ldr r0, [r7, #44] @ 0x2c
  44253. 8012b9c: f000 f9b4 bl 8012f08 <prvUnlockQueue>
  44254. ( void ) xTaskResumeAll();
  44255. 8012ba0: f001 f8c4 bl 8013d2c <xTaskResumeAll>
  44256. 8012ba4: e757 b.n 8012a56 <xQueueSemaphoreTake+0x86>
  44257. }
  44258. }
  44259. else
  44260. {
  44261. /* Timed out. */
  44262. prvUnlockQueue( pxQueue );
  44263. 8012ba6: 6af8 ldr r0, [r7, #44] @ 0x2c
  44264. 8012ba8: f000 f9ae bl 8012f08 <prvUnlockQueue>
  44265. ( void ) xTaskResumeAll();
  44266. 8012bac: f001 f8be bl 8013d2c <xTaskResumeAll>
  44267. /* If the semaphore count is 0 exit now as the timeout has
  44268. expired. Otherwise return to attempt to take the semaphore that is
  44269. known to be available. As semaphores are implemented by queues the
  44270. queue being empty is equivalent to the semaphore count being 0. */
  44271. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  44272. 8012bb0: 6af8 ldr r0, [r7, #44] @ 0x2c
  44273. 8012bb2: f000 f9fb bl 8012fac <prvIsQueueEmpty>
  44274. 8012bb6: 4603 mov r3, r0
  44275. 8012bb8: 2b00 cmp r3, #0
  44276. 8012bba: f43f af4c beq.w 8012a56 <xQueueSemaphoreTake+0x86>
  44277. #if ( configUSE_MUTEXES == 1 )
  44278. {
  44279. /* xInheritanceOccurred could only have be set if
  44280. pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to
  44281. test the mutex type again to check it is actually a mutex. */
  44282. if( xInheritanceOccurred != pdFALSE )
  44283. 8012bbe: 6b3b ldr r3, [r7, #48] @ 0x30
  44284. 8012bc0: 2b00 cmp r3, #0
  44285. 8012bc2: d00d beq.n 8012be0 <xQueueSemaphoreTake+0x210>
  44286. {
  44287. taskENTER_CRITICAL();
  44288. 8012bc4: f002 fe78 bl 80158b8 <vPortEnterCritical>
  44289. /* This task blocking on the mutex caused another
  44290. task to inherit this task's priority. Now this task
  44291. has timed out the priority should be disinherited
  44292. again, but only as low as the next highest priority
  44293. task that is waiting for the same mutex. */
  44294. uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue );
  44295. 8012bc8: 6af8 ldr r0, [r7, #44] @ 0x2c
  44296. 8012bca: f000 f8f5 bl 8012db8 <prvGetDisinheritPriorityAfterTimeout>
  44297. 8012bce: 6278 str r0, [r7, #36] @ 0x24
  44298. vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority );
  44299. 8012bd0: 6afb ldr r3, [r7, #44] @ 0x2c
  44300. 8012bd2: 689b ldr r3, [r3, #8]
  44301. 8012bd4: 6a79 ldr r1, [r7, #36] @ 0x24
  44302. 8012bd6: 4618 mov r0, r3
  44303. 8012bd8: f001 fddc bl 8014794 <vTaskPriorityDisinheritAfterTimeout>
  44304. }
  44305. taskEXIT_CRITICAL();
  44306. 8012bdc: f002 fe9e bl 801591c <vPortExitCritical>
  44307. }
  44308. }
  44309. #endif /* configUSE_MUTEXES */
  44310. traceQUEUE_RECEIVE_FAILED( pxQueue );
  44311. return errQUEUE_EMPTY;
  44312. 8012be0: 2300 movs r3, #0
  44313. {
  44314. mtCOVERAGE_TEST_MARKER();
  44315. }
  44316. }
  44317. } /*lint -restore */
  44318. }
  44319. 8012be2: 4618 mov r0, r3
  44320. 8012be4: 3738 adds r7, #56 @ 0x38
  44321. 8012be6: 46bd mov sp, r7
  44322. 8012be8: bd80 pop {r7, pc}
  44323. 8012bea: bf00 nop
  44324. 8012bec: e000ed04 .word 0xe000ed04
  44325. 08012bf0 <xQueueReceiveFromISR>:
  44326. } /*lint -restore */
  44327. }
  44328. /*-----------------------------------------------------------*/
  44329. BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken )
  44330. {
  44331. 8012bf0: b580 push {r7, lr}
  44332. 8012bf2: b08e sub sp, #56 @ 0x38
  44333. 8012bf4: af00 add r7, sp, #0
  44334. 8012bf6: 60f8 str r0, [r7, #12]
  44335. 8012bf8: 60b9 str r1, [r7, #8]
  44336. 8012bfa: 607a str r2, [r7, #4]
  44337. BaseType_t xReturn;
  44338. UBaseType_t uxSavedInterruptStatus;
  44339. Queue_t * const pxQueue = xQueue;
  44340. 8012bfc: 68fb ldr r3, [r7, #12]
  44341. 8012bfe: 633b str r3, [r7, #48] @ 0x30
  44342. configASSERT( pxQueue );
  44343. 8012c00: 6b3b ldr r3, [r7, #48] @ 0x30
  44344. 8012c02: 2b00 cmp r3, #0
  44345. 8012c04: d10b bne.n 8012c1e <xQueueReceiveFromISR+0x2e>
  44346. __asm volatile
  44347. 8012c06: f04f 0350 mov.w r3, #80 @ 0x50
  44348. 8012c0a: f383 8811 msr BASEPRI, r3
  44349. 8012c0e: f3bf 8f6f isb sy
  44350. 8012c12: f3bf 8f4f dsb sy
  44351. 8012c16: 623b str r3, [r7, #32]
  44352. }
  44353. 8012c18: bf00 nop
  44354. 8012c1a: bf00 nop
  44355. 8012c1c: e7fd b.n 8012c1a <xQueueReceiveFromISR+0x2a>
  44356. configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  44357. 8012c1e: 68bb ldr r3, [r7, #8]
  44358. 8012c20: 2b00 cmp r3, #0
  44359. 8012c22: d103 bne.n 8012c2c <xQueueReceiveFromISR+0x3c>
  44360. 8012c24: 6b3b ldr r3, [r7, #48] @ 0x30
  44361. 8012c26: 6c1b ldr r3, [r3, #64] @ 0x40
  44362. 8012c28: 2b00 cmp r3, #0
  44363. 8012c2a: d101 bne.n 8012c30 <xQueueReceiveFromISR+0x40>
  44364. 8012c2c: 2301 movs r3, #1
  44365. 8012c2e: e000 b.n 8012c32 <xQueueReceiveFromISR+0x42>
  44366. 8012c30: 2300 movs r3, #0
  44367. 8012c32: 2b00 cmp r3, #0
  44368. 8012c34: d10b bne.n 8012c4e <xQueueReceiveFromISR+0x5e>
  44369. __asm volatile
  44370. 8012c36: f04f 0350 mov.w r3, #80 @ 0x50
  44371. 8012c3a: f383 8811 msr BASEPRI, r3
  44372. 8012c3e: f3bf 8f6f isb sy
  44373. 8012c42: f3bf 8f4f dsb sy
  44374. 8012c46: 61fb str r3, [r7, #28]
  44375. }
  44376. 8012c48: bf00 nop
  44377. 8012c4a: bf00 nop
  44378. 8012c4c: e7fd b.n 8012c4a <xQueueReceiveFromISR+0x5a>
  44379. that have been assigned a priority at or (logically) below the maximum
  44380. system call interrupt priority. FreeRTOS maintains a separate interrupt
  44381. safe API to ensure interrupt entry is as fast and as simple as possible.
  44382. More information (albeit Cortex-M specific) is provided on the following
  44383. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  44384. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  44385. 8012c4e: f002 ff13 bl 8015a78 <vPortValidateInterruptPriority>
  44386. __asm volatile
  44387. 8012c52: f3ef 8211 mrs r2, BASEPRI
  44388. 8012c56: f04f 0350 mov.w r3, #80 @ 0x50
  44389. 8012c5a: f383 8811 msr BASEPRI, r3
  44390. 8012c5e: f3bf 8f6f isb sy
  44391. 8012c62: f3bf 8f4f dsb sy
  44392. 8012c66: 61ba str r2, [r7, #24]
  44393. 8012c68: 617b str r3, [r7, #20]
  44394. return ulOriginalBASEPRI;
  44395. 8012c6a: 69bb ldr r3, [r7, #24]
  44396. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  44397. 8012c6c: 62fb str r3, [r7, #44] @ 0x2c
  44398. {
  44399. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  44400. 8012c6e: 6b3b ldr r3, [r7, #48] @ 0x30
  44401. 8012c70: 6b9b ldr r3, [r3, #56] @ 0x38
  44402. 8012c72: 62bb str r3, [r7, #40] @ 0x28
  44403. /* Cannot block in an ISR, so check there is data available. */
  44404. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  44405. 8012c74: 6abb ldr r3, [r7, #40] @ 0x28
  44406. 8012c76: 2b00 cmp r3, #0
  44407. 8012c78: d02f beq.n 8012cda <xQueueReceiveFromISR+0xea>
  44408. {
  44409. const int8_t cRxLock = pxQueue->cRxLock;
  44410. 8012c7a: 6b3b ldr r3, [r7, #48] @ 0x30
  44411. 8012c7c: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  44412. 8012c80: f887 3027 strb.w r3, [r7, #39] @ 0x27
  44413. traceQUEUE_RECEIVE_FROM_ISR( pxQueue );
  44414. prvCopyDataFromQueue( pxQueue, pvBuffer );
  44415. 8012c84: 68b9 ldr r1, [r7, #8]
  44416. 8012c86: 6b38 ldr r0, [r7, #48] @ 0x30
  44417. 8012c88: f000 f918 bl 8012ebc <prvCopyDataFromQueue>
  44418. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  44419. 8012c8c: 6abb ldr r3, [r7, #40] @ 0x28
  44420. 8012c8e: 1e5a subs r2, r3, #1
  44421. 8012c90: 6b3b ldr r3, [r7, #48] @ 0x30
  44422. 8012c92: 639a str r2, [r3, #56] @ 0x38
  44423. /* If the queue is locked the event list will not be modified.
  44424. Instead update the lock count so the task that unlocks the queue
  44425. will know that an ISR has removed data while the queue was
  44426. locked. */
  44427. if( cRxLock == queueUNLOCKED )
  44428. 8012c94: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  44429. 8012c98: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  44430. 8012c9c: d112 bne.n 8012cc4 <xQueueReceiveFromISR+0xd4>
  44431. {
  44432. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  44433. 8012c9e: 6b3b ldr r3, [r7, #48] @ 0x30
  44434. 8012ca0: 691b ldr r3, [r3, #16]
  44435. 8012ca2: 2b00 cmp r3, #0
  44436. 8012ca4: d016 beq.n 8012cd4 <xQueueReceiveFromISR+0xe4>
  44437. {
  44438. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  44439. 8012ca6: 6b3b ldr r3, [r7, #48] @ 0x30
  44440. 8012ca8: 3310 adds r3, #16
  44441. 8012caa: 4618 mov r0, r3
  44442. 8012cac: f001 fa7e bl 80141ac <xTaskRemoveFromEventList>
  44443. 8012cb0: 4603 mov r3, r0
  44444. 8012cb2: 2b00 cmp r3, #0
  44445. 8012cb4: d00e beq.n 8012cd4 <xQueueReceiveFromISR+0xe4>
  44446. {
  44447. /* The task waiting has a higher priority than us so
  44448. force a context switch. */
  44449. if( pxHigherPriorityTaskWoken != NULL )
  44450. 8012cb6: 687b ldr r3, [r7, #4]
  44451. 8012cb8: 2b00 cmp r3, #0
  44452. 8012cba: d00b beq.n 8012cd4 <xQueueReceiveFromISR+0xe4>
  44453. {
  44454. *pxHigherPriorityTaskWoken = pdTRUE;
  44455. 8012cbc: 687b ldr r3, [r7, #4]
  44456. 8012cbe: 2201 movs r2, #1
  44457. 8012cc0: 601a str r2, [r3, #0]
  44458. 8012cc2: e007 b.n 8012cd4 <xQueueReceiveFromISR+0xe4>
  44459. }
  44460. else
  44461. {
  44462. /* Increment the lock count so the task that unlocks the queue
  44463. knows that data was removed while it was locked. */
  44464. pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 );
  44465. 8012cc4: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  44466. 8012cc8: 3301 adds r3, #1
  44467. 8012cca: b2db uxtb r3, r3
  44468. 8012ccc: b25a sxtb r2, r3
  44469. 8012cce: 6b3b ldr r3, [r7, #48] @ 0x30
  44470. 8012cd0: f883 2044 strb.w r2, [r3, #68] @ 0x44
  44471. }
  44472. xReturn = pdPASS;
  44473. 8012cd4: 2301 movs r3, #1
  44474. 8012cd6: 637b str r3, [r7, #52] @ 0x34
  44475. 8012cd8: e001 b.n 8012cde <xQueueReceiveFromISR+0xee>
  44476. }
  44477. else
  44478. {
  44479. xReturn = pdFAIL;
  44480. 8012cda: 2300 movs r3, #0
  44481. 8012cdc: 637b str r3, [r7, #52] @ 0x34
  44482. 8012cde: 6afb ldr r3, [r7, #44] @ 0x2c
  44483. 8012ce0: 613b str r3, [r7, #16]
  44484. __asm volatile
  44485. 8012ce2: 693b ldr r3, [r7, #16]
  44486. 8012ce4: f383 8811 msr BASEPRI, r3
  44487. }
  44488. 8012ce8: bf00 nop
  44489. traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue );
  44490. }
  44491. }
  44492. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  44493. return xReturn;
  44494. 8012cea: 6b7b ldr r3, [r7, #52] @ 0x34
  44495. }
  44496. 8012cec: 4618 mov r0, r3
  44497. 8012cee: 3738 adds r7, #56 @ 0x38
  44498. 8012cf0: 46bd mov sp, r7
  44499. 8012cf2: bd80 pop {r7, pc}
  44500. 08012cf4 <uxQueueMessagesWaiting>:
  44501. return xReturn;
  44502. }
  44503. /*-----------------------------------------------------------*/
  44504. UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue )
  44505. {
  44506. 8012cf4: b580 push {r7, lr}
  44507. 8012cf6: b084 sub sp, #16
  44508. 8012cf8: af00 add r7, sp, #0
  44509. 8012cfa: 6078 str r0, [r7, #4]
  44510. UBaseType_t uxReturn;
  44511. configASSERT( xQueue );
  44512. 8012cfc: 687b ldr r3, [r7, #4]
  44513. 8012cfe: 2b00 cmp r3, #0
  44514. 8012d00: d10b bne.n 8012d1a <uxQueueMessagesWaiting+0x26>
  44515. __asm volatile
  44516. 8012d02: f04f 0350 mov.w r3, #80 @ 0x50
  44517. 8012d06: f383 8811 msr BASEPRI, r3
  44518. 8012d0a: f3bf 8f6f isb sy
  44519. 8012d0e: f3bf 8f4f dsb sy
  44520. 8012d12: 60bb str r3, [r7, #8]
  44521. }
  44522. 8012d14: bf00 nop
  44523. 8012d16: bf00 nop
  44524. 8012d18: e7fd b.n 8012d16 <uxQueueMessagesWaiting+0x22>
  44525. taskENTER_CRITICAL();
  44526. 8012d1a: f002 fdcd bl 80158b8 <vPortEnterCritical>
  44527. {
  44528. uxReturn = ( ( Queue_t * ) xQueue )->uxMessagesWaiting;
  44529. 8012d1e: 687b ldr r3, [r7, #4]
  44530. 8012d20: 6b9b ldr r3, [r3, #56] @ 0x38
  44531. 8012d22: 60fb str r3, [r7, #12]
  44532. }
  44533. taskEXIT_CRITICAL();
  44534. 8012d24: f002 fdfa bl 801591c <vPortExitCritical>
  44535. return uxReturn;
  44536. 8012d28: 68fb ldr r3, [r7, #12]
  44537. } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
  44538. 8012d2a: 4618 mov r0, r3
  44539. 8012d2c: 3710 adds r7, #16
  44540. 8012d2e: 46bd mov sp, r7
  44541. 8012d30: bd80 pop {r7, pc}
  44542. 08012d32 <uxQueueMessagesWaitingFromISR>:
  44543. return uxReturn;
  44544. } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
  44545. /*-----------------------------------------------------------*/
  44546. UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue )
  44547. {
  44548. 8012d32: b480 push {r7}
  44549. 8012d34: b087 sub sp, #28
  44550. 8012d36: af00 add r7, sp, #0
  44551. 8012d38: 6078 str r0, [r7, #4]
  44552. UBaseType_t uxReturn;
  44553. Queue_t * const pxQueue = xQueue;
  44554. 8012d3a: 687b ldr r3, [r7, #4]
  44555. 8012d3c: 617b str r3, [r7, #20]
  44556. configASSERT( pxQueue );
  44557. 8012d3e: 697b ldr r3, [r7, #20]
  44558. 8012d40: 2b00 cmp r3, #0
  44559. 8012d42: d10b bne.n 8012d5c <uxQueueMessagesWaitingFromISR+0x2a>
  44560. __asm volatile
  44561. 8012d44: f04f 0350 mov.w r3, #80 @ 0x50
  44562. 8012d48: f383 8811 msr BASEPRI, r3
  44563. 8012d4c: f3bf 8f6f isb sy
  44564. 8012d50: f3bf 8f4f dsb sy
  44565. 8012d54: 60fb str r3, [r7, #12]
  44566. }
  44567. 8012d56: bf00 nop
  44568. 8012d58: bf00 nop
  44569. 8012d5a: e7fd b.n 8012d58 <uxQueueMessagesWaitingFromISR+0x26>
  44570. uxReturn = pxQueue->uxMessagesWaiting;
  44571. 8012d5c: 697b ldr r3, [r7, #20]
  44572. 8012d5e: 6b9b ldr r3, [r3, #56] @ 0x38
  44573. 8012d60: 613b str r3, [r7, #16]
  44574. return uxReturn;
  44575. 8012d62: 693b ldr r3, [r7, #16]
  44576. } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
  44577. 8012d64: 4618 mov r0, r3
  44578. 8012d66: 371c adds r7, #28
  44579. 8012d68: 46bd mov sp, r7
  44580. 8012d6a: f85d 7b04 ldr.w r7, [sp], #4
  44581. 8012d6e: 4770 bx lr
  44582. 08012d70 <vQueueDelete>:
  44583. /*-----------------------------------------------------------*/
  44584. void vQueueDelete( QueueHandle_t xQueue )
  44585. {
  44586. 8012d70: b580 push {r7, lr}
  44587. 8012d72: b084 sub sp, #16
  44588. 8012d74: af00 add r7, sp, #0
  44589. 8012d76: 6078 str r0, [r7, #4]
  44590. Queue_t * const pxQueue = xQueue;
  44591. 8012d78: 687b ldr r3, [r7, #4]
  44592. 8012d7a: 60fb str r3, [r7, #12]
  44593. configASSERT( pxQueue );
  44594. 8012d7c: 68fb ldr r3, [r7, #12]
  44595. 8012d7e: 2b00 cmp r3, #0
  44596. 8012d80: d10b bne.n 8012d9a <vQueueDelete+0x2a>
  44597. __asm volatile
  44598. 8012d82: f04f 0350 mov.w r3, #80 @ 0x50
  44599. 8012d86: f383 8811 msr BASEPRI, r3
  44600. 8012d8a: f3bf 8f6f isb sy
  44601. 8012d8e: f3bf 8f4f dsb sy
  44602. 8012d92: 60bb str r3, [r7, #8]
  44603. }
  44604. 8012d94: bf00 nop
  44605. 8012d96: bf00 nop
  44606. 8012d98: e7fd b.n 8012d96 <vQueueDelete+0x26>
  44607. traceQUEUE_DELETE( pxQueue );
  44608. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  44609. {
  44610. vQueueUnregisterQueue( pxQueue );
  44611. 8012d9a: 68f8 ldr r0, [r7, #12]
  44612. 8012d9c: f000 f95e bl 801305c <vQueueUnregisterQueue>
  44613. }
  44614. #elif( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  44615. {
  44616. /* The queue could have been allocated statically or dynamically, so
  44617. check before attempting to free the memory. */
  44618. if( pxQueue->ucStaticallyAllocated == ( uint8_t ) pdFALSE )
  44619. 8012da0: 68fb ldr r3, [r7, #12]
  44620. 8012da2: f893 3046 ldrb.w r3, [r3, #70] @ 0x46
  44621. 8012da6: 2b00 cmp r3, #0
  44622. 8012da8: d102 bne.n 8012db0 <vQueueDelete+0x40>
  44623. {
  44624. vPortFree( pxQueue );
  44625. 8012daa: 68f8 ldr r0, [r7, #12]
  44626. 8012dac: f002 ff74 bl 8015c98 <vPortFree>
  44627. /* The queue must have been statically allocated, so is not going to be
  44628. deleted. Avoid compiler warnings about the unused parameter. */
  44629. ( void ) pxQueue;
  44630. }
  44631. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  44632. }
  44633. 8012db0: bf00 nop
  44634. 8012db2: 3710 adds r7, #16
  44635. 8012db4: 46bd mov sp, r7
  44636. 8012db6: bd80 pop {r7, pc}
  44637. 08012db8 <prvGetDisinheritPriorityAfterTimeout>:
  44638. /*-----------------------------------------------------------*/
  44639. #if( configUSE_MUTEXES == 1 )
  44640. static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue )
  44641. {
  44642. 8012db8: b480 push {r7}
  44643. 8012dba: b085 sub sp, #20
  44644. 8012dbc: af00 add r7, sp, #0
  44645. 8012dbe: 6078 str r0, [r7, #4]
  44646. priority, but the waiting task times out, then the holder should
  44647. disinherit the priority - but only down to the highest priority of any
  44648. other tasks that are waiting for the same mutex. For this purpose,
  44649. return the priority of the highest priority task that is waiting for the
  44650. mutex. */
  44651. if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U )
  44652. 8012dc0: 687b ldr r3, [r7, #4]
  44653. 8012dc2: 6a5b ldr r3, [r3, #36] @ 0x24
  44654. 8012dc4: 2b00 cmp r3, #0
  44655. 8012dc6: d006 beq.n 8012dd6 <prvGetDisinheritPriorityAfterTimeout+0x1e>
  44656. {
  44657. uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) );
  44658. 8012dc8: 687b ldr r3, [r7, #4]
  44659. 8012dca: 6b1b ldr r3, [r3, #48] @ 0x30
  44660. 8012dcc: 681b ldr r3, [r3, #0]
  44661. 8012dce: f1c3 0338 rsb r3, r3, #56 @ 0x38
  44662. 8012dd2: 60fb str r3, [r7, #12]
  44663. 8012dd4: e001 b.n 8012dda <prvGetDisinheritPriorityAfterTimeout+0x22>
  44664. }
  44665. else
  44666. {
  44667. uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY;
  44668. 8012dd6: 2300 movs r3, #0
  44669. 8012dd8: 60fb str r3, [r7, #12]
  44670. }
  44671. return uxHighestPriorityOfWaitingTasks;
  44672. 8012dda: 68fb ldr r3, [r7, #12]
  44673. }
  44674. 8012ddc: 4618 mov r0, r3
  44675. 8012dde: 3714 adds r7, #20
  44676. 8012de0: 46bd mov sp, r7
  44677. 8012de2: f85d 7b04 ldr.w r7, [sp], #4
  44678. 8012de6: 4770 bx lr
  44679. 08012de8 <prvCopyDataToQueue>:
  44680. #endif /* configUSE_MUTEXES */
  44681. /*-----------------------------------------------------------*/
  44682. static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
  44683. {
  44684. 8012de8: b580 push {r7, lr}
  44685. 8012dea: b086 sub sp, #24
  44686. 8012dec: af00 add r7, sp, #0
  44687. 8012dee: 60f8 str r0, [r7, #12]
  44688. 8012df0: 60b9 str r1, [r7, #8]
  44689. 8012df2: 607a str r2, [r7, #4]
  44690. BaseType_t xReturn = pdFALSE;
  44691. 8012df4: 2300 movs r3, #0
  44692. 8012df6: 617b str r3, [r7, #20]
  44693. UBaseType_t uxMessagesWaiting;
  44694. /* This function is called from a critical section. */
  44695. uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  44696. 8012df8: 68fb ldr r3, [r7, #12]
  44697. 8012dfa: 6b9b ldr r3, [r3, #56] @ 0x38
  44698. 8012dfc: 613b str r3, [r7, #16]
  44699. if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
  44700. 8012dfe: 68fb ldr r3, [r7, #12]
  44701. 8012e00: 6c1b ldr r3, [r3, #64] @ 0x40
  44702. 8012e02: 2b00 cmp r3, #0
  44703. 8012e04: d10d bne.n 8012e22 <prvCopyDataToQueue+0x3a>
  44704. {
  44705. #if ( configUSE_MUTEXES == 1 )
  44706. {
  44707. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  44708. 8012e06: 68fb ldr r3, [r7, #12]
  44709. 8012e08: 681b ldr r3, [r3, #0]
  44710. 8012e0a: 2b00 cmp r3, #0
  44711. 8012e0c: d14d bne.n 8012eaa <prvCopyDataToQueue+0xc2>
  44712. {
  44713. /* The mutex is no longer being held. */
  44714. xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
  44715. 8012e0e: 68fb ldr r3, [r7, #12]
  44716. 8012e10: 689b ldr r3, [r3, #8]
  44717. 8012e12: 4618 mov r0, r3
  44718. 8012e14: f001 fc4e bl 80146b4 <xTaskPriorityDisinherit>
  44719. 8012e18: 6178 str r0, [r7, #20]
  44720. pxQueue->u.xSemaphore.xMutexHolder = NULL;
  44721. 8012e1a: 68fb ldr r3, [r7, #12]
  44722. 8012e1c: 2200 movs r2, #0
  44723. 8012e1e: 609a str r2, [r3, #8]
  44724. 8012e20: e043 b.n 8012eaa <prvCopyDataToQueue+0xc2>
  44725. mtCOVERAGE_TEST_MARKER();
  44726. }
  44727. }
  44728. #endif /* configUSE_MUTEXES */
  44729. }
  44730. else if( xPosition == queueSEND_TO_BACK )
  44731. 8012e22: 687b ldr r3, [r7, #4]
  44732. 8012e24: 2b00 cmp r3, #0
  44733. 8012e26: d119 bne.n 8012e5c <prvCopyDataToQueue+0x74>
  44734. {
  44735. ( 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. */
  44736. 8012e28: 68fb ldr r3, [r7, #12]
  44737. 8012e2a: 6858 ldr r0, [r3, #4]
  44738. 8012e2c: 68fb ldr r3, [r7, #12]
  44739. 8012e2e: 6c1b ldr r3, [r3, #64] @ 0x40
  44740. 8012e30: 461a mov r2, r3
  44741. 8012e32: 68b9 ldr r1, [r7, #8]
  44742. 8012e34: f017 ff1b bl 802ac6e <memcpy>
  44743. 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. */
  44744. 8012e38: 68fb ldr r3, [r7, #12]
  44745. 8012e3a: 685a ldr r2, [r3, #4]
  44746. 8012e3c: 68fb ldr r3, [r7, #12]
  44747. 8012e3e: 6c1b ldr r3, [r3, #64] @ 0x40
  44748. 8012e40: 441a add r2, r3
  44749. 8012e42: 68fb ldr r3, [r7, #12]
  44750. 8012e44: 605a str r2, [r3, #4]
  44751. if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  44752. 8012e46: 68fb ldr r3, [r7, #12]
  44753. 8012e48: 685a ldr r2, [r3, #4]
  44754. 8012e4a: 68fb ldr r3, [r7, #12]
  44755. 8012e4c: 689b ldr r3, [r3, #8]
  44756. 8012e4e: 429a cmp r2, r3
  44757. 8012e50: d32b bcc.n 8012eaa <prvCopyDataToQueue+0xc2>
  44758. {
  44759. pxQueue->pcWriteTo = pxQueue->pcHead;
  44760. 8012e52: 68fb ldr r3, [r7, #12]
  44761. 8012e54: 681a ldr r2, [r3, #0]
  44762. 8012e56: 68fb ldr r3, [r7, #12]
  44763. 8012e58: 605a str r2, [r3, #4]
  44764. 8012e5a: e026 b.n 8012eaa <prvCopyDataToQueue+0xc2>
  44765. mtCOVERAGE_TEST_MARKER();
  44766. }
  44767. }
  44768. else
  44769. {
  44770. ( 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. */
  44771. 8012e5c: 68fb ldr r3, [r7, #12]
  44772. 8012e5e: 68d8 ldr r0, [r3, #12]
  44773. 8012e60: 68fb ldr r3, [r7, #12]
  44774. 8012e62: 6c1b ldr r3, [r3, #64] @ 0x40
  44775. 8012e64: 461a mov r2, r3
  44776. 8012e66: 68b9 ldr r1, [r7, #8]
  44777. 8012e68: f017 ff01 bl 802ac6e <memcpy>
  44778. pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
  44779. 8012e6c: 68fb ldr r3, [r7, #12]
  44780. 8012e6e: 68da ldr r2, [r3, #12]
  44781. 8012e70: 68fb ldr r3, [r7, #12]
  44782. 8012e72: 6c1b ldr r3, [r3, #64] @ 0x40
  44783. 8012e74: 425b negs r3, r3
  44784. 8012e76: 441a add r2, r3
  44785. 8012e78: 68fb ldr r3, [r7, #12]
  44786. 8012e7a: 60da str r2, [r3, #12]
  44787. if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  44788. 8012e7c: 68fb ldr r3, [r7, #12]
  44789. 8012e7e: 68da ldr r2, [r3, #12]
  44790. 8012e80: 68fb ldr r3, [r7, #12]
  44791. 8012e82: 681b ldr r3, [r3, #0]
  44792. 8012e84: 429a cmp r2, r3
  44793. 8012e86: d207 bcs.n 8012e98 <prvCopyDataToQueue+0xb0>
  44794. {
  44795. pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
  44796. 8012e88: 68fb ldr r3, [r7, #12]
  44797. 8012e8a: 689a ldr r2, [r3, #8]
  44798. 8012e8c: 68fb ldr r3, [r7, #12]
  44799. 8012e8e: 6c1b ldr r3, [r3, #64] @ 0x40
  44800. 8012e90: 425b negs r3, r3
  44801. 8012e92: 441a add r2, r3
  44802. 8012e94: 68fb ldr r3, [r7, #12]
  44803. 8012e96: 60da str r2, [r3, #12]
  44804. else
  44805. {
  44806. mtCOVERAGE_TEST_MARKER();
  44807. }
  44808. if( xPosition == queueOVERWRITE )
  44809. 8012e98: 687b ldr r3, [r7, #4]
  44810. 8012e9a: 2b02 cmp r3, #2
  44811. 8012e9c: d105 bne.n 8012eaa <prvCopyDataToQueue+0xc2>
  44812. {
  44813. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  44814. 8012e9e: 693b ldr r3, [r7, #16]
  44815. 8012ea0: 2b00 cmp r3, #0
  44816. 8012ea2: d002 beq.n 8012eaa <prvCopyDataToQueue+0xc2>
  44817. {
  44818. /* An item is not being added but overwritten, so subtract
  44819. one from the recorded number of items in the queue so when
  44820. one is added again below the number of recorded items remains
  44821. correct. */
  44822. --uxMessagesWaiting;
  44823. 8012ea4: 693b ldr r3, [r7, #16]
  44824. 8012ea6: 3b01 subs r3, #1
  44825. 8012ea8: 613b str r3, [r7, #16]
  44826. {
  44827. mtCOVERAGE_TEST_MARKER();
  44828. }
  44829. }
  44830. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  44831. 8012eaa: 693b ldr r3, [r7, #16]
  44832. 8012eac: 1c5a adds r2, r3, #1
  44833. 8012eae: 68fb ldr r3, [r7, #12]
  44834. 8012eb0: 639a str r2, [r3, #56] @ 0x38
  44835. return xReturn;
  44836. 8012eb2: 697b ldr r3, [r7, #20]
  44837. }
  44838. 8012eb4: 4618 mov r0, r3
  44839. 8012eb6: 3718 adds r7, #24
  44840. 8012eb8: 46bd mov sp, r7
  44841. 8012eba: bd80 pop {r7, pc}
  44842. 08012ebc <prvCopyDataFromQueue>:
  44843. /*-----------------------------------------------------------*/
  44844. static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
  44845. {
  44846. 8012ebc: b580 push {r7, lr}
  44847. 8012ebe: b082 sub sp, #8
  44848. 8012ec0: af00 add r7, sp, #0
  44849. 8012ec2: 6078 str r0, [r7, #4]
  44850. 8012ec4: 6039 str r1, [r7, #0]
  44851. if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
  44852. 8012ec6: 687b ldr r3, [r7, #4]
  44853. 8012ec8: 6c1b ldr r3, [r3, #64] @ 0x40
  44854. 8012eca: 2b00 cmp r3, #0
  44855. 8012ecc: d018 beq.n 8012f00 <prvCopyDataFromQueue+0x44>
  44856. {
  44857. 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. */
  44858. 8012ece: 687b ldr r3, [r7, #4]
  44859. 8012ed0: 68da ldr r2, [r3, #12]
  44860. 8012ed2: 687b ldr r3, [r7, #4]
  44861. 8012ed4: 6c1b ldr r3, [r3, #64] @ 0x40
  44862. 8012ed6: 441a add r2, r3
  44863. 8012ed8: 687b ldr r3, [r7, #4]
  44864. 8012eda: 60da str r2, [r3, #12]
  44865. if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
  44866. 8012edc: 687b ldr r3, [r7, #4]
  44867. 8012ede: 68da ldr r2, [r3, #12]
  44868. 8012ee0: 687b ldr r3, [r7, #4]
  44869. 8012ee2: 689b ldr r3, [r3, #8]
  44870. 8012ee4: 429a cmp r2, r3
  44871. 8012ee6: d303 bcc.n 8012ef0 <prvCopyDataFromQueue+0x34>
  44872. {
  44873. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
  44874. 8012ee8: 687b ldr r3, [r7, #4]
  44875. 8012eea: 681a ldr r2, [r3, #0]
  44876. 8012eec: 687b ldr r3, [r7, #4]
  44877. 8012eee: 60da str r2, [r3, #12]
  44878. }
  44879. else
  44880. {
  44881. mtCOVERAGE_TEST_MARKER();
  44882. }
  44883. ( 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. */
  44884. 8012ef0: 687b ldr r3, [r7, #4]
  44885. 8012ef2: 68d9 ldr r1, [r3, #12]
  44886. 8012ef4: 687b ldr r3, [r7, #4]
  44887. 8012ef6: 6c1b ldr r3, [r3, #64] @ 0x40
  44888. 8012ef8: 461a mov r2, r3
  44889. 8012efa: 6838 ldr r0, [r7, #0]
  44890. 8012efc: f017 feb7 bl 802ac6e <memcpy>
  44891. }
  44892. }
  44893. 8012f00: bf00 nop
  44894. 8012f02: 3708 adds r7, #8
  44895. 8012f04: 46bd mov sp, r7
  44896. 8012f06: bd80 pop {r7, pc}
  44897. 08012f08 <prvUnlockQueue>:
  44898. /*-----------------------------------------------------------*/
  44899. static void prvUnlockQueue( Queue_t * const pxQueue )
  44900. {
  44901. 8012f08: b580 push {r7, lr}
  44902. 8012f0a: b084 sub sp, #16
  44903. 8012f0c: af00 add r7, sp, #0
  44904. 8012f0e: 6078 str r0, [r7, #4]
  44905. /* The lock counts contains the number of extra data items placed or
  44906. removed from the queue while the queue was locked. When a queue is
  44907. locked items can be added or removed, but the event lists cannot be
  44908. updated. */
  44909. taskENTER_CRITICAL();
  44910. 8012f10: f002 fcd2 bl 80158b8 <vPortEnterCritical>
  44911. {
  44912. int8_t cTxLock = pxQueue->cTxLock;
  44913. 8012f14: 687b ldr r3, [r7, #4]
  44914. 8012f16: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  44915. 8012f1a: 73fb strb r3, [r7, #15]
  44916. /* See if data was added to the queue while it was locked. */
  44917. while( cTxLock > queueLOCKED_UNMODIFIED )
  44918. 8012f1c: e011 b.n 8012f42 <prvUnlockQueue+0x3a>
  44919. }
  44920. #else /* configUSE_QUEUE_SETS */
  44921. {
  44922. /* Tasks that are removed from the event list will get added to
  44923. the pending ready list as the scheduler is still suspended. */
  44924. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  44925. 8012f1e: 687b ldr r3, [r7, #4]
  44926. 8012f20: 6a5b ldr r3, [r3, #36] @ 0x24
  44927. 8012f22: 2b00 cmp r3, #0
  44928. 8012f24: d012 beq.n 8012f4c <prvUnlockQueue+0x44>
  44929. {
  44930. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  44931. 8012f26: 687b ldr r3, [r7, #4]
  44932. 8012f28: 3324 adds r3, #36 @ 0x24
  44933. 8012f2a: 4618 mov r0, r3
  44934. 8012f2c: f001 f93e bl 80141ac <xTaskRemoveFromEventList>
  44935. 8012f30: 4603 mov r3, r0
  44936. 8012f32: 2b00 cmp r3, #0
  44937. 8012f34: d001 beq.n 8012f3a <prvUnlockQueue+0x32>
  44938. {
  44939. /* The task waiting has a higher priority so record that
  44940. a context switch is required. */
  44941. vTaskMissedYield();
  44942. 8012f36: f001 fa3f bl 80143b8 <vTaskMissedYield>
  44943. break;
  44944. }
  44945. }
  44946. #endif /* configUSE_QUEUE_SETS */
  44947. --cTxLock;
  44948. 8012f3a: 7bfb ldrb r3, [r7, #15]
  44949. 8012f3c: 3b01 subs r3, #1
  44950. 8012f3e: b2db uxtb r3, r3
  44951. 8012f40: 73fb strb r3, [r7, #15]
  44952. while( cTxLock > queueLOCKED_UNMODIFIED )
  44953. 8012f42: f997 300f ldrsb.w r3, [r7, #15]
  44954. 8012f46: 2b00 cmp r3, #0
  44955. 8012f48: dce9 bgt.n 8012f1e <prvUnlockQueue+0x16>
  44956. 8012f4a: e000 b.n 8012f4e <prvUnlockQueue+0x46>
  44957. break;
  44958. 8012f4c: bf00 nop
  44959. }
  44960. pxQueue->cTxLock = queueUNLOCKED;
  44961. 8012f4e: 687b ldr r3, [r7, #4]
  44962. 8012f50: 22ff movs r2, #255 @ 0xff
  44963. 8012f52: f883 2045 strb.w r2, [r3, #69] @ 0x45
  44964. }
  44965. taskEXIT_CRITICAL();
  44966. 8012f56: f002 fce1 bl 801591c <vPortExitCritical>
  44967. /* Do the same for the Rx lock. */
  44968. taskENTER_CRITICAL();
  44969. 8012f5a: f002 fcad bl 80158b8 <vPortEnterCritical>
  44970. {
  44971. int8_t cRxLock = pxQueue->cRxLock;
  44972. 8012f5e: 687b ldr r3, [r7, #4]
  44973. 8012f60: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  44974. 8012f64: 73bb strb r3, [r7, #14]
  44975. while( cRxLock > queueLOCKED_UNMODIFIED )
  44976. 8012f66: e011 b.n 8012f8c <prvUnlockQueue+0x84>
  44977. {
  44978. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  44979. 8012f68: 687b ldr r3, [r7, #4]
  44980. 8012f6a: 691b ldr r3, [r3, #16]
  44981. 8012f6c: 2b00 cmp r3, #0
  44982. 8012f6e: d012 beq.n 8012f96 <prvUnlockQueue+0x8e>
  44983. {
  44984. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  44985. 8012f70: 687b ldr r3, [r7, #4]
  44986. 8012f72: 3310 adds r3, #16
  44987. 8012f74: 4618 mov r0, r3
  44988. 8012f76: f001 f919 bl 80141ac <xTaskRemoveFromEventList>
  44989. 8012f7a: 4603 mov r3, r0
  44990. 8012f7c: 2b00 cmp r3, #0
  44991. 8012f7e: d001 beq.n 8012f84 <prvUnlockQueue+0x7c>
  44992. {
  44993. vTaskMissedYield();
  44994. 8012f80: f001 fa1a bl 80143b8 <vTaskMissedYield>
  44995. else
  44996. {
  44997. mtCOVERAGE_TEST_MARKER();
  44998. }
  44999. --cRxLock;
  45000. 8012f84: 7bbb ldrb r3, [r7, #14]
  45001. 8012f86: 3b01 subs r3, #1
  45002. 8012f88: b2db uxtb r3, r3
  45003. 8012f8a: 73bb strb r3, [r7, #14]
  45004. while( cRxLock > queueLOCKED_UNMODIFIED )
  45005. 8012f8c: f997 300e ldrsb.w r3, [r7, #14]
  45006. 8012f90: 2b00 cmp r3, #0
  45007. 8012f92: dce9 bgt.n 8012f68 <prvUnlockQueue+0x60>
  45008. 8012f94: e000 b.n 8012f98 <prvUnlockQueue+0x90>
  45009. }
  45010. else
  45011. {
  45012. break;
  45013. 8012f96: bf00 nop
  45014. }
  45015. }
  45016. pxQueue->cRxLock = queueUNLOCKED;
  45017. 8012f98: 687b ldr r3, [r7, #4]
  45018. 8012f9a: 22ff movs r2, #255 @ 0xff
  45019. 8012f9c: f883 2044 strb.w r2, [r3, #68] @ 0x44
  45020. }
  45021. taskEXIT_CRITICAL();
  45022. 8012fa0: f002 fcbc bl 801591c <vPortExitCritical>
  45023. }
  45024. 8012fa4: bf00 nop
  45025. 8012fa6: 3710 adds r7, #16
  45026. 8012fa8: 46bd mov sp, r7
  45027. 8012faa: bd80 pop {r7, pc}
  45028. 08012fac <prvIsQueueEmpty>:
  45029. /*-----------------------------------------------------------*/
  45030. static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
  45031. {
  45032. 8012fac: b580 push {r7, lr}
  45033. 8012fae: b084 sub sp, #16
  45034. 8012fb0: af00 add r7, sp, #0
  45035. 8012fb2: 6078 str r0, [r7, #4]
  45036. BaseType_t xReturn;
  45037. taskENTER_CRITICAL();
  45038. 8012fb4: f002 fc80 bl 80158b8 <vPortEnterCritical>
  45039. {
  45040. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
  45041. 8012fb8: 687b ldr r3, [r7, #4]
  45042. 8012fba: 6b9b ldr r3, [r3, #56] @ 0x38
  45043. 8012fbc: 2b00 cmp r3, #0
  45044. 8012fbe: d102 bne.n 8012fc6 <prvIsQueueEmpty+0x1a>
  45045. {
  45046. xReturn = pdTRUE;
  45047. 8012fc0: 2301 movs r3, #1
  45048. 8012fc2: 60fb str r3, [r7, #12]
  45049. 8012fc4: e001 b.n 8012fca <prvIsQueueEmpty+0x1e>
  45050. }
  45051. else
  45052. {
  45053. xReturn = pdFALSE;
  45054. 8012fc6: 2300 movs r3, #0
  45055. 8012fc8: 60fb str r3, [r7, #12]
  45056. }
  45057. }
  45058. taskEXIT_CRITICAL();
  45059. 8012fca: f002 fca7 bl 801591c <vPortExitCritical>
  45060. return xReturn;
  45061. 8012fce: 68fb ldr r3, [r7, #12]
  45062. }
  45063. 8012fd0: 4618 mov r0, r3
  45064. 8012fd2: 3710 adds r7, #16
  45065. 8012fd4: 46bd mov sp, r7
  45066. 8012fd6: bd80 pop {r7, pc}
  45067. 08012fd8 <prvIsQueueFull>:
  45068. return xReturn;
  45069. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  45070. /*-----------------------------------------------------------*/
  45071. static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
  45072. {
  45073. 8012fd8: b580 push {r7, lr}
  45074. 8012fda: b084 sub sp, #16
  45075. 8012fdc: af00 add r7, sp, #0
  45076. 8012fde: 6078 str r0, [r7, #4]
  45077. BaseType_t xReturn;
  45078. taskENTER_CRITICAL();
  45079. 8012fe0: f002 fc6a bl 80158b8 <vPortEnterCritical>
  45080. {
  45081. if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
  45082. 8012fe4: 687b ldr r3, [r7, #4]
  45083. 8012fe6: 6b9a ldr r2, [r3, #56] @ 0x38
  45084. 8012fe8: 687b ldr r3, [r7, #4]
  45085. 8012fea: 6bdb ldr r3, [r3, #60] @ 0x3c
  45086. 8012fec: 429a cmp r2, r3
  45087. 8012fee: d102 bne.n 8012ff6 <prvIsQueueFull+0x1e>
  45088. {
  45089. xReturn = pdTRUE;
  45090. 8012ff0: 2301 movs r3, #1
  45091. 8012ff2: 60fb str r3, [r7, #12]
  45092. 8012ff4: e001 b.n 8012ffa <prvIsQueueFull+0x22>
  45093. }
  45094. else
  45095. {
  45096. xReturn = pdFALSE;
  45097. 8012ff6: 2300 movs r3, #0
  45098. 8012ff8: 60fb str r3, [r7, #12]
  45099. }
  45100. }
  45101. taskEXIT_CRITICAL();
  45102. 8012ffa: f002 fc8f bl 801591c <vPortExitCritical>
  45103. return xReturn;
  45104. 8012ffe: 68fb ldr r3, [r7, #12]
  45105. }
  45106. 8013000: 4618 mov r0, r3
  45107. 8013002: 3710 adds r7, #16
  45108. 8013004: 46bd mov sp, r7
  45109. 8013006: bd80 pop {r7, pc}
  45110. 08013008 <vQueueAddToRegistry>:
  45111. /*-----------------------------------------------------------*/
  45112. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  45113. void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  45114. {
  45115. 8013008: b480 push {r7}
  45116. 801300a: b085 sub sp, #20
  45117. 801300c: af00 add r7, sp, #0
  45118. 801300e: 6078 str r0, [r7, #4]
  45119. 8013010: 6039 str r1, [r7, #0]
  45120. UBaseType_t ux;
  45121. /* See if there is an empty space in the registry. A NULL name denotes
  45122. a free slot. */
  45123. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  45124. 8013012: 2300 movs r3, #0
  45125. 8013014: 60fb str r3, [r7, #12]
  45126. 8013016: e014 b.n 8013042 <vQueueAddToRegistry+0x3a>
  45127. {
  45128. if( xQueueRegistry[ ux ].pcQueueName == NULL )
  45129. 8013018: 4a0f ldr r2, [pc, #60] @ (8013058 <vQueueAddToRegistry+0x50>)
  45130. 801301a: 68fb ldr r3, [r7, #12]
  45131. 801301c: f852 3033 ldr.w r3, [r2, r3, lsl #3]
  45132. 8013020: 2b00 cmp r3, #0
  45133. 8013022: d10b bne.n 801303c <vQueueAddToRegistry+0x34>
  45134. {
  45135. /* Store the information on this queue. */
  45136. xQueueRegistry[ ux ].pcQueueName = pcQueueName;
  45137. 8013024: 490c ldr r1, [pc, #48] @ (8013058 <vQueueAddToRegistry+0x50>)
  45138. 8013026: 68fb ldr r3, [r7, #12]
  45139. 8013028: 683a ldr r2, [r7, #0]
  45140. 801302a: f841 2033 str.w r2, [r1, r3, lsl #3]
  45141. xQueueRegistry[ ux ].xHandle = xQueue;
  45142. 801302e: 4a0a ldr r2, [pc, #40] @ (8013058 <vQueueAddToRegistry+0x50>)
  45143. 8013030: 68fb ldr r3, [r7, #12]
  45144. 8013032: 00db lsls r3, r3, #3
  45145. 8013034: 4413 add r3, r2
  45146. 8013036: 687a ldr r2, [r7, #4]
  45147. 8013038: 605a str r2, [r3, #4]
  45148. traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
  45149. break;
  45150. 801303a: e006 b.n 801304a <vQueueAddToRegistry+0x42>
  45151. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  45152. 801303c: 68fb ldr r3, [r7, #12]
  45153. 801303e: 3301 adds r3, #1
  45154. 8013040: 60fb str r3, [r7, #12]
  45155. 8013042: 68fb ldr r3, [r7, #12]
  45156. 8013044: 2b07 cmp r3, #7
  45157. 8013046: d9e7 bls.n 8013018 <vQueueAddToRegistry+0x10>
  45158. else
  45159. {
  45160. mtCOVERAGE_TEST_MARKER();
  45161. }
  45162. }
  45163. }
  45164. 8013048: bf00 nop
  45165. 801304a: bf00 nop
  45166. 801304c: 3714 adds r7, #20
  45167. 801304e: 46bd mov sp, r7
  45168. 8013050: f85d 7b04 ldr.w r7, [sp], #4
  45169. 8013054: 4770 bx lr
  45170. 8013056: bf00 nop
  45171. 8013058: 24003d30 .word 0x24003d30
  45172. 0801305c <vQueueUnregisterQueue>:
  45173. /*-----------------------------------------------------------*/
  45174. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  45175. void vQueueUnregisterQueue( QueueHandle_t xQueue )
  45176. {
  45177. 801305c: b480 push {r7}
  45178. 801305e: b085 sub sp, #20
  45179. 8013060: af00 add r7, sp, #0
  45180. 8013062: 6078 str r0, [r7, #4]
  45181. UBaseType_t ux;
  45182. /* See if the handle of the queue being unregistered in actually in the
  45183. registry. */
  45184. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  45185. 8013064: 2300 movs r3, #0
  45186. 8013066: 60fb str r3, [r7, #12]
  45187. 8013068: e016 b.n 8013098 <vQueueUnregisterQueue+0x3c>
  45188. {
  45189. if( xQueueRegistry[ ux ].xHandle == xQueue )
  45190. 801306a: 4a10 ldr r2, [pc, #64] @ (80130ac <vQueueUnregisterQueue+0x50>)
  45191. 801306c: 68fb ldr r3, [r7, #12]
  45192. 801306e: 00db lsls r3, r3, #3
  45193. 8013070: 4413 add r3, r2
  45194. 8013072: 685b ldr r3, [r3, #4]
  45195. 8013074: 687a ldr r2, [r7, #4]
  45196. 8013076: 429a cmp r2, r3
  45197. 8013078: d10b bne.n 8013092 <vQueueUnregisterQueue+0x36>
  45198. {
  45199. /* Set the name to NULL to show that this slot if free again. */
  45200. xQueueRegistry[ ux ].pcQueueName = NULL;
  45201. 801307a: 4a0c ldr r2, [pc, #48] @ (80130ac <vQueueUnregisterQueue+0x50>)
  45202. 801307c: 68fb ldr r3, [r7, #12]
  45203. 801307e: 2100 movs r1, #0
  45204. 8013080: f842 1033 str.w r1, [r2, r3, lsl #3]
  45205. /* Set the handle to NULL to ensure the same queue handle cannot
  45206. appear in the registry twice if it is added, removed, then
  45207. added again. */
  45208. xQueueRegistry[ ux ].xHandle = ( QueueHandle_t ) 0;
  45209. 8013084: 4a09 ldr r2, [pc, #36] @ (80130ac <vQueueUnregisterQueue+0x50>)
  45210. 8013086: 68fb ldr r3, [r7, #12]
  45211. 8013088: 00db lsls r3, r3, #3
  45212. 801308a: 4413 add r3, r2
  45213. 801308c: 2200 movs r2, #0
  45214. 801308e: 605a str r2, [r3, #4]
  45215. break;
  45216. 8013090: e006 b.n 80130a0 <vQueueUnregisterQueue+0x44>
  45217. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  45218. 8013092: 68fb ldr r3, [r7, #12]
  45219. 8013094: 3301 adds r3, #1
  45220. 8013096: 60fb str r3, [r7, #12]
  45221. 8013098: 68fb ldr r3, [r7, #12]
  45222. 801309a: 2b07 cmp r3, #7
  45223. 801309c: d9e5 bls.n 801306a <vQueueUnregisterQueue+0xe>
  45224. {
  45225. mtCOVERAGE_TEST_MARKER();
  45226. }
  45227. }
  45228. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  45229. 801309e: bf00 nop
  45230. 80130a0: bf00 nop
  45231. 80130a2: 3714 adds r7, #20
  45232. 80130a4: 46bd mov sp, r7
  45233. 80130a6: f85d 7b04 ldr.w r7, [sp], #4
  45234. 80130aa: 4770 bx lr
  45235. 80130ac: 24003d30 .word 0x24003d30
  45236. 080130b0 <vQueueWaitForMessageRestricted>:
  45237. /*-----------------------------------------------------------*/
  45238. #if ( configUSE_TIMERS == 1 )
  45239. void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  45240. {
  45241. 80130b0: b580 push {r7, lr}
  45242. 80130b2: b086 sub sp, #24
  45243. 80130b4: af00 add r7, sp, #0
  45244. 80130b6: 60f8 str r0, [r7, #12]
  45245. 80130b8: 60b9 str r1, [r7, #8]
  45246. 80130ba: 607a str r2, [r7, #4]
  45247. Queue_t * const pxQueue = xQueue;
  45248. 80130bc: 68fb ldr r3, [r7, #12]
  45249. 80130be: 617b str r3, [r7, #20]
  45250. will not actually cause the task to block, just place it on a blocked
  45251. list. It will not block until the scheduler is unlocked - at which
  45252. time a yield will be performed. If an item is added to the queue while
  45253. the queue is locked, and the calling task blocks on the queue, then the
  45254. calling task will be immediately unblocked when the queue is unlocked. */
  45255. prvLockQueue( pxQueue );
  45256. 80130c0: f002 fbfa bl 80158b8 <vPortEnterCritical>
  45257. 80130c4: 697b ldr r3, [r7, #20]
  45258. 80130c6: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  45259. 80130ca: b25b sxtb r3, r3
  45260. 80130cc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  45261. 80130d0: d103 bne.n 80130da <vQueueWaitForMessageRestricted+0x2a>
  45262. 80130d2: 697b ldr r3, [r7, #20]
  45263. 80130d4: 2200 movs r2, #0
  45264. 80130d6: f883 2044 strb.w r2, [r3, #68] @ 0x44
  45265. 80130da: 697b ldr r3, [r7, #20]
  45266. 80130dc: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  45267. 80130e0: b25b sxtb r3, r3
  45268. 80130e2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  45269. 80130e6: d103 bne.n 80130f0 <vQueueWaitForMessageRestricted+0x40>
  45270. 80130e8: 697b ldr r3, [r7, #20]
  45271. 80130ea: 2200 movs r2, #0
  45272. 80130ec: f883 2045 strb.w r2, [r3, #69] @ 0x45
  45273. 80130f0: f002 fc14 bl 801591c <vPortExitCritical>
  45274. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
  45275. 80130f4: 697b ldr r3, [r7, #20]
  45276. 80130f6: 6b9b ldr r3, [r3, #56] @ 0x38
  45277. 80130f8: 2b00 cmp r3, #0
  45278. 80130fa: d106 bne.n 801310a <vQueueWaitForMessageRestricted+0x5a>
  45279. {
  45280. /* There is nothing in the queue, block for the specified period. */
  45281. vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
  45282. 80130fc: 697b ldr r3, [r7, #20]
  45283. 80130fe: 3324 adds r3, #36 @ 0x24
  45284. 8013100: 687a ldr r2, [r7, #4]
  45285. 8013102: 68b9 ldr r1, [r7, #8]
  45286. 8013104: 4618 mov r0, r3
  45287. 8013106: f001 f825 bl 8014154 <vTaskPlaceOnEventListRestricted>
  45288. }
  45289. else
  45290. {
  45291. mtCOVERAGE_TEST_MARKER();
  45292. }
  45293. prvUnlockQueue( pxQueue );
  45294. 801310a: 6978 ldr r0, [r7, #20]
  45295. 801310c: f7ff fefc bl 8012f08 <prvUnlockQueue>
  45296. }
  45297. 8013110: bf00 nop
  45298. 8013112: 3718 adds r7, #24
  45299. 8013114: 46bd mov sp, r7
  45300. 8013116: bd80 pop {r7, pc}
  45301. 08013118 <xStreamBufferGenericCreate>:
  45302. /*-----------------------------------------------------------*/
  45303. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  45304. StreamBufferHandle_t xStreamBufferGenericCreate( size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer )
  45305. {
  45306. 8013118: b580 push {r7, lr}
  45307. 801311a: b08c sub sp, #48 @ 0x30
  45308. 801311c: af02 add r7, sp, #8
  45309. 801311e: 60f8 str r0, [r7, #12]
  45310. 8013120: 60b9 str r1, [r7, #8]
  45311. 8013122: 607a str r2, [r7, #4]
  45312. /* In case the stream buffer is going to be used as a message buffer
  45313. (that is, it will hold discrete messages with a little meta data that
  45314. says how big the next message is) check the buffer will be large enough
  45315. to hold at least one message. */
  45316. if( xIsMessageBuffer == pdTRUE )
  45317. 8013124: 687b ldr r3, [r7, #4]
  45318. 8013126: 2b01 cmp r3, #1
  45319. 8013128: d111 bne.n 801314e <xStreamBufferGenericCreate+0x36>
  45320. {
  45321. /* Is a message buffer but not statically allocated. */
  45322. ucFlags = sbFLAGS_IS_MESSAGE_BUFFER;
  45323. 801312a: 2301 movs r3, #1
  45324. 801312c: f887 3027 strb.w r3, [r7, #39] @ 0x27
  45325. configASSERT( xBufferSizeBytes > sbBYTES_TO_STORE_MESSAGE_LENGTH );
  45326. 8013130: 68fb ldr r3, [r7, #12]
  45327. 8013132: 2b04 cmp r3, #4
  45328. 8013134: d81d bhi.n 8013172 <xStreamBufferGenericCreate+0x5a>
  45329. __asm volatile
  45330. 8013136: f04f 0350 mov.w r3, #80 @ 0x50
  45331. 801313a: f383 8811 msr BASEPRI, r3
  45332. 801313e: f3bf 8f6f isb sy
  45333. 8013142: f3bf 8f4f dsb sy
  45334. 8013146: 61fb str r3, [r7, #28]
  45335. }
  45336. 8013148: bf00 nop
  45337. 801314a: bf00 nop
  45338. 801314c: e7fd b.n 801314a <xStreamBufferGenericCreate+0x32>
  45339. }
  45340. else
  45341. {
  45342. /* Not a message buffer and not statically allocated. */
  45343. ucFlags = 0;
  45344. 801314e: 2300 movs r3, #0
  45345. 8013150: f887 3027 strb.w r3, [r7, #39] @ 0x27
  45346. configASSERT( xBufferSizeBytes > 0 );
  45347. 8013154: 68fb ldr r3, [r7, #12]
  45348. 8013156: 2b00 cmp r3, #0
  45349. 8013158: d10b bne.n 8013172 <xStreamBufferGenericCreate+0x5a>
  45350. __asm volatile
  45351. 801315a: f04f 0350 mov.w r3, #80 @ 0x50
  45352. 801315e: f383 8811 msr BASEPRI, r3
  45353. 8013162: f3bf 8f6f isb sy
  45354. 8013166: f3bf 8f4f dsb sy
  45355. 801316a: 61bb str r3, [r7, #24]
  45356. }
  45357. 801316c: bf00 nop
  45358. 801316e: bf00 nop
  45359. 8013170: e7fd b.n 801316e <xStreamBufferGenericCreate+0x56>
  45360. }
  45361. configASSERT( xTriggerLevelBytes <= xBufferSizeBytes );
  45362. 8013172: 68ba ldr r2, [r7, #8]
  45363. 8013174: 68fb ldr r3, [r7, #12]
  45364. 8013176: 429a cmp r2, r3
  45365. 8013178: d90b bls.n 8013192 <xStreamBufferGenericCreate+0x7a>
  45366. __asm volatile
  45367. 801317a: f04f 0350 mov.w r3, #80 @ 0x50
  45368. 801317e: f383 8811 msr BASEPRI, r3
  45369. 8013182: f3bf 8f6f isb sy
  45370. 8013186: f3bf 8f4f dsb sy
  45371. 801318a: 617b str r3, [r7, #20]
  45372. }
  45373. 801318c: bf00 nop
  45374. 801318e: bf00 nop
  45375. 8013190: e7fd b.n 801318e <xStreamBufferGenericCreate+0x76>
  45376. /* A trigger level of 0 would cause a waiting task to unblock even when
  45377. the buffer was empty. */
  45378. if( xTriggerLevelBytes == ( size_t ) 0 )
  45379. 8013192: 68bb ldr r3, [r7, #8]
  45380. 8013194: 2b00 cmp r3, #0
  45381. 8013196: d101 bne.n 801319c <xStreamBufferGenericCreate+0x84>
  45382. {
  45383. xTriggerLevelBytes = ( size_t ) 1;
  45384. 8013198: 2301 movs r3, #1
  45385. 801319a: 60bb str r3, [r7, #8]
  45386. and the buffer follows immediately after. The requested size is
  45387. incremented so the free space is returned as the user would expect -
  45388. this is a quirk of the implementation that means otherwise the free
  45389. space would be reported as one byte smaller than would be logically
  45390. expected. */
  45391. xBufferSizeBytes++;
  45392. 801319c: 68fb ldr r3, [r7, #12]
  45393. 801319e: 3301 adds r3, #1
  45394. 80131a0: 60fb str r3, [r7, #12]
  45395. pucAllocatedMemory = ( uint8_t * ) pvPortMalloc( xBufferSizeBytes + sizeof( StreamBuffer_t ) ); /*lint !e9079 malloc() only returns void*. */
  45396. 80131a2: 68fb ldr r3, [r7, #12]
  45397. 80131a4: 3324 adds r3, #36 @ 0x24
  45398. 80131a6: 4618 mov r0, r3
  45399. 80131a8: f002 fca8 bl 8015afc <pvPortMalloc>
  45400. 80131ac: 6238 str r0, [r7, #32]
  45401. if( pucAllocatedMemory != NULL )
  45402. 80131ae: 6a3b ldr r3, [r7, #32]
  45403. 80131b0: 2b00 cmp r3, #0
  45404. 80131b2: d00a beq.n 80131ca <xStreamBufferGenericCreate+0xb2>
  45405. {
  45406. 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. */
  45407. 80131b4: 6a3b ldr r3, [r7, #32]
  45408. 80131b6: f103 0124 add.w r1, r3, #36 @ 0x24
  45409. 80131ba: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  45410. 80131be: 9300 str r3, [sp, #0]
  45411. 80131c0: 68bb ldr r3, [r7, #8]
  45412. 80131c2: 68fa ldr r2, [r7, #12]
  45413. 80131c4: 6a38 ldr r0, [r7, #32]
  45414. 80131c6: f000 fb0b bl 80137e0 <prvInitialiseNewStreamBuffer>
  45415. else
  45416. {
  45417. traceSTREAM_BUFFER_CREATE_FAILED( xIsMessageBuffer );
  45418. }
  45419. return ( StreamBufferHandle_t ) pucAllocatedMemory; /*lint !e9087 !e826 Safe cast as allocated memory is aligned. */
  45420. 80131ca: 6a3b ldr r3, [r7, #32]
  45421. }
  45422. 80131cc: 4618 mov r0, r3
  45423. 80131ce: 3728 adds r7, #40 @ 0x28
  45424. 80131d0: 46bd mov sp, r7
  45425. 80131d2: bd80 pop {r7, pc}
  45426. 080131d4 <xStreamBufferSpacesAvailable>:
  45427. return xReturn;
  45428. }
  45429. /*-----------------------------------------------------------*/
  45430. size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer )
  45431. {
  45432. 80131d4: b480 push {r7}
  45433. 80131d6: b087 sub sp, #28
  45434. 80131d8: af00 add r7, sp, #0
  45435. 80131da: 6078 str r0, [r7, #4]
  45436. const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  45437. 80131dc: 687b ldr r3, [r7, #4]
  45438. 80131de: 613b str r3, [r7, #16]
  45439. size_t xSpace;
  45440. configASSERT( pxStreamBuffer );
  45441. 80131e0: 693b ldr r3, [r7, #16]
  45442. 80131e2: 2b00 cmp r3, #0
  45443. 80131e4: d10b bne.n 80131fe <xStreamBufferSpacesAvailable+0x2a>
  45444. __asm volatile
  45445. 80131e6: f04f 0350 mov.w r3, #80 @ 0x50
  45446. 80131ea: f383 8811 msr BASEPRI, r3
  45447. 80131ee: f3bf 8f6f isb sy
  45448. 80131f2: f3bf 8f4f dsb sy
  45449. 80131f6: 60fb str r3, [r7, #12]
  45450. }
  45451. 80131f8: bf00 nop
  45452. 80131fa: bf00 nop
  45453. 80131fc: e7fd b.n 80131fa <xStreamBufferSpacesAvailable+0x26>
  45454. xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail;
  45455. 80131fe: 693b ldr r3, [r7, #16]
  45456. 8013200: 689a ldr r2, [r3, #8]
  45457. 8013202: 693b ldr r3, [r7, #16]
  45458. 8013204: 681b ldr r3, [r3, #0]
  45459. 8013206: 4413 add r3, r2
  45460. 8013208: 617b str r3, [r7, #20]
  45461. xSpace -= pxStreamBuffer->xHead;
  45462. 801320a: 693b ldr r3, [r7, #16]
  45463. 801320c: 685b ldr r3, [r3, #4]
  45464. 801320e: 697a ldr r2, [r7, #20]
  45465. 8013210: 1ad3 subs r3, r2, r3
  45466. 8013212: 617b str r3, [r7, #20]
  45467. xSpace -= ( size_t ) 1;
  45468. 8013214: 697b ldr r3, [r7, #20]
  45469. 8013216: 3b01 subs r3, #1
  45470. 8013218: 617b str r3, [r7, #20]
  45471. if( xSpace >= pxStreamBuffer->xLength )
  45472. 801321a: 693b ldr r3, [r7, #16]
  45473. 801321c: 689b ldr r3, [r3, #8]
  45474. 801321e: 697a ldr r2, [r7, #20]
  45475. 8013220: 429a cmp r2, r3
  45476. 8013222: d304 bcc.n 801322e <xStreamBufferSpacesAvailable+0x5a>
  45477. {
  45478. xSpace -= pxStreamBuffer->xLength;
  45479. 8013224: 693b ldr r3, [r7, #16]
  45480. 8013226: 689b ldr r3, [r3, #8]
  45481. 8013228: 697a ldr r2, [r7, #20]
  45482. 801322a: 1ad3 subs r3, r2, r3
  45483. 801322c: 617b str r3, [r7, #20]
  45484. else
  45485. {
  45486. mtCOVERAGE_TEST_MARKER();
  45487. }
  45488. return xSpace;
  45489. 801322e: 697b ldr r3, [r7, #20]
  45490. }
  45491. 8013230: 4618 mov r0, r3
  45492. 8013232: 371c adds r7, #28
  45493. 8013234: 46bd mov sp, r7
  45494. 8013236: f85d 7b04 ldr.w r7, [sp], #4
  45495. 801323a: 4770 bx lr
  45496. 0801323c <xStreamBufferSend>:
  45497. size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
  45498. const void *pvTxData,
  45499. size_t xDataLengthBytes,
  45500. TickType_t xTicksToWait )
  45501. {
  45502. 801323c: b580 push {r7, lr}
  45503. 801323e: b090 sub sp, #64 @ 0x40
  45504. 8013240: af02 add r7, sp, #8
  45505. 8013242: 60f8 str r0, [r7, #12]
  45506. 8013244: 60b9 str r1, [r7, #8]
  45507. 8013246: 607a str r2, [r7, #4]
  45508. 8013248: 603b str r3, [r7, #0]
  45509. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  45510. 801324a: 68fb ldr r3, [r7, #12]
  45511. 801324c: 62fb str r3, [r7, #44] @ 0x2c
  45512. size_t xReturn, xSpace = 0;
  45513. 801324e: 2300 movs r3, #0
  45514. 8013250: 637b str r3, [r7, #52] @ 0x34
  45515. size_t xRequiredSpace = xDataLengthBytes;
  45516. 8013252: 687b ldr r3, [r7, #4]
  45517. 8013254: 633b str r3, [r7, #48] @ 0x30
  45518. TimeOut_t xTimeOut;
  45519. configASSERT( pvTxData );
  45520. 8013256: 68bb ldr r3, [r7, #8]
  45521. 8013258: 2b00 cmp r3, #0
  45522. 801325a: d10b bne.n 8013274 <xStreamBufferSend+0x38>
  45523. __asm volatile
  45524. 801325c: f04f 0350 mov.w r3, #80 @ 0x50
  45525. 8013260: f383 8811 msr BASEPRI, r3
  45526. 8013264: f3bf 8f6f isb sy
  45527. 8013268: f3bf 8f4f dsb sy
  45528. 801326c: 627b str r3, [r7, #36] @ 0x24
  45529. }
  45530. 801326e: bf00 nop
  45531. 8013270: bf00 nop
  45532. 8013272: e7fd b.n 8013270 <xStreamBufferSend+0x34>
  45533. configASSERT( pxStreamBuffer );
  45534. 8013274: 6afb ldr r3, [r7, #44] @ 0x2c
  45535. 8013276: 2b00 cmp r3, #0
  45536. 8013278: d10b bne.n 8013292 <xStreamBufferSend+0x56>
  45537. __asm volatile
  45538. 801327a: f04f 0350 mov.w r3, #80 @ 0x50
  45539. 801327e: f383 8811 msr BASEPRI, r3
  45540. 8013282: f3bf 8f6f isb sy
  45541. 8013286: f3bf 8f4f dsb sy
  45542. 801328a: 623b str r3, [r7, #32]
  45543. }
  45544. 801328c: bf00 nop
  45545. 801328e: bf00 nop
  45546. 8013290: e7fd b.n 801328e <xStreamBufferSend+0x52>
  45547. /* This send function is used to write to both message buffers and stream
  45548. buffers. If this is a message buffer then the space needed must be
  45549. increased by the amount of bytes needed to store the length of the
  45550. message. */
  45551. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  45552. 8013292: 6afb ldr r3, [r7, #44] @ 0x2c
  45553. 8013294: 7f1b ldrb r3, [r3, #28]
  45554. 8013296: f003 0301 and.w r3, r3, #1
  45555. 801329a: 2b00 cmp r3, #0
  45556. 801329c: d012 beq.n 80132c4 <xStreamBufferSend+0x88>
  45557. {
  45558. xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH;
  45559. 801329e: 6b3b ldr r3, [r7, #48] @ 0x30
  45560. 80132a0: 3304 adds r3, #4
  45561. 80132a2: 633b str r3, [r7, #48] @ 0x30
  45562. /* Overflow? */
  45563. configASSERT( xRequiredSpace > xDataLengthBytes );
  45564. 80132a4: 6b3a ldr r2, [r7, #48] @ 0x30
  45565. 80132a6: 687b ldr r3, [r7, #4]
  45566. 80132a8: 429a cmp r2, r3
  45567. 80132aa: d80b bhi.n 80132c4 <xStreamBufferSend+0x88>
  45568. __asm volatile
  45569. 80132ac: f04f 0350 mov.w r3, #80 @ 0x50
  45570. 80132b0: f383 8811 msr BASEPRI, r3
  45571. 80132b4: f3bf 8f6f isb sy
  45572. 80132b8: f3bf 8f4f dsb sy
  45573. 80132bc: 61fb str r3, [r7, #28]
  45574. }
  45575. 80132be: bf00 nop
  45576. 80132c0: bf00 nop
  45577. 80132c2: e7fd b.n 80132c0 <xStreamBufferSend+0x84>
  45578. else
  45579. {
  45580. mtCOVERAGE_TEST_MARKER();
  45581. }
  45582. if( xTicksToWait != ( TickType_t ) 0 )
  45583. 80132c4: 683b ldr r3, [r7, #0]
  45584. 80132c6: 2b00 cmp r3, #0
  45585. 80132c8: d03f beq.n 801334a <xStreamBufferSend+0x10e>
  45586. {
  45587. vTaskSetTimeOutState( &xTimeOut );
  45588. 80132ca: f107 0310 add.w r3, r7, #16
  45589. 80132ce: 4618 mov r0, r3
  45590. 80132d0: f000 ffd0 bl 8014274 <vTaskSetTimeOutState>
  45591. do
  45592. {
  45593. /* Wait until the required number of bytes are free in the message
  45594. buffer. */
  45595. taskENTER_CRITICAL();
  45596. 80132d4: f002 faf0 bl 80158b8 <vPortEnterCritical>
  45597. {
  45598. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  45599. 80132d8: 6af8 ldr r0, [r7, #44] @ 0x2c
  45600. 80132da: f7ff ff7b bl 80131d4 <xStreamBufferSpacesAvailable>
  45601. 80132de: 6378 str r0, [r7, #52] @ 0x34
  45602. if( xSpace < xRequiredSpace )
  45603. 80132e0: 6b7a ldr r2, [r7, #52] @ 0x34
  45604. 80132e2: 6b3b ldr r3, [r7, #48] @ 0x30
  45605. 80132e4: 429a cmp r2, r3
  45606. 80132e6: d218 bcs.n 801331a <xStreamBufferSend+0xde>
  45607. {
  45608. /* Clear notification state as going to wait for space. */
  45609. ( void ) xTaskNotifyStateClear( NULL );
  45610. 80132e8: 2000 movs r0, #0
  45611. 80132ea: f001 fcf3 bl 8014cd4 <xTaskNotifyStateClear>
  45612. /* Should only be one writer. */
  45613. configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL );
  45614. 80132ee: 6afb ldr r3, [r7, #44] @ 0x2c
  45615. 80132f0: 695b ldr r3, [r3, #20]
  45616. 80132f2: 2b00 cmp r3, #0
  45617. 80132f4: d00b beq.n 801330e <xStreamBufferSend+0xd2>
  45618. __asm volatile
  45619. 80132f6: f04f 0350 mov.w r3, #80 @ 0x50
  45620. 80132fa: f383 8811 msr BASEPRI, r3
  45621. 80132fe: f3bf 8f6f isb sy
  45622. 8013302: f3bf 8f4f dsb sy
  45623. 8013306: 61bb str r3, [r7, #24]
  45624. }
  45625. 8013308: bf00 nop
  45626. 801330a: bf00 nop
  45627. 801330c: e7fd b.n 801330a <xStreamBufferSend+0xce>
  45628. pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle();
  45629. 801330e: f001 f93b bl 8014588 <xTaskGetCurrentTaskHandle>
  45630. 8013312: 4602 mov r2, r0
  45631. 8013314: 6afb ldr r3, [r7, #44] @ 0x2c
  45632. 8013316: 615a str r2, [r3, #20]
  45633. 8013318: e002 b.n 8013320 <xStreamBufferSend+0xe4>
  45634. }
  45635. else
  45636. {
  45637. taskEXIT_CRITICAL();
  45638. 801331a: f002 faff bl 801591c <vPortExitCritical>
  45639. break;
  45640. 801331e: e014 b.n 801334a <xStreamBufferSend+0x10e>
  45641. }
  45642. }
  45643. taskEXIT_CRITICAL();
  45644. 8013320: f002 fafc bl 801591c <vPortExitCritical>
  45645. traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer );
  45646. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  45647. 8013324: 683b ldr r3, [r7, #0]
  45648. 8013326: 2200 movs r2, #0
  45649. 8013328: 2100 movs r1, #0
  45650. 801332a: 2000 movs r0, #0
  45651. 801332c: f001 faca bl 80148c4 <xTaskNotifyWait>
  45652. pxStreamBuffer->xTaskWaitingToSend = NULL;
  45653. 8013330: 6afb ldr r3, [r7, #44] @ 0x2c
  45654. 8013332: 2200 movs r2, #0
  45655. 8013334: 615a str r2, [r3, #20]
  45656. } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE );
  45657. 8013336: 463a mov r2, r7
  45658. 8013338: f107 0310 add.w r3, r7, #16
  45659. 801333c: 4611 mov r1, r2
  45660. 801333e: 4618 mov r0, r3
  45661. 8013340: f000 ffd6 bl 80142f0 <xTaskCheckForTimeOut>
  45662. 8013344: 4603 mov r3, r0
  45663. 8013346: 2b00 cmp r3, #0
  45664. 8013348: d0c4 beq.n 80132d4 <xStreamBufferSend+0x98>
  45665. else
  45666. {
  45667. mtCOVERAGE_TEST_MARKER();
  45668. }
  45669. if( xSpace == ( size_t ) 0 )
  45670. 801334a: 6b7b ldr r3, [r7, #52] @ 0x34
  45671. 801334c: 2b00 cmp r3, #0
  45672. 801334e: d103 bne.n 8013358 <xStreamBufferSend+0x11c>
  45673. {
  45674. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  45675. 8013350: 6af8 ldr r0, [r7, #44] @ 0x2c
  45676. 8013352: f7ff ff3f bl 80131d4 <xStreamBufferSpacesAvailable>
  45677. 8013356: 6378 str r0, [r7, #52] @ 0x34
  45678. else
  45679. {
  45680. mtCOVERAGE_TEST_MARKER();
  45681. }
  45682. xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace );
  45683. 8013358: 6b3b ldr r3, [r7, #48] @ 0x30
  45684. 801335a: 9300 str r3, [sp, #0]
  45685. 801335c: 6b7b ldr r3, [r7, #52] @ 0x34
  45686. 801335e: 687a ldr r2, [r7, #4]
  45687. 8013360: 68b9 ldr r1, [r7, #8]
  45688. 8013362: 6af8 ldr r0, [r7, #44] @ 0x2c
  45689. 8013364: f000 f823 bl 80133ae <prvWriteMessageToBuffer>
  45690. 8013368: 62b8 str r0, [r7, #40] @ 0x28
  45691. if( xReturn > ( size_t ) 0 )
  45692. 801336a: 6abb ldr r3, [r7, #40] @ 0x28
  45693. 801336c: 2b00 cmp r3, #0
  45694. 801336e: d019 beq.n 80133a4 <xStreamBufferSend+0x168>
  45695. {
  45696. traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn );
  45697. /* Was a task waiting for the data? */
  45698. if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes )
  45699. 8013370: 6af8 ldr r0, [r7, #44] @ 0x2c
  45700. 8013372: f000 fa15 bl 80137a0 <prvBytesInBuffer>
  45701. 8013376: 4602 mov r2, r0
  45702. 8013378: 6afb ldr r3, [r7, #44] @ 0x2c
  45703. 801337a: 68db ldr r3, [r3, #12]
  45704. 801337c: 429a cmp r2, r3
  45705. 801337e: d311 bcc.n 80133a4 <xStreamBufferSend+0x168>
  45706. {
  45707. sbSEND_COMPLETED( pxStreamBuffer );
  45708. 8013380: f000 fcc6 bl 8013d10 <vTaskSuspendAll>
  45709. 8013384: 6afb ldr r3, [r7, #44] @ 0x2c
  45710. 8013386: 691b ldr r3, [r3, #16]
  45711. 8013388: 2b00 cmp r3, #0
  45712. 801338a: d009 beq.n 80133a0 <xStreamBufferSend+0x164>
  45713. 801338c: 6afb ldr r3, [r7, #44] @ 0x2c
  45714. 801338e: 6918 ldr r0, [r3, #16]
  45715. 8013390: 2300 movs r3, #0
  45716. 8013392: 2200 movs r2, #0
  45717. 8013394: 2100 movs r1, #0
  45718. 8013396: f001 faf5 bl 8014984 <xTaskGenericNotify>
  45719. 801339a: 6afb ldr r3, [r7, #44] @ 0x2c
  45720. 801339c: 2200 movs r2, #0
  45721. 801339e: 611a str r2, [r3, #16]
  45722. 80133a0: f000 fcc4 bl 8013d2c <xTaskResumeAll>
  45723. {
  45724. mtCOVERAGE_TEST_MARKER();
  45725. traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer );
  45726. }
  45727. return xReturn;
  45728. 80133a4: 6abb ldr r3, [r7, #40] @ 0x28
  45729. }
  45730. 80133a6: 4618 mov r0, r3
  45731. 80133a8: 3738 adds r7, #56 @ 0x38
  45732. 80133aa: 46bd mov sp, r7
  45733. 80133ac: bd80 pop {r7, pc}
  45734. 080133ae <prvWriteMessageToBuffer>:
  45735. static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
  45736. const void * pvTxData,
  45737. size_t xDataLengthBytes,
  45738. size_t xSpace,
  45739. size_t xRequiredSpace )
  45740. {
  45741. 80133ae: b580 push {r7, lr}
  45742. 80133b0: b086 sub sp, #24
  45743. 80133b2: af00 add r7, sp, #0
  45744. 80133b4: 60f8 str r0, [r7, #12]
  45745. 80133b6: 60b9 str r1, [r7, #8]
  45746. 80133b8: 607a str r2, [r7, #4]
  45747. 80133ba: 603b str r3, [r7, #0]
  45748. BaseType_t xShouldWrite;
  45749. size_t xReturn;
  45750. if( xSpace == ( size_t ) 0 )
  45751. 80133bc: 683b ldr r3, [r7, #0]
  45752. 80133be: 2b00 cmp r3, #0
  45753. 80133c0: d102 bne.n 80133c8 <prvWriteMessageToBuffer+0x1a>
  45754. {
  45755. /* Doesn't matter if this is a stream buffer or a message buffer, there
  45756. is no space to write. */
  45757. xShouldWrite = pdFALSE;
  45758. 80133c2: 2300 movs r3, #0
  45759. 80133c4: 617b str r3, [r7, #20]
  45760. 80133c6: e01d b.n 8013404 <prvWriteMessageToBuffer+0x56>
  45761. }
  45762. else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( uint8_t ) 0 )
  45763. 80133c8: 68fb ldr r3, [r7, #12]
  45764. 80133ca: 7f1b ldrb r3, [r3, #28]
  45765. 80133cc: f003 0301 and.w r3, r3, #1
  45766. 80133d0: 2b00 cmp r3, #0
  45767. 80133d2: d108 bne.n 80133e6 <prvWriteMessageToBuffer+0x38>
  45768. {
  45769. /* This is a stream buffer, as opposed to a message buffer, so writing a
  45770. stream of bytes rather than discrete messages. Write as many bytes as
  45771. possible. */
  45772. xShouldWrite = pdTRUE;
  45773. 80133d4: 2301 movs r3, #1
  45774. 80133d6: 617b str r3, [r7, #20]
  45775. xDataLengthBytes = configMIN( xDataLengthBytes, xSpace );
  45776. 80133d8: 687a ldr r2, [r7, #4]
  45777. 80133da: 683b ldr r3, [r7, #0]
  45778. 80133dc: 4293 cmp r3, r2
  45779. 80133de: bf28 it cs
  45780. 80133e0: 4613 movcs r3, r2
  45781. 80133e2: 607b str r3, [r7, #4]
  45782. 80133e4: e00e b.n 8013404 <prvWriteMessageToBuffer+0x56>
  45783. }
  45784. else if( xSpace >= xRequiredSpace )
  45785. 80133e6: 683a ldr r2, [r7, #0]
  45786. 80133e8: 6a3b ldr r3, [r7, #32]
  45787. 80133ea: 429a cmp r2, r3
  45788. 80133ec: d308 bcc.n 8013400 <prvWriteMessageToBuffer+0x52>
  45789. {
  45790. /* This is a message buffer, as opposed to a stream buffer, and there
  45791. is enough space to write both the message length and the message itself
  45792. into the buffer. Start by writing the length of the data, the data
  45793. itself will be written later in this function. */
  45794. xShouldWrite = pdTRUE;
  45795. 80133ee: 2301 movs r3, #1
  45796. 80133f0: 617b str r3, [r7, #20]
  45797. ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &( xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH );
  45798. 80133f2: 1d3b adds r3, r7, #4
  45799. 80133f4: 2204 movs r2, #4
  45800. 80133f6: 4619 mov r1, r3
  45801. 80133f8: 68f8 ldr r0, [r7, #12]
  45802. 80133fa: f000 f8df bl 80135bc <prvWriteBytesToBuffer>
  45803. 80133fe: e001 b.n 8013404 <prvWriteMessageToBuffer+0x56>
  45804. }
  45805. else
  45806. {
  45807. /* There is space available, but not enough space. */
  45808. xShouldWrite = pdFALSE;
  45809. 8013400: 2300 movs r3, #0
  45810. 8013402: 617b str r3, [r7, #20]
  45811. }
  45812. if( xShouldWrite != pdFALSE )
  45813. 8013404: 697b ldr r3, [r7, #20]
  45814. 8013406: 2b00 cmp r3, #0
  45815. 8013408: d007 beq.n 801341a <prvWriteMessageToBuffer+0x6c>
  45816. {
  45817. /* Writes the data itself. */
  45818. xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */
  45819. 801340a: 687b ldr r3, [r7, #4]
  45820. 801340c: 461a mov r2, r3
  45821. 801340e: 68b9 ldr r1, [r7, #8]
  45822. 8013410: 68f8 ldr r0, [r7, #12]
  45823. 8013412: f000 f8d3 bl 80135bc <prvWriteBytesToBuffer>
  45824. 8013416: 6138 str r0, [r7, #16]
  45825. 8013418: e001 b.n 801341e <prvWriteMessageToBuffer+0x70>
  45826. }
  45827. else
  45828. {
  45829. xReturn = 0;
  45830. 801341a: 2300 movs r3, #0
  45831. 801341c: 613b str r3, [r7, #16]
  45832. }
  45833. return xReturn;
  45834. 801341e: 693b ldr r3, [r7, #16]
  45835. }
  45836. 8013420: 4618 mov r0, r3
  45837. 8013422: 3718 adds r7, #24
  45838. 8013424: 46bd mov sp, r7
  45839. 8013426: bd80 pop {r7, pc}
  45840. 08013428 <xStreamBufferReceive>:
  45841. size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
  45842. void *pvRxData,
  45843. size_t xBufferLengthBytes,
  45844. TickType_t xTicksToWait )
  45845. {
  45846. 8013428: b580 push {r7, lr}
  45847. 801342a: b08e sub sp, #56 @ 0x38
  45848. 801342c: af02 add r7, sp, #8
  45849. 801342e: 60f8 str r0, [r7, #12]
  45850. 8013430: 60b9 str r1, [r7, #8]
  45851. 8013432: 607a str r2, [r7, #4]
  45852. 8013434: 603b str r3, [r7, #0]
  45853. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  45854. 8013436: 68fb ldr r3, [r7, #12]
  45855. 8013438: 623b str r3, [r7, #32]
  45856. size_t xReceivedLength = 0, xBytesAvailable, xBytesToStoreMessageLength;
  45857. 801343a: 2300 movs r3, #0
  45858. 801343c: 62fb str r3, [r7, #44] @ 0x2c
  45859. configASSERT( pvRxData );
  45860. 801343e: 68bb ldr r3, [r7, #8]
  45861. 8013440: 2b00 cmp r3, #0
  45862. 8013442: d10b bne.n 801345c <xStreamBufferReceive+0x34>
  45863. __asm volatile
  45864. 8013444: f04f 0350 mov.w r3, #80 @ 0x50
  45865. 8013448: f383 8811 msr BASEPRI, r3
  45866. 801344c: f3bf 8f6f isb sy
  45867. 8013450: f3bf 8f4f dsb sy
  45868. 8013454: 61fb str r3, [r7, #28]
  45869. }
  45870. 8013456: bf00 nop
  45871. 8013458: bf00 nop
  45872. 801345a: e7fd b.n 8013458 <xStreamBufferReceive+0x30>
  45873. configASSERT( pxStreamBuffer );
  45874. 801345c: 6a3b ldr r3, [r7, #32]
  45875. 801345e: 2b00 cmp r3, #0
  45876. 8013460: d10b bne.n 801347a <xStreamBufferReceive+0x52>
  45877. __asm volatile
  45878. 8013462: f04f 0350 mov.w r3, #80 @ 0x50
  45879. 8013466: f383 8811 msr BASEPRI, r3
  45880. 801346a: f3bf 8f6f isb sy
  45881. 801346e: f3bf 8f4f dsb sy
  45882. 8013472: 61bb str r3, [r7, #24]
  45883. }
  45884. 8013474: bf00 nop
  45885. 8013476: bf00 nop
  45886. 8013478: e7fd b.n 8013476 <xStreamBufferReceive+0x4e>
  45887. /* This receive function is used by both message buffers, which store
  45888. discrete messages, and stream buffers, which store a continuous stream of
  45889. bytes. Discrete messages include an additional
  45890. sbBYTES_TO_STORE_MESSAGE_LENGTH bytes that hold the length of the
  45891. message. */
  45892. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  45893. 801347a: 6a3b ldr r3, [r7, #32]
  45894. 801347c: 7f1b ldrb r3, [r3, #28]
  45895. 801347e: f003 0301 and.w r3, r3, #1
  45896. 8013482: 2b00 cmp r3, #0
  45897. 8013484: d002 beq.n 801348c <xStreamBufferReceive+0x64>
  45898. {
  45899. xBytesToStoreMessageLength = sbBYTES_TO_STORE_MESSAGE_LENGTH;
  45900. 8013486: 2304 movs r3, #4
  45901. 8013488: 627b str r3, [r7, #36] @ 0x24
  45902. 801348a: e001 b.n 8013490 <xStreamBufferReceive+0x68>
  45903. }
  45904. else
  45905. {
  45906. xBytesToStoreMessageLength = 0;
  45907. 801348c: 2300 movs r3, #0
  45908. 801348e: 627b str r3, [r7, #36] @ 0x24
  45909. }
  45910. if( xTicksToWait != ( TickType_t ) 0 )
  45911. 8013490: 683b ldr r3, [r7, #0]
  45912. 8013492: 2b00 cmp r3, #0
  45913. 8013494: d035 beq.n 8013502 <xStreamBufferReceive+0xda>
  45914. {
  45915. /* Checking if there is data and clearing the notification state must be
  45916. performed atomically. */
  45917. taskENTER_CRITICAL();
  45918. 8013496: f002 fa0f bl 80158b8 <vPortEnterCritical>
  45919. {
  45920. xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
  45921. 801349a: 6a38 ldr r0, [r7, #32]
  45922. 801349c: f000 f980 bl 80137a0 <prvBytesInBuffer>
  45923. 80134a0: 62b8 str r0, [r7, #40] @ 0x28
  45924. /* If this function was invoked by a message buffer read then
  45925. xBytesToStoreMessageLength holds the number of bytes used to hold
  45926. the length of the next discrete message. If this function was
  45927. invoked by a stream buffer read then xBytesToStoreMessageLength will
  45928. be 0. */
  45929. if( xBytesAvailable <= xBytesToStoreMessageLength )
  45930. 80134a2: 6aba ldr r2, [r7, #40] @ 0x28
  45931. 80134a4: 6a7b ldr r3, [r7, #36] @ 0x24
  45932. 80134a6: 429a cmp r2, r3
  45933. 80134a8: d817 bhi.n 80134da <xStreamBufferReceive+0xb2>
  45934. {
  45935. /* Clear notification state as going to wait for data. */
  45936. ( void ) xTaskNotifyStateClear( NULL );
  45937. 80134aa: 2000 movs r0, #0
  45938. 80134ac: f001 fc12 bl 8014cd4 <xTaskNotifyStateClear>
  45939. /* Should only be one reader. */
  45940. configASSERT( pxStreamBuffer->xTaskWaitingToReceive == NULL );
  45941. 80134b0: 6a3b ldr r3, [r7, #32]
  45942. 80134b2: 691b ldr r3, [r3, #16]
  45943. 80134b4: 2b00 cmp r3, #0
  45944. 80134b6: d00b beq.n 80134d0 <xStreamBufferReceive+0xa8>
  45945. __asm volatile
  45946. 80134b8: f04f 0350 mov.w r3, #80 @ 0x50
  45947. 80134bc: f383 8811 msr BASEPRI, r3
  45948. 80134c0: f3bf 8f6f isb sy
  45949. 80134c4: f3bf 8f4f dsb sy
  45950. 80134c8: 617b str r3, [r7, #20]
  45951. }
  45952. 80134ca: bf00 nop
  45953. 80134cc: bf00 nop
  45954. 80134ce: e7fd b.n 80134cc <xStreamBufferReceive+0xa4>
  45955. pxStreamBuffer->xTaskWaitingToReceive = xTaskGetCurrentTaskHandle();
  45956. 80134d0: f001 f85a bl 8014588 <xTaskGetCurrentTaskHandle>
  45957. 80134d4: 4602 mov r2, r0
  45958. 80134d6: 6a3b ldr r3, [r7, #32]
  45959. 80134d8: 611a str r2, [r3, #16]
  45960. else
  45961. {
  45962. mtCOVERAGE_TEST_MARKER();
  45963. }
  45964. }
  45965. taskEXIT_CRITICAL();
  45966. 80134da: f002 fa1f bl 801591c <vPortExitCritical>
  45967. if( xBytesAvailable <= xBytesToStoreMessageLength )
  45968. 80134de: 6aba ldr r2, [r7, #40] @ 0x28
  45969. 80134e0: 6a7b ldr r3, [r7, #36] @ 0x24
  45970. 80134e2: 429a cmp r2, r3
  45971. 80134e4: d811 bhi.n 801350a <xStreamBufferReceive+0xe2>
  45972. {
  45973. /* Wait for data to be available. */
  45974. traceBLOCKING_ON_STREAM_BUFFER_RECEIVE( xStreamBuffer );
  45975. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  45976. 80134e6: 683b ldr r3, [r7, #0]
  45977. 80134e8: 2200 movs r2, #0
  45978. 80134ea: 2100 movs r1, #0
  45979. 80134ec: 2000 movs r0, #0
  45980. 80134ee: f001 f9e9 bl 80148c4 <xTaskNotifyWait>
  45981. pxStreamBuffer->xTaskWaitingToReceive = NULL;
  45982. 80134f2: 6a3b ldr r3, [r7, #32]
  45983. 80134f4: 2200 movs r2, #0
  45984. 80134f6: 611a str r2, [r3, #16]
  45985. /* Recheck the data available after blocking. */
  45986. xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
  45987. 80134f8: 6a38 ldr r0, [r7, #32]
  45988. 80134fa: f000 f951 bl 80137a0 <prvBytesInBuffer>
  45989. 80134fe: 62b8 str r0, [r7, #40] @ 0x28
  45990. 8013500: e003 b.n 801350a <xStreamBufferReceive+0xe2>
  45991. mtCOVERAGE_TEST_MARKER();
  45992. }
  45993. }
  45994. else
  45995. {
  45996. xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
  45997. 8013502: 6a38 ldr r0, [r7, #32]
  45998. 8013504: f000 f94c bl 80137a0 <prvBytesInBuffer>
  45999. 8013508: 62b8 str r0, [r7, #40] @ 0x28
  46000. /* Whether receiving a discrete message (where xBytesToStoreMessageLength
  46001. holds the number of bytes used to store the message length) or a stream of
  46002. bytes (where xBytesToStoreMessageLength is zero), the number of bytes
  46003. available must be greater than xBytesToStoreMessageLength to be able to
  46004. read bytes from the buffer. */
  46005. if( xBytesAvailable > xBytesToStoreMessageLength )
  46006. 801350a: 6aba ldr r2, [r7, #40] @ 0x28
  46007. 801350c: 6a7b ldr r3, [r7, #36] @ 0x24
  46008. 801350e: 429a cmp r2, r3
  46009. 8013510: d91d bls.n 801354e <xStreamBufferReceive+0x126>
  46010. {
  46011. xReceivedLength = prvReadMessageFromBuffer( pxStreamBuffer, pvRxData, xBufferLengthBytes, xBytesAvailable, xBytesToStoreMessageLength );
  46012. 8013512: 6a7b ldr r3, [r7, #36] @ 0x24
  46013. 8013514: 9300 str r3, [sp, #0]
  46014. 8013516: 6abb ldr r3, [r7, #40] @ 0x28
  46015. 8013518: 687a ldr r2, [r7, #4]
  46016. 801351a: 68b9 ldr r1, [r7, #8]
  46017. 801351c: 6a38 ldr r0, [r7, #32]
  46018. 801351e: f000 f81b bl 8013558 <prvReadMessageFromBuffer>
  46019. 8013522: 62f8 str r0, [r7, #44] @ 0x2c
  46020. /* Was a task waiting for space in the buffer? */
  46021. if( xReceivedLength != ( size_t ) 0 )
  46022. 8013524: 6afb ldr r3, [r7, #44] @ 0x2c
  46023. 8013526: 2b00 cmp r3, #0
  46024. 8013528: d011 beq.n 801354e <xStreamBufferReceive+0x126>
  46025. {
  46026. traceSTREAM_BUFFER_RECEIVE( xStreamBuffer, xReceivedLength );
  46027. sbRECEIVE_COMPLETED( pxStreamBuffer );
  46028. 801352a: f000 fbf1 bl 8013d10 <vTaskSuspendAll>
  46029. 801352e: 6a3b ldr r3, [r7, #32]
  46030. 8013530: 695b ldr r3, [r3, #20]
  46031. 8013532: 2b00 cmp r3, #0
  46032. 8013534: d009 beq.n 801354a <xStreamBufferReceive+0x122>
  46033. 8013536: 6a3b ldr r3, [r7, #32]
  46034. 8013538: 6958 ldr r0, [r3, #20]
  46035. 801353a: 2300 movs r3, #0
  46036. 801353c: 2200 movs r2, #0
  46037. 801353e: 2100 movs r1, #0
  46038. 8013540: f001 fa20 bl 8014984 <xTaskGenericNotify>
  46039. 8013544: 6a3b ldr r3, [r7, #32]
  46040. 8013546: 2200 movs r2, #0
  46041. 8013548: 615a str r2, [r3, #20]
  46042. 801354a: f000 fbef bl 8013d2c <xTaskResumeAll>
  46043. {
  46044. traceSTREAM_BUFFER_RECEIVE_FAILED( xStreamBuffer );
  46045. mtCOVERAGE_TEST_MARKER();
  46046. }
  46047. return xReceivedLength;
  46048. 801354e: 6afb ldr r3, [r7, #44] @ 0x2c
  46049. }
  46050. 8013550: 4618 mov r0, r3
  46051. 8013552: 3730 adds r7, #48 @ 0x30
  46052. 8013554: 46bd mov sp, r7
  46053. 8013556: bd80 pop {r7, pc}
  46054. 08013558 <prvReadMessageFromBuffer>:
  46055. static size_t prvReadMessageFromBuffer( StreamBuffer_t *pxStreamBuffer,
  46056. void *pvRxData,
  46057. size_t xBufferLengthBytes,
  46058. size_t xBytesAvailable,
  46059. size_t xBytesToStoreMessageLength )
  46060. {
  46061. 8013558: b580 push {r7, lr}
  46062. 801355a: b088 sub sp, #32
  46063. 801355c: af00 add r7, sp, #0
  46064. 801355e: 60f8 str r0, [r7, #12]
  46065. 8013560: 60b9 str r1, [r7, #8]
  46066. 8013562: 607a str r2, [r7, #4]
  46067. 8013564: 603b str r3, [r7, #0]
  46068. size_t xOriginalTail, xReceivedLength, xNextMessageLength;
  46069. configMESSAGE_BUFFER_LENGTH_TYPE xTempNextMessageLength;
  46070. if( xBytesToStoreMessageLength != ( size_t ) 0 )
  46071. 8013566: 6abb ldr r3, [r7, #40] @ 0x28
  46072. 8013568: 2b00 cmp r3, #0
  46073. 801356a: d019 beq.n 80135a0 <prvReadMessageFromBuffer+0x48>
  46074. {
  46075. /* A discrete message is being received. First receive the length
  46076. of the message. A copy of the tail is stored so the buffer can be
  46077. returned to its prior state if the length of the message is too
  46078. large for the provided buffer. */
  46079. xOriginalTail = pxStreamBuffer->xTail;
  46080. 801356c: 68fb ldr r3, [r7, #12]
  46081. 801356e: 681b ldr r3, [r3, #0]
  46082. 8013570: 61bb str r3, [r7, #24]
  46083. ( void ) prvReadBytesFromBuffer( pxStreamBuffer, ( uint8_t * ) &xTempNextMessageLength, xBytesToStoreMessageLength, xBytesAvailable );
  46084. 8013572: f107 0110 add.w r1, r7, #16
  46085. 8013576: 683b ldr r3, [r7, #0]
  46086. 8013578: 6aba ldr r2, [r7, #40] @ 0x28
  46087. 801357a: 68f8 ldr r0, [r7, #12]
  46088. 801357c: f000 f893 bl 80136a6 <prvReadBytesFromBuffer>
  46089. xNextMessageLength = ( size_t ) xTempNextMessageLength;
  46090. 8013580: 693b ldr r3, [r7, #16]
  46091. 8013582: 61fb str r3, [r7, #28]
  46092. /* Reduce the number of bytes available by the number of bytes just
  46093. read out. */
  46094. xBytesAvailable -= xBytesToStoreMessageLength;
  46095. 8013584: 683a ldr r2, [r7, #0]
  46096. 8013586: 6abb ldr r3, [r7, #40] @ 0x28
  46097. 8013588: 1ad3 subs r3, r2, r3
  46098. 801358a: 603b str r3, [r7, #0]
  46099. /* Check there is enough space in the buffer provided by the
  46100. user. */
  46101. if( xNextMessageLength > xBufferLengthBytes )
  46102. 801358c: 69fa ldr r2, [r7, #28]
  46103. 801358e: 687b ldr r3, [r7, #4]
  46104. 8013590: 429a cmp r2, r3
  46105. 8013592: d907 bls.n 80135a4 <prvReadMessageFromBuffer+0x4c>
  46106. {
  46107. /* The user has provided insufficient space to read the message
  46108. so return the buffer to its previous state (so the length of
  46109. the message is in the buffer again). */
  46110. pxStreamBuffer->xTail = xOriginalTail;
  46111. 8013594: 68fb ldr r3, [r7, #12]
  46112. 8013596: 69ba ldr r2, [r7, #24]
  46113. 8013598: 601a str r2, [r3, #0]
  46114. xNextMessageLength = 0;
  46115. 801359a: 2300 movs r3, #0
  46116. 801359c: 61fb str r3, [r7, #28]
  46117. 801359e: e001 b.n 80135a4 <prvReadMessageFromBuffer+0x4c>
  46118. }
  46119. else
  46120. {
  46121. /* A stream of bytes is being received (as opposed to a discrete
  46122. message), so read as many bytes as possible. */
  46123. xNextMessageLength = xBufferLengthBytes;
  46124. 80135a0: 687b ldr r3, [r7, #4]
  46125. 80135a2: 61fb str r3, [r7, #28]
  46126. }
  46127. /* Read the actual data. */
  46128. 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. */
  46129. 80135a4: 683b ldr r3, [r7, #0]
  46130. 80135a6: 69fa ldr r2, [r7, #28]
  46131. 80135a8: 68b9 ldr r1, [r7, #8]
  46132. 80135aa: 68f8 ldr r0, [r7, #12]
  46133. 80135ac: f000 f87b bl 80136a6 <prvReadBytesFromBuffer>
  46134. 80135b0: 6178 str r0, [r7, #20]
  46135. return xReceivedLength;
  46136. 80135b2: 697b ldr r3, [r7, #20]
  46137. }
  46138. 80135b4: 4618 mov r0, r3
  46139. 80135b6: 3720 adds r7, #32
  46140. 80135b8: 46bd mov sp, r7
  46141. 80135ba: bd80 pop {r7, pc}
  46142. 080135bc <prvWriteBytesToBuffer>:
  46143. return xReturn;
  46144. }
  46145. /*-----------------------------------------------------------*/
  46146. static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount )
  46147. {
  46148. 80135bc: b580 push {r7, lr}
  46149. 80135be: b08a sub sp, #40 @ 0x28
  46150. 80135c0: af00 add r7, sp, #0
  46151. 80135c2: 60f8 str r0, [r7, #12]
  46152. 80135c4: 60b9 str r1, [r7, #8]
  46153. 80135c6: 607a str r2, [r7, #4]
  46154. size_t xNextHead, xFirstLength;
  46155. configASSERT( xCount > ( size_t ) 0 );
  46156. 80135c8: 687b ldr r3, [r7, #4]
  46157. 80135ca: 2b00 cmp r3, #0
  46158. 80135cc: d10b bne.n 80135e6 <prvWriteBytesToBuffer+0x2a>
  46159. __asm volatile
  46160. 80135ce: f04f 0350 mov.w r3, #80 @ 0x50
  46161. 80135d2: f383 8811 msr BASEPRI, r3
  46162. 80135d6: f3bf 8f6f isb sy
  46163. 80135da: f3bf 8f4f dsb sy
  46164. 80135de: 61fb str r3, [r7, #28]
  46165. }
  46166. 80135e0: bf00 nop
  46167. 80135e2: bf00 nop
  46168. 80135e4: e7fd b.n 80135e2 <prvWriteBytesToBuffer+0x26>
  46169. xNextHead = pxStreamBuffer->xHead;
  46170. 80135e6: 68fb ldr r3, [r7, #12]
  46171. 80135e8: 685b ldr r3, [r3, #4]
  46172. 80135ea: 627b str r3, [r7, #36] @ 0x24
  46173. /* Calculate the number of bytes that can be added in the first write -
  46174. which may be less than the total number of bytes that need to be added if
  46175. the buffer will wrap back to the beginning. */
  46176. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount );
  46177. 80135ec: 68fb ldr r3, [r7, #12]
  46178. 80135ee: 689a ldr r2, [r3, #8]
  46179. 80135f0: 6a7b ldr r3, [r7, #36] @ 0x24
  46180. 80135f2: 1ad3 subs r3, r2, r3
  46181. 80135f4: 687a ldr r2, [r7, #4]
  46182. 80135f6: 4293 cmp r3, r2
  46183. 80135f8: bf28 it cs
  46184. 80135fa: 4613 movcs r3, r2
  46185. 80135fc: 623b str r3, [r7, #32]
  46186. /* Write as many bytes as can be written in the first write. */
  46187. configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength );
  46188. 80135fe: 6a7a ldr r2, [r7, #36] @ 0x24
  46189. 8013600: 6a3b ldr r3, [r7, #32]
  46190. 8013602: 441a add r2, r3
  46191. 8013604: 68fb ldr r3, [r7, #12]
  46192. 8013606: 689b ldr r3, [r3, #8]
  46193. 8013608: 429a cmp r2, r3
  46194. 801360a: d90b bls.n 8013624 <prvWriteBytesToBuffer+0x68>
  46195. __asm volatile
  46196. 801360c: f04f 0350 mov.w r3, #80 @ 0x50
  46197. 8013610: f383 8811 msr BASEPRI, r3
  46198. 8013614: f3bf 8f6f isb sy
  46199. 8013618: f3bf 8f4f dsb sy
  46200. 801361c: 61bb str r3, [r7, #24]
  46201. }
  46202. 801361e: bf00 nop
  46203. 8013620: bf00 nop
  46204. 8013622: e7fd b.n 8013620 <prvWriteBytesToBuffer+0x64>
  46205. ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ] ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  46206. 8013624: 68fb ldr r3, [r7, #12]
  46207. 8013626: 699a ldr r2, [r3, #24]
  46208. 8013628: 6a7b ldr r3, [r7, #36] @ 0x24
  46209. 801362a: 4413 add r3, r2
  46210. 801362c: 6a3a ldr r2, [r7, #32]
  46211. 801362e: 68b9 ldr r1, [r7, #8]
  46212. 8013630: 4618 mov r0, r3
  46213. 8013632: f017 fb1c bl 802ac6e <memcpy>
  46214. /* If the number of bytes written was less than the number that could be
  46215. written in the first write... */
  46216. if( xCount > xFirstLength )
  46217. 8013636: 687a ldr r2, [r7, #4]
  46218. 8013638: 6a3b ldr r3, [r7, #32]
  46219. 801363a: 429a cmp r2, r3
  46220. 801363c: d91d bls.n 801367a <prvWriteBytesToBuffer+0xbe>
  46221. {
  46222. /* ...then write the remaining bytes to the start of the buffer. */
  46223. configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength );
  46224. 801363e: 687a ldr r2, [r7, #4]
  46225. 8013640: 6a3b ldr r3, [r7, #32]
  46226. 8013642: 1ad2 subs r2, r2, r3
  46227. 8013644: 68fb ldr r3, [r7, #12]
  46228. 8013646: 689b ldr r3, [r3, #8]
  46229. 8013648: 429a cmp r2, r3
  46230. 801364a: d90b bls.n 8013664 <prvWriteBytesToBuffer+0xa8>
  46231. __asm volatile
  46232. 801364c: f04f 0350 mov.w r3, #80 @ 0x50
  46233. 8013650: f383 8811 msr BASEPRI, r3
  46234. 8013654: f3bf 8f6f isb sy
  46235. 8013658: f3bf 8f4f dsb sy
  46236. 801365c: 617b str r3, [r7, #20]
  46237. }
  46238. 801365e: bf00 nop
  46239. 8013660: bf00 nop
  46240. 8013662: e7fd b.n 8013660 <prvWriteBytesToBuffer+0xa4>
  46241. ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * ) &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  46242. 8013664: 68fb ldr r3, [r7, #12]
  46243. 8013666: 6998 ldr r0, [r3, #24]
  46244. 8013668: 68ba ldr r2, [r7, #8]
  46245. 801366a: 6a3b ldr r3, [r7, #32]
  46246. 801366c: 18d1 adds r1, r2, r3
  46247. 801366e: 687a ldr r2, [r7, #4]
  46248. 8013670: 6a3b ldr r3, [r7, #32]
  46249. 8013672: 1ad3 subs r3, r2, r3
  46250. 8013674: 461a mov r2, r3
  46251. 8013676: f017 fafa bl 802ac6e <memcpy>
  46252. else
  46253. {
  46254. mtCOVERAGE_TEST_MARKER();
  46255. }
  46256. xNextHead += xCount;
  46257. 801367a: 6a7a ldr r2, [r7, #36] @ 0x24
  46258. 801367c: 687b ldr r3, [r7, #4]
  46259. 801367e: 4413 add r3, r2
  46260. 8013680: 627b str r3, [r7, #36] @ 0x24
  46261. if( xNextHead >= pxStreamBuffer->xLength )
  46262. 8013682: 68fb ldr r3, [r7, #12]
  46263. 8013684: 689b ldr r3, [r3, #8]
  46264. 8013686: 6a7a ldr r2, [r7, #36] @ 0x24
  46265. 8013688: 429a cmp r2, r3
  46266. 801368a: d304 bcc.n 8013696 <prvWriteBytesToBuffer+0xda>
  46267. {
  46268. xNextHead -= pxStreamBuffer->xLength;
  46269. 801368c: 68fb ldr r3, [r7, #12]
  46270. 801368e: 689b ldr r3, [r3, #8]
  46271. 8013690: 6a7a ldr r2, [r7, #36] @ 0x24
  46272. 8013692: 1ad3 subs r3, r2, r3
  46273. 8013694: 627b str r3, [r7, #36] @ 0x24
  46274. else
  46275. {
  46276. mtCOVERAGE_TEST_MARKER();
  46277. }
  46278. pxStreamBuffer->xHead = xNextHead;
  46279. 8013696: 68fb ldr r3, [r7, #12]
  46280. 8013698: 6a7a ldr r2, [r7, #36] @ 0x24
  46281. 801369a: 605a str r2, [r3, #4]
  46282. return xCount;
  46283. 801369c: 687b ldr r3, [r7, #4]
  46284. }
  46285. 801369e: 4618 mov r0, r3
  46286. 80136a0: 3728 adds r7, #40 @ 0x28
  46287. 80136a2: 46bd mov sp, r7
  46288. 80136a4: bd80 pop {r7, pc}
  46289. 080136a6 <prvReadBytesFromBuffer>:
  46290. /*-----------------------------------------------------------*/
  46291. static size_t prvReadBytesFromBuffer( StreamBuffer_t *pxStreamBuffer, uint8_t *pucData, size_t xMaxCount, size_t xBytesAvailable )
  46292. {
  46293. 80136a6: b580 push {r7, lr}
  46294. 80136a8: b08a sub sp, #40 @ 0x28
  46295. 80136aa: af00 add r7, sp, #0
  46296. 80136ac: 60f8 str r0, [r7, #12]
  46297. 80136ae: 60b9 str r1, [r7, #8]
  46298. 80136b0: 607a str r2, [r7, #4]
  46299. 80136b2: 603b str r3, [r7, #0]
  46300. size_t xCount, xFirstLength, xNextTail;
  46301. /* Use the minimum of the wanted bytes and the available bytes. */
  46302. xCount = configMIN( xBytesAvailable, xMaxCount );
  46303. 80136b4: 687a ldr r2, [r7, #4]
  46304. 80136b6: 683b ldr r3, [r7, #0]
  46305. 80136b8: 4293 cmp r3, r2
  46306. 80136ba: bf28 it cs
  46307. 80136bc: 4613 movcs r3, r2
  46308. 80136be: 623b str r3, [r7, #32]
  46309. if( xCount > ( size_t ) 0 )
  46310. 80136c0: 6a3b ldr r3, [r7, #32]
  46311. 80136c2: 2b00 cmp r3, #0
  46312. 80136c4: d067 beq.n 8013796 <prvReadBytesFromBuffer+0xf0>
  46313. {
  46314. xNextTail = pxStreamBuffer->xTail;
  46315. 80136c6: 68fb ldr r3, [r7, #12]
  46316. 80136c8: 681b ldr r3, [r3, #0]
  46317. 80136ca: 627b str r3, [r7, #36] @ 0x24
  46318. /* Calculate the number of bytes that can be read - which may be
  46319. less than the number wanted if the data wraps around to the start of
  46320. the buffer. */
  46321. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextTail, xCount );
  46322. 80136cc: 68fb ldr r3, [r7, #12]
  46323. 80136ce: 689a ldr r2, [r3, #8]
  46324. 80136d0: 6a7b ldr r3, [r7, #36] @ 0x24
  46325. 80136d2: 1ad3 subs r3, r2, r3
  46326. 80136d4: 6a3a ldr r2, [r7, #32]
  46327. 80136d6: 4293 cmp r3, r2
  46328. 80136d8: bf28 it cs
  46329. 80136da: 4613 movcs r3, r2
  46330. 80136dc: 61fb str r3, [r7, #28]
  46331. /* Obtain the number of bytes it is possible to obtain in the first
  46332. read. Asserts check bounds of read and write. */
  46333. configASSERT( xFirstLength <= xMaxCount );
  46334. 80136de: 69fa ldr r2, [r7, #28]
  46335. 80136e0: 687b ldr r3, [r7, #4]
  46336. 80136e2: 429a cmp r2, r3
  46337. 80136e4: d90b bls.n 80136fe <prvReadBytesFromBuffer+0x58>
  46338. __asm volatile
  46339. 80136e6: f04f 0350 mov.w r3, #80 @ 0x50
  46340. 80136ea: f383 8811 msr BASEPRI, r3
  46341. 80136ee: f3bf 8f6f isb sy
  46342. 80136f2: f3bf 8f4f dsb sy
  46343. 80136f6: 61bb str r3, [r7, #24]
  46344. }
  46345. 80136f8: bf00 nop
  46346. 80136fa: bf00 nop
  46347. 80136fc: e7fd b.n 80136fa <prvReadBytesFromBuffer+0x54>
  46348. configASSERT( ( xNextTail + xFirstLength ) <= pxStreamBuffer->xLength );
  46349. 80136fe: 6a7a ldr r2, [r7, #36] @ 0x24
  46350. 8013700: 69fb ldr r3, [r7, #28]
  46351. 8013702: 441a add r2, r3
  46352. 8013704: 68fb ldr r3, [r7, #12]
  46353. 8013706: 689b ldr r3, [r3, #8]
  46354. 8013708: 429a cmp r2, r3
  46355. 801370a: d90b bls.n 8013724 <prvReadBytesFromBuffer+0x7e>
  46356. __asm volatile
  46357. 801370c: f04f 0350 mov.w r3, #80 @ 0x50
  46358. 8013710: f383 8811 msr BASEPRI, r3
  46359. 8013714: f3bf 8f6f isb sy
  46360. 8013718: f3bf 8f4f dsb sy
  46361. 801371c: 617b str r3, [r7, #20]
  46362. }
  46363. 801371e: bf00 nop
  46364. 8013720: bf00 nop
  46365. 8013722: e7fd b.n 8013720 <prvReadBytesFromBuffer+0x7a>
  46366. ( void ) memcpy( ( void * ) pucData, ( const void * ) &( pxStreamBuffer->pucBuffer[ xNextTail ] ), xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  46367. 8013724: 68fb ldr r3, [r7, #12]
  46368. 8013726: 699a ldr r2, [r3, #24]
  46369. 8013728: 6a7b ldr r3, [r7, #36] @ 0x24
  46370. 801372a: 4413 add r3, r2
  46371. 801372c: 69fa ldr r2, [r7, #28]
  46372. 801372e: 4619 mov r1, r3
  46373. 8013730: 68b8 ldr r0, [r7, #8]
  46374. 8013732: f017 fa9c bl 802ac6e <memcpy>
  46375. /* If the total number of wanted bytes is greater than the number
  46376. that could be read in the first read... */
  46377. if( xCount > xFirstLength )
  46378. 8013736: 6a3a ldr r2, [r7, #32]
  46379. 8013738: 69fb ldr r3, [r7, #28]
  46380. 801373a: 429a cmp r2, r3
  46381. 801373c: d91a bls.n 8013774 <prvReadBytesFromBuffer+0xce>
  46382. {
  46383. /*...then read the remaining bytes from the start of the buffer. */
  46384. configASSERT( xCount <= xMaxCount );
  46385. 801373e: 6a3a ldr r2, [r7, #32]
  46386. 8013740: 687b ldr r3, [r7, #4]
  46387. 8013742: 429a cmp r2, r3
  46388. 8013744: d90b bls.n 801375e <prvReadBytesFromBuffer+0xb8>
  46389. __asm volatile
  46390. 8013746: f04f 0350 mov.w r3, #80 @ 0x50
  46391. 801374a: f383 8811 msr BASEPRI, r3
  46392. 801374e: f3bf 8f6f isb sy
  46393. 8013752: f3bf 8f4f dsb sy
  46394. 8013756: 613b str r3, [r7, #16]
  46395. }
  46396. 8013758: bf00 nop
  46397. 801375a: bf00 nop
  46398. 801375c: e7fd b.n 801375a <prvReadBytesFromBuffer+0xb4>
  46399. ( void ) memcpy( ( void * ) &( pucData[ xFirstLength ] ), ( void * ) ( pxStreamBuffer->pucBuffer ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  46400. 801375e: 68ba ldr r2, [r7, #8]
  46401. 8013760: 69fb ldr r3, [r7, #28]
  46402. 8013762: 18d0 adds r0, r2, r3
  46403. 8013764: 68fb ldr r3, [r7, #12]
  46404. 8013766: 6999 ldr r1, [r3, #24]
  46405. 8013768: 6a3a ldr r2, [r7, #32]
  46406. 801376a: 69fb ldr r3, [r7, #28]
  46407. 801376c: 1ad3 subs r3, r2, r3
  46408. 801376e: 461a mov r2, r3
  46409. 8013770: f017 fa7d bl 802ac6e <memcpy>
  46410. mtCOVERAGE_TEST_MARKER();
  46411. }
  46412. /* Move the tail pointer to effectively remove the data read from
  46413. the buffer. */
  46414. xNextTail += xCount;
  46415. 8013774: 6a7a ldr r2, [r7, #36] @ 0x24
  46416. 8013776: 6a3b ldr r3, [r7, #32]
  46417. 8013778: 4413 add r3, r2
  46418. 801377a: 627b str r3, [r7, #36] @ 0x24
  46419. if( xNextTail >= pxStreamBuffer->xLength )
  46420. 801377c: 68fb ldr r3, [r7, #12]
  46421. 801377e: 689b ldr r3, [r3, #8]
  46422. 8013780: 6a7a ldr r2, [r7, #36] @ 0x24
  46423. 8013782: 429a cmp r2, r3
  46424. 8013784: d304 bcc.n 8013790 <prvReadBytesFromBuffer+0xea>
  46425. {
  46426. xNextTail -= pxStreamBuffer->xLength;
  46427. 8013786: 68fb ldr r3, [r7, #12]
  46428. 8013788: 689b ldr r3, [r3, #8]
  46429. 801378a: 6a7a ldr r2, [r7, #36] @ 0x24
  46430. 801378c: 1ad3 subs r3, r2, r3
  46431. 801378e: 627b str r3, [r7, #36] @ 0x24
  46432. }
  46433. pxStreamBuffer->xTail = xNextTail;
  46434. 8013790: 68fb ldr r3, [r7, #12]
  46435. 8013792: 6a7a ldr r2, [r7, #36] @ 0x24
  46436. 8013794: 601a str r2, [r3, #0]
  46437. else
  46438. {
  46439. mtCOVERAGE_TEST_MARKER();
  46440. }
  46441. return xCount;
  46442. 8013796: 6a3b ldr r3, [r7, #32]
  46443. }
  46444. 8013798: 4618 mov r0, r3
  46445. 801379a: 3728 adds r7, #40 @ 0x28
  46446. 801379c: 46bd mov sp, r7
  46447. 801379e: bd80 pop {r7, pc}
  46448. 080137a0 <prvBytesInBuffer>:
  46449. /*-----------------------------------------------------------*/
  46450. static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer )
  46451. {
  46452. 80137a0: b480 push {r7}
  46453. 80137a2: b085 sub sp, #20
  46454. 80137a4: af00 add r7, sp, #0
  46455. 80137a6: 6078 str r0, [r7, #4]
  46456. /* Returns the distance between xTail and xHead. */
  46457. size_t xCount;
  46458. xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead;
  46459. 80137a8: 687b ldr r3, [r7, #4]
  46460. 80137aa: 689a ldr r2, [r3, #8]
  46461. 80137ac: 687b ldr r3, [r7, #4]
  46462. 80137ae: 685b ldr r3, [r3, #4]
  46463. 80137b0: 4413 add r3, r2
  46464. 80137b2: 60fb str r3, [r7, #12]
  46465. xCount -= pxStreamBuffer->xTail;
  46466. 80137b4: 687b ldr r3, [r7, #4]
  46467. 80137b6: 681b ldr r3, [r3, #0]
  46468. 80137b8: 68fa ldr r2, [r7, #12]
  46469. 80137ba: 1ad3 subs r3, r2, r3
  46470. 80137bc: 60fb str r3, [r7, #12]
  46471. if ( xCount >= pxStreamBuffer->xLength )
  46472. 80137be: 687b ldr r3, [r7, #4]
  46473. 80137c0: 689b ldr r3, [r3, #8]
  46474. 80137c2: 68fa ldr r2, [r7, #12]
  46475. 80137c4: 429a cmp r2, r3
  46476. 80137c6: d304 bcc.n 80137d2 <prvBytesInBuffer+0x32>
  46477. {
  46478. xCount -= pxStreamBuffer->xLength;
  46479. 80137c8: 687b ldr r3, [r7, #4]
  46480. 80137ca: 689b ldr r3, [r3, #8]
  46481. 80137cc: 68fa ldr r2, [r7, #12]
  46482. 80137ce: 1ad3 subs r3, r2, r3
  46483. 80137d0: 60fb str r3, [r7, #12]
  46484. else
  46485. {
  46486. mtCOVERAGE_TEST_MARKER();
  46487. }
  46488. return xCount;
  46489. 80137d2: 68fb ldr r3, [r7, #12]
  46490. }
  46491. 80137d4: 4618 mov r0, r3
  46492. 80137d6: 3714 adds r7, #20
  46493. 80137d8: 46bd mov sp, r7
  46494. 80137da: f85d 7b04 ldr.w r7, [sp], #4
  46495. 80137de: 4770 bx lr
  46496. 080137e0 <prvInitialiseNewStreamBuffer>:
  46497. static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer,
  46498. uint8_t * const pucBuffer,
  46499. size_t xBufferSizeBytes,
  46500. size_t xTriggerLevelBytes,
  46501. uint8_t ucFlags )
  46502. {
  46503. 80137e0: b580 push {r7, lr}
  46504. 80137e2: b086 sub sp, #24
  46505. 80137e4: af00 add r7, sp, #0
  46506. 80137e6: 60f8 str r0, [r7, #12]
  46507. 80137e8: 60b9 str r1, [r7, #8]
  46508. 80137ea: 607a str r2, [r7, #4]
  46509. 80137ec: 603b str r3, [r7, #0]
  46510. #if( configASSERT_DEFINED == 1 )
  46511. {
  46512. /* The value written just has to be identifiable when looking at the
  46513. memory. Don't use 0xA5 as that is the stack fill value and could
  46514. result in confusion as to what is actually being observed. */
  46515. const BaseType_t xWriteValue = 0x55;
  46516. 80137ee: 2355 movs r3, #85 @ 0x55
  46517. 80137f0: 617b str r3, [r7, #20]
  46518. configASSERT( memset( pucBuffer, ( int ) xWriteValue, xBufferSizeBytes ) == pucBuffer );
  46519. 80137f2: 687a ldr r2, [r7, #4]
  46520. 80137f4: 6979 ldr r1, [r7, #20]
  46521. 80137f6: 68b8 ldr r0, [r7, #8]
  46522. 80137f8: f017 f942 bl 802aa80 <memset>
  46523. 80137fc: 4602 mov r2, r0
  46524. 80137fe: 68bb ldr r3, [r7, #8]
  46525. 8013800: 4293 cmp r3, r2
  46526. 8013802: d00b beq.n 801381c <prvInitialiseNewStreamBuffer+0x3c>
  46527. __asm volatile
  46528. 8013804: f04f 0350 mov.w r3, #80 @ 0x50
  46529. 8013808: f383 8811 msr BASEPRI, r3
  46530. 801380c: f3bf 8f6f isb sy
  46531. 8013810: f3bf 8f4f dsb sy
  46532. 8013814: 613b str r3, [r7, #16]
  46533. }
  46534. 8013816: bf00 nop
  46535. 8013818: bf00 nop
  46536. 801381a: e7fd b.n 8013818 <prvInitialiseNewStreamBuffer+0x38>
  46537. } /*lint !e529 !e438 xWriteValue is only used if configASSERT() is defined. */
  46538. #endif
  46539. ( void ) memset( ( void * ) pxStreamBuffer, 0x00, sizeof( StreamBuffer_t ) ); /*lint !e9087 memset() requires void *. */
  46540. 801381c: 2224 movs r2, #36 @ 0x24
  46541. 801381e: 2100 movs r1, #0
  46542. 8013820: 68f8 ldr r0, [r7, #12]
  46543. 8013822: f017 f92d bl 802aa80 <memset>
  46544. pxStreamBuffer->pucBuffer = pucBuffer;
  46545. 8013826: 68fb ldr r3, [r7, #12]
  46546. 8013828: 68ba ldr r2, [r7, #8]
  46547. 801382a: 619a str r2, [r3, #24]
  46548. pxStreamBuffer->xLength = xBufferSizeBytes;
  46549. 801382c: 68fb ldr r3, [r7, #12]
  46550. 801382e: 687a ldr r2, [r7, #4]
  46551. 8013830: 609a str r2, [r3, #8]
  46552. pxStreamBuffer->xTriggerLevelBytes = xTriggerLevelBytes;
  46553. 8013832: 68fb ldr r3, [r7, #12]
  46554. 8013834: 683a ldr r2, [r7, #0]
  46555. 8013836: 60da str r2, [r3, #12]
  46556. pxStreamBuffer->ucFlags = ucFlags;
  46557. 8013838: 68fb ldr r3, [r7, #12]
  46558. 801383a: f897 2020 ldrb.w r2, [r7, #32]
  46559. 801383e: 771a strb r2, [r3, #28]
  46560. }
  46561. 8013840: bf00 nop
  46562. 8013842: 3718 adds r7, #24
  46563. 8013844: 46bd mov sp, r7
  46564. 8013846: bd80 pop {r7, pc}
  46565. 08013848 <xTaskCreateStatic>:
  46566. const uint32_t ulStackDepth,
  46567. void * const pvParameters,
  46568. UBaseType_t uxPriority,
  46569. StackType_t * const puxStackBuffer,
  46570. StaticTask_t * const pxTaskBuffer )
  46571. {
  46572. 8013848: b580 push {r7, lr}
  46573. 801384a: b08e sub sp, #56 @ 0x38
  46574. 801384c: af04 add r7, sp, #16
  46575. 801384e: 60f8 str r0, [r7, #12]
  46576. 8013850: 60b9 str r1, [r7, #8]
  46577. 8013852: 607a str r2, [r7, #4]
  46578. 8013854: 603b str r3, [r7, #0]
  46579. TCB_t *pxNewTCB;
  46580. TaskHandle_t xReturn;
  46581. configASSERT( puxStackBuffer != NULL );
  46582. 8013856: 6b7b ldr r3, [r7, #52] @ 0x34
  46583. 8013858: 2b00 cmp r3, #0
  46584. 801385a: d10b bne.n 8013874 <xTaskCreateStatic+0x2c>
  46585. __asm volatile
  46586. 801385c: f04f 0350 mov.w r3, #80 @ 0x50
  46587. 8013860: f383 8811 msr BASEPRI, r3
  46588. 8013864: f3bf 8f6f isb sy
  46589. 8013868: f3bf 8f4f dsb sy
  46590. 801386c: 623b str r3, [r7, #32]
  46591. }
  46592. 801386e: bf00 nop
  46593. 8013870: bf00 nop
  46594. 8013872: e7fd b.n 8013870 <xTaskCreateStatic+0x28>
  46595. configASSERT( pxTaskBuffer != NULL );
  46596. 8013874: 6bbb ldr r3, [r7, #56] @ 0x38
  46597. 8013876: 2b00 cmp r3, #0
  46598. 8013878: d10b bne.n 8013892 <xTaskCreateStatic+0x4a>
  46599. __asm volatile
  46600. 801387a: f04f 0350 mov.w r3, #80 @ 0x50
  46601. 801387e: f383 8811 msr BASEPRI, r3
  46602. 8013882: f3bf 8f6f isb sy
  46603. 8013886: f3bf 8f4f dsb sy
  46604. 801388a: 61fb str r3, [r7, #28]
  46605. }
  46606. 801388c: bf00 nop
  46607. 801388e: bf00 nop
  46608. 8013890: e7fd b.n 801388e <xTaskCreateStatic+0x46>
  46609. #if( configASSERT_DEFINED == 1 )
  46610. {
  46611. /* Sanity check that the size of the structure used to declare a
  46612. variable of type StaticTask_t equals the size of the real task
  46613. structure. */
  46614. volatile size_t xSize = sizeof( StaticTask_t );
  46615. 8013892: 23a8 movs r3, #168 @ 0xa8
  46616. 8013894: 613b str r3, [r7, #16]
  46617. configASSERT( xSize == sizeof( TCB_t ) );
  46618. 8013896: 693b ldr r3, [r7, #16]
  46619. 8013898: 2ba8 cmp r3, #168 @ 0xa8
  46620. 801389a: d00b beq.n 80138b4 <xTaskCreateStatic+0x6c>
  46621. __asm volatile
  46622. 801389c: f04f 0350 mov.w r3, #80 @ 0x50
  46623. 80138a0: f383 8811 msr BASEPRI, r3
  46624. 80138a4: f3bf 8f6f isb sy
  46625. 80138a8: f3bf 8f4f dsb sy
  46626. 80138ac: 61bb str r3, [r7, #24]
  46627. }
  46628. 80138ae: bf00 nop
  46629. 80138b0: bf00 nop
  46630. 80138b2: e7fd b.n 80138b0 <xTaskCreateStatic+0x68>
  46631. ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */
  46632. 80138b4: 693b ldr r3, [r7, #16]
  46633. }
  46634. #endif /* configASSERT_DEFINED */
  46635. if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) )
  46636. 80138b6: 6bbb ldr r3, [r7, #56] @ 0x38
  46637. 80138b8: 2b00 cmp r3, #0
  46638. 80138ba: d01e beq.n 80138fa <xTaskCreateStatic+0xb2>
  46639. 80138bc: 6b7b ldr r3, [r7, #52] @ 0x34
  46640. 80138be: 2b00 cmp r3, #0
  46641. 80138c0: d01b beq.n 80138fa <xTaskCreateStatic+0xb2>
  46642. {
  46643. /* The memory used for the task's TCB and stack are passed into this
  46644. function - use them. */
  46645. 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. */
  46646. 80138c2: 6bbb ldr r3, [r7, #56] @ 0x38
  46647. 80138c4: 627b str r3, [r7, #36] @ 0x24
  46648. pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer;
  46649. 80138c6: 6a7b ldr r3, [r7, #36] @ 0x24
  46650. 80138c8: 6b7a ldr r2, [r7, #52] @ 0x34
  46651. 80138ca: 631a str r2, [r3, #48] @ 0x30
  46652. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  46653. {
  46654. /* Tasks can be created statically or dynamically, so note this
  46655. task was created statically in case the task is later deleted. */
  46656. pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB;
  46657. 80138cc: 6a7b ldr r3, [r7, #36] @ 0x24
  46658. 80138ce: 2202 movs r2, #2
  46659. 80138d0: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  46660. }
  46661. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  46662. prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL );
  46663. 80138d4: 2300 movs r3, #0
  46664. 80138d6: 9303 str r3, [sp, #12]
  46665. 80138d8: 6a7b ldr r3, [r7, #36] @ 0x24
  46666. 80138da: 9302 str r3, [sp, #8]
  46667. 80138dc: f107 0314 add.w r3, r7, #20
  46668. 80138e0: 9301 str r3, [sp, #4]
  46669. 80138e2: 6b3b ldr r3, [r7, #48] @ 0x30
  46670. 80138e4: 9300 str r3, [sp, #0]
  46671. 80138e6: 683b ldr r3, [r7, #0]
  46672. 80138e8: 687a ldr r2, [r7, #4]
  46673. 80138ea: 68b9 ldr r1, [r7, #8]
  46674. 80138ec: 68f8 ldr r0, [r7, #12]
  46675. 80138ee: f000 f851 bl 8013994 <prvInitialiseNewTask>
  46676. prvAddNewTaskToReadyList( pxNewTCB );
  46677. 80138f2: 6a78 ldr r0, [r7, #36] @ 0x24
  46678. 80138f4: f000 f8f6 bl 8013ae4 <prvAddNewTaskToReadyList>
  46679. 80138f8: e001 b.n 80138fe <xTaskCreateStatic+0xb6>
  46680. }
  46681. else
  46682. {
  46683. xReturn = NULL;
  46684. 80138fa: 2300 movs r3, #0
  46685. 80138fc: 617b str r3, [r7, #20]
  46686. }
  46687. return xReturn;
  46688. 80138fe: 697b ldr r3, [r7, #20]
  46689. }
  46690. 8013900: 4618 mov r0, r3
  46691. 8013902: 3728 adds r7, #40 @ 0x28
  46692. 8013904: 46bd mov sp, r7
  46693. 8013906: bd80 pop {r7, pc}
  46694. 08013908 <xTaskCreate>:
  46695. const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  46696. const configSTACK_DEPTH_TYPE usStackDepth,
  46697. void * const pvParameters,
  46698. UBaseType_t uxPriority,
  46699. TaskHandle_t * const pxCreatedTask )
  46700. {
  46701. 8013908: b580 push {r7, lr}
  46702. 801390a: b08c sub sp, #48 @ 0x30
  46703. 801390c: af04 add r7, sp, #16
  46704. 801390e: 60f8 str r0, [r7, #12]
  46705. 8013910: 60b9 str r1, [r7, #8]
  46706. 8013912: 603b str r3, [r7, #0]
  46707. 8013914: 4613 mov r3, r2
  46708. 8013916: 80fb strh r3, [r7, #6]
  46709. #else /* portSTACK_GROWTH */
  46710. {
  46711. StackType_t *pxStack;
  46712. /* Allocate space for the stack used by the task being created. */
  46713. 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. */
  46714. 8013918: 88fb ldrh r3, [r7, #6]
  46715. 801391a: 009b lsls r3, r3, #2
  46716. 801391c: 4618 mov r0, r3
  46717. 801391e: f002 f8ed bl 8015afc <pvPortMalloc>
  46718. 8013922: 6178 str r0, [r7, #20]
  46719. if( pxStack != NULL )
  46720. 8013924: 697b ldr r3, [r7, #20]
  46721. 8013926: 2b00 cmp r3, #0
  46722. 8013928: d00e beq.n 8013948 <xTaskCreate+0x40>
  46723. {
  46724. /* Allocate space for the TCB. */
  46725. 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. */
  46726. 801392a: 20a8 movs r0, #168 @ 0xa8
  46727. 801392c: f002 f8e6 bl 8015afc <pvPortMalloc>
  46728. 8013930: 61f8 str r0, [r7, #28]
  46729. if( pxNewTCB != NULL )
  46730. 8013932: 69fb ldr r3, [r7, #28]
  46731. 8013934: 2b00 cmp r3, #0
  46732. 8013936: d003 beq.n 8013940 <xTaskCreate+0x38>
  46733. {
  46734. /* Store the stack location in the TCB. */
  46735. pxNewTCB->pxStack = pxStack;
  46736. 8013938: 69fb ldr r3, [r7, #28]
  46737. 801393a: 697a ldr r2, [r7, #20]
  46738. 801393c: 631a str r2, [r3, #48] @ 0x30
  46739. 801393e: e005 b.n 801394c <xTaskCreate+0x44>
  46740. }
  46741. else
  46742. {
  46743. /* The stack cannot be used as the TCB was not created. Free
  46744. it again. */
  46745. vPortFree( pxStack );
  46746. 8013940: 6978 ldr r0, [r7, #20]
  46747. 8013942: f002 f9a9 bl 8015c98 <vPortFree>
  46748. 8013946: e001 b.n 801394c <xTaskCreate+0x44>
  46749. }
  46750. }
  46751. else
  46752. {
  46753. pxNewTCB = NULL;
  46754. 8013948: 2300 movs r3, #0
  46755. 801394a: 61fb str r3, [r7, #28]
  46756. }
  46757. }
  46758. #endif /* portSTACK_GROWTH */
  46759. if( pxNewTCB != NULL )
  46760. 801394c: 69fb ldr r3, [r7, #28]
  46761. 801394e: 2b00 cmp r3, #0
  46762. 8013950: d017 beq.n 8013982 <xTaskCreate+0x7a>
  46763. {
  46764. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */
  46765. {
  46766. /* Tasks can be created statically or dynamically, so note this
  46767. task was created dynamically in case it is later deleted. */
  46768. pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
  46769. 8013952: 69fb ldr r3, [r7, #28]
  46770. 8013954: 2200 movs r2, #0
  46771. 8013956: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  46772. }
  46773. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  46774. prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
  46775. 801395a: 88fa ldrh r2, [r7, #6]
  46776. 801395c: 2300 movs r3, #0
  46777. 801395e: 9303 str r3, [sp, #12]
  46778. 8013960: 69fb ldr r3, [r7, #28]
  46779. 8013962: 9302 str r3, [sp, #8]
  46780. 8013964: 6afb ldr r3, [r7, #44] @ 0x2c
  46781. 8013966: 9301 str r3, [sp, #4]
  46782. 8013968: 6abb ldr r3, [r7, #40] @ 0x28
  46783. 801396a: 9300 str r3, [sp, #0]
  46784. 801396c: 683b ldr r3, [r7, #0]
  46785. 801396e: 68b9 ldr r1, [r7, #8]
  46786. 8013970: 68f8 ldr r0, [r7, #12]
  46787. 8013972: f000 f80f bl 8013994 <prvInitialiseNewTask>
  46788. prvAddNewTaskToReadyList( pxNewTCB );
  46789. 8013976: 69f8 ldr r0, [r7, #28]
  46790. 8013978: f000 f8b4 bl 8013ae4 <prvAddNewTaskToReadyList>
  46791. xReturn = pdPASS;
  46792. 801397c: 2301 movs r3, #1
  46793. 801397e: 61bb str r3, [r7, #24]
  46794. 8013980: e002 b.n 8013988 <xTaskCreate+0x80>
  46795. }
  46796. else
  46797. {
  46798. xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
  46799. 8013982: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46800. 8013986: 61bb str r3, [r7, #24]
  46801. }
  46802. return xReturn;
  46803. 8013988: 69bb ldr r3, [r7, #24]
  46804. }
  46805. 801398a: 4618 mov r0, r3
  46806. 801398c: 3720 adds r7, #32
  46807. 801398e: 46bd mov sp, r7
  46808. 8013990: bd80 pop {r7, pc}
  46809. ...
  46810. 08013994 <prvInitialiseNewTask>:
  46811. void * const pvParameters,
  46812. UBaseType_t uxPriority,
  46813. TaskHandle_t * const pxCreatedTask,
  46814. TCB_t *pxNewTCB,
  46815. const MemoryRegion_t * const xRegions )
  46816. {
  46817. 8013994: b580 push {r7, lr}
  46818. 8013996: b088 sub sp, #32
  46819. 8013998: af00 add r7, sp, #0
  46820. 801399a: 60f8 str r0, [r7, #12]
  46821. 801399c: 60b9 str r1, [r7, #8]
  46822. 801399e: 607a str r2, [r7, #4]
  46823. 80139a0: 603b str r3, [r7, #0]
  46824. /* Avoid dependency on memset() if it is not required. */
  46825. #if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
  46826. {
  46827. /* Fill the stack with a known value to assist debugging. */
  46828. ( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
  46829. 80139a2: 6b3b ldr r3, [r7, #48] @ 0x30
  46830. 80139a4: 6b18 ldr r0, [r3, #48] @ 0x30
  46831. 80139a6: 687b ldr r3, [r7, #4]
  46832. 80139a8: 009b lsls r3, r3, #2
  46833. 80139aa: 461a mov r2, r3
  46834. 80139ac: 21a5 movs r1, #165 @ 0xa5
  46835. 80139ae: f017 f867 bl 802aa80 <memset>
  46836. grows from high memory to low (as per the 80x86) or vice versa.
  46837. portSTACK_GROWTH is used to make the result positive or negative as required
  46838. by the port. */
  46839. #if( portSTACK_GROWTH < 0 )
  46840. {
  46841. pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
  46842. 80139b2: 6b3b ldr r3, [r7, #48] @ 0x30
  46843. 80139b4: 6b1a ldr r2, [r3, #48] @ 0x30
  46844. 80139b6: 6879 ldr r1, [r7, #4]
  46845. 80139b8: f06f 4340 mvn.w r3, #3221225472 @ 0xc0000000
  46846. 80139bc: 440b add r3, r1
  46847. 80139be: 009b lsls r3, r3, #2
  46848. 80139c0: 4413 add r3, r2
  46849. 80139c2: 61bb str r3, [r7, #24]
  46850. 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(). */
  46851. 80139c4: 69bb ldr r3, [r7, #24]
  46852. 80139c6: f023 0307 bic.w r3, r3, #7
  46853. 80139ca: 61bb str r3, [r7, #24]
  46854. /* Check the alignment of the calculated top of stack is correct. */
  46855. configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
  46856. 80139cc: 69bb ldr r3, [r7, #24]
  46857. 80139ce: f003 0307 and.w r3, r3, #7
  46858. 80139d2: 2b00 cmp r3, #0
  46859. 80139d4: d00b beq.n 80139ee <prvInitialiseNewTask+0x5a>
  46860. __asm volatile
  46861. 80139d6: f04f 0350 mov.w r3, #80 @ 0x50
  46862. 80139da: f383 8811 msr BASEPRI, r3
  46863. 80139de: f3bf 8f6f isb sy
  46864. 80139e2: f3bf 8f4f dsb sy
  46865. 80139e6: 617b str r3, [r7, #20]
  46866. }
  46867. 80139e8: bf00 nop
  46868. 80139ea: bf00 nop
  46869. 80139ec: e7fd b.n 80139ea <prvInitialiseNewTask+0x56>
  46870. pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
  46871. }
  46872. #endif /* portSTACK_GROWTH */
  46873. /* Store the task name in the TCB. */
  46874. if( pcName != NULL )
  46875. 80139ee: 68bb ldr r3, [r7, #8]
  46876. 80139f0: 2b00 cmp r3, #0
  46877. 80139f2: d01f beq.n 8013a34 <prvInitialiseNewTask+0xa0>
  46878. {
  46879. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  46880. 80139f4: 2300 movs r3, #0
  46881. 80139f6: 61fb str r3, [r7, #28]
  46882. 80139f8: e012 b.n 8013a20 <prvInitialiseNewTask+0x8c>
  46883. {
  46884. pxNewTCB->pcTaskName[ x ] = pcName[ x ];
  46885. 80139fa: 68ba ldr r2, [r7, #8]
  46886. 80139fc: 69fb ldr r3, [r7, #28]
  46887. 80139fe: 4413 add r3, r2
  46888. 8013a00: 7819 ldrb r1, [r3, #0]
  46889. 8013a02: 6b3a ldr r2, [r7, #48] @ 0x30
  46890. 8013a04: 69fb ldr r3, [r7, #28]
  46891. 8013a06: 4413 add r3, r2
  46892. 8013a08: 3334 adds r3, #52 @ 0x34
  46893. 8013a0a: 460a mov r2, r1
  46894. 8013a0c: 701a strb r2, [r3, #0]
  46895. /* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
  46896. configMAX_TASK_NAME_LEN characters just in case the memory after the
  46897. string is not accessible (extremely unlikely). */
  46898. if( pcName[ x ] == ( char ) 0x00 )
  46899. 8013a0e: 68ba ldr r2, [r7, #8]
  46900. 8013a10: 69fb ldr r3, [r7, #28]
  46901. 8013a12: 4413 add r3, r2
  46902. 8013a14: 781b ldrb r3, [r3, #0]
  46903. 8013a16: 2b00 cmp r3, #0
  46904. 8013a18: d006 beq.n 8013a28 <prvInitialiseNewTask+0x94>
  46905. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  46906. 8013a1a: 69fb ldr r3, [r7, #28]
  46907. 8013a1c: 3301 adds r3, #1
  46908. 8013a1e: 61fb str r3, [r7, #28]
  46909. 8013a20: 69fb ldr r3, [r7, #28]
  46910. 8013a22: 2b0f cmp r3, #15
  46911. 8013a24: d9e9 bls.n 80139fa <prvInitialiseNewTask+0x66>
  46912. 8013a26: e000 b.n 8013a2a <prvInitialiseNewTask+0x96>
  46913. {
  46914. break;
  46915. 8013a28: bf00 nop
  46916. }
  46917. }
  46918. /* Ensure the name string is terminated in the case that the string length
  46919. was greater or equal to configMAX_TASK_NAME_LEN. */
  46920. pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
  46921. 8013a2a: 6b3b ldr r3, [r7, #48] @ 0x30
  46922. 8013a2c: 2200 movs r2, #0
  46923. 8013a2e: f883 2043 strb.w r2, [r3, #67] @ 0x43
  46924. 8013a32: e003 b.n 8013a3c <prvInitialiseNewTask+0xa8>
  46925. }
  46926. else
  46927. {
  46928. /* The task has not been given a name, so just ensure there is a NULL
  46929. terminator when it is read out. */
  46930. pxNewTCB->pcTaskName[ 0 ] = 0x00;
  46931. 8013a34: 6b3b ldr r3, [r7, #48] @ 0x30
  46932. 8013a36: 2200 movs r2, #0
  46933. 8013a38: f883 2034 strb.w r2, [r3, #52] @ 0x34
  46934. }
  46935. /* This is used as an array index so must ensure it's not too large. First
  46936. remove the privilege bit if one is present. */
  46937. if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
  46938. 8013a3c: 6abb ldr r3, [r7, #40] @ 0x28
  46939. 8013a3e: 2b37 cmp r3, #55 @ 0x37
  46940. 8013a40: d901 bls.n 8013a46 <prvInitialiseNewTask+0xb2>
  46941. {
  46942. uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
  46943. 8013a42: 2337 movs r3, #55 @ 0x37
  46944. 8013a44: 62bb str r3, [r7, #40] @ 0x28
  46945. else
  46946. {
  46947. mtCOVERAGE_TEST_MARKER();
  46948. }
  46949. pxNewTCB->uxPriority = uxPriority;
  46950. 8013a46: 6b3b ldr r3, [r7, #48] @ 0x30
  46951. 8013a48: 6aba ldr r2, [r7, #40] @ 0x28
  46952. 8013a4a: 62da str r2, [r3, #44] @ 0x2c
  46953. #if ( configUSE_MUTEXES == 1 )
  46954. {
  46955. pxNewTCB->uxBasePriority = uxPriority;
  46956. 8013a4c: 6b3b ldr r3, [r7, #48] @ 0x30
  46957. 8013a4e: 6aba ldr r2, [r7, #40] @ 0x28
  46958. 8013a50: 64da str r2, [r3, #76] @ 0x4c
  46959. pxNewTCB->uxMutexesHeld = 0;
  46960. 8013a52: 6b3b ldr r3, [r7, #48] @ 0x30
  46961. 8013a54: 2200 movs r2, #0
  46962. 8013a56: 651a str r2, [r3, #80] @ 0x50
  46963. }
  46964. #endif /* configUSE_MUTEXES */
  46965. vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
  46966. 8013a58: 6b3b ldr r3, [r7, #48] @ 0x30
  46967. 8013a5a: 3304 adds r3, #4
  46968. 8013a5c: 4618 mov r0, r3
  46969. 8013a5e: f7fe f9a5 bl 8011dac <vListInitialiseItem>
  46970. vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
  46971. 8013a62: 6b3b ldr r3, [r7, #48] @ 0x30
  46972. 8013a64: 3318 adds r3, #24
  46973. 8013a66: 4618 mov r0, r3
  46974. 8013a68: f7fe f9a0 bl 8011dac <vListInitialiseItem>
  46975. /* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
  46976. back to the containing TCB from a generic item in a list. */
  46977. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
  46978. 8013a6c: 6b3b ldr r3, [r7, #48] @ 0x30
  46979. 8013a6e: 6b3a ldr r2, [r7, #48] @ 0x30
  46980. 8013a70: 611a str r2, [r3, #16]
  46981. /* Event lists are always in priority order. */
  46982. 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. */
  46983. 8013a72: 6abb ldr r3, [r7, #40] @ 0x28
  46984. 8013a74: f1c3 0238 rsb r2, r3, #56 @ 0x38
  46985. 8013a78: 6b3b ldr r3, [r7, #48] @ 0x30
  46986. 8013a7a: 619a str r2, [r3, #24]
  46987. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
  46988. 8013a7c: 6b3b ldr r3, [r7, #48] @ 0x30
  46989. 8013a7e: 6b3a ldr r2, [r7, #48] @ 0x30
  46990. 8013a80: 625a str r2, [r3, #36] @ 0x24
  46991. }
  46992. #endif
  46993. #if ( configUSE_TASK_NOTIFICATIONS == 1 )
  46994. {
  46995. pxNewTCB->ulNotifiedValue = 0;
  46996. 8013a82: 6b3b ldr r3, [r7, #48] @ 0x30
  46997. 8013a84: 2200 movs r2, #0
  46998. 8013a86: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  46999. pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  47000. 8013a8a: 6b3b ldr r3, [r7, #48] @ 0x30
  47001. 8013a8c: 2200 movs r2, #0
  47002. 8013a8e: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  47003. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  47004. {
  47005. /* Initialise this task's Newlib reent structure.
  47006. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  47007. for additional information. */
  47008. _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
  47009. 8013a92: 6b3b ldr r3, [r7, #48] @ 0x30
  47010. 8013a94: 3354 adds r3, #84 @ 0x54
  47011. 8013a96: 224c movs r2, #76 @ 0x4c
  47012. 8013a98: 2100 movs r1, #0
  47013. 8013a9a: 4618 mov r0, r3
  47014. 8013a9c: f016 fff0 bl 802aa80 <memset>
  47015. 8013aa0: 6b3b ldr r3, [r7, #48] @ 0x30
  47016. 8013aa2: 4a0d ldr r2, [pc, #52] @ (8013ad8 <prvInitialiseNewTask+0x144>)
  47017. 8013aa4: 659a str r2, [r3, #88] @ 0x58
  47018. 8013aa6: 6b3b ldr r3, [r7, #48] @ 0x30
  47019. 8013aa8: 4a0c ldr r2, [pc, #48] @ (8013adc <prvInitialiseNewTask+0x148>)
  47020. 8013aaa: 65da str r2, [r3, #92] @ 0x5c
  47021. 8013aac: 6b3b ldr r3, [r7, #48] @ 0x30
  47022. 8013aae: 4a0c ldr r2, [pc, #48] @ (8013ae0 <prvInitialiseNewTask+0x14c>)
  47023. 8013ab0: 661a str r2, [r3, #96] @ 0x60
  47024. }
  47025. #endif /* portSTACK_GROWTH */
  47026. }
  47027. #else /* portHAS_STACK_OVERFLOW_CHECKING */
  47028. {
  47029. pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
  47030. 8013ab2: 683a ldr r2, [r7, #0]
  47031. 8013ab4: 68f9 ldr r1, [r7, #12]
  47032. 8013ab6: 69b8 ldr r0, [r7, #24]
  47033. 8013ab8: f001 fdca bl 8015650 <pxPortInitialiseStack>
  47034. 8013abc: 4602 mov r2, r0
  47035. 8013abe: 6b3b ldr r3, [r7, #48] @ 0x30
  47036. 8013ac0: 601a str r2, [r3, #0]
  47037. }
  47038. #endif /* portHAS_STACK_OVERFLOW_CHECKING */
  47039. }
  47040. #endif /* portUSING_MPU_WRAPPERS */
  47041. if( pxCreatedTask != NULL )
  47042. 8013ac2: 6afb ldr r3, [r7, #44] @ 0x2c
  47043. 8013ac4: 2b00 cmp r3, #0
  47044. 8013ac6: d002 beq.n 8013ace <prvInitialiseNewTask+0x13a>
  47045. {
  47046. /* Pass the handle out in an anonymous way. The handle can be used to
  47047. change the created task's priority, delete the created task, etc.*/
  47048. *pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
  47049. 8013ac8: 6afb ldr r3, [r7, #44] @ 0x2c
  47050. 8013aca: 6b3a ldr r2, [r7, #48] @ 0x30
  47051. 8013acc: 601a str r2, [r3, #0]
  47052. }
  47053. else
  47054. {
  47055. mtCOVERAGE_TEST_MARKER();
  47056. }
  47057. }
  47058. 8013ace: bf00 nop
  47059. 8013ad0: 3720 adds r7, #32
  47060. 8013ad2: 46bd mov sp, r7
  47061. 8013ad4: bd80 pop {r7, pc}
  47062. 8013ad6: bf00 nop
  47063. 8013ad8: 2402b124 .word 0x2402b124
  47064. 8013adc: 2402b18c .word 0x2402b18c
  47065. 8013ae0: 2402b1f4 .word 0x2402b1f4
  47066. 08013ae4 <prvAddNewTaskToReadyList>:
  47067. /*-----------------------------------------------------------*/
  47068. static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
  47069. {
  47070. 8013ae4: b580 push {r7, lr}
  47071. 8013ae6: b082 sub sp, #8
  47072. 8013ae8: af00 add r7, sp, #0
  47073. 8013aea: 6078 str r0, [r7, #4]
  47074. /* Ensure interrupts don't access the task lists while the lists are being
  47075. updated. */
  47076. taskENTER_CRITICAL();
  47077. 8013aec: f001 fee4 bl 80158b8 <vPortEnterCritical>
  47078. {
  47079. uxCurrentNumberOfTasks++;
  47080. 8013af0: 4b2d ldr r3, [pc, #180] @ (8013ba8 <prvAddNewTaskToReadyList+0xc4>)
  47081. 8013af2: 681b ldr r3, [r3, #0]
  47082. 8013af4: 3301 adds r3, #1
  47083. 8013af6: 4a2c ldr r2, [pc, #176] @ (8013ba8 <prvAddNewTaskToReadyList+0xc4>)
  47084. 8013af8: 6013 str r3, [r2, #0]
  47085. if( pxCurrentTCB == NULL )
  47086. 8013afa: 4b2c ldr r3, [pc, #176] @ (8013bac <prvAddNewTaskToReadyList+0xc8>)
  47087. 8013afc: 681b ldr r3, [r3, #0]
  47088. 8013afe: 2b00 cmp r3, #0
  47089. 8013b00: d109 bne.n 8013b16 <prvAddNewTaskToReadyList+0x32>
  47090. {
  47091. /* There are no other tasks, or all the other tasks are in
  47092. the suspended state - make this the current task. */
  47093. pxCurrentTCB = pxNewTCB;
  47094. 8013b02: 4a2a ldr r2, [pc, #168] @ (8013bac <prvAddNewTaskToReadyList+0xc8>)
  47095. 8013b04: 687b ldr r3, [r7, #4]
  47096. 8013b06: 6013 str r3, [r2, #0]
  47097. if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
  47098. 8013b08: 4b27 ldr r3, [pc, #156] @ (8013ba8 <prvAddNewTaskToReadyList+0xc4>)
  47099. 8013b0a: 681b ldr r3, [r3, #0]
  47100. 8013b0c: 2b01 cmp r3, #1
  47101. 8013b0e: d110 bne.n 8013b32 <prvAddNewTaskToReadyList+0x4e>
  47102. {
  47103. /* This is the first task to be created so do the preliminary
  47104. initialisation required. We will not recover if this call
  47105. fails, but we will report the failure. */
  47106. prvInitialiseTaskLists();
  47107. 8013b10: f000 fc76 bl 8014400 <prvInitialiseTaskLists>
  47108. 8013b14: e00d b.n 8013b32 <prvAddNewTaskToReadyList+0x4e>
  47109. else
  47110. {
  47111. /* If the scheduler is not already running, make this task the
  47112. current task if it is the highest priority task to be created
  47113. so far. */
  47114. if( xSchedulerRunning == pdFALSE )
  47115. 8013b16: 4b26 ldr r3, [pc, #152] @ (8013bb0 <prvAddNewTaskToReadyList+0xcc>)
  47116. 8013b18: 681b ldr r3, [r3, #0]
  47117. 8013b1a: 2b00 cmp r3, #0
  47118. 8013b1c: d109 bne.n 8013b32 <prvAddNewTaskToReadyList+0x4e>
  47119. {
  47120. if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
  47121. 8013b1e: 4b23 ldr r3, [pc, #140] @ (8013bac <prvAddNewTaskToReadyList+0xc8>)
  47122. 8013b20: 681b ldr r3, [r3, #0]
  47123. 8013b22: 6ada ldr r2, [r3, #44] @ 0x2c
  47124. 8013b24: 687b ldr r3, [r7, #4]
  47125. 8013b26: 6adb ldr r3, [r3, #44] @ 0x2c
  47126. 8013b28: 429a cmp r2, r3
  47127. 8013b2a: d802 bhi.n 8013b32 <prvAddNewTaskToReadyList+0x4e>
  47128. {
  47129. pxCurrentTCB = pxNewTCB;
  47130. 8013b2c: 4a1f ldr r2, [pc, #124] @ (8013bac <prvAddNewTaskToReadyList+0xc8>)
  47131. 8013b2e: 687b ldr r3, [r7, #4]
  47132. 8013b30: 6013 str r3, [r2, #0]
  47133. {
  47134. mtCOVERAGE_TEST_MARKER();
  47135. }
  47136. }
  47137. uxTaskNumber++;
  47138. 8013b32: 4b20 ldr r3, [pc, #128] @ (8013bb4 <prvAddNewTaskToReadyList+0xd0>)
  47139. 8013b34: 681b ldr r3, [r3, #0]
  47140. 8013b36: 3301 adds r3, #1
  47141. 8013b38: 4a1e ldr r2, [pc, #120] @ (8013bb4 <prvAddNewTaskToReadyList+0xd0>)
  47142. 8013b3a: 6013 str r3, [r2, #0]
  47143. #if ( configUSE_TRACE_FACILITY == 1 )
  47144. {
  47145. /* Add a counter into the TCB for tracing only. */
  47146. pxNewTCB->uxTCBNumber = uxTaskNumber;
  47147. 8013b3c: 4b1d ldr r3, [pc, #116] @ (8013bb4 <prvAddNewTaskToReadyList+0xd0>)
  47148. 8013b3e: 681a ldr r2, [r3, #0]
  47149. 8013b40: 687b ldr r3, [r7, #4]
  47150. 8013b42: 645a str r2, [r3, #68] @ 0x44
  47151. }
  47152. #endif /* configUSE_TRACE_FACILITY */
  47153. traceTASK_CREATE( pxNewTCB );
  47154. prvAddTaskToReadyList( pxNewTCB );
  47155. 8013b44: 687b ldr r3, [r7, #4]
  47156. 8013b46: 6ada ldr r2, [r3, #44] @ 0x2c
  47157. 8013b48: 4b1b ldr r3, [pc, #108] @ (8013bb8 <prvAddNewTaskToReadyList+0xd4>)
  47158. 8013b4a: 681b ldr r3, [r3, #0]
  47159. 8013b4c: 429a cmp r2, r3
  47160. 8013b4e: d903 bls.n 8013b58 <prvAddNewTaskToReadyList+0x74>
  47161. 8013b50: 687b ldr r3, [r7, #4]
  47162. 8013b52: 6adb ldr r3, [r3, #44] @ 0x2c
  47163. 8013b54: 4a18 ldr r2, [pc, #96] @ (8013bb8 <prvAddNewTaskToReadyList+0xd4>)
  47164. 8013b56: 6013 str r3, [r2, #0]
  47165. 8013b58: 687b ldr r3, [r7, #4]
  47166. 8013b5a: 6ada ldr r2, [r3, #44] @ 0x2c
  47167. 8013b5c: 4613 mov r3, r2
  47168. 8013b5e: 009b lsls r3, r3, #2
  47169. 8013b60: 4413 add r3, r2
  47170. 8013b62: 009b lsls r3, r3, #2
  47171. 8013b64: 4a15 ldr r2, [pc, #84] @ (8013bbc <prvAddNewTaskToReadyList+0xd8>)
  47172. 8013b66: 441a add r2, r3
  47173. 8013b68: 687b ldr r3, [r7, #4]
  47174. 8013b6a: 3304 adds r3, #4
  47175. 8013b6c: 4619 mov r1, r3
  47176. 8013b6e: 4610 mov r0, r2
  47177. 8013b70: f7fe f929 bl 8011dc6 <vListInsertEnd>
  47178. portSETUP_TCB( pxNewTCB );
  47179. }
  47180. taskEXIT_CRITICAL();
  47181. 8013b74: f001 fed2 bl 801591c <vPortExitCritical>
  47182. if( xSchedulerRunning != pdFALSE )
  47183. 8013b78: 4b0d ldr r3, [pc, #52] @ (8013bb0 <prvAddNewTaskToReadyList+0xcc>)
  47184. 8013b7a: 681b ldr r3, [r3, #0]
  47185. 8013b7c: 2b00 cmp r3, #0
  47186. 8013b7e: d00e beq.n 8013b9e <prvAddNewTaskToReadyList+0xba>
  47187. {
  47188. /* If the created task is of a higher priority than the current task
  47189. then it should run now. */
  47190. if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
  47191. 8013b80: 4b0a ldr r3, [pc, #40] @ (8013bac <prvAddNewTaskToReadyList+0xc8>)
  47192. 8013b82: 681b ldr r3, [r3, #0]
  47193. 8013b84: 6ada ldr r2, [r3, #44] @ 0x2c
  47194. 8013b86: 687b ldr r3, [r7, #4]
  47195. 8013b88: 6adb ldr r3, [r3, #44] @ 0x2c
  47196. 8013b8a: 429a cmp r2, r3
  47197. 8013b8c: d207 bcs.n 8013b9e <prvAddNewTaskToReadyList+0xba>
  47198. {
  47199. taskYIELD_IF_USING_PREEMPTION();
  47200. 8013b8e: 4b0c ldr r3, [pc, #48] @ (8013bc0 <prvAddNewTaskToReadyList+0xdc>)
  47201. 8013b90: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47202. 8013b94: 601a str r2, [r3, #0]
  47203. 8013b96: f3bf 8f4f dsb sy
  47204. 8013b9a: f3bf 8f6f isb sy
  47205. }
  47206. else
  47207. {
  47208. mtCOVERAGE_TEST_MARKER();
  47209. }
  47210. }
  47211. 8013b9e: bf00 nop
  47212. 8013ba0: 3708 adds r7, #8
  47213. 8013ba2: 46bd mov sp, r7
  47214. 8013ba4: bd80 pop {r7, pc}
  47215. 8013ba6: bf00 nop
  47216. 8013ba8: 24004244 .word 0x24004244
  47217. 8013bac: 24003d70 .word 0x24003d70
  47218. 8013bb0: 24004250 .word 0x24004250
  47219. 8013bb4: 24004260 .word 0x24004260
  47220. 8013bb8: 2400424c .word 0x2400424c
  47221. 8013bbc: 24003d74 .word 0x24003d74
  47222. 8013bc0: e000ed04 .word 0xe000ed04
  47223. 08013bc4 <vTaskDelay>:
  47224. /*-----------------------------------------------------------*/
  47225. #if ( INCLUDE_vTaskDelay == 1 )
  47226. void vTaskDelay( const TickType_t xTicksToDelay )
  47227. {
  47228. 8013bc4: b580 push {r7, lr}
  47229. 8013bc6: b084 sub sp, #16
  47230. 8013bc8: af00 add r7, sp, #0
  47231. 8013bca: 6078 str r0, [r7, #4]
  47232. BaseType_t xAlreadyYielded = pdFALSE;
  47233. 8013bcc: 2300 movs r3, #0
  47234. 8013bce: 60fb str r3, [r7, #12]
  47235. /* A delay time of zero just forces a reschedule. */
  47236. if( xTicksToDelay > ( TickType_t ) 0U )
  47237. 8013bd0: 687b ldr r3, [r7, #4]
  47238. 8013bd2: 2b00 cmp r3, #0
  47239. 8013bd4: d018 beq.n 8013c08 <vTaskDelay+0x44>
  47240. {
  47241. configASSERT( uxSchedulerSuspended == 0 );
  47242. 8013bd6: 4b14 ldr r3, [pc, #80] @ (8013c28 <vTaskDelay+0x64>)
  47243. 8013bd8: 681b ldr r3, [r3, #0]
  47244. 8013bda: 2b00 cmp r3, #0
  47245. 8013bdc: d00b beq.n 8013bf6 <vTaskDelay+0x32>
  47246. __asm volatile
  47247. 8013bde: f04f 0350 mov.w r3, #80 @ 0x50
  47248. 8013be2: f383 8811 msr BASEPRI, r3
  47249. 8013be6: f3bf 8f6f isb sy
  47250. 8013bea: f3bf 8f4f dsb sy
  47251. 8013bee: 60bb str r3, [r7, #8]
  47252. }
  47253. 8013bf0: bf00 nop
  47254. 8013bf2: bf00 nop
  47255. 8013bf4: e7fd b.n 8013bf2 <vTaskDelay+0x2e>
  47256. vTaskSuspendAll();
  47257. 8013bf6: f000 f88b bl 8013d10 <vTaskSuspendAll>
  47258. list or removed from the blocked list until the scheduler
  47259. is resumed.
  47260. This task cannot be in an event list as it is the currently
  47261. executing task. */
  47262. prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );
  47263. 8013bfa: 2100 movs r1, #0
  47264. 8013bfc: 6878 ldr r0, [r7, #4]
  47265. 8013bfe: f001 f88f bl 8014d20 <prvAddCurrentTaskToDelayedList>
  47266. }
  47267. xAlreadyYielded = xTaskResumeAll();
  47268. 8013c02: f000 f893 bl 8013d2c <xTaskResumeAll>
  47269. 8013c06: 60f8 str r0, [r7, #12]
  47270. mtCOVERAGE_TEST_MARKER();
  47271. }
  47272. /* Force a reschedule if xTaskResumeAll has not already done so, we may
  47273. have put ourselves to sleep. */
  47274. if( xAlreadyYielded == pdFALSE )
  47275. 8013c08: 68fb ldr r3, [r7, #12]
  47276. 8013c0a: 2b00 cmp r3, #0
  47277. 8013c0c: d107 bne.n 8013c1e <vTaskDelay+0x5a>
  47278. {
  47279. portYIELD_WITHIN_API();
  47280. 8013c0e: 4b07 ldr r3, [pc, #28] @ (8013c2c <vTaskDelay+0x68>)
  47281. 8013c10: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47282. 8013c14: 601a str r2, [r3, #0]
  47283. 8013c16: f3bf 8f4f dsb sy
  47284. 8013c1a: f3bf 8f6f isb sy
  47285. }
  47286. else
  47287. {
  47288. mtCOVERAGE_TEST_MARKER();
  47289. }
  47290. }
  47291. 8013c1e: bf00 nop
  47292. 8013c20: 3710 adds r7, #16
  47293. 8013c22: 46bd mov sp, r7
  47294. 8013c24: bd80 pop {r7, pc}
  47295. 8013c26: bf00 nop
  47296. 8013c28: 2400426c .word 0x2400426c
  47297. 8013c2c: e000ed04 .word 0xe000ed04
  47298. 08013c30 <vTaskStartScheduler>:
  47299. #endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
  47300. /*-----------------------------------------------------------*/
  47301. void vTaskStartScheduler( void )
  47302. {
  47303. 8013c30: b580 push {r7, lr}
  47304. 8013c32: b08a sub sp, #40 @ 0x28
  47305. 8013c34: af04 add r7, sp, #16
  47306. BaseType_t xReturn;
  47307. /* Add the idle task at the lowest priority. */
  47308. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  47309. {
  47310. StaticTask_t *pxIdleTaskTCBBuffer = NULL;
  47311. 8013c36: 2300 movs r3, #0
  47312. 8013c38: 60bb str r3, [r7, #8]
  47313. StackType_t *pxIdleTaskStackBuffer = NULL;
  47314. 8013c3a: 2300 movs r3, #0
  47315. 8013c3c: 607b str r3, [r7, #4]
  47316. uint32_t ulIdleTaskStackSize;
  47317. /* The Idle task is created using user provided RAM - obtain the
  47318. address of the RAM then create the idle task. */
  47319. vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
  47320. 8013c3e: 463a mov r2, r7
  47321. 8013c40: 1d39 adds r1, r7, #4
  47322. 8013c42: f107 0308 add.w r3, r7, #8
  47323. 8013c46: 4618 mov r0, r3
  47324. 8013c48: f7fe f85c bl 8011d04 <vApplicationGetIdleTaskMemory>
  47325. xIdleTaskHandle = xTaskCreateStatic( prvIdleTask,
  47326. 8013c4c: 6839 ldr r1, [r7, #0]
  47327. 8013c4e: 687b ldr r3, [r7, #4]
  47328. 8013c50: 68ba ldr r2, [r7, #8]
  47329. 8013c52: 9202 str r2, [sp, #8]
  47330. 8013c54: 9301 str r3, [sp, #4]
  47331. 8013c56: 2300 movs r3, #0
  47332. 8013c58: 9300 str r3, [sp, #0]
  47333. 8013c5a: 2300 movs r3, #0
  47334. 8013c5c: 460a mov r2, r1
  47335. 8013c5e: 4924 ldr r1, [pc, #144] @ (8013cf0 <vTaskStartScheduler+0xc0>)
  47336. 8013c60: 4824 ldr r0, [pc, #144] @ (8013cf4 <vTaskStartScheduler+0xc4>)
  47337. 8013c62: f7ff fdf1 bl 8013848 <xTaskCreateStatic>
  47338. 8013c66: 4603 mov r3, r0
  47339. 8013c68: 4a23 ldr r2, [pc, #140] @ (8013cf8 <vTaskStartScheduler+0xc8>)
  47340. 8013c6a: 6013 str r3, [r2, #0]
  47341. ( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */
  47342. portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
  47343. pxIdleTaskStackBuffer,
  47344. pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
  47345. if( xIdleTaskHandle != NULL )
  47346. 8013c6c: 4b22 ldr r3, [pc, #136] @ (8013cf8 <vTaskStartScheduler+0xc8>)
  47347. 8013c6e: 681b ldr r3, [r3, #0]
  47348. 8013c70: 2b00 cmp r3, #0
  47349. 8013c72: d002 beq.n 8013c7a <vTaskStartScheduler+0x4a>
  47350. {
  47351. xReturn = pdPASS;
  47352. 8013c74: 2301 movs r3, #1
  47353. 8013c76: 617b str r3, [r7, #20]
  47354. 8013c78: e001 b.n 8013c7e <vTaskStartScheduler+0x4e>
  47355. }
  47356. else
  47357. {
  47358. xReturn = pdFAIL;
  47359. 8013c7a: 2300 movs r3, #0
  47360. 8013c7c: 617b str r3, [r7, #20]
  47361. }
  47362. #endif /* configSUPPORT_STATIC_ALLOCATION */
  47363. #if ( configUSE_TIMERS == 1 )
  47364. {
  47365. if( xReturn == pdPASS )
  47366. 8013c7e: 697b ldr r3, [r7, #20]
  47367. 8013c80: 2b01 cmp r3, #1
  47368. 8013c82: d102 bne.n 8013c8a <vTaskStartScheduler+0x5a>
  47369. {
  47370. xReturn = xTimerCreateTimerTask();
  47371. 8013c84: f001 f8a0 bl 8014dc8 <xTimerCreateTimerTask>
  47372. 8013c88: 6178 str r0, [r7, #20]
  47373. mtCOVERAGE_TEST_MARKER();
  47374. }
  47375. }
  47376. #endif /* configUSE_TIMERS */
  47377. if( xReturn == pdPASS )
  47378. 8013c8a: 697b ldr r3, [r7, #20]
  47379. 8013c8c: 2b01 cmp r3, #1
  47380. 8013c8e: d11b bne.n 8013cc8 <vTaskStartScheduler+0x98>
  47381. __asm volatile
  47382. 8013c90: f04f 0350 mov.w r3, #80 @ 0x50
  47383. 8013c94: f383 8811 msr BASEPRI, r3
  47384. 8013c98: f3bf 8f6f isb sy
  47385. 8013c9c: f3bf 8f4f dsb sy
  47386. 8013ca0: 613b str r3, [r7, #16]
  47387. }
  47388. 8013ca2: bf00 nop
  47389. {
  47390. /* Switch Newlib's _impure_ptr variable to point to the _reent
  47391. structure specific to the task that will run first.
  47392. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  47393. for additional information. */
  47394. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  47395. 8013ca4: 4b15 ldr r3, [pc, #84] @ (8013cfc <vTaskStartScheduler+0xcc>)
  47396. 8013ca6: 681b ldr r3, [r3, #0]
  47397. 8013ca8: 3354 adds r3, #84 @ 0x54
  47398. 8013caa: 4a15 ldr r2, [pc, #84] @ (8013d00 <vTaskStartScheduler+0xd0>)
  47399. 8013cac: 6013 str r3, [r2, #0]
  47400. }
  47401. #endif /* configUSE_NEWLIB_REENTRANT */
  47402. xNextTaskUnblockTime = portMAX_DELAY;
  47403. 8013cae: 4b15 ldr r3, [pc, #84] @ (8013d04 <vTaskStartScheduler+0xd4>)
  47404. 8013cb0: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  47405. 8013cb4: 601a str r2, [r3, #0]
  47406. xSchedulerRunning = pdTRUE;
  47407. 8013cb6: 4b14 ldr r3, [pc, #80] @ (8013d08 <vTaskStartScheduler+0xd8>)
  47408. 8013cb8: 2201 movs r2, #1
  47409. 8013cba: 601a str r2, [r3, #0]
  47410. xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
  47411. 8013cbc: 4b13 ldr r3, [pc, #76] @ (8013d0c <vTaskStartScheduler+0xdc>)
  47412. 8013cbe: 2200 movs r2, #0
  47413. 8013cc0: 601a str r2, [r3, #0]
  47414. traceTASK_SWITCHED_IN();
  47415. /* Setting up the timer tick is hardware specific and thus in the
  47416. portable interface. */
  47417. if( xPortStartScheduler() != pdFALSE )
  47418. 8013cc2: f001 fd55 bl 8015770 <xPortStartScheduler>
  47419. }
  47420. /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
  47421. meaning xIdleTaskHandle is not used anywhere else. */
  47422. ( void ) xIdleTaskHandle;
  47423. }
  47424. 8013cc6: e00f b.n 8013ce8 <vTaskStartScheduler+0xb8>
  47425. configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
  47426. 8013cc8: 697b ldr r3, [r7, #20]
  47427. 8013cca: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  47428. 8013cce: d10b bne.n 8013ce8 <vTaskStartScheduler+0xb8>
  47429. __asm volatile
  47430. 8013cd0: f04f 0350 mov.w r3, #80 @ 0x50
  47431. 8013cd4: f383 8811 msr BASEPRI, r3
  47432. 8013cd8: f3bf 8f6f isb sy
  47433. 8013cdc: f3bf 8f4f dsb sy
  47434. 8013ce0: 60fb str r3, [r7, #12]
  47435. }
  47436. 8013ce2: bf00 nop
  47437. 8013ce4: bf00 nop
  47438. 8013ce6: e7fd b.n 8013ce4 <vTaskStartScheduler+0xb4>
  47439. }
  47440. 8013ce8: bf00 nop
  47441. 8013cea: 3718 adds r7, #24
  47442. 8013cec: 46bd mov sp, r7
  47443. 8013cee: bd80 pop {r7, pc}
  47444. 8013cf0: 0802da50 .word 0x0802da50
  47445. 8013cf4: 080143d1 .word 0x080143d1
  47446. 8013cf8: 24004268 .word 0x24004268
  47447. 8013cfc: 24003d70 .word 0x24003d70
  47448. 8013d00: 240001d4 .word 0x240001d4
  47449. 8013d04: 24004264 .word 0x24004264
  47450. 8013d08: 24004250 .word 0x24004250
  47451. 8013d0c: 24004248 .word 0x24004248
  47452. 08013d10 <vTaskSuspendAll>:
  47453. vPortEndScheduler();
  47454. }
  47455. /*----------------------------------------------------------*/
  47456. void vTaskSuspendAll( void )
  47457. {
  47458. 8013d10: b480 push {r7}
  47459. 8013d12: af00 add r7, sp, #0
  47460. do not otherwise exhibit real time behaviour. */
  47461. portSOFTWARE_BARRIER();
  47462. /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
  47463. is used to allow calls to vTaskSuspendAll() to nest. */
  47464. ++uxSchedulerSuspended;
  47465. 8013d14: 4b04 ldr r3, [pc, #16] @ (8013d28 <vTaskSuspendAll+0x18>)
  47466. 8013d16: 681b ldr r3, [r3, #0]
  47467. 8013d18: 3301 adds r3, #1
  47468. 8013d1a: 4a03 ldr r2, [pc, #12] @ (8013d28 <vTaskSuspendAll+0x18>)
  47469. 8013d1c: 6013 str r3, [r2, #0]
  47470. /* Enforces ordering for ports and optimised compilers that may otherwise place
  47471. the above increment elsewhere. */
  47472. portMEMORY_BARRIER();
  47473. }
  47474. 8013d1e: bf00 nop
  47475. 8013d20: 46bd mov sp, r7
  47476. 8013d22: f85d 7b04 ldr.w r7, [sp], #4
  47477. 8013d26: 4770 bx lr
  47478. 8013d28: 2400426c .word 0x2400426c
  47479. 08013d2c <xTaskResumeAll>:
  47480. #endif /* configUSE_TICKLESS_IDLE */
  47481. /*----------------------------------------------------------*/
  47482. BaseType_t xTaskResumeAll( void )
  47483. {
  47484. 8013d2c: b580 push {r7, lr}
  47485. 8013d2e: b084 sub sp, #16
  47486. 8013d30: af00 add r7, sp, #0
  47487. TCB_t *pxTCB = NULL;
  47488. 8013d32: 2300 movs r3, #0
  47489. 8013d34: 60fb str r3, [r7, #12]
  47490. BaseType_t xAlreadyYielded = pdFALSE;
  47491. 8013d36: 2300 movs r3, #0
  47492. 8013d38: 60bb str r3, [r7, #8]
  47493. /* If uxSchedulerSuspended is zero then this function does not match a
  47494. previous call to vTaskSuspendAll(). */
  47495. configASSERT( uxSchedulerSuspended );
  47496. 8013d3a: 4b42 ldr r3, [pc, #264] @ (8013e44 <xTaskResumeAll+0x118>)
  47497. 8013d3c: 681b ldr r3, [r3, #0]
  47498. 8013d3e: 2b00 cmp r3, #0
  47499. 8013d40: d10b bne.n 8013d5a <xTaskResumeAll+0x2e>
  47500. __asm volatile
  47501. 8013d42: f04f 0350 mov.w r3, #80 @ 0x50
  47502. 8013d46: f383 8811 msr BASEPRI, r3
  47503. 8013d4a: f3bf 8f6f isb sy
  47504. 8013d4e: f3bf 8f4f dsb sy
  47505. 8013d52: 603b str r3, [r7, #0]
  47506. }
  47507. 8013d54: bf00 nop
  47508. 8013d56: bf00 nop
  47509. 8013d58: e7fd b.n 8013d56 <xTaskResumeAll+0x2a>
  47510. /* It is possible that an ISR caused a task to be removed from an event
  47511. list while the scheduler was suspended. If this was the case then the
  47512. removed task will have been added to the xPendingReadyList. Once the
  47513. scheduler has been resumed it is safe to move all the pending ready
  47514. tasks from this list into their appropriate ready list. */
  47515. taskENTER_CRITICAL();
  47516. 8013d5a: f001 fdad bl 80158b8 <vPortEnterCritical>
  47517. {
  47518. --uxSchedulerSuspended;
  47519. 8013d5e: 4b39 ldr r3, [pc, #228] @ (8013e44 <xTaskResumeAll+0x118>)
  47520. 8013d60: 681b ldr r3, [r3, #0]
  47521. 8013d62: 3b01 subs r3, #1
  47522. 8013d64: 4a37 ldr r2, [pc, #220] @ (8013e44 <xTaskResumeAll+0x118>)
  47523. 8013d66: 6013 str r3, [r2, #0]
  47524. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  47525. 8013d68: 4b36 ldr r3, [pc, #216] @ (8013e44 <xTaskResumeAll+0x118>)
  47526. 8013d6a: 681b ldr r3, [r3, #0]
  47527. 8013d6c: 2b00 cmp r3, #0
  47528. 8013d6e: d162 bne.n 8013e36 <xTaskResumeAll+0x10a>
  47529. {
  47530. if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
  47531. 8013d70: 4b35 ldr r3, [pc, #212] @ (8013e48 <xTaskResumeAll+0x11c>)
  47532. 8013d72: 681b ldr r3, [r3, #0]
  47533. 8013d74: 2b00 cmp r3, #0
  47534. 8013d76: d05e beq.n 8013e36 <xTaskResumeAll+0x10a>
  47535. {
  47536. /* Move any readied tasks from the pending list into the
  47537. appropriate ready list. */
  47538. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  47539. 8013d78: e02f b.n 8013dda <xTaskResumeAll+0xae>
  47540. {
  47541. 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. */
  47542. 8013d7a: 4b34 ldr r3, [pc, #208] @ (8013e4c <xTaskResumeAll+0x120>)
  47543. 8013d7c: 68db ldr r3, [r3, #12]
  47544. 8013d7e: 68db ldr r3, [r3, #12]
  47545. 8013d80: 60fb str r3, [r7, #12]
  47546. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  47547. 8013d82: 68fb ldr r3, [r7, #12]
  47548. 8013d84: 3318 adds r3, #24
  47549. 8013d86: 4618 mov r0, r3
  47550. 8013d88: f7fe f87a bl 8011e80 <uxListRemove>
  47551. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  47552. 8013d8c: 68fb ldr r3, [r7, #12]
  47553. 8013d8e: 3304 adds r3, #4
  47554. 8013d90: 4618 mov r0, r3
  47555. 8013d92: f7fe f875 bl 8011e80 <uxListRemove>
  47556. prvAddTaskToReadyList( pxTCB );
  47557. 8013d96: 68fb ldr r3, [r7, #12]
  47558. 8013d98: 6ada ldr r2, [r3, #44] @ 0x2c
  47559. 8013d9a: 4b2d ldr r3, [pc, #180] @ (8013e50 <xTaskResumeAll+0x124>)
  47560. 8013d9c: 681b ldr r3, [r3, #0]
  47561. 8013d9e: 429a cmp r2, r3
  47562. 8013da0: d903 bls.n 8013daa <xTaskResumeAll+0x7e>
  47563. 8013da2: 68fb ldr r3, [r7, #12]
  47564. 8013da4: 6adb ldr r3, [r3, #44] @ 0x2c
  47565. 8013da6: 4a2a ldr r2, [pc, #168] @ (8013e50 <xTaskResumeAll+0x124>)
  47566. 8013da8: 6013 str r3, [r2, #0]
  47567. 8013daa: 68fb ldr r3, [r7, #12]
  47568. 8013dac: 6ada ldr r2, [r3, #44] @ 0x2c
  47569. 8013dae: 4613 mov r3, r2
  47570. 8013db0: 009b lsls r3, r3, #2
  47571. 8013db2: 4413 add r3, r2
  47572. 8013db4: 009b lsls r3, r3, #2
  47573. 8013db6: 4a27 ldr r2, [pc, #156] @ (8013e54 <xTaskResumeAll+0x128>)
  47574. 8013db8: 441a add r2, r3
  47575. 8013dba: 68fb ldr r3, [r7, #12]
  47576. 8013dbc: 3304 adds r3, #4
  47577. 8013dbe: 4619 mov r1, r3
  47578. 8013dc0: 4610 mov r0, r2
  47579. 8013dc2: f7fe f800 bl 8011dc6 <vListInsertEnd>
  47580. /* If the moved task has a priority higher than the current
  47581. task then a yield must be performed. */
  47582. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  47583. 8013dc6: 68fb ldr r3, [r7, #12]
  47584. 8013dc8: 6ada ldr r2, [r3, #44] @ 0x2c
  47585. 8013dca: 4b23 ldr r3, [pc, #140] @ (8013e58 <xTaskResumeAll+0x12c>)
  47586. 8013dcc: 681b ldr r3, [r3, #0]
  47587. 8013dce: 6adb ldr r3, [r3, #44] @ 0x2c
  47588. 8013dd0: 429a cmp r2, r3
  47589. 8013dd2: d302 bcc.n 8013dda <xTaskResumeAll+0xae>
  47590. {
  47591. xYieldPending = pdTRUE;
  47592. 8013dd4: 4b21 ldr r3, [pc, #132] @ (8013e5c <xTaskResumeAll+0x130>)
  47593. 8013dd6: 2201 movs r2, #1
  47594. 8013dd8: 601a str r2, [r3, #0]
  47595. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  47596. 8013dda: 4b1c ldr r3, [pc, #112] @ (8013e4c <xTaskResumeAll+0x120>)
  47597. 8013ddc: 681b ldr r3, [r3, #0]
  47598. 8013dde: 2b00 cmp r3, #0
  47599. 8013de0: d1cb bne.n 8013d7a <xTaskResumeAll+0x4e>
  47600. {
  47601. mtCOVERAGE_TEST_MARKER();
  47602. }
  47603. }
  47604. if( pxTCB != NULL )
  47605. 8013de2: 68fb ldr r3, [r7, #12]
  47606. 8013de4: 2b00 cmp r3, #0
  47607. 8013de6: d001 beq.n 8013dec <xTaskResumeAll+0xc0>
  47608. which may have prevented the next unblock time from being
  47609. re-calculated, in which case re-calculate it now. Mainly
  47610. important for low power tickless implementations, where
  47611. this can prevent an unnecessary exit from low power
  47612. state. */
  47613. prvResetNextTaskUnblockTime();
  47614. 8013de8: f000 fbae bl 8014548 <prvResetNextTaskUnblockTime>
  47615. /* If any ticks occurred while the scheduler was suspended then
  47616. they should be processed now. This ensures the tick count does
  47617. not slip, and that any delayed tasks are resumed at the correct
  47618. time. */
  47619. {
  47620. TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
  47621. 8013dec: 4b1c ldr r3, [pc, #112] @ (8013e60 <xTaskResumeAll+0x134>)
  47622. 8013dee: 681b ldr r3, [r3, #0]
  47623. 8013df0: 607b str r3, [r7, #4]
  47624. if( xPendedCounts > ( TickType_t ) 0U )
  47625. 8013df2: 687b ldr r3, [r7, #4]
  47626. 8013df4: 2b00 cmp r3, #0
  47627. 8013df6: d010 beq.n 8013e1a <xTaskResumeAll+0xee>
  47628. {
  47629. do
  47630. {
  47631. if( xTaskIncrementTick() != pdFALSE )
  47632. 8013df8: f000 f858 bl 8013eac <xTaskIncrementTick>
  47633. 8013dfc: 4603 mov r3, r0
  47634. 8013dfe: 2b00 cmp r3, #0
  47635. 8013e00: d002 beq.n 8013e08 <xTaskResumeAll+0xdc>
  47636. {
  47637. xYieldPending = pdTRUE;
  47638. 8013e02: 4b16 ldr r3, [pc, #88] @ (8013e5c <xTaskResumeAll+0x130>)
  47639. 8013e04: 2201 movs r2, #1
  47640. 8013e06: 601a str r2, [r3, #0]
  47641. }
  47642. else
  47643. {
  47644. mtCOVERAGE_TEST_MARKER();
  47645. }
  47646. --xPendedCounts;
  47647. 8013e08: 687b ldr r3, [r7, #4]
  47648. 8013e0a: 3b01 subs r3, #1
  47649. 8013e0c: 607b str r3, [r7, #4]
  47650. } while( xPendedCounts > ( TickType_t ) 0U );
  47651. 8013e0e: 687b ldr r3, [r7, #4]
  47652. 8013e10: 2b00 cmp r3, #0
  47653. 8013e12: d1f1 bne.n 8013df8 <xTaskResumeAll+0xcc>
  47654. xPendedTicks = 0;
  47655. 8013e14: 4b12 ldr r3, [pc, #72] @ (8013e60 <xTaskResumeAll+0x134>)
  47656. 8013e16: 2200 movs r2, #0
  47657. 8013e18: 601a str r2, [r3, #0]
  47658. {
  47659. mtCOVERAGE_TEST_MARKER();
  47660. }
  47661. }
  47662. if( xYieldPending != pdFALSE )
  47663. 8013e1a: 4b10 ldr r3, [pc, #64] @ (8013e5c <xTaskResumeAll+0x130>)
  47664. 8013e1c: 681b ldr r3, [r3, #0]
  47665. 8013e1e: 2b00 cmp r3, #0
  47666. 8013e20: d009 beq.n 8013e36 <xTaskResumeAll+0x10a>
  47667. {
  47668. #if( configUSE_PREEMPTION != 0 )
  47669. {
  47670. xAlreadyYielded = pdTRUE;
  47671. 8013e22: 2301 movs r3, #1
  47672. 8013e24: 60bb str r3, [r7, #8]
  47673. }
  47674. #endif
  47675. taskYIELD_IF_USING_PREEMPTION();
  47676. 8013e26: 4b0f ldr r3, [pc, #60] @ (8013e64 <xTaskResumeAll+0x138>)
  47677. 8013e28: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47678. 8013e2c: 601a str r2, [r3, #0]
  47679. 8013e2e: f3bf 8f4f dsb sy
  47680. 8013e32: f3bf 8f6f isb sy
  47681. else
  47682. {
  47683. mtCOVERAGE_TEST_MARKER();
  47684. }
  47685. }
  47686. taskEXIT_CRITICAL();
  47687. 8013e36: f001 fd71 bl 801591c <vPortExitCritical>
  47688. return xAlreadyYielded;
  47689. 8013e3a: 68bb ldr r3, [r7, #8]
  47690. }
  47691. 8013e3c: 4618 mov r0, r3
  47692. 8013e3e: 3710 adds r7, #16
  47693. 8013e40: 46bd mov sp, r7
  47694. 8013e42: bd80 pop {r7, pc}
  47695. 8013e44: 2400426c .word 0x2400426c
  47696. 8013e48: 24004244 .word 0x24004244
  47697. 8013e4c: 24004204 .word 0x24004204
  47698. 8013e50: 2400424c .word 0x2400424c
  47699. 8013e54: 24003d74 .word 0x24003d74
  47700. 8013e58: 24003d70 .word 0x24003d70
  47701. 8013e5c: 24004258 .word 0x24004258
  47702. 8013e60: 24004254 .word 0x24004254
  47703. 8013e64: e000ed04 .word 0xe000ed04
  47704. 08013e68 <xTaskGetTickCount>:
  47705. /*-----------------------------------------------------------*/
  47706. TickType_t xTaskGetTickCount( void )
  47707. {
  47708. 8013e68: b480 push {r7}
  47709. 8013e6a: b083 sub sp, #12
  47710. 8013e6c: af00 add r7, sp, #0
  47711. TickType_t xTicks;
  47712. /* Critical section required if running on a 16 bit processor. */
  47713. portTICK_TYPE_ENTER_CRITICAL();
  47714. {
  47715. xTicks = xTickCount;
  47716. 8013e6e: 4b05 ldr r3, [pc, #20] @ (8013e84 <xTaskGetTickCount+0x1c>)
  47717. 8013e70: 681b ldr r3, [r3, #0]
  47718. 8013e72: 607b str r3, [r7, #4]
  47719. }
  47720. portTICK_TYPE_EXIT_CRITICAL();
  47721. return xTicks;
  47722. 8013e74: 687b ldr r3, [r7, #4]
  47723. }
  47724. 8013e76: 4618 mov r0, r3
  47725. 8013e78: 370c adds r7, #12
  47726. 8013e7a: 46bd mov sp, r7
  47727. 8013e7c: f85d 7b04 ldr.w r7, [sp], #4
  47728. 8013e80: 4770 bx lr
  47729. 8013e82: bf00 nop
  47730. 8013e84: 24004248 .word 0x24004248
  47731. 08013e88 <xTaskGetTickCountFromISR>:
  47732. /*-----------------------------------------------------------*/
  47733. TickType_t xTaskGetTickCountFromISR( void )
  47734. {
  47735. 8013e88: b580 push {r7, lr}
  47736. 8013e8a: b082 sub sp, #8
  47737. 8013e8c: af00 add r7, sp, #0
  47738. that have been assigned a priority at or (logically) below the maximum
  47739. system call interrupt priority. FreeRTOS maintains a separate interrupt
  47740. safe API to ensure interrupt entry is as fast and as simple as possible.
  47741. More information (albeit Cortex-M specific) is provided on the following
  47742. link: https://www.freertos.org/RTOS-Cortex-M3-M4.html */
  47743. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  47744. 8013e8e: f001 fdf3 bl 8015a78 <vPortValidateInterruptPriority>
  47745. uxSavedInterruptStatus = portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR();
  47746. 8013e92: 2300 movs r3, #0
  47747. 8013e94: 607b str r3, [r7, #4]
  47748. {
  47749. xReturn = xTickCount;
  47750. 8013e96: 4b04 ldr r3, [pc, #16] @ (8013ea8 <xTaskGetTickCountFromISR+0x20>)
  47751. 8013e98: 681b ldr r3, [r3, #0]
  47752. 8013e9a: 603b str r3, [r7, #0]
  47753. }
  47754. portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  47755. return xReturn;
  47756. 8013e9c: 683b ldr r3, [r7, #0]
  47757. }
  47758. 8013e9e: 4618 mov r0, r3
  47759. 8013ea0: 3708 adds r7, #8
  47760. 8013ea2: 46bd mov sp, r7
  47761. 8013ea4: bd80 pop {r7, pc}
  47762. 8013ea6: bf00 nop
  47763. 8013ea8: 24004248 .word 0x24004248
  47764. 08013eac <xTaskIncrementTick>:
  47765. #endif /* INCLUDE_xTaskAbortDelay */
  47766. /*----------------------------------------------------------*/
  47767. BaseType_t xTaskIncrementTick( void )
  47768. {
  47769. 8013eac: b580 push {r7, lr}
  47770. 8013eae: b086 sub sp, #24
  47771. 8013eb0: af00 add r7, sp, #0
  47772. TCB_t * pxTCB;
  47773. TickType_t xItemValue;
  47774. BaseType_t xSwitchRequired = pdFALSE;
  47775. 8013eb2: 2300 movs r3, #0
  47776. 8013eb4: 617b str r3, [r7, #20]
  47777. /* Called by the portable layer each time a tick interrupt occurs.
  47778. Increments the tick then checks to see if the new tick value will cause any
  47779. tasks to be unblocked. */
  47780. traceTASK_INCREMENT_TICK( xTickCount );
  47781. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  47782. 8013eb6: 4b4f ldr r3, [pc, #316] @ (8013ff4 <xTaskIncrementTick+0x148>)
  47783. 8013eb8: 681b ldr r3, [r3, #0]
  47784. 8013eba: 2b00 cmp r3, #0
  47785. 8013ebc: f040 8090 bne.w 8013fe0 <xTaskIncrementTick+0x134>
  47786. {
  47787. /* Minor optimisation. The tick count cannot change in this
  47788. block. */
  47789. const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
  47790. 8013ec0: 4b4d ldr r3, [pc, #308] @ (8013ff8 <xTaskIncrementTick+0x14c>)
  47791. 8013ec2: 681b ldr r3, [r3, #0]
  47792. 8013ec4: 3301 adds r3, #1
  47793. 8013ec6: 613b str r3, [r7, #16]
  47794. /* Increment the RTOS tick, switching the delayed and overflowed
  47795. delayed lists if it wraps to 0. */
  47796. xTickCount = xConstTickCount;
  47797. 8013ec8: 4a4b ldr r2, [pc, #300] @ (8013ff8 <xTaskIncrementTick+0x14c>)
  47798. 8013eca: 693b ldr r3, [r7, #16]
  47799. 8013ecc: 6013 str r3, [r2, #0]
  47800. if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
  47801. 8013ece: 693b ldr r3, [r7, #16]
  47802. 8013ed0: 2b00 cmp r3, #0
  47803. 8013ed2: d121 bne.n 8013f18 <xTaskIncrementTick+0x6c>
  47804. {
  47805. taskSWITCH_DELAYED_LISTS();
  47806. 8013ed4: 4b49 ldr r3, [pc, #292] @ (8013ffc <xTaskIncrementTick+0x150>)
  47807. 8013ed6: 681b ldr r3, [r3, #0]
  47808. 8013ed8: 681b ldr r3, [r3, #0]
  47809. 8013eda: 2b00 cmp r3, #0
  47810. 8013edc: d00b beq.n 8013ef6 <xTaskIncrementTick+0x4a>
  47811. __asm volatile
  47812. 8013ede: f04f 0350 mov.w r3, #80 @ 0x50
  47813. 8013ee2: f383 8811 msr BASEPRI, r3
  47814. 8013ee6: f3bf 8f6f isb sy
  47815. 8013eea: f3bf 8f4f dsb sy
  47816. 8013eee: 603b str r3, [r7, #0]
  47817. }
  47818. 8013ef0: bf00 nop
  47819. 8013ef2: bf00 nop
  47820. 8013ef4: e7fd b.n 8013ef2 <xTaskIncrementTick+0x46>
  47821. 8013ef6: 4b41 ldr r3, [pc, #260] @ (8013ffc <xTaskIncrementTick+0x150>)
  47822. 8013ef8: 681b ldr r3, [r3, #0]
  47823. 8013efa: 60fb str r3, [r7, #12]
  47824. 8013efc: 4b40 ldr r3, [pc, #256] @ (8014000 <xTaskIncrementTick+0x154>)
  47825. 8013efe: 681b ldr r3, [r3, #0]
  47826. 8013f00: 4a3e ldr r2, [pc, #248] @ (8013ffc <xTaskIncrementTick+0x150>)
  47827. 8013f02: 6013 str r3, [r2, #0]
  47828. 8013f04: 4a3e ldr r2, [pc, #248] @ (8014000 <xTaskIncrementTick+0x154>)
  47829. 8013f06: 68fb ldr r3, [r7, #12]
  47830. 8013f08: 6013 str r3, [r2, #0]
  47831. 8013f0a: 4b3e ldr r3, [pc, #248] @ (8014004 <xTaskIncrementTick+0x158>)
  47832. 8013f0c: 681b ldr r3, [r3, #0]
  47833. 8013f0e: 3301 adds r3, #1
  47834. 8013f10: 4a3c ldr r2, [pc, #240] @ (8014004 <xTaskIncrementTick+0x158>)
  47835. 8013f12: 6013 str r3, [r2, #0]
  47836. 8013f14: f000 fb18 bl 8014548 <prvResetNextTaskUnblockTime>
  47837. /* See if this tick has made a timeout expire. Tasks are stored in
  47838. the queue in the order of their wake time - meaning once one task
  47839. has been found whose block time has not expired there is no need to
  47840. look any further down the list. */
  47841. if( xConstTickCount >= xNextTaskUnblockTime )
  47842. 8013f18: 4b3b ldr r3, [pc, #236] @ (8014008 <xTaskIncrementTick+0x15c>)
  47843. 8013f1a: 681b ldr r3, [r3, #0]
  47844. 8013f1c: 693a ldr r2, [r7, #16]
  47845. 8013f1e: 429a cmp r2, r3
  47846. 8013f20: d349 bcc.n 8013fb6 <xTaskIncrementTick+0x10a>
  47847. {
  47848. for( ;; )
  47849. {
  47850. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  47851. 8013f22: 4b36 ldr r3, [pc, #216] @ (8013ffc <xTaskIncrementTick+0x150>)
  47852. 8013f24: 681b ldr r3, [r3, #0]
  47853. 8013f26: 681b ldr r3, [r3, #0]
  47854. 8013f28: 2b00 cmp r3, #0
  47855. 8013f2a: d104 bne.n 8013f36 <xTaskIncrementTick+0x8a>
  47856. /* The delayed list is empty. Set xNextTaskUnblockTime
  47857. to the maximum possible value so it is extremely
  47858. unlikely that the
  47859. if( xTickCount >= xNextTaskUnblockTime ) test will pass
  47860. next time through. */
  47861. xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  47862. 8013f2c: 4b36 ldr r3, [pc, #216] @ (8014008 <xTaskIncrementTick+0x15c>)
  47863. 8013f2e: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  47864. 8013f32: 601a str r2, [r3, #0]
  47865. break;
  47866. 8013f34: e03f b.n 8013fb6 <xTaskIncrementTick+0x10a>
  47867. {
  47868. /* The delayed list is not empty, get the value of the
  47869. item at the head of the delayed list. This is the time
  47870. at which the task at the head of the delayed list must
  47871. be removed from the Blocked state. */
  47872. 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. */
  47873. 8013f36: 4b31 ldr r3, [pc, #196] @ (8013ffc <xTaskIncrementTick+0x150>)
  47874. 8013f38: 681b ldr r3, [r3, #0]
  47875. 8013f3a: 68db ldr r3, [r3, #12]
  47876. 8013f3c: 68db ldr r3, [r3, #12]
  47877. 8013f3e: 60bb str r3, [r7, #8]
  47878. xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
  47879. 8013f40: 68bb ldr r3, [r7, #8]
  47880. 8013f42: 685b ldr r3, [r3, #4]
  47881. 8013f44: 607b str r3, [r7, #4]
  47882. if( xConstTickCount < xItemValue )
  47883. 8013f46: 693a ldr r2, [r7, #16]
  47884. 8013f48: 687b ldr r3, [r7, #4]
  47885. 8013f4a: 429a cmp r2, r3
  47886. 8013f4c: d203 bcs.n 8013f56 <xTaskIncrementTick+0xaa>
  47887. /* It is not time to unblock this item yet, but the
  47888. item value is the time at which the task at the head
  47889. of the blocked list must be removed from the Blocked
  47890. state - so record the item value in
  47891. xNextTaskUnblockTime. */
  47892. xNextTaskUnblockTime = xItemValue;
  47893. 8013f4e: 4a2e ldr r2, [pc, #184] @ (8014008 <xTaskIncrementTick+0x15c>)
  47894. 8013f50: 687b ldr r3, [r7, #4]
  47895. 8013f52: 6013 str r3, [r2, #0]
  47896. break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
  47897. 8013f54: e02f b.n 8013fb6 <xTaskIncrementTick+0x10a>
  47898. {
  47899. mtCOVERAGE_TEST_MARKER();
  47900. }
  47901. /* It is time to remove the item from the Blocked state. */
  47902. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  47903. 8013f56: 68bb ldr r3, [r7, #8]
  47904. 8013f58: 3304 adds r3, #4
  47905. 8013f5a: 4618 mov r0, r3
  47906. 8013f5c: f7fd ff90 bl 8011e80 <uxListRemove>
  47907. /* Is the task waiting on an event also? If so remove
  47908. it from the event list. */
  47909. if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
  47910. 8013f60: 68bb ldr r3, [r7, #8]
  47911. 8013f62: 6a9b ldr r3, [r3, #40] @ 0x28
  47912. 8013f64: 2b00 cmp r3, #0
  47913. 8013f66: d004 beq.n 8013f72 <xTaskIncrementTick+0xc6>
  47914. {
  47915. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  47916. 8013f68: 68bb ldr r3, [r7, #8]
  47917. 8013f6a: 3318 adds r3, #24
  47918. 8013f6c: 4618 mov r0, r3
  47919. 8013f6e: f7fd ff87 bl 8011e80 <uxListRemove>
  47920. mtCOVERAGE_TEST_MARKER();
  47921. }
  47922. /* Place the unblocked task into the appropriate ready
  47923. list. */
  47924. prvAddTaskToReadyList( pxTCB );
  47925. 8013f72: 68bb ldr r3, [r7, #8]
  47926. 8013f74: 6ada ldr r2, [r3, #44] @ 0x2c
  47927. 8013f76: 4b25 ldr r3, [pc, #148] @ (801400c <xTaskIncrementTick+0x160>)
  47928. 8013f78: 681b ldr r3, [r3, #0]
  47929. 8013f7a: 429a cmp r2, r3
  47930. 8013f7c: d903 bls.n 8013f86 <xTaskIncrementTick+0xda>
  47931. 8013f7e: 68bb ldr r3, [r7, #8]
  47932. 8013f80: 6adb ldr r3, [r3, #44] @ 0x2c
  47933. 8013f82: 4a22 ldr r2, [pc, #136] @ (801400c <xTaskIncrementTick+0x160>)
  47934. 8013f84: 6013 str r3, [r2, #0]
  47935. 8013f86: 68bb ldr r3, [r7, #8]
  47936. 8013f88: 6ada ldr r2, [r3, #44] @ 0x2c
  47937. 8013f8a: 4613 mov r3, r2
  47938. 8013f8c: 009b lsls r3, r3, #2
  47939. 8013f8e: 4413 add r3, r2
  47940. 8013f90: 009b lsls r3, r3, #2
  47941. 8013f92: 4a1f ldr r2, [pc, #124] @ (8014010 <xTaskIncrementTick+0x164>)
  47942. 8013f94: 441a add r2, r3
  47943. 8013f96: 68bb ldr r3, [r7, #8]
  47944. 8013f98: 3304 adds r3, #4
  47945. 8013f9a: 4619 mov r1, r3
  47946. 8013f9c: 4610 mov r0, r2
  47947. 8013f9e: f7fd ff12 bl 8011dc6 <vListInsertEnd>
  47948. {
  47949. /* Preemption is on, but a context switch should
  47950. only be performed if the unblocked task has a
  47951. priority that is equal to or higher than the
  47952. currently executing task. */
  47953. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  47954. 8013fa2: 68bb ldr r3, [r7, #8]
  47955. 8013fa4: 6ada ldr r2, [r3, #44] @ 0x2c
  47956. 8013fa6: 4b1b ldr r3, [pc, #108] @ (8014014 <xTaskIncrementTick+0x168>)
  47957. 8013fa8: 681b ldr r3, [r3, #0]
  47958. 8013faa: 6adb ldr r3, [r3, #44] @ 0x2c
  47959. 8013fac: 429a cmp r2, r3
  47960. 8013fae: d3b8 bcc.n 8013f22 <xTaskIncrementTick+0x76>
  47961. {
  47962. xSwitchRequired = pdTRUE;
  47963. 8013fb0: 2301 movs r3, #1
  47964. 8013fb2: 617b str r3, [r7, #20]
  47965. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  47966. 8013fb4: e7b5 b.n 8013f22 <xTaskIncrementTick+0x76>
  47967. /* Tasks of equal priority to the currently running task will share
  47968. processing time (time slice) if preemption is on, and the application
  47969. writer has not explicitly turned time slicing off. */
  47970. #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
  47971. {
  47972. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
  47973. 8013fb6: 4b17 ldr r3, [pc, #92] @ (8014014 <xTaskIncrementTick+0x168>)
  47974. 8013fb8: 681b ldr r3, [r3, #0]
  47975. 8013fba: 6ada ldr r2, [r3, #44] @ 0x2c
  47976. 8013fbc: 4914 ldr r1, [pc, #80] @ (8014010 <xTaskIncrementTick+0x164>)
  47977. 8013fbe: 4613 mov r3, r2
  47978. 8013fc0: 009b lsls r3, r3, #2
  47979. 8013fc2: 4413 add r3, r2
  47980. 8013fc4: 009b lsls r3, r3, #2
  47981. 8013fc6: 440b add r3, r1
  47982. 8013fc8: 681b ldr r3, [r3, #0]
  47983. 8013fca: 2b01 cmp r3, #1
  47984. 8013fcc: d901 bls.n 8013fd2 <xTaskIncrementTick+0x126>
  47985. {
  47986. xSwitchRequired = pdTRUE;
  47987. 8013fce: 2301 movs r3, #1
  47988. 8013fd0: 617b str r3, [r7, #20]
  47989. }
  47990. #endif /* configUSE_TICK_HOOK */
  47991. #if ( configUSE_PREEMPTION == 1 )
  47992. {
  47993. if( xYieldPending != pdFALSE )
  47994. 8013fd2: 4b11 ldr r3, [pc, #68] @ (8014018 <xTaskIncrementTick+0x16c>)
  47995. 8013fd4: 681b ldr r3, [r3, #0]
  47996. 8013fd6: 2b00 cmp r3, #0
  47997. 8013fd8: d007 beq.n 8013fea <xTaskIncrementTick+0x13e>
  47998. {
  47999. xSwitchRequired = pdTRUE;
  48000. 8013fda: 2301 movs r3, #1
  48001. 8013fdc: 617b str r3, [r7, #20]
  48002. 8013fde: e004 b.n 8013fea <xTaskIncrementTick+0x13e>
  48003. }
  48004. #endif /* configUSE_PREEMPTION */
  48005. }
  48006. else
  48007. {
  48008. ++xPendedTicks;
  48009. 8013fe0: 4b0e ldr r3, [pc, #56] @ (801401c <xTaskIncrementTick+0x170>)
  48010. 8013fe2: 681b ldr r3, [r3, #0]
  48011. 8013fe4: 3301 adds r3, #1
  48012. 8013fe6: 4a0d ldr r2, [pc, #52] @ (801401c <xTaskIncrementTick+0x170>)
  48013. 8013fe8: 6013 str r3, [r2, #0]
  48014. vApplicationTickHook();
  48015. }
  48016. #endif
  48017. }
  48018. return xSwitchRequired;
  48019. 8013fea: 697b ldr r3, [r7, #20]
  48020. }
  48021. 8013fec: 4618 mov r0, r3
  48022. 8013fee: 3718 adds r7, #24
  48023. 8013ff0: 46bd mov sp, r7
  48024. 8013ff2: bd80 pop {r7, pc}
  48025. 8013ff4: 2400426c .word 0x2400426c
  48026. 8013ff8: 24004248 .word 0x24004248
  48027. 8013ffc: 240041fc .word 0x240041fc
  48028. 8014000: 24004200 .word 0x24004200
  48029. 8014004: 2400425c .word 0x2400425c
  48030. 8014008: 24004264 .word 0x24004264
  48031. 801400c: 2400424c .word 0x2400424c
  48032. 8014010: 24003d74 .word 0x24003d74
  48033. 8014014: 24003d70 .word 0x24003d70
  48034. 8014018: 24004258 .word 0x24004258
  48035. 801401c: 24004254 .word 0x24004254
  48036. 08014020 <vTaskSwitchContext>:
  48037. #endif /* configUSE_APPLICATION_TASK_TAG */
  48038. /*-----------------------------------------------------------*/
  48039. void vTaskSwitchContext( void )
  48040. {
  48041. 8014020: b580 push {r7, lr}
  48042. 8014022: b084 sub sp, #16
  48043. 8014024: af00 add r7, sp, #0
  48044. if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
  48045. 8014026: 4b32 ldr r3, [pc, #200] @ (80140f0 <vTaskSwitchContext+0xd0>)
  48046. 8014028: 681b ldr r3, [r3, #0]
  48047. 801402a: 2b00 cmp r3, #0
  48048. 801402c: d003 beq.n 8014036 <vTaskSwitchContext+0x16>
  48049. {
  48050. /* The scheduler is currently suspended - do not allow a context
  48051. switch. */
  48052. xYieldPending = pdTRUE;
  48053. 801402e: 4b31 ldr r3, [pc, #196] @ (80140f4 <vTaskSwitchContext+0xd4>)
  48054. 8014030: 2201 movs r2, #1
  48055. 8014032: 601a str r2, [r3, #0]
  48056. for additional information. */
  48057. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  48058. }
  48059. #endif /* configUSE_NEWLIB_REENTRANT */
  48060. }
  48061. }
  48062. 8014034: e058 b.n 80140e8 <vTaskSwitchContext+0xc8>
  48063. xYieldPending = pdFALSE;
  48064. 8014036: 4b2f ldr r3, [pc, #188] @ (80140f4 <vTaskSwitchContext+0xd4>)
  48065. 8014038: 2200 movs r2, #0
  48066. 801403a: 601a str r2, [r3, #0]
  48067. taskCHECK_FOR_STACK_OVERFLOW();
  48068. 801403c: 4b2e ldr r3, [pc, #184] @ (80140f8 <vTaskSwitchContext+0xd8>)
  48069. 801403e: 681b ldr r3, [r3, #0]
  48070. 8014040: 681a ldr r2, [r3, #0]
  48071. 8014042: 4b2d ldr r3, [pc, #180] @ (80140f8 <vTaskSwitchContext+0xd8>)
  48072. 8014044: 681b ldr r3, [r3, #0]
  48073. 8014046: 6b1b ldr r3, [r3, #48] @ 0x30
  48074. 8014048: 429a cmp r2, r3
  48075. 801404a: d808 bhi.n 801405e <vTaskSwitchContext+0x3e>
  48076. 801404c: 4b2a ldr r3, [pc, #168] @ (80140f8 <vTaskSwitchContext+0xd8>)
  48077. 801404e: 681a ldr r2, [r3, #0]
  48078. 8014050: 4b29 ldr r3, [pc, #164] @ (80140f8 <vTaskSwitchContext+0xd8>)
  48079. 8014052: 681b ldr r3, [r3, #0]
  48080. 8014054: 3334 adds r3, #52 @ 0x34
  48081. 8014056: 4619 mov r1, r3
  48082. 8014058: 4610 mov r0, r2
  48083. 801405a: f7ed fe22 bl 8001ca2 <vApplicationStackOverflowHook>
  48084. 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. */
  48085. 801405e: 4b27 ldr r3, [pc, #156] @ (80140fc <vTaskSwitchContext+0xdc>)
  48086. 8014060: 681b ldr r3, [r3, #0]
  48087. 8014062: 60fb str r3, [r7, #12]
  48088. 8014064: e011 b.n 801408a <vTaskSwitchContext+0x6a>
  48089. 8014066: 68fb ldr r3, [r7, #12]
  48090. 8014068: 2b00 cmp r3, #0
  48091. 801406a: d10b bne.n 8014084 <vTaskSwitchContext+0x64>
  48092. __asm volatile
  48093. 801406c: f04f 0350 mov.w r3, #80 @ 0x50
  48094. 8014070: f383 8811 msr BASEPRI, r3
  48095. 8014074: f3bf 8f6f isb sy
  48096. 8014078: f3bf 8f4f dsb sy
  48097. 801407c: 607b str r3, [r7, #4]
  48098. }
  48099. 801407e: bf00 nop
  48100. 8014080: bf00 nop
  48101. 8014082: e7fd b.n 8014080 <vTaskSwitchContext+0x60>
  48102. 8014084: 68fb ldr r3, [r7, #12]
  48103. 8014086: 3b01 subs r3, #1
  48104. 8014088: 60fb str r3, [r7, #12]
  48105. 801408a: 491d ldr r1, [pc, #116] @ (8014100 <vTaskSwitchContext+0xe0>)
  48106. 801408c: 68fa ldr r2, [r7, #12]
  48107. 801408e: 4613 mov r3, r2
  48108. 8014090: 009b lsls r3, r3, #2
  48109. 8014092: 4413 add r3, r2
  48110. 8014094: 009b lsls r3, r3, #2
  48111. 8014096: 440b add r3, r1
  48112. 8014098: 681b ldr r3, [r3, #0]
  48113. 801409a: 2b00 cmp r3, #0
  48114. 801409c: d0e3 beq.n 8014066 <vTaskSwitchContext+0x46>
  48115. 801409e: 68fa ldr r2, [r7, #12]
  48116. 80140a0: 4613 mov r3, r2
  48117. 80140a2: 009b lsls r3, r3, #2
  48118. 80140a4: 4413 add r3, r2
  48119. 80140a6: 009b lsls r3, r3, #2
  48120. 80140a8: 4a15 ldr r2, [pc, #84] @ (8014100 <vTaskSwitchContext+0xe0>)
  48121. 80140aa: 4413 add r3, r2
  48122. 80140ac: 60bb str r3, [r7, #8]
  48123. 80140ae: 68bb ldr r3, [r7, #8]
  48124. 80140b0: 685b ldr r3, [r3, #4]
  48125. 80140b2: 685a ldr r2, [r3, #4]
  48126. 80140b4: 68bb ldr r3, [r7, #8]
  48127. 80140b6: 605a str r2, [r3, #4]
  48128. 80140b8: 68bb ldr r3, [r7, #8]
  48129. 80140ba: 685a ldr r2, [r3, #4]
  48130. 80140bc: 68bb ldr r3, [r7, #8]
  48131. 80140be: 3308 adds r3, #8
  48132. 80140c0: 429a cmp r2, r3
  48133. 80140c2: d104 bne.n 80140ce <vTaskSwitchContext+0xae>
  48134. 80140c4: 68bb ldr r3, [r7, #8]
  48135. 80140c6: 685b ldr r3, [r3, #4]
  48136. 80140c8: 685a ldr r2, [r3, #4]
  48137. 80140ca: 68bb ldr r3, [r7, #8]
  48138. 80140cc: 605a str r2, [r3, #4]
  48139. 80140ce: 68bb ldr r3, [r7, #8]
  48140. 80140d0: 685b ldr r3, [r3, #4]
  48141. 80140d2: 68db ldr r3, [r3, #12]
  48142. 80140d4: 4a08 ldr r2, [pc, #32] @ (80140f8 <vTaskSwitchContext+0xd8>)
  48143. 80140d6: 6013 str r3, [r2, #0]
  48144. 80140d8: 4a08 ldr r2, [pc, #32] @ (80140fc <vTaskSwitchContext+0xdc>)
  48145. 80140da: 68fb ldr r3, [r7, #12]
  48146. 80140dc: 6013 str r3, [r2, #0]
  48147. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  48148. 80140de: 4b06 ldr r3, [pc, #24] @ (80140f8 <vTaskSwitchContext+0xd8>)
  48149. 80140e0: 681b ldr r3, [r3, #0]
  48150. 80140e2: 3354 adds r3, #84 @ 0x54
  48151. 80140e4: 4a07 ldr r2, [pc, #28] @ (8014104 <vTaskSwitchContext+0xe4>)
  48152. 80140e6: 6013 str r3, [r2, #0]
  48153. }
  48154. 80140e8: bf00 nop
  48155. 80140ea: 3710 adds r7, #16
  48156. 80140ec: 46bd mov sp, r7
  48157. 80140ee: bd80 pop {r7, pc}
  48158. 80140f0: 2400426c .word 0x2400426c
  48159. 80140f4: 24004258 .word 0x24004258
  48160. 80140f8: 24003d70 .word 0x24003d70
  48161. 80140fc: 2400424c .word 0x2400424c
  48162. 8014100: 24003d74 .word 0x24003d74
  48163. 8014104: 240001d4 .word 0x240001d4
  48164. 08014108 <vTaskPlaceOnEventList>:
  48165. /*-----------------------------------------------------------*/
  48166. void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
  48167. {
  48168. 8014108: b580 push {r7, lr}
  48169. 801410a: b084 sub sp, #16
  48170. 801410c: af00 add r7, sp, #0
  48171. 801410e: 6078 str r0, [r7, #4]
  48172. 8014110: 6039 str r1, [r7, #0]
  48173. configASSERT( pxEventList );
  48174. 8014112: 687b ldr r3, [r7, #4]
  48175. 8014114: 2b00 cmp r3, #0
  48176. 8014116: d10b bne.n 8014130 <vTaskPlaceOnEventList+0x28>
  48177. __asm volatile
  48178. 8014118: f04f 0350 mov.w r3, #80 @ 0x50
  48179. 801411c: f383 8811 msr BASEPRI, r3
  48180. 8014120: f3bf 8f6f isb sy
  48181. 8014124: f3bf 8f4f dsb sy
  48182. 8014128: 60fb str r3, [r7, #12]
  48183. }
  48184. 801412a: bf00 nop
  48185. 801412c: bf00 nop
  48186. 801412e: e7fd b.n 801412c <vTaskPlaceOnEventList+0x24>
  48187. /* Place the event list item of the TCB in the appropriate event list.
  48188. This is placed in the list in priority order so the highest priority task
  48189. is the first to be woken by the event. The queue that contains the event
  48190. list is locked, preventing simultaneous access from interrupts. */
  48191. vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  48192. 8014130: 4b07 ldr r3, [pc, #28] @ (8014150 <vTaskPlaceOnEventList+0x48>)
  48193. 8014132: 681b ldr r3, [r3, #0]
  48194. 8014134: 3318 adds r3, #24
  48195. 8014136: 4619 mov r1, r3
  48196. 8014138: 6878 ldr r0, [r7, #4]
  48197. 801413a: f7fd fe68 bl 8011e0e <vListInsert>
  48198. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  48199. 801413e: 2101 movs r1, #1
  48200. 8014140: 6838 ldr r0, [r7, #0]
  48201. 8014142: f000 fded bl 8014d20 <prvAddCurrentTaskToDelayedList>
  48202. }
  48203. 8014146: bf00 nop
  48204. 8014148: 3710 adds r7, #16
  48205. 801414a: 46bd mov sp, r7
  48206. 801414c: bd80 pop {r7, pc}
  48207. 801414e: bf00 nop
  48208. 8014150: 24003d70 .word 0x24003d70
  48209. 08014154 <vTaskPlaceOnEventListRestricted>:
  48210. /*-----------------------------------------------------------*/
  48211. #if( configUSE_TIMERS == 1 )
  48212. void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  48213. {
  48214. 8014154: b580 push {r7, lr}
  48215. 8014156: b086 sub sp, #24
  48216. 8014158: af00 add r7, sp, #0
  48217. 801415a: 60f8 str r0, [r7, #12]
  48218. 801415c: 60b9 str r1, [r7, #8]
  48219. 801415e: 607a str r2, [r7, #4]
  48220. configASSERT( pxEventList );
  48221. 8014160: 68fb ldr r3, [r7, #12]
  48222. 8014162: 2b00 cmp r3, #0
  48223. 8014164: d10b bne.n 801417e <vTaskPlaceOnEventListRestricted+0x2a>
  48224. __asm volatile
  48225. 8014166: f04f 0350 mov.w r3, #80 @ 0x50
  48226. 801416a: f383 8811 msr BASEPRI, r3
  48227. 801416e: f3bf 8f6f isb sy
  48228. 8014172: f3bf 8f4f dsb sy
  48229. 8014176: 617b str r3, [r7, #20]
  48230. }
  48231. 8014178: bf00 nop
  48232. 801417a: bf00 nop
  48233. 801417c: e7fd b.n 801417a <vTaskPlaceOnEventListRestricted+0x26>
  48234. /* Place the event list item of the TCB in the appropriate event list.
  48235. In this case it is assume that this is the only task that is going to
  48236. be waiting on this event list, so the faster vListInsertEnd() function
  48237. can be used in place of vListInsert. */
  48238. vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  48239. 801417e: 4b0a ldr r3, [pc, #40] @ (80141a8 <vTaskPlaceOnEventListRestricted+0x54>)
  48240. 8014180: 681b ldr r3, [r3, #0]
  48241. 8014182: 3318 adds r3, #24
  48242. 8014184: 4619 mov r1, r3
  48243. 8014186: 68f8 ldr r0, [r7, #12]
  48244. 8014188: f7fd fe1d bl 8011dc6 <vListInsertEnd>
  48245. /* If the task should block indefinitely then set the block time to a
  48246. value that will be recognised as an indefinite delay inside the
  48247. prvAddCurrentTaskToDelayedList() function. */
  48248. if( xWaitIndefinitely != pdFALSE )
  48249. 801418c: 687b ldr r3, [r7, #4]
  48250. 801418e: 2b00 cmp r3, #0
  48251. 8014190: d002 beq.n 8014198 <vTaskPlaceOnEventListRestricted+0x44>
  48252. {
  48253. xTicksToWait = portMAX_DELAY;
  48254. 8014192: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  48255. 8014196: 60bb str r3, [r7, #8]
  48256. }
  48257. traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
  48258. prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
  48259. 8014198: 6879 ldr r1, [r7, #4]
  48260. 801419a: 68b8 ldr r0, [r7, #8]
  48261. 801419c: f000 fdc0 bl 8014d20 <prvAddCurrentTaskToDelayedList>
  48262. }
  48263. 80141a0: bf00 nop
  48264. 80141a2: 3718 adds r7, #24
  48265. 80141a4: 46bd mov sp, r7
  48266. 80141a6: bd80 pop {r7, pc}
  48267. 80141a8: 24003d70 .word 0x24003d70
  48268. 080141ac <xTaskRemoveFromEventList>:
  48269. #endif /* configUSE_TIMERS */
  48270. /*-----------------------------------------------------------*/
  48271. BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
  48272. {
  48273. 80141ac: b580 push {r7, lr}
  48274. 80141ae: b086 sub sp, #24
  48275. 80141b0: af00 add r7, sp, #0
  48276. 80141b2: 6078 str r0, [r7, #4]
  48277. get called - the lock count on the queue will get modified instead. This
  48278. means exclusive access to the event list is guaranteed here.
  48279. This function assumes that a check has already been made to ensure that
  48280. pxEventList is not empty. */
  48281. 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. */
  48282. 80141b4: 687b ldr r3, [r7, #4]
  48283. 80141b6: 68db ldr r3, [r3, #12]
  48284. 80141b8: 68db ldr r3, [r3, #12]
  48285. 80141ba: 613b str r3, [r7, #16]
  48286. configASSERT( pxUnblockedTCB );
  48287. 80141bc: 693b ldr r3, [r7, #16]
  48288. 80141be: 2b00 cmp r3, #0
  48289. 80141c0: d10b bne.n 80141da <xTaskRemoveFromEventList+0x2e>
  48290. __asm volatile
  48291. 80141c2: f04f 0350 mov.w r3, #80 @ 0x50
  48292. 80141c6: f383 8811 msr BASEPRI, r3
  48293. 80141ca: f3bf 8f6f isb sy
  48294. 80141ce: f3bf 8f4f dsb sy
  48295. 80141d2: 60fb str r3, [r7, #12]
  48296. }
  48297. 80141d4: bf00 nop
  48298. 80141d6: bf00 nop
  48299. 80141d8: e7fd b.n 80141d6 <xTaskRemoveFromEventList+0x2a>
  48300. ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
  48301. 80141da: 693b ldr r3, [r7, #16]
  48302. 80141dc: 3318 adds r3, #24
  48303. 80141de: 4618 mov r0, r3
  48304. 80141e0: f7fd fe4e bl 8011e80 <uxListRemove>
  48305. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  48306. 80141e4: 4b1d ldr r3, [pc, #116] @ (801425c <xTaskRemoveFromEventList+0xb0>)
  48307. 80141e6: 681b ldr r3, [r3, #0]
  48308. 80141e8: 2b00 cmp r3, #0
  48309. 80141ea: d11d bne.n 8014228 <xTaskRemoveFromEventList+0x7c>
  48310. {
  48311. ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
  48312. 80141ec: 693b ldr r3, [r7, #16]
  48313. 80141ee: 3304 adds r3, #4
  48314. 80141f0: 4618 mov r0, r3
  48315. 80141f2: f7fd fe45 bl 8011e80 <uxListRemove>
  48316. prvAddTaskToReadyList( pxUnblockedTCB );
  48317. 80141f6: 693b ldr r3, [r7, #16]
  48318. 80141f8: 6ada ldr r2, [r3, #44] @ 0x2c
  48319. 80141fa: 4b19 ldr r3, [pc, #100] @ (8014260 <xTaskRemoveFromEventList+0xb4>)
  48320. 80141fc: 681b ldr r3, [r3, #0]
  48321. 80141fe: 429a cmp r2, r3
  48322. 8014200: d903 bls.n 801420a <xTaskRemoveFromEventList+0x5e>
  48323. 8014202: 693b ldr r3, [r7, #16]
  48324. 8014204: 6adb ldr r3, [r3, #44] @ 0x2c
  48325. 8014206: 4a16 ldr r2, [pc, #88] @ (8014260 <xTaskRemoveFromEventList+0xb4>)
  48326. 8014208: 6013 str r3, [r2, #0]
  48327. 801420a: 693b ldr r3, [r7, #16]
  48328. 801420c: 6ada ldr r2, [r3, #44] @ 0x2c
  48329. 801420e: 4613 mov r3, r2
  48330. 8014210: 009b lsls r3, r3, #2
  48331. 8014212: 4413 add r3, r2
  48332. 8014214: 009b lsls r3, r3, #2
  48333. 8014216: 4a13 ldr r2, [pc, #76] @ (8014264 <xTaskRemoveFromEventList+0xb8>)
  48334. 8014218: 441a add r2, r3
  48335. 801421a: 693b ldr r3, [r7, #16]
  48336. 801421c: 3304 adds r3, #4
  48337. 801421e: 4619 mov r1, r3
  48338. 8014220: 4610 mov r0, r2
  48339. 8014222: f7fd fdd0 bl 8011dc6 <vListInsertEnd>
  48340. 8014226: e005 b.n 8014234 <xTaskRemoveFromEventList+0x88>
  48341. }
  48342. else
  48343. {
  48344. /* The delayed and ready lists cannot be accessed, so hold this task
  48345. pending until the scheduler is resumed. */
  48346. vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
  48347. 8014228: 693b ldr r3, [r7, #16]
  48348. 801422a: 3318 adds r3, #24
  48349. 801422c: 4619 mov r1, r3
  48350. 801422e: 480e ldr r0, [pc, #56] @ (8014268 <xTaskRemoveFromEventList+0xbc>)
  48351. 8014230: f7fd fdc9 bl 8011dc6 <vListInsertEnd>
  48352. }
  48353. if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
  48354. 8014234: 693b ldr r3, [r7, #16]
  48355. 8014236: 6ada ldr r2, [r3, #44] @ 0x2c
  48356. 8014238: 4b0c ldr r3, [pc, #48] @ (801426c <xTaskRemoveFromEventList+0xc0>)
  48357. 801423a: 681b ldr r3, [r3, #0]
  48358. 801423c: 6adb ldr r3, [r3, #44] @ 0x2c
  48359. 801423e: 429a cmp r2, r3
  48360. 8014240: d905 bls.n 801424e <xTaskRemoveFromEventList+0xa2>
  48361. {
  48362. /* Return true if the task removed from the event list has a higher
  48363. priority than the calling task. This allows the calling task to know if
  48364. it should force a context switch now. */
  48365. xReturn = pdTRUE;
  48366. 8014242: 2301 movs r3, #1
  48367. 8014244: 617b str r3, [r7, #20]
  48368. /* Mark that a yield is pending in case the user is not using the
  48369. "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
  48370. xYieldPending = pdTRUE;
  48371. 8014246: 4b0a ldr r3, [pc, #40] @ (8014270 <xTaskRemoveFromEventList+0xc4>)
  48372. 8014248: 2201 movs r2, #1
  48373. 801424a: 601a str r2, [r3, #0]
  48374. 801424c: e001 b.n 8014252 <xTaskRemoveFromEventList+0xa6>
  48375. }
  48376. else
  48377. {
  48378. xReturn = pdFALSE;
  48379. 801424e: 2300 movs r3, #0
  48380. 8014250: 617b str r3, [r7, #20]
  48381. }
  48382. return xReturn;
  48383. 8014252: 697b ldr r3, [r7, #20]
  48384. }
  48385. 8014254: 4618 mov r0, r3
  48386. 8014256: 3718 adds r7, #24
  48387. 8014258: 46bd mov sp, r7
  48388. 801425a: bd80 pop {r7, pc}
  48389. 801425c: 2400426c .word 0x2400426c
  48390. 8014260: 2400424c .word 0x2400424c
  48391. 8014264: 24003d74 .word 0x24003d74
  48392. 8014268: 24004204 .word 0x24004204
  48393. 801426c: 24003d70 .word 0x24003d70
  48394. 8014270: 24004258 .word 0x24004258
  48395. 08014274 <vTaskSetTimeOutState>:
  48396. }
  48397. }
  48398. /*-----------------------------------------------------------*/
  48399. void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut )
  48400. {
  48401. 8014274: b580 push {r7, lr}
  48402. 8014276: b084 sub sp, #16
  48403. 8014278: af00 add r7, sp, #0
  48404. 801427a: 6078 str r0, [r7, #4]
  48405. configASSERT( pxTimeOut );
  48406. 801427c: 687b ldr r3, [r7, #4]
  48407. 801427e: 2b00 cmp r3, #0
  48408. 8014280: d10b bne.n 801429a <vTaskSetTimeOutState+0x26>
  48409. __asm volatile
  48410. 8014282: f04f 0350 mov.w r3, #80 @ 0x50
  48411. 8014286: f383 8811 msr BASEPRI, r3
  48412. 801428a: f3bf 8f6f isb sy
  48413. 801428e: f3bf 8f4f dsb sy
  48414. 8014292: 60fb str r3, [r7, #12]
  48415. }
  48416. 8014294: bf00 nop
  48417. 8014296: bf00 nop
  48418. 8014298: e7fd b.n 8014296 <vTaskSetTimeOutState+0x22>
  48419. taskENTER_CRITICAL();
  48420. 801429a: f001 fb0d bl 80158b8 <vPortEnterCritical>
  48421. {
  48422. pxTimeOut->xOverflowCount = xNumOfOverflows;
  48423. 801429e: 4b07 ldr r3, [pc, #28] @ (80142bc <vTaskSetTimeOutState+0x48>)
  48424. 80142a0: 681a ldr r2, [r3, #0]
  48425. 80142a2: 687b ldr r3, [r7, #4]
  48426. 80142a4: 601a str r2, [r3, #0]
  48427. pxTimeOut->xTimeOnEntering = xTickCount;
  48428. 80142a6: 4b06 ldr r3, [pc, #24] @ (80142c0 <vTaskSetTimeOutState+0x4c>)
  48429. 80142a8: 681a ldr r2, [r3, #0]
  48430. 80142aa: 687b ldr r3, [r7, #4]
  48431. 80142ac: 605a str r2, [r3, #4]
  48432. }
  48433. taskEXIT_CRITICAL();
  48434. 80142ae: f001 fb35 bl 801591c <vPortExitCritical>
  48435. }
  48436. 80142b2: bf00 nop
  48437. 80142b4: 3710 adds r7, #16
  48438. 80142b6: 46bd mov sp, r7
  48439. 80142b8: bd80 pop {r7, pc}
  48440. 80142ba: bf00 nop
  48441. 80142bc: 2400425c .word 0x2400425c
  48442. 80142c0: 24004248 .word 0x24004248
  48443. 080142c4 <vTaskInternalSetTimeOutState>:
  48444. /*-----------------------------------------------------------*/
  48445. void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
  48446. {
  48447. 80142c4: b480 push {r7}
  48448. 80142c6: b083 sub sp, #12
  48449. 80142c8: af00 add r7, sp, #0
  48450. 80142ca: 6078 str r0, [r7, #4]
  48451. /* For internal use only as it does not use a critical section. */
  48452. pxTimeOut->xOverflowCount = xNumOfOverflows;
  48453. 80142cc: 4b06 ldr r3, [pc, #24] @ (80142e8 <vTaskInternalSetTimeOutState+0x24>)
  48454. 80142ce: 681a ldr r2, [r3, #0]
  48455. 80142d0: 687b ldr r3, [r7, #4]
  48456. 80142d2: 601a str r2, [r3, #0]
  48457. pxTimeOut->xTimeOnEntering = xTickCount;
  48458. 80142d4: 4b05 ldr r3, [pc, #20] @ (80142ec <vTaskInternalSetTimeOutState+0x28>)
  48459. 80142d6: 681a ldr r2, [r3, #0]
  48460. 80142d8: 687b ldr r3, [r7, #4]
  48461. 80142da: 605a str r2, [r3, #4]
  48462. }
  48463. 80142dc: bf00 nop
  48464. 80142de: 370c adds r7, #12
  48465. 80142e0: 46bd mov sp, r7
  48466. 80142e2: f85d 7b04 ldr.w r7, [sp], #4
  48467. 80142e6: 4770 bx lr
  48468. 80142e8: 2400425c .word 0x2400425c
  48469. 80142ec: 24004248 .word 0x24004248
  48470. 080142f0 <xTaskCheckForTimeOut>:
  48471. /*-----------------------------------------------------------*/
  48472. BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
  48473. {
  48474. 80142f0: b580 push {r7, lr}
  48475. 80142f2: b088 sub sp, #32
  48476. 80142f4: af00 add r7, sp, #0
  48477. 80142f6: 6078 str r0, [r7, #4]
  48478. 80142f8: 6039 str r1, [r7, #0]
  48479. BaseType_t xReturn;
  48480. configASSERT( pxTimeOut );
  48481. 80142fa: 687b ldr r3, [r7, #4]
  48482. 80142fc: 2b00 cmp r3, #0
  48483. 80142fe: d10b bne.n 8014318 <xTaskCheckForTimeOut+0x28>
  48484. __asm volatile
  48485. 8014300: f04f 0350 mov.w r3, #80 @ 0x50
  48486. 8014304: f383 8811 msr BASEPRI, r3
  48487. 8014308: f3bf 8f6f isb sy
  48488. 801430c: f3bf 8f4f dsb sy
  48489. 8014310: 613b str r3, [r7, #16]
  48490. }
  48491. 8014312: bf00 nop
  48492. 8014314: bf00 nop
  48493. 8014316: e7fd b.n 8014314 <xTaskCheckForTimeOut+0x24>
  48494. configASSERT( pxTicksToWait );
  48495. 8014318: 683b ldr r3, [r7, #0]
  48496. 801431a: 2b00 cmp r3, #0
  48497. 801431c: d10b bne.n 8014336 <xTaskCheckForTimeOut+0x46>
  48498. __asm volatile
  48499. 801431e: f04f 0350 mov.w r3, #80 @ 0x50
  48500. 8014322: f383 8811 msr BASEPRI, r3
  48501. 8014326: f3bf 8f6f isb sy
  48502. 801432a: f3bf 8f4f dsb sy
  48503. 801432e: 60fb str r3, [r7, #12]
  48504. }
  48505. 8014330: bf00 nop
  48506. 8014332: bf00 nop
  48507. 8014334: e7fd b.n 8014332 <xTaskCheckForTimeOut+0x42>
  48508. taskENTER_CRITICAL();
  48509. 8014336: f001 fabf bl 80158b8 <vPortEnterCritical>
  48510. {
  48511. /* Minor optimisation. The tick count cannot change in this block. */
  48512. const TickType_t xConstTickCount = xTickCount;
  48513. 801433a: 4b1d ldr r3, [pc, #116] @ (80143b0 <xTaskCheckForTimeOut+0xc0>)
  48514. 801433c: 681b ldr r3, [r3, #0]
  48515. 801433e: 61bb str r3, [r7, #24]
  48516. const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
  48517. 8014340: 687b ldr r3, [r7, #4]
  48518. 8014342: 685b ldr r3, [r3, #4]
  48519. 8014344: 69ba ldr r2, [r7, #24]
  48520. 8014346: 1ad3 subs r3, r2, r3
  48521. 8014348: 617b str r3, [r7, #20]
  48522. }
  48523. else
  48524. #endif
  48525. #if ( INCLUDE_vTaskSuspend == 1 )
  48526. if( *pxTicksToWait == portMAX_DELAY )
  48527. 801434a: 683b ldr r3, [r7, #0]
  48528. 801434c: 681b ldr r3, [r3, #0]
  48529. 801434e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48530. 8014352: d102 bne.n 801435a <xTaskCheckForTimeOut+0x6a>
  48531. {
  48532. /* If INCLUDE_vTaskSuspend is set to 1 and the block time
  48533. specified is the maximum block time then the task should block
  48534. indefinitely, and therefore never time out. */
  48535. xReturn = pdFALSE;
  48536. 8014354: 2300 movs r3, #0
  48537. 8014356: 61fb str r3, [r7, #28]
  48538. 8014358: e023 b.n 80143a2 <xTaskCheckForTimeOut+0xb2>
  48539. }
  48540. else
  48541. #endif
  48542. if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
  48543. 801435a: 687b ldr r3, [r7, #4]
  48544. 801435c: 681a ldr r2, [r3, #0]
  48545. 801435e: 4b15 ldr r3, [pc, #84] @ (80143b4 <xTaskCheckForTimeOut+0xc4>)
  48546. 8014360: 681b ldr r3, [r3, #0]
  48547. 8014362: 429a cmp r2, r3
  48548. 8014364: d007 beq.n 8014376 <xTaskCheckForTimeOut+0x86>
  48549. 8014366: 687b ldr r3, [r7, #4]
  48550. 8014368: 685b ldr r3, [r3, #4]
  48551. 801436a: 69ba ldr r2, [r7, #24]
  48552. 801436c: 429a cmp r2, r3
  48553. 801436e: d302 bcc.n 8014376 <xTaskCheckForTimeOut+0x86>
  48554. /* The tick count is greater than the time at which
  48555. vTaskSetTimeout() was called, but has also overflowed since
  48556. vTaskSetTimeOut() was called. It must have wrapped all the way
  48557. around and gone past again. This passed since vTaskSetTimeout()
  48558. was called. */
  48559. xReturn = pdTRUE;
  48560. 8014370: 2301 movs r3, #1
  48561. 8014372: 61fb str r3, [r7, #28]
  48562. 8014374: e015 b.n 80143a2 <xTaskCheckForTimeOut+0xb2>
  48563. }
  48564. else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
  48565. 8014376: 683b ldr r3, [r7, #0]
  48566. 8014378: 681b ldr r3, [r3, #0]
  48567. 801437a: 697a ldr r2, [r7, #20]
  48568. 801437c: 429a cmp r2, r3
  48569. 801437e: d20b bcs.n 8014398 <xTaskCheckForTimeOut+0xa8>
  48570. {
  48571. /* Not a genuine timeout. Adjust parameters for time remaining. */
  48572. *pxTicksToWait -= xElapsedTime;
  48573. 8014380: 683b ldr r3, [r7, #0]
  48574. 8014382: 681a ldr r2, [r3, #0]
  48575. 8014384: 697b ldr r3, [r7, #20]
  48576. 8014386: 1ad2 subs r2, r2, r3
  48577. 8014388: 683b ldr r3, [r7, #0]
  48578. 801438a: 601a str r2, [r3, #0]
  48579. vTaskInternalSetTimeOutState( pxTimeOut );
  48580. 801438c: 6878 ldr r0, [r7, #4]
  48581. 801438e: f7ff ff99 bl 80142c4 <vTaskInternalSetTimeOutState>
  48582. xReturn = pdFALSE;
  48583. 8014392: 2300 movs r3, #0
  48584. 8014394: 61fb str r3, [r7, #28]
  48585. 8014396: e004 b.n 80143a2 <xTaskCheckForTimeOut+0xb2>
  48586. }
  48587. else
  48588. {
  48589. *pxTicksToWait = 0;
  48590. 8014398: 683b ldr r3, [r7, #0]
  48591. 801439a: 2200 movs r2, #0
  48592. 801439c: 601a str r2, [r3, #0]
  48593. xReturn = pdTRUE;
  48594. 801439e: 2301 movs r3, #1
  48595. 80143a0: 61fb str r3, [r7, #28]
  48596. }
  48597. }
  48598. taskEXIT_CRITICAL();
  48599. 80143a2: f001 fabb bl 801591c <vPortExitCritical>
  48600. return xReturn;
  48601. 80143a6: 69fb ldr r3, [r7, #28]
  48602. }
  48603. 80143a8: 4618 mov r0, r3
  48604. 80143aa: 3720 adds r7, #32
  48605. 80143ac: 46bd mov sp, r7
  48606. 80143ae: bd80 pop {r7, pc}
  48607. 80143b0: 24004248 .word 0x24004248
  48608. 80143b4: 2400425c .word 0x2400425c
  48609. 080143b8 <vTaskMissedYield>:
  48610. /*-----------------------------------------------------------*/
  48611. void vTaskMissedYield( void )
  48612. {
  48613. 80143b8: b480 push {r7}
  48614. 80143ba: af00 add r7, sp, #0
  48615. xYieldPending = pdTRUE;
  48616. 80143bc: 4b03 ldr r3, [pc, #12] @ (80143cc <vTaskMissedYield+0x14>)
  48617. 80143be: 2201 movs r2, #1
  48618. 80143c0: 601a str r2, [r3, #0]
  48619. }
  48620. 80143c2: bf00 nop
  48621. 80143c4: 46bd mov sp, r7
  48622. 80143c6: f85d 7b04 ldr.w r7, [sp], #4
  48623. 80143ca: 4770 bx lr
  48624. 80143cc: 24004258 .word 0x24004258
  48625. 080143d0 <prvIdleTask>:
  48626. *
  48627. * void prvIdleTask( void *pvParameters );
  48628. *
  48629. */
  48630. static portTASK_FUNCTION( prvIdleTask, pvParameters )
  48631. {
  48632. 80143d0: b580 push {r7, lr}
  48633. 80143d2: b082 sub sp, #8
  48634. 80143d4: af00 add r7, sp, #0
  48635. 80143d6: 6078 str r0, [r7, #4]
  48636. for( ;; )
  48637. {
  48638. /* See if any tasks have deleted themselves - if so then the idle task
  48639. is responsible for freeing the deleted task's TCB and stack. */
  48640. prvCheckTasksWaitingTermination();
  48641. 80143d8: f000 f852 bl 8014480 <prvCheckTasksWaitingTermination>
  48642. A critical region is not required here as we are just reading from
  48643. the list, and an occasional incorrect value will not matter. If
  48644. the ready list at the idle priority contains more than one task
  48645. then a task other than the idle task is ready to execute. */
  48646. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
  48647. 80143dc: 4b06 ldr r3, [pc, #24] @ (80143f8 <prvIdleTask+0x28>)
  48648. 80143de: 681b ldr r3, [r3, #0]
  48649. 80143e0: 2b01 cmp r3, #1
  48650. 80143e2: d9f9 bls.n 80143d8 <prvIdleTask+0x8>
  48651. {
  48652. taskYIELD();
  48653. 80143e4: 4b05 ldr r3, [pc, #20] @ (80143fc <prvIdleTask+0x2c>)
  48654. 80143e6: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48655. 80143ea: 601a str r2, [r3, #0]
  48656. 80143ec: f3bf 8f4f dsb sy
  48657. 80143f0: f3bf 8f6f isb sy
  48658. prvCheckTasksWaitingTermination();
  48659. 80143f4: e7f0 b.n 80143d8 <prvIdleTask+0x8>
  48660. 80143f6: bf00 nop
  48661. 80143f8: 24003d74 .word 0x24003d74
  48662. 80143fc: e000ed04 .word 0xe000ed04
  48663. 08014400 <prvInitialiseTaskLists>:
  48664. #endif /* portUSING_MPU_WRAPPERS */
  48665. /*-----------------------------------------------------------*/
  48666. static void prvInitialiseTaskLists( void )
  48667. {
  48668. 8014400: b580 push {r7, lr}
  48669. 8014402: b082 sub sp, #8
  48670. 8014404: af00 add r7, sp, #0
  48671. UBaseType_t uxPriority;
  48672. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  48673. 8014406: 2300 movs r3, #0
  48674. 8014408: 607b str r3, [r7, #4]
  48675. 801440a: e00c b.n 8014426 <prvInitialiseTaskLists+0x26>
  48676. {
  48677. vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
  48678. 801440c: 687a ldr r2, [r7, #4]
  48679. 801440e: 4613 mov r3, r2
  48680. 8014410: 009b lsls r3, r3, #2
  48681. 8014412: 4413 add r3, r2
  48682. 8014414: 009b lsls r3, r3, #2
  48683. 8014416: 4a12 ldr r2, [pc, #72] @ (8014460 <prvInitialiseTaskLists+0x60>)
  48684. 8014418: 4413 add r3, r2
  48685. 801441a: 4618 mov r0, r3
  48686. 801441c: f7fd fca6 bl 8011d6c <vListInitialise>
  48687. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  48688. 8014420: 687b ldr r3, [r7, #4]
  48689. 8014422: 3301 adds r3, #1
  48690. 8014424: 607b str r3, [r7, #4]
  48691. 8014426: 687b ldr r3, [r7, #4]
  48692. 8014428: 2b37 cmp r3, #55 @ 0x37
  48693. 801442a: d9ef bls.n 801440c <prvInitialiseTaskLists+0xc>
  48694. }
  48695. vListInitialise( &xDelayedTaskList1 );
  48696. 801442c: 480d ldr r0, [pc, #52] @ (8014464 <prvInitialiseTaskLists+0x64>)
  48697. 801442e: f7fd fc9d bl 8011d6c <vListInitialise>
  48698. vListInitialise( &xDelayedTaskList2 );
  48699. 8014432: 480d ldr r0, [pc, #52] @ (8014468 <prvInitialiseTaskLists+0x68>)
  48700. 8014434: f7fd fc9a bl 8011d6c <vListInitialise>
  48701. vListInitialise( &xPendingReadyList );
  48702. 8014438: 480c ldr r0, [pc, #48] @ (801446c <prvInitialiseTaskLists+0x6c>)
  48703. 801443a: f7fd fc97 bl 8011d6c <vListInitialise>
  48704. #if ( INCLUDE_vTaskDelete == 1 )
  48705. {
  48706. vListInitialise( &xTasksWaitingTermination );
  48707. 801443e: 480c ldr r0, [pc, #48] @ (8014470 <prvInitialiseTaskLists+0x70>)
  48708. 8014440: f7fd fc94 bl 8011d6c <vListInitialise>
  48709. }
  48710. #endif /* INCLUDE_vTaskDelete */
  48711. #if ( INCLUDE_vTaskSuspend == 1 )
  48712. {
  48713. vListInitialise( &xSuspendedTaskList );
  48714. 8014444: 480b ldr r0, [pc, #44] @ (8014474 <prvInitialiseTaskLists+0x74>)
  48715. 8014446: f7fd fc91 bl 8011d6c <vListInitialise>
  48716. }
  48717. #endif /* INCLUDE_vTaskSuspend */
  48718. /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
  48719. using list2. */
  48720. pxDelayedTaskList = &xDelayedTaskList1;
  48721. 801444a: 4b0b ldr r3, [pc, #44] @ (8014478 <prvInitialiseTaskLists+0x78>)
  48722. 801444c: 4a05 ldr r2, [pc, #20] @ (8014464 <prvInitialiseTaskLists+0x64>)
  48723. 801444e: 601a str r2, [r3, #0]
  48724. pxOverflowDelayedTaskList = &xDelayedTaskList2;
  48725. 8014450: 4b0a ldr r3, [pc, #40] @ (801447c <prvInitialiseTaskLists+0x7c>)
  48726. 8014452: 4a05 ldr r2, [pc, #20] @ (8014468 <prvInitialiseTaskLists+0x68>)
  48727. 8014454: 601a str r2, [r3, #0]
  48728. }
  48729. 8014456: bf00 nop
  48730. 8014458: 3708 adds r7, #8
  48731. 801445a: 46bd mov sp, r7
  48732. 801445c: bd80 pop {r7, pc}
  48733. 801445e: bf00 nop
  48734. 8014460: 24003d74 .word 0x24003d74
  48735. 8014464: 240041d4 .word 0x240041d4
  48736. 8014468: 240041e8 .word 0x240041e8
  48737. 801446c: 24004204 .word 0x24004204
  48738. 8014470: 24004218 .word 0x24004218
  48739. 8014474: 24004230 .word 0x24004230
  48740. 8014478: 240041fc .word 0x240041fc
  48741. 801447c: 24004200 .word 0x24004200
  48742. 08014480 <prvCheckTasksWaitingTermination>:
  48743. /*-----------------------------------------------------------*/
  48744. static void prvCheckTasksWaitingTermination( void )
  48745. {
  48746. 8014480: b580 push {r7, lr}
  48747. 8014482: b082 sub sp, #8
  48748. 8014484: af00 add r7, sp, #0
  48749. {
  48750. TCB_t *pxTCB;
  48751. /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
  48752. being called too often in the idle task. */
  48753. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  48754. 8014486: e019 b.n 80144bc <prvCheckTasksWaitingTermination+0x3c>
  48755. {
  48756. taskENTER_CRITICAL();
  48757. 8014488: f001 fa16 bl 80158b8 <vPortEnterCritical>
  48758. {
  48759. 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. */
  48760. 801448c: 4b10 ldr r3, [pc, #64] @ (80144d0 <prvCheckTasksWaitingTermination+0x50>)
  48761. 801448e: 68db ldr r3, [r3, #12]
  48762. 8014490: 68db ldr r3, [r3, #12]
  48763. 8014492: 607b str r3, [r7, #4]
  48764. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  48765. 8014494: 687b ldr r3, [r7, #4]
  48766. 8014496: 3304 adds r3, #4
  48767. 8014498: 4618 mov r0, r3
  48768. 801449a: f7fd fcf1 bl 8011e80 <uxListRemove>
  48769. --uxCurrentNumberOfTasks;
  48770. 801449e: 4b0d ldr r3, [pc, #52] @ (80144d4 <prvCheckTasksWaitingTermination+0x54>)
  48771. 80144a0: 681b ldr r3, [r3, #0]
  48772. 80144a2: 3b01 subs r3, #1
  48773. 80144a4: 4a0b ldr r2, [pc, #44] @ (80144d4 <prvCheckTasksWaitingTermination+0x54>)
  48774. 80144a6: 6013 str r3, [r2, #0]
  48775. --uxDeletedTasksWaitingCleanUp;
  48776. 80144a8: 4b0b ldr r3, [pc, #44] @ (80144d8 <prvCheckTasksWaitingTermination+0x58>)
  48777. 80144aa: 681b ldr r3, [r3, #0]
  48778. 80144ac: 3b01 subs r3, #1
  48779. 80144ae: 4a0a ldr r2, [pc, #40] @ (80144d8 <prvCheckTasksWaitingTermination+0x58>)
  48780. 80144b0: 6013 str r3, [r2, #0]
  48781. }
  48782. taskEXIT_CRITICAL();
  48783. 80144b2: f001 fa33 bl 801591c <vPortExitCritical>
  48784. prvDeleteTCB( pxTCB );
  48785. 80144b6: 6878 ldr r0, [r7, #4]
  48786. 80144b8: f000 f810 bl 80144dc <prvDeleteTCB>
  48787. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  48788. 80144bc: 4b06 ldr r3, [pc, #24] @ (80144d8 <prvCheckTasksWaitingTermination+0x58>)
  48789. 80144be: 681b ldr r3, [r3, #0]
  48790. 80144c0: 2b00 cmp r3, #0
  48791. 80144c2: d1e1 bne.n 8014488 <prvCheckTasksWaitingTermination+0x8>
  48792. }
  48793. }
  48794. #endif /* INCLUDE_vTaskDelete */
  48795. }
  48796. 80144c4: bf00 nop
  48797. 80144c6: bf00 nop
  48798. 80144c8: 3708 adds r7, #8
  48799. 80144ca: 46bd mov sp, r7
  48800. 80144cc: bd80 pop {r7, pc}
  48801. 80144ce: bf00 nop
  48802. 80144d0: 24004218 .word 0x24004218
  48803. 80144d4: 24004244 .word 0x24004244
  48804. 80144d8: 2400422c .word 0x2400422c
  48805. 080144dc <prvDeleteTCB>:
  48806. /*-----------------------------------------------------------*/
  48807. #if ( INCLUDE_vTaskDelete == 1 )
  48808. static void prvDeleteTCB( TCB_t *pxTCB )
  48809. {
  48810. 80144dc: b580 push {r7, lr}
  48811. 80144de: b084 sub sp, #16
  48812. 80144e0: af00 add r7, sp, #0
  48813. 80144e2: 6078 str r0, [r7, #4]
  48814. to the task to free any memory allocated at the application level.
  48815. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  48816. for additional information. */
  48817. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  48818. {
  48819. _reclaim_reent( &( pxTCB->xNewLib_reent ) );
  48820. 80144e4: 687b ldr r3, [r7, #4]
  48821. 80144e6: 3354 adds r3, #84 @ 0x54
  48822. 80144e8: 4618 mov r0, r3
  48823. 80144ea: f016 faf7 bl 802aadc <_reclaim_reent>
  48824. #elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  48825. {
  48826. /* The task could have been allocated statically or dynamically, so
  48827. check what was statically allocated before trying to free the
  48828. memory. */
  48829. if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB )
  48830. 80144ee: 687b ldr r3, [r7, #4]
  48831. 80144f0: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  48832. 80144f4: 2b00 cmp r3, #0
  48833. 80144f6: d108 bne.n 801450a <prvDeleteTCB+0x2e>
  48834. {
  48835. /* Both the stack and TCB were allocated dynamically, so both
  48836. must be freed. */
  48837. vPortFree( pxTCB->pxStack );
  48838. 80144f8: 687b ldr r3, [r7, #4]
  48839. 80144fa: 6b1b ldr r3, [r3, #48] @ 0x30
  48840. 80144fc: 4618 mov r0, r3
  48841. 80144fe: f001 fbcb bl 8015c98 <vPortFree>
  48842. vPortFree( pxTCB );
  48843. 8014502: 6878 ldr r0, [r7, #4]
  48844. 8014504: f001 fbc8 bl 8015c98 <vPortFree>
  48845. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  48846. mtCOVERAGE_TEST_MARKER();
  48847. }
  48848. }
  48849. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  48850. }
  48851. 8014508: e019 b.n 801453e <prvDeleteTCB+0x62>
  48852. else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY )
  48853. 801450a: 687b ldr r3, [r7, #4]
  48854. 801450c: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  48855. 8014510: 2b01 cmp r3, #1
  48856. 8014512: d103 bne.n 801451c <prvDeleteTCB+0x40>
  48857. vPortFree( pxTCB );
  48858. 8014514: 6878 ldr r0, [r7, #4]
  48859. 8014516: f001 fbbf bl 8015c98 <vPortFree>
  48860. }
  48861. 801451a: e010 b.n 801453e <prvDeleteTCB+0x62>
  48862. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  48863. 801451c: 687b ldr r3, [r7, #4]
  48864. 801451e: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  48865. 8014522: 2b02 cmp r3, #2
  48866. 8014524: d00b beq.n 801453e <prvDeleteTCB+0x62>
  48867. __asm volatile
  48868. 8014526: f04f 0350 mov.w r3, #80 @ 0x50
  48869. 801452a: f383 8811 msr BASEPRI, r3
  48870. 801452e: f3bf 8f6f isb sy
  48871. 8014532: f3bf 8f4f dsb sy
  48872. 8014536: 60fb str r3, [r7, #12]
  48873. }
  48874. 8014538: bf00 nop
  48875. 801453a: bf00 nop
  48876. 801453c: e7fd b.n 801453a <prvDeleteTCB+0x5e>
  48877. }
  48878. 801453e: bf00 nop
  48879. 8014540: 3710 adds r7, #16
  48880. 8014542: 46bd mov sp, r7
  48881. 8014544: bd80 pop {r7, pc}
  48882. ...
  48883. 08014548 <prvResetNextTaskUnblockTime>:
  48884. #endif /* INCLUDE_vTaskDelete */
  48885. /*-----------------------------------------------------------*/
  48886. static void prvResetNextTaskUnblockTime( void )
  48887. {
  48888. 8014548: b480 push {r7}
  48889. 801454a: b083 sub sp, #12
  48890. 801454c: af00 add r7, sp, #0
  48891. TCB_t *pxTCB;
  48892. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  48893. 801454e: 4b0c ldr r3, [pc, #48] @ (8014580 <prvResetNextTaskUnblockTime+0x38>)
  48894. 8014550: 681b ldr r3, [r3, #0]
  48895. 8014552: 681b ldr r3, [r3, #0]
  48896. 8014554: 2b00 cmp r3, #0
  48897. 8014556: d104 bne.n 8014562 <prvResetNextTaskUnblockTime+0x1a>
  48898. {
  48899. /* The new current delayed list is empty. Set xNextTaskUnblockTime to
  48900. the maximum possible value so it is extremely unlikely that the
  48901. if( xTickCount >= xNextTaskUnblockTime ) test will pass until
  48902. there is an item in the delayed list. */
  48903. xNextTaskUnblockTime = portMAX_DELAY;
  48904. 8014558: 4b0a ldr r3, [pc, #40] @ (8014584 <prvResetNextTaskUnblockTime+0x3c>)
  48905. 801455a: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  48906. 801455e: 601a str r2, [r3, #0]
  48907. which the task at the head of the delayed list should be removed
  48908. from the Blocked state. */
  48909. ( 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. */
  48910. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  48911. }
  48912. }
  48913. 8014560: e008 b.n 8014574 <prvResetNextTaskUnblockTime+0x2c>
  48914. ( 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. */
  48915. 8014562: 4b07 ldr r3, [pc, #28] @ (8014580 <prvResetNextTaskUnblockTime+0x38>)
  48916. 8014564: 681b ldr r3, [r3, #0]
  48917. 8014566: 68db ldr r3, [r3, #12]
  48918. 8014568: 68db ldr r3, [r3, #12]
  48919. 801456a: 607b str r3, [r7, #4]
  48920. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  48921. 801456c: 687b ldr r3, [r7, #4]
  48922. 801456e: 685b ldr r3, [r3, #4]
  48923. 8014570: 4a04 ldr r2, [pc, #16] @ (8014584 <prvResetNextTaskUnblockTime+0x3c>)
  48924. 8014572: 6013 str r3, [r2, #0]
  48925. }
  48926. 8014574: bf00 nop
  48927. 8014576: 370c adds r7, #12
  48928. 8014578: 46bd mov sp, r7
  48929. 801457a: f85d 7b04 ldr.w r7, [sp], #4
  48930. 801457e: 4770 bx lr
  48931. 8014580: 240041fc .word 0x240041fc
  48932. 8014584: 24004264 .word 0x24004264
  48933. 08014588 <xTaskGetCurrentTaskHandle>:
  48934. /*-----------------------------------------------------------*/
  48935. #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
  48936. TaskHandle_t xTaskGetCurrentTaskHandle( void )
  48937. {
  48938. 8014588: b480 push {r7}
  48939. 801458a: b083 sub sp, #12
  48940. 801458c: af00 add r7, sp, #0
  48941. TaskHandle_t xReturn;
  48942. /* A critical section is not required as this is not called from
  48943. an interrupt and the current TCB will always be the same for any
  48944. individual execution thread. */
  48945. xReturn = pxCurrentTCB;
  48946. 801458e: 4b05 ldr r3, [pc, #20] @ (80145a4 <xTaskGetCurrentTaskHandle+0x1c>)
  48947. 8014590: 681b ldr r3, [r3, #0]
  48948. 8014592: 607b str r3, [r7, #4]
  48949. return xReturn;
  48950. 8014594: 687b ldr r3, [r7, #4]
  48951. }
  48952. 8014596: 4618 mov r0, r3
  48953. 8014598: 370c adds r7, #12
  48954. 801459a: 46bd mov sp, r7
  48955. 801459c: f85d 7b04 ldr.w r7, [sp], #4
  48956. 80145a0: 4770 bx lr
  48957. 80145a2: bf00 nop
  48958. 80145a4: 24003d70 .word 0x24003d70
  48959. 080145a8 <xTaskGetSchedulerState>:
  48960. /*-----------------------------------------------------------*/
  48961. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  48962. BaseType_t xTaskGetSchedulerState( void )
  48963. {
  48964. 80145a8: b480 push {r7}
  48965. 80145aa: b083 sub sp, #12
  48966. 80145ac: af00 add r7, sp, #0
  48967. BaseType_t xReturn;
  48968. if( xSchedulerRunning == pdFALSE )
  48969. 80145ae: 4b0b ldr r3, [pc, #44] @ (80145dc <xTaskGetSchedulerState+0x34>)
  48970. 80145b0: 681b ldr r3, [r3, #0]
  48971. 80145b2: 2b00 cmp r3, #0
  48972. 80145b4: d102 bne.n 80145bc <xTaskGetSchedulerState+0x14>
  48973. {
  48974. xReturn = taskSCHEDULER_NOT_STARTED;
  48975. 80145b6: 2301 movs r3, #1
  48976. 80145b8: 607b str r3, [r7, #4]
  48977. 80145ba: e008 b.n 80145ce <xTaskGetSchedulerState+0x26>
  48978. }
  48979. else
  48980. {
  48981. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  48982. 80145bc: 4b08 ldr r3, [pc, #32] @ (80145e0 <xTaskGetSchedulerState+0x38>)
  48983. 80145be: 681b ldr r3, [r3, #0]
  48984. 80145c0: 2b00 cmp r3, #0
  48985. 80145c2: d102 bne.n 80145ca <xTaskGetSchedulerState+0x22>
  48986. {
  48987. xReturn = taskSCHEDULER_RUNNING;
  48988. 80145c4: 2302 movs r3, #2
  48989. 80145c6: 607b str r3, [r7, #4]
  48990. 80145c8: e001 b.n 80145ce <xTaskGetSchedulerState+0x26>
  48991. }
  48992. else
  48993. {
  48994. xReturn = taskSCHEDULER_SUSPENDED;
  48995. 80145ca: 2300 movs r3, #0
  48996. 80145cc: 607b str r3, [r7, #4]
  48997. }
  48998. }
  48999. return xReturn;
  49000. 80145ce: 687b ldr r3, [r7, #4]
  49001. }
  49002. 80145d0: 4618 mov r0, r3
  49003. 80145d2: 370c adds r7, #12
  49004. 80145d4: 46bd mov sp, r7
  49005. 80145d6: f85d 7b04 ldr.w r7, [sp], #4
  49006. 80145da: 4770 bx lr
  49007. 80145dc: 24004250 .word 0x24004250
  49008. 80145e0: 2400426c .word 0x2400426c
  49009. 080145e4 <xTaskPriorityInherit>:
  49010. /*-----------------------------------------------------------*/
  49011. #if ( configUSE_MUTEXES == 1 )
  49012. BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder )
  49013. {
  49014. 80145e4: b580 push {r7, lr}
  49015. 80145e6: b084 sub sp, #16
  49016. 80145e8: af00 add r7, sp, #0
  49017. 80145ea: 6078 str r0, [r7, #4]
  49018. TCB_t * const pxMutexHolderTCB = pxMutexHolder;
  49019. 80145ec: 687b ldr r3, [r7, #4]
  49020. 80145ee: 60bb str r3, [r7, #8]
  49021. BaseType_t xReturn = pdFALSE;
  49022. 80145f0: 2300 movs r3, #0
  49023. 80145f2: 60fb str r3, [r7, #12]
  49024. /* If the mutex was given back by an interrupt while the queue was
  49025. locked then the mutex holder might now be NULL. _RB_ Is this still
  49026. needed as interrupts can no longer use mutexes? */
  49027. if( pxMutexHolder != NULL )
  49028. 80145f4: 687b ldr r3, [r7, #4]
  49029. 80145f6: 2b00 cmp r3, #0
  49030. 80145f8: d051 beq.n 801469e <xTaskPriorityInherit+0xba>
  49031. {
  49032. /* If the holder of the mutex has a priority below the priority of
  49033. the task attempting to obtain the mutex then it will temporarily
  49034. inherit the priority of the task attempting to obtain the mutex. */
  49035. if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority )
  49036. 80145fa: 68bb ldr r3, [r7, #8]
  49037. 80145fc: 6ada ldr r2, [r3, #44] @ 0x2c
  49038. 80145fe: 4b2a ldr r3, [pc, #168] @ (80146a8 <xTaskPriorityInherit+0xc4>)
  49039. 8014600: 681b ldr r3, [r3, #0]
  49040. 8014602: 6adb ldr r3, [r3, #44] @ 0x2c
  49041. 8014604: 429a cmp r2, r3
  49042. 8014606: d241 bcs.n 801468c <xTaskPriorityInherit+0xa8>
  49043. {
  49044. /* Adjust the mutex holder state to account for its new
  49045. priority. Only reset the event list item value if the value is
  49046. not being used for anything else. */
  49047. if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  49048. 8014608: 68bb ldr r3, [r7, #8]
  49049. 801460a: 699b ldr r3, [r3, #24]
  49050. 801460c: 2b00 cmp r3, #0
  49051. 801460e: db06 blt.n 801461e <xTaskPriorityInherit+0x3a>
  49052. {
  49053. 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. */
  49054. 8014610: 4b25 ldr r3, [pc, #148] @ (80146a8 <xTaskPriorityInherit+0xc4>)
  49055. 8014612: 681b ldr r3, [r3, #0]
  49056. 8014614: 6adb ldr r3, [r3, #44] @ 0x2c
  49057. 8014616: f1c3 0238 rsb r2, r3, #56 @ 0x38
  49058. 801461a: 68bb ldr r3, [r7, #8]
  49059. 801461c: 619a str r2, [r3, #24]
  49060. mtCOVERAGE_TEST_MARKER();
  49061. }
  49062. /* If the task being modified is in the ready state it will need
  49063. to be moved into a new list. */
  49064. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE )
  49065. 801461e: 68bb ldr r3, [r7, #8]
  49066. 8014620: 6959 ldr r1, [r3, #20]
  49067. 8014622: 68bb ldr r3, [r7, #8]
  49068. 8014624: 6ada ldr r2, [r3, #44] @ 0x2c
  49069. 8014626: 4613 mov r3, r2
  49070. 8014628: 009b lsls r3, r3, #2
  49071. 801462a: 4413 add r3, r2
  49072. 801462c: 009b lsls r3, r3, #2
  49073. 801462e: 4a1f ldr r2, [pc, #124] @ (80146ac <xTaskPriorityInherit+0xc8>)
  49074. 8014630: 4413 add r3, r2
  49075. 8014632: 4299 cmp r1, r3
  49076. 8014634: d122 bne.n 801467c <xTaskPriorityInherit+0x98>
  49077. {
  49078. if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  49079. 8014636: 68bb ldr r3, [r7, #8]
  49080. 8014638: 3304 adds r3, #4
  49081. 801463a: 4618 mov r0, r3
  49082. 801463c: f7fd fc20 bl 8011e80 <uxListRemove>
  49083. {
  49084. mtCOVERAGE_TEST_MARKER();
  49085. }
  49086. /* Inherit the priority before being moved into the new list. */
  49087. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  49088. 8014640: 4b19 ldr r3, [pc, #100] @ (80146a8 <xTaskPriorityInherit+0xc4>)
  49089. 8014642: 681b ldr r3, [r3, #0]
  49090. 8014644: 6ada ldr r2, [r3, #44] @ 0x2c
  49091. 8014646: 68bb ldr r3, [r7, #8]
  49092. 8014648: 62da str r2, [r3, #44] @ 0x2c
  49093. prvAddTaskToReadyList( pxMutexHolderTCB );
  49094. 801464a: 68bb ldr r3, [r7, #8]
  49095. 801464c: 6ada ldr r2, [r3, #44] @ 0x2c
  49096. 801464e: 4b18 ldr r3, [pc, #96] @ (80146b0 <xTaskPriorityInherit+0xcc>)
  49097. 8014650: 681b ldr r3, [r3, #0]
  49098. 8014652: 429a cmp r2, r3
  49099. 8014654: d903 bls.n 801465e <xTaskPriorityInherit+0x7a>
  49100. 8014656: 68bb ldr r3, [r7, #8]
  49101. 8014658: 6adb ldr r3, [r3, #44] @ 0x2c
  49102. 801465a: 4a15 ldr r2, [pc, #84] @ (80146b0 <xTaskPriorityInherit+0xcc>)
  49103. 801465c: 6013 str r3, [r2, #0]
  49104. 801465e: 68bb ldr r3, [r7, #8]
  49105. 8014660: 6ada ldr r2, [r3, #44] @ 0x2c
  49106. 8014662: 4613 mov r3, r2
  49107. 8014664: 009b lsls r3, r3, #2
  49108. 8014666: 4413 add r3, r2
  49109. 8014668: 009b lsls r3, r3, #2
  49110. 801466a: 4a10 ldr r2, [pc, #64] @ (80146ac <xTaskPriorityInherit+0xc8>)
  49111. 801466c: 441a add r2, r3
  49112. 801466e: 68bb ldr r3, [r7, #8]
  49113. 8014670: 3304 adds r3, #4
  49114. 8014672: 4619 mov r1, r3
  49115. 8014674: 4610 mov r0, r2
  49116. 8014676: f7fd fba6 bl 8011dc6 <vListInsertEnd>
  49117. 801467a: e004 b.n 8014686 <xTaskPriorityInherit+0xa2>
  49118. }
  49119. else
  49120. {
  49121. /* Just inherit the priority. */
  49122. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  49123. 801467c: 4b0a ldr r3, [pc, #40] @ (80146a8 <xTaskPriorityInherit+0xc4>)
  49124. 801467e: 681b ldr r3, [r3, #0]
  49125. 8014680: 6ada ldr r2, [r3, #44] @ 0x2c
  49126. 8014682: 68bb ldr r3, [r7, #8]
  49127. 8014684: 62da str r2, [r3, #44] @ 0x2c
  49128. }
  49129. traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority );
  49130. /* Inheritance occurred. */
  49131. xReturn = pdTRUE;
  49132. 8014686: 2301 movs r3, #1
  49133. 8014688: 60fb str r3, [r7, #12]
  49134. 801468a: e008 b.n 801469e <xTaskPriorityInherit+0xba>
  49135. }
  49136. else
  49137. {
  49138. if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority )
  49139. 801468c: 68bb ldr r3, [r7, #8]
  49140. 801468e: 6cda ldr r2, [r3, #76] @ 0x4c
  49141. 8014690: 4b05 ldr r3, [pc, #20] @ (80146a8 <xTaskPriorityInherit+0xc4>)
  49142. 8014692: 681b ldr r3, [r3, #0]
  49143. 8014694: 6adb ldr r3, [r3, #44] @ 0x2c
  49144. 8014696: 429a cmp r2, r3
  49145. 8014698: d201 bcs.n 801469e <xTaskPriorityInherit+0xba>
  49146. current priority of the mutex holder is not lower than the
  49147. priority of the task attempting to take the mutex.
  49148. Therefore the mutex holder must have already inherited a
  49149. priority, but inheritance would have occurred if that had
  49150. not been the case. */
  49151. xReturn = pdTRUE;
  49152. 801469a: 2301 movs r3, #1
  49153. 801469c: 60fb str r3, [r7, #12]
  49154. else
  49155. {
  49156. mtCOVERAGE_TEST_MARKER();
  49157. }
  49158. return xReturn;
  49159. 801469e: 68fb ldr r3, [r7, #12]
  49160. }
  49161. 80146a0: 4618 mov r0, r3
  49162. 80146a2: 3710 adds r7, #16
  49163. 80146a4: 46bd mov sp, r7
  49164. 80146a6: bd80 pop {r7, pc}
  49165. 80146a8: 24003d70 .word 0x24003d70
  49166. 80146ac: 24003d74 .word 0x24003d74
  49167. 80146b0: 2400424c .word 0x2400424c
  49168. 080146b4 <xTaskPriorityDisinherit>:
  49169. /*-----------------------------------------------------------*/
  49170. #if ( configUSE_MUTEXES == 1 )
  49171. BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
  49172. {
  49173. 80146b4: b580 push {r7, lr}
  49174. 80146b6: b086 sub sp, #24
  49175. 80146b8: af00 add r7, sp, #0
  49176. 80146ba: 6078 str r0, [r7, #4]
  49177. TCB_t * const pxTCB = pxMutexHolder;
  49178. 80146bc: 687b ldr r3, [r7, #4]
  49179. 80146be: 613b str r3, [r7, #16]
  49180. BaseType_t xReturn = pdFALSE;
  49181. 80146c0: 2300 movs r3, #0
  49182. 80146c2: 617b str r3, [r7, #20]
  49183. if( pxMutexHolder != NULL )
  49184. 80146c4: 687b ldr r3, [r7, #4]
  49185. 80146c6: 2b00 cmp r3, #0
  49186. 80146c8: d058 beq.n 801477c <xTaskPriorityDisinherit+0xc8>
  49187. {
  49188. /* A task can only have an inherited priority if it holds the mutex.
  49189. If the mutex is held by a task then it cannot be given from an
  49190. interrupt, and if a mutex is given by the holding task then it must
  49191. be the running state task. */
  49192. configASSERT( pxTCB == pxCurrentTCB );
  49193. 80146ca: 4b2f ldr r3, [pc, #188] @ (8014788 <xTaskPriorityDisinherit+0xd4>)
  49194. 80146cc: 681b ldr r3, [r3, #0]
  49195. 80146ce: 693a ldr r2, [r7, #16]
  49196. 80146d0: 429a cmp r2, r3
  49197. 80146d2: d00b beq.n 80146ec <xTaskPriorityDisinherit+0x38>
  49198. __asm volatile
  49199. 80146d4: f04f 0350 mov.w r3, #80 @ 0x50
  49200. 80146d8: f383 8811 msr BASEPRI, r3
  49201. 80146dc: f3bf 8f6f isb sy
  49202. 80146e0: f3bf 8f4f dsb sy
  49203. 80146e4: 60fb str r3, [r7, #12]
  49204. }
  49205. 80146e6: bf00 nop
  49206. 80146e8: bf00 nop
  49207. 80146ea: e7fd b.n 80146e8 <xTaskPriorityDisinherit+0x34>
  49208. configASSERT( pxTCB->uxMutexesHeld );
  49209. 80146ec: 693b ldr r3, [r7, #16]
  49210. 80146ee: 6d1b ldr r3, [r3, #80] @ 0x50
  49211. 80146f0: 2b00 cmp r3, #0
  49212. 80146f2: d10b bne.n 801470c <xTaskPriorityDisinherit+0x58>
  49213. __asm volatile
  49214. 80146f4: f04f 0350 mov.w r3, #80 @ 0x50
  49215. 80146f8: f383 8811 msr BASEPRI, r3
  49216. 80146fc: f3bf 8f6f isb sy
  49217. 8014700: f3bf 8f4f dsb sy
  49218. 8014704: 60bb str r3, [r7, #8]
  49219. }
  49220. 8014706: bf00 nop
  49221. 8014708: bf00 nop
  49222. 801470a: e7fd b.n 8014708 <xTaskPriorityDisinherit+0x54>
  49223. ( pxTCB->uxMutexesHeld )--;
  49224. 801470c: 693b ldr r3, [r7, #16]
  49225. 801470e: 6d1b ldr r3, [r3, #80] @ 0x50
  49226. 8014710: 1e5a subs r2, r3, #1
  49227. 8014712: 693b ldr r3, [r7, #16]
  49228. 8014714: 651a str r2, [r3, #80] @ 0x50
  49229. /* Has the holder of the mutex inherited the priority of another
  49230. task? */
  49231. if( pxTCB->uxPriority != pxTCB->uxBasePriority )
  49232. 8014716: 693b ldr r3, [r7, #16]
  49233. 8014718: 6ada ldr r2, [r3, #44] @ 0x2c
  49234. 801471a: 693b ldr r3, [r7, #16]
  49235. 801471c: 6cdb ldr r3, [r3, #76] @ 0x4c
  49236. 801471e: 429a cmp r2, r3
  49237. 8014720: d02c beq.n 801477c <xTaskPriorityDisinherit+0xc8>
  49238. {
  49239. /* Only disinherit if no other mutexes are held. */
  49240. if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
  49241. 8014722: 693b ldr r3, [r7, #16]
  49242. 8014724: 6d1b ldr r3, [r3, #80] @ 0x50
  49243. 8014726: 2b00 cmp r3, #0
  49244. 8014728: d128 bne.n 801477c <xTaskPriorityDisinherit+0xc8>
  49245. /* A task can only have an inherited priority if it holds
  49246. the mutex. If the mutex is held by a task then it cannot be
  49247. given from an interrupt, and if a mutex is given by the
  49248. holding task then it must be the running state task. Remove
  49249. the holding task from the ready/delayed list. */
  49250. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  49251. 801472a: 693b ldr r3, [r7, #16]
  49252. 801472c: 3304 adds r3, #4
  49253. 801472e: 4618 mov r0, r3
  49254. 8014730: f7fd fba6 bl 8011e80 <uxListRemove>
  49255. }
  49256. /* Disinherit the priority before adding the task into the
  49257. new ready list. */
  49258. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  49259. pxTCB->uxPriority = pxTCB->uxBasePriority;
  49260. 8014734: 693b ldr r3, [r7, #16]
  49261. 8014736: 6cda ldr r2, [r3, #76] @ 0x4c
  49262. 8014738: 693b ldr r3, [r7, #16]
  49263. 801473a: 62da str r2, [r3, #44] @ 0x2c
  49264. /* Reset the event list item value. It cannot be in use for
  49265. any other purpose if this task is running, and it must be
  49266. running to give back the mutex. */
  49267. 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. */
  49268. 801473c: 693b ldr r3, [r7, #16]
  49269. 801473e: 6adb ldr r3, [r3, #44] @ 0x2c
  49270. 8014740: f1c3 0238 rsb r2, r3, #56 @ 0x38
  49271. 8014744: 693b ldr r3, [r7, #16]
  49272. 8014746: 619a str r2, [r3, #24]
  49273. prvAddTaskToReadyList( pxTCB );
  49274. 8014748: 693b ldr r3, [r7, #16]
  49275. 801474a: 6ada ldr r2, [r3, #44] @ 0x2c
  49276. 801474c: 4b0f ldr r3, [pc, #60] @ (801478c <xTaskPriorityDisinherit+0xd8>)
  49277. 801474e: 681b ldr r3, [r3, #0]
  49278. 8014750: 429a cmp r2, r3
  49279. 8014752: d903 bls.n 801475c <xTaskPriorityDisinherit+0xa8>
  49280. 8014754: 693b ldr r3, [r7, #16]
  49281. 8014756: 6adb ldr r3, [r3, #44] @ 0x2c
  49282. 8014758: 4a0c ldr r2, [pc, #48] @ (801478c <xTaskPriorityDisinherit+0xd8>)
  49283. 801475a: 6013 str r3, [r2, #0]
  49284. 801475c: 693b ldr r3, [r7, #16]
  49285. 801475e: 6ada ldr r2, [r3, #44] @ 0x2c
  49286. 8014760: 4613 mov r3, r2
  49287. 8014762: 009b lsls r3, r3, #2
  49288. 8014764: 4413 add r3, r2
  49289. 8014766: 009b lsls r3, r3, #2
  49290. 8014768: 4a09 ldr r2, [pc, #36] @ (8014790 <xTaskPriorityDisinherit+0xdc>)
  49291. 801476a: 441a add r2, r3
  49292. 801476c: 693b ldr r3, [r7, #16]
  49293. 801476e: 3304 adds r3, #4
  49294. 8014770: 4619 mov r1, r3
  49295. 8014772: 4610 mov r0, r2
  49296. 8014774: f7fd fb27 bl 8011dc6 <vListInsertEnd>
  49297. in an order different to that in which they were taken.
  49298. If a context switch did not occur when the first mutex was
  49299. returned, even if a task was waiting on it, then a context
  49300. switch should occur when the last mutex is returned whether
  49301. a task is waiting on it or not. */
  49302. xReturn = pdTRUE;
  49303. 8014778: 2301 movs r3, #1
  49304. 801477a: 617b str r3, [r7, #20]
  49305. else
  49306. {
  49307. mtCOVERAGE_TEST_MARKER();
  49308. }
  49309. return xReturn;
  49310. 801477c: 697b ldr r3, [r7, #20]
  49311. }
  49312. 801477e: 4618 mov r0, r3
  49313. 8014780: 3718 adds r7, #24
  49314. 8014782: 46bd mov sp, r7
  49315. 8014784: bd80 pop {r7, pc}
  49316. 8014786: bf00 nop
  49317. 8014788: 24003d70 .word 0x24003d70
  49318. 801478c: 2400424c .word 0x2400424c
  49319. 8014790: 24003d74 .word 0x24003d74
  49320. 08014794 <vTaskPriorityDisinheritAfterTimeout>:
  49321. /*-----------------------------------------------------------*/
  49322. #if ( configUSE_MUTEXES == 1 )
  49323. void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask )
  49324. {
  49325. 8014794: b580 push {r7, lr}
  49326. 8014796: b088 sub sp, #32
  49327. 8014798: af00 add r7, sp, #0
  49328. 801479a: 6078 str r0, [r7, #4]
  49329. 801479c: 6039 str r1, [r7, #0]
  49330. TCB_t * const pxTCB = pxMutexHolder;
  49331. 801479e: 687b ldr r3, [r7, #4]
  49332. 80147a0: 61bb str r3, [r7, #24]
  49333. UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
  49334. const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
  49335. 80147a2: 2301 movs r3, #1
  49336. 80147a4: 617b str r3, [r7, #20]
  49337. if( pxMutexHolder != NULL )
  49338. 80147a6: 687b ldr r3, [r7, #4]
  49339. 80147a8: 2b00 cmp r3, #0
  49340. 80147aa: d06c beq.n 8014886 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  49341. {
  49342. /* If pxMutexHolder is not NULL then the holder must hold at least
  49343. one mutex. */
  49344. configASSERT( pxTCB->uxMutexesHeld );
  49345. 80147ac: 69bb ldr r3, [r7, #24]
  49346. 80147ae: 6d1b ldr r3, [r3, #80] @ 0x50
  49347. 80147b0: 2b00 cmp r3, #0
  49348. 80147b2: d10b bne.n 80147cc <vTaskPriorityDisinheritAfterTimeout+0x38>
  49349. __asm volatile
  49350. 80147b4: f04f 0350 mov.w r3, #80 @ 0x50
  49351. 80147b8: f383 8811 msr BASEPRI, r3
  49352. 80147bc: f3bf 8f6f isb sy
  49353. 80147c0: f3bf 8f4f dsb sy
  49354. 80147c4: 60fb str r3, [r7, #12]
  49355. }
  49356. 80147c6: bf00 nop
  49357. 80147c8: bf00 nop
  49358. 80147ca: e7fd b.n 80147c8 <vTaskPriorityDisinheritAfterTimeout+0x34>
  49359. /* Determine the priority to which the priority of the task that
  49360. holds the mutex should be set. This will be the greater of the
  49361. holding task's base priority and the priority of the highest
  49362. priority task that is waiting to obtain the mutex. */
  49363. if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask )
  49364. 80147cc: 69bb ldr r3, [r7, #24]
  49365. 80147ce: 6cdb ldr r3, [r3, #76] @ 0x4c
  49366. 80147d0: 683a ldr r2, [r7, #0]
  49367. 80147d2: 429a cmp r2, r3
  49368. 80147d4: d902 bls.n 80147dc <vTaskPriorityDisinheritAfterTimeout+0x48>
  49369. {
  49370. uxPriorityToUse = uxHighestPriorityWaitingTask;
  49371. 80147d6: 683b ldr r3, [r7, #0]
  49372. 80147d8: 61fb str r3, [r7, #28]
  49373. 80147da: e002 b.n 80147e2 <vTaskPriorityDisinheritAfterTimeout+0x4e>
  49374. }
  49375. else
  49376. {
  49377. uxPriorityToUse = pxTCB->uxBasePriority;
  49378. 80147dc: 69bb ldr r3, [r7, #24]
  49379. 80147de: 6cdb ldr r3, [r3, #76] @ 0x4c
  49380. 80147e0: 61fb str r3, [r7, #28]
  49381. }
  49382. /* Does the priority need to change? */
  49383. if( pxTCB->uxPriority != uxPriorityToUse )
  49384. 80147e2: 69bb ldr r3, [r7, #24]
  49385. 80147e4: 6adb ldr r3, [r3, #44] @ 0x2c
  49386. 80147e6: 69fa ldr r2, [r7, #28]
  49387. 80147e8: 429a cmp r2, r3
  49388. 80147ea: d04c beq.n 8014886 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  49389. {
  49390. /* Only disinherit if no other mutexes are held. This is a
  49391. simplification in the priority inheritance implementation. If
  49392. the task that holds the mutex is also holding other mutexes then
  49393. the other mutexes may have caused the priority inheritance. */
  49394. if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld )
  49395. 80147ec: 69bb ldr r3, [r7, #24]
  49396. 80147ee: 6d1b ldr r3, [r3, #80] @ 0x50
  49397. 80147f0: 697a ldr r2, [r7, #20]
  49398. 80147f2: 429a cmp r2, r3
  49399. 80147f4: d147 bne.n 8014886 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  49400. {
  49401. /* If a task has timed out because it already holds the
  49402. mutex it was trying to obtain then it cannot of inherited
  49403. its own priority. */
  49404. configASSERT( pxTCB != pxCurrentTCB );
  49405. 80147f6: 4b26 ldr r3, [pc, #152] @ (8014890 <vTaskPriorityDisinheritAfterTimeout+0xfc>)
  49406. 80147f8: 681b ldr r3, [r3, #0]
  49407. 80147fa: 69ba ldr r2, [r7, #24]
  49408. 80147fc: 429a cmp r2, r3
  49409. 80147fe: d10b bne.n 8014818 <vTaskPriorityDisinheritAfterTimeout+0x84>
  49410. __asm volatile
  49411. 8014800: f04f 0350 mov.w r3, #80 @ 0x50
  49412. 8014804: f383 8811 msr BASEPRI, r3
  49413. 8014808: f3bf 8f6f isb sy
  49414. 801480c: f3bf 8f4f dsb sy
  49415. 8014810: 60bb str r3, [r7, #8]
  49416. }
  49417. 8014812: bf00 nop
  49418. 8014814: bf00 nop
  49419. 8014816: e7fd b.n 8014814 <vTaskPriorityDisinheritAfterTimeout+0x80>
  49420. /* Disinherit the priority, remembering the previous
  49421. priority to facilitate determining the subject task's
  49422. state. */
  49423. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  49424. uxPriorityUsedOnEntry = pxTCB->uxPriority;
  49425. 8014818: 69bb ldr r3, [r7, #24]
  49426. 801481a: 6adb ldr r3, [r3, #44] @ 0x2c
  49427. 801481c: 613b str r3, [r7, #16]
  49428. pxTCB->uxPriority = uxPriorityToUse;
  49429. 801481e: 69bb ldr r3, [r7, #24]
  49430. 8014820: 69fa ldr r2, [r7, #28]
  49431. 8014822: 62da str r2, [r3, #44] @ 0x2c
  49432. /* Only reset the event list item value if the value is not
  49433. being used for anything else. */
  49434. if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  49435. 8014824: 69bb ldr r3, [r7, #24]
  49436. 8014826: 699b ldr r3, [r3, #24]
  49437. 8014828: 2b00 cmp r3, #0
  49438. 801482a: db04 blt.n 8014836 <vTaskPriorityDisinheritAfterTimeout+0xa2>
  49439. {
  49440. 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. */
  49441. 801482c: 69fb ldr r3, [r7, #28]
  49442. 801482e: f1c3 0238 rsb r2, r3, #56 @ 0x38
  49443. 8014832: 69bb ldr r3, [r7, #24]
  49444. 8014834: 619a str r2, [r3, #24]
  49445. then the task that holds the mutex could be in either the
  49446. Ready, Blocked or Suspended states. Only remove the task
  49447. from its current state list if it is in the Ready state as
  49448. the task's priority is going to change and there is one
  49449. Ready list per priority. */
  49450. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE )
  49451. 8014836: 69bb ldr r3, [r7, #24]
  49452. 8014838: 6959 ldr r1, [r3, #20]
  49453. 801483a: 693a ldr r2, [r7, #16]
  49454. 801483c: 4613 mov r3, r2
  49455. 801483e: 009b lsls r3, r3, #2
  49456. 8014840: 4413 add r3, r2
  49457. 8014842: 009b lsls r3, r3, #2
  49458. 8014844: 4a13 ldr r2, [pc, #76] @ (8014894 <vTaskPriorityDisinheritAfterTimeout+0x100>)
  49459. 8014846: 4413 add r3, r2
  49460. 8014848: 4299 cmp r1, r3
  49461. 801484a: d11c bne.n 8014886 <vTaskPriorityDisinheritAfterTimeout+0xf2>
  49462. {
  49463. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  49464. 801484c: 69bb ldr r3, [r7, #24]
  49465. 801484e: 3304 adds r3, #4
  49466. 8014850: 4618 mov r0, r3
  49467. 8014852: f7fd fb15 bl 8011e80 <uxListRemove>
  49468. else
  49469. {
  49470. mtCOVERAGE_TEST_MARKER();
  49471. }
  49472. prvAddTaskToReadyList( pxTCB );
  49473. 8014856: 69bb ldr r3, [r7, #24]
  49474. 8014858: 6ada ldr r2, [r3, #44] @ 0x2c
  49475. 801485a: 4b0f ldr r3, [pc, #60] @ (8014898 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  49476. 801485c: 681b ldr r3, [r3, #0]
  49477. 801485e: 429a cmp r2, r3
  49478. 8014860: d903 bls.n 801486a <vTaskPriorityDisinheritAfterTimeout+0xd6>
  49479. 8014862: 69bb ldr r3, [r7, #24]
  49480. 8014864: 6adb ldr r3, [r3, #44] @ 0x2c
  49481. 8014866: 4a0c ldr r2, [pc, #48] @ (8014898 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  49482. 8014868: 6013 str r3, [r2, #0]
  49483. 801486a: 69bb ldr r3, [r7, #24]
  49484. 801486c: 6ada ldr r2, [r3, #44] @ 0x2c
  49485. 801486e: 4613 mov r3, r2
  49486. 8014870: 009b lsls r3, r3, #2
  49487. 8014872: 4413 add r3, r2
  49488. 8014874: 009b lsls r3, r3, #2
  49489. 8014876: 4a07 ldr r2, [pc, #28] @ (8014894 <vTaskPriorityDisinheritAfterTimeout+0x100>)
  49490. 8014878: 441a add r2, r3
  49491. 801487a: 69bb ldr r3, [r7, #24]
  49492. 801487c: 3304 adds r3, #4
  49493. 801487e: 4619 mov r1, r3
  49494. 8014880: 4610 mov r0, r2
  49495. 8014882: f7fd faa0 bl 8011dc6 <vListInsertEnd>
  49496. }
  49497. else
  49498. {
  49499. mtCOVERAGE_TEST_MARKER();
  49500. }
  49501. }
  49502. 8014886: bf00 nop
  49503. 8014888: 3720 adds r7, #32
  49504. 801488a: 46bd mov sp, r7
  49505. 801488c: bd80 pop {r7, pc}
  49506. 801488e: bf00 nop
  49507. 8014890: 24003d70 .word 0x24003d70
  49508. 8014894: 24003d74 .word 0x24003d74
  49509. 8014898: 2400424c .word 0x2400424c
  49510. 0801489c <pvTaskIncrementMutexHeldCount>:
  49511. /*-----------------------------------------------------------*/
  49512. #if ( configUSE_MUTEXES == 1 )
  49513. TaskHandle_t pvTaskIncrementMutexHeldCount( void )
  49514. {
  49515. 801489c: b480 push {r7}
  49516. 801489e: af00 add r7, sp, #0
  49517. /* If xSemaphoreCreateMutex() is called before any tasks have been created
  49518. then pxCurrentTCB will be NULL. */
  49519. if( pxCurrentTCB != NULL )
  49520. 80148a0: 4b07 ldr r3, [pc, #28] @ (80148c0 <pvTaskIncrementMutexHeldCount+0x24>)
  49521. 80148a2: 681b ldr r3, [r3, #0]
  49522. 80148a4: 2b00 cmp r3, #0
  49523. 80148a6: d004 beq.n 80148b2 <pvTaskIncrementMutexHeldCount+0x16>
  49524. {
  49525. ( pxCurrentTCB->uxMutexesHeld )++;
  49526. 80148a8: 4b05 ldr r3, [pc, #20] @ (80148c0 <pvTaskIncrementMutexHeldCount+0x24>)
  49527. 80148aa: 681b ldr r3, [r3, #0]
  49528. 80148ac: 6d1a ldr r2, [r3, #80] @ 0x50
  49529. 80148ae: 3201 adds r2, #1
  49530. 80148b0: 651a str r2, [r3, #80] @ 0x50
  49531. }
  49532. return pxCurrentTCB;
  49533. 80148b2: 4b03 ldr r3, [pc, #12] @ (80148c0 <pvTaskIncrementMutexHeldCount+0x24>)
  49534. 80148b4: 681b ldr r3, [r3, #0]
  49535. }
  49536. 80148b6: 4618 mov r0, r3
  49537. 80148b8: 46bd mov sp, r7
  49538. 80148ba: f85d 7b04 ldr.w r7, [sp], #4
  49539. 80148be: 4770 bx lr
  49540. 80148c0: 24003d70 .word 0x24003d70
  49541. 080148c4 <xTaskNotifyWait>:
  49542. /*-----------------------------------------------------------*/
  49543. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  49544. BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )
  49545. {
  49546. 80148c4: b580 push {r7, lr}
  49547. 80148c6: b086 sub sp, #24
  49548. 80148c8: af00 add r7, sp, #0
  49549. 80148ca: 60f8 str r0, [r7, #12]
  49550. 80148cc: 60b9 str r1, [r7, #8]
  49551. 80148ce: 607a str r2, [r7, #4]
  49552. 80148d0: 603b str r3, [r7, #0]
  49553. BaseType_t xReturn;
  49554. taskENTER_CRITICAL();
  49555. 80148d2: f000 fff1 bl 80158b8 <vPortEnterCritical>
  49556. {
  49557. /* Only block if a notification is not already pending. */
  49558. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  49559. 80148d6: 4b29 ldr r3, [pc, #164] @ (801497c <xTaskNotifyWait+0xb8>)
  49560. 80148d8: 681b ldr r3, [r3, #0]
  49561. 80148da: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  49562. 80148de: b2db uxtb r3, r3
  49563. 80148e0: 2b02 cmp r3, #2
  49564. 80148e2: d01c beq.n 801491e <xTaskNotifyWait+0x5a>
  49565. {
  49566. /* Clear bits in the task's notification value as bits may get
  49567. set by the notifying task or interrupt. This can be used to
  49568. clear the value to zero. */
  49569. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry;
  49570. 80148e4: 4b25 ldr r3, [pc, #148] @ (801497c <xTaskNotifyWait+0xb8>)
  49571. 80148e6: 681b ldr r3, [r3, #0]
  49572. 80148e8: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  49573. 80148ec: 68fa ldr r2, [r7, #12]
  49574. 80148ee: 43d2 mvns r2, r2
  49575. 80148f0: 400a ands r2, r1
  49576. 80148f2: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  49577. /* Mark this task as waiting for a notification. */
  49578. pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION;
  49579. 80148f6: 4b21 ldr r3, [pc, #132] @ (801497c <xTaskNotifyWait+0xb8>)
  49580. 80148f8: 681b ldr r3, [r3, #0]
  49581. 80148fa: 2201 movs r2, #1
  49582. 80148fc: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  49583. if( xTicksToWait > ( TickType_t ) 0 )
  49584. 8014900: 683b ldr r3, [r7, #0]
  49585. 8014902: 2b00 cmp r3, #0
  49586. 8014904: d00b beq.n 801491e <xTaskNotifyWait+0x5a>
  49587. {
  49588. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  49589. 8014906: 2101 movs r1, #1
  49590. 8014908: 6838 ldr r0, [r7, #0]
  49591. 801490a: f000 fa09 bl 8014d20 <prvAddCurrentTaskToDelayedList>
  49592. /* All ports are written to allow a yield in a critical
  49593. section (some will yield immediately, others wait until the
  49594. critical section exits) - but it is not something that
  49595. application code should ever do. */
  49596. portYIELD_WITHIN_API();
  49597. 801490e: 4b1c ldr r3, [pc, #112] @ (8014980 <xTaskNotifyWait+0xbc>)
  49598. 8014910: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49599. 8014914: 601a str r2, [r3, #0]
  49600. 8014916: f3bf 8f4f dsb sy
  49601. 801491a: f3bf 8f6f isb sy
  49602. else
  49603. {
  49604. mtCOVERAGE_TEST_MARKER();
  49605. }
  49606. }
  49607. taskEXIT_CRITICAL();
  49608. 801491e: f000 fffd bl 801591c <vPortExitCritical>
  49609. taskENTER_CRITICAL();
  49610. 8014922: f000 ffc9 bl 80158b8 <vPortEnterCritical>
  49611. {
  49612. traceTASK_NOTIFY_WAIT();
  49613. if( pulNotificationValue != NULL )
  49614. 8014926: 687b ldr r3, [r7, #4]
  49615. 8014928: 2b00 cmp r3, #0
  49616. 801492a: d005 beq.n 8014938 <xTaskNotifyWait+0x74>
  49617. {
  49618. /* Output the current notification value, which may or may not
  49619. have changed. */
  49620. *pulNotificationValue = pxCurrentTCB->ulNotifiedValue;
  49621. 801492c: 4b13 ldr r3, [pc, #76] @ (801497c <xTaskNotifyWait+0xb8>)
  49622. 801492e: 681b ldr r3, [r3, #0]
  49623. 8014930: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  49624. 8014934: 687b ldr r3, [r7, #4]
  49625. 8014936: 601a str r2, [r3, #0]
  49626. /* If ucNotifyValue is set then either the task never entered the
  49627. blocked state (because a notification was already pending) or the
  49628. task unblocked because of a notification. Otherwise the task
  49629. unblocked because of a timeout. */
  49630. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  49631. 8014938: 4b10 ldr r3, [pc, #64] @ (801497c <xTaskNotifyWait+0xb8>)
  49632. 801493a: 681b ldr r3, [r3, #0]
  49633. 801493c: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  49634. 8014940: b2db uxtb r3, r3
  49635. 8014942: 2b02 cmp r3, #2
  49636. 8014944: d002 beq.n 801494c <xTaskNotifyWait+0x88>
  49637. {
  49638. /* A notification was not received. */
  49639. xReturn = pdFALSE;
  49640. 8014946: 2300 movs r3, #0
  49641. 8014948: 617b str r3, [r7, #20]
  49642. 801494a: e00a b.n 8014962 <xTaskNotifyWait+0x9e>
  49643. }
  49644. else
  49645. {
  49646. /* A notification was already pending or a notification was
  49647. received while the task was waiting. */
  49648. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit;
  49649. 801494c: 4b0b ldr r3, [pc, #44] @ (801497c <xTaskNotifyWait+0xb8>)
  49650. 801494e: 681b ldr r3, [r3, #0]
  49651. 8014950: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  49652. 8014954: 68ba ldr r2, [r7, #8]
  49653. 8014956: 43d2 mvns r2, r2
  49654. 8014958: 400a ands r2, r1
  49655. 801495a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  49656. xReturn = pdTRUE;
  49657. 801495e: 2301 movs r3, #1
  49658. 8014960: 617b str r3, [r7, #20]
  49659. }
  49660. pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  49661. 8014962: 4b06 ldr r3, [pc, #24] @ (801497c <xTaskNotifyWait+0xb8>)
  49662. 8014964: 681b ldr r3, [r3, #0]
  49663. 8014966: 2200 movs r2, #0
  49664. 8014968: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  49665. }
  49666. taskEXIT_CRITICAL();
  49667. 801496c: f000 ffd6 bl 801591c <vPortExitCritical>
  49668. return xReturn;
  49669. 8014970: 697b ldr r3, [r7, #20]
  49670. }
  49671. 8014972: 4618 mov r0, r3
  49672. 8014974: 3718 adds r7, #24
  49673. 8014976: 46bd mov sp, r7
  49674. 8014978: bd80 pop {r7, pc}
  49675. 801497a: bf00 nop
  49676. 801497c: 24003d70 .word 0x24003d70
  49677. 8014980: e000ed04 .word 0xe000ed04
  49678. 08014984 <xTaskGenericNotify>:
  49679. /*-----------------------------------------------------------*/
  49680. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  49681. BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue )
  49682. {
  49683. 8014984: b580 push {r7, lr}
  49684. 8014986: b08a sub sp, #40 @ 0x28
  49685. 8014988: af00 add r7, sp, #0
  49686. 801498a: 60f8 str r0, [r7, #12]
  49687. 801498c: 60b9 str r1, [r7, #8]
  49688. 801498e: 603b str r3, [r7, #0]
  49689. 8014990: 4613 mov r3, r2
  49690. 8014992: 71fb strb r3, [r7, #7]
  49691. TCB_t * pxTCB;
  49692. BaseType_t xReturn = pdPASS;
  49693. 8014994: 2301 movs r3, #1
  49694. 8014996: 627b str r3, [r7, #36] @ 0x24
  49695. uint8_t ucOriginalNotifyState;
  49696. configASSERT( xTaskToNotify );
  49697. 8014998: 68fb ldr r3, [r7, #12]
  49698. 801499a: 2b00 cmp r3, #0
  49699. 801499c: d10b bne.n 80149b6 <xTaskGenericNotify+0x32>
  49700. __asm volatile
  49701. 801499e: f04f 0350 mov.w r3, #80 @ 0x50
  49702. 80149a2: f383 8811 msr BASEPRI, r3
  49703. 80149a6: f3bf 8f6f isb sy
  49704. 80149aa: f3bf 8f4f dsb sy
  49705. 80149ae: 61bb str r3, [r7, #24]
  49706. }
  49707. 80149b0: bf00 nop
  49708. 80149b2: bf00 nop
  49709. 80149b4: e7fd b.n 80149b2 <xTaskGenericNotify+0x2e>
  49710. pxTCB = xTaskToNotify;
  49711. 80149b6: 68fb ldr r3, [r7, #12]
  49712. 80149b8: 623b str r3, [r7, #32]
  49713. taskENTER_CRITICAL();
  49714. 80149ba: f000 ff7d bl 80158b8 <vPortEnterCritical>
  49715. {
  49716. if( pulPreviousNotificationValue != NULL )
  49717. 80149be: 683b ldr r3, [r7, #0]
  49718. 80149c0: 2b00 cmp r3, #0
  49719. 80149c2: d004 beq.n 80149ce <xTaskGenericNotify+0x4a>
  49720. {
  49721. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  49722. 80149c4: 6a3b ldr r3, [r7, #32]
  49723. 80149c6: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  49724. 80149ca: 683b ldr r3, [r7, #0]
  49725. 80149cc: 601a str r2, [r3, #0]
  49726. }
  49727. ucOriginalNotifyState = pxTCB->ucNotifyState;
  49728. 80149ce: 6a3b ldr r3, [r7, #32]
  49729. 80149d0: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  49730. 80149d4: 77fb strb r3, [r7, #31]
  49731. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  49732. 80149d6: 6a3b ldr r3, [r7, #32]
  49733. 80149d8: 2202 movs r2, #2
  49734. 80149da: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  49735. switch( eAction )
  49736. 80149de: 79fb ldrb r3, [r7, #7]
  49737. 80149e0: 2b04 cmp r3, #4
  49738. 80149e2: d82e bhi.n 8014a42 <xTaskGenericNotify+0xbe>
  49739. 80149e4: a201 add r2, pc, #4 @ (adr r2, 80149ec <xTaskGenericNotify+0x68>)
  49740. 80149e6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  49741. 80149ea: bf00 nop
  49742. 80149ec: 08014a67 .word 0x08014a67
  49743. 80149f0: 08014a01 .word 0x08014a01
  49744. 80149f4: 08014a13 .word 0x08014a13
  49745. 80149f8: 08014a23 .word 0x08014a23
  49746. 80149fc: 08014a2d .word 0x08014a2d
  49747. {
  49748. case eSetBits :
  49749. pxTCB->ulNotifiedValue |= ulValue;
  49750. 8014a00: 6a3b ldr r3, [r7, #32]
  49751. 8014a02: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  49752. 8014a06: 68bb ldr r3, [r7, #8]
  49753. 8014a08: 431a orrs r2, r3
  49754. 8014a0a: 6a3b ldr r3, [r7, #32]
  49755. 8014a0c: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  49756. break;
  49757. 8014a10: e02c b.n 8014a6c <xTaskGenericNotify+0xe8>
  49758. case eIncrement :
  49759. ( pxTCB->ulNotifiedValue )++;
  49760. 8014a12: 6a3b ldr r3, [r7, #32]
  49761. 8014a14: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  49762. 8014a18: 1c5a adds r2, r3, #1
  49763. 8014a1a: 6a3b ldr r3, [r7, #32]
  49764. 8014a1c: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  49765. break;
  49766. 8014a20: e024 b.n 8014a6c <xTaskGenericNotify+0xe8>
  49767. case eSetValueWithOverwrite :
  49768. pxTCB->ulNotifiedValue = ulValue;
  49769. 8014a22: 6a3b ldr r3, [r7, #32]
  49770. 8014a24: 68ba ldr r2, [r7, #8]
  49771. 8014a26: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  49772. break;
  49773. 8014a2a: e01f b.n 8014a6c <xTaskGenericNotify+0xe8>
  49774. case eSetValueWithoutOverwrite :
  49775. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  49776. 8014a2c: 7ffb ldrb r3, [r7, #31]
  49777. 8014a2e: 2b02 cmp r3, #2
  49778. 8014a30: d004 beq.n 8014a3c <xTaskGenericNotify+0xb8>
  49779. {
  49780. pxTCB->ulNotifiedValue = ulValue;
  49781. 8014a32: 6a3b ldr r3, [r7, #32]
  49782. 8014a34: 68ba ldr r2, [r7, #8]
  49783. 8014a36: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  49784. else
  49785. {
  49786. /* The value could not be written to the task. */
  49787. xReturn = pdFAIL;
  49788. }
  49789. break;
  49790. 8014a3a: e017 b.n 8014a6c <xTaskGenericNotify+0xe8>
  49791. xReturn = pdFAIL;
  49792. 8014a3c: 2300 movs r3, #0
  49793. 8014a3e: 627b str r3, [r7, #36] @ 0x24
  49794. break;
  49795. 8014a40: e014 b.n 8014a6c <xTaskGenericNotify+0xe8>
  49796. default:
  49797. /* Should not get here if all enums are handled.
  49798. Artificially force an assert by testing a value the
  49799. compiler can't assume is const. */
  49800. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  49801. 8014a42: 6a3b ldr r3, [r7, #32]
  49802. 8014a44: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  49803. 8014a48: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49804. 8014a4c: d00d beq.n 8014a6a <xTaskGenericNotify+0xe6>
  49805. __asm volatile
  49806. 8014a4e: f04f 0350 mov.w r3, #80 @ 0x50
  49807. 8014a52: f383 8811 msr BASEPRI, r3
  49808. 8014a56: f3bf 8f6f isb sy
  49809. 8014a5a: f3bf 8f4f dsb sy
  49810. 8014a5e: 617b str r3, [r7, #20]
  49811. }
  49812. 8014a60: bf00 nop
  49813. 8014a62: bf00 nop
  49814. 8014a64: e7fd b.n 8014a62 <xTaskGenericNotify+0xde>
  49815. break;
  49816. 8014a66: bf00 nop
  49817. 8014a68: e000 b.n 8014a6c <xTaskGenericNotify+0xe8>
  49818. break;
  49819. 8014a6a: bf00 nop
  49820. traceTASK_NOTIFY();
  49821. /* If the task is in the blocked state specifically to wait for a
  49822. notification then unblock it now. */
  49823. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  49824. 8014a6c: 7ffb ldrb r3, [r7, #31]
  49825. 8014a6e: 2b01 cmp r3, #1
  49826. 8014a70: d13b bne.n 8014aea <xTaskGenericNotify+0x166>
  49827. {
  49828. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  49829. 8014a72: 6a3b ldr r3, [r7, #32]
  49830. 8014a74: 3304 adds r3, #4
  49831. 8014a76: 4618 mov r0, r3
  49832. 8014a78: f7fd fa02 bl 8011e80 <uxListRemove>
  49833. prvAddTaskToReadyList( pxTCB );
  49834. 8014a7c: 6a3b ldr r3, [r7, #32]
  49835. 8014a7e: 6ada ldr r2, [r3, #44] @ 0x2c
  49836. 8014a80: 4b1d ldr r3, [pc, #116] @ (8014af8 <xTaskGenericNotify+0x174>)
  49837. 8014a82: 681b ldr r3, [r3, #0]
  49838. 8014a84: 429a cmp r2, r3
  49839. 8014a86: d903 bls.n 8014a90 <xTaskGenericNotify+0x10c>
  49840. 8014a88: 6a3b ldr r3, [r7, #32]
  49841. 8014a8a: 6adb ldr r3, [r3, #44] @ 0x2c
  49842. 8014a8c: 4a1a ldr r2, [pc, #104] @ (8014af8 <xTaskGenericNotify+0x174>)
  49843. 8014a8e: 6013 str r3, [r2, #0]
  49844. 8014a90: 6a3b ldr r3, [r7, #32]
  49845. 8014a92: 6ada ldr r2, [r3, #44] @ 0x2c
  49846. 8014a94: 4613 mov r3, r2
  49847. 8014a96: 009b lsls r3, r3, #2
  49848. 8014a98: 4413 add r3, r2
  49849. 8014a9a: 009b lsls r3, r3, #2
  49850. 8014a9c: 4a17 ldr r2, [pc, #92] @ (8014afc <xTaskGenericNotify+0x178>)
  49851. 8014a9e: 441a add r2, r3
  49852. 8014aa0: 6a3b ldr r3, [r7, #32]
  49853. 8014aa2: 3304 adds r3, #4
  49854. 8014aa4: 4619 mov r1, r3
  49855. 8014aa6: 4610 mov r0, r2
  49856. 8014aa8: f7fd f98d bl 8011dc6 <vListInsertEnd>
  49857. /* The task should not have been on an event list. */
  49858. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  49859. 8014aac: 6a3b ldr r3, [r7, #32]
  49860. 8014aae: 6a9b ldr r3, [r3, #40] @ 0x28
  49861. 8014ab0: 2b00 cmp r3, #0
  49862. 8014ab2: d00b beq.n 8014acc <xTaskGenericNotify+0x148>
  49863. __asm volatile
  49864. 8014ab4: f04f 0350 mov.w r3, #80 @ 0x50
  49865. 8014ab8: f383 8811 msr BASEPRI, r3
  49866. 8014abc: f3bf 8f6f isb sy
  49867. 8014ac0: f3bf 8f4f dsb sy
  49868. 8014ac4: 613b str r3, [r7, #16]
  49869. }
  49870. 8014ac6: bf00 nop
  49871. 8014ac8: bf00 nop
  49872. 8014aca: e7fd b.n 8014ac8 <xTaskGenericNotify+0x144>
  49873. earliest possible time. */
  49874. prvResetNextTaskUnblockTime();
  49875. }
  49876. #endif
  49877. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  49878. 8014acc: 6a3b ldr r3, [r7, #32]
  49879. 8014ace: 6ada ldr r2, [r3, #44] @ 0x2c
  49880. 8014ad0: 4b0b ldr r3, [pc, #44] @ (8014b00 <xTaskGenericNotify+0x17c>)
  49881. 8014ad2: 681b ldr r3, [r3, #0]
  49882. 8014ad4: 6adb ldr r3, [r3, #44] @ 0x2c
  49883. 8014ad6: 429a cmp r2, r3
  49884. 8014ad8: d907 bls.n 8014aea <xTaskGenericNotify+0x166>
  49885. {
  49886. /* The notified task has a priority above the currently
  49887. executing task so a yield is required. */
  49888. taskYIELD_IF_USING_PREEMPTION();
  49889. 8014ada: 4b0a ldr r3, [pc, #40] @ (8014b04 <xTaskGenericNotify+0x180>)
  49890. 8014adc: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49891. 8014ae0: 601a str r2, [r3, #0]
  49892. 8014ae2: f3bf 8f4f dsb sy
  49893. 8014ae6: f3bf 8f6f isb sy
  49894. else
  49895. {
  49896. mtCOVERAGE_TEST_MARKER();
  49897. }
  49898. }
  49899. taskEXIT_CRITICAL();
  49900. 8014aea: f000 ff17 bl 801591c <vPortExitCritical>
  49901. return xReturn;
  49902. 8014aee: 6a7b ldr r3, [r7, #36] @ 0x24
  49903. }
  49904. 8014af0: 4618 mov r0, r3
  49905. 8014af2: 3728 adds r7, #40 @ 0x28
  49906. 8014af4: 46bd mov sp, r7
  49907. 8014af6: bd80 pop {r7, pc}
  49908. 8014af8: 2400424c .word 0x2400424c
  49909. 8014afc: 24003d74 .word 0x24003d74
  49910. 8014b00: 24003d70 .word 0x24003d70
  49911. 8014b04: e000ed04 .word 0xe000ed04
  49912. 08014b08 <xTaskGenericNotifyFromISR>:
  49913. /*-----------------------------------------------------------*/
  49914. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  49915. BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken )
  49916. {
  49917. 8014b08: b580 push {r7, lr}
  49918. 8014b0a: b08e sub sp, #56 @ 0x38
  49919. 8014b0c: af00 add r7, sp, #0
  49920. 8014b0e: 60f8 str r0, [r7, #12]
  49921. 8014b10: 60b9 str r1, [r7, #8]
  49922. 8014b12: 603b str r3, [r7, #0]
  49923. 8014b14: 4613 mov r3, r2
  49924. 8014b16: 71fb strb r3, [r7, #7]
  49925. TCB_t * pxTCB;
  49926. uint8_t ucOriginalNotifyState;
  49927. BaseType_t xReturn = pdPASS;
  49928. 8014b18: 2301 movs r3, #1
  49929. 8014b1a: 637b str r3, [r7, #52] @ 0x34
  49930. UBaseType_t uxSavedInterruptStatus;
  49931. configASSERT( xTaskToNotify );
  49932. 8014b1c: 68fb ldr r3, [r7, #12]
  49933. 8014b1e: 2b00 cmp r3, #0
  49934. 8014b20: d10b bne.n 8014b3a <xTaskGenericNotifyFromISR+0x32>
  49935. __asm volatile
  49936. 8014b22: f04f 0350 mov.w r3, #80 @ 0x50
  49937. 8014b26: f383 8811 msr BASEPRI, r3
  49938. 8014b2a: f3bf 8f6f isb sy
  49939. 8014b2e: f3bf 8f4f dsb sy
  49940. 8014b32: 627b str r3, [r7, #36] @ 0x24
  49941. }
  49942. 8014b34: bf00 nop
  49943. 8014b36: bf00 nop
  49944. 8014b38: e7fd b.n 8014b36 <xTaskGenericNotifyFromISR+0x2e>
  49945. below the maximum system call interrupt priority. FreeRTOS maintains a
  49946. separate interrupt safe API to ensure interrupt entry is as fast and as
  49947. simple as possible. More information (albeit Cortex-M specific) is
  49948. provided on the following link:
  49949. http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  49950. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  49951. 8014b3a: f000 ff9d bl 8015a78 <vPortValidateInterruptPriority>
  49952. pxTCB = xTaskToNotify;
  49953. 8014b3e: 68fb ldr r3, [r7, #12]
  49954. 8014b40: 633b str r3, [r7, #48] @ 0x30
  49955. __asm volatile
  49956. 8014b42: f3ef 8211 mrs r2, BASEPRI
  49957. 8014b46: f04f 0350 mov.w r3, #80 @ 0x50
  49958. 8014b4a: f383 8811 msr BASEPRI, r3
  49959. 8014b4e: f3bf 8f6f isb sy
  49960. 8014b52: f3bf 8f4f dsb sy
  49961. 8014b56: 623a str r2, [r7, #32]
  49962. 8014b58: 61fb str r3, [r7, #28]
  49963. return ulOriginalBASEPRI;
  49964. 8014b5a: 6a3b ldr r3, [r7, #32]
  49965. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  49966. 8014b5c: 62fb str r3, [r7, #44] @ 0x2c
  49967. {
  49968. if( pulPreviousNotificationValue != NULL )
  49969. 8014b5e: 683b ldr r3, [r7, #0]
  49970. 8014b60: 2b00 cmp r3, #0
  49971. 8014b62: d004 beq.n 8014b6e <xTaskGenericNotifyFromISR+0x66>
  49972. {
  49973. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  49974. 8014b64: 6b3b ldr r3, [r7, #48] @ 0x30
  49975. 8014b66: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  49976. 8014b6a: 683b ldr r3, [r7, #0]
  49977. 8014b6c: 601a str r2, [r3, #0]
  49978. }
  49979. ucOriginalNotifyState = pxTCB->ucNotifyState;
  49980. 8014b6e: 6b3b ldr r3, [r7, #48] @ 0x30
  49981. 8014b70: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  49982. 8014b74: f887 302b strb.w r3, [r7, #43] @ 0x2b
  49983. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  49984. 8014b78: 6b3b ldr r3, [r7, #48] @ 0x30
  49985. 8014b7a: 2202 movs r2, #2
  49986. 8014b7c: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  49987. switch( eAction )
  49988. 8014b80: 79fb ldrb r3, [r7, #7]
  49989. 8014b82: 2b04 cmp r3, #4
  49990. 8014b84: d82e bhi.n 8014be4 <xTaskGenericNotifyFromISR+0xdc>
  49991. 8014b86: a201 add r2, pc, #4 @ (adr r2, 8014b8c <xTaskGenericNotifyFromISR+0x84>)
  49992. 8014b88: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  49993. 8014b8c: 08014c09 .word 0x08014c09
  49994. 8014b90: 08014ba1 .word 0x08014ba1
  49995. 8014b94: 08014bb3 .word 0x08014bb3
  49996. 8014b98: 08014bc3 .word 0x08014bc3
  49997. 8014b9c: 08014bcd .word 0x08014bcd
  49998. {
  49999. case eSetBits :
  50000. pxTCB->ulNotifiedValue |= ulValue;
  50001. 8014ba0: 6b3b ldr r3, [r7, #48] @ 0x30
  50002. 8014ba2: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  50003. 8014ba6: 68bb ldr r3, [r7, #8]
  50004. 8014ba8: 431a orrs r2, r3
  50005. 8014baa: 6b3b ldr r3, [r7, #48] @ 0x30
  50006. 8014bac: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  50007. break;
  50008. 8014bb0: e02d b.n 8014c0e <xTaskGenericNotifyFromISR+0x106>
  50009. case eIncrement :
  50010. ( pxTCB->ulNotifiedValue )++;
  50011. 8014bb2: 6b3b ldr r3, [r7, #48] @ 0x30
  50012. 8014bb4: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  50013. 8014bb8: 1c5a adds r2, r3, #1
  50014. 8014bba: 6b3b ldr r3, [r7, #48] @ 0x30
  50015. 8014bbc: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  50016. break;
  50017. 8014bc0: e025 b.n 8014c0e <xTaskGenericNotifyFromISR+0x106>
  50018. case eSetValueWithOverwrite :
  50019. pxTCB->ulNotifiedValue = ulValue;
  50020. 8014bc2: 6b3b ldr r3, [r7, #48] @ 0x30
  50021. 8014bc4: 68ba ldr r2, [r7, #8]
  50022. 8014bc6: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  50023. break;
  50024. 8014bca: e020 b.n 8014c0e <xTaskGenericNotifyFromISR+0x106>
  50025. case eSetValueWithoutOverwrite :
  50026. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  50027. 8014bcc: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  50028. 8014bd0: 2b02 cmp r3, #2
  50029. 8014bd2: d004 beq.n 8014bde <xTaskGenericNotifyFromISR+0xd6>
  50030. {
  50031. pxTCB->ulNotifiedValue = ulValue;
  50032. 8014bd4: 6b3b ldr r3, [r7, #48] @ 0x30
  50033. 8014bd6: 68ba ldr r2, [r7, #8]
  50034. 8014bd8: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  50035. else
  50036. {
  50037. /* The value could not be written to the task. */
  50038. xReturn = pdFAIL;
  50039. }
  50040. break;
  50041. 8014bdc: e017 b.n 8014c0e <xTaskGenericNotifyFromISR+0x106>
  50042. xReturn = pdFAIL;
  50043. 8014bde: 2300 movs r3, #0
  50044. 8014be0: 637b str r3, [r7, #52] @ 0x34
  50045. break;
  50046. 8014be2: e014 b.n 8014c0e <xTaskGenericNotifyFromISR+0x106>
  50047. default:
  50048. /* Should not get here if all enums are handled.
  50049. Artificially force an assert by testing a value the
  50050. compiler can't assume is const. */
  50051. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  50052. 8014be4: 6b3b ldr r3, [r7, #48] @ 0x30
  50053. 8014be6: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  50054. 8014bea: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50055. 8014bee: d00d beq.n 8014c0c <xTaskGenericNotifyFromISR+0x104>
  50056. __asm volatile
  50057. 8014bf0: f04f 0350 mov.w r3, #80 @ 0x50
  50058. 8014bf4: f383 8811 msr BASEPRI, r3
  50059. 8014bf8: f3bf 8f6f isb sy
  50060. 8014bfc: f3bf 8f4f dsb sy
  50061. 8014c00: 61bb str r3, [r7, #24]
  50062. }
  50063. 8014c02: bf00 nop
  50064. 8014c04: bf00 nop
  50065. 8014c06: e7fd b.n 8014c04 <xTaskGenericNotifyFromISR+0xfc>
  50066. break;
  50067. 8014c08: bf00 nop
  50068. 8014c0a: e000 b.n 8014c0e <xTaskGenericNotifyFromISR+0x106>
  50069. break;
  50070. 8014c0c: bf00 nop
  50071. traceTASK_NOTIFY_FROM_ISR();
  50072. /* If the task is in the blocked state specifically to wait for a
  50073. notification then unblock it now. */
  50074. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  50075. 8014c0e: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  50076. 8014c12: 2b01 cmp r3, #1
  50077. 8014c14: d147 bne.n 8014ca6 <xTaskGenericNotifyFromISR+0x19e>
  50078. {
  50079. /* The task should not have been on an event list. */
  50080. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  50081. 8014c16: 6b3b ldr r3, [r7, #48] @ 0x30
  50082. 8014c18: 6a9b ldr r3, [r3, #40] @ 0x28
  50083. 8014c1a: 2b00 cmp r3, #0
  50084. 8014c1c: d00b beq.n 8014c36 <xTaskGenericNotifyFromISR+0x12e>
  50085. __asm volatile
  50086. 8014c1e: f04f 0350 mov.w r3, #80 @ 0x50
  50087. 8014c22: f383 8811 msr BASEPRI, r3
  50088. 8014c26: f3bf 8f6f isb sy
  50089. 8014c2a: f3bf 8f4f dsb sy
  50090. 8014c2e: 617b str r3, [r7, #20]
  50091. }
  50092. 8014c30: bf00 nop
  50093. 8014c32: bf00 nop
  50094. 8014c34: e7fd b.n 8014c32 <xTaskGenericNotifyFromISR+0x12a>
  50095. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  50096. 8014c36: 4b21 ldr r3, [pc, #132] @ (8014cbc <xTaskGenericNotifyFromISR+0x1b4>)
  50097. 8014c38: 681b ldr r3, [r3, #0]
  50098. 8014c3a: 2b00 cmp r3, #0
  50099. 8014c3c: d11d bne.n 8014c7a <xTaskGenericNotifyFromISR+0x172>
  50100. {
  50101. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  50102. 8014c3e: 6b3b ldr r3, [r7, #48] @ 0x30
  50103. 8014c40: 3304 adds r3, #4
  50104. 8014c42: 4618 mov r0, r3
  50105. 8014c44: f7fd f91c bl 8011e80 <uxListRemove>
  50106. prvAddTaskToReadyList( pxTCB );
  50107. 8014c48: 6b3b ldr r3, [r7, #48] @ 0x30
  50108. 8014c4a: 6ada ldr r2, [r3, #44] @ 0x2c
  50109. 8014c4c: 4b1c ldr r3, [pc, #112] @ (8014cc0 <xTaskGenericNotifyFromISR+0x1b8>)
  50110. 8014c4e: 681b ldr r3, [r3, #0]
  50111. 8014c50: 429a cmp r2, r3
  50112. 8014c52: d903 bls.n 8014c5c <xTaskGenericNotifyFromISR+0x154>
  50113. 8014c54: 6b3b ldr r3, [r7, #48] @ 0x30
  50114. 8014c56: 6adb ldr r3, [r3, #44] @ 0x2c
  50115. 8014c58: 4a19 ldr r2, [pc, #100] @ (8014cc0 <xTaskGenericNotifyFromISR+0x1b8>)
  50116. 8014c5a: 6013 str r3, [r2, #0]
  50117. 8014c5c: 6b3b ldr r3, [r7, #48] @ 0x30
  50118. 8014c5e: 6ada ldr r2, [r3, #44] @ 0x2c
  50119. 8014c60: 4613 mov r3, r2
  50120. 8014c62: 009b lsls r3, r3, #2
  50121. 8014c64: 4413 add r3, r2
  50122. 8014c66: 009b lsls r3, r3, #2
  50123. 8014c68: 4a16 ldr r2, [pc, #88] @ (8014cc4 <xTaskGenericNotifyFromISR+0x1bc>)
  50124. 8014c6a: 441a add r2, r3
  50125. 8014c6c: 6b3b ldr r3, [r7, #48] @ 0x30
  50126. 8014c6e: 3304 adds r3, #4
  50127. 8014c70: 4619 mov r1, r3
  50128. 8014c72: 4610 mov r0, r2
  50129. 8014c74: f7fd f8a7 bl 8011dc6 <vListInsertEnd>
  50130. 8014c78: e005 b.n 8014c86 <xTaskGenericNotifyFromISR+0x17e>
  50131. }
  50132. else
  50133. {
  50134. /* The delayed and ready lists cannot be accessed, so hold
  50135. this task pending until the scheduler is resumed. */
  50136. vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) );
  50137. 8014c7a: 6b3b ldr r3, [r7, #48] @ 0x30
  50138. 8014c7c: 3318 adds r3, #24
  50139. 8014c7e: 4619 mov r1, r3
  50140. 8014c80: 4811 ldr r0, [pc, #68] @ (8014cc8 <xTaskGenericNotifyFromISR+0x1c0>)
  50141. 8014c82: f7fd f8a0 bl 8011dc6 <vListInsertEnd>
  50142. }
  50143. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  50144. 8014c86: 6b3b ldr r3, [r7, #48] @ 0x30
  50145. 8014c88: 6ada ldr r2, [r3, #44] @ 0x2c
  50146. 8014c8a: 4b10 ldr r3, [pc, #64] @ (8014ccc <xTaskGenericNotifyFromISR+0x1c4>)
  50147. 8014c8c: 681b ldr r3, [r3, #0]
  50148. 8014c8e: 6adb ldr r3, [r3, #44] @ 0x2c
  50149. 8014c90: 429a cmp r2, r3
  50150. 8014c92: d908 bls.n 8014ca6 <xTaskGenericNotifyFromISR+0x19e>
  50151. {
  50152. /* The notified task has a priority above the currently
  50153. executing task so a yield is required. */
  50154. if( pxHigherPriorityTaskWoken != NULL )
  50155. 8014c94: 6c3b ldr r3, [r7, #64] @ 0x40
  50156. 8014c96: 2b00 cmp r3, #0
  50157. 8014c98: d002 beq.n 8014ca0 <xTaskGenericNotifyFromISR+0x198>
  50158. {
  50159. *pxHigherPriorityTaskWoken = pdTRUE;
  50160. 8014c9a: 6c3b ldr r3, [r7, #64] @ 0x40
  50161. 8014c9c: 2201 movs r2, #1
  50162. 8014c9e: 601a str r2, [r3, #0]
  50163. }
  50164. /* Mark that a yield is pending in case the user is not
  50165. using the "xHigherPriorityTaskWoken" parameter to an ISR
  50166. safe FreeRTOS function. */
  50167. xYieldPending = pdTRUE;
  50168. 8014ca0: 4b0b ldr r3, [pc, #44] @ (8014cd0 <xTaskGenericNotifyFromISR+0x1c8>)
  50169. 8014ca2: 2201 movs r2, #1
  50170. 8014ca4: 601a str r2, [r3, #0]
  50171. 8014ca6: 6afb ldr r3, [r7, #44] @ 0x2c
  50172. 8014ca8: 613b str r3, [r7, #16]
  50173. __asm volatile
  50174. 8014caa: 693b ldr r3, [r7, #16]
  50175. 8014cac: f383 8811 msr BASEPRI, r3
  50176. }
  50177. 8014cb0: bf00 nop
  50178. }
  50179. }
  50180. }
  50181. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  50182. return xReturn;
  50183. 8014cb2: 6b7b ldr r3, [r7, #52] @ 0x34
  50184. }
  50185. 8014cb4: 4618 mov r0, r3
  50186. 8014cb6: 3738 adds r7, #56 @ 0x38
  50187. 8014cb8: 46bd mov sp, r7
  50188. 8014cba: bd80 pop {r7, pc}
  50189. 8014cbc: 2400426c .word 0x2400426c
  50190. 8014cc0: 2400424c .word 0x2400424c
  50191. 8014cc4: 24003d74 .word 0x24003d74
  50192. 8014cc8: 24004204 .word 0x24004204
  50193. 8014ccc: 24003d70 .word 0x24003d70
  50194. 8014cd0: 24004258 .word 0x24004258
  50195. 08014cd4 <xTaskNotifyStateClear>:
  50196. /*-----------------------------------------------------------*/
  50197. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  50198. BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask )
  50199. {
  50200. 8014cd4: b580 push {r7, lr}
  50201. 8014cd6: b084 sub sp, #16
  50202. 8014cd8: af00 add r7, sp, #0
  50203. 8014cda: 6078 str r0, [r7, #4]
  50204. TCB_t *pxTCB;
  50205. BaseType_t xReturn;
  50206. /* If null is passed in here then it is the calling task that is having
  50207. its notification state cleared. */
  50208. pxTCB = prvGetTCBFromHandle( xTask );
  50209. 8014cdc: 687b ldr r3, [r7, #4]
  50210. 8014cde: 2b00 cmp r3, #0
  50211. 8014ce0: d102 bne.n 8014ce8 <xTaskNotifyStateClear+0x14>
  50212. 8014ce2: 4b0e ldr r3, [pc, #56] @ (8014d1c <xTaskNotifyStateClear+0x48>)
  50213. 8014ce4: 681b ldr r3, [r3, #0]
  50214. 8014ce6: e000 b.n 8014cea <xTaskNotifyStateClear+0x16>
  50215. 8014ce8: 687b ldr r3, [r7, #4]
  50216. 8014cea: 60bb str r3, [r7, #8]
  50217. taskENTER_CRITICAL();
  50218. 8014cec: f000 fde4 bl 80158b8 <vPortEnterCritical>
  50219. {
  50220. if( pxTCB->ucNotifyState == taskNOTIFICATION_RECEIVED )
  50221. 8014cf0: 68bb ldr r3, [r7, #8]
  50222. 8014cf2: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  50223. 8014cf6: b2db uxtb r3, r3
  50224. 8014cf8: 2b02 cmp r3, #2
  50225. 8014cfa: d106 bne.n 8014d0a <xTaskNotifyStateClear+0x36>
  50226. {
  50227. pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  50228. 8014cfc: 68bb ldr r3, [r7, #8]
  50229. 8014cfe: 2200 movs r2, #0
  50230. 8014d00: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  50231. xReturn = pdPASS;
  50232. 8014d04: 2301 movs r3, #1
  50233. 8014d06: 60fb str r3, [r7, #12]
  50234. 8014d08: e001 b.n 8014d0e <xTaskNotifyStateClear+0x3a>
  50235. }
  50236. else
  50237. {
  50238. xReturn = pdFAIL;
  50239. 8014d0a: 2300 movs r3, #0
  50240. 8014d0c: 60fb str r3, [r7, #12]
  50241. }
  50242. }
  50243. taskEXIT_CRITICAL();
  50244. 8014d0e: f000 fe05 bl 801591c <vPortExitCritical>
  50245. return xReturn;
  50246. 8014d12: 68fb ldr r3, [r7, #12]
  50247. }
  50248. 8014d14: 4618 mov r0, r3
  50249. 8014d16: 3710 adds r7, #16
  50250. 8014d18: 46bd mov sp, r7
  50251. 8014d1a: bd80 pop {r7, pc}
  50252. 8014d1c: 24003d70 .word 0x24003d70
  50253. 08014d20 <prvAddCurrentTaskToDelayedList>:
  50254. #endif
  50255. /*-----------------------------------------------------------*/
  50256. static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
  50257. {
  50258. 8014d20: b580 push {r7, lr}
  50259. 8014d22: b084 sub sp, #16
  50260. 8014d24: af00 add r7, sp, #0
  50261. 8014d26: 6078 str r0, [r7, #4]
  50262. 8014d28: 6039 str r1, [r7, #0]
  50263. TickType_t xTimeToWake;
  50264. const TickType_t xConstTickCount = xTickCount;
  50265. 8014d2a: 4b21 ldr r3, [pc, #132] @ (8014db0 <prvAddCurrentTaskToDelayedList+0x90>)
  50266. 8014d2c: 681b ldr r3, [r3, #0]
  50267. 8014d2e: 60fb str r3, [r7, #12]
  50268. }
  50269. #endif
  50270. /* Remove the task from the ready list before adding it to the blocked list
  50271. as the same list item is used for both lists. */
  50272. if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  50273. 8014d30: 4b20 ldr r3, [pc, #128] @ (8014db4 <prvAddCurrentTaskToDelayedList+0x94>)
  50274. 8014d32: 681b ldr r3, [r3, #0]
  50275. 8014d34: 3304 adds r3, #4
  50276. 8014d36: 4618 mov r0, r3
  50277. 8014d38: f7fd f8a2 bl 8011e80 <uxListRemove>
  50278. mtCOVERAGE_TEST_MARKER();
  50279. }
  50280. #if ( INCLUDE_vTaskSuspend == 1 )
  50281. {
  50282. if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
  50283. 8014d3c: 687b ldr r3, [r7, #4]
  50284. 8014d3e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  50285. 8014d42: d10a bne.n 8014d5a <prvAddCurrentTaskToDelayedList+0x3a>
  50286. 8014d44: 683b ldr r3, [r7, #0]
  50287. 8014d46: 2b00 cmp r3, #0
  50288. 8014d48: d007 beq.n 8014d5a <prvAddCurrentTaskToDelayedList+0x3a>
  50289. {
  50290. /* Add the task to the suspended task list instead of a delayed task
  50291. list to ensure it is not woken by a timing event. It will block
  50292. indefinitely. */
  50293. vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
  50294. 8014d4a: 4b1a ldr r3, [pc, #104] @ (8014db4 <prvAddCurrentTaskToDelayedList+0x94>)
  50295. 8014d4c: 681b ldr r3, [r3, #0]
  50296. 8014d4e: 3304 adds r3, #4
  50297. 8014d50: 4619 mov r1, r3
  50298. 8014d52: 4819 ldr r0, [pc, #100] @ (8014db8 <prvAddCurrentTaskToDelayedList+0x98>)
  50299. 8014d54: f7fd f837 bl 8011dc6 <vListInsertEnd>
  50300. /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
  50301. ( void ) xCanBlockIndefinitely;
  50302. }
  50303. #endif /* INCLUDE_vTaskSuspend */
  50304. }
  50305. 8014d58: e026 b.n 8014da8 <prvAddCurrentTaskToDelayedList+0x88>
  50306. xTimeToWake = xConstTickCount + xTicksToWait;
  50307. 8014d5a: 68fa ldr r2, [r7, #12]
  50308. 8014d5c: 687b ldr r3, [r7, #4]
  50309. 8014d5e: 4413 add r3, r2
  50310. 8014d60: 60bb str r3, [r7, #8]
  50311. listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
  50312. 8014d62: 4b14 ldr r3, [pc, #80] @ (8014db4 <prvAddCurrentTaskToDelayedList+0x94>)
  50313. 8014d64: 681b ldr r3, [r3, #0]
  50314. 8014d66: 68ba ldr r2, [r7, #8]
  50315. 8014d68: 605a str r2, [r3, #4]
  50316. if( xTimeToWake < xConstTickCount )
  50317. 8014d6a: 68ba ldr r2, [r7, #8]
  50318. 8014d6c: 68fb ldr r3, [r7, #12]
  50319. 8014d6e: 429a cmp r2, r3
  50320. 8014d70: d209 bcs.n 8014d86 <prvAddCurrentTaskToDelayedList+0x66>
  50321. vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  50322. 8014d72: 4b12 ldr r3, [pc, #72] @ (8014dbc <prvAddCurrentTaskToDelayedList+0x9c>)
  50323. 8014d74: 681a ldr r2, [r3, #0]
  50324. 8014d76: 4b0f ldr r3, [pc, #60] @ (8014db4 <prvAddCurrentTaskToDelayedList+0x94>)
  50325. 8014d78: 681b ldr r3, [r3, #0]
  50326. 8014d7a: 3304 adds r3, #4
  50327. 8014d7c: 4619 mov r1, r3
  50328. 8014d7e: 4610 mov r0, r2
  50329. 8014d80: f7fd f845 bl 8011e0e <vListInsert>
  50330. }
  50331. 8014d84: e010 b.n 8014da8 <prvAddCurrentTaskToDelayedList+0x88>
  50332. vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  50333. 8014d86: 4b0e ldr r3, [pc, #56] @ (8014dc0 <prvAddCurrentTaskToDelayedList+0xa0>)
  50334. 8014d88: 681a ldr r2, [r3, #0]
  50335. 8014d8a: 4b0a ldr r3, [pc, #40] @ (8014db4 <prvAddCurrentTaskToDelayedList+0x94>)
  50336. 8014d8c: 681b ldr r3, [r3, #0]
  50337. 8014d8e: 3304 adds r3, #4
  50338. 8014d90: 4619 mov r1, r3
  50339. 8014d92: 4610 mov r0, r2
  50340. 8014d94: f7fd f83b bl 8011e0e <vListInsert>
  50341. if( xTimeToWake < xNextTaskUnblockTime )
  50342. 8014d98: 4b0a ldr r3, [pc, #40] @ (8014dc4 <prvAddCurrentTaskToDelayedList+0xa4>)
  50343. 8014d9a: 681b ldr r3, [r3, #0]
  50344. 8014d9c: 68ba ldr r2, [r7, #8]
  50345. 8014d9e: 429a cmp r2, r3
  50346. 8014da0: d202 bcs.n 8014da8 <prvAddCurrentTaskToDelayedList+0x88>
  50347. xNextTaskUnblockTime = xTimeToWake;
  50348. 8014da2: 4a08 ldr r2, [pc, #32] @ (8014dc4 <prvAddCurrentTaskToDelayedList+0xa4>)
  50349. 8014da4: 68bb ldr r3, [r7, #8]
  50350. 8014da6: 6013 str r3, [r2, #0]
  50351. }
  50352. 8014da8: bf00 nop
  50353. 8014daa: 3710 adds r7, #16
  50354. 8014dac: 46bd mov sp, r7
  50355. 8014dae: bd80 pop {r7, pc}
  50356. 8014db0: 24004248 .word 0x24004248
  50357. 8014db4: 24003d70 .word 0x24003d70
  50358. 8014db8: 24004230 .word 0x24004230
  50359. 8014dbc: 24004200 .word 0x24004200
  50360. 8014dc0: 240041fc .word 0x240041fc
  50361. 8014dc4: 24004264 .word 0x24004264
  50362. 08014dc8 <xTimerCreateTimerTask>:
  50363. TimerCallbackFunction_t pxCallbackFunction,
  50364. Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
  50365. /*-----------------------------------------------------------*/
  50366. BaseType_t xTimerCreateTimerTask( void )
  50367. {
  50368. 8014dc8: b580 push {r7, lr}
  50369. 8014dca: b08a sub sp, #40 @ 0x28
  50370. 8014dcc: af04 add r7, sp, #16
  50371. BaseType_t xReturn = pdFAIL;
  50372. 8014dce: 2300 movs r3, #0
  50373. 8014dd0: 617b str r3, [r7, #20]
  50374. /* This function is called when the scheduler is started if
  50375. configUSE_TIMERS is set to 1. Check that the infrastructure used by the
  50376. timer service task has been created/initialised. If timers have already
  50377. been created then the initialisation will already have been performed. */
  50378. prvCheckForValidListAndQueue();
  50379. 8014dd2: f000 fbb1 bl 8015538 <prvCheckForValidListAndQueue>
  50380. if( xTimerQueue != NULL )
  50381. 8014dd6: 4b1d ldr r3, [pc, #116] @ (8014e4c <xTimerCreateTimerTask+0x84>)
  50382. 8014dd8: 681b ldr r3, [r3, #0]
  50383. 8014dda: 2b00 cmp r3, #0
  50384. 8014ddc: d021 beq.n 8014e22 <xTimerCreateTimerTask+0x5a>
  50385. {
  50386. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  50387. {
  50388. StaticTask_t *pxTimerTaskTCBBuffer = NULL;
  50389. 8014dde: 2300 movs r3, #0
  50390. 8014de0: 60fb str r3, [r7, #12]
  50391. StackType_t *pxTimerTaskStackBuffer = NULL;
  50392. 8014de2: 2300 movs r3, #0
  50393. 8014de4: 60bb str r3, [r7, #8]
  50394. uint32_t ulTimerTaskStackSize;
  50395. vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize );
  50396. 8014de6: 1d3a adds r2, r7, #4
  50397. 8014de8: f107 0108 add.w r1, r7, #8
  50398. 8014dec: f107 030c add.w r3, r7, #12
  50399. 8014df0: 4618 mov r0, r3
  50400. 8014df2: f7fc ffa1 bl 8011d38 <vApplicationGetTimerTaskMemory>
  50401. xTimerTaskHandle = xTaskCreateStatic( prvTimerTask,
  50402. 8014df6: 6879 ldr r1, [r7, #4]
  50403. 8014df8: 68bb ldr r3, [r7, #8]
  50404. 8014dfa: 68fa ldr r2, [r7, #12]
  50405. 8014dfc: 9202 str r2, [sp, #8]
  50406. 8014dfe: 9301 str r3, [sp, #4]
  50407. 8014e00: 2302 movs r3, #2
  50408. 8014e02: 9300 str r3, [sp, #0]
  50409. 8014e04: 2300 movs r3, #0
  50410. 8014e06: 460a mov r2, r1
  50411. 8014e08: 4911 ldr r1, [pc, #68] @ (8014e50 <xTimerCreateTimerTask+0x88>)
  50412. 8014e0a: 4812 ldr r0, [pc, #72] @ (8014e54 <xTimerCreateTimerTask+0x8c>)
  50413. 8014e0c: f7fe fd1c bl 8013848 <xTaskCreateStatic>
  50414. 8014e10: 4603 mov r3, r0
  50415. 8014e12: 4a11 ldr r2, [pc, #68] @ (8014e58 <xTimerCreateTimerTask+0x90>)
  50416. 8014e14: 6013 str r3, [r2, #0]
  50417. NULL,
  50418. ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT,
  50419. pxTimerTaskStackBuffer,
  50420. pxTimerTaskTCBBuffer );
  50421. if( xTimerTaskHandle != NULL )
  50422. 8014e16: 4b10 ldr r3, [pc, #64] @ (8014e58 <xTimerCreateTimerTask+0x90>)
  50423. 8014e18: 681b ldr r3, [r3, #0]
  50424. 8014e1a: 2b00 cmp r3, #0
  50425. 8014e1c: d001 beq.n 8014e22 <xTimerCreateTimerTask+0x5a>
  50426. {
  50427. xReturn = pdPASS;
  50428. 8014e1e: 2301 movs r3, #1
  50429. 8014e20: 617b str r3, [r7, #20]
  50430. else
  50431. {
  50432. mtCOVERAGE_TEST_MARKER();
  50433. }
  50434. configASSERT( xReturn );
  50435. 8014e22: 697b ldr r3, [r7, #20]
  50436. 8014e24: 2b00 cmp r3, #0
  50437. 8014e26: d10b bne.n 8014e40 <xTimerCreateTimerTask+0x78>
  50438. __asm volatile
  50439. 8014e28: f04f 0350 mov.w r3, #80 @ 0x50
  50440. 8014e2c: f383 8811 msr BASEPRI, r3
  50441. 8014e30: f3bf 8f6f isb sy
  50442. 8014e34: f3bf 8f4f dsb sy
  50443. 8014e38: 613b str r3, [r7, #16]
  50444. }
  50445. 8014e3a: bf00 nop
  50446. 8014e3c: bf00 nop
  50447. 8014e3e: e7fd b.n 8014e3c <xTimerCreateTimerTask+0x74>
  50448. return xReturn;
  50449. 8014e40: 697b ldr r3, [r7, #20]
  50450. }
  50451. 8014e42: 4618 mov r0, r3
  50452. 8014e44: 3718 adds r7, #24
  50453. 8014e46: 46bd mov sp, r7
  50454. 8014e48: bd80 pop {r7, pc}
  50455. 8014e4a: bf00 nop
  50456. 8014e4c: 240042a0 .word 0x240042a0
  50457. 8014e50: 0802da58 .word 0x0802da58
  50458. 8014e54: 080150d1 .word 0x080150d1
  50459. 8014e58: 240042a4 .word 0x240042a4
  50460. 08014e5c <xTimerCreate>:
  50461. TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  50462. const TickType_t xTimerPeriodInTicks,
  50463. const UBaseType_t uxAutoReload,
  50464. void * const pvTimerID,
  50465. TimerCallbackFunction_t pxCallbackFunction )
  50466. {
  50467. 8014e5c: b580 push {r7, lr}
  50468. 8014e5e: b088 sub sp, #32
  50469. 8014e60: af02 add r7, sp, #8
  50470. 8014e62: 60f8 str r0, [r7, #12]
  50471. 8014e64: 60b9 str r1, [r7, #8]
  50472. 8014e66: 607a str r2, [r7, #4]
  50473. 8014e68: 603b str r3, [r7, #0]
  50474. Timer_t *pxNewTimer;
  50475. 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. */
  50476. 8014e6a: 202c movs r0, #44 @ 0x2c
  50477. 8014e6c: f000 fe46 bl 8015afc <pvPortMalloc>
  50478. 8014e70: 6178 str r0, [r7, #20]
  50479. if( pxNewTimer != NULL )
  50480. 8014e72: 697b ldr r3, [r7, #20]
  50481. 8014e74: 2b00 cmp r3, #0
  50482. 8014e76: d00d beq.n 8014e94 <xTimerCreate+0x38>
  50483. {
  50484. /* Status is thus far zero as the timer is not created statically
  50485. and has not been started. The auto-reload bit may get set in
  50486. prvInitialiseNewTimer. */
  50487. pxNewTimer->ucStatus = 0x00;
  50488. 8014e78: 697b ldr r3, [r7, #20]
  50489. 8014e7a: 2200 movs r2, #0
  50490. 8014e7c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  50491. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  50492. 8014e80: 697b ldr r3, [r7, #20]
  50493. 8014e82: 9301 str r3, [sp, #4]
  50494. 8014e84: 6a3b ldr r3, [r7, #32]
  50495. 8014e86: 9300 str r3, [sp, #0]
  50496. 8014e88: 683b ldr r3, [r7, #0]
  50497. 8014e8a: 687a ldr r2, [r7, #4]
  50498. 8014e8c: 68b9 ldr r1, [r7, #8]
  50499. 8014e8e: 68f8 ldr r0, [r7, #12]
  50500. 8014e90: f000 f845 bl 8014f1e <prvInitialiseNewTimer>
  50501. }
  50502. return pxNewTimer;
  50503. 8014e94: 697b ldr r3, [r7, #20]
  50504. }
  50505. 8014e96: 4618 mov r0, r3
  50506. 8014e98: 3718 adds r7, #24
  50507. 8014e9a: 46bd mov sp, r7
  50508. 8014e9c: bd80 pop {r7, pc}
  50509. 08014e9e <xTimerCreateStatic>:
  50510. const TickType_t xTimerPeriodInTicks,
  50511. const UBaseType_t uxAutoReload,
  50512. void * const pvTimerID,
  50513. TimerCallbackFunction_t pxCallbackFunction,
  50514. StaticTimer_t *pxTimerBuffer )
  50515. {
  50516. 8014e9e: b580 push {r7, lr}
  50517. 8014ea0: b08a sub sp, #40 @ 0x28
  50518. 8014ea2: af02 add r7, sp, #8
  50519. 8014ea4: 60f8 str r0, [r7, #12]
  50520. 8014ea6: 60b9 str r1, [r7, #8]
  50521. 8014ea8: 607a str r2, [r7, #4]
  50522. 8014eaa: 603b str r3, [r7, #0]
  50523. #if( configASSERT_DEFINED == 1 )
  50524. {
  50525. /* Sanity check that the size of the structure used to declare a
  50526. variable of type StaticTimer_t equals the size of the real timer
  50527. structure. */
  50528. volatile size_t xSize = sizeof( StaticTimer_t );
  50529. 8014eac: 232c movs r3, #44 @ 0x2c
  50530. 8014eae: 613b str r3, [r7, #16]
  50531. configASSERT( xSize == sizeof( Timer_t ) );
  50532. 8014eb0: 693b ldr r3, [r7, #16]
  50533. 8014eb2: 2b2c cmp r3, #44 @ 0x2c
  50534. 8014eb4: d00b beq.n 8014ece <xTimerCreateStatic+0x30>
  50535. __asm volatile
  50536. 8014eb6: f04f 0350 mov.w r3, #80 @ 0x50
  50537. 8014eba: f383 8811 msr BASEPRI, r3
  50538. 8014ebe: f3bf 8f6f isb sy
  50539. 8014ec2: f3bf 8f4f dsb sy
  50540. 8014ec6: 61bb str r3, [r7, #24]
  50541. }
  50542. 8014ec8: bf00 nop
  50543. 8014eca: bf00 nop
  50544. 8014ecc: e7fd b.n 8014eca <xTimerCreateStatic+0x2c>
  50545. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  50546. 8014ece: 693b ldr r3, [r7, #16]
  50547. }
  50548. #endif /* configASSERT_DEFINED */
  50549. /* A pointer to a StaticTimer_t structure MUST be provided, use it. */
  50550. configASSERT( pxTimerBuffer );
  50551. 8014ed0: 6afb ldr r3, [r7, #44] @ 0x2c
  50552. 8014ed2: 2b00 cmp r3, #0
  50553. 8014ed4: d10b bne.n 8014eee <xTimerCreateStatic+0x50>
  50554. __asm volatile
  50555. 8014ed6: f04f 0350 mov.w r3, #80 @ 0x50
  50556. 8014eda: f383 8811 msr BASEPRI, r3
  50557. 8014ede: f3bf 8f6f isb sy
  50558. 8014ee2: f3bf 8f4f dsb sy
  50559. 8014ee6: 617b str r3, [r7, #20]
  50560. }
  50561. 8014ee8: bf00 nop
  50562. 8014eea: bf00 nop
  50563. 8014eec: e7fd b.n 8014eea <xTimerCreateStatic+0x4c>
  50564. 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. */
  50565. 8014eee: 6afb ldr r3, [r7, #44] @ 0x2c
  50566. 8014ef0: 61fb str r3, [r7, #28]
  50567. if( pxNewTimer != NULL )
  50568. 8014ef2: 69fb ldr r3, [r7, #28]
  50569. 8014ef4: 2b00 cmp r3, #0
  50570. 8014ef6: d00d beq.n 8014f14 <xTimerCreateStatic+0x76>
  50571. {
  50572. /* Timers can be created statically or dynamically so note this
  50573. timer was created statically in case it is later deleted. The
  50574. auto-reload bit may get set in prvInitialiseNewTimer(). */
  50575. pxNewTimer->ucStatus = tmrSTATUS_IS_STATICALLY_ALLOCATED;
  50576. 8014ef8: 69fb ldr r3, [r7, #28]
  50577. 8014efa: 2202 movs r2, #2
  50578. 8014efc: f883 2028 strb.w r2, [r3, #40] @ 0x28
  50579. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  50580. 8014f00: 69fb ldr r3, [r7, #28]
  50581. 8014f02: 9301 str r3, [sp, #4]
  50582. 8014f04: 6abb ldr r3, [r7, #40] @ 0x28
  50583. 8014f06: 9300 str r3, [sp, #0]
  50584. 8014f08: 683b ldr r3, [r7, #0]
  50585. 8014f0a: 687a ldr r2, [r7, #4]
  50586. 8014f0c: 68b9 ldr r1, [r7, #8]
  50587. 8014f0e: 68f8 ldr r0, [r7, #12]
  50588. 8014f10: f000 f805 bl 8014f1e <prvInitialiseNewTimer>
  50589. }
  50590. return pxNewTimer;
  50591. 8014f14: 69fb ldr r3, [r7, #28]
  50592. }
  50593. 8014f16: 4618 mov r0, r3
  50594. 8014f18: 3720 adds r7, #32
  50595. 8014f1a: 46bd mov sp, r7
  50596. 8014f1c: bd80 pop {r7, pc}
  50597. 08014f1e <prvInitialiseNewTimer>:
  50598. const TickType_t xTimerPeriodInTicks,
  50599. const UBaseType_t uxAutoReload,
  50600. void * const pvTimerID,
  50601. TimerCallbackFunction_t pxCallbackFunction,
  50602. Timer_t *pxNewTimer )
  50603. {
  50604. 8014f1e: b580 push {r7, lr}
  50605. 8014f20: b086 sub sp, #24
  50606. 8014f22: af00 add r7, sp, #0
  50607. 8014f24: 60f8 str r0, [r7, #12]
  50608. 8014f26: 60b9 str r1, [r7, #8]
  50609. 8014f28: 607a str r2, [r7, #4]
  50610. 8014f2a: 603b str r3, [r7, #0]
  50611. /* 0 is not a valid value for xTimerPeriodInTicks. */
  50612. configASSERT( ( xTimerPeriodInTicks > 0 ) );
  50613. 8014f2c: 68bb ldr r3, [r7, #8]
  50614. 8014f2e: 2b00 cmp r3, #0
  50615. 8014f30: d10b bne.n 8014f4a <prvInitialiseNewTimer+0x2c>
  50616. __asm volatile
  50617. 8014f32: f04f 0350 mov.w r3, #80 @ 0x50
  50618. 8014f36: f383 8811 msr BASEPRI, r3
  50619. 8014f3a: f3bf 8f6f isb sy
  50620. 8014f3e: f3bf 8f4f dsb sy
  50621. 8014f42: 617b str r3, [r7, #20]
  50622. }
  50623. 8014f44: bf00 nop
  50624. 8014f46: bf00 nop
  50625. 8014f48: e7fd b.n 8014f46 <prvInitialiseNewTimer+0x28>
  50626. if( pxNewTimer != NULL )
  50627. 8014f4a: 6a7b ldr r3, [r7, #36] @ 0x24
  50628. 8014f4c: 2b00 cmp r3, #0
  50629. 8014f4e: d01e beq.n 8014f8e <prvInitialiseNewTimer+0x70>
  50630. {
  50631. /* Ensure the infrastructure used by the timer service task has been
  50632. created/initialised. */
  50633. prvCheckForValidListAndQueue();
  50634. 8014f50: f000 faf2 bl 8015538 <prvCheckForValidListAndQueue>
  50635. /* Initialise the timer structure members using the function
  50636. parameters. */
  50637. pxNewTimer->pcTimerName = pcTimerName;
  50638. 8014f54: 6a7b ldr r3, [r7, #36] @ 0x24
  50639. 8014f56: 68fa ldr r2, [r7, #12]
  50640. 8014f58: 601a str r2, [r3, #0]
  50641. pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
  50642. 8014f5a: 6a7b ldr r3, [r7, #36] @ 0x24
  50643. 8014f5c: 68ba ldr r2, [r7, #8]
  50644. 8014f5e: 619a str r2, [r3, #24]
  50645. pxNewTimer->pvTimerID = pvTimerID;
  50646. 8014f60: 6a7b ldr r3, [r7, #36] @ 0x24
  50647. 8014f62: 683a ldr r2, [r7, #0]
  50648. 8014f64: 61da str r2, [r3, #28]
  50649. pxNewTimer->pxCallbackFunction = pxCallbackFunction;
  50650. 8014f66: 6a7b ldr r3, [r7, #36] @ 0x24
  50651. 8014f68: 6a3a ldr r2, [r7, #32]
  50652. 8014f6a: 621a str r2, [r3, #32]
  50653. vListInitialiseItem( &( pxNewTimer->xTimerListItem ) );
  50654. 8014f6c: 6a7b ldr r3, [r7, #36] @ 0x24
  50655. 8014f6e: 3304 adds r3, #4
  50656. 8014f70: 4618 mov r0, r3
  50657. 8014f72: f7fc ff1b bl 8011dac <vListInitialiseItem>
  50658. if( uxAutoReload != pdFALSE )
  50659. 8014f76: 687b ldr r3, [r7, #4]
  50660. 8014f78: 2b00 cmp r3, #0
  50661. 8014f7a: d008 beq.n 8014f8e <prvInitialiseNewTimer+0x70>
  50662. {
  50663. pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD;
  50664. 8014f7c: 6a7b ldr r3, [r7, #36] @ 0x24
  50665. 8014f7e: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  50666. 8014f82: f043 0304 orr.w r3, r3, #4
  50667. 8014f86: b2da uxtb r2, r3
  50668. 8014f88: 6a7b ldr r3, [r7, #36] @ 0x24
  50669. 8014f8a: f883 2028 strb.w r2, [r3, #40] @ 0x28
  50670. }
  50671. traceTIMER_CREATE( pxNewTimer );
  50672. }
  50673. }
  50674. 8014f8e: bf00 nop
  50675. 8014f90: 3718 adds r7, #24
  50676. 8014f92: 46bd mov sp, r7
  50677. 8014f94: bd80 pop {r7, pc}
  50678. ...
  50679. 08014f98 <xTimerGenericCommand>:
  50680. /*-----------------------------------------------------------*/
  50681. BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
  50682. {
  50683. 8014f98: b580 push {r7, lr}
  50684. 8014f9a: b08a sub sp, #40 @ 0x28
  50685. 8014f9c: af00 add r7, sp, #0
  50686. 8014f9e: 60f8 str r0, [r7, #12]
  50687. 8014fa0: 60b9 str r1, [r7, #8]
  50688. 8014fa2: 607a str r2, [r7, #4]
  50689. 8014fa4: 603b str r3, [r7, #0]
  50690. BaseType_t xReturn = pdFAIL;
  50691. 8014fa6: 2300 movs r3, #0
  50692. 8014fa8: 627b str r3, [r7, #36] @ 0x24
  50693. DaemonTaskMessage_t xMessage;
  50694. configASSERT( xTimer );
  50695. 8014faa: 68fb ldr r3, [r7, #12]
  50696. 8014fac: 2b00 cmp r3, #0
  50697. 8014fae: d10b bne.n 8014fc8 <xTimerGenericCommand+0x30>
  50698. __asm volatile
  50699. 8014fb0: f04f 0350 mov.w r3, #80 @ 0x50
  50700. 8014fb4: f383 8811 msr BASEPRI, r3
  50701. 8014fb8: f3bf 8f6f isb sy
  50702. 8014fbc: f3bf 8f4f dsb sy
  50703. 8014fc0: 623b str r3, [r7, #32]
  50704. }
  50705. 8014fc2: bf00 nop
  50706. 8014fc4: bf00 nop
  50707. 8014fc6: e7fd b.n 8014fc4 <xTimerGenericCommand+0x2c>
  50708. /* Send a message to the timer service task to perform a particular action
  50709. on a particular timer definition. */
  50710. if( xTimerQueue != NULL )
  50711. 8014fc8: 4b19 ldr r3, [pc, #100] @ (8015030 <xTimerGenericCommand+0x98>)
  50712. 8014fca: 681b ldr r3, [r3, #0]
  50713. 8014fcc: 2b00 cmp r3, #0
  50714. 8014fce: d02a beq.n 8015026 <xTimerGenericCommand+0x8e>
  50715. {
  50716. /* Send a command to the timer service task to start the xTimer timer. */
  50717. xMessage.xMessageID = xCommandID;
  50718. 8014fd0: 68bb ldr r3, [r7, #8]
  50719. 8014fd2: 613b str r3, [r7, #16]
  50720. xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
  50721. 8014fd4: 687b ldr r3, [r7, #4]
  50722. 8014fd6: 617b str r3, [r7, #20]
  50723. xMessage.u.xTimerParameters.pxTimer = xTimer;
  50724. 8014fd8: 68fb ldr r3, [r7, #12]
  50725. 8014fda: 61bb str r3, [r7, #24]
  50726. if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
  50727. 8014fdc: 68bb ldr r3, [r7, #8]
  50728. 8014fde: 2b05 cmp r3, #5
  50729. 8014fe0: dc18 bgt.n 8015014 <xTimerGenericCommand+0x7c>
  50730. {
  50731. if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
  50732. 8014fe2: f7ff fae1 bl 80145a8 <xTaskGetSchedulerState>
  50733. 8014fe6: 4603 mov r3, r0
  50734. 8014fe8: 2b02 cmp r3, #2
  50735. 8014fea: d109 bne.n 8015000 <xTimerGenericCommand+0x68>
  50736. {
  50737. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
  50738. 8014fec: 4b10 ldr r3, [pc, #64] @ (8015030 <xTimerGenericCommand+0x98>)
  50739. 8014fee: 6818 ldr r0, [r3, #0]
  50740. 8014ff0: f107 0110 add.w r1, r7, #16
  50741. 8014ff4: 2300 movs r3, #0
  50742. 8014ff6: 6b3a ldr r2, [r7, #48] @ 0x30
  50743. 8014ff8: f7fd f9d8 bl 80123ac <xQueueGenericSend>
  50744. 8014ffc: 6278 str r0, [r7, #36] @ 0x24
  50745. 8014ffe: e012 b.n 8015026 <xTimerGenericCommand+0x8e>
  50746. }
  50747. else
  50748. {
  50749. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
  50750. 8015000: 4b0b ldr r3, [pc, #44] @ (8015030 <xTimerGenericCommand+0x98>)
  50751. 8015002: 6818 ldr r0, [r3, #0]
  50752. 8015004: f107 0110 add.w r1, r7, #16
  50753. 8015008: 2300 movs r3, #0
  50754. 801500a: 2200 movs r2, #0
  50755. 801500c: f7fd f9ce bl 80123ac <xQueueGenericSend>
  50756. 8015010: 6278 str r0, [r7, #36] @ 0x24
  50757. 8015012: e008 b.n 8015026 <xTimerGenericCommand+0x8e>
  50758. }
  50759. }
  50760. else
  50761. {
  50762. xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
  50763. 8015014: 4b06 ldr r3, [pc, #24] @ (8015030 <xTimerGenericCommand+0x98>)
  50764. 8015016: 6818 ldr r0, [r3, #0]
  50765. 8015018: f107 0110 add.w r1, r7, #16
  50766. 801501c: 2300 movs r3, #0
  50767. 801501e: 683a ldr r2, [r7, #0]
  50768. 8015020: f7fd fac6 bl 80125b0 <xQueueGenericSendFromISR>
  50769. 8015024: 6278 str r0, [r7, #36] @ 0x24
  50770. else
  50771. {
  50772. mtCOVERAGE_TEST_MARKER();
  50773. }
  50774. return xReturn;
  50775. 8015026: 6a7b ldr r3, [r7, #36] @ 0x24
  50776. }
  50777. 8015028: 4618 mov r0, r3
  50778. 801502a: 3728 adds r7, #40 @ 0x28
  50779. 801502c: 46bd mov sp, r7
  50780. 801502e: bd80 pop {r7, pc}
  50781. 8015030: 240042a0 .word 0x240042a0
  50782. 08015034 <prvProcessExpiredTimer>:
  50783. return pxTimer->pcTimerName;
  50784. }
  50785. /*-----------------------------------------------------------*/
  50786. static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
  50787. {
  50788. 8015034: b580 push {r7, lr}
  50789. 8015036: b088 sub sp, #32
  50790. 8015038: af02 add r7, sp, #8
  50791. 801503a: 6078 str r0, [r7, #4]
  50792. 801503c: 6039 str r1, [r7, #0]
  50793. BaseType_t xResult;
  50794. 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. */
  50795. 801503e: 4b23 ldr r3, [pc, #140] @ (80150cc <prvProcessExpiredTimer+0x98>)
  50796. 8015040: 681b ldr r3, [r3, #0]
  50797. 8015042: 68db ldr r3, [r3, #12]
  50798. 8015044: 68db ldr r3, [r3, #12]
  50799. 8015046: 617b str r3, [r7, #20]
  50800. /* Remove the timer from the list of active timers. A check has already
  50801. been performed to ensure the list is not empty. */
  50802. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  50803. 8015048: 697b ldr r3, [r7, #20]
  50804. 801504a: 3304 adds r3, #4
  50805. 801504c: 4618 mov r0, r3
  50806. 801504e: f7fc ff17 bl 8011e80 <uxListRemove>
  50807. traceTIMER_EXPIRED( pxTimer );
  50808. /* If the timer is an auto-reload timer then calculate the next
  50809. expiry time and re-insert the timer in the list of active timers. */
  50810. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  50811. 8015052: 697b ldr r3, [r7, #20]
  50812. 8015054: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  50813. 8015058: f003 0304 and.w r3, r3, #4
  50814. 801505c: 2b00 cmp r3, #0
  50815. 801505e: d023 beq.n 80150a8 <prvProcessExpiredTimer+0x74>
  50816. {
  50817. /* The timer is inserted into a list using a time relative to anything
  50818. other than the current time. It will therefore be inserted into the
  50819. correct list relative to the time this task thinks it is now. */
  50820. if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
  50821. 8015060: 697b ldr r3, [r7, #20]
  50822. 8015062: 699a ldr r2, [r3, #24]
  50823. 8015064: 687b ldr r3, [r7, #4]
  50824. 8015066: 18d1 adds r1, r2, r3
  50825. 8015068: 687b ldr r3, [r7, #4]
  50826. 801506a: 683a ldr r2, [r7, #0]
  50827. 801506c: 6978 ldr r0, [r7, #20]
  50828. 801506e: f000 f8d5 bl 801521c <prvInsertTimerInActiveList>
  50829. 8015072: 4603 mov r3, r0
  50830. 8015074: 2b00 cmp r3, #0
  50831. 8015076: d020 beq.n 80150ba <prvProcessExpiredTimer+0x86>
  50832. {
  50833. /* The timer expired before it was added to the active timer
  50834. list. Reload it now. */
  50835. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  50836. 8015078: 2300 movs r3, #0
  50837. 801507a: 9300 str r3, [sp, #0]
  50838. 801507c: 2300 movs r3, #0
  50839. 801507e: 687a ldr r2, [r7, #4]
  50840. 8015080: 2100 movs r1, #0
  50841. 8015082: 6978 ldr r0, [r7, #20]
  50842. 8015084: f7ff ff88 bl 8014f98 <xTimerGenericCommand>
  50843. 8015088: 6138 str r0, [r7, #16]
  50844. configASSERT( xResult );
  50845. 801508a: 693b ldr r3, [r7, #16]
  50846. 801508c: 2b00 cmp r3, #0
  50847. 801508e: d114 bne.n 80150ba <prvProcessExpiredTimer+0x86>
  50848. __asm volatile
  50849. 8015090: f04f 0350 mov.w r3, #80 @ 0x50
  50850. 8015094: f383 8811 msr BASEPRI, r3
  50851. 8015098: f3bf 8f6f isb sy
  50852. 801509c: f3bf 8f4f dsb sy
  50853. 80150a0: 60fb str r3, [r7, #12]
  50854. }
  50855. 80150a2: bf00 nop
  50856. 80150a4: bf00 nop
  50857. 80150a6: e7fd b.n 80150a4 <prvProcessExpiredTimer+0x70>
  50858. mtCOVERAGE_TEST_MARKER();
  50859. }
  50860. }
  50861. else
  50862. {
  50863. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  50864. 80150a8: 697b ldr r3, [r7, #20]
  50865. 80150aa: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  50866. 80150ae: f023 0301 bic.w r3, r3, #1
  50867. 80150b2: b2da uxtb r2, r3
  50868. 80150b4: 697b ldr r3, [r7, #20]
  50869. 80150b6: f883 2028 strb.w r2, [r3, #40] @ 0x28
  50870. mtCOVERAGE_TEST_MARKER();
  50871. }
  50872. /* Call the timer callback. */
  50873. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  50874. 80150ba: 697b ldr r3, [r7, #20]
  50875. 80150bc: 6a1b ldr r3, [r3, #32]
  50876. 80150be: 6978 ldr r0, [r7, #20]
  50877. 80150c0: 4798 blx r3
  50878. }
  50879. 80150c2: bf00 nop
  50880. 80150c4: 3718 adds r7, #24
  50881. 80150c6: 46bd mov sp, r7
  50882. 80150c8: bd80 pop {r7, pc}
  50883. 80150ca: bf00 nop
  50884. 80150cc: 24004298 .word 0x24004298
  50885. 080150d0 <prvTimerTask>:
  50886. /*-----------------------------------------------------------*/
  50887. static portTASK_FUNCTION( prvTimerTask, pvParameters )
  50888. {
  50889. 80150d0: b580 push {r7, lr}
  50890. 80150d2: b084 sub sp, #16
  50891. 80150d4: af00 add r7, sp, #0
  50892. 80150d6: 6078 str r0, [r7, #4]
  50893. for( ;; )
  50894. {
  50895. /* Query the timers list to see if it contains any timers, and if so,
  50896. obtain the time at which the next timer will expire. */
  50897. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  50898. 80150d8: f107 0308 add.w r3, r7, #8
  50899. 80150dc: 4618 mov r0, r3
  50900. 80150de: f000 f859 bl 8015194 <prvGetNextExpireTime>
  50901. 80150e2: 60f8 str r0, [r7, #12]
  50902. /* If a timer has expired, process it. Otherwise, block this task
  50903. until either a timer does expire, or a command is received. */
  50904. prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
  50905. 80150e4: 68bb ldr r3, [r7, #8]
  50906. 80150e6: 4619 mov r1, r3
  50907. 80150e8: 68f8 ldr r0, [r7, #12]
  50908. 80150ea: f000 f805 bl 80150f8 <prvProcessTimerOrBlockTask>
  50909. /* Empty the command queue. */
  50910. prvProcessReceivedCommands();
  50911. 80150ee: f000 f8d7 bl 80152a0 <prvProcessReceivedCommands>
  50912. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  50913. 80150f2: bf00 nop
  50914. 80150f4: e7f0 b.n 80150d8 <prvTimerTask+0x8>
  50915. ...
  50916. 080150f8 <prvProcessTimerOrBlockTask>:
  50917. }
  50918. }
  50919. /*-----------------------------------------------------------*/
  50920. static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
  50921. {
  50922. 80150f8: b580 push {r7, lr}
  50923. 80150fa: b084 sub sp, #16
  50924. 80150fc: af00 add r7, sp, #0
  50925. 80150fe: 6078 str r0, [r7, #4]
  50926. 8015100: 6039 str r1, [r7, #0]
  50927. TickType_t xTimeNow;
  50928. BaseType_t xTimerListsWereSwitched;
  50929. vTaskSuspendAll();
  50930. 8015102: f7fe fe05 bl 8013d10 <vTaskSuspendAll>
  50931. /* Obtain the time now to make an assessment as to whether the timer
  50932. has expired or not. If obtaining the time causes the lists to switch
  50933. then don't process this timer as any timers that remained in the list
  50934. when the lists were switched will have been processed within the
  50935. prvSampleTimeNow() function. */
  50936. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  50937. 8015106: f107 0308 add.w r3, r7, #8
  50938. 801510a: 4618 mov r0, r3
  50939. 801510c: f000 f866 bl 80151dc <prvSampleTimeNow>
  50940. 8015110: 60f8 str r0, [r7, #12]
  50941. if( xTimerListsWereSwitched == pdFALSE )
  50942. 8015112: 68bb ldr r3, [r7, #8]
  50943. 8015114: 2b00 cmp r3, #0
  50944. 8015116: d130 bne.n 801517a <prvProcessTimerOrBlockTask+0x82>
  50945. {
  50946. /* The tick count has not overflowed, has the timer expired? */
  50947. if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
  50948. 8015118: 683b ldr r3, [r7, #0]
  50949. 801511a: 2b00 cmp r3, #0
  50950. 801511c: d10a bne.n 8015134 <prvProcessTimerOrBlockTask+0x3c>
  50951. 801511e: 687a ldr r2, [r7, #4]
  50952. 8015120: 68fb ldr r3, [r7, #12]
  50953. 8015122: 429a cmp r2, r3
  50954. 8015124: d806 bhi.n 8015134 <prvProcessTimerOrBlockTask+0x3c>
  50955. {
  50956. ( void ) xTaskResumeAll();
  50957. 8015126: f7fe fe01 bl 8013d2c <xTaskResumeAll>
  50958. prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
  50959. 801512a: 68f9 ldr r1, [r7, #12]
  50960. 801512c: 6878 ldr r0, [r7, #4]
  50961. 801512e: f7ff ff81 bl 8015034 <prvProcessExpiredTimer>
  50962. else
  50963. {
  50964. ( void ) xTaskResumeAll();
  50965. }
  50966. }
  50967. }
  50968. 8015132: e024 b.n 801517e <prvProcessTimerOrBlockTask+0x86>
  50969. if( xListWasEmpty != pdFALSE )
  50970. 8015134: 683b ldr r3, [r7, #0]
  50971. 8015136: 2b00 cmp r3, #0
  50972. 8015138: d008 beq.n 801514c <prvProcessTimerOrBlockTask+0x54>
  50973. xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
  50974. 801513a: 4b13 ldr r3, [pc, #76] @ (8015188 <prvProcessTimerOrBlockTask+0x90>)
  50975. 801513c: 681b ldr r3, [r3, #0]
  50976. 801513e: 681b ldr r3, [r3, #0]
  50977. 8015140: 2b00 cmp r3, #0
  50978. 8015142: d101 bne.n 8015148 <prvProcessTimerOrBlockTask+0x50>
  50979. 8015144: 2301 movs r3, #1
  50980. 8015146: e000 b.n 801514a <prvProcessTimerOrBlockTask+0x52>
  50981. 8015148: 2300 movs r3, #0
  50982. 801514a: 603b str r3, [r7, #0]
  50983. vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
  50984. 801514c: 4b0f ldr r3, [pc, #60] @ (801518c <prvProcessTimerOrBlockTask+0x94>)
  50985. 801514e: 6818 ldr r0, [r3, #0]
  50986. 8015150: 687a ldr r2, [r7, #4]
  50987. 8015152: 68fb ldr r3, [r7, #12]
  50988. 8015154: 1ad3 subs r3, r2, r3
  50989. 8015156: 683a ldr r2, [r7, #0]
  50990. 8015158: 4619 mov r1, r3
  50991. 801515a: f7fd ffa9 bl 80130b0 <vQueueWaitForMessageRestricted>
  50992. if( xTaskResumeAll() == pdFALSE )
  50993. 801515e: f7fe fde5 bl 8013d2c <xTaskResumeAll>
  50994. 8015162: 4603 mov r3, r0
  50995. 8015164: 2b00 cmp r3, #0
  50996. 8015166: d10a bne.n 801517e <prvProcessTimerOrBlockTask+0x86>
  50997. portYIELD_WITHIN_API();
  50998. 8015168: 4b09 ldr r3, [pc, #36] @ (8015190 <prvProcessTimerOrBlockTask+0x98>)
  50999. 801516a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  51000. 801516e: 601a str r2, [r3, #0]
  51001. 8015170: f3bf 8f4f dsb sy
  51002. 8015174: f3bf 8f6f isb sy
  51003. }
  51004. 8015178: e001 b.n 801517e <prvProcessTimerOrBlockTask+0x86>
  51005. ( void ) xTaskResumeAll();
  51006. 801517a: f7fe fdd7 bl 8013d2c <xTaskResumeAll>
  51007. }
  51008. 801517e: bf00 nop
  51009. 8015180: 3710 adds r7, #16
  51010. 8015182: 46bd mov sp, r7
  51011. 8015184: bd80 pop {r7, pc}
  51012. 8015186: bf00 nop
  51013. 8015188: 2400429c .word 0x2400429c
  51014. 801518c: 240042a0 .word 0x240042a0
  51015. 8015190: e000ed04 .word 0xe000ed04
  51016. 08015194 <prvGetNextExpireTime>:
  51017. /*-----------------------------------------------------------*/
  51018. static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
  51019. {
  51020. 8015194: b480 push {r7}
  51021. 8015196: b085 sub sp, #20
  51022. 8015198: af00 add r7, sp, #0
  51023. 801519a: 6078 str r0, [r7, #4]
  51024. the timer with the nearest expiry time will expire. If there are no
  51025. active timers then just set the next expire time to 0. That will cause
  51026. this task to unblock when the tick count overflows, at which point the
  51027. timer lists will be switched and the next expiry time can be
  51028. re-assessed. */
  51029. *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
  51030. 801519c: 4b0e ldr r3, [pc, #56] @ (80151d8 <prvGetNextExpireTime+0x44>)
  51031. 801519e: 681b ldr r3, [r3, #0]
  51032. 80151a0: 681b ldr r3, [r3, #0]
  51033. 80151a2: 2b00 cmp r3, #0
  51034. 80151a4: d101 bne.n 80151aa <prvGetNextExpireTime+0x16>
  51035. 80151a6: 2201 movs r2, #1
  51036. 80151a8: e000 b.n 80151ac <prvGetNextExpireTime+0x18>
  51037. 80151aa: 2200 movs r2, #0
  51038. 80151ac: 687b ldr r3, [r7, #4]
  51039. 80151ae: 601a str r2, [r3, #0]
  51040. if( *pxListWasEmpty == pdFALSE )
  51041. 80151b0: 687b ldr r3, [r7, #4]
  51042. 80151b2: 681b ldr r3, [r3, #0]
  51043. 80151b4: 2b00 cmp r3, #0
  51044. 80151b6: d105 bne.n 80151c4 <prvGetNextExpireTime+0x30>
  51045. {
  51046. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  51047. 80151b8: 4b07 ldr r3, [pc, #28] @ (80151d8 <prvGetNextExpireTime+0x44>)
  51048. 80151ba: 681b ldr r3, [r3, #0]
  51049. 80151bc: 68db ldr r3, [r3, #12]
  51050. 80151be: 681b ldr r3, [r3, #0]
  51051. 80151c0: 60fb str r3, [r7, #12]
  51052. 80151c2: e001 b.n 80151c8 <prvGetNextExpireTime+0x34>
  51053. }
  51054. else
  51055. {
  51056. /* Ensure the task unblocks when the tick count rolls over. */
  51057. xNextExpireTime = ( TickType_t ) 0U;
  51058. 80151c4: 2300 movs r3, #0
  51059. 80151c6: 60fb str r3, [r7, #12]
  51060. }
  51061. return xNextExpireTime;
  51062. 80151c8: 68fb ldr r3, [r7, #12]
  51063. }
  51064. 80151ca: 4618 mov r0, r3
  51065. 80151cc: 3714 adds r7, #20
  51066. 80151ce: 46bd mov sp, r7
  51067. 80151d0: f85d 7b04 ldr.w r7, [sp], #4
  51068. 80151d4: 4770 bx lr
  51069. 80151d6: bf00 nop
  51070. 80151d8: 24004298 .word 0x24004298
  51071. 080151dc <prvSampleTimeNow>:
  51072. /*-----------------------------------------------------------*/
  51073. static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
  51074. {
  51075. 80151dc: b580 push {r7, lr}
  51076. 80151de: b084 sub sp, #16
  51077. 80151e0: af00 add r7, sp, #0
  51078. 80151e2: 6078 str r0, [r7, #4]
  51079. TickType_t xTimeNow;
  51080. PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
  51081. xTimeNow = xTaskGetTickCount();
  51082. 80151e4: f7fe fe40 bl 8013e68 <xTaskGetTickCount>
  51083. 80151e8: 60f8 str r0, [r7, #12]
  51084. if( xTimeNow < xLastTime )
  51085. 80151ea: 4b0b ldr r3, [pc, #44] @ (8015218 <prvSampleTimeNow+0x3c>)
  51086. 80151ec: 681b ldr r3, [r3, #0]
  51087. 80151ee: 68fa ldr r2, [r7, #12]
  51088. 80151f0: 429a cmp r2, r3
  51089. 80151f2: d205 bcs.n 8015200 <prvSampleTimeNow+0x24>
  51090. {
  51091. prvSwitchTimerLists();
  51092. 80151f4: f000 f93a bl 801546c <prvSwitchTimerLists>
  51093. *pxTimerListsWereSwitched = pdTRUE;
  51094. 80151f8: 687b ldr r3, [r7, #4]
  51095. 80151fa: 2201 movs r2, #1
  51096. 80151fc: 601a str r2, [r3, #0]
  51097. 80151fe: e002 b.n 8015206 <prvSampleTimeNow+0x2a>
  51098. }
  51099. else
  51100. {
  51101. *pxTimerListsWereSwitched = pdFALSE;
  51102. 8015200: 687b ldr r3, [r7, #4]
  51103. 8015202: 2200 movs r2, #0
  51104. 8015204: 601a str r2, [r3, #0]
  51105. }
  51106. xLastTime = xTimeNow;
  51107. 8015206: 4a04 ldr r2, [pc, #16] @ (8015218 <prvSampleTimeNow+0x3c>)
  51108. 8015208: 68fb ldr r3, [r7, #12]
  51109. 801520a: 6013 str r3, [r2, #0]
  51110. return xTimeNow;
  51111. 801520c: 68fb ldr r3, [r7, #12]
  51112. }
  51113. 801520e: 4618 mov r0, r3
  51114. 8015210: 3710 adds r7, #16
  51115. 8015212: 46bd mov sp, r7
  51116. 8015214: bd80 pop {r7, pc}
  51117. 8015216: bf00 nop
  51118. 8015218: 240042a8 .word 0x240042a8
  51119. 0801521c <prvInsertTimerInActiveList>:
  51120. /*-----------------------------------------------------------*/
  51121. static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
  51122. {
  51123. 801521c: b580 push {r7, lr}
  51124. 801521e: b086 sub sp, #24
  51125. 8015220: af00 add r7, sp, #0
  51126. 8015222: 60f8 str r0, [r7, #12]
  51127. 8015224: 60b9 str r1, [r7, #8]
  51128. 8015226: 607a str r2, [r7, #4]
  51129. 8015228: 603b str r3, [r7, #0]
  51130. BaseType_t xProcessTimerNow = pdFALSE;
  51131. 801522a: 2300 movs r3, #0
  51132. 801522c: 617b str r3, [r7, #20]
  51133. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
  51134. 801522e: 68fb ldr r3, [r7, #12]
  51135. 8015230: 68ba ldr r2, [r7, #8]
  51136. 8015232: 605a str r2, [r3, #4]
  51137. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  51138. 8015234: 68fb ldr r3, [r7, #12]
  51139. 8015236: 68fa ldr r2, [r7, #12]
  51140. 8015238: 611a str r2, [r3, #16]
  51141. if( xNextExpiryTime <= xTimeNow )
  51142. 801523a: 68ba ldr r2, [r7, #8]
  51143. 801523c: 687b ldr r3, [r7, #4]
  51144. 801523e: 429a cmp r2, r3
  51145. 8015240: d812 bhi.n 8015268 <prvInsertTimerInActiveList+0x4c>
  51146. {
  51147. /* Has the expiry time elapsed between the command to start/reset a
  51148. timer was issued, and the time the command was processed? */
  51149. if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  51150. 8015242: 687a ldr r2, [r7, #4]
  51151. 8015244: 683b ldr r3, [r7, #0]
  51152. 8015246: 1ad2 subs r2, r2, r3
  51153. 8015248: 68fb ldr r3, [r7, #12]
  51154. 801524a: 699b ldr r3, [r3, #24]
  51155. 801524c: 429a cmp r2, r3
  51156. 801524e: d302 bcc.n 8015256 <prvInsertTimerInActiveList+0x3a>
  51157. {
  51158. /* The time between a command being issued and the command being
  51159. processed actually exceeds the timers period. */
  51160. xProcessTimerNow = pdTRUE;
  51161. 8015250: 2301 movs r3, #1
  51162. 8015252: 617b str r3, [r7, #20]
  51163. 8015254: e01b b.n 801528e <prvInsertTimerInActiveList+0x72>
  51164. }
  51165. else
  51166. {
  51167. vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
  51168. 8015256: 4b10 ldr r3, [pc, #64] @ (8015298 <prvInsertTimerInActiveList+0x7c>)
  51169. 8015258: 681a ldr r2, [r3, #0]
  51170. 801525a: 68fb ldr r3, [r7, #12]
  51171. 801525c: 3304 adds r3, #4
  51172. 801525e: 4619 mov r1, r3
  51173. 8015260: 4610 mov r0, r2
  51174. 8015262: f7fc fdd4 bl 8011e0e <vListInsert>
  51175. 8015266: e012 b.n 801528e <prvInsertTimerInActiveList+0x72>
  51176. }
  51177. }
  51178. else
  51179. {
  51180. if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
  51181. 8015268: 687a ldr r2, [r7, #4]
  51182. 801526a: 683b ldr r3, [r7, #0]
  51183. 801526c: 429a cmp r2, r3
  51184. 801526e: d206 bcs.n 801527e <prvInsertTimerInActiveList+0x62>
  51185. 8015270: 68ba ldr r2, [r7, #8]
  51186. 8015272: 683b ldr r3, [r7, #0]
  51187. 8015274: 429a cmp r2, r3
  51188. 8015276: d302 bcc.n 801527e <prvInsertTimerInActiveList+0x62>
  51189. {
  51190. /* If, since the command was issued, the tick count has overflowed
  51191. but the expiry time has not, then the timer must have already passed
  51192. its expiry time and should be processed immediately. */
  51193. xProcessTimerNow = pdTRUE;
  51194. 8015278: 2301 movs r3, #1
  51195. 801527a: 617b str r3, [r7, #20]
  51196. 801527c: e007 b.n 801528e <prvInsertTimerInActiveList+0x72>
  51197. }
  51198. else
  51199. {
  51200. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  51201. 801527e: 4b07 ldr r3, [pc, #28] @ (801529c <prvInsertTimerInActiveList+0x80>)
  51202. 8015280: 681a ldr r2, [r3, #0]
  51203. 8015282: 68fb ldr r3, [r7, #12]
  51204. 8015284: 3304 adds r3, #4
  51205. 8015286: 4619 mov r1, r3
  51206. 8015288: 4610 mov r0, r2
  51207. 801528a: f7fc fdc0 bl 8011e0e <vListInsert>
  51208. }
  51209. }
  51210. return xProcessTimerNow;
  51211. 801528e: 697b ldr r3, [r7, #20]
  51212. }
  51213. 8015290: 4618 mov r0, r3
  51214. 8015292: 3718 adds r7, #24
  51215. 8015294: 46bd mov sp, r7
  51216. 8015296: bd80 pop {r7, pc}
  51217. 8015298: 2400429c .word 0x2400429c
  51218. 801529c: 24004298 .word 0x24004298
  51219. 080152a0 <prvProcessReceivedCommands>:
  51220. /*-----------------------------------------------------------*/
  51221. static void prvProcessReceivedCommands( void )
  51222. {
  51223. 80152a0: b580 push {r7, lr}
  51224. 80152a2: b08e sub sp, #56 @ 0x38
  51225. 80152a4: af02 add r7, sp, #8
  51226. DaemonTaskMessage_t xMessage;
  51227. Timer_t *pxTimer;
  51228. BaseType_t xTimerListsWereSwitched, xResult;
  51229. TickType_t xTimeNow;
  51230. 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. */
  51231. 80152a6: e0ce b.n 8015446 <prvProcessReceivedCommands+0x1a6>
  51232. {
  51233. #if ( INCLUDE_xTimerPendFunctionCall == 1 )
  51234. {
  51235. /* Negative commands are pended function calls rather than timer
  51236. commands. */
  51237. if( xMessage.xMessageID < ( BaseType_t ) 0 )
  51238. 80152a8: 687b ldr r3, [r7, #4]
  51239. 80152aa: 2b00 cmp r3, #0
  51240. 80152ac: da19 bge.n 80152e2 <prvProcessReceivedCommands+0x42>
  51241. {
  51242. const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );
  51243. 80152ae: 1d3b adds r3, r7, #4
  51244. 80152b0: 3304 adds r3, #4
  51245. 80152b2: 62fb str r3, [r7, #44] @ 0x2c
  51246. /* The timer uses the xCallbackParameters member to request a
  51247. callback be executed. Check the callback is not NULL. */
  51248. configASSERT( pxCallback );
  51249. 80152b4: 6afb ldr r3, [r7, #44] @ 0x2c
  51250. 80152b6: 2b00 cmp r3, #0
  51251. 80152b8: d10b bne.n 80152d2 <prvProcessReceivedCommands+0x32>
  51252. __asm volatile
  51253. 80152ba: f04f 0350 mov.w r3, #80 @ 0x50
  51254. 80152be: f383 8811 msr BASEPRI, r3
  51255. 80152c2: f3bf 8f6f isb sy
  51256. 80152c6: f3bf 8f4f dsb sy
  51257. 80152ca: 61fb str r3, [r7, #28]
  51258. }
  51259. 80152cc: bf00 nop
  51260. 80152ce: bf00 nop
  51261. 80152d0: e7fd b.n 80152ce <prvProcessReceivedCommands+0x2e>
  51262. /* Call the function. */
  51263. pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 );
  51264. 80152d2: 6afb ldr r3, [r7, #44] @ 0x2c
  51265. 80152d4: 681b ldr r3, [r3, #0]
  51266. 80152d6: 6afa ldr r2, [r7, #44] @ 0x2c
  51267. 80152d8: 6850 ldr r0, [r2, #4]
  51268. 80152da: 6afa ldr r2, [r7, #44] @ 0x2c
  51269. 80152dc: 6892 ldr r2, [r2, #8]
  51270. 80152de: 4611 mov r1, r2
  51271. 80152e0: 4798 blx r3
  51272. }
  51273. #endif /* INCLUDE_xTimerPendFunctionCall */
  51274. /* Commands that are positive are timer commands rather than pended
  51275. function calls. */
  51276. if( xMessage.xMessageID >= ( BaseType_t ) 0 )
  51277. 80152e2: 687b ldr r3, [r7, #4]
  51278. 80152e4: 2b00 cmp r3, #0
  51279. 80152e6: f2c0 80ae blt.w 8015446 <prvProcessReceivedCommands+0x1a6>
  51280. {
  51281. /* The messages uses the xTimerParameters member to work on a
  51282. software timer. */
  51283. pxTimer = xMessage.u.xTimerParameters.pxTimer;
  51284. 80152ea: 68fb ldr r3, [r7, #12]
  51285. 80152ec: 62bb str r3, [r7, #40] @ 0x28
  51286. if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
  51287. 80152ee: 6abb ldr r3, [r7, #40] @ 0x28
  51288. 80152f0: 695b ldr r3, [r3, #20]
  51289. 80152f2: 2b00 cmp r3, #0
  51290. 80152f4: d004 beq.n 8015300 <prvProcessReceivedCommands+0x60>
  51291. {
  51292. /* The timer is in a list, remove it. */
  51293. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  51294. 80152f6: 6abb ldr r3, [r7, #40] @ 0x28
  51295. 80152f8: 3304 adds r3, #4
  51296. 80152fa: 4618 mov r0, r3
  51297. 80152fc: f7fc fdc0 bl 8011e80 <uxListRemove>
  51298. it must be present in the function call. prvSampleTimeNow() must be
  51299. called after the message is received from xTimerQueue so there is no
  51300. possibility of a higher priority task adding a message to the message
  51301. queue with a time that is ahead of the timer daemon task (because it
  51302. pre-empted the timer daemon task after the xTimeNow value was set). */
  51303. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  51304. 8015300: 463b mov r3, r7
  51305. 8015302: 4618 mov r0, r3
  51306. 8015304: f7ff ff6a bl 80151dc <prvSampleTimeNow>
  51307. 8015308: 6278 str r0, [r7, #36] @ 0x24
  51308. switch( xMessage.xMessageID )
  51309. 801530a: 687b ldr r3, [r7, #4]
  51310. 801530c: 2b09 cmp r3, #9
  51311. 801530e: f200 8097 bhi.w 8015440 <prvProcessReceivedCommands+0x1a0>
  51312. 8015312: a201 add r2, pc, #4 @ (adr r2, 8015318 <prvProcessReceivedCommands+0x78>)
  51313. 8015314: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  51314. 8015318: 08015341 .word 0x08015341
  51315. 801531c: 08015341 .word 0x08015341
  51316. 8015320: 08015341 .word 0x08015341
  51317. 8015324: 080153b7 .word 0x080153b7
  51318. 8015328: 080153cb .word 0x080153cb
  51319. 801532c: 08015417 .word 0x08015417
  51320. 8015330: 08015341 .word 0x08015341
  51321. 8015334: 08015341 .word 0x08015341
  51322. 8015338: 080153b7 .word 0x080153b7
  51323. 801533c: 080153cb .word 0x080153cb
  51324. case tmrCOMMAND_START_FROM_ISR :
  51325. case tmrCOMMAND_RESET :
  51326. case tmrCOMMAND_RESET_FROM_ISR :
  51327. case tmrCOMMAND_START_DONT_TRACE :
  51328. /* Start or restart a timer. */
  51329. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  51330. 8015340: 6abb ldr r3, [r7, #40] @ 0x28
  51331. 8015342: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51332. 8015346: f043 0301 orr.w r3, r3, #1
  51333. 801534a: b2da uxtb r2, r3
  51334. 801534c: 6abb ldr r3, [r7, #40] @ 0x28
  51335. 801534e: f883 2028 strb.w r2, [r3, #40] @ 0x28
  51336. if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
  51337. 8015352: 68ba ldr r2, [r7, #8]
  51338. 8015354: 6abb ldr r3, [r7, #40] @ 0x28
  51339. 8015356: 699b ldr r3, [r3, #24]
  51340. 8015358: 18d1 adds r1, r2, r3
  51341. 801535a: 68bb ldr r3, [r7, #8]
  51342. 801535c: 6a7a ldr r2, [r7, #36] @ 0x24
  51343. 801535e: 6ab8 ldr r0, [r7, #40] @ 0x28
  51344. 8015360: f7ff ff5c bl 801521c <prvInsertTimerInActiveList>
  51345. 8015364: 4603 mov r3, r0
  51346. 8015366: 2b00 cmp r3, #0
  51347. 8015368: d06c beq.n 8015444 <prvProcessReceivedCommands+0x1a4>
  51348. {
  51349. /* The timer expired before it was added to the active
  51350. timer list. Process it now. */
  51351. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  51352. 801536a: 6abb ldr r3, [r7, #40] @ 0x28
  51353. 801536c: 6a1b ldr r3, [r3, #32]
  51354. 801536e: 6ab8 ldr r0, [r7, #40] @ 0x28
  51355. 8015370: 4798 blx r3
  51356. traceTIMER_EXPIRED( pxTimer );
  51357. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  51358. 8015372: 6abb ldr r3, [r7, #40] @ 0x28
  51359. 8015374: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51360. 8015378: f003 0304 and.w r3, r3, #4
  51361. 801537c: 2b00 cmp r3, #0
  51362. 801537e: d061 beq.n 8015444 <prvProcessReceivedCommands+0x1a4>
  51363. {
  51364. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
  51365. 8015380: 68ba ldr r2, [r7, #8]
  51366. 8015382: 6abb ldr r3, [r7, #40] @ 0x28
  51367. 8015384: 699b ldr r3, [r3, #24]
  51368. 8015386: 441a add r2, r3
  51369. 8015388: 2300 movs r3, #0
  51370. 801538a: 9300 str r3, [sp, #0]
  51371. 801538c: 2300 movs r3, #0
  51372. 801538e: 2100 movs r1, #0
  51373. 8015390: 6ab8 ldr r0, [r7, #40] @ 0x28
  51374. 8015392: f7ff fe01 bl 8014f98 <xTimerGenericCommand>
  51375. 8015396: 6238 str r0, [r7, #32]
  51376. configASSERT( xResult );
  51377. 8015398: 6a3b ldr r3, [r7, #32]
  51378. 801539a: 2b00 cmp r3, #0
  51379. 801539c: d152 bne.n 8015444 <prvProcessReceivedCommands+0x1a4>
  51380. __asm volatile
  51381. 801539e: f04f 0350 mov.w r3, #80 @ 0x50
  51382. 80153a2: f383 8811 msr BASEPRI, r3
  51383. 80153a6: f3bf 8f6f isb sy
  51384. 80153aa: f3bf 8f4f dsb sy
  51385. 80153ae: 61bb str r3, [r7, #24]
  51386. }
  51387. 80153b0: bf00 nop
  51388. 80153b2: bf00 nop
  51389. 80153b4: e7fd b.n 80153b2 <prvProcessReceivedCommands+0x112>
  51390. break;
  51391. case tmrCOMMAND_STOP :
  51392. case tmrCOMMAND_STOP_FROM_ISR :
  51393. /* The timer has already been removed from the active list. */
  51394. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  51395. 80153b6: 6abb ldr r3, [r7, #40] @ 0x28
  51396. 80153b8: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51397. 80153bc: f023 0301 bic.w r3, r3, #1
  51398. 80153c0: b2da uxtb r2, r3
  51399. 80153c2: 6abb ldr r3, [r7, #40] @ 0x28
  51400. 80153c4: f883 2028 strb.w r2, [r3, #40] @ 0x28
  51401. break;
  51402. 80153c8: e03d b.n 8015446 <prvProcessReceivedCommands+0x1a6>
  51403. case tmrCOMMAND_CHANGE_PERIOD :
  51404. case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
  51405. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  51406. 80153ca: 6abb ldr r3, [r7, #40] @ 0x28
  51407. 80153cc: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51408. 80153d0: f043 0301 orr.w r3, r3, #1
  51409. 80153d4: b2da uxtb r2, r3
  51410. 80153d6: 6abb ldr r3, [r7, #40] @ 0x28
  51411. 80153d8: f883 2028 strb.w r2, [r3, #40] @ 0x28
  51412. pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
  51413. 80153dc: 68ba ldr r2, [r7, #8]
  51414. 80153de: 6abb ldr r3, [r7, #40] @ 0x28
  51415. 80153e0: 619a str r2, [r3, #24]
  51416. configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
  51417. 80153e2: 6abb ldr r3, [r7, #40] @ 0x28
  51418. 80153e4: 699b ldr r3, [r3, #24]
  51419. 80153e6: 2b00 cmp r3, #0
  51420. 80153e8: d10b bne.n 8015402 <prvProcessReceivedCommands+0x162>
  51421. __asm volatile
  51422. 80153ea: f04f 0350 mov.w r3, #80 @ 0x50
  51423. 80153ee: f383 8811 msr BASEPRI, r3
  51424. 80153f2: f3bf 8f6f isb sy
  51425. 80153f6: f3bf 8f4f dsb sy
  51426. 80153fa: 617b str r3, [r7, #20]
  51427. }
  51428. 80153fc: bf00 nop
  51429. 80153fe: bf00 nop
  51430. 8015400: e7fd b.n 80153fe <prvProcessReceivedCommands+0x15e>
  51431. be longer or shorter than the old one. The command time is
  51432. therefore set to the current time, and as the period cannot
  51433. be zero the next expiry time can only be in the future,
  51434. meaning (unlike for the xTimerStart() case above) there is
  51435. no fail case that needs to be handled here. */
  51436. ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
  51437. 8015402: 6abb ldr r3, [r7, #40] @ 0x28
  51438. 8015404: 699a ldr r2, [r3, #24]
  51439. 8015406: 6a7b ldr r3, [r7, #36] @ 0x24
  51440. 8015408: 18d1 adds r1, r2, r3
  51441. 801540a: 6a7b ldr r3, [r7, #36] @ 0x24
  51442. 801540c: 6a7a ldr r2, [r7, #36] @ 0x24
  51443. 801540e: 6ab8 ldr r0, [r7, #40] @ 0x28
  51444. 8015410: f7ff ff04 bl 801521c <prvInsertTimerInActiveList>
  51445. break;
  51446. 8015414: e017 b.n 8015446 <prvProcessReceivedCommands+0x1a6>
  51447. #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  51448. {
  51449. /* The timer has already been removed from the active list,
  51450. just free up the memory if the memory was dynamically
  51451. allocated. */
  51452. if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
  51453. 8015416: 6abb ldr r3, [r7, #40] @ 0x28
  51454. 8015418: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51455. 801541c: f003 0302 and.w r3, r3, #2
  51456. 8015420: 2b00 cmp r3, #0
  51457. 8015422: d103 bne.n 801542c <prvProcessReceivedCommands+0x18c>
  51458. {
  51459. vPortFree( pxTimer );
  51460. 8015424: 6ab8 ldr r0, [r7, #40] @ 0x28
  51461. 8015426: f000 fc37 bl 8015c98 <vPortFree>
  51462. no need to free the memory - just mark the timer as
  51463. "not active". */
  51464. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  51465. }
  51466. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  51467. break;
  51468. 801542a: e00c b.n 8015446 <prvProcessReceivedCommands+0x1a6>
  51469. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  51470. 801542c: 6abb ldr r3, [r7, #40] @ 0x28
  51471. 801542e: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51472. 8015432: f023 0301 bic.w r3, r3, #1
  51473. 8015436: b2da uxtb r2, r3
  51474. 8015438: 6abb ldr r3, [r7, #40] @ 0x28
  51475. 801543a: f883 2028 strb.w r2, [r3, #40] @ 0x28
  51476. break;
  51477. 801543e: e002 b.n 8015446 <prvProcessReceivedCommands+0x1a6>
  51478. default :
  51479. /* Don't expect to get here. */
  51480. break;
  51481. 8015440: bf00 nop
  51482. 8015442: e000 b.n 8015446 <prvProcessReceivedCommands+0x1a6>
  51483. break;
  51484. 8015444: bf00 nop
  51485. 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. */
  51486. 8015446: 4b08 ldr r3, [pc, #32] @ (8015468 <prvProcessReceivedCommands+0x1c8>)
  51487. 8015448: 681b ldr r3, [r3, #0]
  51488. 801544a: 1d39 adds r1, r7, #4
  51489. 801544c: 2200 movs r2, #0
  51490. 801544e: 4618 mov r0, r3
  51491. 8015450: f7fd f9dc bl 801280c <xQueueReceive>
  51492. 8015454: 4603 mov r3, r0
  51493. 8015456: 2b00 cmp r3, #0
  51494. 8015458: f47f af26 bne.w 80152a8 <prvProcessReceivedCommands+0x8>
  51495. }
  51496. }
  51497. }
  51498. }
  51499. 801545c: bf00 nop
  51500. 801545e: bf00 nop
  51501. 8015460: 3730 adds r7, #48 @ 0x30
  51502. 8015462: 46bd mov sp, r7
  51503. 8015464: bd80 pop {r7, pc}
  51504. 8015466: bf00 nop
  51505. 8015468: 240042a0 .word 0x240042a0
  51506. 0801546c <prvSwitchTimerLists>:
  51507. /*-----------------------------------------------------------*/
  51508. static void prvSwitchTimerLists( void )
  51509. {
  51510. 801546c: b580 push {r7, lr}
  51511. 801546e: b088 sub sp, #32
  51512. 8015470: af02 add r7, sp, #8
  51513. /* The tick count has overflowed. The timer lists must be switched.
  51514. If there are any timers still referenced from the current timer list
  51515. then they must have expired and should be processed before the lists
  51516. are switched. */
  51517. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  51518. 8015472: e049 b.n 8015508 <prvSwitchTimerLists+0x9c>
  51519. {
  51520. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  51521. 8015474: 4b2e ldr r3, [pc, #184] @ (8015530 <prvSwitchTimerLists+0xc4>)
  51522. 8015476: 681b ldr r3, [r3, #0]
  51523. 8015478: 68db ldr r3, [r3, #12]
  51524. 801547a: 681b ldr r3, [r3, #0]
  51525. 801547c: 613b str r3, [r7, #16]
  51526. /* Remove the timer from the list. */
  51527. 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. */
  51528. 801547e: 4b2c ldr r3, [pc, #176] @ (8015530 <prvSwitchTimerLists+0xc4>)
  51529. 8015480: 681b ldr r3, [r3, #0]
  51530. 8015482: 68db ldr r3, [r3, #12]
  51531. 8015484: 68db ldr r3, [r3, #12]
  51532. 8015486: 60fb str r3, [r7, #12]
  51533. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  51534. 8015488: 68fb ldr r3, [r7, #12]
  51535. 801548a: 3304 adds r3, #4
  51536. 801548c: 4618 mov r0, r3
  51537. 801548e: f7fc fcf7 bl 8011e80 <uxListRemove>
  51538. traceTIMER_EXPIRED( pxTimer );
  51539. /* Execute its callback, then send a command to restart the timer if
  51540. it is an auto-reload timer. It cannot be restarted here as the lists
  51541. have not yet been switched. */
  51542. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  51543. 8015492: 68fb ldr r3, [r7, #12]
  51544. 8015494: 6a1b ldr r3, [r3, #32]
  51545. 8015496: 68f8 ldr r0, [r7, #12]
  51546. 8015498: 4798 blx r3
  51547. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  51548. 801549a: 68fb ldr r3, [r7, #12]
  51549. 801549c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51550. 80154a0: f003 0304 and.w r3, r3, #4
  51551. 80154a4: 2b00 cmp r3, #0
  51552. 80154a6: d02f beq.n 8015508 <prvSwitchTimerLists+0x9c>
  51553. the timer going into the same timer list then it has already expired
  51554. and the timer should be re-inserted into the current list so it is
  51555. processed again within this loop. Otherwise a command should be sent
  51556. to restart the timer to ensure it is only inserted into a list after
  51557. the lists have been swapped. */
  51558. xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
  51559. 80154a8: 68fb ldr r3, [r7, #12]
  51560. 80154aa: 699b ldr r3, [r3, #24]
  51561. 80154ac: 693a ldr r2, [r7, #16]
  51562. 80154ae: 4413 add r3, r2
  51563. 80154b0: 60bb str r3, [r7, #8]
  51564. if( xReloadTime > xNextExpireTime )
  51565. 80154b2: 68ba ldr r2, [r7, #8]
  51566. 80154b4: 693b ldr r3, [r7, #16]
  51567. 80154b6: 429a cmp r2, r3
  51568. 80154b8: d90e bls.n 80154d8 <prvSwitchTimerLists+0x6c>
  51569. {
  51570. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
  51571. 80154ba: 68fb ldr r3, [r7, #12]
  51572. 80154bc: 68ba ldr r2, [r7, #8]
  51573. 80154be: 605a str r2, [r3, #4]
  51574. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  51575. 80154c0: 68fb ldr r3, [r7, #12]
  51576. 80154c2: 68fa ldr r2, [r7, #12]
  51577. 80154c4: 611a str r2, [r3, #16]
  51578. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  51579. 80154c6: 4b1a ldr r3, [pc, #104] @ (8015530 <prvSwitchTimerLists+0xc4>)
  51580. 80154c8: 681a ldr r2, [r3, #0]
  51581. 80154ca: 68fb ldr r3, [r7, #12]
  51582. 80154cc: 3304 adds r3, #4
  51583. 80154ce: 4619 mov r1, r3
  51584. 80154d0: 4610 mov r0, r2
  51585. 80154d2: f7fc fc9c bl 8011e0e <vListInsert>
  51586. 80154d6: e017 b.n 8015508 <prvSwitchTimerLists+0x9c>
  51587. }
  51588. else
  51589. {
  51590. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  51591. 80154d8: 2300 movs r3, #0
  51592. 80154da: 9300 str r3, [sp, #0]
  51593. 80154dc: 2300 movs r3, #0
  51594. 80154de: 693a ldr r2, [r7, #16]
  51595. 80154e0: 2100 movs r1, #0
  51596. 80154e2: 68f8 ldr r0, [r7, #12]
  51597. 80154e4: f7ff fd58 bl 8014f98 <xTimerGenericCommand>
  51598. 80154e8: 6078 str r0, [r7, #4]
  51599. configASSERT( xResult );
  51600. 80154ea: 687b ldr r3, [r7, #4]
  51601. 80154ec: 2b00 cmp r3, #0
  51602. 80154ee: d10b bne.n 8015508 <prvSwitchTimerLists+0x9c>
  51603. __asm volatile
  51604. 80154f0: f04f 0350 mov.w r3, #80 @ 0x50
  51605. 80154f4: f383 8811 msr BASEPRI, r3
  51606. 80154f8: f3bf 8f6f isb sy
  51607. 80154fc: f3bf 8f4f dsb sy
  51608. 8015500: 603b str r3, [r7, #0]
  51609. }
  51610. 8015502: bf00 nop
  51611. 8015504: bf00 nop
  51612. 8015506: e7fd b.n 8015504 <prvSwitchTimerLists+0x98>
  51613. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  51614. 8015508: 4b09 ldr r3, [pc, #36] @ (8015530 <prvSwitchTimerLists+0xc4>)
  51615. 801550a: 681b ldr r3, [r3, #0]
  51616. 801550c: 681b ldr r3, [r3, #0]
  51617. 801550e: 2b00 cmp r3, #0
  51618. 8015510: d1b0 bne.n 8015474 <prvSwitchTimerLists+0x8>
  51619. {
  51620. mtCOVERAGE_TEST_MARKER();
  51621. }
  51622. }
  51623. pxTemp = pxCurrentTimerList;
  51624. 8015512: 4b07 ldr r3, [pc, #28] @ (8015530 <prvSwitchTimerLists+0xc4>)
  51625. 8015514: 681b ldr r3, [r3, #0]
  51626. 8015516: 617b str r3, [r7, #20]
  51627. pxCurrentTimerList = pxOverflowTimerList;
  51628. 8015518: 4b06 ldr r3, [pc, #24] @ (8015534 <prvSwitchTimerLists+0xc8>)
  51629. 801551a: 681b ldr r3, [r3, #0]
  51630. 801551c: 4a04 ldr r2, [pc, #16] @ (8015530 <prvSwitchTimerLists+0xc4>)
  51631. 801551e: 6013 str r3, [r2, #0]
  51632. pxOverflowTimerList = pxTemp;
  51633. 8015520: 4a04 ldr r2, [pc, #16] @ (8015534 <prvSwitchTimerLists+0xc8>)
  51634. 8015522: 697b ldr r3, [r7, #20]
  51635. 8015524: 6013 str r3, [r2, #0]
  51636. }
  51637. 8015526: bf00 nop
  51638. 8015528: 3718 adds r7, #24
  51639. 801552a: 46bd mov sp, r7
  51640. 801552c: bd80 pop {r7, pc}
  51641. 801552e: bf00 nop
  51642. 8015530: 24004298 .word 0x24004298
  51643. 8015534: 2400429c .word 0x2400429c
  51644. 08015538 <prvCheckForValidListAndQueue>:
  51645. /*-----------------------------------------------------------*/
  51646. static void prvCheckForValidListAndQueue( void )
  51647. {
  51648. 8015538: b580 push {r7, lr}
  51649. 801553a: b082 sub sp, #8
  51650. 801553c: af02 add r7, sp, #8
  51651. /* Check that the list from which active timers are referenced, and the
  51652. queue used to communicate with the timer service, have been
  51653. initialised. */
  51654. taskENTER_CRITICAL();
  51655. 801553e: f000 f9bb bl 80158b8 <vPortEnterCritical>
  51656. {
  51657. if( xTimerQueue == NULL )
  51658. 8015542: 4b15 ldr r3, [pc, #84] @ (8015598 <prvCheckForValidListAndQueue+0x60>)
  51659. 8015544: 681b ldr r3, [r3, #0]
  51660. 8015546: 2b00 cmp r3, #0
  51661. 8015548: d120 bne.n 801558c <prvCheckForValidListAndQueue+0x54>
  51662. {
  51663. vListInitialise( &xActiveTimerList1 );
  51664. 801554a: 4814 ldr r0, [pc, #80] @ (801559c <prvCheckForValidListAndQueue+0x64>)
  51665. 801554c: f7fc fc0e bl 8011d6c <vListInitialise>
  51666. vListInitialise( &xActiveTimerList2 );
  51667. 8015550: 4813 ldr r0, [pc, #76] @ (80155a0 <prvCheckForValidListAndQueue+0x68>)
  51668. 8015552: f7fc fc0b bl 8011d6c <vListInitialise>
  51669. pxCurrentTimerList = &xActiveTimerList1;
  51670. 8015556: 4b13 ldr r3, [pc, #76] @ (80155a4 <prvCheckForValidListAndQueue+0x6c>)
  51671. 8015558: 4a10 ldr r2, [pc, #64] @ (801559c <prvCheckForValidListAndQueue+0x64>)
  51672. 801555a: 601a str r2, [r3, #0]
  51673. pxOverflowTimerList = &xActiveTimerList2;
  51674. 801555c: 4b12 ldr r3, [pc, #72] @ (80155a8 <prvCheckForValidListAndQueue+0x70>)
  51675. 801555e: 4a10 ldr r2, [pc, #64] @ (80155a0 <prvCheckForValidListAndQueue+0x68>)
  51676. 8015560: 601a str r2, [r3, #0]
  51677. /* The timer queue is allocated statically in case
  51678. configSUPPORT_DYNAMIC_ALLOCATION is 0. */
  51679. static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  51680. 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. */
  51681. xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
  51682. 8015562: 2300 movs r3, #0
  51683. 8015564: 9300 str r3, [sp, #0]
  51684. 8015566: 4b11 ldr r3, [pc, #68] @ (80155ac <prvCheckForValidListAndQueue+0x74>)
  51685. 8015568: 4a11 ldr r2, [pc, #68] @ (80155b0 <prvCheckForValidListAndQueue+0x78>)
  51686. 801556a: 2110 movs r1, #16
  51687. 801556c: 200a movs r0, #10
  51688. 801556e: f7fc fd1b bl 8011fa8 <xQueueGenericCreateStatic>
  51689. 8015572: 4603 mov r3, r0
  51690. 8015574: 4a08 ldr r2, [pc, #32] @ (8015598 <prvCheckForValidListAndQueue+0x60>)
  51691. 8015576: 6013 str r3, [r2, #0]
  51692. }
  51693. #endif
  51694. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  51695. {
  51696. if( xTimerQueue != NULL )
  51697. 8015578: 4b07 ldr r3, [pc, #28] @ (8015598 <prvCheckForValidListAndQueue+0x60>)
  51698. 801557a: 681b ldr r3, [r3, #0]
  51699. 801557c: 2b00 cmp r3, #0
  51700. 801557e: d005 beq.n 801558c <prvCheckForValidListAndQueue+0x54>
  51701. {
  51702. vQueueAddToRegistry( xTimerQueue, "TmrQ" );
  51703. 8015580: 4b05 ldr r3, [pc, #20] @ (8015598 <prvCheckForValidListAndQueue+0x60>)
  51704. 8015582: 681b ldr r3, [r3, #0]
  51705. 8015584: 490b ldr r1, [pc, #44] @ (80155b4 <prvCheckForValidListAndQueue+0x7c>)
  51706. 8015586: 4618 mov r0, r3
  51707. 8015588: f7fd fd3e bl 8013008 <vQueueAddToRegistry>
  51708. else
  51709. {
  51710. mtCOVERAGE_TEST_MARKER();
  51711. }
  51712. }
  51713. taskEXIT_CRITICAL();
  51714. 801558c: f000 f9c6 bl 801591c <vPortExitCritical>
  51715. }
  51716. 8015590: bf00 nop
  51717. 8015592: 46bd mov sp, r7
  51718. 8015594: bd80 pop {r7, pc}
  51719. 8015596: bf00 nop
  51720. 8015598: 240042a0 .word 0x240042a0
  51721. 801559c: 24004270 .word 0x24004270
  51722. 80155a0: 24004284 .word 0x24004284
  51723. 80155a4: 24004298 .word 0x24004298
  51724. 80155a8: 2400429c .word 0x2400429c
  51725. 80155ac: 2400434c .word 0x2400434c
  51726. 80155b0: 240042ac .word 0x240042ac
  51727. 80155b4: 0802da60 .word 0x0802da60
  51728. 080155b8 <xTimerIsTimerActive>:
  51729. /*-----------------------------------------------------------*/
  51730. BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer )
  51731. {
  51732. 80155b8: b580 push {r7, lr}
  51733. 80155ba: b086 sub sp, #24
  51734. 80155bc: af00 add r7, sp, #0
  51735. 80155be: 6078 str r0, [r7, #4]
  51736. BaseType_t xReturn;
  51737. Timer_t *pxTimer = xTimer;
  51738. 80155c0: 687b ldr r3, [r7, #4]
  51739. 80155c2: 613b str r3, [r7, #16]
  51740. configASSERT( xTimer );
  51741. 80155c4: 687b ldr r3, [r7, #4]
  51742. 80155c6: 2b00 cmp r3, #0
  51743. 80155c8: d10b bne.n 80155e2 <xTimerIsTimerActive+0x2a>
  51744. __asm volatile
  51745. 80155ca: f04f 0350 mov.w r3, #80 @ 0x50
  51746. 80155ce: f383 8811 msr BASEPRI, r3
  51747. 80155d2: f3bf 8f6f isb sy
  51748. 80155d6: f3bf 8f4f dsb sy
  51749. 80155da: 60fb str r3, [r7, #12]
  51750. }
  51751. 80155dc: bf00 nop
  51752. 80155de: bf00 nop
  51753. 80155e0: e7fd b.n 80155de <xTimerIsTimerActive+0x26>
  51754. /* Is the timer in the list of active timers? */
  51755. taskENTER_CRITICAL();
  51756. 80155e2: f000 f969 bl 80158b8 <vPortEnterCritical>
  51757. {
  51758. if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0 )
  51759. 80155e6: 693b ldr r3, [r7, #16]
  51760. 80155e8: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  51761. 80155ec: f003 0301 and.w r3, r3, #1
  51762. 80155f0: 2b00 cmp r3, #0
  51763. 80155f2: d102 bne.n 80155fa <xTimerIsTimerActive+0x42>
  51764. {
  51765. xReturn = pdFALSE;
  51766. 80155f4: 2300 movs r3, #0
  51767. 80155f6: 617b str r3, [r7, #20]
  51768. 80155f8: e001 b.n 80155fe <xTimerIsTimerActive+0x46>
  51769. }
  51770. else
  51771. {
  51772. xReturn = pdTRUE;
  51773. 80155fa: 2301 movs r3, #1
  51774. 80155fc: 617b str r3, [r7, #20]
  51775. }
  51776. }
  51777. taskEXIT_CRITICAL();
  51778. 80155fe: f000 f98d bl 801591c <vPortExitCritical>
  51779. return xReturn;
  51780. 8015602: 697b ldr r3, [r7, #20]
  51781. } /*lint !e818 Can't be pointer to const due to the typedef. */
  51782. 8015604: 4618 mov r0, r3
  51783. 8015606: 3718 adds r7, #24
  51784. 8015608: 46bd mov sp, r7
  51785. 801560a: bd80 pop {r7, pc}
  51786. 0801560c <pvTimerGetTimerID>:
  51787. /*-----------------------------------------------------------*/
  51788. void *pvTimerGetTimerID( const TimerHandle_t xTimer )
  51789. {
  51790. 801560c: b580 push {r7, lr}
  51791. 801560e: b086 sub sp, #24
  51792. 8015610: af00 add r7, sp, #0
  51793. 8015612: 6078 str r0, [r7, #4]
  51794. Timer_t * const pxTimer = xTimer;
  51795. 8015614: 687b ldr r3, [r7, #4]
  51796. 8015616: 617b str r3, [r7, #20]
  51797. void *pvReturn;
  51798. configASSERT( xTimer );
  51799. 8015618: 687b ldr r3, [r7, #4]
  51800. 801561a: 2b00 cmp r3, #0
  51801. 801561c: d10b bne.n 8015636 <pvTimerGetTimerID+0x2a>
  51802. __asm volatile
  51803. 801561e: f04f 0350 mov.w r3, #80 @ 0x50
  51804. 8015622: f383 8811 msr BASEPRI, r3
  51805. 8015626: f3bf 8f6f isb sy
  51806. 801562a: f3bf 8f4f dsb sy
  51807. 801562e: 60fb str r3, [r7, #12]
  51808. }
  51809. 8015630: bf00 nop
  51810. 8015632: bf00 nop
  51811. 8015634: e7fd b.n 8015632 <pvTimerGetTimerID+0x26>
  51812. taskENTER_CRITICAL();
  51813. 8015636: f000 f93f bl 80158b8 <vPortEnterCritical>
  51814. {
  51815. pvReturn = pxTimer->pvTimerID;
  51816. 801563a: 697b ldr r3, [r7, #20]
  51817. 801563c: 69db ldr r3, [r3, #28]
  51818. 801563e: 613b str r3, [r7, #16]
  51819. }
  51820. taskEXIT_CRITICAL();
  51821. 8015640: f000 f96c bl 801591c <vPortExitCritical>
  51822. return pvReturn;
  51823. 8015644: 693b ldr r3, [r7, #16]
  51824. }
  51825. 8015646: 4618 mov r0, r3
  51826. 8015648: 3718 adds r7, #24
  51827. 801564a: 46bd mov sp, r7
  51828. 801564c: bd80 pop {r7, pc}
  51829. ...
  51830. 08015650 <pxPortInitialiseStack>:
  51831. /*
  51832. * See header file for description.
  51833. */
  51834. StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
  51835. {
  51836. 8015650: b480 push {r7}
  51837. 8015652: b085 sub sp, #20
  51838. 8015654: af00 add r7, sp, #0
  51839. 8015656: 60f8 str r0, [r7, #12]
  51840. 8015658: 60b9 str r1, [r7, #8]
  51841. 801565a: 607a str r2, [r7, #4]
  51842. /* Simulate the stack frame as it would be created by a context switch
  51843. interrupt. */
  51844. /* Offset added to account for the way the MCU uses the stack on entry/exit
  51845. of interrupts, and to ensure alignment. */
  51846. pxTopOfStack--;
  51847. 801565c: 68fb ldr r3, [r7, #12]
  51848. 801565e: 3b04 subs r3, #4
  51849. 8015660: 60fb str r3, [r7, #12]
  51850. *pxTopOfStack = portINITIAL_XPSR; /* xPSR */
  51851. 8015662: 68fb ldr r3, [r7, #12]
  51852. 8015664: f04f 7280 mov.w r2, #16777216 @ 0x1000000
  51853. 8015668: 601a str r2, [r3, #0]
  51854. pxTopOfStack--;
  51855. 801566a: 68fb ldr r3, [r7, #12]
  51856. 801566c: 3b04 subs r3, #4
  51857. 801566e: 60fb str r3, [r7, #12]
  51858. *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
  51859. 8015670: 68bb ldr r3, [r7, #8]
  51860. 8015672: f023 0201 bic.w r2, r3, #1
  51861. 8015676: 68fb ldr r3, [r7, #12]
  51862. 8015678: 601a str r2, [r3, #0]
  51863. pxTopOfStack--;
  51864. 801567a: 68fb ldr r3, [r7, #12]
  51865. 801567c: 3b04 subs r3, #4
  51866. 801567e: 60fb str r3, [r7, #12]
  51867. *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
  51868. 8015680: 4a0c ldr r2, [pc, #48] @ (80156b4 <pxPortInitialiseStack+0x64>)
  51869. 8015682: 68fb ldr r3, [r7, #12]
  51870. 8015684: 601a str r2, [r3, #0]
  51871. /* Save code space by skipping register initialisation. */
  51872. pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
  51873. 8015686: 68fb ldr r3, [r7, #12]
  51874. 8015688: 3b14 subs r3, #20
  51875. 801568a: 60fb str r3, [r7, #12]
  51876. *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
  51877. 801568c: 687a ldr r2, [r7, #4]
  51878. 801568e: 68fb ldr r3, [r7, #12]
  51879. 8015690: 601a str r2, [r3, #0]
  51880. /* A save method is being used that requires each task to maintain its
  51881. own exec return value. */
  51882. pxTopOfStack--;
  51883. 8015692: 68fb ldr r3, [r7, #12]
  51884. 8015694: 3b04 subs r3, #4
  51885. 8015696: 60fb str r3, [r7, #12]
  51886. *pxTopOfStack = portINITIAL_EXC_RETURN;
  51887. 8015698: 68fb ldr r3, [r7, #12]
  51888. 801569a: f06f 0202 mvn.w r2, #2
  51889. 801569e: 601a str r2, [r3, #0]
  51890. pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
  51891. 80156a0: 68fb ldr r3, [r7, #12]
  51892. 80156a2: 3b20 subs r3, #32
  51893. 80156a4: 60fb str r3, [r7, #12]
  51894. return pxTopOfStack;
  51895. 80156a6: 68fb ldr r3, [r7, #12]
  51896. }
  51897. 80156a8: 4618 mov r0, r3
  51898. 80156aa: 3714 adds r7, #20
  51899. 80156ac: 46bd mov sp, r7
  51900. 80156ae: f85d 7b04 ldr.w r7, [sp], #4
  51901. 80156b2: 4770 bx lr
  51902. 80156b4: 080156b9 .word 0x080156b9
  51903. 080156b8 <prvTaskExitError>:
  51904. /*-----------------------------------------------------------*/
  51905. static void prvTaskExitError( void )
  51906. {
  51907. 80156b8: b480 push {r7}
  51908. 80156ba: b085 sub sp, #20
  51909. 80156bc: af00 add r7, sp, #0
  51910. volatile uint32_t ulDummy = 0;
  51911. 80156be: 2300 movs r3, #0
  51912. 80156c0: 607b str r3, [r7, #4]
  51913. its caller as there is nothing to return to. If a task wants to exit it
  51914. should instead call vTaskDelete( NULL ).
  51915. Artificially force an assert() to be triggered if configASSERT() is
  51916. defined, then stop here so application writers can catch the error. */
  51917. configASSERT( uxCriticalNesting == ~0UL );
  51918. 80156c2: 4b13 ldr r3, [pc, #76] @ (8015710 <prvTaskExitError+0x58>)
  51919. 80156c4: 681b ldr r3, [r3, #0]
  51920. 80156c6: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51921. 80156ca: d00b beq.n 80156e4 <prvTaskExitError+0x2c>
  51922. __asm volatile
  51923. 80156cc: f04f 0350 mov.w r3, #80 @ 0x50
  51924. 80156d0: f383 8811 msr BASEPRI, r3
  51925. 80156d4: f3bf 8f6f isb sy
  51926. 80156d8: f3bf 8f4f dsb sy
  51927. 80156dc: 60fb str r3, [r7, #12]
  51928. }
  51929. 80156de: bf00 nop
  51930. 80156e0: bf00 nop
  51931. 80156e2: e7fd b.n 80156e0 <prvTaskExitError+0x28>
  51932. __asm volatile
  51933. 80156e4: f04f 0350 mov.w r3, #80 @ 0x50
  51934. 80156e8: f383 8811 msr BASEPRI, r3
  51935. 80156ec: f3bf 8f6f isb sy
  51936. 80156f0: f3bf 8f4f dsb sy
  51937. 80156f4: 60bb str r3, [r7, #8]
  51938. }
  51939. 80156f6: bf00 nop
  51940. portDISABLE_INTERRUPTS();
  51941. while( ulDummy == 0 )
  51942. 80156f8: bf00 nop
  51943. 80156fa: 687b ldr r3, [r7, #4]
  51944. 80156fc: 2b00 cmp r3, #0
  51945. 80156fe: d0fc beq.n 80156fa <prvTaskExitError+0x42>
  51946. about code appearing after this function is called - making ulDummy
  51947. volatile makes the compiler think the function could return and
  51948. therefore not output an 'unreachable code' warning for code that appears
  51949. after it. */
  51950. }
  51951. }
  51952. 8015700: bf00 nop
  51953. 8015702: bf00 nop
  51954. 8015704: 3714 adds r7, #20
  51955. 8015706: 46bd mov sp, r7
  51956. 8015708: f85d 7b04 ldr.w r7, [sp], #4
  51957. 801570c: 4770 bx lr
  51958. 801570e: bf00 nop
  51959. 8015710: 24000048 .word 0x24000048
  51960. ...
  51961. 08015720 <SVC_Handler>:
  51962. /*-----------------------------------------------------------*/
  51963. void vPortSVCHandler( void )
  51964. {
  51965. __asm volatile (
  51966. 8015720: 4b07 ldr r3, [pc, #28] @ (8015740 <pxCurrentTCBConst2>)
  51967. 8015722: 6819 ldr r1, [r3, #0]
  51968. 8015724: 6808 ldr r0, [r1, #0]
  51969. 8015726: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  51970. 801572a: f380 8809 msr PSP, r0
  51971. 801572e: f3bf 8f6f isb sy
  51972. 8015732: f04f 0000 mov.w r0, #0
  51973. 8015736: f380 8811 msr BASEPRI, r0
  51974. 801573a: 4770 bx lr
  51975. 801573c: f3af 8000 nop.w
  51976. 08015740 <pxCurrentTCBConst2>:
  51977. 8015740: 24003d70 .word 0x24003d70
  51978. " bx r14 \n"
  51979. " \n"
  51980. " .align 4 \n"
  51981. "pxCurrentTCBConst2: .word pxCurrentTCB \n"
  51982. );
  51983. }
  51984. 8015744: bf00 nop
  51985. 8015746: bf00 nop
  51986. 08015748 <prvPortStartFirstTask>:
  51987. {
  51988. /* Start the first task. This also clears the bit that indicates the FPU is
  51989. in use in case the FPU was used before the scheduler was started - which
  51990. would otherwise result in the unnecessary leaving of space in the SVC stack
  51991. for lazy saving of FPU registers. */
  51992. __asm volatile(
  51993. 8015748: 4808 ldr r0, [pc, #32] @ (801576c <prvPortStartFirstTask+0x24>)
  51994. 801574a: 6800 ldr r0, [r0, #0]
  51995. 801574c: 6800 ldr r0, [r0, #0]
  51996. 801574e: f380 8808 msr MSP, r0
  51997. 8015752: f04f 0000 mov.w r0, #0
  51998. 8015756: f380 8814 msr CONTROL, r0
  51999. 801575a: b662 cpsie i
  52000. 801575c: b661 cpsie f
  52001. 801575e: f3bf 8f4f dsb sy
  52002. 8015762: f3bf 8f6f isb sy
  52003. 8015766: df00 svc 0
  52004. 8015768: bf00 nop
  52005. " dsb \n"
  52006. " isb \n"
  52007. " svc 0 \n" /* System call to start first task. */
  52008. " nop \n"
  52009. );
  52010. }
  52011. 801576a: bf00 nop
  52012. 801576c: e000ed08 .word 0xe000ed08
  52013. 08015770 <xPortStartScheduler>:
  52014. /*
  52015. * See header file for description.
  52016. */
  52017. BaseType_t xPortStartScheduler( void )
  52018. {
  52019. 8015770: b580 push {r7, lr}
  52020. 8015772: b086 sub sp, #24
  52021. 8015774: af00 add r7, sp, #0
  52022. configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
  52023. /* This port can be used on all revisions of the Cortex-M7 core other than
  52024. the r0p1 parts. r0p1 parts should use the port from the
  52025. /source/portable/GCC/ARM_CM7/r0p1 directory. */
  52026. configASSERT( portCPUID != portCORTEX_M7_r0p1_ID );
  52027. 8015776: 4b47 ldr r3, [pc, #284] @ (8015894 <xPortStartScheduler+0x124>)
  52028. 8015778: 681b ldr r3, [r3, #0]
  52029. 801577a: 4a47 ldr r2, [pc, #284] @ (8015898 <xPortStartScheduler+0x128>)
  52030. 801577c: 4293 cmp r3, r2
  52031. 801577e: d10b bne.n 8015798 <xPortStartScheduler+0x28>
  52032. __asm volatile
  52033. 8015780: f04f 0350 mov.w r3, #80 @ 0x50
  52034. 8015784: f383 8811 msr BASEPRI, r3
  52035. 8015788: f3bf 8f6f isb sy
  52036. 801578c: f3bf 8f4f dsb sy
  52037. 8015790: 613b str r3, [r7, #16]
  52038. }
  52039. 8015792: bf00 nop
  52040. 8015794: bf00 nop
  52041. 8015796: e7fd b.n 8015794 <xPortStartScheduler+0x24>
  52042. configASSERT( portCPUID != portCORTEX_M7_r0p0_ID );
  52043. 8015798: 4b3e ldr r3, [pc, #248] @ (8015894 <xPortStartScheduler+0x124>)
  52044. 801579a: 681b ldr r3, [r3, #0]
  52045. 801579c: 4a3f ldr r2, [pc, #252] @ (801589c <xPortStartScheduler+0x12c>)
  52046. 801579e: 4293 cmp r3, r2
  52047. 80157a0: d10b bne.n 80157ba <xPortStartScheduler+0x4a>
  52048. __asm volatile
  52049. 80157a2: f04f 0350 mov.w r3, #80 @ 0x50
  52050. 80157a6: f383 8811 msr BASEPRI, r3
  52051. 80157aa: f3bf 8f6f isb sy
  52052. 80157ae: f3bf 8f4f dsb sy
  52053. 80157b2: 60fb str r3, [r7, #12]
  52054. }
  52055. 80157b4: bf00 nop
  52056. 80157b6: bf00 nop
  52057. 80157b8: e7fd b.n 80157b6 <xPortStartScheduler+0x46>
  52058. #if( configASSERT_DEFINED == 1 )
  52059. {
  52060. volatile uint32_t ulOriginalPriority;
  52061. volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
  52062. 80157ba: 4b39 ldr r3, [pc, #228] @ (80158a0 <xPortStartScheduler+0x130>)
  52063. 80157bc: 617b str r3, [r7, #20]
  52064. functions can be called. ISR safe functions are those that end in
  52065. "FromISR". FreeRTOS maintains separate thread and ISR API functions to
  52066. ensure interrupt entry is as fast and simple as possible.
  52067. Save the interrupt priority value that is about to be clobbered. */
  52068. ulOriginalPriority = *pucFirstUserPriorityRegister;
  52069. 80157be: 697b ldr r3, [r7, #20]
  52070. 80157c0: 781b ldrb r3, [r3, #0]
  52071. 80157c2: b2db uxtb r3, r3
  52072. 80157c4: 607b str r3, [r7, #4]
  52073. /* Determine the number of priority bits available. First write to all
  52074. possible bits. */
  52075. *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
  52076. 80157c6: 697b ldr r3, [r7, #20]
  52077. 80157c8: 22ff movs r2, #255 @ 0xff
  52078. 80157ca: 701a strb r2, [r3, #0]
  52079. /* Read the value back to see how many bits stuck. */
  52080. ucMaxPriorityValue = *pucFirstUserPriorityRegister;
  52081. 80157cc: 697b ldr r3, [r7, #20]
  52082. 80157ce: 781b ldrb r3, [r3, #0]
  52083. 80157d0: b2db uxtb r3, r3
  52084. 80157d2: 70fb strb r3, [r7, #3]
  52085. /* Use the same mask on the maximum system call priority. */
  52086. ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
  52087. 80157d4: 78fb ldrb r3, [r7, #3]
  52088. 80157d6: b2db uxtb r3, r3
  52089. 80157d8: f003 0350 and.w r3, r3, #80 @ 0x50
  52090. 80157dc: b2da uxtb r2, r3
  52091. 80157de: 4b31 ldr r3, [pc, #196] @ (80158a4 <xPortStartScheduler+0x134>)
  52092. 80157e0: 701a strb r2, [r3, #0]
  52093. /* Calculate the maximum acceptable priority group value for the number
  52094. of bits read back. */
  52095. ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
  52096. 80157e2: 4b31 ldr r3, [pc, #196] @ (80158a8 <xPortStartScheduler+0x138>)
  52097. 80157e4: 2207 movs r2, #7
  52098. 80157e6: 601a str r2, [r3, #0]
  52099. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  52100. 80157e8: e009 b.n 80157fe <xPortStartScheduler+0x8e>
  52101. {
  52102. ulMaxPRIGROUPValue--;
  52103. 80157ea: 4b2f ldr r3, [pc, #188] @ (80158a8 <xPortStartScheduler+0x138>)
  52104. 80157ec: 681b ldr r3, [r3, #0]
  52105. 80157ee: 3b01 subs r3, #1
  52106. 80157f0: 4a2d ldr r2, [pc, #180] @ (80158a8 <xPortStartScheduler+0x138>)
  52107. 80157f2: 6013 str r3, [r2, #0]
  52108. ucMaxPriorityValue <<= ( uint8_t ) 0x01;
  52109. 80157f4: 78fb ldrb r3, [r7, #3]
  52110. 80157f6: b2db uxtb r3, r3
  52111. 80157f8: 005b lsls r3, r3, #1
  52112. 80157fa: b2db uxtb r3, r3
  52113. 80157fc: 70fb strb r3, [r7, #3]
  52114. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  52115. 80157fe: 78fb ldrb r3, [r7, #3]
  52116. 8015800: b2db uxtb r3, r3
  52117. 8015802: f003 0380 and.w r3, r3, #128 @ 0x80
  52118. 8015806: 2b80 cmp r3, #128 @ 0x80
  52119. 8015808: d0ef beq.n 80157ea <xPortStartScheduler+0x7a>
  52120. #ifdef configPRIO_BITS
  52121. {
  52122. /* Check the FreeRTOS configuration that defines the number of
  52123. priority bits matches the number of priority bits actually queried
  52124. from the hardware. */
  52125. configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
  52126. 801580a: 4b27 ldr r3, [pc, #156] @ (80158a8 <xPortStartScheduler+0x138>)
  52127. 801580c: 681b ldr r3, [r3, #0]
  52128. 801580e: f1c3 0307 rsb r3, r3, #7
  52129. 8015812: 2b04 cmp r3, #4
  52130. 8015814: d00b beq.n 801582e <xPortStartScheduler+0xbe>
  52131. __asm volatile
  52132. 8015816: f04f 0350 mov.w r3, #80 @ 0x50
  52133. 801581a: f383 8811 msr BASEPRI, r3
  52134. 801581e: f3bf 8f6f isb sy
  52135. 8015822: f3bf 8f4f dsb sy
  52136. 8015826: 60bb str r3, [r7, #8]
  52137. }
  52138. 8015828: bf00 nop
  52139. 801582a: bf00 nop
  52140. 801582c: e7fd b.n 801582a <xPortStartScheduler+0xba>
  52141. }
  52142. #endif
  52143. /* Shift the priority group value back to its position within the AIRCR
  52144. register. */
  52145. ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
  52146. 801582e: 4b1e ldr r3, [pc, #120] @ (80158a8 <xPortStartScheduler+0x138>)
  52147. 8015830: 681b ldr r3, [r3, #0]
  52148. 8015832: 021b lsls r3, r3, #8
  52149. 8015834: 4a1c ldr r2, [pc, #112] @ (80158a8 <xPortStartScheduler+0x138>)
  52150. 8015836: 6013 str r3, [r2, #0]
  52151. ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
  52152. 8015838: 4b1b ldr r3, [pc, #108] @ (80158a8 <xPortStartScheduler+0x138>)
  52153. 801583a: 681b ldr r3, [r3, #0]
  52154. 801583c: f403 63e0 and.w r3, r3, #1792 @ 0x700
  52155. 8015840: 4a19 ldr r2, [pc, #100] @ (80158a8 <xPortStartScheduler+0x138>)
  52156. 8015842: 6013 str r3, [r2, #0]
  52157. /* Restore the clobbered interrupt priority register to its original
  52158. value. */
  52159. *pucFirstUserPriorityRegister = ulOriginalPriority;
  52160. 8015844: 687b ldr r3, [r7, #4]
  52161. 8015846: b2da uxtb r2, r3
  52162. 8015848: 697b ldr r3, [r7, #20]
  52163. 801584a: 701a strb r2, [r3, #0]
  52164. }
  52165. #endif /* conifgASSERT_DEFINED */
  52166. /* Make PendSV and SysTick the lowest priority interrupts. */
  52167. portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
  52168. 801584c: 4b17 ldr r3, [pc, #92] @ (80158ac <xPortStartScheduler+0x13c>)
  52169. 801584e: 681b ldr r3, [r3, #0]
  52170. 8015850: 4a16 ldr r2, [pc, #88] @ (80158ac <xPortStartScheduler+0x13c>)
  52171. 8015852: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  52172. 8015856: 6013 str r3, [r2, #0]
  52173. portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
  52174. 8015858: 4b14 ldr r3, [pc, #80] @ (80158ac <xPortStartScheduler+0x13c>)
  52175. 801585a: 681b ldr r3, [r3, #0]
  52176. 801585c: 4a13 ldr r2, [pc, #76] @ (80158ac <xPortStartScheduler+0x13c>)
  52177. 801585e: f043 4370 orr.w r3, r3, #4026531840 @ 0xf0000000
  52178. 8015862: 6013 str r3, [r2, #0]
  52179. /* Start the timer that generates the tick ISR. Interrupts are disabled
  52180. here already. */
  52181. vPortSetupTimerInterrupt();
  52182. 8015864: f000 f8da bl 8015a1c <vPortSetupTimerInterrupt>
  52183. /* Initialise the critical nesting count ready for the first task. */
  52184. uxCriticalNesting = 0;
  52185. 8015868: 4b11 ldr r3, [pc, #68] @ (80158b0 <xPortStartScheduler+0x140>)
  52186. 801586a: 2200 movs r2, #0
  52187. 801586c: 601a str r2, [r3, #0]
  52188. /* Ensure the VFP is enabled - it should be anyway. */
  52189. vPortEnableVFP();
  52190. 801586e: f000 f8f9 bl 8015a64 <vPortEnableVFP>
  52191. /* Lazy save always. */
  52192. *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
  52193. 8015872: 4b10 ldr r3, [pc, #64] @ (80158b4 <xPortStartScheduler+0x144>)
  52194. 8015874: 681b ldr r3, [r3, #0]
  52195. 8015876: 4a0f ldr r2, [pc, #60] @ (80158b4 <xPortStartScheduler+0x144>)
  52196. 8015878: f043 4340 orr.w r3, r3, #3221225472 @ 0xc0000000
  52197. 801587c: 6013 str r3, [r2, #0]
  52198. /* Start the first task. */
  52199. prvPortStartFirstTask();
  52200. 801587e: f7ff ff63 bl 8015748 <prvPortStartFirstTask>
  52201. exit error function to prevent compiler warnings about a static function
  52202. not being called in the case that the application writer overrides this
  52203. functionality by defining configTASK_RETURN_ADDRESS. Call
  52204. vTaskSwitchContext() so link time optimisation does not remove the
  52205. symbol. */
  52206. vTaskSwitchContext();
  52207. 8015882: f7fe fbcd bl 8014020 <vTaskSwitchContext>
  52208. prvTaskExitError();
  52209. 8015886: f7ff ff17 bl 80156b8 <prvTaskExitError>
  52210. /* Should not get here! */
  52211. return 0;
  52212. 801588a: 2300 movs r3, #0
  52213. }
  52214. 801588c: 4618 mov r0, r3
  52215. 801588e: 3718 adds r7, #24
  52216. 8015890: 46bd mov sp, r7
  52217. 8015892: bd80 pop {r7, pc}
  52218. 8015894: e000ed00 .word 0xe000ed00
  52219. 8015898: 410fc271 .word 0x410fc271
  52220. 801589c: 410fc270 .word 0x410fc270
  52221. 80158a0: e000e400 .word 0xe000e400
  52222. 80158a4: 2400439c .word 0x2400439c
  52223. 80158a8: 240043a0 .word 0x240043a0
  52224. 80158ac: e000ed20 .word 0xe000ed20
  52225. 80158b0: 24000048 .word 0x24000048
  52226. 80158b4: e000ef34 .word 0xe000ef34
  52227. 080158b8 <vPortEnterCritical>:
  52228. configASSERT( uxCriticalNesting == 1000UL );
  52229. }
  52230. /*-----------------------------------------------------------*/
  52231. void vPortEnterCritical( void )
  52232. {
  52233. 80158b8: b480 push {r7}
  52234. 80158ba: b083 sub sp, #12
  52235. 80158bc: af00 add r7, sp, #0
  52236. __asm volatile
  52237. 80158be: f04f 0350 mov.w r3, #80 @ 0x50
  52238. 80158c2: f383 8811 msr BASEPRI, r3
  52239. 80158c6: f3bf 8f6f isb sy
  52240. 80158ca: f3bf 8f4f dsb sy
  52241. 80158ce: 607b str r3, [r7, #4]
  52242. }
  52243. 80158d0: bf00 nop
  52244. portDISABLE_INTERRUPTS();
  52245. uxCriticalNesting++;
  52246. 80158d2: 4b10 ldr r3, [pc, #64] @ (8015914 <vPortEnterCritical+0x5c>)
  52247. 80158d4: 681b ldr r3, [r3, #0]
  52248. 80158d6: 3301 adds r3, #1
  52249. 80158d8: 4a0e ldr r2, [pc, #56] @ (8015914 <vPortEnterCritical+0x5c>)
  52250. 80158da: 6013 str r3, [r2, #0]
  52251. /* This is not the interrupt safe version of the enter critical function so
  52252. assert() if it is being called from an interrupt context. Only API
  52253. functions that end in "FromISR" can be used in an interrupt. Only assert if
  52254. the critical nesting count is 1 to protect against recursive calls if the
  52255. assert function also uses a critical section. */
  52256. if( uxCriticalNesting == 1 )
  52257. 80158dc: 4b0d ldr r3, [pc, #52] @ (8015914 <vPortEnterCritical+0x5c>)
  52258. 80158de: 681b ldr r3, [r3, #0]
  52259. 80158e0: 2b01 cmp r3, #1
  52260. 80158e2: d110 bne.n 8015906 <vPortEnterCritical+0x4e>
  52261. {
  52262. configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
  52263. 80158e4: 4b0c ldr r3, [pc, #48] @ (8015918 <vPortEnterCritical+0x60>)
  52264. 80158e6: 681b ldr r3, [r3, #0]
  52265. 80158e8: b2db uxtb r3, r3
  52266. 80158ea: 2b00 cmp r3, #0
  52267. 80158ec: d00b beq.n 8015906 <vPortEnterCritical+0x4e>
  52268. __asm volatile
  52269. 80158ee: f04f 0350 mov.w r3, #80 @ 0x50
  52270. 80158f2: f383 8811 msr BASEPRI, r3
  52271. 80158f6: f3bf 8f6f isb sy
  52272. 80158fa: f3bf 8f4f dsb sy
  52273. 80158fe: 603b str r3, [r7, #0]
  52274. }
  52275. 8015900: bf00 nop
  52276. 8015902: bf00 nop
  52277. 8015904: e7fd b.n 8015902 <vPortEnterCritical+0x4a>
  52278. }
  52279. }
  52280. 8015906: bf00 nop
  52281. 8015908: 370c adds r7, #12
  52282. 801590a: 46bd mov sp, r7
  52283. 801590c: f85d 7b04 ldr.w r7, [sp], #4
  52284. 8015910: 4770 bx lr
  52285. 8015912: bf00 nop
  52286. 8015914: 24000048 .word 0x24000048
  52287. 8015918: e000ed04 .word 0xe000ed04
  52288. 0801591c <vPortExitCritical>:
  52289. /*-----------------------------------------------------------*/
  52290. void vPortExitCritical( void )
  52291. {
  52292. 801591c: b480 push {r7}
  52293. 801591e: b083 sub sp, #12
  52294. 8015920: af00 add r7, sp, #0
  52295. configASSERT( uxCriticalNesting );
  52296. 8015922: 4b12 ldr r3, [pc, #72] @ (801596c <vPortExitCritical+0x50>)
  52297. 8015924: 681b ldr r3, [r3, #0]
  52298. 8015926: 2b00 cmp r3, #0
  52299. 8015928: d10b bne.n 8015942 <vPortExitCritical+0x26>
  52300. __asm volatile
  52301. 801592a: f04f 0350 mov.w r3, #80 @ 0x50
  52302. 801592e: f383 8811 msr BASEPRI, r3
  52303. 8015932: f3bf 8f6f isb sy
  52304. 8015936: f3bf 8f4f dsb sy
  52305. 801593a: 607b str r3, [r7, #4]
  52306. }
  52307. 801593c: bf00 nop
  52308. 801593e: bf00 nop
  52309. 8015940: e7fd b.n 801593e <vPortExitCritical+0x22>
  52310. uxCriticalNesting--;
  52311. 8015942: 4b0a ldr r3, [pc, #40] @ (801596c <vPortExitCritical+0x50>)
  52312. 8015944: 681b ldr r3, [r3, #0]
  52313. 8015946: 3b01 subs r3, #1
  52314. 8015948: 4a08 ldr r2, [pc, #32] @ (801596c <vPortExitCritical+0x50>)
  52315. 801594a: 6013 str r3, [r2, #0]
  52316. if( uxCriticalNesting == 0 )
  52317. 801594c: 4b07 ldr r3, [pc, #28] @ (801596c <vPortExitCritical+0x50>)
  52318. 801594e: 681b ldr r3, [r3, #0]
  52319. 8015950: 2b00 cmp r3, #0
  52320. 8015952: d105 bne.n 8015960 <vPortExitCritical+0x44>
  52321. 8015954: 2300 movs r3, #0
  52322. 8015956: 603b str r3, [r7, #0]
  52323. __asm volatile
  52324. 8015958: 683b ldr r3, [r7, #0]
  52325. 801595a: f383 8811 msr BASEPRI, r3
  52326. }
  52327. 801595e: bf00 nop
  52328. {
  52329. portENABLE_INTERRUPTS();
  52330. }
  52331. }
  52332. 8015960: bf00 nop
  52333. 8015962: 370c adds r7, #12
  52334. 8015964: 46bd mov sp, r7
  52335. 8015966: f85d 7b04 ldr.w r7, [sp], #4
  52336. 801596a: 4770 bx lr
  52337. 801596c: 24000048 .word 0x24000048
  52338. 08015970 <PendSV_Handler>:
  52339. void xPortPendSVHandler( void )
  52340. {
  52341. /* This is a naked function. */
  52342. __asm volatile
  52343. 8015970: f3ef 8009 mrs r0, PSP
  52344. 8015974: f3bf 8f6f isb sy
  52345. 8015978: 4b15 ldr r3, [pc, #84] @ (80159d0 <pxCurrentTCBConst>)
  52346. 801597a: 681a ldr r2, [r3, #0]
  52347. 801597c: f01e 0f10 tst.w lr, #16
  52348. 8015980: bf08 it eq
  52349. 8015982: ed20 8a10 vstmdbeq r0!, {s16-s31}
  52350. 8015986: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  52351. 801598a: 6010 str r0, [r2, #0]
  52352. 801598c: e92d 0009 stmdb sp!, {r0, r3}
  52353. 8015990: f04f 0050 mov.w r0, #80 @ 0x50
  52354. 8015994: f380 8811 msr BASEPRI, r0
  52355. 8015998: f3bf 8f4f dsb sy
  52356. 801599c: f3bf 8f6f isb sy
  52357. 80159a0: f7fe fb3e bl 8014020 <vTaskSwitchContext>
  52358. 80159a4: f04f 0000 mov.w r0, #0
  52359. 80159a8: f380 8811 msr BASEPRI, r0
  52360. 80159ac: bc09 pop {r0, r3}
  52361. 80159ae: 6819 ldr r1, [r3, #0]
  52362. 80159b0: 6808 ldr r0, [r1, #0]
  52363. 80159b2: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  52364. 80159b6: f01e 0f10 tst.w lr, #16
  52365. 80159ba: bf08 it eq
  52366. 80159bc: ecb0 8a10 vldmiaeq r0!, {s16-s31}
  52367. 80159c0: f380 8809 msr PSP, r0
  52368. 80159c4: f3bf 8f6f isb sy
  52369. 80159c8: 4770 bx lr
  52370. 80159ca: bf00 nop
  52371. 80159cc: f3af 8000 nop.w
  52372. 080159d0 <pxCurrentTCBConst>:
  52373. 80159d0: 24003d70 .word 0x24003d70
  52374. " \n"
  52375. " .align 4 \n"
  52376. "pxCurrentTCBConst: .word pxCurrentTCB \n"
  52377. ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
  52378. );
  52379. }
  52380. 80159d4: bf00 nop
  52381. 80159d6: bf00 nop
  52382. 080159d8 <xPortSysTickHandler>:
  52383. /*-----------------------------------------------------------*/
  52384. void xPortSysTickHandler( void )
  52385. {
  52386. 80159d8: b580 push {r7, lr}
  52387. 80159da: b082 sub sp, #8
  52388. 80159dc: af00 add r7, sp, #0
  52389. __asm volatile
  52390. 80159de: f04f 0350 mov.w r3, #80 @ 0x50
  52391. 80159e2: f383 8811 msr BASEPRI, r3
  52392. 80159e6: f3bf 8f6f isb sy
  52393. 80159ea: f3bf 8f4f dsb sy
  52394. 80159ee: 607b str r3, [r7, #4]
  52395. }
  52396. 80159f0: bf00 nop
  52397. save and then restore the interrupt mask value as its value is already
  52398. known. */
  52399. portDISABLE_INTERRUPTS();
  52400. {
  52401. /* Increment the RTOS tick. */
  52402. if( xTaskIncrementTick() != pdFALSE )
  52403. 80159f2: f7fe fa5b bl 8013eac <xTaskIncrementTick>
  52404. 80159f6: 4603 mov r3, r0
  52405. 80159f8: 2b00 cmp r3, #0
  52406. 80159fa: d003 beq.n 8015a04 <xPortSysTickHandler+0x2c>
  52407. {
  52408. /* A context switch is required. Context switching is performed in
  52409. the PendSV interrupt. Pend the PendSV interrupt. */
  52410. portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
  52411. 80159fc: 4b06 ldr r3, [pc, #24] @ (8015a18 <xPortSysTickHandler+0x40>)
  52412. 80159fe: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52413. 8015a02: 601a str r2, [r3, #0]
  52414. 8015a04: 2300 movs r3, #0
  52415. 8015a06: 603b str r3, [r7, #0]
  52416. __asm volatile
  52417. 8015a08: 683b ldr r3, [r7, #0]
  52418. 8015a0a: f383 8811 msr BASEPRI, r3
  52419. }
  52420. 8015a0e: bf00 nop
  52421. }
  52422. }
  52423. portENABLE_INTERRUPTS();
  52424. }
  52425. 8015a10: bf00 nop
  52426. 8015a12: 3708 adds r7, #8
  52427. 8015a14: 46bd mov sp, r7
  52428. 8015a16: bd80 pop {r7, pc}
  52429. 8015a18: e000ed04 .word 0xe000ed04
  52430. 08015a1c <vPortSetupTimerInterrupt>:
  52431. /*
  52432. * Setup the systick timer to generate the tick interrupts at the required
  52433. * frequency.
  52434. */
  52435. __attribute__(( weak )) void vPortSetupTimerInterrupt( void )
  52436. {
  52437. 8015a1c: b480 push {r7}
  52438. 8015a1e: af00 add r7, sp, #0
  52439. ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
  52440. }
  52441. #endif /* configUSE_TICKLESS_IDLE */
  52442. /* Stop and clear the SysTick. */
  52443. portNVIC_SYSTICK_CTRL_REG = 0UL;
  52444. 8015a20: 4b0b ldr r3, [pc, #44] @ (8015a50 <vPortSetupTimerInterrupt+0x34>)
  52445. 8015a22: 2200 movs r2, #0
  52446. 8015a24: 601a str r2, [r3, #0]
  52447. portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
  52448. 8015a26: 4b0b ldr r3, [pc, #44] @ (8015a54 <vPortSetupTimerInterrupt+0x38>)
  52449. 8015a28: 2200 movs r2, #0
  52450. 8015a2a: 601a str r2, [r3, #0]
  52451. /* Configure SysTick to interrupt at the requested rate. */
  52452. portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
  52453. 8015a2c: 4b0a ldr r3, [pc, #40] @ (8015a58 <vPortSetupTimerInterrupt+0x3c>)
  52454. 8015a2e: 681b ldr r3, [r3, #0]
  52455. 8015a30: 4a0a ldr r2, [pc, #40] @ (8015a5c <vPortSetupTimerInterrupt+0x40>)
  52456. 8015a32: fba2 2303 umull r2, r3, r2, r3
  52457. 8015a36: 099b lsrs r3, r3, #6
  52458. 8015a38: 4a09 ldr r2, [pc, #36] @ (8015a60 <vPortSetupTimerInterrupt+0x44>)
  52459. 8015a3a: 3b01 subs r3, #1
  52460. 8015a3c: 6013 str r3, [r2, #0]
  52461. portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
  52462. 8015a3e: 4b04 ldr r3, [pc, #16] @ (8015a50 <vPortSetupTimerInterrupt+0x34>)
  52463. 8015a40: 2207 movs r2, #7
  52464. 8015a42: 601a str r2, [r3, #0]
  52465. }
  52466. 8015a44: bf00 nop
  52467. 8015a46: 46bd mov sp, r7
  52468. 8015a48: f85d 7b04 ldr.w r7, [sp], #4
  52469. 8015a4c: 4770 bx lr
  52470. 8015a4e: bf00 nop
  52471. 8015a50: e000e010 .word 0xe000e010
  52472. 8015a54: e000e018 .word 0xe000e018
  52473. 8015a58: 2400000c .word 0x2400000c
  52474. 8015a5c: 10624dd3 .word 0x10624dd3
  52475. 8015a60: e000e014 .word 0xe000e014
  52476. 08015a64 <vPortEnableVFP>:
  52477. /*-----------------------------------------------------------*/
  52478. /* This is a naked function. */
  52479. static void vPortEnableVFP( void )
  52480. {
  52481. __asm volatile
  52482. 8015a64: f8df 000c ldr.w r0, [pc, #12] @ 8015a74 <vPortEnableVFP+0x10>
  52483. 8015a68: 6801 ldr r1, [r0, #0]
  52484. 8015a6a: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
  52485. 8015a6e: 6001 str r1, [r0, #0]
  52486. 8015a70: 4770 bx lr
  52487. " \n"
  52488. " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
  52489. " str r1, [r0] \n"
  52490. " bx r14 "
  52491. );
  52492. }
  52493. 8015a72: bf00 nop
  52494. 8015a74: e000ed88 .word 0xe000ed88
  52495. 08015a78 <vPortValidateInterruptPriority>:
  52496. /*-----------------------------------------------------------*/
  52497. #if( configASSERT_DEFINED == 1 )
  52498. void vPortValidateInterruptPriority( void )
  52499. {
  52500. 8015a78: b480 push {r7}
  52501. 8015a7a: b085 sub sp, #20
  52502. 8015a7c: af00 add r7, sp, #0
  52503. uint32_t ulCurrentInterrupt;
  52504. uint8_t ucCurrentPriority;
  52505. /* Obtain the number of the currently executing interrupt. */
  52506. __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
  52507. 8015a7e: f3ef 8305 mrs r3, IPSR
  52508. 8015a82: 60fb str r3, [r7, #12]
  52509. /* Is the interrupt number a user defined interrupt? */
  52510. if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
  52511. 8015a84: 68fb ldr r3, [r7, #12]
  52512. 8015a86: 2b0f cmp r3, #15
  52513. 8015a88: d915 bls.n 8015ab6 <vPortValidateInterruptPriority+0x3e>
  52514. {
  52515. /* Look up the interrupt's priority. */
  52516. ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
  52517. 8015a8a: 4a18 ldr r2, [pc, #96] @ (8015aec <vPortValidateInterruptPriority+0x74>)
  52518. 8015a8c: 68fb ldr r3, [r7, #12]
  52519. 8015a8e: 4413 add r3, r2
  52520. 8015a90: 781b ldrb r3, [r3, #0]
  52521. 8015a92: 72fb strb r3, [r7, #11]
  52522. interrupt entry is as fast and simple as possible.
  52523. The following links provide detailed information:
  52524. http://www.freertos.org/RTOS-Cortex-M3-M4.html
  52525. http://www.freertos.org/FAQHelp.html */
  52526. configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
  52527. 8015a94: 4b16 ldr r3, [pc, #88] @ (8015af0 <vPortValidateInterruptPriority+0x78>)
  52528. 8015a96: 781b ldrb r3, [r3, #0]
  52529. 8015a98: 7afa ldrb r2, [r7, #11]
  52530. 8015a9a: 429a cmp r2, r3
  52531. 8015a9c: d20b bcs.n 8015ab6 <vPortValidateInterruptPriority+0x3e>
  52532. __asm volatile
  52533. 8015a9e: f04f 0350 mov.w r3, #80 @ 0x50
  52534. 8015aa2: f383 8811 msr BASEPRI, r3
  52535. 8015aa6: f3bf 8f6f isb sy
  52536. 8015aaa: f3bf 8f4f dsb sy
  52537. 8015aae: 607b str r3, [r7, #4]
  52538. }
  52539. 8015ab0: bf00 nop
  52540. 8015ab2: bf00 nop
  52541. 8015ab4: e7fd b.n 8015ab2 <vPortValidateInterruptPriority+0x3a>
  52542. configuration then the correct setting can be achieved on all Cortex-M
  52543. devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
  52544. scheduler. Note however that some vendor specific peripheral libraries
  52545. assume a non-zero priority group setting, in which cases using a value
  52546. of zero will result in unpredictable behaviour. */
  52547. configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
  52548. 8015ab6: 4b0f ldr r3, [pc, #60] @ (8015af4 <vPortValidateInterruptPriority+0x7c>)
  52549. 8015ab8: 681b ldr r3, [r3, #0]
  52550. 8015aba: f403 62e0 and.w r2, r3, #1792 @ 0x700
  52551. 8015abe: 4b0e ldr r3, [pc, #56] @ (8015af8 <vPortValidateInterruptPriority+0x80>)
  52552. 8015ac0: 681b ldr r3, [r3, #0]
  52553. 8015ac2: 429a cmp r2, r3
  52554. 8015ac4: d90b bls.n 8015ade <vPortValidateInterruptPriority+0x66>
  52555. __asm volatile
  52556. 8015ac6: f04f 0350 mov.w r3, #80 @ 0x50
  52557. 8015aca: f383 8811 msr BASEPRI, r3
  52558. 8015ace: f3bf 8f6f isb sy
  52559. 8015ad2: f3bf 8f4f dsb sy
  52560. 8015ad6: 603b str r3, [r7, #0]
  52561. }
  52562. 8015ad8: bf00 nop
  52563. 8015ada: bf00 nop
  52564. 8015adc: e7fd b.n 8015ada <vPortValidateInterruptPriority+0x62>
  52565. }
  52566. 8015ade: bf00 nop
  52567. 8015ae0: 3714 adds r7, #20
  52568. 8015ae2: 46bd mov sp, r7
  52569. 8015ae4: f85d 7b04 ldr.w r7, [sp], #4
  52570. 8015ae8: 4770 bx lr
  52571. 8015aea: bf00 nop
  52572. 8015aec: e000e3f0 .word 0xe000e3f0
  52573. 8015af0: 2400439c .word 0x2400439c
  52574. 8015af4: e000ed0c .word 0xe000ed0c
  52575. 8015af8: 240043a0 .word 0x240043a0
  52576. 08015afc <pvPortMalloc>:
  52577. static size_t xBlockAllocatedBit = 0;
  52578. /*-----------------------------------------------------------*/
  52579. void *pvPortMalloc( size_t xWantedSize )
  52580. {
  52581. 8015afc: b580 push {r7, lr}
  52582. 8015afe: b08a sub sp, #40 @ 0x28
  52583. 8015b00: af00 add r7, sp, #0
  52584. 8015b02: 6078 str r0, [r7, #4]
  52585. BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
  52586. void *pvReturn = NULL;
  52587. 8015b04: 2300 movs r3, #0
  52588. 8015b06: 61fb str r3, [r7, #28]
  52589. vTaskSuspendAll();
  52590. 8015b08: f7fe f902 bl 8013d10 <vTaskSuspendAll>
  52591. {
  52592. /* If this is the first call to malloc then the heap will require
  52593. initialisation to setup the list of free blocks. */
  52594. if( pxEnd == NULL )
  52595. 8015b0c: 4b5c ldr r3, [pc, #368] @ (8015c80 <pvPortMalloc+0x184>)
  52596. 8015b0e: 681b ldr r3, [r3, #0]
  52597. 8015b10: 2b00 cmp r3, #0
  52598. 8015b12: d101 bne.n 8015b18 <pvPortMalloc+0x1c>
  52599. {
  52600. prvHeapInit();
  52601. 8015b14: f000 f924 bl 8015d60 <prvHeapInit>
  52602. /* Check the requested block size is not so large that the top bit is
  52603. set. The top bit of the block size member of the BlockLink_t structure
  52604. is used to determine who owns the block - the application or the
  52605. kernel, so it must be free. */
  52606. if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
  52607. 8015b18: 4b5a ldr r3, [pc, #360] @ (8015c84 <pvPortMalloc+0x188>)
  52608. 8015b1a: 681a ldr r2, [r3, #0]
  52609. 8015b1c: 687b ldr r3, [r7, #4]
  52610. 8015b1e: 4013 ands r3, r2
  52611. 8015b20: 2b00 cmp r3, #0
  52612. 8015b22: f040 8095 bne.w 8015c50 <pvPortMalloc+0x154>
  52613. {
  52614. /* The wanted size is increased so it can contain a BlockLink_t
  52615. structure in addition to the requested amount of bytes. */
  52616. if( xWantedSize > 0 )
  52617. 8015b26: 687b ldr r3, [r7, #4]
  52618. 8015b28: 2b00 cmp r3, #0
  52619. 8015b2a: d01e beq.n 8015b6a <pvPortMalloc+0x6e>
  52620. {
  52621. xWantedSize += xHeapStructSize;
  52622. 8015b2c: 2208 movs r2, #8
  52623. 8015b2e: 687b ldr r3, [r7, #4]
  52624. 8015b30: 4413 add r3, r2
  52625. 8015b32: 607b str r3, [r7, #4]
  52626. /* Ensure that blocks are always aligned to the required number
  52627. of bytes. */
  52628. if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
  52629. 8015b34: 687b ldr r3, [r7, #4]
  52630. 8015b36: f003 0307 and.w r3, r3, #7
  52631. 8015b3a: 2b00 cmp r3, #0
  52632. 8015b3c: d015 beq.n 8015b6a <pvPortMalloc+0x6e>
  52633. {
  52634. /* Byte alignment required. */
  52635. xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
  52636. 8015b3e: 687b ldr r3, [r7, #4]
  52637. 8015b40: f023 0307 bic.w r3, r3, #7
  52638. 8015b44: 3308 adds r3, #8
  52639. 8015b46: 607b str r3, [r7, #4]
  52640. configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
  52641. 8015b48: 687b ldr r3, [r7, #4]
  52642. 8015b4a: f003 0307 and.w r3, r3, #7
  52643. 8015b4e: 2b00 cmp r3, #0
  52644. 8015b50: d00b beq.n 8015b6a <pvPortMalloc+0x6e>
  52645. __asm volatile
  52646. 8015b52: f04f 0350 mov.w r3, #80 @ 0x50
  52647. 8015b56: f383 8811 msr BASEPRI, r3
  52648. 8015b5a: f3bf 8f6f isb sy
  52649. 8015b5e: f3bf 8f4f dsb sy
  52650. 8015b62: 617b str r3, [r7, #20]
  52651. }
  52652. 8015b64: bf00 nop
  52653. 8015b66: bf00 nop
  52654. 8015b68: e7fd b.n 8015b66 <pvPortMalloc+0x6a>
  52655. else
  52656. {
  52657. mtCOVERAGE_TEST_MARKER();
  52658. }
  52659. if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
  52660. 8015b6a: 687b ldr r3, [r7, #4]
  52661. 8015b6c: 2b00 cmp r3, #0
  52662. 8015b6e: d06f beq.n 8015c50 <pvPortMalloc+0x154>
  52663. 8015b70: 4b45 ldr r3, [pc, #276] @ (8015c88 <pvPortMalloc+0x18c>)
  52664. 8015b72: 681b ldr r3, [r3, #0]
  52665. 8015b74: 687a ldr r2, [r7, #4]
  52666. 8015b76: 429a cmp r2, r3
  52667. 8015b78: d86a bhi.n 8015c50 <pvPortMalloc+0x154>
  52668. {
  52669. /* Traverse the list from the start (lowest address) block until
  52670. one of adequate size is found. */
  52671. pxPreviousBlock = &xStart;
  52672. 8015b7a: 4b44 ldr r3, [pc, #272] @ (8015c8c <pvPortMalloc+0x190>)
  52673. 8015b7c: 623b str r3, [r7, #32]
  52674. pxBlock = xStart.pxNextFreeBlock;
  52675. 8015b7e: 4b43 ldr r3, [pc, #268] @ (8015c8c <pvPortMalloc+0x190>)
  52676. 8015b80: 681b ldr r3, [r3, #0]
  52677. 8015b82: 627b str r3, [r7, #36] @ 0x24
  52678. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  52679. 8015b84: e004 b.n 8015b90 <pvPortMalloc+0x94>
  52680. {
  52681. pxPreviousBlock = pxBlock;
  52682. 8015b86: 6a7b ldr r3, [r7, #36] @ 0x24
  52683. 8015b88: 623b str r3, [r7, #32]
  52684. pxBlock = pxBlock->pxNextFreeBlock;
  52685. 8015b8a: 6a7b ldr r3, [r7, #36] @ 0x24
  52686. 8015b8c: 681b ldr r3, [r3, #0]
  52687. 8015b8e: 627b str r3, [r7, #36] @ 0x24
  52688. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  52689. 8015b90: 6a7b ldr r3, [r7, #36] @ 0x24
  52690. 8015b92: 685b ldr r3, [r3, #4]
  52691. 8015b94: 687a ldr r2, [r7, #4]
  52692. 8015b96: 429a cmp r2, r3
  52693. 8015b98: d903 bls.n 8015ba2 <pvPortMalloc+0xa6>
  52694. 8015b9a: 6a7b ldr r3, [r7, #36] @ 0x24
  52695. 8015b9c: 681b ldr r3, [r3, #0]
  52696. 8015b9e: 2b00 cmp r3, #0
  52697. 8015ba0: d1f1 bne.n 8015b86 <pvPortMalloc+0x8a>
  52698. }
  52699. /* If the end marker was reached then a block of adequate size
  52700. was not found. */
  52701. if( pxBlock != pxEnd )
  52702. 8015ba2: 4b37 ldr r3, [pc, #220] @ (8015c80 <pvPortMalloc+0x184>)
  52703. 8015ba4: 681b ldr r3, [r3, #0]
  52704. 8015ba6: 6a7a ldr r2, [r7, #36] @ 0x24
  52705. 8015ba8: 429a cmp r2, r3
  52706. 8015baa: d051 beq.n 8015c50 <pvPortMalloc+0x154>
  52707. {
  52708. /* Return the memory space pointed to - jumping over the
  52709. BlockLink_t structure at its start. */
  52710. pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
  52711. 8015bac: 6a3b ldr r3, [r7, #32]
  52712. 8015bae: 681b ldr r3, [r3, #0]
  52713. 8015bb0: 2208 movs r2, #8
  52714. 8015bb2: 4413 add r3, r2
  52715. 8015bb4: 61fb str r3, [r7, #28]
  52716. /* This block is being returned for use so must be taken out
  52717. of the list of free blocks. */
  52718. pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
  52719. 8015bb6: 6a7b ldr r3, [r7, #36] @ 0x24
  52720. 8015bb8: 681a ldr r2, [r3, #0]
  52721. 8015bba: 6a3b ldr r3, [r7, #32]
  52722. 8015bbc: 601a str r2, [r3, #0]
  52723. /* If the block is larger than required it can be split into
  52724. two. */
  52725. if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
  52726. 8015bbe: 6a7b ldr r3, [r7, #36] @ 0x24
  52727. 8015bc0: 685a ldr r2, [r3, #4]
  52728. 8015bc2: 687b ldr r3, [r7, #4]
  52729. 8015bc4: 1ad2 subs r2, r2, r3
  52730. 8015bc6: 2308 movs r3, #8
  52731. 8015bc8: 005b lsls r3, r3, #1
  52732. 8015bca: 429a cmp r2, r3
  52733. 8015bcc: d920 bls.n 8015c10 <pvPortMalloc+0x114>
  52734. {
  52735. /* This block is to be split into two. Create a new
  52736. block following the number of bytes requested. The void
  52737. cast is used to prevent byte alignment warnings from the
  52738. compiler. */
  52739. pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
  52740. 8015bce: 6a7a ldr r2, [r7, #36] @ 0x24
  52741. 8015bd0: 687b ldr r3, [r7, #4]
  52742. 8015bd2: 4413 add r3, r2
  52743. 8015bd4: 61bb str r3, [r7, #24]
  52744. configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
  52745. 8015bd6: 69bb ldr r3, [r7, #24]
  52746. 8015bd8: f003 0307 and.w r3, r3, #7
  52747. 8015bdc: 2b00 cmp r3, #0
  52748. 8015bde: d00b beq.n 8015bf8 <pvPortMalloc+0xfc>
  52749. __asm volatile
  52750. 8015be0: f04f 0350 mov.w r3, #80 @ 0x50
  52751. 8015be4: f383 8811 msr BASEPRI, r3
  52752. 8015be8: f3bf 8f6f isb sy
  52753. 8015bec: f3bf 8f4f dsb sy
  52754. 8015bf0: 613b str r3, [r7, #16]
  52755. }
  52756. 8015bf2: bf00 nop
  52757. 8015bf4: bf00 nop
  52758. 8015bf6: e7fd b.n 8015bf4 <pvPortMalloc+0xf8>
  52759. /* Calculate the sizes of two blocks split from the
  52760. single block. */
  52761. pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
  52762. 8015bf8: 6a7b ldr r3, [r7, #36] @ 0x24
  52763. 8015bfa: 685a ldr r2, [r3, #4]
  52764. 8015bfc: 687b ldr r3, [r7, #4]
  52765. 8015bfe: 1ad2 subs r2, r2, r3
  52766. 8015c00: 69bb ldr r3, [r7, #24]
  52767. 8015c02: 605a str r2, [r3, #4]
  52768. pxBlock->xBlockSize = xWantedSize;
  52769. 8015c04: 6a7b ldr r3, [r7, #36] @ 0x24
  52770. 8015c06: 687a ldr r2, [r7, #4]
  52771. 8015c08: 605a str r2, [r3, #4]
  52772. /* Insert the new block into the list of free blocks. */
  52773. prvInsertBlockIntoFreeList( pxNewBlockLink );
  52774. 8015c0a: 69b8 ldr r0, [r7, #24]
  52775. 8015c0c: f000 f90a bl 8015e24 <prvInsertBlockIntoFreeList>
  52776. else
  52777. {
  52778. mtCOVERAGE_TEST_MARKER();
  52779. }
  52780. xFreeBytesRemaining -= pxBlock->xBlockSize;
  52781. 8015c10: 4b1d ldr r3, [pc, #116] @ (8015c88 <pvPortMalloc+0x18c>)
  52782. 8015c12: 681a ldr r2, [r3, #0]
  52783. 8015c14: 6a7b ldr r3, [r7, #36] @ 0x24
  52784. 8015c16: 685b ldr r3, [r3, #4]
  52785. 8015c18: 1ad3 subs r3, r2, r3
  52786. 8015c1a: 4a1b ldr r2, [pc, #108] @ (8015c88 <pvPortMalloc+0x18c>)
  52787. 8015c1c: 6013 str r3, [r2, #0]
  52788. if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
  52789. 8015c1e: 4b1a ldr r3, [pc, #104] @ (8015c88 <pvPortMalloc+0x18c>)
  52790. 8015c20: 681a ldr r2, [r3, #0]
  52791. 8015c22: 4b1b ldr r3, [pc, #108] @ (8015c90 <pvPortMalloc+0x194>)
  52792. 8015c24: 681b ldr r3, [r3, #0]
  52793. 8015c26: 429a cmp r2, r3
  52794. 8015c28: d203 bcs.n 8015c32 <pvPortMalloc+0x136>
  52795. {
  52796. xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
  52797. 8015c2a: 4b17 ldr r3, [pc, #92] @ (8015c88 <pvPortMalloc+0x18c>)
  52798. 8015c2c: 681b ldr r3, [r3, #0]
  52799. 8015c2e: 4a18 ldr r2, [pc, #96] @ (8015c90 <pvPortMalloc+0x194>)
  52800. 8015c30: 6013 str r3, [r2, #0]
  52801. mtCOVERAGE_TEST_MARKER();
  52802. }
  52803. /* The block is being returned - it is allocated and owned
  52804. by the application and has no "next" block. */
  52805. pxBlock->xBlockSize |= xBlockAllocatedBit;
  52806. 8015c32: 6a7b ldr r3, [r7, #36] @ 0x24
  52807. 8015c34: 685a ldr r2, [r3, #4]
  52808. 8015c36: 4b13 ldr r3, [pc, #76] @ (8015c84 <pvPortMalloc+0x188>)
  52809. 8015c38: 681b ldr r3, [r3, #0]
  52810. 8015c3a: 431a orrs r2, r3
  52811. 8015c3c: 6a7b ldr r3, [r7, #36] @ 0x24
  52812. 8015c3e: 605a str r2, [r3, #4]
  52813. pxBlock->pxNextFreeBlock = NULL;
  52814. 8015c40: 6a7b ldr r3, [r7, #36] @ 0x24
  52815. 8015c42: 2200 movs r2, #0
  52816. 8015c44: 601a str r2, [r3, #0]
  52817. xNumberOfSuccessfulAllocations++;
  52818. 8015c46: 4b13 ldr r3, [pc, #76] @ (8015c94 <pvPortMalloc+0x198>)
  52819. 8015c48: 681b ldr r3, [r3, #0]
  52820. 8015c4a: 3301 adds r3, #1
  52821. 8015c4c: 4a11 ldr r2, [pc, #68] @ (8015c94 <pvPortMalloc+0x198>)
  52822. 8015c4e: 6013 str r3, [r2, #0]
  52823. mtCOVERAGE_TEST_MARKER();
  52824. }
  52825. traceMALLOC( pvReturn, xWantedSize );
  52826. }
  52827. ( void ) xTaskResumeAll();
  52828. 8015c50: f7fe f86c bl 8013d2c <xTaskResumeAll>
  52829. mtCOVERAGE_TEST_MARKER();
  52830. }
  52831. }
  52832. #endif
  52833. configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
  52834. 8015c54: 69fb ldr r3, [r7, #28]
  52835. 8015c56: f003 0307 and.w r3, r3, #7
  52836. 8015c5a: 2b00 cmp r3, #0
  52837. 8015c5c: d00b beq.n 8015c76 <pvPortMalloc+0x17a>
  52838. __asm volatile
  52839. 8015c5e: f04f 0350 mov.w r3, #80 @ 0x50
  52840. 8015c62: f383 8811 msr BASEPRI, r3
  52841. 8015c66: f3bf 8f6f isb sy
  52842. 8015c6a: f3bf 8f4f dsb sy
  52843. 8015c6e: 60fb str r3, [r7, #12]
  52844. }
  52845. 8015c70: bf00 nop
  52846. 8015c72: bf00 nop
  52847. 8015c74: e7fd b.n 8015c72 <pvPortMalloc+0x176>
  52848. return pvReturn;
  52849. 8015c76: 69fb ldr r3, [r7, #28]
  52850. }
  52851. 8015c78: 4618 mov r0, r3
  52852. 8015c7a: 3728 adds r7, #40 @ 0x28
  52853. 8015c7c: 46bd mov sp, r7
  52854. 8015c7e: bd80 pop {r7, pc}
  52855. 8015c80: 240243ac .word 0x240243ac
  52856. 8015c84: 240243c0 .word 0x240243c0
  52857. 8015c88: 240243b0 .word 0x240243b0
  52858. 8015c8c: 240243a4 .word 0x240243a4
  52859. 8015c90: 240243b4 .word 0x240243b4
  52860. 8015c94: 240243b8 .word 0x240243b8
  52861. 08015c98 <vPortFree>:
  52862. /*-----------------------------------------------------------*/
  52863. void vPortFree( void *pv )
  52864. {
  52865. 8015c98: b580 push {r7, lr}
  52866. 8015c9a: b086 sub sp, #24
  52867. 8015c9c: af00 add r7, sp, #0
  52868. 8015c9e: 6078 str r0, [r7, #4]
  52869. uint8_t *puc = ( uint8_t * ) pv;
  52870. 8015ca0: 687b ldr r3, [r7, #4]
  52871. 8015ca2: 617b str r3, [r7, #20]
  52872. BlockLink_t *pxLink;
  52873. if( pv != NULL )
  52874. 8015ca4: 687b ldr r3, [r7, #4]
  52875. 8015ca6: 2b00 cmp r3, #0
  52876. 8015ca8: d04f beq.n 8015d4a <vPortFree+0xb2>
  52877. {
  52878. /* The memory being freed will have an BlockLink_t structure immediately
  52879. before it. */
  52880. puc -= xHeapStructSize;
  52881. 8015caa: 2308 movs r3, #8
  52882. 8015cac: 425b negs r3, r3
  52883. 8015cae: 697a ldr r2, [r7, #20]
  52884. 8015cb0: 4413 add r3, r2
  52885. 8015cb2: 617b str r3, [r7, #20]
  52886. /* This casting is to keep the compiler from issuing warnings. */
  52887. pxLink = ( void * ) puc;
  52888. 8015cb4: 697b ldr r3, [r7, #20]
  52889. 8015cb6: 613b str r3, [r7, #16]
  52890. /* Check the block is actually allocated. */
  52891. configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
  52892. 8015cb8: 693b ldr r3, [r7, #16]
  52893. 8015cba: 685a ldr r2, [r3, #4]
  52894. 8015cbc: 4b25 ldr r3, [pc, #148] @ (8015d54 <vPortFree+0xbc>)
  52895. 8015cbe: 681b ldr r3, [r3, #0]
  52896. 8015cc0: 4013 ands r3, r2
  52897. 8015cc2: 2b00 cmp r3, #0
  52898. 8015cc4: d10b bne.n 8015cde <vPortFree+0x46>
  52899. __asm volatile
  52900. 8015cc6: f04f 0350 mov.w r3, #80 @ 0x50
  52901. 8015cca: f383 8811 msr BASEPRI, r3
  52902. 8015cce: f3bf 8f6f isb sy
  52903. 8015cd2: f3bf 8f4f dsb sy
  52904. 8015cd6: 60fb str r3, [r7, #12]
  52905. }
  52906. 8015cd8: bf00 nop
  52907. 8015cda: bf00 nop
  52908. 8015cdc: e7fd b.n 8015cda <vPortFree+0x42>
  52909. configASSERT( pxLink->pxNextFreeBlock == NULL );
  52910. 8015cde: 693b ldr r3, [r7, #16]
  52911. 8015ce0: 681b ldr r3, [r3, #0]
  52912. 8015ce2: 2b00 cmp r3, #0
  52913. 8015ce4: d00b beq.n 8015cfe <vPortFree+0x66>
  52914. __asm volatile
  52915. 8015ce6: f04f 0350 mov.w r3, #80 @ 0x50
  52916. 8015cea: f383 8811 msr BASEPRI, r3
  52917. 8015cee: f3bf 8f6f isb sy
  52918. 8015cf2: f3bf 8f4f dsb sy
  52919. 8015cf6: 60bb str r3, [r7, #8]
  52920. }
  52921. 8015cf8: bf00 nop
  52922. 8015cfa: bf00 nop
  52923. 8015cfc: e7fd b.n 8015cfa <vPortFree+0x62>
  52924. if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
  52925. 8015cfe: 693b ldr r3, [r7, #16]
  52926. 8015d00: 685a ldr r2, [r3, #4]
  52927. 8015d02: 4b14 ldr r3, [pc, #80] @ (8015d54 <vPortFree+0xbc>)
  52928. 8015d04: 681b ldr r3, [r3, #0]
  52929. 8015d06: 4013 ands r3, r2
  52930. 8015d08: 2b00 cmp r3, #0
  52931. 8015d0a: d01e beq.n 8015d4a <vPortFree+0xb2>
  52932. {
  52933. if( pxLink->pxNextFreeBlock == NULL )
  52934. 8015d0c: 693b ldr r3, [r7, #16]
  52935. 8015d0e: 681b ldr r3, [r3, #0]
  52936. 8015d10: 2b00 cmp r3, #0
  52937. 8015d12: d11a bne.n 8015d4a <vPortFree+0xb2>
  52938. {
  52939. /* The block is being returned to the heap - it is no longer
  52940. allocated. */
  52941. pxLink->xBlockSize &= ~xBlockAllocatedBit;
  52942. 8015d14: 693b ldr r3, [r7, #16]
  52943. 8015d16: 685a ldr r2, [r3, #4]
  52944. 8015d18: 4b0e ldr r3, [pc, #56] @ (8015d54 <vPortFree+0xbc>)
  52945. 8015d1a: 681b ldr r3, [r3, #0]
  52946. 8015d1c: 43db mvns r3, r3
  52947. 8015d1e: 401a ands r2, r3
  52948. 8015d20: 693b ldr r3, [r7, #16]
  52949. 8015d22: 605a str r2, [r3, #4]
  52950. vTaskSuspendAll();
  52951. 8015d24: f7fd fff4 bl 8013d10 <vTaskSuspendAll>
  52952. {
  52953. /* Add this block to the list of free blocks. */
  52954. xFreeBytesRemaining += pxLink->xBlockSize;
  52955. 8015d28: 693b ldr r3, [r7, #16]
  52956. 8015d2a: 685a ldr r2, [r3, #4]
  52957. 8015d2c: 4b0a ldr r3, [pc, #40] @ (8015d58 <vPortFree+0xc0>)
  52958. 8015d2e: 681b ldr r3, [r3, #0]
  52959. 8015d30: 4413 add r3, r2
  52960. 8015d32: 4a09 ldr r2, [pc, #36] @ (8015d58 <vPortFree+0xc0>)
  52961. 8015d34: 6013 str r3, [r2, #0]
  52962. traceFREE( pv, pxLink->xBlockSize );
  52963. prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
  52964. 8015d36: 6938 ldr r0, [r7, #16]
  52965. 8015d38: f000 f874 bl 8015e24 <prvInsertBlockIntoFreeList>
  52966. xNumberOfSuccessfulFrees++;
  52967. 8015d3c: 4b07 ldr r3, [pc, #28] @ (8015d5c <vPortFree+0xc4>)
  52968. 8015d3e: 681b ldr r3, [r3, #0]
  52969. 8015d40: 3301 adds r3, #1
  52970. 8015d42: 4a06 ldr r2, [pc, #24] @ (8015d5c <vPortFree+0xc4>)
  52971. 8015d44: 6013 str r3, [r2, #0]
  52972. }
  52973. ( void ) xTaskResumeAll();
  52974. 8015d46: f7fd fff1 bl 8013d2c <xTaskResumeAll>
  52975. else
  52976. {
  52977. mtCOVERAGE_TEST_MARKER();
  52978. }
  52979. }
  52980. }
  52981. 8015d4a: bf00 nop
  52982. 8015d4c: 3718 adds r7, #24
  52983. 8015d4e: 46bd mov sp, r7
  52984. 8015d50: bd80 pop {r7, pc}
  52985. 8015d52: bf00 nop
  52986. 8015d54: 240243c0 .word 0x240243c0
  52987. 8015d58: 240243b0 .word 0x240243b0
  52988. 8015d5c: 240243bc .word 0x240243bc
  52989. 08015d60 <prvHeapInit>:
  52990. /* This just exists to keep the linker quiet. */
  52991. }
  52992. /*-----------------------------------------------------------*/
  52993. static void prvHeapInit( void )
  52994. {
  52995. 8015d60: b480 push {r7}
  52996. 8015d62: b085 sub sp, #20
  52997. 8015d64: af00 add r7, sp, #0
  52998. BlockLink_t *pxFirstFreeBlock;
  52999. uint8_t *pucAlignedHeap;
  53000. size_t uxAddress;
  53001. size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
  53002. 8015d66: f44f 3300 mov.w r3, #131072 @ 0x20000
  53003. 8015d6a: 60bb str r3, [r7, #8]
  53004. /* Ensure the heap starts on a correctly aligned boundary. */
  53005. uxAddress = ( size_t ) ucHeap;
  53006. 8015d6c: 4b27 ldr r3, [pc, #156] @ (8015e0c <prvHeapInit+0xac>)
  53007. 8015d6e: 60fb str r3, [r7, #12]
  53008. if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
  53009. 8015d70: 68fb ldr r3, [r7, #12]
  53010. 8015d72: f003 0307 and.w r3, r3, #7
  53011. 8015d76: 2b00 cmp r3, #0
  53012. 8015d78: d00c beq.n 8015d94 <prvHeapInit+0x34>
  53013. {
  53014. uxAddress += ( portBYTE_ALIGNMENT - 1 );
  53015. 8015d7a: 68fb ldr r3, [r7, #12]
  53016. 8015d7c: 3307 adds r3, #7
  53017. 8015d7e: 60fb str r3, [r7, #12]
  53018. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  53019. 8015d80: 68fb ldr r3, [r7, #12]
  53020. 8015d82: f023 0307 bic.w r3, r3, #7
  53021. 8015d86: 60fb str r3, [r7, #12]
  53022. xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
  53023. 8015d88: 68ba ldr r2, [r7, #8]
  53024. 8015d8a: 68fb ldr r3, [r7, #12]
  53025. 8015d8c: 1ad3 subs r3, r2, r3
  53026. 8015d8e: 4a1f ldr r2, [pc, #124] @ (8015e0c <prvHeapInit+0xac>)
  53027. 8015d90: 4413 add r3, r2
  53028. 8015d92: 60bb str r3, [r7, #8]
  53029. }
  53030. pucAlignedHeap = ( uint8_t * ) uxAddress;
  53031. 8015d94: 68fb ldr r3, [r7, #12]
  53032. 8015d96: 607b str r3, [r7, #4]
  53033. /* xStart is used to hold a pointer to the first item in the list of free
  53034. blocks. The void cast is used to prevent compiler warnings. */
  53035. xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
  53036. 8015d98: 4a1d ldr r2, [pc, #116] @ (8015e10 <prvHeapInit+0xb0>)
  53037. 8015d9a: 687b ldr r3, [r7, #4]
  53038. 8015d9c: 6013 str r3, [r2, #0]
  53039. xStart.xBlockSize = ( size_t ) 0;
  53040. 8015d9e: 4b1c ldr r3, [pc, #112] @ (8015e10 <prvHeapInit+0xb0>)
  53041. 8015da0: 2200 movs r2, #0
  53042. 8015da2: 605a str r2, [r3, #4]
  53043. /* pxEnd is used to mark the end of the list of free blocks and is inserted
  53044. at the end of the heap space. */
  53045. uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
  53046. 8015da4: 687b ldr r3, [r7, #4]
  53047. 8015da6: 68ba ldr r2, [r7, #8]
  53048. 8015da8: 4413 add r3, r2
  53049. 8015daa: 60fb str r3, [r7, #12]
  53050. uxAddress -= xHeapStructSize;
  53051. 8015dac: 2208 movs r2, #8
  53052. 8015dae: 68fb ldr r3, [r7, #12]
  53053. 8015db0: 1a9b subs r3, r3, r2
  53054. 8015db2: 60fb str r3, [r7, #12]
  53055. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  53056. 8015db4: 68fb ldr r3, [r7, #12]
  53057. 8015db6: f023 0307 bic.w r3, r3, #7
  53058. 8015dba: 60fb str r3, [r7, #12]
  53059. pxEnd = ( void * ) uxAddress;
  53060. 8015dbc: 68fb ldr r3, [r7, #12]
  53061. 8015dbe: 4a15 ldr r2, [pc, #84] @ (8015e14 <prvHeapInit+0xb4>)
  53062. 8015dc0: 6013 str r3, [r2, #0]
  53063. pxEnd->xBlockSize = 0;
  53064. 8015dc2: 4b14 ldr r3, [pc, #80] @ (8015e14 <prvHeapInit+0xb4>)
  53065. 8015dc4: 681b ldr r3, [r3, #0]
  53066. 8015dc6: 2200 movs r2, #0
  53067. 8015dc8: 605a str r2, [r3, #4]
  53068. pxEnd->pxNextFreeBlock = NULL;
  53069. 8015dca: 4b12 ldr r3, [pc, #72] @ (8015e14 <prvHeapInit+0xb4>)
  53070. 8015dcc: 681b ldr r3, [r3, #0]
  53071. 8015dce: 2200 movs r2, #0
  53072. 8015dd0: 601a str r2, [r3, #0]
  53073. /* To start with there is a single free block that is sized to take up the
  53074. entire heap space, minus the space taken by pxEnd. */
  53075. pxFirstFreeBlock = ( void * ) pucAlignedHeap;
  53076. 8015dd2: 687b ldr r3, [r7, #4]
  53077. 8015dd4: 603b str r3, [r7, #0]
  53078. pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
  53079. 8015dd6: 683b ldr r3, [r7, #0]
  53080. 8015dd8: 68fa ldr r2, [r7, #12]
  53081. 8015dda: 1ad2 subs r2, r2, r3
  53082. 8015ddc: 683b ldr r3, [r7, #0]
  53083. 8015dde: 605a str r2, [r3, #4]
  53084. pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
  53085. 8015de0: 4b0c ldr r3, [pc, #48] @ (8015e14 <prvHeapInit+0xb4>)
  53086. 8015de2: 681a ldr r2, [r3, #0]
  53087. 8015de4: 683b ldr r3, [r7, #0]
  53088. 8015de6: 601a str r2, [r3, #0]
  53089. /* Only one block exists - and it covers the entire usable heap space. */
  53090. xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  53091. 8015de8: 683b ldr r3, [r7, #0]
  53092. 8015dea: 685b ldr r3, [r3, #4]
  53093. 8015dec: 4a0a ldr r2, [pc, #40] @ (8015e18 <prvHeapInit+0xb8>)
  53094. 8015dee: 6013 str r3, [r2, #0]
  53095. xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  53096. 8015df0: 683b ldr r3, [r7, #0]
  53097. 8015df2: 685b ldr r3, [r3, #4]
  53098. 8015df4: 4a09 ldr r2, [pc, #36] @ (8015e1c <prvHeapInit+0xbc>)
  53099. 8015df6: 6013 str r3, [r2, #0]
  53100. /* Work out the position of the top bit in a size_t variable. */
  53101. xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
  53102. 8015df8: 4b09 ldr r3, [pc, #36] @ (8015e20 <prvHeapInit+0xc0>)
  53103. 8015dfa: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
  53104. 8015dfe: 601a str r2, [r3, #0]
  53105. }
  53106. 8015e00: bf00 nop
  53107. 8015e02: 3714 adds r7, #20
  53108. 8015e04: 46bd mov sp, r7
  53109. 8015e06: f85d 7b04 ldr.w r7, [sp], #4
  53110. 8015e0a: 4770 bx lr
  53111. 8015e0c: 240043a4 .word 0x240043a4
  53112. 8015e10: 240243a4 .word 0x240243a4
  53113. 8015e14: 240243ac .word 0x240243ac
  53114. 8015e18: 240243b4 .word 0x240243b4
  53115. 8015e1c: 240243b0 .word 0x240243b0
  53116. 8015e20: 240243c0 .word 0x240243c0
  53117. 08015e24 <prvInsertBlockIntoFreeList>:
  53118. /*-----------------------------------------------------------*/
  53119. static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
  53120. {
  53121. 8015e24: b480 push {r7}
  53122. 8015e26: b085 sub sp, #20
  53123. 8015e28: af00 add r7, sp, #0
  53124. 8015e2a: 6078 str r0, [r7, #4]
  53125. BlockLink_t *pxIterator;
  53126. uint8_t *puc;
  53127. /* Iterate through the list until a block is found that has a higher address
  53128. than the block being inserted. */
  53129. for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
  53130. 8015e2c: 4b28 ldr r3, [pc, #160] @ (8015ed0 <prvInsertBlockIntoFreeList+0xac>)
  53131. 8015e2e: 60fb str r3, [r7, #12]
  53132. 8015e30: e002 b.n 8015e38 <prvInsertBlockIntoFreeList+0x14>
  53133. 8015e32: 68fb ldr r3, [r7, #12]
  53134. 8015e34: 681b ldr r3, [r3, #0]
  53135. 8015e36: 60fb str r3, [r7, #12]
  53136. 8015e38: 68fb ldr r3, [r7, #12]
  53137. 8015e3a: 681b ldr r3, [r3, #0]
  53138. 8015e3c: 687a ldr r2, [r7, #4]
  53139. 8015e3e: 429a cmp r2, r3
  53140. 8015e40: d8f7 bhi.n 8015e32 <prvInsertBlockIntoFreeList+0xe>
  53141. /* Nothing to do here, just iterate to the right position. */
  53142. }
  53143. /* Do the block being inserted, and the block it is being inserted after
  53144. make a contiguous block of memory? */
  53145. puc = ( uint8_t * ) pxIterator;
  53146. 8015e42: 68fb ldr r3, [r7, #12]
  53147. 8015e44: 60bb str r3, [r7, #8]
  53148. if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
  53149. 8015e46: 68fb ldr r3, [r7, #12]
  53150. 8015e48: 685b ldr r3, [r3, #4]
  53151. 8015e4a: 68ba ldr r2, [r7, #8]
  53152. 8015e4c: 4413 add r3, r2
  53153. 8015e4e: 687a ldr r2, [r7, #4]
  53154. 8015e50: 429a cmp r2, r3
  53155. 8015e52: d108 bne.n 8015e66 <prvInsertBlockIntoFreeList+0x42>
  53156. {
  53157. pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
  53158. 8015e54: 68fb ldr r3, [r7, #12]
  53159. 8015e56: 685a ldr r2, [r3, #4]
  53160. 8015e58: 687b ldr r3, [r7, #4]
  53161. 8015e5a: 685b ldr r3, [r3, #4]
  53162. 8015e5c: 441a add r2, r3
  53163. 8015e5e: 68fb ldr r3, [r7, #12]
  53164. 8015e60: 605a str r2, [r3, #4]
  53165. pxBlockToInsert = pxIterator;
  53166. 8015e62: 68fb ldr r3, [r7, #12]
  53167. 8015e64: 607b str r3, [r7, #4]
  53168. mtCOVERAGE_TEST_MARKER();
  53169. }
  53170. /* Do the block being inserted, and the block it is being inserted before
  53171. make a contiguous block of memory? */
  53172. puc = ( uint8_t * ) pxBlockToInsert;
  53173. 8015e66: 687b ldr r3, [r7, #4]
  53174. 8015e68: 60bb str r3, [r7, #8]
  53175. if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
  53176. 8015e6a: 687b ldr r3, [r7, #4]
  53177. 8015e6c: 685b ldr r3, [r3, #4]
  53178. 8015e6e: 68ba ldr r2, [r7, #8]
  53179. 8015e70: 441a add r2, r3
  53180. 8015e72: 68fb ldr r3, [r7, #12]
  53181. 8015e74: 681b ldr r3, [r3, #0]
  53182. 8015e76: 429a cmp r2, r3
  53183. 8015e78: d118 bne.n 8015eac <prvInsertBlockIntoFreeList+0x88>
  53184. {
  53185. if( pxIterator->pxNextFreeBlock != pxEnd )
  53186. 8015e7a: 68fb ldr r3, [r7, #12]
  53187. 8015e7c: 681a ldr r2, [r3, #0]
  53188. 8015e7e: 4b15 ldr r3, [pc, #84] @ (8015ed4 <prvInsertBlockIntoFreeList+0xb0>)
  53189. 8015e80: 681b ldr r3, [r3, #0]
  53190. 8015e82: 429a cmp r2, r3
  53191. 8015e84: d00d beq.n 8015ea2 <prvInsertBlockIntoFreeList+0x7e>
  53192. {
  53193. /* Form one big block from the two blocks. */
  53194. pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
  53195. 8015e86: 687b ldr r3, [r7, #4]
  53196. 8015e88: 685a ldr r2, [r3, #4]
  53197. 8015e8a: 68fb ldr r3, [r7, #12]
  53198. 8015e8c: 681b ldr r3, [r3, #0]
  53199. 8015e8e: 685b ldr r3, [r3, #4]
  53200. 8015e90: 441a add r2, r3
  53201. 8015e92: 687b ldr r3, [r7, #4]
  53202. 8015e94: 605a str r2, [r3, #4]
  53203. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
  53204. 8015e96: 68fb ldr r3, [r7, #12]
  53205. 8015e98: 681b ldr r3, [r3, #0]
  53206. 8015e9a: 681a ldr r2, [r3, #0]
  53207. 8015e9c: 687b ldr r3, [r7, #4]
  53208. 8015e9e: 601a str r2, [r3, #0]
  53209. 8015ea0: e008 b.n 8015eb4 <prvInsertBlockIntoFreeList+0x90>
  53210. }
  53211. else
  53212. {
  53213. pxBlockToInsert->pxNextFreeBlock = pxEnd;
  53214. 8015ea2: 4b0c ldr r3, [pc, #48] @ (8015ed4 <prvInsertBlockIntoFreeList+0xb0>)
  53215. 8015ea4: 681a ldr r2, [r3, #0]
  53216. 8015ea6: 687b ldr r3, [r7, #4]
  53217. 8015ea8: 601a str r2, [r3, #0]
  53218. 8015eaa: e003 b.n 8015eb4 <prvInsertBlockIntoFreeList+0x90>
  53219. }
  53220. }
  53221. else
  53222. {
  53223. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
  53224. 8015eac: 68fb ldr r3, [r7, #12]
  53225. 8015eae: 681a ldr r2, [r3, #0]
  53226. 8015eb0: 687b ldr r3, [r7, #4]
  53227. 8015eb2: 601a str r2, [r3, #0]
  53228. /* If the block being inserted plugged a gab, so was merged with the block
  53229. before and the block after, then it's pxNextFreeBlock pointer will have
  53230. already been set, and should not be set here as that would make it point
  53231. to itself. */
  53232. if( pxIterator != pxBlockToInsert )
  53233. 8015eb4: 68fa ldr r2, [r7, #12]
  53234. 8015eb6: 687b ldr r3, [r7, #4]
  53235. 8015eb8: 429a cmp r2, r3
  53236. 8015eba: d002 beq.n 8015ec2 <prvInsertBlockIntoFreeList+0x9e>
  53237. {
  53238. pxIterator->pxNextFreeBlock = pxBlockToInsert;
  53239. 8015ebc: 68fb ldr r3, [r7, #12]
  53240. 8015ebe: 687a ldr r2, [r7, #4]
  53241. 8015ec0: 601a str r2, [r3, #0]
  53242. }
  53243. else
  53244. {
  53245. mtCOVERAGE_TEST_MARKER();
  53246. }
  53247. }
  53248. 8015ec2: bf00 nop
  53249. 8015ec4: 3714 adds r7, #20
  53250. 8015ec6: 46bd mov sp, r7
  53251. 8015ec8: f85d 7b04 ldr.w r7, [sp], #4
  53252. 8015ecc: 4770 bx lr
  53253. 8015ece: bf00 nop
  53254. 8015ed0: 240243a4 .word 0x240243a4
  53255. 8015ed4: 240243ac .word 0x240243ac
  53256. 08015ed8 <netconn_apimsg>:
  53257. * @param apimsg a struct containing the function to call and its parameters
  53258. * @return ERR_OK if the function was called, another err_t if not
  53259. */
  53260. static err_t
  53261. netconn_apimsg(tcpip_callback_fn fn, struct api_msg *apimsg)
  53262. {
  53263. 8015ed8: b580 push {r7, lr}
  53264. 8015eda: b084 sub sp, #16
  53265. 8015edc: af00 add r7, sp, #0
  53266. 8015ede: 6078 str r0, [r7, #4]
  53267. 8015ee0: 6039 str r1, [r7, #0]
  53268. err_t err;
  53269. #ifdef LWIP_DEBUG
  53270. /* catch functions that don't set err */
  53271. apimsg->err = ERR_VAL;
  53272. 8015ee2: 683b ldr r3, [r7, #0]
  53273. 8015ee4: 22fa movs r2, #250 @ 0xfa
  53274. 8015ee6: 711a strb r2, [r3, #4]
  53275. #if LWIP_NETCONN_SEM_PER_THREAD
  53276. apimsg->op_completed_sem = LWIP_NETCONN_THREAD_SEM_GET();
  53277. #endif /* LWIP_NETCONN_SEM_PER_THREAD */
  53278. err = tcpip_send_msg_wait_sem(fn, apimsg, LWIP_API_MSG_SEM(apimsg));
  53279. 8015ee8: 683b ldr r3, [r7, #0]
  53280. 8015eea: 681b ldr r3, [r3, #0]
  53281. 8015eec: 330c adds r3, #12
  53282. 8015eee: 461a mov r2, r3
  53283. 8015ef0: 6839 ldr r1, [r7, #0]
  53284. 8015ef2: 6878 ldr r0, [r7, #4]
  53285. 8015ef4: f003 fc7c bl 80197f0 <tcpip_send_msg_wait_sem>
  53286. 8015ef8: 4603 mov r3, r0
  53287. 8015efa: 73fb strb r3, [r7, #15]
  53288. if (err == ERR_OK) {
  53289. 8015efc: f997 300f ldrsb.w r3, [r7, #15]
  53290. 8015f00: 2b00 cmp r3, #0
  53291. 8015f02: d103 bne.n 8015f0c <netconn_apimsg+0x34>
  53292. return apimsg->err;
  53293. 8015f04: 683b ldr r3, [r7, #0]
  53294. 8015f06: f993 3004 ldrsb.w r3, [r3, #4]
  53295. 8015f0a: e001 b.n 8015f10 <netconn_apimsg+0x38>
  53296. }
  53297. return err;
  53298. 8015f0c: f997 300f ldrsb.w r3, [r7, #15]
  53299. }
  53300. 8015f10: 4618 mov r0, r3
  53301. 8015f12: 3710 adds r7, #16
  53302. 8015f14: 46bd mov sp, r7
  53303. 8015f16: bd80 pop {r7, pc}
  53304. 08015f18 <netconn_new_with_proto_and_callback>:
  53305. * @return a newly allocated struct netconn or
  53306. * NULL on memory error
  53307. */
  53308. struct netconn *
  53309. netconn_new_with_proto_and_callback(enum netconn_type t, u8_t proto, netconn_callback callback)
  53310. {
  53311. 8015f18: b580 push {r7, lr}
  53312. 8015f1a: b08c sub sp, #48 @ 0x30
  53313. 8015f1c: af00 add r7, sp, #0
  53314. 8015f1e: 4603 mov r3, r0
  53315. 8015f20: 603a str r2, [r7, #0]
  53316. 8015f22: 71fb strb r3, [r7, #7]
  53317. 8015f24: 460b mov r3, r1
  53318. 8015f26: 71bb strb r3, [r7, #6]
  53319. struct netconn *conn;
  53320. API_MSG_VAR_DECLARE(msg);
  53321. API_MSG_VAR_ALLOC_RETURN_NULL(msg);
  53322. conn = netconn_alloc(t, callback);
  53323. 8015f28: 79fb ldrb r3, [r7, #7]
  53324. 8015f2a: 6839 ldr r1, [r7, #0]
  53325. 8015f2c: 4618 mov r0, r3
  53326. 8015f2e: f001 f8ad bl 801708c <netconn_alloc>
  53327. 8015f32: 62f8 str r0, [r7, #44] @ 0x2c
  53328. if (conn != NULL) {
  53329. 8015f34: 6afb ldr r3, [r7, #44] @ 0x2c
  53330. 8015f36: 2b00 cmp r3, #0
  53331. 8015f38: d054 beq.n 8015fe4 <netconn_new_with_proto_and_callback+0xcc>
  53332. err_t err;
  53333. API_MSG_VAR_REF(msg).msg.n.proto = proto;
  53334. 8015f3a: 79bb ldrb r3, [r7, #6]
  53335. 8015f3c: 743b strb r3, [r7, #16]
  53336. API_MSG_VAR_REF(msg).conn = conn;
  53337. 8015f3e: 6afb ldr r3, [r7, #44] @ 0x2c
  53338. 8015f40: 60bb str r3, [r7, #8]
  53339. err = netconn_apimsg(lwip_netconn_do_newconn, &API_MSG_VAR_REF(msg));
  53340. 8015f42: f107 0308 add.w r3, r7, #8
  53341. 8015f46: 4619 mov r1, r3
  53342. 8015f48: 4829 ldr r0, [pc, #164] @ (8015ff0 <netconn_new_with_proto_and_callback+0xd8>)
  53343. 8015f4a: f7ff ffc5 bl 8015ed8 <netconn_apimsg>
  53344. 8015f4e: 4603 mov r3, r0
  53345. 8015f50: f887 302b strb.w r3, [r7, #43] @ 0x2b
  53346. if (err != ERR_OK) {
  53347. 8015f54: f997 302b ldrsb.w r3, [r7, #43] @ 0x2b
  53348. 8015f58: 2b00 cmp r3, #0
  53349. 8015f5a: d043 beq.n 8015fe4 <netconn_new_with_proto_and_callback+0xcc>
  53350. LWIP_ASSERT("freeing conn without freeing pcb", conn->pcb.tcp == NULL);
  53351. 8015f5c: 6afb ldr r3, [r7, #44] @ 0x2c
  53352. 8015f5e: 685b ldr r3, [r3, #4]
  53353. 8015f60: 2b00 cmp r3, #0
  53354. 8015f62: d005 beq.n 8015f70 <netconn_new_with_proto_and_callback+0x58>
  53355. 8015f64: 4b23 ldr r3, [pc, #140] @ (8015ff4 <netconn_new_with_proto_and_callback+0xdc>)
  53356. 8015f66: 22a3 movs r2, #163 @ 0xa3
  53357. 8015f68: 4923 ldr r1, [pc, #140] @ (8015ff8 <netconn_new_with_proto_and_callback+0xe0>)
  53358. 8015f6a: 4824 ldr r0, [pc, #144] @ (8015ffc <netconn_new_with_proto_and_callback+0xe4>)
  53359. 8015f6c: f014 fbf6 bl 802a75c <iprintf>
  53360. LWIP_ASSERT("conn has no recvmbox", sys_mbox_valid(&conn->recvmbox));
  53361. 8015f70: 6afb ldr r3, [r7, #44] @ 0x2c
  53362. 8015f72: 3310 adds r3, #16
  53363. 8015f74: 4618 mov r0, r3
  53364. 8015f76: f011 f851 bl 802701c <sys_mbox_valid>
  53365. 8015f7a: 4603 mov r3, r0
  53366. 8015f7c: 2b00 cmp r3, #0
  53367. 8015f7e: d105 bne.n 8015f8c <netconn_new_with_proto_and_callback+0x74>
  53368. 8015f80: 4b1c ldr r3, [pc, #112] @ (8015ff4 <netconn_new_with_proto_and_callback+0xdc>)
  53369. 8015f82: 22a4 movs r2, #164 @ 0xa4
  53370. 8015f84: 491e ldr r1, [pc, #120] @ (8016000 <netconn_new_with_proto_and_callback+0xe8>)
  53371. 8015f86: 481d ldr r0, [pc, #116] @ (8015ffc <netconn_new_with_proto_and_callback+0xe4>)
  53372. 8015f88: f014 fbe8 bl 802a75c <iprintf>
  53373. #if LWIP_TCP
  53374. LWIP_ASSERT("conn->acceptmbox shouldn't exist", !sys_mbox_valid(&conn->acceptmbox));
  53375. 8015f8c: 6afb ldr r3, [r7, #44] @ 0x2c
  53376. 8015f8e: 3314 adds r3, #20
  53377. 8015f90: 4618 mov r0, r3
  53378. 8015f92: f011 f843 bl 802701c <sys_mbox_valid>
  53379. 8015f96: 4603 mov r3, r0
  53380. 8015f98: 2b00 cmp r3, #0
  53381. 8015f9a: d005 beq.n 8015fa8 <netconn_new_with_proto_and_callback+0x90>
  53382. 8015f9c: 4b15 ldr r3, [pc, #84] @ (8015ff4 <netconn_new_with_proto_and_callback+0xdc>)
  53383. 8015f9e: 22a6 movs r2, #166 @ 0xa6
  53384. 8015fa0: 4918 ldr r1, [pc, #96] @ (8016004 <netconn_new_with_proto_and_callback+0xec>)
  53385. 8015fa2: 4816 ldr r0, [pc, #88] @ (8015ffc <netconn_new_with_proto_and_callback+0xe4>)
  53386. 8015fa4: f014 fbda bl 802a75c <iprintf>
  53387. #endif /* LWIP_TCP */
  53388. #if !LWIP_NETCONN_SEM_PER_THREAD
  53389. LWIP_ASSERT("conn has no op_completed", sys_sem_valid(&conn->op_completed));
  53390. 8015fa8: 6afb ldr r3, [r7, #44] @ 0x2c
  53391. 8015faa: 330c adds r3, #12
  53392. 8015fac: 4618 mov r0, r3
  53393. 8015fae: f011 f8c3 bl 8027138 <sys_sem_valid>
  53394. 8015fb2: 4603 mov r3, r0
  53395. 8015fb4: 2b00 cmp r3, #0
  53396. 8015fb6: d105 bne.n 8015fc4 <netconn_new_with_proto_and_callback+0xac>
  53397. 8015fb8: 4b0e ldr r3, [pc, #56] @ (8015ff4 <netconn_new_with_proto_and_callback+0xdc>)
  53398. 8015fba: 22a9 movs r2, #169 @ 0xa9
  53399. 8015fbc: 4912 ldr r1, [pc, #72] @ (8016008 <netconn_new_with_proto_and_callback+0xf0>)
  53400. 8015fbe: 480f ldr r0, [pc, #60] @ (8015ffc <netconn_new_with_proto_and_callback+0xe4>)
  53401. 8015fc0: f014 fbcc bl 802a75c <iprintf>
  53402. sys_sem_free(&conn->op_completed);
  53403. 8015fc4: 6afb ldr r3, [r7, #44] @ 0x2c
  53404. 8015fc6: 330c adds r3, #12
  53405. 8015fc8: 4618 mov r0, r3
  53406. 8015fca: f011 f8a8 bl 802711e <sys_sem_free>
  53407. #endif /* !LWIP_NETCONN_SEM_PER_THREAD */
  53408. sys_mbox_free(&conn->recvmbox);
  53409. 8015fce: 6afb ldr r3, [r7, #44] @ 0x2c
  53410. 8015fd0: 3310 adds r3, #16
  53411. 8015fd2: 4618 mov r0, r3
  53412. 8015fd4: f010 ffae bl 8026f34 <sys_mbox_free>
  53413. memp_free(MEMP_NETCONN, conn);
  53414. 8015fd8: 6af9 ldr r1, [r7, #44] @ 0x2c
  53415. 8015fda: 2007 movs r0, #7
  53416. 8015fdc: f004 fa58 bl 801a490 <memp_free>
  53417. API_MSG_VAR_FREE(msg);
  53418. return NULL;
  53419. 8015fe0: 2300 movs r3, #0
  53420. 8015fe2: e000 b.n 8015fe6 <netconn_new_with_proto_and_callback+0xce>
  53421. }
  53422. }
  53423. API_MSG_VAR_FREE(msg);
  53424. return conn;
  53425. 8015fe4: 6afb ldr r3, [r7, #44] @ 0x2c
  53426. }
  53427. 8015fe6: 4618 mov r0, r3
  53428. 8015fe8: 3730 adds r7, #48 @ 0x30
  53429. 8015fea: 46bd mov sp, r7
  53430. 8015fec: bd80 pop {r7, pc}
  53431. 8015fee: bf00 nop
  53432. 8015ff0: 08017061 .word 0x08017061
  53433. 8015ff4: 0802da68 .word 0x0802da68
  53434. 8015ff8: 0802da9c .word 0x0802da9c
  53435. 8015ffc: 0802dac0 .word 0x0802dac0
  53436. 8016000: 0802dae8 .word 0x0802dae8
  53437. 8016004: 0802db00 .word 0x0802db00
  53438. 8016008: 0802db24 .word 0x0802db24
  53439. 0801600c <netconn_prepare_delete>:
  53440. * @param conn the netconn to delete
  53441. * @return ERR_OK if the connection was deleted
  53442. */
  53443. err_t
  53444. netconn_prepare_delete(struct netconn *conn)
  53445. {
  53446. 801600c: b580 push {r7, lr}
  53447. 801600e: b08c sub sp, #48 @ 0x30
  53448. 8016010: af00 add r7, sp, #0
  53449. 8016012: 6078 str r0, [r7, #4]
  53450. err_t err;
  53451. API_MSG_VAR_DECLARE(msg);
  53452. /* No ASSERT here because possible to get a (conn == NULL) if we got an accept error */
  53453. if (conn == NULL) {
  53454. 8016014: 687b ldr r3, [r7, #4]
  53455. 8016016: 2b00 cmp r3, #0
  53456. 8016018: d101 bne.n 801601e <netconn_prepare_delete+0x12>
  53457. return ERR_OK;
  53458. 801601a: 2300 movs r3, #0
  53459. 801601c: e014 b.n 8016048 <netconn_prepare_delete+0x3c>
  53460. }
  53461. API_MSG_VAR_ALLOC(msg);
  53462. API_MSG_VAR_REF(msg).conn = conn;
  53463. 801601e: 687b ldr r3, [r7, #4]
  53464. 8016020: 60fb str r3, [r7, #12]
  53465. /* get the time we started, which is later compared to
  53466. sys_now() + conn->send_timeout */
  53467. API_MSG_VAR_REF(msg).msg.sd.time_started = sys_now();
  53468. #else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  53469. #if LWIP_TCP
  53470. API_MSG_VAR_REF(msg).msg.sd.polls_left =
  53471. 8016022: 2329 movs r3, #41 @ 0x29
  53472. 8016024: 757b strb r3, [r7, #21]
  53473. ((LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT + TCP_SLOW_INTERVAL - 1) / TCP_SLOW_INTERVAL) + 1;
  53474. #endif /* LWIP_TCP */
  53475. #endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  53476. err = netconn_apimsg(lwip_netconn_do_delconn, &API_MSG_VAR_REF(msg));
  53477. 8016026: f107 030c add.w r3, r7, #12
  53478. 801602a: 4619 mov r1, r3
  53479. 801602c: 4808 ldr r0, [pc, #32] @ (8016050 <netconn_prepare_delete+0x44>)
  53480. 801602e: f7ff ff53 bl 8015ed8 <netconn_apimsg>
  53481. 8016032: 4603 mov r3, r0
  53482. 8016034: f887 302f strb.w r3, [r7, #47] @ 0x2f
  53483. API_MSG_VAR_FREE(msg);
  53484. if (err != ERR_OK) {
  53485. 8016038: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  53486. 801603c: 2b00 cmp r3, #0
  53487. 801603e: d002 beq.n 8016046 <netconn_prepare_delete+0x3a>
  53488. return err;
  53489. 8016040: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  53490. 8016044: e000 b.n 8016048 <netconn_prepare_delete+0x3c>
  53491. }
  53492. return ERR_OK;
  53493. 8016046: 2300 movs r3, #0
  53494. }
  53495. 8016048: 4618 mov r0, r3
  53496. 801604a: 3730 adds r7, #48 @ 0x30
  53497. 801604c: 46bd mov sp, r7
  53498. 801604e: bd80 pop {r7, pc}
  53499. 8016050: 080175e5 .word 0x080175e5
  53500. 08016054 <netconn_delete>:
  53501. * @param conn the netconn to delete
  53502. * @return ERR_OK if the connection was deleted
  53503. */
  53504. err_t
  53505. netconn_delete(struct netconn *conn)
  53506. {
  53507. 8016054: b580 push {r7, lr}
  53508. 8016056: b084 sub sp, #16
  53509. 8016058: af00 add r7, sp, #0
  53510. 801605a: 6078 str r0, [r7, #4]
  53511. err_t err;
  53512. /* No ASSERT here because possible to get a (conn == NULL) if we got an accept error */
  53513. if (conn == NULL) {
  53514. 801605c: 687b ldr r3, [r7, #4]
  53515. 801605e: 2b00 cmp r3, #0
  53516. 8016060: d101 bne.n 8016066 <netconn_delete+0x12>
  53517. return ERR_OK;
  53518. 8016062: 2300 movs r3, #0
  53519. 8016064: e00d b.n 8016082 <netconn_delete+0x2e>
  53520. /* Already called netconn_prepare_delete() before */
  53521. err = ERR_OK;
  53522. } else
  53523. #endif /* LWIP_NETCONN_FULLDUPLEX */
  53524. {
  53525. err = netconn_prepare_delete(conn);
  53526. 8016066: 6878 ldr r0, [r7, #4]
  53527. 8016068: f7ff ffd0 bl 801600c <netconn_prepare_delete>
  53528. 801606c: 4603 mov r3, r0
  53529. 801606e: 73fb strb r3, [r7, #15]
  53530. }
  53531. if (err == ERR_OK) {
  53532. 8016070: f997 300f ldrsb.w r3, [r7, #15]
  53533. 8016074: 2b00 cmp r3, #0
  53534. 8016076: d102 bne.n 801607e <netconn_delete+0x2a>
  53535. netconn_free(conn);
  53536. 8016078: 6878 ldr r0, [r7, #4]
  53537. 801607a: f001 f881 bl 8017180 <netconn_free>
  53538. }
  53539. return err;
  53540. 801607e: f997 300f ldrsb.w r3, [r7, #15]
  53541. }
  53542. 8016082: 4618 mov r0, r3
  53543. 8016084: 3710 adds r7, #16
  53544. 8016086: 46bd mov sp, r7
  53545. 8016088: bd80 pop {r7, pc}
  53546. ...
  53547. 0801608c <netconn_getaddr>:
  53548. * @return ERR_CONN for invalid connections
  53549. * ERR_OK if the information was retrieved
  53550. */
  53551. err_t
  53552. netconn_getaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port, u8_t local)
  53553. {
  53554. 801608c: b580 push {r7, lr}
  53555. 801608e: b08e sub sp, #56 @ 0x38
  53556. 8016090: af00 add r7, sp, #0
  53557. 8016092: 60f8 str r0, [r7, #12]
  53558. 8016094: 60b9 str r1, [r7, #8]
  53559. 8016096: 607a str r2, [r7, #4]
  53560. 8016098: 70fb strb r3, [r7, #3]
  53561. API_MSG_VAR_DECLARE(msg);
  53562. err_t err;
  53563. LWIP_ERROR("netconn_getaddr: invalid conn", (conn != NULL), return ERR_ARG;);
  53564. 801609a: 68fb ldr r3, [r7, #12]
  53565. 801609c: 2b00 cmp r3, #0
  53566. 801609e: d109 bne.n 80160b4 <netconn_getaddr+0x28>
  53567. 80160a0: 4b1d ldr r3, [pc, #116] @ (8016118 <netconn_getaddr+0x8c>)
  53568. 80160a2: f44f 7289 mov.w r2, #274 @ 0x112
  53569. 80160a6: 491d ldr r1, [pc, #116] @ (801611c <netconn_getaddr+0x90>)
  53570. 80160a8: 481d ldr r0, [pc, #116] @ (8016120 <netconn_getaddr+0x94>)
  53571. 80160aa: f014 fb57 bl 802a75c <iprintf>
  53572. 80160ae: f06f 030f mvn.w r3, #15
  53573. 80160b2: e02d b.n 8016110 <netconn_getaddr+0x84>
  53574. LWIP_ERROR("netconn_getaddr: invalid addr", (addr != NULL), return ERR_ARG;);
  53575. 80160b4: 68bb ldr r3, [r7, #8]
  53576. 80160b6: 2b00 cmp r3, #0
  53577. 80160b8: d109 bne.n 80160ce <netconn_getaddr+0x42>
  53578. 80160ba: 4b17 ldr r3, [pc, #92] @ (8016118 <netconn_getaddr+0x8c>)
  53579. 80160bc: f240 1213 movw r2, #275 @ 0x113
  53580. 80160c0: 4918 ldr r1, [pc, #96] @ (8016124 <netconn_getaddr+0x98>)
  53581. 80160c2: 4817 ldr r0, [pc, #92] @ (8016120 <netconn_getaddr+0x94>)
  53582. 80160c4: f014 fb4a bl 802a75c <iprintf>
  53583. 80160c8: f06f 030f mvn.w r3, #15
  53584. 80160cc: e020 b.n 8016110 <netconn_getaddr+0x84>
  53585. LWIP_ERROR("netconn_getaddr: invalid port", (port != NULL), return ERR_ARG;);
  53586. 80160ce: 687b ldr r3, [r7, #4]
  53587. 80160d0: 2b00 cmp r3, #0
  53588. 80160d2: d109 bne.n 80160e8 <netconn_getaddr+0x5c>
  53589. 80160d4: 4b10 ldr r3, [pc, #64] @ (8016118 <netconn_getaddr+0x8c>)
  53590. 80160d6: f44f 728a mov.w r2, #276 @ 0x114
  53591. 80160da: 4913 ldr r1, [pc, #76] @ (8016128 <netconn_getaddr+0x9c>)
  53592. 80160dc: 4810 ldr r0, [pc, #64] @ (8016120 <netconn_getaddr+0x94>)
  53593. 80160de: f014 fb3d bl 802a75c <iprintf>
  53594. 80160e2: f06f 030f mvn.w r3, #15
  53595. 80160e6: e013 b.n 8016110 <netconn_getaddr+0x84>
  53596. API_MSG_VAR_ALLOC(msg);
  53597. API_MSG_VAR_REF(msg).conn = conn;
  53598. 80160e8: 68fb ldr r3, [r7, #12]
  53599. 80160ea: 617b str r3, [r7, #20]
  53600. API_MSG_VAR_REF(msg).msg.ad.local = local;
  53601. 80160ec: 78fb ldrb r3, [r7, #3]
  53602. 80160ee: f887 3024 strb.w r3, [r7, #36] @ 0x24
  53603. #if LWIP_MPU_COMPATIBLE
  53604. err = netconn_apimsg(lwip_netconn_do_getaddr, &API_MSG_VAR_REF(msg));
  53605. *addr = msg->msg.ad.ipaddr;
  53606. *port = msg->msg.ad.port;
  53607. #else /* LWIP_MPU_COMPATIBLE */
  53608. msg.msg.ad.ipaddr = addr;
  53609. 80160f2: 68bb ldr r3, [r7, #8]
  53610. 80160f4: 61fb str r3, [r7, #28]
  53611. msg.msg.ad.port = port;
  53612. 80160f6: 687b ldr r3, [r7, #4]
  53613. 80160f8: 623b str r3, [r7, #32]
  53614. err = netconn_apimsg(lwip_netconn_do_getaddr, &msg);
  53615. 80160fa: f107 0314 add.w r3, r7, #20
  53616. 80160fe: 4619 mov r1, r3
  53617. 8016100: 480a ldr r0, [pc, #40] @ (801612c <netconn_getaddr+0xa0>)
  53618. 8016102: f7ff fee9 bl 8015ed8 <netconn_apimsg>
  53619. 8016106: 4603 mov r3, r0
  53620. 8016108: f887 3037 strb.w r3, [r7, #55] @ 0x37
  53621. #endif /* LWIP_MPU_COMPATIBLE */
  53622. API_MSG_VAR_FREE(msg);
  53623. return err;
  53624. 801610c: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  53625. }
  53626. 8016110: 4618 mov r0, r3
  53627. 8016112: 3738 adds r7, #56 @ 0x38
  53628. 8016114: 46bd mov sp, r7
  53629. 8016116: bd80 pop {r7, pc}
  53630. 8016118: 0802da68 .word 0x0802da68
  53631. 801611c: 0802db40 .word 0x0802db40
  53632. 8016120: 0802dac0 .word 0x0802dac0
  53633. 8016124: 0802db60 .word 0x0802db60
  53634. 8016128: 0802db80 .word 0x0802db80
  53635. 801612c: 08018041 .word 0x08018041
  53636. 08016130 <netconn_connect>:
  53637. * @param port the remote port to connect to (no used for RAW)
  53638. * @return ERR_OK if connected, return value of tcp_/udp_/raw_connect otherwise
  53639. */
  53640. err_t
  53641. netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port)
  53642. {
  53643. 8016130: b580 push {r7, lr}
  53644. 8016132: b08e sub sp, #56 @ 0x38
  53645. 8016134: af00 add r7, sp, #0
  53646. 8016136: 60f8 str r0, [r7, #12]
  53647. 8016138: 60b9 str r1, [r7, #8]
  53648. 801613a: 4613 mov r3, r2
  53649. 801613c: 80fb strh r3, [r7, #6]
  53650. API_MSG_VAR_DECLARE(msg);
  53651. err_t err;
  53652. LWIP_ERROR("netconn_connect: invalid conn", (conn != NULL), return ERR_ARG;);
  53653. 801613e: 68fb ldr r3, [r7, #12]
  53654. 8016140: 2b00 cmp r3, #0
  53655. 8016142: d109 bne.n 8016158 <netconn_connect+0x28>
  53656. 8016144: 4b11 ldr r3, [pc, #68] @ (801618c <netconn_connect+0x5c>)
  53657. 8016146: f44f 72bf mov.w r2, #382 @ 0x17e
  53658. 801614a: 4911 ldr r1, [pc, #68] @ (8016190 <netconn_connect+0x60>)
  53659. 801614c: 4811 ldr r0, [pc, #68] @ (8016194 <netconn_connect+0x64>)
  53660. 801614e: f014 fb05 bl 802a75c <iprintf>
  53661. 8016152: f06f 030f mvn.w r3, #15
  53662. 8016156: e015 b.n 8016184 <netconn_connect+0x54>
  53663. #if LWIP_IPV4
  53664. /* Don't propagate NULL pointer (IP_ADDR_ANY alias) to subsequent functions */
  53665. if (addr == NULL) {
  53666. 8016158: 68bb ldr r3, [r7, #8]
  53667. 801615a: 2b00 cmp r3, #0
  53668. 801615c: d101 bne.n 8016162 <netconn_connect+0x32>
  53669. addr = IP4_ADDR_ANY;
  53670. 801615e: 4b0e ldr r3, [pc, #56] @ (8016198 <netconn_connect+0x68>)
  53671. 8016160: 60bb str r3, [r7, #8]
  53672. }
  53673. #endif /* LWIP_IPV4 */
  53674. API_MSG_VAR_ALLOC(msg);
  53675. API_MSG_VAR_REF(msg).conn = conn;
  53676. 8016162: 68fb ldr r3, [r7, #12]
  53677. 8016164: 617b str r3, [r7, #20]
  53678. API_MSG_VAR_REF(msg).msg.bc.ipaddr = API_MSG_VAR_REF(addr);
  53679. 8016166: 68bb ldr r3, [r7, #8]
  53680. 8016168: 61fb str r3, [r7, #28]
  53681. API_MSG_VAR_REF(msg).msg.bc.port = port;
  53682. 801616a: 88fb ldrh r3, [r7, #6]
  53683. 801616c: 843b strh r3, [r7, #32]
  53684. err = netconn_apimsg(lwip_netconn_do_connect, &API_MSG_VAR_REF(msg));
  53685. 801616e: f107 0314 add.w r3, r7, #20
  53686. 8016172: 4619 mov r1, r3
  53687. 8016174: 4809 ldr r0, [pc, #36] @ (801619c <netconn_connect+0x6c>)
  53688. 8016176: f7ff feaf bl 8015ed8 <netconn_apimsg>
  53689. 801617a: 4603 mov r3, r0
  53690. 801617c: f887 3037 strb.w r3, [r7, #55] @ 0x37
  53691. API_MSG_VAR_FREE(msg);
  53692. return err;
  53693. 8016180: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  53694. }
  53695. 8016184: 4618 mov r0, r3
  53696. 8016186: 3738 adds r7, #56 @ 0x38
  53697. 8016188: 46bd mov sp, r7
  53698. 801618a: bd80 pop {r7, pc}
  53699. 801618c: 0802da68 .word 0x0802da68
  53700. 8016190: 0802dbdc .word 0x0802dbdc
  53701. 8016194: 0802dac0 .word 0x0802dac0
  53702. 8016198: 08031b58 .word 0x08031b58
  53703. 801619c: 080178d1 .word 0x080178d1
  53704. 080161a0 <netconn_disconnect>:
  53705. * @param conn the netconn to disconnect
  53706. * @return See @ref err_t
  53707. */
  53708. err_t
  53709. netconn_disconnect(struct netconn *conn)
  53710. {
  53711. 80161a0: b580 push {r7, lr}
  53712. 80161a2: b08c sub sp, #48 @ 0x30
  53713. 80161a4: af00 add r7, sp, #0
  53714. 80161a6: 6078 str r0, [r7, #4]
  53715. API_MSG_VAR_DECLARE(msg);
  53716. err_t err;
  53717. LWIP_ERROR("netconn_disconnect: invalid conn", (conn != NULL), return ERR_ARG;);
  53718. 80161a8: 687b ldr r3, [r7, #4]
  53719. 80161aa: 2b00 cmp r3, #0
  53720. 80161ac: d109 bne.n 80161c2 <netconn_disconnect+0x22>
  53721. 80161ae: 4b0d ldr r3, [pc, #52] @ (80161e4 <netconn_disconnect+0x44>)
  53722. 80161b0: f44f 72cf mov.w r2, #414 @ 0x19e
  53723. 80161b4: 490c ldr r1, [pc, #48] @ (80161e8 <netconn_disconnect+0x48>)
  53724. 80161b6: 480d ldr r0, [pc, #52] @ (80161ec <netconn_disconnect+0x4c>)
  53725. 80161b8: f014 fad0 bl 802a75c <iprintf>
  53726. 80161bc: f06f 030f mvn.w r3, #15
  53727. 80161c0: e00c b.n 80161dc <netconn_disconnect+0x3c>
  53728. API_MSG_VAR_ALLOC(msg);
  53729. API_MSG_VAR_REF(msg).conn = conn;
  53730. 80161c2: 687b ldr r3, [r7, #4]
  53731. 80161c4: 60fb str r3, [r7, #12]
  53732. err = netconn_apimsg(lwip_netconn_do_disconnect, &API_MSG_VAR_REF(msg));
  53733. 80161c6: f107 030c add.w r3, r7, #12
  53734. 80161ca: 4619 mov r1, r3
  53735. 80161cc: 4808 ldr r0, [pc, #32] @ (80161f0 <netconn_disconnect+0x50>)
  53736. 80161ce: f7ff fe83 bl 8015ed8 <netconn_apimsg>
  53737. 80161d2: 4603 mov r3, r0
  53738. 80161d4: f887 302f strb.w r3, [r7, #47] @ 0x2f
  53739. API_MSG_VAR_FREE(msg);
  53740. return err;
  53741. 80161d8: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  53742. }
  53743. 80161dc: 4618 mov r0, r3
  53744. 80161de: 3730 adds r7, #48 @ 0x30
  53745. 80161e0: 46bd mov sp, r7
  53746. 80161e2: bd80 pop {r7, pc}
  53747. 80161e4: 0802da68 .word 0x0802da68
  53748. 80161e8: 0802dbfc .word 0x0802dbfc
  53749. 80161ec: 0802dac0 .word 0x0802dac0
  53750. 80161f0: 08017a51 .word 0x08017a51
  53751. 080161f4 <netconn_recv_data>:
  53752. * ERR_WOULDBLOCK if the netconn is nonblocking but would block to wait for data
  53753. * ERR_TIMEOUT if the netconn has a receive timeout and no data was received
  53754. */
  53755. static err_t
  53756. netconn_recv_data(struct netconn *conn, void **new_buf, u8_t apiflags)
  53757. {
  53758. 80161f4: b580 push {r7, lr}
  53759. 80161f6: b08a sub sp, #40 @ 0x28
  53760. 80161f8: af00 add r7, sp, #0
  53761. 80161fa: 60f8 str r0, [r7, #12]
  53762. 80161fc: 60b9 str r1, [r7, #8]
  53763. 80161fe: 4613 mov r3, r2
  53764. 8016200: 71fb strb r3, [r7, #7]
  53765. void *buf = NULL;
  53766. 8016202: 2300 movs r3, #0
  53767. 8016204: 61bb str r3, [r7, #24]
  53768. u16_t len;
  53769. LWIP_ERROR("netconn_recv: invalid pointer", (new_buf != NULL), return ERR_ARG;);
  53770. 8016206: 68bb ldr r3, [r7, #8]
  53771. 8016208: 2b00 cmp r3, #0
  53772. 801620a: d109 bne.n 8016220 <netconn_recv_data+0x2c>
  53773. 801620c: 4b64 ldr r3, [pc, #400] @ (80163a0 <netconn_recv_data+0x1ac>)
  53774. 801620e: f44f 7212 mov.w r2, #584 @ 0x248
  53775. 8016212: 4964 ldr r1, [pc, #400] @ (80163a4 <netconn_recv_data+0x1b0>)
  53776. 8016214: 4864 ldr r0, [pc, #400] @ (80163a8 <netconn_recv_data+0x1b4>)
  53777. 8016216: f014 faa1 bl 802a75c <iprintf>
  53778. 801621a: f06f 030f mvn.w r3, #15
  53779. 801621e: e0bb b.n 8016398 <netconn_recv_data+0x1a4>
  53780. *new_buf = NULL;
  53781. 8016220: 68bb ldr r3, [r7, #8]
  53782. 8016222: 2200 movs r2, #0
  53783. 8016224: 601a str r2, [r3, #0]
  53784. LWIP_ERROR("netconn_recv: invalid conn", (conn != NULL), return ERR_ARG;);
  53785. 8016226: 68fb ldr r3, [r7, #12]
  53786. 8016228: 2b00 cmp r3, #0
  53787. 801622a: d109 bne.n 8016240 <netconn_recv_data+0x4c>
  53788. 801622c: 4b5c ldr r3, [pc, #368] @ (80163a0 <netconn_recv_data+0x1ac>)
  53789. 801622e: f240 224a movw r2, #586 @ 0x24a
  53790. 8016232: 495e ldr r1, [pc, #376] @ (80163ac <netconn_recv_data+0x1b8>)
  53791. 8016234: 485c ldr r0, [pc, #368] @ (80163a8 <netconn_recv_data+0x1b4>)
  53792. 8016236: f014 fa91 bl 802a75c <iprintf>
  53793. 801623a: f06f 030f mvn.w r3, #15
  53794. 801623e: e0ab b.n 8016398 <netconn_recv_data+0x1a4>
  53795. if (!NETCONN_RECVMBOX_WAITABLE(conn)) {
  53796. 8016240: 68fb ldr r3, [r7, #12]
  53797. 8016242: 3310 adds r3, #16
  53798. 8016244: 4618 mov r0, r3
  53799. 8016246: f010 fee9 bl 802701c <sys_mbox_valid>
  53800. 801624a: 4603 mov r3, r0
  53801. 801624c: 2b00 cmp r3, #0
  53802. 801624e: d10e bne.n 801626e <netconn_recv_data+0x7a>
  53803. err_t err = netconn_err(conn);
  53804. 8016250: 68f8 ldr r0, [r7, #12]
  53805. 8016252: f000 fb1f bl 8016894 <netconn_err>
  53806. 8016256: 4603 mov r3, r0
  53807. 8016258: 77fb strb r3, [r7, #31]
  53808. if (err != ERR_OK) {
  53809. 801625a: f997 301f ldrsb.w r3, [r7, #31]
  53810. 801625e: 2b00 cmp r3, #0
  53811. 8016260: d002 beq.n 8016268 <netconn_recv_data+0x74>
  53812. /* return pending error */
  53813. return err;
  53814. 8016262: f997 301f ldrsb.w r3, [r7, #31]
  53815. 8016266: e097 b.n 8016398 <netconn_recv_data+0x1a4>
  53816. }
  53817. return ERR_CONN;
  53818. 8016268: f06f 030a mvn.w r3, #10
  53819. 801626c: e094 b.n 8016398 <netconn_recv_data+0x1a4>
  53820. }
  53821. NETCONN_MBOX_WAITING_INC(conn);
  53822. if (netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK) ||
  53823. 801626e: 68fb ldr r3, [r7, #12]
  53824. 8016270: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53825. 8016274: f003 0302 and.w r3, r3, #2
  53826. 8016278: 2b00 cmp r3, #0
  53827. 801627a: d110 bne.n 801629e <netconn_recv_data+0xaa>
  53828. 801627c: 79fb ldrb r3, [r7, #7]
  53829. 801627e: f003 0304 and.w r3, r3, #4
  53830. 8016282: 2b00 cmp r3, #0
  53831. 8016284: d10b bne.n 801629e <netconn_recv_data+0xaa>
  53832. (conn->flags & NETCONN_FLAG_MBOXCLOSED) || (conn->pending_err != ERR_OK)) {
  53833. 8016286: 68fb ldr r3, [r7, #12]
  53834. 8016288: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53835. 801628c: f003 0301 and.w r3, r3, #1
  53836. if (netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK) ||
  53837. 8016290: 2b00 cmp r3, #0
  53838. 8016292: d104 bne.n 801629e <netconn_recv_data+0xaa>
  53839. (conn->flags & NETCONN_FLAG_MBOXCLOSED) || (conn->pending_err != ERR_OK)) {
  53840. 8016294: 68fb ldr r3, [r7, #12]
  53841. 8016296: f993 3008 ldrsb.w r3, [r3, #8]
  53842. 801629a: 2b00 cmp r3, #0
  53843. 801629c: d025 beq.n 80162ea <netconn_recv_data+0xf6>
  53844. if (sys_arch_mbox_tryfetch(&conn->recvmbox, &buf) == SYS_ARCH_TIMEOUT) {
  53845. 801629e: 68fb ldr r3, [r7, #12]
  53846. 80162a0: 3310 adds r3, #16
  53847. 80162a2: f107 0218 add.w r2, r7, #24
  53848. 80162a6: 4611 mov r1, r2
  53849. 80162a8: 4618 mov r0, r3
  53850. 80162aa: f010 fea0 bl 8026fee <sys_arch_mbox_tryfetch>
  53851. 80162ae: 4603 mov r3, r0
  53852. 80162b0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  53853. 80162b4: d12a bne.n 801630c <netconn_recv_data+0x118>
  53854. err_t err;
  53855. NETCONN_MBOX_WAITING_DEC(conn);
  53856. err = netconn_err(conn);
  53857. 80162b6: 68f8 ldr r0, [r7, #12]
  53858. 80162b8: f000 faec bl 8016894 <netconn_err>
  53859. 80162bc: 4603 mov r3, r0
  53860. 80162be: f887 3025 strb.w r3, [r7, #37] @ 0x25
  53861. if (err != ERR_OK) {
  53862. 80162c2: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  53863. 80162c6: 2b00 cmp r3, #0
  53864. 80162c8: d002 beq.n 80162d0 <netconn_recv_data+0xdc>
  53865. /* return pending error */
  53866. return err;
  53867. 80162ca: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  53868. 80162ce: e063 b.n 8016398 <netconn_recv_data+0x1a4>
  53869. }
  53870. if (conn->flags & NETCONN_FLAG_MBOXCLOSED) {
  53871. 80162d0: 68fb ldr r3, [r7, #12]
  53872. 80162d2: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53873. 80162d6: f003 0301 and.w r3, r3, #1
  53874. 80162da: 2b00 cmp r3, #0
  53875. 80162dc: d002 beq.n 80162e4 <netconn_recv_data+0xf0>
  53876. return ERR_CONN;
  53877. 80162de: f06f 030a mvn.w r3, #10
  53878. 80162e2: e059 b.n 8016398 <netconn_recv_data+0x1a4>
  53879. }
  53880. return ERR_WOULDBLOCK;
  53881. 80162e4: f06f 0306 mvn.w r3, #6
  53882. 80162e8: e056 b.n 8016398 <netconn_recv_data+0x1a4>
  53883. }
  53884. } else {
  53885. #if LWIP_SO_RCVTIMEO
  53886. if (sys_arch_mbox_fetch(&conn->recvmbox, &buf, conn->recv_timeout) == SYS_ARCH_TIMEOUT) {
  53887. 80162ea: 68fb ldr r3, [r7, #12]
  53888. 80162ec: f103 0010 add.w r0, r3, #16
  53889. 80162f0: 68fb ldr r3, [r7, #12]
  53890. 80162f2: 69da ldr r2, [r3, #28]
  53891. 80162f4: f107 0318 add.w r3, r7, #24
  53892. 80162f8: 4619 mov r1, r3
  53893. 80162fa: f010 fe47 bl 8026f8c <sys_arch_mbox_fetch>
  53894. 80162fe: 4603 mov r3, r0
  53895. 8016300: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  53896. 8016304: d102 bne.n 801630c <netconn_recv_data+0x118>
  53897. NETCONN_MBOX_WAITING_DEC(conn);
  53898. return ERR_TIMEOUT;
  53899. 8016306: f06f 0302 mvn.w r3, #2
  53900. 801630a: e045 b.n 8016398 <netconn_recv_data+0x1a4>
  53901. }
  53902. #endif
  53903. #if LWIP_TCP
  53904. #if (LWIP_UDP || LWIP_RAW)
  53905. if (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP)
  53906. 801630c: 68fb ldr r3, [r7, #12]
  53907. 801630e: 781b ldrb r3, [r3, #0]
  53908. 8016310: f003 03f0 and.w r3, r3, #240 @ 0xf0
  53909. 8016314: 2b10 cmp r3, #16
  53910. 8016316: d117 bne.n 8016348 <netconn_recv_data+0x154>
  53911. #endif /* (LWIP_UDP || LWIP_RAW) */
  53912. {
  53913. err_t err;
  53914. /* Check if this is an error message or a pbuf */
  53915. if (lwip_netconn_is_err_msg(buf, &err)) {
  53916. 8016318: 69bb ldr r3, [r7, #24]
  53917. 801631a: f107 0217 add.w r2, r7, #23
  53918. 801631e: 4611 mov r1, r2
  53919. 8016320: 4618 mov r0, r3
  53920. 8016322: f000 fb09 bl 8016938 <lwip_netconn_is_err_msg>
  53921. 8016326: 4603 mov r3, r0
  53922. 8016328: 2b00 cmp r3, #0
  53923. 801632a: d009 beq.n 8016340 <netconn_recv_data+0x14c>
  53924. /* new_buf has been zeroed above already */
  53925. if (err == ERR_CLSD) {
  53926. 801632c: f997 3017 ldrsb.w r3, [r7, #23]
  53927. 8016330: f113 0f0f cmn.w r3, #15
  53928. 8016334: d101 bne.n 801633a <netconn_recv_data+0x146>
  53929. /* connection closed translates to ERR_OK with *new_buf == NULL */
  53930. return ERR_OK;
  53931. 8016336: 2300 movs r3, #0
  53932. 8016338: e02e b.n 8016398 <netconn_recv_data+0x1a4>
  53933. }
  53934. return err;
  53935. 801633a: f997 3017 ldrsb.w r3, [r7, #23]
  53936. 801633e: e02b b.n 8016398 <netconn_recv_data+0x1a4>
  53937. }
  53938. len = ((struct pbuf *)buf)->tot_len;
  53939. 8016340: 69bb ldr r3, [r7, #24]
  53940. 8016342: 891b ldrh r3, [r3, #8]
  53941. 8016344: 84fb strh r3, [r7, #38] @ 0x26
  53942. 8016346: e00d b.n 8016364 <netconn_recv_data+0x170>
  53943. #if LWIP_TCP && (LWIP_UDP || LWIP_RAW)
  53944. else
  53945. #endif /* LWIP_TCP && (LWIP_UDP || LWIP_RAW) */
  53946. #if (LWIP_UDP || LWIP_RAW)
  53947. {
  53948. LWIP_ASSERT("buf != NULL", buf != NULL);
  53949. 8016348: 69bb ldr r3, [r7, #24]
  53950. 801634a: 2b00 cmp r3, #0
  53951. 801634c: d106 bne.n 801635c <netconn_recv_data+0x168>
  53952. 801634e: 4b14 ldr r3, [pc, #80] @ (80163a0 <netconn_recv_data+0x1ac>)
  53953. 8016350: f240 2291 movw r2, #657 @ 0x291
  53954. 8016354: 4916 ldr r1, [pc, #88] @ (80163b0 <netconn_recv_data+0x1bc>)
  53955. 8016356: 4814 ldr r0, [pc, #80] @ (80163a8 <netconn_recv_data+0x1b4>)
  53956. 8016358: f014 fa00 bl 802a75c <iprintf>
  53957. len = netbuf_len((struct netbuf *)buf);
  53958. 801635c: 69bb ldr r3, [r7, #24]
  53959. 801635e: 681b ldr r3, [r3, #0]
  53960. 8016360: 891b ldrh r3, [r3, #8]
  53961. 8016362: 84fb strh r3, [r7, #38] @ 0x26
  53962. }
  53963. #endif /* (LWIP_UDP || LWIP_RAW) */
  53964. #if LWIP_SO_RCVBUF
  53965. SYS_ARCH_DEC(conn->recv_avail, len);
  53966. 8016364: f010 ff64 bl 8027230 <sys_arch_protect>
  53967. 8016368: 6238 str r0, [r7, #32]
  53968. 801636a: 68fb ldr r3, [r7, #12]
  53969. 801636c: 6a5a ldr r2, [r3, #36] @ 0x24
  53970. 801636e: 8cfb ldrh r3, [r7, #38] @ 0x26
  53971. 8016370: 1ad2 subs r2, r2, r3
  53972. 8016372: 68fb ldr r3, [r7, #12]
  53973. 8016374: 625a str r2, [r3, #36] @ 0x24
  53974. 8016376: 6a38 ldr r0, [r7, #32]
  53975. 8016378: f010 ff68 bl 802724c <sys_arch_unprotect>
  53976. #endif /* LWIP_SO_RCVBUF */
  53977. /* Register event with callback */
  53978. API_EVENT(conn, NETCONN_EVT_RCVMINUS, len);
  53979. 801637c: 68fb ldr r3, [r7, #12]
  53980. 801637e: 6b1b ldr r3, [r3, #48] @ 0x30
  53981. 8016380: 2b00 cmp r3, #0
  53982. 8016382: d005 beq.n 8016390 <netconn_recv_data+0x19c>
  53983. 8016384: 68fb ldr r3, [r7, #12]
  53984. 8016386: 6b1b ldr r3, [r3, #48] @ 0x30
  53985. 8016388: 8cfa ldrh r2, [r7, #38] @ 0x26
  53986. 801638a: 2101 movs r1, #1
  53987. 801638c: 68f8 ldr r0, [r7, #12]
  53988. 801638e: 4798 blx r3
  53989. LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_recv_data: received %p, len=%"U16_F"\n", buf, len));
  53990. *new_buf = buf;
  53991. 8016390: 69ba ldr r2, [r7, #24]
  53992. 8016392: 68bb ldr r3, [r7, #8]
  53993. 8016394: 601a str r2, [r3, #0]
  53994. /* don't set conn->last_err: it's only ERR_OK, anyway */
  53995. return ERR_OK;
  53996. 8016396: 2300 movs r3, #0
  53997. }
  53998. 8016398: 4618 mov r0, r3
  53999. 801639a: 3728 adds r7, #40 @ 0x28
  54000. 801639c: 46bd mov sp, r7
  54001. 801639e: bd80 pop {r7, pc}
  54002. 80163a0: 0802da68 .word 0x0802da68
  54003. 80163a4: 0802dc80 .word 0x0802dc80
  54004. 80163a8: 0802dac0 .word 0x0802dac0
  54005. 80163ac: 0802dca0 .word 0x0802dca0
  54006. 80163b0: 0802dcbc .word 0x0802dcbc
  54007. 080163b4 <netconn_tcp_recvd_msg>:
  54008. #if LWIP_TCP
  54009. static err_t
  54010. netconn_tcp_recvd_msg(struct netconn *conn, size_t len, struct api_msg *msg)
  54011. {
  54012. 80163b4: b580 push {r7, lr}
  54013. 80163b6: b084 sub sp, #16
  54014. 80163b8: af00 add r7, sp, #0
  54015. 80163ba: 60f8 str r0, [r7, #12]
  54016. 80163bc: 60b9 str r1, [r7, #8]
  54017. 80163be: 607a str r2, [r7, #4]
  54018. LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) &&
  54019. 80163c0: 68fb ldr r3, [r7, #12]
  54020. 80163c2: 2b00 cmp r3, #0
  54021. 80163c4: d005 beq.n 80163d2 <netconn_tcp_recvd_msg+0x1e>
  54022. 80163c6: 68fb ldr r3, [r7, #12]
  54023. 80163c8: 781b ldrb r3, [r3, #0]
  54024. 80163ca: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54025. 80163ce: 2b10 cmp r3, #16
  54026. 80163d0: d009 beq.n 80163e6 <netconn_tcp_recvd_msg+0x32>
  54027. 80163d2: 4b0c ldr r3, [pc, #48] @ (8016404 <netconn_tcp_recvd_msg+0x50>)
  54028. 80163d4: f240 22a7 movw r2, #679 @ 0x2a7
  54029. 80163d8: 490b ldr r1, [pc, #44] @ (8016408 <netconn_tcp_recvd_msg+0x54>)
  54030. 80163da: 480c ldr r0, [pc, #48] @ (801640c <netconn_tcp_recvd_msg+0x58>)
  54031. 80163dc: f014 f9be bl 802a75c <iprintf>
  54032. 80163e0: f06f 030f mvn.w r3, #15
  54033. 80163e4: e00a b.n 80163fc <netconn_tcp_recvd_msg+0x48>
  54034. NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;);
  54035. msg->conn = conn;
  54036. 80163e6: 687b ldr r3, [r7, #4]
  54037. 80163e8: 68fa ldr r2, [r7, #12]
  54038. 80163ea: 601a str r2, [r3, #0]
  54039. msg->msg.r.len = len;
  54040. 80163ec: 687b ldr r3, [r7, #4]
  54041. 80163ee: 68ba ldr r2, [r7, #8]
  54042. 80163f0: 609a str r2, [r3, #8]
  54043. return netconn_apimsg(lwip_netconn_do_recv, msg);
  54044. 80163f2: 6879 ldr r1, [r7, #4]
  54045. 80163f4: 4806 ldr r0, [pc, #24] @ (8016410 <netconn_tcp_recvd_msg+0x5c>)
  54046. 80163f6: f7ff fd6f bl 8015ed8 <netconn_apimsg>
  54047. 80163fa: 4603 mov r3, r0
  54048. }
  54049. 80163fc: 4618 mov r0, r3
  54050. 80163fe: 3710 adds r7, #16
  54051. 8016400: 46bd mov sp, r7
  54052. 8016402: bd80 pop {r7, pc}
  54053. 8016404: 0802da68 .word 0x0802da68
  54054. 8016408: 0802dcc8 .word 0x0802dcc8
  54055. 801640c: 0802dac0 .word 0x0802dac0
  54056. 8016410: 08017b27 .word 0x08017b27
  54057. 08016414 <netconn_tcp_recvd>:
  54058. err_t
  54059. netconn_tcp_recvd(struct netconn *conn, size_t len)
  54060. {
  54061. 8016414: b580 push {r7, lr}
  54062. 8016416: b08c sub sp, #48 @ 0x30
  54063. 8016418: af00 add r7, sp, #0
  54064. 801641a: 6078 str r0, [r7, #4]
  54065. 801641c: 6039 str r1, [r7, #0]
  54066. err_t err;
  54067. API_MSG_VAR_DECLARE(msg);
  54068. LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) &&
  54069. 801641e: 687b ldr r3, [r7, #4]
  54070. 8016420: 2b00 cmp r3, #0
  54071. 8016422: d005 beq.n 8016430 <netconn_tcp_recvd+0x1c>
  54072. 8016424: 687b ldr r3, [r7, #4]
  54073. 8016426: 781b ldrb r3, [r3, #0]
  54074. 8016428: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54075. 801642c: 2b10 cmp r3, #16
  54076. 801642e: d009 beq.n 8016444 <netconn_tcp_recvd+0x30>
  54077. 8016430: 4b0c ldr r3, [pc, #48] @ (8016464 <netconn_tcp_recvd+0x50>)
  54078. 8016432: f240 22b5 movw r2, #693 @ 0x2b5
  54079. 8016436: 490c ldr r1, [pc, #48] @ (8016468 <netconn_tcp_recvd+0x54>)
  54080. 8016438: 480c ldr r0, [pc, #48] @ (801646c <netconn_tcp_recvd+0x58>)
  54081. 801643a: f014 f98f bl 802a75c <iprintf>
  54082. 801643e: f06f 030f mvn.w r3, #15
  54083. 8016442: e00b b.n 801645c <netconn_tcp_recvd+0x48>
  54084. NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;);
  54085. API_MSG_VAR_ALLOC(msg);
  54086. err = netconn_tcp_recvd_msg(conn, len, &API_VAR_REF(msg));
  54087. 8016444: f107 030c add.w r3, r7, #12
  54088. 8016448: 461a mov r2, r3
  54089. 801644a: 6839 ldr r1, [r7, #0]
  54090. 801644c: 6878 ldr r0, [r7, #4]
  54091. 801644e: f7ff ffb1 bl 80163b4 <netconn_tcp_recvd_msg>
  54092. 8016452: 4603 mov r3, r0
  54093. 8016454: f887 302f strb.w r3, [r7, #47] @ 0x2f
  54094. API_MSG_VAR_FREE(msg);
  54095. return err;
  54096. 8016458: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  54097. }
  54098. 801645c: 4618 mov r0, r3
  54099. 801645e: 3730 adds r7, #48 @ 0x30
  54100. 8016460: 46bd mov sp, r7
  54101. 8016462: bd80 pop {r7, pc}
  54102. 8016464: 0802da68 .word 0x0802da68
  54103. 8016468: 0802dcc8 .word 0x0802dcc8
  54104. 801646c: 0802dac0 .word 0x0802dac0
  54105. 08016470 <netconn_recv_data_tcp>:
  54106. static err_t
  54107. netconn_recv_data_tcp(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags)
  54108. {
  54109. 8016470: b580 push {r7, lr}
  54110. 8016472: b090 sub sp, #64 @ 0x40
  54111. 8016474: af00 add r7, sp, #0
  54112. 8016476: 60f8 str r0, [r7, #12]
  54113. 8016478: 60b9 str r1, [r7, #8]
  54114. 801647a: 4613 mov r3, r2
  54115. 801647c: 71fb strb r3, [r7, #7]
  54116. API_MSG_VAR_DECLARE(msg);
  54117. #if LWIP_MPU_COMPATIBLE
  54118. msg = NULL;
  54119. #endif
  54120. if (!NETCONN_RECVMBOX_WAITABLE(conn)) {
  54121. 801647e: 68fb ldr r3, [r7, #12]
  54122. 8016480: 3310 adds r3, #16
  54123. 8016482: 4618 mov r0, r3
  54124. 8016484: f010 fdca bl 802701c <sys_mbox_valid>
  54125. 8016488: 4603 mov r3, r0
  54126. 801648a: 2b00 cmp r3, #0
  54127. 801648c: d102 bne.n 8016494 <netconn_recv_data_tcp+0x24>
  54128. /* This only happens when calling this function more than once *after* receiving FIN */
  54129. return ERR_CONN;
  54130. 801648e: f06f 030a mvn.w r3, #10
  54131. 8016492: e072 b.n 801657a <netconn_recv_data_tcp+0x10a>
  54132. }
  54133. if (netconn_is_flag_set(conn, NETCONN_FIN_RX_PENDING)) {
  54134. 8016494: 68fb ldr r3, [r7, #12]
  54135. 8016496: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54136. 801649a: b25b sxtb r3, r3
  54137. 801649c: 2b00 cmp r3, #0
  54138. 801649e: da09 bge.n 80164b4 <netconn_recv_data_tcp+0x44>
  54139. netconn_clear_flags(conn, NETCONN_FIN_RX_PENDING);
  54140. 80164a0: 68fb ldr r3, [r7, #12]
  54141. 80164a2: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54142. 80164a6: f003 037f and.w r3, r3, #127 @ 0x7f
  54143. 80164aa: b2da uxtb r2, r3
  54144. 80164ac: 68fb ldr r3, [r7, #12]
  54145. 80164ae: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54146. goto handle_fin;
  54147. 80164b2: e03b b.n 801652c <netconn_recv_data_tcp+0xbc>
  54148. /* need to allocate API message here so empty message pool does not result in event loss
  54149. * see bug #47512: MPU_COMPATIBLE may fail on empty pool */
  54150. API_MSG_VAR_ALLOC(msg);
  54151. }
  54152. err = netconn_recv_data(conn, (void **)new_buf, apiflags);
  54153. 80164b4: 79fb ldrb r3, [r7, #7]
  54154. 80164b6: 461a mov r2, r3
  54155. 80164b8: 68b9 ldr r1, [r7, #8]
  54156. 80164ba: 68f8 ldr r0, [r7, #12]
  54157. 80164bc: f7ff fe9a bl 80161f4 <netconn_recv_data>
  54158. 80164c0: 4603 mov r3, r0
  54159. 80164c2: f887 303f strb.w r3, [r7, #63] @ 0x3f
  54160. if (err != ERR_OK) {
  54161. 80164c6: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  54162. 80164ca: 2b00 cmp r3, #0
  54163. 80164cc: d002 beq.n 80164d4 <netconn_recv_data_tcp+0x64>
  54164. if (!(apiflags & NETCONN_NOAUTORCVD)) {
  54165. API_MSG_VAR_FREE(msg);
  54166. }
  54167. return err;
  54168. 80164ce: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  54169. 80164d2: e052 b.n 801657a <netconn_recv_data_tcp+0x10a>
  54170. }
  54171. buf = *new_buf;
  54172. 80164d4: 68bb ldr r3, [r7, #8]
  54173. 80164d6: 681b ldr r3, [r3, #0]
  54174. 80164d8: 63bb str r3, [r7, #56] @ 0x38
  54175. if (!(apiflags & NETCONN_NOAUTORCVD)) {
  54176. 80164da: 79fb ldrb r3, [r7, #7]
  54177. 80164dc: f003 0308 and.w r3, r3, #8
  54178. 80164e0: 2b00 cmp r3, #0
  54179. 80164e2: d10e bne.n 8016502 <netconn_recv_data_tcp+0x92>
  54180. /* Let the stack know that we have taken the data. */
  54181. u16_t len = buf ? buf->tot_len : 1;
  54182. 80164e4: 6bbb ldr r3, [r7, #56] @ 0x38
  54183. 80164e6: 2b00 cmp r3, #0
  54184. 80164e8: d002 beq.n 80164f0 <netconn_recv_data_tcp+0x80>
  54185. 80164ea: 6bbb ldr r3, [r7, #56] @ 0x38
  54186. 80164ec: 891b ldrh r3, [r3, #8]
  54187. 80164ee: e000 b.n 80164f2 <netconn_recv_data_tcp+0x82>
  54188. 80164f0: 2301 movs r3, #1
  54189. 80164f2: 86fb strh r3, [r7, #54] @ 0x36
  54190. /* don't care for the return value of lwip_netconn_do_recv */
  54191. /* @todo: this should really be fixed, e.g. by retrying in poll on error */
  54192. netconn_tcp_recvd_msg(conn, len, &API_VAR_REF(msg));
  54193. 80164f4: 8efb ldrh r3, [r7, #54] @ 0x36
  54194. 80164f6: f107 0214 add.w r2, r7, #20
  54195. 80164fa: 4619 mov r1, r3
  54196. 80164fc: 68f8 ldr r0, [r7, #12]
  54197. 80164fe: f7ff ff59 bl 80163b4 <netconn_tcp_recvd_msg>
  54198. API_MSG_VAR_FREE(msg);
  54199. }
  54200. /* If we are closed, we indicate that we no longer wish to use the socket */
  54201. if (buf == NULL) {
  54202. 8016502: 6bbb ldr r3, [r7, #56] @ 0x38
  54203. 8016504: 2b00 cmp r3, #0
  54204. 8016506: d136 bne.n 8016576 <netconn_recv_data_tcp+0x106>
  54205. if (apiflags & NETCONN_NOFIN) {
  54206. 8016508: 79fb ldrb r3, [r7, #7]
  54207. 801650a: f003 0310 and.w r3, r3, #16
  54208. 801650e: 2b00 cmp r3, #0
  54209. 8016510: d00b beq.n 801652a <netconn_recv_data_tcp+0xba>
  54210. /* received a FIN but the caller cannot handle it right now:
  54211. re-enqueue it and return "no data" */
  54212. netconn_set_flags(conn, NETCONN_FIN_RX_PENDING);
  54213. 8016512: 68fb ldr r3, [r7, #12]
  54214. 8016514: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54215. 8016518: f063 037f orn r3, r3, #127 @ 0x7f
  54216. 801651c: b2da uxtb r2, r3
  54217. 801651e: 68fb ldr r3, [r7, #12]
  54218. 8016520: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54219. return ERR_WOULDBLOCK;
  54220. 8016524: f06f 0306 mvn.w r3, #6
  54221. 8016528: e027 b.n 801657a <netconn_recv_data_tcp+0x10a>
  54222. } else {
  54223. handle_fin:
  54224. 801652a: bf00 nop
  54225. API_EVENT(conn, NETCONN_EVT_RCVMINUS, 0);
  54226. 801652c: 68fb ldr r3, [r7, #12]
  54227. 801652e: 6b1b ldr r3, [r3, #48] @ 0x30
  54228. 8016530: 2b00 cmp r3, #0
  54229. 8016532: d005 beq.n 8016540 <netconn_recv_data_tcp+0xd0>
  54230. 8016534: 68fb ldr r3, [r7, #12]
  54231. 8016536: 6b1b ldr r3, [r3, #48] @ 0x30
  54232. 8016538: 2200 movs r2, #0
  54233. 801653a: 2101 movs r1, #1
  54234. 801653c: 68f8 ldr r0, [r7, #12]
  54235. 801653e: 4798 blx r3
  54236. if (conn->pcb.ip == NULL) {
  54237. 8016540: 68fb ldr r3, [r7, #12]
  54238. 8016542: 685b ldr r3, [r3, #4]
  54239. 8016544: 2b00 cmp r3, #0
  54240. 8016546: d10f bne.n 8016568 <netconn_recv_data_tcp+0xf8>
  54241. /* race condition: RST during recv */
  54242. err = netconn_err(conn);
  54243. 8016548: 68f8 ldr r0, [r7, #12]
  54244. 801654a: f000 f9a3 bl 8016894 <netconn_err>
  54245. 801654e: 4603 mov r3, r0
  54246. 8016550: f887 303f strb.w r3, [r7, #63] @ 0x3f
  54247. if (err != ERR_OK) {
  54248. 8016554: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  54249. 8016558: 2b00 cmp r3, #0
  54250. 801655a: d002 beq.n 8016562 <netconn_recv_data_tcp+0xf2>
  54251. return err;
  54252. 801655c: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  54253. 8016560: e00b b.n 801657a <netconn_recv_data_tcp+0x10a>
  54254. }
  54255. return ERR_RST;
  54256. 8016562: f06f 030d mvn.w r3, #13
  54257. 8016566: e008 b.n 801657a <netconn_recv_data_tcp+0x10a>
  54258. }
  54259. /* RX side is closed, so deallocate the recvmbox */
  54260. netconn_close_shutdown(conn, NETCONN_SHUT_RD);
  54261. 8016568: 2101 movs r1, #1
  54262. 801656a: 68f8 ldr r0, [r7, #12]
  54263. 801656c: f000 f962 bl 8016834 <netconn_close_shutdown>
  54264. /* Don' store ERR_CLSD as conn->err since we are only half-closed */
  54265. return ERR_CLSD;
  54266. 8016570: f06f 030e mvn.w r3, #14
  54267. 8016574: e001 b.n 801657a <netconn_recv_data_tcp+0x10a>
  54268. }
  54269. }
  54270. return err;
  54271. 8016576: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  54272. }
  54273. 801657a: 4618 mov r0, r3
  54274. 801657c: 3740 adds r7, #64 @ 0x40
  54275. 801657e: 46bd mov sp, r7
  54276. 8016580: bd80 pop {r7, pc}
  54277. ...
  54278. 08016584 <netconn_recv_tcp_pbuf_flags>:
  54279. * memory error or another error, @see netconn_recv_data)
  54280. * ERR_ARG if conn is not a TCP netconn
  54281. */
  54282. err_t
  54283. netconn_recv_tcp_pbuf_flags(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags)
  54284. {
  54285. 8016584: b580 push {r7, lr}
  54286. 8016586: b084 sub sp, #16
  54287. 8016588: af00 add r7, sp, #0
  54288. 801658a: 60f8 str r0, [r7, #12]
  54289. 801658c: 60b9 str r1, [r7, #8]
  54290. 801658e: 4613 mov r3, r2
  54291. 8016590: 71fb strb r3, [r7, #7]
  54292. LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) &&
  54293. 8016592: 68fb ldr r3, [r7, #12]
  54294. 8016594: 2b00 cmp r3, #0
  54295. 8016596: d005 beq.n 80165a4 <netconn_recv_tcp_pbuf_flags+0x20>
  54296. 8016598: 68fb ldr r3, [r7, #12]
  54297. 801659a: 781b ldrb r3, [r3, #0]
  54298. 801659c: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54299. 80165a0: 2b10 cmp r3, #16
  54300. 80165a2: d009 beq.n 80165b8 <netconn_recv_tcp_pbuf_flags+0x34>
  54301. 80165a4: 4b0a ldr r3, [pc, #40] @ (80165d0 <netconn_recv_tcp_pbuf_flags+0x4c>)
  54302. 80165a6: f240 3225 movw r2, #805 @ 0x325
  54303. 80165aa: 490a ldr r1, [pc, #40] @ (80165d4 <netconn_recv_tcp_pbuf_flags+0x50>)
  54304. 80165ac: 480a ldr r0, [pc, #40] @ (80165d8 <netconn_recv_tcp_pbuf_flags+0x54>)
  54305. 80165ae: f014 f8d5 bl 802a75c <iprintf>
  54306. 80165b2: f06f 030f mvn.w r3, #15
  54307. 80165b6: e006 b.n 80165c6 <netconn_recv_tcp_pbuf_flags+0x42>
  54308. NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;);
  54309. return netconn_recv_data_tcp(conn, new_buf, apiflags);
  54310. 80165b8: 79fb ldrb r3, [r7, #7]
  54311. 80165ba: 461a mov r2, r3
  54312. 80165bc: 68b9 ldr r1, [r7, #8]
  54313. 80165be: 68f8 ldr r0, [r7, #12]
  54314. 80165c0: f7ff ff56 bl 8016470 <netconn_recv_data_tcp>
  54315. 80165c4: 4603 mov r3, r0
  54316. }
  54317. 80165c6: 4618 mov r0, r3
  54318. 80165c8: 3710 adds r7, #16
  54319. 80165ca: 46bd mov sp, r7
  54320. 80165cc: bd80 pop {r7, pc}
  54321. 80165ce: bf00 nop
  54322. 80165d0: 0802da68 .word 0x0802da68
  54323. 80165d4: 0802dcc8 .word 0x0802dcc8
  54324. 80165d8: 0802dac0 .word 0x0802dac0
  54325. 080165dc <netconn_recv_udp_raw_netbuf_flags>:
  54326. * memory error or another error)
  54327. * ERR_ARG if conn is not a UDP/RAW netconn
  54328. */
  54329. err_t
  54330. netconn_recv_udp_raw_netbuf_flags(struct netconn *conn, struct netbuf **new_buf, u8_t apiflags)
  54331. {
  54332. 80165dc: b580 push {r7, lr}
  54333. 80165de: b084 sub sp, #16
  54334. 80165e0: af00 add r7, sp, #0
  54335. 80165e2: 60f8 str r0, [r7, #12]
  54336. 80165e4: 60b9 str r1, [r7, #8]
  54337. 80165e6: 4613 mov r3, r2
  54338. 80165e8: 71fb strb r3, [r7, #7]
  54339. LWIP_ERROR("netconn_recv_udp_raw_netbuf: invalid conn", (conn != NULL) &&
  54340. 80165ea: 68fb ldr r3, [r7, #12]
  54341. 80165ec: 2b00 cmp r3, #0
  54342. 80165ee: d005 beq.n 80165fc <netconn_recv_udp_raw_netbuf_flags+0x20>
  54343. 80165f0: 68fb ldr r3, [r7, #12]
  54344. 80165f2: 781b ldrb r3, [r3, #0]
  54345. 80165f4: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54346. 80165f8: 2b10 cmp r3, #16
  54347. 80165fa: d109 bne.n 8016610 <netconn_recv_udp_raw_netbuf_flags+0x34>
  54348. 80165fc: 4b0a ldr r3, [pc, #40] @ (8016628 <netconn_recv_udp_raw_netbuf_flags+0x4c>)
  54349. 80165fe: f44f 7253 mov.w r2, #844 @ 0x34c
  54350. 8016602: 490a ldr r1, [pc, #40] @ (801662c <netconn_recv_udp_raw_netbuf_flags+0x50>)
  54351. 8016604: 480a ldr r0, [pc, #40] @ (8016630 <netconn_recv_udp_raw_netbuf_flags+0x54>)
  54352. 8016606: f014 f8a9 bl 802a75c <iprintf>
  54353. 801660a: f06f 030f mvn.w r3, #15
  54354. 801660e: e006 b.n 801661e <netconn_recv_udp_raw_netbuf_flags+0x42>
  54355. NETCONNTYPE_GROUP(netconn_type(conn)) != NETCONN_TCP, return ERR_ARG;);
  54356. return netconn_recv_data(conn, (void **)new_buf, apiflags);
  54357. 8016610: 79fb ldrb r3, [r7, #7]
  54358. 8016612: 461a mov r2, r3
  54359. 8016614: 68b9 ldr r1, [r7, #8]
  54360. 8016616: 68f8 ldr r0, [r7, #12]
  54361. 8016618: f7ff fdec bl 80161f4 <netconn_recv_data>
  54362. 801661c: 4603 mov r3, r0
  54363. }
  54364. 801661e: 4618 mov r0, r3
  54365. 8016620: 3710 adds r7, #16
  54366. 8016622: 46bd mov sp, r7
  54367. 8016624: bd80 pop {r7, pc}
  54368. 8016626: bf00 nop
  54369. 8016628: 0802da68 .word 0x0802da68
  54370. 801662c: 0802dcec .word 0x0802dcec
  54371. 8016630: 0802dac0 .word 0x0802dac0
  54372. 08016634 <netconn_send>:
  54373. * @param buf a netbuf containing the data to send
  54374. * @return ERR_OK if data was sent, any other err_t on error
  54375. */
  54376. err_t
  54377. netconn_send(struct netconn *conn, struct netbuf *buf)
  54378. {
  54379. 8016634: b580 push {r7, lr}
  54380. 8016636: b08c sub sp, #48 @ 0x30
  54381. 8016638: af00 add r7, sp, #0
  54382. 801663a: 6078 str r0, [r7, #4]
  54383. 801663c: 6039 str r1, [r7, #0]
  54384. API_MSG_VAR_DECLARE(msg);
  54385. err_t err;
  54386. LWIP_ERROR("netconn_send: invalid conn", (conn != NULL), return ERR_ARG;);
  54387. 801663e: 687b ldr r3, [r7, #4]
  54388. 8016640: 2b00 cmp r3, #0
  54389. 8016642: d109 bne.n 8016658 <netconn_send+0x24>
  54390. 8016644: 4b0e ldr r3, [pc, #56] @ (8016680 <netconn_send+0x4c>)
  54391. 8016646: f240 32b2 movw r2, #946 @ 0x3b2
  54392. 801664a: 490e ldr r1, [pc, #56] @ (8016684 <netconn_send+0x50>)
  54393. 801664c: 480e ldr r0, [pc, #56] @ (8016688 <netconn_send+0x54>)
  54394. 801664e: f014 f885 bl 802a75c <iprintf>
  54395. 8016652: f06f 030f mvn.w r3, #15
  54396. 8016656: e00e b.n 8016676 <netconn_send+0x42>
  54397. LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_send: sending %"U16_F" bytes\n", buf->p->tot_len));
  54398. API_MSG_VAR_ALLOC(msg);
  54399. API_MSG_VAR_REF(msg).conn = conn;
  54400. 8016658: 687b ldr r3, [r7, #4]
  54401. 801665a: 60fb str r3, [r7, #12]
  54402. API_MSG_VAR_REF(msg).msg.b = buf;
  54403. 801665c: 683b ldr r3, [r7, #0]
  54404. 801665e: 617b str r3, [r7, #20]
  54405. err = netconn_apimsg(lwip_netconn_do_send, &API_MSG_VAR_REF(msg));
  54406. 8016660: f107 030c add.w r3, r7, #12
  54407. 8016664: 4619 mov r1, r3
  54408. 8016666: 4809 ldr r0, [pc, #36] @ (801668c <netconn_send+0x58>)
  54409. 8016668: f7ff fc36 bl 8015ed8 <netconn_apimsg>
  54410. 801666c: 4603 mov r3, r0
  54411. 801666e: f887 302f strb.w r3, [r7, #47] @ 0x2f
  54412. API_MSG_VAR_FREE(msg);
  54413. return err;
  54414. 8016672: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  54415. }
  54416. 8016676: 4618 mov r0, r3
  54417. 8016678: 3730 adds r7, #48 @ 0x30
  54418. 801667a: 46bd mov sp, r7
  54419. 801667c: bd80 pop {r7, pc}
  54420. 801667e: bf00 nop
  54421. 8016680: 0802da68 .word 0x0802da68
  54422. 8016684: 0802dd24 .word 0x0802dd24
  54423. 8016688: 0802dac0 .word 0x0802dac0
  54424. 801668c: 08017a8d .word 0x08017a8d
  54425. 08016690 <netconn_write_partly>:
  54426. * @return ERR_OK if data was sent, any other err_t on error
  54427. */
  54428. err_t
  54429. netconn_write_partly(struct netconn *conn, const void *dataptr, size_t size,
  54430. u8_t apiflags, size_t *bytes_written)
  54431. {
  54432. 8016690: b580 push {r7, lr}
  54433. 8016692: b088 sub sp, #32
  54434. 8016694: af02 add r7, sp, #8
  54435. 8016696: 60f8 str r0, [r7, #12]
  54436. 8016698: 60b9 str r1, [r7, #8]
  54437. 801669a: 607a str r2, [r7, #4]
  54438. 801669c: 70fb strb r3, [r7, #3]
  54439. struct netvector vector;
  54440. vector.ptr = dataptr;
  54441. 801669e: 68bb ldr r3, [r7, #8]
  54442. 80166a0: 613b str r3, [r7, #16]
  54443. vector.len = size;
  54444. 80166a2: 687b ldr r3, [r7, #4]
  54445. 80166a4: 617b str r3, [r7, #20]
  54446. return netconn_write_vectors_partly(conn, &vector, 1, apiflags, bytes_written);
  54447. 80166a6: 78fa ldrb r2, [r7, #3]
  54448. 80166a8: f107 0110 add.w r1, r7, #16
  54449. 80166ac: 6a3b ldr r3, [r7, #32]
  54450. 80166ae: 9300 str r3, [sp, #0]
  54451. 80166b0: 4613 mov r3, r2
  54452. 80166b2: 2201 movs r2, #1
  54453. 80166b4: 68f8 ldr r0, [r7, #12]
  54454. 80166b6: f000 f805 bl 80166c4 <netconn_write_vectors_partly>
  54455. 80166ba: 4603 mov r3, r0
  54456. }
  54457. 80166bc: 4618 mov r0, r3
  54458. 80166be: 3718 adds r7, #24
  54459. 80166c0: 46bd mov sp, r7
  54460. 80166c2: bd80 pop {r7, pc}
  54461. 080166c4 <netconn_write_vectors_partly>:
  54462. * @return ERR_OK if data was sent, any other err_t on error
  54463. */
  54464. err_t
  54465. netconn_write_vectors_partly(struct netconn *conn, struct netvector *vectors, u16_t vectorcnt,
  54466. u8_t apiflags, size_t *bytes_written)
  54467. {
  54468. 80166c4: b580 push {r7, lr}
  54469. 80166c6: b092 sub sp, #72 @ 0x48
  54470. 80166c8: af00 add r7, sp, #0
  54471. 80166ca: 60f8 str r0, [r7, #12]
  54472. 80166cc: 60b9 str r1, [r7, #8]
  54473. 80166ce: 4611 mov r1, r2
  54474. 80166d0: 461a mov r2, r3
  54475. 80166d2: 460b mov r3, r1
  54476. 80166d4: 80fb strh r3, [r7, #6]
  54477. 80166d6: 4613 mov r3, r2
  54478. 80166d8: 717b strb r3, [r7, #5]
  54479. err_t err;
  54480. u8_t dontblock;
  54481. size_t size;
  54482. int i;
  54483. LWIP_ERROR("netconn_write: invalid conn", (conn != NULL), return ERR_ARG;);
  54484. 80166da: 68fb ldr r3, [r7, #12]
  54485. 80166dc: 2b00 cmp r3, #0
  54486. 80166de: d109 bne.n 80166f4 <netconn_write_vectors_partly+0x30>
  54487. 80166e0: 4b4e ldr r3, [pc, #312] @ (801681c <netconn_write_vectors_partly+0x158>)
  54488. 80166e2: f240 32ee movw r2, #1006 @ 0x3ee
  54489. 80166e6: 494e ldr r1, [pc, #312] @ (8016820 <netconn_write_vectors_partly+0x15c>)
  54490. 80166e8: 484e ldr r0, [pc, #312] @ (8016824 <netconn_write_vectors_partly+0x160>)
  54491. 80166ea: f014 f837 bl 802a75c <iprintf>
  54492. 80166ee: f06f 030f mvn.w r3, #15
  54493. 80166f2: e08f b.n 8016814 <netconn_write_vectors_partly+0x150>
  54494. LWIP_ERROR("netconn_write: invalid conn->type", (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP), return ERR_VAL;);
  54495. 80166f4: 68fb ldr r3, [r7, #12]
  54496. 80166f6: 781b ldrb r3, [r3, #0]
  54497. 80166f8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  54498. 80166fc: 2b10 cmp r3, #16
  54499. 80166fe: d009 beq.n 8016714 <netconn_write_vectors_partly+0x50>
  54500. 8016700: 4b46 ldr r3, [pc, #280] @ (801681c <netconn_write_vectors_partly+0x158>)
  54501. 8016702: f240 32ef movw r2, #1007 @ 0x3ef
  54502. 8016706: 4948 ldr r1, [pc, #288] @ (8016828 <netconn_write_vectors_partly+0x164>)
  54503. 8016708: 4846 ldr r0, [pc, #280] @ (8016824 <netconn_write_vectors_partly+0x160>)
  54504. 801670a: f014 f827 bl 802a75c <iprintf>
  54505. 801670e: f06f 0305 mvn.w r3, #5
  54506. 8016712: e07f b.n 8016814 <netconn_write_vectors_partly+0x150>
  54507. dontblock = netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK);
  54508. 8016714: 68fb ldr r3, [r7, #12]
  54509. 8016716: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54510. 801671a: f003 0302 and.w r3, r3, #2
  54511. 801671e: 2b00 cmp r3, #0
  54512. 8016720: d104 bne.n 801672c <netconn_write_vectors_partly+0x68>
  54513. 8016722: 797b ldrb r3, [r7, #5]
  54514. 8016724: f003 0304 and.w r3, r3, #4
  54515. 8016728: 2b00 cmp r3, #0
  54516. 801672a: d001 beq.n 8016730 <netconn_write_vectors_partly+0x6c>
  54517. 801672c: 2301 movs r3, #1
  54518. 801672e: e000 b.n 8016732 <netconn_write_vectors_partly+0x6e>
  54519. 8016730: 2300 movs r3, #0
  54520. 8016732: f887 303f strb.w r3, [r7, #63] @ 0x3f
  54521. #if LWIP_SO_SNDTIMEO
  54522. if (conn->send_timeout != 0) {
  54523. dontblock = 1;
  54524. }
  54525. #endif /* LWIP_SO_SNDTIMEO */
  54526. if (dontblock && !bytes_written) {
  54527. 8016736: f897 303f ldrb.w r3, [r7, #63] @ 0x3f
  54528. 801673a: 2b00 cmp r3, #0
  54529. 801673c: d005 beq.n 801674a <netconn_write_vectors_partly+0x86>
  54530. 801673e: 6d3b ldr r3, [r7, #80] @ 0x50
  54531. 8016740: 2b00 cmp r3, #0
  54532. 8016742: d102 bne.n 801674a <netconn_write_vectors_partly+0x86>
  54533. /* This implies netconn_write() cannot be used for non-blocking send, since
  54534. it has no way to return the number of bytes written. */
  54535. return ERR_VAL;
  54536. 8016744: f06f 0305 mvn.w r3, #5
  54537. 8016748: e064 b.n 8016814 <netconn_write_vectors_partly+0x150>
  54538. }
  54539. /* sum up the total size */
  54540. size = 0;
  54541. 801674a: 2300 movs r3, #0
  54542. 801674c: 647b str r3, [r7, #68] @ 0x44
  54543. for (i = 0; i < vectorcnt; i++) {
  54544. 801674e: 2300 movs r3, #0
  54545. 8016750: 643b str r3, [r7, #64] @ 0x40
  54546. 8016752: e015 b.n 8016780 <netconn_write_vectors_partly+0xbc>
  54547. size += vectors[i].len;
  54548. 8016754: 6c3b ldr r3, [r7, #64] @ 0x40
  54549. 8016756: 00db lsls r3, r3, #3
  54550. 8016758: 68ba ldr r2, [r7, #8]
  54551. 801675a: 4413 add r3, r2
  54552. 801675c: 685b ldr r3, [r3, #4]
  54553. 801675e: 6c7a ldr r2, [r7, #68] @ 0x44
  54554. 8016760: 4413 add r3, r2
  54555. 8016762: 647b str r3, [r7, #68] @ 0x44
  54556. if (size < vectors[i].len) {
  54557. 8016764: 6c3b ldr r3, [r7, #64] @ 0x40
  54558. 8016766: 00db lsls r3, r3, #3
  54559. 8016768: 68ba ldr r2, [r7, #8]
  54560. 801676a: 4413 add r3, r2
  54561. 801676c: 685b ldr r3, [r3, #4]
  54562. 801676e: 6c7a ldr r2, [r7, #68] @ 0x44
  54563. 8016770: 429a cmp r2, r3
  54564. 8016772: d202 bcs.n 801677a <netconn_write_vectors_partly+0xb6>
  54565. /* overflow */
  54566. return ERR_VAL;
  54567. 8016774: f06f 0305 mvn.w r3, #5
  54568. 8016778: e04c b.n 8016814 <netconn_write_vectors_partly+0x150>
  54569. for (i = 0; i < vectorcnt; i++) {
  54570. 801677a: 6c3b ldr r3, [r7, #64] @ 0x40
  54571. 801677c: 3301 adds r3, #1
  54572. 801677e: 643b str r3, [r7, #64] @ 0x40
  54573. 8016780: 88fb ldrh r3, [r7, #6]
  54574. 8016782: 6c3a ldr r2, [r7, #64] @ 0x40
  54575. 8016784: 429a cmp r2, r3
  54576. 8016786: dbe5 blt.n 8016754 <netconn_write_vectors_partly+0x90>
  54577. }
  54578. }
  54579. if (size == 0) {
  54580. 8016788: 6c7b ldr r3, [r7, #68] @ 0x44
  54581. 801678a: 2b00 cmp r3, #0
  54582. 801678c: d101 bne.n 8016792 <netconn_write_vectors_partly+0xce>
  54583. return ERR_OK;
  54584. 801678e: 2300 movs r3, #0
  54585. 8016790: e040 b.n 8016814 <netconn_write_vectors_partly+0x150>
  54586. } else if (size > SSIZE_MAX) {
  54587. 8016792: 6c7b ldr r3, [r7, #68] @ 0x44
  54588. 8016794: 2b00 cmp r3, #0
  54589. 8016796: da0a bge.n 80167ae <netconn_write_vectors_partly+0xea>
  54590. ssize_t limited;
  54591. /* this is required by the socket layer (cannot send full size_t range) */
  54592. if (!bytes_written) {
  54593. 8016798: 6d3b ldr r3, [r7, #80] @ 0x50
  54594. 801679a: 2b00 cmp r3, #0
  54595. 801679c: d102 bne.n 80167a4 <netconn_write_vectors_partly+0xe0>
  54596. return ERR_VAL;
  54597. 801679e: f06f 0305 mvn.w r3, #5
  54598. 80167a2: e037 b.n 8016814 <netconn_write_vectors_partly+0x150>
  54599. }
  54600. /* limit the amount of data to send */
  54601. limited = SSIZE_MAX;
  54602. 80167a4: f06f 4300 mvn.w r3, #2147483648 @ 0x80000000
  54603. 80167a8: 63bb str r3, [r7, #56] @ 0x38
  54604. size = (size_t)limited;
  54605. 80167aa: 6bbb ldr r3, [r7, #56] @ 0x38
  54606. 80167ac: 647b str r3, [r7, #68] @ 0x44
  54607. }
  54608. API_MSG_VAR_ALLOC(msg);
  54609. /* non-blocking write sends as much */
  54610. API_MSG_VAR_REF(msg).conn = conn;
  54611. 80167ae: 68fb ldr r3, [r7, #12]
  54612. 80167b0: 617b str r3, [r7, #20]
  54613. API_MSG_VAR_REF(msg).msg.w.vector = vectors;
  54614. 80167b2: 68bb ldr r3, [r7, #8]
  54615. 80167b4: 61fb str r3, [r7, #28]
  54616. API_MSG_VAR_REF(msg).msg.w.vector_cnt = vectorcnt;
  54617. 80167b6: 88fb ldrh r3, [r7, #6]
  54618. 80167b8: 843b strh r3, [r7, #32]
  54619. API_MSG_VAR_REF(msg).msg.w.vector_off = 0;
  54620. 80167ba: 2300 movs r3, #0
  54621. 80167bc: 627b str r3, [r7, #36] @ 0x24
  54622. API_MSG_VAR_REF(msg).msg.w.apiflags = apiflags;
  54623. 80167be: 797b ldrb r3, [r7, #5]
  54624. 80167c0: f887 3030 strb.w r3, [r7, #48] @ 0x30
  54625. API_MSG_VAR_REF(msg).msg.w.len = size;
  54626. 80167c4: 6c7b ldr r3, [r7, #68] @ 0x44
  54627. 80167c6: 62bb str r3, [r7, #40] @ 0x28
  54628. API_MSG_VAR_REF(msg).msg.w.offset = 0;
  54629. 80167c8: 2300 movs r3, #0
  54630. 80167ca: 62fb str r3, [r7, #44] @ 0x2c
  54631. #endif /* LWIP_SO_SNDTIMEO */
  54632. /* For locking the core: this _can_ be delayed on low memory/low send buffer,
  54633. but if it is, this is done inside api_msg.c:do_write(), so we can use the
  54634. non-blocking version here. */
  54635. err = netconn_apimsg(lwip_netconn_do_write, &API_MSG_VAR_REF(msg));
  54636. 80167cc: f107 0314 add.w r3, r7, #20
  54637. 80167d0: 4619 mov r1, r3
  54638. 80167d2: 4816 ldr r0, [pc, #88] @ (801682c <netconn_write_vectors_partly+0x168>)
  54639. 80167d4: f7ff fb80 bl 8015ed8 <netconn_apimsg>
  54640. 80167d8: 4603 mov r3, r0
  54641. 80167da: f887 3037 strb.w r3, [r7, #55] @ 0x37
  54642. if (err == ERR_OK) {
  54643. 80167de: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  54644. 80167e2: 2b00 cmp r3, #0
  54645. 80167e4: d114 bne.n 8016810 <netconn_write_vectors_partly+0x14c>
  54646. if (bytes_written != NULL) {
  54647. 80167e6: 6d3b ldr r3, [r7, #80] @ 0x50
  54648. 80167e8: 2b00 cmp r3, #0
  54649. 80167ea: d002 beq.n 80167f2 <netconn_write_vectors_partly+0x12e>
  54650. *bytes_written = API_MSG_VAR_REF(msg).msg.w.offset;
  54651. 80167ec: 6afa ldr r2, [r7, #44] @ 0x2c
  54652. 80167ee: 6d3b ldr r3, [r7, #80] @ 0x50
  54653. 80167f0: 601a str r2, [r3, #0]
  54654. }
  54655. /* for blocking, check all requested bytes were written, NOTE: send_timeout is
  54656. treated as dontblock (see dontblock assignment above) */
  54657. if (!dontblock) {
  54658. 80167f2: f897 303f ldrb.w r3, [r7, #63] @ 0x3f
  54659. 80167f6: 2b00 cmp r3, #0
  54660. 80167f8: d10a bne.n 8016810 <netconn_write_vectors_partly+0x14c>
  54661. LWIP_ASSERT("do_write failed to write all bytes", API_MSG_VAR_REF(msg).msg.w.offset == size);
  54662. 80167fa: 6afb ldr r3, [r7, #44] @ 0x2c
  54663. 80167fc: 6c7a ldr r2, [r7, #68] @ 0x44
  54664. 80167fe: 429a cmp r2, r3
  54665. 8016800: d006 beq.n 8016810 <netconn_write_vectors_partly+0x14c>
  54666. 8016802: 4b06 ldr r3, [pc, #24] @ (801681c <netconn_write_vectors_partly+0x158>)
  54667. 8016804: f44f 6286 mov.w r2, #1072 @ 0x430
  54668. 8016808: 4909 ldr r1, [pc, #36] @ (8016830 <netconn_write_vectors_partly+0x16c>)
  54669. 801680a: 4806 ldr r0, [pc, #24] @ (8016824 <netconn_write_vectors_partly+0x160>)
  54670. 801680c: f013 ffa6 bl 802a75c <iprintf>
  54671. }
  54672. }
  54673. API_MSG_VAR_FREE(msg);
  54674. return err;
  54675. 8016810: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  54676. }
  54677. 8016814: 4618 mov r0, r3
  54678. 8016816: 3748 adds r7, #72 @ 0x48
  54679. 8016818: 46bd mov sp, r7
  54680. 801681a: bd80 pop {r7, pc}
  54681. 801681c: 0802da68 .word 0x0802da68
  54682. 8016820: 0802dd40 .word 0x0802dd40
  54683. 8016824: 0802dac0 .word 0x0802dac0
  54684. 8016828: 0802dd5c .word 0x0802dd5c
  54685. 801682c: 08017f31 .word 0x08017f31
  54686. 8016830: 0802dd80 .word 0x0802dd80
  54687. 08016834 <netconn_close_shutdown>:
  54688. * @param how fully close or only shutdown one side?
  54689. * @return ERR_OK if the netconn was closed, any other err_t on error
  54690. */
  54691. static err_t
  54692. netconn_close_shutdown(struct netconn *conn, u8_t how)
  54693. {
  54694. 8016834: b580 push {r7, lr}
  54695. 8016836: b08c sub sp, #48 @ 0x30
  54696. 8016838: af00 add r7, sp, #0
  54697. 801683a: 6078 str r0, [r7, #4]
  54698. 801683c: 460b mov r3, r1
  54699. 801683e: 70fb strb r3, [r7, #3]
  54700. API_MSG_VAR_DECLARE(msg);
  54701. err_t err;
  54702. LWIP_UNUSED_ARG(how);
  54703. LWIP_ERROR("netconn_close: invalid conn", (conn != NULL), return ERR_ARG;);
  54704. 8016840: 687b ldr r3, [r7, #4]
  54705. 8016842: 2b00 cmp r3, #0
  54706. 8016844: d109 bne.n 801685a <netconn_close_shutdown+0x26>
  54707. 8016846: 4b0f ldr r3, [pc, #60] @ (8016884 <netconn_close_shutdown+0x50>)
  54708. 8016848: f240 4247 movw r2, #1095 @ 0x447
  54709. 801684c: 490e ldr r1, [pc, #56] @ (8016888 <netconn_close_shutdown+0x54>)
  54710. 801684e: 480f ldr r0, [pc, #60] @ (801688c <netconn_close_shutdown+0x58>)
  54711. 8016850: f013 ff84 bl 802a75c <iprintf>
  54712. 8016854: f06f 030f mvn.w r3, #15
  54713. 8016858: e010 b.n 801687c <netconn_close_shutdown+0x48>
  54714. API_MSG_VAR_ALLOC(msg);
  54715. API_MSG_VAR_REF(msg).conn = conn;
  54716. 801685a: 687b ldr r3, [r7, #4]
  54717. 801685c: 60fb str r3, [r7, #12]
  54718. #if LWIP_TCP
  54719. /* shutting down both ends is the same as closing */
  54720. API_MSG_VAR_REF(msg).msg.sd.shut = how;
  54721. 801685e: 78fb ldrb r3, [r7, #3]
  54722. 8016860: 753b strb r3, [r7, #20]
  54723. #if LWIP_SO_SNDTIMEO || LWIP_SO_LINGER
  54724. /* get the time we started, which is later compared to
  54725. sys_now() + conn->send_timeout */
  54726. API_MSG_VAR_REF(msg).msg.sd.time_started = sys_now();
  54727. #else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  54728. API_MSG_VAR_REF(msg).msg.sd.polls_left =
  54729. 8016862: 2329 movs r3, #41 @ 0x29
  54730. 8016864: 757b strb r3, [r7, #21]
  54731. ((LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT + TCP_SLOW_INTERVAL - 1) / TCP_SLOW_INTERVAL) + 1;
  54732. #endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  54733. #endif /* LWIP_TCP */
  54734. err = netconn_apimsg(lwip_netconn_do_close, &API_MSG_VAR_REF(msg));
  54735. 8016866: f107 030c add.w r3, r7, #12
  54736. 801686a: 4619 mov r1, r3
  54737. 801686c: 4808 ldr r0, [pc, #32] @ (8016890 <netconn_close_shutdown+0x5c>)
  54738. 801686e: f7ff fb33 bl 8015ed8 <netconn_apimsg>
  54739. 8016872: 4603 mov r3, r0
  54740. 8016874: f887 302f strb.w r3, [r7, #47] @ 0x2f
  54741. API_MSG_VAR_FREE(msg);
  54742. return err;
  54743. 8016878: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  54744. }
  54745. 801687c: 4618 mov r0, r3
  54746. 801687e: 3730 adds r7, #48 @ 0x30
  54747. 8016880: 46bd mov sp, r7
  54748. 8016882: bd80 pop {r7, pc}
  54749. 8016884: 0802da68 .word 0x0802da68
  54750. 8016888: 0802dda4 .word 0x0802dda4
  54751. 801688c: 0802dac0 .word 0x0802dac0
  54752. 8016890: 0801814d .word 0x0801814d
  54753. 08016894 <netconn_err>:
  54754. * @param conn the netconn to get the error from
  54755. * @return and pending error or ERR_OK if no error was pending
  54756. */
  54757. err_t
  54758. netconn_err(struct netconn *conn)
  54759. {
  54760. 8016894: b580 push {r7, lr}
  54761. 8016896: b084 sub sp, #16
  54762. 8016898: af00 add r7, sp, #0
  54763. 801689a: 6078 str r0, [r7, #4]
  54764. err_t err;
  54765. SYS_ARCH_DECL_PROTECT(lev);
  54766. if (conn == NULL) {
  54767. 801689c: 687b ldr r3, [r7, #4]
  54768. 801689e: 2b00 cmp r3, #0
  54769. 80168a0: d101 bne.n 80168a6 <netconn_err+0x12>
  54770. return ERR_OK;
  54771. 80168a2: 2300 movs r3, #0
  54772. 80168a4: e00d b.n 80168c2 <netconn_err+0x2e>
  54773. }
  54774. SYS_ARCH_PROTECT(lev);
  54775. 80168a6: f010 fcc3 bl 8027230 <sys_arch_protect>
  54776. 80168aa: 60f8 str r0, [r7, #12]
  54777. err = conn->pending_err;
  54778. 80168ac: 687b ldr r3, [r7, #4]
  54779. 80168ae: 7a1b ldrb r3, [r3, #8]
  54780. 80168b0: 72fb strb r3, [r7, #11]
  54781. conn->pending_err = ERR_OK;
  54782. 80168b2: 687b ldr r3, [r7, #4]
  54783. 80168b4: 2200 movs r2, #0
  54784. 80168b6: 721a strb r2, [r3, #8]
  54785. SYS_ARCH_UNPROTECT(lev);
  54786. 80168b8: 68f8 ldr r0, [r7, #12]
  54787. 80168ba: f010 fcc7 bl 802724c <sys_arch_unprotect>
  54788. return err;
  54789. 80168be: f997 300b ldrsb.w r3, [r7, #11]
  54790. }
  54791. 80168c2: 4618 mov r0, r3
  54792. 80168c4: 3710 adds r7, #16
  54793. 80168c6: 46bd mov sp, r7
  54794. 80168c8: bd80 pop {r7, pc}
  54795. ...
  54796. 080168cc <lwip_netconn_err_to_msg>:
  54797. const u8_t netconn_closed = 0;
  54798. /** Translate an error to a unique void* passed via an mbox */
  54799. static void *
  54800. lwip_netconn_err_to_msg(err_t err)
  54801. {
  54802. 80168cc: b580 push {r7, lr}
  54803. 80168ce: b082 sub sp, #8
  54804. 80168d0: af00 add r7, sp, #0
  54805. 80168d2: 4603 mov r3, r0
  54806. 80168d4: 71fb strb r3, [r7, #7]
  54807. switch (err) {
  54808. 80168d6: f997 3007 ldrsb.w r3, [r7, #7]
  54809. 80168da: f113 0f0d cmn.w r3, #13
  54810. 80168de: d009 beq.n 80168f4 <lwip_netconn_err_to_msg+0x28>
  54811. 80168e0: f113 0f0d cmn.w r3, #13
  54812. 80168e4: dc0c bgt.n 8016900 <lwip_netconn_err_to_msg+0x34>
  54813. 80168e6: f113 0f0f cmn.w r3, #15
  54814. 80168ea: d007 beq.n 80168fc <lwip_netconn_err_to_msg+0x30>
  54815. 80168ec: f113 0f0e cmn.w r3, #14
  54816. 80168f0: d002 beq.n 80168f8 <lwip_netconn_err_to_msg+0x2c>
  54817. 80168f2: e005 b.n 8016900 <lwip_netconn_err_to_msg+0x34>
  54818. case ERR_ABRT:
  54819. return LWIP_CONST_CAST(void *, &netconn_aborted);
  54820. 80168f4: 4b0a ldr r3, [pc, #40] @ (8016920 <lwip_netconn_err_to_msg+0x54>)
  54821. 80168f6: e00e b.n 8016916 <lwip_netconn_err_to_msg+0x4a>
  54822. case ERR_RST:
  54823. return LWIP_CONST_CAST(void *, &netconn_reset);
  54824. 80168f8: 4b0a ldr r3, [pc, #40] @ (8016924 <lwip_netconn_err_to_msg+0x58>)
  54825. 80168fa: e00c b.n 8016916 <lwip_netconn_err_to_msg+0x4a>
  54826. case ERR_CLSD:
  54827. return LWIP_CONST_CAST(void *, &netconn_closed);
  54828. 80168fc: 4b0a ldr r3, [pc, #40] @ (8016928 <lwip_netconn_err_to_msg+0x5c>)
  54829. 80168fe: e00a b.n 8016916 <lwip_netconn_err_to_msg+0x4a>
  54830. default:
  54831. LWIP_ASSERT("unhandled error", err == ERR_OK);
  54832. 8016900: f997 3007 ldrsb.w r3, [r7, #7]
  54833. 8016904: 2b00 cmp r3, #0
  54834. 8016906: d005 beq.n 8016914 <lwip_netconn_err_to_msg+0x48>
  54835. 8016908: 4b08 ldr r3, [pc, #32] @ (801692c <lwip_netconn_err_to_msg+0x60>)
  54836. 801690a: 227d movs r2, #125 @ 0x7d
  54837. 801690c: 4908 ldr r1, [pc, #32] @ (8016930 <lwip_netconn_err_to_msg+0x64>)
  54838. 801690e: 4809 ldr r0, [pc, #36] @ (8016934 <lwip_netconn_err_to_msg+0x68>)
  54839. 8016910: f013 ff24 bl 802a75c <iprintf>
  54840. return NULL;
  54841. 8016914: 2300 movs r3, #0
  54842. }
  54843. }
  54844. 8016916: 4618 mov r0, r3
  54845. 8016918: 3708 adds r7, #8
  54846. 801691a: 46bd mov sp, r7
  54847. 801691c: bd80 pop {r7, pc}
  54848. 801691e: bf00 nop
  54849. 8016920: 080319bc .word 0x080319bc
  54850. 8016924: 080319bd .word 0x080319bd
  54851. 8016928: 080319be .word 0x080319be
  54852. 801692c: 0802ddc0 .word 0x0802ddc0
  54853. 8016930: 0802ddf4 .word 0x0802ddf4
  54854. 8016934: 0802de04 .word 0x0802de04
  54855. 08016938 <lwip_netconn_is_err_msg>:
  54856. int
  54857. lwip_netconn_is_err_msg(void *msg, err_t *err)
  54858. {
  54859. 8016938: b580 push {r7, lr}
  54860. 801693a: b082 sub sp, #8
  54861. 801693c: af00 add r7, sp, #0
  54862. 801693e: 6078 str r0, [r7, #4]
  54863. 8016940: 6039 str r1, [r7, #0]
  54864. LWIP_ASSERT("err != NULL", err != NULL);
  54865. 8016942: 683b ldr r3, [r7, #0]
  54866. 8016944: 2b00 cmp r3, #0
  54867. 8016946: d105 bne.n 8016954 <lwip_netconn_is_err_msg+0x1c>
  54868. 8016948: 4b12 ldr r3, [pc, #72] @ (8016994 <lwip_netconn_is_err_msg+0x5c>)
  54869. 801694a: 2285 movs r2, #133 @ 0x85
  54870. 801694c: 4912 ldr r1, [pc, #72] @ (8016998 <lwip_netconn_is_err_msg+0x60>)
  54871. 801694e: 4813 ldr r0, [pc, #76] @ (801699c <lwip_netconn_is_err_msg+0x64>)
  54872. 8016950: f013 ff04 bl 802a75c <iprintf>
  54873. if (msg == &netconn_aborted) {
  54874. 8016954: 687b ldr r3, [r7, #4]
  54875. 8016956: 4a12 ldr r2, [pc, #72] @ (80169a0 <lwip_netconn_is_err_msg+0x68>)
  54876. 8016958: 4293 cmp r3, r2
  54877. 801695a: d104 bne.n 8016966 <lwip_netconn_is_err_msg+0x2e>
  54878. *err = ERR_ABRT;
  54879. 801695c: 683b ldr r3, [r7, #0]
  54880. 801695e: 22f3 movs r2, #243 @ 0xf3
  54881. 8016960: 701a strb r2, [r3, #0]
  54882. return 1;
  54883. 8016962: 2301 movs r3, #1
  54884. 8016964: e012 b.n 801698c <lwip_netconn_is_err_msg+0x54>
  54885. } else if (msg == &netconn_reset) {
  54886. 8016966: 687b ldr r3, [r7, #4]
  54887. 8016968: 4a0e ldr r2, [pc, #56] @ (80169a4 <lwip_netconn_is_err_msg+0x6c>)
  54888. 801696a: 4293 cmp r3, r2
  54889. 801696c: d104 bne.n 8016978 <lwip_netconn_is_err_msg+0x40>
  54890. *err = ERR_RST;
  54891. 801696e: 683b ldr r3, [r7, #0]
  54892. 8016970: 22f2 movs r2, #242 @ 0xf2
  54893. 8016972: 701a strb r2, [r3, #0]
  54894. return 1;
  54895. 8016974: 2301 movs r3, #1
  54896. 8016976: e009 b.n 801698c <lwip_netconn_is_err_msg+0x54>
  54897. } else if (msg == &netconn_closed) {
  54898. 8016978: 687b ldr r3, [r7, #4]
  54899. 801697a: 4a0b ldr r2, [pc, #44] @ (80169a8 <lwip_netconn_is_err_msg+0x70>)
  54900. 801697c: 4293 cmp r3, r2
  54901. 801697e: d104 bne.n 801698a <lwip_netconn_is_err_msg+0x52>
  54902. *err = ERR_CLSD;
  54903. 8016980: 683b ldr r3, [r7, #0]
  54904. 8016982: 22f1 movs r2, #241 @ 0xf1
  54905. 8016984: 701a strb r2, [r3, #0]
  54906. return 1;
  54907. 8016986: 2301 movs r3, #1
  54908. 8016988: e000 b.n 801698c <lwip_netconn_is_err_msg+0x54>
  54909. }
  54910. return 0;
  54911. 801698a: 2300 movs r3, #0
  54912. }
  54913. 801698c: 4618 mov r0, r3
  54914. 801698e: 3708 adds r7, #8
  54915. 8016990: 46bd mov sp, r7
  54916. 8016992: bd80 pop {r7, pc}
  54917. 8016994: 0802ddc0 .word 0x0802ddc0
  54918. 8016998: 0802de2c .word 0x0802de2c
  54919. 801699c: 0802de04 .word 0x0802de04
  54920. 80169a0: 080319bc .word 0x080319bc
  54921. 80169a4: 080319bd .word 0x080319bd
  54922. 80169a8: 080319be .word 0x080319be
  54923. 080169ac <recv_udp>:
  54924. * @see udp.h (struct udp_pcb.recv) for parameters
  54925. */
  54926. static void
  54927. recv_udp(void *arg, struct udp_pcb *pcb, struct pbuf *p,
  54928. const ip_addr_t *addr, u16_t port)
  54929. {
  54930. 80169ac: b580 push {r7, lr}
  54931. 80169ae: b08a sub sp, #40 @ 0x28
  54932. 80169b0: af00 add r7, sp, #0
  54933. 80169b2: 60f8 str r0, [r7, #12]
  54934. 80169b4: 60b9 str r1, [r7, #8]
  54935. 80169b6: 607a str r2, [r7, #4]
  54936. 80169b8: 603b str r3, [r7, #0]
  54937. #if LWIP_SO_RCVBUF
  54938. int recv_avail;
  54939. #endif /* LWIP_SO_RCVBUF */
  54940. LWIP_UNUSED_ARG(pcb); /* only used for asserts... */
  54941. LWIP_ASSERT("recv_udp must have a pcb argument", pcb != NULL);
  54942. 80169ba: 68bb ldr r3, [r7, #8]
  54943. 80169bc: 2b00 cmp r3, #0
  54944. 80169be: d105 bne.n 80169cc <recv_udp+0x20>
  54945. 80169c0: 4b43 ldr r3, [pc, #268] @ (8016ad0 <recv_udp+0x124>)
  54946. 80169c2: 22e5 movs r2, #229 @ 0xe5
  54947. 80169c4: 4943 ldr r1, [pc, #268] @ (8016ad4 <recv_udp+0x128>)
  54948. 80169c6: 4844 ldr r0, [pc, #272] @ (8016ad8 <recv_udp+0x12c>)
  54949. 80169c8: f013 fec8 bl 802a75c <iprintf>
  54950. LWIP_ASSERT("recv_udp must have an argument", arg != NULL);
  54951. 80169cc: 68fb ldr r3, [r7, #12]
  54952. 80169ce: 2b00 cmp r3, #0
  54953. 80169d0: d105 bne.n 80169de <recv_udp+0x32>
  54954. 80169d2: 4b3f ldr r3, [pc, #252] @ (8016ad0 <recv_udp+0x124>)
  54955. 80169d4: 22e6 movs r2, #230 @ 0xe6
  54956. 80169d6: 4941 ldr r1, [pc, #260] @ (8016adc <recv_udp+0x130>)
  54957. 80169d8: 483f ldr r0, [pc, #252] @ (8016ad8 <recv_udp+0x12c>)
  54958. 80169da: f013 febf bl 802a75c <iprintf>
  54959. conn = (struct netconn *)arg;
  54960. 80169de: 68fb ldr r3, [r7, #12]
  54961. 80169e0: 627b str r3, [r7, #36] @ 0x24
  54962. if (conn == NULL) {
  54963. 80169e2: 6a7b ldr r3, [r7, #36] @ 0x24
  54964. 80169e4: 2b00 cmp r3, #0
  54965. 80169e6: d103 bne.n 80169f0 <recv_udp+0x44>
  54966. pbuf_free(p);
  54967. 80169e8: 6878 ldr r0, [r7, #4]
  54968. 80169ea: f004 fc3f bl 801b26c <pbuf_free>
  54969. return;
  54970. 80169ee: e06b b.n 8016ac8 <recv_udp+0x11c>
  54971. }
  54972. LWIP_ASSERT("recv_udp: recv for wrong pcb!", conn->pcb.udp == pcb);
  54973. 80169f0: 6a7b ldr r3, [r7, #36] @ 0x24
  54974. 80169f2: 685b ldr r3, [r3, #4]
  54975. 80169f4: 68ba ldr r2, [r7, #8]
  54976. 80169f6: 429a cmp r2, r3
  54977. 80169f8: d005 beq.n 8016a06 <recv_udp+0x5a>
  54978. 80169fa: 4b35 ldr r3, [pc, #212] @ (8016ad0 <recv_udp+0x124>)
  54979. 80169fc: 22ee movs r2, #238 @ 0xee
  54980. 80169fe: 4938 ldr r1, [pc, #224] @ (8016ae0 <recv_udp+0x134>)
  54981. 8016a00: 4835 ldr r0, [pc, #212] @ (8016ad8 <recv_udp+0x12c>)
  54982. 8016a02: f013 feab bl 802a75c <iprintf>
  54983. #if LWIP_SO_RCVBUF
  54984. SYS_ARCH_GET(conn->recv_avail, recv_avail);
  54985. 8016a06: f010 fc13 bl 8027230 <sys_arch_protect>
  54986. 8016a0a: 6238 str r0, [r7, #32]
  54987. 8016a0c: 6a7b ldr r3, [r7, #36] @ 0x24
  54988. 8016a0e: 6a5b ldr r3, [r3, #36] @ 0x24
  54989. 8016a10: 61fb str r3, [r7, #28]
  54990. 8016a12: 6a38 ldr r0, [r7, #32]
  54991. 8016a14: f010 fc1a bl 802724c <sys_arch_unprotect>
  54992. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox) ||
  54993. 8016a18: 6a7b ldr r3, [r7, #36] @ 0x24
  54994. 8016a1a: 3310 adds r3, #16
  54995. 8016a1c: 4618 mov r0, r3
  54996. 8016a1e: f010 fafd bl 802701c <sys_mbox_valid>
  54997. 8016a22: 4603 mov r3, r0
  54998. 8016a24: 2b00 cmp r3, #0
  54999. 8016a26: d008 beq.n 8016a3a <recv_udp+0x8e>
  55000. ((recv_avail + (int)(p->tot_len)) > conn->recv_bufsize)) {
  55001. 8016a28: 687b ldr r3, [r7, #4]
  55002. 8016a2a: 891b ldrh r3, [r3, #8]
  55003. 8016a2c: 461a mov r2, r3
  55004. 8016a2e: 69fb ldr r3, [r7, #28]
  55005. 8016a30: 441a add r2, r3
  55006. 8016a32: 6a7b ldr r3, [r7, #36] @ 0x24
  55007. 8016a34: 6a1b ldr r3, [r3, #32]
  55008. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox) ||
  55009. 8016a36: 429a cmp r2, r3
  55010. 8016a38: dd03 ble.n 8016a42 <recv_udp+0x96>
  55011. #else /* LWIP_SO_RCVBUF */
  55012. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox)) {
  55013. #endif /* LWIP_SO_RCVBUF */
  55014. pbuf_free(p);
  55015. 8016a3a: 6878 ldr r0, [r7, #4]
  55016. 8016a3c: f004 fc16 bl 801b26c <pbuf_free>
  55017. return;
  55018. 8016a40: e042 b.n 8016ac8 <recv_udp+0x11c>
  55019. }
  55020. buf = (struct netbuf *)memp_malloc(MEMP_NETBUF);
  55021. 8016a42: 2006 movs r0, #6
  55022. 8016a44: f003 fcae bl 801a3a4 <memp_malloc>
  55023. 8016a48: 61b8 str r0, [r7, #24]
  55024. if (buf == NULL) {
  55025. 8016a4a: 69bb ldr r3, [r7, #24]
  55026. 8016a4c: 2b00 cmp r3, #0
  55027. 8016a4e: d103 bne.n 8016a58 <recv_udp+0xac>
  55028. pbuf_free(p);
  55029. 8016a50: 6878 ldr r0, [r7, #4]
  55030. 8016a52: f004 fc0b bl 801b26c <pbuf_free>
  55031. return;
  55032. 8016a56: e037 b.n 8016ac8 <recv_udp+0x11c>
  55033. } else {
  55034. buf->p = p;
  55035. 8016a58: 69bb ldr r3, [r7, #24]
  55036. 8016a5a: 687a ldr r2, [r7, #4]
  55037. 8016a5c: 601a str r2, [r3, #0]
  55038. buf->ptr = p;
  55039. 8016a5e: 69bb ldr r3, [r7, #24]
  55040. 8016a60: 687a ldr r2, [r7, #4]
  55041. 8016a62: 605a str r2, [r3, #4]
  55042. ip_addr_set(&buf->addr, addr);
  55043. 8016a64: 683b ldr r3, [r7, #0]
  55044. 8016a66: 2b00 cmp r3, #0
  55045. 8016a68: d002 beq.n 8016a70 <recv_udp+0xc4>
  55046. 8016a6a: 683b ldr r3, [r7, #0]
  55047. 8016a6c: 681b ldr r3, [r3, #0]
  55048. 8016a6e: e000 b.n 8016a72 <recv_udp+0xc6>
  55049. 8016a70: 2300 movs r3, #0
  55050. 8016a72: 69ba ldr r2, [r7, #24]
  55051. 8016a74: 6093 str r3, [r2, #8]
  55052. buf->port = port;
  55053. 8016a76: 69bb ldr r3, [r7, #24]
  55054. 8016a78: 8e3a ldrh r2, [r7, #48] @ 0x30
  55055. 8016a7a: 819a strh r2, [r3, #12]
  55056. buf->toport_chksum = udphdr->dest;
  55057. }
  55058. #endif /* LWIP_NETBUF_RECVINFO */
  55059. }
  55060. len = p->tot_len;
  55061. 8016a7c: 687b ldr r3, [r7, #4]
  55062. 8016a7e: 891b ldrh r3, [r3, #8]
  55063. 8016a80: 82fb strh r3, [r7, #22]
  55064. if (sys_mbox_trypost(&conn->recvmbox, buf) != ERR_OK) {
  55065. 8016a82: 6a7b ldr r3, [r7, #36] @ 0x24
  55066. 8016a84: 3310 adds r3, #16
  55067. 8016a86: 69b9 ldr r1, [r7, #24]
  55068. 8016a88: 4618 mov r0, r3
  55069. 8016a8a: f010 fa65 bl 8026f58 <sys_mbox_trypost>
  55070. 8016a8e: 4603 mov r3, r0
  55071. 8016a90: 2b00 cmp r3, #0
  55072. 8016a92: d003 beq.n 8016a9c <recv_udp+0xf0>
  55073. netbuf_delete(buf);
  55074. 8016a94: 69b8 ldr r0, [r7, #24]
  55075. 8016a96: f001 fbff bl 8018298 <netbuf_delete>
  55076. return;
  55077. 8016a9a: e015 b.n 8016ac8 <recv_udp+0x11c>
  55078. } else {
  55079. #if LWIP_SO_RCVBUF
  55080. SYS_ARCH_INC(conn->recv_avail, len);
  55081. 8016a9c: f010 fbc8 bl 8027230 <sys_arch_protect>
  55082. 8016aa0: 6138 str r0, [r7, #16]
  55083. 8016aa2: 6a7b ldr r3, [r7, #36] @ 0x24
  55084. 8016aa4: 6a5a ldr r2, [r3, #36] @ 0x24
  55085. 8016aa6: 8afb ldrh r3, [r7, #22]
  55086. 8016aa8: 441a add r2, r3
  55087. 8016aaa: 6a7b ldr r3, [r7, #36] @ 0x24
  55088. 8016aac: 625a str r2, [r3, #36] @ 0x24
  55089. 8016aae: 6938 ldr r0, [r7, #16]
  55090. 8016ab0: f010 fbcc bl 802724c <sys_arch_unprotect>
  55091. #endif /* LWIP_SO_RCVBUF */
  55092. /* Register event with callback */
  55093. API_EVENT(conn, NETCONN_EVT_RCVPLUS, len);
  55094. 8016ab4: 6a7b ldr r3, [r7, #36] @ 0x24
  55095. 8016ab6: 6b1b ldr r3, [r3, #48] @ 0x30
  55096. 8016ab8: 2b00 cmp r3, #0
  55097. 8016aba: d005 beq.n 8016ac8 <recv_udp+0x11c>
  55098. 8016abc: 6a7b ldr r3, [r7, #36] @ 0x24
  55099. 8016abe: 6b1b ldr r3, [r3, #48] @ 0x30
  55100. 8016ac0: 8afa ldrh r2, [r7, #22]
  55101. 8016ac2: 2100 movs r1, #0
  55102. 8016ac4: 6a78 ldr r0, [r7, #36] @ 0x24
  55103. 8016ac6: 4798 blx r3
  55104. }
  55105. }
  55106. 8016ac8: 3728 adds r7, #40 @ 0x28
  55107. 8016aca: 46bd mov sp, r7
  55108. 8016acc: bd80 pop {r7, pc}
  55109. 8016ace: bf00 nop
  55110. 8016ad0: 0802ddc0 .word 0x0802ddc0
  55111. 8016ad4: 0802de38 .word 0x0802de38
  55112. 8016ad8: 0802de04 .word 0x0802de04
  55113. 8016adc: 0802de5c .word 0x0802de5c
  55114. 8016ae0: 0802de7c .word 0x0802de7c
  55115. 08016ae4 <recv_tcp>:
  55116. *
  55117. * @see tcp.h (struct tcp_pcb.recv) for parameters and return value
  55118. */
  55119. static err_t
  55120. recv_tcp(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
  55121. {
  55122. 8016ae4: b580 push {r7, lr}
  55123. 8016ae6: b088 sub sp, #32
  55124. 8016ae8: af00 add r7, sp, #0
  55125. 8016aea: 60f8 str r0, [r7, #12]
  55126. 8016aec: 60b9 str r1, [r7, #8]
  55127. 8016aee: 607a str r2, [r7, #4]
  55128. 8016af0: 70fb strb r3, [r7, #3]
  55129. struct netconn *conn;
  55130. u16_t len;
  55131. void *msg;
  55132. LWIP_UNUSED_ARG(pcb);
  55133. LWIP_ASSERT("recv_tcp must have a pcb argument", pcb != NULL);
  55134. 8016af2: 68bb ldr r3, [r7, #8]
  55135. 8016af4: 2b00 cmp r3, #0
  55136. 8016af6: d106 bne.n 8016b06 <recv_tcp+0x22>
  55137. 8016af8: 4b3c ldr r3, [pc, #240] @ (8016bec <recv_tcp+0x108>)
  55138. 8016afa: f44f 7296 mov.w r2, #300 @ 0x12c
  55139. 8016afe: 493c ldr r1, [pc, #240] @ (8016bf0 <recv_tcp+0x10c>)
  55140. 8016b00: 483c ldr r0, [pc, #240] @ (8016bf4 <recv_tcp+0x110>)
  55141. 8016b02: f013 fe2b bl 802a75c <iprintf>
  55142. LWIP_ASSERT("recv_tcp must have an argument", arg != NULL);
  55143. 8016b06: 68fb ldr r3, [r7, #12]
  55144. 8016b08: 2b00 cmp r3, #0
  55145. 8016b0a: d106 bne.n 8016b1a <recv_tcp+0x36>
  55146. 8016b0c: 4b37 ldr r3, [pc, #220] @ (8016bec <recv_tcp+0x108>)
  55147. 8016b0e: f240 122d movw r2, #301 @ 0x12d
  55148. 8016b12: 4939 ldr r1, [pc, #228] @ (8016bf8 <recv_tcp+0x114>)
  55149. 8016b14: 4837 ldr r0, [pc, #220] @ (8016bf4 <recv_tcp+0x110>)
  55150. 8016b16: f013 fe21 bl 802a75c <iprintf>
  55151. LWIP_ASSERT("err != ERR_OK unhandled", err == ERR_OK);
  55152. 8016b1a: f997 3003 ldrsb.w r3, [r7, #3]
  55153. 8016b1e: 2b00 cmp r3, #0
  55154. 8016b20: d006 beq.n 8016b30 <recv_tcp+0x4c>
  55155. 8016b22: 4b32 ldr r3, [pc, #200] @ (8016bec <recv_tcp+0x108>)
  55156. 8016b24: f44f 7297 mov.w r2, #302 @ 0x12e
  55157. 8016b28: 4934 ldr r1, [pc, #208] @ (8016bfc <recv_tcp+0x118>)
  55158. 8016b2a: 4832 ldr r0, [pc, #200] @ (8016bf4 <recv_tcp+0x110>)
  55159. 8016b2c: f013 fe16 bl 802a75c <iprintf>
  55160. LWIP_UNUSED_ARG(err); /* for LWIP_NOASSERT */
  55161. conn = (struct netconn *)arg;
  55162. 8016b30: 68fb ldr r3, [r7, #12]
  55163. 8016b32: 617b str r3, [r7, #20]
  55164. if (conn == NULL) {
  55165. 8016b34: 697b ldr r3, [r7, #20]
  55166. 8016b36: 2b00 cmp r3, #0
  55167. 8016b38: d102 bne.n 8016b40 <recv_tcp+0x5c>
  55168. return ERR_VAL;
  55169. 8016b3a: f06f 0305 mvn.w r3, #5
  55170. 8016b3e: e051 b.n 8016be4 <recv_tcp+0x100>
  55171. }
  55172. LWIP_ASSERT("recv_tcp: recv for wrong pcb!", conn->pcb.tcp == pcb);
  55173. 8016b40: 697b ldr r3, [r7, #20]
  55174. 8016b42: 685b ldr r3, [r3, #4]
  55175. 8016b44: 68ba ldr r2, [r7, #8]
  55176. 8016b46: 429a cmp r2, r3
  55177. 8016b48: d006 beq.n 8016b58 <recv_tcp+0x74>
  55178. 8016b4a: 4b28 ldr r3, [pc, #160] @ (8016bec <recv_tcp+0x108>)
  55179. 8016b4c: f240 1235 movw r2, #309 @ 0x135
  55180. 8016b50: 492b ldr r1, [pc, #172] @ (8016c00 <recv_tcp+0x11c>)
  55181. 8016b52: 4828 ldr r0, [pc, #160] @ (8016bf4 <recv_tcp+0x110>)
  55182. 8016b54: f013 fe02 bl 802a75c <iprintf>
  55183. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox)) {
  55184. 8016b58: 697b ldr r3, [r7, #20]
  55185. 8016b5a: 3310 adds r3, #16
  55186. 8016b5c: 4618 mov r0, r3
  55187. 8016b5e: f010 fa5d bl 802701c <sys_mbox_valid>
  55188. 8016b62: 4603 mov r3, r0
  55189. 8016b64: 2b00 cmp r3, #0
  55190. 8016b66: d10d bne.n 8016b84 <recv_tcp+0xa0>
  55191. /* recvmbox already deleted */
  55192. if (p != NULL) {
  55193. 8016b68: 687b ldr r3, [r7, #4]
  55194. 8016b6a: 2b00 cmp r3, #0
  55195. 8016b6c: d008 beq.n 8016b80 <recv_tcp+0x9c>
  55196. tcp_recved(pcb, p->tot_len);
  55197. 8016b6e: 687b ldr r3, [r7, #4]
  55198. 8016b70: 891b ldrh r3, [r3, #8]
  55199. 8016b72: 4619 mov r1, r3
  55200. 8016b74: 68b8 ldr r0, [r7, #8]
  55201. 8016b76: f005 f9e5 bl 801bf44 <tcp_recved>
  55202. pbuf_free(p);
  55203. 8016b7a: 6878 ldr r0, [r7, #4]
  55204. 8016b7c: f004 fb76 bl 801b26c <pbuf_free>
  55205. }
  55206. return ERR_OK;
  55207. 8016b80: 2300 movs r3, #0
  55208. 8016b82: e02f b.n 8016be4 <recv_tcp+0x100>
  55209. }
  55210. /* Unlike for UDP or RAW pcbs, don't check for available space
  55211. using recv_avail since that could break the connection
  55212. (data is already ACKed) */
  55213. if (p != NULL) {
  55214. 8016b84: 687b ldr r3, [r7, #4]
  55215. 8016b86: 2b00 cmp r3, #0
  55216. 8016b88: d005 beq.n 8016b96 <recv_tcp+0xb2>
  55217. msg = p;
  55218. 8016b8a: 687b ldr r3, [r7, #4]
  55219. 8016b8c: 61bb str r3, [r7, #24]
  55220. len = p->tot_len;
  55221. 8016b8e: 687b ldr r3, [r7, #4]
  55222. 8016b90: 891b ldrh r3, [r3, #8]
  55223. 8016b92: 83fb strh r3, [r7, #30]
  55224. 8016b94: e003 b.n 8016b9e <recv_tcp+0xba>
  55225. } else {
  55226. msg = LWIP_CONST_CAST(void *, &netconn_closed);
  55227. 8016b96: 4b1b ldr r3, [pc, #108] @ (8016c04 <recv_tcp+0x120>)
  55228. 8016b98: 61bb str r3, [r7, #24]
  55229. len = 0;
  55230. 8016b9a: 2300 movs r3, #0
  55231. 8016b9c: 83fb strh r3, [r7, #30]
  55232. }
  55233. if (sys_mbox_trypost(&conn->recvmbox, msg) != ERR_OK) {
  55234. 8016b9e: 697b ldr r3, [r7, #20]
  55235. 8016ba0: 3310 adds r3, #16
  55236. 8016ba2: 69b9 ldr r1, [r7, #24]
  55237. 8016ba4: 4618 mov r0, r3
  55238. 8016ba6: f010 f9d7 bl 8026f58 <sys_mbox_trypost>
  55239. 8016baa: 4603 mov r3, r0
  55240. 8016bac: 2b00 cmp r3, #0
  55241. 8016bae: d002 beq.n 8016bb6 <recv_tcp+0xd2>
  55242. /* don't deallocate p: it is presented to us later again from tcp_fasttmr! */
  55243. return ERR_MEM;
  55244. 8016bb0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  55245. 8016bb4: e016 b.n 8016be4 <recv_tcp+0x100>
  55246. } else {
  55247. #if LWIP_SO_RCVBUF
  55248. SYS_ARCH_INC(conn->recv_avail, len);
  55249. 8016bb6: f010 fb3b bl 8027230 <sys_arch_protect>
  55250. 8016bba: 6138 str r0, [r7, #16]
  55251. 8016bbc: 697b ldr r3, [r7, #20]
  55252. 8016bbe: 6a5a ldr r2, [r3, #36] @ 0x24
  55253. 8016bc0: 8bfb ldrh r3, [r7, #30]
  55254. 8016bc2: 441a add r2, r3
  55255. 8016bc4: 697b ldr r3, [r7, #20]
  55256. 8016bc6: 625a str r2, [r3, #36] @ 0x24
  55257. 8016bc8: 6938 ldr r0, [r7, #16]
  55258. 8016bca: f010 fb3f bl 802724c <sys_arch_unprotect>
  55259. #endif /* LWIP_SO_RCVBUF */
  55260. /* Register event with callback */
  55261. API_EVENT(conn, NETCONN_EVT_RCVPLUS, len);
  55262. 8016bce: 697b ldr r3, [r7, #20]
  55263. 8016bd0: 6b1b ldr r3, [r3, #48] @ 0x30
  55264. 8016bd2: 2b00 cmp r3, #0
  55265. 8016bd4: d005 beq.n 8016be2 <recv_tcp+0xfe>
  55266. 8016bd6: 697b ldr r3, [r7, #20]
  55267. 8016bd8: 6b1b ldr r3, [r3, #48] @ 0x30
  55268. 8016bda: 8bfa ldrh r2, [r7, #30]
  55269. 8016bdc: 2100 movs r1, #0
  55270. 8016bde: 6978 ldr r0, [r7, #20]
  55271. 8016be0: 4798 blx r3
  55272. }
  55273. return ERR_OK;
  55274. 8016be2: 2300 movs r3, #0
  55275. }
  55276. 8016be4: 4618 mov r0, r3
  55277. 8016be6: 3720 adds r7, #32
  55278. 8016be8: 46bd mov sp, r7
  55279. 8016bea: bd80 pop {r7, pc}
  55280. 8016bec: 0802ddc0 .word 0x0802ddc0
  55281. 8016bf0: 0802de9c .word 0x0802de9c
  55282. 8016bf4: 0802de04 .word 0x0802de04
  55283. 8016bf8: 0802dec0 .word 0x0802dec0
  55284. 8016bfc: 0802dee0 .word 0x0802dee0
  55285. 8016c00: 0802def8 .word 0x0802def8
  55286. 8016c04: 080319be .word 0x080319be
  55287. 08016c08 <poll_tcp>:
  55288. *
  55289. * @see tcp.h (struct tcp_pcb.poll) for parameters and return value
  55290. */
  55291. static err_t
  55292. poll_tcp(void *arg, struct tcp_pcb *pcb)
  55293. {
  55294. 8016c08: b580 push {r7, lr}
  55295. 8016c0a: b084 sub sp, #16
  55296. 8016c0c: af00 add r7, sp, #0
  55297. 8016c0e: 6078 str r0, [r7, #4]
  55298. 8016c10: 6039 str r1, [r7, #0]
  55299. struct netconn *conn = (struct netconn *)arg;
  55300. 8016c12: 687b ldr r3, [r7, #4]
  55301. 8016c14: 60fb str r3, [r7, #12]
  55302. LWIP_UNUSED_ARG(pcb);
  55303. LWIP_ASSERT("conn != NULL", (conn != NULL));
  55304. 8016c16: 68fb ldr r3, [r7, #12]
  55305. 8016c18: 2b00 cmp r3, #0
  55306. 8016c1a: d106 bne.n 8016c2a <poll_tcp+0x22>
  55307. 8016c1c: 4b2b ldr r3, [pc, #172] @ (8016ccc <poll_tcp+0xc4>)
  55308. 8016c1e: f44f 72b5 mov.w r2, #362 @ 0x16a
  55309. 8016c22: 492b ldr r1, [pc, #172] @ (8016cd0 <poll_tcp+0xc8>)
  55310. 8016c24: 482b ldr r0, [pc, #172] @ (8016cd4 <poll_tcp+0xcc>)
  55311. 8016c26: f013 fd99 bl 802a75c <iprintf>
  55312. if (conn->state == NETCONN_WRITE) {
  55313. 8016c2a: 68fb ldr r3, [r7, #12]
  55314. 8016c2c: 785b ldrb r3, [r3, #1]
  55315. 8016c2e: 2b01 cmp r3, #1
  55316. 8016c30: d104 bne.n 8016c3c <poll_tcp+0x34>
  55317. lwip_netconn_do_writemore(conn WRITE_DELAYED);
  55318. 8016c32: 2101 movs r1, #1
  55319. 8016c34: 68f8 ldr r0, [r7, #12]
  55320. 8016c36: f000 ffab bl 8017b90 <lwip_netconn_do_writemore>
  55321. 8016c3a: e016 b.n 8016c6a <poll_tcp+0x62>
  55322. } else if (conn->state == NETCONN_CLOSE) {
  55323. 8016c3c: 68fb ldr r3, [r7, #12]
  55324. 8016c3e: 785b ldrb r3, [r3, #1]
  55325. 8016c40: 2b04 cmp r3, #4
  55326. 8016c42: d112 bne.n 8016c6a <poll_tcp+0x62>
  55327. #if !LWIP_SO_SNDTIMEO && !LWIP_SO_LINGER
  55328. if (conn->current_msg && conn->current_msg->msg.sd.polls_left) {
  55329. 8016c44: 68fb ldr r3, [r7, #12]
  55330. 8016c46: 6adb ldr r3, [r3, #44] @ 0x2c
  55331. 8016c48: 2b00 cmp r3, #0
  55332. 8016c4a: d00a beq.n 8016c62 <poll_tcp+0x5a>
  55333. 8016c4c: 68fb ldr r3, [r7, #12]
  55334. 8016c4e: 6adb ldr r3, [r3, #44] @ 0x2c
  55335. 8016c50: 7a5b ldrb r3, [r3, #9]
  55336. 8016c52: 2b00 cmp r3, #0
  55337. 8016c54: d005 beq.n 8016c62 <poll_tcp+0x5a>
  55338. conn->current_msg->msg.sd.polls_left--;
  55339. 8016c56: 68fb ldr r3, [r7, #12]
  55340. 8016c58: 6adb ldr r3, [r3, #44] @ 0x2c
  55341. 8016c5a: 7a5a ldrb r2, [r3, #9]
  55342. 8016c5c: 3a01 subs r2, #1
  55343. 8016c5e: b2d2 uxtb r2, r2
  55344. 8016c60: 725a strb r2, [r3, #9]
  55345. }
  55346. #endif /* !LWIP_SO_SNDTIMEO && !LWIP_SO_LINGER */
  55347. lwip_netconn_do_close_internal(conn WRITE_DELAYED);
  55348. 8016c62: 2101 movs r1, #1
  55349. 8016c64: 68f8 ldr r0, [r7, #12]
  55350. 8016c66: f000 fb53 bl 8017310 <lwip_netconn_do_close_internal>
  55351. }
  55352. /* @todo: implement connect timeout here? */
  55353. /* Did a nonblocking write fail before? Then check available write-space. */
  55354. if (conn->flags & NETCONN_FLAG_CHECK_WRITESPACE) {
  55355. 8016c6a: 68fb ldr r3, [r7, #12]
  55356. 8016c6c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55357. 8016c70: f003 0310 and.w r3, r3, #16
  55358. 8016c74: 2b00 cmp r3, #0
  55359. 8016c76: d024 beq.n 8016cc2 <poll_tcp+0xba>
  55360. /* If the queued byte- or pbuf-count drops below the configured low-water limit,
  55361. let select mark this pcb as writable again. */
  55362. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  55363. 8016c78: 68fb ldr r3, [r7, #12]
  55364. 8016c7a: 685b ldr r3, [r3, #4]
  55365. 8016c7c: 2b00 cmp r3, #0
  55366. 8016c7e: d020 beq.n 8016cc2 <poll_tcp+0xba>
  55367. 8016c80: 68fb ldr r3, [r7, #12]
  55368. 8016c82: 685b ldr r3, [r3, #4]
  55369. 8016c84: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  55370. 8016c88: f640 3269 movw r2, #2921 @ 0xb69
  55371. 8016c8c: 4293 cmp r3, r2
  55372. 8016c8e: d918 bls.n 8016cc2 <poll_tcp+0xba>
  55373. (tcp_sndqueuelen(conn->pcb.tcp) < TCP_SNDQUEUELOWAT)) {
  55374. 8016c90: 68fb ldr r3, [r7, #12]
  55375. 8016c92: 685b ldr r3, [r3, #4]
  55376. 8016c94: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  55377. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  55378. 8016c98: 2b07 cmp r3, #7
  55379. 8016c9a: d812 bhi.n 8016cc2 <poll_tcp+0xba>
  55380. netconn_clear_flags(conn, NETCONN_FLAG_CHECK_WRITESPACE);
  55381. 8016c9c: 68fb ldr r3, [r7, #12]
  55382. 8016c9e: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55383. 8016ca2: f023 0310 bic.w r3, r3, #16
  55384. 8016ca6: b2da uxtb r2, r3
  55385. 8016ca8: 68fb ldr r3, [r7, #12]
  55386. 8016caa: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55387. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  55388. 8016cae: 68fb ldr r3, [r7, #12]
  55389. 8016cb0: 6b1b ldr r3, [r3, #48] @ 0x30
  55390. 8016cb2: 2b00 cmp r3, #0
  55391. 8016cb4: d005 beq.n 8016cc2 <poll_tcp+0xba>
  55392. 8016cb6: 68fb ldr r3, [r7, #12]
  55393. 8016cb8: 6b1b ldr r3, [r3, #48] @ 0x30
  55394. 8016cba: 2200 movs r2, #0
  55395. 8016cbc: 2102 movs r1, #2
  55396. 8016cbe: 68f8 ldr r0, [r7, #12]
  55397. 8016cc0: 4798 blx r3
  55398. }
  55399. }
  55400. return ERR_OK;
  55401. 8016cc2: 2300 movs r3, #0
  55402. }
  55403. 8016cc4: 4618 mov r0, r3
  55404. 8016cc6: 3710 adds r7, #16
  55405. 8016cc8: 46bd mov sp, r7
  55406. 8016cca: bd80 pop {r7, pc}
  55407. 8016ccc: 0802ddc0 .word 0x0802ddc0
  55408. 8016cd0: 0802df18 .word 0x0802df18
  55409. 8016cd4: 0802de04 .word 0x0802de04
  55410. 08016cd8 <sent_tcp>:
  55411. *
  55412. * @see tcp.h (struct tcp_pcb.sent) for parameters and return value
  55413. */
  55414. static err_t
  55415. sent_tcp(void *arg, struct tcp_pcb *pcb, u16_t len)
  55416. {
  55417. 8016cd8: b580 push {r7, lr}
  55418. 8016cda: b086 sub sp, #24
  55419. 8016cdc: af00 add r7, sp, #0
  55420. 8016cde: 60f8 str r0, [r7, #12]
  55421. 8016ce0: 60b9 str r1, [r7, #8]
  55422. 8016ce2: 4613 mov r3, r2
  55423. 8016ce4: 80fb strh r3, [r7, #6]
  55424. struct netconn *conn = (struct netconn *)arg;
  55425. 8016ce6: 68fb ldr r3, [r7, #12]
  55426. 8016ce8: 617b str r3, [r7, #20]
  55427. LWIP_UNUSED_ARG(pcb);
  55428. LWIP_ASSERT("conn != NULL", (conn != NULL));
  55429. 8016cea: 697b ldr r3, [r7, #20]
  55430. 8016cec: 2b00 cmp r3, #0
  55431. 8016cee: d106 bne.n 8016cfe <sent_tcp+0x26>
  55432. 8016cf0: 4b22 ldr r3, [pc, #136] @ (8016d7c <sent_tcp+0xa4>)
  55433. 8016cf2: f240 1293 movw r2, #403 @ 0x193
  55434. 8016cf6: 4922 ldr r1, [pc, #136] @ (8016d80 <sent_tcp+0xa8>)
  55435. 8016cf8: 4822 ldr r0, [pc, #136] @ (8016d84 <sent_tcp+0xac>)
  55436. 8016cfa: f013 fd2f bl 802a75c <iprintf>
  55437. if (conn) {
  55438. 8016cfe: 697b ldr r3, [r7, #20]
  55439. 8016d00: 2b00 cmp r3, #0
  55440. 8016d02: d035 beq.n 8016d70 <sent_tcp+0x98>
  55441. if (conn->state == NETCONN_WRITE) {
  55442. 8016d04: 697b ldr r3, [r7, #20]
  55443. 8016d06: 785b ldrb r3, [r3, #1]
  55444. 8016d08: 2b01 cmp r3, #1
  55445. 8016d0a: d104 bne.n 8016d16 <sent_tcp+0x3e>
  55446. lwip_netconn_do_writemore(conn WRITE_DELAYED);
  55447. 8016d0c: 2101 movs r1, #1
  55448. 8016d0e: 6978 ldr r0, [r7, #20]
  55449. 8016d10: f000 ff3e bl 8017b90 <lwip_netconn_do_writemore>
  55450. 8016d14: e007 b.n 8016d26 <sent_tcp+0x4e>
  55451. } else if (conn->state == NETCONN_CLOSE) {
  55452. 8016d16: 697b ldr r3, [r7, #20]
  55453. 8016d18: 785b ldrb r3, [r3, #1]
  55454. 8016d1a: 2b04 cmp r3, #4
  55455. 8016d1c: d103 bne.n 8016d26 <sent_tcp+0x4e>
  55456. lwip_netconn_do_close_internal(conn WRITE_DELAYED);
  55457. 8016d1e: 2101 movs r1, #1
  55458. 8016d20: 6978 ldr r0, [r7, #20]
  55459. 8016d22: f000 faf5 bl 8017310 <lwip_netconn_do_close_internal>
  55460. }
  55461. /* If the queued byte- or pbuf-count drops below the configured low-water limit,
  55462. let select mark this pcb as writable again. */
  55463. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  55464. 8016d26: 697b ldr r3, [r7, #20]
  55465. 8016d28: 685b ldr r3, [r3, #4]
  55466. 8016d2a: 2b00 cmp r3, #0
  55467. 8016d2c: d020 beq.n 8016d70 <sent_tcp+0x98>
  55468. 8016d2e: 697b ldr r3, [r7, #20]
  55469. 8016d30: 685b ldr r3, [r3, #4]
  55470. 8016d32: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  55471. 8016d36: f640 3269 movw r2, #2921 @ 0xb69
  55472. 8016d3a: 4293 cmp r3, r2
  55473. 8016d3c: d918 bls.n 8016d70 <sent_tcp+0x98>
  55474. (tcp_sndqueuelen(conn->pcb.tcp) < TCP_SNDQUEUELOWAT)) {
  55475. 8016d3e: 697b ldr r3, [r7, #20]
  55476. 8016d40: 685b ldr r3, [r3, #4]
  55477. 8016d42: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  55478. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  55479. 8016d46: 2b07 cmp r3, #7
  55480. 8016d48: d812 bhi.n 8016d70 <sent_tcp+0x98>
  55481. netconn_clear_flags(conn, NETCONN_FLAG_CHECK_WRITESPACE);
  55482. 8016d4a: 697b ldr r3, [r7, #20]
  55483. 8016d4c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55484. 8016d50: f023 0310 bic.w r3, r3, #16
  55485. 8016d54: b2da uxtb r2, r3
  55486. 8016d56: 697b ldr r3, [r7, #20]
  55487. 8016d58: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55488. API_EVENT(conn, NETCONN_EVT_SENDPLUS, len);
  55489. 8016d5c: 697b ldr r3, [r7, #20]
  55490. 8016d5e: 6b1b ldr r3, [r3, #48] @ 0x30
  55491. 8016d60: 2b00 cmp r3, #0
  55492. 8016d62: d005 beq.n 8016d70 <sent_tcp+0x98>
  55493. 8016d64: 697b ldr r3, [r7, #20]
  55494. 8016d66: 6b1b ldr r3, [r3, #48] @ 0x30
  55495. 8016d68: 88fa ldrh r2, [r7, #6]
  55496. 8016d6a: 2102 movs r1, #2
  55497. 8016d6c: 6978 ldr r0, [r7, #20]
  55498. 8016d6e: 4798 blx r3
  55499. }
  55500. }
  55501. return ERR_OK;
  55502. 8016d70: 2300 movs r3, #0
  55503. }
  55504. 8016d72: 4618 mov r0, r3
  55505. 8016d74: 3718 adds r7, #24
  55506. 8016d76: 46bd mov sp, r7
  55507. 8016d78: bd80 pop {r7, pc}
  55508. 8016d7a: bf00 nop
  55509. 8016d7c: 0802ddc0 .word 0x0802ddc0
  55510. 8016d80: 0802df18 .word 0x0802df18
  55511. 8016d84: 0802de04 .word 0x0802de04
  55512. 08016d88 <err_tcp>:
  55513. *
  55514. * @see tcp.h (struct tcp_pcb.err) for parameters
  55515. */
  55516. static void
  55517. err_tcp(void *arg, err_t err)
  55518. {
  55519. 8016d88: b580 push {r7, lr}
  55520. 8016d8a: b088 sub sp, #32
  55521. 8016d8c: af00 add r7, sp, #0
  55522. 8016d8e: 6078 str r0, [r7, #4]
  55523. 8016d90: 460b mov r3, r1
  55524. 8016d92: 70fb strb r3, [r7, #3]
  55525. struct netconn *conn;
  55526. enum netconn_state old_state;
  55527. void *mbox_msg;
  55528. SYS_ARCH_DECL_PROTECT(lev);
  55529. conn = (struct netconn *)arg;
  55530. 8016d94: 687b ldr r3, [r7, #4]
  55531. 8016d96: 61fb str r3, [r7, #28]
  55532. LWIP_ASSERT("conn != NULL", (conn != NULL));
  55533. 8016d98: 69fb ldr r3, [r7, #28]
  55534. 8016d9a: 2b00 cmp r3, #0
  55535. 8016d9c: d106 bne.n 8016dac <err_tcp+0x24>
  55536. 8016d9e: 4b61 ldr r3, [pc, #388] @ (8016f24 <err_tcp+0x19c>)
  55537. 8016da0: f44f 72dc mov.w r2, #440 @ 0x1b8
  55538. 8016da4: 4960 ldr r1, [pc, #384] @ (8016f28 <err_tcp+0x1a0>)
  55539. 8016da6: 4861 ldr r0, [pc, #388] @ (8016f2c <err_tcp+0x1a4>)
  55540. 8016da8: f013 fcd8 bl 802a75c <iprintf>
  55541. SYS_ARCH_PROTECT(lev);
  55542. 8016dac: f010 fa40 bl 8027230 <sys_arch_protect>
  55543. 8016db0: 61b8 str r0, [r7, #24]
  55544. /* when err is called, the pcb is deallocated, so delete the reference */
  55545. conn->pcb.tcp = NULL;
  55546. 8016db2: 69fb ldr r3, [r7, #28]
  55547. 8016db4: 2200 movs r2, #0
  55548. 8016db6: 605a str r2, [r3, #4]
  55549. /* store pending error */
  55550. conn->pending_err = err;
  55551. 8016db8: 69fb ldr r3, [r7, #28]
  55552. 8016dba: 78fa ldrb r2, [r7, #3]
  55553. 8016dbc: 721a strb r2, [r3, #8]
  55554. /* prevent application threads from blocking on 'recvmbox'/'acceptmbox' */
  55555. conn->flags |= NETCONN_FLAG_MBOXCLOSED;
  55556. 8016dbe: 69fb ldr r3, [r7, #28]
  55557. 8016dc0: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55558. 8016dc4: f043 0301 orr.w r3, r3, #1
  55559. 8016dc8: b2da uxtb r2, r3
  55560. 8016dca: 69fb ldr r3, [r7, #28]
  55561. 8016dcc: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55562. /* reset conn->state now before waking up other threads */
  55563. old_state = conn->state;
  55564. 8016dd0: 69fb ldr r3, [r7, #28]
  55565. 8016dd2: 785b ldrb r3, [r3, #1]
  55566. 8016dd4: 75fb strb r3, [r7, #23]
  55567. conn->state = NETCONN_NONE;
  55568. 8016dd6: 69fb ldr r3, [r7, #28]
  55569. 8016dd8: 2200 movs r2, #0
  55570. 8016dda: 705a strb r2, [r3, #1]
  55571. SYS_ARCH_UNPROTECT(lev);
  55572. 8016ddc: 69b8 ldr r0, [r7, #24]
  55573. 8016dde: f010 fa35 bl 802724c <sys_arch_unprotect>
  55574. /* Notify the user layer about a connection error. Used to signal select. */
  55575. API_EVENT(conn, NETCONN_EVT_ERROR, 0);
  55576. 8016de2: 69fb ldr r3, [r7, #28]
  55577. 8016de4: 6b1b ldr r3, [r3, #48] @ 0x30
  55578. 8016de6: 2b00 cmp r3, #0
  55579. 8016de8: d005 beq.n 8016df6 <err_tcp+0x6e>
  55580. 8016dea: 69fb ldr r3, [r7, #28]
  55581. 8016dec: 6b1b ldr r3, [r3, #48] @ 0x30
  55582. 8016dee: 2200 movs r2, #0
  55583. 8016df0: 2104 movs r1, #4
  55584. 8016df2: 69f8 ldr r0, [r7, #28]
  55585. 8016df4: 4798 blx r3
  55586. /* Try to release selects pending on 'read' or 'write', too.
  55587. They will get an error if they actually try to read or write. */
  55588. API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0);
  55589. 8016df6: 69fb ldr r3, [r7, #28]
  55590. 8016df8: 6b1b ldr r3, [r3, #48] @ 0x30
  55591. 8016dfa: 2b00 cmp r3, #0
  55592. 8016dfc: d005 beq.n 8016e0a <err_tcp+0x82>
  55593. 8016dfe: 69fb ldr r3, [r7, #28]
  55594. 8016e00: 6b1b ldr r3, [r3, #48] @ 0x30
  55595. 8016e02: 2200 movs r2, #0
  55596. 8016e04: 2100 movs r1, #0
  55597. 8016e06: 69f8 ldr r0, [r7, #28]
  55598. 8016e08: 4798 blx r3
  55599. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  55600. 8016e0a: 69fb ldr r3, [r7, #28]
  55601. 8016e0c: 6b1b ldr r3, [r3, #48] @ 0x30
  55602. 8016e0e: 2b00 cmp r3, #0
  55603. 8016e10: d005 beq.n 8016e1e <err_tcp+0x96>
  55604. 8016e12: 69fb ldr r3, [r7, #28]
  55605. 8016e14: 6b1b ldr r3, [r3, #48] @ 0x30
  55606. 8016e16: 2200 movs r2, #0
  55607. 8016e18: 2102 movs r1, #2
  55608. 8016e1a: 69f8 ldr r0, [r7, #28]
  55609. 8016e1c: 4798 blx r3
  55610. mbox_msg = lwip_netconn_err_to_msg(err);
  55611. 8016e1e: f997 3003 ldrsb.w r3, [r7, #3]
  55612. 8016e22: 4618 mov r0, r3
  55613. 8016e24: f7ff fd52 bl 80168cc <lwip_netconn_err_to_msg>
  55614. 8016e28: 6138 str r0, [r7, #16]
  55615. /* pass error message to recvmbox to wake up pending recv */
  55616. if (NETCONN_MBOX_VALID(conn, &conn->recvmbox)) {
  55617. 8016e2a: 69fb ldr r3, [r7, #28]
  55618. 8016e2c: 3310 adds r3, #16
  55619. 8016e2e: 4618 mov r0, r3
  55620. 8016e30: f010 f8f4 bl 802701c <sys_mbox_valid>
  55621. 8016e34: 4603 mov r3, r0
  55622. 8016e36: 2b00 cmp r3, #0
  55623. 8016e38: d005 beq.n 8016e46 <err_tcp+0xbe>
  55624. /* use trypost to prevent deadlock */
  55625. sys_mbox_trypost(&conn->recvmbox, mbox_msg);
  55626. 8016e3a: 69fb ldr r3, [r7, #28]
  55627. 8016e3c: 3310 adds r3, #16
  55628. 8016e3e: 6939 ldr r1, [r7, #16]
  55629. 8016e40: 4618 mov r0, r3
  55630. 8016e42: f010 f889 bl 8026f58 <sys_mbox_trypost>
  55631. }
  55632. /* pass error message to acceptmbox to wake up pending accept */
  55633. if (NETCONN_MBOX_VALID(conn, &conn->acceptmbox)) {
  55634. 8016e46: 69fb ldr r3, [r7, #28]
  55635. 8016e48: 3314 adds r3, #20
  55636. 8016e4a: 4618 mov r0, r3
  55637. 8016e4c: f010 f8e6 bl 802701c <sys_mbox_valid>
  55638. 8016e50: 4603 mov r3, r0
  55639. 8016e52: 2b00 cmp r3, #0
  55640. 8016e54: d005 beq.n 8016e62 <err_tcp+0xda>
  55641. /* use trypost to preven deadlock */
  55642. sys_mbox_trypost(&conn->acceptmbox, mbox_msg);
  55643. 8016e56: 69fb ldr r3, [r7, #28]
  55644. 8016e58: 3314 adds r3, #20
  55645. 8016e5a: 6939 ldr r1, [r7, #16]
  55646. 8016e5c: 4618 mov r0, r3
  55647. 8016e5e: f010 f87b bl 8026f58 <sys_mbox_trypost>
  55648. }
  55649. if ((old_state == NETCONN_WRITE) || (old_state == NETCONN_CLOSE) ||
  55650. 8016e62: 7dfb ldrb r3, [r7, #23]
  55651. 8016e64: 2b01 cmp r3, #1
  55652. 8016e66: d005 beq.n 8016e74 <err_tcp+0xec>
  55653. 8016e68: 7dfb ldrb r3, [r7, #23]
  55654. 8016e6a: 2b04 cmp r3, #4
  55655. 8016e6c: d002 beq.n 8016e74 <err_tcp+0xec>
  55656. 8016e6e: 7dfb ldrb r3, [r7, #23]
  55657. 8016e70: 2b03 cmp r3, #3
  55658. 8016e72: d146 bne.n 8016f02 <err_tcp+0x17a>
  55659. (old_state == NETCONN_CONNECT)) {
  55660. /* calling lwip_netconn_do_writemore/lwip_netconn_do_close_internal is not necessary
  55661. since the pcb has already been deleted! */
  55662. int was_nonblocking_connect = IN_NONBLOCKING_CONNECT(conn);
  55663. 8016e74: 69fb ldr r3, [r7, #28]
  55664. 8016e76: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55665. 8016e7a: f003 0304 and.w r3, r3, #4
  55666. 8016e7e: 2b00 cmp r3, #0
  55667. 8016e80: bf14 ite ne
  55668. 8016e82: 2301 movne r3, #1
  55669. 8016e84: 2300 moveq r3, #0
  55670. 8016e86: b2db uxtb r3, r3
  55671. 8016e88: 60fb str r3, [r7, #12]
  55672. SET_NONBLOCKING_CONNECT(conn, 0);
  55673. 8016e8a: 69fb ldr r3, [r7, #28]
  55674. 8016e8c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55675. 8016e90: f023 0304 bic.w r3, r3, #4
  55676. 8016e94: b2da uxtb r2, r3
  55677. 8016e96: 69fb ldr r3, [r7, #28]
  55678. 8016e98: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55679. if (!was_nonblocking_connect) {
  55680. 8016e9c: 68fb ldr r3, [r7, #12]
  55681. 8016e9e: 2b00 cmp r3, #0
  55682. 8016ea0: d13b bne.n 8016f1a <err_tcp+0x192>
  55683. sys_sem_t *op_completed_sem;
  55684. /* set error return code */
  55685. LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL);
  55686. 8016ea2: 69fb ldr r3, [r7, #28]
  55687. 8016ea4: 6adb ldr r3, [r3, #44] @ 0x2c
  55688. 8016ea6: 2b00 cmp r3, #0
  55689. 8016ea8: d106 bne.n 8016eb8 <err_tcp+0x130>
  55690. 8016eaa: 4b1e ldr r3, [pc, #120] @ (8016f24 <err_tcp+0x19c>)
  55691. 8016eac: f44f 72f3 mov.w r2, #486 @ 0x1e6
  55692. 8016eb0: 491f ldr r1, [pc, #124] @ (8016f30 <err_tcp+0x1a8>)
  55693. 8016eb2: 481e ldr r0, [pc, #120] @ (8016f2c <err_tcp+0x1a4>)
  55694. 8016eb4: f013 fc52 bl 802a75c <iprintf>
  55695. if (old_state == NETCONN_CLOSE) {
  55696. 8016eb8: 7dfb ldrb r3, [r7, #23]
  55697. 8016eba: 2b04 cmp r3, #4
  55698. 8016ebc: d104 bne.n 8016ec8 <err_tcp+0x140>
  55699. /* let close succeed: the connection is closed after all... */
  55700. conn->current_msg->err = ERR_OK;
  55701. 8016ebe: 69fb ldr r3, [r7, #28]
  55702. 8016ec0: 6adb ldr r3, [r3, #44] @ 0x2c
  55703. 8016ec2: 2200 movs r2, #0
  55704. 8016ec4: 711a strb r2, [r3, #4]
  55705. 8016ec6: e003 b.n 8016ed0 <err_tcp+0x148>
  55706. } else {
  55707. /* Write and connect fail */
  55708. conn->current_msg->err = err;
  55709. 8016ec8: 69fb ldr r3, [r7, #28]
  55710. 8016eca: 6adb ldr r3, [r3, #44] @ 0x2c
  55711. 8016ecc: 78fa ldrb r2, [r7, #3]
  55712. 8016ece: 711a strb r2, [r3, #4]
  55713. }
  55714. op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  55715. 8016ed0: 69fb ldr r3, [r7, #28]
  55716. 8016ed2: 6adb ldr r3, [r3, #44] @ 0x2c
  55717. 8016ed4: 681b ldr r3, [r3, #0]
  55718. 8016ed6: 330c adds r3, #12
  55719. 8016ed8: 60bb str r3, [r7, #8]
  55720. LWIP_ASSERT("inavlid op_completed_sem", sys_sem_valid(op_completed_sem));
  55721. 8016eda: 68b8 ldr r0, [r7, #8]
  55722. 8016edc: f010 f92c bl 8027138 <sys_sem_valid>
  55723. 8016ee0: 4603 mov r3, r0
  55724. 8016ee2: 2b00 cmp r3, #0
  55725. 8016ee4: d106 bne.n 8016ef4 <err_tcp+0x16c>
  55726. 8016ee6: 4b0f ldr r3, [pc, #60] @ (8016f24 <err_tcp+0x19c>)
  55727. 8016ee8: f240 12ef movw r2, #495 @ 0x1ef
  55728. 8016eec: 4911 ldr r1, [pc, #68] @ (8016f34 <err_tcp+0x1ac>)
  55729. 8016eee: 480f ldr r0, [pc, #60] @ (8016f2c <err_tcp+0x1a4>)
  55730. 8016ef0: f013 fc34 bl 802a75c <iprintf>
  55731. conn->current_msg = NULL;
  55732. 8016ef4: 69fb ldr r3, [r7, #28]
  55733. 8016ef6: 2200 movs r2, #0
  55734. 8016ef8: 62da str r2, [r3, #44] @ 0x2c
  55735. /* wake up the waiting task */
  55736. sys_sem_signal(op_completed_sem);
  55737. 8016efa: 68b8 ldr r0, [r7, #8]
  55738. 8016efc: f010 f902 bl 8027104 <sys_sem_signal>
  55739. (old_state == NETCONN_CONNECT)) {
  55740. 8016f00: e00b b.n 8016f1a <err_tcp+0x192>
  55741. } else {
  55742. /* @todo: test what happens for error on nonblocking connect */
  55743. }
  55744. } else {
  55745. LWIP_ASSERT("conn->current_msg == NULL", conn->current_msg == NULL);
  55746. 8016f02: 69fb ldr r3, [r7, #28]
  55747. 8016f04: 6adb ldr r3, [r3, #44] @ 0x2c
  55748. 8016f06: 2b00 cmp r3, #0
  55749. 8016f08: d008 beq.n 8016f1c <err_tcp+0x194>
  55750. 8016f0a: 4b06 ldr r3, [pc, #24] @ (8016f24 <err_tcp+0x19c>)
  55751. 8016f0c: f240 12f7 movw r2, #503 @ 0x1f7
  55752. 8016f10: 4909 ldr r1, [pc, #36] @ (8016f38 <err_tcp+0x1b0>)
  55753. 8016f12: 4806 ldr r0, [pc, #24] @ (8016f2c <err_tcp+0x1a4>)
  55754. 8016f14: f013 fc22 bl 802a75c <iprintf>
  55755. }
  55756. }
  55757. 8016f18: e000 b.n 8016f1c <err_tcp+0x194>
  55758. (old_state == NETCONN_CONNECT)) {
  55759. 8016f1a: bf00 nop
  55760. }
  55761. 8016f1c: bf00 nop
  55762. 8016f1e: 3720 adds r7, #32
  55763. 8016f20: 46bd mov sp, r7
  55764. 8016f22: bd80 pop {r7, pc}
  55765. 8016f24: 0802ddc0 .word 0x0802ddc0
  55766. 8016f28: 0802df18 .word 0x0802df18
  55767. 8016f2c: 0802de04 .word 0x0802de04
  55768. 8016f30: 0802df28 .word 0x0802df28
  55769. 8016f34: 0802df44 .word 0x0802df44
  55770. 8016f38: 0802df60 .word 0x0802df60
  55771. 08016f3c <setup_tcp>:
  55772. *
  55773. * @param conn the TCP netconn to setup
  55774. */
  55775. static void
  55776. setup_tcp(struct netconn *conn)
  55777. {
  55778. 8016f3c: b580 push {r7, lr}
  55779. 8016f3e: b084 sub sp, #16
  55780. 8016f40: af00 add r7, sp, #0
  55781. 8016f42: 6078 str r0, [r7, #4]
  55782. struct tcp_pcb *pcb;
  55783. pcb = conn->pcb.tcp;
  55784. 8016f44: 687b ldr r3, [r7, #4]
  55785. 8016f46: 685b ldr r3, [r3, #4]
  55786. 8016f48: 60fb str r3, [r7, #12]
  55787. tcp_arg(pcb, conn);
  55788. 8016f4a: 6879 ldr r1, [r7, #4]
  55789. 8016f4c: 68f8 ldr r0, [r7, #12]
  55790. 8016f4e: f005 ffe3 bl 801cf18 <tcp_arg>
  55791. tcp_recv(pcb, recv_tcp);
  55792. 8016f52: 490a ldr r1, [pc, #40] @ (8016f7c <setup_tcp+0x40>)
  55793. 8016f54: 68f8 ldr r0, [r7, #12]
  55794. 8016f56: f005 fff1 bl 801cf3c <tcp_recv>
  55795. tcp_sent(pcb, sent_tcp);
  55796. 8016f5a: 4909 ldr r1, [pc, #36] @ (8016f80 <setup_tcp+0x44>)
  55797. 8016f5c: 68f8 ldr r0, [r7, #12]
  55798. 8016f5e: f006 f811 bl 801cf84 <tcp_sent>
  55799. tcp_poll(pcb, poll_tcp, NETCONN_TCP_POLL_INTERVAL);
  55800. 8016f62: 2202 movs r2, #2
  55801. 8016f64: 4907 ldr r1, [pc, #28] @ (8016f84 <setup_tcp+0x48>)
  55802. 8016f66: 68f8 ldr r0, [r7, #12]
  55803. 8016f68: f006 f86c bl 801d044 <tcp_poll>
  55804. tcp_err(pcb, err_tcp);
  55805. 8016f6c: 4906 ldr r1, [pc, #24] @ (8016f88 <setup_tcp+0x4c>)
  55806. 8016f6e: 68f8 ldr r0, [r7, #12]
  55807. 8016f70: f006 f82c bl 801cfcc <tcp_err>
  55808. }
  55809. 8016f74: bf00 nop
  55810. 8016f76: 3710 adds r7, #16
  55811. 8016f78: 46bd mov sp, r7
  55812. 8016f7a: bd80 pop {r7, pc}
  55813. 8016f7c: 08016ae5 .word 0x08016ae5
  55814. 8016f80: 08016cd9 .word 0x08016cd9
  55815. 8016f84: 08016c09 .word 0x08016c09
  55816. 8016f88: 08016d89 .word 0x08016d89
  55817. 08016f8c <pcb_new>:
  55818. *
  55819. * @param msg the api_msg describing the connection type
  55820. */
  55821. static void
  55822. pcb_new(struct api_msg *msg)
  55823. {
  55824. 8016f8c: b590 push {r4, r7, lr}
  55825. 8016f8e: b085 sub sp, #20
  55826. 8016f90: af00 add r7, sp, #0
  55827. 8016f92: 6078 str r0, [r7, #4]
  55828. enum lwip_ip_addr_type iptype = IPADDR_TYPE_V4;
  55829. 8016f94: 2300 movs r3, #0
  55830. 8016f96: 73fb strb r3, [r7, #15]
  55831. LWIP_ASSERT("pcb_new: pcb already allocated", msg->conn->pcb.tcp == NULL);
  55832. 8016f98: 687b ldr r3, [r7, #4]
  55833. 8016f9a: 681b ldr r3, [r3, #0]
  55834. 8016f9c: 685b ldr r3, [r3, #4]
  55835. 8016f9e: 2b00 cmp r3, #0
  55836. 8016fa0: d006 beq.n 8016fb0 <pcb_new+0x24>
  55837. 8016fa2: 4b2b ldr r3, [pc, #172] @ (8017050 <pcb_new+0xc4>)
  55838. 8016fa4: f240 2265 movw r2, #613 @ 0x265
  55839. 8016fa8: 492a ldr r1, [pc, #168] @ (8017054 <pcb_new+0xc8>)
  55840. 8016faa: 482b ldr r0, [pc, #172] @ (8017058 <pcb_new+0xcc>)
  55841. 8016fac: f013 fbd6 bl 802a75c <iprintf>
  55842. iptype = IPADDR_TYPE_ANY;
  55843. }
  55844. #endif
  55845. /* Allocate a PCB for this connection */
  55846. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  55847. 8016fb0: 687b ldr r3, [r7, #4]
  55848. 8016fb2: 681b ldr r3, [r3, #0]
  55849. 8016fb4: 781b ldrb r3, [r3, #0]
  55850. 8016fb6: f003 03f0 and.w r3, r3, #240 @ 0xf0
  55851. 8016fba: 2b10 cmp r3, #16
  55852. 8016fbc: d022 beq.n 8017004 <pcb_new+0x78>
  55853. 8016fbe: 2b20 cmp r3, #32
  55854. 8016fc0: d133 bne.n 801702a <pcb_new+0x9e>
  55855. }
  55856. break;
  55857. #endif /* LWIP_RAW */
  55858. #if LWIP_UDP
  55859. case NETCONN_UDP:
  55860. msg->conn->pcb.udp = udp_new_ip_type(iptype);
  55861. 8016fc2: 687b ldr r3, [r7, #4]
  55862. 8016fc4: 681c ldr r4, [r3, #0]
  55863. 8016fc6: 7bfb ldrb r3, [r7, #15]
  55864. 8016fc8: 4618 mov r0, r3
  55865. 8016fca: f00b fb94 bl 80226f6 <udp_new_ip_type>
  55866. 8016fce: 4603 mov r3, r0
  55867. 8016fd0: 6063 str r3, [r4, #4]
  55868. if (msg->conn->pcb.udp != NULL) {
  55869. 8016fd2: 687b ldr r3, [r7, #4]
  55870. 8016fd4: 681b ldr r3, [r3, #0]
  55871. 8016fd6: 685b ldr r3, [r3, #4]
  55872. 8016fd8: 2b00 cmp r3, #0
  55873. 8016fda: d02a beq.n 8017032 <pcb_new+0xa6>
  55874. #if LWIP_UDPLITE
  55875. if (NETCONNTYPE_ISUDPLITE(msg->conn->type)) {
  55876. udp_setflags(msg->conn->pcb.udp, UDP_FLAGS_UDPLITE);
  55877. }
  55878. #endif /* LWIP_UDPLITE */
  55879. if (NETCONNTYPE_ISUDPNOCHKSUM(msg->conn->type)) {
  55880. 8016fdc: 687b ldr r3, [r7, #4]
  55881. 8016fde: 681b ldr r3, [r3, #0]
  55882. 8016fe0: 781b ldrb r3, [r3, #0]
  55883. 8016fe2: 2b22 cmp r3, #34 @ 0x22
  55884. 8016fe4: d104 bne.n 8016ff0 <pcb_new+0x64>
  55885. udp_setflags(msg->conn->pcb.udp, UDP_FLAGS_NOCHKSUM);
  55886. 8016fe6: 687b ldr r3, [r7, #4]
  55887. 8016fe8: 681b ldr r3, [r3, #0]
  55888. 8016fea: 685b ldr r3, [r3, #4]
  55889. 8016fec: 2201 movs r2, #1
  55890. 8016fee: 741a strb r2, [r3, #16]
  55891. }
  55892. udp_recv(msg->conn->pcb.udp, recv_udp, msg->conn);
  55893. 8016ff0: 687b ldr r3, [r7, #4]
  55894. 8016ff2: 681b ldr r3, [r3, #0]
  55895. 8016ff4: 6858 ldr r0, [r3, #4]
  55896. 8016ff6: 687b ldr r3, [r7, #4]
  55897. 8016ff8: 681b ldr r3, [r3, #0]
  55898. 8016ffa: 461a mov r2, r3
  55899. 8016ffc: 4917 ldr r1, [pc, #92] @ (801705c <pcb_new+0xd0>)
  55900. 8016ffe: f00b fafb bl 80225f8 <udp_recv>
  55901. }
  55902. break;
  55903. 8017002: e016 b.n 8017032 <pcb_new+0xa6>
  55904. #endif /* LWIP_UDP */
  55905. #if LWIP_TCP
  55906. case NETCONN_TCP:
  55907. msg->conn->pcb.tcp = tcp_new_ip_type(iptype);
  55908. 8017004: 687b ldr r3, [r7, #4]
  55909. 8017006: 681c ldr r4, [r3, #0]
  55910. 8017008: 7bfb ldrb r3, [r7, #15]
  55911. 801700a: 4618 mov r0, r3
  55912. 801700c: f005 ff76 bl 801cefc <tcp_new_ip_type>
  55913. 8017010: 4603 mov r3, r0
  55914. 8017012: 6063 str r3, [r4, #4]
  55915. if (msg->conn->pcb.tcp != NULL) {
  55916. 8017014: 687b ldr r3, [r7, #4]
  55917. 8017016: 681b ldr r3, [r3, #0]
  55918. 8017018: 685b ldr r3, [r3, #4]
  55919. 801701a: 2b00 cmp r3, #0
  55920. 801701c: d00b beq.n 8017036 <pcb_new+0xaa>
  55921. setup_tcp(msg->conn);
  55922. 801701e: 687b ldr r3, [r7, #4]
  55923. 8017020: 681b ldr r3, [r3, #0]
  55924. 8017022: 4618 mov r0, r3
  55925. 8017024: f7ff ff8a bl 8016f3c <setup_tcp>
  55926. }
  55927. break;
  55928. 8017028: e005 b.n 8017036 <pcb_new+0xaa>
  55929. #endif /* LWIP_TCP */
  55930. default:
  55931. /* Unsupported netconn type, e.g. protocol disabled */
  55932. msg->err = ERR_VAL;
  55933. 801702a: 687b ldr r3, [r7, #4]
  55934. 801702c: 22fa movs r2, #250 @ 0xfa
  55935. 801702e: 711a strb r2, [r3, #4]
  55936. return;
  55937. 8017030: e00a b.n 8017048 <pcb_new+0xbc>
  55938. break;
  55939. 8017032: bf00 nop
  55940. 8017034: e000 b.n 8017038 <pcb_new+0xac>
  55941. break;
  55942. 8017036: bf00 nop
  55943. }
  55944. if (msg->conn->pcb.ip == NULL) {
  55945. 8017038: 687b ldr r3, [r7, #4]
  55946. 801703a: 681b ldr r3, [r3, #0]
  55947. 801703c: 685b ldr r3, [r3, #4]
  55948. 801703e: 2b00 cmp r3, #0
  55949. 8017040: d102 bne.n 8017048 <pcb_new+0xbc>
  55950. msg->err = ERR_MEM;
  55951. 8017042: 687b ldr r3, [r7, #4]
  55952. 8017044: 22ff movs r2, #255 @ 0xff
  55953. 8017046: 711a strb r2, [r3, #4]
  55954. }
  55955. }
  55956. 8017048: 3714 adds r7, #20
  55957. 801704a: 46bd mov sp, r7
  55958. 801704c: bd90 pop {r4, r7, pc}
  55959. 801704e: bf00 nop
  55960. 8017050: 0802ddc0 .word 0x0802ddc0
  55961. 8017054: 0802dfa4 .word 0x0802dfa4
  55962. 8017058: 0802de04 .word 0x0802de04
  55963. 801705c: 080169ad .word 0x080169ad
  55964. 08017060 <lwip_netconn_do_newconn>:
  55965. *
  55966. * @param m the api_msg describing the connection type
  55967. */
  55968. void
  55969. lwip_netconn_do_newconn(void *m)
  55970. {
  55971. 8017060: b580 push {r7, lr}
  55972. 8017062: b084 sub sp, #16
  55973. 8017064: af00 add r7, sp, #0
  55974. 8017066: 6078 str r0, [r7, #4]
  55975. struct api_msg *msg = (struct api_msg *)m;
  55976. 8017068: 687b ldr r3, [r7, #4]
  55977. 801706a: 60fb str r3, [r7, #12]
  55978. msg->err = ERR_OK;
  55979. 801706c: 68fb ldr r3, [r7, #12]
  55980. 801706e: 2200 movs r2, #0
  55981. 8017070: 711a strb r2, [r3, #4]
  55982. if (msg->conn->pcb.tcp == NULL) {
  55983. 8017072: 68fb ldr r3, [r7, #12]
  55984. 8017074: 681b ldr r3, [r3, #0]
  55985. 8017076: 685b ldr r3, [r3, #4]
  55986. 8017078: 2b00 cmp r3, #0
  55987. 801707a: d102 bne.n 8017082 <lwip_netconn_do_newconn+0x22>
  55988. pcb_new(msg);
  55989. 801707c: 68f8 ldr r0, [r7, #12]
  55990. 801707e: f7ff ff85 bl 8016f8c <pcb_new>
  55991. /* Else? This "new" connection already has a PCB allocated. */
  55992. /* Is this an error condition? Should it be deleted? */
  55993. /* We currently just are happy and return. */
  55994. TCPIP_APIMSG_ACK(msg);
  55995. }
  55996. 8017082: bf00 nop
  55997. 8017084: 3710 adds r7, #16
  55998. 8017086: 46bd mov sp, r7
  55999. 8017088: bd80 pop {r7, pc}
  56000. ...
  56001. 0801708c <netconn_alloc>:
  56002. * @return a newly allocated struct netconn or
  56003. * NULL on memory error
  56004. */
  56005. struct netconn *
  56006. netconn_alloc(enum netconn_type t, netconn_callback callback)
  56007. {
  56008. 801708c: b580 push {r7, lr}
  56009. 801708e: b086 sub sp, #24
  56010. 8017090: af00 add r7, sp, #0
  56011. 8017092: 4603 mov r3, r0
  56012. 8017094: 6039 str r1, [r7, #0]
  56013. 8017096: 71fb strb r3, [r7, #7]
  56014. struct netconn *conn;
  56015. int size;
  56016. u8_t init_flags = 0;
  56017. 8017098: 2300 movs r3, #0
  56018. 801709a: 74fb strb r3, [r7, #19]
  56019. conn = (struct netconn *)memp_malloc(MEMP_NETCONN);
  56020. 801709c: 2007 movs r0, #7
  56021. 801709e: f003 f981 bl 801a3a4 <memp_malloc>
  56022. 80170a2: 60f8 str r0, [r7, #12]
  56023. if (conn == NULL) {
  56024. 80170a4: 68fb ldr r3, [r7, #12]
  56025. 80170a6: 2b00 cmp r3, #0
  56026. 80170a8: d101 bne.n 80170ae <netconn_alloc+0x22>
  56027. return NULL;
  56028. 80170aa: 2300 movs r3, #0
  56029. 80170ac: e05c b.n 8017168 <netconn_alloc+0xdc>
  56030. }
  56031. conn->pending_err = ERR_OK;
  56032. 80170ae: 68fb ldr r3, [r7, #12]
  56033. 80170b0: 2200 movs r2, #0
  56034. 80170b2: 721a strb r2, [r3, #8]
  56035. conn->type = t;
  56036. 80170b4: 68fb ldr r3, [r7, #12]
  56037. 80170b6: 79fa ldrb r2, [r7, #7]
  56038. 80170b8: 701a strb r2, [r3, #0]
  56039. conn->pcb.tcp = NULL;
  56040. 80170ba: 68fb ldr r3, [r7, #12]
  56041. 80170bc: 2200 movs r2, #0
  56042. 80170be: 605a str r2, [r3, #4]
  56043. /* If all sizes are the same, every compiler should optimize this switch to nothing */
  56044. switch (NETCONNTYPE_GROUP(t)) {
  56045. 80170c0: 79fb ldrb r3, [r7, #7]
  56046. 80170c2: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56047. 80170c6: 2b10 cmp r3, #16
  56048. 80170c8: d004 beq.n 80170d4 <netconn_alloc+0x48>
  56049. 80170ca: 2b20 cmp r3, #32
  56050. 80170cc: d105 bne.n 80170da <netconn_alloc+0x4e>
  56051. size = DEFAULT_RAW_RECVMBOX_SIZE;
  56052. break;
  56053. #endif /* LWIP_RAW */
  56054. #if LWIP_UDP
  56055. case NETCONN_UDP:
  56056. size = DEFAULT_UDP_RECVMBOX_SIZE;
  56057. 80170ce: 2306 movs r3, #6
  56058. 80170d0: 617b str r3, [r7, #20]
  56059. #if LWIP_NETBUF_RECVINFO
  56060. init_flags |= NETCONN_FLAG_PKTINFO;
  56061. #endif /* LWIP_NETBUF_RECVINFO */
  56062. break;
  56063. 80170d2: e00a b.n 80170ea <netconn_alloc+0x5e>
  56064. #endif /* LWIP_UDP */
  56065. #if LWIP_TCP
  56066. case NETCONN_TCP:
  56067. size = DEFAULT_TCP_RECVMBOX_SIZE;
  56068. 80170d4: 2306 movs r3, #6
  56069. 80170d6: 617b str r3, [r7, #20]
  56070. break;
  56071. 80170d8: e007 b.n 80170ea <netconn_alloc+0x5e>
  56072. #endif /* LWIP_TCP */
  56073. default:
  56074. LWIP_ASSERT("netconn_alloc: undefined netconn_type", 0);
  56075. 80170da: 4b25 ldr r3, [pc, #148] @ (8017170 <netconn_alloc+0xe4>)
  56076. 80170dc: f240 22e5 movw r2, #741 @ 0x2e5
  56077. 80170e0: 4924 ldr r1, [pc, #144] @ (8017174 <netconn_alloc+0xe8>)
  56078. 80170e2: 4825 ldr r0, [pc, #148] @ (8017178 <netconn_alloc+0xec>)
  56079. 80170e4: f013 fb3a bl 802a75c <iprintf>
  56080. goto free_and_return;
  56081. 80170e8: e039 b.n 801715e <netconn_alloc+0xd2>
  56082. }
  56083. if (sys_mbox_new(&conn->recvmbox, size) != ERR_OK) {
  56084. 80170ea: 68fb ldr r3, [r7, #12]
  56085. 80170ec: 3310 adds r3, #16
  56086. 80170ee: 6979 ldr r1, [r7, #20]
  56087. 80170f0: 4618 mov r0, r3
  56088. 80170f2: f00f ff05 bl 8026f00 <sys_mbox_new>
  56089. 80170f6: 4603 mov r3, r0
  56090. 80170f8: 2b00 cmp r3, #0
  56091. 80170fa: d12f bne.n 801715c <netconn_alloc+0xd0>
  56092. goto free_and_return;
  56093. }
  56094. #if !LWIP_NETCONN_SEM_PER_THREAD
  56095. if (sys_sem_new(&conn->op_completed, 0) != ERR_OK) {
  56096. 80170fc: 68fb ldr r3, [r7, #12]
  56097. 80170fe: 330c adds r3, #12
  56098. 8017100: 2100 movs r1, #0
  56099. 8017102: 4618 mov r0, r3
  56100. 8017104: f00f ffa8 bl 8027058 <sys_sem_new>
  56101. 8017108: 4603 mov r3, r0
  56102. 801710a: 2b00 cmp r3, #0
  56103. 801710c: d005 beq.n 801711a <netconn_alloc+0x8e>
  56104. sys_mbox_free(&conn->recvmbox);
  56105. 801710e: 68fb ldr r3, [r7, #12]
  56106. 8017110: 3310 adds r3, #16
  56107. 8017112: 4618 mov r0, r3
  56108. 8017114: f00f ff0e bl 8026f34 <sys_mbox_free>
  56109. goto free_and_return;
  56110. 8017118: e021 b.n 801715e <netconn_alloc+0xd2>
  56111. }
  56112. #endif
  56113. #if LWIP_TCP
  56114. sys_mbox_set_invalid(&conn->acceptmbox);
  56115. 801711a: 68fb ldr r3, [r7, #12]
  56116. 801711c: 3314 adds r3, #20
  56117. 801711e: 4618 mov r0, r3
  56118. 8017120: f00f ff8d bl 802703e <sys_mbox_set_invalid>
  56119. #endif
  56120. conn->state = NETCONN_NONE;
  56121. 8017124: 68fb ldr r3, [r7, #12]
  56122. 8017126: 2200 movs r2, #0
  56123. 8017128: 705a strb r2, [r3, #1]
  56124. #if LWIP_SOCKET
  56125. /* initialize socket to -1 since 0 is a valid socket */
  56126. conn->socket = -1;
  56127. 801712a: 68fb ldr r3, [r7, #12]
  56128. 801712c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  56129. 8017130: 619a str r2, [r3, #24]
  56130. #endif /* LWIP_SOCKET */
  56131. conn->callback = callback;
  56132. 8017132: 68fb ldr r3, [r7, #12]
  56133. 8017134: 683a ldr r2, [r7, #0]
  56134. 8017136: 631a str r2, [r3, #48] @ 0x30
  56135. #if LWIP_TCP
  56136. conn->current_msg = NULL;
  56137. 8017138: 68fb ldr r3, [r7, #12]
  56138. 801713a: 2200 movs r2, #0
  56139. 801713c: 62da str r2, [r3, #44] @ 0x2c
  56140. #endif /* LWIP_TCP */
  56141. #if LWIP_SO_SNDTIMEO
  56142. conn->send_timeout = 0;
  56143. #endif /* LWIP_SO_SNDTIMEO */
  56144. #if LWIP_SO_RCVTIMEO
  56145. conn->recv_timeout = 0;
  56146. 801713e: 68fb ldr r3, [r7, #12]
  56147. 8017140: 2200 movs r2, #0
  56148. 8017142: 61da str r2, [r3, #28]
  56149. #endif /* LWIP_SO_RCVTIMEO */
  56150. #if LWIP_SO_RCVBUF
  56151. conn->recv_bufsize = RECV_BUFSIZE_DEFAULT;
  56152. 8017144: 68fb ldr r3, [r7, #12]
  56153. 8017146: 4a0d ldr r2, [pc, #52] @ (801717c <netconn_alloc+0xf0>)
  56154. 8017148: 621a str r2, [r3, #32]
  56155. conn->recv_avail = 0;
  56156. 801714a: 68fb ldr r3, [r7, #12]
  56157. 801714c: 2200 movs r2, #0
  56158. 801714e: 625a str r2, [r3, #36] @ 0x24
  56159. #endif /* LWIP_SO_RCVBUF */
  56160. #if LWIP_SO_LINGER
  56161. conn->linger = -1;
  56162. #endif /* LWIP_SO_LINGER */
  56163. conn->flags = init_flags;
  56164. 8017150: 68fb ldr r3, [r7, #12]
  56165. 8017152: 7cfa ldrb r2, [r7, #19]
  56166. 8017154: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56167. return conn;
  56168. 8017158: 68fb ldr r3, [r7, #12]
  56169. 801715a: e005 b.n 8017168 <netconn_alloc+0xdc>
  56170. goto free_and_return;
  56171. 801715c: bf00 nop
  56172. free_and_return:
  56173. memp_free(MEMP_NETCONN, conn);
  56174. 801715e: 68f9 ldr r1, [r7, #12]
  56175. 8017160: 2007 movs r0, #7
  56176. 8017162: f003 f995 bl 801a490 <memp_free>
  56177. return NULL;
  56178. 8017166: 2300 movs r3, #0
  56179. }
  56180. 8017168: 4618 mov r0, r3
  56181. 801716a: 3718 adds r7, #24
  56182. 801716c: 46bd mov sp, r7
  56183. 801716e: bd80 pop {r7, pc}
  56184. 8017170: 0802ddc0 .word 0x0802ddc0
  56185. 8017174: 0802dfc4 .word 0x0802dfc4
  56186. 8017178: 0802de04 .word 0x0802de04
  56187. 801717c: 77359400 .word 0x77359400
  56188. 08017180 <netconn_free>:
  56189. *
  56190. * @param conn the netconn to free
  56191. */
  56192. void
  56193. netconn_free(struct netconn *conn)
  56194. {
  56195. 8017180: b580 push {r7, lr}
  56196. 8017182: b082 sub sp, #8
  56197. 8017184: af00 add r7, sp, #0
  56198. 8017186: 6078 str r0, [r7, #4]
  56199. LWIP_ASSERT("PCB must be deallocated outside this function", conn->pcb.tcp == NULL);
  56200. 8017188: 687b ldr r3, [r7, #4]
  56201. 801718a: 685b ldr r3, [r3, #4]
  56202. 801718c: 2b00 cmp r3, #0
  56203. 801718e: d006 beq.n 801719e <netconn_free+0x1e>
  56204. 8017190: 4b1b ldr r3, [pc, #108] @ (8017200 <netconn_free+0x80>)
  56205. 8017192: f44f 7247 mov.w r2, #796 @ 0x31c
  56206. 8017196: 491b ldr r1, [pc, #108] @ (8017204 <netconn_free+0x84>)
  56207. 8017198: 481b ldr r0, [pc, #108] @ (8017208 <netconn_free+0x88>)
  56208. 801719a: f013 fadf bl 802a75c <iprintf>
  56209. #if LWIP_NETCONN_FULLDUPLEX
  56210. /* in fullduplex, netconn is drained here */
  56211. netconn_drain(conn);
  56212. #endif /* LWIP_NETCONN_FULLDUPLEX */
  56213. LWIP_ASSERT("recvmbox must be deallocated before calling this function",
  56214. 801719e: 687b ldr r3, [r7, #4]
  56215. 80171a0: 3310 adds r3, #16
  56216. 80171a2: 4618 mov r0, r3
  56217. 80171a4: f00f ff3a bl 802701c <sys_mbox_valid>
  56218. 80171a8: 4603 mov r3, r0
  56219. 80171aa: 2b00 cmp r3, #0
  56220. 80171ac: d006 beq.n 80171bc <netconn_free+0x3c>
  56221. 80171ae: 4b14 ldr r3, [pc, #80] @ (8017200 <netconn_free+0x80>)
  56222. 80171b0: f240 3223 movw r2, #803 @ 0x323
  56223. 80171b4: 4915 ldr r1, [pc, #84] @ (801720c <netconn_free+0x8c>)
  56224. 80171b6: 4814 ldr r0, [pc, #80] @ (8017208 <netconn_free+0x88>)
  56225. 80171b8: f013 fad0 bl 802a75c <iprintf>
  56226. !sys_mbox_valid(&conn->recvmbox));
  56227. #if LWIP_TCP
  56228. LWIP_ASSERT("acceptmbox must be deallocated before calling this function",
  56229. 80171bc: 687b ldr r3, [r7, #4]
  56230. 80171be: 3314 adds r3, #20
  56231. 80171c0: 4618 mov r0, r3
  56232. 80171c2: f00f ff2b bl 802701c <sys_mbox_valid>
  56233. 80171c6: 4603 mov r3, r0
  56234. 80171c8: 2b00 cmp r3, #0
  56235. 80171ca: d006 beq.n 80171da <netconn_free+0x5a>
  56236. 80171cc: 4b0c ldr r3, [pc, #48] @ (8017200 <netconn_free+0x80>)
  56237. 80171ce: f240 3226 movw r2, #806 @ 0x326
  56238. 80171d2: 490f ldr r1, [pc, #60] @ (8017210 <netconn_free+0x90>)
  56239. 80171d4: 480c ldr r0, [pc, #48] @ (8017208 <netconn_free+0x88>)
  56240. 80171d6: f013 fac1 bl 802a75c <iprintf>
  56241. !sys_mbox_valid(&conn->acceptmbox));
  56242. #endif /* LWIP_TCP */
  56243. #if !LWIP_NETCONN_SEM_PER_THREAD
  56244. sys_sem_free(&conn->op_completed);
  56245. 80171da: 687b ldr r3, [r7, #4]
  56246. 80171dc: 330c adds r3, #12
  56247. 80171de: 4618 mov r0, r3
  56248. 80171e0: f00f ff9d bl 802711e <sys_sem_free>
  56249. sys_sem_set_invalid(&conn->op_completed);
  56250. 80171e4: 687b ldr r3, [r7, #4]
  56251. 80171e6: 330c adds r3, #12
  56252. 80171e8: 4618 mov r0, r3
  56253. 80171ea: f00f ffb6 bl 802715a <sys_sem_set_invalid>
  56254. #endif
  56255. memp_free(MEMP_NETCONN, conn);
  56256. 80171ee: 6879 ldr r1, [r7, #4]
  56257. 80171f0: 2007 movs r0, #7
  56258. 80171f2: f003 f94d bl 801a490 <memp_free>
  56259. }
  56260. 80171f6: bf00 nop
  56261. 80171f8: 3708 adds r7, #8
  56262. 80171fa: 46bd mov sp, r7
  56263. 80171fc: bd80 pop {r7, pc}
  56264. 80171fe: bf00 nop
  56265. 8017200: 0802ddc0 .word 0x0802ddc0
  56266. 8017204: 0802dfec .word 0x0802dfec
  56267. 8017208: 0802de04 .word 0x0802de04
  56268. 801720c: 0802e01c .word 0x0802e01c
  56269. 8017210: 0802e058 .word 0x0802e058
  56270. 08017214 <netconn_drain>:
  56271. * @bytes_drained bytes drained from recvmbox
  56272. * @accepts_drained pending connections drained from acceptmbox
  56273. */
  56274. static void
  56275. netconn_drain(struct netconn *conn)
  56276. {
  56277. 8017214: b580 push {r7, lr}
  56278. 8017216: b086 sub sp, #24
  56279. 8017218: af00 add r7, sp, #0
  56280. 801721a: 6078 str r0, [r7, #4]
  56281. #if LWIP_NETCONN_FULLDUPLEX
  56282. LWIP_ASSERT("netconn marked closed", conn->flags & NETCONN_FLAG_MBOXINVALID);
  56283. #endif /* LWIP_NETCONN_FULLDUPLEX */
  56284. /* Delete and drain the recvmbox. */
  56285. if (sys_mbox_valid(&conn->recvmbox)) {
  56286. 801721c: 687b ldr r3, [r7, #4]
  56287. 801721e: 3310 adds r3, #16
  56288. 8017220: 4618 mov r0, r3
  56289. 8017222: f00f fefb bl 802701c <sys_mbox_valid>
  56290. 8017226: 4603 mov r3, r0
  56291. 8017228: 2b00 cmp r3, #0
  56292. 801722a: d02f beq.n 801728c <netconn_drain+0x78>
  56293. while (sys_mbox_tryfetch(&conn->recvmbox, &mem) != SYS_MBOX_EMPTY) {
  56294. 801722c: e018 b.n 8017260 <netconn_drain+0x4c>
  56295. #if LWIP_NETCONN_FULLDUPLEX
  56296. if (!lwip_netconn_is_deallocated_msg(mem))
  56297. #endif /* LWIP_NETCONN_FULLDUPLEX */
  56298. {
  56299. #if LWIP_TCP
  56300. if (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) {
  56301. 801722e: 687b ldr r3, [r7, #4]
  56302. 8017230: 781b ldrb r3, [r3, #0]
  56303. 8017232: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56304. 8017236: 2b10 cmp r3, #16
  56305. 8017238: d10e bne.n 8017258 <netconn_drain+0x44>
  56306. err_t err;
  56307. if (!lwip_netconn_is_err_msg(mem, &err)) {
  56308. 801723a: 693b ldr r3, [r7, #16]
  56309. 801723c: f107 020f add.w r2, r7, #15
  56310. 8017240: 4611 mov r1, r2
  56311. 8017242: 4618 mov r0, r3
  56312. 8017244: f7ff fb78 bl 8016938 <lwip_netconn_is_err_msg>
  56313. 8017248: 4603 mov r3, r0
  56314. 801724a: 2b00 cmp r3, #0
  56315. 801724c: d108 bne.n 8017260 <netconn_drain+0x4c>
  56316. pbuf_free((struct pbuf *)mem);
  56317. 801724e: 693b ldr r3, [r7, #16]
  56318. 8017250: 4618 mov r0, r3
  56319. 8017252: f004 f80b bl 801b26c <pbuf_free>
  56320. 8017256: e003 b.n 8017260 <netconn_drain+0x4c>
  56321. }
  56322. } else
  56323. #endif /* LWIP_TCP */
  56324. {
  56325. netbuf_delete((struct netbuf *)mem);
  56326. 8017258: 693b ldr r3, [r7, #16]
  56327. 801725a: 4618 mov r0, r3
  56328. 801725c: f001 f81c bl 8018298 <netbuf_delete>
  56329. while (sys_mbox_tryfetch(&conn->recvmbox, &mem) != SYS_MBOX_EMPTY) {
  56330. 8017260: 687b ldr r3, [r7, #4]
  56331. 8017262: 3310 adds r3, #16
  56332. 8017264: f107 0210 add.w r2, r7, #16
  56333. 8017268: 4611 mov r1, r2
  56334. 801726a: 4618 mov r0, r3
  56335. 801726c: f00f febf bl 8026fee <sys_arch_mbox_tryfetch>
  56336. 8017270: 4603 mov r3, r0
  56337. 8017272: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  56338. 8017276: d1da bne.n 801722e <netconn_drain+0x1a>
  56339. }
  56340. }
  56341. }
  56342. sys_mbox_free(&conn->recvmbox);
  56343. 8017278: 687b ldr r3, [r7, #4]
  56344. 801727a: 3310 adds r3, #16
  56345. 801727c: 4618 mov r0, r3
  56346. 801727e: f00f fe59 bl 8026f34 <sys_mbox_free>
  56347. sys_mbox_set_invalid(&conn->recvmbox);
  56348. 8017282: 687b ldr r3, [r7, #4]
  56349. 8017284: 3310 adds r3, #16
  56350. 8017286: 4618 mov r0, r3
  56351. 8017288: f00f fed9 bl 802703e <sys_mbox_set_invalid>
  56352. }
  56353. /* Delete and drain the acceptmbox. */
  56354. #if LWIP_TCP
  56355. if (sys_mbox_valid(&conn->acceptmbox)) {
  56356. 801728c: 687b ldr r3, [r7, #4]
  56357. 801728e: 3314 adds r3, #20
  56358. 8017290: 4618 mov r0, r3
  56359. 8017292: f00f fec3 bl 802701c <sys_mbox_valid>
  56360. 8017296: 4603 mov r3, r0
  56361. 8017298: 2b00 cmp r3, #0
  56362. 801729a: d034 beq.n 8017306 <netconn_drain+0xf2>
  56363. while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) {
  56364. 801729c: e01d b.n 80172da <netconn_drain+0xc6>
  56365. #if LWIP_NETCONN_FULLDUPLEX
  56366. if (!lwip_netconn_is_deallocated_msg(mem))
  56367. #endif /* LWIP_NETCONN_FULLDUPLEX */
  56368. {
  56369. err_t err;
  56370. if (!lwip_netconn_is_err_msg(mem, &err)) {
  56371. 801729e: 693b ldr r3, [r7, #16]
  56372. 80172a0: f107 020e add.w r2, r7, #14
  56373. 80172a4: 4611 mov r1, r2
  56374. 80172a6: 4618 mov r0, r3
  56375. 80172a8: f7ff fb46 bl 8016938 <lwip_netconn_is_err_msg>
  56376. 80172ac: 4603 mov r3, r0
  56377. 80172ae: 2b00 cmp r3, #0
  56378. 80172b0: d113 bne.n 80172da <netconn_drain+0xc6>
  56379. struct netconn *newconn = (struct netconn *)mem;
  56380. 80172b2: 693b ldr r3, [r7, #16]
  56381. 80172b4: 617b str r3, [r7, #20]
  56382. /* Only tcp pcbs have an acceptmbox, so no need to check conn->type */
  56383. /* pcb might be set to NULL already by err_tcp() */
  56384. /* drain recvmbox */
  56385. netconn_drain(newconn);
  56386. 80172b6: 6978 ldr r0, [r7, #20]
  56387. 80172b8: f7ff ffac bl 8017214 <netconn_drain>
  56388. if (newconn->pcb.tcp != NULL) {
  56389. 80172bc: 697b ldr r3, [r7, #20]
  56390. 80172be: 685b ldr r3, [r3, #4]
  56391. 80172c0: 2b00 cmp r3, #0
  56392. 80172c2: d007 beq.n 80172d4 <netconn_drain+0xc0>
  56393. tcp_abort(newconn->pcb.tcp);
  56394. 80172c4: 697b ldr r3, [r7, #20]
  56395. 80172c6: 685b ldr r3, [r3, #4]
  56396. 80172c8: 4618 mov r0, r3
  56397. 80172ca: f004 fdd5 bl 801be78 <tcp_abort>
  56398. newconn->pcb.tcp = NULL;
  56399. 80172ce: 697b ldr r3, [r7, #20]
  56400. 80172d0: 2200 movs r2, #0
  56401. 80172d2: 605a str r2, [r3, #4]
  56402. }
  56403. netconn_free(newconn);
  56404. 80172d4: 6978 ldr r0, [r7, #20]
  56405. 80172d6: f7ff ff53 bl 8017180 <netconn_free>
  56406. while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) {
  56407. 80172da: 687b ldr r3, [r7, #4]
  56408. 80172dc: 3314 adds r3, #20
  56409. 80172de: f107 0210 add.w r2, r7, #16
  56410. 80172e2: 4611 mov r1, r2
  56411. 80172e4: 4618 mov r0, r3
  56412. 80172e6: f00f fe82 bl 8026fee <sys_arch_mbox_tryfetch>
  56413. 80172ea: 4603 mov r3, r0
  56414. 80172ec: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  56415. 80172f0: d1d5 bne.n 801729e <netconn_drain+0x8a>
  56416. }
  56417. }
  56418. }
  56419. sys_mbox_free(&conn->acceptmbox);
  56420. 80172f2: 687b ldr r3, [r7, #4]
  56421. 80172f4: 3314 adds r3, #20
  56422. 80172f6: 4618 mov r0, r3
  56423. 80172f8: f00f fe1c bl 8026f34 <sys_mbox_free>
  56424. sys_mbox_set_invalid(&conn->acceptmbox);
  56425. 80172fc: 687b ldr r3, [r7, #4]
  56426. 80172fe: 3314 adds r3, #20
  56427. 8017300: 4618 mov r0, r3
  56428. 8017302: f00f fe9c bl 802703e <sys_mbox_set_invalid>
  56429. }
  56430. #endif /* LWIP_TCP */
  56431. }
  56432. 8017306: bf00 nop
  56433. 8017308: 3718 adds r7, #24
  56434. 801730a: 46bd mov sp, r7
  56435. 801730c: bd80 pop {r7, pc}
  56436. ...
  56437. 08017310 <lwip_netconn_do_close_internal>:
  56438. *
  56439. * @param conn the TCP netconn to close
  56440. */
  56441. static err_t
  56442. lwip_netconn_do_close_internal(struct netconn *conn WRITE_DELAYED_PARAM)
  56443. {
  56444. 8017310: b580 push {r7, lr}
  56445. 8017312: b086 sub sp, #24
  56446. 8017314: af00 add r7, sp, #0
  56447. 8017316: 6078 str r0, [r7, #4]
  56448. 8017318: 460b mov r3, r1
  56449. 801731a: 70fb strb r3, [r7, #3]
  56450. err_t err;
  56451. u8_t shut, shut_rx, shut_tx, shut_close;
  56452. u8_t close_finished = 0;
  56453. 801731c: 2300 movs r3, #0
  56454. 801731e: 757b strb r3, [r7, #21]
  56455. struct tcp_pcb *tpcb;
  56456. #if LWIP_SO_LINGER
  56457. u8_t linger_wait_required = 0;
  56458. #endif /* LWIP_SO_LINGER */
  56459. LWIP_ASSERT("invalid conn", (conn != NULL));
  56460. 8017320: 687b ldr r3, [r7, #4]
  56461. 8017322: 2b00 cmp r3, #0
  56462. 8017324: d106 bne.n 8017334 <lwip_netconn_do_close_internal+0x24>
  56463. 8017326: 4b87 ldr r3, [pc, #540] @ (8017544 <lwip_netconn_do_close_internal+0x234>)
  56464. 8017328: f240 32a2 movw r2, #930 @ 0x3a2
  56465. 801732c: 4986 ldr r1, [pc, #536] @ (8017548 <lwip_netconn_do_close_internal+0x238>)
  56466. 801732e: 4887 ldr r0, [pc, #540] @ (801754c <lwip_netconn_do_close_internal+0x23c>)
  56467. 8017330: f013 fa14 bl 802a75c <iprintf>
  56468. LWIP_ASSERT("this is for tcp netconns only", (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP));
  56469. 8017334: 687b ldr r3, [r7, #4]
  56470. 8017336: 781b ldrb r3, [r3, #0]
  56471. 8017338: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56472. 801733c: 2b10 cmp r3, #16
  56473. 801733e: d006 beq.n 801734e <lwip_netconn_do_close_internal+0x3e>
  56474. 8017340: 4b80 ldr r3, [pc, #512] @ (8017544 <lwip_netconn_do_close_internal+0x234>)
  56475. 8017342: f240 32a3 movw r2, #931 @ 0x3a3
  56476. 8017346: 4982 ldr r1, [pc, #520] @ (8017550 <lwip_netconn_do_close_internal+0x240>)
  56477. 8017348: 4880 ldr r0, [pc, #512] @ (801754c <lwip_netconn_do_close_internal+0x23c>)
  56478. 801734a: f013 fa07 bl 802a75c <iprintf>
  56479. LWIP_ASSERT("conn must be in state NETCONN_CLOSE", (conn->state == NETCONN_CLOSE));
  56480. 801734e: 687b ldr r3, [r7, #4]
  56481. 8017350: 785b ldrb r3, [r3, #1]
  56482. 8017352: 2b04 cmp r3, #4
  56483. 8017354: d006 beq.n 8017364 <lwip_netconn_do_close_internal+0x54>
  56484. 8017356: 4b7b ldr r3, [pc, #492] @ (8017544 <lwip_netconn_do_close_internal+0x234>)
  56485. 8017358: f44f 7269 mov.w r2, #932 @ 0x3a4
  56486. 801735c: 497d ldr r1, [pc, #500] @ (8017554 <lwip_netconn_do_close_internal+0x244>)
  56487. 801735e: 487b ldr r0, [pc, #492] @ (801754c <lwip_netconn_do_close_internal+0x23c>)
  56488. 8017360: f013 f9fc bl 802a75c <iprintf>
  56489. LWIP_ASSERT("pcb already closed", (conn->pcb.tcp != NULL));
  56490. 8017364: 687b ldr r3, [r7, #4]
  56491. 8017366: 685b ldr r3, [r3, #4]
  56492. 8017368: 2b00 cmp r3, #0
  56493. 801736a: d106 bne.n 801737a <lwip_netconn_do_close_internal+0x6a>
  56494. 801736c: 4b75 ldr r3, [pc, #468] @ (8017544 <lwip_netconn_do_close_internal+0x234>)
  56495. 801736e: f240 32a5 movw r2, #933 @ 0x3a5
  56496. 8017372: 4979 ldr r1, [pc, #484] @ (8017558 <lwip_netconn_do_close_internal+0x248>)
  56497. 8017374: 4875 ldr r0, [pc, #468] @ (801754c <lwip_netconn_do_close_internal+0x23c>)
  56498. 8017376: f013 f9f1 bl 802a75c <iprintf>
  56499. LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL);
  56500. 801737a: 687b ldr r3, [r7, #4]
  56501. 801737c: 6adb ldr r3, [r3, #44] @ 0x2c
  56502. 801737e: 2b00 cmp r3, #0
  56503. 8017380: d106 bne.n 8017390 <lwip_netconn_do_close_internal+0x80>
  56504. 8017382: 4b70 ldr r3, [pc, #448] @ (8017544 <lwip_netconn_do_close_internal+0x234>)
  56505. 8017384: f240 32a6 movw r2, #934 @ 0x3a6
  56506. 8017388: 4974 ldr r1, [pc, #464] @ (801755c <lwip_netconn_do_close_internal+0x24c>)
  56507. 801738a: 4870 ldr r0, [pc, #448] @ (801754c <lwip_netconn_do_close_internal+0x23c>)
  56508. 801738c: f013 f9e6 bl 802a75c <iprintf>
  56509. tpcb = conn->pcb.tcp;
  56510. 8017390: 687b ldr r3, [r7, #4]
  56511. 8017392: 685b ldr r3, [r3, #4]
  56512. 8017394: 613b str r3, [r7, #16]
  56513. shut = conn->current_msg->msg.sd.shut;
  56514. 8017396: 687b ldr r3, [r7, #4]
  56515. 8017398: 6adb ldr r3, [r3, #44] @ 0x2c
  56516. 801739a: 7a1b ldrb r3, [r3, #8]
  56517. 801739c: 73fb strb r3, [r7, #15]
  56518. shut_rx = shut & NETCONN_SHUT_RD;
  56519. 801739e: 7bfb ldrb r3, [r7, #15]
  56520. 80173a0: f003 0301 and.w r3, r3, #1
  56521. 80173a4: 73bb strb r3, [r7, #14]
  56522. shut_tx = shut & NETCONN_SHUT_WR;
  56523. 80173a6: 7bfb ldrb r3, [r7, #15]
  56524. 80173a8: f003 0302 and.w r3, r3, #2
  56525. 80173ac: 737b strb r3, [r7, #13]
  56526. /* shutting down both ends is the same as closing
  56527. (also if RD or WR side was shut down before already) */
  56528. if (shut == NETCONN_SHUT_RDWR) {
  56529. 80173ae: 7bfb ldrb r3, [r7, #15]
  56530. 80173b0: 2b03 cmp r3, #3
  56531. 80173b2: d102 bne.n 80173ba <lwip_netconn_do_close_internal+0xaa>
  56532. shut_close = 1;
  56533. 80173b4: 2301 movs r3, #1
  56534. 80173b6: 75bb strb r3, [r7, #22]
  56535. 80173b8: e01f b.n 80173fa <lwip_netconn_do_close_internal+0xea>
  56536. } else if (shut_rx &&
  56537. 80173ba: 7bbb ldrb r3, [r7, #14]
  56538. 80173bc: 2b00 cmp r3, #0
  56539. 80173be: d00e beq.n 80173de <lwip_netconn_do_close_internal+0xce>
  56540. ((tpcb->state == FIN_WAIT_1) ||
  56541. 80173c0: 693b ldr r3, [r7, #16]
  56542. 80173c2: 7d1b ldrb r3, [r3, #20]
  56543. } else if (shut_rx &&
  56544. 80173c4: 2b05 cmp r3, #5
  56545. 80173c6: d007 beq.n 80173d8 <lwip_netconn_do_close_internal+0xc8>
  56546. (tpcb->state == FIN_WAIT_2) ||
  56547. 80173c8: 693b ldr r3, [r7, #16]
  56548. 80173ca: 7d1b ldrb r3, [r3, #20]
  56549. ((tpcb->state == FIN_WAIT_1) ||
  56550. 80173cc: 2b06 cmp r3, #6
  56551. 80173ce: d003 beq.n 80173d8 <lwip_netconn_do_close_internal+0xc8>
  56552. (tpcb->state == CLOSING))) {
  56553. 80173d0: 693b ldr r3, [r7, #16]
  56554. 80173d2: 7d1b ldrb r3, [r3, #20]
  56555. (tpcb->state == FIN_WAIT_2) ||
  56556. 80173d4: 2b08 cmp r3, #8
  56557. 80173d6: d102 bne.n 80173de <lwip_netconn_do_close_internal+0xce>
  56558. shut_close = 1;
  56559. 80173d8: 2301 movs r3, #1
  56560. 80173da: 75bb strb r3, [r7, #22]
  56561. 80173dc: e00d b.n 80173fa <lwip_netconn_do_close_internal+0xea>
  56562. } else if (shut_tx && ((tpcb->flags & TF_RXCLOSED) != 0)) {
  56563. 80173de: 7b7b ldrb r3, [r7, #13]
  56564. 80173e0: 2b00 cmp r3, #0
  56565. 80173e2: d008 beq.n 80173f6 <lwip_netconn_do_close_internal+0xe6>
  56566. 80173e4: 693b ldr r3, [r7, #16]
  56567. 80173e6: 8b5b ldrh r3, [r3, #26]
  56568. 80173e8: f003 0310 and.w r3, r3, #16
  56569. 80173ec: 2b00 cmp r3, #0
  56570. 80173ee: d002 beq.n 80173f6 <lwip_netconn_do_close_internal+0xe6>
  56571. shut_close = 1;
  56572. 80173f0: 2301 movs r3, #1
  56573. 80173f2: 75bb strb r3, [r7, #22]
  56574. 80173f4: e001 b.n 80173fa <lwip_netconn_do_close_internal+0xea>
  56575. } else {
  56576. shut_close = 0;
  56577. 80173f6: 2300 movs r3, #0
  56578. 80173f8: 75bb strb r3, [r7, #22]
  56579. }
  56580. /* Set back some callback pointers */
  56581. if (shut_close) {
  56582. 80173fa: 7dbb ldrb r3, [r7, #22]
  56583. 80173fc: 2b00 cmp r3, #0
  56584. 80173fe: d003 beq.n 8017408 <lwip_netconn_do_close_internal+0xf8>
  56585. tcp_arg(tpcb, NULL);
  56586. 8017400: 2100 movs r1, #0
  56587. 8017402: 6938 ldr r0, [r7, #16]
  56588. 8017404: f005 fd88 bl 801cf18 <tcp_arg>
  56589. }
  56590. if (tpcb->state == LISTEN) {
  56591. 8017408: 693b ldr r3, [r7, #16]
  56592. 801740a: 7d1b ldrb r3, [r3, #20]
  56593. 801740c: 2b01 cmp r3, #1
  56594. 801740e: d104 bne.n 801741a <lwip_netconn_do_close_internal+0x10a>
  56595. tcp_accept(tpcb, NULL);
  56596. 8017410: 2100 movs r1, #0
  56597. 8017412: 6938 ldr r0, [r7, #16]
  56598. 8017414: f005 fdfe bl 801d014 <tcp_accept>
  56599. 8017418: e01d b.n 8017456 <lwip_netconn_do_close_internal+0x146>
  56600. } else {
  56601. /* some callbacks have to be reset if tcp_close is not successful */
  56602. if (shut_rx) {
  56603. 801741a: 7bbb ldrb r3, [r7, #14]
  56604. 801741c: 2b00 cmp r3, #0
  56605. 801741e: d007 beq.n 8017430 <lwip_netconn_do_close_internal+0x120>
  56606. tcp_recv(tpcb, NULL);
  56607. 8017420: 2100 movs r1, #0
  56608. 8017422: 6938 ldr r0, [r7, #16]
  56609. 8017424: f005 fd8a bl 801cf3c <tcp_recv>
  56610. tcp_accept(tpcb, NULL);
  56611. 8017428: 2100 movs r1, #0
  56612. 801742a: 6938 ldr r0, [r7, #16]
  56613. 801742c: f005 fdf2 bl 801d014 <tcp_accept>
  56614. }
  56615. if (shut_tx) {
  56616. 8017430: 7b7b ldrb r3, [r7, #13]
  56617. 8017432: 2b00 cmp r3, #0
  56618. 8017434: d003 beq.n 801743e <lwip_netconn_do_close_internal+0x12e>
  56619. tcp_sent(tpcb, NULL);
  56620. 8017436: 2100 movs r1, #0
  56621. 8017438: 6938 ldr r0, [r7, #16]
  56622. 801743a: f005 fda3 bl 801cf84 <tcp_sent>
  56623. }
  56624. if (shut_close) {
  56625. 801743e: 7dbb ldrb r3, [r7, #22]
  56626. 8017440: 2b00 cmp r3, #0
  56627. 8017442: d008 beq.n 8017456 <lwip_netconn_do_close_internal+0x146>
  56628. tcp_poll(tpcb, NULL, 0);
  56629. 8017444: 2200 movs r2, #0
  56630. 8017446: 2100 movs r1, #0
  56631. 8017448: 6938 ldr r0, [r7, #16]
  56632. 801744a: f005 fdfb bl 801d044 <tcp_poll>
  56633. tcp_err(tpcb, NULL);
  56634. 801744e: 2100 movs r1, #0
  56635. 8017450: 6938 ldr r0, [r7, #16]
  56636. 8017452: f005 fdbb bl 801cfcc <tcp_err>
  56637. }
  56638. }
  56639. /* Try to close the connection */
  56640. if (shut_close) {
  56641. 8017456: 7dbb ldrb r3, [r7, #22]
  56642. 8017458: 2b00 cmp r3, #0
  56643. 801745a: d005 beq.n 8017468 <lwip_netconn_do_close_internal+0x158>
  56644. }
  56645. }
  56646. if ((err == ERR_OK) && (tpcb != NULL))
  56647. #endif /* LWIP_SO_LINGER */
  56648. {
  56649. err = tcp_close(tpcb);
  56650. 801745c: 6938 ldr r0, [r7, #16]
  56651. 801745e: f004 fbbf bl 801bbe0 <tcp_close>
  56652. 8017462: 4603 mov r3, r0
  56653. 8017464: 75fb strb r3, [r7, #23]
  56654. 8017466: e007 b.n 8017478 <lwip_netconn_do_close_internal+0x168>
  56655. }
  56656. } else {
  56657. err = tcp_shutdown(tpcb, shut_rx, shut_tx);
  56658. 8017468: 7bbb ldrb r3, [r7, #14]
  56659. 801746a: 7b7a ldrb r2, [r7, #13]
  56660. 801746c: 4619 mov r1, r3
  56661. 801746e: 6938 ldr r0, [r7, #16]
  56662. 8017470: f004 fbe4 bl 801bc3c <tcp_shutdown>
  56663. 8017474: 4603 mov r3, r0
  56664. 8017476: 75fb strb r3, [r7, #23]
  56665. }
  56666. if (err == ERR_OK) {
  56667. 8017478: f997 3017 ldrsb.w r3, [r7, #23]
  56668. 801747c: 2b00 cmp r3, #0
  56669. 801747e: d102 bne.n 8017486 <lwip_netconn_do_close_internal+0x176>
  56670. close_finished = 1;
  56671. 8017480: 2301 movs r3, #1
  56672. 8017482: 757b strb r3, [r7, #21]
  56673. 8017484: e016 b.n 80174b4 <lwip_netconn_do_close_internal+0x1a4>
  56674. close_finished = 0;
  56675. err = ERR_INPROGRESS;
  56676. }
  56677. #endif /* LWIP_SO_LINGER */
  56678. } else {
  56679. if (err == ERR_MEM) {
  56680. 8017486: f997 3017 ldrsb.w r3, [r7, #23]
  56681. 801748a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  56682. 801748e: d10f bne.n 80174b0 <lwip_netconn_do_close_internal+0x1a0>
  56683. close_timeout = conn->linger * 1000U;
  56684. }
  56685. #endif
  56686. if ((s32_t)(sys_now() - conn->current_msg->msg.sd.time_started) >= close_timeout) {
  56687. #else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  56688. if (conn->current_msg->msg.sd.polls_left == 0) {
  56689. 8017490: 687b ldr r3, [r7, #4]
  56690. 8017492: 6adb ldr r3, [r3, #44] @ 0x2c
  56691. 8017494: 7a5b ldrb r3, [r3, #9]
  56692. 8017496: 2b00 cmp r3, #0
  56693. 8017498: d10c bne.n 80174b4 <lwip_netconn_do_close_internal+0x1a4>
  56694. #endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  56695. close_finished = 1;
  56696. 801749a: 2301 movs r3, #1
  56697. 801749c: 757b strb r3, [r7, #21]
  56698. if (shut_close) {
  56699. 801749e: 7dbb ldrb r3, [r7, #22]
  56700. 80174a0: 2b00 cmp r3, #0
  56701. 80174a2: d007 beq.n 80174b4 <lwip_netconn_do_close_internal+0x1a4>
  56702. /* in this case, we want to RST the connection */
  56703. tcp_abort(tpcb);
  56704. 80174a4: 6938 ldr r0, [r7, #16]
  56705. 80174a6: f004 fce7 bl 801be78 <tcp_abort>
  56706. err = ERR_OK;
  56707. 80174aa: 2300 movs r3, #0
  56708. 80174ac: 75fb strb r3, [r7, #23]
  56709. 80174ae: e001 b.n 80174b4 <lwip_netconn_do_close_internal+0x1a4>
  56710. }
  56711. }
  56712. } else {
  56713. /* Closing failed for a non-memory error: give up */
  56714. close_finished = 1;
  56715. 80174b0: 2301 movs r3, #1
  56716. 80174b2: 757b strb r3, [r7, #21]
  56717. }
  56718. }
  56719. if (close_finished) {
  56720. 80174b4: 7d7b ldrb r3, [r7, #21]
  56721. 80174b6: 2b00 cmp r3, #0
  56722. 80174b8: d052 beq.n 8017560 <lwip_netconn_do_close_internal+0x250>
  56723. /* Closing done (succeeded, non-memory error, nonblocking error or timeout) */
  56724. sys_sem_t *op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  56725. 80174ba: 687b ldr r3, [r7, #4]
  56726. 80174bc: 6adb ldr r3, [r3, #44] @ 0x2c
  56727. 80174be: 681b ldr r3, [r3, #0]
  56728. 80174c0: 330c adds r3, #12
  56729. 80174c2: 60bb str r3, [r7, #8]
  56730. conn->current_msg->err = err;
  56731. 80174c4: 687b ldr r3, [r7, #4]
  56732. 80174c6: 6adb ldr r3, [r3, #44] @ 0x2c
  56733. 80174c8: 7dfa ldrb r2, [r7, #23]
  56734. 80174ca: 711a strb r2, [r3, #4]
  56735. conn->current_msg = NULL;
  56736. 80174cc: 687b ldr r3, [r7, #4]
  56737. 80174ce: 2200 movs r2, #0
  56738. 80174d0: 62da str r2, [r3, #44] @ 0x2c
  56739. conn->state = NETCONN_NONE;
  56740. 80174d2: 687b ldr r3, [r7, #4]
  56741. 80174d4: 2200 movs r2, #0
  56742. 80174d6: 705a strb r2, [r3, #1]
  56743. if (err == ERR_OK) {
  56744. 80174d8: f997 3017 ldrsb.w r3, [r7, #23]
  56745. 80174dc: 2b00 cmp r3, #0
  56746. 80174de: d129 bne.n 8017534 <lwip_netconn_do_close_internal+0x224>
  56747. if (shut_close) {
  56748. 80174e0: 7dbb ldrb r3, [r7, #22]
  56749. 80174e2: 2b00 cmp r3, #0
  56750. 80174e4: d00c beq.n 8017500 <lwip_netconn_do_close_internal+0x1f0>
  56751. /* Set back some callback pointers as conn is going away */
  56752. conn->pcb.tcp = NULL;
  56753. 80174e6: 687b ldr r3, [r7, #4]
  56754. 80174e8: 2200 movs r2, #0
  56755. 80174ea: 605a str r2, [r3, #4]
  56756. /* Trigger select() in socket layer. Make sure everybody notices activity
  56757. on the connection, error first! */
  56758. API_EVENT(conn, NETCONN_EVT_ERROR, 0);
  56759. 80174ec: 687b ldr r3, [r7, #4]
  56760. 80174ee: 6b1b ldr r3, [r3, #48] @ 0x30
  56761. 80174f0: 2b00 cmp r3, #0
  56762. 80174f2: d005 beq.n 8017500 <lwip_netconn_do_close_internal+0x1f0>
  56763. 80174f4: 687b ldr r3, [r7, #4]
  56764. 80174f6: 6b1b ldr r3, [r3, #48] @ 0x30
  56765. 80174f8: 2200 movs r2, #0
  56766. 80174fa: 2104 movs r1, #4
  56767. 80174fc: 6878 ldr r0, [r7, #4]
  56768. 80174fe: 4798 blx r3
  56769. }
  56770. if (shut_rx) {
  56771. 8017500: 7bbb ldrb r3, [r7, #14]
  56772. 8017502: 2b00 cmp r3, #0
  56773. 8017504: d009 beq.n 801751a <lwip_netconn_do_close_internal+0x20a>
  56774. API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0);
  56775. 8017506: 687b ldr r3, [r7, #4]
  56776. 8017508: 6b1b ldr r3, [r3, #48] @ 0x30
  56777. 801750a: 2b00 cmp r3, #0
  56778. 801750c: d005 beq.n 801751a <lwip_netconn_do_close_internal+0x20a>
  56779. 801750e: 687b ldr r3, [r7, #4]
  56780. 8017510: 6b1b ldr r3, [r3, #48] @ 0x30
  56781. 8017512: 2200 movs r2, #0
  56782. 8017514: 2100 movs r1, #0
  56783. 8017516: 6878 ldr r0, [r7, #4]
  56784. 8017518: 4798 blx r3
  56785. }
  56786. if (shut_tx) {
  56787. 801751a: 7b7b ldrb r3, [r7, #13]
  56788. 801751c: 2b00 cmp r3, #0
  56789. 801751e: d009 beq.n 8017534 <lwip_netconn_do_close_internal+0x224>
  56790. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  56791. 8017520: 687b ldr r3, [r7, #4]
  56792. 8017522: 6b1b ldr r3, [r3, #48] @ 0x30
  56793. 8017524: 2b00 cmp r3, #0
  56794. 8017526: d005 beq.n 8017534 <lwip_netconn_do_close_internal+0x224>
  56795. 8017528: 687b ldr r3, [r7, #4]
  56796. 801752a: 6b1b ldr r3, [r3, #48] @ 0x30
  56797. 801752c: 2200 movs r2, #0
  56798. 801752e: 2102 movs r1, #2
  56799. 8017530: 6878 ldr r0, [r7, #4]
  56800. 8017532: 4798 blx r3
  56801. }
  56802. }
  56803. #if LWIP_TCPIP_CORE_LOCKING
  56804. if (delayed)
  56805. 8017534: 78fb ldrb r3, [r7, #3]
  56806. 8017536: 2b00 cmp r3, #0
  56807. 8017538: d002 beq.n 8017540 <lwip_netconn_do_close_internal+0x230>
  56808. #endif
  56809. {
  56810. /* wake up the application task */
  56811. sys_sem_signal(op_completed_sem);
  56812. 801753a: 68b8 ldr r0, [r7, #8]
  56813. 801753c: f00f fde2 bl 8027104 <sys_sem_signal>
  56814. }
  56815. return ERR_OK;
  56816. 8017540: 2300 movs r3, #0
  56817. 8017542: e03c b.n 80175be <lwip_netconn_do_close_internal+0x2ae>
  56818. 8017544: 0802ddc0 .word 0x0802ddc0
  56819. 8017548: 0802e094 .word 0x0802e094
  56820. 801754c: 0802de04 .word 0x0802de04
  56821. 8017550: 0802e0a4 .word 0x0802e0a4
  56822. 8017554: 0802e0c4 .word 0x0802e0c4
  56823. 8017558: 0802e0e8 .word 0x0802e0e8
  56824. 801755c: 0802df28 .word 0x0802df28
  56825. }
  56826. if (!close_finished) {
  56827. 8017560: 7d7b ldrb r3, [r7, #21]
  56828. 8017562: 2b00 cmp r3, #0
  56829. 8017564: d11e bne.n 80175a4 <lwip_netconn_do_close_internal+0x294>
  56830. /* Closing failed and we want to wait: restore some of the callbacks */
  56831. /* Closing of listen pcb will never fail! */
  56832. LWIP_ASSERT("Closing a listen pcb may not fail!", (tpcb->state != LISTEN));
  56833. 8017566: 693b ldr r3, [r7, #16]
  56834. 8017568: 7d1b ldrb r3, [r3, #20]
  56835. 801756a: 2b01 cmp r3, #1
  56836. 801756c: d106 bne.n 801757c <lwip_netconn_do_close_internal+0x26c>
  56837. 801756e: 4b16 ldr r3, [pc, #88] @ (80175c8 <lwip_netconn_do_close_internal+0x2b8>)
  56838. 8017570: f240 4241 movw r2, #1089 @ 0x441
  56839. 8017574: 4915 ldr r1, [pc, #84] @ (80175cc <lwip_netconn_do_close_internal+0x2bc>)
  56840. 8017576: 4816 ldr r0, [pc, #88] @ (80175d0 <lwip_netconn_do_close_internal+0x2c0>)
  56841. 8017578: f013 f8f0 bl 802a75c <iprintf>
  56842. if (shut_tx) {
  56843. 801757c: 7b7b ldrb r3, [r7, #13]
  56844. 801757e: 2b00 cmp r3, #0
  56845. 8017580: d003 beq.n 801758a <lwip_netconn_do_close_internal+0x27a>
  56846. tcp_sent(tpcb, sent_tcp);
  56847. 8017582: 4914 ldr r1, [pc, #80] @ (80175d4 <lwip_netconn_do_close_internal+0x2c4>)
  56848. 8017584: 6938 ldr r0, [r7, #16]
  56849. 8017586: f005 fcfd bl 801cf84 <tcp_sent>
  56850. }
  56851. /* when waiting for close, set up poll interval to 500ms */
  56852. tcp_poll(tpcb, poll_tcp, 1);
  56853. 801758a: 2201 movs r2, #1
  56854. 801758c: 4912 ldr r1, [pc, #72] @ (80175d8 <lwip_netconn_do_close_internal+0x2c8>)
  56855. 801758e: 6938 ldr r0, [r7, #16]
  56856. 8017590: f005 fd58 bl 801d044 <tcp_poll>
  56857. tcp_err(tpcb, err_tcp);
  56858. 8017594: 4911 ldr r1, [pc, #68] @ (80175dc <lwip_netconn_do_close_internal+0x2cc>)
  56859. 8017596: 6938 ldr r0, [r7, #16]
  56860. 8017598: f005 fd18 bl 801cfcc <tcp_err>
  56861. tcp_arg(tpcb, conn);
  56862. 801759c: 6879 ldr r1, [r7, #4]
  56863. 801759e: 6938 ldr r0, [r7, #16]
  56864. 80175a0: f005 fcba bl 801cf18 <tcp_arg>
  56865. /* don't restore recv callback: we don't want to receive any more data */
  56866. }
  56867. /* If closing didn't succeed, we get called again either
  56868. from poll_tcp or from sent_tcp */
  56869. LWIP_ASSERT("err != ERR_OK", err != ERR_OK);
  56870. 80175a4: f997 3017 ldrsb.w r3, [r7, #23]
  56871. 80175a8: 2b00 cmp r3, #0
  56872. 80175aa: d106 bne.n 80175ba <lwip_netconn_do_close_internal+0x2aa>
  56873. 80175ac: 4b06 ldr r3, [pc, #24] @ (80175c8 <lwip_netconn_do_close_internal+0x2b8>)
  56874. 80175ae: f240 424d movw r2, #1101 @ 0x44d
  56875. 80175b2: 490b ldr r1, [pc, #44] @ (80175e0 <lwip_netconn_do_close_internal+0x2d0>)
  56876. 80175b4: 4806 ldr r0, [pc, #24] @ (80175d0 <lwip_netconn_do_close_internal+0x2c0>)
  56877. 80175b6: f013 f8d1 bl 802a75c <iprintf>
  56878. return err;
  56879. 80175ba: f997 3017 ldrsb.w r3, [r7, #23]
  56880. }
  56881. 80175be: 4618 mov r0, r3
  56882. 80175c0: 3718 adds r7, #24
  56883. 80175c2: 46bd mov sp, r7
  56884. 80175c4: bd80 pop {r7, pc}
  56885. 80175c6: bf00 nop
  56886. 80175c8: 0802ddc0 .word 0x0802ddc0
  56887. 80175cc: 0802e0fc .word 0x0802e0fc
  56888. 80175d0: 0802de04 .word 0x0802de04
  56889. 80175d4: 08016cd9 .word 0x08016cd9
  56890. 80175d8: 08016c09 .word 0x08016c09
  56891. 80175dc: 08016d89 .word 0x08016d89
  56892. 80175e0: 0802e120 .word 0x0802e120
  56893. 080175e4 <lwip_netconn_do_delconn>:
  56894. *
  56895. * @param m the api_msg pointing to the connection
  56896. */
  56897. void
  56898. lwip_netconn_do_delconn(void *m)
  56899. {
  56900. 80175e4: b580 push {r7, lr}
  56901. 80175e6: b084 sub sp, #16
  56902. 80175e8: af00 add r7, sp, #0
  56903. 80175ea: 6078 str r0, [r7, #4]
  56904. struct api_msg *msg = (struct api_msg *)m;
  56905. 80175ec: 687b ldr r3, [r7, #4]
  56906. 80175ee: 60fb str r3, [r7, #12]
  56907. enum netconn_state state = msg->conn->state;
  56908. 80175f0: 68fb ldr r3, [r7, #12]
  56909. 80175f2: 681b ldr r3, [r3, #0]
  56910. 80175f4: 785b ldrb r3, [r3, #1]
  56911. 80175f6: 72fb strb r3, [r7, #11]
  56912. LWIP_ASSERT("netconn state error", /* this only happens for TCP netconns */
  56913. 80175f8: 7afb ldrb r3, [r7, #11]
  56914. 80175fa: 2b00 cmp r3, #0
  56915. 80175fc: d00d beq.n 801761a <lwip_netconn_do_delconn+0x36>
  56916. 80175fe: 68fb ldr r3, [r7, #12]
  56917. 8017600: 681b ldr r3, [r3, #0]
  56918. 8017602: 781b ldrb r3, [r3, #0]
  56919. 8017604: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56920. 8017608: 2b10 cmp r3, #16
  56921. 801760a: d006 beq.n 801761a <lwip_netconn_do_delconn+0x36>
  56922. 801760c: 4b60 ldr r3, [pc, #384] @ (8017790 <lwip_netconn_do_delconn+0x1ac>)
  56923. 801760e: f240 425e movw r2, #1118 @ 0x45e
  56924. 8017612: 4960 ldr r1, [pc, #384] @ (8017794 <lwip_netconn_do_delconn+0x1b0>)
  56925. 8017614: 4860 ldr r0, [pc, #384] @ (8017798 <lwip_netconn_do_delconn+0x1b4>)
  56926. 8017616: f013 f8a1 bl 802a75c <iprintf>
  56927. msg->conn->state = NETCONN_NONE;
  56928. sys_sem_signal(op_completed_sem);
  56929. }
  56930. }
  56931. #else /* LWIP_NETCONN_FULLDUPLEX */
  56932. if (((state != NETCONN_NONE) &&
  56933. 801761a: 7afb ldrb r3, [r7, #11]
  56934. 801761c: 2b00 cmp r3, #0
  56935. 801761e: d005 beq.n 801762c <lwip_netconn_do_delconn+0x48>
  56936. 8017620: 7afb ldrb r3, [r7, #11]
  56937. 8017622: 2b02 cmp r3, #2
  56938. 8017624: d002 beq.n 801762c <lwip_netconn_do_delconn+0x48>
  56939. (state != NETCONN_LISTEN) &&
  56940. 8017626: 7afb ldrb r3, [r7, #11]
  56941. 8017628: 2b03 cmp r3, #3
  56942. 801762a: d10a bne.n 8017642 <lwip_netconn_do_delconn+0x5e>
  56943. (state != NETCONN_CONNECT)) ||
  56944. 801762c: 7afb ldrb r3, [r7, #11]
  56945. 801762e: 2b03 cmp r3, #3
  56946. 8017630: d10b bne.n 801764a <lwip_netconn_do_delconn+0x66>
  56947. ((state == NETCONN_CONNECT) && !IN_NONBLOCKING_CONNECT(msg->conn))) {
  56948. 8017632: 68fb ldr r3, [r7, #12]
  56949. 8017634: 681b ldr r3, [r3, #0]
  56950. 8017636: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56951. 801763a: f003 0304 and.w r3, r3, #4
  56952. 801763e: 2b00 cmp r3, #0
  56953. 8017640: d103 bne.n 801764a <lwip_netconn_do_delconn+0x66>
  56954. /* This means either a blocking write or blocking connect is running
  56955. (nonblocking write returns and sets state to NONE) */
  56956. msg->err = ERR_INPROGRESS;
  56957. 8017642: 68fb ldr r3, [r7, #12]
  56958. 8017644: 22fb movs r2, #251 @ 0xfb
  56959. 8017646: 711a strb r2, [r3, #4]
  56960. 8017648: e096 b.n 8017778 <lwip_netconn_do_delconn+0x194>
  56961. } else
  56962. #endif /* LWIP_NETCONN_FULLDUPLEX */
  56963. {
  56964. LWIP_ASSERT("blocking connect in progress",
  56965. 801764a: 7afb ldrb r3, [r7, #11]
  56966. 801764c: 2b03 cmp r3, #3
  56967. 801764e: d10e bne.n 801766e <lwip_netconn_do_delconn+0x8a>
  56968. 8017650: 68fb ldr r3, [r7, #12]
  56969. 8017652: 681b ldr r3, [r3, #0]
  56970. 8017654: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56971. 8017658: f003 0304 and.w r3, r3, #4
  56972. 801765c: 2b00 cmp r3, #0
  56973. 801765e: d106 bne.n 801766e <lwip_netconn_do_delconn+0x8a>
  56974. 8017660: 4b4b ldr r3, [pc, #300] @ (8017790 <lwip_netconn_do_delconn+0x1ac>)
  56975. 8017662: f240 427a movw r2, #1146 @ 0x47a
  56976. 8017666: 494d ldr r1, [pc, #308] @ (801779c <lwip_netconn_do_delconn+0x1b8>)
  56977. 8017668: 484b ldr r0, [pc, #300] @ (8017798 <lwip_netconn_do_delconn+0x1b4>)
  56978. 801766a: f013 f877 bl 802a75c <iprintf>
  56979. (state != NETCONN_CONNECT) || IN_NONBLOCKING_CONNECT(msg->conn));
  56980. msg->err = ERR_OK;
  56981. 801766e: 68fb ldr r3, [r7, #12]
  56982. 8017670: 2200 movs r2, #0
  56983. 8017672: 711a strb r2, [r3, #4]
  56984. #if LWIP_NETCONN_FULLDUPLEX
  56985. /* Mark mboxes invalid */
  56986. netconn_mark_mbox_invalid(msg->conn);
  56987. #else /* LWIP_NETCONN_FULLDUPLEX */
  56988. netconn_drain(msg->conn);
  56989. 8017674: 68fb ldr r3, [r7, #12]
  56990. 8017676: 681b ldr r3, [r3, #0]
  56991. 8017678: 4618 mov r0, r3
  56992. 801767a: f7ff fdcb bl 8017214 <netconn_drain>
  56993. #endif /* LWIP_NETCONN_FULLDUPLEX */
  56994. if (msg->conn->pcb.tcp != NULL) {
  56995. 801767e: 68fb ldr r3, [r7, #12]
  56996. 8017680: 681b ldr r3, [r3, #0]
  56997. 8017682: 685b ldr r3, [r3, #4]
  56998. 8017684: 2b00 cmp r3, #0
  56999. 8017686: d05d beq.n 8017744 <lwip_netconn_do_delconn+0x160>
  57000. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  57001. 8017688: 68fb ldr r3, [r7, #12]
  57002. 801768a: 681b ldr r3, [r3, #0]
  57003. 801768c: 781b ldrb r3, [r3, #0]
  57004. 801768e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  57005. 8017692: 2b10 cmp r3, #16
  57006. 8017694: d00d beq.n 80176b2 <lwip_netconn_do_delconn+0xce>
  57007. 8017696: 2b20 cmp r3, #32
  57008. 8017698: d14f bne.n 801773a <lwip_netconn_do_delconn+0x156>
  57009. raw_remove(msg->conn->pcb.raw);
  57010. break;
  57011. #endif /* LWIP_RAW */
  57012. #if LWIP_UDP
  57013. case NETCONN_UDP:
  57014. msg->conn->pcb.udp->recv_arg = NULL;
  57015. 801769a: 68fb ldr r3, [r7, #12]
  57016. 801769c: 681b ldr r3, [r3, #0]
  57017. 801769e: 685b ldr r3, [r3, #4]
  57018. 80176a0: 2200 movs r2, #0
  57019. 80176a2: 61da str r2, [r3, #28]
  57020. udp_remove(msg->conn->pcb.udp);
  57021. 80176a4: 68fb ldr r3, [r7, #12]
  57022. 80176a6: 681b ldr r3, [r3, #0]
  57023. 80176a8: 685b ldr r3, [r3, #4]
  57024. 80176aa: 4618 mov r0, r3
  57025. 80176ac: f00a ffc6 bl 802263c <udp_remove>
  57026. break;
  57027. 80176b0: e044 b.n 801773c <lwip_netconn_do_delconn+0x158>
  57028. #endif /* LWIP_UDP */
  57029. #if LWIP_TCP
  57030. case NETCONN_TCP:
  57031. LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL);
  57032. 80176b2: 68fb ldr r3, [r7, #12]
  57033. 80176b4: 681b ldr r3, [r3, #0]
  57034. 80176b6: 6adb ldr r3, [r3, #44] @ 0x2c
  57035. 80176b8: 2b00 cmp r3, #0
  57036. 80176ba: d006 beq.n 80176ca <lwip_netconn_do_delconn+0xe6>
  57037. 80176bc: 4b34 ldr r3, [pc, #208] @ (8017790 <lwip_netconn_do_delconn+0x1ac>)
  57038. 80176be: f240 4294 movw r2, #1172 @ 0x494
  57039. 80176c2: 4937 ldr r1, [pc, #220] @ (80177a0 <lwip_netconn_do_delconn+0x1bc>)
  57040. 80176c4: 4834 ldr r0, [pc, #208] @ (8017798 <lwip_netconn_do_delconn+0x1b4>)
  57041. 80176c6: f013 f849 bl 802a75c <iprintf>
  57042. msg->conn->state = NETCONN_CLOSE;
  57043. 80176ca: 68fb ldr r3, [r7, #12]
  57044. 80176cc: 681b ldr r3, [r3, #0]
  57045. 80176ce: 2204 movs r2, #4
  57046. 80176d0: 705a strb r2, [r3, #1]
  57047. msg->msg.sd.shut = NETCONN_SHUT_RDWR;
  57048. 80176d2: 68fb ldr r3, [r7, #12]
  57049. 80176d4: 2203 movs r2, #3
  57050. 80176d6: 721a strb r2, [r3, #8]
  57051. msg->conn->current_msg = msg;
  57052. 80176d8: 68fb ldr r3, [r7, #12]
  57053. 80176da: 681b ldr r3, [r3, #0]
  57054. 80176dc: 68fa ldr r2, [r7, #12]
  57055. 80176de: 62da str r2, [r3, #44] @ 0x2c
  57056. #if LWIP_TCPIP_CORE_LOCKING
  57057. if (lwip_netconn_do_close_internal(msg->conn, 0) != ERR_OK) {
  57058. 80176e0: 68fb ldr r3, [r7, #12]
  57059. 80176e2: 681b ldr r3, [r3, #0]
  57060. 80176e4: 2100 movs r1, #0
  57061. 80176e6: 4618 mov r0, r3
  57062. 80176e8: f7ff fe12 bl 8017310 <lwip_netconn_do_close_internal>
  57063. 80176ec: 4603 mov r3, r0
  57064. 80176ee: 2b00 cmp r3, #0
  57065. 80176f0: d049 beq.n 8017786 <lwip_netconn_do_delconn+0x1a2>
  57066. LWIP_ASSERT("state!", msg->conn->state == NETCONN_CLOSE);
  57067. 80176f2: 68fb ldr r3, [r7, #12]
  57068. 80176f4: 681b ldr r3, [r3, #0]
  57069. 80176f6: 785b ldrb r3, [r3, #1]
  57070. 80176f8: 2b04 cmp r3, #4
  57071. 80176fa: d006 beq.n 801770a <lwip_netconn_do_delconn+0x126>
  57072. 80176fc: 4b24 ldr r3, [pc, #144] @ (8017790 <lwip_netconn_do_delconn+0x1ac>)
  57073. 80176fe: f240 429a movw r2, #1178 @ 0x49a
  57074. 8017702: 4928 ldr r1, [pc, #160] @ (80177a4 <lwip_netconn_do_delconn+0x1c0>)
  57075. 8017704: 4824 ldr r0, [pc, #144] @ (8017798 <lwip_netconn_do_delconn+0x1b4>)
  57076. 8017706: f013 f829 bl 802a75c <iprintf>
  57077. UNLOCK_TCPIP_CORE();
  57078. 801770a: f7f9 fbeb bl 8010ee4 <sys_unlock_tcpip_core>
  57079. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  57080. 801770e: 68fb ldr r3, [r7, #12]
  57081. 8017710: 681b ldr r3, [r3, #0]
  57082. 8017712: 330c adds r3, #12
  57083. 8017714: 2100 movs r1, #0
  57084. 8017716: 4618 mov r0, r3
  57085. 8017718: f00f fcc3 bl 80270a2 <sys_arch_sem_wait>
  57086. LOCK_TCPIP_CORE();
  57087. 801771c: f7f9 fbd2 bl 8010ec4 <sys_lock_tcpip_core>
  57088. LWIP_ASSERT("state!", msg->conn->state == NETCONN_NONE);
  57089. 8017720: 68fb ldr r3, [r7, #12]
  57090. 8017722: 681b ldr r3, [r3, #0]
  57091. 8017724: 785b ldrb r3, [r3, #1]
  57092. 8017726: 2b00 cmp r3, #0
  57093. 8017728: d02d beq.n 8017786 <lwip_netconn_do_delconn+0x1a2>
  57094. 801772a: 4b19 ldr r3, [pc, #100] @ (8017790 <lwip_netconn_do_delconn+0x1ac>)
  57095. 801772c: f240 429e movw r2, #1182 @ 0x49e
  57096. 8017730: 491c ldr r1, [pc, #112] @ (80177a4 <lwip_netconn_do_delconn+0x1c0>)
  57097. 8017732: 4819 ldr r0, [pc, #100] @ (8017798 <lwip_netconn_do_delconn+0x1b4>)
  57098. 8017734: f013 f812 bl 802a75c <iprintf>
  57099. #else /* LWIP_TCPIP_CORE_LOCKING */
  57100. lwip_netconn_do_close_internal(msg->conn);
  57101. #endif /* LWIP_TCPIP_CORE_LOCKING */
  57102. /* API_EVENT is called inside lwip_netconn_do_close_internal, before releasing
  57103. the application thread, so we can return at this point! */
  57104. return;
  57105. 8017738: e025 b.n 8017786 <lwip_netconn_do_delconn+0x1a2>
  57106. #endif /* LWIP_TCP */
  57107. default:
  57108. break;
  57109. 801773a: bf00 nop
  57110. }
  57111. msg->conn->pcb.tcp = NULL;
  57112. 801773c: 68fb ldr r3, [r7, #12]
  57113. 801773e: 681b ldr r3, [r3, #0]
  57114. 8017740: 2200 movs r2, #0
  57115. 8017742: 605a str r2, [r3, #4]
  57116. }
  57117. /* tcp netconns don't come here! */
  57118. /* @todo: this lets select make the socket readable and writable,
  57119. which is wrong! errfd instead? */
  57120. API_EVENT(msg->conn, NETCONN_EVT_RCVPLUS, 0);
  57121. 8017744: 68fb ldr r3, [r7, #12]
  57122. 8017746: 681b ldr r3, [r3, #0]
  57123. 8017748: 6b1b ldr r3, [r3, #48] @ 0x30
  57124. 801774a: 2b00 cmp r3, #0
  57125. 801774c: d007 beq.n 801775e <lwip_netconn_do_delconn+0x17a>
  57126. 801774e: 68fb ldr r3, [r7, #12]
  57127. 8017750: 681b ldr r3, [r3, #0]
  57128. 8017752: 6b1b ldr r3, [r3, #48] @ 0x30
  57129. 8017754: 68fa ldr r2, [r7, #12]
  57130. 8017756: 6810 ldr r0, [r2, #0]
  57131. 8017758: 2200 movs r2, #0
  57132. 801775a: 2100 movs r1, #0
  57133. 801775c: 4798 blx r3
  57134. API_EVENT(msg->conn, NETCONN_EVT_SENDPLUS, 0);
  57135. 801775e: 68fb ldr r3, [r7, #12]
  57136. 8017760: 681b ldr r3, [r3, #0]
  57137. 8017762: 6b1b ldr r3, [r3, #48] @ 0x30
  57138. 8017764: 2b00 cmp r3, #0
  57139. 8017766: d007 beq.n 8017778 <lwip_netconn_do_delconn+0x194>
  57140. 8017768: 68fb ldr r3, [r7, #12]
  57141. 801776a: 681b ldr r3, [r3, #0]
  57142. 801776c: 6b1b ldr r3, [r3, #48] @ 0x30
  57143. 801776e: 68fa ldr r2, [r7, #12]
  57144. 8017770: 6810 ldr r0, [r2, #0]
  57145. 8017772: 2200 movs r2, #0
  57146. 8017774: 2102 movs r1, #2
  57147. 8017776: 4798 blx r3
  57148. }
  57149. if (sys_sem_valid(LWIP_API_MSG_SEM(msg))) {
  57150. 8017778: 68fb ldr r3, [r7, #12]
  57151. 801777a: 681b ldr r3, [r3, #0]
  57152. 801777c: 330c adds r3, #12
  57153. 801777e: 4618 mov r0, r3
  57154. 8017780: f00f fcda bl 8027138 <sys_sem_valid>
  57155. 8017784: e000 b.n 8017788 <lwip_netconn_do_delconn+0x1a4>
  57156. return;
  57157. 8017786: bf00 nop
  57158. TCPIP_APIMSG_ACK(msg);
  57159. }
  57160. }
  57161. 8017788: 3710 adds r7, #16
  57162. 801778a: 46bd mov sp, r7
  57163. 801778c: bd80 pop {r7, pc}
  57164. 801778e: bf00 nop
  57165. 8017790: 0802ddc0 .word 0x0802ddc0
  57166. 8017794: 0802e130 .word 0x0802e130
  57167. 8017798: 0802de04 .word 0x0802de04
  57168. 801779c: 0802e144 .word 0x0802e144
  57169. 80177a0: 0802e164 .word 0x0802e164
  57170. 80177a4: 0802e180 .word 0x0802e180
  57171. 080177a8 <lwip_netconn_do_connected>:
  57172. *
  57173. * @see tcp.h (struct tcp_pcb.connected) for parameters and return values
  57174. */
  57175. static err_t
  57176. lwip_netconn_do_connected(void *arg, struct tcp_pcb *pcb, err_t err)
  57177. {
  57178. 80177a8: b580 push {r7, lr}
  57179. 80177aa: b088 sub sp, #32
  57180. 80177ac: af00 add r7, sp, #0
  57181. 80177ae: 60f8 str r0, [r7, #12]
  57182. 80177b0: 60b9 str r1, [r7, #8]
  57183. 80177b2: 4613 mov r3, r2
  57184. 80177b4: 71fb strb r3, [r7, #7]
  57185. struct netconn *conn;
  57186. int was_blocking;
  57187. sys_sem_t *op_completed_sem = NULL;
  57188. 80177b6: 2300 movs r3, #0
  57189. 80177b8: 61fb str r3, [r7, #28]
  57190. LWIP_UNUSED_ARG(pcb);
  57191. conn = (struct netconn *)arg;
  57192. 80177ba: 68fb ldr r3, [r7, #12]
  57193. 80177bc: 61bb str r3, [r7, #24]
  57194. if (conn == NULL) {
  57195. 80177be: 69bb ldr r3, [r7, #24]
  57196. 80177c0: 2b00 cmp r3, #0
  57197. 80177c2: d102 bne.n 80177ca <lwip_netconn_do_connected+0x22>
  57198. return ERR_VAL;
  57199. 80177c4: f06f 0305 mvn.w r3, #5
  57200. 80177c8: e074 b.n 80178b4 <lwip_netconn_do_connected+0x10c>
  57201. }
  57202. LWIP_ASSERT("conn->state == NETCONN_CONNECT", conn->state == NETCONN_CONNECT);
  57203. 80177ca: 69bb ldr r3, [r7, #24]
  57204. 80177cc: 785b ldrb r3, [r3, #1]
  57205. 80177ce: 2b03 cmp r3, #3
  57206. 80177d0: d006 beq.n 80177e0 <lwip_netconn_do_connected+0x38>
  57207. 80177d2: 4b3a ldr r3, [pc, #232] @ (80178bc <lwip_netconn_do_connected+0x114>)
  57208. 80177d4: f240 5223 movw r2, #1315 @ 0x523
  57209. 80177d8: 4939 ldr r1, [pc, #228] @ (80178c0 <lwip_netconn_do_connected+0x118>)
  57210. 80177da: 483a ldr r0, [pc, #232] @ (80178c4 <lwip_netconn_do_connected+0x11c>)
  57211. 80177dc: f012 ffbe bl 802a75c <iprintf>
  57212. LWIP_ASSERT("(conn->current_msg != NULL) || conn->in_non_blocking_connect",
  57213. 80177e0: 69bb ldr r3, [r7, #24]
  57214. 80177e2: 6adb ldr r3, [r3, #44] @ 0x2c
  57215. 80177e4: 2b00 cmp r3, #0
  57216. 80177e6: d10d bne.n 8017804 <lwip_netconn_do_connected+0x5c>
  57217. 80177e8: 69bb ldr r3, [r7, #24]
  57218. 80177ea: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  57219. 80177ee: f003 0304 and.w r3, r3, #4
  57220. 80177f2: 2b00 cmp r3, #0
  57221. 80177f4: d106 bne.n 8017804 <lwip_netconn_do_connected+0x5c>
  57222. 80177f6: 4b31 ldr r3, [pc, #196] @ (80178bc <lwip_netconn_do_connected+0x114>)
  57223. 80177f8: f240 5224 movw r2, #1316 @ 0x524
  57224. 80177fc: 4932 ldr r1, [pc, #200] @ (80178c8 <lwip_netconn_do_connected+0x120>)
  57225. 80177fe: 4831 ldr r0, [pc, #196] @ (80178c4 <lwip_netconn_do_connected+0x11c>)
  57226. 8017800: f012 ffac bl 802a75c <iprintf>
  57227. (conn->current_msg != NULL) || IN_NONBLOCKING_CONNECT(conn));
  57228. if (conn->current_msg != NULL) {
  57229. 8017804: 69bb ldr r3, [r7, #24]
  57230. 8017806: 6adb ldr r3, [r3, #44] @ 0x2c
  57231. 8017808: 2b00 cmp r3, #0
  57232. 801780a: d008 beq.n 801781e <lwip_netconn_do_connected+0x76>
  57233. conn->current_msg->err = err;
  57234. 801780c: 69bb ldr r3, [r7, #24]
  57235. 801780e: 6adb ldr r3, [r3, #44] @ 0x2c
  57236. 8017810: 79fa ldrb r2, [r7, #7]
  57237. 8017812: 711a strb r2, [r3, #4]
  57238. op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  57239. 8017814: 69bb ldr r3, [r7, #24]
  57240. 8017816: 6adb ldr r3, [r3, #44] @ 0x2c
  57241. 8017818: 681b ldr r3, [r3, #0]
  57242. 801781a: 330c adds r3, #12
  57243. 801781c: 61fb str r3, [r7, #28]
  57244. }
  57245. if ((NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) && (err == ERR_OK)) {
  57246. 801781e: 69bb ldr r3, [r7, #24]
  57247. 8017820: 781b ldrb r3, [r3, #0]
  57248. 8017822: f003 03f0 and.w r3, r3, #240 @ 0xf0
  57249. 8017826: 2b10 cmp r3, #16
  57250. 8017828: d106 bne.n 8017838 <lwip_netconn_do_connected+0x90>
  57251. 801782a: f997 3007 ldrsb.w r3, [r7, #7]
  57252. 801782e: 2b00 cmp r3, #0
  57253. 8017830: d102 bne.n 8017838 <lwip_netconn_do_connected+0x90>
  57254. setup_tcp(conn);
  57255. 8017832: 69b8 ldr r0, [r7, #24]
  57256. 8017834: f7ff fb82 bl 8016f3c <setup_tcp>
  57257. }
  57258. was_blocking = !IN_NONBLOCKING_CONNECT(conn);
  57259. 8017838: 69bb ldr r3, [r7, #24]
  57260. 801783a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  57261. 801783e: f003 0304 and.w r3, r3, #4
  57262. 8017842: 2b00 cmp r3, #0
  57263. 8017844: bf0c ite eq
  57264. 8017846: 2301 moveq r3, #1
  57265. 8017848: 2300 movne r3, #0
  57266. 801784a: b2db uxtb r3, r3
  57267. 801784c: 617b str r3, [r7, #20]
  57268. SET_NONBLOCKING_CONNECT(conn, 0);
  57269. 801784e: 69bb ldr r3, [r7, #24]
  57270. 8017850: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  57271. 8017854: f023 0304 bic.w r3, r3, #4
  57272. 8017858: b2da uxtb r2, r3
  57273. 801785a: 69bb ldr r3, [r7, #24]
  57274. 801785c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  57275. LWIP_ASSERT("blocking connect state error",
  57276. 8017860: 697b ldr r3, [r7, #20]
  57277. 8017862: 2b00 cmp r3, #0
  57278. 8017864: d002 beq.n 801786c <lwip_netconn_do_connected+0xc4>
  57279. 8017866: 69fb ldr r3, [r7, #28]
  57280. 8017868: 2b00 cmp r3, #0
  57281. 801786a: d10c bne.n 8017886 <lwip_netconn_do_connected+0xde>
  57282. 801786c: 697b ldr r3, [r7, #20]
  57283. 801786e: 2b00 cmp r3, #0
  57284. 8017870: d102 bne.n 8017878 <lwip_netconn_do_connected+0xd0>
  57285. 8017872: 69fb ldr r3, [r7, #28]
  57286. 8017874: 2b00 cmp r3, #0
  57287. 8017876: d006 beq.n 8017886 <lwip_netconn_do_connected+0xde>
  57288. 8017878: 4b10 ldr r3, [pc, #64] @ (80178bc <lwip_netconn_do_connected+0x114>)
  57289. 801787a: f44f 62a6 mov.w r2, #1328 @ 0x530
  57290. 801787e: 4913 ldr r1, [pc, #76] @ (80178cc <lwip_netconn_do_connected+0x124>)
  57291. 8017880: 4810 ldr r0, [pc, #64] @ (80178c4 <lwip_netconn_do_connected+0x11c>)
  57292. 8017882: f012 ff6b bl 802a75c <iprintf>
  57293. (was_blocking && op_completed_sem != NULL) ||
  57294. (!was_blocking && op_completed_sem == NULL));
  57295. conn->current_msg = NULL;
  57296. 8017886: 69bb ldr r3, [r7, #24]
  57297. 8017888: 2200 movs r2, #0
  57298. 801788a: 62da str r2, [r3, #44] @ 0x2c
  57299. conn->state = NETCONN_NONE;
  57300. 801788c: 69bb ldr r3, [r7, #24]
  57301. 801788e: 2200 movs r2, #0
  57302. 8017890: 705a strb r2, [r3, #1]
  57303. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  57304. 8017892: 69bb ldr r3, [r7, #24]
  57305. 8017894: 6b1b ldr r3, [r3, #48] @ 0x30
  57306. 8017896: 2b00 cmp r3, #0
  57307. 8017898: d005 beq.n 80178a6 <lwip_netconn_do_connected+0xfe>
  57308. 801789a: 69bb ldr r3, [r7, #24]
  57309. 801789c: 6b1b ldr r3, [r3, #48] @ 0x30
  57310. 801789e: 2200 movs r2, #0
  57311. 80178a0: 2102 movs r1, #2
  57312. 80178a2: 69b8 ldr r0, [r7, #24]
  57313. 80178a4: 4798 blx r3
  57314. if (was_blocking) {
  57315. 80178a6: 697b ldr r3, [r7, #20]
  57316. 80178a8: 2b00 cmp r3, #0
  57317. 80178aa: d002 beq.n 80178b2 <lwip_netconn_do_connected+0x10a>
  57318. sys_sem_signal(op_completed_sem);
  57319. 80178ac: 69f8 ldr r0, [r7, #28]
  57320. 80178ae: f00f fc29 bl 8027104 <sys_sem_signal>
  57321. }
  57322. return ERR_OK;
  57323. 80178b2: 2300 movs r3, #0
  57324. }
  57325. 80178b4: 4618 mov r0, r3
  57326. 80178b6: 3720 adds r7, #32
  57327. 80178b8: 46bd mov sp, r7
  57328. 80178ba: bd80 pop {r7, pc}
  57329. 80178bc: 0802ddc0 .word 0x0802ddc0
  57330. 80178c0: 0802e188 .word 0x0802e188
  57331. 80178c4: 0802de04 .word 0x0802de04
  57332. 80178c8: 0802e1a8 .word 0x0802e1a8
  57333. 80178cc: 0802e1e8 .word 0x0802e1e8
  57334. 080178d0 <lwip_netconn_do_connect>:
  57335. * @param m the api_msg pointing to the connection and containing
  57336. * the IP address and port to connect to
  57337. */
  57338. void
  57339. lwip_netconn_do_connect(void *m)
  57340. {
  57341. 80178d0: b580 push {r7, lr}
  57342. 80178d2: b086 sub sp, #24
  57343. 80178d4: af00 add r7, sp, #0
  57344. 80178d6: 6078 str r0, [r7, #4]
  57345. struct api_msg *msg = (struct api_msg *)m;
  57346. 80178d8: 687b ldr r3, [r7, #4]
  57347. 80178da: 613b str r3, [r7, #16]
  57348. err_t err;
  57349. if (msg->conn->pcb.tcp == NULL) {
  57350. 80178dc: 693b ldr r3, [r7, #16]
  57351. 80178de: 681b ldr r3, [r3, #0]
  57352. 80178e0: 685b ldr r3, [r3, #4]
  57353. 80178e2: 2b00 cmp r3, #0
  57354. 80178e4: d102 bne.n 80178ec <lwip_netconn_do_connect+0x1c>
  57355. /* This may happen when calling netconn_connect() a second time */
  57356. err = ERR_CLSD;
  57357. 80178e6: 23f1 movs r3, #241 @ 0xf1
  57358. 80178e8: 75fb strb r3, [r7, #23]
  57359. 80178ea: e09e b.n 8017a2a <lwip_netconn_do_connect+0x15a>
  57360. } else {
  57361. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  57362. 80178ec: 693b ldr r3, [r7, #16]
  57363. 80178ee: 681b ldr r3, [r3, #0]
  57364. 80178f0: 781b ldrb r3, [r3, #0]
  57365. 80178f2: f003 03f0 and.w r3, r3, #240 @ 0xf0
  57366. 80178f6: 2b10 cmp r3, #16
  57367. 80178f8: d00f beq.n 801791a <lwip_netconn_do_connect+0x4a>
  57368. 80178fa: 2b20 cmp r3, #32
  57369. 80178fc: f040 808a bne.w 8017a14 <lwip_netconn_do_connect+0x144>
  57370. err = raw_connect(msg->conn->pcb.raw, API_EXPR_REF(msg->msg.bc.ipaddr));
  57371. break;
  57372. #endif /* LWIP_RAW */
  57373. #if LWIP_UDP
  57374. case NETCONN_UDP:
  57375. err = udp_connect(msg->conn->pcb.udp, API_EXPR_REF(msg->msg.bc.ipaddr), msg->msg.bc.port);
  57376. 8017900: 693b ldr r3, [r7, #16]
  57377. 8017902: 681b ldr r3, [r3, #0]
  57378. 8017904: 6858 ldr r0, [r3, #4]
  57379. 8017906: 693b ldr r3, [r7, #16]
  57380. 8017908: 6899 ldr r1, [r3, #8]
  57381. 801790a: 693b ldr r3, [r7, #16]
  57382. 801790c: 899b ldrh r3, [r3, #12]
  57383. 801790e: 461a mov r2, r3
  57384. 8017910: f00a fdd8 bl 80224c4 <udp_connect>
  57385. 8017914: 4603 mov r3, r0
  57386. 8017916: 75fb strb r3, [r7, #23]
  57387. break;
  57388. 8017918: e087 b.n 8017a2a <lwip_netconn_do_connect+0x15a>
  57389. #endif /* LWIP_UDP */
  57390. #if LWIP_TCP
  57391. case NETCONN_TCP:
  57392. /* Prevent connect while doing any other action. */
  57393. if (msg->conn->state == NETCONN_CONNECT) {
  57394. 801791a: 693b ldr r3, [r7, #16]
  57395. 801791c: 681b ldr r3, [r3, #0]
  57396. 801791e: 785b ldrb r3, [r3, #1]
  57397. 8017920: 2b03 cmp r3, #3
  57398. 8017922: d102 bne.n 801792a <lwip_netconn_do_connect+0x5a>
  57399. err = ERR_ALREADY;
  57400. 8017924: 23f7 movs r3, #247 @ 0xf7
  57401. 8017926: 75fb strb r3, [r7, #23]
  57402. #endif /* LWIP_TCPIP_CORE_LOCKING */
  57403. return;
  57404. }
  57405. }
  57406. }
  57407. break;
  57408. 8017928: e07e b.n 8017a28 <lwip_netconn_do_connect+0x158>
  57409. } else if (msg->conn->state != NETCONN_NONE) {
  57410. 801792a: 693b ldr r3, [r7, #16]
  57411. 801792c: 681b ldr r3, [r3, #0]
  57412. 801792e: 785b ldrb r3, [r3, #1]
  57413. 8017930: 2b00 cmp r3, #0
  57414. 8017932: d002 beq.n 801793a <lwip_netconn_do_connect+0x6a>
  57415. err = ERR_ISCONN;
  57416. 8017934: 23f6 movs r3, #246 @ 0xf6
  57417. 8017936: 75fb strb r3, [r7, #23]
  57418. break;
  57419. 8017938: e076 b.n 8017a28 <lwip_netconn_do_connect+0x158>
  57420. setup_tcp(msg->conn);
  57421. 801793a: 693b ldr r3, [r7, #16]
  57422. 801793c: 681b ldr r3, [r3, #0]
  57423. 801793e: 4618 mov r0, r3
  57424. 8017940: f7ff fafc bl 8016f3c <setup_tcp>
  57425. err = tcp_connect(msg->conn->pcb.tcp, API_EXPR_REF(msg->msg.bc.ipaddr),
  57426. 8017944: 693b ldr r3, [r7, #16]
  57427. 8017946: 681b ldr r3, [r3, #0]
  57428. 8017948: 6858 ldr r0, [r3, #4]
  57429. 801794a: 693b ldr r3, [r7, #16]
  57430. 801794c: 6899 ldr r1, [r3, #8]
  57431. 801794e: 693b ldr r3, [r7, #16]
  57432. 8017950: 899a ldrh r2, [r3, #12]
  57433. 8017952: 4b3a ldr r3, [pc, #232] @ (8017a3c <lwip_netconn_do_connect+0x16c>)
  57434. 8017954: f004 fb90 bl 801c078 <tcp_connect>
  57435. 8017958: 4603 mov r3, r0
  57436. 801795a: 75fb strb r3, [r7, #23]
  57437. if (err == ERR_OK) {
  57438. 801795c: f997 3017 ldrsb.w r3, [r7, #23]
  57439. 8017960: 2b00 cmp r3, #0
  57440. 8017962: d161 bne.n 8017a28 <lwip_netconn_do_connect+0x158>
  57441. u8_t non_blocking = netconn_is_nonblocking(msg->conn);
  57442. 8017964: 693b ldr r3, [r7, #16]
  57443. 8017966: 681b ldr r3, [r3, #0]
  57444. 8017968: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  57445. 801796c: f003 0302 and.w r3, r3, #2
  57446. 8017970: 2b00 cmp r3, #0
  57447. 8017972: bf14 ite ne
  57448. 8017974: 2301 movne r3, #1
  57449. 8017976: 2300 moveq r3, #0
  57450. 8017978: b2db uxtb r3, r3
  57451. 801797a: 73fb strb r3, [r7, #15]
  57452. msg->conn->state = NETCONN_CONNECT;
  57453. 801797c: 693b ldr r3, [r7, #16]
  57454. 801797e: 681b ldr r3, [r3, #0]
  57455. 8017980: 2203 movs r2, #3
  57456. 8017982: 705a strb r2, [r3, #1]
  57457. SET_NONBLOCKING_CONNECT(msg->conn, non_blocking);
  57458. 8017984: 7bfb ldrb r3, [r7, #15]
  57459. 8017986: 2b00 cmp r3, #0
  57460. 8017988: d00b beq.n 80179a2 <lwip_netconn_do_connect+0xd2>
  57461. 801798a: 693b ldr r3, [r7, #16]
  57462. 801798c: 681b ldr r3, [r3, #0]
  57463. 801798e: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  57464. 8017992: 693b ldr r3, [r7, #16]
  57465. 8017994: 681b ldr r3, [r3, #0]
  57466. 8017996: f042 0204 orr.w r2, r2, #4
  57467. 801799a: b2d2 uxtb r2, r2
  57468. 801799c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  57469. 80179a0: e00a b.n 80179b8 <lwip_netconn_do_connect+0xe8>
  57470. 80179a2: 693b ldr r3, [r7, #16]
  57471. 80179a4: 681b ldr r3, [r3, #0]
  57472. 80179a6: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  57473. 80179aa: 693b ldr r3, [r7, #16]
  57474. 80179ac: 681b ldr r3, [r3, #0]
  57475. 80179ae: f022 0204 bic.w r2, r2, #4
  57476. 80179b2: b2d2 uxtb r2, r2
  57477. 80179b4: f883 2028 strb.w r2, [r3, #40] @ 0x28
  57478. if (non_blocking) {
  57479. 80179b8: 7bfb ldrb r3, [r7, #15]
  57480. 80179ba: 2b00 cmp r3, #0
  57481. 80179bc: d002 beq.n 80179c4 <lwip_netconn_do_connect+0xf4>
  57482. err = ERR_INPROGRESS;
  57483. 80179be: 23fb movs r3, #251 @ 0xfb
  57484. 80179c0: 75fb strb r3, [r7, #23]
  57485. break;
  57486. 80179c2: e031 b.n 8017a28 <lwip_netconn_do_connect+0x158>
  57487. msg->conn->current_msg = msg;
  57488. 80179c4: 693b ldr r3, [r7, #16]
  57489. 80179c6: 681b ldr r3, [r3, #0]
  57490. 80179c8: 693a ldr r2, [r7, #16]
  57491. 80179ca: 62da str r2, [r3, #44] @ 0x2c
  57492. LWIP_ASSERT("state!", msg->conn->state == NETCONN_CONNECT);
  57493. 80179cc: 693b ldr r3, [r7, #16]
  57494. 80179ce: 681b ldr r3, [r3, #0]
  57495. 80179d0: 785b ldrb r3, [r3, #1]
  57496. 80179d2: 2b03 cmp r3, #3
  57497. 80179d4: d006 beq.n 80179e4 <lwip_netconn_do_connect+0x114>
  57498. 80179d6: 4b1a ldr r3, [pc, #104] @ (8017a40 <lwip_netconn_do_connect+0x170>)
  57499. 80179d8: f44f 62ae mov.w r2, #1392 @ 0x570
  57500. 80179dc: 4919 ldr r1, [pc, #100] @ (8017a44 <lwip_netconn_do_connect+0x174>)
  57501. 80179de: 481a ldr r0, [pc, #104] @ (8017a48 <lwip_netconn_do_connect+0x178>)
  57502. 80179e0: f012 febc bl 802a75c <iprintf>
  57503. UNLOCK_TCPIP_CORE();
  57504. 80179e4: f7f9 fa7e bl 8010ee4 <sys_unlock_tcpip_core>
  57505. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  57506. 80179e8: 693b ldr r3, [r7, #16]
  57507. 80179ea: 681b ldr r3, [r3, #0]
  57508. 80179ec: 330c adds r3, #12
  57509. 80179ee: 2100 movs r1, #0
  57510. 80179f0: 4618 mov r0, r3
  57511. 80179f2: f00f fb56 bl 80270a2 <sys_arch_sem_wait>
  57512. LOCK_TCPIP_CORE();
  57513. 80179f6: f7f9 fa65 bl 8010ec4 <sys_lock_tcpip_core>
  57514. LWIP_ASSERT("state!", msg->conn->state != NETCONN_CONNECT);
  57515. 80179fa: 693b ldr r3, [r7, #16]
  57516. 80179fc: 681b ldr r3, [r3, #0]
  57517. 80179fe: 785b ldrb r3, [r3, #1]
  57518. 8017a00: 2b03 cmp r3, #3
  57519. 8017a02: d116 bne.n 8017a32 <lwip_netconn_do_connect+0x162>
  57520. 8017a04: 4b0e ldr r3, [pc, #56] @ (8017a40 <lwip_netconn_do_connect+0x170>)
  57521. 8017a06: f240 5274 movw r2, #1396 @ 0x574
  57522. 8017a0a: 490e ldr r1, [pc, #56] @ (8017a44 <lwip_netconn_do_connect+0x174>)
  57523. 8017a0c: 480e ldr r0, [pc, #56] @ (8017a48 <lwip_netconn_do_connect+0x178>)
  57524. 8017a0e: f012 fea5 bl 802a75c <iprintf>
  57525. return;
  57526. 8017a12: e00e b.n 8017a32 <lwip_netconn_do_connect+0x162>
  57527. #endif /* LWIP_TCP */
  57528. default:
  57529. LWIP_ERROR("Invalid netconn type", 0, do {
  57530. 8017a14: 4b0a ldr r3, [pc, #40] @ (8017a40 <lwip_netconn_do_connect+0x170>)
  57531. 8017a16: f240 527d movw r2, #1405 @ 0x57d
  57532. 8017a1a: 490c ldr r1, [pc, #48] @ (8017a4c <lwip_netconn_do_connect+0x17c>)
  57533. 8017a1c: 480a ldr r0, [pc, #40] @ (8017a48 <lwip_netconn_do_connect+0x178>)
  57534. 8017a1e: f012 fe9d bl 802a75c <iprintf>
  57535. 8017a22: 23fa movs r3, #250 @ 0xfa
  57536. 8017a24: 75fb strb r3, [r7, #23]
  57537. err = ERR_VAL;
  57538. } while (0));
  57539. break;
  57540. 8017a26: e000 b.n 8017a2a <lwip_netconn_do_connect+0x15a>
  57541. break;
  57542. 8017a28: bf00 nop
  57543. }
  57544. }
  57545. msg->err = err;
  57546. 8017a2a: 693b ldr r3, [r7, #16]
  57547. 8017a2c: 7dfa ldrb r2, [r7, #23]
  57548. 8017a2e: 711a strb r2, [r3, #4]
  57549. 8017a30: e000 b.n 8017a34 <lwip_netconn_do_connect+0x164>
  57550. return;
  57551. 8017a32: bf00 nop
  57552. /* For all other protocols, netconn_connect() calls netconn_apimsg(),
  57553. so use TCPIP_APIMSG_ACK() here. */
  57554. TCPIP_APIMSG_ACK(msg);
  57555. }
  57556. 8017a34: 3718 adds r7, #24
  57557. 8017a36: 46bd mov sp, r7
  57558. 8017a38: bd80 pop {r7, pc}
  57559. 8017a3a: bf00 nop
  57560. 8017a3c: 080177a9 .word 0x080177a9
  57561. 8017a40: 0802ddc0 .word 0x0802ddc0
  57562. 8017a44: 0802e180 .word 0x0802e180
  57563. 8017a48: 0802de04 .word 0x0802de04
  57564. 8017a4c: 0802e208 .word 0x0802e208
  57565. 08017a50 <lwip_netconn_do_disconnect>:
  57566. *
  57567. * @param m the api_msg pointing to the connection to disconnect
  57568. */
  57569. void
  57570. lwip_netconn_do_disconnect(void *m)
  57571. {
  57572. 8017a50: b580 push {r7, lr}
  57573. 8017a52: b084 sub sp, #16
  57574. 8017a54: af00 add r7, sp, #0
  57575. 8017a56: 6078 str r0, [r7, #4]
  57576. struct api_msg *msg = (struct api_msg *)m;
  57577. 8017a58: 687b ldr r3, [r7, #4]
  57578. 8017a5a: 60fb str r3, [r7, #12]
  57579. #if LWIP_UDP
  57580. if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_UDP) {
  57581. 8017a5c: 68fb ldr r3, [r7, #12]
  57582. 8017a5e: 681b ldr r3, [r3, #0]
  57583. 8017a60: 781b ldrb r3, [r3, #0]
  57584. 8017a62: f003 03f0 and.w r3, r3, #240 @ 0xf0
  57585. 8017a66: 2b20 cmp r3, #32
  57586. 8017a68: d109 bne.n 8017a7e <lwip_netconn_do_disconnect+0x2e>
  57587. udp_disconnect(msg->conn->pcb.udp);
  57588. 8017a6a: 68fb ldr r3, [r7, #12]
  57589. 8017a6c: 681b ldr r3, [r3, #0]
  57590. 8017a6e: 685b ldr r3, [r3, #4]
  57591. 8017a70: 4618 mov r0, r3
  57592. 8017a72: f00a fd97 bl 80225a4 <udp_disconnect>
  57593. msg->err = ERR_OK;
  57594. 8017a76: 68fb ldr r3, [r7, #12]
  57595. 8017a78: 2200 movs r2, #0
  57596. 8017a7a: 711a strb r2, [r3, #4]
  57597. #endif /* LWIP_UDP */
  57598. {
  57599. msg->err = ERR_VAL;
  57600. }
  57601. TCPIP_APIMSG_ACK(msg);
  57602. }
  57603. 8017a7c: e002 b.n 8017a84 <lwip_netconn_do_disconnect+0x34>
  57604. msg->err = ERR_VAL;
  57605. 8017a7e: 68fb ldr r3, [r7, #12]
  57606. 8017a80: 22fa movs r2, #250 @ 0xfa
  57607. 8017a82: 711a strb r2, [r3, #4]
  57608. }
  57609. 8017a84: bf00 nop
  57610. 8017a86: 3710 adds r7, #16
  57611. 8017a88: 46bd mov sp, r7
  57612. 8017a8a: bd80 pop {r7, pc}
  57613. 08017a8c <lwip_netconn_do_send>:
  57614. *
  57615. * @param m the api_msg pointing to the connection
  57616. */
  57617. void
  57618. lwip_netconn_do_send(void *m)
  57619. {
  57620. 8017a8c: b580 push {r7, lr}
  57621. 8017a8e: b084 sub sp, #16
  57622. 8017a90: af00 add r7, sp, #0
  57623. 8017a92: 6078 str r0, [r7, #4]
  57624. struct api_msg *msg = (struct api_msg *)m;
  57625. 8017a94: 687b ldr r3, [r7, #4]
  57626. 8017a96: 60bb str r3, [r7, #8]
  57627. err_t err = netconn_err(msg->conn);
  57628. 8017a98: 68bb ldr r3, [r7, #8]
  57629. 8017a9a: 681b ldr r3, [r3, #0]
  57630. 8017a9c: 4618 mov r0, r3
  57631. 8017a9e: f7fe fef9 bl 8016894 <netconn_err>
  57632. 8017aa2: 4603 mov r3, r0
  57633. 8017aa4: 73fb strb r3, [r7, #15]
  57634. if (err == ERR_OK) {
  57635. 8017aa6: f997 300f ldrsb.w r3, [r7, #15]
  57636. 8017aaa: 2b00 cmp r3, #0
  57637. 8017aac: d134 bne.n 8017b18 <lwip_netconn_do_send+0x8c>
  57638. if (msg->conn->pcb.tcp != NULL) {
  57639. 8017aae: 68bb ldr r3, [r7, #8]
  57640. 8017ab0: 681b ldr r3, [r3, #0]
  57641. 8017ab2: 685b ldr r3, [r3, #4]
  57642. 8017ab4: 2b00 cmp r3, #0
  57643. 8017ab6: d02d beq.n 8017b14 <lwip_netconn_do_send+0x88>
  57644. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  57645. 8017ab8: 68bb ldr r3, [r7, #8]
  57646. 8017aba: 681b ldr r3, [r3, #0]
  57647. 8017abc: 781b ldrb r3, [r3, #0]
  57648. 8017abe: f003 03f0 and.w r3, r3, #240 @ 0xf0
  57649. 8017ac2: 2b20 cmp r3, #32
  57650. 8017ac4: d123 bne.n 8017b0e <lwip_netconn_do_send+0x82>
  57651. err = udp_sendto_chksum(msg->conn->pcb.udp, msg->msg.b->p,
  57652. &msg->msg.b->addr, msg->msg.b->port,
  57653. msg->msg.b->flags & NETBUF_FLAG_CHKSUM, msg->msg.b->toport_chksum);
  57654. }
  57655. #else /* LWIP_CHECKSUM_ON_COPY */
  57656. if (ip_addr_isany_val(msg->msg.b->addr) || IP_IS_ANY_TYPE_VAL(msg->msg.b->addr)) {
  57657. 8017ac6: 68bb ldr r3, [r7, #8]
  57658. 8017ac8: 689b ldr r3, [r3, #8]
  57659. 8017aca: 689b ldr r3, [r3, #8]
  57660. 8017acc: 2b00 cmp r3, #0
  57661. 8017ace: d10c bne.n 8017aea <lwip_netconn_do_send+0x5e>
  57662. err = udp_send(msg->conn->pcb.udp, msg->msg.b->p);
  57663. 8017ad0: 68bb ldr r3, [r7, #8]
  57664. 8017ad2: 681b ldr r3, [r3, #0]
  57665. 8017ad4: 685a ldr r2, [r3, #4]
  57666. 8017ad6: 68bb ldr r3, [r7, #8]
  57667. 8017ad8: 689b ldr r3, [r3, #8]
  57668. 8017ada: 681b ldr r3, [r3, #0]
  57669. 8017adc: 4619 mov r1, r3
  57670. 8017ade: 4610 mov r0, r2
  57671. 8017ae0: f00a fa7a bl 8021fd8 <udp_send>
  57672. 8017ae4: 4603 mov r3, r0
  57673. 8017ae6: 73fb strb r3, [r7, #15]
  57674. } else {
  57675. err = udp_sendto(msg->conn->pcb.udp, msg->msg.b->p, &msg->msg.b->addr, msg->msg.b->port);
  57676. }
  57677. #endif /* LWIP_CHECKSUM_ON_COPY */
  57678. break;
  57679. 8017ae8: e016 b.n 8017b18 <lwip_netconn_do_send+0x8c>
  57680. err = udp_sendto(msg->conn->pcb.udp, msg->msg.b->p, &msg->msg.b->addr, msg->msg.b->port);
  57681. 8017aea: 68bb ldr r3, [r7, #8]
  57682. 8017aec: 681b ldr r3, [r3, #0]
  57683. 8017aee: 6858 ldr r0, [r3, #4]
  57684. 8017af0: 68bb ldr r3, [r7, #8]
  57685. 8017af2: 689b ldr r3, [r3, #8]
  57686. 8017af4: 6819 ldr r1, [r3, #0]
  57687. 8017af6: 68bb ldr r3, [r7, #8]
  57688. 8017af8: 689b ldr r3, [r3, #8]
  57689. 8017afa: f103 0208 add.w r2, r3, #8
  57690. 8017afe: 68bb ldr r3, [r7, #8]
  57691. 8017b00: 689b ldr r3, [r3, #8]
  57692. 8017b02: 899b ldrh r3, [r3, #12]
  57693. 8017b04: f00a fa9c bl 8022040 <udp_sendto>
  57694. 8017b08: 4603 mov r3, r0
  57695. 8017b0a: 73fb strb r3, [r7, #15]
  57696. break;
  57697. 8017b0c: e004 b.n 8017b18 <lwip_netconn_do_send+0x8c>
  57698. #endif /* LWIP_UDP */
  57699. default:
  57700. err = ERR_CONN;
  57701. 8017b0e: 23f5 movs r3, #245 @ 0xf5
  57702. 8017b10: 73fb strb r3, [r7, #15]
  57703. break;
  57704. 8017b12: e001 b.n 8017b18 <lwip_netconn_do_send+0x8c>
  57705. }
  57706. } else {
  57707. err = ERR_CONN;
  57708. 8017b14: 23f5 movs r3, #245 @ 0xf5
  57709. 8017b16: 73fb strb r3, [r7, #15]
  57710. }
  57711. }
  57712. msg->err = err;
  57713. 8017b18: 68bb ldr r3, [r7, #8]
  57714. 8017b1a: 7bfa ldrb r2, [r7, #15]
  57715. 8017b1c: 711a strb r2, [r3, #4]
  57716. TCPIP_APIMSG_ACK(msg);
  57717. }
  57718. 8017b1e: bf00 nop
  57719. 8017b20: 3710 adds r7, #16
  57720. 8017b22: 46bd mov sp, r7
  57721. 8017b24: bd80 pop {r7, pc}
  57722. 08017b26 <lwip_netconn_do_recv>:
  57723. *
  57724. * @param m the api_msg pointing to the connection
  57725. */
  57726. void
  57727. lwip_netconn_do_recv(void *m)
  57728. {
  57729. 8017b26: b580 push {r7, lr}
  57730. 8017b28: b086 sub sp, #24
  57731. 8017b2a: af00 add r7, sp, #0
  57732. 8017b2c: 6078 str r0, [r7, #4]
  57733. struct api_msg *msg = (struct api_msg *)m;
  57734. 8017b2e: 687b ldr r3, [r7, #4]
  57735. 8017b30: 613b str r3, [r7, #16]
  57736. msg->err = ERR_OK;
  57737. 8017b32: 693b ldr r3, [r7, #16]
  57738. 8017b34: 2200 movs r2, #0
  57739. 8017b36: 711a strb r2, [r3, #4]
  57740. if (msg->conn->pcb.tcp != NULL) {
  57741. 8017b38: 693b ldr r3, [r7, #16]
  57742. 8017b3a: 681b ldr r3, [r3, #0]
  57743. 8017b3c: 685b ldr r3, [r3, #4]
  57744. 8017b3e: 2b00 cmp r3, #0
  57745. 8017b40: d022 beq.n 8017b88 <lwip_netconn_do_recv+0x62>
  57746. if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) {
  57747. 8017b42: 693b ldr r3, [r7, #16]
  57748. 8017b44: 681b ldr r3, [r3, #0]
  57749. 8017b46: 781b ldrb r3, [r3, #0]
  57750. 8017b48: f003 03f0 and.w r3, r3, #240 @ 0xf0
  57751. 8017b4c: 2b10 cmp r3, #16
  57752. 8017b4e: d11b bne.n 8017b88 <lwip_netconn_do_recv+0x62>
  57753. size_t remaining = msg->msg.r.len;
  57754. 8017b50: 693b ldr r3, [r7, #16]
  57755. 8017b52: 689b ldr r3, [r3, #8]
  57756. 8017b54: 617b str r3, [r7, #20]
  57757. do {
  57758. u16_t recved = (u16_t)((remaining > 0xffff) ? 0xffff : remaining);
  57759. 8017b56: 697b ldr r3, [r7, #20]
  57760. 8017b58: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  57761. 8017b5c: d202 bcs.n 8017b64 <lwip_netconn_do_recv+0x3e>
  57762. 8017b5e: 697b ldr r3, [r7, #20]
  57763. 8017b60: b29b uxth r3, r3
  57764. 8017b62: e001 b.n 8017b68 <lwip_netconn_do_recv+0x42>
  57765. 8017b64: f64f 73ff movw r3, #65535 @ 0xffff
  57766. 8017b68: 81fb strh r3, [r7, #14]
  57767. tcp_recved(msg->conn->pcb.tcp, recved);
  57768. 8017b6a: 693b ldr r3, [r7, #16]
  57769. 8017b6c: 681b ldr r3, [r3, #0]
  57770. 8017b6e: 685b ldr r3, [r3, #4]
  57771. 8017b70: 89fa ldrh r2, [r7, #14]
  57772. 8017b72: 4611 mov r1, r2
  57773. 8017b74: 4618 mov r0, r3
  57774. 8017b76: f004 f9e5 bl 801bf44 <tcp_recved>
  57775. remaining -= recved;
  57776. 8017b7a: 89fb ldrh r3, [r7, #14]
  57777. 8017b7c: 697a ldr r2, [r7, #20]
  57778. 8017b7e: 1ad3 subs r3, r2, r3
  57779. 8017b80: 617b str r3, [r7, #20]
  57780. } while (remaining != 0);
  57781. 8017b82: 697b ldr r3, [r7, #20]
  57782. 8017b84: 2b00 cmp r3, #0
  57783. 8017b86: d1e6 bne.n 8017b56 <lwip_netconn_do_recv+0x30>
  57784. }
  57785. }
  57786. TCPIP_APIMSG_ACK(msg);
  57787. }
  57788. 8017b88: bf00 nop
  57789. 8017b8a: 3718 adds r7, #24
  57790. 8017b8c: 46bd mov sp, r7
  57791. 8017b8e: bd80 pop {r7, pc}
  57792. 08017b90 <lwip_netconn_do_writemore>:
  57793. * @return ERR_OK
  57794. * ERR_MEM if LWIP_TCPIP_CORE_LOCKING=1 and sending hasn't yet finished
  57795. */
  57796. static err_t
  57797. lwip_netconn_do_writemore(struct netconn *conn WRITE_DELAYED_PARAM)
  57798. {
  57799. 8017b90: b580 push {r7, lr}
  57800. 8017b92: b088 sub sp, #32
  57801. 8017b94: af00 add r7, sp, #0
  57802. 8017b96: 6078 str r0, [r7, #4]
  57803. 8017b98: 460b mov r3, r1
  57804. 8017b9a: 70fb strb r3, [r7, #3]
  57805. err_t err;
  57806. const void *dataptr;
  57807. u16_t len, available;
  57808. u8_t write_finished = 0;
  57809. 8017b9c: 2300 movs r3, #0
  57810. 8017b9e: 76fb strb r3, [r7, #27]
  57811. size_t diff;
  57812. u8_t dontblock;
  57813. u8_t apiflags;
  57814. u8_t write_more;
  57815. LWIP_ASSERT("conn != NULL", conn != NULL);
  57816. 8017ba0: 687b ldr r3, [r7, #4]
  57817. 8017ba2: 2b00 cmp r3, #0
  57818. 8017ba4: d106 bne.n 8017bb4 <lwip_netconn_do_writemore+0x24>
  57819. 8017ba6: 4b61 ldr r3, [pc, #388] @ (8017d2c <lwip_netconn_do_writemore+0x19c>)
  57820. 8017ba8: f240 6273 movw r2, #1651 @ 0x673
  57821. 8017bac: 4960 ldr r1, [pc, #384] @ (8017d30 <lwip_netconn_do_writemore+0x1a0>)
  57822. 8017bae: 4861 ldr r0, [pc, #388] @ (8017d34 <lwip_netconn_do_writemore+0x1a4>)
  57823. 8017bb0: f012 fdd4 bl 802a75c <iprintf>
  57824. LWIP_ASSERT("conn->state == NETCONN_WRITE", (conn->state == NETCONN_WRITE));
  57825. 8017bb4: 687b ldr r3, [r7, #4]
  57826. 8017bb6: 785b ldrb r3, [r3, #1]
  57827. 8017bb8: 2b01 cmp r3, #1
  57828. 8017bba: d006 beq.n 8017bca <lwip_netconn_do_writemore+0x3a>
  57829. 8017bbc: 4b5b ldr r3, [pc, #364] @ (8017d2c <lwip_netconn_do_writemore+0x19c>)
  57830. 8017bbe: f240 6274 movw r2, #1652 @ 0x674
  57831. 8017bc2: 495d ldr r1, [pc, #372] @ (8017d38 <lwip_netconn_do_writemore+0x1a8>)
  57832. 8017bc4: 485b ldr r0, [pc, #364] @ (8017d34 <lwip_netconn_do_writemore+0x1a4>)
  57833. 8017bc6: f012 fdc9 bl 802a75c <iprintf>
  57834. LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL);
  57835. 8017bca: 687b ldr r3, [r7, #4]
  57836. 8017bcc: 6adb ldr r3, [r3, #44] @ 0x2c
  57837. 8017bce: 2b00 cmp r3, #0
  57838. 8017bd0: d106 bne.n 8017be0 <lwip_netconn_do_writemore+0x50>
  57839. 8017bd2: 4b56 ldr r3, [pc, #344] @ (8017d2c <lwip_netconn_do_writemore+0x19c>)
  57840. 8017bd4: f240 6275 movw r2, #1653 @ 0x675
  57841. 8017bd8: 4958 ldr r1, [pc, #352] @ (8017d3c <lwip_netconn_do_writemore+0x1ac>)
  57842. 8017bda: 4856 ldr r0, [pc, #344] @ (8017d34 <lwip_netconn_do_writemore+0x1a4>)
  57843. 8017bdc: f012 fdbe bl 802a75c <iprintf>
  57844. LWIP_ASSERT("conn->pcb.tcp != NULL", conn->pcb.tcp != NULL);
  57845. 8017be0: 687b ldr r3, [r7, #4]
  57846. 8017be2: 685b ldr r3, [r3, #4]
  57847. 8017be4: 2b00 cmp r3, #0
  57848. 8017be6: d106 bne.n 8017bf6 <lwip_netconn_do_writemore+0x66>
  57849. 8017be8: 4b50 ldr r3, [pc, #320] @ (8017d2c <lwip_netconn_do_writemore+0x19c>)
  57850. 8017bea: f240 6276 movw r2, #1654 @ 0x676
  57851. 8017bee: 4954 ldr r1, [pc, #336] @ (8017d40 <lwip_netconn_do_writemore+0x1b0>)
  57852. 8017bf0: 4850 ldr r0, [pc, #320] @ (8017d34 <lwip_netconn_do_writemore+0x1a4>)
  57853. 8017bf2: f012 fdb3 bl 802a75c <iprintf>
  57854. LWIP_ASSERT("conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len",
  57855. 8017bf6: 687b ldr r3, [r7, #4]
  57856. 8017bf8: 6adb ldr r3, [r3, #44] @ 0x2c
  57857. 8017bfa: 699a ldr r2, [r3, #24]
  57858. 8017bfc: 687b ldr r3, [r7, #4]
  57859. 8017bfe: 6adb ldr r3, [r3, #44] @ 0x2c
  57860. 8017c00: 695b ldr r3, [r3, #20]
  57861. 8017c02: 429a cmp r2, r3
  57862. 8017c04: d306 bcc.n 8017c14 <lwip_netconn_do_writemore+0x84>
  57863. 8017c06: 4b49 ldr r3, [pc, #292] @ (8017d2c <lwip_netconn_do_writemore+0x19c>)
  57864. 8017c08: f240 6277 movw r2, #1655 @ 0x677
  57865. 8017c0c: 494d ldr r1, [pc, #308] @ (8017d44 <lwip_netconn_do_writemore+0x1b4>)
  57866. 8017c0e: 4849 ldr r0, [pc, #292] @ (8017d34 <lwip_netconn_do_writemore+0x1a4>)
  57867. 8017c10: f012 fda4 bl 802a75c <iprintf>
  57868. conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len);
  57869. LWIP_ASSERT("conn->current_msg->msg.w.vector_cnt > 0", conn->current_msg->msg.w.vector_cnt > 0);
  57870. 8017c14: 687b ldr r3, [r7, #4]
  57871. 8017c16: 6adb ldr r3, [r3, #44] @ 0x2c
  57872. 8017c18: 899b ldrh r3, [r3, #12]
  57873. 8017c1a: 2b00 cmp r3, #0
  57874. 8017c1c: d106 bne.n 8017c2c <lwip_netconn_do_writemore+0x9c>
  57875. 8017c1e: 4b43 ldr r3, [pc, #268] @ (8017d2c <lwip_netconn_do_writemore+0x19c>)
  57876. 8017c20: f240 6279 movw r2, #1657 @ 0x679
  57877. 8017c24: 4948 ldr r1, [pc, #288] @ (8017d48 <lwip_netconn_do_writemore+0x1b8>)
  57878. 8017c26: 4843 ldr r0, [pc, #268] @ (8017d34 <lwip_netconn_do_writemore+0x1a4>)
  57879. 8017c28: f012 fd98 bl 802a75c <iprintf>
  57880. apiflags = conn->current_msg->msg.w.apiflags;
  57881. 8017c2c: 687b ldr r3, [r7, #4]
  57882. 8017c2e: 6adb ldr r3, [r3, #44] @ 0x2c
  57883. 8017c30: 7f1b ldrb r3, [r3, #28]
  57884. 8017c32: 76bb strb r3, [r7, #26]
  57885. dontblock = netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK);
  57886. 8017c34: 687b ldr r3, [r7, #4]
  57887. 8017c36: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  57888. 8017c3a: f003 0302 and.w r3, r3, #2
  57889. 8017c3e: 2b00 cmp r3, #0
  57890. 8017c40: d104 bne.n 8017c4c <lwip_netconn_do_writemore+0xbc>
  57891. 8017c42: 7ebb ldrb r3, [r7, #26]
  57892. 8017c44: f003 0304 and.w r3, r3, #4
  57893. 8017c48: 2b00 cmp r3, #0
  57894. 8017c4a: d001 beq.n 8017c50 <lwip_netconn_do_writemore+0xc0>
  57895. 8017c4c: 2301 movs r3, #1
  57896. 8017c4e: e000 b.n 8017c52 <lwip_netconn_do_writemore+0xc2>
  57897. 8017c50: 2300 movs r3, #0
  57898. 8017c52: 763b strb r3, [r7, #24]
  57899. }
  57900. } else
  57901. #endif /* LWIP_SO_SNDTIMEO */
  57902. {
  57903. do {
  57904. dataptr = (const u8_t *)conn->current_msg->msg.w.vector->ptr + conn->current_msg->msg.w.vector_off;
  57905. 8017c54: 687b ldr r3, [r7, #4]
  57906. 8017c56: 6adb ldr r3, [r3, #44] @ 0x2c
  57907. 8017c58: 689b ldr r3, [r3, #8]
  57908. 8017c5a: 681a ldr r2, [r3, #0]
  57909. 8017c5c: 687b ldr r3, [r7, #4]
  57910. 8017c5e: 6adb ldr r3, [r3, #44] @ 0x2c
  57911. 8017c60: 691b ldr r3, [r3, #16]
  57912. 8017c62: 4413 add r3, r2
  57913. 8017c64: 617b str r3, [r7, #20]
  57914. diff = conn->current_msg->msg.w.vector->len - conn->current_msg->msg.w.vector_off;
  57915. 8017c66: 687b ldr r3, [r7, #4]
  57916. 8017c68: 6adb ldr r3, [r3, #44] @ 0x2c
  57917. 8017c6a: 689b ldr r3, [r3, #8]
  57918. 8017c6c: 685a ldr r2, [r3, #4]
  57919. 8017c6e: 687b ldr r3, [r7, #4]
  57920. 8017c70: 6adb ldr r3, [r3, #44] @ 0x2c
  57921. 8017c72: 691b ldr r3, [r3, #16]
  57922. 8017c74: 1ad3 subs r3, r2, r3
  57923. 8017c76: 613b str r3, [r7, #16]
  57924. if (diff > 0xffffUL) { /* max_u16_t */
  57925. 8017c78: 693b ldr r3, [r7, #16]
  57926. 8017c7a: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  57927. 8017c7e: d307 bcc.n 8017c90 <lwip_netconn_do_writemore+0x100>
  57928. len = 0xffff;
  57929. 8017c80: f64f 73ff movw r3, #65535 @ 0xffff
  57930. 8017c84: 83bb strh r3, [r7, #28]
  57931. apiflags |= TCP_WRITE_FLAG_MORE;
  57932. 8017c86: 7ebb ldrb r3, [r7, #26]
  57933. 8017c88: f043 0302 orr.w r3, r3, #2
  57934. 8017c8c: 76bb strb r3, [r7, #26]
  57935. 8017c8e: e001 b.n 8017c94 <lwip_netconn_do_writemore+0x104>
  57936. } else {
  57937. len = (u16_t)diff;
  57938. 8017c90: 693b ldr r3, [r7, #16]
  57939. 8017c92: 83bb strh r3, [r7, #28]
  57940. }
  57941. available = tcp_sndbuf(conn->pcb.tcp);
  57942. 8017c94: 687b ldr r3, [r7, #4]
  57943. 8017c96: 685b ldr r3, [r3, #4]
  57944. 8017c98: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  57945. 8017c9c: 81fb strh r3, [r7, #14]
  57946. if (available < len) {
  57947. 8017c9e: 89fa ldrh r2, [r7, #14]
  57948. 8017ca0: 8bbb ldrh r3, [r7, #28]
  57949. 8017ca2: 429a cmp r2, r3
  57950. 8017ca4: d216 bcs.n 8017cd4 <lwip_netconn_do_writemore+0x144>
  57951. /* don't try to write more than sendbuf */
  57952. len = available;
  57953. 8017ca6: 89fb ldrh r3, [r7, #14]
  57954. 8017ca8: 83bb strh r3, [r7, #28]
  57955. if (dontblock) {
  57956. 8017caa: 7e3b ldrb r3, [r7, #24]
  57957. 8017cac: 2b00 cmp r3, #0
  57958. 8017cae: d00d beq.n 8017ccc <lwip_netconn_do_writemore+0x13c>
  57959. if (!len) {
  57960. 8017cb0: 8bbb ldrh r3, [r7, #28]
  57961. 8017cb2: 2b00 cmp r3, #0
  57962. 8017cb4: d10e bne.n 8017cd4 <lwip_netconn_do_writemore+0x144>
  57963. /* set error according to partial write or not */
  57964. err = (conn->current_msg->msg.w.offset == 0) ? ERR_WOULDBLOCK : ERR_OK;
  57965. 8017cb6: 687b ldr r3, [r7, #4]
  57966. 8017cb8: 6adb ldr r3, [r3, #44] @ 0x2c
  57967. 8017cba: 699b ldr r3, [r3, #24]
  57968. 8017cbc: 2b00 cmp r3, #0
  57969. 8017cbe: d102 bne.n 8017cc6 <lwip_netconn_do_writemore+0x136>
  57970. 8017cc0: f06f 0306 mvn.w r3, #6
  57971. 8017cc4: e000 b.n 8017cc8 <lwip_netconn_do_writemore+0x138>
  57972. 8017cc6: 2300 movs r3, #0
  57973. 8017cc8: 77fb strb r3, [r7, #31]
  57974. goto err_mem;
  57975. 8017cca: e08f b.n 8017dec <lwip_netconn_do_writemore+0x25c>
  57976. }
  57977. } else {
  57978. apiflags |= TCP_WRITE_FLAG_MORE;
  57979. 8017ccc: 7ebb ldrb r3, [r7, #26]
  57980. 8017cce: f043 0302 orr.w r3, r3, #2
  57981. 8017cd2: 76bb strb r3, [r7, #26]
  57982. }
  57983. }
  57984. LWIP_ASSERT("lwip_netconn_do_writemore: invalid length!",
  57985. 8017cd4: 687b ldr r3, [r7, #4]
  57986. 8017cd6: 6adb ldr r3, [r3, #44] @ 0x2c
  57987. 8017cd8: 691a ldr r2, [r3, #16]
  57988. 8017cda: 8bbb ldrh r3, [r7, #28]
  57989. 8017cdc: 441a add r2, r3
  57990. 8017cde: 687b ldr r3, [r7, #4]
  57991. 8017ce0: 6adb ldr r3, [r3, #44] @ 0x2c
  57992. 8017ce2: 689b ldr r3, [r3, #8]
  57993. 8017ce4: 685b ldr r3, [r3, #4]
  57994. 8017ce6: 429a cmp r2, r3
  57995. 8017ce8: d906 bls.n 8017cf8 <lwip_netconn_do_writemore+0x168>
  57996. 8017cea: 4b10 ldr r3, [pc, #64] @ (8017d2c <lwip_netconn_do_writemore+0x19c>)
  57997. 8017cec: f240 62a3 movw r2, #1699 @ 0x6a3
  57998. 8017cf0: 4916 ldr r1, [pc, #88] @ (8017d4c <lwip_netconn_do_writemore+0x1bc>)
  57999. 8017cf2: 4810 ldr r0, [pc, #64] @ (8017d34 <lwip_netconn_do_writemore+0x1a4>)
  58000. 8017cf4: f012 fd32 bl 802a75c <iprintf>
  58001. ((conn->current_msg->msg.w.vector_off + len) <= conn->current_msg->msg.w.vector->len));
  58002. /* we should loop around for more sending in the following cases:
  58003. 1) We couldn't finish the current vector because of 16-bit size limitations.
  58004. tcp_write() and tcp_sndbuf() both are limited to 16-bit sizes
  58005. 2) We are sending the remainder of the current vector and have more */
  58006. if ((len == 0xffff && diff > 0xffffUL) ||
  58007. 8017cf8: 8bbb ldrh r3, [r7, #28]
  58008. 8017cfa: f64f 72ff movw r2, #65535 @ 0xffff
  58009. 8017cfe: 4293 cmp r3, r2
  58010. 8017d00: d103 bne.n 8017d0a <lwip_netconn_do_writemore+0x17a>
  58011. 8017d02: 693b ldr r3, [r7, #16]
  58012. 8017d04: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  58013. 8017d08: d209 bcs.n 8017d1e <lwip_netconn_do_writemore+0x18e>
  58014. (len == (u16_t)diff && conn->current_msg->msg.w.vector_cnt > 1)) {
  58015. 8017d0a: 693b ldr r3, [r7, #16]
  58016. 8017d0c: b29b uxth r3, r3
  58017. if ((len == 0xffff && diff > 0xffffUL) ||
  58018. 8017d0e: 8bba ldrh r2, [r7, #28]
  58019. 8017d10: 429a cmp r2, r3
  58020. 8017d12: d11d bne.n 8017d50 <lwip_netconn_do_writemore+0x1c0>
  58021. (len == (u16_t)diff && conn->current_msg->msg.w.vector_cnt > 1)) {
  58022. 8017d14: 687b ldr r3, [r7, #4]
  58023. 8017d16: 6adb ldr r3, [r3, #44] @ 0x2c
  58024. 8017d18: 899b ldrh r3, [r3, #12]
  58025. 8017d1a: 2b01 cmp r3, #1
  58026. 8017d1c: d918 bls.n 8017d50 <lwip_netconn_do_writemore+0x1c0>
  58027. write_more = 1;
  58028. 8017d1e: 2301 movs r3, #1
  58029. 8017d20: 767b strb r3, [r7, #25]
  58030. apiflags |= TCP_WRITE_FLAG_MORE;
  58031. 8017d22: 7ebb ldrb r3, [r7, #26]
  58032. 8017d24: f043 0302 orr.w r3, r3, #2
  58033. 8017d28: 76bb strb r3, [r7, #26]
  58034. 8017d2a: e013 b.n 8017d54 <lwip_netconn_do_writemore+0x1c4>
  58035. 8017d2c: 0802ddc0 .word 0x0802ddc0
  58036. 8017d30: 0802df18 .word 0x0802df18
  58037. 8017d34: 0802de04 .word 0x0802de04
  58038. 8017d38: 0802e220 .word 0x0802e220
  58039. 8017d3c: 0802df28 .word 0x0802df28
  58040. 8017d40: 0802e240 .word 0x0802e240
  58041. 8017d44: 0802e258 .word 0x0802e258
  58042. 8017d48: 0802e298 .word 0x0802e298
  58043. 8017d4c: 0802e2c0 .word 0x0802e2c0
  58044. } else {
  58045. write_more = 0;
  58046. 8017d50: 2300 movs r3, #0
  58047. 8017d52: 767b strb r3, [r7, #25]
  58048. }
  58049. err = tcp_write(conn->pcb.tcp, dataptr, len, apiflags);
  58050. 8017d54: 687b ldr r3, [r7, #4]
  58051. 8017d56: 6858 ldr r0, [r3, #4]
  58052. 8017d58: 7ebb ldrb r3, [r7, #26]
  58053. 8017d5a: 8bba ldrh r2, [r7, #28]
  58054. 8017d5c: 6979 ldr r1, [r7, #20]
  58055. 8017d5e: f008 f827 bl 801fdb0 <tcp_write>
  58056. 8017d62: 4603 mov r3, r0
  58057. 8017d64: 77fb strb r3, [r7, #31]
  58058. if (err == ERR_OK) {
  58059. 8017d66: f997 301f ldrsb.w r3, [r7, #31]
  58060. 8017d6a: 2b00 cmp r3, #0
  58061. 8017d6c: d12c bne.n 8017dc8 <lwip_netconn_do_writemore+0x238>
  58062. conn->current_msg->msg.w.offset += len;
  58063. 8017d6e: 687b ldr r3, [r7, #4]
  58064. 8017d70: 6adb ldr r3, [r3, #44] @ 0x2c
  58065. 8017d72: 6999 ldr r1, [r3, #24]
  58066. 8017d74: 8bba ldrh r2, [r7, #28]
  58067. 8017d76: 687b ldr r3, [r7, #4]
  58068. 8017d78: 6adb ldr r3, [r3, #44] @ 0x2c
  58069. 8017d7a: 440a add r2, r1
  58070. 8017d7c: 619a str r2, [r3, #24]
  58071. conn->current_msg->msg.w.vector_off += len;
  58072. 8017d7e: 687b ldr r3, [r7, #4]
  58073. 8017d80: 6adb ldr r3, [r3, #44] @ 0x2c
  58074. 8017d82: 6919 ldr r1, [r3, #16]
  58075. 8017d84: 8bba ldrh r2, [r7, #28]
  58076. 8017d86: 687b ldr r3, [r7, #4]
  58077. 8017d88: 6adb ldr r3, [r3, #44] @ 0x2c
  58078. 8017d8a: 440a add r2, r1
  58079. 8017d8c: 611a str r2, [r3, #16]
  58080. /* check if current vector is finished */
  58081. if (conn->current_msg->msg.w.vector_off == conn->current_msg->msg.w.vector->len) {
  58082. 8017d8e: 687b ldr r3, [r7, #4]
  58083. 8017d90: 6adb ldr r3, [r3, #44] @ 0x2c
  58084. 8017d92: 691a ldr r2, [r3, #16]
  58085. 8017d94: 687b ldr r3, [r7, #4]
  58086. 8017d96: 6adb ldr r3, [r3, #44] @ 0x2c
  58087. 8017d98: 689b ldr r3, [r3, #8]
  58088. 8017d9a: 685b ldr r3, [r3, #4]
  58089. 8017d9c: 429a cmp r2, r3
  58090. 8017d9e: d113 bne.n 8017dc8 <lwip_netconn_do_writemore+0x238>
  58091. conn->current_msg->msg.w.vector_cnt--;
  58092. 8017da0: 687b ldr r3, [r7, #4]
  58093. 8017da2: 6adb ldr r3, [r3, #44] @ 0x2c
  58094. 8017da4: 899a ldrh r2, [r3, #12]
  58095. 8017da6: 3a01 subs r2, #1
  58096. 8017da8: b292 uxth r2, r2
  58097. 8017daa: 819a strh r2, [r3, #12]
  58098. /* if we have additional vectors, move on to them */
  58099. if (conn->current_msg->msg.w.vector_cnt > 0) {
  58100. 8017dac: 687b ldr r3, [r7, #4]
  58101. 8017dae: 6adb ldr r3, [r3, #44] @ 0x2c
  58102. 8017db0: 899b ldrh r3, [r3, #12]
  58103. 8017db2: 2b00 cmp r3, #0
  58104. 8017db4: d008 beq.n 8017dc8 <lwip_netconn_do_writemore+0x238>
  58105. conn->current_msg->msg.w.vector++;
  58106. 8017db6: 687b ldr r3, [r7, #4]
  58107. 8017db8: 6adb ldr r3, [r3, #44] @ 0x2c
  58108. 8017dba: 689a ldr r2, [r3, #8]
  58109. 8017dbc: 3208 adds r2, #8
  58110. 8017dbe: 609a str r2, [r3, #8]
  58111. conn->current_msg->msg.w.vector_off = 0;
  58112. 8017dc0: 687b ldr r3, [r7, #4]
  58113. 8017dc2: 6adb ldr r3, [r3, #44] @ 0x2c
  58114. 8017dc4: 2200 movs r2, #0
  58115. 8017dc6: 611a str r2, [r3, #16]
  58116. }
  58117. }
  58118. }
  58119. } while (write_more && err == ERR_OK);
  58120. 8017dc8: 7e7b ldrb r3, [r7, #25]
  58121. 8017dca: 2b00 cmp r3, #0
  58122. 8017dcc: d004 beq.n 8017dd8 <lwip_netconn_do_writemore+0x248>
  58123. 8017dce: f997 301f ldrsb.w r3, [r7, #31]
  58124. 8017dd2: 2b00 cmp r3, #0
  58125. 8017dd4: f43f af3e beq.w 8017c54 <lwip_netconn_do_writemore+0xc4>
  58126. /* if OK or memory error, check available space */
  58127. if ((err == ERR_OK) || (err == ERR_MEM)) {
  58128. 8017dd8: f997 301f ldrsb.w r3, [r7, #31]
  58129. 8017ddc: 2b00 cmp r3, #0
  58130. 8017dde: d004 beq.n 8017dea <lwip_netconn_do_writemore+0x25a>
  58131. 8017de0: f997 301f ldrsb.w r3, [r7, #31]
  58132. 8017de4: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  58133. 8017de8: d137 bne.n 8017e5a <lwip_netconn_do_writemore+0x2ca>
  58134. err_mem:
  58135. 8017dea: bf00 nop
  58136. if (dontblock && (conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len)) {
  58137. 8017dec: 7e3b ldrb r3, [r7, #24]
  58138. 8017dee: 2b00 cmp r3, #0
  58139. 8017df0: d01b beq.n 8017e2a <lwip_netconn_do_writemore+0x29a>
  58140. 8017df2: 687b ldr r3, [r7, #4]
  58141. 8017df4: 6adb ldr r3, [r3, #44] @ 0x2c
  58142. 8017df6: 699a ldr r2, [r3, #24]
  58143. 8017df8: 687b ldr r3, [r7, #4]
  58144. 8017dfa: 6adb ldr r3, [r3, #44] @ 0x2c
  58145. 8017dfc: 695b ldr r3, [r3, #20]
  58146. 8017dfe: 429a cmp r2, r3
  58147. 8017e00: d213 bcs.n 8017e2a <lwip_netconn_do_writemore+0x29a>
  58148. /* non-blocking write did not write everything: mark the pcb non-writable
  58149. and let poll_tcp check writable space to mark the pcb writable again */
  58150. API_EVENT(conn, NETCONN_EVT_SENDMINUS, 0);
  58151. 8017e02: 687b ldr r3, [r7, #4]
  58152. 8017e04: 6b1b ldr r3, [r3, #48] @ 0x30
  58153. 8017e06: 2b00 cmp r3, #0
  58154. 8017e08: d005 beq.n 8017e16 <lwip_netconn_do_writemore+0x286>
  58155. 8017e0a: 687b ldr r3, [r7, #4]
  58156. 8017e0c: 6b1b ldr r3, [r3, #48] @ 0x30
  58157. 8017e0e: 2200 movs r2, #0
  58158. 8017e10: 2103 movs r1, #3
  58159. 8017e12: 6878 ldr r0, [r7, #4]
  58160. 8017e14: 4798 blx r3
  58161. conn->flags |= NETCONN_FLAG_CHECK_WRITESPACE;
  58162. 8017e16: 687b ldr r3, [r7, #4]
  58163. 8017e18: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  58164. 8017e1c: f043 0310 orr.w r3, r3, #16
  58165. 8017e20: b2da uxtb r2, r3
  58166. 8017e22: 687b ldr r3, [r7, #4]
  58167. 8017e24: f883 2028 strb.w r2, [r3, #40] @ 0x28
  58168. 8017e28: e017 b.n 8017e5a <lwip_netconn_do_writemore+0x2ca>
  58169. } else if ((tcp_sndbuf(conn->pcb.tcp) <= TCP_SNDLOWAT) ||
  58170. 8017e2a: 687b ldr r3, [r7, #4]
  58171. 8017e2c: 685b ldr r3, [r3, #4]
  58172. 8017e2e: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  58173. 8017e32: f640 3269 movw r2, #2921 @ 0xb69
  58174. 8017e36: 4293 cmp r3, r2
  58175. 8017e38: d905 bls.n 8017e46 <lwip_netconn_do_writemore+0x2b6>
  58176. (tcp_sndqueuelen(conn->pcb.tcp) >= TCP_SNDQUEUELOWAT)) {
  58177. 8017e3a: 687b ldr r3, [r7, #4]
  58178. 8017e3c: 685b ldr r3, [r3, #4]
  58179. 8017e3e: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  58180. } else if ((tcp_sndbuf(conn->pcb.tcp) <= TCP_SNDLOWAT) ||
  58181. 8017e42: 2b07 cmp r3, #7
  58182. 8017e44: d909 bls.n 8017e5a <lwip_netconn_do_writemore+0x2ca>
  58183. /* The queued byte- or pbuf-count exceeds the configured low-water limit,
  58184. let select mark this pcb as non-writable. */
  58185. API_EVENT(conn, NETCONN_EVT_SENDMINUS, 0);
  58186. 8017e46: 687b ldr r3, [r7, #4]
  58187. 8017e48: 6b1b ldr r3, [r3, #48] @ 0x30
  58188. 8017e4a: 2b00 cmp r3, #0
  58189. 8017e4c: d005 beq.n 8017e5a <lwip_netconn_do_writemore+0x2ca>
  58190. 8017e4e: 687b ldr r3, [r7, #4]
  58191. 8017e50: 6b1b ldr r3, [r3, #48] @ 0x30
  58192. 8017e52: 2200 movs r2, #0
  58193. 8017e54: 2103 movs r1, #3
  58194. 8017e56: 6878 ldr r0, [r7, #4]
  58195. 8017e58: 4798 blx r3
  58196. }
  58197. }
  58198. if (err == ERR_OK) {
  58199. 8017e5a: f997 301f ldrsb.w r3, [r7, #31]
  58200. 8017e5e: 2b00 cmp r3, #0
  58201. 8017e60: d11d bne.n 8017e9e <lwip_netconn_do_writemore+0x30e>
  58202. err_t out_err;
  58203. if ((conn->current_msg->msg.w.offset == conn->current_msg->msg.w.len) || dontblock) {
  58204. 8017e62: 687b ldr r3, [r7, #4]
  58205. 8017e64: 6adb ldr r3, [r3, #44] @ 0x2c
  58206. 8017e66: 699a ldr r2, [r3, #24]
  58207. 8017e68: 687b ldr r3, [r7, #4]
  58208. 8017e6a: 6adb ldr r3, [r3, #44] @ 0x2c
  58209. 8017e6c: 695b ldr r3, [r3, #20]
  58210. 8017e6e: 429a cmp r2, r3
  58211. 8017e70: d002 beq.n 8017e78 <lwip_netconn_do_writemore+0x2e8>
  58212. 8017e72: 7e3b ldrb r3, [r7, #24]
  58213. 8017e74: 2b00 cmp r3, #0
  58214. 8017e76: d001 beq.n 8017e7c <lwip_netconn_do_writemore+0x2ec>
  58215. /* return sent length (caller reads length from msg.w.offset) */
  58216. write_finished = 1;
  58217. 8017e78: 2301 movs r3, #1
  58218. 8017e7a: 76fb strb r3, [r7, #27]
  58219. }
  58220. out_err = tcp_output(conn->pcb.tcp);
  58221. 8017e7c: 687b ldr r3, [r7, #4]
  58222. 8017e7e: 685b ldr r3, [r3, #4]
  58223. 8017e80: 4618 mov r0, r3
  58224. 8017e82: f008 fddf bl 8020a44 <tcp_output>
  58225. 8017e86: 4603 mov r3, r0
  58226. 8017e88: 733b strb r3, [r7, #12]
  58227. if (out_err == ERR_RTE) {
  58228. 8017e8a: f997 300c ldrsb.w r3, [r7, #12]
  58229. 8017e8e: f113 0f04 cmn.w r3, #4
  58230. 8017e92: d12c bne.n 8017eee <lwip_netconn_do_writemore+0x35e>
  58231. /* If tcp_output fails because no route is found,
  58232. don't try writing any more but return the error
  58233. to the application thread. */
  58234. err = out_err;
  58235. 8017e94: 7b3b ldrb r3, [r7, #12]
  58236. 8017e96: 77fb strb r3, [r7, #31]
  58237. write_finished = 1;
  58238. 8017e98: 2301 movs r3, #1
  58239. 8017e9a: 76fb strb r3, [r7, #27]
  58240. 8017e9c: e027 b.n 8017eee <lwip_netconn_do_writemore+0x35e>
  58241. }
  58242. } else if (err == ERR_MEM) {
  58243. 8017e9e: f997 301f ldrsb.w r3, [r7, #31]
  58244. 8017ea2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  58245. 8017ea6: d120 bne.n 8017eea <lwip_netconn_do_writemore+0x35a>
  58246. For blocking sockets, we do NOT return to the application
  58247. thread, since ERR_MEM is only a temporary error! Non-blocking
  58248. will remain non-writable until sent_tcp/poll_tcp is called */
  58249. /* tcp_write returned ERR_MEM, try tcp_output anyway */
  58250. err_t out_err = tcp_output(conn->pcb.tcp);
  58251. 8017ea8: 687b ldr r3, [r7, #4]
  58252. 8017eaa: 685b ldr r3, [r3, #4]
  58253. 8017eac: 4618 mov r0, r3
  58254. 8017eae: f008 fdc9 bl 8020a44 <tcp_output>
  58255. 8017eb2: 4603 mov r3, r0
  58256. 8017eb4: 737b strb r3, [r7, #13]
  58257. if (out_err == ERR_RTE) {
  58258. 8017eb6: f997 300d ldrsb.w r3, [r7, #13]
  58259. 8017eba: f113 0f04 cmn.w r3, #4
  58260. 8017ebe: d104 bne.n 8017eca <lwip_netconn_do_writemore+0x33a>
  58261. /* If tcp_output fails because no route is found,
  58262. don't try writing any more but return the error
  58263. to the application thread. */
  58264. err = out_err;
  58265. 8017ec0: 7b7b ldrb r3, [r7, #13]
  58266. 8017ec2: 77fb strb r3, [r7, #31]
  58267. write_finished = 1;
  58268. 8017ec4: 2301 movs r3, #1
  58269. 8017ec6: 76fb strb r3, [r7, #27]
  58270. 8017ec8: e011 b.n 8017eee <lwip_netconn_do_writemore+0x35e>
  58271. } else if (dontblock) {
  58272. 8017eca: 7e3b ldrb r3, [r7, #24]
  58273. 8017ecc: 2b00 cmp r3, #0
  58274. 8017ece: d00e beq.n 8017eee <lwip_netconn_do_writemore+0x35e>
  58275. /* non-blocking write is done on ERR_MEM, set error according
  58276. to partial write or not */
  58277. err = (conn->current_msg->msg.w.offset == 0) ? ERR_WOULDBLOCK : ERR_OK;
  58278. 8017ed0: 687b ldr r3, [r7, #4]
  58279. 8017ed2: 6adb ldr r3, [r3, #44] @ 0x2c
  58280. 8017ed4: 699b ldr r3, [r3, #24]
  58281. 8017ed6: 2b00 cmp r3, #0
  58282. 8017ed8: d102 bne.n 8017ee0 <lwip_netconn_do_writemore+0x350>
  58283. 8017eda: f06f 0306 mvn.w r3, #6
  58284. 8017ede: e000 b.n 8017ee2 <lwip_netconn_do_writemore+0x352>
  58285. 8017ee0: 2300 movs r3, #0
  58286. 8017ee2: 77fb strb r3, [r7, #31]
  58287. write_finished = 1;
  58288. 8017ee4: 2301 movs r3, #1
  58289. 8017ee6: 76fb strb r3, [r7, #27]
  58290. 8017ee8: e001 b.n 8017eee <lwip_netconn_do_writemore+0x35e>
  58291. }
  58292. } else {
  58293. /* On errors != ERR_MEM, we don't try writing any more but return
  58294. the error to the application thread. */
  58295. write_finished = 1;
  58296. 8017eea: 2301 movs r3, #1
  58297. 8017eec: 76fb strb r3, [r7, #27]
  58298. }
  58299. }
  58300. if (write_finished) {
  58301. 8017eee: 7efb ldrb r3, [r7, #27]
  58302. 8017ef0: 2b00 cmp r3, #0
  58303. 8017ef2: d015 beq.n 8017f20 <lwip_netconn_do_writemore+0x390>
  58304. /* everything was written: set back connection state
  58305. and back to application task */
  58306. sys_sem_t *op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  58307. 8017ef4: 687b ldr r3, [r7, #4]
  58308. 8017ef6: 6adb ldr r3, [r3, #44] @ 0x2c
  58309. 8017ef8: 681b ldr r3, [r3, #0]
  58310. 8017efa: 330c adds r3, #12
  58311. 8017efc: 60bb str r3, [r7, #8]
  58312. conn->current_msg->err = err;
  58313. 8017efe: 687b ldr r3, [r7, #4]
  58314. 8017f00: 6adb ldr r3, [r3, #44] @ 0x2c
  58315. 8017f02: 7ffa ldrb r2, [r7, #31]
  58316. 8017f04: 711a strb r2, [r3, #4]
  58317. conn->current_msg = NULL;
  58318. 8017f06: 687b ldr r3, [r7, #4]
  58319. 8017f08: 2200 movs r2, #0
  58320. 8017f0a: 62da str r2, [r3, #44] @ 0x2c
  58321. conn->state = NETCONN_NONE;
  58322. 8017f0c: 687b ldr r3, [r7, #4]
  58323. 8017f0e: 2200 movs r2, #0
  58324. 8017f10: 705a strb r2, [r3, #1]
  58325. #if LWIP_TCPIP_CORE_LOCKING
  58326. if (delayed)
  58327. 8017f12: 78fb ldrb r3, [r7, #3]
  58328. 8017f14: 2b00 cmp r3, #0
  58329. 8017f16: d006 beq.n 8017f26 <lwip_netconn_do_writemore+0x396>
  58330. #endif
  58331. {
  58332. sys_sem_signal(op_completed_sem);
  58333. 8017f18: 68b8 ldr r0, [r7, #8]
  58334. 8017f1a: f00f f8f3 bl 8027104 <sys_sem_signal>
  58335. 8017f1e: e002 b.n 8017f26 <lwip_netconn_do_writemore+0x396>
  58336. }
  58337. }
  58338. #if LWIP_TCPIP_CORE_LOCKING
  58339. else {
  58340. return ERR_MEM;
  58341. 8017f20: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58342. 8017f24: e000 b.n 8017f28 <lwip_netconn_do_writemore+0x398>
  58343. }
  58344. #endif
  58345. return ERR_OK;
  58346. 8017f26: 2300 movs r3, #0
  58347. }
  58348. 8017f28: 4618 mov r0, r3
  58349. 8017f2a: 3720 adds r7, #32
  58350. 8017f2c: 46bd mov sp, r7
  58351. 8017f2e: bd80 pop {r7, pc}
  58352. 08017f30 <lwip_netconn_do_write>:
  58353. *
  58354. * @param m the api_msg pointing to the connection
  58355. */
  58356. void
  58357. lwip_netconn_do_write(void *m)
  58358. {
  58359. 8017f30: b580 push {r7, lr}
  58360. 8017f32: b084 sub sp, #16
  58361. 8017f34: af00 add r7, sp, #0
  58362. 8017f36: 6078 str r0, [r7, #4]
  58363. struct api_msg *msg = (struct api_msg *)m;
  58364. 8017f38: 687b ldr r3, [r7, #4]
  58365. 8017f3a: 60bb str r3, [r7, #8]
  58366. err_t err = netconn_err(msg->conn);
  58367. 8017f3c: 68bb ldr r3, [r7, #8]
  58368. 8017f3e: 681b ldr r3, [r3, #0]
  58369. 8017f40: 4618 mov r0, r3
  58370. 8017f42: f7fe fca7 bl 8016894 <netconn_err>
  58371. 8017f46: 4603 mov r3, r0
  58372. 8017f48: 73fb strb r3, [r7, #15]
  58373. if (err == ERR_OK) {
  58374. 8017f4a: f997 300f ldrsb.w r3, [r7, #15]
  58375. 8017f4e: 2b00 cmp r3, #0
  58376. 8017f50: d164 bne.n 801801c <lwip_netconn_do_write+0xec>
  58377. if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) {
  58378. 8017f52: 68bb ldr r3, [r7, #8]
  58379. 8017f54: 681b ldr r3, [r3, #0]
  58380. 8017f56: 781b ldrb r3, [r3, #0]
  58381. 8017f58: f003 03f0 and.w r3, r3, #240 @ 0xf0
  58382. 8017f5c: 2b10 cmp r3, #16
  58383. 8017f5e: d15b bne.n 8018018 <lwip_netconn_do_write+0xe8>
  58384. #if LWIP_TCP
  58385. if (msg->conn->state != NETCONN_NONE) {
  58386. 8017f60: 68bb ldr r3, [r7, #8]
  58387. 8017f62: 681b ldr r3, [r3, #0]
  58388. 8017f64: 785b ldrb r3, [r3, #1]
  58389. 8017f66: 2b00 cmp r3, #0
  58390. 8017f68: d002 beq.n 8017f70 <lwip_netconn_do_write+0x40>
  58391. /* netconn is connecting, closing or in blocking write */
  58392. err = ERR_INPROGRESS;
  58393. 8017f6a: 23fb movs r3, #251 @ 0xfb
  58394. 8017f6c: 73fb strb r3, [r7, #15]
  58395. 8017f6e: e055 b.n 801801c <lwip_netconn_do_write+0xec>
  58396. } else if (msg->conn->pcb.tcp != NULL) {
  58397. 8017f70: 68bb ldr r3, [r7, #8]
  58398. 8017f72: 681b ldr r3, [r3, #0]
  58399. 8017f74: 685b ldr r3, [r3, #4]
  58400. 8017f76: 2b00 cmp r3, #0
  58401. 8017f78: d04b beq.n 8018012 <lwip_netconn_do_write+0xe2>
  58402. msg->conn->state = NETCONN_WRITE;
  58403. 8017f7a: 68bb ldr r3, [r7, #8]
  58404. 8017f7c: 681b ldr r3, [r3, #0]
  58405. 8017f7e: 2201 movs r2, #1
  58406. 8017f80: 705a strb r2, [r3, #1]
  58407. /* set all the variables used by lwip_netconn_do_writemore */
  58408. LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL);
  58409. 8017f82: 68bb ldr r3, [r7, #8]
  58410. 8017f84: 681b ldr r3, [r3, #0]
  58411. 8017f86: 6adb ldr r3, [r3, #44] @ 0x2c
  58412. 8017f88: 2b00 cmp r3, #0
  58413. 8017f8a: d006 beq.n 8017f9a <lwip_netconn_do_write+0x6a>
  58414. 8017f8c: 4b27 ldr r3, [pc, #156] @ (801802c <lwip_netconn_do_write+0xfc>)
  58415. 8017f8e: f240 7223 movw r2, #1827 @ 0x723
  58416. 8017f92: 4927 ldr r1, [pc, #156] @ (8018030 <lwip_netconn_do_write+0x100>)
  58417. 8017f94: 4827 ldr r0, [pc, #156] @ (8018034 <lwip_netconn_do_write+0x104>)
  58418. 8017f96: f012 fbe1 bl 802a75c <iprintf>
  58419. LWIP_ASSERT("msg->msg.w.len != 0", msg->msg.w.len != 0);
  58420. 8017f9a: 68bb ldr r3, [r7, #8]
  58421. 8017f9c: 695b ldr r3, [r3, #20]
  58422. 8017f9e: 2b00 cmp r3, #0
  58423. 8017fa0: d106 bne.n 8017fb0 <lwip_netconn_do_write+0x80>
  58424. 8017fa2: 4b22 ldr r3, [pc, #136] @ (801802c <lwip_netconn_do_write+0xfc>)
  58425. 8017fa4: f240 7224 movw r2, #1828 @ 0x724
  58426. 8017fa8: 4923 ldr r1, [pc, #140] @ (8018038 <lwip_netconn_do_write+0x108>)
  58427. 8017faa: 4822 ldr r0, [pc, #136] @ (8018034 <lwip_netconn_do_write+0x104>)
  58428. 8017fac: f012 fbd6 bl 802a75c <iprintf>
  58429. msg->conn->current_msg = msg;
  58430. 8017fb0: 68bb ldr r3, [r7, #8]
  58431. 8017fb2: 681b ldr r3, [r3, #0]
  58432. 8017fb4: 68ba ldr r2, [r7, #8]
  58433. 8017fb6: 62da str r2, [r3, #44] @ 0x2c
  58434. #if LWIP_TCPIP_CORE_LOCKING
  58435. if (lwip_netconn_do_writemore(msg->conn, 0) != ERR_OK) {
  58436. 8017fb8: 68bb ldr r3, [r7, #8]
  58437. 8017fba: 681b ldr r3, [r3, #0]
  58438. 8017fbc: 2100 movs r1, #0
  58439. 8017fbe: 4618 mov r0, r3
  58440. 8017fc0: f7ff fde6 bl 8017b90 <lwip_netconn_do_writemore>
  58441. 8017fc4: 4603 mov r3, r0
  58442. 8017fc6: 2b00 cmp r3, #0
  58443. 8017fc8: d02c beq.n 8018024 <lwip_netconn_do_write+0xf4>
  58444. LWIP_ASSERT("state!", msg->conn->state == NETCONN_WRITE);
  58445. 8017fca: 68bb ldr r3, [r7, #8]
  58446. 8017fcc: 681b ldr r3, [r3, #0]
  58447. 8017fce: 785b ldrb r3, [r3, #1]
  58448. 8017fd0: 2b01 cmp r3, #1
  58449. 8017fd2: d006 beq.n 8017fe2 <lwip_netconn_do_write+0xb2>
  58450. 8017fd4: 4b15 ldr r3, [pc, #84] @ (801802c <lwip_netconn_do_write+0xfc>)
  58451. 8017fd6: f44f 62e5 mov.w r2, #1832 @ 0x728
  58452. 8017fda: 4918 ldr r1, [pc, #96] @ (801803c <lwip_netconn_do_write+0x10c>)
  58453. 8017fdc: 4815 ldr r0, [pc, #84] @ (8018034 <lwip_netconn_do_write+0x104>)
  58454. 8017fde: f012 fbbd bl 802a75c <iprintf>
  58455. UNLOCK_TCPIP_CORE();
  58456. 8017fe2: f7f8 ff7f bl 8010ee4 <sys_unlock_tcpip_core>
  58457. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  58458. 8017fe6: 68bb ldr r3, [r7, #8]
  58459. 8017fe8: 681b ldr r3, [r3, #0]
  58460. 8017fea: 330c adds r3, #12
  58461. 8017fec: 2100 movs r1, #0
  58462. 8017fee: 4618 mov r0, r3
  58463. 8017ff0: f00f f857 bl 80270a2 <sys_arch_sem_wait>
  58464. LOCK_TCPIP_CORE();
  58465. 8017ff4: f7f8 ff66 bl 8010ec4 <sys_lock_tcpip_core>
  58466. LWIP_ASSERT("state!", msg->conn->state != NETCONN_WRITE);
  58467. 8017ff8: 68bb ldr r3, [r7, #8]
  58468. 8017ffa: 681b ldr r3, [r3, #0]
  58469. 8017ffc: 785b ldrb r3, [r3, #1]
  58470. 8017ffe: 2b01 cmp r3, #1
  58471. 8018000: d110 bne.n 8018024 <lwip_netconn_do_write+0xf4>
  58472. 8018002: 4b0a ldr r3, [pc, #40] @ (801802c <lwip_netconn_do_write+0xfc>)
  58473. 8018004: f240 722c movw r2, #1836 @ 0x72c
  58474. 8018008: 490c ldr r1, [pc, #48] @ (801803c <lwip_netconn_do_write+0x10c>)
  58475. 801800a: 480a ldr r0, [pc, #40] @ (8018034 <lwip_netconn_do_write+0x104>)
  58476. 801800c: f012 fba6 bl 802a75c <iprintf>
  58477. #else /* LWIP_TCPIP_CORE_LOCKING */
  58478. lwip_netconn_do_writemore(msg->conn);
  58479. #endif /* LWIP_TCPIP_CORE_LOCKING */
  58480. /* for both cases: if lwip_netconn_do_writemore was called, don't ACK the APIMSG
  58481. since lwip_netconn_do_writemore ACKs it! */
  58482. return;
  58483. 8018010: e008 b.n 8018024 <lwip_netconn_do_write+0xf4>
  58484. } else {
  58485. err = ERR_CONN;
  58486. 8018012: 23f5 movs r3, #245 @ 0xf5
  58487. 8018014: 73fb strb r3, [r7, #15]
  58488. 8018016: e001 b.n 801801c <lwip_netconn_do_write+0xec>
  58489. #else /* LWIP_TCP */
  58490. err = ERR_VAL;
  58491. #endif /* LWIP_TCP */
  58492. #if (LWIP_UDP || LWIP_RAW)
  58493. } else {
  58494. err = ERR_VAL;
  58495. 8018018: 23fa movs r3, #250 @ 0xfa
  58496. 801801a: 73fb strb r3, [r7, #15]
  58497. #endif /* (LWIP_UDP || LWIP_RAW) */
  58498. }
  58499. }
  58500. msg->err = err;
  58501. 801801c: 68bb ldr r3, [r7, #8]
  58502. 801801e: 7bfa ldrb r2, [r7, #15]
  58503. 8018020: 711a strb r2, [r3, #4]
  58504. 8018022: e000 b.n 8018026 <lwip_netconn_do_write+0xf6>
  58505. return;
  58506. 8018024: bf00 nop
  58507. TCPIP_APIMSG_ACK(msg);
  58508. }
  58509. 8018026: 3710 adds r7, #16
  58510. 8018028: 46bd mov sp, r7
  58511. 801802a: bd80 pop {r7, pc}
  58512. 801802c: 0802ddc0 .word 0x0802ddc0
  58513. 8018030: 0802e164 .word 0x0802e164
  58514. 8018034: 0802de04 .word 0x0802de04
  58515. 8018038: 0802e2ec .word 0x0802e2ec
  58516. 801803c: 0802e180 .word 0x0802e180
  58517. 08018040 <lwip_netconn_do_getaddr>:
  58518. *
  58519. * @param m the api_msg pointing to the connection
  58520. */
  58521. void
  58522. lwip_netconn_do_getaddr(void *m)
  58523. {
  58524. 8018040: b580 push {r7, lr}
  58525. 8018042: b084 sub sp, #16
  58526. 8018044: af00 add r7, sp, #0
  58527. 8018046: 6078 str r0, [r7, #4]
  58528. struct api_msg *msg = (struct api_msg *)m;
  58529. 8018048: 687b ldr r3, [r7, #4]
  58530. 801804a: 60fb str r3, [r7, #12]
  58531. if (msg->conn->pcb.ip != NULL) {
  58532. 801804c: 68fb ldr r3, [r7, #12]
  58533. 801804e: 681b ldr r3, [r3, #0]
  58534. 8018050: 685b ldr r3, [r3, #4]
  58535. 8018052: 2b00 cmp r3, #0
  58536. 8018054: d06b beq.n 801812e <lwip_netconn_do_getaddr+0xee>
  58537. if (msg->msg.ad.local) {
  58538. 8018056: 68fb ldr r3, [r7, #12]
  58539. 8018058: 7c1b ldrb r3, [r3, #16]
  58540. 801805a: 2b00 cmp r3, #0
  58541. 801805c: d007 beq.n 801806e <lwip_netconn_do_getaddr+0x2e>
  58542. ip_addr_copy(API_EXPR_DEREF(msg->msg.ad.ipaddr),
  58543. 801805e: 68fb ldr r3, [r7, #12]
  58544. 8018060: 681b ldr r3, [r3, #0]
  58545. 8018062: 685a ldr r2, [r3, #4]
  58546. 8018064: 68fb ldr r3, [r7, #12]
  58547. 8018066: 689b ldr r3, [r3, #8]
  58548. 8018068: 6812 ldr r2, [r2, #0]
  58549. 801806a: 601a str r2, [r3, #0]
  58550. 801806c: e006 b.n 801807c <lwip_netconn_do_getaddr+0x3c>
  58551. msg->conn->pcb.ip->local_ip);
  58552. } else {
  58553. ip_addr_copy(API_EXPR_DEREF(msg->msg.ad.ipaddr),
  58554. 801806e: 68fb ldr r3, [r7, #12]
  58555. 8018070: 681b ldr r3, [r3, #0]
  58556. 8018072: 685a ldr r2, [r3, #4]
  58557. 8018074: 68fb ldr r3, [r7, #12]
  58558. 8018076: 689b ldr r3, [r3, #8]
  58559. 8018078: 6852 ldr r2, [r2, #4]
  58560. 801807a: 601a str r2, [r3, #0]
  58561. msg->conn->pcb.ip->remote_ip);
  58562. }
  58563. msg->err = ERR_OK;
  58564. 801807c: 68fb ldr r3, [r7, #12]
  58565. 801807e: 2200 movs r2, #0
  58566. 8018080: 711a strb r2, [r3, #4]
  58567. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  58568. 8018082: 68fb ldr r3, [r7, #12]
  58569. 8018084: 681b ldr r3, [r3, #0]
  58570. 8018086: 781b ldrb r3, [r3, #0]
  58571. 8018088: f003 03f0 and.w r3, r3, #240 @ 0xf0
  58572. 801808c: 2b10 cmp r3, #16
  58573. 801808e: d021 beq.n 80180d4 <lwip_netconn_do_getaddr+0x94>
  58574. 8018090: 2b20 cmp r3, #32
  58575. 8018092: d144 bne.n 801811e <lwip_netconn_do_getaddr+0xde>
  58576. }
  58577. break;
  58578. #endif /* LWIP_RAW */
  58579. #if LWIP_UDP
  58580. case NETCONN_UDP:
  58581. if (msg->msg.ad.local) {
  58582. 8018094: 68fb ldr r3, [r7, #12]
  58583. 8018096: 7c1b ldrb r3, [r3, #16]
  58584. 8018098: 2b00 cmp r3, #0
  58585. 801809a: d007 beq.n 80180ac <lwip_netconn_do_getaddr+0x6c>
  58586. API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.udp->local_port;
  58587. 801809c: 68fb ldr r3, [r7, #12]
  58588. 801809e: 681b ldr r3, [r3, #0]
  58589. 80180a0: 685a ldr r2, [r3, #4]
  58590. 80180a2: 68fb ldr r3, [r7, #12]
  58591. 80180a4: 68db ldr r3, [r3, #12]
  58592. 80180a6: 8a52 ldrh r2, [r2, #18]
  58593. 80180a8: 801a strh r2, [r3, #0]
  58594. msg->err = ERR_CONN;
  58595. } else {
  58596. API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.udp->remote_port;
  58597. }
  58598. }
  58599. break;
  58600. 80180aa: e044 b.n 8018136 <lwip_netconn_do_getaddr+0xf6>
  58601. if ((msg->conn->pcb.udp->flags & UDP_FLAGS_CONNECTED) == 0) {
  58602. 80180ac: 68fb ldr r3, [r7, #12]
  58603. 80180ae: 681b ldr r3, [r3, #0]
  58604. 80180b0: 685b ldr r3, [r3, #4]
  58605. 80180b2: 7c1b ldrb r3, [r3, #16]
  58606. 80180b4: f003 0304 and.w r3, r3, #4
  58607. 80180b8: 2b00 cmp r3, #0
  58608. 80180ba: d103 bne.n 80180c4 <lwip_netconn_do_getaddr+0x84>
  58609. msg->err = ERR_CONN;
  58610. 80180bc: 68fb ldr r3, [r7, #12]
  58611. 80180be: 22f5 movs r2, #245 @ 0xf5
  58612. 80180c0: 711a strb r2, [r3, #4]
  58613. break;
  58614. 80180c2: e038 b.n 8018136 <lwip_netconn_do_getaddr+0xf6>
  58615. API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.udp->remote_port;
  58616. 80180c4: 68fb ldr r3, [r7, #12]
  58617. 80180c6: 681b ldr r3, [r3, #0]
  58618. 80180c8: 685a ldr r2, [r3, #4]
  58619. 80180ca: 68fb ldr r3, [r7, #12]
  58620. 80180cc: 68db ldr r3, [r3, #12]
  58621. 80180ce: 8a92 ldrh r2, [r2, #20]
  58622. 80180d0: 801a strh r2, [r3, #0]
  58623. break;
  58624. 80180d2: e030 b.n 8018136 <lwip_netconn_do_getaddr+0xf6>
  58625. #endif /* LWIP_UDP */
  58626. #if LWIP_TCP
  58627. case NETCONN_TCP:
  58628. if ((msg->msg.ad.local == 0) &&
  58629. 80180d4: 68fb ldr r3, [r7, #12]
  58630. 80180d6: 7c1b ldrb r3, [r3, #16]
  58631. 80180d8: 2b00 cmp r3, #0
  58632. 80180da: d10f bne.n 80180fc <lwip_netconn_do_getaddr+0xbc>
  58633. ((msg->conn->pcb.tcp->state == CLOSED) || (msg->conn->pcb.tcp->state == LISTEN))) {
  58634. 80180dc: 68fb ldr r3, [r7, #12]
  58635. 80180de: 681b ldr r3, [r3, #0]
  58636. 80180e0: 685b ldr r3, [r3, #4]
  58637. 80180e2: 7d1b ldrb r3, [r3, #20]
  58638. if ((msg->msg.ad.local == 0) &&
  58639. 80180e4: 2b00 cmp r3, #0
  58640. 80180e6: d005 beq.n 80180f4 <lwip_netconn_do_getaddr+0xb4>
  58641. ((msg->conn->pcb.tcp->state == CLOSED) || (msg->conn->pcb.tcp->state == LISTEN))) {
  58642. 80180e8: 68fb ldr r3, [r7, #12]
  58643. 80180ea: 681b ldr r3, [r3, #0]
  58644. 80180ec: 685b ldr r3, [r3, #4]
  58645. 80180ee: 7d1b ldrb r3, [r3, #20]
  58646. 80180f0: 2b01 cmp r3, #1
  58647. 80180f2: d103 bne.n 80180fc <lwip_netconn_do_getaddr+0xbc>
  58648. /* pcb is not connected and remote name is requested */
  58649. msg->err = ERR_CONN;
  58650. 80180f4: 68fb ldr r3, [r7, #12]
  58651. 80180f6: 22f5 movs r2, #245 @ 0xf5
  58652. 80180f8: 711a strb r2, [r3, #4]
  58653. } else {
  58654. API_EXPR_DEREF(msg->msg.ad.port) = (msg->msg.ad.local ? msg->conn->pcb.tcp->local_port : msg->conn->pcb.tcp->remote_port);
  58655. }
  58656. break;
  58657. 80180fa: e01c b.n 8018136 <lwip_netconn_do_getaddr+0xf6>
  58658. API_EXPR_DEREF(msg->msg.ad.port) = (msg->msg.ad.local ? msg->conn->pcb.tcp->local_port : msg->conn->pcb.tcp->remote_port);
  58659. 80180fc: 68fb ldr r3, [r7, #12]
  58660. 80180fe: 7c1b ldrb r3, [r3, #16]
  58661. 8018100: 2b00 cmp r3, #0
  58662. 8018102: d004 beq.n 801810e <lwip_netconn_do_getaddr+0xce>
  58663. 8018104: 68fb ldr r3, [r7, #12]
  58664. 8018106: 681b ldr r3, [r3, #0]
  58665. 8018108: 685b ldr r3, [r3, #4]
  58666. 801810a: 8adb ldrh r3, [r3, #22]
  58667. 801810c: e003 b.n 8018116 <lwip_netconn_do_getaddr+0xd6>
  58668. 801810e: 68fb ldr r3, [r7, #12]
  58669. 8018110: 681b ldr r3, [r3, #0]
  58670. 8018112: 685b ldr r3, [r3, #4]
  58671. 8018114: 8b1b ldrh r3, [r3, #24]
  58672. 8018116: 68fa ldr r2, [r7, #12]
  58673. 8018118: 68d2 ldr r2, [r2, #12]
  58674. 801811a: 8013 strh r3, [r2, #0]
  58675. break;
  58676. 801811c: e00b b.n 8018136 <lwip_netconn_do_getaddr+0xf6>
  58677. #endif /* LWIP_TCP */
  58678. default:
  58679. LWIP_ASSERT("invalid netconn_type", 0);
  58680. 801811e: 4b08 ldr r3, [pc, #32] @ (8018140 <lwip_netconn_do_getaddr+0x100>)
  58681. 8018120: f240 727d movw r2, #1917 @ 0x77d
  58682. 8018124: 4907 ldr r1, [pc, #28] @ (8018144 <lwip_netconn_do_getaddr+0x104>)
  58683. 8018126: 4808 ldr r0, [pc, #32] @ (8018148 <lwip_netconn_do_getaddr+0x108>)
  58684. 8018128: f012 fb18 bl 802a75c <iprintf>
  58685. break;
  58686. 801812c: e003 b.n 8018136 <lwip_netconn_do_getaddr+0xf6>
  58687. }
  58688. } else {
  58689. msg->err = ERR_CONN;
  58690. 801812e: 68fb ldr r3, [r7, #12]
  58691. 8018130: 22f5 movs r2, #245 @ 0xf5
  58692. 8018132: 711a strb r2, [r3, #4]
  58693. }
  58694. TCPIP_APIMSG_ACK(msg);
  58695. }
  58696. 8018134: bf00 nop
  58697. 8018136: bf00 nop
  58698. 8018138: 3710 adds r7, #16
  58699. 801813a: 46bd mov sp, r7
  58700. 801813c: bd80 pop {r7, pc}
  58701. 801813e: bf00 nop
  58702. 8018140: 0802ddc0 .word 0x0802ddc0
  58703. 8018144: 0802e300 .word 0x0802e300
  58704. 8018148: 0802de04 .word 0x0802de04
  58705. 0801814c <lwip_netconn_do_close>:
  58706. *
  58707. * @param m the api_msg pointing to the connection
  58708. */
  58709. void
  58710. lwip_netconn_do_close(void *m)
  58711. {
  58712. 801814c: b580 push {r7, lr}
  58713. 801814e: b084 sub sp, #16
  58714. 8018150: af00 add r7, sp, #0
  58715. 8018152: 6078 str r0, [r7, #4]
  58716. struct api_msg *msg = (struct api_msg *)m;
  58717. 8018154: 687b ldr r3, [r7, #4]
  58718. 8018156: 60fb str r3, [r7, #12]
  58719. #if LWIP_TCP
  58720. enum netconn_state state = msg->conn->state;
  58721. 8018158: 68fb ldr r3, [r7, #12]
  58722. 801815a: 681b ldr r3, [r3, #0]
  58723. 801815c: 785b ldrb r3, [r3, #1]
  58724. 801815e: 72fb strb r3, [r7, #11]
  58725. /* First check if this is a TCP netconn and if it is in a correct state
  58726. (LISTEN doesn't support half shutdown) */
  58727. if ((msg->conn->pcb.tcp != NULL) &&
  58728. 8018160: 68fb ldr r3, [r7, #12]
  58729. 8018162: 681b ldr r3, [r3, #0]
  58730. 8018164: 685b ldr r3, [r3, #4]
  58731. 8018166: 2b00 cmp r3, #0
  58732. 8018168: d067 beq.n 801823a <lwip_netconn_do_close+0xee>
  58733. (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) &&
  58734. 801816a: 68fb ldr r3, [r7, #12]
  58735. 801816c: 681b ldr r3, [r3, #0]
  58736. 801816e: 781b ldrb r3, [r3, #0]
  58737. 8018170: f003 03f0 and.w r3, r3, #240 @ 0xf0
  58738. if ((msg->conn->pcb.tcp != NULL) &&
  58739. 8018174: 2b10 cmp r3, #16
  58740. 8018176: d160 bne.n 801823a <lwip_netconn_do_close+0xee>
  58741. ((msg->msg.sd.shut == NETCONN_SHUT_RDWR) || (state != NETCONN_LISTEN))) {
  58742. 8018178: 68fb ldr r3, [r7, #12]
  58743. 801817a: 7a1b ldrb r3, [r3, #8]
  58744. (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) &&
  58745. 801817c: 2b03 cmp r3, #3
  58746. 801817e: d002 beq.n 8018186 <lwip_netconn_do_close+0x3a>
  58747. ((msg->msg.sd.shut == NETCONN_SHUT_RDWR) || (state != NETCONN_LISTEN))) {
  58748. 8018180: 7afb ldrb r3, [r7, #11]
  58749. 8018182: 2b02 cmp r3, #2
  58750. 8018184: d059 beq.n 801823a <lwip_netconn_do_close+0xee>
  58751. /* Check if we are in a connected state */
  58752. if (state == NETCONN_CONNECT) {
  58753. 8018186: 7afb ldrb r3, [r7, #11]
  58754. 8018188: 2b03 cmp r3, #3
  58755. 801818a: d103 bne.n 8018194 <lwip_netconn_do_close+0x48>
  58756. /* TCP connect in progress: cannot shutdown */
  58757. msg->err = ERR_CONN;
  58758. 801818c: 68fb ldr r3, [r7, #12]
  58759. 801818e: 22f5 movs r2, #245 @ 0xf5
  58760. 8018190: 711a strb r2, [r3, #4]
  58761. if (state == NETCONN_CONNECT) {
  58762. 8018192: e057 b.n 8018244 <lwip_netconn_do_close+0xf8>
  58763. } else if (state == NETCONN_WRITE) {
  58764. 8018194: 7afb ldrb r3, [r7, #11]
  58765. 8018196: 2b01 cmp r3, #1
  58766. 8018198: d103 bne.n 80181a2 <lwip_netconn_do_close+0x56>
  58767. msg->err = tcp_shutdown(msg->conn->pcb.tcp, 1, 0);
  58768. }
  58769. }
  58770. if (state == NETCONN_NONE) {
  58771. #else /* LWIP_NETCONN_FULLDUPLEX */
  58772. msg->err = ERR_INPROGRESS;
  58773. 801819a: 68fb ldr r3, [r7, #12]
  58774. 801819c: 22fb movs r2, #251 @ 0xfb
  58775. 801819e: 711a strb r2, [r3, #4]
  58776. if (state == NETCONN_CONNECT) {
  58777. 80181a0: e050 b.n 8018244 <lwip_netconn_do_close+0xf8>
  58778. } else {
  58779. #endif /* LWIP_NETCONN_FULLDUPLEX */
  58780. if (msg->msg.sd.shut & NETCONN_SHUT_RD) {
  58781. 80181a2: 68fb ldr r3, [r7, #12]
  58782. 80181a4: 7a1b ldrb r3, [r3, #8]
  58783. 80181a6: f003 0301 and.w r3, r3, #1
  58784. 80181aa: 2b00 cmp r3, #0
  58785. 80181ac: d004 beq.n 80181b8 <lwip_netconn_do_close+0x6c>
  58786. #if LWIP_NETCONN_FULLDUPLEX
  58787. /* Mark mboxes invalid */
  58788. netconn_mark_mbox_invalid(msg->conn);
  58789. #else /* LWIP_NETCONN_FULLDUPLEX */
  58790. netconn_drain(msg->conn);
  58791. 80181ae: 68fb ldr r3, [r7, #12]
  58792. 80181b0: 681b ldr r3, [r3, #0]
  58793. 80181b2: 4618 mov r0, r3
  58794. 80181b4: f7ff f82e bl 8017214 <netconn_drain>
  58795. #endif /* LWIP_NETCONN_FULLDUPLEX */
  58796. }
  58797. LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL);
  58798. 80181b8: 68fb ldr r3, [r7, #12]
  58799. 80181ba: 681b ldr r3, [r3, #0]
  58800. 80181bc: 6adb ldr r3, [r3, #44] @ 0x2c
  58801. 80181be: 2b00 cmp r3, #0
  58802. 80181c0: d006 beq.n 80181d0 <lwip_netconn_do_close+0x84>
  58803. 80181c2: 4b22 ldr r3, [pc, #136] @ (801824c <lwip_netconn_do_close+0x100>)
  58804. 80181c4: f240 72bd movw r2, #1981 @ 0x7bd
  58805. 80181c8: 4921 ldr r1, [pc, #132] @ (8018250 <lwip_netconn_do_close+0x104>)
  58806. 80181ca: 4822 ldr r0, [pc, #136] @ (8018254 <lwip_netconn_do_close+0x108>)
  58807. 80181cc: f012 fac6 bl 802a75c <iprintf>
  58808. msg->conn->state = NETCONN_CLOSE;
  58809. 80181d0: 68fb ldr r3, [r7, #12]
  58810. 80181d2: 681b ldr r3, [r3, #0]
  58811. 80181d4: 2204 movs r2, #4
  58812. 80181d6: 705a strb r2, [r3, #1]
  58813. msg->conn->current_msg = msg;
  58814. 80181d8: 68fb ldr r3, [r7, #12]
  58815. 80181da: 681b ldr r3, [r3, #0]
  58816. 80181dc: 68fa ldr r2, [r7, #12]
  58817. 80181de: 62da str r2, [r3, #44] @ 0x2c
  58818. #if LWIP_TCPIP_CORE_LOCKING
  58819. if (lwip_netconn_do_close_internal(msg->conn, 0) != ERR_OK) {
  58820. 80181e0: 68fb ldr r3, [r7, #12]
  58821. 80181e2: 681b ldr r3, [r3, #0]
  58822. 80181e4: 2100 movs r1, #0
  58823. 80181e6: 4618 mov r0, r3
  58824. 80181e8: f7ff f892 bl 8017310 <lwip_netconn_do_close_internal>
  58825. 80181ec: 4603 mov r3, r0
  58826. 80181ee: 2b00 cmp r3, #0
  58827. 80181f0: d027 beq.n 8018242 <lwip_netconn_do_close+0xf6>
  58828. LWIP_ASSERT("state!", msg->conn->state == NETCONN_CLOSE);
  58829. 80181f2: 68fb ldr r3, [r7, #12]
  58830. 80181f4: 681b ldr r3, [r3, #0]
  58831. 80181f6: 785b ldrb r3, [r3, #1]
  58832. 80181f8: 2b04 cmp r3, #4
  58833. 80181fa: d006 beq.n 801820a <lwip_netconn_do_close+0xbe>
  58834. 80181fc: 4b13 ldr r3, [pc, #76] @ (801824c <lwip_netconn_do_close+0x100>)
  58835. 80181fe: f240 72c2 movw r2, #1986 @ 0x7c2
  58836. 8018202: 4915 ldr r1, [pc, #84] @ (8018258 <lwip_netconn_do_close+0x10c>)
  58837. 8018204: 4813 ldr r0, [pc, #76] @ (8018254 <lwip_netconn_do_close+0x108>)
  58838. 8018206: f012 faa9 bl 802a75c <iprintf>
  58839. UNLOCK_TCPIP_CORE();
  58840. 801820a: f7f8 fe6b bl 8010ee4 <sys_unlock_tcpip_core>
  58841. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  58842. 801820e: 68fb ldr r3, [r7, #12]
  58843. 8018210: 681b ldr r3, [r3, #0]
  58844. 8018212: 330c adds r3, #12
  58845. 8018214: 2100 movs r1, #0
  58846. 8018216: 4618 mov r0, r3
  58847. 8018218: f00e ff43 bl 80270a2 <sys_arch_sem_wait>
  58848. LOCK_TCPIP_CORE();
  58849. 801821c: f7f8 fe52 bl 8010ec4 <sys_lock_tcpip_core>
  58850. LWIP_ASSERT("state!", msg->conn->state == NETCONN_NONE);
  58851. 8018220: 68fb ldr r3, [r7, #12]
  58852. 8018222: 681b ldr r3, [r3, #0]
  58853. 8018224: 785b ldrb r3, [r3, #1]
  58854. 8018226: 2b00 cmp r3, #0
  58855. 8018228: d00b beq.n 8018242 <lwip_netconn_do_close+0xf6>
  58856. 801822a: 4b08 ldr r3, [pc, #32] @ (801824c <lwip_netconn_do_close+0x100>)
  58857. 801822c: f240 72c6 movw r2, #1990 @ 0x7c6
  58858. 8018230: 4909 ldr r1, [pc, #36] @ (8018258 <lwip_netconn_do_close+0x10c>)
  58859. 8018232: 4808 ldr r0, [pc, #32] @ (8018254 <lwip_netconn_do_close+0x108>)
  58860. 8018234: f012 fa92 bl 802a75c <iprintf>
  58861. }
  58862. #else /* LWIP_TCPIP_CORE_LOCKING */
  58863. lwip_netconn_do_close_internal(msg->conn);
  58864. #endif /* LWIP_TCPIP_CORE_LOCKING */
  58865. /* for tcp netconns, lwip_netconn_do_close_internal ACKs the message */
  58866. return;
  58867. 8018238: e003 b.n 8018242 <lwip_netconn_do_close+0xf6>
  58868. }
  58869. } else
  58870. #endif /* LWIP_TCP */
  58871. {
  58872. msg->err = ERR_CONN;
  58873. 801823a: 68fb ldr r3, [r7, #12]
  58874. 801823c: 22f5 movs r2, #245 @ 0xf5
  58875. 801823e: 711a strb r2, [r3, #4]
  58876. 8018240: e000 b.n 8018244 <lwip_netconn_do_close+0xf8>
  58877. return;
  58878. 8018242: bf00 nop
  58879. }
  58880. TCPIP_APIMSG_ACK(msg);
  58881. }
  58882. 8018244: 3710 adds r7, #16
  58883. 8018246: 46bd mov sp, r7
  58884. 8018248: bd80 pop {r7, pc}
  58885. 801824a: bf00 nop
  58886. 801824c: 0802ddc0 .word 0x0802ddc0
  58887. 8018250: 0802e164 .word 0x0802e164
  58888. 8018254: 0802de04 .word 0x0802de04
  58889. 8018258: 0802e180 .word 0x0802e180
  58890. 0801825c <err_to_errno>:
  58891. EIO /* ERR_ARG -16 Illegal argument. */
  58892. };
  58893. int
  58894. err_to_errno(err_t err)
  58895. {
  58896. 801825c: b480 push {r7}
  58897. 801825e: b083 sub sp, #12
  58898. 8018260: af00 add r7, sp, #0
  58899. 8018262: 4603 mov r3, r0
  58900. 8018264: 71fb strb r3, [r7, #7]
  58901. if ((err > 0) || (-err >= (err_t)LWIP_ARRAYSIZE(err_to_errno_table))) {
  58902. 8018266: f997 3007 ldrsb.w r3, [r7, #7]
  58903. 801826a: 2b00 cmp r3, #0
  58904. 801826c: dc04 bgt.n 8018278 <err_to_errno+0x1c>
  58905. 801826e: f997 3007 ldrsb.w r3, [r7, #7]
  58906. 8018272: f113 0f10 cmn.w r3, #16
  58907. 8018276: da01 bge.n 801827c <err_to_errno+0x20>
  58908. return EIO;
  58909. 8018278: 2305 movs r3, #5
  58910. 801827a: e005 b.n 8018288 <err_to_errno+0x2c>
  58911. }
  58912. return err_to_errno_table[-err];
  58913. 801827c: f997 3007 ldrsb.w r3, [r7, #7]
  58914. 8018280: 425b negs r3, r3
  58915. 8018282: 4a04 ldr r2, [pc, #16] @ (8018294 <err_to_errno+0x38>)
  58916. 8018284: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  58917. }
  58918. 8018288: 4618 mov r0, r3
  58919. 801828a: 370c adds r7, #12
  58920. 801828c: 46bd mov sp, r7
  58921. 801828e: f85d 7b04 ldr.w r7, [sp], #4
  58922. 8018292: 4770 bx lr
  58923. 8018294: 080319c0 .word 0x080319c0
  58924. 08018298 <netbuf_delete>:
  58925. *
  58926. * @param buf pointer to a netbuf allocated by netbuf_new()
  58927. */
  58928. void
  58929. netbuf_delete(struct netbuf *buf)
  58930. {
  58931. 8018298: b580 push {r7, lr}
  58932. 801829a: b082 sub sp, #8
  58933. 801829c: af00 add r7, sp, #0
  58934. 801829e: 6078 str r0, [r7, #4]
  58935. if (buf != NULL) {
  58936. 80182a0: 687b ldr r3, [r7, #4]
  58937. 80182a2: 2b00 cmp r3, #0
  58938. 80182a4: d013 beq.n 80182ce <netbuf_delete+0x36>
  58939. if (buf->p != NULL) {
  58940. 80182a6: 687b ldr r3, [r7, #4]
  58941. 80182a8: 681b ldr r3, [r3, #0]
  58942. 80182aa: 2b00 cmp r3, #0
  58943. 80182ac: d00b beq.n 80182c6 <netbuf_delete+0x2e>
  58944. pbuf_free(buf->p);
  58945. 80182ae: 687b ldr r3, [r7, #4]
  58946. 80182b0: 681b ldr r3, [r3, #0]
  58947. 80182b2: 4618 mov r0, r3
  58948. 80182b4: f002 ffda bl 801b26c <pbuf_free>
  58949. buf->p = buf->ptr = NULL;
  58950. 80182b8: 687b ldr r3, [r7, #4]
  58951. 80182ba: 2200 movs r2, #0
  58952. 80182bc: 605a str r2, [r3, #4]
  58953. 80182be: 687b ldr r3, [r7, #4]
  58954. 80182c0: 685a ldr r2, [r3, #4]
  58955. 80182c2: 687b ldr r3, [r7, #4]
  58956. 80182c4: 601a str r2, [r3, #0]
  58957. }
  58958. memp_free(MEMP_NETBUF, buf);
  58959. 80182c6: 6879 ldr r1, [r7, #4]
  58960. 80182c8: 2006 movs r0, #6
  58961. 80182ca: f002 f8e1 bl 801a490 <memp_free>
  58962. }
  58963. }
  58964. 80182ce: bf00 nop
  58965. 80182d0: 3708 adds r7, #8
  58966. 80182d2: 46bd mov sp, r7
  58967. 80182d4: bd80 pop {r7, pc}
  58968. ...
  58969. 080182d8 <netbuf_free>:
  58970. *
  58971. * @param buf pointer to the netbuf which contains the packet buffer to free
  58972. */
  58973. void
  58974. netbuf_free(struct netbuf *buf)
  58975. {
  58976. 80182d8: b580 push {r7, lr}
  58977. 80182da: b082 sub sp, #8
  58978. 80182dc: af00 add r7, sp, #0
  58979. 80182de: 6078 str r0, [r7, #4]
  58980. LWIP_ERROR("netbuf_free: invalid buf", (buf != NULL), return;);
  58981. 80182e0: 687b ldr r3, [r7, #4]
  58982. 80182e2: 2b00 cmp r3, #0
  58983. 80182e4: d106 bne.n 80182f4 <netbuf_free+0x1c>
  58984. 80182e6: 4b0d ldr r3, [pc, #52] @ (801831c <netbuf_free+0x44>)
  58985. 80182e8: 2281 movs r2, #129 @ 0x81
  58986. 80182ea: 490d ldr r1, [pc, #52] @ (8018320 <netbuf_free+0x48>)
  58987. 80182ec: 480d ldr r0, [pc, #52] @ (8018324 <netbuf_free+0x4c>)
  58988. 80182ee: f012 fa35 bl 802a75c <iprintf>
  58989. 80182f2: e00f b.n 8018314 <netbuf_free+0x3c>
  58990. if (buf->p != NULL) {
  58991. 80182f4: 687b ldr r3, [r7, #4]
  58992. 80182f6: 681b ldr r3, [r3, #0]
  58993. 80182f8: 2b00 cmp r3, #0
  58994. 80182fa: d004 beq.n 8018306 <netbuf_free+0x2e>
  58995. pbuf_free(buf->p);
  58996. 80182fc: 687b ldr r3, [r7, #4]
  58997. 80182fe: 681b ldr r3, [r3, #0]
  58998. 8018300: 4618 mov r0, r3
  58999. 8018302: f002 ffb3 bl 801b26c <pbuf_free>
  59000. }
  59001. buf->p = buf->ptr = NULL;
  59002. 8018306: 687b ldr r3, [r7, #4]
  59003. 8018308: 2200 movs r2, #0
  59004. 801830a: 605a str r2, [r3, #4]
  59005. 801830c: 687b ldr r3, [r7, #4]
  59006. 801830e: 685a ldr r2, [r3, #4]
  59007. 8018310: 687b ldr r3, [r7, #4]
  59008. 8018312: 601a str r2, [r3, #0]
  59009. #if LWIP_CHECKSUM_ON_COPY
  59010. buf->flags = 0;
  59011. buf->toport_chksum = 0;
  59012. #endif /* LWIP_CHECKSUM_ON_COPY */
  59013. }
  59014. 8018314: 3708 adds r7, #8
  59015. 8018316: 46bd mov sp, r7
  59016. 8018318: bd80 pop {r7, pc}
  59017. 801831a: bf00 nop
  59018. 801831c: 0802e318 .word 0x0802e318
  59019. 8018320: 0802e3b4 .word 0x0802e3b4
  59020. 8018324: 0802e368 .word 0x0802e368
  59021. 08018328 <netbuf_ref>:
  59022. * @return ERR_OK if data is referenced
  59023. * ERR_MEM if data couldn't be referenced due to lack of memory
  59024. */
  59025. err_t
  59026. netbuf_ref(struct netbuf *buf, const void *dataptr, u16_t size)
  59027. {
  59028. 8018328: b580 push {r7, lr}
  59029. 801832a: b084 sub sp, #16
  59030. 801832c: af00 add r7, sp, #0
  59031. 801832e: 60f8 str r0, [r7, #12]
  59032. 8018330: 60b9 str r1, [r7, #8]
  59033. 8018332: 4613 mov r3, r2
  59034. 8018334: 80fb strh r3, [r7, #6]
  59035. LWIP_ERROR("netbuf_ref: invalid buf", (buf != NULL), return ERR_ARG;);
  59036. 8018336: 68fb ldr r3, [r7, #12]
  59037. 8018338: 2b00 cmp r3, #0
  59038. 801833a: d108 bne.n 801834e <netbuf_ref+0x26>
  59039. 801833c: 4b1c ldr r3, [pc, #112] @ (80183b0 <netbuf_ref+0x88>)
  59040. 801833e: 2299 movs r2, #153 @ 0x99
  59041. 8018340: 491c ldr r1, [pc, #112] @ (80183b4 <netbuf_ref+0x8c>)
  59042. 8018342: 481d ldr r0, [pc, #116] @ (80183b8 <netbuf_ref+0x90>)
  59043. 8018344: f012 fa0a bl 802a75c <iprintf>
  59044. 8018348: f06f 030f mvn.w r3, #15
  59045. 801834c: e02b b.n 80183a6 <netbuf_ref+0x7e>
  59046. if (buf->p != NULL) {
  59047. 801834e: 68fb ldr r3, [r7, #12]
  59048. 8018350: 681b ldr r3, [r3, #0]
  59049. 8018352: 2b00 cmp r3, #0
  59050. 8018354: d004 beq.n 8018360 <netbuf_ref+0x38>
  59051. pbuf_free(buf->p);
  59052. 8018356: 68fb ldr r3, [r7, #12]
  59053. 8018358: 681b ldr r3, [r3, #0]
  59054. 801835a: 4618 mov r0, r3
  59055. 801835c: f002 ff86 bl 801b26c <pbuf_free>
  59056. }
  59057. buf->p = pbuf_alloc(PBUF_TRANSPORT, 0, PBUF_REF);
  59058. 8018360: 2241 movs r2, #65 @ 0x41
  59059. 8018362: 2100 movs r1, #0
  59060. 8018364: 2036 movs r0, #54 @ 0x36
  59061. 8018366: f002 fc6b bl 801ac40 <pbuf_alloc>
  59062. 801836a: 4602 mov r2, r0
  59063. 801836c: 68fb ldr r3, [r7, #12]
  59064. 801836e: 601a str r2, [r3, #0]
  59065. if (buf->p == NULL) {
  59066. 8018370: 68fb ldr r3, [r7, #12]
  59067. 8018372: 681b ldr r3, [r3, #0]
  59068. 8018374: 2b00 cmp r3, #0
  59069. 8018376: d105 bne.n 8018384 <netbuf_ref+0x5c>
  59070. buf->ptr = NULL;
  59071. 8018378: 68fb ldr r3, [r7, #12]
  59072. 801837a: 2200 movs r2, #0
  59073. 801837c: 605a str r2, [r3, #4]
  59074. return ERR_MEM;
  59075. 801837e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59076. 8018382: e010 b.n 80183a6 <netbuf_ref+0x7e>
  59077. }
  59078. ((struct pbuf_rom *)buf->p)->payload = dataptr;
  59079. 8018384: 68fb ldr r3, [r7, #12]
  59080. 8018386: 681b ldr r3, [r3, #0]
  59081. 8018388: 68ba ldr r2, [r7, #8]
  59082. 801838a: 605a str r2, [r3, #4]
  59083. buf->p->len = buf->p->tot_len = size;
  59084. 801838c: 68fb ldr r3, [r7, #12]
  59085. 801838e: 681b ldr r3, [r3, #0]
  59086. 8018390: 88fa ldrh r2, [r7, #6]
  59087. 8018392: 811a strh r2, [r3, #8]
  59088. 8018394: 68fa ldr r2, [r7, #12]
  59089. 8018396: 6812 ldr r2, [r2, #0]
  59090. 8018398: 891b ldrh r3, [r3, #8]
  59091. 801839a: 8153 strh r3, [r2, #10]
  59092. buf->ptr = buf->p;
  59093. 801839c: 68fb ldr r3, [r7, #12]
  59094. 801839e: 681a ldr r2, [r3, #0]
  59095. 80183a0: 68fb ldr r3, [r7, #12]
  59096. 80183a2: 605a str r2, [r3, #4]
  59097. return ERR_OK;
  59098. 80183a4: 2300 movs r3, #0
  59099. }
  59100. 80183a6: 4618 mov r0, r3
  59101. 80183a8: 3710 adds r7, #16
  59102. 80183aa: 46bd mov sp, r7
  59103. 80183ac: bd80 pop {r7, pc}
  59104. 80183ae: bf00 nop
  59105. 80183b0: 0802e318 .word 0x0802e318
  59106. 80183b4: 0802e3d0 .word 0x0802e3d0
  59107. 80183b8: 0802e368 .word 0x0802e368
  59108. 080183bc <tryget_socket_unconn_nouse>:
  59109. #endif /* LWIP_NETCONN_FULLDUPLEX */
  59110. /* Translate a socket 'int' into a pointer (only fails if the index is invalid) */
  59111. static struct lwip_sock *
  59112. tryget_socket_unconn_nouse(int fd)
  59113. {
  59114. 80183bc: b480 push {r7}
  59115. 80183be: b085 sub sp, #20
  59116. 80183c0: af00 add r7, sp, #0
  59117. 80183c2: 6078 str r0, [r7, #4]
  59118. int s = fd - LWIP_SOCKET_OFFSET;
  59119. 80183c4: 687b ldr r3, [r7, #4]
  59120. 80183c6: 60fb str r3, [r7, #12]
  59121. if ((s < 0) || (s >= NUM_SOCKETS)) {
  59122. 80183c8: 68fb ldr r3, [r7, #12]
  59123. 80183ca: 2b00 cmp r3, #0
  59124. 80183cc: db02 blt.n 80183d4 <tryget_socket_unconn_nouse+0x18>
  59125. 80183ce: 68fb ldr r3, [r7, #12]
  59126. 80183d0: 2b03 cmp r3, #3
  59127. 80183d2: dd01 ble.n 80183d8 <tryget_socket_unconn_nouse+0x1c>
  59128. LWIP_DEBUGF(SOCKETS_DEBUG, ("tryget_socket_unconn(%d): invalid\n", fd));
  59129. return NULL;
  59130. 80183d4: 2300 movs r3, #0
  59131. 80183d6: e003 b.n 80183e0 <tryget_socket_unconn_nouse+0x24>
  59132. }
  59133. return &sockets[s];
  59134. 80183d8: 68fb ldr r3, [r7, #12]
  59135. 80183da: 011b lsls r3, r3, #4
  59136. 80183dc: 4a03 ldr r2, [pc, #12] @ (80183ec <tryget_socket_unconn_nouse+0x30>)
  59137. 80183de: 4413 add r3, r2
  59138. }
  59139. 80183e0: 4618 mov r0, r3
  59140. 80183e2: 3714 adds r7, #20
  59141. 80183e4: 46bd mov sp, r7
  59142. 80183e6: f85d 7b04 ldr.w r7, [sp], #4
  59143. 80183ea: 4770 bx lr
  59144. 80183ec: 240243c4 .word 0x240243c4
  59145. 080183f0 <tryget_socket_unconn>:
  59146. }
  59147. /* Translate a socket 'int' into a pointer (only fails if the index is invalid) */
  59148. static struct lwip_sock *
  59149. tryget_socket_unconn(int fd)
  59150. {
  59151. 80183f0: b580 push {r7, lr}
  59152. 80183f2: b084 sub sp, #16
  59153. 80183f4: af00 add r7, sp, #0
  59154. 80183f6: 6078 str r0, [r7, #4]
  59155. struct lwip_sock *ret = tryget_socket_unconn_nouse(fd);
  59156. 80183f8: 6878 ldr r0, [r7, #4]
  59157. 80183fa: f7ff ffdf bl 80183bc <tryget_socket_unconn_nouse>
  59158. 80183fe: 60f8 str r0, [r7, #12]
  59159. if (ret != NULL) {
  59160. if (!sock_inc_used(ret)) {
  59161. return NULL;
  59162. }
  59163. }
  59164. return ret;
  59165. 8018400: 68fb ldr r3, [r7, #12]
  59166. }
  59167. 8018402: 4618 mov r0, r3
  59168. 8018404: 3710 adds r7, #16
  59169. 8018406: 46bd mov sp, r7
  59170. 8018408: bd80 pop {r7, pc}
  59171. 0801840a <tryget_socket>:
  59172. * @param fd externally used socket index
  59173. * @return struct lwip_sock for the socket or NULL if not found
  59174. */
  59175. static struct lwip_sock *
  59176. tryget_socket(int fd)
  59177. {
  59178. 801840a: b580 push {r7, lr}
  59179. 801840c: b084 sub sp, #16
  59180. 801840e: af00 add r7, sp, #0
  59181. 8018410: 6078 str r0, [r7, #4]
  59182. struct lwip_sock *sock = tryget_socket_unconn(fd);
  59183. 8018412: 6878 ldr r0, [r7, #4]
  59184. 8018414: f7ff ffec bl 80183f0 <tryget_socket_unconn>
  59185. 8018418: 60f8 str r0, [r7, #12]
  59186. if (sock != NULL) {
  59187. 801841a: 68fb ldr r3, [r7, #12]
  59188. 801841c: 2b00 cmp r3, #0
  59189. 801841e: d005 beq.n 801842c <tryget_socket+0x22>
  59190. if (sock->conn) {
  59191. 8018420: 68fb ldr r3, [r7, #12]
  59192. 8018422: 681b ldr r3, [r3, #0]
  59193. 8018424: 2b00 cmp r3, #0
  59194. 8018426: d001 beq.n 801842c <tryget_socket+0x22>
  59195. return sock;
  59196. 8018428: 68fb ldr r3, [r7, #12]
  59197. 801842a: e000 b.n 801842e <tryget_socket+0x24>
  59198. }
  59199. done_socket(sock);
  59200. }
  59201. return NULL;
  59202. 801842c: 2300 movs r3, #0
  59203. }
  59204. 801842e: 4618 mov r0, r3
  59205. 8018430: 3710 adds r7, #16
  59206. 8018432: 46bd mov sp, r7
  59207. 8018434: bd80 pop {r7, pc}
  59208. ...
  59209. 08018438 <get_socket>:
  59210. * @param fd externally used socket index
  59211. * @return struct lwip_sock for the socket or NULL if not found
  59212. */
  59213. static struct lwip_sock *
  59214. get_socket(int fd)
  59215. {
  59216. 8018438: b580 push {r7, lr}
  59217. 801843a: b084 sub sp, #16
  59218. 801843c: af00 add r7, sp, #0
  59219. 801843e: 6078 str r0, [r7, #4]
  59220. struct lwip_sock *sock = tryget_socket(fd);
  59221. 8018440: 6878 ldr r0, [r7, #4]
  59222. 8018442: f7ff ffe2 bl 801840a <tryget_socket>
  59223. 8018446: 60f8 str r0, [r7, #12]
  59224. if (!sock) {
  59225. 8018448: 68fb ldr r3, [r7, #12]
  59226. 801844a: 2b00 cmp r3, #0
  59227. 801844c: d104 bne.n 8018458 <get_socket+0x20>
  59228. if ((fd < LWIP_SOCKET_OFFSET) || (fd >= (LWIP_SOCKET_OFFSET + NUM_SOCKETS))) {
  59229. LWIP_DEBUGF(SOCKETS_DEBUG, ("get_socket(%d): invalid\n", fd));
  59230. }
  59231. set_errno(EBADF);
  59232. 801844e: 4b05 ldr r3, [pc, #20] @ (8018464 <get_socket+0x2c>)
  59233. 8018450: 2209 movs r2, #9
  59234. 8018452: 601a str r2, [r3, #0]
  59235. return NULL;
  59236. 8018454: 2300 movs r3, #0
  59237. 8018456: e000 b.n 801845a <get_socket+0x22>
  59238. }
  59239. return sock;
  59240. 8018458: 68fb ldr r3, [r7, #12]
  59241. }
  59242. 801845a: 4618 mov r0, r3
  59243. 801845c: 3710 adds r7, #16
  59244. 801845e: 46bd mov sp, r7
  59245. 8018460: bd80 pop {r7, pc}
  59246. 8018462: bf00 nop
  59247. 8018464: 2402b260 .word 0x2402b260
  59248. 08018468 <alloc_socket>:
  59249. * 0 if socket has been created by socket()
  59250. * @return the index of the new socket; -1 on error
  59251. */
  59252. static int
  59253. alloc_socket(struct netconn *newconn, int accepted)
  59254. {
  59255. 8018468: b580 push {r7, lr}
  59256. 801846a: b084 sub sp, #16
  59257. 801846c: af00 add r7, sp, #0
  59258. 801846e: 6078 str r0, [r7, #4]
  59259. 8018470: 6039 str r1, [r7, #0]
  59260. int i;
  59261. SYS_ARCH_DECL_PROTECT(lev);
  59262. LWIP_UNUSED_ARG(accepted);
  59263. /* allocate a new socket identifier */
  59264. for (i = 0; i < NUM_SOCKETS; ++i) {
  59265. 8018472: 2300 movs r3, #0
  59266. 8018474: 60fb str r3, [r7, #12]
  59267. 8018476: e052 b.n 801851e <alloc_socket+0xb6>
  59268. /* Protect socket array */
  59269. SYS_ARCH_PROTECT(lev);
  59270. 8018478: f00e feda bl 8027230 <sys_arch_protect>
  59271. 801847c: 60b8 str r0, [r7, #8]
  59272. if (!sockets[i].conn) {
  59273. 801847e: 4a2c ldr r2, [pc, #176] @ (8018530 <alloc_socket+0xc8>)
  59274. 8018480: 68fb ldr r3, [r7, #12]
  59275. 8018482: 011b lsls r3, r3, #4
  59276. 8018484: 4413 add r3, r2
  59277. 8018486: 681b ldr r3, [r3, #0]
  59278. 8018488: 2b00 cmp r3, #0
  59279. 801848a: d142 bne.n 8018512 <alloc_socket+0xaa>
  59280. continue;
  59281. }
  59282. sockets[i].fd_used = 1;
  59283. sockets[i].fd_free_pending = 0;
  59284. #endif
  59285. sockets[i].conn = newconn;
  59286. 801848c: 4a28 ldr r2, [pc, #160] @ (8018530 <alloc_socket+0xc8>)
  59287. 801848e: 68fb ldr r3, [r7, #12]
  59288. 8018490: 011b lsls r3, r3, #4
  59289. 8018492: 4413 add r3, r2
  59290. 8018494: 687a ldr r2, [r7, #4]
  59291. 8018496: 601a str r2, [r3, #0]
  59292. /* The socket is not yet known to anyone, so no need to protect
  59293. after having marked it as used. */
  59294. SYS_ARCH_UNPROTECT(lev);
  59295. 8018498: 68b8 ldr r0, [r7, #8]
  59296. 801849a: f00e fed7 bl 802724c <sys_arch_unprotect>
  59297. sockets[i].lastdata.pbuf = NULL;
  59298. 801849e: 4a24 ldr r2, [pc, #144] @ (8018530 <alloc_socket+0xc8>)
  59299. 80184a0: 68fb ldr r3, [r7, #12]
  59300. 80184a2: 011b lsls r3, r3, #4
  59301. 80184a4: 4413 add r3, r2
  59302. 80184a6: 3304 adds r3, #4
  59303. 80184a8: 2200 movs r2, #0
  59304. 80184aa: 601a str r2, [r3, #0]
  59305. #if LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL
  59306. LWIP_ASSERT("sockets[i].select_waiting == 0", sockets[i].select_waiting == 0);
  59307. 80184ac: 4a20 ldr r2, [pc, #128] @ (8018530 <alloc_socket+0xc8>)
  59308. 80184ae: 68fb ldr r3, [r7, #12]
  59309. 80184b0: 011b lsls r3, r3, #4
  59310. 80184b2: 4413 add r3, r2
  59311. 80184b4: 330e adds r3, #14
  59312. 80184b6: 781b ldrb r3, [r3, #0]
  59313. 80184b8: 2b00 cmp r3, #0
  59314. 80184ba: d006 beq.n 80184ca <alloc_socket+0x62>
  59315. 80184bc: 4b1d ldr r3, [pc, #116] @ (8018534 <alloc_socket+0xcc>)
  59316. 80184be: f240 220e movw r2, #526 @ 0x20e
  59317. 80184c2: 491d ldr r1, [pc, #116] @ (8018538 <alloc_socket+0xd0>)
  59318. 80184c4: 481d ldr r0, [pc, #116] @ (801853c <alloc_socket+0xd4>)
  59319. 80184c6: f012 f949 bl 802a75c <iprintf>
  59320. sockets[i].rcvevent = 0;
  59321. 80184ca: 4a19 ldr r2, [pc, #100] @ (8018530 <alloc_socket+0xc8>)
  59322. 80184cc: 68fb ldr r3, [r7, #12]
  59323. 80184ce: 011b lsls r3, r3, #4
  59324. 80184d0: 4413 add r3, r2
  59325. 80184d2: 3308 adds r3, #8
  59326. 80184d4: 2200 movs r2, #0
  59327. 80184d6: 801a strh r2, [r3, #0]
  59328. /* TCP sendbuf is empty, but the socket is not yet writable until connected
  59329. * (unless it has been created by accept()). */
  59330. sockets[i].sendevent = (NETCONNTYPE_GROUP(newconn->type) == NETCONN_TCP ? (accepted != 0) : 1);
  59331. 80184d8: 687b ldr r3, [r7, #4]
  59332. 80184da: 781b ldrb r3, [r3, #0]
  59333. 80184dc: f003 03f0 and.w r3, r3, #240 @ 0xf0
  59334. 80184e0: 2b10 cmp r3, #16
  59335. 80184e2: d102 bne.n 80184ea <alloc_socket+0x82>
  59336. 80184e4: 683b ldr r3, [r7, #0]
  59337. 80184e6: 2b00 cmp r3, #0
  59338. 80184e8: d001 beq.n 80184ee <alloc_socket+0x86>
  59339. 80184ea: 2301 movs r3, #1
  59340. 80184ec: e000 b.n 80184f0 <alloc_socket+0x88>
  59341. 80184ee: 2300 movs r3, #0
  59342. 80184f0: b299 uxth r1, r3
  59343. 80184f2: 4a0f ldr r2, [pc, #60] @ (8018530 <alloc_socket+0xc8>)
  59344. 80184f4: 68fb ldr r3, [r7, #12]
  59345. 80184f6: 011b lsls r3, r3, #4
  59346. 80184f8: 4413 add r3, r2
  59347. 80184fa: 330a adds r3, #10
  59348. 80184fc: 460a mov r2, r1
  59349. 80184fe: 801a strh r2, [r3, #0]
  59350. sockets[i].errevent = 0;
  59351. 8018500: 4a0b ldr r2, [pc, #44] @ (8018530 <alloc_socket+0xc8>)
  59352. 8018502: 68fb ldr r3, [r7, #12]
  59353. 8018504: 011b lsls r3, r3, #4
  59354. 8018506: 4413 add r3, r2
  59355. 8018508: 330c adds r3, #12
  59356. 801850a: 2200 movs r2, #0
  59357. 801850c: 801a strh r2, [r3, #0]
  59358. #endif /* LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL */
  59359. return i + LWIP_SOCKET_OFFSET;
  59360. 801850e: 68fb ldr r3, [r7, #12]
  59361. 8018510: e00a b.n 8018528 <alloc_socket+0xc0>
  59362. }
  59363. SYS_ARCH_UNPROTECT(lev);
  59364. 8018512: 68b8 ldr r0, [r7, #8]
  59365. 8018514: f00e fe9a bl 802724c <sys_arch_unprotect>
  59366. for (i = 0; i < NUM_SOCKETS; ++i) {
  59367. 8018518: 68fb ldr r3, [r7, #12]
  59368. 801851a: 3301 adds r3, #1
  59369. 801851c: 60fb str r3, [r7, #12]
  59370. 801851e: 68fb ldr r3, [r7, #12]
  59371. 8018520: 2b03 cmp r3, #3
  59372. 8018522: dda9 ble.n 8018478 <alloc_socket+0x10>
  59373. }
  59374. return -1;
  59375. 8018524: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59376. }
  59377. 8018528: 4618 mov r0, r3
  59378. 801852a: 3710 adds r7, #16
  59379. 801852c: 46bd mov sp, r7
  59380. 801852e: bd80 pop {r7, pc}
  59381. 8018530: 240243c4 .word 0x240243c4
  59382. 8018534: 0802e4b0 .word 0x0802e4b0
  59383. 8018538: 0802e4e4 .word 0x0802e4e4
  59384. 801853c: 0802e504 .word 0x0802e504
  59385. 08018540 <free_socket_locked>:
  59386. * @param lastdata lastdata is stored here, must be freed externally
  59387. */
  59388. static int
  59389. free_socket_locked(struct lwip_sock *sock, int is_tcp, struct netconn **conn,
  59390. union lwip_sock_lastdata *lastdata)
  59391. {
  59392. 8018540: b480 push {r7}
  59393. 8018542: b085 sub sp, #20
  59394. 8018544: af00 add r7, sp, #0
  59395. 8018546: 60f8 str r0, [r7, #12]
  59396. 8018548: 60b9 str r1, [r7, #8]
  59397. 801854a: 607a str r2, [r7, #4]
  59398. 801854c: 603b str r3, [r7, #0]
  59399. }
  59400. #else /* LWIP_NETCONN_FULLDUPLEX */
  59401. LWIP_UNUSED_ARG(is_tcp);
  59402. #endif /* LWIP_NETCONN_FULLDUPLEX */
  59403. *lastdata = sock->lastdata;
  59404. 801854e: 683b ldr r3, [r7, #0]
  59405. 8018550: 68fa ldr r2, [r7, #12]
  59406. 8018552: 6852 ldr r2, [r2, #4]
  59407. 8018554: 601a str r2, [r3, #0]
  59408. sock->lastdata.pbuf = NULL;
  59409. 8018556: 68fb ldr r3, [r7, #12]
  59410. 8018558: 2200 movs r2, #0
  59411. 801855a: 605a str r2, [r3, #4]
  59412. *conn = sock->conn;
  59413. 801855c: 68fb ldr r3, [r7, #12]
  59414. 801855e: 681a ldr r2, [r3, #0]
  59415. 8018560: 687b ldr r3, [r7, #4]
  59416. 8018562: 601a str r2, [r3, #0]
  59417. sock->conn = NULL;
  59418. 8018564: 68fb ldr r3, [r7, #12]
  59419. 8018566: 2200 movs r2, #0
  59420. 8018568: 601a str r2, [r3, #0]
  59421. return 1;
  59422. 801856a: 2301 movs r3, #1
  59423. }
  59424. 801856c: 4618 mov r0, r3
  59425. 801856e: 3714 adds r7, #20
  59426. 8018570: 46bd mov sp, r7
  59427. 8018572: f85d 7b04 ldr.w r7, [sp], #4
  59428. 8018576: 4770 bx lr
  59429. 08018578 <free_socket_free_elements>:
  59430. /** Free a socket's leftover members.
  59431. */
  59432. static void
  59433. free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_lastdata *lastdata)
  59434. {
  59435. 8018578: b580 push {r7, lr}
  59436. 801857a: b084 sub sp, #16
  59437. 801857c: af00 add r7, sp, #0
  59438. 801857e: 60f8 str r0, [r7, #12]
  59439. 8018580: 60b9 str r1, [r7, #8]
  59440. 8018582: 607a str r2, [r7, #4]
  59441. if (lastdata->pbuf != NULL) {
  59442. 8018584: 687b ldr r3, [r7, #4]
  59443. 8018586: 681b ldr r3, [r3, #0]
  59444. 8018588: 2b00 cmp r3, #0
  59445. 801858a: d00d beq.n 80185a8 <free_socket_free_elements+0x30>
  59446. if (is_tcp) {
  59447. 801858c: 68fb ldr r3, [r7, #12]
  59448. 801858e: 2b00 cmp r3, #0
  59449. 8018590: d005 beq.n 801859e <free_socket_free_elements+0x26>
  59450. pbuf_free(lastdata->pbuf);
  59451. 8018592: 687b ldr r3, [r7, #4]
  59452. 8018594: 681b ldr r3, [r3, #0]
  59453. 8018596: 4618 mov r0, r3
  59454. 8018598: f002 fe68 bl 801b26c <pbuf_free>
  59455. 801859c: e004 b.n 80185a8 <free_socket_free_elements+0x30>
  59456. } else {
  59457. netbuf_delete(lastdata->netbuf);
  59458. 801859e: 687b ldr r3, [r7, #4]
  59459. 80185a0: 681b ldr r3, [r3, #0]
  59460. 80185a2: 4618 mov r0, r3
  59461. 80185a4: f7ff fe78 bl 8018298 <netbuf_delete>
  59462. }
  59463. }
  59464. if (conn != NULL) {
  59465. 80185a8: 68bb ldr r3, [r7, #8]
  59466. 80185aa: 2b00 cmp r3, #0
  59467. 80185ac: d002 beq.n 80185b4 <free_socket_free_elements+0x3c>
  59468. /* netconn_prepare_delete() has already been called, here we only free the conn */
  59469. netconn_delete(conn);
  59470. 80185ae: 68b8 ldr r0, [r7, #8]
  59471. 80185b0: f7fd fd50 bl 8016054 <netconn_delete>
  59472. }
  59473. }
  59474. 80185b4: bf00 nop
  59475. 80185b6: 3710 adds r7, #16
  59476. 80185b8: 46bd mov sp, r7
  59477. 80185ba: bd80 pop {r7, pc}
  59478. 080185bc <free_socket>:
  59479. * @param sock the socket to free
  59480. * @param is_tcp != 0 for TCP sockets, used to free lastdata
  59481. */
  59482. static void
  59483. free_socket(struct lwip_sock *sock, int is_tcp)
  59484. {
  59485. 80185bc: b580 push {r7, lr}
  59486. 80185be: b086 sub sp, #24
  59487. 80185c0: af00 add r7, sp, #0
  59488. 80185c2: 6078 str r0, [r7, #4]
  59489. 80185c4: 6039 str r1, [r7, #0]
  59490. struct netconn *conn;
  59491. union lwip_sock_lastdata lastdata;
  59492. SYS_ARCH_DECL_PROTECT(lev);
  59493. /* Protect socket array */
  59494. SYS_ARCH_PROTECT(lev);
  59495. 80185c6: f00e fe33 bl 8027230 <sys_arch_protect>
  59496. 80185ca: 6178 str r0, [r7, #20]
  59497. freed = free_socket_locked(sock, is_tcp, &conn, &lastdata);
  59498. 80185cc: f107 0308 add.w r3, r7, #8
  59499. 80185d0: f107 020c add.w r2, r7, #12
  59500. 80185d4: 6839 ldr r1, [r7, #0]
  59501. 80185d6: 6878 ldr r0, [r7, #4]
  59502. 80185d8: f7ff ffb2 bl 8018540 <free_socket_locked>
  59503. 80185dc: 6138 str r0, [r7, #16]
  59504. SYS_ARCH_UNPROTECT(lev);
  59505. 80185de: 6978 ldr r0, [r7, #20]
  59506. 80185e0: f00e fe34 bl 802724c <sys_arch_unprotect>
  59507. /* don't use 'sock' after this line, as another task might have allocated it */
  59508. if (freed) {
  59509. 80185e4: 693b ldr r3, [r7, #16]
  59510. 80185e6: 2b00 cmp r3, #0
  59511. 80185e8: d006 beq.n 80185f8 <free_socket+0x3c>
  59512. free_socket_free_elements(is_tcp, conn, &lastdata);
  59513. 80185ea: 68fb ldr r3, [r7, #12]
  59514. 80185ec: f107 0208 add.w r2, r7, #8
  59515. 80185f0: 4619 mov r1, r3
  59516. 80185f2: 6838 ldr r0, [r7, #0]
  59517. 80185f4: f7ff ffc0 bl 8018578 <free_socket_free_elements>
  59518. }
  59519. }
  59520. 80185f8: bf00 nop
  59521. 80185fa: 3718 adds r7, #24
  59522. 80185fc: 46bd mov sp, r7
  59523. 80185fe: bd80 pop {r7, pc}
  59524. 08018600 <lwip_close>:
  59525. return 0;
  59526. }
  59527. int
  59528. lwip_close(int s)
  59529. {
  59530. 8018600: b580 push {r7, lr}
  59531. 8018602: b086 sub sp, #24
  59532. 8018604: af00 add r7, sp, #0
  59533. 8018606: 6078 str r0, [r7, #4]
  59534. struct lwip_sock *sock;
  59535. int is_tcp = 0;
  59536. 8018608: 2300 movs r3, #0
  59537. 801860a: 617b str r3, [r7, #20]
  59538. err_t err;
  59539. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_close(%d)\n", s));
  59540. sock = get_socket(s);
  59541. 801860c: 6878 ldr r0, [r7, #4]
  59542. 801860e: f7ff ff13 bl 8018438 <get_socket>
  59543. 8018612: 6138 str r0, [r7, #16]
  59544. if (!sock) {
  59545. 8018614: 693b ldr r3, [r7, #16]
  59546. 8018616: 2b00 cmp r3, #0
  59547. 8018618: d102 bne.n 8018620 <lwip_close+0x20>
  59548. return -1;
  59549. 801861a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59550. 801861e: e039 b.n 8018694 <lwip_close+0x94>
  59551. }
  59552. if (sock->conn != NULL) {
  59553. 8018620: 693b ldr r3, [r7, #16]
  59554. 8018622: 681b ldr r3, [r3, #0]
  59555. 8018624: 2b00 cmp r3, #0
  59556. 8018626: d00b beq.n 8018640 <lwip_close+0x40>
  59557. is_tcp = NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP;
  59558. 8018628: 693b ldr r3, [r7, #16]
  59559. 801862a: 681b ldr r3, [r3, #0]
  59560. 801862c: 781b ldrb r3, [r3, #0]
  59561. 801862e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  59562. 8018632: 2b10 cmp r3, #16
  59563. 8018634: bf0c ite eq
  59564. 8018636: 2301 moveq r3, #1
  59565. 8018638: 2300 movne r3, #0
  59566. 801863a: b2db uxtb r3, r3
  59567. 801863c: 617b str r3, [r7, #20]
  59568. 801863e: e00a b.n 8018656 <lwip_close+0x56>
  59569. } else {
  59570. LWIP_ASSERT("sock->lastdata == NULL", sock->lastdata.pbuf == NULL);
  59571. 8018640: 693b ldr r3, [r7, #16]
  59572. 8018642: 685b ldr r3, [r3, #4]
  59573. 8018644: 2b00 cmp r3, #0
  59574. 8018646: d006 beq.n 8018656 <lwip_close+0x56>
  59575. 8018648: 4b14 ldr r3, [pc, #80] @ (801869c <lwip_close+0x9c>)
  59576. 801864a: f44f 7245 mov.w r2, #788 @ 0x314
  59577. 801864e: 4914 ldr r1, [pc, #80] @ (80186a0 <lwip_close+0xa0>)
  59578. 8018650: 4814 ldr r0, [pc, #80] @ (80186a4 <lwip_close+0xa4>)
  59579. 8018652: f012 f883 bl 802a75c <iprintf>
  59580. #if LWIP_IPV6_MLD
  59581. /* drop all possibly joined MLD6 memberships */
  59582. lwip_socket_drop_registered_mld6_memberships(s);
  59583. #endif /* LWIP_IPV6_MLD */
  59584. err = netconn_prepare_delete(sock->conn);
  59585. 8018656: 693b ldr r3, [r7, #16]
  59586. 8018658: 681b ldr r3, [r3, #0]
  59587. 801865a: 4618 mov r0, r3
  59588. 801865c: f7fd fcd6 bl 801600c <netconn_prepare_delete>
  59589. 8018660: 4603 mov r3, r0
  59590. 8018662: 73fb strb r3, [r7, #15]
  59591. if (err != ERR_OK) {
  59592. 8018664: f997 300f ldrsb.w r3, [r7, #15]
  59593. 8018668: 2b00 cmp r3, #0
  59594. 801866a: d00e beq.n 801868a <lwip_close+0x8a>
  59595. sock_set_errno(sock, err_to_errno(err));
  59596. 801866c: f997 300f ldrsb.w r3, [r7, #15]
  59597. 8018670: 4618 mov r0, r3
  59598. 8018672: f7ff fdf3 bl 801825c <err_to_errno>
  59599. 8018676: 60b8 str r0, [r7, #8]
  59600. 8018678: 68bb ldr r3, [r7, #8]
  59601. 801867a: 2b00 cmp r3, #0
  59602. 801867c: d002 beq.n 8018684 <lwip_close+0x84>
  59603. 801867e: 4a0a ldr r2, [pc, #40] @ (80186a8 <lwip_close+0xa8>)
  59604. 8018680: 68bb ldr r3, [r7, #8]
  59605. 8018682: 6013 str r3, [r2, #0]
  59606. done_socket(sock);
  59607. return -1;
  59608. 8018684: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59609. 8018688: e004 b.n 8018694 <lwip_close+0x94>
  59610. }
  59611. free_socket(sock, is_tcp);
  59612. 801868a: 6979 ldr r1, [r7, #20]
  59613. 801868c: 6938 ldr r0, [r7, #16]
  59614. 801868e: f7ff ff95 bl 80185bc <free_socket>
  59615. set_errno(0);
  59616. return 0;
  59617. 8018692: 2300 movs r3, #0
  59618. }
  59619. 8018694: 4618 mov r0, r3
  59620. 8018696: 3718 adds r7, #24
  59621. 8018698: 46bd mov sp, r7
  59622. 801869a: bd80 pop {r7, pc}
  59623. 801869c: 0802e4b0 .word 0x0802e4b0
  59624. 80186a0: 0802e570 .word 0x0802e570
  59625. 80186a4: 0802e504 .word 0x0802e504
  59626. 80186a8: 2402b260 .word 0x2402b260
  59627. 080186ac <lwip_connect>:
  59628. int
  59629. lwip_connect(int s, const struct sockaddr *name, socklen_t namelen)
  59630. {
  59631. 80186ac: b580 push {r7, lr}
  59632. 80186ae: b08a sub sp, #40 @ 0x28
  59633. 80186b0: af00 add r7, sp, #0
  59634. 80186b2: 60f8 str r0, [r7, #12]
  59635. 80186b4: 60b9 str r1, [r7, #8]
  59636. 80186b6: 607a str r2, [r7, #4]
  59637. struct lwip_sock *sock;
  59638. err_t err;
  59639. sock = get_socket(s);
  59640. 80186b8: 68f8 ldr r0, [r7, #12]
  59641. 80186ba: f7ff febd bl 8018438 <get_socket>
  59642. 80186be: 6278 str r0, [r7, #36] @ 0x24
  59643. if (!sock) {
  59644. 80186c0: 6a7b ldr r3, [r7, #36] @ 0x24
  59645. 80186c2: 2b00 cmp r3, #0
  59646. 80186c4: d102 bne.n 80186cc <lwip_connect+0x20>
  59647. return -1;
  59648. 80186c6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59649. 80186ca: e062 b.n 8018792 <lwip_connect+0xe6>
  59650. done_socket(sock);
  59651. return -1;
  59652. }
  59653. LWIP_UNUSED_ARG(namelen);
  59654. if (name->sa_family == AF_UNSPEC) {
  59655. 80186cc: 68bb ldr r3, [r7, #8]
  59656. 80186ce: 785b ldrb r3, [r3, #1]
  59657. 80186d0: 2b00 cmp r3, #0
  59658. 80186d2: d108 bne.n 80186e6 <lwip_connect+0x3a>
  59659. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d, AF_UNSPEC)\n", s));
  59660. err = netconn_disconnect(sock->conn);
  59661. 80186d4: 6a7b ldr r3, [r7, #36] @ 0x24
  59662. 80186d6: 681b ldr r3, [r3, #0]
  59663. 80186d8: 4618 mov r0, r3
  59664. 80186da: f7fd fd61 bl 80161a0 <netconn_disconnect>
  59665. 80186de: 4603 mov r3, r0
  59666. 80186e0: f887 3021 strb.w r3, [r7, #33] @ 0x21
  59667. 80186e4: e039 b.n 801875a <lwip_connect+0xae>
  59668. } else {
  59669. ip_addr_t remote_addr;
  59670. u16_t remote_port;
  59671. /* check size, family and alignment of 'name' */
  59672. LWIP_ERROR("lwip_connect: invalid address", IS_SOCK_ADDR_LEN_VALID(namelen) &&
  59673. 80186e6: 687b ldr r3, [r7, #4]
  59674. 80186e8: 2b10 cmp r3, #16
  59675. 80186ea: d10c bne.n 8018706 <lwip_connect+0x5a>
  59676. 80186ec: 68bb ldr r3, [r7, #8]
  59677. 80186ee: 785b ldrb r3, [r3, #1]
  59678. 80186f0: 2b00 cmp r3, #0
  59679. 80186f2: d003 beq.n 80186fc <lwip_connect+0x50>
  59680. 80186f4: 68bb ldr r3, [r7, #8]
  59681. 80186f6: 785b ldrb r3, [r3, #1]
  59682. 80186f8: 2b02 cmp r3, #2
  59683. 80186fa: d104 bne.n 8018706 <lwip_connect+0x5a>
  59684. 80186fc: 68bb ldr r3, [r7, #8]
  59685. 80186fe: f003 0303 and.w r3, r3, #3
  59686. 8018702: 2b00 cmp r3, #0
  59687. 8018704: d014 beq.n 8018730 <lwip_connect+0x84>
  59688. 8018706: 4b25 ldr r3, [pc, #148] @ (801879c <lwip_connect+0xf0>)
  59689. 8018708: f240 3247 movw r2, #839 @ 0x347
  59690. 801870c: 4924 ldr r1, [pc, #144] @ (80187a0 <lwip_connect+0xf4>)
  59691. 801870e: 4825 ldr r0, [pc, #148] @ (80187a4 <lwip_connect+0xf8>)
  59692. 8018710: f012 f824 bl 802a75c <iprintf>
  59693. 8018714: f06f 000f mvn.w r0, #15
  59694. 8018718: f7ff fda0 bl 801825c <err_to_errno>
  59695. 801871c: 61f8 str r0, [r7, #28]
  59696. 801871e: 69fb ldr r3, [r7, #28]
  59697. 8018720: 2b00 cmp r3, #0
  59698. 8018722: d002 beq.n 801872a <lwip_connect+0x7e>
  59699. 8018724: 4a20 ldr r2, [pc, #128] @ (80187a8 <lwip_connect+0xfc>)
  59700. 8018726: 69fb ldr r3, [r7, #28]
  59701. 8018728: 6013 str r3, [r2, #0]
  59702. 801872a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59703. 801872e: e030 b.n 8018792 <lwip_connect+0xe6>
  59704. IS_SOCK_ADDR_TYPE_VALID_OR_UNSPEC(name) && IS_SOCK_ADDR_ALIGNED(name),
  59705. sock_set_errno(sock, err_to_errno(ERR_ARG)); done_socket(sock); return -1;);
  59706. SOCKADDR_TO_IPADDR_PORT(name, &remote_addr, remote_port);
  59707. 8018730: 68bb ldr r3, [r7, #8]
  59708. 8018732: 685b ldr r3, [r3, #4]
  59709. 8018734: 613b str r3, [r7, #16]
  59710. 8018736: 68bb ldr r3, [r7, #8]
  59711. 8018738: 885b ldrh r3, [r3, #2]
  59712. 801873a: 4618 mov r0, r3
  59713. 801873c: f001 f8b4 bl 80198a8 <lwip_htons>
  59714. 8018740: 4603 mov r3, r0
  59715. 8018742: 847b strh r3, [r7, #34] @ 0x22
  59716. unmap_ipv4_mapped_ipv6(ip_2_ip4(&remote_addr), ip_2_ip6(&remote_addr));
  59717. IP_SET_TYPE_VAL(remote_addr, IPADDR_TYPE_V4);
  59718. }
  59719. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  59720. err = netconn_connect(sock->conn, &remote_addr, remote_port);
  59721. 8018744: 6a7b ldr r3, [r7, #36] @ 0x24
  59722. 8018746: 681b ldr r3, [r3, #0]
  59723. 8018748: 8c7a ldrh r2, [r7, #34] @ 0x22
  59724. 801874a: f107 0110 add.w r1, r7, #16
  59725. 801874e: 4618 mov r0, r3
  59726. 8018750: f7fd fcee bl 8016130 <netconn_connect>
  59727. 8018754: 4603 mov r3, r0
  59728. 8018756: f887 3021 strb.w r3, [r7, #33] @ 0x21
  59729. }
  59730. if (err != ERR_OK) {
  59731. 801875a: f997 3021 ldrsb.w r3, [r7, #33] @ 0x21
  59732. 801875e: 2b00 cmp r3, #0
  59733. 8018760: d00e beq.n 8018780 <lwip_connect+0xd4>
  59734. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d) failed, err=%d\n", s, err));
  59735. sock_set_errno(sock, err_to_errno(err));
  59736. 8018762: f997 3021 ldrsb.w r3, [r7, #33] @ 0x21
  59737. 8018766: 4618 mov r0, r3
  59738. 8018768: f7ff fd78 bl 801825c <err_to_errno>
  59739. 801876c: 6178 str r0, [r7, #20]
  59740. 801876e: 697b ldr r3, [r7, #20]
  59741. 8018770: 2b00 cmp r3, #0
  59742. 8018772: d002 beq.n 801877a <lwip_connect+0xce>
  59743. 8018774: 4a0c ldr r2, [pc, #48] @ (80187a8 <lwip_connect+0xfc>)
  59744. 8018776: 697b ldr r3, [r7, #20]
  59745. 8018778: 6013 str r3, [r2, #0]
  59746. done_socket(sock);
  59747. return -1;
  59748. 801877a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59749. 801877e: e008 b.n 8018792 <lwip_connect+0xe6>
  59750. }
  59751. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d) succeeded\n", s));
  59752. sock_set_errno(sock, 0);
  59753. 8018780: 2300 movs r3, #0
  59754. 8018782: 61bb str r3, [r7, #24]
  59755. 8018784: 69bb ldr r3, [r7, #24]
  59756. 8018786: 2b00 cmp r3, #0
  59757. 8018788: d002 beq.n 8018790 <lwip_connect+0xe4>
  59758. 801878a: 4a07 ldr r2, [pc, #28] @ (80187a8 <lwip_connect+0xfc>)
  59759. 801878c: 69bb ldr r3, [r7, #24]
  59760. 801878e: 6013 str r3, [r2, #0]
  59761. done_socket(sock);
  59762. return 0;
  59763. 8018790: 2300 movs r3, #0
  59764. }
  59765. 8018792: 4618 mov r0, r3
  59766. 8018794: 3728 adds r7, #40 @ 0x28
  59767. 8018796: 46bd mov sp, r7
  59768. 8018798: bd80 pop {r7, pc}
  59769. 801879a: bf00 nop
  59770. 801879c: 0802e4b0 .word 0x0802e4b0
  59771. 80187a0: 0802e588 .word 0x0802e588
  59772. 80187a4: 0802e504 .word 0x0802e504
  59773. 80187a8: 2402b260 .word 0x2402b260
  59774. 080187ac <lwip_recv_tcp>:
  59775. * until "len" bytes are received or we're otherwise done.
  59776. * Keeps sock->lastdata for peeking or partly copying.
  59777. */
  59778. static ssize_t
  59779. lwip_recv_tcp(struct lwip_sock *sock, void *mem, size_t len, int flags)
  59780. {
  59781. 80187ac: b580 push {r7, lr}
  59782. 80187ae: b08c sub sp, #48 @ 0x30
  59783. 80187b0: af00 add r7, sp, #0
  59784. 80187b2: 60f8 str r0, [r7, #12]
  59785. 80187b4: 60b9 str r1, [r7, #8]
  59786. 80187b6: 607a str r2, [r7, #4]
  59787. 80187b8: 603b str r3, [r7, #0]
  59788. u8_t apiflags = NETCONN_NOAUTORCVD;
  59789. 80187ba: 2308 movs r3, #8
  59790. 80187bc: f887 3023 strb.w r3, [r7, #35] @ 0x23
  59791. ssize_t recvd = 0;
  59792. 80187c0: 2300 movs r3, #0
  59793. 80187c2: 62bb str r3, [r7, #40] @ 0x28
  59794. ssize_t recv_left = (len <= SSIZE_MAX) ? (ssize_t)len : SSIZE_MAX;
  59795. 80187c4: 687b ldr r3, [r7, #4]
  59796. 80187c6: 2b00 cmp r3, #0
  59797. 80187c8: db01 blt.n 80187ce <lwip_recv_tcp+0x22>
  59798. 80187ca: 687b ldr r3, [r7, #4]
  59799. 80187cc: e001 b.n 80187d2 <lwip_recv_tcp+0x26>
  59800. 80187ce: f06f 4300 mvn.w r3, #2147483648 @ 0x80000000
  59801. 80187d2: 627b str r3, [r7, #36] @ 0x24
  59802. LWIP_ASSERT("no socket given", sock != NULL);
  59803. 80187d4: 68fb ldr r3, [r7, #12]
  59804. 80187d6: 2b00 cmp r3, #0
  59805. 80187d8: d106 bne.n 80187e8 <lwip_recv_tcp+0x3c>
  59806. 80187da: 4b74 ldr r3, [pc, #464] @ (80189ac <lwip_recv_tcp+0x200>)
  59807. 80187dc: f240 329e movw r2, #926 @ 0x39e
  59808. 80187e0: 4973 ldr r1, [pc, #460] @ (80189b0 <lwip_recv_tcp+0x204>)
  59809. 80187e2: 4874 ldr r0, [pc, #464] @ (80189b4 <lwip_recv_tcp+0x208>)
  59810. 80187e4: f011 ffba bl 802a75c <iprintf>
  59811. LWIP_ASSERT("this should be checked internally", NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP);
  59812. 80187e8: 68fb ldr r3, [r7, #12]
  59813. 80187ea: 681b ldr r3, [r3, #0]
  59814. 80187ec: 781b ldrb r3, [r3, #0]
  59815. 80187ee: f003 03f0 and.w r3, r3, #240 @ 0xf0
  59816. 80187f2: 2b10 cmp r3, #16
  59817. 80187f4: d006 beq.n 8018804 <lwip_recv_tcp+0x58>
  59818. 80187f6: 4b6d ldr r3, [pc, #436] @ (80189ac <lwip_recv_tcp+0x200>)
  59819. 80187f8: f240 329f movw r2, #927 @ 0x39f
  59820. 80187fc: 496e ldr r1, [pc, #440] @ (80189b8 <lwip_recv_tcp+0x20c>)
  59821. 80187fe: 486d ldr r0, [pc, #436] @ (80189b4 <lwip_recv_tcp+0x208>)
  59822. 8018800: f011 ffac bl 802a75c <iprintf>
  59823. if (flags & MSG_DONTWAIT) {
  59824. 8018804: 683b ldr r3, [r7, #0]
  59825. 8018806: f003 0308 and.w r3, r3, #8
  59826. 801880a: 2b00 cmp r3, #0
  59827. 801880c: d005 beq.n 801881a <lwip_recv_tcp+0x6e>
  59828. apiflags |= NETCONN_DONTBLOCK;
  59829. 801880e: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  59830. 8018812: f043 0304 orr.w r3, r3, #4
  59831. 8018816: f887 3023 strb.w r3, [r7, #35] @ 0x23
  59832. err_t err;
  59833. u16_t copylen;
  59834. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: top while sock->lastdata=%p\n", (void *)sock->lastdata.pbuf));
  59835. /* Check if there is data left from the last recv operation. */
  59836. if (sock->lastdata.pbuf) {
  59837. 801881a: 68fb ldr r3, [r7, #12]
  59838. 801881c: 685b ldr r3, [r3, #4]
  59839. 801881e: 2b00 cmp r3, #0
  59840. 8018820: d003 beq.n 801882a <lwip_recv_tcp+0x7e>
  59841. p = sock->lastdata.pbuf;
  59842. 8018822: 68fb ldr r3, [r7, #12]
  59843. 8018824: 685b ldr r3, [r3, #4]
  59844. 8018826: 617b str r3, [r7, #20]
  59845. 8018828: e036 b.n 8018898 <lwip_recv_tcp+0xec>
  59846. } else {
  59847. /* No data was left from the previous operation, so we try to get
  59848. some from the network. */
  59849. err = netconn_recv_tcp_pbuf_flags(sock->conn, &p, apiflags);
  59850. 801882a: 68fb ldr r3, [r7, #12]
  59851. 801882c: 681b ldr r3, [r3, #0]
  59852. 801882e: f897 2023 ldrb.w r2, [r7, #35] @ 0x23
  59853. 8018832: f107 0114 add.w r1, r7, #20
  59854. 8018836: 4618 mov r0, r3
  59855. 8018838: f7fd fea4 bl 8016584 <netconn_recv_tcp_pbuf_flags>
  59856. 801883c: 4603 mov r3, r0
  59857. 801883e: f887 3022 strb.w r3, [r7, #34] @ 0x22
  59858. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: netconn_recv err=%d, pbuf=%p\n",
  59859. err, (void *)p));
  59860. if (err != ERR_OK) {
  59861. 8018842: f997 3022 ldrsb.w r3, [r7, #34] @ 0x22
  59862. 8018846: 2b00 cmp r3, #0
  59863. 8018848: d019 beq.n 801887e <lwip_recv_tcp+0xd2>
  59864. if (recvd > 0) {
  59865. 801884a: 6abb ldr r3, [r7, #40] @ 0x28
  59866. 801884c: 2b00 cmp r3, #0
  59867. 801884e: f300 808d bgt.w 801896c <lwip_recv_tcp+0x1c0>
  59868. goto lwip_recv_tcp_done;
  59869. }
  59870. /* We should really do some error checking here. */
  59871. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: p == NULL, error is \"%s\"!\n",
  59872. lwip_strerr(err)));
  59873. sock_set_errno(sock, err_to_errno(err));
  59874. 8018852: f997 3022 ldrsb.w r3, [r7, #34] @ 0x22
  59875. 8018856: 4618 mov r0, r3
  59876. 8018858: f7ff fd00 bl 801825c <err_to_errno>
  59877. 801885c: 61f8 str r0, [r7, #28]
  59878. 801885e: 69fb ldr r3, [r7, #28]
  59879. 8018860: 2b00 cmp r3, #0
  59880. 8018862: d002 beq.n 801886a <lwip_recv_tcp+0xbe>
  59881. 8018864: 4a55 ldr r2, [pc, #340] @ (80189bc <lwip_recv_tcp+0x210>)
  59882. 8018866: 69fb ldr r3, [r7, #28]
  59883. 8018868: 6013 str r3, [r2, #0]
  59884. if (err == ERR_CLSD) {
  59885. 801886a: f997 3022 ldrsb.w r3, [r7, #34] @ 0x22
  59886. 801886e: f113 0f0f cmn.w r3, #15
  59887. 8018872: d101 bne.n 8018878 <lwip_recv_tcp+0xcc>
  59888. return 0;
  59889. 8018874: 2300 movs r3, #0
  59890. 8018876: e094 b.n 80189a2 <lwip_recv_tcp+0x1f6>
  59891. } else {
  59892. return -1;
  59893. 8018878: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59894. 801887c: e091 b.n 80189a2 <lwip_recv_tcp+0x1f6>
  59895. }
  59896. }
  59897. LWIP_ASSERT("p != NULL", p != NULL);
  59898. 801887e: 697b ldr r3, [r7, #20]
  59899. 8018880: 2b00 cmp r3, #0
  59900. 8018882: d106 bne.n 8018892 <lwip_recv_tcp+0xe6>
  59901. 8018884: 4b49 ldr r3, [pc, #292] @ (80189ac <lwip_recv_tcp+0x200>)
  59902. 8018886: f240 32c5 movw r2, #965 @ 0x3c5
  59903. 801888a: 494d ldr r1, [pc, #308] @ (80189c0 <lwip_recv_tcp+0x214>)
  59904. 801888c: 4849 ldr r0, [pc, #292] @ (80189b4 <lwip_recv_tcp+0x208>)
  59905. 801888e: f011 ff65 bl 802a75c <iprintf>
  59906. sock->lastdata.pbuf = p;
  59907. 8018892: 697a ldr r2, [r7, #20]
  59908. 8018894: 68fb ldr r3, [r7, #12]
  59909. 8018896: 605a str r2, [r3, #4]
  59910. }
  59911. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: buflen=%"U16_F" recv_left=%d off=%d\n",
  59912. p->tot_len, (int)recv_left, (int)recvd));
  59913. if (recv_left > p->tot_len) {
  59914. 8018898: 697b ldr r3, [r7, #20]
  59915. 801889a: 891b ldrh r3, [r3, #8]
  59916. 801889c: 461a mov r2, r3
  59917. 801889e: 6a7b ldr r3, [r7, #36] @ 0x24
  59918. 80188a0: 4293 cmp r3, r2
  59919. 80188a2: dd03 ble.n 80188ac <lwip_recv_tcp+0x100>
  59920. copylen = p->tot_len;
  59921. 80188a4: 697b ldr r3, [r7, #20]
  59922. 80188a6: 891b ldrh r3, [r3, #8]
  59923. 80188a8: 85fb strh r3, [r7, #46] @ 0x2e
  59924. 80188aa: e001 b.n 80188b0 <lwip_recv_tcp+0x104>
  59925. } else {
  59926. copylen = (u16_t)recv_left;
  59927. 80188ac: 6a7b ldr r3, [r7, #36] @ 0x24
  59928. 80188ae: 85fb strh r3, [r7, #46] @ 0x2e
  59929. }
  59930. if (recvd + copylen < recvd) {
  59931. 80188b0: 8dfa ldrh r2, [r7, #46] @ 0x2e
  59932. 80188b2: 6abb ldr r3, [r7, #40] @ 0x28
  59933. 80188b4: 4413 add r3, r2
  59934. 80188b6: 6aba ldr r2, [r7, #40] @ 0x28
  59935. 80188b8: 429a cmp r2, r3
  59936. 80188ba: dd03 ble.n 80188c4 <lwip_recv_tcp+0x118>
  59937. /* overflow */
  59938. copylen = (u16_t)(SSIZE_MAX - recvd);
  59939. 80188bc: 6abb ldr r3, [r7, #40] @ 0x28
  59940. 80188be: b29b uxth r3, r3
  59941. 80188c0: 43db mvns r3, r3
  59942. 80188c2: 85fb strh r3, [r7, #46] @ 0x2e
  59943. }
  59944. /* copy the contents of the received buffer into
  59945. the supplied memory pointer mem */
  59946. pbuf_copy_partial(p, (u8_t *)mem + recvd, copylen, 0);
  59947. 80188c4: 6978 ldr r0, [r7, #20]
  59948. 80188c6: 6abb ldr r3, [r7, #40] @ 0x28
  59949. 80188c8: 68ba ldr r2, [r7, #8]
  59950. 80188ca: 18d1 adds r1, r2, r3
  59951. 80188cc: 8dfa ldrh r2, [r7, #46] @ 0x2e
  59952. 80188ce: 2300 movs r3, #0
  59953. 80188d0: f002 fed2 bl 801b678 <pbuf_copy_partial>
  59954. recvd += copylen;
  59955. 80188d4: 8dfb ldrh r3, [r7, #46] @ 0x2e
  59956. 80188d6: 6aba ldr r2, [r7, #40] @ 0x28
  59957. 80188d8: 4413 add r3, r2
  59958. 80188da: 62bb str r3, [r7, #40] @ 0x28
  59959. /* TCP combines multiple pbufs for one recv */
  59960. LWIP_ASSERT("invalid copylen, len would underflow", recv_left >= copylen);
  59961. 80188dc: 8dfb ldrh r3, [r7, #46] @ 0x2e
  59962. 80188de: 6a7a ldr r2, [r7, #36] @ 0x24
  59963. 80188e0: 429a cmp r2, r3
  59964. 80188e2: da06 bge.n 80188f2 <lwip_recv_tcp+0x146>
  59965. 80188e4: 4b31 ldr r3, [pc, #196] @ (80189ac <lwip_recv_tcp+0x200>)
  59966. 80188e6: f240 32dd movw r2, #989 @ 0x3dd
  59967. 80188ea: 4936 ldr r1, [pc, #216] @ (80189c4 <lwip_recv_tcp+0x218>)
  59968. 80188ec: 4831 ldr r0, [pc, #196] @ (80189b4 <lwip_recv_tcp+0x208>)
  59969. 80188ee: f011 ff35 bl 802a75c <iprintf>
  59970. recv_left -= copylen;
  59971. 80188f2: 8dfb ldrh r3, [r7, #46] @ 0x2e
  59972. 80188f4: 6a7a ldr r2, [r7, #36] @ 0x24
  59973. 80188f6: 1ad3 subs r3, r2, r3
  59974. 80188f8: 627b str r3, [r7, #36] @ 0x24
  59975. /* Unless we peek the incoming message... */
  59976. if ((flags & MSG_PEEK) == 0) {
  59977. 80188fa: 683b ldr r3, [r7, #0]
  59978. 80188fc: f003 0301 and.w r3, r3, #1
  59979. 8018900: 2b00 cmp r3, #0
  59980. 8018902: d123 bne.n 801894c <lwip_recv_tcp+0x1a0>
  59981. /* ... check if there is data left in the pbuf */
  59982. LWIP_ASSERT("invalid copylen", p->tot_len >= copylen);
  59983. 8018904: 697b ldr r3, [r7, #20]
  59984. 8018906: 891b ldrh r3, [r3, #8]
  59985. 8018908: 8dfa ldrh r2, [r7, #46] @ 0x2e
  59986. 801890a: 429a cmp r2, r3
  59987. 801890c: d906 bls.n 801891c <lwip_recv_tcp+0x170>
  59988. 801890e: 4b27 ldr r3, [pc, #156] @ (80189ac <lwip_recv_tcp+0x200>)
  59989. 8018910: f240 32e3 movw r2, #995 @ 0x3e3
  59990. 8018914: 492c ldr r1, [pc, #176] @ (80189c8 <lwip_recv_tcp+0x21c>)
  59991. 8018916: 4827 ldr r0, [pc, #156] @ (80189b4 <lwip_recv_tcp+0x208>)
  59992. 8018918: f011 ff20 bl 802a75c <iprintf>
  59993. if (p->tot_len - copylen > 0) {
  59994. 801891c: 697b ldr r3, [r7, #20]
  59995. 801891e: 891b ldrh r3, [r3, #8]
  59996. 8018920: 461a mov r2, r3
  59997. 8018922: 8dfb ldrh r3, [r7, #46] @ 0x2e
  59998. 8018924: 1ad3 subs r3, r2, r3
  59999. 8018926: 2b00 cmp r3, #0
  60000. 8018928: dd09 ble.n 801893e <lwip_recv_tcp+0x192>
  60001. /* If so, it should be saved in the sock structure for the next recv call.
  60002. We store the pbuf but hide/free the consumed data: */
  60003. sock->lastdata.pbuf = pbuf_free_header(p, copylen);
  60004. 801892a: 697b ldr r3, [r7, #20]
  60005. 801892c: 8dfa ldrh r2, [r7, #46] @ 0x2e
  60006. 801892e: 4611 mov r1, r2
  60007. 8018930: 4618 mov r0, r3
  60008. 8018932: f002 fc68 bl 801b206 <pbuf_free_header>
  60009. 8018936: 4602 mov r2, r0
  60010. 8018938: 68fb ldr r3, [r7, #12]
  60011. 801893a: 605a str r2, [r3, #4]
  60012. 801893c: e006 b.n 801894c <lwip_recv_tcp+0x1a0>
  60013. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: lastdata now pbuf=%p\n", (void *)sock->lastdata.pbuf));
  60014. } else {
  60015. sock->lastdata.pbuf = NULL;
  60016. 801893e: 68fb ldr r3, [r7, #12]
  60017. 8018940: 2200 movs r2, #0
  60018. 8018942: 605a str r2, [r3, #4]
  60019. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: deleting pbuf=%p\n", (void *)p));
  60020. pbuf_free(p);
  60021. 8018944: 697b ldr r3, [r7, #20]
  60022. 8018946: 4618 mov r0, r3
  60023. 8018948: f002 fc90 bl 801b26c <pbuf_free>
  60024. }
  60025. }
  60026. /* once we have some data to return, only add more if we don't need to wait */
  60027. apiflags |= NETCONN_DONTBLOCK | NETCONN_NOFIN;
  60028. 801894c: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  60029. 8018950: f043 0314 orr.w r3, r3, #20
  60030. 8018954: f887 3023 strb.w r3, [r7, #35] @ 0x23
  60031. /* @todo: do we need to support peeking more than one pbuf? */
  60032. } while ((recv_left > 0) && !(flags & MSG_PEEK));
  60033. 8018958: 6a7b ldr r3, [r7, #36] @ 0x24
  60034. 801895a: 2b00 cmp r3, #0
  60035. 801895c: dd08 ble.n 8018970 <lwip_recv_tcp+0x1c4>
  60036. 801895e: 683b ldr r3, [r7, #0]
  60037. 8018960: f003 0301 and.w r3, r3, #1
  60038. 8018964: 2b00 cmp r3, #0
  60039. 8018966: f43f af58 beq.w 801881a <lwip_recv_tcp+0x6e>
  60040. lwip_recv_tcp_done:
  60041. 801896a: e001 b.n 8018970 <lwip_recv_tcp+0x1c4>
  60042. goto lwip_recv_tcp_done;
  60043. 801896c: bf00 nop
  60044. 801896e: e000 b.n 8018972 <lwip_recv_tcp+0x1c6>
  60045. lwip_recv_tcp_done:
  60046. 8018970: bf00 nop
  60047. if ((recvd > 0) && !(flags & MSG_PEEK)) {
  60048. 8018972: 6abb ldr r3, [r7, #40] @ 0x28
  60049. 8018974: 2b00 cmp r3, #0
  60050. 8018976: dd0b ble.n 8018990 <lwip_recv_tcp+0x1e4>
  60051. 8018978: 683b ldr r3, [r7, #0]
  60052. 801897a: f003 0301 and.w r3, r3, #1
  60053. 801897e: 2b00 cmp r3, #0
  60054. 8018980: d106 bne.n 8018990 <lwip_recv_tcp+0x1e4>
  60055. /* ensure window update after copying all data */
  60056. netconn_tcp_recvd(sock->conn, (size_t)recvd);
  60057. 8018982: 68fb ldr r3, [r7, #12]
  60058. 8018984: 681b ldr r3, [r3, #0]
  60059. 8018986: 6aba ldr r2, [r7, #40] @ 0x28
  60060. 8018988: 4611 mov r1, r2
  60061. 801898a: 4618 mov r0, r3
  60062. 801898c: f7fd fd42 bl 8016414 <netconn_tcp_recvd>
  60063. }
  60064. sock_set_errno(sock, 0);
  60065. 8018990: 2300 movs r3, #0
  60066. 8018992: 61bb str r3, [r7, #24]
  60067. 8018994: 69bb ldr r3, [r7, #24]
  60068. 8018996: 2b00 cmp r3, #0
  60069. 8018998: d002 beq.n 80189a0 <lwip_recv_tcp+0x1f4>
  60070. 801899a: 4a08 ldr r2, [pc, #32] @ (80189bc <lwip_recv_tcp+0x210>)
  60071. 801899c: 69bb ldr r3, [r7, #24]
  60072. 801899e: 6013 str r3, [r2, #0]
  60073. return recvd;
  60074. 80189a0: 6abb ldr r3, [r7, #40] @ 0x28
  60075. }
  60076. 80189a2: 4618 mov r0, r3
  60077. 80189a4: 3730 adds r7, #48 @ 0x30
  60078. 80189a6: 46bd mov sp, r7
  60079. 80189a8: bd80 pop {r7, pc}
  60080. 80189aa: bf00 nop
  60081. 80189ac: 0802e4b0 .word 0x0802e4b0
  60082. 80189b0: 0802e5a8 .word 0x0802e5a8
  60083. 80189b4: 0802e504 .word 0x0802e504
  60084. 80189b8: 0802e5b8 .word 0x0802e5b8
  60085. 80189bc: 2402b260 .word 0x2402b260
  60086. 80189c0: 0802e5dc .word 0x0802e5dc
  60087. 80189c4: 0802e5e8 .word 0x0802e5e8
  60088. 80189c8: 0802e610 .word 0x0802e610
  60089. 080189cc <lwip_sock_make_addr>:
  60090. /* Convert a netbuf's address data to struct sockaddr */
  60091. static int
  60092. lwip_sock_make_addr(struct netconn *conn, ip_addr_t *fromaddr, u16_t port,
  60093. struct sockaddr *from, socklen_t *fromlen)
  60094. {
  60095. 80189cc: b590 push {r4, r7, lr}
  60096. 80189ce: b08b sub sp, #44 @ 0x2c
  60097. 80189d0: af00 add r7, sp, #0
  60098. 80189d2: 60f8 str r0, [r7, #12]
  60099. 80189d4: 60b9 str r1, [r7, #8]
  60100. 80189d6: 603b str r3, [r7, #0]
  60101. 80189d8: 4613 mov r3, r2
  60102. 80189da: 80fb strh r3, [r7, #6]
  60103. int truncated = 0;
  60104. 80189dc: 2300 movs r3, #0
  60105. 80189de: 627b str r3, [r7, #36] @ 0x24
  60106. union sockaddr_aligned saddr;
  60107. LWIP_UNUSED_ARG(conn);
  60108. LWIP_ASSERT("fromaddr != NULL", fromaddr != NULL);
  60109. 80189e0: 68bb ldr r3, [r7, #8]
  60110. 80189e2: 2b00 cmp r3, #0
  60111. 80189e4: d106 bne.n 80189f4 <lwip_sock_make_addr+0x28>
  60112. 80189e6: 4b2b ldr r3, [pc, #172] @ (8018a94 <lwip_sock_make_addr+0xc8>)
  60113. 80189e8: f240 4207 movw r2, #1031 @ 0x407
  60114. 80189ec: 492a ldr r1, [pc, #168] @ (8018a98 <lwip_sock_make_addr+0xcc>)
  60115. 80189ee: 482b ldr r0, [pc, #172] @ (8018a9c <lwip_sock_make_addr+0xd0>)
  60116. 80189f0: f011 feb4 bl 802a75c <iprintf>
  60117. LWIP_ASSERT("from != NULL", from != NULL);
  60118. 80189f4: 683b ldr r3, [r7, #0]
  60119. 80189f6: 2b00 cmp r3, #0
  60120. 80189f8: d106 bne.n 8018a08 <lwip_sock_make_addr+0x3c>
  60121. 80189fa: 4b26 ldr r3, [pc, #152] @ (8018a94 <lwip_sock_make_addr+0xc8>)
  60122. 80189fc: f44f 6281 mov.w r2, #1032 @ 0x408
  60123. 8018a00: 4927 ldr r1, [pc, #156] @ (8018aa0 <lwip_sock_make_addr+0xd4>)
  60124. 8018a02: 4826 ldr r0, [pc, #152] @ (8018a9c <lwip_sock_make_addr+0xd0>)
  60125. 8018a04: f011 feaa bl 802a75c <iprintf>
  60126. LWIP_ASSERT("fromlen != NULL", fromlen != NULL);
  60127. 8018a08: 6bbb ldr r3, [r7, #56] @ 0x38
  60128. 8018a0a: 2b00 cmp r3, #0
  60129. 8018a0c: d106 bne.n 8018a1c <lwip_sock_make_addr+0x50>
  60130. 8018a0e: 4b21 ldr r3, [pc, #132] @ (8018a94 <lwip_sock_make_addr+0xc8>)
  60131. 8018a10: f240 4209 movw r2, #1033 @ 0x409
  60132. 8018a14: 4923 ldr r1, [pc, #140] @ (8018aa4 <lwip_sock_make_addr+0xd8>)
  60133. 8018a16: 4821 ldr r0, [pc, #132] @ (8018a9c <lwip_sock_make_addr+0xd0>)
  60134. 8018a18: f011 fea0 bl 802a75c <iprintf>
  60135. ip4_2_ipv4_mapped_ipv6(ip_2_ip6(fromaddr), ip_2_ip4(fromaddr));
  60136. IP_SET_TYPE(fromaddr, IPADDR_TYPE_V6);
  60137. }
  60138. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  60139. IPADDR_PORT_TO_SOCKADDR(&saddr, fromaddr, port);
  60140. 8018a1c: f107 0314 add.w r3, r7, #20
  60141. 8018a20: 2210 movs r2, #16
  60142. 8018a22: 701a strb r2, [r3, #0]
  60143. 8018a24: f107 0314 add.w r3, r7, #20
  60144. 8018a28: 2202 movs r2, #2
  60145. 8018a2a: 705a strb r2, [r3, #1]
  60146. 8018a2c: f107 0414 add.w r4, r7, #20
  60147. 8018a30: 88fb ldrh r3, [r7, #6]
  60148. 8018a32: 4618 mov r0, r3
  60149. 8018a34: f000 ff38 bl 80198a8 <lwip_htons>
  60150. 8018a38: 4603 mov r3, r0
  60151. 8018a3a: 8063 strh r3, [r4, #2]
  60152. 8018a3c: f107 0314 add.w r3, r7, #20
  60153. 8018a40: 68ba ldr r2, [r7, #8]
  60154. 8018a42: 6812 ldr r2, [r2, #0]
  60155. 8018a44: 605a str r2, [r3, #4]
  60156. 8018a46: f107 0314 add.w r3, r7, #20
  60157. 8018a4a: 3308 adds r3, #8
  60158. 8018a4c: 2208 movs r2, #8
  60159. 8018a4e: 2100 movs r1, #0
  60160. 8018a50: 4618 mov r0, r3
  60161. 8018a52: f012 f815 bl 802aa80 <memset>
  60162. if (*fromlen < saddr.sa.sa_len) {
  60163. 8018a56: 6bbb ldr r3, [r7, #56] @ 0x38
  60164. 8018a58: 681b ldr r3, [r3, #0]
  60165. 8018a5a: 7d3a ldrb r2, [r7, #20]
  60166. 8018a5c: 4293 cmp r3, r2
  60167. 8018a5e: d202 bcs.n 8018a66 <lwip_sock_make_addr+0x9a>
  60168. truncated = 1;
  60169. 8018a60: 2301 movs r3, #1
  60170. 8018a62: 627b str r3, [r7, #36] @ 0x24
  60171. 8018a64: e008 b.n 8018a78 <lwip_sock_make_addr+0xac>
  60172. } else if (*fromlen > saddr.sa.sa_len) {
  60173. 8018a66: 6bbb ldr r3, [r7, #56] @ 0x38
  60174. 8018a68: 681b ldr r3, [r3, #0]
  60175. 8018a6a: 7d3a ldrb r2, [r7, #20]
  60176. 8018a6c: 4293 cmp r3, r2
  60177. 8018a6e: d903 bls.n 8018a78 <lwip_sock_make_addr+0xac>
  60178. *fromlen = saddr.sa.sa_len;
  60179. 8018a70: 7d3b ldrb r3, [r7, #20]
  60180. 8018a72: 461a mov r2, r3
  60181. 8018a74: 6bbb ldr r3, [r7, #56] @ 0x38
  60182. 8018a76: 601a str r2, [r3, #0]
  60183. }
  60184. MEMCPY(from, &saddr, *fromlen);
  60185. 8018a78: 6bbb ldr r3, [r7, #56] @ 0x38
  60186. 8018a7a: 681a ldr r2, [r3, #0]
  60187. 8018a7c: f107 0314 add.w r3, r7, #20
  60188. 8018a80: 4619 mov r1, r3
  60189. 8018a82: 6838 ldr r0, [r7, #0]
  60190. 8018a84: f012 f8f3 bl 802ac6e <memcpy>
  60191. return truncated;
  60192. 8018a88: 6a7b ldr r3, [r7, #36] @ 0x24
  60193. }
  60194. 8018a8a: 4618 mov r0, r3
  60195. 8018a8c: 372c adds r7, #44 @ 0x2c
  60196. 8018a8e: 46bd mov sp, r7
  60197. 8018a90: bd90 pop {r4, r7, pc}
  60198. 8018a92: bf00 nop
  60199. 8018a94: 0802e4b0 .word 0x0802e4b0
  60200. 8018a98: 0802e620 .word 0x0802e620
  60201. 8018a9c: 0802e504 .word 0x0802e504
  60202. 8018aa0: 0802e634 .word 0x0802e634
  60203. 8018aa4: 0802e644 .word 0x0802e644
  60204. 08018aa8 <lwip_recv_tcp_from>:
  60205. #if LWIP_TCP
  60206. /* Helper function to get a tcp socket's remote address info */
  60207. static int
  60208. 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)
  60209. {
  60210. 8018aa8: b580 push {r7, lr}
  60211. 8018aaa: b088 sub sp, #32
  60212. 8018aac: af02 add r7, sp, #8
  60213. 8018aae: 60f8 str r0, [r7, #12]
  60214. 8018ab0: 60b9 str r1, [r7, #8]
  60215. 8018ab2: 607a str r2, [r7, #4]
  60216. 8018ab4: 603b str r3, [r7, #0]
  60217. if (sock == NULL) {
  60218. 8018ab6: 68fb ldr r3, [r7, #12]
  60219. 8018ab8: 2b00 cmp r3, #0
  60220. 8018aba: d101 bne.n 8018ac0 <lwip_recv_tcp_from+0x18>
  60221. return 0;
  60222. 8018abc: 2300 movs r3, #0
  60223. 8018abe: e021 b.n 8018b04 <lwip_recv_tcp_from+0x5c>
  60224. LWIP_UNUSED_ARG(dbg_fn);
  60225. LWIP_UNUSED_ARG(dbg_s);
  60226. LWIP_UNUSED_ARG(dbg_ret);
  60227. #if !SOCKETS_DEBUG
  60228. if (from && fromlen)
  60229. 8018ac0: 68bb ldr r3, [r7, #8]
  60230. 8018ac2: 2b00 cmp r3, #0
  60231. 8018ac4: d01d beq.n 8018b02 <lwip_recv_tcp_from+0x5a>
  60232. 8018ac6: 687b ldr r3, [r7, #4]
  60233. 8018ac8: 2b00 cmp r3, #0
  60234. 8018aca: d01a beq.n 8018b02 <lwip_recv_tcp_from+0x5a>
  60235. #endif /* !SOCKETS_DEBUG */
  60236. {
  60237. /* get remote addr/port from tcp_pcb */
  60238. u16_t port;
  60239. ip_addr_t tmpaddr;
  60240. netconn_getaddr(sock->conn, &tmpaddr, &port, 0);
  60241. 8018acc: 68fb ldr r3, [r7, #12]
  60242. 8018ace: 6818 ldr r0, [r3, #0]
  60243. 8018ad0: f107 0216 add.w r2, r7, #22
  60244. 8018ad4: f107 0110 add.w r1, r7, #16
  60245. 8018ad8: 2300 movs r3, #0
  60246. 8018ada: f7fd fad7 bl 801608c <netconn_getaddr>
  60247. LWIP_DEBUGF(SOCKETS_DEBUG, ("%s(%d): addr=", dbg_fn, dbg_s));
  60248. ip_addr_debug_print_val(SOCKETS_DEBUG, tmpaddr);
  60249. LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F" len=%d\n", port, (int)dbg_ret));
  60250. if (from && fromlen) {
  60251. 8018ade: 68bb ldr r3, [r7, #8]
  60252. 8018ae0: 2b00 cmp r3, #0
  60253. 8018ae2: d00e beq.n 8018b02 <lwip_recv_tcp_from+0x5a>
  60254. 8018ae4: 687b ldr r3, [r7, #4]
  60255. 8018ae6: 2b00 cmp r3, #0
  60256. 8018ae8: d00b beq.n 8018b02 <lwip_recv_tcp_from+0x5a>
  60257. return lwip_sock_make_addr(sock->conn, &tmpaddr, port, from, fromlen);
  60258. 8018aea: 68fb ldr r3, [r7, #12]
  60259. 8018aec: 6818 ldr r0, [r3, #0]
  60260. 8018aee: 8afa ldrh r2, [r7, #22]
  60261. 8018af0: f107 0110 add.w r1, r7, #16
  60262. 8018af4: 687b ldr r3, [r7, #4]
  60263. 8018af6: 9300 str r3, [sp, #0]
  60264. 8018af8: 68bb ldr r3, [r7, #8]
  60265. 8018afa: f7ff ff67 bl 80189cc <lwip_sock_make_addr>
  60266. 8018afe: 4603 mov r3, r0
  60267. 8018b00: e000 b.n 8018b04 <lwip_recv_tcp_from+0x5c>
  60268. }
  60269. }
  60270. return 0;
  60271. 8018b02: 2300 movs r3, #0
  60272. }
  60273. 8018b04: 4618 mov r0, r3
  60274. 8018b06: 3718 adds r7, #24
  60275. 8018b08: 46bd mov sp, r7
  60276. 8018b0a: bd80 pop {r7, pc}
  60277. 08018b0c <lwip_recvfrom_udp_raw>:
  60278. /* Helper function to receive a netbuf from a udp or raw netconn.
  60279. * Keeps sock->lastdata for peeking.
  60280. */
  60281. static err_t
  60282. lwip_recvfrom_udp_raw(struct lwip_sock *sock, int flags, struct msghdr *msg, u16_t *datagram_len, int dbg_s)
  60283. {
  60284. 8018b0c: b590 push {r4, r7, lr}
  60285. 8018b0e: b08d sub sp, #52 @ 0x34
  60286. 8018b10: af02 add r7, sp, #8
  60287. 8018b12: 60f8 str r0, [r7, #12]
  60288. 8018b14: 60b9 str r1, [r7, #8]
  60289. 8018b16: 607a str r2, [r7, #4]
  60290. 8018b18: 603b str r3, [r7, #0]
  60291. err_t err;
  60292. u16_t buflen, copylen, copied;
  60293. int i;
  60294. LWIP_UNUSED_ARG(dbg_s);
  60295. LWIP_ERROR("lwip_recvfrom_udp_raw: invalid arguments", (msg->msg_iov != NULL) || (msg->msg_iovlen <= 0), return ERR_ARG;);
  60296. 8018b1a: 687b ldr r3, [r7, #4]
  60297. 8018b1c: 689b ldr r3, [r3, #8]
  60298. 8018b1e: 2b00 cmp r3, #0
  60299. 8018b20: d10d bne.n 8018b3e <lwip_recvfrom_udp_raw+0x32>
  60300. 8018b22: 687b ldr r3, [r7, #4]
  60301. 8018b24: 68db ldr r3, [r3, #12]
  60302. 8018b26: 2b00 cmp r3, #0
  60303. 8018b28: dd09 ble.n 8018b3e <lwip_recvfrom_udp_raw+0x32>
  60304. 8018b2a: 4b5e ldr r3, [pc, #376] @ (8018ca4 <lwip_recvfrom_udp_raw+0x198>)
  60305. 8018b2c: f240 4249 movw r2, #1097 @ 0x449
  60306. 8018b30: 495d ldr r1, [pc, #372] @ (8018ca8 <lwip_recvfrom_udp_raw+0x19c>)
  60307. 8018b32: 485e ldr r0, [pc, #376] @ (8018cac <lwip_recvfrom_udp_raw+0x1a0>)
  60308. 8018b34: f011 fe12 bl 802a75c <iprintf>
  60309. 8018b38: f06f 030f mvn.w r3, #15
  60310. 8018b3c: e0ae b.n 8018c9c <lwip_recvfrom_udp_raw+0x190>
  60311. if (flags & MSG_DONTWAIT) {
  60312. 8018b3e: 68bb ldr r3, [r7, #8]
  60313. 8018b40: f003 0308 and.w r3, r3, #8
  60314. 8018b44: 2b00 cmp r3, #0
  60315. 8018b46: d003 beq.n 8018b50 <lwip_recvfrom_udp_raw+0x44>
  60316. apiflags = NETCONN_DONTBLOCK;
  60317. 8018b48: 2304 movs r3, #4
  60318. 8018b4a: f887 3026 strb.w r3, [r7, #38] @ 0x26
  60319. 8018b4e: e002 b.n 8018b56 <lwip_recvfrom_udp_raw+0x4a>
  60320. } else {
  60321. apiflags = 0;
  60322. 8018b50: 2300 movs r3, #0
  60323. 8018b52: f887 3026 strb.w r3, [r7, #38] @ 0x26
  60324. }
  60325. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw[UDP/RAW]: top sock->lastdata=%p\n", (void *)sock->lastdata.netbuf));
  60326. /* Check if there is data left from the last recv operation. */
  60327. buf = sock->lastdata.netbuf;
  60328. 8018b56: 68fb ldr r3, [r7, #12]
  60329. 8018b58: 685b ldr r3, [r3, #4]
  60330. 8018b5a: 613b str r3, [r7, #16]
  60331. if (buf == NULL) {
  60332. 8018b5c: 693b ldr r3, [r7, #16]
  60333. 8018b5e: 2b00 cmp r3, #0
  60334. 8018b60: d11f bne.n 8018ba2 <lwip_recvfrom_udp_raw+0x96>
  60335. /* No data was left from the previous operation, so we try to get
  60336. some from the network. */
  60337. err = netconn_recv_udp_raw_netbuf_flags(sock->conn, &buf, apiflags);
  60338. 8018b62: 68fb ldr r3, [r7, #12]
  60339. 8018b64: 681b ldr r3, [r3, #0]
  60340. 8018b66: f897 2026 ldrb.w r2, [r7, #38] @ 0x26
  60341. 8018b6a: f107 0110 add.w r1, r7, #16
  60342. 8018b6e: 4618 mov r0, r3
  60343. 8018b70: f7fd fd34 bl 80165dc <netconn_recv_udp_raw_netbuf_flags>
  60344. 8018b74: 4603 mov r3, r0
  60345. 8018b76: f887 3027 strb.w r3, [r7, #39] @ 0x27
  60346. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw[UDP/RAW]: netconn_recv err=%d, netbuf=%p\n",
  60347. err, (void *)buf));
  60348. if (err != ERR_OK) {
  60349. 8018b7a: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  60350. 8018b7e: 2b00 cmp r3, #0
  60351. 8018b80: d002 beq.n 8018b88 <lwip_recvfrom_udp_raw+0x7c>
  60352. return err;
  60353. 8018b82: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  60354. 8018b86: e089 b.n 8018c9c <lwip_recvfrom_udp_raw+0x190>
  60355. }
  60356. LWIP_ASSERT("buf != NULL", buf != NULL);
  60357. 8018b88: 693b ldr r3, [r7, #16]
  60358. 8018b8a: 2b00 cmp r3, #0
  60359. 8018b8c: d106 bne.n 8018b9c <lwip_recvfrom_udp_raw+0x90>
  60360. 8018b8e: 4b45 ldr r3, [pc, #276] @ (8018ca4 <lwip_recvfrom_udp_raw+0x198>)
  60361. 8018b90: f240 425e movw r2, #1118 @ 0x45e
  60362. 8018b94: 4946 ldr r1, [pc, #280] @ (8018cb0 <lwip_recvfrom_udp_raw+0x1a4>)
  60363. 8018b96: 4845 ldr r0, [pc, #276] @ (8018cac <lwip_recvfrom_udp_raw+0x1a0>)
  60364. 8018b98: f011 fde0 bl 802a75c <iprintf>
  60365. sock->lastdata.netbuf = buf;
  60366. 8018b9c: 693a ldr r2, [r7, #16]
  60367. 8018b9e: 68fb ldr r3, [r7, #12]
  60368. 8018ba0: 605a str r2, [r3, #4]
  60369. }
  60370. buflen = buf->p->tot_len;
  60371. 8018ba2: 693b ldr r3, [r7, #16]
  60372. 8018ba4: 681b ldr r3, [r3, #0]
  60373. 8018ba6: 891b ldrh r3, [r3, #8]
  60374. 8018ba8: 837b strh r3, [r7, #26]
  60375. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw: buflen=%"U16_F"\n", buflen));
  60376. copied = 0;
  60377. 8018baa: 2300 movs r3, #0
  60378. 8018bac: 847b strh r3, [r7, #34] @ 0x22
  60379. /* copy the pbuf payload into the iovs */
  60380. for (i = 0; (i < msg->msg_iovlen) && (copied < buflen); i++) {
  60381. 8018bae: 2300 movs r3, #0
  60382. 8018bb0: 61fb str r3, [r7, #28]
  60383. 8018bb2: e029 b.n 8018c08 <lwip_recvfrom_udp_raw+0xfc>
  60384. u16_t len_left = (u16_t)(buflen - copied);
  60385. 8018bb4: 8b7a ldrh r2, [r7, #26]
  60386. 8018bb6: 8c7b ldrh r3, [r7, #34] @ 0x22
  60387. 8018bb8: 1ad3 subs r3, r2, r3
  60388. 8018bba: 833b strh r3, [r7, #24]
  60389. if (msg->msg_iov[i].iov_len > len_left) {
  60390. 8018bbc: 687b ldr r3, [r7, #4]
  60391. 8018bbe: 689a ldr r2, [r3, #8]
  60392. 8018bc0: 69fb ldr r3, [r7, #28]
  60393. 8018bc2: 00db lsls r3, r3, #3
  60394. 8018bc4: 4413 add r3, r2
  60395. 8018bc6: 685a ldr r2, [r3, #4]
  60396. 8018bc8: 8b3b ldrh r3, [r7, #24]
  60397. 8018bca: 429a cmp r2, r3
  60398. 8018bcc: d902 bls.n 8018bd4 <lwip_recvfrom_udp_raw+0xc8>
  60399. copylen = len_left;
  60400. 8018bce: 8b3b ldrh r3, [r7, #24]
  60401. 8018bd0: 84bb strh r3, [r7, #36] @ 0x24
  60402. 8018bd2: e006 b.n 8018be2 <lwip_recvfrom_udp_raw+0xd6>
  60403. } else {
  60404. copylen = (u16_t)msg->msg_iov[i].iov_len;
  60405. 8018bd4: 687b ldr r3, [r7, #4]
  60406. 8018bd6: 689a ldr r2, [r3, #8]
  60407. 8018bd8: 69fb ldr r3, [r7, #28]
  60408. 8018bda: 00db lsls r3, r3, #3
  60409. 8018bdc: 4413 add r3, r2
  60410. 8018bde: 685b ldr r3, [r3, #4]
  60411. 8018be0: 84bb strh r3, [r7, #36] @ 0x24
  60412. }
  60413. /* copy the contents of the received buffer into
  60414. the supplied memory buffer */
  60415. pbuf_copy_partial(buf->p, (u8_t *)msg->msg_iov[i].iov_base, copylen, copied);
  60416. 8018be2: 693b ldr r3, [r7, #16]
  60417. 8018be4: 6818 ldr r0, [r3, #0]
  60418. 8018be6: 687b ldr r3, [r7, #4]
  60419. 8018be8: 689a ldr r2, [r3, #8]
  60420. 8018bea: 69fb ldr r3, [r7, #28]
  60421. 8018bec: 00db lsls r3, r3, #3
  60422. 8018bee: 4413 add r3, r2
  60423. 8018bf0: 6819 ldr r1, [r3, #0]
  60424. 8018bf2: 8c7b ldrh r3, [r7, #34] @ 0x22
  60425. 8018bf4: 8cba ldrh r2, [r7, #36] @ 0x24
  60426. 8018bf6: f002 fd3f bl 801b678 <pbuf_copy_partial>
  60427. copied = (u16_t)(copied + copylen);
  60428. 8018bfa: 8c7a ldrh r2, [r7, #34] @ 0x22
  60429. 8018bfc: 8cbb ldrh r3, [r7, #36] @ 0x24
  60430. 8018bfe: 4413 add r3, r2
  60431. 8018c00: 847b strh r3, [r7, #34] @ 0x22
  60432. for (i = 0; (i < msg->msg_iovlen) && (copied < buflen); i++) {
  60433. 8018c02: 69fb ldr r3, [r7, #28]
  60434. 8018c04: 3301 adds r3, #1
  60435. 8018c06: 61fb str r3, [r7, #28]
  60436. 8018c08: 687b ldr r3, [r7, #4]
  60437. 8018c0a: 68db ldr r3, [r3, #12]
  60438. 8018c0c: 69fa ldr r2, [r7, #28]
  60439. 8018c0e: 429a cmp r2, r3
  60440. 8018c10: da03 bge.n 8018c1a <lwip_recvfrom_udp_raw+0x10e>
  60441. 8018c12: 8c7a ldrh r2, [r7, #34] @ 0x22
  60442. 8018c14: 8b7b ldrh r3, [r7, #26]
  60443. 8018c16: 429a cmp r2, r3
  60444. 8018c18: d3cc bcc.n 8018bb4 <lwip_recvfrom_udp_raw+0xa8>
  60445. }
  60446. /* Check to see from where the data was.*/
  60447. #if !SOCKETS_DEBUG
  60448. if (msg->msg_name && msg->msg_namelen)
  60449. 8018c1a: 687b ldr r3, [r7, #4]
  60450. 8018c1c: 681b ldr r3, [r3, #0]
  60451. 8018c1e: 2b00 cmp r3, #0
  60452. 8018c20: d01a beq.n 8018c58 <lwip_recvfrom_udp_raw+0x14c>
  60453. 8018c22: 687b ldr r3, [r7, #4]
  60454. 8018c24: 685b ldr r3, [r3, #4]
  60455. 8018c26: 2b00 cmp r3, #0
  60456. 8018c28: d016 beq.n 8018c58 <lwip_recvfrom_udp_raw+0x14c>
  60457. #endif /* !SOCKETS_DEBUG */
  60458. {
  60459. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw(%d): addr=", dbg_s));
  60460. ip_addr_debug_print_val(SOCKETS_DEBUG, *netbuf_fromaddr(buf));
  60461. LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F" len=%d\n", netbuf_fromport(buf), copied));
  60462. if (msg->msg_name && msg->msg_namelen) {
  60463. 8018c2a: 687b ldr r3, [r7, #4]
  60464. 8018c2c: 681b ldr r3, [r3, #0]
  60465. 8018c2e: 2b00 cmp r3, #0
  60466. 8018c30: d012 beq.n 8018c58 <lwip_recvfrom_udp_raw+0x14c>
  60467. 8018c32: 687b ldr r3, [r7, #4]
  60468. 8018c34: 685b ldr r3, [r3, #4]
  60469. 8018c36: 2b00 cmp r3, #0
  60470. 8018c38: d00e beq.n 8018c58 <lwip_recvfrom_udp_raw+0x14c>
  60471. lwip_sock_make_addr(sock->conn, netbuf_fromaddr(buf), netbuf_fromport(buf),
  60472. 8018c3a: 68fb ldr r3, [r7, #12]
  60473. 8018c3c: 6818 ldr r0, [r3, #0]
  60474. 8018c3e: 693b ldr r3, [r7, #16]
  60475. 8018c40: f103 0108 add.w r1, r3, #8
  60476. 8018c44: 693b ldr r3, [r7, #16]
  60477. 8018c46: 899a ldrh r2, [r3, #12]
  60478. (struct sockaddr *)msg->msg_name, &msg->msg_namelen);
  60479. 8018c48: 687b ldr r3, [r7, #4]
  60480. 8018c4a: 681c ldr r4, [r3, #0]
  60481. lwip_sock_make_addr(sock->conn, netbuf_fromaddr(buf), netbuf_fromport(buf),
  60482. 8018c4c: 687b ldr r3, [r7, #4]
  60483. 8018c4e: 3304 adds r3, #4
  60484. 8018c50: 9300 str r3, [sp, #0]
  60485. 8018c52: 4623 mov r3, r4
  60486. 8018c54: f7ff feba bl 80189cc <lwip_sock_make_addr>
  60487. }
  60488. }
  60489. /* Initialize flag output */
  60490. msg->msg_flags = 0;
  60491. 8018c58: 687b ldr r3, [r7, #4]
  60492. 8018c5a: 2200 movs r2, #0
  60493. 8018c5c: 619a str r2, [r3, #24]
  60494. if (msg->msg_control) {
  60495. 8018c5e: 687b ldr r3, [r7, #4]
  60496. 8018c60: 691b ldr r3, [r3, #16]
  60497. 8018c62: 2b00 cmp r3, #0
  60498. 8018c64: d007 beq.n 8018c76 <lwip_recvfrom_udp_raw+0x16a>
  60499. u8_t wrote_msg = 0;
  60500. 8018c66: 2300 movs r3, #0
  60501. 8018c68: 75fb strb r3, [r7, #23]
  60502. #endif /* LWIP_IPV4 */
  60503. }
  60504. }
  60505. #endif /* LWIP_NETBUF_RECVINFO */
  60506. if (!wrote_msg) {
  60507. 8018c6a: 7dfb ldrb r3, [r7, #23]
  60508. 8018c6c: 2b00 cmp r3, #0
  60509. 8018c6e: d102 bne.n 8018c76 <lwip_recvfrom_udp_raw+0x16a>
  60510. msg->msg_controllen = 0;
  60511. 8018c70: 687b ldr r3, [r7, #4]
  60512. 8018c72: 2200 movs r2, #0
  60513. 8018c74: 615a str r2, [r3, #20]
  60514. }
  60515. }
  60516. /* If we don't peek the incoming message: zero lastdata pointer and free the netbuf */
  60517. if ((flags & MSG_PEEK) == 0) {
  60518. 8018c76: 68bb ldr r3, [r7, #8]
  60519. 8018c78: f003 0301 and.w r3, r3, #1
  60520. 8018c7c: 2b00 cmp r3, #0
  60521. 8018c7e: d106 bne.n 8018c8e <lwip_recvfrom_udp_raw+0x182>
  60522. sock->lastdata.netbuf = NULL;
  60523. 8018c80: 68fb ldr r3, [r7, #12]
  60524. 8018c82: 2200 movs r2, #0
  60525. 8018c84: 605a str r2, [r3, #4]
  60526. netbuf_delete(buf);
  60527. 8018c86: 693b ldr r3, [r7, #16]
  60528. 8018c88: 4618 mov r0, r3
  60529. 8018c8a: f7ff fb05 bl 8018298 <netbuf_delete>
  60530. }
  60531. if (datagram_len) {
  60532. 8018c8e: 683b ldr r3, [r7, #0]
  60533. 8018c90: 2b00 cmp r3, #0
  60534. 8018c92: d002 beq.n 8018c9a <lwip_recvfrom_udp_raw+0x18e>
  60535. *datagram_len = buflen;
  60536. 8018c94: 683b ldr r3, [r7, #0]
  60537. 8018c96: 8b7a ldrh r2, [r7, #26]
  60538. 8018c98: 801a strh r2, [r3, #0]
  60539. }
  60540. return ERR_OK;
  60541. 8018c9a: 2300 movs r3, #0
  60542. }
  60543. 8018c9c: 4618 mov r0, r3
  60544. 8018c9e: 372c adds r7, #44 @ 0x2c
  60545. 8018ca0: 46bd mov sp, r7
  60546. 8018ca2: bd90 pop {r4, r7, pc}
  60547. 8018ca4: 0802e4b0 .word 0x0802e4b0
  60548. 8018ca8: 0802e654 .word 0x0802e654
  60549. 8018cac: 0802e504 .word 0x0802e504
  60550. 8018cb0: 0802e680 .word 0x0802e680
  60551. 08018cb4 <lwip_recvfrom>:
  60552. ssize_t
  60553. lwip_recvfrom(int s, void *mem, size_t len, int flags,
  60554. struct sockaddr *from, socklen_t *fromlen)
  60555. {
  60556. 8018cb4: b580 push {r7, lr}
  60557. 8018cb6: b096 sub sp, #88 @ 0x58
  60558. 8018cb8: af02 add r7, sp, #8
  60559. 8018cba: 60f8 str r0, [r7, #12]
  60560. 8018cbc: 60b9 str r1, [r7, #8]
  60561. 8018cbe: 607a str r2, [r7, #4]
  60562. 8018cc0: 603b str r3, [r7, #0]
  60563. struct lwip_sock *sock;
  60564. ssize_t ret;
  60565. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom(%d, %p, %"SZT_F", 0x%x, ..)\n", s, mem, len, flags));
  60566. sock = get_socket(s);
  60567. 8018cc2: 68f8 ldr r0, [r7, #12]
  60568. 8018cc4: f7ff fbb8 bl 8018438 <get_socket>
  60569. 8018cc8: 64f8 str r0, [r7, #76] @ 0x4c
  60570. if (!sock) {
  60571. 8018cca: 6cfb ldr r3, [r7, #76] @ 0x4c
  60572. 8018ccc: 2b00 cmp r3, #0
  60573. 8018cce: d102 bne.n 8018cd6 <lwip_recvfrom+0x22>
  60574. return -1;
  60575. 8018cd0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60576. 8018cd4: e078 b.n 8018dc8 <lwip_recvfrom+0x114>
  60577. }
  60578. #if LWIP_TCP
  60579. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
  60580. 8018cd6: 6cfb ldr r3, [r7, #76] @ 0x4c
  60581. 8018cd8: 681b ldr r3, [r3, #0]
  60582. 8018cda: 781b ldrb r3, [r3, #0]
  60583. 8018cdc: f003 03f0 and.w r3, r3, #240 @ 0xf0
  60584. 8018ce0: 2b10 cmp r3, #16
  60585. 8018ce2: d112 bne.n 8018d0a <lwip_recvfrom+0x56>
  60586. ret = lwip_recv_tcp(sock, mem, len, flags);
  60587. 8018ce4: 683b ldr r3, [r7, #0]
  60588. 8018ce6: 687a ldr r2, [r7, #4]
  60589. 8018ce8: 68b9 ldr r1, [r7, #8]
  60590. 8018cea: 6cf8 ldr r0, [r7, #76] @ 0x4c
  60591. 8018cec: f7ff fd5e bl 80187ac <lwip_recv_tcp>
  60592. 8018cf0: 6478 str r0, [r7, #68] @ 0x44
  60593. lwip_recv_tcp_from(sock, from, fromlen, "lwip_recvfrom", s, ret);
  60594. 8018cf2: 6c7b ldr r3, [r7, #68] @ 0x44
  60595. 8018cf4: 9301 str r3, [sp, #4]
  60596. 8018cf6: 68fb ldr r3, [r7, #12]
  60597. 8018cf8: 9300 str r3, [sp, #0]
  60598. 8018cfa: 4b35 ldr r3, [pc, #212] @ (8018dd0 <lwip_recvfrom+0x11c>)
  60599. 8018cfc: 6dfa ldr r2, [r7, #92] @ 0x5c
  60600. 8018cfe: 6db9 ldr r1, [r7, #88] @ 0x58
  60601. 8018d00: 6cf8 ldr r0, [r7, #76] @ 0x4c
  60602. 8018d02: f7ff fed1 bl 8018aa8 <lwip_recv_tcp_from>
  60603. done_socket(sock);
  60604. return ret;
  60605. 8018d06: 6c7b ldr r3, [r7, #68] @ 0x44
  60606. 8018d08: e05e b.n 8018dc8 <lwip_recvfrom+0x114>
  60607. } else
  60608. #endif
  60609. {
  60610. u16_t datagram_len = 0;
  60611. 8018d0a: 2300 movs r3, #0
  60612. 8018d0c: 877b strh r3, [r7, #58] @ 0x3a
  60613. struct iovec vec;
  60614. struct msghdr msg;
  60615. err_t err;
  60616. vec.iov_base = mem;
  60617. 8018d0e: 68bb ldr r3, [r7, #8]
  60618. 8018d10: 633b str r3, [r7, #48] @ 0x30
  60619. vec.iov_len = len;
  60620. 8018d12: 687b ldr r3, [r7, #4]
  60621. 8018d14: 637b str r3, [r7, #52] @ 0x34
  60622. msg.msg_control = NULL;
  60623. 8018d16: 2300 movs r3, #0
  60624. 8018d18: 627b str r3, [r7, #36] @ 0x24
  60625. msg.msg_controllen = 0;
  60626. 8018d1a: 2300 movs r3, #0
  60627. 8018d1c: 62bb str r3, [r7, #40] @ 0x28
  60628. msg.msg_flags = 0;
  60629. 8018d1e: 2300 movs r3, #0
  60630. 8018d20: 62fb str r3, [r7, #44] @ 0x2c
  60631. msg.msg_iov = &vec;
  60632. 8018d22: f107 0330 add.w r3, r7, #48 @ 0x30
  60633. 8018d26: 61fb str r3, [r7, #28]
  60634. msg.msg_iovlen = 1;
  60635. 8018d28: 2301 movs r3, #1
  60636. 8018d2a: 623b str r3, [r7, #32]
  60637. msg.msg_name = from;
  60638. 8018d2c: 6dbb ldr r3, [r7, #88] @ 0x58
  60639. 8018d2e: 617b str r3, [r7, #20]
  60640. msg.msg_namelen = (fromlen ? *fromlen : 0);
  60641. 8018d30: 6dfb ldr r3, [r7, #92] @ 0x5c
  60642. 8018d32: 2b00 cmp r3, #0
  60643. 8018d34: d002 beq.n 8018d3c <lwip_recvfrom+0x88>
  60644. 8018d36: 6dfb ldr r3, [r7, #92] @ 0x5c
  60645. 8018d38: 681b ldr r3, [r3, #0]
  60646. 8018d3a: e000 b.n 8018d3e <lwip_recvfrom+0x8a>
  60647. 8018d3c: 2300 movs r3, #0
  60648. 8018d3e: 61bb str r3, [r7, #24]
  60649. err = lwip_recvfrom_udp_raw(sock, flags, &msg, &datagram_len, s);
  60650. 8018d40: f107 013a add.w r1, r7, #58 @ 0x3a
  60651. 8018d44: f107 0214 add.w r2, r7, #20
  60652. 8018d48: 68fb ldr r3, [r7, #12]
  60653. 8018d4a: 9300 str r3, [sp, #0]
  60654. 8018d4c: 460b mov r3, r1
  60655. 8018d4e: 6839 ldr r1, [r7, #0]
  60656. 8018d50: 6cf8 ldr r0, [r7, #76] @ 0x4c
  60657. 8018d52: f7ff fedb bl 8018b0c <lwip_recvfrom_udp_raw>
  60658. 8018d56: 4603 mov r3, r0
  60659. 8018d58: f887 304b strb.w r3, [r7, #75] @ 0x4b
  60660. if (err != ERR_OK) {
  60661. 8018d5c: f997 304b ldrsb.w r3, [r7, #75] @ 0x4b
  60662. 8018d60: 2b00 cmp r3, #0
  60663. 8018d62: d00e beq.n 8018d82 <lwip_recvfrom+0xce>
  60664. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom[UDP/RAW](%d): buf == NULL, error is \"%s\"!\n",
  60665. s, lwip_strerr(err)));
  60666. sock_set_errno(sock, err_to_errno(err));
  60667. 8018d64: f997 304b ldrsb.w r3, [r7, #75] @ 0x4b
  60668. 8018d68: 4618 mov r0, r3
  60669. 8018d6a: f7ff fa77 bl 801825c <err_to_errno>
  60670. 8018d6e: 63f8 str r0, [r7, #60] @ 0x3c
  60671. 8018d70: 6bfb ldr r3, [r7, #60] @ 0x3c
  60672. 8018d72: 2b00 cmp r3, #0
  60673. 8018d74: d002 beq.n 8018d7c <lwip_recvfrom+0xc8>
  60674. 8018d76: 4a17 ldr r2, [pc, #92] @ (8018dd4 <lwip_recvfrom+0x120>)
  60675. 8018d78: 6bfb ldr r3, [r7, #60] @ 0x3c
  60676. 8018d7a: 6013 str r3, [r2, #0]
  60677. done_socket(sock);
  60678. return -1;
  60679. 8018d7c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60680. 8018d80: e022 b.n 8018dc8 <lwip_recvfrom+0x114>
  60681. }
  60682. ret = (ssize_t)LWIP_MIN(LWIP_MIN(len, datagram_len), SSIZE_MAX);
  60683. 8018d82: 8f7b ldrh r3, [r7, #58] @ 0x3a
  60684. 8018d84: 461a mov r2, r3
  60685. 8018d86: 687b ldr r3, [r7, #4]
  60686. 8018d88: 4293 cmp r3, r2
  60687. 8018d8a: bf28 it cs
  60688. 8018d8c: 4613 movcs r3, r2
  60689. 8018d8e: f06f 4200 mvn.w r2, #2147483648 @ 0x80000000
  60690. 8018d92: 4293 cmp r3, r2
  60691. 8018d94: d206 bcs.n 8018da4 <lwip_recvfrom+0xf0>
  60692. 8018d96: 8f7b ldrh r3, [r7, #58] @ 0x3a
  60693. 8018d98: 461a mov r2, r3
  60694. 8018d9a: 687b ldr r3, [r7, #4]
  60695. 8018d9c: 4293 cmp r3, r2
  60696. 8018d9e: bf28 it cs
  60697. 8018da0: 4613 movcs r3, r2
  60698. 8018da2: e001 b.n 8018da8 <lwip_recvfrom+0xf4>
  60699. 8018da4: f06f 4300 mvn.w r3, #2147483648 @ 0x80000000
  60700. 8018da8: 647b str r3, [r7, #68] @ 0x44
  60701. if (fromlen) {
  60702. 8018daa: 6dfb ldr r3, [r7, #92] @ 0x5c
  60703. 8018dac: 2b00 cmp r3, #0
  60704. 8018dae: d002 beq.n 8018db6 <lwip_recvfrom+0x102>
  60705. *fromlen = msg.msg_namelen;
  60706. 8018db0: 69ba ldr r2, [r7, #24]
  60707. 8018db2: 6dfb ldr r3, [r7, #92] @ 0x5c
  60708. 8018db4: 601a str r2, [r3, #0]
  60709. }
  60710. }
  60711. sock_set_errno(sock, 0);
  60712. 8018db6: 2300 movs r3, #0
  60713. 8018db8: 643b str r3, [r7, #64] @ 0x40
  60714. 8018dba: 6c3b ldr r3, [r7, #64] @ 0x40
  60715. 8018dbc: 2b00 cmp r3, #0
  60716. 8018dbe: d002 beq.n 8018dc6 <lwip_recvfrom+0x112>
  60717. 8018dc0: 4a04 ldr r2, [pc, #16] @ (8018dd4 <lwip_recvfrom+0x120>)
  60718. 8018dc2: 6c3b ldr r3, [r7, #64] @ 0x40
  60719. 8018dc4: 6013 str r3, [r2, #0]
  60720. done_socket(sock);
  60721. return ret;
  60722. 8018dc6: 6c7b ldr r3, [r7, #68] @ 0x44
  60723. }
  60724. 8018dc8: 4618 mov r0, r3
  60725. 8018dca: 3750 adds r7, #80 @ 0x50
  60726. 8018dcc: 46bd mov sp, r7
  60727. 8018dce: bd80 pop {r7, pc}
  60728. 8018dd0: 0802e68c .word 0x0802e68c
  60729. 8018dd4: 2402b260 .word 0x2402b260
  60730. 08018dd8 <lwip_recv>:
  60731. return lwip_recvmsg(s, &msg, 0);
  60732. }
  60733. ssize_t
  60734. lwip_recv(int s, void *mem, size_t len, int flags)
  60735. {
  60736. 8018dd8: b580 push {r7, lr}
  60737. 8018dda: b086 sub sp, #24
  60738. 8018ddc: af02 add r7, sp, #8
  60739. 8018dde: 60f8 str r0, [r7, #12]
  60740. 8018de0: 60b9 str r1, [r7, #8]
  60741. 8018de2: 607a str r2, [r7, #4]
  60742. 8018de4: 603b str r3, [r7, #0]
  60743. return lwip_recvfrom(s, mem, len, flags, NULL, NULL);
  60744. 8018de6: 2300 movs r3, #0
  60745. 8018de8: 9301 str r3, [sp, #4]
  60746. 8018dea: 2300 movs r3, #0
  60747. 8018dec: 9300 str r3, [sp, #0]
  60748. 8018dee: 683b ldr r3, [r7, #0]
  60749. 8018df0: 687a ldr r2, [r7, #4]
  60750. 8018df2: 68b9 ldr r1, [r7, #8]
  60751. 8018df4: 68f8 ldr r0, [r7, #12]
  60752. 8018df6: f7ff ff5d bl 8018cb4 <lwip_recvfrom>
  60753. 8018dfa: 4603 mov r3, r0
  60754. }
  60755. 8018dfc: 4618 mov r0, r3
  60756. 8018dfe: 3710 adds r7, #16
  60757. 8018e00: 46bd mov sp, r7
  60758. 8018e02: bd80 pop {r7, pc}
  60759. 08018e04 <lwip_send>:
  60760. #endif /* LWIP_UDP || LWIP_RAW */
  60761. }
  60762. ssize_t
  60763. lwip_send(int s, const void *data, size_t size, int flags)
  60764. {
  60765. 8018e04: b580 push {r7, lr}
  60766. 8018e06: b08a sub sp, #40 @ 0x28
  60767. 8018e08: af02 add r7, sp, #8
  60768. 8018e0a: 60f8 str r0, [r7, #12]
  60769. 8018e0c: 60b9 str r1, [r7, #8]
  60770. 8018e0e: 607a str r2, [r7, #4]
  60771. 8018e10: 603b str r3, [r7, #0]
  60772. size_t written;
  60773. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_send(%d, data=%p, size=%"SZT_F", flags=0x%x)\n",
  60774. s, data, size, flags));
  60775. sock = get_socket(s);
  60776. 8018e12: 68f8 ldr r0, [r7, #12]
  60777. 8018e14: f7ff fb10 bl 8018438 <get_socket>
  60778. 8018e18: 61f8 str r0, [r7, #28]
  60779. if (!sock) {
  60780. 8018e1a: 69fb ldr r3, [r7, #28]
  60781. 8018e1c: 2b00 cmp r3, #0
  60782. 8018e1e: d102 bne.n 8018e26 <lwip_send+0x22>
  60783. return -1;
  60784. 8018e20: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60785. 8018e24: e046 b.n 8018eb4 <lwip_send+0xb0>
  60786. }
  60787. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) {
  60788. 8018e26: 69fb ldr r3, [r7, #28]
  60789. 8018e28: 681b ldr r3, [r3, #0]
  60790. 8018e2a: 781b ldrb r3, [r3, #0]
  60791. 8018e2c: f003 03f0 and.w r3, r3, #240 @ 0xf0
  60792. 8018e30: 2b10 cmp r3, #16
  60793. 8018e32: d00b beq.n 8018e4c <lwip_send+0x48>
  60794. #if (LWIP_UDP || LWIP_RAW)
  60795. done_socket(sock);
  60796. return lwip_sendto(s, data, size, flags, NULL, 0);
  60797. 8018e34: 2300 movs r3, #0
  60798. 8018e36: 9301 str r3, [sp, #4]
  60799. 8018e38: 2300 movs r3, #0
  60800. 8018e3a: 9300 str r3, [sp, #0]
  60801. 8018e3c: 683b ldr r3, [r7, #0]
  60802. 8018e3e: 687a ldr r2, [r7, #4]
  60803. 8018e40: 68b9 ldr r1, [r7, #8]
  60804. 8018e42: 68f8 ldr r0, [r7, #12]
  60805. 8018e44: f000 f83c bl 8018ec0 <lwip_sendto>
  60806. 8018e48: 4603 mov r3, r0
  60807. 8018e4a: e033 b.n 8018eb4 <lwip_send+0xb0>
  60808. return -1;
  60809. #endif /* (LWIP_UDP || LWIP_RAW) */
  60810. }
  60811. write_flags = (u8_t)(NETCONN_COPY |
  60812. ((flags & MSG_MORE) ? NETCONN_MORE : 0) |
  60813. 8018e4c: 683b ldr r3, [r7, #0]
  60814. 8018e4e: f003 0310 and.w r3, r3, #16
  60815. write_flags = (u8_t)(NETCONN_COPY |
  60816. 8018e52: 2b00 cmp r3, #0
  60817. 8018e54: d001 beq.n 8018e5a <lwip_send+0x56>
  60818. 8018e56: 2203 movs r2, #3
  60819. 8018e58: e000 b.n 8018e5c <lwip_send+0x58>
  60820. 8018e5a: 2201 movs r2, #1
  60821. ((flags & MSG_MORE) ? NETCONN_MORE : 0) |
  60822. 8018e5c: 683b ldr r3, [r7, #0]
  60823. 8018e5e: 105b asrs r3, r3, #1
  60824. 8018e60: b25b sxtb r3, r3
  60825. 8018e62: f003 0304 and.w r3, r3, #4
  60826. 8018e66: b25b sxtb r3, r3
  60827. 8018e68: 4313 orrs r3, r2
  60828. 8018e6a: b25b sxtb r3, r3
  60829. write_flags = (u8_t)(NETCONN_COPY |
  60830. 8018e6c: 76fb strb r3, [r7, #27]
  60831. ((flags & MSG_DONTWAIT) ? NETCONN_DONTBLOCK : 0));
  60832. written = 0;
  60833. 8018e6e: 2300 movs r3, #0
  60834. 8018e70: 613b str r3, [r7, #16]
  60835. err = netconn_write_partly(sock->conn, data, size, write_flags, &written);
  60836. 8018e72: 69fb ldr r3, [r7, #28]
  60837. 8018e74: 6818 ldr r0, [r3, #0]
  60838. 8018e76: 7efa ldrb r2, [r7, #27]
  60839. 8018e78: f107 0310 add.w r3, r7, #16
  60840. 8018e7c: 9300 str r3, [sp, #0]
  60841. 8018e7e: 4613 mov r3, r2
  60842. 8018e80: 687a ldr r2, [r7, #4]
  60843. 8018e82: 68b9 ldr r1, [r7, #8]
  60844. 8018e84: f7fd fc04 bl 8016690 <netconn_write_partly>
  60845. 8018e88: 4603 mov r3, r0
  60846. 8018e8a: 76bb strb r3, [r7, #26]
  60847. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_send(%d) err=%d written=%"SZT_F"\n", s, err, written));
  60848. sock_set_errno(sock, err_to_errno(err));
  60849. 8018e8c: f997 301a ldrsb.w r3, [r7, #26]
  60850. 8018e90: 4618 mov r0, r3
  60851. 8018e92: f7ff f9e3 bl 801825c <err_to_errno>
  60852. 8018e96: 6178 str r0, [r7, #20]
  60853. 8018e98: 697b ldr r3, [r7, #20]
  60854. 8018e9a: 2b00 cmp r3, #0
  60855. 8018e9c: d002 beq.n 8018ea4 <lwip_send+0xa0>
  60856. 8018e9e: 4a07 ldr r2, [pc, #28] @ (8018ebc <lwip_send+0xb8>)
  60857. 8018ea0: 697b ldr r3, [r7, #20]
  60858. 8018ea2: 6013 str r3, [r2, #0]
  60859. done_socket(sock);
  60860. /* casting 'written' to ssize_t is OK here since the netconn API limits it to SSIZE_MAX */
  60861. return (err == ERR_OK ? (ssize_t)written : -1);
  60862. 8018ea4: f997 301a ldrsb.w r3, [r7, #26]
  60863. 8018ea8: 2b00 cmp r3, #0
  60864. 8018eaa: d101 bne.n 8018eb0 <lwip_send+0xac>
  60865. 8018eac: 693b ldr r3, [r7, #16]
  60866. 8018eae: e001 b.n 8018eb4 <lwip_send+0xb0>
  60867. 8018eb0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60868. }
  60869. 8018eb4: 4618 mov r0, r3
  60870. 8018eb6: 3720 adds r7, #32
  60871. 8018eb8: 46bd mov sp, r7
  60872. 8018eba: bd80 pop {r7, pc}
  60873. 8018ebc: 2402b260 .word 0x2402b260
  60874. 08018ec0 <lwip_sendto>:
  60875. }
  60876. ssize_t
  60877. lwip_sendto(int s, const void *data, size_t size, int flags,
  60878. const struct sockaddr *to, socklen_t tolen)
  60879. {
  60880. 8018ec0: b580 push {r7, lr}
  60881. 8018ec2: b08e sub sp, #56 @ 0x38
  60882. 8018ec4: af00 add r7, sp, #0
  60883. 8018ec6: 60f8 str r0, [r7, #12]
  60884. 8018ec8: 60b9 str r1, [r7, #8]
  60885. 8018eca: 607a str r2, [r7, #4]
  60886. 8018ecc: 603b str r3, [r7, #0]
  60887. err_t err;
  60888. u16_t short_size;
  60889. u16_t remote_port;
  60890. struct netbuf buf;
  60891. sock = get_socket(s);
  60892. 8018ece: 68f8 ldr r0, [r7, #12]
  60893. 8018ed0: f7ff fab2 bl 8018438 <get_socket>
  60894. 8018ed4: 6338 str r0, [r7, #48] @ 0x30
  60895. if (!sock) {
  60896. 8018ed6: 6b3b ldr r3, [r7, #48] @ 0x30
  60897. 8018ed8: 2b00 cmp r3, #0
  60898. 8018eda: d102 bne.n 8018ee2 <lwip_sendto+0x22>
  60899. return -1;
  60900. 8018edc: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60901. 8018ee0: e093 b.n 801900a <lwip_sendto+0x14a>
  60902. }
  60903. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
  60904. 8018ee2: 6b3b ldr r3, [r7, #48] @ 0x30
  60905. 8018ee4: 681b ldr r3, [r3, #0]
  60906. 8018ee6: 781b ldrb r3, [r3, #0]
  60907. 8018ee8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  60908. 8018eec: 2b10 cmp r3, #16
  60909. 8018eee: d107 bne.n 8018f00 <lwip_sendto+0x40>
  60910. #if LWIP_TCP
  60911. done_socket(sock);
  60912. return lwip_send(s, data, size, flags);
  60913. 8018ef0: 683b ldr r3, [r7, #0]
  60914. 8018ef2: 687a ldr r2, [r7, #4]
  60915. 8018ef4: 68b9 ldr r1, [r7, #8]
  60916. 8018ef6: 68f8 ldr r0, [r7, #12]
  60917. 8018ef8: f7ff ff84 bl 8018e04 <lwip_send>
  60918. 8018efc: 4603 mov r3, r0
  60919. 8018efe: e084 b.n 801900a <lwip_sendto+0x14a>
  60920. done_socket(sock);
  60921. return -1;
  60922. #endif /* LWIP_TCP */
  60923. }
  60924. if (size > LWIP_MIN(0xFFFF, SSIZE_MAX)) {
  60925. 8018f00: 687b ldr r3, [r7, #4]
  60926. 8018f02: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  60927. 8018f06: d30a bcc.n 8018f1e <lwip_sendto+0x5e>
  60928. /* cannot fit into one datagram (at least for us) */
  60929. sock_set_errno(sock, EMSGSIZE);
  60930. 8018f08: 235a movs r3, #90 @ 0x5a
  60931. 8018f0a: 623b str r3, [r7, #32]
  60932. 8018f0c: 6a3b ldr r3, [r7, #32]
  60933. 8018f0e: 2b00 cmp r3, #0
  60934. 8018f10: d002 beq.n 8018f18 <lwip_sendto+0x58>
  60935. 8018f12: 4a40 ldr r2, [pc, #256] @ (8019014 <lwip_sendto+0x154>)
  60936. 8018f14: 6a3b ldr r3, [r7, #32]
  60937. 8018f16: 6013 str r3, [r2, #0]
  60938. done_socket(sock);
  60939. return -1;
  60940. 8018f18: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60941. 8018f1c: e075 b.n 801900a <lwip_sendto+0x14a>
  60942. }
  60943. short_size = (u16_t)size;
  60944. 8018f1e: 687b ldr r3, [r7, #4]
  60945. 8018f20: 85fb strh r3, [r7, #46] @ 0x2e
  60946. LWIP_ERROR("lwip_sendto: invalid address", (((to == NULL) && (tolen == 0)) ||
  60947. 8018f22: 6c3b ldr r3, [r7, #64] @ 0x40
  60948. 8018f24: 2b00 cmp r3, #0
  60949. 8018f26: d102 bne.n 8018f2e <lwip_sendto+0x6e>
  60950. 8018f28: 6c7b ldr r3, [r7, #68] @ 0x44
  60951. 8018f2a: 2b00 cmp r3, #0
  60952. 8018f2c: d023 beq.n 8018f76 <lwip_sendto+0xb6>
  60953. 8018f2e: 6c7b ldr r3, [r7, #68] @ 0x44
  60954. 8018f30: 2b10 cmp r3, #16
  60955. 8018f32: d10b bne.n 8018f4c <lwip_sendto+0x8c>
  60956. 8018f34: 6c3b ldr r3, [r7, #64] @ 0x40
  60957. 8018f36: 2b00 cmp r3, #0
  60958. 8018f38: d008 beq.n 8018f4c <lwip_sendto+0x8c>
  60959. 8018f3a: 6c3b ldr r3, [r7, #64] @ 0x40
  60960. 8018f3c: 785b ldrb r3, [r3, #1]
  60961. 8018f3e: 2b02 cmp r3, #2
  60962. 8018f40: d104 bne.n 8018f4c <lwip_sendto+0x8c>
  60963. 8018f42: 6c3b ldr r3, [r7, #64] @ 0x40
  60964. 8018f44: f003 0303 and.w r3, r3, #3
  60965. 8018f48: 2b00 cmp r3, #0
  60966. 8018f4a: d014 beq.n 8018f76 <lwip_sendto+0xb6>
  60967. 8018f4c: 4b32 ldr r3, [pc, #200] @ (8019018 <lwip_sendto+0x158>)
  60968. 8018f4e: f240 6252 movw r2, #1618 @ 0x652
  60969. 8018f52: 4932 ldr r1, [pc, #200] @ (801901c <lwip_sendto+0x15c>)
  60970. 8018f54: 4832 ldr r0, [pc, #200] @ (8019020 <lwip_sendto+0x160>)
  60971. 8018f56: f011 fc01 bl 802a75c <iprintf>
  60972. 8018f5a: f06f 000f mvn.w r0, #15
  60973. 8018f5e: f7ff f97d bl 801825c <err_to_errno>
  60974. 8018f62: 62b8 str r0, [r7, #40] @ 0x28
  60975. 8018f64: 6abb ldr r3, [r7, #40] @ 0x28
  60976. 8018f66: 2b00 cmp r3, #0
  60977. 8018f68: d002 beq.n 8018f70 <lwip_sendto+0xb0>
  60978. 8018f6a: 4a2a ldr r2, [pc, #168] @ (8019014 <lwip_sendto+0x154>)
  60979. 8018f6c: 6abb ldr r3, [r7, #40] @ 0x28
  60980. 8018f6e: 6013 str r3, [r2, #0]
  60981. 8018f70: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60982. 8018f74: e049 b.n 801900a <lwip_sendto+0x14a>
  60983. ((to != NULL) && (IS_SOCK_ADDR_TYPE_VALID(to) && IS_SOCK_ADDR_ALIGNED(to))))),
  60984. sock_set_errno(sock, err_to_errno(ERR_ARG)); done_socket(sock); return -1;);
  60985. LWIP_UNUSED_ARG(tolen);
  60986. /* initialize a buffer */
  60987. buf.p = buf.ptr = NULL;
  60988. 8018f76: 2300 movs r3, #0
  60989. 8018f78: 617b str r3, [r7, #20]
  60990. 8018f7a: 697b ldr r3, [r7, #20]
  60991. 8018f7c: 613b str r3, [r7, #16]
  60992. #if LWIP_CHECKSUM_ON_COPY
  60993. buf.flags = 0;
  60994. #endif /* LWIP_CHECKSUM_ON_COPY */
  60995. if (to) {
  60996. 8018f7e: 6c3b ldr r3, [r7, #64] @ 0x40
  60997. 8018f80: 2b00 cmp r3, #0
  60998. 8018f82: d00a beq.n 8018f9a <lwip_sendto+0xda>
  60999. SOCKADDR_TO_IPADDR_PORT(to, &buf.addr, remote_port);
  61000. 8018f84: 6c3b ldr r3, [r7, #64] @ 0x40
  61001. 8018f86: 685b ldr r3, [r3, #4]
  61002. 8018f88: 61bb str r3, [r7, #24]
  61003. 8018f8a: 6c3b ldr r3, [r7, #64] @ 0x40
  61004. 8018f8c: 885b ldrh r3, [r3, #2]
  61005. 8018f8e: 4618 mov r0, r3
  61006. 8018f90: f000 fc8a bl 80198a8 <lwip_htons>
  61007. 8018f94: 4603 mov r3, r0
  61008. 8018f96: 86fb strh r3, [r7, #54] @ 0x36
  61009. 8018f98: e003 b.n 8018fa2 <lwip_sendto+0xe2>
  61010. } else {
  61011. remote_port = 0;
  61012. 8018f9a: 2300 movs r3, #0
  61013. 8018f9c: 86fb strh r3, [r7, #54] @ 0x36
  61014. ip_addr_set_any(NETCONNTYPE_ISIPV6(netconn_type(sock->conn)), &buf.addr);
  61015. 8018f9e: 2300 movs r3, #0
  61016. 8018fa0: 61bb str r3, [r7, #24]
  61017. }
  61018. netbuf_fromport(&buf) = remote_port;
  61019. 8018fa2: 8efb ldrh r3, [r7, #54] @ 0x36
  61020. 8018fa4: 83bb strh r3, [r7, #28]
  61021. MEMCPY(buf.p->payload, data, short_size);
  61022. }
  61023. err = ERR_OK;
  61024. }
  61025. #else /* LWIP_NETIF_TX_SINGLE_PBUF */
  61026. err = netbuf_ref(&buf, data, short_size);
  61027. 8018fa6: 8dfa ldrh r2, [r7, #46] @ 0x2e
  61028. 8018fa8: f107 0310 add.w r3, r7, #16
  61029. 8018fac: 68b9 ldr r1, [r7, #8]
  61030. 8018fae: 4618 mov r0, r3
  61031. 8018fb0: f7ff f9ba bl 8018328 <netbuf_ref>
  61032. 8018fb4: 4603 mov r3, r0
  61033. 8018fb6: f887 302d strb.w r3, [r7, #45] @ 0x2d
  61034. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  61035. if (err == ERR_OK) {
  61036. 8018fba: f997 302d ldrsb.w r3, [r7, #45] @ 0x2d
  61037. 8018fbe: 2b00 cmp r3, #0
  61038. 8018fc0: d10a bne.n 8018fd8 <lwip_sendto+0x118>
  61039. IP_SET_TYPE_VAL(buf.addr, IPADDR_TYPE_V4);
  61040. }
  61041. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  61042. /* send the data */
  61043. err = netconn_send(sock->conn, &buf);
  61044. 8018fc2: 6b3b ldr r3, [r7, #48] @ 0x30
  61045. 8018fc4: 681b ldr r3, [r3, #0]
  61046. 8018fc6: f107 0210 add.w r2, r7, #16
  61047. 8018fca: 4611 mov r1, r2
  61048. 8018fcc: 4618 mov r0, r3
  61049. 8018fce: f7fd fb31 bl 8016634 <netconn_send>
  61050. 8018fd2: 4603 mov r3, r0
  61051. 8018fd4: f887 302d strb.w r3, [r7, #45] @ 0x2d
  61052. }
  61053. /* deallocated the buffer */
  61054. netbuf_free(&buf);
  61055. 8018fd8: f107 0310 add.w r3, r7, #16
  61056. 8018fdc: 4618 mov r0, r3
  61057. 8018fde: f7ff f97b bl 80182d8 <netbuf_free>
  61058. sock_set_errno(sock, err_to_errno(err));
  61059. 8018fe2: f997 302d ldrsb.w r3, [r7, #45] @ 0x2d
  61060. 8018fe6: 4618 mov r0, r3
  61061. 8018fe8: f7ff f938 bl 801825c <err_to_errno>
  61062. 8018fec: 6278 str r0, [r7, #36] @ 0x24
  61063. 8018fee: 6a7b ldr r3, [r7, #36] @ 0x24
  61064. 8018ff0: 2b00 cmp r3, #0
  61065. 8018ff2: d002 beq.n 8018ffa <lwip_sendto+0x13a>
  61066. 8018ff4: 4a07 ldr r2, [pc, #28] @ (8019014 <lwip_sendto+0x154>)
  61067. 8018ff6: 6a7b ldr r3, [r7, #36] @ 0x24
  61068. 8018ff8: 6013 str r3, [r2, #0]
  61069. done_socket(sock);
  61070. return (err == ERR_OK ? short_size : -1);
  61071. 8018ffa: f997 302d ldrsb.w r3, [r7, #45] @ 0x2d
  61072. 8018ffe: 2b00 cmp r3, #0
  61073. 8019000: d101 bne.n 8019006 <lwip_sendto+0x146>
  61074. 8019002: 8dfb ldrh r3, [r7, #46] @ 0x2e
  61075. 8019004: e001 b.n 801900a <lwip_sendto+0x14a>
  61076. 8019006: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  61077. }
  61078. 801900a: 4618 mov r0, r3
  61079. 801900c: 3738 adds r7, #56 @ 0x38
  61080. 801900e: 46bd mov sp, r7
  61081. 8019010: bd80 pop {r7, pc}
  61082. 8019012: bf00 nop
  61083. 8019014: 2402b260 .word 0x2402b260
  61084. 8019018: 0802e4b0 .word 0x0802e4b0
  61085. 801901c: 0802e790 .word 0x0802e790
  61086. 8019020: 0802e504 .word 0x0802e504
  61087. 08019024 <lwip_socket>:
  61088. int
  61089. lwip_socket(int domain, int type, int protocol)
  61090. {
  61091. 8019024: b580 push {r7, lr}
  61092. 8019026: b086 sub sp, #24
  61093. 8019028: af00 add r7, sp, #0
  61094. 801902a: 60f8 str r0, [r7, #12]
  61095. 801902c: 60b9 str r1, [r7, #8]
  61096. 801902e: 607a str r2, [r7, #4]
  61097. int i;
  61098. LWIP_UNUSED_ARG(domain); /* @todo: check this */
  61099. /* create a netconn */
  61100. switch (type) {
  61101. 8019030: 68bb ldr r3, [r7, #8]
  61102. 8019032: 2b03 cmp r3, #3
  61103. 8019034: d009 beq.n 801904a <lwip_socket+0x26>
  61104. 8019036: 68bb ldr r3, [r7, #8]
  61105. 8019038: 2b03 cmp r3, #3
  61106. 801903a: dc23 bgt.n 8019084 <lwip_socket+0x60>
  61107. 801903c: 68bb ldr r3, [r7, #8]
  61108. 801903e: 2b01 cmp r3, #1
  61109. 8019040: d019 beq.n 8019076 <lwip_socket+0x52>
  61110. 8019042: 68bb ldr r3, [r7, #8]
  61111. 8019044: 2b02 cmp r3, #2
  61112. 8019046: d009 beq.n 801905c <lwip_socket+0x38>
  61113. 8019048: e01c b.n 8019084 <lwip_socket+0x60>
  61114. case SOCK_RAW:
  61115. conn = netconn_new_with_proto_and_callback(DOMAIN_TO_NETCONN_TYPE(domain, NETCONN_RAW),
  61116. 801904a: 687b ldr r3, [r7, #4]
  61117. 801904c: b2db uxtb r3, r3
  61118. 801904e: 4a22 ldr r2, [pc, #136] @ (80190d8 <lwip_socket+0xb4>)
  61119. 8019050: 4619 mov r1, r3
  61120. 8019052: 2040 movs r0, #64 @ 0x40
  61121. 8019054: f7fc ff60 bl 8015f18 <netconn_new_with_proto_and_callback>
  61122. 8019058: 6178 str r0, [r7, #20]
  61123. (u8_t)protocol, DEFAULT_SOCKET_EVENTCB);
  61124. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%s, SOCK_RAW, %d) = ",
  61125. domain == PF_INET ? "PF_INET" : "UNKNOWN", protocol));
  61126. break;
  61127. 801905a: e019 b.n 8019090 <lwip_socket+0x6c>
  61128. case SOCK_DGRAM:
  61129. conn = netconn_new_with_callback(DOMAIN_TO_NETCONN_TYPE(domain,
  61130. 801905c: 687b ldr r3, [r7, #4]
  61131. 801905e: 2b88 cmp r3, #136 @ 0x88
  61132. 8019060: d101 bne.n 8019066 <lwip_socket+0x42>
  61133. 8019062: 2321 movs r3, #33 @ 0x21
  61134. 8019064: e000 b.n 8019068 <lwip_socket+0x44>
  61135. 8019066: 2320 movs r3, #32
  61136. 8019068: 4a1b ldr r2, [pc, #108] @ (80190d8 <lwip_socket+0xb4>)
  61137. 801906a: 2100 movs r1, #0
  61138. 801906c: 4618 mov r0, r3
  61139. 801906e: f7fc ff53 bl 8015f18 <netconn_new_with_proto_and_callback>
  61140. 8019072: 6178 str r0, [r7, #20]
  61141. if (conn) {
  61142. /* netconn layer enables pktinfo by default, sockets default to off */
  61143. conn->flags &= ~NETCONN_FLAG_PKTINFO;
  61144. }
  61145. #endif /* LWIP_NETBUF_RECVINFO */
  61146. break;
  61147. 8019074: e00c b.n 8019090 <lwip_socket+0x6c>
  61148. case SOCK_STREAM:
  61149. conn = netconn_new_with_callback(DOMAIN_TO_NETCONN_TYPE(domain, NETCONN_TCP), DEFAULT_SOCKET_EVENTCB);
  61150. 8019076: 4a18 ldr r2, [pc, #96] @ (80190d8 <lwip_socket+0xb4>)
  61151. 8019078: 2100 movs r1, #0
  61152. 801907a: 2010 movs r0, #16
  61153. 801907c: f7fc ff4c bl 8015f18 <netconn_new_with_proto_and_callback>
  61154. 8019080: 6178 str r0, [r7, #20]
  61155. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%s, SOCK_STREAM, %d) = ",
  61156. domain == PF_INET ? "PF_INET" : "UNKNOWN", protocol));
  61157. break;
  61158. 8019082: e005 b.n 8019090 <lwip_socket+0x6c>
  61159. default:
  61160. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%d, %d/UNKNOWN, %d) = -1\n",
  61161. domain, type, protocol));
  61162. set_errno(EINVAL);
  61163. 8019084: 4b15 ldr r3, [pc, #84] @ (80190dc <lwip_socket+0xb8>)
  61164. 8019086: 2216 movs r2, #22
  61165. 8019088: 601a str r2, [r3, #0]
  61166. return -1;
  61167. 801908a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  61168. 801908e: e01e b.n 80190ce <lwip_socket+0xaa>
  61169. }
  61170. if (!conn) {
  61171. 8019090: 697b ldr r3, [r7, #20]
  61172. 8019092: 2b00 cmp r3, #0
  61173. 8019094: d105 bne.n 80190a2 <lwip_socket+0x7e>
  61174. LWIP_DEBUGF(SOCKETS_DEBUG, ("-1 / ENOBUFS (could not create netconn)\n"));
  61175. set_errno(ENOBUFS);
  61176. 8019096: 4b11 ldr r3, [pc, #68] @ (80190dc <lwip_socket+0xb8>)
  61177. 8019098: 2269 movs r2, #105 @ 0x69
  61178. 801909a: 601a str r2, [r3, #0]
  61179. return -1;
  61180. 801909c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  61181. 80190a0: e015 b.n 80190ce <lwip_socket+0xaa>
  61182. }
  61183. i = alloc_socket(conn, 0);
  61184. 80190a2: 2100 movs r1, #0
  61185. 80190a4: 6978 ldr r0, [r7, #20]
  61186. 80190a6: f7ff f9df bl 8018468 <alloc_socket>
  61187. 80190aa: 6138 str r0, [r7, #16]
  61188. if (i == -1) {
  61189. 80190ac: 693b ldr r3, [r7, #16]
  61190. 80190ae: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  61191. 80190b2: d108 bne.n 80190c6 <lwip_socket+0xa2>
  61192. netconn_delete(conn);
  61193. 80190b4: 6978 ldr r0, [r7, #20]
  61194. 80190b6: f7fc ffcd bl 8016054 <netconn_delete>
  61195. set_errno(ENFILE);
  61196. 80190ba: 4b08 ldr r3, [pc, #32] @ (80190dc <lwip_socket+0xb8>)
  61197. 80190bc: 2217 movs r2, #23
  61198. 80190be: 601a str r2, [r3, #0]
  61199. return -1;
  61200. 80190c0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  61201. 80190c4: e003 b.n 80190ce <lwip_socket+0xaa>
  61202. }
  61203. conn->socket = i;
  61204. 80190c6: 697b ldr r3, [r7, #20]
  61205. 80190c8: 693a ldr r2, [r7, #16]
  61206. 80190ca: 619a str r2, [r3, #24]
  61207. done_socket(&sockets[i - LWIP_SOCKET_OFFSET]);
  61208. LWIP_DEBUGF(SOCKETS_DEBUG, ("%d\n", i));
  61209. set_errno(0);
  61210. return i;
  61211. 80190cc: 693b ldr r3, [r7, #16]
  61212. }
  61213. 80190ce: 4618 mov r0, r3
  61214. 80190d0: 3718 adds r7, #24
  61215. 80190d2: 46bd mov sp, r7
  61216. 80190d4: bd80 pop {r7, pc}
  61217. 80190d6: bf00 nop
  61218. 80190d8: 08019169 .word 0x08019169
  61219. 80190dc: 2402b260 .word 0x2402b260
  61220. 080190e0 <lwip_poll_should_wake>:
  61221. * Check whether event_callback should wake up a thread waiting in
  61222. * lwip_poll.
  61223. */
  61224. static int
  61225. lwip_poll_should_wake(const struct lwip_select_cb *scb, int fd, int has_recvevent, int has_sendevent, int has_errevent)
  61226. {
  61227. 80190e0: b480 push {r7}
  61228. 80190e2: b087 sub sp, #28
  61229. 80190e4: af00 add r7, sp, #0
  61230. 80190e6: 60f8 str r0, [r7, #12]
  61231. 80190e8: 60b9 str r1, [r7, #8]
  61232. 80190ea: 607a str r2, [r7, #4]
  61233. 80190ec: 603b str r3, [r7, #0]
  61234. nfds_t fdi;
  61235. for (fdi = 0; fdi < scb->poll_nfds; fdi++) {
  61236. 80190ee: 2300 movs r3, #0
  61237. 80190f0: 617b str r3, [r7, #20]
  61238. 80190f2: e02c b.n 801914e <lwip_poll_should_wake+0x6e>
  61239. const struct pollfd *pollfd = &scb->poll_fds[fdi];
  61240. 80190f4: 68fb ldr r3, [r7, #12]
  61241. 80190f6: 695a ldr r2, [r3, #20]
  61242. 80190f8: 697b ldr r3, [r7, #20]
  61243. 80190fa: 00db lsls r3, r3, #3
  61244. 80190fc: 4413 add r3, r2
  61245. 80190fe: 613b str r3, [r7, #16]
  61246. if (pollfd->fd == fd) {
  61247. 8019100: 693b ldr r3, [r7, #16]
  61248. 8019102: 681b ldr r3, [r3, #0]
  61249. 8019104: 68ba ldr r2, [r7, #8]
  61250. 8019106: 429a cmp r2, r3
  61251. 8019108: d11e bne.n 8019148 <lwip_poll_should_wake+0x68>
  61252. /* Do not update pollfd->revents right here;
  61253. that would be a data race because lwip_pollscan
  61254. accesses revents without protecting. */
  61255. if (has_recvevent && (pollfd->events & POLLIN) != 0) {
  61256. 801910a: 687b ldr r3, [r7, #4]
  61257. 801910c: 2b00 cmp r3, #0
  61258. 801910e: d009 beq.n 8019124 <lwip_poll_should_wake+0x44>
  61259. 8019110: 693b ldr r3, [r7, #16]
  61260. 8019112: f9b3 3004 ldrsh.w r3, [r3, #4]
  61261. 8019116: b29b uxth r3, r3
  61262. 8019118: f003 0301 and.w r3, r3, #1
  61263. 801911c: 2b00 cmp r3, #0
  61264. 801911e: d001 beq.n 8019124 <lwip_poll_should_wake+0x44>
  61265. return 1;
  61266. 8019120: 2301 movs r3, #1
  61267. 8019122: e01a b.n 801915a <lwip_poll_should_wake+0x7a>
  61268. }
  61269. if (has_sendevent && (pollfd->events & POLLOUT) != 0) {
  61270. 8019124: 683b ldr r3, [r7, #0]
  61271. 8019126: 2b00 cmp r3, #0
  61272. 8019128: d009 beq.n 801913e <lwip_poll_should_wake+0x5e>
  61273. 801912a: 693b ldr r3, [r7, #16]
  61274. 801912c: f9b3 3004 ldrsh.w r3, [r3, #4]
  61275. 8019130: b29b uxth r3, r3
  61276. 8019132: f003 0302 and.w r3, r3, #2
  61277. 8019136: 2b00 cmp r3, #0
  61278. 8019138: d001 beq.n 801913e <lwip_poll_should_wake+0x5e>
  61279. return 1;
  61280. 801913a: 2301 movs r3, #1
  61281. 801913c: e00d b.n 801915a <lwip_poll_should_wake+0x7a>
  61282. }
  61283. if (has_errevent) {
  61284. 801913e: 6a3b ldr r3, [r7, #32]
  61285. 8019140: 2b00 cmp r3, #0
  61286. 8019142: d001 beq.n 8019148 <lwip_poll_should_wake+0x68>
  61287. /* POLLERR is output only. */
  61288. return 1;
  61289. 8019144: 2301 movs r3, #1
  61290. 8019146: e008 b.n 801915a <lwip_poll_should_wake+0x7a>
  61291. for (fdi = 0; fdi < scb->poll_nfds; fdi++) {
  61292. 8019148: 697b ldr r3, [r7, #20]
  61293. 801914a: 3301 adds r3, #1
  61294. 801914c: 617b str r3, [r7, #20]
  61295. 801914e: 68fb ldr r3, [r7, #12]
  61296. 8019150: 699b ldr r3, [r3, #24]
  61297. 8019152: 697a ldr r2, [r7, #20]
  61298. 8019154: 429a cmp r2, r3
  61299. 8019156: d3cd bcc.n 80190f4 <lwip_poll_should_wake+0x14>
  61300. }
  61301. }
  61302. }
  61303. return 0;
  61304. 8019158: 2300 movs r3, #0
  61305. }
  61306. 801915a: 4618 mov r0, r3
  61307. 801915c: 371c adds r7, #28
  61308. 801915e: 46bd mov sp, r7
  61309. 8019160: f85d 7b04 ldr.w r7, [sp], #4
  61310. 8019164: 4770 bx lr
  61311. ...
  61312. 08019168 <event_callback>:
  61313. * NETCONN_EVT_ERROR
  61314. * This requirement will be asserted in select_check_waiters()
  61315. */
  61316. static void
  61317. event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
  61318. {
  61319. 8019168: b580 push {r7, lr}
  61320. 801916a: b08a sub sp, #40 @ 0x28
  61321. 801916c: af00 add r7, sp, #0
  61322. 801916e: 6078 str r0, [r7, #4]
  61323. 8019170: 460b mov r3, r1
  61324. 8019172: 70fb strb r3, [r7, #3]
  61325. 8019174: 4613 mov r3, r2
  61326. 8019176: 803b strh r3, [r7, #0]
  61327. SYS_ARCH_DECL_PROTECT(lev);
  61328. LWIP_UNUSED_ARG(len);
  61329. /* Get socket */
  61330. if (conn) {
  61331. 8019178: 687b ldr r3, [r7, #4]
  61332. 801917a: 2b00 cmp r3, #0
  61333. 801917c: f000 80a4 beq.w 80192c8 <event_callback+0x160>
  61334. s = conn->socket;
  61335. 8019180: 687b ldr r3, [r7, #4]
  61336. 8019182: 699b ldr r3, [r3, #24]
  61337. 8019184: 627b str r3, [r7, #36] @ 0x24
  61338. if (s < 0) {
  61339. 8019186: 6a7b ldr r3, [r7, #36] @ 0x24
  61340. 8019188: 2b00 cmp r3, #0
  61341. 801918a: da18 bge.n 80191be <event_callback+0x56>
  61342. /* Data comes in right away after an accept, even though
  61343. * the server task might not have created a new socket yet.
  61344. * Just count down (or up) if that's the case and we
  61345. * will use the data later. Note that only receive events
  61346. * can happen before the new socket is set up. */
  61347. SYS_ARCH_PROTECT(lev);
  61348. 801918c: f00e f850 bl 8027230 <sys_arch_protect>
  61349. 8019190: 61f8 str r0, [r7, #28]
  61350. if (conn->socket < 0) {
  61351. 8019192: 687b ldr r3, [r7, #4]
  61352. 8019194: 699b ldr r3, [r3, #24]
  61353. 8019196: 2b00 cmp r3, #0
  61354. 8019198: da0b bge.n 80191b2 <event_callback+0x4a>
  61355. if (evt == NETCONN_EVT_RCVPLUS) {
  61356. 801919a: 78fb ldrb r3, [r7, #3]
  61357. 801919c: 2b00 cmp r3, #0
  61358. 801919e: d104 bne.n 80191aa <event_callback+0x42>
  61359. /* conn->socket is -1 on initialization
  61360. lwip_accept adjusts sock->recvevent if conn->socket < -1 */
  61361. conn->socket--;
  61362. 80191a0: 687b ldr r3, [r7, #4]
  61363. 80191a2: 699b ldr r3, [r3, #24]
  61364. 80191a4: 1e5a subs r2, r3, #1
  61365. 80191a6: 687b ldr r3, [r7, #4]
  61366. 80191a8: 619a str r2, [r3, #24]
  61367. }
  61368. SYS_ARCH_UNPROTECT(lev);
  61369. 80191aa: 69f8 ldr r0, [r7, #28]
  61370. 80191ac: f00e f84e bl 802724c <sys_arch_unprotect>
  61371. return;
  61372. 80191b0: e08d b.n 80192ce <event_callback+0x166>
  61373. }
  61374. s = conn->socket;
  61375. 80191b2: 687b ldr r3, [r7, #4]
  61376. 80191b4: 699b ldr r3, [r3, #24]
  61377. 80191b6: 627b str r3, [r7, #36] @ 0x24
  61378. SYS_ARCH_UNPROTECT(lev);
  61379. 80191b8: 69f8 ldr r0, [r7, #28]
  61380. 80191ba: f00e f847 bl 802724c <sys_arch_unprotect>
  61381. }
  61382. sock = get_socket(s);
  61383. 80191be: 6a78 ldr r0, [r7, #36] @ 0x24
  61384. 80191c0: f7ff f93a bl 8018438 <get_socket>
  61385. 80191c4: 61b8 str r0, [r7, #24]
  61386. if (!sock) {
  61387. 80191c6: 69bb ldr r3, [r7, #24]
  61388. 80191c8: 2b00 cmp r3, #0
  61389. 80191ca: d07f beq.n 80192cc <event_callback+0x164>
  61390. }
  61391. } else {
  61392. return;
  61393. }
  61394. check_waiters = 1;
  61395. 80191cc: 2301 movs r3, #1
  61396. 80191ce: 623b str r3, [r7, #32]
  61397. SYS_ARCH_PROTECT(lev);
  61398. 80191d0: f00e f82e bl 8027230 <sys_arch_protect>
  61399. 80191d4: 61f8 str r0, [r7, #28]
  61400. /* Set event as required */
  61401. switch (evt) {
  61402. 80191d6: 78fb ldrb r3, [r7, #3]
  61403. 80191d8: 2b04 cmp r3, #4
  61404. 80191da: d83e bhi.n 801925a <event_callback+0xf2>
  61405. 80191dc: a201 add r2, pc, #4 @ (adr r2, 80191e4 <event_callback+0x7c>)
  61406. 80191de: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  61407. 80191e2: bf00 nop
  61408. 80191e4: 080191f9 .word 0x080191f9
  61409. 80191e8: 0801921b .word 0x0801921b
  61410. 80191ec: 08019233 .word 0x08019233
  61411. 80191f0: 08019247 .word 0x08019247
  61412. 80191f4: 08019253 .word 0x08019253
  61413. case NETCONN_EVT_RCVPLUS:
  61414. sock->rcvevent++;
  61415. 80191f8: 69bb ldr r3, [r7, #24]
  61416. 80191fa: f9b3 3008 ldrsh.w r3, [r3, #8]
  61417. 80191fe: b29b uxth r3, r3
  61418. 8019200: 3301 adds r3, #1
  61419. 8019202: b29b uxth r3, r3
  61420. 8019204: b21a sxth r2, r3
  61421. 8019206: 69bb ldr r3, [r7, #24]
  61422. 8019208: 811a strh r2, [r3, #8]
  61423. if (sock->rcvevent > 1) {
  61424. 801920a: 69bb ldr r3, [r7, #24]
  61425. 801920c: f9b3 3008 ldrsh.w r3, [r3, #8]
  61426. 8019210: 2b01 cmp r3, #1
  61427. 8019212: dd2a ble.n 801926a <event_callback+0x102>
  61428. check_waiters = 0;
  61429. 8019214: 2300 movs r3, #0
  61430. 8019216: 623b str r3, [r7, #32]
  61431. }
  61432. break;
  61433. 8019218: e027 b.n 801926a <event_callback+0x102>
  61434. case NETCONN_EVT_RCVMINUS:
  61435. sock->rcvevent--;
  61436. 801921a: 69bb ldr r3, [r7, #24]
  61437. 801921c: f9b3 3008 ldrsh.w r3, [r3, #8]
  61438. 8019220: b29b uxth r3, r3
  61439. 8019222: 3b01 subs r3, #1
  61440. 8019224: b29b uxth r3, r3
  61441. 8019226: b21a sxth r2, r3
  61442. 8019228: 69bb ldr r3, [r7, #24]
  61443. 801922a: 811a strh r2, [r3, #8]
  61444. check_waiters = 0;
  61445. 801922c: 2300 movs r3, #0
  61446. 801922e: 623b str r3, [r7, #32]
  61447. break;
  61448. 8019230: e01c b.n 801926c <event_callback+0x104>
  61449. case NETCONN_EVT_SENDPLUS:
  61450. if (sock->sendevent) {
  61451. 8019232: 69bb ldr r3, [r7, #24]
  61452. 8019234: 895b ldrh r3, [r3, #10]
  61453. 8019236: 2b00 cmp r3, #0
  61454. 8019238: d001 beq.n 801923e <event_callback+0xd6>
  61455. check_waiters = 0;
  61456. 801923a: 2300 movs r3, #0
  61457. 801923c: 623b str r3, [r7, #32]
  61458. }
  61459. sock->sendevent = 1;
  61460. 801923e: 69bb ldr r3, [r7, #24]
  61461. 8019240: 2201 movs r2, #1
  61462. 8019242: 815a strh r2, [r3, #10]
  61463. break;
  61464. 8019244: e012 b.n 801926c <event_callback+0x104>
  61465. case NETCONN_EVT_SENDMINUS:
  61466. sock->sendevent = 0;
  61467. 8019246: 69bb ldr r3, [r7, #24]
  61468. 8019248: 2200 movs r2, #0
  61469. 801924a: 815a strh r2, [r3, #10]
  61470. check_waiters = 0;
  61471. 801924c: 2300 movs r3, #0
  61472. 801924e: 623b str r3, [r7, #32]
  61473. break;
  61474. 8019250: e00c b.n 801926c <event_callback+0x104>
  61475. case NETCONN_EVT_ERROR:
  61476. sock->errevent = 1;
  61477. 8019252: 69bb ldr r3, [r7, #24]
  61478. 8019254: 2201 movs r2, #1
  61479. 8019256: 819a strh r2, [r3, #12]
  61480. break;
  61481. 8019258: e008 b.n 801926c <event_callback+0x104>
  61482. default:
  61483. LWIP_ASSERT("unknown event", 0);
  61484. 801925a: 4b1e ldr r3, [pc, #120] @ (80192d4 <event_callback+0x16c>)
  61485. 801925c: f44f 621f mov.w r2, #2544 @ 0x9f0
  61486. 8019260: 491d ldr r1, [pc, #116] @ (80192d8 <event_callback+0x170>)
  61487. 8019262: 481e ldr r0, [pc, #120] @ (80192dc <event_callback+0x174>)
  61488. 8019264: f011 fa7a bl 802a75c <iprintf>
  61489. break;
  61490. 8019268: e000 b.n 801926c <event_callback+0x104>
  61491. break;
  61492. 801926a: bf00 nop
  61493. }
  61494. if (sock->select_waiting && check_waiters) {
  61495. 801926c: 69bb ldr r3, [r7, #24]
  61496. 801926e: 7b9b ldrb r3, [r3, #14]
  61497. 8019270: 2b00 cmp r3, #0
  61498. 8019272: d025 beq.n 80192c0 <event_callback+0x158>
  61499. 8019274: 6a3b ldr r3, [r7, #32]
  61500. 8019276: 2b00 cmp r3, #0
  61501. 8019278: d022 beq.n 80192c0 <event_callback+0x158>
  61502. /* Save which events are active */
  61503. int has_recvevent, has_sendevent, has_errevent;
  61504. has_recvevent = sock->rcvevent > 0;
  61505. 801927a: 69bb ldr r3, [r7, #24]
  61506. 801927c: f9b3 3008 ldrsh.w r3, [r3, #8]
  61507. 8019280: 2b00 cmp r3, #0
  61508. 8019282: bfcc ite gt
  61509. 8019284: 2301 movgt r3, #1
  61510. 8019286: 2300 movle r3, #0
  61511. 8019288: b2db uxtb r3, r3
  61512. 801928a: 617b str r3, [r7, #20]
  61513. has_sendevent = sock->sendevent != 0;
  61514. 801928c: 69bb ldr r3, [r7, #24]
  61515. 801928e: 895b ldrh r3, [r3, #10]
  61516. 8019290: 2b00 cmp r3, #0
  61517. 8019292: bf14 ite ne
  61518. 8019294: 2301 movne r3, #1
  61519. 8019296: 2300 moveq r3, #0
  61520. 8019298: b2db uxtb r3, r3
  61521. 801929a: 613b str r3, [r7, #16]
  61522. has_errevent = sock->errevent != 0;
  61523. 801929c: 69bb ldr r3, [r7, #24]
  61524. 801929e: 899b ldrh r3, [r3, #12]
  61525. 80192a0: 2b00 cmp r3, #0
  61526. 80192a2: bf14 ite ne
  61527. 80192a4: 2301 movne r3, #1
  61528. 80192a6: 2300 moveq r3, #0
  61529. 80192a8: b2db uxtb r3, r3
  61530. 80192aa: 60fb str r3, [r7, #12]
  61531. SYS_ARCH_UNPROTECT(lev);
  61532. 80192ac: 69f8 ldr r0, [r7, #28]
  61533. 80192ae: f00d ffcd bl 802724c <sys_arch_unprotect>
  61534. /* Check any select calls waiting on this socket */
  61535. select_check_waiters(s, has_recvevent, has_sendevent, has_errevent);
  61536. 80192b2: 68fb ldr r3, [r7, #12]
  61537. 80192b4: 693a ldr r2, [r7, #16]
  61538. 80192b6: 6979 ldr r1, [r7, #20]
  61539. 80192b8: 6a78 ldr r0, [r7, #36] @ 0x24
  61540. 80192ba: f000 f811 bl 80192e0 <select_check_waiters>
  61541. if (sock->select_waiting && check_waiters) {
  61542. 80192be: e006 b.n 80192ce <event_callback+0x166>
  61543. } else {
  61544. SYS_ARCH_UNPROTECT(lev);
  61545. 80192c0: 69f8 ldr r0, [r7, #28]
  61546. 80192c2: f00d ffc3 bl 802724c <sys_arch_unprotect>
  61547. 80192c6: e002 b.n 80192ce <event_callback+0x166>
  61548. return;
  61549. 80192c8: bf00 nop
  61550. 80192ca: e000 b.n 80192ce <event_callback+0x166>
  61551. return;
  61552. 80192cc: bf00 nop
  61553. }
  61554. done_socket(sock);
  61555. }
  61556. 80192ce: 3728 adds r7, #40 @ 0x28
  61557. 80192d0: 46bd mov sp, r7
  61558. 80192d2: bd80 pop {r7, pc}
  61559. 80192d4: 0802e4b0 .word 0x0802e4b0
  61560. 80192d8: 0802e82c .word 0x0802e82c
  61561. 80192dc: 0802e504 .word 0x0802e504
  61562. 080192e0 <select_check_waiters>:
  61563. * of the loop, thus creating a possibility where a thread could modify the
  61564. * select_cb_list during our UNPROTECT/PROTECT. We use a generational counter to
  61565. * detect this change and restart the list walk. The list is expected to be small
  61566. */
  61567. static void select_check_waiters(int s, int has_recvevent, int has_sendevent, int has_errevent)
  61568. {
  61569. 80192e0: b580 push {r7, lr}
  61570. 80192e2: b088 sub sp, #32
  61571. 80192e4: af02 add r7, sp, #8
  61572. 80192e6: 60f8 str r0, [r7, #12]
  61573. 80192e8: 60b9 str r1, [r7, #8]
  61574. 80192ea: 607a str r2, [r7, #4]
  61575. 80192ec: 603b str r3, [r7, #0]
  61576. #if !LWIP_TCPIP_CORE_LOCKING
  61577. int last_select_cb_ctr;
  61578. SYS_ARCH_DECL_PROTECT(lev);
  61579. #endif /* !LWIP_TCPIP_CORE_LOCKING */
  61580. LWIP_ASSERT_CORE_LOCKED();
  61581. 80192ee: f7f7 fe07 bl 8010f00 <sys_check_core_locking>
  61582. SYS_ARCH_PROTECT(lev);
  61583. again:
  61584. /* remember the state of select_cb_list to detect changes */
  61585. last_select_cb_ctr = select_cb_ctr;
  61586. #endif /* !LWIP_TCPIP_CORE_LOCKING */
  61587. for (scb = select_cb_list; scb != NULL; scb = scb->next) {
  61588. 80192f2: 4b42 ldr r3, [pc, #264] @ (80193fc <select_check_waiters+0x11c>)
  61589. 80192f4: 681b ldr r3, [r3, #0]
  61590. 80192f6: 617b str r3, [r7, #20]
  61591. 80192f8: e078 b.n 80193ec <select_check_waiters+0x10c>
  61592. if (scb->sem_signalled == 0) {
  61593. 80192fa: 697b ldr r3, [r7, #20]
  61594. 80192fc: 69db ldr r3, [r3, #28]
  61595. 80192fe: 2b00 cmp r3, #0
  61596. 8019300: d171 bne.n 80193e6 <select_check_waiters+0x106>
  61597. /* semaphore not signalled yet */
  61598. int do_signal = 0;
  61599. 8019302: 2300 movs r3, #0
  61600. 8019304: 613b str r3, [r7, #16]
  61601. #if LWIP_SOCKET_POLL
  61602. if (scb->poll_fds != NULL) {
  61603. 8019306: 697b ldr r3, [r7, #20]
  61604. 8019308: 695b ldr r3, [r3, #20]
  61605. 801930a: 2b00 cmp r3, #0
  61606. 801930c: d009 beq.n 8019322 <select_check_waiters+0x42>
  61607. do_signal = lwip_poll_should_wake(scb, s, has_recvevent, has_sendevent, has_errevent);
  61608. 801930e: 683b ldr r3, [r7, #0]
  61609. 8019310: 9300 str r3, [sp, #0]
  61610. 8019312: 687b ldr r3, [r7, #4]
  61611. 8019314: 68ba ldr r2, [r7, #8]
  61612. 8019316: 68f9 ldr r1, [r7, #12]
  61613. 8019318: 6978 ldr r0, [r7, #20]
  61614. 801931a: f7ff fee1 bl 80190e0 <lwip_poll_should_wake>
  61615. 801931e: 6138 str r0, [r7, #16]
  61616. 8019320: e056 b.n 80193d0 <select_check_waiters+0xf0>
  61617. else
  61618. #endif /* LWIP_SOCKET_SELECT && LWIP_SOCKET_POLL */
  61619. #if LWIP_SOCKET_SELECT
  61620. {
  61621. /* Test this select call for our socket */
  61622. if (has_recvevent) {
  61623. 8019322: 68bb ldr r3, [r7, #8]
  61624. 8019324: 2b00 cmp r3, #0
  61625. 8019326: d017 beq.n 8019358 <select_check_waiters+0x78>
  61626. if (scb->readset && FD_ISSET(s, scb->readset)) {
  61627. 8019328: 697b ldr r3, [r7, #20]
  61628. 801932a: 689b ldr r3, [r3, #8]
  61629. 801932c: 2b00 cmp r3, #0
  61630. 801932e: d013 beq.n 8019358 <select_check_waiters+0x78>
  61631. 8019330: 697b ldr r3, [r7, #20]
  61632. 8019332: 689a ldr r2, [r3, #8]
  61633. 8019334: 68fb ldr r3, [r7, #12]
  61634. 8019336: 2b00 cmp r3, #0
  61635. 8019338: da00 bge.n 801933c <select_check_waiters+0x5c>
  61636. 801933a: 331f adds r3, #31
  61637. 801933c: 115b asrs r3, r3, #5
  61638. 801933e: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  61639. 8019342: 68fb ldr r3, [r7, #12]
  61640. 8019344: f003 031f and.w r3, r3, #31
  61641. 8019348: fa22 f303 lsr.w r3, r2, r3
  61642. 801934c: f003 0301 and.w r3, r3, #1
  61643. 8019350: 2b00 cmp r3, #0
  61644. 8019352: d001 beq.n 8019358 <select_check_waiters+0x78>
  61645. do_signal = 1;
  61646. 8019354: 2301 movs r3, #1
  61647. 8019356: 613b str r3, [r7, #16]
  61648. }
  61649. }
  61650. if (has_sendevent) {
  61651. 8019358: 687b ldr r3, [r7, #4]
  61652. 801935a: 2b00 cmp r3, #0
  61653. 801935c: d01a beq.n 8019394 <select_check_waiters+0xb4>
  61654. if (!do_signal && scb->writeset && FD_ISSET(s, scb->writeset)) {
  61655. 801935e: 693b ldr r3, [r7, #16]
  61656. 8019360: 2b00 cmp r3, #0
  61657. 8019362: d117 bne.n 8019394 <select_check_waiters+0xb4>
  61658. 8019364: 697b ldr r3, [r7, #20]
  61659. 8019366: 68db ldr r3, [r3, #12]
  61660. 8019368: 2b00 cmp r3, #0
  61661. 801936a: d013 beq.n 8019394 <select_check_waiters+0xb4>
  61662. 801936c: 697b ldr r3, [r7, #20]
  61663. 801936e: 68da ldr r2, [r3, #12]
  61664. 8019370: 68fb ldr r3, [r7, #12]
  61665. 8019372: 2b00 cmp r3, #0
  61666. 8019374: da00 bge.n 8019378 <select_check_waiters+0x98>
  61667. 8019376: 331f adds r3, #31
  61668. 8019378: 115b asrs r3, r3, #5
  61669. 801937a: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  61670. 801937e: 68fb ldr r3, [r7, #12]
  61671. 8019380: f003 031f and.w r3, r3, #31
  61672. 8019384: fa22 f303 lsr.w r3, r2, r3
  61673. 8019388: f003 0301 and.w r3, r3, #1
  61674. 801938c: 2b00 cmp r3, #0
  61675. 801938e: d001 beq.n 8019394 <select_check_waiters+0xb4>
  61676. do_signal = 1;
  61677. 8019390: 2301 movs r3, #1
  61678. 8019392: 613b str r3, [r7, #16]
  61679. }
  61680. }
  61681. if (has_errevent) {
  61682. 8019394: 683b ldr r3, [r7, #0]
  61683. 8019396: 2b00 cmp r3, #0
  61684. 8019398: d01a beq.n 80193d0 <select_check_waiters+0xf0>
  61685. if (!do_signal && scb->exceptset && FD_ISSET(s, scb->exceptset)) {
  61686. 801939a: 693b ldr r3, [r7, #16]
  61687. 801939c: 2b00 cmp r3, #0
  61688. 801939e: d117 bne.n 80193d0 <select_check_waiters+0xf0>
  61689. 80193a0: 697b ldr r3, [r7, #20]
  61690. 80193a2: 691b ldr r3, [r3, #16]
  61691. 80193a4: 2b00 cmp r3, #0
  61692. 80193a6: d013 beq.n 80193d0 <select_check_waiters+0xf0>
  61693. 80193a8: 697b ldr r3, [r7, #20]
  61694. 80193aa: 691a ldr r2, [r3, #16]
  61695. 80193ac: 68fb ldr r3, [r7, #12]
  61696. 80193ae: 2b00 cmp r3, #0
  61697. 80193b0: da00 bge.n 80193b4 <select_check_waiters+0xd4>
  61698. 80193b2: 331f adds r3, #31
  61699. 80193b4: 115b asrs r3, r3, #5
  61700. 80193b6: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  61701. 80193ba: 68fb ldr r3, [r7, #12]
  61702. 80193bc: f003 031f and.w r3, r3, #31
  61703. 80193c0: fa22 f303 lsr.w r3, r2, r3
  61704. 80193c4: f003 0301 and.w r3, r3, #1
  61705. 80193c8: 2b00 cmp r3, #0
  61706. 80193ca: d001 beq.n 80193d0 <select_check_waiters+0xf0>
  61707. do_signal = 1;
  61708. 80193cc: 2301 movs r3, #1
  61709. 80193ce: 613b str r3, [r7, #16]
  61710. }
  61711. }
  61712. }
  61713. #endif /* LWIP_SOCKET_SELECT */
  61714. if (do_signal) {
  61715. 80193d0: 693b ldr r3, [r7, #16]
  61716. 80193d2: 2b00 cmp r3, #0
  61717. 80193d4: d007 beq.n 80193e6 <select_check_waiters+0x106>
  61718. scb->sem_signalled = 1;
  61719. 80193d6: 697b ldr r3, [r7, #20]
  61720. 80193d8: 2201 movs r2, #1
  61721. 80193da: 61da str r2, [r3, #28]
  61722. /* For !LWIP_TCPIP_CORE_LOCKING, we don't call SYS_ARCH_UNPROTECT() before signaling
  61723. the semaphore, as this might lead to the select thread taking itself off the list,
  61724. invalidating the semaphore. */
  61725. sys_sem_signal(SELECT_SEM_PTR(scb->sem));
  61726. 80193dc: 697b ldr r3, [r7, #20]
  61727. 80193de: 3320 adds r3, #32
  61728. 80193e0: 4618 mov r0, r3
  61729. 80193e2: f00d fe8f bl 8027104 <sys_sem_signal>
  61730. for (scb = select_cb_list; scb != NULL; scb = scb->next) {
  61731. 80193e6: 697b ldr r3, [r7, #20]
  61732. 80193e8: 681b ldr r3, [r3, #0]
  61733. 80193ea: 617b str r3, [r7, #20]
  61734. 80193ec: 697b ldr r3, [r7, #20]
  61735. 80193ee: 2b00 cmp r3, #0
  61736. 80193f0: d183 bne.n 80192fa <select_check_waiters+0x1a>
  61737. /* remember the state of select_cb_list to detect changes */
  61738. last_select_cb_ctr = select_cb_ctr;
  61739. }
  61740. SYS_ARCH_UNPROTECT(lev);
  61741. #endif
  61742. }
  61743. 80193f2: bf00 nop
  61744. 80193f4: bf00 nop
  61745. 80193f6: 3718 adds r7, #24
  61746. 80193f8: 46bd mov sp, r7
  61747. 80193fa: bd80 pop {r7, pc}
  61748. 80193fc: 24024404 .word 0x24024404
  61749. 08019400 <lwip_ioctl>:
  61750. return err;
  61751. }
  61752. int
  61753. lwip_ioctl(int s, long cmd, void *argp)
  61754. {
  61755. 8019400: b580 push {r7, lr}
  61756. 8019402: b08c sub sp, #48 @ 0x30
  61757. 8019404: af00 add r7, sp, #0
  61758. 8019406: 60f8 str r0, [r7, #12]
  61759. 8019408: 60b9 str r1, [r7, #8]
  61760. 801940a: 607a str r2, [r7, #4]
  61761. struct lwip_sock *sock = get_socket(s);
  61762. 801940c: 68f8 ldr r0, [r7, #12]
  61763. 801940e: f7ff f813 bl 8018438 <get_socket>
  61764. 8019412: 6278 str r0, [r7, #36] @ 0x24
  61765. u8_t val;
  61766. #if LWIP_SO_RCVBUF
  61767. int recv_avail;
  61768. #endif /* LWIP_SO_RCVBUF */
  61769. if (!sock) {
  61770. 8019414: 6a7b ldr r3, [r7, #36] @ 0x24
  61771. 8019416: 2b00 cmp r3, #0
  61772. 8019418: d102 bne.n 8019420 <lwip_ioctl+0x20>
  61773. return -1;
  61774. 801941a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  61775. 801941e: e089 b.n 8019534 <lwip_ioctl+0x134>
  61776. }
  61777. switch (cmd) {
  61778. 8019420: 68bb ldr r3, [r7, #8]
  61779. 8019422: 4a46 ldr r2, [pc, #280] @ (801953c <lwip_ioctl+0x13c>)
  61780. 8019424: 4293 cmp r3, r2
  61781. 8019426: d048 beq.n 80194ba <lwip_ioctl+0xba>
  61782. 8019428: 68bb ldr r3, [r7, #8]
  61783. 801942a: 4a45 ldr r2, [pc, #276] @ (8019540 <lwip_ioctl+0x140>)
  61784. 801942c: 4293 cmp r3, r2
  61785. 801942e: d176 bne.n 801951e <lwip_ioctl+0x11e>
  61786. #if LWIP_SO_RCVBUF || LWIP_FIONREAD_LINUXMODE
  61787. case FIONREAD:
  61788. if (!argp) {
  61789. 8019430: 687b ldr r3, [r7, #4]
  61790. 8019432: 2b00 cmp r3, #0
  61791. 8019434: d10a bne.n 801944c <lwip_ioctl+0x4c>
  61792. sock_set_errno(sock, EINVAL);
  61793. 8019436: 2316 movs r3, #22
  61794. 8019438: 61bb str r3, [r7, #24]
  61795. 801943a: 69bb ldr r3, [r7, #24]
  61796. 801943c: 2b00 cmp r3, #0
  61797. 801943e: d002 beq.n 8019446 <lwip_ioctl+0x46>
  61798. 8019440: 4a40 ldr r2, [pc, #256] @ (8019544 <lwip_ioctl+0x144>)
  61799. 8019442: 69bb ldr r3, [r7, #24]
  61800. 8019444: 6013 str r3, [r2, #0]
  61801. done_socket(sock);
  61802. return -1;
  61803. 8019446: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  61804. 801944a: e073 b.n 8019534 <lwip_ioctl+0x134>
  61805. }
  61806. #endif /* LWIP_FIONREAD_LINUXMODE */
  61807. #if LWIP_SO_RCVBUF
  61808. /* we come here if either LWIP_FIONREAD_LINUXMODE==0 or this is a TCP socket */
  61809. SYS_ARCH_GET(sock->conn->recv_avail, recv_avail);
  61810. 801944c: f00d fef0 bl 8027230 <sys_arch_protect>
  61811. 8019450: 6238 str r0, [r7, #32]
  61812. 8019452: 6a7b ldr r3, [r7, #36] @ 0x24
  61813. 8019454: 681b ldr r3, [r3, #0]
  61814. 8019456: 6a5b ldr r3, [r3, #36] @ 0x24
  61815. 8019458: 62fb str r3, [r7, #44] @ 0x2c
  61816. 801945a: 6a38 ldr r0, [r7, #32]
  61817. 801945c: f00d fef6 bl 802724c <sys_arch_unprotect>
  61818. if (recv_avail < 0) {
  61819. 8019460: 6afb ldr r3, [r7, #44] @ 0x2c
  61820. 8019462: 2b00 cmp r3, #0
  61821. 8019464: da01 bge.n 801946a <lwip_ioctl+0x6a>
  61822. recv_avail = 0;
  61823. 8019466: 2300 movs r3, #0
  61824. 8019468: 62fb str r3, [r7, #44] @ 0x2c
  61825. }
  61826. /* Check if there is data left from the last recv operation. /maq 041215 */
  61827. if (sock->lastdata.netbuf) {
  61828. 801946a: 6a7b ldr r3, [r7, #36] @ 0x24
  61829. 801946c: 685b ldr r3, [r3, #4]
  61830. 801946e: 2b00 cmp r3, #0
  61831. 8019470: d016 beq.n 80194a0 <lwip_ioctl+0xa0>
  61832. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
  61833. 8019472: 6a7b ldr r3, [r7, #36] @ 0x24
  61834. 8019474: 681b ldr r3, [r3, #0]
  61835. 8019476: 781b ldrb r3, [r3, #0]
  61836. 8019478: f003 03f0 and.w r3, r3, #240 @ 0xf0
  61837. 801947c: 2b10 cmp r3, #16
  61838. 801947e: d107 bne.n 8019490 <lwip_ioctl+0x90>
  61839. recv_avail += sock->lastdata.pbuf->tot_len;
  61840. 8019480: 6a7b ldr r3, [r7, #36] @ 0x24
  61841. 8019482: 685b ldr r3, [r3, #4]
  61842. 8019484: 891b ldrh r3, [r3, #8]
  61843. 8019486: 461a mov r2, r3
  61844. 8019488: 6afb ldr r3, [r7, #44] @ 0x2c
  61845. 801948a: 4413 add r3, r2
  61846. 801948c: 62fb str r3, [r7, #44] @ 0x2c
  61847. 801948e: e007 b.n 80194a0 <lwip_ioctl+0xa0>
  61848. } else {
  61849. recv_avail += sock->lastdata.netbuf->p->tot_len;
  61850. 8019490: 6a7b ldr r3, [r7, #36] @ 0x24
  61851. 8019492: 685b ldr r3, [r3, #4]
  61852. 8019494: 681b ldr r3, [r3, #0]
  61853. 8019496: 891b ldrh r3, [r3, #8]
  61854. 8019498: 461a mov r2, r3
  61855. 801949a: 6afb ldr r3, [r7, #44] @ 0x2c
  61856. 801949c: 4413 add r3, r2
  61857. 801949e: 62fb str r3, [r7, #44] @ 0x2c
  61858. }
  61859. }
  61860. *((int *)argp) = recv_avail;
  61861. 80194a0: 687b ldr r3, [r7, #4]
  61862. 80194a2: 6afa ldr r2, [r7, #44] @ 0x2c
  61863. 80194a4: 601a str r2, [r3, #0]
  61864. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, FIONREAD, %p) = %"U16_F"\n", s, argp, *((u16_t *)argp)));
  61865. sock_set_errno(sock, 0);
  61866. 80194a6: 2300 movs r3, #0
  61867. 80194a8: 61fb str r3, [r7, #28]
  61868. 80194aa: 69fb ldr r3, [r7, #28]
  61869. 80194ac: 2b00 cmp r3, #0
  61870. 80194ae: d002 beq.n 80194b6 <lwip_ioctl+0xb6>
  61871. 80194b0: 4a24 ldr r2, [pc, #144] @ (8019544 <lwip_ioctl+0x144>)
  61872. 80194b2: 69fb ldr r3, [r7, #28]
  61873. 80194b4: 6013 str r3, [r2, #0]
  61874. done_socket(sock);
  61875. return 0;
  61876. 80194b6: 2300 movs r3, #0
  61877. 80194b8: e03c b.n 8019534 <lwip_ioctl+0x134>
  61878. break;
  61879. #endif /* LWIP_SO_RCVBUF */
  61880. #endif /* LWIP_SO_RCVBUF || LWIP_FIONREAD_LINUXMODE */
  61881. case (long)FIONBIO:
  61882. val = 0;
  61883. 80194ba: 2300 movs r3, #0
  61884. 80194bc: f887 302b strb.w r3, [r7, #43] @ 0x2b
  61885. if (argp && *(int *)argp) {
  61886. 80194c0: 687b ldr r3, [r7, #4]
  61887. 80194c2: 2b00 cmp r3, #0
  61888. 80194c4: d006 beq.n 80194d4 <lwip_ioctl+0xd4>
  61889. 80194c6: 687b ldr r3, [r7, #4]
  61890. 80194c8: 681b ldr r3, [r3, #0]
  61891. 80194ca: 2b00 cmp r3, #0
  61892. 80194cc: d002 beq.n 80194d4 <lwip_ioctl+0xd4>
  61893. val = 1;
  61894. 80194ce: 2301 movs r3, #1
  61895. 80194d0: f887 302b strb.w r3, [r7, #43] @ 0x2b
  61896. }
  61897. netconn_set_nonblocking(sock->conn, val);
  61898. 80194d4: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  61899. 80194d8: 2b00 cmp r3, #0
  61900. 80194da: d00b beq.n 80194f4 <lwip_ioctl+0xf4>
  61901. 80194dc: 6a7b ldr r3, [r7, #36] @ 0x24
  61902. 80194de: 681b ldr r3, [r3, #0]
  61903. 80194e0: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  61904. 80194e4: 6a7b ldr r3, [r7, #36] @ 0x24
  61905. 80194e6: 681b ldr r3, [r3, #0]
  61906. 80194e8: f042 0202 orr.w r2, r2, #2
  61907. 80194ec: b2d2 uxtb r2, r2
  61908. 80194ee: f883 2028 strb.w r2, [r3, #40] @ 0x28
  61909. 80194f2: e00a b.n 801950a <lwip_ioctl+0x10a>
  61910. 80194f4: 6a7b ldr r3, [r7, #36] @ 0x24
  61911. 80194f6: 681b ldr r3, [r3, #0]
  61912. 80194f8: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  61913. 80194fc: 6a7b ldr r3, [r7, #36] @ 0x24
  61914. 80194fe: 681b ldr r3, [r3, #0]
  61915. 8019500: f022 0202 bic.w r2, r2, #2
  61916. 8019504: b2d2 uxtb r2, r2
  61917. 8019506: f883 2028 strb.w r2, [r3, #40] @ 0x28
  61918. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, FIONBIO, %d)\n", s, val));
  61919. sock_set_errno(sock, 0);
  61920. 801950a: 2300 movs r3, #0
  61921. 801950c: 617b str r3, [r7, #20]
  61922. 801950e: 697b ldr r3, [r7, #20]
  61923. 8019510: 2b00 cmp r3, #0
  61924. 8019512: d002 beq.n 801951a <lwip_ioctl+0x11a>
  61925. 8019514: 4a0b ldr r2, [pc, #44] @ (8019544 <lwip_ioctl+0x144>)
  61926. 8019516: 697b ldr r3, [r7, #20]
  61927. 8019518: 6013 str r3, [r2, #0]
  61928. done_socket(sock);
  61929. return 0;
  61930. 801951a: 2300 movs r3, #0
  61931. 801951c: e00a b.n 8019534 <lwip_ioctl+0x134>
  61932. default:
  61933. break;
  61934. 801951e: bf00 nop
  61935. } /* switch (cmd) */
  61936. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, UNIMPL: 0x%lx, %p)\n", s, cmd, argp));
  61937. sock_set_errno(sock, ENOSYS); /* not yet implemented */
  61938. 8019520: 2326 movs r3, #38 @ 0x26
  61939. 8019522: 613b str r3, [r7, #16]
  61940. 8019524: 693b ldr r3, [r7, #16]
  61941. 8019526: 2b00 cmp r3, #0
  61942. 8019528: d002 beq.n 8019530 <lwip_ioctl+0x130>
  61943. 801952a: 4a06 ldr r2, [pc, #24] @ (8019544 <lwip_ioctl+0x144>)
  61944. 801952c: 693b ldr r3, [r7, #16]
  61945. 801952e: 6013 str r3, [r2, #0]
  61946. done_socket(sock);
  61947. return -1;
  61948. 8019530: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  61949. }
  61950. 8019534: 4618 mov r0, r3
  61951. 8019536: 3730 adds r7, #48 @ 0x30
  61952. 8019538: 46bd mov sp, r7
  61953. 801953a: bd80 pop {r7, pc}
  61954. 801953c: 8004667e .word 0x8004667e
  61955. 8019540: 4004667f .word 0x4004667f
  61956. 8019544: 2402b260 .word 0x2402b260
  61957. 08019548 <tcpip_timeouts_mbox_fetch>:
  61958. * @param mbox the mbox to fetch the message from
  61959. * @param msg the place to store the message
  61960. */
  61961. static void
  61962. tcpip_timeouts_mbox_fetch(sys_mbox_t *mbox, void **msg)
  61963. {
  61964. 8019548: b580 push {r7, lr}
  61965. 801954a: b084 sub sp, #16
  61966. 801954c: af00 add r7, sp, #0
  61967. 801954e: 6078 str r0, [r7, #4]
  61968. 8019550: 6039 str r1, [r7, #0]
  61969. u32_t sleeptime, res;
  61970. again:
  61971. LWIP_ASSERT_CORE_LOCKED();
  61972. 8019552: f7f7 fcd5 bl 8010f00 <sys_check_core_locking>
  61973. sleeptime = sys_timeouts_sleeptime();
  61974. 8019556: f008 fb41 bl 8021bdc <sys_timeouts_sleeptime>
  61975. 801955a: 60f8 str r0, [r7, #12]
  61976. if (sleeptime == SYS_TIMEOUTS_SLEEPTIME_INFINITE) {
  61977. 801955c: 68fb ldr r3, [r7, #12]
  61978. 801955e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  61979. 8019562: d109 bne.n 8019578 <tcpip_timeouts_mbox_fetch+0x30>
  61980. UNLOCK_TCPIP_CORE();
  61981. 8019564: f7f7 fcbe bl 8010ee4 <sys_unlock_tcpip_core>
  61982. sys_arch_mbox_fetch(mbox, msg, 0);
  61983. 8019568: 2200 movs r2, #0
  61984. 801956a: 6839 ldr r1, [r7, #0]
  61985. 801956c: 6878 ldr r0, [r7, #4]
  61986. 801956e: f00d fd0d bl 8026f8c <sys_arch_mbox_fetch>
  61987. LOCK_TCPIP_CORE();
  61988. 8019572: f7f7 fca7 bl 8010ec4 <sys_lock_tcpip_core>
  61989. return;
  61990. 8019576: e016 b.n 80195a6 <tcpip_timeouts_mbox_fetch+0x5e>
  61991. } else if (sleeptime == 0) {
  61992. 8019578: 68fb ldr r3, [r7, #12]
  61993. 801957a: 2b00 cmp r3, #0
  61994. 801957c: d102 bne.n 8019584 <tcpip_timeouts_mbox_fetch+0x3c>
  61995. sys_check_timeouts();
  61996. 801957e: f008 faf1 bl 8021b64 <sys_check_timeouts>
  61997. /* We try again to fetch a message from the mbox. */
  61998. goto again;
  61999. 8019582: e7e6 b.n 8019552 <tcpip_timeouts_mbox_fetch+0xa>
  62000. }
  62001. UNLOCK_TCPIP_CORE();
  62002. 8019584: f7f7 fcae bl 8010ee4 <sys_unlock_tcpip_core>
  62003. res = sys_arch_mbox_fetch(mbox, msg, sleeptime);
  62004. 8019588: 68fa ldr r2, [r7, #12]
  62005. 801958a: 6839 ldr r1, [r7, #0]
  62006. 801958c: 6878 ldr r0, [r7, #4]
  62007. 801958e: f00d fcfd bl 8026f8c <sys_arch_mbox_fetch>
  62008. 8019592: 60b8 str r0, [r7, #8]
  62009. LOCK_TCPIP_CORE();
  62010. 8019594: f7f7 fc96 bl 8010ec4 <sys_lock_tcpip_core>
  62011. if (res == SYS_ARCH_TIMEOUT) {
  62012. 8019598: 68bb ldr r3, [r7, #8]
  62013. 801959a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  62014. 801959e: d102 bne.n 80195a6 <tcpip_timeouts_mbox_fetch+0x5e>
  62015. /* If a SYS_ARCH_TIMEOUT value is returned, a timeout occurred
  62016. before a message could be fetched. */
  62017. sys_check_timeouts();
  62018. 80195a0: f008 fae0 bl 8021b64 <sys_check_timeouts>
  62019. /* We try again to fetch a message from the mbox. */
  62020. goto again;
  62021. 80195a4: e7d5 b.n 8019552 <tcpip_timeouts_mbox_fetch+0xa>
  62022. }
  62023. }
  62024. 80195a6: 3710 adds r7, #16
  62025. 80195a8: 46bd mov sp, r7
  62026. 80195aa: bd80 pop {r7, pc}
  62027. 080195ac <tcpip_thread>:
  62028. *
  62029. * @param arg unused argument
  62030. */
  62031. static void
  62032. tcpip_thread(void *arg)
  62033. {
  62034. 80195ac: b580 push {r7, lr}
  62035. 80195ae: b084 sub sp, #16
  62036. 80195b0: af00 add r7, sp, #0
  62037. 80195b2: 6078 str r0, [r7, #4]
  62038. struct tcpip_msg *msg;
  62039. LWIP_UNUSED_ARG(arg);
  62040. LWIP_MARK_TCPIP_THREAD();
  62041. 80195b4: f7f7 fce0 bl 8010f78 <sys_mark_tcpip_thread>
  62042. LOCK_TCPIP_CORE();
  62043. 80195b8: f7f7 fc84 bl 8010ec4 <sys_lock_tcpip_core>
  62044. if (tcpip_init_done != NULL) {
  62045. 80195bc: 4b0f ldr r3, [pc, #60] @ (80195fc <tcpip_thread+0x50>)
  62046. 80195be: 681b ldr r3, [r3, #0]
  62047. 80195c0: 2b00 cmp r3, #0
  62048. 80195c2: d005 beq.n 80195d0 <tcpip_thread+0x24>
  62049. tcpip_init_done(tcpip_init_done_arg);
  62050. 80195c4: 4b0d ldr r3, [pc, #52] @ (80195fc <tcpip_thread+0x50>)
  62051. 80195c6: 681b ldr r3, [r3, #0]
  62052. 80195c8: 4a0d ldr r2, [pc, #52] @ (8019600 <tcpip_thread+0x54>)
  62053. 80195ca: 6812 ldr r2, [r2, #0]
  62054. 80195cc: 4610 mov r0, r2
  62055. 80195ce: 4798 blx r3
  62056. }
  62057. while (1) { /* MAIN Loop */
  62058. LWIP_TCPIP_THREAD_ALIVE();
  62059. /* wait for a message, timeouts are processed while waiting */
  62060. TCPIP_MBOX_FETCH(&tcpip_mbox, (void **)&msg);
  62061. 80195d0: f107 030c add.w r3, r7, #12
  62062. 80195d4: 4619 mov r1, r3
  62063. 80195d6: 480b ldr r0, [pc, #44] @ (8019604 <tcpip_thread+0x58>)
  62064. 80195d8: f7ff ffb6 bl 8019548 <tcpip_timeouts_mbox_fetch>
  62065. if (msg == NULL) {
  62066. 80195dc: 68fb ldr r3, [r7, #12]
  62067. 80195de: 2b00 cmp r3, #0
  62068. 80195e0: d106 bne.n 80195f0 <tcpip_thread+0x44>
  62069. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: NULL\n"));
  62070. LWIP_ASSERT("tcpip_thread: invalid message", 0);
  62071. 80195e2: 4b09 ldr r3, [pc, #36] @ (8019608 <tcpip_thread+0x5c>)
  62072. 80195e4: 2291 movs r2, #145 @ 0x91
  62073. 80195e6: 4909 ldr r1, [pc, #36] @ (801960c <tcpip_thread+0x60>)
  62074. 80195e8: 4809 ldr r0, [pc, #36] @ (8019610 <tcpip_thread+0x64>)
  62075. 80195ea: f011 f8b7 bl 802a75c <iprintf>
  62076. continue;
  62077. 80195ee: e003 b.n 80195f8 <tcpip_thread+0x4c>
  62078. }
  62079. tcpip_thread_handle_msg(msg);
  62080. 80195f0: 68fb ldr r3, [r7, #12]
  62081. 80195f2: 4618 mov r0, r3
  62082. 80195f4: f000 f80e bl 8019614 <tcpip_thread_handle_msg>
  62083. TCPIP_MBOX_FETCH(&tcpip_mbox, (void **)&msg);
  62084. 80195f8: e7ea b.n 80195d0 <tcpip_thread+0x24>
  62085. 80195fa: bf00 nop
  62086. 80195fc: 24024408 .word 0x24024408
  62087. 8019600: 2402440c .word 0x2402440c
  62088. 8019604: 24024410 .word 0x24024410
  62089. 8019608: 0802e880 .word 0x0802e880
  62090. 801960c: 0802e8b0 .word 0x0802e8b0
  62091. 8019610: 0802e8d0 .word 0x0802e8d0
  62092. 08019614 <tcpip_thread_handle_msg>:
  62093. /* Handle a single tcpip_msg
  62094. * This is in its own function for access by tests only.
  62095. */
  62096. static void
  62097. tcpip_thread_handle_msg(struct tcpip_msg *msg)
  62098. {
  62099. 8019614: b580 push {r7, lr}
  62100. 8019616: b082 sub sp, #8
  62101. 8019618: af00 add r7, sp, #0
  62102. 801961a: 6078 str r0, [r7, #4]
  62103. switch (msg->type) {
  62104. 801961c: 687b ldr r3, [r7, #4]
  62105. 801961e: 781b ldrb r3, [r3, #0]
  62106. 8019620: 2b02 cmp r3, #2
  62107. 8019622: d026 beq.n 8019672 <tcpip_thread_handle_msg+0x5e>
  62108. 8019624: 2b02 cmp r3, #2
  62109. 8019626: dc2b bgt.n 8019680 <tcpip_thread_handle_msg+0x6c>
  62110. 8019628: 2b00 cmp r3, #0
  62111. 801962a: d002 beq.n 8019632 <tcpip_thread_handle_msg+0x1e>
  62112. 801962c: 2b01 cmp r3, #1
  62113. 801962e: d015 beq.n 801965c <tcpip_thread_handle_msg+0x48>
  62114. 8019630: e026 b.n 8019680 <tcpip_thread_handle_msg+0x6c>
  62115. #endif /* !LWIP_TCPIP_CORE_LOCKING */
  62116. #if !LWIP_TCPIP_CORE_LOCKING_INPUT
  62117. case TCPIP_MSG_INPKT:
  62118. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: PACKET %p\n", (void *)msg));
  62119. if (msg->msg.inp.input_fn(msg->msg.inp.p, msg->msg.inp.netif) != ERR_OK) {
  62120. 8019632: 687b ldr r3, [r7, #4]
  62121. 8019634: 68db ldr r3, [r3, #12]
  62122. 8019636: 687a ldr r2, [r7, #4]
  62123. 8019638: 6850 ldr r0, [r2, #4]
  62124. 801963a: 687a ldr r2, [r7, #4]
  62125. 801963c: 6892 ldr r2, [r2, #8]
  62126. 801963e: 4611 mov r1, r2
  62127. 8019640: 4798 blx r3
  62128. 8019642: 4603 mov r3, r0
  62129. 8019644: 2b00 cmp r3, #0
  62130. 8019646: d004 beq.n 8019652 <tcpip_thread_handle_msg+0x3e>
  62131. pbuf_free(msg->msg.inp.p);
  62132. 8019648: 687b ldr r3, [r7, #4]
  62133. 801964a: 685b ldr r3, [r3, #4]
  62134. 801964c: 4618 mov r0, r3
  62135. 801964e: f001 fe0d bl 801b26c <pbuf_free>
  62136. }
  62137. memp_free(MEMP_TCPIP_MSG_INPKT, msg);
  62138. 8019652: 6879 ldr r1, [r7, #4]
  62139. 8019654: 2009 movs r0, #9
  62140. 8019656: f000 ff1b bl 801a490 <memp_free>
  62141. break;
  62142. 801965a: e018 b.n 801968e <tcpip_thread_handle_msg+0x7a>
  62143. break;
  62144. #endif /* LWIP_TCPIP_TIMEOUT && LWIP_TIMERS */
  62145. case TCPIP_MSG_CALLBACK:
  62146. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: CALLBACK %p\n", (void *)msg));
  62147. msg->msg.cb.function(msg->msg.cb.ctx);
  62148. 801965c: 687b ldr r3, [r7, #4]
  62149. 801965e: 685b ldr r3, [r3, #4]
  62150. 8019660: 687a ldr r2, [r7, #4]
  62151. 8019662: 6892 ldr r2, [r2, #8]
  62152. 8019664: 4610 mov r0, r2
  62153. 8019666: 4798 blx r3
  62154. memp_free(MEMP_TCPIP_MSG_API, msg);
  62155. 8019668: 6879 ldr r1, [r7, #4]
  62156. 801966a: 2008 movs r0, #8
  62157. 801966c: f000 ff10 bl 801a490 <memp_free>
  62158. break;
  62159. 8019670: e00d b.n 801968e <tcpip_thread_handle_msg+0x7a>
  62160. case TCPIP_MSG_CALLBACK_STATIC:
  62161. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: CALLBACK_STATIC %p\n", (void *)msg));
  62162. msg->msg.cb.function(msg->msg.cb.ctx);
  62163. 8019672: 687b ldr r3, [r7, #4]
  62164. 8019674: 685b ldr r3, [r3, #4]
  62165. 8019676: 687a ldr r2, [r7, #4]
  62166. 8019678: 6892 ldr r2, [r2, #8]
  62167. 801967a: 4610 mov r0, r2
  62168. 801967c: 4798 blx r3
  62169. break;
  62170. 801967e: e006 b.n 801968e <tcpip_thread_handle_msg+0x7a>
  62171. default:
  62172. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: %d\n", msg->type));
  62173. LWIP_ASSERT("tcpip_thread: invalid message", 0);
  62174. 8019680: 4b05 ldr r3, [pc, #20] @ (8019698 <tcpip_thread_handle_msg+0x84>)
  62175. 8019682: 22cf movs r2, #207 @ 0xcf
  62176. 8019684: 4905 ldr r1, [pc, #20] @ (801969c <tcpip_thread_handle_msg+0x88>)
  62177. 8019686: 4806 ldr r0, [pc, #24] @ (80196a0 <tcpip_thread_handle_msg+0x8c>)
  62178. 8019688: f011 f868 bl 802a75c <iprintf>
  62179. break;
  62180. 801968c: bf00 nop
  62181. }
  62182. }
  62183. 801968e: bf00 nop
  62184. 8019690: 3708 adds r7, #8
  62185. 8019692: 46bd mov sp, r7
  62186. 8019694: bd80 pop {r7, pc}
  62187. 8019696: bf00 nop
  62188. 8019698: 0802e880 .word 0x0802e880
  62189. 801969c: 0802e8b0 .word 0x0802e8b0
  62190. 80196a0: 0802e8d0 .word 0x0802e8d0
  62191. 080196a4 <tcpip_inpkt>:
  62192. * @param inp the network interface on which the packet was received
  62193. * @param input_fn input function to call
  62194. */
  62195. err_t
  62196. tcpip_inpkt(struct pbuf *p, struct netif *inp, netif_input_fn input_fn)
  62197. {
  62198. 80196a4: b580 push {r7, lr}
  62199. 80196a6: b086 sub sp, #24
  62200. 80196a8: af00 add r7, sp, #0
  62201. 80196aa: 60f8 str r0, [r7, #12]
  62202. 80196ac: 60b9 str r1, [r7, #8]
  62203. 80196ae: 607a str r2, [r7, #4]
  62204. UNLOCK_TCPIP_CORE();
  62205. return ret;
  62206. #else /* LWIP_TCPIP_CORE_LOCKING_INPUT */
  62207. struct tcpip_msg *msg;
  62208. LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox));
  62209. 80196b0: 481a ldr r0, [pc, #104] @ (801971c <tcpip_inpkt+0x78>)
  62210. 80196b2: f00d fcb3 bl 802701c <sys_mbox_valid>
  62211. 80196b6: 4603 mov r3, r0
  62212. 80196b8: 2b00 cmp r3, #0
  62213. 80196ba: d105 bne.n 80196c8 <tcpip_inpkt+0x24>
  62214. 80196bc: 4b18 ldr r3, [pc, #96] @ (8019720 <tcpip_inpkt+0x7c>)
  62215. 80196be: 22fc movs r2, #252 @ 0xfc
  62216. 80196c0: 4918 ldr r1, [pc, #96] @ (8019724 <tcpip_inpkt+0x80>)
  62217. 80196c2: 4819 ldr r0, [pc, #100] @ (8019728 <tcpip_inpkt+0x84>)
  62218. 80196c4: f011 f84a bl 802a75c <iprintf>
  62219. msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_INPKT);
  62220. 80196c8: 2009 movs r0, #9
  62221. 80196ca: f000 fe6b bl 801a3a4 <memp_malloc>
  62222. 80196ce: 6178 str r0, [r7, #20]
  62223. if (msg == NULL) {
  62224. 80196d0: 697b ldr r3, [r7, #20]
  62225. 80196d2: 2b00 cmp r3, #0
  62226. 80196d4: d102 bne.n 80196dc <tcpip_inpkt+0x38>
  62227. return ERR_MEM;
  62228. 80196d6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  62229. 80196da: e01a b.n 8019712 <tcpip_inpkt+0x6e>
  62230. }
  62231. msg->type = TCPIP_MSG_INPKT;
  62232. 80196dc: 697b ldr r3, [r7, #20]
  62233. 80196de: 2200 movs r2, #0
  62234. 80196e0: 701a strb r2, [r3, #0]
  62235. msg->msg.inp.p = p;
  62236. 80196e2: 697b ldr r3, [r7, #20]
  62237. 80196e4: 68fa ldr r2, [r7, #12]
  62238. 80196e6: 605a str r2, [r3, #4]
  62239. msg->msg.inp.netif = inp;
  62240. 80196e8: 697b ldr r3, [r7, #20]
  62241. 80196ea: 68ba ldr r2, [r7, #8]
  62242. 80196ec: 609a str r2, [r3, #8]
  62243. msg->msg.inp.input_fn = input_fn;
  62244. 80196ee: 697b ldr r3, [r7, #20]
  62245. 80196f0: 687a ldr r2, [r7, #4]
  62246. 80196f2: 60da str r2, [r3, #12]
  62247. if (sys_mbox_trypost(&tcpip_mbox, msg) != ERR_OK) {
  62248. 80196f4: 6979 ldr r1, [r7, #20]
  62249. 80196f6: 4809 ldr r0, [pc, #36] @ (801971c <tcpip_inpkt+0x78>)
  62250. 80196f8: f00d fc2e bl 8026f58 <sys_mbox_trypost>
  62251. 80196fc: 4603 mov r3, r0
  62252. 80196fe: 2b00 cmp r3, #0
  62253. 8019700: d006 beq.n 8019710 <tcpip_inpkt+0x6c>
  62254. memp_free(MEMP_TCPIP_MSG_INPKT, msg);
  62255. 8019702: 6979 ldr r1, [r7, #20]
  62256. 8019704: 2009 movs r0, #9
  62257. 8019706: f000 fec3 bl 801a490 <memp_free>
  62258. return ERR_MEM;
  62259. 801970a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  62260. 801970e: e000 b.n 8019712 <tcpip_inpkt+0x6e>
  62261. }
  62262. return ERR_OK;
  62263. 8019710: 2300 movs r3, #0
  62264. #endif /* LWIP_TCPIP_CORE_LOCKING_INPUT */
  62265. }
  62266. 8019712: 4618 mov r0, r3
  62267. 8019714: 3718 adds r7, #24
  62268. 8019716: 46bd mov sp, r7
  62269. 8019718: bd80 pop {r7, pc}
  62270. 801971a: bf00 nop
  62271. 801971c: 24024410 .word 0x24024410
  62272. 8019720: 0802e880 .word 0x0802e880
  62273. 8019724: 0802e8f8 .word 0x0802e8f8
  62274. 8019728: 0802e8d0 .word 0x0802e8d0
  62275. 0801972c <tcpip_input>:
  62276. * NETIF_FLAG_ETHERNET flags)
  62277. * @param inp the network interface on which the packet was received
  62278. */
  62279. err_t
  62280. tcpip_input(struct pbuf *p, struct netif *inp)
  62281. {
  62282. 801972c: b580 push {r7, lr}
  62283. 801972e: b082 sub sp, #8
  62284. 8019730: af00 add r7, sp, #0
  62285. 8019732: 6078 str r0, [r7, #4]
  62286. 8019734: 6039 str r1, [r7, #0]
  62287. #if LWIP_ETHERNET
  62288. if (inp->flags & (NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET)) {
  62289. 8019736: 683b ldr r3, [r7, #0]
  62290. 8019738: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  62291. 801973c: f003 0318 and.w r3, r3, #24
  62292. 8019740: 2b00 cmp r3, #0
  62293. 8019742: d006 beq.n 8019752 <tcpip_input+0x26>
  62294. return tcpip_inpkt(p, inp, ethernet_input);
  62295. 8019744: 4a08 ldr r2, [pc, #32] @ (8019768 <tcpip_input+0x3c>)
  62296. 8019746: 6839 ldr r1, [r7, #0]
  62297. 8019748: 6878 ldr r0, [r7, #4]
  62298. 801974a: f7ff ffab bl 80196a4 <tcpip_inpkt>
  62299. 801974e: 4603 mov r3, r0
  62300. 8019750: e005 b.n 801975e <tcpip_input+0x32>
  62301. } else
  62302. #endif /* LWIP_ETHERNET */
  62303. return tcpip_inpkt(p, inp, ip_input);
  62304. 8019752: 4a06 ldr r2, [pc, #24] @ (801976c <tcpip_input+0x40>)
  62305. 8019754: 6839 ldr r1, [r7, #0]
  62306. 8019756: 6878 ldr r0, [r7, #4]
  62307. 8019758: f7ff ffa4 bl 80196a4 <tcpip_inpkt>
  62308. 801975c: 4603 mov r3, r0
  62309. }
  62310. 801975e: 4618 mov r0, r3
  62311. 8019760: 3708 adds r7, #8
  62312. 8019762: 46bd mov sp, r7
  62313. 8019764: bd80 pop {r7, pc}
  62314. 8019766: bf00 nop
  62315. 8019768: 08026d4d .word 0x08026d4d
  62316. 801976c: 08025875 .word 0x08025875
  62317. 08019770 <tcpip_try_callback>:
  62318. *
  62319. * @see tcpip_callback
  62320. */
  62321. err_t
  62322. tcpip_try_callback(tcpip_callback_fn function, void *ctx)
  62323. {
  62324. 8019770: b580 push {r7, lr}
  62325. 8019772: b084 sub sp, #16
  62326. 8019774: af00 add r7, sp, #0
  62327. 8019776: 6078 str r0, [r7, #4]
  62328. 8019778: 6039 str r1, [r7, #0]
  62329. struct tcpip_msg *msg;
  62330. LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox));
  62331. 801977a: 4819 ldr r0, [pc, #100] @ (80197e0 <tcpip_try_callback+0x70>)
  62332. 801977c: f00d fc4e bl 802701c <sys_mbox_valid>
  62333. 8019780: 4603 mov r3, r0
  62334. 8019782: 2b00 cmp r3, #0
  62335. 8019784: d106 bne.n 8019794 <tcpip_try_callback+0x24>
  62336. 8019786: 4b17 ldr r3, [pc, #92] @ (80197e4 <tcpip_try_callback+0x74>)
  62337. 8019788: f240 125d movw r2, #349 @ 0x15d
  62338. 801978c: 4916 ldr r1, [pc, #88] @ (80197e8 <tcpip_try_callback+0x78>)
  62339. 801978e: 4817 ldr r0, [pc, #92] @ (80197ec <tcpip_try_callback+0x7c>)
  62340. 8019790: f010 ffe4 bl 802a75c <iprintf>
  62341. msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_API);
  62342. 8019794: 2008 movs r0, #8
  62343. 8019796: f000 fe05 bl 801a3a4 <memp_malloc>
  62344. 801979a: 60f8 str r0, [r7, #12]
  62345. if (msg == NULL) {
  62346. 801979c: 68fb ldr r3, [r7, #12]
  62347. 801979e: 2b00 cmp r3, #0
  62348. 80197a0: d102 bne.n 80197a8 <tcpip_try_callback+0x38>
  62349. return ERR_MEM;
  62350. 80197a2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  62351. 80197a6: e017 b.n 80197d8 <tcpip_try_callback+0x68>
  62352. }
  62353. msg->type = TCPIP_MSG_CALLBACK;
  62354. 80197a8: 68fb ldr r3, [r7, #12]
  62355. 80197aa: 2201 movs r2, #1
  62356. 80197ac: 701a strb r2, [r3, #0]
  62357. msg->msg.cb.function = function;
  62358. 80197ae: 68fb ldr r3, [r7, #12]
  62359. 80197b0: 687a ldr r2, [r7, #4]
  62360. 80197b2: 605a str r2, [r3, #4]
  62361. msg->msg.cb.ctx = ctx;
  62362. 80197b4: 68fb ldr r3, [r7, #12]
  62363. 80197b6: 683a ldr r2, [r7, #0]
  62364. 80197b8: 609a str r2, [r3, #8]
  62365. if (sys_mbox_trypost(&tcpip_mbox, msg) != ERR_OK) {
  62366. 80197ba: 68f9 ldr r1, [r7, #12]
  62367. 80197bc: 4808 ldr r0, [pc, #32] @ (80197e0 <tcpip_try_callback+0x70>)
  62368. 80197be: f00d fbcb bl 8026f58 <sys_mbox_trypost>
  62369. 80197c2: 4603 mov r3, r0
  62370. 80197c4: 2b00 cmp r3, #0
  62371. 80197c6: d006 beq.n 80197d6 <tcpip_try_callback+0x66>
  62372. memp_free(MEMP_TCPIP_MSG_API, msg);
  62373. 80197c8: 68f9 ldr r1, [r7, #12]
  62374. 80197ca: 2008 movs r0, #8
  62375. 80197cc: f000 fe60 bl 801a490 <memp_free>
  62376. return ERR_MEM;
  62377. 80197d0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  62378. 80197d4: e000 b.n 80197d8 <tcpip_try_callback+0x68>
  62379. }
  62380. return ERR_OK;
  62381. 80197d6: 2300 movs r3, #0
  62382. }
  62383. 80197d8: 4618 mov r0, r3
  62384. 80197da: 3710 adds r7, #16
  62385. 80197dc: 46bd mov sp, r7
  62386. 80197de: bd80 pop {r7, pc}
  62387. 80197e0: 24024410 .word 0x24024410
  62388. 80197e4: 0802e880 .word 0x0802e880
  62389. 80197e8: 0802e8f8 .word 0x0802e8f8
  62390. 80197ec: 0802e8d0 .word 0x0802e8d0
  62391. 080197f0 <tcpip_send_msg_wait_sem>:
  62392. * @param sem semaphore to wait on
  62393. * @return ERR_OK if the function was called, another err_t if not
  62394. */
  62395. err_t
  62396. tcpip_send_msg_wait_sem(tcpip_callback_fn fn, void *apimsg, sys_sem_t *sem)
  62397. {
  62398. 80197f0: b580 push {r7, lr}
  62399. 80197f2: b084 sub sp, #16
  62400. 80197f4: af00 add r7, sp, #0
  62401. 80197f6: 60f8 str r0, [r7, #12]
  62402. 80197f8: 60b9 str r1, [r7, #8]
  62403. 80197fa: 607a str r2, [r7, #4]
  62404. #if LWIP_TCPIP_CORE_LOCKING
  62405. LWIP_UNUSED_ARG(sem);
  62406. LOCK_TCPIP_CORE();
  62407. 80197fc: f7f7 fb62 bl 8010ec4 <sys_lock_tcpip_core>
  62408. fn(apimsg);
  62409. 8019800: 68fb ldr r3, [r7, #12]
  62410. 8019802: 68b8 ldr r0, [r7, #8]
  62411. 8019804: 4798 blx r3
  62412. UNLOCK_TCPIP_CORE();
  62413. 8019806: f7f7 fb6d bl 8010ee4 <sys_unlock_tcpip_core>
  62414. return ERR_OK;
  62415. 801980a: 2300 movs r3, #0
  62416. sys_mbox_post(&tcpip_mbox, &TCPIP_MSG_VAR_REF(msg));
  62417. sys_arch_sem_wait(sem, 0);
  62418. TCPIP_MSG_VAR_FREE(msg);
  62419. return ERR_OK;
  62420. #endif /* LWIP_TCPIP_CORE_LOCKING */
  62421. }
  62422. 801980c: 4618 mov r0, r3
  62423. 801980e: 3710 adds r7, #16
  62424. 8019810: 46bd mov sp, r7
  62425. 8019812: bd80 pop {r7, pc}
  62426. 08019814 <tcpip_init>:
  62427. * @param initfunc a function to call when tcpip_thread is running and finished initializing
  62428. * @param arg argument to pass to initfunc
  62429. */
  62430. void
  62431. tcpip_init(tcpip_init_done_fn initfunc, void *arg)
  62432. {
  62433. 8019814: b580 push {r7, lr}
  62434. 8019816: b084 sub sp, #16
  62435. 8019818: af02 add r7, sp, #8
  62436. 801981a: 6078 str r0, [r7, #4]
  62437. 801981c: 6039 str r1, [r7, #0]
  62438. lwip_init();
  62439. 801981e: f000 f92d bl 8019a7c <lwip_init>
  62440. tcpip_init_done = initfunc;
  62441. 8019822: 4a17 ldr r2, [pc, #92] @ (8019880 <tcpip_init+0x6c>)
  62442. 8019824: 687b ldr r3, [r7, #4]
  62443. 8019826: 6013 str r3, [r2, #0]
  62444. tcpip_init_done_arg = arg;
  62445. 8019828: 4a16 ldr r2, [pc, #88] @ (8019884 <tcpip_init+0x70>)
  62446. 801982a: 683b ldr r3, [r7, #0]
  62447. 801982c: 6013 str r3, [r2, #0]
  62448. if (sys_mbox_new(&tcpip_mbox, TCPIP_MBOX_SIZE) != ERR_OK) {
  62449. 801982e: 2106 movs r1, #6
  62450. 8019830: 4815 ldr r0, [pc, #84] @ (8019888 <tcpip_init+0x74>)
  62451. 8019832: f00d fb65 bl 8026f00 <sys_mbox_new>
  62452. 8019836: 4603 mov r3, r0
  62453. 8019838: 2b00 cmp r3, #0
  62454. 801983a: d006 beq.n 801984a <tcpip_init+0x36>
  62455. LWIP_ASSERT("failed to create tcpip_thread mbox", 0);
  62456. 801983c: 4b13 ldr r3, [pc, #76] @ (801988c <tcpip_init+0x78>)
  62457. 801983e: f240 2261 movw r2, #609 @ 0x261
  62458. 8019842: 4913 ldr r1, [pc, #76] @ (8019890 <tcpip_init+0x7c>)
  62459. 8019844: 4813 ldr r0, [pc, #76] @ (8019894 <tcpip_init+0x80>)
  62460. 8019846: f010 ff89 bl 802a75c <iprintf>
  62461. }
  62462. #if LWIP_TCPIP_CORE_LOCKING
  62463. if (sys_mutex_new(&lock_tcpip_core) != ERR_OK) {
  62464. 801984a: 4813 ldr r0, [pc, #76] @ (8019898 <tcpip_init+0x84>)
  62465. 801984c: f00d fc9e bl 802718c <sys_mutex_new>
  62466. 8019850: 4603 mov r3, r0
  62467. 8019852: 2b00 cmp r3, #0
  62468. 8019854: d006 beq.n 8019864 <tcpip_init+0x50>
  62469. LWIP_ASSERT("failed to create lock_tcpip_core", 0);
  62470. 8019856: 4b0d ldr r3, [pc, #52] @ (801988c <tcpip_init+0x78>)
  62471. 8019858: f240 2265 movw r2, #613 @ 0x265
  62472. 801985c: 490f ldr r1, [pc, #60] @ (801989c <tcpip_init+0x88>)
  62473. 801985e: 480d ldr r0, [pc, #52] @ (8019894 <tcpip_init+0x80>)
  62474. 8019860: f010 ff7c bl 802a75c <iprintf>
  62475. }
  62476. #endif /* LWIP_TCPIP_CORE_LOCKING */
  62477. sys_thread_new(TCPIP_THREAD_NAME, tcpip_thread, NULL, TCPIP_THREAD_STACKSIZE, TCPIP_THREAD_PRIO);
  62478. 8019864: 2330 movs r3, #48 @ 0x30
  62479. 8019866: 9300 str r3, [sp, #0]
  62480. 8019868: f44f 5380 mov.w r3, #4096 @ 0x1000
  62481. 801986c: 2200 movs r2, #0
  62482. 801986e: 490c ldr r1, [pc, #48] @ (80198a0 <tcpip_init+0x8c>)
  62483. 8019870: 480c ldr r0, [pc, #48] @ (80198a4 <tcpip_init+0x90>)
  62484. 8019872: f00d fcbd bl 80271f0 <sys_thread_new>
  62485. }
  62486. 8019876: bf00 nop
  62487. 8019878: 3708 adds r7, #8
  62488. 801987a: 46bd mov sp, r7
  62489. 801987c: bd80 pop {r7, pc}
  62490. 801987e: bf00 nop
  62491. 8019880: 24024408 .word 0x24024408
  62492. 8019884: 2402440c .word 0x2402440c
  62493. 8019888: 24024410 .word 0x24024410
  62494. 801988c: 0802e880 .word 0x0802e880
  62495. 8019890: 0802e908 .word 0x0802e908
  62496. 8019894: 0802e8d0 .word 0x0802e8d0
  62497. 8019898: 24024414 .word 0x24024414
  62498. 801989c: 0802e92c .word 0x0802e92c
  62499. 80198a0: 080195ad .word 0x080195ad
  62500. 80198a4: 0802e950 .word 0x0802e950
  62501. 080198a8 <lwip_htons>:
  62502. * @param n u16_t in host byte order
  62503. * @return n in network byte order
  62504. */
  62505. u16_t
  62506. lwip_htons(u16_t n)
  62507. {
  62508. 80198a8: b480 push {r7}
  62509. 80198aa: b083 sub sp, #12
  62510. 80198ac: af00 add r7, sp, #0
  62511. 80198ae: 4603 mov r3, r0
  62512. 80198b0: 80fb strh r3, [r7, #6]
  62513. return PP_HTONS(n);
  62514. 80198b2: 88fb ldrh r3, [r7, #6]
  62515. 80198b4: 021b lsls r3, r3, #8
  62516. 80198b6: b21a sxth r2, r3
  62517. 80198b8: 88fb ldrh r3, [r7, #6]
  62518. 80198ba: 0a1b lsrs r3, r3, #8
  62519. 80198bc: b29b uxth r3, r3
  62520. 80198be: b21b sxth r3, r3
  62521. 80198c0: 4313 orrs r3, r2
  62522. 80198c2: b21b sxth r3, r3
  62523. 80198c4: b29b uxth r3, r3
  62524. }
  62525. 80198c6: 4618 mov r0, r3
  62526. 80198c8: 370c adds r7, #12
  62527. 80198ca: 46bd mov sp, r7
  62528. 80198cc: f85d 7b04 ldr.w r7, [sp], #4
  62529. 80198d0: 4770 bx lr
  62530. 080198d2 <lwip_htonl>:
  62531. * @param n u32_t in host byte order
  62532. * @return n in network byte order
  62533. */
  62534. u32_t
  62535. lwip_htonl(u32_t n)
  62536. {
  62537. 80198d2: b480 push {r7}
  62538. 80198d4: b083 sub sp, #12
  62539. 80198d6: af00 add r7, sp, #0
  62540. 80198d8: 6078 str r0, [r7, #4]
  62541. return PP_HTONL(n);
  62542. 80198da: 687b ldr r3, [r7, #4]
  62543. 80198dc: 061a lsls r2, r3, #24
  62544. 80198de: 687b ldr r3, [r7, #4]
  62545. 80198e0: 021b lsls r3, r3, #8
  62546. 80198e2: f403 037f and.w r3, r3, #16711680 @ 0xff0000
  62547. 80198e6: 431a orrs r2, r3
  62548. 80198e8: 687b ldr r3, [r7, #4]
  62549. 80198ea: 0a1b lsrs r3, r3, #8
  62550. 80198ec: f403 437f and.w r3, r3, #65280 @ 0xff00
  62551. 80198f0: 431a orrs r2, r3
  62552. 80198f2: 687b ldr r3, [r7, #4]
  62553. 80198f4: 0e1b lsrs r3, r3, #24
  62554. 80198f6: 4313 orrs r3, r2
  62555. }
  62556. 80198f8: 4618 mov r0, r3
  62557. 80198fa: 370c adds r7, #12
  62558. 80198fc: 46bd mov sp, r7
  62559. 80198fe: f85d 7b04 ldr.w r7, [sp], #4
  62560. 8019902: 4770 bx lr
  62561. 08019904 <lwip_standard_chksum>:
  62562. * @param len length of data to be summed
  62563. * @return host order (!) lwip checksum (non-inverted Internet sum)
  62564. */
  62565. u16_t
  62566. lwip_standard_chksum(const void *dataptr, int len)
  62567. {
  62568. 8019904: b480 push {r7}
  62569. 8019906: b089 sub sp, #36 @ 0x24
  62570. 8019908: af00 add r7, sp, #0
  62571. 801990a: 6078 str r0, [r7, #4]
  62572. 801990c: 6039 str r1, [r7, #0]
  62573. const u8_t *pb = (const u8_t *)dataptr;
  62574. 801990e: 687b ldr r3, [r7, #4]
  62575. 8019910: 61fb str r3, [r7, #28]
  62576. const u16_t *ps;
  62577. u16_t t = 0;
  62578. 8019912: 2300 movs r3, #0
  62579. 8019914: 81fb strh r3, [r7, #14]
  62580. u32_t sum = 0;
  62581. 8019916: 2300 movs r3, #0
  62582. 8019918: 617b str r3, [r7, #20]
  62583. int odd = ((mem_ptr_t)pb & 1);
  62584. 801991a: 69fb ldr r3, [r7, #28]
  62585. 801991c: f003 0301 and.w r3, r3, #1
  62586. 8019920: 613b str r3, [r7, #16]
  62587. /* Get aligned to u16_t */
  62588. if (odd && len > 0) {
  62589. 8019922: 693b ldr r3, [r7, #16]
  62590. 8019924: 2b00 cmp r3, #0
  62591. 8019926: d00d beq.n 8019944 <lwip_standard_chksum+0x40>
  62592. 8019928: 683b ldr r3, [r7, #0]
  62593. 801992a: 2b00 cmp r3, #0
  62594. 801992c: dd0a ble.n 8019944 <lwip_standard_chksum+0x40>
  62595. ((u8_t *)&t)[1] = *pb++;
  62596. 801992e: 69fa ldr r2, [r7, #28]
  62597. 8019930: 1c53 adds r3, r2, #1
  62598. 8019932: 61fb str r3, [r7, #28]
  62599. 8019934: f107 030e add.w r3, r7, #14
  62600. 8019938: 3301 adds r3, #1
  62601. 801993a: 7812 ldrb r2, [r2, #0]
  62602. 801993c: 701a strb r2, [r3, #0]
  62603. len--;
  62604. 801993e: 683b ldr r3, [r7, #0]
  62605. 8019940: 3b01 subs r3, #1
  62606. 8019942: 603b str r3, [r7, #0]
  62607. }
  62608. /* Add the bulk of the data */
  62609. ps = (const u16_t *)(const void *)pb;
  62610. 8019944: 69fb ldr r3, [r7, #28]
  62611. 8019946: 61bb str r3, [r7, #24]
  62612. while (len > 1) {
  62613. 8019948: e00a b.n 8019960 <lwip_standard_chksum+0x5c>
  62614. sum += *ps++;
  62615. 801994a: 69bb ldr r3, [r7, #24]
  62616. 801994c: 1c9a adds r2, r3, #2
  62617. 801994e: 61ba str r2, [r7, #24]
  62618. 8019950: 881b ldrh r3, [r3, #0]
  62619. 8019952: 461a mov r2, r3
  62620. 8019954: 697b ldr r3, [r7, #20]
  62621. 8019956: 4413 add r3, r2
  62622. 8019958: 617b str r3, [r7, #20]
  62623. len -= 2;
  62624. 801995a: 683b ldr r3, [r7, #0]
  62625. 801995c: 3b02 subs r3, #2
  62626. 801995e: 603b str r3, [r7, #0]
  62627. while (len > 1) {
  62628. 8019960: 683b ldr r3, [r7, #0]
  62629. 8019962: 2b01 cmp r3, #1
  62630. 8019964: dcf1 bgt.n 801994a <lwip_standard_chksum+0x46>
  62631. }
  62632. /* Consume left-over byte, if any */
  62633. if (len > 0) {
  62634. 8019966: 683b ldr r3, [r7, #0]
  62635. 8019968: 2b00 cmp r3, #0
  62636. 801996a: dd04 ble.n 8019976 <lwip_standard_chksum+0x72>
  62637. ((u8_t *)&t)[0] = *(const u8_t *)ps;
  62638. 801996c: f107 030e add.w r3, r7, #14
  62639. 8019970: 69ba ldr r2, [r7, #24]
  62640. 8019972: 7812 ldrb r2, [r2, #0]
  62641. 8019974: 701a strb r2, [r3, #0]
  62642. }
  62643. /* Add end bytes */
  62644. sum += t;
  62645. 8019976: 89fb ldrh r3, [r7, #14]
  62646. 8019978: 461a mov r2, r3
  62647. 801997a: 697b ldr r3, [r7, #20]
  62648. 801997c: 4413 add r3, r2
  62649. 801997e: 617b str r3, [r7, #20]
  62650. /* Fold 32-bit sum to 16 bits
  62651. calling this twice is probably faster than if statements... */
  62652. sum = FOLD_U32T(sum);
  62653. 8019980: 697b ldr r3, [r7, #20]
  62654. 8019982: 0c1a lsrs r2, r3, #16
  62655. 8019984: 697b ldr r3, [r7, #20]
  62656. 8019986: b29b uxth r3, r3
  62657. 8019988: 4413 add r3, r2
  62658. 801998a: 617b str r3, [r7, #20]
  62659. sum = FOLD_U32T(sum);
  62660. 801998c: 697b ldr r3, [r7, #20]
  62661. 801998e: 0c1a lsrs r2, r3, #16
  62662. 8019990: 697b ldr r3, [r7, #20]
  62663. 8019992: b29b uxth r3, r3
  62664. 8019994: 4413 add r3, r2
  62665. 8019996: 617b str r3, [r7, #20]
  62666. /* Swap if alignment was odd */
  62667. if (odd) {
  62668. 8019998: 693b ldr r3, [r7, #16]
  62669. 801999a: 2b00 cmp r3, #0
  62670. 801999c: d007 beq.n 80199ae <lwip_standard_chksum+0xaa>
  62671. sum = SWAP_BYTES_IN_WORD(sum);
  62672. 801999e: 697b ldr r3, [r7, #20]
  62673. 80199a0: 021b lsls r3, r3, #8
  62674. 80199a2: b29a uxth r2, r3
  62675. 80199a4: 697b ldr r3, [r7, #20]
  62676. 80199a6: 0a1b lsrs r3, r3, #8
  62677. 80199a8: b2db uxtb r3, r3
  62678. 80199aa: 4313 orrs r3, r2
  62679. 80199ac: 617b str r3, [r7, #20]
  62680. }
  62681. return (u16_t)sum;
  62682. 80199ae: 697b ldr r3, [r7, #20]
  62683. 80199b0: b29b uxth r3, r3
  62684. }
  62685. 80199b2: 4618 mov r0, r3
  62686. 80199b4: 3724 adds r7, #36 @ 0x24
  62687. 80199b6: 46bd mov sp, r7
  62688. 80199b8: f85d 7b04 ldr.w r7, [sp], #4
  62689. 80199bc: 4770 bx lr
  62690. 080199be <inet_chksum>:
  62691. * @return checksum (as u16_t) to be saved directly in the protocol header
  62692. */
  62693. u16_t
  62694. inet_chksum(const void *dataptr, u16_t len)
  62695. {
  62696. 80199be: b580 push {r7, lr}
  62697. 80199c0: b082 sub sp, #8
  62698. 80199c2: af00 add r7, sp, #0
  62699. 80199c4: 6078 str r0, [r7, #4]
  62700. 80199c6: 460b mov r3, r1
  62701. 80199c8: 807b strh r3, [r7, #2]
  62702. return (u16_t)~(unsigned int)LWIP_CHKSUM(dataptr, len);
  62703. 80199ca: 887b ldrh r3, [r7, #2]
  62704. 80199cc: 4619 mov r1, r3
  62705. 80199ce: 6878 ldr r0, [r7, #4]
  62706. 80199d0: f7ff ff98 bl 8019904 <lwip_standard_chksum>
  62707. 80199d4: 4603 mov r3, r0
  62708. 80199d6: 43db mvns r3, r3
  62709. 80199d8: b29b uxth r3, r3
  62710. }
  62711. 80199da: 4618 mov r0, r3
  62712. 80199dc: 3708 adds r7, #8
  62713. 80199de: 46bd mov sp, r7
  62714. 80199e0: bd80 pop {r7, pc}
  62715. 080199e2 <inet_chksum_pbuf>:
  62716. * @param p pbuf chain over that the checksum should be calculated
  62717. * @return checksum (as u16_t) to be saved directly in the protocol header
  62718. */
  62719. u16_t
  62720. inet_chksum_pbuf(struct pbuf *p)
  62721. {
  62722. 80199e2: b580 push {r7, lr}
  62723. 80199e4: b086 sub sp, #24
  62724. 80199e6: af00 add r7, sp, #0
  62725. 80199e8: 6078 str r0, [r7, #4]
  62726. u32_t acc;
  62727. struct pbuf *q;
  62728. int swapped = 0;
  62729. 80199ea: 2300 movs r3, #0
  62730. 80199ec: 60fb str r3, [r7, #12]
  62731. acc = 0;
  62732. 80199ee: 2300 movs r3, #0
  62733. 80199f0: 617b str r3, [r7, #20]
  62734. for (q = p; q != NULL; q = q->next) {
  62735. 80199f2: 687b ldr r3, [r7, #4]
  62736. 80199f4: 613b str r3, [r7, #16]
  62737. 80199f6: e02b b.n 8019a50 <inet_chksum_pbuf+0x6e>
  62738. acc += LWIP_CHKSUM(q->payload, q->len);
  62739. 80199f8: 693b ldr r3, [r7, #16]
  62740. 80199fa: 685a ldr r2, [r3, #4]
  62741. 80199fc: 693b ldr r3, [r7, #16]
  62742. 80199fe: 895b ldrh r3, [r3, #10]
  62743. 8019a00: 4619 mov r1, r3
  62744. 8019a02: 4610 mov r0, r2
  62745. 8019a04: f7ff ff7e bl 8019904 <lwip_standard_chksum>
  62746. 8019a08: 4603 mov r3, r0
  62747. 8019a0a: 461a mov r2, r3
  62748. 8019a0c: 697b ldr r3, [r7, #20]
  62749. 8019a0e: 4413 add r3, r2
  62750. 8019a10: 617b str r3, [r7, #20]
  62751. acc = FOLD_U32T(acc);
  62752. 8019a12: 697b ldr r3, [r7, #20]
  62753. 8019a14: 0c1a lsrs r2, r3, #16
  62754. 8019a16: 697b ldr r3, [r7, #20]
  62755. 8019a18: b29b uxth r3, r3
  62756. 8019a1a: 4413 add r3, r2
  62757. 8019a1c: 617b str r3, [r7, #20]
  62758. if (q->len % 2 != 0) {
  62759. 8019a1e: 693b ldr r3, [r7, #16]
  62760. 8019a20: 895b ldrh r3, [r3, #10]
  62761. 8019a22: f003 0301 and.w r3, r3, #1
  62762. 8019a26: b29b uxth r3, r3
  62763. 8019a28: 2b00 cmp r3, #0
  62764. 8019a2a: d00e beq.n 8019a4a <inet_chksum_pbuf+0x68>
  62765. swapped = !swapped;
  62766. 8019a2c: 68fb ldr r3, [r7, #12]
  62767. 8019a2e: 2b00 cmp r3, #0
  62768. 8019a30: bf0c ite eq
  62769. 8019a32: 2301 moveq r3, #1
  62770. 8019a34: 2300 movne r3, #0
  62771. 8019a36: b2db uxtb r3, r3
  62772. 8019a38: 60fb str r3, [r7, #12]
  62773. acc = SWAP_BYTES_IN_WORD(acc);
  62774. 8019a3a: 697b ldr r3, [r7, #20]
  62775. 8019a3c: 021b lsls r3, r3, #8
  62776. 8019a3e: b29a uxth r2, r3
  62777. 8019a40: 697b ldr r3, [r7, #20]
  62778. 8019a42: 0a1b lsrs r3, r3, #8
  62779. 8019a44: b2db uxtb r3, r3
  62780. 8019a46: 4313 orrs r3, r2
  62781. 8019a48: 617b str r3, [r7, #20]
  62782. for (q = p; q != NULL; q = q->next) {
  62783. 8019a4a: 693b ldr r3, [r7, #16]
  62784. 8019a4c: 681b ldr r3, [r3, #0]
  62785. 8019a4e: 613b str r3, [r7, #16]
  62786. 8019a50: 693b ldr r3, [r7, #16]
  62787. 8019a52: 2b00 cmp r3, #0
  62788. 8019a54: d1d0 bne.n 80199f8 <inet_chksum_pbuf+0x16>
  62789. }
  62790. }
  62791. if (swapped) {
  62792. 8019a56: 68fb ldr r3, [r7, #12]
  62793. 8019a58: 2b00 cmp r3, #0
  62794. 8019a5a: d007 beq.n 8019a6c <inet_chksum_pbuf+0x8a>
  62795. acc = SWAP_BYTES_IN_WORD(acc);
  62796. 8019a5c: 697b ldr r3, [r7, #20]
  62797. 8019a5e: 021b lsls r3, r3, #8
  62798. 8019a60: b29a uxth r2, r3
  62799. 8019a62: 697b ldr r3, [r7, #20]
  62800. 8019a64: 0a1b lsrs r3, r3, #8
  62801. 8019a66: b2db uxtb r3, r3
  62802. 8019a68: 4313 orrs r3, r2
  62803. 8019a6a: 617b str r3, [r7, #20]
  62804. }
  62805. return (u16_t)~(acc & 0xffffUL);
  62806. 8019a6c: 697b ldr r3, [r7, #20]
  62807. 8019a6e: b29b uxth r3, r3
  62808. 8019a70: 43db mvns r3, r3
  62809. 8019a72: b29b uxth r3, r3
  62810. }
  62811. 8019a74: 4618 mov r0, r3
  62812. 8019a76: 3718 adds r7, #24
  62813. 8019a78: 46bd mov sp, r7
  62814. 8019a7a: bd80 pop {r7, pc}
  62815. 08019a7c <lwip_init>:
  62816. * Initialize all modules.
  62817. * Use this in NO_SYS mode. Use tcpip_init() otherwise.
  62818. */
  62819. void
  62820. lwip_init(void)
  62821. {
  62822. 8019a7c: b580 push {r7, lr}
  62823. 8019a7e: b082 sub sp, #8
  62824. 8019a80: af00 add r7, sp, #0
  62825. #ifndef LWIP_SKIP_CONST_CHECK
  62826. int a = 0;
  62827. 8019a82: 2300 movs r3, #0
  62828. 8019a84: 607b str r3, [r7, #4]
  62829. #endif
  62830. /* Modules initialization */
  62831. stats_init();
  62832. #if !NO_SYS
  62833. sys_init();
  62834. 8019a86: f00d fb75 bl 8027174 <sys_init>
  62835. #endif /* !NO_SYS */
  62836. mem_init();
  62837. 8019a8a: f000 f8d3 bl 8019c34 <mem_init>
  62838. memp_init();
  62839. 8019a8e: f000 fc1b bl 801a2c8 <memp_init>
  62840. pbuf_init();
  62841. netif_init();
  62842. 8019a92: f000 fd27 bl 801a4e4 <netif_init>
  62843. #endif /* LWIP_IPV4 */
  62844. #if LWIP_RAW
  62845. raw_init();
  62846. #endif /* LWIP_RAW */
  62847. #if LWIP_UDP
  62848. udp_init();
  62849. 8019a96: f008 f8db bl 8021c50 <udp_init>
  62850. #endif /* LWIP_UDP */
  62851. #if LWIP_TCP
  62852. tcp_init();
  62853. 8019a9a: f001 fe91 bl 801b7c0 <tcp_init>
  62854. #if PPP_SUPPORT
  62855. ppp_init();
  62856. #endif
  62857. #if LWIP_TIMERS
  62858. sys_timeouts_init();
  62859. 8019a9e: f008 f817 bl 8021ad0 <sys_timeouts_init>
  62860. #endif /* LWIP_TIMERS */
  62861. }
  62862. 8019aa2: bf00 nop
  62863. 8019aa4: 3708 adds r7, #8
  62864. 8019aa6: 46bd mov sp, r7
  62865. 8019aa8: bd80 pop {r7, pc}
  62866. ...
  62867. 08019aac <ptr_to_mem>:
  62868. #define mem_overflow_check_element(mem)
  62869. #endif /* MEM_OVERFLOW_CHECK */
  62870. static struct mem *
  62871. ptr_to_mem(mem_size_t ptr)
  62872. {
  62873. 8019aac: b480 push {r7}
  62874. 8019aae: b083 sub sp, #12
  62875. 8019ab0: af00 add r7, sp, #0
  62876. 8019ab2: 6078 str r0, [r7, #4]
  62877. return (struct mem *)(void *)&ram[ptr];
  62878. 8019ab4: 4b04 ldr r3, [pc, #16] @ (8019ac8 <ptr_to_mem+0x1c>)
  62879. 8019ab6: 681a ldr r2, [r3, #0]
  62880. 8019ab8: 687b ldr r3, [r7, #4]
  62881. 8019aba: 4413 add r3, r2
  62882. }
  62883. 8019abc: 4618 mov r0, r3
  62884. 8019abe: 370c adds r7, #12
  62885. 8019ac0: 46bd mov sp, r7
  62886. 8019ac2: f85d 7b04 ldr.w r7, [sp], #4
  62887. 8019ac6: 4770 bx lr
  62888. 8019ac8: 24024430 .word 0x24024430
  62889. 08019acc <mem_to_ptr>:
  62890. static mem_size_t
  62891. mem_to_ptr(void *mem)
  62892. {
  62893. 8019acc: b480 push {r7}
  62894. 8019ace: b083 sub sp, #12
  62895. 8019ad0: af00 add r7, sp, #0
  62896. 8019ad2: 6078 str r0, [r7, #4]
  62897. return (mem_size_t)((u8_t *)mem - ram);
  62898. 8019ad4: 4b04 ldr r3, [pc, #16] @ (8019ae8 <mem_to_ptr+0x1c>)
  62899. 8019ad6: 681b ldr r3, [r3, #0]
  62900. 8019ad8: 687a ldr r2, [r7, #4]
  62901. 8019ada: 1ad3 subs r3, r2, r3
  62902. }
  62903. 8019adc: 4618 mov r0, r3
  62904. 8019ade: 370c adds r7, #12
  62905. 8019ae0: 46bd mov sp, r7
  62906. 8019ae2: f85d 7b04 ldr.w r7, [sp], #4
  62907. 8019ae6: 4770 bx lr
  62908. 8019ae8: 24024430 .word 0x24024430
  62909. 08019aec <plug_holes>:
  62910. * This assumes access to the heap is protected by the calling function
  62911. * already.
  62912. */
  62913. static void
  62914. plug_holes(struct mem *mem)
  62915. {
  62916. 8019aec: b590 push {r4, r7, lr}
  62917. 8019aee: b085 sub sp, #20
  62918. 8019af0: af00 add r7, sp, #0
  62919. 8019af2: 6078 str r0, [r7, #4]
  62920. struct mem *nmem;
  62921. struct mem *pmem;
  62922. LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram);
  62923. 8019af4: 4b45 ldr r3, [pc, #276] @ (8019c0c <plug_holes+0x120>)
  62924. 8019af6: 681b ldr r3, [r3, #0]
  62925. 8019af8: 687a ldr r2, [r7, #4]
  62926. 8019afa: 429a cmp r2, r3
  62927. 8019afc: d206 bcs.n 8019b0c <plug_holes+0x20>
  62928. 8019afe: 4b44 ldr r3, [pc, #272] @ (8019c10 <plug_holes+0x124>)
  62929. 8019b00: f240 12df movw r2, #479 @ 0x1df
  62930. 8019b04: 4943 ldr r1, [pc, #268] @ (8019c14 <plug_holes+0x128>)
  62931. 8019b06: 4844 ldr r0, [pc, #272] @ (8019c18 <plug_holes+0x12c>)
  62932. 8019b08: f010 fe28 bl 802a75c <iprintf>
  62933. LWIP_ASSERT("plug_holes: mem < ram_end", (u8_t *)mem < (u8_t *)ram_end);
  62934. 8019b0c: 4b43 ldr r3, [pc, #268] @ (8019c1c <plug_holes+0x130>)
  62935. 8019b0e: 681b ldr r3, [r3, #0]
  62936. 8019b10: 687a ldr r2, [r7, #4]
  62937. 8019b12: 429a cmp r2, r3
  62938. 8019b14: d306 bcc.n 8019b24 <plug_holes+0x38>
  62939. 8019b16: 4b3e ldr r3, [pc, #248] @ (8019c10 <plug_holes+0x124>)
  62940. 8019b18: f44f 72f0 mov.w r2, #480 @ 0x1e0
  62941. 8019b1c: 4940 ldr r1, [pc, #256] @ (8019c20 <plug_holes+0x134>)
  62942. 8019b1e: 483e ldr r0, [pc, #248] @ (8019c18 <plug_holes+0x12c>)
  62943. 8019b20: f010 fe1c bl 802a75c <iprintf>
  62944. LWIP_ASSERT("plug_holes: mem->used == 0", mem->used == 0);
  62945. 8019b24: 687b ldr r3, [r7, #4]
  62946. 8019b26: 7a1b ldrb r3, [r3, #8]
  62947. 8019b28: 2b00 cmp r3, #0
  62948. 8019b2a: d006 beq.n 8019b3a <plug_holes+0x4e>
  62949. 8019b2c: 4b38 ldr r3, [pc, #224] @ (8019c10 <plug_holes+0x124>)
  62950. 8019b2e: f240 12e1 movw r2, #481 @ 0x1e1
  62951. 8019b32: 493c ldr r1, [pc, #240] @ (8019c24 <plug_holes+0x138>)
  62952. 8019b34: 4838 ldr r0, [pc, #224] @ (8019c18 <plug_holes+0x12c>)
  62953. 8019b36: f010 fe11 bl 802a75c <iprintf>
  62954. /* plug hole forward */
  62955. LWIP_ASSERT("plug_holes: mem->next <= MEM_SIZE_ALIGNED", mem->next <= MEM_SIZE_ALIGNED);
  62956. 8019b3a: 687b ldr r3, [r7, #4]
  62957. 8019b3c: 681b ldr r3, [r3, #0]
  62958. 8019b3e: 4a3a ldr r2, [pc, #232] @ (8019c28 <plug_holes+0x13c>)
  62959. 8019b40: 4293 cmp r3, r2
  62960. 8019b42: d906 bls.n 8019b52 <plug_holes+0x66>
  62961. 8019b44: 4b32 ldr r3, [pc, #200] @ (8019c10 <plug_holes+0x124>)
  62962. 8019b46: f44f 72f2 mov.w r2, #484 @ 0x1e4
  62963. 8019b4a: 4938 ldr r1, [pc, #224] @ (8019c2c <plug_holes+0x140>)
  62964. 8019b4c: 4832 ldr r0, [pc, #200] @ (8019c18 <plug_holes+0x12c>)
  62965. 8019b4e: f010 fe05 bl 802a75c <iprintf>
  62966. nmem = ptr_to_mem(mem->next);
  62967. 8019b52: 687b ldr r3, [r7, #4]
  62968. 8019b54: 681b ldr r3, [r3, #0]
  62969. 8019b56: 4618 mov r0, r3
  62970. 8019b58: f7ff ffa8 bl 8019aac <ptr_to_mem>
  62971. 8019b5c: 60f8 str r0, [r7, #12]
  62972. if (mem != nmem && nmem->used == 0 && (u8_t *)nmem != (u8_t *)ram_end) {
  62973. 8019b5e: 687a ldr r2, [r7, #4]
  62974. 8019b60: 68fb ldr r3, [r7, #12]
  62975. 8019b62: 429a cmp r2, r3
  62976. 8019b64: d024 beq.n 8019bb0 <plug_holes+0xc4>
  62977. 8019b66: 68fb ldr r3, [r7, #12]
  62978. 8019b68: 7a1b ldrb r3, [r3, #8]
  62979. 8019b6a: 2b00 cmp r3, #0
  62980. 8019b6c: d120 bne.n 8019bb0 <plug_holes+0xc4>
  62981. 8019b6e: 4b2b ldr r3, [pc, #172] @ (8019c1c <plug_holes+0x130>)
  62982. 8019b70: 681b ldr r3, [r3, #0]
  62983. 8019b72: 68fa ldr r2, [r7, #12]
  62984. 8019b74: 429a cmp r2, r3
  62985. 8019b76: d01b beq.n 8019bb0 <plug_holes+0xc4>
  62986. /* if mem->next is unused and not end of ram, combine mem and mem->next */
  62987. if (lfree == nmem) {
  62988. 8019b78: 4b2d ldr r3, [pc, #180] @ (8019c30 <plug_holes+0x144>)
  62989. 8019b7a: 681b ldr r3, [r3, #0]
  62990. 8019b7c: 68fa ldr r2, [r7, #12]
  62991. 8019b7e: 429a cmp r2, r3
  62992. 8019b80: d102 bne.n 8019b88 <plug_holes+0x9c>
  62993. lfree = mem;
  62994. 8019b82: 4a2b ldr r2, [pc, #172] @ (8019c30 <plug_holes+0x144>)
  62995. 8019b84: 687b ldr r3, [r7, #4]
  62996. 8019b86: 6013 str r3, [r2, #0]
  62997. }
  62998. mem->next = nmem->next;
  62999. 8019b88: 68fb ldr r3, [r7, #12]
  63000. 8019b8a: 681a ldr r2, [r3, #0]
  63001. 8019b8c: 687b ldr r3, [r7, #4]
  63002. 8019b8e: 601a str r2, [r3, #0]
  63003. if (nmem->next != MEM_SIZE_ALIGNED) {
  63004. 8019b90: 68fb ldr r3, [r7, #12]
  63005. 8019b92: 681b ldr r3, [r3, #0]
  63006. 8019b94: 4a24 ldr r2, [pc, #144] @ (8019c28 <plug_holes+0x13c>)
  63007. 8019b96: 4293 cmp r3, r2
  63008. 8019b98: d00a beq.n 8019bb0 <plug_holes+0xc4>
  63009. ptr_to_mem(nmem->next)->prev = mem_to_ptr(mem);
  63010. 8019b9a: 68fb ldr r3, [r7, #12]
  63011. 8019b9c: 681b ldr r3, [r3, #0]
  63012. 8019b9e: 4618 mov r0, r3
  63013. 8019ba0: f7ff ff84 bl 8019aac <ptr_to_mem>
  63014. 8019ba4: 4604 mov r4, r0
  63015. 8019ba6: 6878 ldr r0, [r7, #4]
  63016. 8019ba8: f7ff ff90 bl 8019acc <mem_to_ptr>
  63017. 8019bac: 4603 mov r3, r0
  63018. 8019bae: 6063 str r3, [r4, #4]
  63019. }
  63020. }
  63021. /* plug hole backward */
  63022. pmem = ptr_to_mem(mem->prev);
  63023. 8019bb0: 687b ldr r3, [r7, #4]
  63024. 8019bb2: 685b ldr r3, [r3, #4]
  63025. 8019bb4: 4618 mov r0, r3
  63026. 8019bb6: f7ff ff79 bl 8019aac <ptr_to_mem>
  63027. 8019bba: 60b8 str r0, [r7, #8]
  63028. if (pmem != mem && pmem->used == 0) {
  63029. 8019bbc: 68ba ldr r2, [r7, #8]
  63030. 8019bbe: 687b ldr r3, [r7, #4]
  63031. 8019bc0: 429a cmp r2, r3
  63032. 8019bc2: d01f beq.n 8019c04 <plug_holes+0x118>
  63033. 8019bc4: 68bb ldr r3, [r7, #8]
  63034. 8019bc6: 7a1b ldrb r3, [r3, #8]
  63035. 8019bc8: 2b00 cmp r3, #0
  63036. 8019bca: d11b bne.n 8019c04 <plug_holes+0x118>
  63037. /* if mem->prev is unused, combine mem and mem->prev */
  63038. if (lfree == mem) {
  63039. 8019bcc: 4b18 ldr r3, [pc, #96] @ (8019c30 <plug_holes+0x144>)
  63040. 8019bce: 681b ldr r3, [r3, #0]
  63041. 8019bd0: 687a ldr r2, [r7, #4]
  63042. 8019bd2: 429a cmp r2, r3
  63043. 8019bd4: d102 bne.n 8019bdc <plug_holes+0xf0>
  63044. lfree = pmem;
  63045. 8019bd6: 4a16 ldr r2, [pc, #88] @ (8019c30 <plug_holes+0x144>)
  63046. 8019bd8: 68bb ldr r3, [r7, #8]
  63047. 8019bda: 6013 str r3, [r2, #0]
  63048. }
  63049. pmem->next = mem->next;
  63050. 8019bdc: 687b ldr r3, [r7, #4]
  63051. 8019bde: 681a ldr r2, [r3, #0]
  63052. 8019be0: 68bb ldr r3, [r7, #8]
  63053. 8019be2: 601a str r2, [r3, #0]
  63054. if (mem->next != MEM_SIZE_ALIGNED) {
  63055. 8019be4: 687b ldr r3, [r7, #4]
  63056. 8019be6: 681b ldr r3, [r3, #0]
  63057. 8019be8: 4a0f ldr r2, [pc, #60] @ (8019c28 <plug_holes+0x13c>)
  63058. 8019bea: 4293 cmp r3, r2
  63059. 8019bec: d00a beq.n 8019c04 <plug_holes+0x118>
  63060. ptr_to_mem(mem->next)->prev = mem_to_ptr(pmem);
  63061. 8019bee: 687b ldr r3, [r7, #4]
  63062. 8019bf0: 681b ldr r3, [r3, #0]
  63063. 8019bf2: 4618 mov r0, r3
  63064. 8019bf4: f7ff ff5a bl 8019aac <ptr_to_mem>
  63065. 8019bf8: 4604 mov r4, r0
  63066. 8019bfa: 68b8 ldr r0, [r7, #8]
  63067. 8019bfc: f7ff ff66 bl 8019acc <mem_to_ptr>
  63068. 8019c00: 4603 mov r3, r0
  63069. 8019c02: 6063 str r3, [r4, #4]
  63070. }
  63071. }
  63072. }
  63073. 8019c04: bf00 nop
  63074. 8019c06: 3714 adds r7, #20
  63075. 8019c08: 46bd mov sp, r7
  63076. 8019c0a: bd90 pop {r4, r7, pc}
  63077. 8019c0c: 24024430 .word 0x24024430
  63078. 8019c10: 0802e960 .word 0x0802e960
  63079. 8019c14: 0802e990 .word 0x0802e990
  63080. 8019c18: 0802e9a8 .word 0x0802e9a8
  63081. 8019c1c: 24024434 .word 0x24024434
  63082. 8019c20: 0802e9d0 .word 0x0802e9d0
  63083. 8019c24: 0802e9ec .word 0x0802e9ec
  63084. 8019c28: 0001ffe8 .word 0x0001ffe8
  63085. 8019c2c: 0802ea08 .word 0x0802ea08
  63086. 8019c30: 2402443c .word 0x2402443c
  63087. 08019c34 <mem_init>:
  63088. /**
  63089. * Zero the heap and initialize start, end and lowest-free
  63090. */
  63091. void
  63092. mem_init(void)
  63093. {
  63094. 8019c34: b580 push {r7, lr}
  63095. 8019c36: b082 sub sp, #8
  63096. 8019c38: af00 add r7, sp, #0
  63097. LWIP_ASSERT("Sanity check alignment",
  63098. (SIZEOF_STRUCT_MEM & (MEM_ALIGNMENT - 1)) == 0);
  63099. /* align the heap */
  63100. ram = (u8_t *)LWIP_MEM_ALIGN(LWIP_RAM_HEAP_POINTER);
  63101. 8019c3a: 4b1b ldr r3, [pc, #108] @ (8019ca8 <mem_init+0x74>)
  63102. 8019c3c: 4a1b ldr r2, [pc, #108] @ (8019cac <mem_init+0x78>)
  63103. 8019c3e: 601a str r2, [r3, #0]
  63104. /* initialize the start of the heap */
  63105. mem = (struct mem *)(void *)ram;
  63106. 8019c40: 4b19 ldr r3, [pc, #100] @ (8019ca8 <mem_init+0x74>)
  63107. 8019c42: 681b ldr r3, [r3, #0]
  63108. 8019c44: 607b str r3, [r7, #4]
  63109. mem->next = MEM_SIZE_ALIGNED;
  63110. 8019c46: 687b ldr r3, [r7, #4]
  63111. 8019c48: 4a19 ldr r2, [pc, #100] @ (8019cb0 <mem_init+0x7c>)
  63112. 8019c4a: 601a str r2, [r3, #0]
  63113. mem->prev = 0;
  63114. 8019c4c: 687b ldr r3, [r7, #4]
  63115. 8019c4e: 2200 movs r2, #0
  63116. 8019c50: 605a str r2, [r3, #4]
  63117. mem->used = 0;
  63118. 8019c52: 687b ldr r3, [r7, #4]
  63119. 8019c54: 2200 movs r2, #0
  63120. 8019c56: 721a strb r2, [r3, #8]
  63121. /* initialize the end of the heap */
  63122. ram_end = ptr_to_mem(MEM_SIZE_ALIGNED);
  63123. 8019c58: 4815 ldr r0, [pc, #84] @ (8019cb0 <mem_init+0x7c>)
  63124. 8019c5a: f7ff ff27 bl 8019aac <ptr_to_mem>
  63125. 8019c5e: 4603 mov r3, r0
  63126. 8019c60: 4a14 ldr r2, [pc, #80] @ (8019cb4 <mem_init+0x80>)
  63127. 8019c62: 6013 str r3, [r2, #0]
  63128. ram_end->used = 1;
  63129. 8019c64: 4b13 ldr r3, [pc, #76] @ (8019cb4 <mem_init+0x80>)
  63130. 8019c66: 681b ldr r3, [r3, #0]
  63131. 8019c68: 2201 movs r2, #1
  63132. 8019c6a: 721a strb r2, [r3, #8]
  63133. ram_end->next = MEM_SIZE_ALIGNED;
  63134. 8019c6c: 4b11 ldr r3, [pc, #68] @ (8019cb4 <mem_init+0x80>)
  63135. 8019c6e: 681b ldr r3, [r3, #0]
  63136. 8019c70: 4a0f ldr r2, [pc, #60] @ (8019cb0 <mem_init+0x7c>)
  63137. 8019c72: 601a str r2, [r3, #0]
  63138. ram_end->prev = MEM_SIZE_ALIGNED;
  63139. 8019c74: 4b0f ldr r3, [pc, #60] @ (8019cb4 <mem_init+0x80>)
  63140. 8019c76: 681b ldr r3, [r3, #0]
  63141. 8019c78: 4a0d ldr r2, [pc, #52] @ (8019cb0 <mem_init+0x7c>)
  63142. 8019c7a: 605a str r2, [r3, #4]
  63143. MEM_SANITY();
  63144. /* initialize the lowest-free pointer to the start of the heap */
  63145. lfree = (struct mem *)(void *)ram;
  63146. 8019c7c: 4b0a ldr r3, [pc, #40] @ (8019ca8 <mem_init+0x74>)
  63147. 8019c7e: 681b ldr r3, [r3, #0]
  63148. 8019c80: 4a0d ldr r2, [pc, #52] @ (8019cb8 <mem_init+0x84>)
  63149. 8019c82: 6013 str r3, [r2, #0]
  63150. MEM_STATS_AVAIL(avail, MEM_SIZE_ALIGNED);
  63151. if (sys_mutex_new(&mem_mutex) != ERR_OK) {
  63152. 8019c84: 480d ldr r0, [pc, #52] @ (8019cbc <mem_init+0x88>)
  63153. 8019c86: f00d fa81 bl 802718c <sys_mutex_new>
  63154. 8019c8a: 4603 mov r3, r0
  63155. 8019c8c: 2b00 cmp r3, #0
  63156. 8019c8e: d006 beq.n 8019c9e <mem_init+0x6a>
  63157. LWIP_ASSERT("failed to create mem_mutex", 0);
  63158. 8019c90: 4b0b ldr r3, [pc, #44] @ (8019cc0 <mem_init+0x8c>)
  63159. 8019c92: f240 221f movw r2, #543 @ 0x21f
  63160. 8019c96: 490b ldr r1, [pc, #44] @ (8019cc4 <mem_init+0x90>)
  63161. 8019c98: 480b ldr r0, [pc, #44] @ (8019cc8 <mem_init+0x94>)
  63162. 8019c9a: f010 fd5f bl 802a75c <iprintf>
  63163. }
  63164. }
  63165. 8019c9e: bf00 nop
  63166. 8019ca0: 3708 adds r7, #8
  63167. 8019ca2: 46bd mov sp, r7
  63168. 8019ca4: bd80 pop {r7, pc}
  63169. 8019ca6: bf00 nop
  63170. 8019ca8: 24024430 .word 0x24024430
  63171. 8019cac: 24020000 .word 0x24020000
  63172. 8019cb0: 0001ffe8 .word 0x0001ffe8
  63173. 8019cb4: 24024434 .word 0x24024434
  63174. 8019cb8: 2402443c .word 0x2402443c
  63175. 8019cbc: 24024438 .word 0x24024438
  63176. 8019cc0: 0802e960 .word 0x0802e960
  63177. 8019cc4: 0802ea34 .word 0x0802ea34
  63178. 8019cc8: 0802e9a8 .word 0x0802e9a8
  63179. 08019ccc <mem_link_valid>:
  63180. /* Check if a struct mem is correctly linked.
  63181. * If not, double-free is a possible reason.
  63182. */
  63183. static int
  63184. mem_link_valid(struct mem *mem)
  63185. {
  63186. 8019ccc: b580 push {r7, lr}
  63187. 8019cce: b086 sub sp, #24
  63188. 8019cd0: af00 add r7, sp, #0
  63189. 8019cd2: 6078 str r0, [r7, #4]
  63190. struct mem *nmem, *pmem;
  63191. mem_size_t rmem_idx;
  63192. rmem_idx = mem_to_ptr(mem);
  63193. 8019cd4: 6878 ldr r0, [r7, #4]
  63194. 8019cd6: f7ff fef9 bl 8019acc <mem_to_ptr>
  63195. 8019cda: 6178 str r0, [r7, #20]
  63196. nmem = ptr_to_mem(mem->next);
  63197. 8019cdc: 687b ldr r3, [r7, #4]
  63198. 8019cde: 681b ldr r3, [r3, #0]
  63199. 8019ce0: 4618 mov r0, r3
  63200. 8019ce2: f7ff fee3 bl 8019aac <ptr_to_mem>
  63201. 8019ce6: 6138 str r0, [r7, #16]
  63202. pmem = ptr_to_mem(mem->prev);
  63203. 8019ce8: 687b ldr r3, [r7, #4]
  63204. 8019cea: 685b ldr r3, [r3, #4]
  63205. 8019cec: 4618 mov r0, r3
  63206. 8019cee: f7ff fedd bl 8019aac <ptr_to_mem>
  63207. 8019cf2: 60f8 str r0, [r7, #12]
  63208. if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) ||
  63209. 8019cf4: 687b ldr r3, [r7, #4]
  63210. 8019cf6: 681b ldr r3, [r3, #0]
  63211. 8019cf8: 4a11 ldr r2, [pc, #68] @ (8019d40 <mem_link_valid+0x74>)
  63212. 8019cfa: 4293 cmp r3, r2
  63213. 8019cfc: d818 bhi.n 8019d30 <mem_link_valid+0x64>
  63214. 8019cfe: 687b ldr r3, [r7, #4]
  63215. 8019d00: 685b ldr r3, [r3, #4]
  63216. 8019d02: 4a0f ldr r2, [pc, #60] @ (8019d40 <mem_link_valid+0x74>)
  63217. 8019d04: 4293 cmp r3, r2
  63218. 8019d06: d813 bhi.n 8019d30 <mem_link_valid+0x64>
  63219. ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) ||
  63220. 8019d08: 687b ldr r3, [r7, #4]
  63221. 8019d0a: 685b ldr r3, [r3, #4]
  63222. if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) ||
  63223. 8019d0c: 697a ldr r2, [r7, #20]
  63224. 8019d0e: 429a cmp r2, r3
  63225. 8019d10: d004 beq.n 8019d1c <mem_link_valid+0x50>
  63226. ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) ||
  63227. 8019d12: 68fb ldr r3, [r7, #12]
  63228. 8019d14: 681b ldr r3, [r3, #0]
  63229. 8019d16: 697a ldr r2, [r7, #20]
  63230. 8019d18: 429a cmp r2, r3
  63231. 8019d1a: d109 bne.n 8019d30 <mem_link_valid+0x64>
  63232. ((nmem != ram_end) && (nmem->prev != rmem_idx))) {
  63233. 8019d1c: 4b09 ldr r3, [pc, #36] @ (8019d44 <mem_link_valid+0x78>)
  63234. 8019d1e: 681b ldr r3, [r3, #0]
  63235. ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) ||
  63236. 8019d20: 693a ldr r2, [r7, #16]
  63237. 8019d22: 429a cmp r2, r3
  63238. 8019d24: d006 beq.n 8019d34 <mem_link_valid+0x68>
  63239. ((nmem != ram_end) && (nmem->prev != rmem_idx))) {
  63240. 8019d26: 693b ldr r3, [r7, #16]
  63241. 8019d28: 685b ldr r3, [r3, #4]
  63242. 8019d2a: 697a ldr r2, [r7, #20]
  63243. 8019d2c: 429a cmp r2, r3
  63244. 8019d2e: d001 beq.n 8019d34 <mem_link_valid+0x68>
  63245. return 0;
  63246. 8019d30: 2300 movs r3, #0
  63247. 8019d32: e000 b.n 8019d36 <mem_link_valid+0x6a>
  63248. }
  63249. return 1;
  63250. 8019d34: 2301 movs r3, #1
  63251. }
  63252. 8019d36: 4618 mov r0, r3
  63253. 8019d38: 3718 adds r7, #24
  63254. 8019d3a: 46bd mov sp, r7
  63255. 8019d3c: bd80 pop {r7, pc}
  63256. 8019d3e: bf00 nop
  63257. 8019d40: 0001ffe8 .word 0x0001ffe8
  63258. 8019d44: 24024434 .word 0x24024434
  63259. 08019d48 <mem_free>:
  63260. * @param rmem is the data portion of a struct mem as returned by a previous
  63261. * call to mem_malloc()
  63262. */
  63263. void
  63264. mem_free(void *rmem)
  63265. {
  63266. 8019d48: b580 push {r7, lr}
  63267. 8019d4a: b088 sub sp, #32
  63268. 8019d4c: af00 add r7, sp, #0
  63269. 8019d4e: 6078 str r0, [r7, #4]
  63270. struct mem *mem;
  63271. LWIP_MEM_FREE_DECL_PROTECT();
  63272. if (rmem == NULL) {
  63273. 8019d50: 687b ldr r3, [r7, #4]
  63274. 8019d52: 2b00 cmp r3, #0
  63275. 8019d54: d070 beq.n 8019e38 <mem_free+0xf0>
  63276. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("mem_free(p == NULL) was called.\n"));
  63277. return;
  63278. }
  63279. if ((((mem_ptr_t)rmem) & (MEM_ALIGNMENT - 1)) != 0) {
  63280. 8019d56: 687b ldr r3, [r7, #4]
  63281. 8019d58: f003 0303 and.w r3, r3, #3
  63282. 8019d5c: 2b00 cmp r3, #0
  63283. 8019d5e: d00d beq.n 8019d7c <mem_free+0x34>
  63284. LWIP_MEM_ILLEGAL_FREE("mem_free: sanity check alignment");
  63285. 8019d60: 4b37 ldr r3, [pc, #220] @ (8019e40 <mem_free+0xf8>)
  63286. 8019d62: f240 2273 movw r2, #627 @ 0x273
  63287. 8019d66: 4937 ldr r1, [pc, #220] @ (8019e44 <mem_free+0xfc>)
  63288. 8019d68: 4837 ldr r0, [pc, #220] @ (8019e48 <mem_free+0x100>)
  63289. 8019d6a: f010 fcf7 bl 802a75c <iprintf>
  63290. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: sanity check alignment\n"));
  63291. /* protect mem stats from concurrent access */
  63292. MEM_STATS_INC_LOCKED(illegal);
  63293. 8019d6e: f00d fa5f bl 8027230 <sys_arch_protect>
  63294. 8019d72: 60f8 str r0, [r7, #12]
  63295. 8019d74: 68f8 ldr r0, [r7, #12]
  63296. 8019d76: f00d fa69 bl 802724c <sys_arch_unprotect>
  63297. return;
  63298. 8019d7a: e05e b.n 8019e3a <mem_free+0xf2>
  63299. }
  63300. /* Get the corresponding struct mem: */
  63301. /* cast through void* to get rid of alignment warnings */
  63302. mem = (struct mem *)(void *)((u8_t *)rmem - (SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET));
  63303. 8019d7c: 687b ldr r3, [r7, #4]
  63304. 8019d7e: 3b0c subs r3, #12
  63305. 8019d80: 61fb str r3, [r7, #28]
  63306. if ((u8_t *)mem < ram || (u8_t *)rmem + MIN_SIZE_ALIGNED > (u8_t *)ram_end) {
  63307. 8019d82: 4b32 ldr r3, [pc, #200] @ (8019e4c <mem_free+0x104>)
  63308. 8019d84: 681b ldr r3, [r3, #0]
  63309. 8019d86: 69fa ldr r2, [r7, #28]
  63310. 8019d88: 429a cmp r2, r3
  63311. 8019d8a: d306 bcc.n 8019d9a <mem_free+0x52>
  63312. 8019d8c: 687b ldr r3, [r7, #4]
  63313. 8019d8e: f103 020c add.w r2, r3, #12
  63314. 8019d92: 4b2f ldr r3, [pc, #188] @ (8019e50 <mem_free+0x108>)
  63315. 8019d94: 681b ldr r3, [r3, #0]
  63316. 8019d96: 429a cmp r2, r3
  63317. 8019d98: d90d bls.n 8019db6 <mem_free+0x6e>
  63318. LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory");
  63319. 8019d9a: 4b29 ldr r3, [pc, #164] @ (8019e40 <mem_free+0xf8>)
  63320. 8019d9c: f240 227f movw r2, #639 @ 0x27f
  63321. 8019da0: 492c ldr r1, [pc, #176] @ (8019e54 <mem_free+0x10c>)
  63322. 8019da2: 4829 ldr r0, [pc, #164] @ (8019e48 <mem_free+0x100>)
  63323. 8019da4: f010 fcda bl 802a75c <iprintf>
  63324. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory\n"));
  63325. /* protect mem stats from concurrent access */
  63326. MEM_STATS_INC_LOCKED(illegal);
  63327. 8019da8: f00d fa42 bl 8027230 <sys_arch_protect>
  63328. 8019dac: 6138 str r0, [r7, #16]
  63329. 8019dae: 6938 ldr r0, [r7, #16]
  63330. 8019db0: f00d fa4c bl 802724c <sys_arch_unprotect>
  63331. return;
  63332. 8019db4: e041 b.n 8019e3a <mem_free+0xf2>
  63333. }
  63334. #if MEM_OVERFLOW_CHECK
  63335. mem_overflow_check_element(mem);
  63336. #endif
  63337. /* protect the heap from concurrent access */
  63338. LWIP_MEM_FREE_PROTECT();
  63339. 8019db6: 4828 ldr r0, [pc, #160] @ (8019e58 <mem_free+0x110>)
  63340. 8019db8: f00d f9fe bl 80271b8 <sys_mutex_lock>
  63341. /* mem has to be in a used state */
  63342. if (!mem->used) {
  63343. 8019dbc: 69fb ldr r3, [r7, #28]
  63344. 8019dbe: 7a1b ldrb r3, [r3, #8]
  63345. 8019dc0: 2b00 cmp r3, #0
  63346. 8019dc2: d110 bne.n 8019de6 <mem_free+0x9e>
  63347. LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: double free");
  63348. 8019dc4: 4b1e ldr r3, [pc, #120] @ (8019e40 <mem_free+0xf8>)
  63349. 8019dc6: f44f 7223 mov.w r2, #652 @ 0x28c
  63350. 8019dca: 4924 ldr r1, [pc, #144] @ (8019e5c <mem_free+0x114>)
  63351. 8019dcc: 481e ldr r0, [pc, #120] @ (8019e48 <mem_free+0x100>)
  63352. 8019dce: f010 fcc5 bl 802a75c <iprintf>
  63353. LWIP_MEM_FREE_UNPROTECT();
  63354. 8019dd2: 4821 ldr r0, [pc, #132] @ (8019e58 <mem_free+0x110>)
  63355. 8019dd4: f00d f9ff bl 80271d6 <sys_mutex_unlock>
  63356. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory: double free?\n"));
  63357. /* protect mem stats from concurrent access */
  63358. MEM_STATS_INC_LOCKED(illegal);
  63359. 8019dd8: f00d fa2a bl 8027230 <sys_arch_protect>
  63360. 8019ddc: 6178 str r0, [r7, #20]
  63361. 8019dde: 6978 ldr r0, [r7, #20]
  63362. 8019de0: f00d fa34 bl 802724c <sys_arch_unprotect>
  63363. return;
  63364. 8019de4: e029 b.n 8019e3a <mem_free+0xf2>
  63365. }
  63366. if (!mem_link_valid(mem)) {
  63367. 8019de6: 69f8 ldr r0, [r7, #28]
  63368. 8019de8: f7ff ff70 bl 8019ccc <mem_link_valid>
  63369. 8019dec: 4603 mov r3, r0
  63370. 8019dee: 2b00 cmp r3, #0
  63371. 8019df0: d110 bne.n 8019e14 <mem_free+0xcc>
  63372. LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: non-linked: double free");
  63373. 8019df2: 4b13 ldr r3, [pc, #76] @ (8019e40 <mem_free+0xf8>)
  63374. 8019df4: f240 2295 movw r2, #661 @ 0x295
  63375. 8019df8: 4919 ldr r1, [pc, #100] @ (8019e60 <mem_free+0x118>)
  63376. 8019dfa: 4813 ldr r0, [pc, #76] @ (8019e48 <mem_free+0x100>)
  63377. 8019dfc: f010 fcae bl 802a75c <iprintf>
  63378. LWIP_MEM_FREE_UNPROTECT();
  63379. 8019e00: 4815 ldr r0, [pc, #84] @ (8019e58 <mem_free+0x110>)
  63380. 8019e02: f00d f9e8 bl 80271d6 <sys_mutex_unlock>
  63381. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory: non-linked: double free?\n"));
  63382. /* protect mem stats from concurrent access */
  63383. MEM_STATS_INC_LOCKED(illegal);
  63384. 8019e06: f00d fa13 bl 8027230 <sys_arch_protect>
  63385. 8019e0a: 61b8 str r0, [r7, #24]
  63386. 8019e0c: 69b8 ldr r0, [r7, #24]
  63387. 8019e0e: f00d fa1d bl 802724c <sys_arch_unprotect>
  63388. return;
  63389. 8019e12: e012 b.n 8019e3a <mem_free+0xf2>
  63390. }
  63391. /* mem is now unused. */
  63392. mem->used = 0;
  63393. 8019e14: 69fb ldr r3, [r7, #28]
  63394. 8019e16: 2200 movs r2, #0
  63395. 8019e18: 721a strb r2, [r3, #8]
  63396. if (mem < lfree) {
  63397. 8019e1a: 4b12 ldr r3, [pc, #72] @ (8019e64 <mem_free+0x11c>)
  63398. 8019e1c: 681b ldr r3, [r3, #0]
  63399. 8019e1e: 69fa ldr r2, [r7, #28]
  63400. 8019e20: 429a cmp r2, r3
  63401. 8019e22: d202 bcs.n 8019e2a <mem_free+0xe2>
  63402. /* the newly freed struct is now the lowest */
  63403. lfree = mem;
  63404. 8019e24: 4a0f ldr r2, [pc, #60] @ (8019e64 <mem_free+0x11c>)
  63405. 8019e26: 69fb ldr r3, [r7, #28]
  63406. 8019e28: 6013 str r3, [r2, #0]
  63407. }
  63408. MEM_STATS_DEC_USED(used, mem->next - (mem_size_t)(((u8_t *)mem - ram)));
  63409. /* finally, see if prev or next are free also */
  63410. plug_holes(mem);
  63411. 8019e2a: 69f8 ldr r0, [r7, #28]
  63412. 8019e2c: f7ff fe5e bl 8019aec <plug_holes>
  63413. MEM_SANITY();
  63414. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  63415. mem_free_count = 1;
  63416. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  63417. LWIP_MEM_FREE_UNPROTECT();
  63418. 8019e30: 4809 ldr r0, [pc, #36] @ (8019e58 <mem_free+0x110>)
  63419. 8019e32: f00d f9d0 bl 80271d6 <sys_mutex_unlock>
  63420. 8019e36: e000 b.n 8019e3a <mem_free+0xf2>
  63421. return;
  63422. 8019e38: bf00 nop
  63423. }
  63424. 8019e3a: 3720 adds r7, #32
  63425. 8019e3c: 46bd mov sp, r7
  63426. 8019e3e: bd80 pop {r7, pc}
  63427. 8019e40: 0802e960 .word 0x0802e960
  63428. 8019e44: 0802ea50 .word 0x0802ea50
  63429. 8019e48: 0802e9a8 .word 0x0802e9a8
  63430. 8019e4c: 24024430 .word 0x24024430
  63431. 8019e50: 24024434 .word 0x24024434
  63432. 8019e54: 0802ea74 .word 0x0802ea74
  63433. 8019e58: 24024438 .word 0x24024438
  63434. 8019e5c: 0802ea90 .word 0x0802ea90
  63435. 8019e60: 0802eab8 .word 0x0802eab8
  63436. 8019e64: 2402443c .word 0x2402443c
  63437. 08019e68 <mem_trim>:
  63438. * or NULL if newsize is > old size, in which case rmem is NOT touched
  63439. * or freed!
  63440. */
  63441. void *
  63442. mem_trim(void *rmem, mem_size_t new_size)
  63443. {
  63444. 8019e68: b580 push {r7, lr}
  63445. 8019e6a: b08a sub sp, #40 @ 0x28
  63446. 8019e6c: af00 add r7, sp, #0
  63447. 8019e6e: 6078 str r0, [r7, #4]
  63448. 8019e70: 6039 str r1, [r7, #0]
  63449. /* use the FREE_PROTECT here: it protects with sem OR SYS_ARCH_PROTECT */
  63450. LWIP_MEM_FREE_DECL_PROTECT();
  63451. /* Expand the size of the allocated memory region so that we can
  63452. adjust for alignment. */
  63453. newsize = (mem_size_t)LWIP_MEM_ALIGN_SIZE(new_size);
  63454. 8019e72: 683b ldr r3, [r7, #0]
  63455. 8019e74: 3303 adds r3, #3
  63456. 8019e76: f023 0303 bic.w r3, r3, #3
  63457. 8019e7a: 627b str r3, [r7, #36] @ 0x24
  63458. if (newsize < MIN_SIZE_ALIGNED) {
  63459. 8019e7c: 6a7b ldr r3, [r7, #36] @ 0x24
  63460. 8019e7e: 2b0b cmp r3, #11
  63461. 8019e80: d801 bhi.n 8019e86 <mem_trim+0x1e>
  63462. /* every data block must be at least MIN_SIZE_ALIGNED long */
  63463. newsize = MIN_SIZE_ALIGNED;
  63464. 8019e82: 230c movs r3, #12
  63465. 8019e84: 627b str r3, [r7, #36] @ 0x24
  63466. }
  63467. #if MEM_OVERFLOW_CHECK
  63468. newsize += MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED;
  63469. #endif
  63470. if ((newsize > MEM_SIZE_ALIGNED) || (newsize < new_size)) {
  63471. 8019e86: 6a7b ldr r3, [r7, #36] @ 0x24
  63472. 8019e88: 4a6e ldr r2, [pc, #440] @ (801a044 <mem_trim+0x1dc>)
  63473. 8019e8a: 4293 cmp r3, r2
  63474. 8019e8c: d803 bhi.n 8019e96 <mem_trim+0x2e>
  63475. 8019e8e: 6a7a ldr r2, [r7, #36] @ 0x24
  63476. 8019e90: 683b ldr r3, [r7, #0]
  63477. 8019e92: 429a cmp r2, r3
  63478. 8019e94: d201 bcs.n 8019e9a <mem_trim+0x32>
  63479. return NULL;
  63480. 8019e96: 2300 movs r3, #0
  63481. 8019e98: e0d0 b.n 801a03c <mem_trim+0x1d4>
  63482. }
  63483. LWIP_ASSERT("mem_trim: legal memory", (u8_t *)rmem >= (u8_t *)ram &&
  63484. 8019e9a: 4b6b ldr r3, [pc, #428] @ (801a048 <mem_trim+0x1e0>)
  63485. 8019e9c: 681b ldr r3, [r3, #0]
  63486. 8019e9e: 687a ldr r2, [r7, #4]
  63487. 8019ea0: 429a cmp r2, r3
  63488. 8019ea2: d304 bcc.n 8019eae <mem_trim+0x46>
  63489. 8019ea4: 4b69 ldr r3, [pc, #420] @ (801a04c <mem_trim+0x1e4>)
  63490. 8019ea6: 681b ldr r3, [r3, #0]
  63491. 8019ea8: 687a ldr r2, [r7, #4]
  63492. 8019eaa: 429a cmp r2, r3
  63493. 8019eac: d306 bcc.n 8019ebc <mem_trim+0x54>
  63494. 8019eae: 4b68 ldr r3, [pc, #416] @ (801a050 <mem_trim+0x1e8>)
  63495. 8019eb0: f240 22d1 movw r2, #721 @ 0x2d1
  63496. 8019eb4: 4967 ldr r1, [pc, #412] @ (801a054 <mem_trim+0x1ec>)
  63497. 8019eb6: 4868 ldr r0, [pc, #416] @ (801a058 <mem_trim+0x1f0>)
  63498. 8019eb8: f010 fc50 bl 802a75c <iprintf>
  63499. (u8_t *)rmem < (u8_t *)ram_end);
  63500. if ((u8_t *)rmem < (u8_t *)ram || (u8_t *)rmem >= (u8_t *)ram_end) {
  63501. 8019ebc: 4b62 ldr r3, [pc, #392] @ (801a048 <mem_trim+0x1e0>)
  63502. 8019ebe: 681b ldr r3, [r3, #0]
  63503. 8019ec0: 687a ldr r2, [r7, #4]
  63504. 8019ec2: 429a cmp r2, r3
  63505. 8019ec4: d304 bcc.n 8019ed0 <mem_trim+0x68>
  63506. 8019ec6: 4b61 ldr r3, [pc, #388] @ (801a04c <mem_trim+0x1e4>)
  63507. 8019ec8: 681b ldr r3, [r3, #0]
  63508. 8019eca: 687a ldr r2, [r7, #4]
  63509. 8019ecc: 429a cmp r2, r3
  63510. 8019ece: d307 bcc.n 8019ee0 <mem_trim+0x78>
  63511. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_trim: illegal memory\n"));
  63512. /* protect mem stats from concurrent access */
  63513. MEM_STATS_INC_LOCKED(illegal);
  63514. 8019ed0: f00d f9ae bl 8027230 <sys_arch_protect>
  63515. 8019ed4: 60b8 str r0, [r7, #8]
  63516. 8019ed6: 68b8 ldr r0, [r7, #8]
  63517. 8019ed8: f00d f9b8 bl 802724c <sys_arch_unprotect>
  63518. return rmem;
  63519. 8019edc: 687b ldr r3, [r7, #4]
  63520. 8019ede: e0ad b.n 801a03c <mem_trim+0x1d4>
  63521. }
  63522. /* Get the corresponding struct mem ... */
  63523. /* cast through void* to get rid of alignment warnings */
  63524. mem = (struct mem *)(void *)((u8_t *)rmem - (SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET));
  63525. 8019ee0: 687b ldr r3, [r7, #4]
  63526. 8019ee2: 3b0c subs r3, #12
  63527. 8019ee4: 623b str r3, [r7, #32]
  63528. #if MEM_OVERFLOW_CHECK
  63529. mem_overflow_check_element(mem);
  63530. #endif
  63531. /* ... and its offset pointer */
  63532. ptr = mem_to_ptr(mem);
  63533. 8019ee6: 6a38 ldr r0, [r7, #32]
  63534. 8019ee8: f7ff fdf0 bl 8019acc <mem_to_ptr>
  63535. 8019eec: 61f8 str r0, [r7, #28]
  63536. size = (mem_size_t)((mem_size_t)(mem->next - ptr) - (SIZEOF_STRUCT_MEM + MEM_SANITY_OVERHEAD));
  63537. 8019eee: 6a3b ldr r3, [r7, #32]
  63538. 8019ef0: 681a ldr r2, [r3, #0]
  63539. 8019ef2: 69fb ldr r3, [r7, #28]
  63540. 8019ef4: 1ad3 subs r3, r2, r3
  63541. 8019ef6: 3b0c subs r3, #12
  63542. 8019ef8: 61bb str r3, [r7, #24]
  63543. LWIP_ASSERT("mem_trim can only shrink memory", newsize <= size);
  63544. 8019efa: 6a7a ldr r2, [r7, #36] @ 0x24
  63545. 8019efc: 69bb ldr r3, [r7, #24]
  63546. 8019efe: 429a cmp r2, r3
  63547. 8019f00: d906 bls.n 8019f10 <mem_trim+0xa8>
  63548. 8019f02: 4b53 ldr r3, [pc, #332] @ (801a050 <mem_trim+0x1e8>)
  63549. 8019f04: f44f 7239 mov.w r2, #740 @ 0x2e4
  63550. 8019f08: 4954 ldr r1, [pc, #336] @ (801a05c <mem_trim+0x1f4>)
  63551. 8019f0a: 4853 ldr r0, [pc, #332] @ (801a058 <mem_trim+0x1f0>)
  63552. 8019f0c: f010 fc26 bl 802a75c <iprintf>
  63553. if (newsize > size) {
  63554. 8019f10: 6a7a ldr r2, [r7, #36] @ 0x24
  63555. 8019f12: 69bb ldr r3, [r7, #24]
  63556. 8019f14: 429a cmp r2, r3
  63557. 8019f16: d901 bls.n 8019f1c <mem_trim+0xb4>
  63558. /* not supported */
  63559. return NULL;
  63560. 8019f18: 2300 movs r3, #0
  63561. 8019f1a: e08f b.n 801a03c <mem_trim+0x1d4>
  63562. }
  63563. if (newsize == size) {
  63564. 8019f1c: 6a7a ldr r2, [r7, #36] @ 0x24
  63565. 8019f1e: 69bb ldr r3, [r7, #24]
  63566. 8019f20: 429a cmp r2, r3
  63567. 8019f22: d101 bne.n 8019f28 <mem_trim+0xc0>
  63568. /* No change in size, simply return */
  63569. return rmem;
  63570. 8019f24: 687b ldr r3, [r7, #4]
  63571. 8019f26: e089 b.n 801a03c <mem_trim+0x1d4>
  63572. }
  63573. /* protect the heap from concurrent access */
  63574. LWIP_MEM_FREE_PROTECT();
  63575. 8019f28: 484d ldr r0, [pc, #308] @ (801a060 <mem_trim+0x1f8>)
  63576. 8019f2a: f00d f945 bl 80271b8 <sys_mutex_lock>
  63577. mem2 = ptr_to_mem(mem->next);
  63578. 8019f2e: 6a3b ldr r3, [r7, #32]
  63579. 8019f30: 681b ldr r3, [r3, #0]
  63580. 8019f32: 4618 mov r0, r3
  63581. 8019f34: f7ff fdba bl 8019aac <ptr_to_mem>
  63582. 8019f38: 6178 str r0, [r7, #20]
  63583. if (mem2->used == 0) {
  63584. 8019f3a: 697b ldr r3, [r7, #20]
  63585. 8019f3c: 7a1b ldrb r3, [r3, #8]
  63586. 8019f3e: 2b00 cmp r3, #0
  63587. 8019f40: d13c bne.n 8019fbc <mem_trim+0x154>
  63588. /* The next struct is unused, we can simply move it at little */
  63589. mem_size_t next;
  63590. LWIP_ASSERT("invalid next ptr", mem->next != MEM_SIZE_ALIGNED);
  63591. 8019f42: 6a3b ldr r3, [r7, #32]
  63592. 8019f44: 681b ldr r3, [r3, #0]
  63593. 8019f46: 4a3f ldr r2, [pc, #252] @ (801a044 <mem_trim+0x1dc>)
  63594. 8019f48: 4293 cmp r3, r2
  63595. 8019f4a: d106 bne.n 8019f5a <mem_trim+0xf2>
  63596. 8019f4c: 4b40 ldr r3, [pc, #256] @ (801a050 <mem_trim+0x1e8>)
  63597. 8019f4e: f240 22f5 movw r2, #757 @ 0x2f5
  63598. 8019f52: 4944 ldr r1, [pc, #272] @ (801a064 <mem_trim+0x1fc>)
  63599. 8019f54: 4840 ldr r0, [pc, #256] @ (801a058 <mem_trim+0x1f0>)
  63600. 8019f56: f010 fc01 bl 802a75c <iprintf>
  63601. /* remember the old next pointer */
  63602. next = mem2->next;
  63603. 8019f5a: 697b ldr r3, [r7, #20]
  63604. 8019f5c: 681b ldr r3, [r3, #0]
  63605. 8019f5e: 60fb str r3, [r7, #12]
  63606. /* create new struct mem which is moved directly after the shrinked mem */
  63607. ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + newsize);
  63608. 8019f60: 69fa ldr r2, [r7, #28]
  63609. 8019f62: 6a7b ldr r3, [r7, #36] @ 0x24
  63610. 8019f64: 4413 add r3, r2
  63611. 8019f66: 330c adds r3, #12
  63612. 8019f68: 613b str r3, [r7, #16]
  63613. if (lfree == mem2) {
  63614. 8019f6a: 4b3f ldr r3, [pc, #252] @ (801a068 <mem_trim+0x200>)
  63615. 8019f6c: 681b ldr r3, [r3, #0]
  63616. 8019f6e: 697a ldr r2, [r7, #20]
  63617. 8019f70: 429a cmp r2, r3
  63618. 8019f72: d105 bne.n 8019f80 <mem_trim+0x118>
  63619. lfree = ptr_to_mem(ptr2);
  63620. 8019f74: 6938 ldr r0, [r7, #16]
  63621. 8019f76: f7ff fd99 bl 8019aac <ptr_to_mem>
  63622. 8019f7a: 4603 mov r3, r0
  63623. 8019f7c: 4a3a ldr r2, [pc, #232] @ (801a068 <mem_trim+0x200>)
  63624. 8019f7e: 6013 str r3, [r2, #0]
  63625. }
  63626. mem2 = ptr_to_mem(ptr2);
  63627. 8019f80: 6938 ldr r0, [r7, #16]
  63628. 8019f82: f7ff fd93 bl 8019aac <ptr_to_mem>
  63629. 8019f86: 6178 str r0, [r7, #20]
  63630. mem2->used = 0;
  63631. 8019f88: 697b ldr r3, [r7, #20]
  63632. 8019f8a: 2200 movs r2, #0
  63633. 8019f8c: 721a strb r2, [r3, #8]
  63634. /* restore the next pointer */
  63635. mem2->next = next;
  63636. 8019f8e: 697b ldr r3, [r7, #20]
  63637. 8019f90: 68fa ldr r2, [r7, #12]
  63638. 8019f92: 601a str r2, [r3, #0]
  63639. /* link it back to mem */
  63640. mem2->prev = ptr;
  63641. 8019f94: 697b ldr r3, [r7, #20]
  63642. 8019f96: 69fa ldr r2, [r7, #28]
  63643. 8019f98: 605a str r2, [r3, #4]
  63644. /* link mem to it */
  63645. mem->next = ptr2;
  63646. 8019f9a: 6a3b ldr r3, [r7, #32]
  63647. 8019f9c: 693a ldr r2, [r7, #16]
  63648. 8019f9e: 601a str r2, [r3, #0]
  63649. /* last thing to restore linked list: as we have moved mem2,
  63650. * let 'mem2->next->prev' point to mem2 again. but only if mem2->next is not
  63651. * the end of the heap */
  63652. if (mem2->next != MEM_SIZE_ALIGNED) {
  63653. 8019fa0: 697b ldr r3, [r7, #20]
  63654. 8019fa2: 681b ldr r3, [r3, #0]
  63655. 8019fa4: 4a27 ldr r2, [pc, #156] @ (801a044 <mem_trim+0x1dc>)
  63656. 8019fa6: 4293 cmp r3, r2
  63657. 8019fa8: d044 beq.n 801a034 <mem_trim+0x1cc>
  63658. ptr_to_mem(mem2->next)->prev = ptr2;
  63659. 8019faa: 697b ldr r3, [r7, #20]
  63660. 8019fac: 681b ldr r3, [r3, #0]
  63661. 8019fae: 4618 mov r0, r3
  63662. 8019fb0: f7ff fd7c bl 8019aac <ptr_to_mem>
  63663. 8019fb4: 4602 mov r2, r0
  63664. 8019fb6: 693b ldr r3, [r7, #16]
  63665. 8019fb8: 6053 str r3, [r2, #4]
  63666. 8019fba: e03b b.n 801a034 <mem_trim+0x1cc>
  63667. }
  63668. MEM_STATS_DEC_USED(used, (size - newsize));
  63669. /* no need to plug holes, we've already done that */
  63670. } else if (newsize + SIZEOF_STRUCT_MEM + MIN_SIZE_ALIGNED <= size) {
  63671. 8019fbc: 6a7b ldr r3, [r7, #36] @ 0x24
  63672. 8019fbe: 3318 adds r3, #24
  63673. 8019fc0: 69ba ldr r2, [r7, #24]
  63674. 8019fc2: 429a cmp r2, r3
  63675. 8019fc4: d336 bcc.n 801a034 <mem_trim+0x1cc>
  63676. * Old size ('size') must be big enough to contain at least 'newsize' plus a struct mem
  63677. * ('SIZEOF_STRUCT_MEM') with some data ('MIN_SIZE_ALIGNED').
  63678. * @todo we could leave out MIN_SIZE_ALIGNED. We would create an empty
  63679. * region that couldn't hold data, but when mem->next gets freed,
  63680. * the 2 regions would be combined, resulting in more free memory */
  63681. ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + newsize);
  63682. 8019fc6: 69fa ldr r2, [r7, #28]
  63683. 8019fc8: 6a7b ldr r3, [r7, #36] @ 0x24
  63684. 8019fca: 4413 add r3, r2
  63685. 8019fcc: 330c adds r3, #12
  63686. 8019fce: 613b str r3, [r7, #16]
  63687. LWIP_ASSERT("invalid next ptr", mem->next != MEM_SIZE_ALIGNED);
  63688. 8019fd0: 6a3b ldr r3, [r7, #32]
  63689. 8019fd2: 681b ldr r3, [r3, #0]
  63690. 8019fd4: 4a1b ldr r2, [pc, #108] @ (801a044 <mem_trim+0x1dc>)
  63691. 8019fd6: 4293 cmp r3, r2
  63692. 8019fd8: d106 bne.n 8019fe8 <mem_trim+0x180>
  63693. 8019fda: 4b1d ldr r3, [pc, #116] @ (801a050 <mem_trim+0x1e8>)
  63694. 8019fdc: f240 3216 movw r2, #790 @ 0x316
  63695. 8019fe0: 4920 ldr r1, [pc, #128] @ (801a064 <mem_trim+0x1fc>)
  63696. 8019fe2: 481d ldr r0, [pc, #116] @ (801a058 <mem_trim+0x1f0>)
  63697. 8019fe4: f010 fbba bl 802a75c <iprintf>
  63698. mem2 = ptr_to_mem(ptr2);
  63699. 8019fe8: 6938 ldr r0, [r7, #16]
  63700. 8019fea: f7ff fd5f bl 8019aac <ptr_to_mem>
  63701. 8019fee: 6178 str r0, [r7, #20]
  63702. if (mem2 < lfree) {
  63703. 8019ff0: 4b1d ldr r3, [pc, #116] @ (801a068 <mem_trim+0x200>)
  63704. 8019ff2: 681b ldr r3, [r3, #0]
  63705. 8019ff4: 697a ldr r2, [r7, #20]
  63706. 8019ff6: 429a cmp r2, r3
  63707. 8019ff8: d202 bcs.n 801a000 <mem_trim+0x198>
  63708. lfree = mem2;
  63709. 8019ffa: 4a1b ldr r2, [pc, #108] @ (801a068 <mem_trim+0x200>)
  63710. 8019ffc: 697b ldr r3, [r7, #20]
  63711. 8019ffe: 6013 str r3, [r2, #0]
  63712. }
  63713. mem2->used = 0;
  63714. 801a000: 697b ldr r3, [r7, #20]
  63715. 801a002: 2200 movs r2, #0
  63716. 801a004: 721a strb r2, [r3, #8]
  63717. mem2->next = mem->next;
  63718. 801a006: 6a3b ldr r3, [r7, #32]
  63719. 801a008: 681a ldr r2, [r3, #0]
  63720. 801a00a: 697b ldr r3, [r7, #20]
  63721. 801a00c: 601a str r2, [r3, #0]
  63722. mem2->prev = ptr;
  63723. 801a00e: 697b ldr r3, [r7, #20]
  63724. 801a010: 69fa ldr r2, [r7, #28]
  63725. 801a012: 605a str r2, [r3, #4]
  63726. mem->next = ptr2;
  63727. 801a014: 6a3b ldr r3, [r7, #32]
  63728. 801a016: 693a ldr r2, [r7, #16]
  63729. 801a018: 601a str r2, [r3, #0]
  63730. if (mem2->next != MEM_SIZE_ALIGNED) {
  63731. 801a01a: 697b ldr r3, [r7, #20]
  63732. 801a01c: 681b ldr r3, [r3, #0]
  63733. 801a01e: 4a09 ldr r2, [pc, #36] @ (801a044 <mem_trim+0x1dc>)
  63734. 801a020: 4293 cmp r3, r2
  63735. 801a022: d007 beq.n 801a034 <mem_trim+0x1cc>
  63736. ptr_to_mem(mem2->next)->prev = ptr2;
  63737. 801a024: 697b ldr r3, [r7, #20]
  63738. 801a026: 681b ldr r3, [r3, #0]
  63739. 801a028: 4618 mov r0, r3
  63740. 801a02a: f7ff fd3f bl 8019aac <ptr_to_mem>
  63741. 801a02e: 4602 mov r2, r0
  63742. 801a030: 693b ldr r3, [r7, #16]
  63743. 801a032: 6053 str r3, [r2, #4]
  63744. #endif
  63745. MEM_SANITY();
  63746. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  63747. mem_free_count = 1;
  63748. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  63749. LWIP_MEM_FREE_UNPROTECT();
  63750. 801a034: 480a ldr r0, [pc, #40] @ (801a060 <mem_trim+0x1f8>)
  63751. 801a036: f00d f8ce bl 80271d6 <sys_mutex_unlock>
  63752. return rmem;
  63753. 801a03a: 687b ldr r3, [r7, #4]
  63754. }
  63755. 801a03c: 4618 mov r0, r3
  63756. 801a03e: 3728 adds r7, #40 @ 0x28
  63757. 801a040: 46bd mov sp, r7
  63758. 801a042: bd80 pop {r7, pc}
  63759. 801a044: 0001ffe8 .word 0x0001ffe8
  63760. 801a048: 24024430 .word 0x24024430
  63761. 801a04c: 24024434 .word 0x24024434
  63762. 801a050: 0802e960 .word 0x0802e960
  63763. 801a054: 0802eaec .word 0x0802eaec
  63764. 801a058: 0802e9a8 .word 0x0802e9a8
  63765. 801a05c: 0802eb04 .word 0x0802eb04
  63766. 801a060: 24024438 .word 0x24024438
  63767. 801a064: 0802eb24 .word 0x0802eb24
  63768. 801a068: 2402443c .word 0x2402443c
  63769. 0801a06c <mem_malloc>:
  63770. *
  63771. * Note that the returned value will always be aligned (as defined by MEM_ALIGNMENT).
  63772. */
  63773. void *
  63774. mem_malloc(mem_size_t size_in)
  63775. {
  63776. 801a06c: b580 push {r7, lr}
  63777. 801a06e: b088 sub sp, #32
  63778. 801a070: af00 add r7, sp, #0
  63779. 801a072: 6078 str r0, [r7, #4]
  63780. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  63781. u8_t local_mem_free_count = 0;
  63782. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  63783. LWIP_MEM_ALLOC_DECL_PROTECT();
  63784. if (size_in == 0) {
  63785. 801a074: 687b ldr r3, [r7, #4]
  63786. 801a076: 2b00 cmp r3, #0
  63787. 801a078: d101 bne.n 801a07e <mem_malloc+0x12>
  63788. return NULL;
  63789. 801a07a: 2300 movs r3, #0
  63790. 801a07c: e0d9 b.n 801a232 <mem_malloc+0x1c6>
  63791. }
  63792. /* Expand the size of the allocated memory region so that we can
  63793. adjust for alignment. */
  63794. size = (mem_size_t)LWIP_MEM_ALIGN_SIZE(size_in);
  63795. 801a07e: 687b ldr r3, [r7, #4]
  63796. 801a080: 3303 adds r3, #3
  63797. 801a082: f023 0303 bic.w r3, r3, #3
  63798. 801a086: 61bb str r3, [r7, #24]
  63799. if (size < MIN_SIZE_ALIGNED) {
  63800. 801a088: 69bb ldr r3, [r7, #24]
  63801. 801a08a: 2b0b cmp r3, #11
  63802. 801a08c: d801 bhi.n 801a092 <mem_malloc+0x26>
  63803. /* every data block must be at least MIN_SIZE_ALIGNED long */
  63804. size = MIN_SIZE_ALIGNED;
  63805. 801a08e: 230c movs r3, #12
  63806. 801a090: 61bb str r3, [r7, #24]
  63807. }
  63808. #if MEM_OVERFLOW_CHECK
  63809. size += MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED;
  63810. #endif
  63811. if ((size > MEM_SIZE_ALIGNED) || (size < size_in)) {
  63812. 801a092: 69bb ldr r3, [r7, #24]
  63813. 801a094: 4a69 ldr r2, [pc, #420] @ (801a23c <mem_malloc+0x1d0>)
  63814. 801a096: 4293 cmp r3, r2
  63815. 801a098: d803 bhi.n 801a0a2 <mem_malloc+0x36>
  63816. 801a09a: 69ba ldr r2, [r7, #24]
  63817. 801a09c: 687b ldr r3, [r7, #4]
  63818. 801a09e: 429a cmp r2, r3
  63819. 801a0a0: d201 bcs.n 801a0a6 <mem_malloc+0x3a>
  63820. return NULL;
  63821. 801a0a2: 2300 movs r3, #0
  63822. 801a0a4: e0c5 b.n 801a232 <mem_malloc+0x1c6>
  63823. }
  63824. /* protect the heap from concurrent access */
  63825. sys_mutex_lock(&mem_mutex);
  63826. 801a0a6: 4866 ldr r0, [pc, #408] @ (801a240 <mem_malloc+0x1d4>)
  63827. 801a0a8: f00d f886 bl 80271b8 <sys_mutex_lock>
  63828. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  63829. /* Scan through the heap searching for a free block that is big enough,
  63830. * beginning with the lowest free block.
  63831. */
  63832. for (ptr = mem_to_ptr(lfree); ptr < MEM_SIZE_ALIGNED - size;
  63833. 801a0ac: 4b65 ldr r3, [pc, #404] @ (801a244 <mem_malloc+0x1d8>)
  63834. 801a0ae: 681b ldr r3, [r3, #0]
  63835. 801a0b0: 4618 mov r0, r3
  63836. 801a0b2: f7ff fd0b bl 8019acc <mem_to_ptr>
  63837. 801a0b6: 61f8 str r0, [r7, #28]
  63838. 801a0b8: e0b0 b.n 801a21c <mem_malloc+0x1b0>
  63839. ptr = ptr_to_mem(ptr)->next) {
  63840. mem = ptr_to_mem(ptr);
  63841. 801a0ba: 69f8 ldr r0, [r7, #28]
  63842. 801a0bc: f7ff fcf6 bl 8019aac <ptr_to_mem>
  63843. 801a0c0: 6138 str r0, [r7, #16]
  63844. local_mem_free_count = 1;
  63845. break;
  63846. }
  63847. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  63848. if ((!mem->used) &&
  63849. 801a0c2: 693b ldr r3, [r7, #16]
  63850. 801a0c4: 7a1b ldrb r3, [r3, #8]
  63851. 801a0c6: 2b00 cmp r3, #0
  63852. 801a0c8: f040 80a2 bne.w 801a210 <mem_malloc+0x1a4>
  63853. (mem->next - (ptr + SIZEOF_STRUCT_MEM)) >= size) {
  63854. 801a0cc: 693b ldr r3, [r7, #16]
  63855. 801a0ce: 681a ldr r2, [r3, #0]
  63856. 801a0d0: 69fb ldr r3, [r7, #28]
  63857. 801a0d2: 1ad3 subs r3, r2, r3
  63858. 801a0d4: 3b0c subs r3, #12
  63859. if ((!mem->used) &&
  63860. 801a0d6: 69ba ldr r2, [r7, #24]
  63861. 801a0d8: 429a cmp r2, r3
  63862. 801a0da: f200 8099 bhi.w 801a210 <mem_malloc+0x1a4>
  63863. /* mem is not used and at least perfect fit is possible:
  63864. * mem->next - (ptr + SIZEOF_STRUCT_MEM) gives us the 'user data size' of mem */
  63865. if (mem->next - (ptr + SIZEOF_STRUCT_MEM) >= (size + SIZEOF_STRUCT_MEM + MIN_SIZE_ALIGNED)) {
  63866. 801a0de: 693b ldr r3, [r7, #16]
  63867. 801a0e0: 681a ldr r2, [r3, #0]
  63868. 801a0e2: 69fb ldr r3, [r7, #28]
  63869. 801a0e4: 1ad3 subs r3, r2, r3
  63870. 801a0e6: f1a3 020c sub.w r2, r3, #12
  63871. 801a0ea: 69bb ldr r3, [r7, #24]
  63872. 801a0ec: 3318 adds r3, #24
  63873. 801a0ee: 429a cmp r2, r3
  63874. 801a0f0: d331 bcc.n 801a156 <mem_malloc+0xea>
  63875. * struct mem would fit in but no data between mem2 and mem2->next
  63876. * @todo we could leave out MIN_SIZE_ALIGNED. We would create an empty
  63877. * region that couldn't hold data, but when mem->next gets freed,
  63878. * the 2 regions would be combined, resulting in more free memory
  63879. */
  63880. ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + size);
  63881. 801a0f2: 69fa ldr r2, [r7, #28]
  63882. 801a0f4: 69bb ldr r3, [r7, #24]
  63883. 801a0f6: 4413 add r3, r2
  63884. 801a0f8: 330c adds r3, #12
  63885. 801a0fa: 60fb str r3, [r7, #12]
  63886. LWIP_ASSERT("invalid next ptr",ptr2 != MEM_SIZE_ALIGNED);
  63887. 801a0fc: 68fb ldr r3, [r7, #12]
  63888. 801a0fe: 4a4f ldr r2, [pc, #316] @ (801a23c <mem_malloc+0x1d0>)
  63889. 801a100: 4293 cmp r3, r2
  63890. 801a102: d106 bne.n 801a112 <mem_malloc+0xa6>
  63891. 801a104: 4b50 ldr r3, [pc, #320] @ (801a248 <mem_malloc+0x1dc>)
  63892. 801a106: f240 3287 movw r2, #903 @ 0x387
  63893. 801a10a: 4950 ldr r1, [pc, #320] @ (801a24c <mem_malloc+0x1e0>)
  63894. 801a10c: 4850 ldr r0, [pc, #320] @ (801a250 <mem_malloc+0x1e4>)
  63895. 801a10e: f010 fb25 bl 802a75c <iprintf>
  63896. /* create mem2 struct */
  63897. mem2 = ptr_to_mem(ptr2);
  63898. 801a112: 68f8 ldr r0, [r7, #12]
  63899. 801a114: f7ff fcca bl 8019aac <ptr_to_mem>
  63900. 801a118: 60b8 str r0, [r7, #8]
  63901. mem2->used = 0;
  63902. 801a11a: 68bb ldr r3, [r7, #8]
  63903. 801a11c: 2200 movs r2, #0
  63904. 801a11e: 721a strb r2, [r3, #8]
  63905. mem2->next = mem->next;
  63906. 801a120: 693b ldr r3, [r7, #16]
  63907. 801a122: 681a ldr r2, [r3, #0]
  63908. 801a124: 68bb ldr r3, [r7, #8]
  63909. 801a126: 601a str r2, [r3, #0]
  63910. mem2->prev = ptr;
  63911. 801a128: 68bb ldr r3, [r7, #8]
  63912. 801a12a: 69fa ldr r2, [r7, #28]
  63913. 801a12c: 605a str r2, [r3, #4]
  63914. /* and insert it between mem and mem->next */
  63915. mem->next = ptr2;
  63916. 801a12e: 693b ldr r3, [r7, #16]
  63917. 801a130: 68fa ldr r2, [r7, #12]
  63918. 801a132: 601a str r2, [r3, #0]
  63919. mem->used = 1;
  63920. 801a134: 693b ldr r3, [r7, #16]
  63921. 801a136: 2201 movs r2, #1
  63922. 801a138: 721a strb r2, [r3, #8]
  63923. if (mem2->next != MEM_SIZE_ALIGNED) {
  63924. 801a13a: 68bb ldr r3, [r7, #8]
  63925. 801a13c: 681b ldr r3, [r3, #0]
  63926. 801a13e: 4a3f ldr r2, [pc, #252] @ (801a23c <mem_malloc+0x1d0>)
  63927. 801a140: 4293 cmp r3, r2
  63928. 801a142: d00b beq.n 801a15c <mem_malloc+0xf0>
  63929. ptr_to_mem(mem2->next)->prev = ptr2;
  63930. 801a144: 68bb ldr r3, [r7, #8]
  63931. 801a146: 681b ldr r3, [r3, #0]
  63932. 801a148: 4618 mov r0, r3
  63933. 801a14a: f7ff fcaf bl 8019aac <ptr_to_mem>
  63934. 801a14e: 4602 mov r2, r0
  63935. 801a150: 68fb ldr r3, [r7, #12]
  63936. 801a152: 6053 str r3, [r2, #4]
  63937. 801a154: e002 b.n 801a15c <mem_malloc+0xf0>
  63938. * take care of this).
  63939. * -> near fit or exact fit: do not split, no mem2 creation
  63940. * also can't move mem->next directly behind mem, since mem->next
  63941. * will always be used at this point!
  63942. */
  63943. mem->used = 1;
  63944. 801a156: 693b ldr r3, [r7, #16]
  63945. 801a158: 2201 movs r2, #1
  63946. 801a15a: 721a strb r2, [r3, #8]
  63947. MEM_STATS_INC_USED(used, mem->next - mem_to_ptr(mem));
  63948. }
  63949. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  63950. mem_malloc_adjust_lfree:
  63951. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  63952. if (mem == lfree) {
  63953. 801a15c: 4b39 ldr r3, [pc, #228] @ (801a244 <mem_malloc+0x1d8>)
  63954. 801a15e: 681b ldr r3, [r3, #0]
  63955. 801a160: 693a ldr r2, [r7, #16]
  63956. 801a162: 429a cmp r2, r3
  63957. 801a164: d127 bne.n 801a1b6 <mem_malloc+0x14a>
  63958. struct mem *cur = lfree;
  63959. 801a166: 4b37 ldr r3, [pc, #220] @ (801a244 <mem_malloc+0x1d8>)
  63960. 801a168: 681b ldr r3, [r3, #0]
  63961. 801a16a: 617b str r3, [r7, #20]
  63962. /* Find next free block after mem and update lowest free pointer */
  63963. while (cur->used && cur != ram_end) {
  63964. 801a16c: e005 b.n 801a17a <mem_malloc+0x10e>
  63965. /* If mem_free or mem_trim have run, we have to restart since they
  63966. could have altered our current struct mem or lfree. */
  63967. goto mem_malloc_adjust_lfree;
  63968. }
  63969. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  63970. cur = ptr_to_mem(cur->next);
  63971. 801a16e: 697b ldr r3, [r7, #20]
  63972. 801a170: 681b ldr r3, [r3, #0]
  63973. 801a172: 4618 mov r0, r3
  63974. 801a174: f7ff fc9a bl 8019aac <ptr_to_mem>
  63975. 801a178: 6178 str r0, [r7, #20]
  63976. while (cur->used && cur != ram_end) {
  63977. 801a17a: 697b ldr r3, [r7, #20]
  63978. 801a17c: 7a1b ldrb r3, [r3, #8]
  63979. 801a17e: 2b00 cmp r3, #0
  63980. 801a180: d004 beq.n 801a18c <mem_malloc+0x120>
  63981. 801a182: 4b34 ldr r3, [pc, #208] @ (801a254 <mem_malloc+0x1e8>)
  63982. 801a184: 681b ldr r3, [r3, #0]
  63983. 801a186: 697a ldr r2, [r7, #20]
  63984. 801a188: 429a cmp r2, r3
  63985. 801a18a: d1f0 bne.n 801a16e <mem_malloc+0x102>
  63986. }
  63987. lfree = cur;
  63988. 801a18c: 4a2d ldr r2, [pc, #180] @ (801a244 <mem_malloc+0x1d8>)
  63989. 801a18e: 697b ldr r3, [r7, #20]
  63990. 801a190: 6013 str r3, [r2, #0]
  63991. LWIP_ASSERT("mem_malloc: !lfree->used", ((lfree == ram_end) || (!lfree->used)));
  63992. 801a192: 4b2c ldr r3, [pc, #176] @ (801a244 <mem_malloc+0x1d8>)
  63993. 801a194: 681a ldr r2, [r3, #0]
  63994. 801a196: 4b2f ldr r3, [pc, #188] @ (801a254 <mem_malloc+0x1e8>)
  63995. 801a198: 681b ldr r3, [r3, #0]
  63996. 801a19a: 429a cmp r2, r3
  63997. 801a19c: d00b beq.n 801a1b6 <mem_malloc+0x14a>
  63998. 801a19e: 4b29 ldr r3, [pc, #164] @ (801a244 <mem_malloc+0x1d8>)
  63999. 801a1a0: 681b ldr r3, [r3, #0]
  64000. 801a1a2: 7a1b ldrb r3, [r3, #8]
  64001. 801a1a4: 2b00 cmp r3, #0
  64002. 801a1a6: d006 beq.n 801a1b6 <mem_malloc+0x14a>
  64003. 801a1a8: 4b27 ldr r3, [pc, #156] @ (801a248 <mem_malloc+0x1dc>)
  64004. 801a1aa: f240 32b5 movw r2, #949 @ 0x3b5
  64005. 801a1ae: 492a ldr r1, [pc, #168] @ (801a258 <mem_malloc+0x1ec>)
  64006. 801a1b0: 4827 ldr r0, [pc, #156] @ (801a250 <mem_malloc+0x1e4>)
  64007. 801a1b2: f010 fad3 bl 802a75c <iprintf>
  64008. }
  64009. LWIP_MEM_ALLOC_UNPROTECT();
  64010. sys_mutex_unlock(&mem_mutex);
  64011. 801a1b6: 4822 ldr r0, [pc, #136] @ (801a240 <mem_malloc+0x1d4>)
  64012. 801a1b8: f00d f80d bl 80271d6 <sys_mutex_unlock>
  64013. LWIP_ASSERT("mem_malloc: allocated memory not above ram_end.",
  64014. 801a1bc: 693a ldr r2, [r7, #16]
  64015. 801a1be: 69bb ldr r3, [r7, #24]
  64016. 801a1c0: 4413 add r3, r2
  64017. 801a1c2: 330c adds r3, #12
  64018. 801a1c4: 4a23 ldr r2, [pc, #140] @ (801a254 <mem_malloc+0x1e8>)
  64019. 801a1c6: 6812 ldr r2, [r2, #0]
  64020. 801a1c8: 4293 cmp r3, r2
  64021. 801a1ca: d906 bls.n 801a1da <mem_malloc+0x16e>
  64022. 801a1cc: 4b1e ldr r3, [pc, #120] @ (801a248 <mem_malloc+0x1dc>)
  64023. 801a1ce: f240 32b9 movw r2, #953 @ 0x3b9
  64024. 801a1d2: 4922 ldr r1, [pc, #136] @ (801a25c <mem_malloc+0x1f0>)
  64025. 801a1d4: 481e ldr r0, [pc, #120] @ (801a250 <mem_malloc+0x1e4>)
  64026. 801a1d6: f010 fac1 bl 802a75c <iprintf>
  64027. (mem_ptr_t)mem + SIZEOF_STRUCT_MEM + size <= (mem_ptr_t)ram_end);
  64028. LWIP_ASSERT("mem_malloc: allocated memory properly aligned.",
  64029. 801a1da: 693b ldr r3, [r7, #16]
  64030. 801a1dc: f003 0303 and.w r3, r3, #3
  64031. 801a1e0: 2b00 cmp r3, #0
  64032. 801a1e2: d006 beq.n 801a1f2 <mem_malloc+0x186>
  64033. 801a1e4: 4b18 ldr r3, [pc, #96] @ (801a248 <mem_malloc+0x1dc>)
  64034. 801a1e6: f240 32bb movw r2, #955 @ 0x3bb
  64035. 801a1ea: 491d ldr r1, [pc, #116] @ (801a260 <mem_malloc+0x1f4>)
  64036. 801a1ec: 4818 ldr r0, [pc, #96] @ (801a250 <mem_malloc+0x1e4>)
  64037. 801a1ee: f010 fab5 bl 802a75c <iprintf>
  64038. ((mem_ptr_t)mem + SIZEOF_STRUCT_MEM) % MEM_ALIGNMENT == 0);
  64039. LWIP_ASSERT("mem_malloc: sanity check alignment",
  64040. 801a1f2: 693b ldr r3, [r7, #16]
  64041. 801a1f4: f003 0303 and.w r3, r3, #3
  64042. 801a1f8: 2b00 cmp r3, #0
  64043. 801a1fa: d006 beq.n 801a20a <mem_malloc+0x19e>
  64044. 801a1fc: 4b12 ldr r3, [pc, #72] @ (801a248 <mem_malloc+0x1dc>)
  64045. 801a1fe: f240 32bd movw r2, #957 @ 0x3bd
  64046. 801a202: 4918 ldr r1, [pc, #96] @ (801a264 <mem_malloc+0x1f8>)
  64047. 801a204: 4812 ldr r0, [pc, #72] @ (801a250 <mem_malloc+0x1e4>)
  64048. 801a206: f010 faa9 bl 802a75c <iprintf>
  64049. #if MEM_OVERFLOW_CHECK
  64050. mem_overflow_init_element(mem, size_in);
  64051. #endif
  64052. MEM_SANITY();
  64053. return (u8_t *)mem + SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET;
  64054. 801a20a: 693b ldr r3, [r7, #16]
  64055. 801a20c: 330c adds r3, #12
  64056. 801a20e: e010 b.n 801a232 <mem_malloc+0x1c6>
  64057. ptr = ptr_to_mem(ptr)->next) {
  64058. 801a210: 69f8 ldr r0, [r7, #28]
  64059. 801a212: f7ff fc4b bl 8019aac <ptr_to_mem>
  64060. 801a216: 4603 mov r3, r0
  64061. 801a218: 681b ldr r3, [r3, #0]
  64062. 801a21a: 61fb str r3, [r7, #28]
  64063. for (ptr = mem_to_ptr(lfree); ptr < MEM_SIZE_ALIGNED - size;
  64064. 801a21c: 69ba ldr r2, [r7, #24]
  64065. 801a21e: 4b07 ldr r3, [pc, #28] @ (801a23c <mem_malloc+0x1d0>)
  64066. 801a220: 1a9b subs r3, r3, r2
  64067. 801a222: 69fa ldr r2, [r7, #28]
  64068. 801a224: 429a cmp r2, r3
  64069. 801a226: f4ff af48 bcc.w 801a0ba <mem_malloc+0x4e>
  64070. /* if we got interrupted by a mem_free, try again */
  64071. } while (local_mem_free_count != 0);
  64072. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  64073. MEM_STATS_INC(err);
  64074. LWIP_MEM_ALLOC_UNPROTECT();
  64075. sys_mutex_unlock(&mem_mutex);
  64076. 801a22a: 4805 ldr r0, [pc, #20] @ (801a240 <mem_malloc+0x1d4>)
  64077. 801a22c: f00c ffd3 bl 80271d6 <sys_mutex_unlock>
  64078. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("mem_malloc: could not allocate %"S16_F" bytes\n", (s16_t)size));
  64079. return NULL;
  64080. 801a230: 2300 movs r3, #0
  64081. }
  64082. 801a232: 4618 mov r0, r3
  64083. 801a234: 3720 adds r7, #32
  64084. 801a236: 46bd mov sp, r7
  64085. 801a238: bd80 pop {r7, pc}
  64086. 801a23a: bf00 nop
  64087. 801a23c: 0001ffe8 .word 0x0001ffe8
  64088. 801a240: 24024438 .word 0x24024438
  64089. 801a244: 2402443c .word 0x2402443c
  64090. 801a248: 0802e960 .word 0x0802e960
  64091. 801a24c: 0802eb24 .word 0x0802eb24
  64092. 801a250: 0802e9a8 .word 0x0802e9a8
  64093. 801a254: 24024434 .word 0x24024434
  64094. 801a258: 0802eb38 .word 0x0802eb38
  64095. 801a25c: 0802eb54 .word 0x0802eb54
  64096. 801a260: 0802eb84 .word 0x0802eb84
  64097. 801a264: 0802ebb4 .word 0x0802ebb4
  64098. 0801a268 <memp_init_pool>:
  64099. *
  64100. * @param desc pool to initialize
  64101. */
  64102. void
  64103. memp_init_pool(const struct memp_desc *desc)
  64104. {
  64105. 801a268: b480 push {r7}
  64106. 801a26a: b085 sub sp, #20
  64107. 801a26c: af00 add r7, sp, #0
  64108. 801a26e: 6078 str r0, [r7, #4]
  64109. LWIP_UNUSED_ARG(desc);
  64110. #else
  64111. int i;
  64112. struct memp *memp;
  64113. *desc->tab = NULL;
  64114. 801a270: 687b ldr r3, [r7, #4]
  64115. 801a272: 68db ldr r3, [r3, #12]
  64116. 801a274: 2200 movs r2, #0
  64117. 801a276: 601a str r2, [r3, #0]
  64118. memp = (struct memp *)LWIP_MEM_ALIGN(desc->base);
  64119. 801a278: 687b ldr r3, [r7, #4]
  64120. 801a27a: 689b ldr r3, [r3, #8]
  64121. 801a27c: 3303 adds r3, #3
  64122. 801a27e: f023 0303 bic.w r3, r3, #3
  64123. 801a282: 60bb str r3, [r7, #8]
  64124. + MEM_SANITY_REGION_AFTER_ALIGNED
  64125. #endif
  64126. ));
  64127. #endif
  64128. /* create a linked list of memp elements */
  64129. for (i = 0; i < desc->num; ++i) {
  64130. 801a284: 2300 movs r3, #0
  64131. 801a286: 60fb str r3, [r7, #12]
  64132. 801a288: e011 b.n 801a2ae <memp_init_pool+0x46>
  64133. memp->next = *desc->tab;
  64134. 801a28a: 687b ldr r3, [r7, #4]
  64135. 801a28c: 68db ldr r3, [r3, #12]
  64136. 801a28e: 681a ldr r2, [r3, #0]
  64137. 801a290: 68bb ldr r3, [r7, #8]
  64138. 801a292: 601a str r2, [r3, #0]
  64139. *desc->tab = memp;
  64140. 801a294: 687b ldr r3, [r7, #4]
  64141. 801a296: 68db ldr r3, [r3, #12]
  64142. 801a298: 68ba ldr r2, [r7, #8]
  64143. 801a29a: 601a str r2, [r3, #0]
  64144. #if MEMP_OVERFLOW_CHECK
  64145. memp_overflow_init_element(memp, desc);
  64146. #endif /* MEMP_OVERFLOW_CHECK */
  64147. /* cast through void* to get rid of alignment warnings */
  64148. memp = (struct memp *)(void *)((u8_t *)memp + MEMP_SIZE + desc->size
  64149. 801a29c: 687b ldr r3, [r7, #4]
  64150. 801a29e: 889b ldrh r3, [r3, #4]
  64151. 801a2a0: 461a mov r2, r3
  64152. 801a2a2: 68bb ldr r3, [r7, #8]
  64153. 801a2a4: 4413 add r3, r2
  64154. 801a2a6: 60bb str r3, [r7, #8]
  64155. for (i = 0; i < desc->num; ++i) {
  64156. 801a2a8: 68fb ldr r3, [r7, #12]
  64157. 801a2aa: 3301 adds r3, #1
  64158. 801a2ac: 60fb str r3, [r7, #12]
  64159. 801a2ae: 687b ldr r3, [r7, #4]
  64160. 801a2b0: 88db ldrh r3, [r3, #6]
  64161. 801a2b2: 461a mov r2, r3
  64162. 801a2b4: 68fb ldr r3, [r7, #12]
  64163. 801a2b6: 4293 cmp r3, r2
  64164. 801a2b8: dbe7 blt.n 801a28a <memp_init_pool+0x22>
  64165. #endif /* !MEMP_MEM_MALLOC */
  64166. #if MEMP_STATS && (defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY)
  64167. desc->stats->name = desc->desc;
  64168. #endif /* MEMP_STATS && (defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY) */
  64169. }
  64170. 801a2ba: bf00 nop
  64171. 801a2bc: bf00 nop
  64172. 801a2be: 3714 adds r7, #20
  64173. 801a2c0: 46bd mov sp, r7
  64174. 801a2c2: f85d 7b04 ldr.w r7, [sp], #4
  64175. 801a2c6: 4770 bx lr
  64176. 0801a2c8 <memp_init>:
  64177. *
  64178. * Carves out memp_memory into linked lists for each pool-type.
  64179. */
  64180. void
  64181. memp_init(void)
  64182. {
  64183. 801a2c8: b580 push {r7, lr}
  64184. 801a2ca: b082 sub sp, #8
  64185. 801a2cc: af00 add r7, sp, #0
  64186. u16_t i;
  64187. /* for every pool: */
  64188. for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) {
  64189. 801a2ce: 2300 movs r3, #0
  64190. 801a2d0: 80fb strh r3, [r7, #6]
  64191. 801a2d2: e009 b.n 801a2e8 <memp_init+0x20>
  64192. memp_init_pool(memp_pools[i]);
  64193. 801a2d4: 88fb ldrh r3, [r7, #6]
  64194. 801a2d6: 4a08 ldr r2, [pc, #32] @ (801a2f8 <memp_init+0x30>)
  64195. 801a2d8: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  64196. 801a2dc: 4618 mov r0, r3
  64197. 801a2de: f7ff ffc3 bl 801a268 <memp_init_pool>
  64198. for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) {
  64199. 801a2e2: 88fb ldrh r3, [r7, #6]
  64200. 801a2e4: 3301 adds r3, #1
  64201. 801a2e6: 80fb strh r3, [r7, #6]
  64202. 801a2e8: 88fb ldrh r3, [r7, #6]
  64203. 801a2ea: 2b0c cmp r3, #12
  64204. 801a2ec: d9f2 bls.n 801a2d4 <memp_init+0xc>
  64205. #if MEMP_OVERFLOW_CHECK >= 2
  64206. /* check everything a first time to see if it worked */
  64207. memp_overflow_check_all();
  64208. #endif /* MEMP_OVERFLOW_CHECK >= 2 */
  64209. }
  64210. 801a2ee: bf00 nop
  64211. 801a2f0: bf00 nop
  64212. 801a2f2: 3708 adds r7, #8
  64213. 801a2f4: 46bd mov sp, r7
  64214. 801a2f6: bd80 pop {r7, pc}
  64215. 801a2f8: 08031ad4 .word 0x08031ad4
  64216. 0801a2fc <do_memp_malloc_pool>:
  64217. #if !MEMP_OVERFLOW_CHECK
  64218. do_memp_malloc_pool(const struct memp_desc *desc)
  64219. #else
  64220. do_memp_malloc_pool_fn(const struct memp_desc *desc, const char *file, const int line)
  64221. #endif
  64222. {
  64223. 801a2fc: b580 push {r7, lr}
  64224. 801a2fe: b084 sub sp, #16
  64225. 801a300: af00 add r7, sp, #0
  64226. 801a302: 6078 str r0, [r7, #4]
  64227. #if MEMP_MEM_MALLOC
  64228. memp = (struct memp *)mem_malloc(MEMP_SIZE + MEMP_ALIGN_SIZE(desc->size));
  64229. SYS_ARCH_PROTECT(old_level);
  64230. #else /* MEMP_MEM_MALLOC */
  64231. SYS_ARCH_PROTECT(old_level);
  64232. 801a304: f00c ff94 bl 8027230 <sys_arch_protect>
  64233. 801a308: 60f8 str r0, [r7, #12]
  64234. memp = *desc->tab;
  64235. 801a30a: 687b ldr r3, [r7, #4]
  64236. 801a30c: 68db ldr r3, [r3, #12]
  64237. 801a30e: 681b ldr r3, [r3, #0]
  64238. 801a310: 60bb str r3, [r7, #8]
  64239. #endif /* MEMP_MEM_MALLOC */
  64240. if (memp != NULL) {
  64241. 801a312: 68bb ldr r3, [r7, #8]
  64242. 801a314: 2b00 cmp r3, #0
  64243. 801a316: d015 beq.n 801a344 <do_memp_malloc_pool+0x48>
  64244. #if !MEMP_MEM_MALLOC
  64245. #if MEMP_OVERFLOW_CHECK == 1
  64246. memp_overflow_check_element(memp, desc);
  64247. #endif /* MEMP_OVERFLOW_CHECK */
  64248. *desc->tab = memp->next;
  64249. 801a318: 687b ldr r3, [r7, #4]
  64250. 801a31a: 68db ldr r3, [r3, #12]
  64251. 801a31c: 68ba ldr r2, [r7, #8]
  64252. 801a31e: 6812 ldr r2, [r2, #0]
  64253. 801a320: 601a str r2, [r3, #0]
  64254. memp->line = line;
  64255. #if MEMP_MEM_MALLOC
  64256. memp_overflow_init_element(memp, desc);
  64257. #endif /* MEMP_MEM_MALLOC */
  64258. #endif /* MEMP_OVERFLOW_CHECK */
  64259. LWIP_ASSERT("memp_malloc: memp properly aligned",
  64260. 801a322: 68bb ldr r3, [r7, #8]
  64261. 801a324: f003 0303 and.w r3, r3, #3
  64262. 801a328: 2b00 cmp r3, #0
  64263. 801a32a: d006 beq.n 801a33a <do_memp_malloc_pool+0x3e>
  64264. 801a32c: 4b09 ldr r3, [pc, #36] @ (801a354 <do_memp_malloc_pool+0x58>)
  64265. 801a32e: f44f 728c mov.w r2, #280 @ 0x118
  64266. 801a332: 4909 ldr r1, [pc, #36] @ (801a358 <do_memp_malloc_pool+0x5c>)
  64267. 801a334: 4809 ldr r0, [pc, #36] @ (801a35c <do_memp_malloc_pool+0x60>)
  64268. 801a336: f010 fa11 bl 802a75c <iprintf>
  64269. desc->stats->used++;
  64270. if (desc->stats->used > desc->stats->max) {
  64271. desc->stats->max = desc->stats->used;
  64272. }
  64273. #endif
  64274. SYS_ARCH_UNPROTECT(old_level);
  64275. 801a33a: 68f8 ldr r0, [r7, #12]
  64276. 801a33c: f00c ff86 bl 802724c <sys_arch_unprotect>
  64277. /* cast through u8_t* to get rid of alignment warnings */
  64278. return ((u8_t *)memp + MEMP_SIZE);
  64279. 801a340: 68bb ldr r3, [r7, #8]
  64280. 801a342: e003 b.n 801a34c <do_memp_malloc_pool+0x50>
  64281. } else {
  64282. #if MEMP_STATS
  64283. desc->stats->err++;
  64284. #endif
  64285. SYS_ARCH_UNPROTECT(old_level);
  64286. 801a344: 68f8 ldr r0, [r7, #12]
  64287. 801a346: f00c ff81 bl 802724c <sys_arch_unprotect>
  64288. LWIP_DEBUGF(MEMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("memp_malloc: out of memory in pool %s\n", desc->desc));
  64289. }
  64290. return NULL;
  64291. 801a34a: 2300 movs r3, #0
  64292. }
  64293. 801a34c: 4618 mov r0, r3
  64294. 801a34e: 3710 adds r7, #16
  64295. 801a350: 46bd mov sp, r7
  64296. 801a352: bd80 pop {r7, pc}
  64297. 801a354: 0802ec70 .word 0x0802ec70
  64298. 801a358: 0802eca0 .word 0x0802eca0
  64299. 801a35c: 0802ecc4 .word 0x0802ecc4
  64300. 0801a360 <memp_malloc_pool>:
  64301. #if !MEMP_OVERFLOW_CHECK
  64302. memp_malloc_pool(const struct memp_desc *desc)
  64303. #else
  64304. memp_malloc_pool_fn(const struct memp_desc *desc, const char *file, const int line)
  64305. #endif
  64306. {
  64307. 801a360: b580 push {r7, lr}
  64308. 801a362: b082 sub sp, #8
  64309. 801a364: af00 add r7, sp, #0
  64310. 801a366: 6078 str r0, [r7, #4]
  64311. LWIP_ASSERT("invalid pool desc", desc != NULL);
  64312. 801a368: 687b ldr r3, [r7, #4]
  64313. 801a36a: 2b00 cmp r3, #0
  64314. 801a36c: d106 bne.n 801a37c <memp_malloc_pool+0x1c>
  64315. 801a36e: 4b0a ldr r3, [pc, #40] @ (801a398 <memp_malloc_pool+0x38>)
  64316. 801a370: f44f 729e mov.w r2, #316 @ 0x13c
  64317. 801a374: 4909 ldr r1, [pc, #36] @ (801a39c <memp_malloc_pool+0x3c>)
  64318. 801a376: 480a ldr r0, [pc, #40] @ (801a3a0 <memp_malloc_pool+0x40>)
  64319. 801a378: f010 f9f0 bl 802a75c <iprintf>
  64320. if (desc == NULL) {
  64321. 801a37c: 687b ldr r3, [r7, #4]
  64322. 801a37e: 2b00 cmp r3, #0
  64323. 801a380: d101 bne.n 801a386 <memp_malloc_pool+0x26>
  64324. return NULL;
  64325. 801a382: 2300 movs r3, #0
  64326. 801a384: e003 b.n 801a38e <memp_malloc_pool+0x2e>
  64327. }
  64328. #if !MEMP_OVERFLOW_CHECK
  64329. return do_memp_malloc_pool(desc);
  64330. 801a386: 6878 ldr r0, [r7, #4]
  64331. 801a388: f7ff ffb8 bl 801a2fc <do_memp_malloc_pool>
  64332. 801a38c: 4603 mov r3, r0
  64333. #else
  64334. return do_memp_malloc_pool_fn(desc, file, line);
  64335. #endif
  64336. }
  64337. 801a38e: 4618 mov r0, r3
  64338. 801a390: 3708 adds r7, #8
  64339. 801a392: 46bd mov sp, r7
  64340. 801a394: bd80 pop {r7, pc}
  64341. 801a396: bf00 nop
  64342. 801a398: 0802ec70 .word 0x0802ec70
  64343. 801a39c: 0802ecec .word 0x0802ecec
  64344. 801a3a0: 0802ecc4 .word 0x0802ecc4
  64345. 0801a3a4 <memp_malloc>:
  64346. #if !MEMP_OVERFLOW_CHECK
  64347. memp_malloc(memp_t type)
  64348. #else
  64349. memp_malloc_fn(memp_t type, const char *file, const int line)
  64350. #endif
  64351. {
  64352. 801a3a4: b580 push {r7, lr}
  64353. 801a3a6: b084 sub sp, #16
  64354. 801a3a8: af00 add r7, sp, #0
  64355. 801a3aa: 4603 mov r3, r0
  64356. 801a3ac: 71fb strb r3, [r7, #7]
  64357. void *memp;
  64358. LWIP_ERROR("memp_malloc: type < MEMP_MAX", (type < MEMP_MAX), return NULL;);
  64359. 801a3ae: 79fb ldrb r3, [r7, #7]
  64360. 801a3b0: 2b0c cmp r3, #12
  64361. 801a3b2: d908 bls.n 801a3c6 <memp_malloc+0x22>
  64362. 801a3b4: 4b0a ldr r3, [pc, #40] @ (801a3e0 <memp_malloc+0x3c>)
  64363. 801a3b6: f240 1257 movw r2, #343 @ 0x157
  64364. 801a3ba: 490a ldr r1, [pc, #40] @ (801a3e4 <memp_malloc+0x40>)
  64365. 801a3bc: 480a ldr r0, [pc, #40] @ (801a3e8 <memp_malloc+0x44>)
  64366. 801a3be: f010 f9cd bl 802a75c <iprintf>
  64367. 801a3c2: 2300 movs r3, #0
  64368. 801a3c4: e008 b.n 801a3d8 <memp_malloc+0x34>
  64369. #if MEMP_OVERFLOW_CHECK >= 2
  64370. memp_overflow_check_all();
  64371. #endif /* MEMP_OVERFLOW_CHECK >= 2 */
  64372. #if !MEMP_OVERFLOW_CHECK
  64373. memp = do_memp_malloc_pool(memp_pools[type]);
  64374. 801a3c6: 79fb ldrb r3, [r7, #7]
  64375. 801a3c8: 4a08 ldr r2, [pc, #32] @ (801a3ec <memp_malloc+0x48>)
  64376. 801a3ca: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  64377. 801a3ce: 4618 mov r0, r3
  64378. 801a3d0: f7ff ff94 bl 801a2fc <do_memp_malloc_pool>
  64379. 801a3d4: 60f8 str r0, [r7, #12]
  64380. #else
  64381. memp = do_memp_malloc_pool_fn(memp_pools[type], file, line);
  64382. #endif
  64383. return memp;
  64384. 801a3d6: 68fb ldr r3, [r7, #12]
  64385. }
  64386. 801a3d8: 4618 mov r0, r3
  64387. 801a3da: 3710 adds r7, #16
  64388. 801a3dc: 46bd mov sp, r7
  64389. 801a3de: bd80 pop {r7, pc}
  64390. 801a3e0: 0802ec70 .word 0x0802ec70
  64391. 801a3e4: 0802ed00 .word 0x0802ed00
  64392. 801a3e8: 0802ecc4 .word 0x0802ecc4
  64393. 801a3ec: 08031ad4 .word 0x08031ad4
  64394. 0801a3f0 <do_memp_free_pool>:
  64395. static void
  64396. do_memp_free_pool(const struct memp_desc *desc, void *mem)
  64397. {
  64398. 801a3f0: b580 push {r7, lr}
  64399. 801a3f2: b084 sub sp, #16
  64400. 801a3f4: af00 add r7, sp, #0
  64401. 801a3f6: 6078 str r0, [r7, #4]
  64402. 801a3f8: 6039 str r1, [r7, #0]
  64403. struct memp *memp;
  64404. SYS_ARCH_DECL_PROTECT(old_level);
  64405. LWIP_ASSERT("memp_free: mem properly aligned",
  64406. 801a3fa: 683b ldr r3, [r7, #0]
  64407. 801a3fc: f003 0303 and.w r3, r3, #3
  64408. 801a400: 2b00 cmp r3, #0
  64409. 801a402: d006 beq.n 801a412 <do_memp_free_pool+0x22>
  64410. 801a404: 4b0d ldr r3, [pc, #52] @ (801a43c <do_memp_free_pool+0x4c>)
  64411. 801a406: f44f 72b6 mov.w r2, #364 @ 0x16c
  64412. 801a40a: 490d ldr r1, [pc, #52] @ (801a440 <do_memp_free_pool+0x50>)
  64413. 801a40c: 480d ldr r0, [pc, #52] @ (801a444 <do_memp_free_pool+0x54>)
  64414. 801a40e: f010 f9a5 bl 802a75c <iprintf>
  64415. ((mem_ptr_t)mem % MEM_ALIGNMENT) == 0);
  64416. /* cast through void* to get rid of alignment warnings */
  64417. memp = (struct memp *)(void *)((u8_t *)mem - MEMP_SIZE);
  64418. 801a412: 683b ldr r3, [r7, #0]
  64419. 801a414: 60fb str r3, [r7, #12]
  64420. SYS_ARCH_PROTECT(old_level);
  64421. 801a416: f00c ff0b bl 8027230 <sys_arch_protect>
  64422. 801a41a: 60b8 str r0, [r7, #8]
  64423. #if MEMP_MEM_MALLOC
  64424. LWIP_UNUSED_ARG(desc);
  64425. SYS_ARCH_UNPROTECT(old_level);
  64426. mem_free(memp);
  64427. #else /* MEMP_MEM_MALLOC */
  64428. memp->next = *desc->tab;
  64429. 801a41c: 687b ldr r3, [r7, #4]
  64430. 801a41e: 68db ldr r3, [r3, #12]
  64431. 801a420: 681a ldr r2, [r3, #0]
  64432. 801a422: 68fb ldr r3, [r7, #12]
  64433. 801a424: 601a str r2, [r3, #0]
  64434. *desc->tab = memp;
  64435. 801a426: 687b ldr r3, [r7, #4]
  64436. 801a428: 68db ldr r3, [r3, #12]
  64437. 801a42a: 68fa ldr r2, [r7, #12]
  64438. 801a42c: 601a str r2, [r3, #0]
  64439. #if MEMP_SANITY_CHECK
  64440. LWIP_ASSERT("memp sanity", memp_sanity(desc));
  64441. #endif /* MEMP_SANITY_CHECK */
  64442. SYS_ARCH_UNPROTECT(old_level);
  64443. 801a42e: 68b8 ldr r0, [r7, #8]
  64444. 801a430: f00c ff0c bl 802724c <sys_arch_unprotect>
  64445. #endif /* !MEMP_MEM_MALLOC */
  64446. }
  64447. 801a434: bf00 nop
  64448. 801a436: 3710 adds r7, #16
  64449. 801a438: 46bd mov sp, r7
  64450. 801a43a: bd80 pop {r7, pc}
  64451. 801a43c: 0802ec70 .word 0x0802ec70
  64452. 801a440: 0802ed20 .word 0x0802ed20
  64453. 801a444: 0802ecc4 .word 0x0802ecc4
  64454. 0801a448 <memp_free_pool>:
  64455. * @param desc the pool where to put mem
  64456. * @param mem the memp element to free
  64457. */
  64458. void
  64459. memp_free_pool(const struct memp_desc *desc, void *mem)
  64460. {
  64461. 801a448: b580 push {r7, lr}
  64462. 801a44a: b082 sub sp, #8
  64463. 801a44c: af00 add r7, sp, #0
  64464. 801a44e: 6078 str r0, [r7, #4]
  64465. 801a450: 6039 str r1, [r7, #0]
  64466. LWIP_ASSERT("invalid pool desc", desc != NULL);
  64467. 801a452: 687b ldr r3, [r7, #4]
  64468. 801a454: 2b00 cmp r3, #0
  64469. 801a456: d106 bne.n 801a466 <memp_free_pool+0x1e>
  64470. 801a458: 4b0a ldr r3, [pc, #40] @ (801a484 <memp_free_pool+0x3c>)
  64471. 801a45a: f240 1295 movw r2, #405 @ 0x195
  64472. 801a45e: 490a ldr r1, [pc, #40] @ (801a488 <memp_free_pool+0x40>)
  64473. 801a460: 480a ldr r0, [pc, #40] @ (801a48c <memp_free_pool+0x44>)
  64474. 801a462: f010 f97b bl 802a75c <iprintf>
  64475. if ((desc == NULL) || (mem == NULL)) {
  64476. 801a466: 687b ldr r3, [r7, #4]
  64477. 801a468: 2b00 cmp r3, #0
  64478. 801a46a: d007 beq.n 801a47c <memp_free_pool+0x34>
  64479. 801a46c: 683b ldr r3, [r7, #0]
  64480. 801a46e: 2b00 cmp r3, #0
  64481. 801a470: d004 beq.n 801a47c <memp_free_pool+0x34>
  64482. return;
  64483. }
  64484. do_memp_free_pool(desc, mem);
  64485. 801a472: 6839 ldr r1, [r7, #0]
  64486. 801a474: 6878 ldr r0, [r7, #4]
  64487. 801a476: f7ff ffbb bl 801a3f0 <do_memp_free_pool>
  64488. 801a47a: e000 b.n 801a47e <memp_free_pool+0x36>
  64489. return;
  64490. 801a47c: bf00 nop
  64491. }
  64492. 801a47e: 3708 adds r7, #8
  64493. 801a480: 46bd mov sp, r7
  64494. 801a482: bd80 pop {r7, pc}
  64495. 801a484: 0802ec70 .word 0x0802ec70
  64496. 801a488: 0802ecec .word 0x0802ecec
  64497. 801a48c: 0802ecc4 .word 0x0802ecc4
  64498. 0801a490 <memp_free>:
  64499. * @param type the pool where to put mem
  64500. * @param mem the memp element to free
  64501. */
  64502. void
  64503. memp_free(memp_t type, void *mem)
  64504. {
  64505. 801a490: b580 push {r7, lr}
  64506. 801a492: b082 sub sp, #8
  64507. 801a494: af00 add r7, sp, #0
  64508. 801a496: 4603 mov r3, r0
  64509. 801a498: 6039 str r1, [r7, #0]
  64510. 801a49a: 71fb strb r3, [r7, #7]
  64511. #ifdef LWIP_HOOK_MEMP_AVAILABLE
  64512. struct memp *old_first;
  64513. #endif
  64514. LWIP_ERROR("memp_free: type < MEMP_MAX", (type < MEMP_MAX), return;);
  64515. 801a49c: 79fb ldrb r3, [r7, #7]
  64516. 801a49e: 2b0c cmp r3, #12
  64517. 801a4a0: d907 bls.n 801a4b2 <memp_free+0x22>
  64518. 801a4a2: 4b0c ldr r3, [pc, #48] @ (801a4d4 <memp_free+0x44>)
  64519. 801a4a4: f44f 72d5 mov.w r2, #426 @ 0x1aa
  64520. 801a4a8: 490b ldr r1, [pc, #44] @ (801a4d8 <memp_free+0x48>)
  64521. 801a4aa: 480c ldr r0, [pc, #48] @ (801a4dc <memp_free+0x4c>)
  64522. 801a4ac: f010 f956 bl 802a75c <iprintf>
  64523. 801a4b0: e00c b.n 801a4cc <memp_free+0x3c>
  64524. if (mem == NULL) {
  64525. 801a4b2: 683b ldr r3, [r7, #0]
  64526. 801a4b4: 2b00 cmp r3, #0
  64527. 801a4b6: d008 beq.n 801a4ca <memp_free+0x3a>
  64528. #ifdef LWIP_HOOK_MEMP_AVAILABLE
  64529. old_first = *memp_pools[type]->tab;
  64530. #endif
  64531. do_memp_free_pool(memp_pools[type], mem);
  64532. 801a4b8: 79fb ldrb r3, [r7, #7]
  64533. 801a4ba: 4a09 ldr r2, [pc, #36] @ (801a4e0 <memp_free+0x50>)
  64534. 801a4bc: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  64535. 801a4c0: 6839 ldr r1, [r7, #0]
  64536. 801a4c2: 4618 mov r0, r3
  64537. 801a4c4: f7ff ff94 bl 801a3f0 <do_memp_free_pool>
  64538. 801a4c8: e000 b.n 801a4cc <memp_free+0x3c>
  64539. return;
  64540. 801a4ca: bf00 nop
  64541. #ifdef LWIP_HOOK_MEMP_AVAILABLE
  64542. if (old_first == NULL) {
  64543. LWIP_HOOK_MEMP_AVAILABLE(type);
  64544. }
  64545. #endif
  64546. }
  64547. 801a4cc: 3708 adds r7, #8
  64548. 801a4ce: 46bd mov sp, r7
  64549. 801a4d0: bd80 pop {r7, pc}
  64550. 801a4d2: bf00 nop
  64551. 801a4d4: 0802ec70 .word 0x0802ec70
  64552. 801a4d8: 0802ed40 .word 0x0802ed40
  64553. 801a4dc: 0802ecc4 .word 0x0802ecc4
  64554. 801a4e0: 08031ad4 .word 0x08031ad4
  64555. 0801a4e4 <netif_init>:
  64556. }
  64557. #endif /* LWIP_HAVE_LOOPIF */
  64558. void
  64559. netif_init(void)
  64560. {
  64561. 801a4e4: b480 push {r7}
  64562. 801a4e6: af00 add r7, sp, #0
  64563. netif_set_link_up(&loop_netif);
  64564. netif_set_up(&loop_netif);
  64565. #endif /* LWIP_HAVE_LOOPIF */
  64566. }
  64567. 801a4e8: bf00 nop
  64568. 801a4ea: 46bd mov sp, r7
  64569. 801a4ec: f85d 7b04 ldr.w r7, [sp], #4
  64570. 801a4f0: 4770 bx lr
  64571. ...
  64572. 0801a4f4 <netif_add>:
  64573. netif_add(struct netif *netif,
  64574. #if LWIP_IPV4
  64575. const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw,
  64576. #endif /* LWIP_IPV4 */
  64577. void *state, netif_init_fn init, netif_input_fn input)
  64578. {
  64579. 801a4f4: b580 push {r7, lr}
  64580. 801a4f6: b086 sub sp, #24
  64581. 801a4f8: af00 add r7, sp, #0
  64582. 801a4fa: 60f8 str r0, [r7, #12]
  64583. 801a4fc: 60b9 str r1, [r7, #8]
  64584. 801a4fe: 607a str r2, [r7, #4]
  64585. 801a500: 603b str r3, [r7, #0]
  64586. #if LWIP_IPV6
  64587. s8_t i;
  64588. #endif
  64589. LWIP_ASSERT_CORE_LOCKED();
  64590. 801a502: f7f6 fcfd bl 8010f00 <sys_check_core_locking>
  64591. LWIP_ASSERT("single netif already set", 0);
  64592. return NULL;
  64593. }
  64594. #endif
  64595. LWIP_ERROR("netif_add: invalid netif", netif != NULL, return NULL);
  64596. 801a506: 68fb ldr r3, [r7, #12]
  64597. 801a508: 2b00 cmp r3, #0
  64598. 801a50a: d108 bne.n 801a51e <netif_add+0x2a>
  64599. 801a50c: 4b5b ldr r3, [pc, #364] @ (801a67c <netif_add+0x188>)
  64600. 801a50e: f240 1227 movw r2, #295 @ 0x127
  64601. 801a512: 495b ldr r1, [pc, #364] @ (801a680 <netif_add+0x18c>)
  64602. 801a514: 485b ldr r0, [pc, #364] @ (801a684 <netif_add+0x190>)
  64603. 801a516: f010 f921 bl 802a75c <iprintf>
  64604. 801a51a: 2300 movs r3, #0
  64605. 801a51c: e0a9 b.n 801a672 <netif_add+0x17e>
  64606. LWIP_ERROR("netif_add: No init function given", init != NULL, return NULL);
  64607. 801a51e: 6a7b ldr r3, [r7, #36] @ 0x24
  64608. 801a520: 2b00 cmp r3, #0
  64609. 801a522: d108 bne.n 801a536 <netif_add+0x42>
  64610. 801a524: 4b55 ldr r3, [pc, #340] @ (801a67c <netif_add+0x188>)
  64611. 801a526: f44f 7294 mov.w r2, #296 @ 0x128
  64612. 801a52a: 4957 ldr r1, [pc, #348] @ (801a688 <netif_add+0x194>)
  64613. 801a52c: 4855 ldr r0, [pc, #340] @ (801a684 <netif_add+0x190>)
  64614. 801a52e: f010 f915 bl 802a75c <iprintf>
  64615. 801a532: 2300 movs r3, #0
  64616. 801a534: e09d b.n 801a672 <netif_add+0x17e>
  64617. #if LWIP_IPV4
  64618. if (ipaddr == NULL) {
  64619. 801a536: 68bb ldr r3, [r7, #8]
  64620. 801a538: 2b00 cmp r3, #0
  64621. 801a53a: d101 bne.n 801a540 <netif_add+0x4c>
  64622. ipaddr = ip_2_ip4(IP4_ADDR_ANY);
  64623. 801a53c: 4b53 ldr r3, [pc, #332] @ (801a68c <netif_add+0x198>)
  64624. 801a53e: 60bb str r3, [r7, #8]
  64625. }
  64626. if (netmask == NULL) {
  64627. 801a540: 687b ldr r3, [r7, #4]
  64628. 801a542: 2b00 cmp r3, #0
  64629. 801a544: d101 bne.n 801a54a <netif_add+0x56>
  64630. netmask = ip_2_ip4(IP4_ADDR_ANY);
  64631. 801a546: 4b51 ldr r3, [pc, #324] @ (801a68c <netif_add+0x198>)
  64632. 801a548: 607b str r3, [r7, #4]
  64633. }
  64634. if (gw == NULL) {
  64635. 801a54a: 683b ldr r3, [r7, #0]
  64636. 801a54c: 2b00 cmp r3, #0
  64637. 801a54e: d101 bne.n 801a554 <netif_add+0x60>
  64638. gw = ip_2_ip4(IP4_ADDR_ANY);
  64639. 801a550: 4b4e ldr r3, [pc, #312] @ (801a68c <netif_add+0x198>)
  64640. 801a552: 603b str r3, [r7, #0]
  64641. }
  64642. /* reset new interface configuration state */
  64643. ip_addr_set_zero_ip4(&netif->ip_addr);
  64644. 801a554: 68fb ldr r3, [r7, #12]
  64645. 801a556: 2200 movs r2, #0
  64646. 801a558: 605a str r2, [r3, #4]
  64647. ip_addr_set_zero_ip4(&netif->netmask);
  64648. 801a55a: 68fb ldr r3, [r7, #12]
  64649. 801a55c: 2200 movs r2, #0
  64650. 801a55e: 609a str r2, [r3, #8]
  64651. ip_addr_set_zero_ip4(&netif->gw);
  64652. 801a560: 68fb ldr r3, [r7, #12]
  64653. 801a562: 2200 movs r2, #0
  64654. 801a564: 60da str r2, [r3, #12]
  64655. netif->output = netif_null_output_ip4;
  64656. 801a566: 68fb ldr r3, [r7, #12]
  64657. 801a568: 4a49 ldr r2, [pc, #292] @ (801a690 <netif_add+0x19c>)
  64658. 801a56a: 615a str r2, [r3, #20]
  64659. #endif /* LWIP_IPV6_ADDRESS_LIFETIMES */
  64660. }
  64661. netif->output_ip6 = netif_null_output_ip6;
  64662. #endif /* LWIP_IPV6 */
  64663. NETIF_SET_CHECKSUM_CTRL(netif, NETIF_CHECKSUM_ENABLE_ALL);
  64664. netif->mtu = 0;
  64665. 801a56c: 68fb ldr r3, [r7, #12]
  64666. 801a56e: 2200 movs r2, #0
  64667. 801a570: 851a strh r2, [r3, #40] @ 0x28
  64668. netif->flags = 0;
  64669. 801a572: 68fb ldr r3, [r7, #12]
  64670. 801a574: 2200 movs r2, #0
  64671. 801a576: f883 2031 strb.w r2, [r3, #49] @ 0x31
  64672. #ifdef netif_get_client_data
  64673. memset(netif->client_data, 0, sizeof(netif->client_data));
  64674. 801a57a: 68fb ldr r3, [r7, #12]
  64675. 801a57c: 3324 adds r3, #36 @ 0x24
  64676. 801a57e: 2204 movs r2, #4
  64677. 801a580: 2100 movs r1, #0
  64678. 801a582: 4618 mov r0, r3
  64679. 801a584: f010 fa7c bl 802aa80 <memset>
  64680. #endif /* LWIP_IPV6 */
  64681. #if LWIP_NETIF_STATUS_CALLBACK
  64682. netif->status_callback = NULL;
  64683. #endif /* LWIP_NETIF_STATUS_CALLBACK */
  64684. #if LWIP_NETIF_LINK_CALLBACK
  64685. netif->link_callback = NULL;
  64686. 801a588: 68fb ldr r3, [r7, #12]
  64687. 801a58a: 2200 movs r2, #0
  64688. 801a58c: 61da str r2, [r3, #28]
  64689. netif->loop_first = NULL;
  64690. netif->loop_last = NULL;
  64691. #endif /* ENABLE_LOOPBACK */
  64692. /* remember netif specific state information data */
  64693. netif->state = state;
  64694. 801a58e: 68fb ldr r3, [r7, #12]
  64695. 801a590: 6a3a ldr r2, [r7, #32]
  64696. 801a592: 621a str r2, [r3, #32]
  64697. netif->num = netif_num;
  64698. 801a594: 4b3f ldr r3, [pc, #252] @ (801a694 <netif_add+0x1a0>)
  64699. 801a596: 781a ldrb r2, [r3, #0]
  64700. 801a598: 68fb ldr r3, [r7, #12]
  64701. 801a59a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  64702. netif->input = input;
  64703. 801a59e: 68fb ldr r3, [r7, #12]
  64704. 801a5a0: 6aba ldr r2, [r7, #40] @ 0x28
  64705. 801a5a2: 611a str r2, [r3, #16]
  64706. #if ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS
  64707. netif->loop_cnt_current = 0;
  64708. #endif /* ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS */
  64709. #if LWIP_IPV4
  64710. netif_set_addr(netif, ipaddr, netmask, gw);
  64711. 801a5a4: 683b ldr r3, [r7, #0]
  64712. 801a5a6: 687a ldr r2, [r7, #4]
  64713. 801a5a8: 68b9 ldr r1, [r7, #8]
  64714. 801a5aa: 68f8 ldr r0, [r7, #12]
  64715. 801a5ac: f000 f914 bl 801a7d8 <netif_set_addr>
  64716. #endif /* LWIP_IPV4 */
  64717. /* call user specified initialization function for netif */
  64718. if (init(netif) != ERR_OK) {
  64719. 801a5b0: 6a7b ldr r3, [r7, #36] @ 0x24
  64720. 801a5b2: 68f8 ldr r0, [r7, #12]
  64721. 801a5b4: 4798 blx r3
  64722. 801a5b6: 4603 mov r3, r0
  64723. 801a5b8: 2b00 cmp r3, #0
  64724. 801a5ba: d001 beq.n 801a5c0 <netif_add+0xcc>
  64725. return NULL;
  64726. 801a5bc: 2300 movs r3, #0
  64727. 801a5be: e058 b.n 801a672 <netif_add+0x17e>
  64728. */
  64729. {
  64730. struct netif *netif2;
  64731. int num_netifs;
  64732. do {
  64733. if (netif->num == 255) {
  64734. 801a5c0: 68fb ldr r3, [r7, #12]
  64735. 801a5c2: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  64736. 801a5c6: 2bff cmp r3, #255 @ 0xff
  64737. 801a5c8: d103 bne.n 801a5d2 <netif_add+0xde>
  64738. netif->num = 0;
  64739. 801a5ca: 68fb ldr r3, [r7, #12]
  64740. 801a5cc: 2200 movs r2, #0
  64741. 801a5ce: f883 2034 strb.w r2, [r3, #52] @ 0x34
  64742. }
  64743. num_netifs = 0;
  64744. 801a5d2: 2300 movs r3, #0
  64745. 801a5d4: 613b str r3, [r7, #16]
  64746. for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) {
  64747. 801a5d6: 4b30 ldr r3, [pc, #192] @ (801a698 <netif_add+0x1a4>)
  64748. 801a5d8: 681b ldr r3, [r3, #0]
  64749. 801a5da: 617b str r3, [r7, #20]
  64750. 801a5dc: e02b b.n 801a636 <netif_add+0x142>
  64751. LWIP_ASSERT("netif already added", netif2 != netif);
  64752. 801a5de: 697a ldr r2, [r7, #20]
  64753. 801a5e0: 68fb ldr r3, [r7, #12]
  64754. 801a5e2: 429a cmp r2, r3
  64755. 801a5e4: d106 bne.n 801a5f4 <netif_add+0x100>
  64756. 801a5e6: 4b25 ldr r3, [pc, #148] @ (801a67c <netif_add+0x188>)
  64757. 801a5e8: f240 128b movw r2, #395 @ 0x18b
  64758. 801a5ec: 492b ldr r1, [pc, #172] @ (801a69c <netif_add+0x1a8>)
  64759. 801a5ee: 4825 ldr r0, [pc, #148] @ (801a684 <netif_add+0x190>)
  64760. 801a5f0: f010 f8b4 bl 802a75c <iprintf>
  64761. num_netifs++;
  64762. 801a5f4: 693b ldr r3, [r7, #16]
  64763. 801a5f6: 3301 adds r3, #1
  64764. 801a5f8: 613b str r3, [r7, #16]
  64765. LWIP_ASSERT("too many netifs, max. supported number is 255", num_netifs <= 255);
  64766. 801a5fa: 693b ldr r3, [r7, #16]
  64767. 801a5fc: 2bff cmp r3, #255 @ 0xff
  64768. 801a5fe: dd06 ble.n 801a60e <netif_add+0x11a>
  64769. 801a600: 4b1e ldr r3, [pc, #120] @ (801a67c <netif_add+0x188>)
  64770. 801a602: f240 128d movw r2, #397 @ 0x18d
  64771. 801a606: 4926 ldr r1, [pc, #152] @ (801a6a0 <netif_add+0x1ac>)
  64772. 801a608: 481e ldr r0, [pc, #120] @ (801a684 <netif_add+0x190>)
  64773. 801a60a: f010 f8a7 bl 802a75c <iprintf>
  64774. if (netif2->num == netif->num) {
  64775. 801a60e: 697b ldr r3, [r7, #20]
  64776. 801a610: f893 2034 ldrb.w r2, [r3, #52] @ 0x34
  64777. 801a614: 68fb ldr r3, [r7, #12]
  64778. 801a616: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  64779. 801a61a: 429a cmp r2, r3
  64780. 801a61c: d108 bne.n 801a630 <netif_add+0x13c>
  64781. netif->num++;
  64782. 801a61e: 68fb ldr r3, [r7, #12]
  64783. 801a620: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  64784. 801a624: 3301 adds r3, #1
  64785. 801a626: b2da uxtb r2, r3
  64786. 801a628: 68fb ldr r3, [r7, #12]
  64787. 801a62a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  64788. break;
  64789. 801a62e: e005 b.n 801a63c <netif_add+0x148>
  64790. for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) {
  64791. 801a630: 697b ldr r3, [r7, #20]
  64792. 801a632: 681b ldr r3, [r3, #0]
  64793. 801a634: 617b str r3, [r7, #20]
  64794. 801a636: 697b ldr r3, [r7, #20]
  64795. 801a638: 2b00 cmp r3, #0
  64796. 801a63a: d1d0 bne.n 801a5de <netif_add+0xea>
  64797. }
  64798. }
  64799. } while (netif2 != NULL);
  64800. 801a63c: 697b ldr r3, [r7, #20]
  64801. 801a63e: 2b00 cmp r3, #0
  64802. 801a640: d1be bne.n 801a5c0 <netif_add+0xcc>
  64803. }
  64804. if (netif->num == 254) {
  64805. 801a642: 68fb ldr r3, [r7, #12]
  64806. 801a644: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  64807. 801a648: 2bfe cmp r3, #254 @ 0xfe
  64808. 801a64a: d103 bne.n 801a654 <netif_add+0x160>
  64809. netif_num = 0;
  64810. 801a64c: 4b11 ldr r3, [pc, #68] @ (801a694 <netif_add+0x1a0>)
  64811. 801a64e: 2200 movs r2, #0
  64812. 801a650: 701a strb r2, [r3, #0]
  64813. 801a652: e006 b.n 801a662 <netif_add+0x16e>
  64814. } else {
  64815. netif_num = (u8_t)(netif->num + 1);
  64816. 801a654: 68fb ldr r3, [r7, #12]
  64817. 801a656: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  64818. 801a65a: 3301 adds r3, #1
  64819. 801a65c: b2da uxtb r2, r3
  64820. 801a65e: 4b0d ldr r3, [pc, #52] @ (801a694 <netif_add+0x1a0>)
  64821. 801a660: 701a strb r2, [r3, #0]
  64822. }
  64823. /* add this netif to the list */
  64824. netif->next = netif_list;
  64825. 801a662: 4b0d ldr r3, [pc, #52] @ (801a698 <netif_add+0x1a4>)
  64826. 801a664: 681a ldr r2, [r3, #0]
  64827. 801a666: 68fb ldr r3, [r7, #12]
  64828. 801a668: 601a str r2, [r3, #0]
  64829. netif_list = netif;
  64830. 801a66a: 4a0b ldr r2, [pc, #44] @ (801a698 <netif_add+0x1a4>)
  64831. 801a66c: 68fb ldr r3, [r7, #12]
  64832. 801a66e: 6013 str r3, [r2, #0]
  64833. #endif /* LWIP_IPV4 */
  64834. LWIP_DEBUGF(NETIF_DEBUG, ("\n"));
  64835. netif_invoke_ext_callback(netif, LWIP_NSC_NETIF_ADDED, NULL);
  64836. return netif;
  64837. 801a670: 68fb ldr r3, [r7, #12]
  64838. }
  64839. 801a672: 4618 mov r0, r3
  64840. 801a674: 3718 adds r7, #24
  64841. 801a676: 46bd mov sp, r7
  64842. 801a678: bd80 pop {r7, pc}
  64843. 801a67a: bf00 nop
  64844. 801a67c: 0802ed5c .word 0x0802ed5c
  64845. 801a680: 0802edf0 .word 0x0802edf0
  64846. 801a684: 0802edac .word 0x0802edac
  64847. 801a688: 0802ee0c .word 0x0802ee0c
  64848. 801a68c: 08031b58 .word 0x08031b58
  64849. 801a690: 0801aacf .word 0x0801aacf
  64850. 801a694: 2402af64 .word 0x2402af64
  64851. 801a698: 2402af5c .word 0x2402af5c
  64852. 801a69c: 0802ee30 .word 0x0802ee30
  64853. 801a6a0: 0802ee44 .word 0x0802ee44
  64854. 0801a6a4 <netif_do_ip_addr_changed>:
  64855. static void
  64856. netif_do_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr)
  64857. {
  64858. 801a6a4: b580 push {r7, lr}
  64859. 801a6a6: b082 sub sp, #8
  64860. 801a6a8: af00 add r7, sp, #0
  64861. 801a6aa: 6078 str r0, [r7, #4]
  64862. 801a6ac: 6039 str r1, [r7, #0]
  64863. #if LWIP_TCP
  64864. tcp_netif_ip_addr_changed(old_addr, new_addr);
  64865. 801a6ae: 6839 ldr r1, [r7, #0]
  64866. 801a6b0: 6878 ldr r0, [r7, #4]
  64867. 801a6b2: f002 fe6f bl 801d394 <tcp_netif_ip_addr_changed>
  64868. #endif /* LWIP_TCP */
  64869. #if LWIP_UDP
  64870. udp_netif_ip_addr_changed(old_addr, new_addr);
  64871. 801a6b6: 6839 ldr r1, [r7, #0]
  64872. 801a6b8: 6878 ldr r0, [r7, #4]
  64873. 801a6ba: f008 f82b bl 8022714 <udp_netif_ip_addr_changed>
  64874. #endif /* LWIP_UDP */
  64875. #if LWIP_RAW
  64876. raw_netif_ip_addr_changed(old_addr, new_addr);
  64877. #endif /* LWIP_RAW */
  64878. }
  64879. 801a6be: bf00 nop
  64880. 801a6c0: 3708 adds r7, #8
  64881. 801a6c2: 46bd mov sp, r7
  64882. 801a6c4: bd80 pop {r7, pc}
  64883. ...
  64884. 0801a6c8 <netif_do_set_ipaddr>:
  64885. #if LWIP_IPV4
  64886. static int
  64887. netif_do_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr, ip_addr_t *old_addr)
  64888. {
  64889. 801a6c8: b580 push {r7, lr}
  64890. 801a6ca: b086 sub sp, #24
  64891. 801a6cc: af00 add r7, sp, #0
  64892. 801a6ce: 60f8 str r0, [r7, #12]
  64893. 801a6d0: 60b9 str r1, [r7, #8]
  64894. 801a6d2: 607a str r2, [r7, #4]
  64895. LWIP_ASSERT("invalid pointer", ipaddr != NULL);
  64896. 801a6d4: 68bb ldr r3, [r7, #8]
  64897. 801a6d6: 2b00 cmp r3, #0
  64898. 801a6d8: d106 bne.n 801a6e8 <netif_do_set_ipaddr+0x20>
  64899. 801a6da: 4b1d ldr r3, [pc, #116] @ (801a750 <netif_do_set_ipaddr+0x88>)
  64900. 801a6dc: f240 12cb movw r2, #459 @ 0x1cb
  64901. 801a6e0: 491c ldr r1, [pc, #112] @ (801a754 <netif_do_set_ipaddr+0x8c>)
  64902. 801a6e2: 481d ldr r0, [pc, #116] @ (801a758 <netif_do_set_ipaddr+0x90>)
  64903. 801a6e4: f010 f83a bl 802a75c <iprintf>
  64904. LWIP_ASSERT("invalid pointer", old_addr != NULL);
  64905. 801a6e8: 687b ldr r3, [r7, #4]
  64906. 801a6ea: 2b00 cmp r3, #0
  64907. 801a6ec: d106 bne.n 801a6fc <netif_do_set_ipaddr+0x34>
  64908. 801a6ee: 4b18 ldr r3, [pc, #96] @ (801a750 <netif_do_set_ipaddr+0x88>)
  64909. 801a6f0: f44f 72e6 mov.w r2, #460 @ 0x1cc
  64910. 801a6f4: 4917 ldr r1, [pc, #92] @ (801a754 <netif_do_set_ipaddr+0x8c>)
  64911. 801a6f6: 4818 ldr r0, [pc, #96] @ (801a758 <netif_do_set_ipaddr+0x90>)
  64912. 801a6f8: f010 f830 bl 802a75c <iprintf>
  64913. /* address is actually being changed? */
  64914. if (ip4_addr_cmp(ipaddr, netif_ip4_addr(netif)) == 0) {
  64915. 801a6fc: 68bb ldr r3, [r7, #8]
  64916. 801a6fe: 681a ldr r2, [r3, #0]
  64917. 801a700: 68fb ldr r3, [r7, #12]
  64918. 801a702: 3304 adds r3, #4
  64919. 801a704: 681b ldr r3, [r3, #0]
  64920. 801a706: 429a cmp r2, r3
  64921. 801a708: d01c beq.n 801a744 <netif_do_set_ipaddr+0x7c>
  64922. ip_addr_t new_addr;
  64923. *ip_2_ip4(&new_addr) = *ipaddr;
  64924. 801a70a: 68bb ldr r3, [r7, #8]
  64925. 801a70c: 681b ldr r3, [r3, #0]
  64926. 801a70e: 617b str r3, [r7, #20]
  64927. IP_SET_TYPE_VAL(new_addr, IPADDR_TYPE_V4);
  64928. ip_addr_copy(*old_addr, *netif_ip_addr4(netif));
  64929. 801a710: 68fb ldr r3, [r7, #12]
  64930. 801a712: 3304 adds r3, #4
  64931. 801a714: 681a ldr r2, [r3, #0]
  64932. 801a716: 687b ldr r3, [r7, #4]
  64933. 801a718: 601a str r2, [r3, #0]
  64934. LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: netif address being changed\n"));
  64935. netif_do_ip_addr_changed(old_addr, &new_addr);
  64936. 801a71a: f107 0314 add.w r3, r7, #20
  64937. 801a71e: 4619 mov r1, r3
  64938. 801a720: 6878 ldr r0, [r7, #4]
  64939. 801a722: f7ff ffbf bl 801a6a4 <netif_do_ip_addr_changed>
  64940. mib2_remove_ip4(netif);
  64941. mib2_remove_route_ip4(0, netif);
  64942. /* set new IP address to netif */
  64943. ip4_addr_set(ip_2_ip4(&netif->ip_addr), ipaddr);
  64944. 801a726: 68bb ldr r3, [r7, #8]
  64945. 801a728: 2b00 cmp r3, #0
  64946. 801a72a: d002 beq.n 801a732 <netif_do_set_ipaddr+0x6a>
  64947. 801a72c: 68bb ldr r3, [r7, #8]
  64948. 801a72e: 681b ldr r3, [r3, #0]
  64949. 801a730: e000 b.n 801a734 <netif_do_set_ipaddr+0x6c>
  64950. 801a732: 2300 movs r3, #0
  64951. 801a734: 68fa ldr r2, [r7, #12]
  64952. 801a736: 6053 str r3, [r2, #4]
  64953. IP_SET_TYPE_VAL(netif->ip_addr, IPADDR_TYPE_V4);
  64954. mib2_add_ip4(netif);
  64955. mib2_add_route_ip4(0, netif);
  64956. netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4);
  64957. 801a738: 2101 movs r1, #1
  64958. 801a73a: 68f8 ldr r0, [r7, #12]
  64959. 801a73c: f000 f8d6 bl 801a8ec <netif_issue_reports>
  64960. NETIF_STATUS_CALLBACK(netif);
  64961. return 1; /* address changed */
  64962. 801a740: 2301 movs r3, #1
  64963. 801a742: e000 b.n 801a746 <netif_do_set_ipaddr+0x7e>
  64964. }
  64965. return 0; /* address unchanged */
  64966. 801a744: 2300 movs r3, #0
  64967. }
  64968. 801a746: 4618 mov r0, r3
  64969. 801a748: 3718 adds r7, #24
  64970. 801a74a: 46bd mov sp, r7
  64971. 801a74c: bd80 pop {r7, pc}
  64972. 801a74e: bf00 nop
  64973. 801a750: 0802ed5c .word 0x0802ed5c
  64974. 801a754: 0802ee74 .word 0x0802ee74
  64975. 801a758: 0802edac .word 0x0802edac
  64976. 0801a75c <netif_do_set_netmask>:
  64977. }
  64978. }
  64979. static int
  64980. netif_do_set_netmask(struct netif *netif, const ip4_addr_t *netmask, ip_addr_t *old_nm)
  64981. {
  64982. 801a75c: b480 push {r7}
  64983. 801a75e: b085 sub sp, #20
  64984. 801a760: af00 add r7, sp, #0
  64985. 801a762: 60f8 str r0, [r7, #12]
  64986. 801a764: 60b9 str r1, [r7, #8]
  64987. 801a766: 607a str r2, [r7, #4]
  64988. /* address is actually being changed? */
  64989. if (ip4_addr_cmp(netmask, netif_ip4_netmask(netif)) == 0) {
  64990. 801a768: 68bb ldr r3, [r7, #8]
  64991. 801a76a: 681a ldr r2, [r3, #0]
  64992. 801a76c: 68fb ldr r3, [r7, #12]
  64993. 801a76e: 3308 adds r3, #8
  64994. 801a770: 681b ldr r3, [r3, #0]
  64995. 801a772: 429a cmp r2, r3
  64996. 801a774: d00a beq.n 801a78c <netif_do_set_netmask+0x30>
  64997. #else
  64998. LWIP_UNUSED_ARG(old_nm);
  64999. #endif
  65000. mib2_remove_route_ip4(0, netif);
  65001. /* set new netmask to netif */
  65002. ip4_addr_set(ip_2_ip4(&netif->netmask), netmask);
  65003. 801a776: 68bb ldr r3, [r7, #8]
  65004. 801a778: 2b00 cmp r3, #0
  65005. 801a77a: d002 beq.n 801a782 <netif_do_set_netmask+0x26>
  65006. 801a77c: 68bb ldr r3, [r7, #8]
  65007. 801a77e: 681b ldr r3, [r3, #0]
  65008. 801a780: e000 b.n 801a784 <netif_do_set_netmask+0x28>
  65009. 801a782: 2300 movs r3, #0
  65010. 801a784: 68fa ldr r2, [r7, #12]
  65011. 801a786: 6093 str r3, [r2, #8]
  65012. netif->name[0], netif->name[1],
  65013. ip4_addr1_16(netif_ip4_netmask(netif)),
  65014. ip4_addr2_16(netif_ip4_netmask(netif)),
  65015. ip4_addr3_16(netif_ip4_netmask(netif)),
  65016. ip4_addr4_16(netif_ip4_netmask(netif))));
  65017. return 1; /* netmask changed */
  65018. 801a788: 2301 movs r3, #1
  65019. 801a78a: e000 b.n 801a78e <netif_do_set_netmask+0x32>
  65020. }
  65021. return 0; /* netmask unchanged */
  65022. 801a78c: 2300 movs r3, #0
  65023. }
  65024. 801a78e: 4618 mov r0, r3
  65025. 801a790: 3714 adds r7, #20
  65026. 801a792: 46bd mov sp, r7
  65027. 801a794: f85d 7b04 ldr.w r7, [sp], #4
  65028. 801a798: 4770 bx lr
  65029. 0801a79a <netif_do_set_gw>:
  65030. }
  65031. }
  65032. static int
  65033. netif_do_set_gw(struct netif *netif, const ip4_addr_t *gw, ip_addr_t *old_gw)
  65034. {
  65035. 801a79a: b480 push {r7}
  65036. 801a79c: b085 sub sp, #20
  65037. 801a79e: af00 add r7, sp, #0
  65038. 801a7a0: 60f8 str r0, [r7, #12]
  65039. 801a7a2: 60b9 str r1, [r7, #8]
  65040. 801a7a4: 607a str r2, [r7, #4]
  65041. /* address is actually being changed? */
  65042. if (ip4_addr_cmp(gw, netif_ip4_gw(netif)) == 0) {
  65043. 801a7a6: 68bb ldr r3, [r7, #8]
  65044. 801a7a8: 681a ldr r2, [r3, #0]
  65045. 801a7aa: 68fb ldr r3, [r7, #12]
  65046. 801a7ac: 330c adds r3, #12
  65047. 801a7ae: 681b ldr r3, [r3, #0]
  65048. 801a7b0: 429a cmp r2, r3
  65049. 801a7b2: d00a beq.n 801a7ca <netif_do_set_gw+0x30>
  65050. ip_addr_copy(*old_gw, *netif_ip_gw4(netif));
  65051. #else
  65052. LWIP_UNUSED_ARG(old_gw);
  65053. #endif
  65054. ip4_addr_set(ip_2_ip4(&netif->gw), gw);
  65055. 801a7b4: 68bb ldr r3, [r7, #8]
  65056. 801a7b6: 2b00 cmp r3, #0
  65057. 801a7b8: d002 beq.n 801a7c0 <netif_do_set_gw+0x26>
  65058. 801a7ba: 68bb ldr r3, [r7, #8]
  65059. 801a7bc: 681b ldr r3, [r3, #0]
  65060. 801a7be: e000 b.n 801a7c2 <netif_do_set_gw+0x28>
  65061. 801a7c0: 2300 movs r3, #0
  65062. 801a7c2: 68fa ldr r2, [r7, #12]
  65063. 801a7c4: 60d3 str r3, [r2, #12]
  65064. netif->name[0], netif->name[1],
  65065. ip4_addr1_16(netif_ip4_gw(netif)),
  65066. ip4_addr2_16(netif_ip4_gw(netif)),
  65067. ip4_addr3_16(netif_ip4_gw(netif)),
  65068. ip4_addr4_16(netif_ip4_gw(netif))));
  65069. return 1; /* gateway changed */
  65070. 801a7c6: 2301 movs r3, #1
  65071. 801a7c8: e000 b.n 801a7cc <netif_do_set_gw+0x32>
  65072. }
  65073. return 0; /* gateway unchanged */
  65074. 801a7ca: 2300 movs r3, #0
  65075. }
  65076. 801a7cc: 4618 mov r0, r3
  65077. 801a7ce: 3714 adds r7, #20
  65078. 801a7d0: 46bd mov sp, r7
  65079. 801a7d2: f85d 7b04 ldr.w r7, [sp], #4
  65080. 801a7d6: 4770 bx lr
  65081. 0801a7d8 <netif_set_addr>:
  65082. * @param gw the new default gateway
  65083. */
  65084. void
  65085. netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask,
  65086. const ip4_addr_t *gw)
  65087. {
  65088. 801a7d8: b580 push {r7, lr}
  65089. 801a7da: b088 sub sp, #32
  65090. 801a7dc: af00 add r7, sp, #0
  65091. 801a7de: 60f8 str r0, [r7, #12]
  65092. 801a7e0: 60b9 str r1, [r7, #8]
  65093. 801a7e2: 607a str r2, [r7, #4]
  65094. 801a7e4: 603b str r3, [r7, #0]
  65095. ip_addr_t old_nm_val;
  65096. ip_addr_t old_gw_val;
  65097. ip_addr_t *old_nm = &old_nm_val;
  65098. ip_addr_t *old_gw = &old_gw_val;
  65099. #else
  65100. ip_addr_t *old_nm = NULL;
  65101. 801a7e6: 2300 movs r3, #0
  65102. 801a7e8: 61fb str r3, [r7, #28]
  65103. ip_addr_t *old_gw = NULL;
  65104. 801a7ea: 2300 movs r3, #0
  65105. 801a7ec: 61bb str r3, [r7, #24]
  65106. #endif
  65107. ip_addr_t old_addr;
  65108. int remove;
  65109. LWIP_ASSERT_CORE_LOCKED();
  65110. 801a7ee: f7f6 fb87 bl 8010f00 <sys_check_core_locking>
  65111. /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */
  65112. if (ipaddr == NULL) {
  65113. 801a7f2: 68bb ldr r3, [r7, #8]
  65114. 801a7f4: 2b00 cmp r3, #0
  65115. 801a7f6: d101 bne.n 801a7fc <netif_set_addr+0x24>
  65116. ipaddr = IP4_ADDR_ANY4;
  65117. 801a7f8: 4b1c ldr r3, [pc, #112] @ (801a86c <netif_set_addr+0x94>)
  65118. 801a7fa: 60bb str r3, [r7, #8]
  65119. }
  65120. if (netmask == NULL) {
  65121. 801a7fc: 687b ldr r3, [r7, #4]
  65122. 801a7fe: 2b00 cmp r3, #0
  65123. 801a800: d101 bne.n 801a806 <netif_set_addr+0x2e>
  65124. netmask = IP4_ADDR_ANY4;
  65125. 801a802: 4b1a ldr r3, [pc, #104] @ (801a86c <netif_set_addr+0x94>)
  65126. 801a804: 607b str r3, [r7, #4]
  65127. }
  65128. if (gw == NULL) {
  65129. 801a806: 683b ldr r3, [r7, #0]
  65130. 801a808: 2b00 cmp r3, #0
  65131. 801a80a: d101 bne.n 801a810 <netif_set_addr+0x38>
  65132. gw = IP4_ADDR_ANY4;
  65133. 801a80c: 4b17 ldr r3, [pc, #92] @ (801a86c <netif_set_addr+0x94>)
  65134. 801a80e: 603b str r3, [r7, #0]
  65135. }
  65136. remove = ip4_addr_isany(ipaddr);
  65137. 801a810: 68bb ldr r3, [r7, #8]
  65138. 801a812: 2b00 cmp r3, #0
  65139. 801a814: d003 beq.n 801a81e <netif_set_addr+0x46>
  65140. 801a816: 68bb ldr r3, [r7, #8]
  65141. 801a818: 681b ldr r3, [r3, #0]
  65142. 801a81a: 2b00 cmp r3, #0
  65143. 801a81c: d101 bne.n 801a822 <netif_set_addr+0x4a>
  65144. 801a81e: 2301 movs r3, #1
  65145. 801a820: e000 b.n 801a824 <netif_set_addr+0x4c>
  65146. 801a822: 2300 movs r3, #0
  65147. 801a824: 617b str r3, [r7, #20]
  65148. if (remove) {
  65149. 801a826: 697b ldr r3, [r7, #20]
  65150. 801a828: 2b00 cmp r3, #0
  65151. 801a82a: d006 beq.n 801a83a <netif_set_addr+0x62>
  65152. /* when removing an address, we have to remove it *before* changing netmask/gw
  65153. to ensure that tcp RST segment can be sent correctly */
  65154. if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) {
  65155. 801a82c: f107 0310 add.w r3, r7, #16
  65156. 801a830: 461a mov r2, r3
  65157. 801a832: 68b9 ldr r1, [r7, #8]
  65158. 801a834: 68f8 ldr r0, [r7, #12]
  65159. 801a836: f7ff ff47 bl 801a6c8 <netif_do_set_ipaddr>
  65160. change_reason |= LWIP_NSC_IPV4_ADDRESS_CHANGED;
  65161. cb_args.ipv4_changed.old_address = &old_addr;
  65162. #endif
  65163. }
  65164. }
  65165. if (netif_do_set_netmask(netif, netmask, old_nm)) {
  65166. 801a83a: 69fa ldr r2, [r7, #28]
  65167. 801a83c: 6879 ldr r1, [r7, #4]
  65168. 801a83e: 68f8 ldr r0, [r7, #12]
  65169. 801a840: f7ff ff8c bl 801a75c <netif_do_set_netmask>
  65170. #if LWIP_NETIF_EXT_STATUS_CALLBACK
  65171. change_reason |= LWIP_NSC_IPV4_NETMASK_CHANGED;
  65172. cb_args.ipv4_changed.old_netmask = old_nm;
  65173. #endif
  65174. }
  65175. if (netif_do_set_gw(netif, gw, old_gw)) {
  65176. 801a844: 69ba ldr r2, [r7, #24]
  65177. 801a846: 6839 ldr r1, [r7, #0]
  65178. 801a848: 68f8 ldr r0, [r7, #12]
  65179. 801a84a: f7ff ffa6 bl 801a79a <netif_do_set_gw>
  65180. #if LWIP_NETIF_EXT_STATUS_CALLBACK
  65181. change_reason |= LWIP_NSC_IPV4_GATEWAY_CHANGED;
  65182. cb_args.ipv4_changed.old_gw = old_gw;
  65183. #endif
  65184. }
  65185. if (!remove) {
  65186. 801a84e: 697b ldr r3, [r7, #20]
  65187. 801a850: 2b00 cmp r3, #0
  65188. 801a852: d106 bne.n 801a862 <netif_set_addr+0x8a>
  65189. /* set ipaddr last to ensure netmask/gw have been set when status callback is called */
  65190. if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) {
  65191. 801a854: f107 0310 add.w r3, r7, #16
  65192. 801a858: 461a mov r2, r3
  65193. 801a85a: 68b9 ldr r1, [r7, #8]
  65194. 801a85c: 68f8 ldr r0, [r7, #12]
  65195. 801a85e: f7ff ff33 bl 801a6c8 <netif_do_set_ipaddr>
  65196. if (change_reason != LWIP_NSC_NONE) {
  65197. change_reason |= LWIP_NSC_IPV4_SETTINGS_CHANGED;
  65198. netif_invoke_ext_callback(netif, change_reason, &cb_args);
  65199. }
  65200. #endif
  65201. }
  65202. 801a862: bf00 nop
  65203. 801a864: 3720 adds r7, #32
  65204. 801a866: 46bd mov sp, r7
  65205. 801a868: bd80 pop {r7, pc}
  65206. 801a86a: bf00 nop
  65207. 801a86c: 08031b58 .word 0x08031b58
  65208. 0801a870 <netif_set_default>:
  65209. *
  65210. * @param netif the default network interface
  65211. */
  65212. void
  65213. netif_set_default(struct netif *netif)
  65214. {
  65215. 801a870: b580 push {r7, lr}
  65216. 801a872: b082 sub sp, #8
  65217. 801a874: af00 add r7, sp, #0
  65218. 801a876: 6078 str r0, [r7, #4]
  65219. LWIP_ASSERT_CORE_LOCKED();
  65220. 801a878: f7f6 fb42 bl 8010f00 <sys_check_core_locking>
  65221. mib2_remove_route_ip4(1, netif);
  65222. } else {
  65223. /* install default route */
  65224. mib2_add_route_ip4(1, netif);
  65225. }
  65226. netif_default = netif;
  65227. 801a87c: 4a03 ldr r2, [pc, #12] @ (801a88c <netif_set_default+0x1c>)
  65228. 801a87e: 687b ldr r3, [r7, #4]
  65229. 801a880: 6013 str r3, [r2, #0]
  65230. LWIP_DEBUGF(NETIF_DEBUG, ("netif: setting default interface %c%c\n",
  65231. netif ? netif->name[0] : '\'', netif ? netif->name[1] : '\''));
  65232. }
  65233. 801a882: bf00 nop
  65234. 801a884: 3708 adds r7, #8
  65235. 801a886: 46bd mov sp, r7
  65236. 801a888: bd80 pop {r7, pc}
  65237. 801a88a: bf00 nop
  65238. 801a88c: 2402af60 .word 0x2402af60
  65239. 0801a890 <netif_set_up>:
  65240. * Bring an interface up, available for processing
  65241. * traffic.
  65242. */
  65243. void
  65244. netif_set_up(struct netif *netif)
  65245. {
  65246. 801a890: b580 push {r7, lr}
  65247. 801a892: b082 sub sp, #8
  65248. 801a894: af00 add r7, sp, #0
  65249. 801a896: 6078 str r0, [r7, #4]
  65250. LWIP_ASSERT_CORE_LOCKED();
  65251. 801a898: f7f6 fb32 bl 8010f00 <sys_check_core_locking>
  65252. LWIP_ERROR("netif_set_up: invalid netif", netif != NULL, return);
  65253. 801a89c: 687b ldr r3, [r7, #4]
  65254. 801a89e: 2b00 cmp r3, #0
  65255. 801a8a0: d107 bne.n 801a8b2 <netif_set_up+0x22>
  65256. 801a8a2: 4b0f ldr r3, [pc, #60] @ (801a8e0 <netif_set_up+0x50>)
  65257. 801a8a4: f44f 7254 mov.w r2, #848 @ 0x350
  65258. 801a8a8: 490e ldr r1, [pc, #56] @ (801a8e4 <netif_set_up+0x54>)
  65259. 801a8aa: 480f ldr r0, [pc, #60] @ (801a8e8 <netif_set_up+0x58>)
  65260. 801a8ac: f00f ff56 bl 802a75c <iprintf>
  65261. 801a8b0: e013 b.n 801a8da <netif_set_up+0x4a>
  65262. if (!(netif->flags & NETIF_FLAG_UP)) {
  65263. 801a8b2: 687b ldr r3, [r7, #4]
  65264. 801a8b4: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  65265. 801a8b8: f003 0301 and.w r3, r3, #1
  65266. 801a8bc: 2b00 cmp r3, #0
  65267. 801a8be: d10c bne.n 801a8da <netif_set_up+0x4a>
  65268. netif_set_flags(netif, NETIF_FLAG_UP);
  65269. 801a8c0: 687b ldr r3, [r7, #4]
  65270. 801a8c2: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  65271. 801a8c6: f043 0301 orr.w r3, r3, #1
  65272. 801a8ca: b2da uxtb r2, r3
  65273. 801a8cc: 687b ldr r3, [r7, #4]
  65274. 801a8ce: f883 2031 strb.w r2, [r3, #49] @ 0x31
  65275. args.status_changed.state = 1;
  65276. netif_invoke_ext_callback(netif, LWIP_NSC_STATUS_CHANGED, &args);
  65277. }
  65278. #endif
  65279. netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4 | NETIF_REPORT_TYPE_IPV6);
  65280. 801a8d2: 2103 movs r1, #3
  65281. 801a8d4: 6878 ldr r0, [r7, #4]
  65282. 801a8d6: f000 f809 bl 801a8ec <netif_issue_reports>
  65283. #if LWIP_IPV6
  65284. nd6_restart_netif(netif);
  65285. #endif /* LWIP_IPV6 */
  65286. }
  65287. }
  65288. 801a8da: 3708 adds r7, #8
  65289. 801a8dc: 46bd mov sp, r7
  65290. 801a8de: bd80 pop {r7, pc}
  65291. 801a8e0: 0802ed5c .word 0x0802ed5c
  65292. 801a8e4: 0802eee4 .word 0x0802eee4
  65293. 801a8e8: 0802edac .word 0x0802edac
  65294. 0801a8ec <netif_issue_reports>:
  65295. /** Send ARP/IGMP/MLD/RS events, e.g. on link-up/netif-up or addr-change
  65296. */
  65297. static void
  65298. netif_issue_reports(struct netif *netif, u8_t report_type)
  65299. {
  65300. 801a8ec: b580 push {r7, lr}
  65301. 801a8ee: b082 sub sp, #8
  65302. 801a8f0: af00 add r7, sp, #0
  65303. 801a8f2: 6078 str r0, [r7, #4]
  65304. 801a8f4: 460b mov r3, r1
  65305. 801a8f6: 70fb strb r3, [r7, #3]
  65306. LWIP_ASSERT("netif_issue_reports: invalid netif", netif != NULL);
  65307. 801a8f8: 687b ldr r3, [r7, #4]
  65308. 801a8fa: 2b00 cmp r3, #0
  65309. 801a8fc: d106 bne.n 801a90c <netif_issue_reports+0x20>
  65310. 801a8fe: 4b18 ldr r3, [pc, #96] @ (801a960 <netif_issue_reports+0x74>)
  65311. 801a900: f240 326d movw r2, #877 @ 0x36d
  65312. 801a904: 4917 ldr r1, [pc, #92] @ (801a964 <netif_issue_reports+0x78>)
  65313. 801a906: 4818 ldr r0, [pc, #96] @ (801a968 <netif_issue_reports+0x7c>)
  65314. 801a908: f00f ff28 bl 802a75c <iprintf>
  65315. /* Only send reports when both link and admin states are up */
  65316. if (!(netif->flags & NETIF_FLAG_LINK_UP) ||
  65317. 801a90c: 687b ldr r3, [r7, #4]
  65318. 801a90e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  65319. 801a912: f003 0304 and.w r3, r3, #4
  65320. 801a916: 2b00 cmp r3, #0
  65321. 801a918: d01e beq.n 801a958 <netif_issue_reports+0x6c>
  65322. !(netif->flags & NETIF_FLAG_UP)) {
  65323. 801a91a: 687b ldr r3, [r7, #4]
  65324. 801a91c: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  65325. 801a920: f003 0301 and.w r3, r3, #1
  65326. if (!(netif->flags & NETIF_FLAG_LINK_UP) ||
  65327. 801a924: 2b00 cmp r3, #0
  65328. 801a926: d017 beq.n 801a958 <netif_issue_reports+0x6c>
  65329. return;
  65330. }
  65331. #if LWIP_IPV4
  65332. if ((report_type & NETIF_REPORT_TYPE_IPV4) &&
  65333. 801a928: 78fb ldrb r3, [r7, #3]
  65334. 801a92a: f003 0301 and.w r3, r3, #1
  65335. 801a92e: 2b00 cmp r3, #0
  65336. 801a930: d013 beq.n 801a95a <netif_issue_reports+0x6e>
  65337. !ip4_addr_isany_val(*netif_ip4_addr(netif))) {
  65338. 801a932: 687b ldr r3, [r7, #4]
  65339. 801a934: 3304 adds r3, #4
  65340. 801a936: 681b ldr r3, [r3, #0]
  65341. if ((report_type & NETIF_REPORT_TYPE_IPV4) &&
  65342. 801a938: 2b00 cmp r3, #0
  65343. 801a93a: d00e beq.n 801a95a <netif_issue_reports+0x6e>
  65344. #if LWIP_ARP
  65345. /* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */
  65346. if (netif->flags & (NETIF_FLAG_ETHARP)) {
  65347. 801a93c: 687b ldr r3, [r7, #4]
  65348. 801a93e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  65349. 801a942: f003 0308 and.w r3, r3, #8
  65350. 801a946: 2b00 cmp r3, #0
  65351. 801a948: d007 beq.n 801a95a <netif_issue_reports+0x6e>
  65352. etharp_gratuitous(netif);
  65353. 801a94a: 687b ldr r3, [r7, #4]
  65354. 801a94c: 3304 adds r3, #4
  65355. 801a94e: 4619 mov r1, r3
  65356. 801a950: 6878 ldr r0, [r7, #4]
  65357. 801a952: f00a fd2b bl 80253ac <etharp_request>
  65358. 801a956: e000 b.n 801a95a <netif_issue_reports+0x6e>
  65359. return;
  65360. 801a958: bf00 nop
  65361. /* send mld memberships */
  65362. mld6_report_groups(netif);
  65363. #endif /* LWIP_IPV6_MLD */
  65364. }
  65365. #endif /* LWIP_IPV6 */
  65366. }
  65367. 801a95a: 3708 adds r7, #8
  65368. 801a95c: 46bd mov sp, r7
  65369. 801a95e: bd80 pop {r7, pc}
  65370. 801a960: 0802ed5c .word 0x0802ed5c
  65371. 801a964: 0802ef00 .word 0x0802ef00
  65372. 801a968: 0802edac .word 0x0802edac
  65373. 0801a96c <netif_set_down>:
  65374. * @ingroup netif
  65375. * Bring an interface down, disabling any traffic processing.
  65376. */
  65377. void
  65378. netif_set_down(struct netif *netif)
  65379. {
  65380. 801a96c: b580 push {r7, lr}
  65381. 801a96e: b082 sub sp, #8
  65382. 801a970: af00 add r7, sp, #0
  65383. 801a972: 6078 str r0, [r7, #4]
  65384. LWIP_ASSERT_CORE_LOCKED();
  65385. 801a974: f7f6 fac4 bl 8010f00 <sys_check_core_locking>
  65386. LWIP_ERROR("netif_set_down: invalid netif", netif != NULL, return);
  65387. 801a978: 687b ldr r3, [r7, #4]
  65388. 801a97a: 2b00 cmp r3, #0
  65389. 801a97c: d107 bne.n 801a98e <netif_set_down+0x22>
  65390. 801a97e: 4b12 ldr r3, [pc, #72] @ (801a9c8 <netif_set_down+0x5c>)
  65391. 801a980: f240 329b movw r2, #923 @ 0x39b
  65392. 801a984: 4911 ldr r1, [pc, #68] @ (801a9cc <netif_set_down+0x60>)
  65393. 801a986: 4812 ldr r0, [pc, #72] @ (801a9d0 <netif_set_down+0x64>)
  65394. 801a988: f00f fee8 bl 802a75c <iprintf>
  65395. 801a98c: e019 b.n 801a9c2 <netif_set_down+0x56>
  65396. if (netif->flags & NETIF_FLAG_UP) {
  65397. 801a98e: 687b ldr r3, [r7, #4]
  65398. 801a990: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  65399. 801a994: f003 0301 and.w r3, r3, #1
  65400. 801a998: 2b00 cmp r3, #0
  65401. 801a99a: d012 beq.n 801a9c2 <netif_set_down+0x56>
  65402. args.status_changed.state = 0;
  65403. netif_invoke_ext_callback(netif, LWIP_NSC_STATUS_CHANGED, &args);
  65404. }
  65405. #endif
  65406. netif_clear_flags(netif, NETIF_FLAG_UP);
  65407. 801a99c: 687b ldr r3, [r7, #4]
  65408. 801a99e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  65409. 801a9a2: f023 0301 bic.w r3, r3, #1
  65410. 801a9a6: b2da uxtb r2, r3
  65411. 801a9a8: 687b ldr r3, [r7, #4]
  65412. 801a9aa: f883 2031 strb.w r2, [r3, #49] @ 0x31
  65413. MIB2_COPY_SYSUPTIME_TO(&netif->ts);
  65414. #if LWIP_IPV4 && LWIP_ARP
  65415. if (netif->flags & NETIF_FLAG_ETHARP) {
  65416. 801a9ae: 687b ldr r3, [r7, #4]
  65417. 801a9b0: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  65418. 801a9b4: f003 0308 and.w r3, r3, #8
  65419. 801a9b8: 2b00 cmp r3, #0
  65420. 801a9ba: d002 beq.n 801a9c2 <netif_set_down+0x56>
  65421. etharp_cleanup_netif(netif);
  65422. 801a9bc: 6878 ldr r0, [r7, #4]
  65423. 801a9be: f00a f8ab bl 8024b18 <etharp_cleanup_netif>
  65424. nd6_cleanup_netif(netif);
  65425. #endif /* LWIP_IPV6 */
  65426. NETIF_STATUS_CALLBACK(netif);
  65427. }
  65428. }
  65429. 801a9c2: 3708 adds r7, #8
  65430. 801a9c4: 46bd mov sp, r7
  65431. 801a9c6: bd80 pop {r7, pc}
  65432. 801a9c8: 0802ed5c .word 0x0802ed5c
  65433. 801a9cc: 0802ef24 .word 0x0802ef24
  65434. 801a9d0: 0802edac .word 0x0802edac
  65435. 0801a9d4 <netif_set_link_up>:
  65436. * @ingroup netif
  65437. * Called by a driver when its link goes up
  65438. */
  65439. void
  65440. netif_set_link_up(struct netif *netif)
  65441. {
  65442. 801a9d4: b580 push {r7, lr}
  65443. 801a9d6: b082 sub sp, #8
  65444. 801a9d8: af00 add r7, sp, #0
  65445. 801a9da: 6078 str r0, [r7, #4]
  65446. LWIP_ASSERT_CORE_LOCKED();
  65447. 801a9dc: f7f6 fa90 bl 8010f00 <sys_check_core_locking>
  65448. LWIP_ERROR("netif_set_link_up: invalid netif", netif != NULL, return);
  65449. 801a9e0: 687b ldr r3, [r7, #4]
  65450. 801a9e2: 2b00 cmp r3, #0
  65451. 801a9e4: d107 bne.n 801a9f6 <netif_set_link_up+0x22>
  65452. 801a9e6: 4b15 ldr r3, [pc, #84] @ (801aa3c <netif_set_link_up+0x68>)
  65453. 801a9e8: f44f 7278 mov.w r2, #992 @ 0x3e0
  65454. 801a9ec: 4914 ldr r1, [pc, #80] @ (801aa40 <netif_set_link_up+0x6c>)
  65455. 801a9ee: 4815 ldr r0, [pc, #84] @ (801aa44 <netif_set_link_up+0x70>)
  65456. 801a9f0: f00f feb4 bl 802a75c <iprintf>
  65457. 801a9f4: e01e b.n 801aa34 <netif_set_link_up+0x60>
  65458. if (!(netif->flags & NETIF_FLAG_LINK_UP)) {
  65459. 801a9f6: 687b ldr r3, [r7, #4]
  65460. 801a9f8: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  65461. 801a9fc: f003 0304 and.w r3, r3, #4
  65462. 801aa00: 2b00 cmp r3, #0
  65463. 801aa02: d117 bne.n 801aa34 <netif_set_link_up+0x60>
  65464. netif_set_flags(netif, NETIF_FLAG_LINK_UP);
  65465. 801aa04: 687b ldr r3, [r7, #4]
  65466. 801aa06: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  65467. 801aa0a: f043 0304 orr.w r3, r3, #4
  65468. 801aa0e: b2da uxtb r2, r3
  65469. 801aa10: 687b ldr r3, [r7, #4]
  65470. 801aa12: f883 2031 strb.w r2, [r3, #49] @ 0x31
  65471. #if LWIP_DHCP
  65472. dhcp_network_changed(netif);
  65473. 801aa16: 6878 ldr r0, [r7, #4]
  65474. 801aa18: f008 faaa bl 8022f70 <dhcp_network_changed>
  65475. #if LWIP_AUTOIP
  65476. autoip_network_changed(netif);
  65477. #endif /* LWIP_AUTOIP */
  65478. netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4 | NETIF_REPORT_TYPE_IPV6);
  65479. 801aa1c: 2103 movs r1, #3
  65480. 801aa1e: 6878 ldr r0, [r7, #4]
  65481. 801aa20: f7ff ff64 bl 801a8ec <netif_issue_reports>
  65482. #if LWIP_IPV6
  65483. nd6_restart_netif(netif);
  65484. #endif /* LWIP_IPV6 */
  65485. NETIF_LINK_CALLBACK(netif);
  65486. 801aa24: 687b ldr r3, [r7, #4]
  65487. 801aa26: 69db ldr r3, [r3, #28]
  65488. 801aa28: 2b00 cmp r3, #0
  65489. 801aa2a: d003 beq.n 801aa34 <netif_set_link_up+0x60>
  65490. 801aa2c: 687b ldr r3, [r7, #4]
  65491. 801aa2e: 69db ldr r3, [r3, #28]
  65492. 801aa30: 6878 ldr r0, [r7, #4]
  65493. 801aa32: 4798 blx r3
  65494. args.link_changed.state = 1;
  65495. netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args);
  65496. }
  65497. #endif
  65498. }
  65499. }
  65500. 801aa34: 3708 adds r7, #8
  65501. 801aa36: 46bd mov sp, r7
  65502. 801aa38: bd80 pop {r7, pc}
  65503. 801aa3a: bf00 nop
  65504. 801aa3c: 0802ed5c .word 0x0802ed5c
  65505. 801aa40: 0802ef44 .word 0x0802ef44
  65506. 801aa44: 0802edac .word 0x0802edac
  65507. 0801aa48 <netif_set_link_down>:
  65508. * @ingroup netif
  65509. * Called by a driver when its link goes down
  65510. */
  65511. void
  65512. netif_set_link_down(struct netif *netif)
  65513. {
  65514. 801aa48: b580 push {r7, lr}
  65515. 801aa4a: b082 sub sp, #8
  65516. 801aa4c: af00 add r7, sp, #0
  65517. 801aa4e: 6078 str r0, [r7, #4]
  65518. LWIP_ASSERT_CORE_LOCKED();
  65519. 801aa50: f7f6 fa56 bl 8010f00 <sys_check_core_locking>
  65520. LWIP_ERROR("netif_set_link_down: invalid netif", netif != NULL, return);
  65521. 801aa54: 687b ldr r3, [r7, #4]
  65522. 801aa56: 2b00 cmp r3, #0
  65523. 801aa58: d107 bne.n 801aa6a <netif_set_link_down+0x22>
  65524. 801aa5a: 4b11 ldr r3, [pc, #68] @ (801aaa0 <netif_set_link_down+0x58>)
  65525. 801aa5c: f240 4206 movw r2, #1030 @ 0x406
  65526. 801aa60: 4910 ldr r1, [pc, #64] @ (801aaa4 <netif_set_link_down+0x5c>)
  65527. 801aa62: 4811 ldr r0, [pc, #68] @ (801aaa8 <netif_set_link_down+0x60>)
  65528. 801aa64: f00f fe7a bl 802a75c <iprintf>
  65529. 801aa68: e017 b.n 801aa9a <netif_set_link_down+0x52>
  65530. if (netif->flags & NETIF_FLAG_LINK_UP) {
  65531. 801aa6a: 687b ldr r3, [r7, #4]
  65532. 801aa6c: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  65533. 801aa70: f003 0304 and.w r3, r3, #4
  65534. 801aa74: 2b00 cmp r3, #0
  65535. 801aa76: d010 beq.n 801aa9a <netif_set_link_down+0x52>
  65536. netif_clear_flags(netif, NETIF_FLAG_LINK_UP);
  65537. 801aa78: 687b ldr r3, [r7, #4]
  65538. 801aa7a: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  65539. 801aa7e: f023 0304 bic.w r3, r3, #4
  65540. 801aa82: b2da uxtb r2, r3
  65541. 801aa84: 687b ldr r3, [r7, #4]
  65542. 801aa86: f883 2031 strb.w r2, [r3, #49] @ 0x31
  65543. NETIF_LINK_CALLBACK(netif);
  65544. 801aa8a: 687b ldr r3, [r7, #4]
  65545. 801aa8c: 69db ldr r3, [r3, #28]
  65546. 801aa8e: 2b00 cmp r3, #0
  65547. 801aa90: d003 beq.n 801aa9a <netif_set_link_down+0x52>
  65548. 801aa92: 687b ldr r3, [r7, #4]
  65549. 801aa94: 69db ldr r3, [r3, #28]
  65550. 801aa96: 6878 ldr r0, [r7, #4]
  65551. 801aa98: 4798 blx r3
  65552. args.link_changed.state = 0;
  65553. netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args);
  65554. }
  65555. #endif
  65556. }
  65557. }
  65558. 801aa9a: 3708 adds r7, #8
  65559. 801aa9c: 46bd mov sp, r7
  65560. 801aa9e: bd80 pop {r7, pc}
  65561. 801aaa0: 0802ed5c .word 0x0802ed5c
  65562. 801aaa4: 0802ef68 .word 0x0802ef68
  65563. 801aaa8: 0802edac .word 0x0802edac
  65564. 0801aaac <netif_set_link_callback>:
  65565. * @ingroup netif
  65566. * Set callback to be called when link is brought up/down
  65567. */
  65568. void
  65569. netif_set_link_callback(struct netif *netif, netif_status_callback_fn link_callback)
  65570. {
  65571. 801aaac: b580 push {r7, lr}
  65572. 801aaae: b082 sub sp, #8
  65573. 801aab0: af00 add r7, sp, #0
  65574. 801aab2: 6078 str r0, [r7, #4]
  65575. 801aab4: 6039 str r1, [r7, #0]
  65576. LWIP_ASSERT_CORE_LOCKED();
  65577. 801aab6: f7f6 fa23 bl 8010f00 <sys_check_core_locking>
  65578. if (netif) {
  65579. 801aaba: 687b ldr r3, [r7, #4]
  65580. 801aabc: 2b00 cmp r3, #0
  65581. 801aabe: d002 beq.n 801aac6 <netif_set_link_callback+0x1a>
  65582. netif->link_callback = link_callback;
  65583. 801aac0: 687b ldr r3, [r7, #4]
  65584. 801aac2: 683a ldr r2, [r7, #0]
  65585. 801aac4: 61da str r2, [r3, #28]
  65586. }
  65587. }
  65588. 801aac6: bf00 nop
  65589. 801aac8: 3708 adds r7, #8
  65590. 801aaca: 46bd mov sp, r7
  65591. 801aacc: bd80 pop {r7, pc}
  65592. 0801aace <netif_null_output_ip4>:
  65593. #if LWIP_IPV4
  65594. /** Dummy IPv4 output function for netifs not supporting IPv4
  65595. */
  65596. static err_t
  65597. netif_null_output_ip4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr)
  65598. {
  65599. 801aace: b480 push {r7}
  65600. 801aad0: b085 sub sp, #20
  65601. 801aad2: af00 add r7, sp, #0
  65602. 801aad4: 60f8 str r0, [r7, #12]
  65603. 801aad6: 60b9 str r1, [r7, #8]
  65604. 801aad8: 607a str r2, [r7, #4]
  65605. LWIP_UNUSED_ARG(netif);
  65606. LWIP_UNUSED_ARG(p);
  65607. LWIP_UNUSED_ARG(ipaddr);
  65608. return ERR_IF;
  65609. 801aada: f06f 030b mvn.w r3, #11
  65610. }
  65611. 801aade: 4618 mov r0, r3
  65612. 801aae0: 3714 adds r7, #20
  65613. 801aae2: 46bd mov sp, r7
  65614. 801aae4: f85d 7b04 ldr.w r7, [sp], #4
  65615. 801aae8: 4770 bx lr
  65616. ...
  65617. 0801aaec <netif_get_by_index>:
  65618. *
  65619. * @param idx index of netif to find
  65620. */
  65621. struct netif *
  65622. netif_get_by_index(u8_t idx)
  65623. {
  65624. 801aaec: b580 push {r7, lr}
  65625. 801aaee: b084 sub sp, #16
  65626. 801aaf0: af00 add r7, sp, #0
  65627. 801aaf2: 4603 mov r3, r0
  65628. 801aaf4: 71fb strb r3, [r7, #7]
  65629. struct netif *netif;
  65630. LWIP_ASSERT_CORE_LOCKED();
  65631. 801aaf6: f7f6 fa03 bl 8010f00 <sys_check_core_locking>
  65632. if (idx != NETIF_NO_INDEX) {
  65633. 801aafa: 79fb ldrb r3, [r7, #7]
  65634. 801aafc: 2b00 cmp r3, #0
  65635. 801aafe: d013 beq.n 801ab28 <netif_get_by_index+0x3c>
  65636. NETIF_FOREACH(netif) {
  65637. 801ab00: 4b0c ldr r3, [pc, #48] @ (801ab34 <netif_get_by_index+0x48>)
  65638. 801ab02: 681b ldr r3, [r3, #0]
  65639. 801ab04: 60fb str r3, [r7, #12]
  65640. 801ab06: e00c b.n 801ab22 <netif_get_by_index+0x36>
  65641. if (idx == netif_get_index(netif)) {
  65642. 801ab08: 68fb ldr r3, [r7, #12]
  65643. 801ab0a: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  65644. 801ab0e: 3301 adds r3, #1
  65645. 801ab10: b2db uxtb r3, r3
  65646. 801ab12: 79fa ldrb r2, [r7, #7]
  65647. 801ab14: 429a cmp r2, r3
  65648. 801ab16: d101 bne.n 801ab1c <netif_get_by_index+0x30>
  65649. return netif; /* found! */
  65650. 801ab18: 68fb ldr r3, [r7, #12]
  65651. 801ab1a: e006 b.n 801ab2a <netif_get_by_index+0x3e>
  65652. NETIF_FOREACH(netif) {
  65653. 801ab1c: 68fb ldr r3, [r7, #12]
  65654. 801ab1e: 681b ldr r3, [r3, #0]
  65655. 801ab20: 60fb str r3, [r7, #12]
  65656. 801ab22: 68fb ldr r3, [r7, #12]
  65657. 801ab24: 2b00 cmp r3, #0
  65658. 801ab26: d1ef bne.n 801ab08 <netif_get_by_index+0x1c>
  65659. }
  65660. }
  65661. }
  65662. return NULL;
  65663. 801ab28: 2300 movs r3, #0
  65664. }
  65665. 801ab2a: 4618 mov r0, r3
  65666. 801ab2c: 3710 adds r7, #16
  65667. 801ab2e: 46bd mov sp, r7
  65668. 801ab30: bd80 pop {r7, pc}
  65669. 801ab32: bf00 nop
  65670. 801ab34: 2402af5c .word 0x2402af5c
  65671. 0801ab38 <pbuf_free_ooseq>:
  65672. #if !NO_SYS
  65673. static
  65674. #endif /* !NO_SYS */
  65675. void
  65676. pbuf_free_ooseq(void)
  65677. {
  65678. 801ab38: b580 push {r7, lr}
  65679. 801ab3a: b082 sub sp, #8
  65680. 801ab3c: af00 add r7, sp, #0
  65681. struct tcp_pcb *pcb;
  65682. SYS_ARCH_SET(pbuf_free_ooseq_pending, 0);
  65683. 801ab3e: f00c fb77 bl 8027230 <sys_arch_protect>
  65684. 801ab42: 6038 str r0, [r7, #0]
  65685. 801ab44: 4b0d ldr r3, [pc, #52] @ (801ab7c <pbuf_free_ooseq+0x44>)
  65686. 801ab46: 2200 movs r2, #0
  65687. 801ab48: 701a strb r2, [r3, #0]
  65688. 801ab4a: 6838 ldr r0, [r7, #0]
  65689. 801ab4c: f00c fb7e bl 802724c <sys_arch_unprotect>
  65690. for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) {
  65691. 801ab50: 4b0b ldr r3, [pc, #44] @ (801ab80 <pbuf_free_ooseq+0x48>)
  65692. 801ab52: 681b ldr r3, [r3, #0]
  65693. 801ab54: 607b str r3, [r7, #4]
  65694. 801ab56: e00a b.n 801ab6e <pbuf_free_ooseq+0x36>
  65695. if (pcb->ooseq != NULL) {
  65696. 801ab58: 687b ldr r3, [r7, #4]
  65697. 801ab5a: 6f5b ldr r3, [r3, #116] @ 0x74
  65698. 801ab5c: 2b00 cmp r3, #0
  65699. 801ab5e: d003 beq.n 801ab68 <pbuf_free_ooseq+0x30>
  65700. /** Free the ooseq pbufs of one PCB only */
  65701. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free_ooseq: freeing out-of-sequence pbufs\n"));
  65702. tcp_free_ooseq(pcb);
  65703. 801ab60: 6878 ldr r0, [r7, #4]
  65704. 801ab62: f002 fc55 bl 801d410 <tcp_free_ooseq>
  65705. return;
  65706. 801ab66: e005 b.n 801ab74 <pbuf_free_ooseq+0x3c>
  65707. for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) {
  65708. 801ab68: 687b ldr r3, [r7, #4]
  65709. 801ab6a: 68db ldr r3, [r3, #12]
  65710. 801ab6c: 607b str r3, [r7, #4]
  65711. 801ab6e: 687b ldr r3, [r7, #4]
  65712. 801ab70: 2b00 cmp r3, #0
  65713. 801ab72: d1f1 bne.n 801ab58 <pbuf_free_ooseq+0x20>
  65714. }
  65715. }
  65716. }
  65717. 801ab74: 3708 adds r7, #8
  65718. 801ab76: 46bd mov sp, r7
  65719. 801ab78: bd80 pop {r7, pc}
  65720. 801ab7a: bf00 nop
  65721. 801ab7c: 2402af65 .word 0x2402af65
  65722. 801ab80: 2402af74 .word 0x2402af74
  65723. 0801ab84 <pbuf_free_ooseq_callback>:
  65724. /**
  65725. * Just a callback function for tcpip_callback() that calls pbuf_free_ooseq().
  65726. */
  65727. static void
  65728. pbuf_free_ooseq_callback(void *arg)
  65729. {
  65730. 801ab84: b580 push {r7, lr}
  65731. 801ab86: b082 sub sp, #8
  65732. 801ab88: af00 add r7, sp, #0
  65733. 801ab8a: 6078 str r0, [r7, #4]
  65734. LWIP_UNUSED_ARG(arg);
  65735. pbuf_free_ooseq();
  65736. 801ab8c: f7ff ffd4 bl 801ab38 <pbuf_free_ooseq>
  65737. }
  65738. 801ab90: bf00 nop
  65739. 801ab92: 3708 adds r7, #8
  65740. 801ab94: 46bd mov sp, r7
  65741. 801ab96: bd80 pop {r7, pc}
  65742. 0801ab98 <pbuf_pool_is_empty>:
  65743. #endif /* !NO_SYS */
  65744. /** Queue a call to pbuf_free_ooseq if not already queued. */
  65745. static void
  65746. pbuf_pool_is_empty(void)
  65747. {
  65748. 801ab98: b580 push {r7, lr}
  65749. 801ab9a: b082 sub sp, #8
  65750. 801ab9c: af00 add r7, sp, #0
  65751. #ifndef PBUF_POOL_FREE_OOSEQ_QUEUE_CALL
  65752. SYS_ARCH_SET(pbuf_free_ooseq_pending, 1);
  65753. #else /* PBUF_POOL_FREE_OOSEQ_QUEUE_CALL */
  65754. u8_t queued;
  65755. SYS_ARCH_DECL_PROTECT(old_level);
  65756. SYS_ARCH_PROTECT(old_level);
  65757. 801ab9e: f00c fb47 bl 8027230 <sys_arch_protect>
  65758. 801aba2: 6078 str r0, [r7, #4]
  65759. queued = pbuf_free_ooseq_pending;
  65760. 801aba4: 4b0f ldr r3, [pc, #60] @ (801abe4 <pbuf_pool_is_empty+0x4c>)
  65761. 801aba6: 781b ldrb r3, [r3, #0]
  65762. 801aba8: 70fb strb r3, [r7, #3]
  65763. pbuf_free_ooseq_pending = 1;
  65764. 801abaa: 4b0e ldr r3, [pc, #56] @ (801abe4 <pbuf_pool_is_empty+0x4c>)
  65765. 801abac: 2201 movs r2, #1
  65766. 801abae: 701a strb r2, [r3, #0]
  65767. SYS_ARCH_UNPROTECT(old_level);
  65768. 801abb0: 6878 ldr r0, [r7, #4]
  65769. 801abb2: f00c fb4b bl 802724c <sys_arch_unprotect>
  65770. if (!queued) {
  65771. 801abb6: 78fb ldrb r3, [r7, #3]
  65772. 801abb8: 2b00 cmp r3, #0
  65773. 801abba: d10f bne.n 801abdc <pbuf_pool_is_empty+0x44>
  65774. /* queue a call to pbuf_free_ooseq if not already queued */
  65775. PBUF_POOL_FREE_OOSEQ_QUEUE_CALL();
  65776. 801abbc: 2100 movs r1, #0
  65777. 801abbe: 480a ldr r0, [pc, #40] @ (801abe8 <pbuf_pool_is_empty+0x50>)
  65778. 801abc0: f7fe fdd6 bl 8019770 <tcpip_try_callback>
  65779. 801abc4: 4603 mov r3, r0
  65780. 801abc6: 2b00 cmp r3, #0
  65781. 801abc8: d008 beq.n 801abdc <pbuf_pool_is_empty+0x44>
  65782. 801abca: f00c fb31 bl 8027230 <sys_arch_protect>
  65783. 801abce: 6078 str r0, [r7, #4]
  65784. 801abd0: 4b04 ldr r3, [pc, #16] @ (801abe4 <pbuf_pool_is_empty+0x4c>)
  65785. 801abd2: 2200 movs r2, #0
  65786. 801abd4: 701a strb r2, [r3, #0]
  65787. 801abd6: 6878 ldr r0, [r7, #4]
  65788. 801abd8: f00c fb38 bl 802724c <sys_arch_unprotect>
  65789. }
  65790. #endif /* PBUF_POOL_FREE_OOSEQ_QUEUE_CALL */
  65791. }
  65792. 801abdc: bf00 nop
  65793. 801abde: 3708 adds r7, #8
  65794. 801abe0: 46bd mov sp, r7
  65795. 801abe2: bd80 pop {r7, pc}
  65796. 801abe4: 2402af65 .word 0x2402af65
  65797. 801abe8: 0801ab85 .word 0x0801ab85
  65798. 0801abec <pbuf_init_alloced_pbuf>:
  65799. #endif /* !LWIP_TCP || !TCP_QUEUE_OOSEQ || !PBUF_POOL_FREE_OOSEQ */
  65800. /* Initialize members of struct pbuf after allocation */
  65801. static void
  65802. pbuf_init_alloced_pbuf(struct pbuf *p, void *payload, u16_t tot_len, u16_t len, pbuf_type type, u8_t flags)
  65803. {
  65804. 801abec: b480 push {r7}
  65805. 801abee: b085 sub sp, #20
  65806. 801abf0: af00 add r7, sp, #0
  65807. 801abf2: 60f8 str r0, [r7, #12]
  65808. 801abf4: 60b9 str r1, [r7, #8]
  65809. 801abf6: 4611 mov r1, r2
  65810. 801abf8: 461a mov r2, r3
  65811. 801abfa: 460b mov r3, r1
  65812. 801abfc: 80fb strh r3, [r7, #6]
  65813. 801abfe: 4613 mov r3, r2
  65814. 801ac00: 80bb strh r3, [r7, #4]
  65815. p->next = NULL;
  65816. 801ac02: 68fb ldr r3, [r7, #12]
  65817. 801ac04: 2200 movs r2, #0
  65818. 801ac06: 601a str r2, [r3, #0]
  65819. p->payload = payload;
  65820. 801ac08: 68fb ldr r3, [r7, #12]
  65821. 801ac0a: 68ba ldr r2, [r7, #8]
  65822. 801ac0c: 605a str r2, [r3, #4]
  65823. p->tot_len = tot_len;
  65824. 801ac0e: 68fb ldr r3, [r7, #12]
  65825. 801ac10: 88fa ldrh r2, [r7, #6]
  65826. 801ac12: 811a strh r2, [r3, #8]
  65827. p->len = len;
  65828. 801ac14: 68fb ldr r3, [r7, #12]
  65829. 801ac16: 88ba ldrh r2, [r7, #4]
  65830. 801ac18: 815a strh r2, [r3, #10]
  65831. p->type_internal = (u8_t)type;
  65832. 801ac1a: 8b3b ldrh r3, [r7, #24]
  65833. 801ac1c: b2da uxtb r2, r3
  65834. 801ac1e: 68fb ldr r3, [r7, #12]
  65835. 801ac20: 731a strb r2, [r3, #12]
  65836. p->flags = flags;
  65837. 801ac22: 68fb ldr r3, [r7, #12]
  65838. 801ac24: 7f3a ldrb r2, [r7, #28]
  65839. 801ac26: 735a strb r2, [r3, #13]
  65840. p->ref = 1;
  65841. 801ac28: 68fb ldr r3, [r7, #12]
  65842. 801ac2a: 2201 movs r2, #1
  65843. 801ac2c: 739a strb r2, [r3, #14]
  65844. p->if_idx = NETIF_NO_INDEX;
  65845. 801ac2e: 68fb ldr r3, [r7, #12]
  65846. 801ac30: 2200 movs r2, #0
  65847. 801ac32: 73da strb r2, [r3, #15]
  65848. }
  65849. 801ac34: bf00 nop
  65850. 801ac36: 3714 adds r7, #20
  65851. 801ac38: 46bd mov sp, r7
  65852. 801ac3a: f85d 7b04 ldr.w r7, [sp], #4
  65853. 801ac3e: 4770 bx lr
  65854. 0801ac40 <pbuf_alloc>:
  65855. * @return the allocated pbuf. If multiple pbufs where allocated, this
  65856. * is the first pbuf of a pbuf chain.
  65857. */
  65858. struct pbuf *
  65859. pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
  65860. {
  65861. 801ac40: b580 push {r7, lr}
  65862. 801ac42: b08c sub sp, #48 @ 0x30
  65863. 801ac44: af02 add r7, sp, #8
  65864. 801ac46: 4603 mov r3, r0
  65865. 801ac48: 71fb strb r3, [r7, #7]
  65866. 801ac4a: 460b mov r3, r1
  65867. 801ac4c: 80bb strh r3, [r7, #4]
  65868. 801ac4e: 4613 mov r3, r2
  65869. 801ac50: 807b strh r3, [r7, #2]
  65870. struct pbuf *p;
  65871. u16_t offset = (u16_t)layer;
  65872. 801ac52: 79fb ldrb r3, [r7, #7]
  65873. 801ac54: 847b strh r3, [r7, #34] @ 0x22
  65874. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F")\n", length));
  65875. switch (type) {
  65876. 801ac56: 887b ldrh r3, [r7, #2]
  65877. 801ac58: f5b3 7f20 cmp.w r3, #640 @ 0x280
  65878. 801ac5c: f000 8082 beq.w 801ad64 <pbuf_alloc+0x124>
  65879. 801ac60: f5b3 7f20 cmp.w r3, #640 @ 0x280
  65880. 801ac64: f300 80c9 bgt.w 801adfa <pbuf_alloc+0x1ba>
  65881. 801ac68: f5b3 7fc1 cmp.w r3, #386 @ 0x182
  65882. 801ac6c: d010 beq.n 801ac90 <pbuf_alloc+0x50>
  65883. 801ac6e: f5b3 7fc1 cmp.w r3, #386 @ 0x182
  65884. 801ac72: f300 80c2 bgt.w 801adfa <pbuf_alloc+0x1ba>
  65885. 801ac76: 2b01 cmp r3, #1
  65886. 801ac78: d002 beq.n 801ac80 <pbuf_alloc+0x40>
  65887. 801ac7a: 2b41 cmp r3, #65 @ 0x41
  65888. 801ac7c: f040 80bd bne.w 801adfa <pbuf_alloc+0x1ba>
  65889. case PBUF_REF: /* fall through */
  65890. case PBUF_ROM:
  65891. p = pbuf_alloc_reference(NULL, length, type);
  65892. 801ac80: 887a ldrh r2, [r7, #2]
  65893. 801ac82: 88bb ldrh r3, [r7, #4]
  65894. 801ac84: 4619 mov r1, r3
  65895. 801ac86: 2000 movs r0, #0
  65896. 801ac88: f000 f8d2 bl 801ae30 <pbuf_alloc_reference>
  65897. 801ac8c: 6278 str r0, [r7, #36] @ 0x24
  65898. break;
  65899. 801ac8e: e0be b.n 801ae0e <pbuf_alloc+0x1ce>
  65900. case PBUF_POOL: {
  65901. struct pbuf *q, *last;
  65902. u16_t rem_len; /* remaining length */
  65903. p = NULL;
  65904. 801ac90: 2300 movs r3, #0
  65905. 801ac92: 627b str r3, [r7, #36] @ 0x24
  65906. last = NULL;
  65907. 801ac94: 2300 movs r3, #0
  65908. 801ac96: 61fb str r3, [r7, #28]
  65909. rem_len = length;
  65910. 801ac98: 88bb ldrh r3, [r7, #4]
  65911. 801ac9a: 837b strh r3, [r7, #26]
  65912. do {
  65913. u16_t qlen;
  65914. q = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL);
  65915. 801ac9c: 200c movs r0, #12
  65916. 801ac9e: f7ff fb81 bl 801a3a4 <memp_malloc>
  65917. 801aca2: 6138 str r0, [r7, #16]
  65918. if (q == NULL) {
  65919. 801aca4: 693b ldr r3, [r7, #16]
  65920. 801aca6: 2b00 cmp r3, #0
  65921. 801aca8: d109 bne.n 801acbe <pbuf_alloc+0x7e>
  65922. PBUF_POOL_IS_EMPTY();
  65923. 801acaa: f7ff ff75 bl 801ab98 <pbuf_pool_is_empty>
  65924. /* free chain so far allocated */
  65925. if (p) {
  65926. 801acae: 6a7b ldr r3, [r7, #36] @ 0x24
  65927. 801acb0: 2b00 cmp r3, #0
  65928. 801acb2: d002 beq.n 801acba <pbuf_alloc+0x7a>
  65929. pbuf_free(p);
  65930. 801acb4: 6a78 ldr r0, [r7, #36] @ 0x24
  65931. 801acb6: f000 fad9 bl 801b26c <pbuf_free>
  65932. }
  65933. /* bail out unsuccessfully */
  65934. return NULL;
  65935. 801acba: 2300 movs r3, #0
  65936. 801acbc: e0a8 b.n 801ae10 <pbuf_alloc+0x1d0>
  65937. }
  65938. qlen = LWIP_MIN(rem_len, (u16_t)(PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)));
  65939. 801acbe: 8c7b ldrh r3, [r7, #34] @ 0x22
  65940. 801acc0: 3303 adds r3, #3
  65941. 801acc2: b29b uxth r3, r3
  65942. 801acc4: f023 0303 bic.w r3, r3, #3
  65943. 801acc8: b29a uxth r2, r3
  65944. 801acca: f240 53ec movw r3, #1516 @ 0x5ec
  65945. 801acce: 1a9b subs r3, r3, r2
  65946. 801acd0: b29b uxth r3, r3
  65947. 801acd2: 8b7a ldrh r2, [r7, #26]
  65948. 801acd4: 4293 cmp r3, r2
  65949. 801acd6: bf28 it cs
  65950. 801acd8: 4613 movcs r3, r2
  65951. 801acda: 81fb strh r3, [r7, #14]
  65952. pbuf_init_alloced_pbuf(q, LWIP_MEM_ALIGN((void *)((u8_t *)q + SIZEOF_STRUCT_PBUF + offset)),
  65953. 801acdc: 8c7b ldrh r3, [r7, #34] @ 0x22
  65954. 801acde: 3310 adds r3, #16
  65955. 801ace0: 693a ldr r2, [r7, #16]
  65956. 801ace2: 4413 add r3, r2
  65957. 801ace4: 3303 adds r3, #3
  65958. 801ace6: f023 0303 bic.w r3, r3, #3
  65959. 801acea: 4618 mov r0, r3
  65960. 801acec: 89f9 ldrh r1, [r7, #14]
  65961. 801acee: 8b7a ldrh r2, [r7, #26]
  65962. 801acf0: 2300 movs r3, #0
  65963. 801acf2: 9301 str r3, [sp, #4]
  65964. 801acf4: 887b ldrh r3, [r7, #2]
  65965. 801acf6: 9300 str r3, [sp, #0]
  65966. 801acf8: 460b mov r3, r1
  65967. 801acfa: 4601 mov r1, r0
  65968. 801acfc: 6938 ldr r0, [r7, #16]
  65969. 801acfe: f7ff ff75 bl 801abec <pbuf_init_alloced_pbuf>
  65970. rem_len, qlen, type, 0);
  65971. LWIP_ASSERT("pbuf_alloc: pbuf q->payload properly aligned",
  65972. 801ad02: 693b ldr r3, [r7, #16]
  65973. 801ad04: 685b ldr r3, [r3, #4]
  65974. 801ad06: f003 0303 and.w r3, r3, #3
  65975. 801ad0a: 2b00 cmp r3, #0
  65976. 801ad0c: d006 beq.n 801ad1c <pbuf_alloc+0xdc>
  65977. 801ad0e: 4b42 ldr r3, [pc, #264] @ (801ae18 <pbuf_alloc+0x1d8>)
  65978. 801ad10: f44f 7280 mov.w r2, #256 @ 0x100
  65979. 801ad14: 4941 ldr r1, [pc, #260] @ (801ae1c <pbuf_alloc+0x1dc>)
  65980. 801ad16: 4842 ldr r0, [pc, #264] @ (801ae20 <pbuf_alloc+0x1e0>)
  65981. 801ad18: f00f fd20 bl 802a75c <iprintf>
  65982. ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0);
  65983. LWIP_ASSERT("PBUF_POOL_BUFSIZE must be bigger than MEM_ALIGNMENT",
  65984. 801ad1c: 8c7b ldrh r3, [r7, #34] @ 0x22
  65985. 801ad1e: 3303 adds r3, #3
  65986. 801ad20: f023 0303 bic.w r3, r3, #3
  65987. 801ad24: f240 52ec movw r2, #1516 @ 0x5ec
  65988. 801ad28: 4293 cmp r3, r2
  65989. 801ad2a: d106 bne.n 801ad3a <pbuf_alloc+0xfa>
  65990. 801ad2c: 4b3a ldr r3, [pc, #232] @ (801ae18 <pbuf_alloc+0x1d8>)
  65991. 801ad2e: f44f 7281 mov.w r2, #258 @ 0x102
  65992. 801ad32: 493c ldr r1, [pc, #240] @ (801ae24 <pbuf_alloc+0x1e4>)
  65993. 801ad34: 483a ldr r0, [pc, #232] @ (801ae20 <pbuf_alloc+0x1e0>)
  65994. 801ad36: f00f fd11 bl 802a75c <iprintf>
  65995. (PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)) > 0 );
  65996. if (p == NULL) {
  65997. 801ad3a: 6a7b ldr r3, [r7, #36] @ 0x24
  65998. 801ad3c: 2b00 cmp r3, #0
  65999. 801ad3e: d102 bne.n 801ad46 <pbuf_alloc+0x106>
  66000. /* allocated head of pbuf chain (into p) */
  66001. p = q;
  66002. 801ad40: 693b ldr r3, [r7, #16]
  66003. 801ad42: 627b str r3, [r7, #36] @ 0x24
  66004. 801ad44: e002 b.n 801ad4c <pbuf_alloc+0x10c>
  66005. } else {
  66006. /* make previous pbuf point to this pbuf */
  66007. last->next = q;
  66008. 801ad46: 69fb ldr r3, [r7, #28]
  66009. 801ad48: 693a ldr r2, [r7, #16]
  66010. 801ad4a: 601a str r2, [r3, #0]
  66011. }
  66012. last = q;
  66013. 801ad4c: 693b ldr r3, [r7, #16]
  66014. 801ad4e: 61fb str r3, [r7, #28]
  66015. rem_len = (u16_t)(rem_len - qlen);
  66016. 801ad50: 8b7a ldrh r2, [r7, #26]
  66017. 801ad52: 89fb ldrh r3, [r7, #14]
  66018. 801ad54: 1ad3 subs r3, r2, r3
  66019. 801ad56: 837b strh r3, [r7, #26]
  66020. offset = 0;
  66021. 801ad58: 2300 movs r3, #0
  66022. 801ad5a: 847b strh r3, [r7, #34] @ 0x22
  66023. } while (rem_len > 0);
  66024. 801ad5c: 8b7b ldrh r3, [r7, #26]
  66025. 801ad5e: 2b00 cmp r3, #0
  66026. 801ad60: d19c bne.n 801ac9c <pbuf_alloc+0x5c>
  66027. break;
  66028. 801ad62: e054 b.n 801ae0e <pbuf_alloc+0x1ce>
  66029. }
  66030. case PBUF_RAM: {
  66031. u16_t payload_len = (u16_t)(LWIP_MEM_ALIGN_SIZE(offset) + LWIP_MEM_ALIGN_SIZE(length));
  66032. 801ad64: 8c7b ldrh r3, [r7, #34] @ 0x22
  66033. 801ad66: 3303 adds r3, #3
  66034. 801ad68: b29b uxth r3, r3
  66035. 801ad6a: f023 0303 bic.w r3, r3, #3
  66036. 801ad6e: b29a uxth r2, r3
  66037. 801ad70: 88bb ldrh r3, [r7, #4]
  66038. 801ad72: 3303 adds r3, #3
  66039. 801ad74: b29b uxth r3, r3
  66040. 801ad76: f023 0303 bic.w r3, r3, #3
  66041. 801ad7a: b29b uxth r3, r3
  66042. 801ad7c: 4413 add r3, r2
  66043. 801ad7e: 833b strh r3, [r7, #24]
  66044. mem_size_t alloc_len = (mem_size_t)(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF) + payload_len);
  66045. 801ad80: 8b3b ldrh r3, [r7, #24]
  66046. 801ad82: 3310 adds r3, #16
  66047. 801ad84: 617b str r3, [r7, #20]
  66048. /* bug #50040: Check for integer overflow when calculating alloc_len */
  66049. if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) ||
  66050. 801ad86: 8b3a ldrh r2, [r7, #24]
  66051. 801ad88: 88bb ldrh r3, [r7, #4]
  66052. 801ad8a: 3303 adds r3, #3
  66053. 801ad8c: f023 0303 bic.w r3, r3, #3
  66054. 801ad90: 429a cmp r2, r3
  66055. 801ad92: d306 bcc.n 801ada2 <pbuf_alloc+0x162>
  66056. (alloc_len < LWIP_MEM_ALIGN_SIZE(length))) {
  66057. 801ad94: 88bb ldrh r3, [r7, #4]
  66058. 801ad96: 3303 adds r3, #3
  66059. 801ad98: f023 0303 bic.w r3, r3, #3
  66060. if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) ||
  66061. 801ad9c: 697a ldr r2, [r7, #20]
  66062. 801ad9e: 429a cmp r2, r3
  66063. 801ada0: d201 bcs.n 801ada6 <pbuf_alloc+0x166>
  66064. return NULL;
  66065. 801ada2: 2300 movs r3, #0
  66066. 801ada4: e034 b.n 801ae10 <pbuf_alloc+0x1d0>
  66067. }
  66068. /* If pbuf is to be allocated in RAM, allocate memory for it. */
  66069. p = (struct pbuf *)mem_malloc(alloc_len);
  66070. 801ada6: 6978 ldr r0, [r7, #20]
  66071. 801ada8: f7ff f960 bl 801a06c <mem_malloc>
  66072. 801adac: 6278 str r0, [r7, #36] @ 0x24
  66073. if (p == NULL) {
  66074. 801adae: 6a7b ldr r3, [r7, #36] @ 0x24
  66075. 801adb0: 2b00 cmp r3, #0
  66076. 801adb2: d101 bne.n 801adb8 <pbuf_alloc+0x178>
  66077. return NULL;
  66078. 801adb4: 2300 movs r3, #0
  66079. 801adb6: e02b b.n 801ae10 <pbuf_alloc+0x1d0>
  66080. }
  66081. pbuf_init_alloced_pbuf(p, LWIP_MEM_ALIGN((void *)((u8_t *)p + SIZEOF_STRUCT_PBUF + offset)),
  66082. 801adb8: 8c7b ldrh r3, [r7, #34] @ 0x22
  66083. 801adba: 3310 adds r3, #16
  66084. 801adbc: 6a7a ldr r2, [r7, #36] @ 0x24
  66085. 801adbe: 4413 add r3, r2
  66086. 801adc0: 3303 adds r3, #3
  66087. 801adc2: f023 0303 bic.w r3, r3, #3
  66088. 801adc6: 4618 mov r0, r3
  66089. 801adc8: 88b9 ldrh r1, [r7, #4]
  66090. 801adca: 88ba ldrh r2, [r7, #4]
  66091. 801adcc: 2300 movs r3, #0
  66092. 801adce: 9301 str r3, [sp, #4]
  66093. 801add0: 887b ldrh r3, [r7, #2]
  66094. 801add2: 9300 str r3, [sp, #0]
  66095. 801add4: 460b mov r3, r1
  66096. 801add6: 4601 mov r1, r0
  66097. 801add8: 6a78 ldr r0, [r7, #36] @ 0x24
  66098. 801adda: f7ff ff07 bl 801abec <pbuf_init_alloced_pbuf>
  66099. length, length, type, 0);
  66100. LWIP_ASSERT("pbuf_alloc: pbuf->payload properly aligned",
  66101. 801adde: 6a7b ldr r3, [r7, #36] @ 0x24
  66102. 801ade0: 685b ldr r3, [r3, #4]
  66103. 801ade2: f003 0303 and.w r3, r3, #3
  66104. 801ade6: 2b00 cmp r3, #0
  66105. 801ade8: d010 beq.n 801ae0c <pbuf_alloc+0x1cc>
  66106. 801adea: 4b0b ldr r3, [pc, #44] @ (801ae18 <pbuf_alloc+0x1d8>)
  66107. 801adec: f44f 7291 mov.w r2, #290 @ 0x122
  66108. 801adf0: 490d ldr r1, [pc, #52] @ (801ae28 <pbuf_alloc+0x1e8>)
  66109. 801adf2: 480b ldr r0, [pc, #44] @ (801ae20 <pbuf_alloc+0x1e0>)
  66110. 801adf4: f00f fcb2 bl 802a75c <iprintf>
  66111. ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0);
  66112. break;
  66113. 801adf8: e008 b.n 801ae0c <pbuf_alloc+0x1cc>
  66114. }
  66115. default:
  66116. LWIP_ASSERT("pbuf_alloc: erroneous type", 0);
  66117. 801adfa: 4b07 ldr r3, [pc, #28] @ (801ae18 <pbuf_alloc+0x1d8>)
  66118. 801adfc: f240 1227 movw r2, #295 @ 0x127
  66119. 801ae00: 490a ldr r1, [pc, #40] @ (801ae2c <pbuf_alloc+0x1ec>)
  66120. 801ae02: 4807 ldr r0, [pc, #28] @ (801ae20 <pbuf_alloc+0x1e0>)
  66121. 801ae04: f00f fcaa bl 802a75c <iprintf>
  66122. return NULL;
  66123. 801ae08: 2300 movs r3, #0
  66124. 801ae0a: e001 b.n 801ae10 <pbuf_alloc+0x1d0>
  66125. break;
  66126. 801ae0c: bf00 nop
  66127. }
  66128. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F") == %p\n", length, (void *)p));
  66129. return p;
  66130. 801ae0e: 6a7b ldr r3, [r7, #36] @ 0x24
  66131. }
  66132. 801ae10: 4618 mov r0, r3
  66133. 801ae12: 3728 adds r7, #40 @ 0x28
  66134. 801ae14: 46bd mov sp, r7
  66135. 801ae16: bd80 pop {r7, pc}
  66136. 801ae18: 0802ef8c .word 0x0802ef8c
  66137. 801ae1c: 0802efbc .word 0x0802efbc
  66138. 801ae20: 0802efec .word 0x0802efec
  66139. 801ae24: 0802f014 .word 0x0802f014
  66140. 801ae28: 0802f048 .word 0x0802f048
  66141. 801ae2c: 0802f074 .word 0x0802f074
  66142. 0801ae30 <pbuf_alloc_reference>:
  66143. *
  66144. * @return the allocated pbuf.
  66145. */
  66146. struct pbuf *
  66147. pbuf_alloc_reference(void *payload, u16_t length, pbuf_type type)
  66148. {
  66149. 801ae30: b580 push {r7, lr}
  66150. 801ae32: b086 sub sp, #24
  66151. 801ae34: af02 add r7, sp, #8
  66152. 801ae36: 6078 str r0, [r7, #4]
  66153. 801ae38: 460b mov r3, r1
  66154. 801ae3a: 807b strh r3, [r7, #2]
  66155. 801ae3c: 4613 mov r3, r2
  66156. 801ae3e: 803b strh r3, [r7, #0]
  66157. struct pbuf *p;
  66158. LWIP_ASSERT("invalid pbuf_type", (type == PBUF_REF) || (type == PBUF_ROM));
  66159. 801ae40: 883b ldrh r3, [r7, #0]
  66160. 801ae42: 2b41 cmp r3, #65 @ 0x41
  66161. 801ae44: d009 beq.n 801ae5a <pbuf_alloc_reference+0x2a>
  66162. 801ae46: 883b ldrh r3, [r7, #0]
  66163. 801ae48: 2b01 cmp r3, #1
  66164. 801ae4a: d006 beq.n 801ae5a <pbuf_alloc_reference+0x2a>
  66165. 801ae4c: 4b0f ldr r3, [pc, #60] @ (801ae8c <pbuf_alloc_reference+0x5c>)
  66166. 801ae4e: f44f 72a5 mov.w r2, #330 @ 0x14a
  66167. 801ae52: 490f ldr r1, [pc, #60] @ (801ae90 <pbuf_alloc_reference+0x60>)
  66168. 801ae54: 480f ldr r0, [pc, #60] @ (801ae94 <pbuf_alloc_reference+0x64>)
  66169. 801ae56: f00f fc81 bl 802a75c <iprintf>
  66170. /* only allocate memory for the pbuf structure */
  66171. p = (struct pbuf *)memp_malloc(MEMP_PBUF);
  66172. 801ae5a: 200b movs r0, #11
  66173. 801ae5c: f7ff faa2 bl 801a3a4 <memp_malloc>
  66174. 801ae60: 60f8 str r0, [r7, #12]
  66175. if (p == NULL) {
  66176. 801ae62: 68fb ldr r3, [r7, #12]
  66177. 801ae64: 2b00 cmp r3, #0
  66178. 801ae66: d101 bne.n 801ae6c <pbuf_alloc_reference+0x3c>
  66179. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  66180. ("pbuf_alloc_reference: Could not allocate MEMP_PBUF for PBUF_%s.\n",
  66181. (type == PBUF_ROM) ? "ROM" : "REF"));
  66182. return NULL;
  66183. 801ae68: 2300 movs r3, #0
  66184. 801ae6a: e00b b.n 801ae84 <pbuf_alloc_reference+0x54>
  66185. }
  66186. pbuf_init_alloced_pbuf(p, payload, length, length, type, 0);
  66187. 801ae6c: 8879 ldrh r1, [r7, #2]
  66188. 801ae6e: 887a ldrh r2, [r7, #2]
  66189. 801ae70: 2300 movs r3, #0
  66190. 801ae72: 9301 str r3, [sp, #4]
  66191. 801ae74: 883b ldrh r3, [r7, #0]
  66192. 801ae76: 9300 str r3, [sp, #0]
  66193. 801ae78: 460b mov r3, r1
  66194. 801ae7a: 6879 ldr r1, [r7, #4]
  66195. 801ae7c: 68f8 ldr r0, [r7, #12]
  66196. 801ae7e: f7ff feb5 bl 801abec <pbuf_init_alloced_pbuf>
  66197. return p;
  66198. 801ae82: 68fb ldr r3, [r7, #12]
  66199. }
  66200. 801ae84: 4618 mov r0, r3
  66201. 801ae86: 3710 adds r7, #16
  66202. 801ae88: 46bd mov sp, r7
  66203. 801ae8a: bd80 pop {r7, pc}
  66204. 801ae8c: 0802ef8c .word 0x0802ef8c
  66205. 801ae90: 0802f090 .word 0x0802f090
  66206. 801ae94: 0802efec .word 0x0802efec
  66207. 0801ae98 <pbuf_alloced_custom>:
  66208. * big enough to hold 'length' plus the header size
  66209. */
  66210. struct pbuf *
  66211. pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, struct pbuf_custom *p,
  66212. void *payload_mem, u16_t payload_mem_len)
  66213. {
  66214. 801ae98: b580 push {r7, lr}
  66215. 801ae9a: b088 sub sp, #32
  66216. 801ae9c: af02 add r7, sp, #8
  66217. 801ae9e: 607b str r3, [r7, #4]
  66218. 801aea0: 4603 mov r3, r0
  66219. 801aea2: 73fb strb r3, [r7, #15]
  66220. 801aea4: 460b mov r3, r1
  66221. 801aea6: 81bb strh r3, [r7, #12]
  66222. 801aea8: 4613 mov r3, r2
  66223. 801aeaa: 817b strh r3, [r7, #10]
  66224. u16_t offset = (u16_t)l;
  66225. 801aeac: 7bfb ldrb r3, [r7, #15]
  66226. 801aeae: 827b strh r3, [r7, #18]
  66227. void *payload;
  66228. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloced_custom(length=%"U16_F")\n", length));
  66229. if (LWIP_MEM_ALIGN_SIZE(offset) + length > payload_mem_len) {
  66230. 801aeb0: 8a7b ldrh r3, [r7, #18]
  66231. 801aeb2: 3303 adds r3, #3
  66232. 801aeb4: f023 0203 bic.w r2, r3, #3
  66233. 801aeb8: 89bb ldrh r3, [r7, #12]
  66234. 801aeba: 441a add r2, r3
  66235. 801aebc: 8cbb ldrh r3, [r7, #36] @ 0x24
  66236. 801aebe: 429a cmp r2, r3
  66237. 801aec0: d901 bls.n 801aec6 <pbuf_alloced_custom+0x2e>
  66238. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_WARNING, ("pbuf_alloced_custom(length=%"U16_F") buffer too short\n", length));
  66239. return NULL;
  66240. 801aec2: 2300 movs r3, #0
  66241. 801aec4: e018 b.n 801aef8 <pbuf_alloced_custom+0x60>
  66242. }
  66243. if (payload_mem != NULL) {
  66244. 801aec6: 6a3b ldr r3, [r7, #32]
  66245. 801aec8: 2b00 cmp r3, #0
  66246. 801aeca: d007 beq.n 801aedc <pbuf_alloced_custom+0x44>
  66247. payload = (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset);
  66248. 801aecc: 8a7b ldrh r3, [r7, #18]
  66249. 801aece: 3303 adds r3, #3
  66250. 801aed0: f023 0303 bic.w r3, r3, #3
  66251. 801aed4: 6a3a ldr r2, [r7, #32]
  66252. 801aed6: 4413 add r3, r2
  66253. 801aed8: 617b str r3, [r7, #20]
  66254. 801aeda: e001 b.n 801aee0 <pbuf_alloced_custom+0x48>
  66255. } else {
  66256. payload = NULL;
  66257. 801aedc: 2300 movs r3, #0
  66258. 801aede: 617b str r3, [r7, #20]
  66259. }
  66260. pbuf_init_alloced_pbuf(&p->pbuf, payload, length, length, type, PBUF_FLAG_IS_CUSTOM);
  66261. 801aee0: 6878 ldr r0, [r7, #4]
  66262. 801aee2: 89b9 ldrh r1, [r7, #12]
  66263. 801aee4: 89ba ldrh r2, [r7, #12]
  66264. 801aee6: 2302 movs r3, #2
  66265. 801aee8: 9301 str r3, [sp, #4]
  66266. 801aeea: 897b ldrh r3, [r7, #10]
  66267. 801aeec: 9300 str r3, [sp, #0]
  66268. 801aeee: 460b mov r3, r1
  66269. 801aef0: 6979 ldr r1, [r7, #20]
  66270. 801aef2: f7ff fe7b bl 801abec <pbuf_init_alloced_pbuf>
  66271. return &p->pbuf;
  66272. 801aef6: 687b ldr r3, [r7, #4]
  66273. }
  66274. 801aef8: 4618 mov r0, r3
  66275. 801aefa: 3718 adds r7, #24
  66276. 801aefc: 46bd mov sp, r7
  66277. 801aefe: bd80 pop {r7, pc}
  66278. 0801af00 <pbuf_realloc>:
  66279. *
  66280. * @note Despite its name, pbuf_realloc cannot grow the size of a pbuf (chain).
  66281. */
  66282. void
  66283. pbuf_realloc(struct pbuf *p, u16_t new_len)
  66284. {
  66285. 801af00: b580 push {r7, lr}
  66286. 801af02: b084 sub sp, #16
  66287. 801af04: af00 add r7, sp, #0
  66288. 801af06: 6078 str r0, [r7, #4]
  66289. 801af08: 460b mov r3, r1
  66290. 801af0a: 807b strh r3, [r7, #2]
  66291. struct pbuf *q;
  66292. u16_t rem_len; /* remaining length */
  66293. u16_t shrink;
  66294. LWIP_ASSERT("pbuf_realloc: p != NULL", p != NULL);
  66295. 801af0c: 687b ldr r3, [r7, #4]
  66296. 801af0e: 2b00 cmp r3, #0
  66297. 801af10: d106 bne.n 801af20 <pbuf_realloc+0x20>
  66298. 801af12: 4b39 ldr r3, [pc, #228] @ (801aff8 <pbuf_realloc+0xf8>)
  66299. 801af14: f44f 72cc mov.w r2, #408 @ 0x198
  66300. 801af18: 4938 ldr r1, [pc, #224] @ (801affc <pbuf_realloc+0xfc>)
  66301. 801af1a: 4839 ldr r0, [pc, #228] @ (801b000 <pbuf_realloc+0x100>)
  66302. 801af1c: f00f fc1e bl 802a75c <iprintf>
  66303. /* desired length larger than current length? */
  66304. if (new_len >= p->tot_len) {
  66305. 801af20: 687b ldr r3, [r7, #4]
  66306. 801af22: 891b ldrh r3, [r3, #8]
  66307. 801af24: 887a ldrh r2, [r7, #2]
  66308. 801af26: 429a cmp r2, r3
  66309. 801af28: d261 bcs.n 801afee <pbuf_realloc+0xee>
  66310. return;
  66311. }
  66312. /* the pbuf chain grows by (new_len - p->tot_len) bytes
  66313. * (which may be negative in case of shrinking) */
  66314. shrink = (u16_t)(p->tot_len - new_len);
  66315. 801af2a: 687b ldr r3, [r7, #4]
  66316. 801af2c: 891a ldrh r2, [r3, #8]
  66317. 801af2e: 887b ldrh r3, [r7, #2]
  66318. 801af30: 1ad3 subs r3, r2, r3
  66319. 801af32: 813b strh r3, [r7, #8]
  66320. /* first, step over any pbufs that should remain in the chain */
  66321. rem_len = new_len;
  66322. 801af34: 887b ldrh r3, [r7, #2]
  66323. 801af36: 817b strh r3, [r7, #10]
  66324. q = p;
  66325. 801af38: 687b ldr r3, [r7, #4]
  66326. 801af3a: 60fb str r3, [r7, #12]
  66327. /* should this pbuf be kept? */
  66328. while (rem_len > q->len) {
  66329. 801af3c: e018 b.n 801af70 <pbuf_realloc+0x70>
  66330. /* decrease remaining length by pbuf length */
  66331. rem_len = (u16_t)(rem_len - q->len);
  66332. 801af3e: 68fb ldr r3, [r7, #12]
  66333. 801af40: 895b ldrh r3, [r3, #10]
  66334. 801af42: 897a ldrh r2, [r7, #10]
  66335. 801af44: 1ad3 subs r3, r2, r3
  66336. 801af46: 817b strh r3, [r7, #10]
  66337. /* decrease total length indicator */
  66338. q->tot_len = (u16_t)(q->tot_len - shrink);
  66339. 801af48: 68fb ldr r3, [r7, #12]
  66340. 801af4a: 891a ldrh r2, [r3, #8]
  66341. 801af4c: 893b ldrh r3, [r7, #8]
  66342. 801af4e: 1ad3 subs r3, r2, r3
  66343. 801af50: b29a uxth r2, r3
  66344. 801af52: 68fb ldr r3, [r7, #12]
  66345. 801af54: 811a strh r2, [r3, #8]
  66346. /* proceed to next pbuf in chain */
  66347. q = q->next;
  66348. 801af56: 68fb ldr r3, [r7, #12]
  66349. 801af58: 681b ldr r3, [r3, #0]
  66350. 801af5a: 60fb str r3, [r7, #12]
  66351. LWIP_ASSERT("pbuf_realloc: q != NULL", q != NULL);
  66352. 801af5c: 68fb ldr r3, [r7, #12]
  66353. 801af5e: 2b00 cmp r3, #0
  66354. 801af60: d106 bne.n 801af70 <pbuf_realloc+0x70>
  66355. 801af62: 4b25 ldr r3, [pc, #148] @ (801aff8 <pbuf_realloc+0xf8>)
  66356. 801af64: f240 12af movw r2, #431 @ 0x1af
  66357. 801af68: 4926 ldr r1, [pc, #152] @ (801b004 <pbuf_realloc+0x104>)
  66358. 801af6a: 4825 ldr r0, [pc, #148] @ (801b000 <pbuf_realloc+0x100>)
  66359. 801af6c: f00f fbf6 bl 802a75c <iprintf>
  66360. while (rem_len > q->len) {
  66361. 801af70: 68fb ldr r3, [r7, #12]
  66362. 801af72: 895b ldrh r3, [r3, #10]
  66363. 801af74: 897a ldrh r2, [r7, #10]
  66364. 801af76: 429a cmp r2, r3
  66365. 801af78: d8e1 bhi.n 801af3e <pbuf_realloc+0x3e>
  66366. /* we have now reached the new last pbuf (in q) */
  66367. /* rem_len == desired length for pbuf q */
  66368. /* shrink allocated memory for PBUF_RAM */
  66369. /* (other types merely adjust their length fields */
  66370. if (pbuf_match_allocsrc(q, PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP) && (rem_len != q->len)
  66371. 801af7a: 68fb ldr r3, [r7, #12]
  66372. 801af7c: 7b1b ldrb r3, [r3, #12]
  66373. 801af7e: f003 030f and.w r3, r3, #15
  66374. 801af82: 2b00 cmp r3, #0
  66375. 801af84: d11f bne.n 801afc6 <pbuf_realloc+0xc6>
  66376. 801af86: 68fb ldr r3, [r7, #12]
  66377. 801af88: 895b ldrh r3, [r3, #10]
  66378. 801af8a: 897a ldrh r2, [r7, #10]
  66379. 801af8c: 429a cmp r2, r3
  66380. 801af8e: d01a beq.n 801afc6 <pbuf_realloc+0xc6>
  66381. #if LWIP_SUPPORT_CUSTOM_PBUF
  66382. && ((q->flags & PBUF_FLAG_IS_CUSTOM) == 0)
  66383. 801af90: 68fb ldr r3, [r7, #12]
  66384. 801af92: 7b5b ldrb r3, [r3, #13]
  66385. 801af94: f003 0302 and.w r3, r3, #2
  66386. 801af98: 2b00 cmp r3, #0
  66387. 801af9a: d114 bne.n 801afc6 <pbuf_realloc+0xc6>
  66388. #endif /* LWIP_SUPPORT_CUSTOM_PBUF */
  66389. ) {
  66390. /* reallocate and adjust the length of the pbuf that will be split */
  66391. q = (struct pbuf *)mem_trim(q, (mem_size_t)(((u8_t *)q->payload - (u8_t *)q) + rem_len));
  66392. 801af9c: 68fb ldr r3, [r7, #12]
  66393. 801af9e: 685a ldr r2, [r3, #4]
  66394. 801afa0: 68fb ldr r3, [r7, #12]
  66395. 801afa2: 1ad2 subs r2, r2, r3
  66396. 801afa4: 897b ldrh r3, [r7, #10]
  66397. 801afa6: 4413 add r3, r2
  66398. 801afa8: 4619 mov r1, r3
  66399. 801afaa: 68f8 ldr r0, [r7, #12]
  66400. 801afac: f7fe ff5c bl 8019e68 <mem_trim>
  66401. 801afb0: 60f8 str r0, [r7, #12]
  66402. LWIP_ASSERT("mem_trim returned q == NULL", q != NULL);
  66403. 801afb2: 68fb ldr r3, [r7, #12]
  66404. 801afb4: 2b00 cmp r3, #0
  66405. 801afb6: d106 bne.n 801afc6 <pbuf_realloc+0xc6>
  66406. 801afb8: 4b0f ldr r3, [pc, #60] @ (801aff8 <pbuf_realloc+0xf8>)
  66407. 801afba: f240 12bd movw r2, #445 @ 0x1bd
  66408. 801afbe: 4912 ldr r1, [pc, #72] @ (801b008 <pbuf_realloc+0x108>)
  66409. 801afc0: 480f ldr r0, [pc, #60] @ (801b000 <pbuf_realloc+0x100>)
  66410. 801afc2: f00f fbcb bl 802a75c <iprintf>
  66411. }
  66412. /* adjust length fields for new last pbuf */
  66413. q->len = rem_len;
  66414. 801afc6: 68fb ldr r3, [r7, #12]
  66415. 801afc8: 897a ldrh r2, [r7, #10]
  66416. 801afca: 815a strh r2, [r3, #10]
  66417. q->tot_len = q->len;
  66418. 801afcc: 68fb ldr r3, [r7, #12]
  66419. 801afce: 895a ldrh r2, [r3, #10]
  66420. 801afd0: 68fb ldr r3, [r7, #12]
  66421. 801afd2: 811a strh r2, [r3, #8]
  66422. /* any remaining pbufs in chain? */
  66423. if (q->next != NULL) {
  66424. 801afd4: 68fb ldr r3, [r7, #12]
  66425. 801afd6: 681b ldr r3, [r3, #0]
  66426. 801afd8: 2b00 cmp r3, #0
  66427. 801afda: d004 beq.n 801afe6 <pbuf_realloc+0xe6>
  66428. /* free remaining pbufs in chain */
  66429. pbuf_free(q->next);
  66430. 801afdc: 68fb ldr r3, [r7, #12]
  66431. 801afde: 681b ldr r3, [r3, #0]
  66432. 801afe0: 4618 mov r0, r3
  66433. 801afe2: f000 f943 bl 801b26c <pbuf_free>
  66434. }
  66435. /* q is last packet in chain */
  66436. q->next = NULL;
  66437. 801afe6: 68fb ldr r3, [r7, #12]
  66438. 801afe8: 2200 movs r2, #0
  66439. 801afea: 601a str r2, [r3, #0]
  66440. 801afec: e000 b.n 801aff0 <pbuf_realloc+0xf0>
  66441. return;
  66442. 801afee: bf00 nop
  66443. }
  66444. 801aff0: 3710 adds r7, #16
  66445. 801aff2: 46bd mov sp, r7
  66446. 801aff4: bd80 pop {r7, pc}
  66447. 801aff6: bf00 nop
  66448. 801aff8: 0802ef8c .word 0x0802ef8c
  66449. 801affc: 0802f0a4 .word 0x0802f0a4
  66450. 801b000: 0802efec .word 0x0802efec
  66451. 801b004: 0802f0bc .word 0x0802f0bc
  66452. 801b008: 0802f0d4 .word 0x0802f0d4
  66453. 0801b00c <pbuf_add_header_impl>:
  66454. * @return non-zero on failure, zero on success.
  66455. *
  66456. */
  66457. static u8_t
  66458. pbuf_add_header_impl(struct pbuf *p, size_t header_size_increment, u8_t force)
  66459. {
  66460. 801b00c: b580 push {r7, lr}
  66461. 801b00e: b086 sub sp, #24
  66462. 801b010: af00 add r7, sp, #0
  66463. 801b012: 60f8 str r0, [r7, #12]
  66464. 801b014: 60b9 str r1, [r7, #8]
  66465. 801b016: 4613 mov r3, r2
  66466. 801b018: 71fb strb r3, [r7, #7]
  66467. u16_t type_internal;
  66468. void *payload;
  66469. u16_t increment_magnitude;
  66470. LWIP_ASSERT("p != NULL", p != NULL);
  66471. 801b01a: 68fb ldr r3, [r7, #12]
  66472. 801b01c: 2b00 cmp r3, #0
  66473. 801b01e: d106 bne.n 801b02e <pbuf_add_header_impl+0x22>
  66474. 801b020: 4b2b ldr r3, [pc, #172] @ (801b0d0 <pbuf_add_header_impl+0xc4>)
  66475. 801b022: f240 12df movw r2, #479 @ 0x1df
  66476. 801b026: 492b ldr r1, [pc, #172] @ (801b0d4 <pbuf_add_header_impl+0xc8>)
  66477. 801b028: 482b ldr r0, [pc, #172] @ (801b0d8 <pbuf_add_header_impl+0xcc>)
  66478. 801b02a: f00f fb97 bl 802a75c <iprintf>
  66479. if ((p == NULL) || (header_size_increment > 0xFFFF)) {
  66480. 801b02e: 68fb ldr r3, [r7, #12]
  66481. 801b030: 2b00 cmp r3, #0
  66482. 801b032: d003 beq.n 801b03c <pbuf_add_header_impl+0x30>
  66483. 801b034: 68bb ldr r3, [r7, #8]
  66484. 801b036: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  66485. 801b03a: d301 bcc.n 801b040 <pbuf_add_header_impl+0x34>
  66486. return 1;
  66487. 801b03c: 2301 movs r3, #1
  66488. 801b03e: e043 b.n 801b0c8 <pbuf_add_header_impl+0xbc>
  66489. }
  66490. if (header_size_increment == 0) {
  66491. 801b040: 68bb ldr r3, [r7, #8]
  66492. 801b042: 2b00 cmp r3, #0
  66493. 801b044: d101 bne.n 801b04a <pbuf_add_header_impl+0x3e>
  66494. return 0;
  66495. 801b046: 2300 movs r3, #0
  66496. 801b048: e03e b.n 801b0c8 <pbuf_add_header_impl+0xbc>
  66497. }
  66498. increment_magnitude = (u16_t)header_size_increment;
  66499. 801b04a: 68bb ldr r3, [r7, #8]
  66500. 801b04c: 827b strh r3, [r7, #18]
  66501. /* Do not allow tot_len to wrap as a result. */
  66502. if ((u16_t)(increment_magnitude + p->tot_len) < increment_magnitude) {
  66503. 801b04e: 68fb ldr r3, [r7, #12]
  66504. 801b050: 891a ldrh r2, [r3, #8]
  66505. 801b052: 8a7b ldrh r3, [r7, #18]
  66506. 801b054: 4413 add r3, r2
  66507. 801b056: b29b uxth r3, r3
  66508. 801b058: 8a7a ldrh r2, [r7, #18]
  66509. 801b05a: 429a cmp r2, r3
  66510. 801b05c: d901 bls.n 801b062 <pbuf_add_header_impl+0x56>
  66511. return 1;
  66512. 801b05e: 2301 movs r3, #1
  66513. 801b060: e032 b.n 801b0c8 <pbuf_add_header_impl+0xbc>
  66514. }
  66515. type_internal = p->type_internal;
  66516. 801b062: 68fb ldr r3, [r7, #12]
  66517. 801b064: 7b1b ldrb r3, [r3, #12]
  66518. 801b066: 823b strh r3, [r7, #16]
  66519. /* pbuf types containing payloads? */
  66520. if (type_internal & PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS) {
  66521. 801b068: 8a3b ldrh r3, [r7, #16]
  66522. 801b06a: f003 0380 and.w r3, r3, #128 @ 0x80
  66523. 801b06e: 2b00 cmp r3, #0
  66524. 801b070: d00c beq.n 801b08c <pbuf_add_header_impl+0x80>
  66525. /* set new payload pointer */
  66526. payload = (u8_t *)p->payload - header_size_increment;
  66527. 801b072: 68fb ldr r3, [r7, #12]
  66528. 801b074: 685a ldr r2, [r3, #4]
  66529. 801b076: 68bb ldr r3, [r7, #8]
  66530. 801b078: 425b negs r3, r3
  66531. 801b07a: 4413 add r3, r2
  66532. 801b07c: 617b str r3, [r7, #20]
  66533. /* boundary check fails? */
  66534. if ((u8_t *)payload < (u8_t *)p + SIZEOF_STRUCT_PBUF) {
  66535. 801b07e: 68fb ldr r3, [r7, #12]
  66536. 801b080: 3310 adds r3, #16
  66537. 801b082: 697a ldr r2, [r7, #20]
  66538. 801b084: 429a cmp r2, r3
  66539. 801b086: d20d bcs.n 801b0a4 <pbuf_add_header_impl+0x98>
  66540. LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE,
  66541. ("pbuf_add_header: failed as %p < %p (not enough space for new header size)\n",
  66542. (void *)payload, (void *)((u8_t *)p + SIZEOF_STRUCT_PBUF)));
  66543. /* bail out unsuccessfully */
  66544. return 1;
  66545. 801b088: 2301 movs r3, #1
  66546. 801b08a: e01d b.n 801b0c8 <pbuf_add_header_impl+0xbc>
  66547. }
  66548. /* pbuf types referring to external payloads? */
  66549. } else {
  66550. /* hide a header in the payload? */
  66551. if (force) {
  66552. 801b08c: 79fb ldrb r3, [r7, #7]
  66553. 801b08e: 2b00 cmp r3, #0
  66554. 801b090: d006 beq.n 801b0a0 <pbuf_add_header_impl+0x94>
  66555. payload = (u8_t *)p->payload - header_size_increment;
  66556. 801b092: 68fb ldr r3, [r7, #12]
  66557. 801b094: 685a ldr r2, [r3, #4]
  66558. 801b096: 68bb ldr r3, [r7, #8]
  66559. 801b098: 425b negs r3, r3
  66560. 801b09a: 4413 add r3, r2
  66561. 801b09c: 617b str r3, [r7, #20]
  66562. 801b09e: e001 b.n 801b0a4 <pbuf_add_header_impl+0x98>
  66563. } else {
  66564. /* cannot expand payload to front (yet!)
  66565. * bail out unsuccessfully */
  66566. return 1;
  66567. 801b0a0: 2301 movs r3, #1
  66568. 801b0a2: e011 b.n 801b0c8 <pbuf_add_header_impl+0xbc>
  66569. }
  66570. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_add_header: old %p new %p (%"U16_F")\n",
  66571. (void *)p->payload, (void *)payload, increment_magnitude));
  66572. /* modify pbuf fields */
  66573. p->payload = payload;
  66574. 801b0a4: 68fb ldr r3, [r7, #12]
  66575. 801b0a6: 697a ldr r2, [r7, #20]
  66576. 801b0a8: 605a str r2, [r3, #4]
  66577. p->len = (u16_t)(p->len + increment_magnitude);
  66578. 801b0aa: 68fb ldr r3, [r7, #12]
  66579. 801b0ac: 895a ldrh r2, [r3, #10]
  66580. 801b0ae: 8a7b ldrh r3, [r7, #18]
  66581. 801b0b0: 4413 add r3, r2
  66582. 801b0b2: b29a uxth r2, r3
  66583. 801b0b4: 68fb ldr r3, [r7, #12]
  66584. 801b0b6: 815a strh r2, [r3, #10]
  66585. p->tot_len = (u16_t)(p->tot_len + increment_magnitude);
  66586. 801b0b8: 68fb ldr r3, [r7, #12]
  66587. 801b0ba: 891a ldrh r2, [r3, #8]
  66588. 801b0bc: 8a7b ldrh r3, [r7, #18]
  66589. 801b0be: 4413 add r3, r2
  66590. 801b0c0: b29a uxth r2, r3
  66591. 801b0c2: 68fb ldr r3, [r7, #12]
  66592. 801b0c4: 811a strh r2, [r3, #8]
  66593. return 0;
  66594. 801b0c6: 2300 movs r3, #0
  66595. }
  66596. 801b0c8: 4618 mov r0, r3
  66597. 801b0ca: 3718 adds r7, #24
  66598. 801b0cc: 46bd mov sp, r7
  66599. 801b0ce: bd80 pop {r7, pc}
  66600. 801b0d0: 0802ef8c .word 0x0802ef8c
  66601. 801b0d4: 0802f0f0 .word 0x0802f0f0
  66602. 801b0d8: 0802efec .word 0x0802efec
  66603. 0801b0dc <pbuf_add_header>:
  66604. * @return non-zero on failure, zero on success.
  66605. *
  66606. */
  66607. u8_t
  66608. pbuf_add_header(struct pbuf *p, size_t header_size_increment)
  66609. {
  66610. 801b0dc: b580 push {r7, lr}
  66611. 801b0de: b082 sub sp, #8
  66612. 801b0e0: af00 add r7, sp, #0
  66613. 801b0e2: 6078 str r0, [r7, #4]
  66614. 801b0e4: 6039 str r1, [r7, #0]
  66615. return pbuf_add_header_impl(p, header_size_increment, 0);
  66616. 801b0e6: 2200 movs r2, #0
  66617. 801b0e8: 6839 ldr r1, [r7, #0]
  66618. 801b0ea: 6878 ldr r0, [r7, #4]
  66619. 801b0ec: f7ff ff8e bl 801b00c <pbuf_add_header_impl>
  66620. 801b0f0: 4603 mov r3, r0
  66621. }
  66622. 801b0f2: 4618 mov r0, r3
  66623. 801b0f4: 3708 adds r7, #8
  66624. 801b0f6: 46bd mov sp, r7
  66625. 801b0f8: bd80 pop {r7, pc}
  66626. ...
  66627. 0801b0fc <pbuf_remove_header>:
  66628. * @return non-zero on failure, zero on success.
  66629. *
  66630. */
  66631. u8_t
  66632. pbuf_remove_header(struct pbuf *p, size_t header_size_decrement)
  66633. {
  66634. 801b0fc: b580 push {r7, lr}
  66635. 801b0fe: b084 sub sp, #16
  66636. 801b100: af00 add r7, sp, #0
  66637. 801b102: 6078 str r0, [r7, #4]
  66638. 801b104: 6039 str r1, [r7, #0]
  66639. void *payload;
  66640. u16_t increment_magnitude;
  66641. LWIP_ASSERT("p != NULL", p != NULL);
  66642. 801b106: 687b ldr r3, [r7, #4]
  66643. 801b108: 2b00 cmp r3, #0
  66644. 801b10a: d106 bne.n 801b11a <pbuf_remove_header+0x1e>
  66645. 801b10c: 4b20 ldr r3, [pc, #128] @ (801b190 <pbuf_remove_header+0x94>)
  66646. 801b10e: f240 224b movw r2, #587 @ 0x24b
  66647. 801b112: 4920 ldr r1, [pc, #128] @ (801b194 <pbuf_remove_header+0x98>)
  66648. 801b114: 4820 ldr r0, [pc, #128] @ (801b198 <pbuf_remove_header+0x9c>)
  66649. 801b116: f00f fb21 bl 802a75c <iprintf>
  66650. if ((p == NULL) || (header_size_decrement > 0xFFFF)) {
  66651. 801b11a: 687b ldr r3, [r7, #4]
  66652. 801b11c: 2b00 cmp r3, #0
  66653. 801b11e: d003 beq.n 801b128 <pbuf_remove_header+0x2c>
  66654. 801b120: 683b ldr r3, [r7, #0]
  66655. 801b122: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  66656. 801b126: d301 bcc.n 801b12c <pbuf_remove_header+0x30>
  66657. return 1;
  66658. 801b128: 2301 movs r3, #1
  66659. 801b12a: e02c b.n 801b186 <pbuf_remove_header+0x8a>
  66660. }
  66661. if (header_size_decrement == 0) {
  66662. 801b12c: 683b ldr r3, [r7, #0]
  66663. 801b12e: 2b00 cmp r3, #0
  66664. 801b130: d101 bne.n 801b136 <pbuf_remove_header+0x3a>
  66665. return 0;
  66666. 801b132: 2300 movs r3, #0
  66667. 801b134: e027 b.n 801b186 <pbuf_remove_header+0x8a>
  66668. }
  66669. increment_magnitude = (u16_t)header_size_decrement;
  66670. 801b136: 683b ldr r3, [r7, #0]
  66671. 801b138: 81fb strh r3, [r7, #14]
  66672. /* Check that we aren't going to move off the end of the pbuf */
  66673. LWIP_ERROR("increment_magnitude <= p->len", (increment_magnitude <= p->len), return 1;);
  66674. 801b13a: 687b ldr r3, [r7, #4]
  66675. 801b13c: 895b ldrh r3, [r3, #10]
  66676. 801b13e: 89fa ldrh r2, [r7, #14]
  66677. 801b140: 429a cmp r2, r3
  66678. 801b142: d908 bls.n 801b156 <pbuf_remove_header+0x5a>
  66679. 801b144: 4b12 ldr r3, [pc, #72] @ (801b190 <pbuf_remove_header+0x94>)
  66680. 801b146: f240 2255 movw r2, #597 @ 0x255
  66681. 801b14a: 4914 ldr r1, [pc, #80] @ (801b19c <pbuf_remove_header+0xa0>)
  66682. 801b14c: 4812 ldr r0, [pc, #72] @ (801b198 <pbuf_remove_header+0x9c>)
  66683. 801b14e: f00f fb05 bl 802a75c <iprintf>
  66684. 801b152: 2301 movs r3, #1
  66685. 801b154: e017 b.n 801b186 <pbuf_remove_header+0x8a>
  66686. /* remember current payload pointer */
  66687. payload = p->payload;
  66688. 801b156: 687b ldr r3, [r7, #4]
  66689. 801b158: 685b ldr r3, [r3, #4]
  66690. 801b15a: 60bb str r3, [r7, #8]
  66691. LWIP_UNUSED_ARG(payload); /* only used in LWIP_DEBUGF below */
  66692. /* increase payload pointer (guarded by length check above) */
  66693. p->payload = (u8_t *)p->payload + header_size_decrement;
  66694. 801b15c: 687b ldr r3, [r7, #4]
  66695. 801b15e: 685a ldr r2, [r3, #4]
  66696. 801b160: 683b ldr r3, [r7, #0]
  66697. 801b162: 441a add r2, r3
  66698. 801b164: 687b ldr r3, [r7, #4]
  66699. 801b166: 605a str r2, [r3, #4]
  66700. /* modify pbuf length fields */
  66701. p->len = (u16_t)(p->len - increment_magnitude);
  66702. 801b168: 687b ldr r3, [r7, #4]
  66703. 801b16a: 895a ldrh r2, [r3, #10]
  66704. 801b16c: 89fb ldrh r3, [r7, #14]
  66705. 801b16e: 1ad3 subs r3, r2, r3
  66706. 801b170: b29a uxth r2, r3
  66707. 801b172: 687b ldr r3, [r7, #4]
  66708. 801b174: 815a strh r2, [r3, #10]
  66709. p->tot_len = (u16_t)(p->tot_len - increment_magnitude);
  66710. 801b176: 687b ldr r3, [r7, #4]
  66711. 801b178: 891a ldrh r2, [r3, #8]
  66712. 801b17a: 89fb ldrh r3, [r7, #14]
  66713. 801b17c: 1ad3 subs r3, r2, r3
  66714. 801b17e: b29a uxth r2, r3
  66715. 801b180: 687b ldr r3, [r7, #4]
  66716. 801b182: 811a strh r2, [r3, #8]
  66717. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_remove_header: old %p new %p (%"U16_F")\n",
  66718. (void *)payload, (void *)p->payload, increment_magnitude));
  66719. return 0;
  66720. 801b184: 2300 movs r3, #0
  66721. }
  66722. 801b186: 4618 mov r0, r3
  66723. 801b188: 3710 adds r7, #16
  66724. 801b18a: 46bd mov sp, r7
  66725. 801b18c: bd80 pop {r7, pc}
  66726. 801b18e: bf00 nop
  66727. 801b190: 0802ef8c .word 0x0802ef8c
  66728. 801b194: 0802f0f0 .word 0x0802f0f0
  66729. 801b198: 0802efec .word 0x0802efec
  66730. 801b19c: 0802f0fc .word 0x0802f0fc
  66731. 0801b1a0 <pbuf_header_impl>:
  66732. static u8_t
  66733. pbuf_header_impl(struct pbuf *p, s16_t header_size_increment, u8_t force)
  66734. {
  66735. 801b1a0: b580 push {r7, lr}
  66736. 801b1a2: b082 sub sp, #8
  66737. 801b1a4: af00 add r7, sp, #0
  66738. 801b1a6: 6078 str r0, [r7, #4]
  66739. 801b1a8: 460b mov r3, r1
  66740. 801b1aa: 807b strh r3, [r7, #2]
  66741. 801b1ac: 4613 mov r3, r2
  66742. 801b1ae: 707b strb r3, [r7, #1]
  66743. if (header_size_increment < 0) {
  66744. 801b1b0: f9b7 3002 ldrsh.w r3, [r7, #2]
  66745. 801b1b4: 2b00 cmp r3, #0
  66746. 801b1b6: da08 bge.n 801b1ca <pbuf_header_impl+0x2a>
  66747. return pbuf_remove_header(p, (size_t) - header_size_increment);
  66748. 801b1b8: f9b7 3002 ldrsh.w r3, [r7, #2]
  66749. 801b1bc: 425b negs r3, r3
  66750. 801b1be: 4619 mov r1, r3
  66751. 801b1c0: 6878 ldr r0, [r7, #4]
  66752. 801b1c2: f7ff ff9b bl 801b0fc <pbuf_remove_header>
  66753. 801b1c6: 4603 mov r3, r0
  66754. 801b1c8: e007 b.n 801b1da <pbuf_header_impl+0x3a>
  66755. } else {
  66756. return pbuf_add_header_impl(p, (size_t)header_size_increment, force);
  66757. 801b1ca: f9b7 3002 ldrsh.w r3, [r7, #2]
  66758. 801b1ce: 787a ldrb r2, [r7, #1]
  66759. 801b1d0: 4619 mov r1, r3
  66760. 801b1d2: 6878 ldr r0, [r7, #4]
  66761. 801b1d4: f7ff ff1a bl 801b00c <pbuf_add_header_impl>
  66762. 801b1d8: 4603 mov r3, r0
  66763. }
  66764. }
  66765. 801b1da: 4618 mov r0, r3
  66766. 801b1dc: 3708 adds r7, #8
  66767. 801b1de: 46bd mov sp, r7
  66768. 801b1e0: bd80 pop {r7, pc}
  66769. 0801b1e2 <pbuf_header_force>:
  66770. * Same as pbuf_header but does not check if 'header_size > 0' is allowed.
  66771. * This is used internally only, to allow PBUF_REF for RX.
  66772. */
  66773. u8_t
  66774. pbuf_header_force(struct pbuf *p, s16_t header_size_increment)
  66775. {
  66776. 801b1e2: b580 push {r7, lr}
  66777. 801b1e4: b082 sub sp, #8
  66778. 801b1e6: af00 add r7, sp, #0
  66779. 801b1e8: 6078 str r0, [r7, #4]
  66780. 801b1ea: 460b mov r3, r1
  66781. 801b1ec: 807b strh r3, [r7, #2]
  66782. return pbuf_header_impl(p, header_size_increment, 1);
  66783. 801b1ee: f9b7 3002 ldrsh.w r3, [r7, #2]
  66784. 801b1f2: 2201 movs r2, #1
  66785. 801b1f4: 4619 mov r1, r3
  66786. 801b1f6: 6878 ldr r0, [r7, #4]
  66787. 801b1f8: f7ff ffd2 bl 801b1a0 <pbuf_header_impl>
  66788. 801b1fc: 4603 mov r3, r0
  66789. }
  66790. 801b1fe: 4618 mov r0, r3
  66791. 801b200: 3708 adds r7, #8
  66792. 801b202: 46bd mov sp, r7
  66793. 801b204: bd80 pop {r7, pc}
  66794. 0801b206 <pbuf_free_header>:
  66795. * takes an u16_t not s16_t!
  66796. * @return the new head pbuf
  66797. */
  66798. struct pbuf *
  66799. pbuf_free_header(struct pbuf *q, u16_t size)
  66800. {
  66801. 801b206: b580 push {r7, lr}
  66802. 801b208: b086 sub sp, #24
  66803. 801b20a: af00 add r7, sp, #0
  66804. 801b20c: 6078 str r0, [r7, #4]
  66805. 801b20e: 460b mov r3, r1
  66806. 801b210: 807b strh r3, [r7, #2]
  66807. struct pbuf *p = q;
  66808. 801b212: 687b ldr r3, [r7, #4]
  66809. 801b214: 617b str r3, [r7, #20]
  66810. u16_t free_left = size;
  66811. 801b216: 887b ldrh r3, [r7, #2]
  66812. 801b218: 827b strh r3, [r7, #18]
  66813. while (free_left && p) {
  66814. 801b21a: e01c b.n 801b256 <pbuf_free_header+0x50>
  66815. if (free_left >= p->len) {
  66816. 801b21c: 697b ldr r3, [r7, #20]
  66817. 801b21e: 895b ldrh r3, [r3, #10]
  66818. 801b220: 8a7a ldrh r2, [r7, #18]
  66819. 801b222: 429a cmp r2, r3
  66820. 801b224: d310 bcc.n 801b248 <pbuf_free_header+0x42>
  66821. struct pbuf *f = p;
  66822. 801b226: 697b ldr r3, [r7, #20]
  66823. 801b228: 60fb str r3, [r7, #12]
  66824. free_left = (u16_t)(free_left - p->len);
  66825. 801b22a: 697b ldr r3, [r7, #20]
  66826. 801b22c: 895b ldrh r3, [r3, #10]
  66827. 801b22e: 8a7a ldrh r2, [r7, #18]
  66828. 801b230: 1ad3 subs r3, r2, r3
  66829. 801b232: 827b strh r3, [r7, #18]
  66830. p = p->next;
  66831. 801b234: 697b ldr r3, [r7, #20]
  66832. 801b236: 681b ldr r3, [r3, #0]
  66833. 801b238: 617b str r3, [r7, #20]
  66834. f->next = 0;
  66835. 801b23a: 68fb ldr r3, [r7, #12]
  66836. 801b23c: 2200 movs r2, #0
  66837. 801b23e: 601a str r2, [r3, #0]
  66838. pbuf_free(f);
  66839. 801b240: 68f8 ldr r0, [r7, #12]
  66840. 801b242: f000 f813 bl 801b26c <pbuf_free>
  66841. 801b246: e006 b.n 801b256 <pbuf_free_header+0x50>
  66842. } else {
  66843. pbuf_remove_header(p, free_left);
  66844. 801b248: 8a7b ldrh r3, [r7, #18]
  66845. 801b24a: 4619 mov r1, r3
  66846. 801b24c: 6978 ldr r0, [r7, #20]
  66847. 801b24e: f7ff ff55 bl 801b0fc <pbuf_remove_header>
  66848. free_left = 0;
  66849. 801b252: 2300 movs r3, #0
  66850. 801b254: 827b strh r3, [r7, #18]
  66851. while (free_left && p) {
  66852. 801b256: 8a7b ldrh r3, [r7, #18]
  66853. 801b258: 2b00 cmp r3, #0
  66854. 801b25a: d002 beq.n 801b262 <pbuf_free_header+0x5c>
  66855. 801b25c: 697b ldr r3, [r7, #20]
  66856. 801b25e: 2b00 cmp r3, #0
  66857. 801b260: d1dc bne.n 801b21c <pbuf_free_header+0x16>
  66858. }
  66859. }
  66860. return p;
  66861. 801b262: 697b ldr r3, [r7, #20]
  66862. }
  66863. 801b264: 4618 mov r0, r3
  66864. 801b266: 3718 adds r7, #24
  66865. 801b268: 46bd mov sp, r7
  66866. 801b26a: bd80 pop {r7, pc}
  66867. 0801b26c <pbuf_free>:
  66868. * 1->1->1 becomes .......
  66869. *
  66870. */
  66871. u8_t
  66872. pbuf_free(struct pbuf *p)
  66873. {
  66874. 801b26c: b580 push {r7, lr}
  66875. 801b26e: b088 sub sp, #32
  66876. 801b270: af00 add r7, sp, #0
  66877. 801b272: 6078 str r0, [r7, #4]
  66878. u8_t alloc_src;
  66879. struct pbuf *q;
  66880. u8_t count;
  66881. if (p == NULL) {
  66882. 801b274: 687b ldr r3, [r7, #4]
  66883. 801b276: 2b00 cmp r3, #0
  66884. 801b278: d10b bne.n 801b292 <pbuf_free+0x26>
  66885. LWIP_ASSERT("p != NULL", p != NULL);
  66886. 801b27a: 687b ldr r3, [r7, #4]
  66887. 801b27c: 2b00 cmp r3, #0
  66888. 801b27e: d106 bne.n 801b28e <pbuf_free+0x22>
  66889. 801b280: 4b3b ldr r3, [pc, #236] @ (801b370 <pbuf_free+0x104>)
  66890. 801b282: f44f 7237 mov.w r2, #732 @ 0x2dc
  66891. 801b286: 493b ldr r1, [pc, #236] @ (801b374 <pbuf_free+0x108>)
  66892. 801b288: 483b ldr r0, [pc, #236] @ (801b378 <pbuf_free+0x10c>)
  66893. 801b28a: f00f fa67 bl 802a75c <iprintf>
  66894. /* if assertions are disabled, proceed with debug output */
  66895. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  66896. ("pbuf_free(p == NULL) was called.\n"));
  66897. return 0;
  66898. 801b28e: 2300 movs r3, #0
  66899. 801b290: e069 b.n 801b366 <pbuf_free+0xfa>
  66900. }
  66901. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free(%p)\n", (void *)p));
  66902. PERF_START;
  66903. count = 0;
  66904. 801b292: 2300 movs r3, #0
  66905. 801b294: 77fb strb r3, [r7, #31]
  66906. /* de-allocate all consecutive pbufs from the head of the chain that
  66907. * obtain a zero reference count after decrementing*/
  66908. while (p != NULL) {
  66909. 801b296: e062 b.n 801b35e <pbuf_free+0xf2>
  66910. LWIP_PBUF_REF_T ref;
  66911. SYS_ARCH_DECL_PROTECT(old_level);
  66912. /* Since decrementing ref cannot be guaranteed to be a single machine operation
  66913. * we must protect it. We put the new ref into a local variable to prevent
  66914. * further protection. */
  66915. SYS_ARCH_PROTECT(old_level);
  66916. 801b298: f00b ffca bl 8027230 <sys_arch_protect>
  66917. 801b29c: 61b8 str r0, [r7, #24]
  66918. /* all pbufs in a chain are referenced at least once */
  66919. LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0);
  66920. 801b29e: 687b ldr r3, [r7, #4]
  66921. 801b2a0: 7b9b ldrb r3, [r3, #14]
  66922. 801b2a2: 2b00 cmp r3, #0
  66923. 801b2a4: d106 bne.n 801b2b4 <pbuf_free+0x48>
  66924. 801b2a6: 4b32 ldr r3, [pc, #200] @ (801b370 <pbuf_free+0x104>)
  66925. 801b2a8: f240 22f1 movw r2, #753 @ 0x2f1
  66926. 801b2ac: 4933 ldr r1, [pc, #204] @ (801b37c <pbuf_free+0x110>)
  66927. 801b2ae: 4832 ldr r0, [pc, #200] @ (801b378 <pbuf_free+0x10c>)
  66928. 801b2b0: f00f fa54 bl 802a75c <iprintf>
  66929. /* decrease reference count (number of pointers to pbuf) */
  66930. ref = --(p->ref);
  66931. 801b2b4: 687b ldr r3, [r7, #4]
  66932. 801b2b6: 7b9b ldrb r3, [r3, #14]
  66933. 801b2b8: 3b01 subs r3, #1
  66934. 801b2ba: b2da uxtb r2, r3
  66935. 801b2bc: 687b ldr r3, [r7, #4]
  66936. 801b2be: 739a strb r2, [r3, #14]
  66937. 801b2c0: 687b ldr r3, [r7, #4]
  66938. 801b2c2: 7b9b ldrb r3, [r3, #14]
  66939. 801b2c4: 75fb strb r3, [r7, #23]
  66940. SYS_ARCH_UNPROTECT(old_level);
  66941. 801b2c6: 69b8 ldr r0, [r7, #24]
  66942. 801b2c8: f00b ffc0 bl 802724c <sys_arch_unprotect>
  66943. /* this pbuf is no longer referenced to? */
  66944. if (ref == 0) {
  66945. 801b2cc: 7dfb ldrb r3, [r7, #23]
  66946. 801b2ce: 2b00 cmp r3, #0
  66947. 801b2d0: d143 bne.n 801b35a <pbuf_free+0xee>
  66948. /* remember next pbuf in chain for next iteration */
  66949. q = p->next;
  66950. 801b2d2: 687b ldr r3, [r7, #4]
  66951. 801b2d4: 681b ldr r3, [r3, #0]
  66952. 801b2d6: 613b str r3, [r7, #16]
  66953. LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: deallocating %p\n", (void *)p));
  66954. alloc_src = pbuf_get_allocsrc(p);
  66955. 801b2d8: 687b ldr r3, [r7, #4]
  66956. 801b2da: 7b1b ldrb r3, [r3, #12]
  66957. 801b2dc: f003 030f and.w r3, r3, #15
  66958. 801b2e0: 73fb strb r3, [r7, #15]
  66959. #if LWIP_SUPPORT_CUSTOM_PBUF
  66960. /* is this a custom pbuf? */
  66961. if ((p->flags & PBUF_FLAG_IS_CUSTOM) != 0) {
  66962. 801b2e2: 687b ldr r3, [r7, #4]
  66963. 801b2e4: 7b5b ldrb r3, [r3, #13]
  66964. 801b2e6: f003 0302 and.w r3, r3, #2
  66965. 801b2ea: 2b00 cmp r3, #0
  66966. 801b2ec: d011 beq.n 801b312 <pbuf_free+0xa6>
  66967. struct pbuf_custom *pc = (struct pbuf_custom *)p;
  66968. 801b2ee: 687b ldr r3, [r7, #4]
  66969. 801b2f0: 60bb str r3, [r7, #8]
  66970. LWIP_ASSERT("pc->custom_free_function != NULL", pc->custom_free_function != NULL);
  66971. 801b2f2: 68bb ldr r3, [r7, #8]
  66972. 801b2f4: 691b ldr r3, [r3, #16]
  66973. 801b2f6: 2b00 cmp r3, #0
  66974. 801b2f8: d106 bne.n 801b308 <pbuf_free+0x9c>
  66975. 801b2fa: 4b1d ldr r3, [pc, #116] @ (801b370 <pbuf_free+0x104>)
  66976. 801b2fc: f240 22ff movw r2, #767 @ 0x2ff
  66977. 801b300: 491f ldr r1, [pc, #124] @ (801b380 <pbuf_free+0x114>)
  66978. 801b302: 481d ldr r0, [pc, #116] @ (801b378 <pbuf_free+0x10c>)
  66979. 801b304: f00f fa2a bl 802a75c <iprintf>
  66980. pc->custom_free_function(p);
  66981. 801b308: 68bb ldr r3, [r7, #8]
  66982. 801b30a: 691b ldr r3, [r3, #16]
  66983. 801b30c: 6878 ldr r0, [r7, #4]
  66984. 801b30e: 4798 blx r3
  66985. 801b310: e01d b.n 801b34e <pbuf_free+0xe2>
  66986. } else
  66987. #endif /* LWIP_SUPPORT_CUSTOM_PBUF */
  66988. {
  66989. /* is this a pbuf from the pool? */
  66990. if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF_POOL) {
  66991. 801b312: 7bfb ldrb r3, [r7, #15]
  66992. 801b314: 2b02 cmp r3, #2
  66993. 801b316: d104 bne.n 801b322 <pbuf_free+0xb6>
  66994. memp_free(MEMP_PBUF_POOL, p);
  66995. 801b318: 6879 ldr r1, [r7, #4]
  66996. 801b31a: 200c movs r0, #12
  66997. 801b31c: f7ff f8b8 bl 801a490 <memp_free>
  66998. 801b320: e015 b.n 801b34e <pbuf_free+0xe2>
  66999. /* is this a ROM or RAM referencing pbuf? */
  67000. } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF) {
  67001. 801b322: 7bfb ldrb r3, [r7, #15]
  67002. 801b324: 2b01 cmp r3, #1
  67003. 801b326: d104 bne.n 801b332 <pbuf_free+0xc6>
  67004. memp_free(MEMP_PBUF, p);
  67005. 801b328: 6879 ldr r1, [r7, #4]
  67006. 801b32a: 200b movs r0, #11
  67007. 801b32c: f7ff f8b0 bl 801a490 <memp_free>
  67008. 801b330: e00d b.n 801b34e <pbuf_free+0xe2>
  67009. /* type == PBUF_RAM */
  67010. } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP) {
  67011. 801b332: 7bfb ldrb r3, [r7, #15]
  67012. 801b334: 2b00 cmp r3, #0
  67013. 801b336: d103 bne.n 801b340 <pbuf_free+0xd4>
  67014. mem_free(p);
  67015. 801b338: 6878 ldr r0, [r7, #4]
  67016. 801b33a: f7fe fd05 bl 8019d48 <mem_free>
  67017. 801b33e: e006 b.n 801b34e <pbuf_free+0xe2>
  67018. } else {
  67019. /* @todo: support freeing other types */
  67020. LWIP_ASSERT("invalid pbuf type", 0);
  67021. 801b340: 4b0b ldr r3, [pc, #44] @ (801b370 <pbuf_free+0x104>)
  67022. 801b342: f240 320f movw r2, #783 @ 0x30f
  67023. 801b346: 490f ldr r1, [pc, #60] @ (801b384 <pbuf_free+0x118>)
  67024. 801b348: 480b ldr r0, [pc, #44] @ (801b378 <pbuf_free+0x10c>)
  67025. 801b34a: f00f fa07 bl 802a75c <iprintf>
  67026. }
  67027. }
  67028. count++;
  67029. 801b34e: 7ffb ldrb r3, [r7, #31]
  67030. 801b350: 3301 adds r3, #1
  67031. 801b352: 77fb strb r3, [r7, #31]
  67032. /* proceed to next pbuf */
  67033. p = q;
  67034. 801b354: 693b ldr r3, [r7, #16]
  67035. 801b356: 607b str r3, [r7, #4]
  67036. 801b358: e001 b.n 801b35e <pbuf_free+0xf2>
  67037. /* p->ref > 0, this pbuf is still referenced to */
  67038. /* (and so the remaining pbufs in chain as well) */
  67039. } else {
  67040. LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: %p has ref %"U16_F", ending here.\n", (void *)p, (u16_t)ref));
  67041. /* stop walking through the chain */
  67042. p = NULL;
  67043. 801b35a: 2300 movs r3, #0
  67044. 801b35c: 607b str r3, [r7, #4]
  67045. while (p != NULL) {
  67046. 801b35e: 687b ldr r3, [r7, #4]
  67047. 801b360: 2b00 cmp r3, #0
  67048. 801b362: d199 bne.n 801b298 <pbuf_free+0x2c>
  67049. }
  67050. }
  67051. PERF_STOP("pbuf_free");
  67052. /* return number of de-allocated pbufs */
  67053. return count;
  67054. 801b364: 7ffb ldrb r3, [r7, #31]
  67055. }
  67056. 801b366: 4618 mov r0, r3
  67057. 801b368: 3720 adds r7, #32
  67058. 801b36a: 46bd mov sp, r7
  67059. 801b36c: bd80 pop {r7, pc}
  67060. 801b36e: bf00 nop
  67061. 801b370: 0802ef8c .word 0x0802ef8c
  67062. 801b374: 0802f0f0 .word 0x0802f0f0
  67063. 801b378: 0802efec .word 0x0802efec
  67064. 801b37c: 0802f11c .word 0x0802f11c
  67065. 801b380: 0802f134 .word 0x0802f134
  67066. 801b384: 0802f158 .word 0x0802f158
  67067. 0801b388 <pbuf_clen>:
  67068. * @param p first pbuf of chain
  67069. * @return the number of pbufs in a chain
  67070. */
  67071. u16_t
  67072. pbuf_clen(const struct pbuf *p)
  67073. {
  67074. 801b388: b480 push {r7}
  67075. 801b38a: b085 sub sp, #20
  67076. 801b38c: af00 add r7, sp, #0
  67077. 801b38e: 6078 str r0, [r7, #4]
  67078. u16_t len;
  67079. len = 0;
  67080. 801b390: 2300 movs r3, #0
  67081. 801b392: 81fb strh r3, [r7, #14]
  67082. while (p != NULL) {
  67083. 801b394: e005 b.n 801b3a2 <pbuf_clen+0x1a>
  67084. ++len;
  67085. 801b396: 89fb ldrh r3, [r7, #14]
  67086. 801b398: 3301 adds r3, #1
  67087. 801b39a: 81fb strh r3, [r7, #14]
  67088. p = p->next;
  67089. 801b39c: 687b ldr r3, [r7, #4]
  67090. 801b39e: 681b ldr r3, [r3, #0]
  67091. 801b3a0: 607b str r3, [r7, #4]
  67092. while (p != NULL) {
  67093. 801b3a2: 687b ldr r3, [r7, #4]
  67094. 801b3a4: 2b00 cmp r3, #0
  67095. 801b3a6: d1f6 bne.n 801b396 <pbuf_clen+0xe>
  67096. }
  67097. return len;
  67098. 801b3a8: 89fb ldrh r3, [r7, #14]
  67099. }
  67100. 801b3aa: 4618 mov r0, r3
  67101. 801b3ac: 3714 adds r7, #20
  67102. 801b3ae: 46bd mov sp, r7
  67103. 801b3b0: f85d 7b04 ldr.w r7, [sp], #4
  67104. 801b3b4: 4770 bx lr
  67105. ...
  67106. 0801b3b8 <pbuf_ref>:
  67107. * @param p pbuf to increase reference counter of
  67108. *
  67109. */
  67110. void
  67111. pbuf_ref(struct pbuf *p)
  67112. {
  67113. 801b3b8: b580 push {r7, lr}
  67114. 801b3ba: b084 sub sp, #16
  67115. 801b3bc: af00 add r7, sp, #0
  67116. 801b3be: 6078 str r0, [r7, #4]
  67117. /* pbuf given? */
  67118. if (p != NULL) {
  67119. 801b3c0: 687b ldr r3, [r7, #4]
  67120. 801b3c2: 2b00 cmp r3, #0
  67121. 801b3c4: d016 beq.n 801b3f4 <pbuf_ref+0x3c>
  67122. SYS_ARCH_SET(p->ref, (LWIP_PBUF_REF_T)(p->ref + 1));
  67123. 801b3c6: f00b ff33 bl 8027230 <sys_arch_protect>
  67124. 801b3ca: 60f8 str r0, [r7, #12]
  67125. 801b3cc: 687b ldr r3, [r7, #4]
  67126. 801b3ce: 7b9b ldrb r3, [r3, #14]
  67127. 801b3d0: 3301 adds r3, #1
  67128. 801b3d2: b2da uxtb r2, r3
  67129. 801b3d4: 687b ldr r3, [r7, #4]
  67130. 801b3d6: 739a strb r2, [r3, #14]
  67131. 801b3d8: 68f8 ldr r0, [r7, #12]
  67132. 801b3da: f00b ff37 bl 802724c <sys_arch_unprotect>
  67133. LWIP_ASSERT("pbuf ref overflow", p->ref > 0);
  67134. 801b3de: 687b ldr r3, [r7, #4]
  67135. 801b3e0: 7b9b ldrb r3, [r3, #14]
  67136. 801b3e2: 2b00 cmp r3, #0
  67137. 801b3e4: d106 bne.n 801b3f4 <pbuf_ref+0x3c>
  67138. 801b3e6: 4b05 ldr r3, [pc, #20] @ (801b3fc <pbuf_ref+0x44>)
  67139. 801b3e8: f240 3242 movw r2, #834 @ 0x342
  67140. 801b3ec: 4904 ldr r1, [pc, #16] @ (801b400 <pbuf_ref+0x48>)
  67141. 801b3ee: 4805 ldr r0, [pc, #20] @ (801b404 <pbuf_ref+0x4c>)
  67142. 801b3f0: f00f f9b4 bl 802a75c <iprintf>
  67143. }
  67144. }
  67145. 801b3f4: bf00 nop
  67146. 801b3f6: 3710 adds r7, #16
  67147. 801b3f8: 46bd mov sp, r7
  67148. 801b3fa: bd80 pop {r7, pc}
  67149. 801b3fc: 0802ef8c .word 0x0802ef8c
  67150. 801b400: 0802f16c .word 0x0802f16c
  67151. 801b404: 0802efec .word 0x0802efec
  67152. 0801b408 <pbuf_cat>:
  67153. *
  67154. * @see pbuf_chain()
  67155. */
  67156. void
  67157. pbuf_cat(struct pbuf *h, struct pbuf *t)
  67158. {
  67159. 801b408: b580 push {r7, lr}
  67160. 801b40a: b084 sub sp, #16
  67161. 801b40c: af00 add r7, sp, #0
  67162. 801b40e: 6078 str r0, [r7, #4]
  67163. 801b410: 6039 str r1, [r7, #0]
  67164. struct pbuf *p;
  67165. LWIP_ERROR("(h != NULL) && (t != NULL) (programmer violates API)",
  67166. 801b412: 687b ldr r3, [r7, #4]
  67167. 801b414: 2b00 cmp r3, #0
  67168. 801b416: d002 beq.n 801b41e <pbuf_cat+0x16>
  67169. 801b418: 683b ldr r3, [r7, #0]
  67170. 801b41a: 2b00 cmp r3, #0
  67171. 801b41c: d107 bne.n 801b42e <pbuf_cat+0x26>
  67172. 801b41e: 4b20 ldr r3, [pc, #128] @ (801b4a0 <pbuf_cat+0x98>)
  67173. 801b420: f240 3259 movw r2, #857 @ 0x359
  67174. 801b424: 491f ldr r1, [pc, #124] @ (801b4a4 <pbuf_cat+0x9c>)
  67175. 801b426: 4820 ldr r0, [pc, #128] @ (801b4a8 <pbuf_cat+0xa0>)
  67176. 801b428: f00f f998 bl 802a75c <iprintf>
  67177. 801b42c: e034 b.n 801b498 <pbuf_cat+0x90>
  67178. ((h != NULL) && (t != NULL)), return;);
  67179. /* proceed to last pbuf of chain */
  67180. for (p = h; p->next != NULL; p = p->next) {
  67181. 801b42e: 687b ldr r3, [r7, #4]
  67182. 801b430: 60fb str r3, [r7, #12]
  67183. 801b432: e00a b.n 801b44a <pbuf_cat+0x42>
  67184. /* add total length of second chain to all totals of first chain */
  67185. p->tot_len = (u16_t)(p->tot_len + t->tot_len);
  67186. 801b434: 68fb ldr r3, [r7, #12]
  67187. 801b436: 891a ldrh r2, [r3, #8]
  67188. 801b438: 683b ldr r3, [r7, #0]
  67189. 801b43a: 891b ldrh r3, [r3, #8]
  67190. 801b43c: 4413 add r3, r2
  67191. 801b43e: b29a uxth r2, r3
  67192. 801b440: 68fb ldr r3, [r7, #12]
  67193. 801b442: 811a strh r2, [r3, #8]
  67194. for (p = h; p->next != NULL; p = p->next) {
  67195. 801b444: 68fb ldr r3, [r7, #12]
  67196. 801b446: 681b ldr r3, [r3, #0]
  67197. 801b448: 60fb str r3, [r7, #12]
  67198. 801b44a: 68fb ldr r3, [r7, #12]
  67199. 801b44c: 681b ldr r3, [r3, #0]
  67200. 801b44e: 2b00 cmp r3, #0
  67201. 801b450: d1f0 bne.n 801b434 <pbuf_cat+0x2c>
  67202. }
  67203. /* { p is last pbuf of first h chain, p->next == NULL } */
  67204. LWIP_ASSERT("p->tot_len == p->len (of last pbuf in chain)", p->tot_len == p->len);
  67205. 801b452: 68fb ldr r3, [r7, #12]
  67206. 801b454: 891a ldrh r2, [r3, #8]
  67207. 801b456: 68fb ldr r3, [r7, #12]
  67208. 801b458: 895b ldrh r3, [r3, #10]
  67209. 801b45a: 429a cmp r2, r3
  67210. 801b45c: d006 beq.n 801b46c <pbuf_cat+0x64>
  67211. 801b45e: 4b10 ldr r3, [pc, #64] @ (801b4a0 <pbuf_cat+0x98>)
  67212. 801b460: f240 3262 movw r2, #866 @ 0x362
  67213. 801b464: 4911 ldr r1, [pc, #68] @ (801b4ac <pbuf_cat+0xa4>)
  67214. 801b466: 4810 ldr r0, [pc, #64] @ (801b4a8 <pbuf_cat+0xa0>)
  67215. 801b468: f00f f978 bl 802a75c <iprintf>
  67216. LWIP_ASSERT("p->next == NULL", p->next == NULL);
  67217. 801b46c: 68fb ldr r3, [r7, #12]
  67218. 801b46e: 681b ldr r3, [r3, #0]
  67219. 801b470: 2b00 cmp r3, #0
  67220. 801b472: d006 beq.n 801b482 <pbuf_cat+0x7a>
  67221. 801b474: 4b0a ldr r3, [pc, #40] @ (801b4a0 <pbuf_cat+0x98>)
  67222. 801b476: f240 3263 movw r2, #867 @ 0x363
  67223. 801b47a: 490d ldr r1, [pc, #52] @ (801b4b0 <pbuf_cat+0xa8>)
  67224. 801b47c: 480a ldr r0, [pc, #40] @ (801b4a8 <pbuf_cat+0xa0>)
  67225. 801b47e: f00f f96d bl 802a75c <iprintf>
  67226. /* add total length of second chain to last pbuf total of first chain */
  67227. p->tot_len = (u16_t)(p->tot_len + t->tot_len);
  67228. 801b482: 68fb ldr r3, [r7, #12]
  67229. 801b484: 891a ldrh r2, [r3, #8]
  67230. 801b486: 683b ldr r3, [r7, #0]
  67231. 801b488: 891b ldrh r3, [r3, #8]
  67232. 801b48a: 4413 add r3, r2
  67233. 801b48c: b29a uxth r2, r3
  67234. 801b48e: 68fb ldr r3, [r7, #12]
  67235. 801b490: 811a strh r2, [r3, #8]
  67236. /* chain last pbuf of head (p) with first of tail (t) */
  67237. p->next = t;
  67238. 801b492: 68fb ldr r3, [r7, #12]
  67239. 801b494: 683a ldr r2, [r7, #0]
  67240. 801b496: 601a str r2, [r3, #0]
  67241. /* p->next now references t, but the caller will drop its reference to t,
  67242. * so netto there is no change to the reference count of t.
  67243. */
  67244. }
  67245. 801b498: 3710 adds r7, #16
  67246. 801b49a: 46bd mov sp, r7
  67247. 801b49c: bd80 pop {r7, pc}
  67248. 801b49e: bf00 nop
  67249. 801b4a0: 0802ef8c .word 0x0802ef8c
  67250. 801b4a4: 0802f180 .word 0x0802f180
  67251. 801b4a8: 0802efec .word 0x0802efec
  67252. 801b4ac: 0802f1b8 .word 0x0802f1b8
  67253. 801b4b0: 0802f1e8 .word 0x0802f1e8
  67254. 0801b4b4 <pbuf_chain>:
  67255. * The ->ref field of the first pbuf of the tail chain is adjusted.
  67256. *
  67257. */
  67258. void
  67259. pbuf_chain(struct pbuf *h, struct pbuf *t)
  67260. {
  67261. 801b4b4: b580 push {r7, lr}
  67262. 801b4b6: b082 sub sp, #8
  67263. 801b4b8: af00 add r7, sp, #0
  67264. 801b4ba: 6078 str r0, [r7, #4]
  67265. 801b4bc: 6039 str r1, [r7, #0]
  67266. pbuf_cat(h, t);
  67267. 801b4be: 6839 ldr r1, [r7, #0]
  67268. 801b4c0: 6878 ldr r0, [r7, #4]
  67269. 801b4c2: f7ff ffa1 bl 801b408 <pbuf_cat>
  67270. /* t is now referenced by h */
  67271. pbuf_ref(t);
  67272. 801b4c6: 6838 ldr r0, [r7, #0]
  67273. 801b4c8: f7ff ff76 bl 801b3b8 <pbuf_ref>
  67274. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_chain: %p references %p\n", (void *)h, (void *)t));
  67275. }
  67276. 801b4cc: bf00 nop
  67277. 801b4ce: 3708 adds r7, #8
  67278. 801b4d0: 46bd mov sp, r7
  67279. 801b4d2: bd80 pop {r7, pc}
  67280. 0801b4d4 <pbuf_copy>:
  67281. * ERR_ARG if one of the pbufs is NULL or p_to is not big
  67282. * enough to hold p_from
  67283. */
  67284. err_t
  67285. pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from)
  67286. {
  67287. 801b4d4: b580 push {r7, lr}
  67288. 801b4d6: b086 sub sp, #24
  67289. 801b4d8: af00 add r7, sp, #0
  67290. 801b4da: 6078 str r0, [r7, #4]
  67291. 801b4dc: 6039 str r1, [r7, #0]
  67292. size_t offset_to = 0, offset_from = 0, len;
  67293. 801b4de: 2300 movs r3, #0
  67294. 801b4e0: 617b str r3, [r7, #20]
  67295. 801b4e2: 2300 movs r3, #0
  67296. 801b4e4: 613b str r3, [r7, #16]
  67297. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy(%p, %p)\n",
  67298. (const void *)p_to, (const void *)p_from));
  67299. /* is the target big enough to hold the source? */
  67300. LWIP_ERROR("pbuf_copy: target not big enough to hold source", ((p_to != NULL) &&
  67301. 801b4e6: 687b ldr r3, [r7, #4]
  67302. 801b4e8: 2b00 cmp r3, #0
  67303. 801b4ea: d008 beq.n 801b4fe <pbuf_copy+0x2a>
  67304. 801b4ec: 683b ldr r3, [r7, #0]
  67305. 801b4ee: 2b00 cmp r3, #0
  67306. 801b4f0: d005 beq.n 801b4fe <pbuf_copy+0x2a>
  67307. 801b4f2: 687b ldr r3, [r7, #4]
  67308. 801b4f4: 891a ldrh r2, [r3, #8]
  67309. 801b4f6: 683b ldr r3, [r7, #0]
  67310. 801b4f8: 891b ldrh r3, [r3, #8]
  67311. 801b4fa: 429a cmp r2, r3
  67312. 801b4fc: d209 bcs.n 801b512 <pbuf_copy+0x3e>
  67313. 801b4fe: 4b57 ldr r3, [pc, #348] @ (801b65c <pbuf_copy+0x188>)
  67314. 801b500: f240 32c9 movw r2, #969 @ 0x3c9
  67315. 801b504: 4956 ldr r1, [pc, #344] @ (801b660 <pbuf_copy+0x18c>)
  67316. 801b506: 4857 ldr r0, [pc, #348] @ (801b664 <pbuf_copy+0x190>)
  67317. 801b508: f00f f928 bl 802a75c <iprintf>
  67318. 801b50c: f06f 030f mvn.w r3, #15
  67319. 801b510: e09f b.n 801b652 <pbuf_copy+0x17e>
  67320. (p_from != NULL) && (p_to->tot_len >= p_from->tot_len)), return ERR_ARG;);
  67321. /* iterate through pbuf chain */
  67322. do {
  67323. /* copy one part of the original chain */
  67324. if ((p_to->len - offset_to) >= (p_from->len - offset_from)) {
  67325. 801b512: 687b ldr r3, [r7, #4]
  67326. 801b514: 895b ldrh r3, [r3, #10]
  67327. 801b516: 461a mov r2, r3
  67328. 801b518: 697b ldr r3, [r7, #20]
  67329. 801b51a: 1ad2 subs r2, r2, r3
  67330. 801b51c: 683b ldr r3, [r7, #0]
  67331. 801b51e: 895b ldrh r3, [r3, #10]
  67332. 801b520: 4619 mov r1, r3
  67333. 801b522: 693b ldr r3, [r7, #16]
  67334. 801b524: 1acb subs r3, r1, r3
  67335. 801b526: 429a cmp r2, r3
  67336. 801b528: d306 bcc.n 801b538 <pbuf_copy+0x64>
  67337. /* complete current p_from fits into current p_to */
  67338. len = p_from->len - offset_from;
  67339. 801b52a: 683b ldr r3, [r7, #0]
  67340. 801b52c: 895b ldrh r3, [r3, #10]
  67341. 801b52e: 461a mov r2, r3
  67342. 801b530: 693b ldr r3, [r7, #16]
  67343. 801b532: 1ad3 subs r3, r2, r3
  67344. 801b534: 60fb str r3, [r7, #12]
  67345. 801b536: e005 b.n 801b544 <pbuf_copy+0x70>
  67346. } else {
  67347. /* current p_from does not fit into current p_to */
  67348. len = p_to->len - offset_to;
  67349. 801b538: 687b ldr r3, [r7, #4]
  67350. 801b53a: 895b ldrh r3, [r3, #10]
  67351. 801b53c: 461a mov r2, r3
  67352. 801b53e: 697b ldr r3, [r7, #20]
  67353. 801b540: 1ad3 subs r3, r2, r3
  67354. 801b542: 60fb str r3, [r7, #12]
  67355. }
  67356. MEMCPY((u8_t *)p_to->payload + offset_to, (u8_t *)p_from->payload + offset_from, len);
  67357. 801b544: 687b ldr r3, [r7, #4]
  67358. 801b546: 685a ldr r2, [r3, #4]
  67359. 801b548: 697b ldr r3, [r7, #20]
  67360. 801b54a: 18d0 adds r0, r2, r3
  67361. 801b54c: 683b ldr r3, [r7, #0]
  67362. 801b54e: 685a ldr r2, [r3, #4]
  67363. 801b550: 693b ldr r3, [r7, #16]
  67364. 801b552: 4413 add r3, r2
  67365. 801b554: 68fa ldr r2, [r7, #12]
  67366. 801b556: 4619 mov r1, r3
  67367. 801b558: f00f fb89 bl 802ac6e <memcpy>
  67368. offset_to += len;
  67369. 801b55c: 697a ldr r2, [r7, #20]
  67370. 801b55e: 68fb ldr r3, [r7, #12]
  67371. 801b560: 4413 add r3, r2
  67372. 801b562: 617b str r3, [r7, #20]
  67373. offset_from += len;
  67374. 801b564: 693a ldr r2, [r7, #16]
  67375. 801b566: 68fb ldr r3, [r7, #12]
  67376. 801b568: 4413 add r3, r2
  67377. 801b56a: 613b str r3, [r7, #16]
  67378. LWIP_ASSERT("offset_to <= p_to->len", offset_to <= p_to->len);
  67379. 801b56c: 687b ldr r3, [r7, #4]
  67380. 801b56e: 895b ldrh r3, [r3, #10]
  67381. 801b570: 461a mov r2, r3
  67382. 801b572: 697b ldr r3, [r7, #20]
  67383. 801b574: 4293 cmp r3, r2
  67384. 801b576: d906 bls.n 801b586 <pbuf_copy+0xb2>
  67385. 801b578: 4b38 ldr r3, [pc, #224] @ (801b65c <pbuf_copy+0x188>)
  67386. 801b57a: f240 32d9 movw r2, #985 @ 0x3d9
  67387. 801b57e: 493a ldr r1, [pc, #232] @ (801b668 <pbuf_copy+0x194>)
  67388. 801b580: 4838 ldr r0, [pc, #224] @ (801b664 <pbuf_copy+0x190>)
  67389. 801b582: f00f f8eb bl 802a75c <iprintf>
  67390. LWIP_ASSERT("offset_from <= p_from->len", offset_from <= p_from->len);
  67391. 801b586: 683b ldr r3, [r7, #0]
  67392. 801b588: 895b ldrh r3, [r3, #10]
  67393. 801b58a: 461a mov r2, r3
  67394. 801b58c: 693b ldr r3, [r7, #16]
  67395. 801b58e: 4293 cmp r3, r2
  67396. 801b590: d906 bls.n 801b5a0 <pbuf_copy+0xcc>
  67397. 801b592: 4b32 ldr r3, [pc, #200] @ (801b65c <pbuf_copy+0x188>)
  67398. 801b594: f240 32da movw r2, #986 @ 0x3da
  67399. 801b598: 4934 ldr r1, [pc, #208] @ (801b66c <pbuf_copy+0x198>)
  67400. 801b59a: 4832 ldr r0, [pc, #200] @ (801b664 <pbuf_copy+0x190>)
  67401. 801b59c: f00f f8de bl 802a75c <iprintf>
  67402. if (offset_from >= p_from->len) {
  67403. 801b5a0: 683b ldr r3, [r7, #0]
  67404. 801b5a2: 895b ldrh r3, [r3, #10]
  67405. 801b5a4: 461a mov r2, r3
  67406. 801b5a6: 693b ldr r3, [r7, #16]
  67407. 801b5a8: 4293 cmp r3, r2
  67408. 801b5aa: d304 bcc.n 801b5b6 <pbuf_copy+0xe2>
  67409. /* on to next p_from (if any) */
  67410. offset_from = 0;
  67411. 801b5ac: 2300 movs r3, #0
  67412. 801b5ae: 613b str r3, [r7, #16]
  67413. p_from = p_from->next;
  67414. 801b5b0: 683b ldr r3, [r7, #0]
  67415. 801b5b2: 681b ldr r3, [r3, #0]
  67416. 801b5b4: 603b str r3, [r7, #0]
  67417. }
  67418. if (offset_to == p_to->len) {
  67419. 801b5b6: 687b ldr r3, [r7, #4]
  67420. 801b5b8: 895b ldrh r3, [r3, #10]
  67421. 801b5ba: 461a mov r2, r3
  67422. 801b5bc: 697b ldr r3, [r7, #20]
  67423. 801b5be: 4293 cmp r3, r2
  67424. 801b5c0: d114 bne.n 801b5ec <pbuf_copy+0x118>
  67425. /* on to next p_to (if any) */
  67426. offset_to = 0;
  67427. 801b5c2: 2300 movs r3, #0
  67428. 801b5c4: 617b str r3, [r7, #20]
  67429. p_to = p_to->next;
  67430. 801b5c6: 687b ldr r3, [r7, #4]
  67431. 801b5c8: 681b ldr r3, [r3, #0]
  67432. 801b5ca: 607b str r3, [r7, #4]
  67433. LWIP_ERROR("p_to != NULL", (p_to != NULL) || (p_from == NULL), return ERR_ARG;);
  67434. 801b5cc: 687b ldr r3, [r7, #4]
  67435. 801b5ce: 2b00 cmp r3, #0
  67436. 801b5d0: d10c bne.n 801b5ec <pbuf_copy+0x118>
  67437. 801b5d2: 683b ldr r3, [r7, #0]
  67438. 801b5d4: 2b00 cmp r3, #0
  67439. 801b5d6: d009 beq.n 801b5ec <pbuf_copy+0x118>
  67440. 801b5d8: 4b20 ldr r3, [pc, #128] @ (801b65c <pbuf_copy+0x188>)
  67441. 801b5da: f44f 7279 mov.w r2, #996 @ 0x3e4
  67442. 801b5de: 4924 ldr r1, [pc, #144] @ (801b670 <pbuf_copy+0x19c>)
  67443. 801b5e0: 4820 ldr r0, [pc, #128] @ (801b664 <pbuf_copy+0x190>)
  67444. 801b5e2: f00f f8bb bl 802a75c <iprintf>
  67445. 801b5e6: f06f 030f mvn.w r3, #15
  67446. 801b5ea: e032 b.n 801b652 <pbuf_copy+0x17e>
  67447. }
  67448. if ((p_from != NULL) && (p_from->len == p_from->tot_len)) {
  67449. 801b5ec: 683b ldr r3, [r7, #0]
  67450. 801b5ee: 2b00 cmp r3, #0
  67451. 801b5f0: d013 beq.n 801b61a <pbuf_copy+0x146>
  67452. 801b5f2: 683b ldr r3, [r7, #0]
  67453. 801b5f4: 895a ldrh r2, [r3, #10]
  67454. 801b5f6: 683b ldr r3, [r7, #0]
  67455. 801b5f8: 891b ldrh r3, [r3, #8]
  67456. 801b5fa: 429a cmp r2, r3
  67457. 801b5fc: d10d bne.n 801b61a <pbuf_copy+0x146>
  67458. /* don't copy more than one packet! */
  67459. LWIP_ERROR("pbuf_copy() does not allow packet queues!",
  67460. 801b5fe: 683b ldr r3, [r7, #0]
  67461. 801b600: 681b ldr r3, [r3, #0]
  67462. 801b602: 2b00 cmp r3, #0
  67463. 801b604: d009 beq.n 801b61a <pbuf_copy+0x146>
  67464. 801b606: 4b15 ldr r3, [pc, #84] @ (801b65c <pbuf_copy+0x188>)
  67465. 801b608: f240 32e9 movw r2, #1001 @ 0x3e9
  67466. 801b60c: 4919 ldr r1, [pc, #100] @ (801b674 <pbuf_copy+0x1a0>)
  67467. 801b60e: 4815 ldr r0, [pc, #84] @ (801b664 <pbuf_copy+0x190>)
  67468. 801b610: f00f f8a4 bl 802a75c <iprintf>
  67469. 801b614: f06f 0305 mvn.w r3, #5
  67470. 801b618: e01b b.n 801b652 <pbuf_copy+0x17e>
  67471. (p_from->next == NULL), return ERR_VAL;);
  67472. }
  67473. if ((p_to != NULL) && (p_to->len == p_to->tot_len)) {
  67474. 801b61a: 687b ldr r3, [r7, #4]
  67475. 801b61c: 2b00 cmp r3, #0
  67476. 801b61e: d013 beq.n 801b648 <pbuf_copy+0x174>
  67477. 801b620: 687b ldr r3, [r7, #4]
  67478. 801b622: 895a ldrh r2, [r3, #10]
  67479. 801b624: 687b ldr r3, [r7, #4]
  67480. 801b626: 891b ldrh r3, [r3, #8]
  67481. 801b628: 429a cmp r2, r3
  67482. 801b62a: d10d bne.n 801b648 <pbuf_copy+0x174>
  67483. /* don't copy more than one packet! */
  67484. LWIP_ERROR("pbuf_copy() does not allow packet queues!",
  67485. 801b62c: 687b ldr r3, [r7, #4]
  67486. 801b62e: 681b ldr r3, [r3, #0]
  67487. 801b630: 2b00 cmp r3, #0
  67488. 801b632: d009 beq.n 801b648 <pbuf_copy+0x174>
  67489. 801b634: 4b09 ldr r3, [pc, #36] @ (801b65c <pbuf_copy+0x188>)
  67490. 801b636: f240 32ee movw r2, #1006 @ 0x3ee
  67491. 801b63a: 490e ldr r1, [pc, #56] @ (801b674 <pbuf_copy+0x1a0>)
  67492. 801b63c: 4809 ldr r0, [pc, #36] @ (801b664 <pbuf_copy+0x190>)
  67493. 801b63e: f00f f88d bl 802a75c <iprintf>
  67494. 801b642: f06f 0305 mvn.w r3, #5
  67495. 801b646: e004 b.n 801b652 <pbuf_copy+0x17e>
  67496. (p_to->next == NULL), return ERR_VAL;);
  67497. }
  67498. } while (p_from);
  67499. 801b648: 683b ldr r3, [r7, #0]
  67500. 801b64a: 2b00 cmp r3, #0
  67501. 801b64c: f47f af61 bne.w 801b512 <pbuf_copy+0x3e>
  67502. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy: end of chain reached.\n"));
  67503. return ERR_OK;
  67504. 801b650: 2300 movs r3, #0
  67505. }
  67506. 801b652: 4618 mov r0, r3
  67507. 801b654: 3718 adds r7, #24
  67508. 801b656: 46bd mov sp, r7
  67509. 801b658: bd80 pop {r7, pc}
  67510. 801b65a: bf00 nop
  67511. 801b65c: 0802ef8c .word 0x0802ef8c
  67512. 801b660: 0802f234 .word 0x0802f234
  67513. 801b664: 0802efec .word 0x0802efec
  67514. 801b668: 0802f264 .word 0x0802f264
  67515. 801b66c: 0802f27c .word 0x0802f27c
  67516. 801b670: 0802f298 .word 0x0802f298
  67517. 801b674: 0802f2a8 .word 0x0802f2a8
  67518. 0801b678 <pbuf_copy_partial>:
  67519. * @param offset offset into the packet buffer from where to begin copying len bytes
  67520. * @return the number of bytes copied, or 0 on failure
  67521. */
  67522. u16_t
  67523. pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset)
  67524. {
  67525. 801b678: b580 push {r7, lr}
  67526. 801b67a: b088 sub sp, #32
  67527. 801b67c: af00 add r7, sp, #0
  67528. 801b67e: 60f8 str r0, [r7, #12]
  67529. 801b680: 60b9 str r1, [r7, #8]
  67530. 801b682: 4611 mov r1, r2
  67531. 801b684: 461a mov r2, r3
  67532. 801b686: 460b mov r3, r1
  67533. 801b688: 80fb strh r3, [r7, #6]
  67534. 801b68a: 4613 mov r3, r2
  67535. 801b68c: 80bb strh r3, [r7, #4]
  67536. const struct pbuf *p;
  67537. u16_t left = 0;
  67538. 801b68e: 2300 movs r3, #0
  67539. 801b690: 837b strh r3, [r7, #26]
  67540. u16_t buf_copy_len;
  67541. u16_t copied_total = 0;
  67542. 801b692: 2300 movs r3, #0
  67543. 801b694: 82fb strh r3, [r7, #22]
  67544. LWIP_ERROR("pbuf_copy_partial: invalid buf", (buf != NULL), return 0;);
  67545. 801b696: 68fb ldr r3, [r7, #12]
  67546. 801b698: 2b00 cmp r3, #0
  67547. 801b69a: d108 bne.n 801b6ae <pbuf_copy_partial+0x36>
  67548. 801b69c: 4b2b ldr r3, [pc, #172] @ (801b74c <pbuf_copy_partial+0xd4>)
  67549. 801b69e: f240 420a movw r2, #1034 @ 0x40a
  67550. 801b6a2: 492b ldr r1, [pc, #172] @ (801b750 <pbuf_copy_partial+0xd8>)
  67551. 801b6a4: 482b ldr r0, [pc, #172] @ (801b754 <pbuf_copy_partial+0xdc>)
  67552. 801b6a6: f00f f859 bl 802a75c <iprintf>
  67553. 801b6aa: 2300 movs r3, #0
  67554. 801b6ac: e04a b.n 801b744 <pbuf_copy_partial+0xcc>
  67555. LWIP_ERROR("pbuf_copy_partial: invalid dataptr", (dataptr != NULL), return 0;);
  67556. 801b6ae: 68bb ldr r3, [r7, #8]
  67557. 801b6b0: 2b00 cmp r3, #0
  67558. 801b6b2: d108 bne.n 801b6c6 <pbuf_copy_partial+0x4e>
  67559. 801b6b4: 4b25 ldr r3, [pc, #148] @ (801b74c <pbuf_copy_partial+0xd4>)
  67560. 801b6b6: f240 420b movw r2, #1035 @ 0x40b
  67561. 801b6ba: 4927 ldr r1, [pc, #156] @ (801b758 <pbuf_copy_partial+0xe0>)
  67562. 801b6bc: 4825 ldr r0, [pc, #148] @ (801b754 <pbuf_copy_partial+0xdc>)
  67563. 801b6be: f00f f84d bl 802a75c <iprintf>
  67564. 801b6c2: 2300 movs r3, #0
  67565. 801b6c4: e03e b.n 801b744 <pbuf_copy_partial+0xcc>
  67566. /* Note some systems use byte copy if dataptr or one of the pbuf payload pointers are unaligned. */
  67567. for (p = buf; len != 0 && p != NULL; p = p->next) {
  67568. 801b6c6: 68fb ldr r3, [r7, #12]
  67569. 801b6c8: 61fb str r3, [r7, #28]
  67570. 801b6ca: e034 b.n 801b736 <pbuf_copy_partial+0xbe>
  67571. if ((offset != 0) && (offset >= p->len)) {
  67572. 801b6cc: 88bb ldrh r3, [r7, #4]
  67573. 801b6ce: 2b00 cmp r3, #0
  67574. 801b6d0: d00a beq.n 801b6e8 <pbuf_copy_partial+0x70>
  67575. 801b6d2: 69fb ldr r3, [r7, #28]
  67576. 801b6d4: 895b ldrh r3, [r3, #10]
  67577. 801b6d6: 88ba ldrh r2, [r7, #4]
  67578. 801b6d8: 429a cmp r2, r3
  67579. 801b6da: d305 bcc.n 801b6e8 <pbuf_copy_partial+0x70>
  67580. /* don't copy from this buffer -> on to the next */
  67581. offset = (u16_t)(offset - p->len);
  67582. 801b6dc: 69fb ldr r3, [r7, #28]
  67583. 801b6de: 895b ldrh r3, [r3, #10]
  67584. 801b6e0: 88ba ldrh r2, [r7, #4]
  67585. 801b6e2: 1ad3 subs r3, r2, r3
  67586. 801b6e4: 80bb strh r3, [r7, #4]
  67587. 801b6e6: e023 b.n 801b730 <pbuf_copy_partial+0xb8>
  67588. } else {
  67589. /* copy from this buffer. maybe only partially. */
  67590. buf_copy_len = (u16_t)(p->len - offset);
  67591. 801b6e8: 69fb ldr r3, [r7, #28]
  67592. 801b6ea: 895a ldrh r2, [r3, #10]
  67593. 801b6ec: 88bb ldrh r3, [r7, #4]
  67594. 801b6ee: 1ad3 subs r3, r2, r3
  67595. 801b6f0: 833b strh r3, [r7, #24]
  67596. if (buf_copy_len > len) {
  67597. 801b6f2: 8b3a ldrh r2, [r7, #24]
  67598. 801b6f4: 88fb ldrh r3, [r7, #6]
  67599. 801b6f6: 429a cmp r2, r3
  67600. 801b6f8: d901 bls.n 801b6fe <pbuf_copy_partial+0x86>
  67601. buf_copy_len = len;
  67602. 801b6fa: 88fb ldrh r3, [r7, #6]
  67603. 801b6fc: 833b strh r3, [r7, #24]
  67604. }
  67605. /* copy the necessary parts of the buffer */
  67606. MEMCPY(&((char *)dataptr)[left], &((char *)p->payload)[offset], buf_copy_len);
  67607. 801b6fe: 8b7b ldrh r3, [r7, #26]
  67608. 801b700: 68ba ldr r2, [r7, #8]
  67609. 801b702: 18d0 adds r0, r2, r3
  67610. 801b704: 69fb ldr r3, [r7, #28]
  67611. 801b706: 685a ldr r2, [r3, #4]
  67612. 801b708: 88bb ldrh r3, [r7, #4]
  67613. 801b70a: 4413 add r3, r2
  67614. 801b70c: 8b3a ldrh r2, [r7, #24]
  67615. 801b70e: 4619 mov r1, r3
  67616. 801b710: f00f faad bl 802ac6e <memcpy>
  67617. copied_total = (u16_t)(copied_total + buf_copy_len);
  67618. 801b714: 8afa ldrh r2, [r7, #22]
  67619. 801b716: 8b3b ldrh r3, [r7, #24]
  67620. 801b718: 4413 add r3, r2
  67621. 801b71a: 82fb strh r3, [r7, #22]
  67622. left = (u16_t)(left + buf_copy_len);
  67623. 801b71c: 8b7a ldrh r2, [r7, #26]
  67624. 801b71e: 8b3b ldrh r3, [r7, #24]
  67625. 801b720: 4413 add r3, r2
  67626. 801b722: 837b strh r3, [r7, #26]
  67627. len = (u16_t)(len - buf_copy_len);
  67628. 801b724: 88fa ldrh r2, [r7, #6]
  67629. 801b726: 8b3b ldrh r3, [r7, #24]
  67630. 801b728: 1ad3 subs r3, r2, r3
  67631. 801b72a: 80fb strh r3, [r7, #6]
  67632. offset = 0;
  67633. 801b72c: 2300 movs r3, #0
  67634. 801b72e: 80bb strh r3, [r7, #4]
  67635. for (p = buf; len != 0 && p != NULL; p = p->next) {
  67636. 801b730: 69fb ldr r3, [r7, #28]
  67637. 801b732: 681b ldr r3, [r3, #0]
  67638. 801b734: 61fb str r3, [r7, #28]
  67639. 801b736: 88fb ldrh r3, [r7, #6]
  67640. 801b738: 2b00 cmp r3, #0
  67641. 801b73a: d002 beq.n 801b742 <pbuf_copy_partial+0xca>
  67642. 801b73c: 69fb ldr r3, [r7, #28]
  67643. 801b73e: 2b00 cmp r3, #0
  67644. 801b740: d1c4 bne.n 801b6cc <pbuf_copy_partial+0x54>
  67645. }
  67646. }
  67647. return copied_total;
  67648. 801b742: 8afb ldrh r3, [r7, #22]
  67649. }
  67650. 801b744: 4618 mov r0, r3
  67651. 801b746: 3720 adds r7, #32
  67652. 801b748: 46bd mov sp, r7
  67653. 801b74a: bd80 pop {r7, pc}
  67654. 801b74c: 0802ef8c .word 0x0802ef8c
  67655. 801b750: 0802f2d4 .word 0x0802f2d4
  67656. 801b754: 0802efec .word 0x0802efec
  67657. 801b758: 0802f2f4 .word 0x0802f2f4
  67658. 0801b75c <pbuf_clone>:
  67659. *
  67660. * @return a new pbuf or NULL if allocation fails
  67661. */
  67662. struct pbuf *
  67663. pbuf_clone(pbuf_layer layer, pbuf_type type, struct pbuf *p)
  67664. {
  67665. 801b75c: b580 push {r7, lr}
  67666. 801b75e: b084 sub sp, #16
  67667. 801b760: af00 add r7, sp, #0
  67668. 801b762: 4603 mov r3, r0
  67669. 801b764: 603a str r2, [r7, #0]
  67670. 801b766: 71fb strb r3, [r7, #7]
  67671. 801b768: 460b mov r3, r1
  67672. 801b76a: 80bb strh r3, [r7, #4]
  67673. struct pbuf *q;
  67674. err_t err;
  67675. q = pbuf_alloc(layer, p->tot_len, type);
  67676. 801b76c: 683b ldr r3, [r7, #0]
  67677. 801b76e: 8919 ldrh r1, [r3, #8]
  67678. 801b770: 88ba ldrh r2, [r7, #4]
  67679. 801b772: 79fb ldrb r3, [r7, #7]
  67680. 801b774: 4618 mov r0, r3
  67681. 801b776: f7ff fa63 bl 801ac40 <pbuf_alloc>
  67682. 801b77a: 60f8 str r0, [r7, #12]
  67683. if (q == NULL) {
  67684. 801b77c: 68fb ldr r3, [r7, #12]
  67685. 801b77e: 2b00 cmp r3, #0
  67686. 801b780: d101 bne.n 801b786 <pbuf_clone+0x2a>
  67687. return NULL;
  67688. 801b782: 2300 movs r3, #0
  67689. 801b784: e011 b.n 801b7aa <pbuf_clone+0x4e>
  67690. }
  67691. err = pbuf_copy(q, p);
  67692. 801b786: 6839 ldr r1, [r7, #0]
  67693. 801b788: 68f8 ldr r0, [r7, #12]
  67694. 801b78a: f7ff fea3 bl 801b4d4 <pbuf_copy>
  67695. 801b78e: 4603 mov r3, r0
  67696. 801b790: 72fb strb r3, [r7, #11]
  67697. LWIP_UNUSED_ARG(err); /* in case of LWIP_NOASSERT */
  67698. LWIP_ASSERT("pbuf_copy failed", err == ERR_OK);
  67699. 801b792: f997 300b ldrsb.w r3, [r7, #11]
  67700. 801b796: 2b00 cmp r3, #0
  67701. 801b798: d006 beq.n 801b7a8 <pbuf_clone+0x4c>
  67702. 801b79a: 4b06 ldr r3, [pc, #24] @ (801b7b4 <pbuf_clone+0x58>)
  67703. 801b79c: f240 5224 movw r2, #1316 @ 0x524
  67704. 801b7a0: 4905 ldr r1, [pc, #20] @ (801b7b8 <pbuf_clone+0x5c>)
  67705. 801b7a2: 4806 ldr r0, [pc, #24] @ (801b7bc <pbuf_clone+0x60>)
  67706. 801b7a4: f00e ffda bl 802a75c <iprintf>
  67707. return q;
  67708. 801b7a8: 68fb ldr r3, [r7, #12]
  67709. }
  67710. 801b7aa: 4618 mov r0, r3
  67711. 801b7ac: 3710 adds r7, #16
  67712. 801b7ae: 46bd mov sp, r7
  67713. 801b7b0: bd80 pop {r7, pc}
  67714. 801b7b2: bf00 nop
  67715. 801b7b4: 0802ef8c .word 0x0802ef8c
  67716. 801b7b8: 0802f400 .word 0x0802f400
  67717. 801b7bc: 0802efec .word 0x0802efec
  67718. 0801b7c0 <tcp_init>:
  67719. /**
  67720. * Initialize this module.
  67721. */
  67722. void
  67723. tcp_init(void)
  67724. {
  67725. 801b7c0: b580 push {r7, lr}
  67726. 801b7c2: af00 add r7, sp, #0
  67727. #ifdef LWIP_RAND
  67728. tcp_port = TCP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND());
  67729. 801b7c4: f00d fca0 bl 8029108 <rand>
  67730. 801b7c8: 4603 mov r3, r0
  67731. 801b7ca: b29b uxth r3, r3
  67732. 801b7cc: f3c3 030d ubfx r3, r3, #0, #14
  67733. 801b7d0: b29b uxth r3, r3
  67734. 801b7d2: f5a3 4380 sub.w r3, r3, #16384 @ 0x4000
  67735. 801b7d6: b29a uxth r2, r3
  67736. 801b7d8: 4b01 ldr r3, [pc, #4] @ (801b7e0 <tcp_init+0x20>)
  67737. 801b7da: 801a strh r2, [r3, #0]
  67738. #endif /* LWIP_RAND */
  67739. }
  67740. 801b7dc: bf00 nop
  67741. 801b7de: bd80 pop {r7, pc}
  67742. 801b7e0: 2400004c .word 0x2400004c
  67743. 0801b7e4 <tcp_free>:
  67744. /** Free a tcp pcb */
  67745. void
  67746. tcp_free(struct tcp_pcb *pcb)
  67747. {
  67748. 801b7e4: b580 push {r7, lr}
  67749. 801b7e6: b082 sub sp, #8
  67750. 801b7e8: af00 add r7, sp, #0
  67751. 801b7ea: 6078 str r0, [r7, #4]
  67752. LWIP_ASSERT("tcp_free: LISTEN", pcb->state != LISTEN);
  67753. 801b7ec: 687b ldr r3, [r7, #4]
  67754. 801b7ee: 7d1b ldrb r3, [r3, #20]
  67755. 801b7f0: 2b01 cmp r3, #1
  67756. 801b7f2: d105 bne.n 801b800 <tcp_free+0x1c>
  67757. 801b7f4: 4b06 ldr r3, [pc, #24] @ (801b810 <tcp_free+0x2c>)
  67758. 801b7f6: 22d4 movs r2, #212 @ 0xd4
  67759. 801b7f8: 4906 ldr r1, [pc, #24] @ (801b814 <tcp_free+0x30>)
  67760. 801b7fa: 4807 ldr r0, [pc, #28] @ (801b818 <tcp_free+0x34>)
  67761. 801b7fc: f00e ffae bl 802a75c <iprintf>
  67762. #if LWIP_TCP_PCB_NUM_EXT_ARGS
  67763. tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args);
  67764. #endif
  67765. memp_free(MEMP_TCP_PCB, pcb);
  67766. 801b800: 6879 ldr r1, [r7, #4]
  67767. 801b802: 2001 movs r0, #1
  67768. 801b804: f7fe fe44 bl 801a490 <memp_free>
  67769. }
  67770. 801b808: bf00 nop
  67771. 801b80a: 3708 adds r7, #8
  67772. 801b80c: 46bd mov sp, r7
  67773. 801b80e: bd80 pop {r7, pc}
  67774. 801b810: 0802f48c .word 0x0802f48c
  67775. 801b814: 0802f4bc .word 0x0802f4bc
  67776. 801b818: 0802f4d0 .word 0x0802f4d0
  67777. 0801b81c <tcp_free_listen>:
  67778. /** Free a tcp listen pcb */
  67779. static void
  67780. tcp_free_listen(struct tcp_pcb *pcb)
  67781. {
  67782. 801b81c: b580 push {r7, lr}
  67783. 801b81e: b082 sub sp, #8
  67784. 801b820: af00 add r7, sp, #0
  67785. 801b822: 6078 str r0, [r7, #4]
  67786. LWIP_ASSERT("tcp_free_listen: !LISTEN", pcb->state != LISTEN);
  67787. 801b824: 687b ldr r3, [r7, #4]
  67788. 801b826: 7d1b ldrb r3, [r3, #20]
  67789. 801b828: 2b01 cmp r3, #1
  67790. 801b82a: d105 bne.n 801b838 <tcp_free_listen+0x1c>
  67791. 801b82c: 4b06 ldr r3, [pc, #24] @ (801b848 <tcp_free_listen+0x2c>)
  67792. 801b82e: 22df movs r2, #223 @ 0xdf
  67793. 801b830: 4906 ldr r1, [pc, #24] @ (801b84c <tcp_free_listen+0x30>)
  67794. 801b832: 4807 ldr r0, [pc, #28] @ (801b850 <tcp_free_listen+0x34>)
  67795. 801b834: f00e ff92 bl 802a75c <iprintf>
  67796. #if LWIP_TCP_PCB_NUM_EXT_ARGS
  67797. tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args);
  67798. #endif
  67799. memp_free(MEMP_TCP_PCB_LISTEN, pcb);
  67800. 801b838: 6879 ldr r1, [r7, #4]
  67801. 801b83a: 2002 movs r0, #2
  67802. 801b83c: f7fe fe28 bl 801a490 <memp_free>
  67803. }
  67804. 801b840: bf00 nop
  67805. 801b842: 3708 adds r7, #8
  67806. 801b844: 46bd mov sp, r7
  67807. 801b846: bd80 pop {r7, pc}
  67808. 801b848: 0802f48c .word 0x0802f48c
  67809. 801b84c: 0802f4f8 .word 0x0802f4f8
  67810. 801b850: 0802f4d0 .word 0x0802f4d0
  67811. 0801b854 <tcp_tmr>:
  67812. /**
  67813. * Called periodically to dispatch TCP timers.
  67814. */
  67815. void
  67816. tcp_tmr(void)
  67817. {
  67818. 801b854: b580 push {r7, lr}
  67819. 801b856: af00 add r7, sp, #0
  67820. /* Call tcp_fasttmr() every 250 ms */
  67821. tcp_fasttmr();
  67822. 801b858: f001 f86a bl 801c930 <tcp_fasttmr>
  67823. if (++tcp_timer & 1) {
  67824. 801b85c: 4b07 ldr r3, [pc, #28] @ (801b87c <tcp_tmr+0x28>)
  67825. 801b85e: 781b ldrb r3, [r3, #0]
  67826. 801b860: 3301 adds r3, #1
  67827. 801b862: b2da uxtb r2, r3
  67828. 801b864: 4b05 ldr r3, [pc, #20] @ (801b87c <tcp_tmr+0x28>)
  67829. 801b866: 701a strb r2, [r3, #0]
  67830. 801b868: 4b04 ldr r3, [pc, #16] @ (801b87c <tcp_tmr+0x28>)
  67831. 801b86a: 781b ldrb r3, [r3, #0]
  67832. 801b86c: f003 0301 and.w r3, r3, #1
  67833. 801b870: 2b00 cmp r3, #0
  67834. 801b872: d001 beq.n 801b878 <tcp_tmr+0x24>
  67835. /* Call tcp_slowtmr() every 500 ms, i.e., every other timer
  67836. tcp_tmr() is called. */
  67837. tcp_slowtmr();
  67838. 801b874: f000 fd1a bl 801c2ac <tcp_slowtmr>
  67839. }
  67840. }
  67841. 801b878: bf00 nop
  67842. 801b87a: bd80 pop {r7, pc}
  67843. 801b87c: 2402af7d .word 0x2402af7d
  67844. 0801b880 <tcp_remove_listener>:
  67845. /** Called when a listen pcb is closed. Iterates one pcb list and removes the
  67846. * closed listener pcb from pcb->listener if matching.
  67847. */
  67848. static void
  67849. tcp_remove_listener(struct tcp_pcb *list, struct tcp_pcb_listen *lpcb)
  67850. {
  67851. 801b880: b580 push {r7, lr}
  67852. 801b882: b084 sub sp, #16
  67853. 801b884: af00 add r7, sp, #0
  67854. 801b886: 6078 str r0, [r7, #4]
  67855. 801b888: 6039 str r1, [r7, #0]
  67856. struct tcp_pcb *pcb;
  67857. LWIP_ASSERT("tcp_remove_listener: invalid listener", lpcb != NULL);
  67858. 801b88a: 683b ldr r3, [r7, #0]
  67859. 801b88c: 2b00 cmp r3, #0
  67860. 801b88e: d105 bne.n 801b89c <tcp_remove_listener+0x1c>
  67861. 801b890: 4b0d ldr r3, [pc, #52] @ (801b8c8 <tcp_remove_listener+0x48>)
  67862. 801b892: 22ff movs r2, #255 @ 0xff
  67863. 801b894: 490d ldr r1, [pc, #52] @ (801b8cc <tcp_remove_listener+0x4c>)
  67864. 801b896: 480e ldr r0, [pc, #56] @ (801b8d0 <tcp_remove_listener+0x50>)
  67865. 801b898: f00e ff60 bl 802a75c <iprintf>
  67866. for (pcb = list; pcb != NULL; pcb = pcb->next) {
  67867. 801b89c: 687b ldr r3, [r7, #4]
  67868. 801b89e: 60fb str r3, [r7, #12]
  67869. 801b8a0: e00a b.n 801b8b8 <tcp_remove_listener+0x38>
  67870. if (pcb->listener == lpcb) {
  67871. 801b8a2: 68fb ldr r3, [r7, #12]
  67872. 801b8a4: 6fdb ldr r3, [r3, #124] @ 0x7c
  67873. 801b8a6: 683a ldr r2, [r7, #0]
  67874. 801b8a8: 429a cmp r2, r3
  67875. 801b8aa: d102 bne.n 801b8b2 <tcp_remove_listener+0x32>
  67876. pcb->listener = NULL;
  67877. 801b8ac: 68fb ldr r3, [r7, #12]
  67878. 801b8ae: 2200 movs r2, #0
  67879. 801b8b0: 67da str r2, [r3, #124] @ 0x7c
  67880. for (pcb = list; pcb != NULL; pcb = pcb->next) {
  67881. 801b8b2: 68fb ldr r3, [r7, #12]
  67882. 801b8b4: 68db ldr r3, [r3, #12]
  67883. 801b8b6: 60fb str r3, [r7, #12]
  67884. 801b8b8: 68fb ldr r3, [r7, #12]
  67885. 801b8ba: 2b00 cmp r3, #0
  67886. 801b8bc: d1f1 bne.n 801b8a2 <tcp_remove_listener+0x22>
  67887. }
  67888. }
  67889. }
  67890. 801b8be: bf00 nop
  67891. 801b8c0: bf00 nop
  67892. 801b8c2: 3710 adds r7, #16
  67893. 801b8c4: 46bd mov sp, r7
  67894. 801b8c6: bd80 pop {r7, pc}
  67895. 801b8c8: 0802f48c .word 0x0802f48c
  67896. 801b8cc: 0802f514 .word 0x0802f514
  67897. 801b8d0: 0802f4d0 .word 0x0802f4d0
  67898. 0801b8d4 <tcp_listen_closed>:
  67899. /** Called when a listen pcb is closed. Iterates all pcb lists and removes the
  67900. * closed listener pcb from pcb->listener if matching.
  67901. */
  67902. static void
  67903. tcp_listen_closed(struct tcp_pcb *pcb)
  67904. {
  67905. 801b8d4: b580 push {r7, lr}
  67906. 801b8d6: b084 sub sp, #16
  67907. 801b8d8: af00 add r7, sp, #0
  67908. 801b8da: 6078 str r0, [r7, #4]
  67909. #if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG
  67910. size_t i;
  67911. LWIP_ASSERT("pcb != NULL", pcb != NULL);
  67912. 801b8dc: 687b ldr r3, [r7, #4]
  67913. 801b8de: 2b00 cmp r3, #0
  67914. 801b8e0: d106 bne.n 801b8f0 <tcp_listen_closed+0x1c>
  67915. 801b8e2: 4b14 ldr r3, [pc, #80] @ (801b934 <tcp_listen_closed+0x60>)
  67916. 801b8e4: f240 1211 movw r2, #273 @ 0x111
  67917. 801b8e8: 4913 ldr r1, [pc, #76] @ (801b938 <tcp_listen_closed+0x64>)
  67918. 801b8ea: 4814 ldr r0, [pc, #80] @ (801b93c <tcp_listen_closed+0x68>)
  67919. 801b8ec: f00e ff36 bl 802a75c <iprintf>
  67920. LWIP_ASSERT("pcb->state == LISTEN", pcb->state == LISTEN);
  67921. 801b8f0: 687b ldr r3, [r7, #4]
  67922. 801b8f2: 7d1b ldrb r3, [r3, #20]
  67923. 801b8f4: 2b01 cmp r3, #1
  67924. 801b8f6: d006 beq.n 801b906 <tcp_listen_closed+0x32>
  67925. 801b8f8: 4b0e ldr r3, [pc, #56] @ (801b934 <tcp_listen_closed+0x60>)
  67926. 801b8fa: f44f 7289 mov.w r2, #274 @ 0x112
  67927. 801b8fe: 4910 ldr r1, [pc, #64] @ (801b940 <tcp_listen_closed+0x6c>)
  67928. 801b900: 480e ldr r0, [pc, #56] @ (801b93c <tcp_listen_closed+0x68>)
  67929. 801b902: f00e ff2b bl 802a75c <iprintf>
  67930. for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) {
  67931. 801b906: 2301 movs r3, #1
  67932. 801b908: 60fb str r3, [r7, #12]
  67933. 801b90a: e00b b.n 801b924 <tcp_listen_closed+0x50>
  67934. tcp_remove_listener(*tcp_pcb_lists[i], (struct tcp_pcb_listen *)pcb);
  67935. 801b90c: 4a0d ldr r2, [pc, #52] @ (801b944 <tcp_listen_closed+0x70>)
  67936. 801b90e: 68fb ldr r3, [r7, #12]
  67937. 801b910: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  67938. 801b914: 681b ldr r3, [r3, #0]
  67939. 801b916: 6879 ldr r1, [r7, #4]
  67940. 801b918: 4618 mov r0, r3
  67941. 801b91a: f7ff ffb1 bl 801b880 <tcp_remove_listener>
  67942. for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) {
  67943. 801b91e: 68fb ldr r3, [r7, #12]
  67944. 801b920: 3301 adds r3, #1
  67945. 801b922: 60fb str r3, [r7, #12]
  67946. 801b924: 68fb ldr r3, [r7, #12]
  67947. 801b926: 2b03 cmp r3, #3
  67948. 801b928: d9f0 bls.n 801b90c <tcp_listen_closed+0x38>
  67949. }
  67950. #endif
  67951. LWIP_UNUSED_ARG(pcb);
  67952. }
  67953. 801b92a: bf00 nop
  67954. 801b92c: bf00 nop
  67955. 801b92e: 3710 adds r7, #16
  67956. 801b930: 46bd mov sp, r7
  67957. 801b932: bd80 pop {r7, pc}
  67958. 801b934: 0802f48c .word 0x0802f48c
  67959. 801b938: 0802f53c .word 0x0802f53c
  67960. 801b93c: 0802f4d0 .word 0x0802f4d0
  67961. 801b940: 0802f548 .word 0x0802f548
  67962. 801b944: 08031b20 .word 0x08031b20
  67963. 0801b948 <tcp_close_shutdown>:
  67964. * @return ERR_OK if connection has been closed
  67965. * another err_t if closing failed and pcb is not freed
  67966. */
  67967. static err_t
  67968. tcp_close_shutdown(struct tcp_pcb *pcb, u8_t rst_on_unacked_data)
  67969. {
  67970. 801b948: b5b0 push {r4, r5, r7, lr}
  67971. 801b94a: b088 sub sp, #32
  67972. 801b94c: af04 add r7, sp, #16
  67973. 801b94e: 6078 str r0, [r7, #4]
  67974. 801b950: 460b mov r3, r1
  67975. 801b952: 70fb strb r3, [r7, #3]
  67976. LWIP_ASSERT("tcp_close_shutdown: invalid pcb", pcb != NULL);
  67977. 801b954: 687b ldr r3, [r7, #4]
  67978. 801b956: 2b00 cmp r3, #0
  67979. 801b958: d106 bne.n 801b968 <tcp_close_shutdown+0x20>
  67980. 801b95a: 4b63 ldr r3, [pc, #396] @ (801bae8 <tcp_close_shutdown+0x1a0>)
  67981. 801b95c: f44f 72af mov.w r2, #350 @ 0x15e
  67982. 801b960: 4962 ldr r1, [pc, #392] @ (801baec <tcp_close_shutdown+0x1a4>)
  67983. 801b962: 4863 ldr r0, [pc, #396] @ (801baf0 <tcp_close_shutdown+0x1a8>)
  67984. 801b964: f00e fefa bl 802a75c <iprintf>
  67985. if (rst_on_unacked_data && ((pcb->state == ESTABLISHED) || (pcb->state == CLOSE_WAIT))) {
  67986. 801b968: 78fb ldrb r3, [r7, #3]
  67987. 801b96a: 2b00 cmp r3, #0
  67988. 801b96c: d067 beq.n 801ba3e <tcp_close_shutdown+0xf6>
  67989. 801b96e: 687b ldr r3, [r7, #4]
  67990. 801b970: 7d1b ldrb r3, [r3, #20]
  67991. 801b972: 2b04 cmp r3, #4
  67992. 801b974: d003 beq.n 801b97e <tcp_close_shutdown+0x36>
  67993. 801b976: 687b ldr r3, [r7, #4]
  67994. 801b978: 7d1b ldrb r3, [r3, #20]
  67995. 801b97a: 2b07 cmp r3, #7
  67996. 801b97c: d15f bne.n 801ba3e <tcp_close_shutdown+0xf6>
  67997. if ((pcb->refused_data != NULL) || (pcb->rcv_wnd != TCP_WND_MAX(pcb))) {
  67998. 801b97e: 687b ldr r3, [r7, #4]
  67999. 801b980: 6f9b ldr r3, [r3, #120] @ 0x78
  68000. 801b982: 2b00 cmp r3, #0
  68001. 801b984: d105 bne.n 801b992 <tcp_close_shutdown+0x4a>
  68002. 801b986: 687b ldr r3, [r7, #4]
  68003. 801b988: 8d1b ldrh r3, [r3, #40] @ 0x28
  68004. 801b98a: f241 62d0 movw r2, #5840 @ 0x16d0
  68005. 801b98e: 4293 cmp r3, r2
  68006. 801b990: d055 beq.n 801ba3e <tcp_close_shutdown+0xf6>
  68007. /* Not all data received by application, send RST to tell the remote
  68008. side about this. */
  68009. LWIP_ASSERT("pcb->flags & TF_RXCLOSED", pcb->flags & TF_RXCLOSED);
  68010. 801b992: 687b ldr r3, [r7, #4]
  68011. 801b994: 8b5b ldrh r3, [r3, #26]
  68012. 801b996: f003 0310 and.w r3, r3, #16
  68013. 801b99a: 2b00 cmp r3, #0
  68014. 801b99c: d106 bne.n 801b9ac <tcp_close_shutdown+0x64>
  68015. 801b99e: 4b52 ldr r3, [pc, #328] @ (801bae8 <tcp_close_shutdown+0x1a0>)
  68016. 801b9a0: f44f 72b2 mov.w r2, #356 @ 0x164
  68017. 801b9a4: 4953 ldr r1, [pc, #332] @ (801baf4 <tcp_close_shutdown+0x1ac>)
  68018. 801b9a6: 4852 ldr r0, [pc, #328] @ (801baf0 <tcp_close_shutdown+0x1a8>)
  68019. 801b9a8: f00e fed8 bl 802a75c <iprintf>
  68020. /* don't call tcp_abort here: we must not deallocate the pcb since
  68021. that might not be expected when calling tcp_close */
  68022. tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip,
  68023. 801b9ac: 687b ldr r3, [r7, #4]
  68024. 801b9ae: 6d18 ldr r0, [r3, #80] @ 0x50
  68025. 801b9b0: 687b ldr r3, [r7, #4]
  68026. 801b9b2: 6a5c ldr r4, [r3, #36] @ 0x24
  68027. 801b9b4: 687d ldr r5, [r7, #4]
  68028. 801b9b6: 687b ldr r3, [r7, #4]
  68029. 801b9b8: 3304 adds r3, #4
  68030. 801b9ba: 687a ldr r2, [r7, #4]
  68031. 801b9bc: 8ad2 ldrh r2, [r2, #22]
  68032. 801b9be: 6879 ldr r1, [r7, #4]
  68033. 801b9c0: 8b09 ldrh r1, [r1, #24]
  68034. 801b9c2: 9102 str r1, [sp, #8]
  68035. 801b9c4: 9201 str r2, [sp, #4]
  68036. 801b9c6: 9300 str r3, [sp, #0]
  68037. 801b9c8: 462b mov r3, r5
  68038. 801b9ca: 4622 mov r2, r4
  68039. 801b9cc: 4601 mov r1, r0
  68040. 801b9ce: 6878 ldr r0, [r7, #4]
  68041. 801b9d0: f005 fdfa bl 80215c8 <tcp_rst>
  68042. pcb->local_port, pcb->remote_port);
  68043. tcp_pcb_purge(pcb);
  68044. 801b9d4: 6878 ldr r0, [r7, #4]
  68045. 801b9d6: f001 fb67 bl 801d0a8 <tcp_pcb_purge>
  68046. TCP_RMV_ACTIVE(pcb);
  68047. 801b9da: 4b47 ldr r3, [pc, #284] @ (801baf8 <tcp_close_shutdown+0x1b0>)
  68048. 801b9dc: 681b ldr r3, [r3, #0]
  68049. 801b9de: 687a ldr r2, [r7, #4]
  68050. 801b9e0: 429a cmp r2, r3
  68051. 801b9e2: d105 bne.n 801b9f0 <tcp_close_shutdown+0xa8>
  68052. 801b9e4: 4b44 ldr r3, [pc, #272] @ (801baf8 <tcp_close_shutdown+0x1b0>)
  68053. 801b9e6: 681b ldr r3, [r3, #0]
  68054. 801b9e8: 68db ldr r3, [r3, #12]
  68055. 801b9ea: 4a43 ldr r2, [pc, #268] @ (801baf8 <tcp_close_shutdown+0x1b0>)
  68056. 801b9ec: 6013 str r3, [r2, #0]
  68057. 801b9ee: e013 b.n 801ba18 <tcp_close_shutdown+0xd0>
  68058. 801b9f0: 4b41 ldr r3, [pc, #260] @ (801baf8 <tcp_close_shutdown+0x1b0>)
  68059. 801b9f2: 681b ldr r3, [r3, #0]
  68060. 801b9f4: 60fb str r3, [r7, #12]
  68061. 801b9f6: e00c b.n 801ba12 <tcp_close_shutdown+0xca>
  68062. 801b9f8: 68fb ldr r3, [r7, #12]
  68063. 801b9fa: 68db ldr r3, [r3, #12]
  68064. 801b9fc: 687a ldr r2, [r7, #4]
  68065. 801b9fe: 429a cmp r2, r3
  68066. 801ba00: d104 bne.n 801ba0c <tcp_close_shutdown+0xc4>
  68067. 801ba02: 687b ldr r3, [r7, #4]
  68068. 801ba04: 68da ldr r2, [r3, #12]
  68069. 801ba06: 68fb ldr r3, [r7, #12]
  68070. 801ba08: 60da str r2, [r3, #12]
  68071. 801ba0a: e005 b.n 801ba18 <tcp_close_shutdown+0xd0>
  68072. 801ba0c: 68fb ldr r3, [r7, #12]
  68073. 801ba0e: 68db ldr r3, [r3, #12]
  68074. 801ba10: 60fb str r3, [r7, #12]
  68075. 801ba12: 68fb ldr r3, [r7, #12]
  68076. 801ba14: 2b00 cmp r3, #0
  68077. 801ba16: d1ef bne.n 801b9f8 <tcp_close_shutdown+0xb0>
  68078. 801ba18: 687b ldr r3, [r7, #4]
  68079. 801ba1a: 2200 movs r2, #0
  68080. 801ba1c: 60da str r2, [r3, #12]
  68081. 801ba1e: 4b37 ldr r3, [pc, #220] @ (801bafc <tcp_close_shutdown+0x1b4>)
  68082. 801ba20: 2201 movs r2, #1
  68083. 801ba22: 701a strb r2, [r3, #0]
  68084. /* Deallocate the pcb since we already sent a RST for it */
  68085. if (tcp_input_pcb == pcb) {
  68086. 801ba24: 4b36 ldr r3, [pc, #216] @ (801bb00 <tcp_close_shutdown+0x1b8>)
  68087. 801ba26: 681b ldr r3, [r3, #0]
  68088. 801ba28: 687a ldr r2, [r7, #4]
  68089. 801ba2a: 429a cmp r2, r3
  68090. 801ba2c: d102 bne.n 801ba34 <tcp_close_shutdown+0xec>
  68091. /* prevent using a deallocated pcb: free it from tcp_input later */
  68092. tcp_trigger_input_pcb_close();
  68093. 801ba2e: f003 ffff bl 801fa30 <tcp_trigger_input_pcb_close>
  68094. 801ba32: e002 b.n 801ba3a <tcp_close_shutdown+0xf2>
  68095. } else {
  68096. tcp_free(pcb);
  68097. 801ba34: 6878 ldr r0, [r7, #4]
  68098. 801ba36: f7ff fed5 bl 801b7e4 <tcp_free>
  68099. }
  68100. return ERR_OK;
  68101. 801ba3a: 2300 movs r3, #0
  68102. 801ba3c: e050 b.n 801bae0 <tcp_close_shutdown+0x198>
  68103. }
  68104. }
  68105. /* - states which free the pcb are handled here,
  68106. - states which send FIN and change state are handled in tcp_close_shutdown_fin() */
  68107. switch (pcb->state) {
  68108. 801ba3e: 687b ldr r3, [r7, #4]
  68109. 801ba40: 7d1b ldrb r3, [r3, #20]
  68110. 801ba42: 2b02 cmp r3, #2
  68111. 801ba44: d03b beq.n 801babe <tcp_close_shutdown+0x176>
  68112. 801ba46: 2b02 cmp r3, #2
  68113. 801ba48: dc44 bgt.n 801bad4 <tcp_close_shutdown+0x18c>
  68114. 801ba4a: 2b00 cmp r3, #0
  68115. 801ba4c: d002 beq.n 801ba54 <tcp_close_shutdown+0x10c>
  68116. 801ba4e: 2b01 cmp r3, #1
  68117. 801ba50: d02a beq.n 801baa8 <tcp_close_shutdown+0x160>
  68118. 801ba52: e03f b.n 801bad4 <tcp_close_shutdown+0x18c>
  68119. * and the user needs some way to free it should the need arise.
  68120. * Calling tcp_close() with a pcb that has already been closed, (i.e. twice)
  68121. * or for a pcb that has been used and then entered the CLOSED state
  68122. * is erroneous, but this should never happen as the pcb has in those cases
  68123. * been freed, and so any remaining handles are bogus. */
  68124. if (pcb->local_port != 0) {
  68125. 801ba54: 687b ldr r3, [r7, #4]
  68126. 801ba56: 8adb ldrh r3, [r3, #22]
  68127. 801ba58: 2b00 cmp r3, #0
  68128. 801ba5a: d021 beq.n 801baa0 <tcp_close_shutdown+0x158>
  68129. TCP_RMV(&tcp_bound_pcbs, pcb);
  68130. 801ba5c: 4b29 ldr r3, [pc, #164] @ (801bb04 <tcp_close_shutdown+0x1bc>)
  68131. 801ba5e: 681b ldr r3, [r3, #0]
  68132. 801ba60: 687a ldr r2, [r7, #4]
  68133. 801ba62: 429a cmp r2, r3
  68134. 801ba64: d105 bne.n 801ba72 <tcp_close_shutdown+0x12a>
  68135. 801ba66: 4b27 ldr r3, [pc, #156] @ (801bb04 <tcp_close_shutdown+0x1bc>)
  68136. 801ba68: 681b ldr r3, [r3, #0]
  68137. 801ba6a: 68db ldr r3, [r3, #12]
  68138. 801ba6c: 4a25 ldr r2, [pc, #148] @ (801bb04 <tcp_close_shutdown+0x1bc>)
  68139. 801ba6e: 6013 str r3, [r2, #0]
  68140. 801ba70: e013 b.n 801ba9a <tcp_close_shutdown+0x152>
  68141. 801ba72: 4b24 ldr r3, [pc, #144] @ (801bb04 <tcp_close_shutdown+0x1bc>)
  68142. 801ba74: 681b ldr r3, [r3, #0]
  68143. 801ba76: 60bb str r3, [r7, #8]
  68144. 801ba78: e00c b.n 801ba94 <tcp_close_shutdown+0x14c>
  68145. 801ba7a: 68bb ldr r3, [r7, #8]
  68146. 801ba7c: 68db ldr r3, [r3, #12]
  68147. 801ba7e: 687a ldr r2, [r7, #4]
  68148. 801ba80: 429a cmp r2, r3
  68149. 801ba82: d104 bne.n 801ba8e <tcp_close_shutdown+0x146>
  68150. 801ba84: 687b ldr r3, [r7, #4]
  68151. 801ba86: 68da ldr r2, [r3, #12]
  68152. 801ba88: 68bb ldr r3, [r7, #8]
  68153. 801ba8a: 60da str r2, [r3, #12]
  68154. 801ba8c: e005 b.n 801ba9a <tcp_close_shutdown+0x152>
  68155. 801ba8e: 68bb ldr r3, [r7, #8]
  68156. 801ba90: 68db ldr r3, [r3, #12]
  68157. 801ba92: 60bb str r3, [r7, #8]
  68158. 801ba94: 68bb ldr r3, [r7, #8]
  68159. 801ba96: 2b00 cmp r3, #0
  68160. 801ba98: d1ef bne.n 801ba7a <tcp_close_shutdown+0x132>
  68161. 801ba9a: 687b ldr r3, [r7, #4]
  68162. 801ba9c: 2200 movs r2, #0
  68163. 801ba9e: 60da str r2, [r3, #12]
  68164. }
  68165. tcp_free(pcb);
  68166. 801baa0: 6878 ldr r0, [r7, #4]
  68167. 801baa2: f7ff fe9f bl 801b7e4 <tcp_free>
  68168. break;
  68169. 801baa6: e01a b.n 801bade <tcp_close_shutdown+0x196>
  68170. case LISTEN:
  68171. tcp_listen_closed(pcb);
  68172. 801baa8: 6878 ldr r0, [r7, #4]
  68173. 801baaa: f7ff ff13 bl 801b8d4 <tcp_listen_closed>
  68174. tcp_pcb_remove(&tcp_listen_pcbs.pcbs, pcb);
  68175. 801baae: 6879 ldr r1, [r7, #4]
  68176. 801bab0: 4815 ldr r0, [pc, #84] @ (801bb08 <tcp_close_shutdown+0x1c0>)
  68177. 801bab2: f001 fb49 bl 801d148 <tcp_pcb_remove>
  68178. tcp_free_listen(pcb);
  68179. 801bab6: 6878 ldr r0, [r7, #4]
  68180. 801bab8: f7ff feb0 bl 801b81c <tcp_free_listen>
  68181. break;
  68182. 801babc: e00f b.n 801bade <tcp_close_shutdown+0x196>
  68183. case SYN_SENT:
  68184. TCP_PCB_REMOVE_ACTIVE(pcb);
  68185. 801babe: 6879 ldr r1, [r7, #4]
  68186. 801bac0: 480d ldr r0, [pc, #52] @ (801baf8 <tcp_close_shutdown+0x1b0>)
  68187. 801bac2: f001 fb41 bl 801d148 <tcp_pcb_remove>
  68188. 801bac6: 4b0d ldr r3, [pc, #52] @ (801bafc <tcp_close_shutdown+0x1b4>)
  68189. 801bac8: 2201 movs r2, #1
  68190. 801baca: 701a strb r2, [r3, #0]
  68191. tcp_free(pcb);
  68192. 801bacc: 6878 ldr r0, [r7, #4]
  68193. 801bace: f7ff fe89 bl 801b7e4 <tcp_free>
  68194. MIB2_STATS_INC(mib2.tcpattemptfails);
  68195. break;
  68196. 801bad2: e004 b.n 801bade <tcp_close_shutdown+0x196>
  68197. default:
  68198. return tcp_close_shutdown_fin(pcb);
  68199. 801bad4: 6878 ldr r0, [r7, #4]
  68200. 801bad6: f000 f819 bl 801bb0c <tcp_close_shutdown_fin>
  68201. 801bada: 4603 mov r3, r0
  68202. 801badc: e000 b.n 801bae0 <tcp_close_shutdown+0x198>
  68203. }
  68204. return ERR_OK;
  68205. 801bade: 2300 movs r3, #0
  68206. }
  68207. 801bae0: 4618 mov r0, r3
  68208. 801bae2: 3710 adds r7, #16
  68209. 801bae4: 46bd mov sp, r7
  68210. 801bae6: bdb0 pop {r4, r5, r7, pc}
  68211. 801bae8: 0802f48c .word 0x0802f48c
  68212. 801baec: 0802f560 .word 0x0802f560
  68213. 801baf0: 0802f4d0 .word 0x0802f4d0
  68214. 801baf4: 0802f580 .word 0x0802f580
  68215. 801baf8: 2402af74 .word 0x2402af74
  68216. 801bafc: 2402af7c .word 0x2402af7c
  68217. 801bb00: 2402afb8 .word 0x2402afb8
  68218. 801bb04: 2402af6c .word 0x2402af6c
  68219. 801bb08: 2402af70 .word 0x2402af70
  68220. 0801bb0c <tcp_close_shutdown_fin>:
  68221. static err_t
  68222. tcp_close_shutdown_fin(struct tcp_pcb *pcb)
  68223. {
  68224. 801bb0c: b580 push {r7, lr}
  68225. 801bb0e: b084 sub sp, #16
  68226. 801bb10: af00 add r7, sp, #0
  68227. 801bb12: 6078 str r0, [r7, #4]
  68228. err_t err;
  68229. LWIP_ASSERT("pcb != NULL", pcb != NULL);
  68230. 801bb14: 687b ldr r3, [r7, #4]
  68231. 801bb16: 2b00 cmp r3, #0
  68232. 801bb18: d106 bne.n 801bb28 <tcp_close_shutdown_fin+0x1c>
  68233. 801bb1a: 4b2e ldr r3, [pc, #184] @ (801bbd4 <tcp_close_shutdown_fin+0xc8>)
  68234. 801bb1c: f44f 72ce mov.w r2, #412 @ 0x19c
  68235. 801bb20: 492d ldr r1, [pc, #180] @ (801bbd8 <tcp_close_shutdown_fin+0xcc>)
  68236. 801bb22: 482e ldr r0, [pc, #184] @ (801bbdc <tcp_close_shutdown_fin+0xd0>)
  68237. 801bb24: f00e fe1a bl 802a75c <iprintf>
  68238. switch (pcb->state) {
  68239. 801bb28: 687b ldr r3, [r7, #4]
  68240. 801bb2a: 7d1b ldrb r3, [r3, #20]
  68241. 801bb2c: 2b07 cmp r3, #7
  68242. 801bb2e: d020 beq.n 801bb72 <tcp_close_shutdown_fin+0x66>
  68243. 801bb30: 2b07 cmp r3, #7
  68244. 801bb32: dc2b bgt.n 801bb8c <tcp_close_shutdown_fin+0x80>
  68245. 801bb34: 2b03 cmp r3, #3
  68246. 801bb36: d002 beq.n 801bb3e <tcp_close_shutdown_fin+0x32>
  68247. 801bb38: 2b04 cmp r3, #4
  68248. 801bb3a: d00d beq.n 801bb58 <tcp_close_shutdown_fin+0x4c>
  68249. 801bb3c: e026 b.n 801bb8c <tcp_close_shutdown_fin+0x80>
  68250. case SYN_RCVD:
  68251. err = tcp_send_fin(pcb);
  68252. 801bb3e: 6878 ldr r0, [r7, #4]
  68253. 801bb40: f004 fe42 bl 80207c8 <tcp_send_fin>
  68254. 801bb44: 4603 mov r3, r0
  68255. 801bb46: 73fb strb r3, [r7, #15]
  68256. if (err == ERR_OK) {
  68257. 801bb48: f997 300f ldrsb.w r3, [r7, #15]
  68258. 801bb4c: 2b00 cmp r3, #0
  68259. 801bb4e: d11f bne.n 801bb90 <tcp_close_shutdown_fin+0x84>
  68260. tcp_backlog_accepted(pcb);
  68261. MIB2_STATS_INC(mib2.tcpattemptfails);
  68262. pcb->state = FIN_WAIT_1;
  68263. 801bb50: 687b ldr r3, [r7, #4]
  68264. 801bb52: 2205 movs r2, #5
  68265. 801bb54: 751a strb r2, [r3, #20]
  68266. }
  68267. break;
  68268. 801bb56: e01b b.n 801bb90 <tcp_close_shutdown_fin+0x84>
  68269. case ESTABLISHED:
  68270. err = tcp_send_fin(pcb);
  68271. 801bb58: 6878 ldr r0, [r7, #4]
  68272. 801bb5a: f004 fe35 bl 80207c8 <tcp_send_fin>
  68273. 801bb5e: 4603 mov r3, r0
  68274. 801bb60: 73fb strb r3, [r7, #15]
  68275. if (err == ERR_OK) {
  68276. 801bb62: f997 300f ldrsb.w r3, [r7, #15]
  68277. 801bb66: 2b00 cmp r3, #0
  68278. 801bb68: d114 bne.n 801bb94 <tcp_close_shutdown_fin+0x88>
  68279. MIB2_STATS_INC(mib2.tcpestabresets);
  68280. pcb->state = FIN_WAIT_1;
  68281. 801bb6a: 687b ldr r3, [r7, #4]
  68282. 801bb6c: 2205 movs r2, #5
  68283. 801bb6e: 751a strb r2, [r3, #20]
  68284. }
  68285. break;
  68286. 801bb70: e010 b.n 801bb94 <tcp_close_shutdown_fin+0x88>
  68287. case CLOSE_WAIT:
  68288. err = tcp_send_fin(pcb);
  68289. 801bb72: 6878 ldr r0, [r7, #4]
  68290. 801bb74: f004 fe28 bl 80207c8 <tcp_send_fin>
  68291. 801bb78: 4603 mov r3, r0
  68292. 801bb7a: 73fb strb r3, [r7, #15]
  68293. if (err == ERR_OK) {
  68294. 801bb7c: f997 300f ldrsb.w r3, [r7, #15]
  68295. 801bb80: 2b00 cmp r3, #0
  68296. 801bb82: d109 bne.n 801bb98 <tcp_close_shutdown_fin+0x8c>
  68297. MIB2_STATS_INC(mib2.tcpestabresets);
  68298. pcb->state = LAST_ACK;
  68299. 801bb84: 687b ldr r3, [r7, #4]
  68300. 801bb86: 2209 movs r2, #9
  68301. 801bb88: 751a strb r2, [r3, #20]
  68302. }
  68303. break;
  68304. 801bb8a: e005 b.n 801bb98 <tcp_close_shutdown_fin+0x8c>
  68305. default:
  68306. /* Has already been closed, do nothing. */
  68307. return ERR_OK;
  68308. 801bb8c: 2300 movs r3, #0
  68309. 801bb8e: e01c b.n 801bbca <tcp_close_shutdown_fin+0xbe>
  68310. break;
  68311. 801bb90: bf00 nop
  68312. 801bb92: e002 b.n 801bb9a <tcp_close_shutdown_fin+0x8e>
  68313. break;
  68314. 801bb94: bf00 nop
  68315. 801bb96: e000 b.n 801bb9a <tcp_close_shutdown_fin+0x8e>
  68316. break;
  68317. 801bb98: bf00 nop
  68318. }
  68319. if (err == ERR_OK) {
  68320. 801bb9a: f997 300f ldrsb.w r3, [r7, #15]
  68321. 801bb9e: 2b00 cmp r3, #0
  68322. 801bba0: d103 bne.n 801bbaa <tcp_close_shutdown_fin+0x9e>
  68323. /* To ensure all data has been sent when tcp_close returns, we have
  68324. to make sure tcp_output doesn't fail.
  68325. Since we don't really have to ensure all data has been sent when tcp_close
  68326. returns (unsent data is sent from tcp timer functions, also), we don't care
  68327. for the return value of tcp_output for now. */
  68328. tcp_output(pcb);
  68329. 801bba2: 6878 ldr r0, [r7, #4]
  68330. 801bba4: f004 ff4e bl 8020a44 <tcp_output>
  68331. 801bba8: e00d b.n 801bbc6 <tcp_close_shutdown_fin+0xba>
  68332. } else if (err == ERR_MEM) {
  68333. 801bbaa: f997 300f ldrsb.w r3, [r7, #15]
  68334. 801bbae: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  68335. 801bbb2: d108 bne.n 801bbc6 <tcp_close_shutdown_fin+0xba>
  68336. /* Mark this pcb for closing. Closing is retried from tcp_tmr. */
  68337. tcp_set_flags(pcb, TF_CLOSEPEND);
  68338. 801bbb4: 687b ldr r3, [r7, #4]
  68339. 801bbb6: 8b5b ldrh r3, [r3, #26]
  68340. 801bbb8: f043 0308 orr.w r3, r3, #8
  68341. 801bbbc: b29a uxth r2, r3
  68342. 801bbbe: 687b ldr r3, [r7, #4]
  68343. 801bbc0: 835a strh r2, [r3, #26]
  68344. /* We have to return ERR_OK from here to indicate to the callers that this
  68345. pcb should not be used any more as it will be freed soon via tcp_tmr.
  68346. This is OK here since sending FIN does not guarantee a time frime for
  68347. actually freeing the pcb, either (it is left in closure states for
  68348. remote ACK or timeout) */
  68349. return ERR_OK;
  68350. 801bbc2: 2300 movs r3, #0
  68351. 801bbc4: e001 b.n 801bbca <tcp_close_shutdown_fin+0xbe>
  68352. }
  68353. return err;
  68354. 801bbc6: f997 300f ldrsb.w r3, [r7, #15]
  68355. }
  68356. 801bbca: 4618 mov r0, r3
  68357. 801bbcc: 3710 adds r7, #16
  68358. 801bbce: 46bd mov sp, r7
  68359. 801bbd0: bd80 pop {r7, pc}
  68360. 801bbd2: bf00 nop
  68361. 801bbd4: 0802f48c .word 0x0802f48c
  68362. 801bbd8: 0802f53c .word 0x0802f53c
  68363. 801bbdc: 0802f4d0 .word 0x0802f4d0
  68364. 0801bbe0 <tcp_close>:
  68365. * @return ERR_OK if connection has been closed
  68366. * another err_t if closing failed and pcb is not freed
  68367. */
  68368. err_t
  68369. tcp_close(struct tcp_pcb *pcb)
  68370. {
  68371. 801bbe0: b580 push {r7, lr}
  68372. 801bbe2: b082 sub sp, #8
  68373. 801bbe4: af00 add r7, sp, #0
  68374. 801bbe6: 6078 str r0, [r7, #4]
  68375. LWIP_ASSERT_CORE_LOCKED();
  68376. 801bbe8: f7f5 f98a bl 8010f00 <sys_check_core_locking>
  68377. LWIP_ERROR("tcp_close: invalid pcb", pcb != NULL, return ERR_ARG);
  68378. 801bbec: 687b ldr r3, [r7, #4]
  68379. 801bbee: 2b00 cmp r3, #0
  68380. 801bbf0: d109 bne.n 801bc06 <tcp_close+0x26>
  68381. 801bbf2: 4b0f ldr r3, [pc, #60] @ (801bc30 <tcp_close+0x50>)
  68382. 801bbf4: f44f 72f4 mov.w r2, #488 @ 0x1e8
  68383. 801bbf8: 490e ldr r1, [pc, #56] @ (801bc34 <tcp_close+0x54>)
  68384. 801bbfa: 480f ldr r0, [pc, #60] @ (801bc38 <tcp_close+0x58>)
  68385. 801bbfc: f00e fdae bl 802a75c <iprintf>
  68386. 801bc00: f06f 030f mvn.w r3, #15
  68387. 801bc04: e00f b.n 801bc26 <tcp_close+0x46>
  68388. LWIP_DEBUGF(TCP_DEBUG, ("tcp_close: closing in "));
  68389. tcp_debug_print_state(pcb->state);
  68390. if (pcb->state != LISTEN) {
  68391. 801bc06: 687b ldr r3, [r7, #4]
  68392. 801bc08: 7d1b ldrb r3, [r3, #20]
  68393. 801bc0a: 2b01 cmp r3, #1
  68394. 801bc0c: d006 beq.n 801bc1c <tcp_close+0x3c>
  68395. /* Set a flag not to receive any more data... */
  68396. tcp_set_flags(pcb, TF_RXCLOSED);
  68397. 801bc0e: 687b ldr r3, [r7, #4]
  68398. 801bc10: 8b5b ldrh r3, [r3, #26]
  68399. 801bc12: f043 0310 orr.w r3, r3, #16
  68400. 801bc16: b29a uxth r2, r3
  68401. 801bc18: 687b ldr r3, [r7, #4]
  68402. 801bc1a: 835a strh r2, [r3, #26]
  68403. }
  68404. /* ... and close */
  68405. return tcp_close_shutdown(pcb, 1);
  68406. 801bc1c: 2101 movs r1, #1
  68407. 801bc1e: 6878 ldr r0, [r7, #4]
  68408. 801bc20: f7ff fe92 bl 801b948 <tcp_close_shutdown>
  68409. 801bc24: 4603 mov r3, r0
  68410. }
  68411. 801bc26: 4618 mov r0, r3
  68412. 801bc28: 3708 adds r7, #8
  68413. 801bc2a: 46bd mov sp, r7
  68414. 801bc2c: bd80 pop {r7, pc}
  68415. 801bc2e: bf00 nop
  68416. 801bc30: 0802f48c .word 0x0802f48c
  68417. 801bc34: 0802f59c .word 0x0802f59c
  68418. 801bc38: 0802f4d0 .word 0x0802f4d0
  68419. 0801bc3c <tcp_shutdown>:
  68420. * @return ERR_OK if shutdown succeeded (or the PCB has already been shut down)
  68421. * another err_t on error.
  68422. */
  68423. err_t
  68424. tcp_shutdown(struct tcp_pcb *pcb, int shut_rx, int shut_tx)
  68425. {
  68426. 801bc3c: b580 push {r7, lr}
  68427. 801bc3e: b084 sub sp, #16
  68428. 801bc40: af00 add r7, sp, #0
  68429. 801bc42: 60f8 str r0, [r7, #12]
  68430. 801bc44: 60b9 str r1, [r7, #8]
  68431. 801bc46: 607a str r2, [r7, #4]
  68432. LWIP_ASSERT_CORE_LOCKED();
  68433. 801bc48: f7f5 f95a bl 8010f00 <sys_check_core_locking>
  68434. LWIP_ERROR("tcp_shutdown: invalid pcb", pcb != NULL, return ERR_ARG);
  68435. 801bc4c: 68fb ldr r3, [r7, #12]
  68436. 801bc4e: 2b00 cmp r3, #0
  68437. 801bc50: d109 bne.n 801bc66 <tcp_shutdown+0x2a>
  68438. 801bc52: 4b26 ldr r3, [pc, #152] @ (801bcec <tcp_shutdown+0xb0>)
  68439. 801bc54: f240 2207 movw r2, #519 @ 0x207
  68440. 801bc58: 4925 ldr r1, [pc, #148] @ (801bcf0 <tcp_shutdown+0xb4>)
  68441. 801bc5a: 4826 ldr r0, [pc, #152] @ (801bcf4 <tcp_shutdown+0xb8>)
  68442. 801bc5c: f00e fd7e bl 802a75c <iprintf>
  68443. 801bc60: f06f 030f mvn.w r3, #15
  68444. 801bc64: e03d b.n 801bce2 <tcp_shutdown+0xa6>
  68445. if (pcb->state == LISTEN) {
  68446. 801bc66: 68fb ldr r3, [r7, #12]
  68447. 801bc68: 7d1b ldrb r3, [r3, #20]
  68448. 801bc6a: 2b01 cmp r3, #1
  68449. 801bc6c: d102 bne.n 801bc74 <tcp_shutdown+0x38>
  68450. return ERR_CONN;
  68451. 801bc6e: f06f 030a mvn.w r3, #10
  68452. 801bc72: e036 b.n 801bce2 <tcp_shutdown+0xa6>
  68453. }
  68454. if (shut_rx) {
  68455. 801bc74: 68bb ldr r3, [r7, #8]
  68456. 801bc76: 2b00 cmp r3, #0
  68457. 801bc78: d01b beq.n 801bcb2 <tcp_shutdown+0x76>
  68458. /* shut down the receive side: set a flag not to receive any more data... */
  68459. tcp_set_flags(pcb, TF_RXCLOSED);
  68460. 801bc7a: 68fb ldr r3, [r7, #12]
  68461. 801bc7c: 8b5b ldrh r3, [r3, #26]
  68462. 801bc7e: f043 0310 orr.w r3, r3, #16
  68463. 801bc82: b29a uxth r2, r3
  68464. 801bc84: 68fb ldr r3, [r7, #12]
  68465. 801bc86: 835a strh r2, [r3, #26]
  68466. if (shut_tx) {
  68467. 801bc88: 687b ldr r3, [r7, #4]
  68468. 801bc8a: 2b00 cmp r3, #0
  68469. 801bc8c: d005 beq.n 801bc9a <tcp_shutdown+0x5e>
  68470. /* shutting down the tx AND rx side is the same as closing for the raw API */
  68471. return tcp_close_shutdown(pcb, 1);
  68472. 801bc8e: 2101 movs r1, #1
  68473. 801bc90: 68f8 ldr r0, [r7, #12]
  68474. 801bc92: f7ff fe59 bl 801b948 <tcp_close_shutdown>
  68475. 801bc96: 4603 mov r3, r0
  68476. 801bc98: e023 b.n 801bce2 <tcp_shutdown+0xa6>
  68477. }
  68478. /* ... and free buffered data */
  68479. if (pcb->refused_data != NULL) {
  68480. 801bc9a: 68fb ldr r3, [r7, #12]
  68481. 801bc9c: 6f9b ldr r3, [r3, #120] @ 0x78
  68482. 801bc9e: 2b00 cmp r3, #0
  68483. 801bca0: d007 beq.n 801bcb2 <tcp_shutdown+0x76>
  68484. pbuf_free(pcb->refused_data);
  68485. 801bca2: 68fb ldr r3, [r7, #12]
  68486. 801bca4: 6f9b ldr r3, [r3, #120] @ 0x78
  68487. 801bca6: 4618 mov r0, r3
  68488. 801bca8: f7ff fae0 bl 801b26c <pbuf_free>
  68489. pcb->refused_data = NULL;
  68490. 801bcac: 68fb ldr r3, [r7, #12]
  68491. 801bcae: 2200 movs r2, #0
  68492. 801bcb0: 679a str r2, [r3, #120] @ 0x78
  68493. }
  68494. }
  68495. if (shut_tx) {
  68496. 801bcb2: 687b ldr r3, [r7, #4]
  68497. 801bcb4: 2b00 cmp r3, #0
  68498. 801bcb6: d013 beq.n 801bce0 <tcp_shutdown+0xa4>
  68499. /* This can't happen twice since if it succeeds, the pcb's state is changed.
  68500. Only close in these states as the others directly deallocate the PCB */
  68501. switch (pcb->state) {
  68502. 801bcb8: 68fb ldr r3, [r7, #12]
  68503. 801bcba: 7d1b ldrb r3, [r3, #20]
  68504. 801bcbc: 2b04 cmp r3, #4
  68505. 801bcbe: dc02 bgt.n 801bcc6 <tcp_shutdown+0x8a>
  68506. 801bcc0: 2b03 cmp r3, #3
  68507. 801bcc2: da02 bge.n 801bcca <tcp_shutdown+0x8e>
  68508. 801bcc4: e009 b.n 801bcda <tcp_shutdown+0x9e>
  68509. 801bcc6: 2b07 cmp r3, #7
  68510. 801bcc8: d107 bne.n 801bcda <tcp_shutdown+0x9e>
  68511. case SYN_RCVD:
  68512. case ESTABLISHED:
  68513. case CLOSE_WAIT:
  68514. return tcp_close_shutdown(pcb, (u8_t)shut_rx);
  68515. 801bcca: 68bb ldr r3, [r7, #8]
  68516. 801bccc: b2db uxtb r3, r3
  68517. 801bcce: 4619 mov r1, r3
  68518. 801bcd0: 68f8 ldr r0, [r7, #12]
  68519. 801bcd2: f7ff fe39 bl 801b948 <tcp_close_shutdown>
  68520. 801bcd6: 4603 mov r3, r0
  68521. 801bcd8: e003 b.n 801bce2 <tcp_shutdown+0xa6>
  68522. default:
  68523. /* Not (yet?) connected, cannot shutdown the TX side as that would bring us
  68524. into CLOSED state, where the PCB is deallocated. */
  68525. return ERR_CONN;
  68526. 801bcda: f06f 030a mvn.w r3, #10
  68527. 801bcde: e000 b.n 801bce2 <tcp_shutdown+0xa6>
  68528. }
  68529. }
  68530. return ERR_OK;
  68531. 801bce0: 2300 movs r3, #0
  68532. }
  68533. 801bce2: 4618 mov r0, r3
  68534. 801bce4: 3710 adds r7, #16
  68535. 801bce6: 46bd mov sp, r7
  68536. 801bce8: bd80 pop {r7, pc}
  68537. 801bcea: bf00 nop
  68538. 801bcec: 0802f48c .word 0x0802f48c
  68539. 801bcf0: 0802f5b4 .word 0x0802f5b4
  68540. 801bcf4: 0802f4d0 .word 0x0802f4d0
  68541. 0801bcf8 <tcp_abandon>:
  68542. * @param pcb the tcp_pcb to abort
  68543. * @param reset boolean to indicate whether a reset should be sent
  68544. */
  68545. void
  68546. tcp_abandon(struct tcp_pcb *pcb, int reset)
  68547. {
  68548. 801bcf8: b580 push {r7, lr}
  68549. 801bcfa: b08e sub sp, #56 @ 0x38
  68550. 801bcfc: af04 add r7, sp, #16
  68551. 801bcfe: 6078 str r0, [r7, #4]
  68552. 801bd00: 6039 str r1, [r7, #0]
  68553. #if LWIP_CALLBACK_API
  68554. tcp_err_fn errf;
  68555. #endif /* LWIP_CALLBACK_API */
  68556. void *errf_arg;
  68557. LWIP_ASSERT_CORE_LOCKED();
  68558. 801bd02: f7f5 f8fd bl 8010f00 <sys_check_core_locking>
  68559. LWIP_ERROR("tcp_abandon: invalid pcb", pcb != NULL, return);
  68560. 801bd06: 687b ldr r3, [r7, #4]
  68561. 801bd08: 2b00 cmp r3, #0
  68562. 801bd0a: d107 bne.n 801bd1c <tcp_abandon+0x24>
  68563. 801bd0c: 4b52 ldr r3, [pc, #328] @ (801be58 <tcp_abandon+0x160>)
  68564. 801bd0e: f240 223d movw r2, #573 @ 0x23d
  68565. 801bd12: 4952 ldr r1, [pc, #328] @ (801be5c <tcp_abandon+0x164>)
  68566. 801bd14: 4852 ldr r0, [pc, #328] @ (801be60 <tcp_abandon+0x168>)
  68567. 801bd16: f00e fd21 bl 802a75c <iprintf>
  68568. 801bd1a: e099 b.n 801be50 <tcp_abandon+0x158>
  68569. /* pcb->state LISTEN not allowed here */
  68570. LWIP_ASSERT("don't call tcp_abort/tcp_abandon for listen-pcbs",
  68571. 801bd1c: 687b ldr r3, [r7, #4]
  68572. 801bd1e: 7d1b ldrb r3, [r3, #20]
  68573. 801bd20: 2b01 cmp r3, #1
  68574. 801bd22: d106 bne.n 801bd32 <tcp_abandon+0x3a>
  68575. 801bd24: 4b4c ldr r3, [pc, #304] @ (801be58 <tcp_abandon+0x160>)
  68576. 801bd26: f44f 7210 mov.w r2, #576 @ 0x240
  68577. 801bd2a: 494e ldr r1, [pc, #312] @ (801be64 <tcp_abandon+0x16c>)
  68578. 801bd2c: 484c ldr r0, [pc, #304] @ (801be60 <tcp_abandon+0x168>)
  68579. 801bd2e: f00e fd15 bl 802a75c <iprintf>
  68580. pcb->state != LISTEN);
  68581. /* Figure out on which TCP PCB list we are, and remove us. If we
  68582. are in an active state, call the receive function associated with
  68583. the PCB with a NULL argument, and send an RST to the remote end. */
  68584. if (pcb->state == TIME_WAIT) {
  68585. 801bd32: 687b ldr r3, [r7, #4]
  68586. 801bd34: 7d1b ldrb r3, [r3, #20]
  68587. 801bd36: 2b0a cmp r3, #10
  68588. 801bd38: d107 bne.n 801bd4a <tcp_abandon+0x52>
  68589. tcp_pcb_remove(&tcp_tw_pcbs, pcb);
  68590. 801bd3a: 6879 ldr r1, [r7, #4]
  68591. 801bd3c: 484a ldr r0, [pc, #296] @ (801be68 <tcp_abandon+0x170>)
  68592. 801bd3e: f001 fa03 bl 801d148 <tcp_pcb_remove>
  68593. tcp_free(pcb);
  68594. 801bd42: 6878 ldr r0, [r7, #4]
  68595. 801bd44: f7ff fd4e bl 801b7e4 <tcp_free>
  68596. 801bd48: e082 b.n 801be50 <tcp_abandon+0x158>
  68597. } else {
  68598. int send_rst = 0;
  68599. 801bd4a: 2300 movs r3, #0
  68600. 801bd4c: 627b str r3, [r7, #36] @ 0x24
  68601. u16_t local_port = 0;
  68602. 801bd4e: 2300 movs r3, #0
  68603. 801bd50: 847b strh r3, [r7, #34] @ 0x22
  68604. enum tcp_state last_state;
  68605. seqno = pcb->snd_nxt;
  68606. 801bd52: 687b ldr r3, [r7, #4]
  68607. 801bd54: 6d1b ldr r3, [r3, #80] @ 0x50
  68608. 801bd56: 61bb str r3, [r7, #24]
  68609. ackno = pcb->rcv_nxt;
  68610. 801bd58: 687b ldr r3, [r7, #4]
  68611. 801bd5a: 6a5b ldr r3, [r3, #36] @ 0x24
  68612. 801bd5c: 617b str r3, [r7, #20]
  68613. #if LWIP_CALLBACK_API
  68614. errf = pcb->errf;
  68615. 801bd5e: 687b ldr r3, [r7, #4]
  68616. 801bd60: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  68617. 801bd64: 613b str r3, [r7, #16]
  68618. #endif /* LWIP_CALLBACK_API */
  68619. errf_arg = pcb->callback_arg;
  68620. 801bd66: 687b ldr r3, [r7, #4]
  68621. 801bd68: 691b ldr r3, [r3, #16]
  68622. 801bd6a: 60fb str r3, [r7, #12]
  68623. if (pcb->state == CLOSED) {
  68624. 801bd6c: 687b ldr r3, [r7, #4]
  68625. 801bd6e: 7d1b ldrb r3, [r3, #20]
  68626. 801bd70: 2b00 cmp r3, #0
  68627. 801bd72: d126 bne.n 801bdc2 <tcp_abandon+0xca>
  68628. if (pcb->local_port != 0) {
  68629. 801bd74: 687b ldr r3, [r7, #4]
  68630. 801bd76: 8adb ldrh r3, [r3, #22]
  68631. 801bd78: 2b00 cmp r3, #0
  68632. 801bd7a: d02e beq.n 801bdda <tcp_abandon+0xe2>
  68633. /* bound, not yet opened */
  68634. TCP_RMV(&tcp_bound_pcbs, pcb);
  68635. 801bd7c: 4b3b ldr r3, [pc, #236] @ (801be6c <tcp_abandon+0x174>)
  68636. 801bd7e: 681b ldr r3, [r3, #0]
  68637. 801bd80: 687a ldr r2, [r7, #4]
  68638. 801bd82: 429a cmp r2, r3
  68639. 801bd84: d105 bne.n 801bd92 <tcp_abandon+0x9a>
  68640. 801bd86: 4b39 ldr r3, [pc, #228] @ (801be6c <tcp_abandon+0x174>)
  68641. 801bd88: 681b ldr r3, [r3, #0]
  68642. 801bd8a: 68db ldr r3, [r3, #12]
  68643. 801bd8c: 4a37 ldr r2, [pc, #220] @ (801be6c <tcp_abandon+0x174>)
  68644. 801bd8e: 6013 str r3, [r2, #0]
  68645. 801bd90: e013 b.n 801bdba <tcp_abandon+0xc2>
  68646. 801bd92: 4b36 ldr r3, [pc, #216] @ (801be6c <tcp_abandon+0x174>)
  68647. 801bd94: 681b ldr r3, [r3, #0]
  68648. 801bd96: 61fb str r3, [r7, #28]
  68649. 801bd98: e00c b.n 801bdb4 <tcp_abandon+0xbc>
  68650. 801bd9a: 69fb ldr r3, [r7, #28]
  68651. 801bd9c: 68db ldr r3, [r3, #12]
  68652. 801bd9e: 687a ldr r2, [r7, #4]
  68653. 801bda0: 429a cmp r2, r3
  68654. 801bda2: d104 bne.n 801bdae <tcp_abandon+0xb6>
  68655. 801bda4: 687b ldr r3, [r7, #4]
  68656. 801bda6: 68da ldr r2, [r3, #12]
  68657. 801bda8: 69fb ldr r3, [r7, #28]
  68658. 801bdaa: 60da str r2, [r3, #12]
  68659. 801bdac: e005 b.n 801bdba <tcp_abandon+0xc2>
  68660. 801bdae: 69fb ldr r3, [r7, #28]
  68661. 801bdb0: 68db ldr r3, [r3, #12]
  68662. 801bdb2: 61fb str r3, [r7, #28]
  68663. 801bdb4: 69fb ldr r3, [r7, #28]
  68664. 801bdb6: 2b00 cmp r3, #0
  68665. 801bdb8: d1ef bne.n 801bd9a <tcp_abandon+0xa2>
  68666. 801bdba: 687b ldr r3, [r7, #4]
  68667. 801bdbc: 2200 movs r2, #0
  68668. 801bdbe: 60da str r2, [r3, #12]
  68669. 801bdc0: e00b b.n 801bdda <tcp_abandon+0xe2>
  68670. }
  68671. } else {
  68672. send_rst = reset;
  68673. 801bdc2: 683b ldr r3, [r7, #0]
  68674. 801bdc4: 627b str r3, [r7, #36] @ 0x24
  68675. local_port = pcb->local_port;
  68676. 801bdc6: 687b ldr r3, [r7, #4]
  68677. 801bdc8: 8adb ldrh r3, [r3, #22]
  68678. 801bdca: 847b strh r3, [r7, #34] @ 0x22
  68679. TCP_PCB_REMOVE_ACTIVE(pcb);
  68680. 801bdcc: 6879 ldr r1, [r7, #4]
  68681. 801bdce: 4828 ldr r0, [pc, #160] @ (801be70 <tcp_abandon+0x178>)
  68682. 801bdd0: f001 f9ba bl 801d148 <tcp_pcb_remove>
  68683. 801bdd4: 4b27 ldr r3, [pc, #156] @ (801be74 <tcp_abandon+0x17c>)
  68684. 801bdd6: 2201 movs r2, #1
  68685. 801bdd8: 701a strb r2, [r3, #0]
  68686. }
  68687. if (pcb->unacked != NULL) {
  68688. 801bdda: 687b ldr r3, [r7, #4]
  68689. 801bddc: 6f1b ldr r3, [r3, #112] @ 0x70
  68690. 801bdde: 2b00 cmp r3, #0
  68691. 801bde0: d004 beq.n 801bdec <tcp_abandon+0xf4>
  68692. tcp_segs_free(pcb->unacked);
  68693. 801bde2: 687b ldr r3, [r7, #4]
  68694. 801bde4: 6f1b ldr r3, [r3, #112] @ 0x70
  68695. 801bde6: 4618 mov r0, r3
  68696. 801bde8: f000 fe84 bl 801caf4 <tcp_segs_free>
  68697. }
  68698. if (pcb->unsent != NULL) {
  68699. 801bdec: 687b ldr r3, [r7, #4]
  68700. 801bdee: 6edb ldr r3, [r3, #108] @ 0x6c
  68701. 801bdf0: 2b00 cmp r3, #0
  68702. 801bdf2: d004 beq.n 801bdfe <tcp_abandon+0x106>
  68703. tcp_segs_free(pcb->unsent);
  68704. 801bdf4: 687b ldr r3, [r7, #4]
  68705. 801bdf6: 6edb ldr r3, [r3, #108] @ 0x6c
  68706. 801bdf8: 4618 mov r0, r3
  68707. 801bdfa: f000 fe7b bl 801caf4 <tcp_segs_free>
  68708. }
  68709. #if TCP_QUEUE_OOSEQ
  68710. if (pcb->ooseq != NULL) {
  68711. 801bdfe: 687b ldr r3, [r7, #4]
  68712. 801be00: 6f5b ldr r3, [r3, #116] @ 0x74
  68713. 801be02: 2b00 cmp r3, #0
  68714. 801be04: d004 beq.n 801be10 <tcp_abandon+0x118>
  68715. tcp_segs_free(pcb->ooseq);
  68716. 801be06: 687b ldr r3, [r7, #4]
  68717. 801be08: 6f5b ldr r3, [r3, #116] @ 0x74
  68718. 801be0a: 4618 mov r0, r3
  68719. 801be0c: f000 fe72 bl 801caf4 <tcp_segs_free>
  68720. }
  68721. #endif /* TCP_QUEUE_OOSEQ */
  68722. tcp_backlog_accepted(pcb);
  68723. if (send_rst) {
  68724. 801be10: 6a7b ldr r3, [r7, #36] @ 0x24
  68725. 801be12: 2b00 cmp r3, #0
  68726. 801be14: d00e beq.n 801be34 <tcp_abandon+0x13c>
  68727. LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_abandon: sending RST\n"));
  68728. tcp_rst(pcb, seqno, ackno, &pcb->local_ip, &pcb->remote_ip, local_port, pcb->remote_port);
  68729. 801be16: 6879 ldr r1, [r7, #4]
  68730. 801be18: 687b ldr r3, [r7, #4]
  68731. 801be1a: 3304 adds r3, #4
  68732. 801be1c: 687a ldr r2, [r7, #4]
  68733. 801be1e: 8b12 ldrh r2, [r2, #24]
  68734. 801be20: 9202 str r2, [sp, #8]
  68735. 801be22: 8c7a ldrh r2, [r7, #34] @ 0x22
  68736. 801be24: 9201 str r2, [sp, #4]
  68737. 801be26: 9300 str r3, [sp, #0]
  68738. 801be28: 460b mov r3, r1
  68739. 801be2a: 697a ldr r2, [r7, #20]
  68740. 801be2c: 69b9 ldr r1, [r7, #24]
  68741. 801be2e: 6878 ldr r0, [r7, #4]
  68742. 801be30: f005 fbca bl 80215c8 <tcp_rst>
  68743. }
  68744. last_state = pcb->state;
  68745. 801be34: 687b ldr r3, [r7, #4]
  68746. 801be36: 7d1b ldrb r3, [r3, #20]
  68747. 801be38: 72fb strb r3, [r7, #11]
  68748. tcp_free(pcb);
  68749. 801be3a: 6878 ldr r0, [r7, #4]
  68750. 801be3c: f7ff fcd2 bl 801b7e4 <tcp_free>
  68751. TCP_EVENT_ERR(last_state, errf, errf_arg, ERR_ABRT);
  68752. 801be40: 693b ldr r3, [r7, #16]
  68753. 801be42: 2b00 cmp r3, #0
  68754. 801be44: d004 beq.n 801be50 <tcp_abandon+0x158>
  68755. 801be46: 693b ldr r3, [r7, #16]
  68756. 801be48: f06f 010c mvn.w r1, #12
  68757. 801be4c: 68f8 ldr r0, [r7, #12]
  68758. 801be4e: 4798 blx r3
  68759. }
  68760. }
  68761. 801be50: 3728 adds r7, #40 @ 0x28
  68762. 801be52: 46bd mov sp, r7
  68763. 801be54: bd80 pop {r7, pc}
  68764. 801be56: bf00 nop
  68765. 801be58: 0802f48c .word 0x0802f48c
  68766. 801be5c: 0802f5d0 .word 0x0802f5d0
  68767. 801be60: 0802f4d0 .word 0x0802f4d0
  68768. 801be64: 0802f5ec .word 0x0802f5ec
  68769. 801be68: 2402af78 .word 0x2402af78
  68770. 801be6c: 2402af6c .word 0x2402af6c
  68771. 801be70: 2402af74 .word 0x2402af74
  68772. 801be74: 2402af7c .word 0x2402af7c
  68773. 0801be78 <tcp_abort>:
  68774. *
  68775. * @param pcb the tcp pcb to abort
  68776. */
  68777. void
  68778. tcp_abort(struct tcp_pcb *pcb)
  68779. {
  68780. 801be78: b580 push {r7, lr}
  68781. 801be7a: b082 sub sp, #8
  68782. 801be7c: af00 add r7, sp, #0
  68783. 801be7e: 6078 str r0, [r7, #4]
  68784. tcp_abandon(pcb, 1);
  68785. 801be80: 2101 movs r1, #1
  68786. 801be82: 6878 ldr r0, [r7, #4]
  68787. 801be84: f7ff ff38 bl 801bcf8 <tcp_abandon>
  68788. }
  68789. 801be88: bf00 nop
  68790. 801be8a: 3708 adds r7, #8
  68791. 801be8c: 46bd mov sp, r7
  68792. 801be8e: bd80 pop {r7, pc}
  68793. 0801be90 <tcp_update_rcv_ann_wnd>:
  68794. * Returns how much extra window would be advertised if we sent an
  68795. * update now.
  68796. */
  68797. u32_t
  68798. tcp_update_rcv_ann_wnd(struct tcp_pcb *pcb)
  68799. {
  68800. 801be90: b580 push {r7, lr}
  68801. 801be92: b084 sub sp, #16
  68802. 801be94: af00 add r7, sp, #0
  68803. 801be96: 6078 str r0, [r7, #4]
  68804. u32_t new_right_edge;
  68805. LWIP_ASSERT("tcp_update_rcv_ann_wnd: invalid pcb", pcb != NULL);
  68806. 801be98: 687b ldr r3, [r7, #4]
  68807. 801be9a: 2b00 cmp r3, #0
  68808. 801be9c: d106 bne.n 801beac <tcp_update_rcv_ann_wnd+0x1c>
  68809. 801be9e: 4b25 ldr r3, [pc, #148] @ (801bf34 <tcp_update_rcv_ann_wnd+0xa4>)
  68810. 801bea0: f240 32a6 movw r2, #934 @ 0x3a6
  68811. 801bea4: 4924 ldr r1, [pc, #144] @ (801bf38 <tcp_update_rcv_ann_wnd+0xa8>)
  68812. 801bea6: 4825 ldr r0, [pc, #148] @ (801bf3c <tcp_update_rcv_ann_wnd+0xac>)
  68813. 801bea8: f00e fc58 bl 802a75c <iprintf>
  68814. new_right_edge = pcb->rcv_nxt + pcb->rcv_wnd;
  68815. 801beac: 687b ldr r3, [r7, #4]
  68816. 801beae: 6a5b ldr r3, [r3, #36] @ 0x24
  68817. 801beb0: 687a ldr r2, [r7, #4]
  68818. 801beb2: 8d12 ldrh r2, [r2, #40] @ 0x28
  68819. 801beb4: 4413 add r3, r2
  68820. 801beb6: 60fb str r3, [r7, #12]
  68821. if (TCP_SEQ_GEQ(new_right_edge, pcb->rcv_ann_right_edge + LWIP_MIN((TCP_WND / 2), pcb->mss))) {
  68822. 801beb8: 687b ldr r3, [r7, #4]
  68823. 801beba: 6adb ldr r3, [r3, #44] @ 0x2c
  68824. 801bebc: 687a ldr r2, [r7, #4]
  68825. 801bebe: 8e52 ldrh r2, [r2, #50] @ 0x32
  68826. 801bec0: f640 3168 movw r1, #2920 @ 0xb68
  68827. 801bec4: 428a cmp r2, r1
  68828. 801bec6: bf28 it cs
  68829. 801bec8: 460a movcs r2, r1
  68830. 801beca: b292 uxth r2, r2
  68831. 801becc: 4413 add r3, r2
  68832. 801bece: 68fa ldr r2, [r7, #12]
  68833. 801bed0: 1ad3 subs r3, r2, r3
  68834. 801bed2: 2b00 cmp r3, #0
  68835. 801bed4: db08 blt.n 801bee8 <tcp_update_rcv_ann_wnd+0x58>
  68836. /* we can advertise more window */
  68837. pcb->rcv_ann_wnd = pcb->rcv_wnd;
  68838. 801bed6: 687b ldr r3, [r7, #4]
  68839. 801bed8: 8d1a ldrh r2, [r3, #40] @ 0x28
  68840. 801beda: 687b ldr r3, [r7, #4]
  68841. 801bedc: 855a strh r2, [r3, #42] @ 0x2a
  68842. return new_right_edge - pcb->rcv_ann_right_edge;
  68843. 801bede: 687b ldr r3, [r7, #4]
  68844. 801bee0: 6adb ldr r3, [r3, #44] @ 0x2c
  68845. 801bee2: 68fa ldr r2, [r7, #12]
  68846. 801bee4: 1ad3 subs r3, r2, r3
  68847. 801bee6: e020 b.n 801bf2a <tcp_update_rcv_ann_wnd+0x9a>
  68848. } else {
  68849. if (TCP_SEQ_GT(pcb->rcv_nxt, pcb->rcv_ann_right_edge)) {
  68850. 801bee8: 687b ldr r3, [r7, #4]
  68851. 801beea: 6a5a ldr r2, [r3, #36] @ 0x24
  68852. 801beec: 687b ldr r3, [r7, #4]
  68853. 801beee: 6adb ldr r3, [r3, #44] @ 0x2c
  68854. 801bef0: 1ad3 subs r3, r2, r3
  68855. 801bef2: 2b00 cmp r3, #0
  68856. 801bef4: dd03 ble.n 801befe <tcp_update_rcv_ann_wnd+0x6e>
  68857. /* Can happen due to other end sending out of advertised window,
  68858. * but within actual available (but not yet advertised) window */
  68859. pcb->rcv_ann_wnd = 0;
  68860. 801bef6: 687b ldr r3, [r7, #4]
  68861. 801bef8: 2200 movs r2, #0
  68862. 801befa: 855a strh r2, [r3, #42] @ 0x2a
  68863. 801befc: e014 b.n 801bf28 <tcp_update_rcv_ann_wnd+0x98>
  68864. } else {
  68865. /* keep the right edge of window constant */
  68866. u32_t new_rcv_ann_wnd = pcb->rcv_ann_right_edge - pcb->rcv_nxt;
  68867. 801befe: 687b ldr r3, [r7, #4]
  68868. 801bf00: 6ada ldr r2, [r3, #44] @ 0x2c
  68869. 801bf02: 687b ldr r3, [r7, #4]
  68870. 801bf04: 6a5b ldr r3, [r3, #36] @ 0x24
  68871. 801bf06: 1ad3 subs r3, r2, r3
  68872. 801bf08: 60bb str r3, [r7, #8]
  68873. #if !LWIP_WND_SCALE
  68874. LWIP_ASSERT("new_rcv_ann_wnd <= 0xffff", new_rcv_ann_wnd <= 0xffff);
  68875. 801bf0a: 68bb ldr r3, [r7, #8]
  68876. 801bf0c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  68877. 801bf10: d306 bcc.n 801bf20 <tcp_update_rcv_ann_wnd+0x90>
  68878. 801bf12: 4b08 ldr r3, [pc, #32] @ (801bf34 <tcp_update_rcv_ann_wnd+0xa4>)
  68879. 801bf14: f240 32b6 movw r2, #950 @ 0x3b6
  68880. 801bf18: 4909 ldr r1, [pc, #36] @ (801bf40 <tcp_update_rcv_ann_wnd+0xb0>)
  68881. 801bf1a: 4808 ldr r0, [pc, #32] @ (801bf3c <tcp_update_rcv_ann_wnd+0xac>)
  68882. 801bf1c: f00e fc1e bl 802a75c <iprintf>
  68883. #endif
  68884. pcb->rcv_ann_wnd = (tcpwnd_size_t)new_rcv_ann_wnd;
  68885. 801bf20: 68bb ldr r3, [r7, #8]
  68886. 801bf22: b29a uxth r2, r3
  68887. 801bf24: 687b ldr r3, [r7, #4]
  68888. 801bf26: 855a strh r2, [r3, #42] @ 0x2a
  68889. }
  68890. return 0;
  68891. 801bf28: 2300 movs r3, #0
  68892. }
  68893. }
  68894. 801bf2a: 4618 mov r0, r3
  68895. 801bf2c: 3710 adds r7, #16
  68896. 801bf2e: 46bd mov sp, r7
  68897. 801bf30: bd80 pop {r7, pc}
  68898. 801bf32: bf00 nop
  68899. 801bf34: 0802f48c .word 0x0802f48c
  68900. 801bf38: 0802f6e8 .word 0x0802f6e8
  68901. 801bf3c: 0802f4d0 .word 0x0802f4d0
  68902. 801bf40: 0802f70c .word 0x0802f70c
  68903. 0801bf44 <tcp_recved>:
  68904. * @param pcb the tcp_pcb for which data is read
  68905. * @param len the amount of bytes that have been read by the application
  68906. */
  68907. void
  68908. tcp_recved(struct tcp_pcb *pcb, u16_t len)
  68909. {
  68910. 801bf44: b580 push {r7, lr}
  68911. 801bf46: b084 sub sp, #16
  68912. 801bf48: af00 add r7, sp, #0
  68913. 801bf4a: 6078 str r0, [r7, #4]
  68914. 801bf4c: 460b mov r3, r1
  68915. 801bf4e: 807b strh r3, [r7, #2]
  68916. u32_t wnd_inflation;
  68917. tcpwnd_size_t rcv_wnd;
  68918. LWIP_ASSERT_CORE_LOCKED();
  68919. 801bf50: f7f4 ffd6 bl 8010f00 <sys_check_core_locking>
  68920. LWIP_ERROR("tcp_recved: invalid pcb", pcb != NULL, return);
  68921. 801bf54: 687b ldr r3, [r7, #4]
  68922. 801bf56: 2b00 cmp r3, #0
  68923. 801bf58: d107 bne.n 801bf6a <tcp_recved+0x26>
  68924. 801bf5a: 4b20 ldr r3, [pc, #128] @ (801bfdc <tcp_recved+0x98>)
  68925. 801bf5c: f240 32cf movw r2, #975 @ 0x3cf
  68926. 801bf60: 491f ldr r1, [pc, #124] @ (801bfe0 <tcp_recved+0x9c>)
  68927. 801bf62: 4820 ldr r0, [pc, #128] @ (801bfe4 <tcp_recved+0xa0>)
  68928. 801bf64: f00e fbfa bl 802a75c <iprintf>
  68929. 801bf68: e034 b.n 801bfd4 <tcp_recved+0x90>
  68930. /* pcb->state LISTEN not allowed here */
  68931. LWIP_ASSERT("don't call tcp_recved for listen-pcbs",
  68932. 801bf6a: 687b ldr r3, [r7, #4]
  68933. 801bf6c: 7d1b ldrb r3, [r3, #20]
  68934. 801bf6e: 2b01 cmp r3, #1
  68935. 801bf70: d106 bne.n 801bf80 <tcp_recved+0x3c>
  68936. 801bf72: 4b1a ldr r3, [pc, #104] @ (801bfdc <tcp_recved+0x98>)
  68937. 801bf74: f240 32d2 movw r2, #978 @ 0x3d2
  68938. 801bf78: 491b ldr r1, [pc, #108] @ (801bfe8 <tcp_recved+0xa4>)
  68939. 801bf7a: 481a ldr r0, [pc, #104] @ (801bfe4 <tcp_recved+0xa0>)
  68940. 801bf7c: f00e fbee bl 802a75c <iprintf>
  68941. pcb->state != LISTEN);
  68942. rcv_wnd = (tcpwnd_size_t)(pcb->rcv_wnd + len);
  68943. 801bf80: 687b ldr r3, [r7, #4]
  68944. 801bf82: 8d1a ldrh r2, [r3, #40] @ 0x28
  68945. 801bf84: 887b ldrh r3, [r7, #2]
  68946. 801bf86: 4413 add r3, r2
  68947. 801bf88: 81fb strh r3, [r7, #14]
  68948. if ((rcv_wnd > TCP_WND_MAX(pcb)) || (rcv_wnd < pcb->rcv_wnd)) {
  68949. 801bf8a: 89fb ldrh r3, [r7, #14]
  68950. 801bf8c: f241 62d0 movw r2, #5840 @ 0x16d0
  68951. 801bf90: 4293 cmp r3, r2
  68952. 801bf92: d804 bhi.n 801bf9e <tcp_recved+0x5a>
  68953. 801bf94: 687b ldr r3, [r7, #4]
  68954. 801bf96: 8d1b ldrh r3, [r3, #40] @ 0x28
  68955. 801bf98: 89fa ldrh r2, [r7, #14]
  68956. 801bf9a: 429a cmp r2, r3
  68957. 801bf9c: d204 bcs.n 801bfa8 <tcp_recved+0x64>
  68958. /* window got too big or tcpwnd_size_t overflow */
  68959. LWIP_DEBUGF(TCP_DEBUG, ("tcp_recved: window got too big or tcpwnd_size_t overflow\n"));
  68960. pcb->rcv_wnd = TCP_WND_MAX(pcb);
  68961. 801bf9e: 687b ldr r3, [r7, #4]
  68962. 801bfa0: f241 62d0 movw r2, #5840 @ 0x16d0
  68963. 801bfa4: 851a strh r2, [r3, #40] @ 0x28
  68964. 801bfa6: e002 b.n 801bfae <tcp_recved+0x6a>
  68965. } else {
  68966. pcb->rcv_wnd = rcv_wnd;
  68967. 801bfa8: 687b ldr r3, [r7, #4]
  68968. 801bfaa: 89fa ldrh r2, [r7, #14]
  68969. 801bfac: 851a strh r2, [r3, #40] @ 0x28
  68970. }
  68971. wnd_inflation = tcp_update_rcv_ann_wnd(pcb);
  68972. 801bfae: 6878 ldr r0, [r7, #4]
  68973. 801bfb0: f7ff ff6e bl 801be90 <tcp_update_rcv_ann_wnd>
  68974. 801bfb4: 60b8 str r0, [r7, #8]
  68975. /* If the change in the right edge of window is significant (default
  68976. * watermark is TCP_WND/4), then send an explicit update now.
  68977. * Otherwise wait for a packet to be sent in the normal course of
  68978. * events (or more window to be available later) */
  68979. if (wnd_inflation >= TCP_WND_UPDATE_THRESHOLD) {
  68980. 801bfb6: 68bb ldr r3, [r7, #8]
  68981. 801bfb8: f240 52b3 movw r2, #1459 @ 0x5b3
  68982. 801bfbc: 4293 cmp r3, r2
  68983. 801bfbe: d909 bls.n 801bfd4 <tcp_recved+0x90>
  68984. tcp_ack_now(pcb);
  68985. 801bfc0: 687b ldr r3, [r7, #4]
  68986. 801bfc2: 8b5b ldrh r3, [r3, #26]
  68987. 801bfc4: f043 0302 orr.w r3, r3, #2
  68988. 801bfc8: b29a uxth r2, r3
  68989. 801bfca: 687b ldr r3, [r7, #4]
  68990. 801bfcc: 835a strh r2, [r3, #26]
  68991. tcp_output(pcb);
  68992. 801bfce: 6878 ldr r0, [r7, #4]
  68993. 801bfd0: f004 fd38 bl 8020a44 <tcp_output>
  68994. }
  68995. LWIP_DEBUGF(TCP_DEBUG, ("tcp_recved: received %"U16_F" bytes, wnd %"TCPWNDSIZE_F" (%"TCPWNDSIZE_F").\n",
  68996. len, pcb->rcv_wnd, (u16_t)(TCP_WND_MAX(pcb) - pcb->rcv_wnd)));
  68997. }
  68998. 801bfd4: 3710 adds r7, #16
  68999. 801bfd6: 46bd mov sp, r7
  69000. 801bfd8: bd80 pop {r7, pc}
  69001. 801bfda: bf00 nop
  69002. 801bfdc: 0802f48c .word 0x0802f48c
  69003. 801bfe0: 0802f728 .word 0x0802f728
  69004. 801bfe4: 0802f4d0 .word 0x0802f4d0
  69005. 801bfe8: 0802f740 .word 0x0802f740
  69006. 0801bfec <tcp_new_port>:
  69007. *
  69008. * @return a new (free) local TCP port number
  69009. */
  69010. static u16_t
  69011. tcp_new_port(void)
  69012. {
  69013. 801bfec: b480 push {r7}
  69014. 801bfee: b083 sub sp, #12
  69015. 801bff0: af00 add r7, sp, #0
  69016. u8_t i;
  69017. u16_t n = 0;
  69018. 801bff2: 2300 movs r3, #0
  69019. 801bff4: 80bb strh r3, [r7, #4]
  69020. struct tcp_pcb *pcb;
  69021. again:
  69022. tcp_port++;
  69023. 801bff6: 4b1e ldr r3, [pc, #120] @ (801c070 <tcp_new_port+0x84>)
  69024. 801bff8: 881b ldrh r3, [r3, #0]
  69025. 801bffa: 3301 adds r3, #1
  69026. 801bffc: b29a uxth r2, r3
  69027. 801bffe: 4b1c ldr r3, [pc, #112] @ (801c070 <tcp_new_port+0x84>)
  69028. 801c000: 801a strh r2, [r3, #0]
  69029. if (tcp_port == TCP_LOCAL_PORT_RANGE_END) {
  69030. 801c002: 4b1b ldr r3, [pc, #108] @ (801c070 <tcp_new_port+0x84>)
  69031. 801c004: 881b ldrh r3, [r3, #0]
  69032. 801c006: f64f 72ff movw r2, #65535 @ 0xffff
  69033. 801c00a: 4293 cmp r3, r2
  69034. 801c00c: d103 bne.n 801c016 <tcp_new_port+0x2a>
  69035. tcp_port = TCP_LOCAL_PORT_RANGE_START;
  69036. 801c00e: 4b18 ldr r3, [pc, #96] @ (801c070 <tcp_new_port+0x84>)
  69037. 801c010: f44f 4240 mov.w r2, #49152 @ 0xc000
  69038. 801c014: 801a strh r2, [r3, #0]
  69039. }
  69040. /* Check all PCB lists. */
  69041. for (i = 0; i < NUM_TCP_PCB_LISTS; i++) {
  69042. 801c016: 2300 movs r3, #0
  69043. 801c018: 71fb strb r3, [r7, #7]
  69044. 801c01a: e01e b.n 801c05a <tcp_new_port+0x6e>
  69045. for (pcb = *tcp_pcb_lists[i]; pcb != NULL; pcb = pcb->next) {
  69046. 801c01c: 79fb ldrb r3, [r7, #7]
  69047. 801c01e: 4a15 ldr r2, [pc, #84] @ (801c074 <tcp_new_port+0x88>)
  69048. 801c020: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  69049. 801c024: 681b ldr r3, [r3, #0]
  69050. 801c026: 603b str r3, [r7, #0]
  69051. 801c028: e011 b.n 801c04e <tcp_new_port+0x62>
  69052. if (pcb->local_port == tcp_port) {
  69053. 801c02a: 683b ldr r3, [r7, #0]
  69054. 801c02c: 8ada ldrh r2, [r3, #22]
  69055. 801c02e: 4b10 ldr r3, [pc, #64] @ (801c070 <tcp_new_port+0x84>)
  69056. 801c030: 881b ldrh r3, [r3, #0]
  69057. 801c032: 429a cmp r2, r3
  69058. 801c034: d108 bne.n 801c048 <tcp_new_port+0x5c>
  69059. n++;
  69060. 801c036: 88bb ldrh r3, [r7, #4]
  69061. 801c038: 3301 adds r3, #1
  69062. 801c03a: 80bb strh r3, [r7, #4]
  69063. if (n > (TCP_LOCAL_PORT_RANGE_END - TCP_LOCAL_PORT_RANGE_START)) {
  69064. 801c03c: 88bb ldrh r3, [r7, #4]
  69065. 801c03e: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  69066. 801c042: d3d8 bcc.n 801bff6 <tcp_new_port+0xa>
  69067. return 0;
  69068. 801c044: 2300 movs r3, #0
  69069. 801c046: e00d b.n 801c064 <tcp_new_port+0x78>
  69070. for (pcb = *tcp_pcb_lists[i]; pcb != NULL; pcb = pcb->next) {
  69071. 801c048: 683b ldr r3, [r7, #0]
  69072. 801c04a: 68db ldr r3, [r3, #12]
  69073. 801c04c: 603b str r3, [r7, #0]
  69074. 801c04e: 683b ldr r3, [r7, #0]
  69075. 801c050: 2b00 cmp r3, #0
  69076. 801c052: d1ea bne.n 801c02a <tcp_new_port+0x3e>
  69077. for (i = 0; i < NUM_TCP_PCB_LISTS; i++) {
  69078. 801c054: 79fb ldrb r3, [r7, #7]
  69079. 801c056: 3301 adds r3, #1
  69080. 801c058: 71fb strb r3, [r7, #7]
  69081. 801c05a: 79fb ldrb r3, [r7, #7]
  69082. 801c05c: 2b03 cmp r3, #3
  69083. 801c05e: d9dd bls.n 801c01c <tcp_new_port+0x30>
  69084. }
  69085. goto again;
  69086. }
  69087. }
  69088. }
  69089. return tcp_port;
  69090. 801c060: 4b03 ldr r3, [pc, #12] @ (801c070 <tcp_new_port+0x84>)
  69091. 801c062: 881b ldrh r3, [r3, #0]
  69092. }
  69093. 801c064: 4618 mov r0, r3
  69094. 801c066: 370c adds r7, #12
  69095. 801c068: 46bd mov sp, r7
  69096. 801c06a: f85d 7b04 ldr.w r7, [sp], #4
  69097. 801c06e: 4770 bx lr
  69098. 801c070: 2400004c .word 0x2400004c
  69099. 801c074: 08031b20 .word 0x08031b20
  69100. 0801c078 <tcp_connect>:
  69101. * other err_t values if connect request couldn't be sent
  69102. */
  69103. err_t
  69104. tcp_connect(struct tcp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port,
  69105. tcp_connected_fn connected)
  69106. {
  69107. 801c078: b580 push {r7, lr}
  69108. 801c07a: b08a sub sp, #40 @ 0x28
  69109. 801c07c: af00 add r7, sp, #0
  69110. 801c07e: 60f8 str r0, [r7, #12]
  69111. 801c080: 60b9 str r1, [r7, #8]
  69112. 801c082: 603b str r3, [r7, #0]
  69113. 801c084: 4613 mov r3, r2
  69114. 801c086: 80fb strh r3, [r7, #6]
  69115. struct netif *netif = NULL;
  69116. 801c088: 2300 movs r3, #0
  69117. 801c08a: 627b str r3, [r7, #36] @ 0x24
  69118. err_t ret;
  69119. u32_t iss;
  69120. u16_t old_local_port;
  69121. LWIP_ASSERT_CORE_LOCKED();
  69122. 801c08c: f7f4 ff38 bl 8010f00 <sys_check_core_locking>
  69123. LWIP_ERROR("tcp_connect: invalid pcb", pcb != NULL, return ERR_ARG);
  69124. 801c090: 68fb ldr r3, [r7, #12]
  69125. 801c092: 2b00 cmp r3, #0
  69126. 801c094: d109 bne.n 801c0aa <tcp_connect+0x32>
  69127. 801c096: 4b7d ldr r3, [pc, #500] @ (801c28c <tcp_connect+0x214>)
  69128. 801c098: f240 4235 movw r2, #1077 @ 0x435
  69129. 801c09c: 497c ldr r1, [pc, #496] @ (801c290 <tcp_connect+0x218>)
  69130. 801c09e: 487d ldr r0, [pc, #500] @ (801c294 <tcp_connect+0x21c>)
  69131. 801c0a0: f00e fb5c bl 802a75c <iprintf>
  69132. 801c0a4: f06f 030f mvn.w r3, #15
  69133. 801c0a8: e0ec b.n 801c284 <tcp_connect+0x20c>
  69134. LWIP_ERROR("tcp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
  69135. 801c0aa: 68bb ldr r3, [r7, #8]
  69136. 801c0ac: 2b00 cmp r3, #0
  69137. 801c0ae: d109 bne.n 801c0c4 <tcp_connect+0x4c>
  69138. 801c0b0: 4b76 ldr r3, [pc, #472] @ (801c28c <tcp_connect+0x214>)
  69139. 801c0b2: f240 4236 movw r2, #1078 @ 0x436
  69140. 801c0b6: 4978 ldr r1, [pc, #480] @ (801c298 <tcp_connect+0x220>)
  69141. 801c0b8: 4876 ldr r0, [pc, #472] @ (801c294 <tcp_connect+0x21c>)
  69142. 801c0ba: f00e fb4f bl 802a75c <iprintf>
  69143. 801c0be: f06f 030f mvn.w r3, #15
  69144. 801c0c2: e0df b.n 801c284 <tcp_connect+0x20c>
  69145. LWIP_ERROR("tcp_connect: can only connect from state CLOSED", pcb->state == CLOSED, return ERR_ISCONN);
  69146. 801c0c4: 68fb ldr r3, [r7, #12]
  69147. 801c0c6: 7d1b ldrb r3, [r3, #20]
  69148. 801c0c8: 2b00 cmp r3, #0
  69149. 801c0ca: d009 beq.n 801c0e0 <tcp_connect+0x68>
  69150. 801c0cc: 4b6f ldr r3, [pc, #444] @ (801c28c <tcp_connect+0x214>)
  69151. 801c0ce: f44f 6287 mov.w r2, #1080 @ 0x438
  69152. 801c0d2: 4972 ldr r1, [pc, #456] @ (801c29c <tcp_connect+0x224>)
  69153. 801c0d4: 486f ldr r0, [pc, #444] @ (801c294 <tcp_connect+0x21c>)
  69154. 801c0d6: f00e fb41 bl 802a75c <iprintf>
  69155. 801c0da: f06f 0309 mvn.w r3, #9
  69156. 801c0de: e0d1 b.n 801c284 <tcp_connect+0x20c>
  69157. LWIP_DEBUGF(TCP_DEBUG, ("tcp_connect to port %"U16_F"\n", port));
  69158. ip_addr_set(&pcb->remote_ip, ipaddr);
  69159. 801c0e0: 68bb ldr r3, [r7, #8]
  69160. 801c0e2: 2b00 cmp r3, #0
  69161. 801c0e4: d002 beq.n 801c0ec <tcp_connect+0x74>
  69162. 801c0e6: 68bb ldr r3, [r7, #8]
  69163. 801c0e8: 681b ldr r3, [r3, #0]
  69164. 801c0ea: e000 b.n 801c0ee <tcp_connect+0x76>
  69165. 801c0ec: 2300 movs r3, #0
  69166. 801c0ee: 68fa ldr r2, [r7, #12]
  69167. 801c0f0: 6053 str r3, [r2, #4]
  69168. pcb->remote_port = port;
  69169. 801c0f2: 68fb ldr r3, [r7, #12]
  69170. 801c0f4: 88fa ldrh r2, [r7, #6]
  69171. 801c0f6: 831a strh r2, [r3, #24]
  69172. if (pcb->netif_idx != NETIF_NO_INDEX) {
  69173. 801c0f8: 68fb ldr r3, [r7, #12]
  69174. 801c0fa: 7a1b ldrb r3, [r3, #8]
  69175. 801c0fc: 2b00 cmp r3, #0
  69176. 801c0fe: d006 beq.n 801c10e <tcp_connect+0x96>
  69177. netif = netif_get_by_index(pcb->netif_idx);
  69178. 801c100: 68fb ldr r3, [r7, #12]
  69179. 801c102: 7a1b ldrb r3, [r3, #8]
  69180. 801c104: 4618 mov r0, r3
  69181. 801c106: f7fe fcf1 bl 801aaec <netif_get_by_index>
  69182. 801c10a: 6278 str r0, [r7, #36] @ 0x24
  69183. 801c10c: e005 b.n 801c11a <tcp_connect+0xa2>
  69184. } else {
  69185. /* check if we have a route to the remote host */
  69186. netif = ip_route(&pcb->local_ip, &pcb->remote_ip);
  69187. 801c10e: 68fb ldr r3, [r7, #12]
  69188. 801c110: 3304 adds r3, #4
  69189. 801c112: 4618 mov r0, r3
  69190. 801c114: f009 fb14 bl 8025740 <ip4_route>
  69191. 801c118: 6278 str r0, [r7, #36] @ 0x24
  69192. }
  69193. if (netif == NULL) {
  69194. 801c11a: 6a7b ldr r3, [r7, #36] @ 0x24
  69195. 801c11c: 2b00 cmp r3, #0
  69196. 801c11e: d102 bne.n 801c126 <tcp_connect+0xae>
  69197. /* Don't even try to send a SYN packet if we have no route since that will fail. */
  69198. return ERR_RTE;
  69199. 801c120: f06f 0303 mvn.w r3, #3
  69200. 801c124: e0ae b.n 801c284 <tcp_connect+0x20c>
  69201. }
  69202. /* check if local IP has been assigned to pcb, if not, get one */
  69203. if (ip_addr_isany(&pcb->local_ip)) {
  69204. 801c126: 68fb ldr r3, [r7, #12]
  69205. 801c128: 2b00 cmp r3, #0
  69206. 801c12a: d003 beq.n 801c134 <tcp_connect+0xbc>
  69207. 801c12c: 68fb ldr r3, [r7, #12]
  69208. 801c12e: 681b ldr r3, [r3, #0]
  69209. 801c130: 2b00 cmp r3, #0
  69210. 801c132: d111 bne.n 801c158 <tcp_connect+0xe0>
  69211. const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, ipaddr);
  69212. 801c134: 6a7b ldr r3, [r7, #36] @ 0x24
  69213. 801c136: 2b00 cmp r3, #0
  69214. 801c138: d002 beq.n 801c140 <tcp_connect+0xc8>
  69215. 801c13a: 6a7b ldr r3, [r7, #36] @ 0x24
  69216. 801c13c: 3304 adds r3, #4
  69217. 801c13e: e000 b.n 801c142 <tcp_connect+0xca>
  69218. 801c140: 2300 movs r3, #0
  69219. 801c142: 61fb str r3, [r7, #28]
  69220. if (local_ip == NULL) {
  69221. 801c144: 69fb ldr r3, [r7, #28]
  69222. 801c146: 2b00 cmp r3, #0
  69223. 801c148: d102 bne.n 801c150 <tcp_connect+0xd8>
  69224. return ERR_RTE;
  69225. 801c14a: f06f 0303 mvn.w r3, #3
  69226. 801c14e: e099 b.n 801c284 <tcp_connect+0x20c>
  69227. }
  69228. ip_addr_copy(pcb->local_ip, *local_ip);
  69229. 801c150: 69fb ldr r3, [r7, #28]
  69230. 801c152: 681a ldr r2, [r3, #0]
  69231. 801c154: 68fb ldr r3, [r7, #12]
  69232. 801c156: 601a str r2, [r3, #0]
  69233. ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNICAST)) {
  69234. ip6_addr_assign_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNICAST, netif);
  69235. }
  69236. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  69237. old_local_port = pcb->local_port;
  69238. 801c158: 68fb ldr r3, [r7, #12]
  69239. 801c15a: 8adb ldrh r3, [r3, #22]
  69240. 801c15c: 837b strh r3, [r7, #26]
  69241. if (pcb->local_port == 0) {
  69242. 801c15e: 68fb ldr r3, [r7, #12]
  69243. 801c160: 8adb ldrh r3, [r3, #22]
  69244. 801c162: 2b00 cmp r3, #0
  69245. 801c164: d10c bne.n 801c180 <tcp_connect+0x108>
  69246. pcb->local_port = tcp_new_port();
  69247. 801c166: f7ff ff41 bl 801bfec <tcp_new_port>
  69248. 801c16a: 4603 mov r3, r0
  69249. 801c16c: 461a mov r2, r3
  69250. 801c16e: 68fb ldr r3, [r7, #12]
  69251. 801c170: 82da strh r2, [r3, #22]
  69252. if (pcb->local_port == 0) {
  69253. 801c172: 68fb ldr r3, [r7, #12]
  69254. 801c174: 8adb ldrh r3, [r3, #22]
  69255. 801c176: 2b00 cmp r3, #0
  69256. 801c178: d102 bne.n 801c180 <tcp_connect+0x108>
  69257. return ERR_BUF;
  69258. 801c17a: f06f 0301 mvn.w r3, #1
  69259. 801c17e: e081 b.n 801c284 <tcp_connect+0x20c>
  69260. }
  69261. }
  69262. #endif /* SO_REUSE */
  69263. }
  69264. iss = tcp_next_iss(pcb);
  69265. 801c180: 68f8 ldr r0, [r7, #12]
  69266. 801c182: f001 f875 bl 801d270 <tcp_next_iss>
  69267. 801c186: 6178 str r0, [r7, #20]
  69268. pcb->rcv_nxt = 0;
  69269. 801c188: 68fb ldr r3, [r7, #12]
  69270. 801c18a: 2200 movs r2, #0
  69271. 801c18c: 625a str r2, [r3, #36] @ 0x24
  69272. pcb->snd_nxt = iss;
  69273. 801c18e: 68fb ldr r3, [r7, #12]
  69274. 801c190: 697a ldr r2, [r7, #20]
  69275. 801c192: 651a str r2, [r3, #80] @ 0x50
  69276. pcb->lastack = iss - 1;
  69277. 801c194: 697b ldr r3, [r7, #20]
  69278. 801c196: 1e5a subs r2, r3, #1
  69279. 801c198: 68fb ldr r3, [r7, #12]
  69280. 801c19a: 645a str r2, [r3, #68] @ 0x44
  69281. pcb->snd_wl2 = iss - 1;
  69282. 801c19c: 697b ldr r3, [r7, #20]
  69283. 801c19e: 1e5a subs r2, r3, #1
  69284. 801c1a0: 68fb ldr r3, [r7, #12]
  69285. 801c1a2: 659a str r2, [r3, #88] @ 0x58
  69286. pcb->snd_lbb = iss - 1;
  69287. 801c1a4: 697b ldr r3, [r7, #20]
  69288. 801c1a6: 1e5a subs r2, r3, #1
  69289. 801c1a8: 68fb ldr r3, [r7, #12]
  69290. 801c1aa: 65da str r2, [r3, #92] @ 0x5c
  69291. /* Start with a window that does not need scaling. When window scaling is
  69292. enabled and used, the window is enlarged when both sides agree on scaling. */
  69293. pcb->rcv_wnd = pcb->rcv_ann_wnd = TCPWND_MIN16(TCP_WND);
  69294. 801c1ac: 68fb ldr r3, [r7, #12]
  69295. 801c1ae: f241 62d0 movw r2, #5840 @ 0x16d0
  69296. 801c1b2: 855a strh r2, [r3, #42] @ 0x2a
  69297. 801c1b4: 68fb ldr r3, [r7, #12]
  69298. 801c1b6: 8d5a ldrh r2, [r3, #42] @ 0x2a
  69299. 801c1b8: 68fb ldr r3, [r7, #12]
  69300. 801c1ba: 851a strh r2, [r3, #40] @ 0x28
  69301. pcb->rcv_ann_right_edge = pcb->rcv_nxt;
  69302. 801c1bc: 68fb ldr r3, [r7, #12]
  69303. 801c1be: 6a5a ldr r2, [r3, #36] @ 0x24
  69304. 801c1c0: 68fb ldr r3, [r7, #12]
  69305. 801c1c2: 62da str r2, [r3, #44] @ 0x2c
  69306. pcb->snd_wnd = TCP_WND;
  69307. 801c1c4: 68fb ldr r3, [r7, #12]
  69308. 801c1c6: f241 62d0 movw r2, #5840 @ 0x16d0
  69309. 801c1ca: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  69310. /* As initial send MSS, we use TCP_MSS but limit it to 536.
  69311. The send MSS is updated when an MSS option is received. */
  69312. pcb->mss = INITIAL_MSS;
  69313. 801c1ce: 68fb ldr r3, [r7, #12]
  69314. 801c1d0: f44f 7206 mov.w r2, #536 @ 0x218
  69315. 801c1d4: 865a strh r2, [r3, #50] @ 0x32
  69316. #if TCP_CALCULATE_EFF_SEND_MSS
  69317. pcb->mss = tcp_eff_send_mss_netif(pcb->mss, netif, &pcb->remote_ip);
  69318. 801c1d6: 68fb ldr r3, [r7, #12]
  69319. 801c1d8: 8e58 ldrh r0, [r3, #50] @ 0x32
  69320. 801c1da: 68fb ldr r3, [r7, #12]
  69321. 801c1dc: 3304 adds r3, #4
  69322. 801c1de: 461a mov r2, r3
  69323. 801c1e0: 6a79 ldr r1, [r7, #36] @ 0x24
  69324. 801c1e2: f001 f86b bl 801d2bc <tcp_eff_send_mss_netif>
  69325. 801c1e6: 4603 mov r3, r0
  69326. 801c1e8: 461a mov r2, r3
  69327. 801c1ea: 68fb ldr r3, [r7, #12]
  69328. 801c1ec: 865a strh r2, [r3, #50] @ 0x32
  69329. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  69330. pcb->cwnd = 1;
  69331. 801c1ee: 68fb ldr r3, [r7, #12]
  69332. 801c1f0: 2201 movs r2, #1
  69333. 801c1f2: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  69334. #if LWIP_CALLBACK_API
  69335. pcb->connected = connected;
  69336. 801c1f6: 68fb ldr r3, [r7, #12]
  69337. 801c1f8: 683a ldr r2, [r7, #0]
  69338. 801c1fa: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  69339. #else /* LWIP_CALLBACK_API */
  69340. LWIP_UNUSED_ARG(connected);
  69341. #endif /* LWIP_CALLBACK_API */
  69342. /* Send a SYN together with the MSS option. */
  69343. ret = tcp_enqueue_flags(pcb, TCP_SYN);
  69344. 801c1fe: 2102 movs r1, #2
  69345. 801c200: 68f8 ldr r0, [r7, #12]
  69346. 801c202: f004 fb31 bl 8020868 <tcp_enqueue_flags>
  69347. 801c206: 4603 mov r3, r0
  69348. 801c208: 74fb strb r3, [r7, #19]
  69349. if (ret == ERR_OK) {
  69350. 801c20a: f997 3013 ldrsb.w r3, [r7, #19]
  69351. 801c20e: 2b00 cmp r3, #0
  69352. 801c210: d136 bne.n 801c280 <tcp_connect+0x208>
  69353. /* SYN segment was enqueued, changed the pcbs state now */
  69354. pcb->state = SYN_SENT;
  69355. 801c212: 68fb ldr r3, [r7, #12]
  69356. 801c214: 2202 movs r2, #2
  69357. 801c216: 751a strb r2, [r3, #20]
  69358. if (old_local_port != 0) {
  69359. 801c218: 8b7b ldrh r3, [r7, #26]
  69360. 801c21a: 2b00 cmp r3, #0
  69361. 801c21c: d021 beq.n 801c262 <tcp_connect+0x1ea>
  69362. TCP_RMV(&tcp_bound_pcbs, pcb);
  69363. 801c21e: 4b20 ldr r3, [pc, #128] @ (801c2a0 <tcp_connect+0x228>)
  69364. 801c220: 681b ldr r3, [r3, #0]
  69365. 801c222: 68fa ldr r2, [r7, #12]
  69366. 801c224: 429a cmp r2, r3
  69367. 801c226: d105 bne.n 801c234 <tcp_connect+0x1bc>
  69368. 801c228: 4b1d ldr r3, [pc, #116] @ (801c2a0 <tcp_connect+0x228>)
  69369. 801c22a: 681b ldr r3, [r3, #0]
  69370. 801c22c: 68db ldr r3, [r3, #12]
  69371. 801c22e: 4a1c ldr r2, [pc, #112] @ (801c2a0 <tcp_connect+0x228>)
  69372. 801c230: 6013 str r3, [r2, #0]
  69373. 801c232: e013 b.n 801c25c <tcp_connect+0x1e4>
  69374. 801c234: 4b1a ldr r3, [pc, #104] @ (801c2a0 <tcp_connect+0x228>)
  69375. 801c236: 681b ldr r3, [r3, #0]
  69376. 801c238: 623b str r3, [r7, #32]
  69377. 801c23a: e00c b.n 801c256 <tcp_connect+0x1de>
  69378. 801c23c: 6a3b ldr r3, [r7, #32]
  69379. 801c23e: 68db ldr r3, [r3, #12]
  69380. 801c240: 68fa ldr r2, [r7, #12]
  69381. 801c242: 429a cmp r2, r3
  69382. 801c244: d104 bne.n 801c250 <tcp_connect+0x1d8>
  69383. 801c246: 68fb ldr r3, [r7, #12]
  69384. 801c248: 68da ldr r2, [r3, #12]
  69385. 801c24a: 6a3b ldr r3, [r7, #32]
  69386. 801c24c: 60da str r2, [r3, #12]
  69387. 801c24e: e005 b.n 801c25c <tcp_connect+0x1e4>
  69388. 801c250: 6a3b ldr r3, [r7, #32]
  69389. 801c252: 68db ldr r3, [r3, #12]
  69390. 801c254: 623b str r3, [r7, #32]
  69391. 801c256: 6a3b ldr r3, [r7, #32]
  69392. 801c258: 2b00 cmp r3, #0
  69393. 801c25a: d1ef bne.n 801c23c <tcp_connect+0x1c4>
  69394. 801c25c: 68fb ldr r3, [r7, #12]
  69395. 801c25e: 2200 movs r2, #0
  69396. 801c260: 60da str r2, [r3, #12]
  69397. }
  69398. TCP_REG_ACTIVE(pcb);
  69399. 801c262: 4b10 ldr r3, [pc, #64] @ (801c2a4 <tcp_connect+0x22c>)
  69400. 801c264: 681a ldr r2, [r3, #0]
  69401. 801c266: 68fb ldr r3, [r7, #12]
  69402. 801c268: 60da str r2, [r3, #12]
  69403. 801c26a: 4a0e ldr r2, [pc, #56] @ (801c2a4 <tcp_connect+0x22c>)
  69404. 801c26c: 68fb ldr r3, [r7, #12]
  69405. 801c26e: 6013 str r3, [r2, #0]
  69406. 801c270: f005 fb6c bl 802194c <tcp_timer_needed>
  69407. 801c274: 4b0c ldr r3, [pc, #48] @ (801c2a8 <tcp_connect+0x230>)
  69408. 801c276: 2201 movs r2, #1
  69409. 801c278: 701a strb r2, [r3, #0]
  69410. MIB2_STATS_INC(mib2.tcpactiveopens);
  69411. tcp_output(pcb);
  69412. 801c27a: 68f8 ldr r0, [r7, #12]
  69413. 801c27c: f004 fbe2 bl 8020a44 <tcp_output>
  69414. }
  69415. return ret;
  69416. 801c280: f997 3013 ldrsb.w r3, [r7, #19]
  69417. }
  69418. 801c284: 4618 mov r0, r3
  69419. 801c286: 3728 adds r7, #40 @ 0x28
  69420. 801c288: 46bd mov sp, r7
  69421. 801c28a: bd80 pop {r7, pc}
  69422. 801c28c: 0802f48c .word 0x0802f48c
  69423. 801c290: 0802f768 .word 0x0802f768
  69424. 801c294: 0802f4d0 .word 0x0802f4d0
  69425. 801c298: 0802f784 .word 0x0802f784
  69426. 801c29c: 0802f7a0 .word 0x0802f7a0
  69427. 801c2a0: 2402af6c .word 0x2402af6c
  69428. 801c2a4: 2402af74 .word 0x2402af74
  69429. 801c2a8: 2402af7c .word 0x2402af7c
  69430. 0801c2ac <tcp_slowtmr>:
  69431. *
  69432. * Automatically called from tcp_tmr().
  69433. */
  69434. void
  69435. tcp_slowtmr(void)
  69436. {
  69437. 801c2ac: b5b0 push {r4, r5, r7, lr}
  69438. 801c2ae: b090 sub sp, #64 @ 0x40
  69439. 801c2b0: af04 add r7, sp, #16
  69440. tcpwnd_size_t eff_wnd;
  69441. u8_t pcb_remove; /* flag if a PCB should be removed */
  69442. u8_t pcb_reset; /* flag if a RST should be sent when removing */
  69443. err_t err;
  69444. err = ERR_OK;
  69445. 801c2b2: 2300 movs r3, #0
  69446. 801c2b4: f887 3025 strb.w r3, [r7, #37] @ 0x25
  69447. ++tcp_ticks;
  69448. 801c2b8: 4b95 ldr r3, [pc, #596] @ (801c510 <tcp_slowtmr+0x264>)
  69449. 801c2ba: 681b ldr r3, [r3, #0]
  69450. 801c2bc: 3301 adds r3, #1
  69451. 801c2be: 4a94 ldr r2, [pc, #592] @ (801c510 <tcp_slowtmr+0x264>)
  69452. 801c2c0: 6013 str r3, [r2, #0]
  69453. ++tcp_timer_ctr;
  69454. 801c2c2: 4b94 ldr r3, [pc, #592] @ (801c514 <tcp_slowtmr+0x268>)
  69455. 801c2c4: 781b ldrb r3, [r3, #0]
  69456. 801c2c6: 3301 adds r3, #1
  69457. 801c2c8: b2da uxtb r2, r3
  69458. 801c2ca: 4b92 ldr r3, [pc, #584] @ (801c514 <tcp_slowtmr+0x268>)
  69459. 801c2cc: 701a strb r2, [r3, #0]
  69460. 801c2ce: e000 b.n 801c2d2 <tcp_slowtmr+0x26>
  69461. prev->polltmr = 0;
  69462. LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: polling application\n"));
  69463. tcp_active_pcbs_changed = 0;
  69464. TCP_EVENT_POLL(prev, err);
  69465. if (tcp_active_pcbs_changed) {
  69466. goto tcp_slowtmr_start;
  69467. 801c2d0: bf00 nop
  69468. prev = NULL;
  69469. 801c2d2: 2300 movs r3, #0
  69470. 801c2d4: 62bb str r3, [r7, #40] @ 0x28
  69471. pcb = tcp_active_pcbs;
  69472. 801c2d6: 4b90 ldr r3, [pc, #576] @ (801c518 <tcp_slowtmr+0x26c>)
  69473. 801c2d8: 681b ldr r3, [r3, #0]
  69474. 801c2da: 62fb str r3, [r7, #44] @ 0x2c
  69475. while (pcb != NULL) {
  69476. 801c2dc: e29d b.n 801c81a <tcp_slowtmr+0x56e>
  69477. LWIP_ASSERT("tcp_slowtmr: active pcb->state != CLOSED\n", pcb->state != CLOSED);
  69478. 801c2de: 6afb ldr r3, [r7, #44] @ 0x2c
  69479. 801c2e0: 7d1b ldrb r3, [r3, #20]
  69480. 801c2e2: 2b00 cmp r3, #0
  69481. 801c2e4: d106 bne.n 801c2f4 <tcp_slowtmr+0x48>
  69482. 801c2e6: 4b8d ldr r3, [pc, #564] @ (801c51c <tcp_slowtmr+0x270>)
  69483. 801c2e8: f240 42be movw r2, #1214 @ 0x4be
  69484. 801c2ec: 498c ldr r1, [pc, #560] @ (801c520 <tcp_slowtmr+0x274>)
  69485. 801c2ee: 488d ldr r0, [pc, #564] @ (801c524 <tcp_slowtmr+0x278>)
  69486. 801c2f0: f00e fa34 bl 802a75c <iprintf>
  69487. LWIP_ASSERT("tcp_slowtmr: active pcb->state != LISTEN\n", pcb->state != LISTEN);
  69488. 801c2f4: 6afb ldr r3, [r7, #44] @ 0x2c
  69489. 801c2f6: 7d1b ldrb r3, [r3, #20]
  69490. 801c2f8: 2b01 cmp r3, #1
  69491. 801c2fa: d106 bne.n 801c30a <tcp_slowtmr+0x5e>
  69492. 801c2fc: 4b87 ldr r3, [pc, #540] @ (801c51c <tcp_slowtmr+0x270>)
  69493. 801c2fe: f240 42bf movw r2, #1215 @ 0x4bf
  69494. 801c302: 4989 ldr r1, [pc, #548] @ (801c528 <tcp_slowtmr+0x27c>)
  69495. 801c304: 4887 ldr r0, [pc, #540] @ (801c524 <tcp_slowtmr+0x278>)
  69496. 801c306: f00e fa29 bl 802a75c <iprintf>
  69497. LWIP_ASSERT("tcp_slowtmr: active pcb->state != TIME-WAIT\n", pcb->state != TIME_WAIT);
  69498. 801c30a: 6afb ldr r3, [r7, #44] @ 0x2c
  69499. 801c30c: 7d1b ldrb r3, [r3, #20]
  69500. 801c30e: 2b0a cmp r3, #10
  69501. 801c310: d106 bne.n 801c320 <tcp_slowtmr+0x74>
  69502. 801c312: 4b82 ldr r3, [pc, #520] @ (801c51c <tcp_slowtmr+0x270>)
  69503. 801c314: f44f 6298 mov.w r2, #1216 @ 0x4c0
  69504. 801c318: 4984 ldr r1, [pc, #528] @ (801c52c <tcp_slowtmr+0x280>)
  69505. 801c31a: 4882 ldr r0, [pc, #520] @ (801c524 <tcp_slowtmr+0x278>)
  69506. 801c31c: f00e fa1e bl 802a75c <iprintf>
  69507. if (pcb->last_timer == tcp_timer_ctr) {
  69508. 801c320: 6afb ldr r3, [r7, #44] @ 0x2c
  69509. 801c322: 7f9a ldrb r2, [r3, #30]
  69510. 801c324: 4b7b ldr r3, [pc, #492] @ (801c514 <tcp_slowtmr+0x268>)
  69511. 801c326: 781b ldrb r3, [r3, #0]
  69512. 801c328: 429a cmp r2, r3
  69513. 801c32a: d105 bne.n 801c338 <tcp_slowtmr+0x8c>
  69514. prev = pcb;
  69515. 801c32c: 6afb ldr r3, [r7, #44] @ 0x2c
  69516. 801c32e: 62bb str r3, [r7, #40] @ 0x28
  69517. pcb = pcb->next;
  69518. 801c330: 6afb ldr r3, [r7, #44] @ 0x2c
  69519. 801c332: 68db ldr r3, [r3, #12]
  69520. 801c334: 62fb str r3, [r7, #44] @ 0x2c
  69521. continue;
  69522. 801c336: e270 b.n 801c81a <tcp_slowtmr+0x56e>
  69523. pcb->last_timer = tcp_timer_ctr;
  69524. 801c338: 4b76 ldr r3, [pc, #472] @ (801c514 <tcp_slowtmr+0x268>)
  69525. 801c33a: 781a ldrb r2, [r3, #0]
  69526. 801c33c: 6afb ldr r3, [r7, #44] @ 0x2c
  69527. 801c33e: 779a strb r2, [r3, #30]
  69528. pcb_remove = 0;
  69529. 801c340: 2300 movs r3, #0
  69530. 801c342: f887 3027 strb.w r3, [r7, #39] @ 0x27
  69531. pcb_reset = 0;
  69532. 801c346: 2300 movs r3, #0
  69533. 801c348: f887 3026 strb.w r3, [r7, #38] @ 0x26
  69534. if (pcb->state == SYN_SENT && pcb->nrtx >= TCP_SYNMAXRTX) {
  69535. 801c34c: 6afb ldr r3, [r7, #44] @ 0x2c
  69536. 801c34e: 7d1b ldrb r3, [r3, #20]
  69537. 801c350: 2b02 cmp r3, #2
  69538. 801c352: d10a bne.n 801c36a <tcp_slowtmr+0xbe>
  69539. 801c354: 6afb ldr r3, [r7, #44] @ 0x2c
  69540. 801c356: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  69541. 801c35a: 2b05 cmp r3, #5
  69542. 801c35c: d905 bls.n 801c36a <tcp_slowtmr+0xbe>
  69543. ++pcb_remove;
  69544. 801c35e: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69545. 801c362: 3301 adds r3, #1
  69546. 801c364: f887 3027 strb.w r3, [r7, #39] @ 0x27
  69547. LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: max SYN retries reached\n"));
  69548. 801c368: e11e b.n 801c5a8 <tcp_slowtmr+0x2fc>
  69549. } else if (pcb->nrtx >= TCP_MAXRTX) {
  69550. 801c36a: 6afb ldr r3, [r7, #44] @ 0x2c
  69551. 801c36c: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  69552. 801c370: 2b0b cmp r3, #11
  69553. 801c372: d905 bls.n 801c380 <tcp_slowtmr+0xd4>
  69554. ++pcb_remove;
  69555. 801c374: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69556. 801c378: 3301 adds r3, #1
  69557. 801c37a: f887 3027 strb.w r3, [r7, #39] @ 0x27
  69558. 801c37e: e113 b.n 801c5a8 <tcp_slowtmr+0x2fc>
  69559. if (pcb->persist_backoff > 0) {
  69560. 801c380: 6afb ldr r3, [r7, #44] @ 0x2c
  69561. 801c382: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  69562. 801c386: 2b00 cmp r3, #0
  69563. 801c388: d075 beq.n 801c476 <tcp_slowtmr+0x1ca>
  69564. LWIP_ASSERT("tcp_slowtimr: persist ticking with in-flight data", pcb->unacked == NULL);
  69565. 801c38a: 6afb ldr r3, [r7, #44] @ 0x2c
  69566. 801c38c: 6f1b ldr r3, [r3, #112] @ 0x70
  69567. 801c38e: 2b00 cmp r3, #0
  69568. 801c390: d006 beq.n 801c3a0 <tcp_slowtmr+0xf4>
  69569. 801c392: 4b62 ldr r3, [pc, #392] @ (801c51c <tcp_slowtmr+0x270>)
  69570. 801c394: f240 42d4 movw r2, #1236 @ 0x4d4
  69571. 801c398: 4965 ldr r1, [pc, #404] @ (801c530 <tcp_slowtmr+0x284>)
  69572. 801c39a: 4862 ldr r0, [pc, #392] @ (801c524 <tcp_slowtmr+0x278>)
  69573. 801c39c: f00e f9de bl 802a75c <iprintf>
  69574. LWIP_ASSERT("tcp_slowtimr: persist ticking with empty send buffer", pcb->unsent != NULL);
  69575. 801c3a0: 6afb ldr r3, [r7, #44] @ 0x2c
  69576. 801c3a2: 6edb ldr r3, [r3, #108] @ 0x6c
  69577. 801c3a4: 2b00 cmp r3, #0
  69578. 801c3a6: d106 bne.n 801c3b6 <tcp_slowtmr+0x10a>
  69579. 801c3a8: 4b5c ldr r3, [pc, #368] @ (801c51c <tcp_slowtmr+0x270>)
  69580. 801c3aa: f240 42d5 movw r2, #1237 @ 0x4d5
  69581. 801c3ae: 4961 ldr r1, [pc, #388] @ (801c534 <tcp_slowtmr+0x288>)
  69582. 801c3b0: 485c ldr r0, [pc, #368] @ (801c524 <tcp_slowtmr+0x278>)
  69583. 801c3b2: f00e f9d3 bl 802a75c <iprintf>
  69584. if (pcb->persist_probe >= TCP_MAXRTX) {
  69585. 801c3b6: 6afb ldr r3, [r7, #44] @ 0x2c
  69586. 801c3b8: f893 309a ldrb.w r3, [r3, #154] @ 0x9a
  69587. 801c3bc: 2b0b cmp r3, #11
  69588. 801c3be: d905 bls.n 801c3cc <tcp_slowtmr+0x120>
  69589. ++pcb_remove; /* max probes reached */
  69590. 801c3c0: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69591. 801c3c4: 3301 adds r3, #1
  69592. 801c3c6: f887 3027 strb.w r3, [r7, #39] @ 0x27
  69593. 801c3ca: e0ed b.n 801c5a8 <tcp_slowtmr+0x2fc>
  69594. u8_t backoff_cnt = tcp_persist_backoff[pcb->persist_backoff - 1];
  69595. 801c3cc: 6afb ldr r3, [r7, #44] @ 0x2c
  69596. 801c3ce: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  69597. 801c3d2: 3b01 subs r3, #1
  69598. 801c3d4: 4a58 ldr r2, [pc, #352] @ (801c538 <tcp_slowtmr+0x28c>)
  69599. 801c3d6: 5cd3 ldrb r3, [r2, r3]
  69600. 801c3d8: 747b strb r3, [r7, #17]
  69601. if (pcb->persist_cnt < backoff_cnt) {
  69602. 801c3da: 6afb ldr r3, [r7, #44] @ 0x2c
  69603. 801c3dc: f893 3098 ldrb.w r3, [r3, #152] @ 0x98
  69604. 801c3e0: 7c7a ldrb r2, [r7, #17]
  69605. 801c3e2: 429a cmp r2, r3
  69606. 801c3e4: d907 bls.n 801c3f6 <tcp_slowtmr+0x14a>
  69607. pcb->persist_cnt++;
  69608. 801c3e6: 6afb ldr r3, [r7, #44] @ 0x2c
  69609. 801c3e8: f893 3098 ldrb.w r3, [r3, #152] @ 0x98
  69610. 801c3ec: 3301 adds r3, #1
  69611. 801c3ee: b2da uxtb r2, r3
  69612. 801c3f0: 6afb ldr r3, [r7, #44] @ 0x2c
  69613. 801c3f2: f883 2098 strb.w r2, [r3, #152] @ 0x98
  69614. if (pcb->persist_cnt >= backoff_cnt) {
  69615. 801c3f6: 6afb ldr r3, [r7, #44] @ 0x2c
  69616. 801c3f8: f893 3098 ldrb.w r3, [r3, #152] @ 0x98
  69617. 801c3fc: 7c7a ldrb r2, [r7, #17]
  69618. 801c3fe: 429a cmp r2, r3
  69619. 801c400: f200 80d2 bhi.w 801c5a8 <tcp_slowtmr+0x2fc>
  69620. int next_slot = 1; /* increment timer to next slot */
  69621. 801c404: 2301 movs r3, #1
  69622. 801c406: 623b str r3, [r7, #32]
  69623. if (pcb->snd_wnd == 0) {
  69624. 801c408: 6afb ldr r3, [r7, #44] @ 0x2c
  69625. 801c40a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  69626. 801c40e: 2b00 cmp r3, #0
  69627. 801c410: d108 bne.n 801c424 <tcp_slowtmr+0x178>
  69628. if (tcp_zero_window_probe(pcb) != ERR_OK) {
  69629. 801c412: 6af8 ldr r0, [r7, #44] @ 0x2c
  69630. 801c414: f005 f9cc bl 80217b0 <tcp_zero_window_probe>
  69631. 801c418: 4603 mov r3, r0
  69632. 801c41a: 2b00 cmp r3, #0
  69633. 801c41c: d014 beq.n 801c448 <tcp_slowtmr+0x19c>
  69634. next_slot = 0; /* try probe again with current slot */
  69635. 801c41e: 2300 movs r3, #0
  69636. 801c420: 623b str r3, [r7, #32]
  69637. 801c422: e011 b.n 801c448 <tcp_slowtmr+0x19c>
  69638. if (tcp_split_unsent_seg(pcb, (u16_t)pcb->snd_wnd) == ERR_OK) {
  69639. 801c424: 6afb ldr r3, [r7, #44] @ 0x2c
  69640. 801c426: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  69641. 801c42a: 4619 mov r1, r3
  69642. 801c42c: 6af8 ldr r0, [r7, #44] @ 0x2c
  69643. 801c42e: f004 f87f bl 8020530 <tcp_split_unsent_seg>
  69644. 801c432: 4603 mov r3, r0
  69645. 801c434: 2b00 cmp r3, #0
  69646. 801c436: d107 bne.n 801c448 <tcp_slowtmr+0x19c>
  69647. if (tcp_output(pcb) == ERR_OK) {
  69648. 801c438: 6af8 ldr r0, [r7, #44] @ 0x2c
  69649. 801c43a: f004 fb03 bl 8020a44 <tcp_output>
  69650. 801c43e: 4603 mov r3, r0
  69651. 801c440: 2b00 cmp r3, #0
  69652. 801c442: d101 bne.n 801c448 <tcp_slowtmr+0x19c>
  69653. next_slot = 0;
  69654. 801c444: 2300 movs r3, #0
  69655. 801c446: 623b str r3, [r7, #32]
  69656. if (next_slot) {
  69657. 801c448: 6a3b ldr r3, [r7, #32]
  69658. 801c44a: 2b00 cmp r3, #0
  69659. 801c44c: f000 80ac beq.w 801c5a8 <tcp_slowtmr+0x2fc>
  69660. pcb->persist_cnt = 0;
  69661. 801c450: 6afb ldr r3, [r7, #44] @ 0x2c
  69662. 801c452: 2200 movs r2, #0
  69663. 801c454: f883 2098 strb.w r2, [r3, #152] @ 0x98
  69664. if (pcb->persist_backoff < sizeof(tcp_persist_backoff)) {
  69665. 801c458: 6afb ldr r3, [r7, #44] @ 0x2c
  69666. 801c45a: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  69667. 801c45e: 2b06 cmp r3, #6
  69668. 801c460: f200 80a2 bhi.w 801c5a8 <tcp_slowtmr+0x2fc>
  69669. pcb->persist_backoff++;
  69670. 801c464: 6afb ldr r3, [r7, #44] @ 0x2c
  69671. 801c466: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  69672. 801c46a: 3301 adds r3, #1
  69673. 801c46c: b2da uxtb r2, r3
  69674. 801c46e: 6afb ldr r3, [r7, #44] @ 0x2c
  69675. 801c470: f883 2099 strb.w r2, [r3, #153] @ 0x99
  69676. 801c474: e098 b.n 801c5a8 <tcp_slowtmr+0x2fc>
  69677. if ((pcb->rtime >= 0) && (pcb->rtime < 0x7FFF)) {
  69678. 801c476: 6afb ldr r3, [r7, #44] @ 0x2c
  69679. 801c478: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  69680. 801c47c: 2b00 cmp r3, #0
  69681. 801c47e: db0f blt.n 801c4a0 <tcp_slowtmr+0x1f4>
  69682. 801c480: 6afb ldr r3, [r7, #44] @ 0x2c
  69683. 801c482: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  69684. 801c486: f647 72ff movw r2, #32767 @ 0x7fff
  69685. 801c48a: 4293 cmp r3, r2
  69686. 801c48c: d008 beq.n 801c4a0 <tcp_slowtmr+0x1f4>
  69687. ++pcb->rtime;
  69688. 801c48e: 6afb ldr r3, [r7, #44] @ 0x2c
  69689. 801c490: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  69690. 801c494: b29b uxth r3, r3
  69691. 801c496: 3301 adds r3, #1
  69692. 801c498: b29b uxth r3, r3
  69693. 801c49a: b21a sxth r2, r3
  69694. 801c49c: 6afb ldr r3, [r7, #44] @ 0x2c
  69695. 801c49e: 861a strh r2, [r3, #48] @ 0x30
  69696. if (pcb->rtime >= pcb->rto) {
  69697. 801c4a0: 6afb ldr r3, [r7, #44] @ 0x2c
  69698. 801c4a2: f9b3 2030 ldrsh.w r2, [r3, #48] @ 0x30
  69699. 801c4a6: 6afb ldr r3, [r7, #44] @ 0x2c
  69700. 801c4a8: f9b3 3040 ldrsh.w r3, [r3, #64] @ 0x40
  69701. 801c4ac: 429a cmp r2, r3
  69702. 801c4ae: db7b blt.n 801c5a8 <tcp_slowtmr+0x2fc>
  69703. if ((tcp_rexmit_rto_prepare(pcb) == ERR_OK) || ((pcb->unacked == NULL) && (pcb->unsent != NULL))) {
  69704. 801c4b0: 6af8 ldr r0, [r7, #44] @ 0x2c
  69705. 801c4b2: f004 fdbf bl 8021034 <tcp_rexmit_rto_prepare>
  69706. 801c4b6: 4603 mov r3, r0
  69707. 801c4b8: 2b00 cmp r3, #0
  69708. 801c4ba: d007 beq.n 801c4cc <tcp_slowtmr+0x220>
  69709. 801c4bc: 6afb ldr r3, [r7, #44] @ 0x2c
  69710. 801c4be: 6f1b ldr r3, [r3, #112] @ 0x70
  69711. 801c4c0: 2b00 cmp r3, #0
  69712. 801c4c2: d171 bne.n 801c5a8 <tcp_slowtmr+0x2fc>
  69713. 801c4c4: 6afb ldr r3, [r7, #44] @ 0x2c
  69714. 801c4c6: 6edb ldr r3, [r3, #108] @ 0x6c
  69715. 801c4c8: 2b00 cmp r3, #0
  69716. 801c4ca: d06d beq.n 801c5a8 <tcp_slowtmr+0x2fc>
  69717. if (pcb->state != SYN_SENT) {
  69718. 801c4cc: 6afb ldr r3, [r7, #44] @ 0x2c
  69719. 801c4ce: 7d1b ldrb r3, [r3, #20]
  69720. 801c4d0: 2b02 cmp r3, #2
  69721. 801c4d2: d03a beq.n 801c54a <tcp_slowtmr+0x29e>
  69722. u8_t backoff_idx = LWIP_MIN(pcb->nrtx, sizeof(tcp_backoff) - 1);
  69723. 801c4d4: 6afb ldr r3, [r7, #44] @ 0x2c
  69724. 801c4d6: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  69725. 801c4da: 2b0c cmp r3, #12
  69726. 801c4dc: bf28 it cs
  69727. 801c4de: 230c movcs r3, #12
  69728. 801c4e0: 76fb strb r3, [r7, #27]
  69729. int calc_rto = ((pcb->sa >> 3) + pcb->sv) << tcp_backoff[backoff_idx];
  69730. 801c4e2: 6afb ldr r3, [r7, #44] @ 0x2c
  69731. 801c4e4: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  69732. 801c4e8: 10db asrs r3, r3, #3
  69733. 801c4ea: b21b sxth r3, r3
  69734. 801c4ec: 461a mov r2, r3
  69735. 801c4ee: 6afb ldr r3, [r7, #44] @ 0x2c
  69736. 801c4f0: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  69737. 801c4f4: 4413 add r3, r2
  69738. 801c4f6: 7efa ldrb r2, [r7, #27]
  69739. 801c4f8: 4910 ldr r1, [pc, #64] @ (801c53c <tcp_slowtmr+0x290>)
  69740. 801c4fa: 5c8a ldrb r2, [r1, r2]
  69741. 801c4fc: 4093 lsls r3, r2
  69742. 801c4fe: 617b str r3, [r7, #20]
  69743. pcb->rto = (s16_t)LWIP_MIN(calc_rto, 0x7FFF);
  69744. 801c500: 697b ldr r3, [r7, #20]
  69745. 801c502: f647 72fe movw r2, #32766 @ 0x7ffe
  69746. 801c506: 4293 cmp r3, r2
  69747. 801c508: dc1a bgt.n 801c540 <tcp_slowtmr+0x294>
  69748. 801c50a: 697b ldr r3, [r7, #20]
  69749. 801c50c: b21a sxth r2, r3
  69750. 801c50e: e019 b.n 801c544 <tcp_slowtmr+0x298>
  69751. 801c510: 2402af68 .word 0x2402af68
  69752. 801c514: 2402af7e .word 0x2402af7e
  69753. 801c518: 2402af74 .word 0x2402af74
  69754. 801c51c: 0802f48c .word 0x0802f48c
  69755. 801c520: 0802f7d0 .word 0x0802f7d0
  69756. 801c524: 0802f4d0 .word 0x0802f4d0
  69757. 801c528: 0802f7fc .word 0x0802f7fc
  69758. 801c52c: 0802f828 .word 0x0802f828
  69759. 801c530: 0802f858 .word 0x0802f858
  69760. 801c534: 0802f88c .word 0x0802f88c
  69761. 801c538: 08031b18 .word 0x08031b18
  69762. 801c53c: 08031b08 .word 0x08031b08
  69763. 801c540: f647 72ff movw r2, #32767 @ 0x7fff
  69764. 801c544: 6afb ldr r3, [r7, #44] @ 0x2c
  69765. 801c546: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  69766. pcb->rtime = 0;
  69767. 801c54a: 6afb ldr r3, [r7, #44] @ 0x2c
  69768. 801c54c: 2200 movs r2, #0
  69769. 801c54e: 861a strh r2, [r3, #48] @ 0x30
  69770. eff_wnd = LWIP_MIN(pcb->cwnd, pcb->snd_wnd);
  69771. 801c550: 6afb ldr r3, [r7, #44] @ 0x2c
  69772. 801c552: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  69773. 801c556: 6afb ldr r3, [r7, #44] @ 0x2c
  69774. 801c558: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  69775. 801c55c: 4293 cmp r3, r2
  69776. 801c55e: bf28 it cs
  69777. 801c560: 4613 movcs r3, r2
  69778. 801c562: 827b strh r3, [r7, #18]
  69779. pcb->ssthresh = eff_wnd >> 1;
  69780. 801c564: 8a7b ldrh r3, [r7, #18]
  69781. 801c566: 085b lsrs r3, r3, #1
  69782. 801c568: b29a uxth r2, r3
  69783. 801c56a: 6afb ldr r3, [r7, #44] @ 0x2c
  69784. 801c56c: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  69785. if (pcb->ssthresh < (tcpwnd_size_t)(pcb->mss << 1)) {
  69786. 801c570: 6afb ldr r3, [r7, #44] @ 0x2c
  69787. 801c572: f8b3 204a ldrh.w r2, [r3, #74] @ 0x4a
  69788. 801c576: 6afb ldr r3, [r7, #44] @ 0x2c
  69789. 801c578: 8e5b ldrh r3, [r3, #50] @ 0x32
  69790. 801c57a: 005b lsls r3, r3, #1
  69791. 801c57c: b29b uxth r3, r3
  69792. 801c57e: 429a cmp r2, r3
  69793. 801c580: d206 bcs.n 801c590 <tcp_slowtmr+0x2e4>
  69794. pcb->ssthresh = (tcpwnd_size_t)(pcb->mss << 1);
  69795. 801c582: 6afb ldr r3, [r7, #44] @ 0x2c
  69796. 801c584: 8e5b ldrh r3, [r3, #50] @ 0x32
  69797. 801c586: 005b lsls r3, r3, #1
  69798. 801c588: b29a uxth r2, r3
  69799. 801c58a: 6afb ldr r3, [r7, #44] @ 0x2c
  69800. 801c58c: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  69801. pcb->cwnd = pcb->mss;
  69802. 801c590: 6afb ldr r3, [r7, #44] @ 0x2c
  69803. 801c592: 8e5a ldrh r2, [r3, #50] @ 0x32
  69804. 801c594: 6afb ldr r3, [r7, #44] @ 0x2c
  69805. 801c596: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  69806. pcb->bytes_acked = 0;
  69807. 801c59a: 6afb ldr r3, [r7, #44] @ 0x2c
  69808. 801c59c: 2200 movs r2, #0
  69809. 801c59e: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  69810. tcp_rexmit_rto_commit(pcb);
  69811. 801c5a2: 6af8 ldr r0, [r7, #44] @ 0x2c
  69812. 801c5a4: f004 fdc0 bl 8021128 <tcp_rexmit_rto_commit>
  69813. if (pcb->state == FIN_WAIT_2) {
  69814. 801c5a8: 6afb ldr r3, [r7, #44] @ 0x2c
  69815. 801c5aa: 7d1b ldrb r3, [r3, #20]
  69816. 801c5ac: 2b06 cmp r3, #6
  69817. 801c5ae: d111 bne.n 801c5d4 <tcp_slowtmr+0x328>
  69818. if (pcb->flags & TF_RXCLOSED) {
  69819. 801c5b0: 6afb ldr r3, [r7, #44] @ 0x2c
  69820. 801c5b2: 8b5b ldrh r3, [r3, #26]
  69821. 801c5b4: f003 0310 and.w r3, r3, #16
  69822. 801c5b8: 2b00 cmp r3, #0
  69823. 801c5ba: d00b beq.n 801c5d4 <tcp_slowtmr+0x328>
  69824. if ((u32_t)(tcp_ticks - pcb->tmr) >
  69825. 801c5bc: 4b9c ldr r3, [pc, #624] @ (801c830 <tcp_slowtmr+0x584>)
  69826. 801c5be: 681a ldr r2, [r3, #0]
  69827. 801c5c0: 6afb ldr r3, [r7, #44] @ 0x2c
  69828. 801c5c2: 6a1b ldr r3, [r3, #32]
  69829. 801c5c4: 1ad3 subs r3, r2, r3
  69830. 801c5c6: 2b28 cmp r3, #40 @ 0x28
  69831. 801c5c8: d904 bls.n 801c5d4 <tcp_slowtmr+0x328>
  69832. ++pcb_remove;
  69833. 801c5ca: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69834. 801c5ce: 3301 adds r3, #1
  69835. 801c5d0: f887 3027 strb.w r3, [r7, #39] @ 0x27
  69836. if (ip_get_option(pcb, SOF_KEEPALIVE) &&
  69837. 801c5d4: 6afb ldr r3, [r7, #44] @ 0x2c
  69838. 801c5d6: 7a5b ldrb r3, [r3, #9]
  69839. 801c5d8: f003 0308 and.w r3, r3, #8
  69840. 801c5dc: 2b00 cmp r3, #0
  69841. 801c5de: d04a beq.n 801c676 <tcp_slowtmr+0x3ca>
  69842. ((pcb->state == ESTABLISHED) ||
  69843. 801c5e0: 6afb ldr r3, [r7, #44] @ 0x2c
  69844. 801c5e2: 7d1b ldrb r3, [r3, #20]
  69845. if (ip_get_option(pcb, SOF_KEEPALIVE) &&
  69846. 801c5e4: 2b04 cmp r3, #4
  69847. 801c5e6: d003 beq.n 801c5f0 <tcp_slowtmr+0x344>
  69848. (pcb->state == CLOSE_WAIT))) {
  69849. 801c5e8: 6afb ldr r3, [r7, #44] @ 0x2c
  69850. 801c5ea: 7d1b ldrb r3, [r3, #20]
  69851. ((pcb->state == ESTABLISHED) ||
  69852. 801c5ec: 2b07 cmp r3, #7
  69853. 801c5ee: d142 bne.n 801c676 <tcp_slowtmr+0x3ca>
  69854. if ((u32_t)(tcp_ticks - pcb->tmr) >
  69855. 801c5f0: 4b8f ldr r3, [pc, #572] @ (801c830 <tcp_slowtmr+0x584>)
  69856. 801c5f2: 681a ldr r2, [r3, #0]
  69857. 801c5f4: 6afb ldr r3, [r7, #44] @ 0x2c
  69858. 801c5f6: 6a1b ldr r3, [r3, #32]
  69859. 801c5f8: 1ad2 subs r2, r2, r3
  69860. (pcb->keep_idle + TCP_KEEP_DUR(pcb)) / TCP_SLOW_INTERVAL) {
  69861. 801c5fa: 6afb ldr r3, [r7, #44] @ 0x2c
  69862. 801c5fc: f8d3 1094 ldr.w r1, [r3, #148] @ 0x94
  69863. 801c600: 4b8c ldr r3, [pc, #560] @ (801c834 <tcp_slowtmr+0x588>)
  69864. 801c602: 440b add r3, r1
  69865. 801c604: 498c ldr r1, [pc, #560] @ (801c838 <tcp_slowtmr+0x58c>)
  69866. 801c606: fba1 1303 umull r1, r3, r1, r3
  69867. 801c60a: 095b lsrs r3, r3, #5
  69868. if ((u32_t)(tcp_ticks - pcb->tmr) >
  69869. 801c60c: 429a cmp r2, r3
  69870. 801c60e: d90a bls.n 801c626 <tcp_slowtmr+0x37a>
  69871. ++pcb_remove;
  69872. 801c610: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69873. 801c614: 3301 adds r3, #1
  69874. 801c616: f887 3027 strb.w r3, [r7, #39] @ 0x27
  69875. ++pcb_reset;
  69876. 801c61a: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  69877. 801c61e: 3301 adds r3, #1
  69878. 801c620: f887 3026 strb.w r3, [r7, #38] @ 0x26
  69879. 801c624: e027 b.n 801c676 <tcp_slowtmr+0x3ca>
  69880. } else if ((u32_t)(tcp_ticks - pcb->tmr) >
  69881. 801c626: 4b82 ldr r3, [pc, #520] @ (801c830 <tcp_slowtmr+0x584>)
  69882. 801c628: 681a ldr r2, [r3, #0]
  69883. 801c62a: 6afb ldr r3, [r7, #44] @ 0x2c
  69884. 801c62c: 6a1b ldr r3, [r3, #32]
  69885. 801c62e: 1ad2 subs r2, r2, r3
  69886. (pcb->keep_idle + pcb->keep_cnt_sent * TCP_KEEP_INTVL(pcb))
  69887. 801c630: 6afb ldr r3, [r7, #44] @ 0x2c
  69888. 801c632: f8d3 1094 ldr.w r1, [r3, #148] @ 0x94
  69889. 801c636: 6afb ldr r3, [r7, #44] @ 0x2c
  69890. 801c638: f893 309b ldrb.w r3, [r3, #155] @ 0x9b
  69891. 801c63c: 4618 mov r0, r3
  69892. 801c63e: 4b7f ldr r3, [pc, #508] @ (801c83c <tcp_slowtmr+0x590>)
  69893. 801c640: fb00 f303 mul.w r3, r0, r3
  69894. 801c644: 440b add r3, r1
  69895. / TCP_SLOW_INTERVAL) {
  69896. 801c646: 497c ldr r1, [pc, #496] @ (801c838 <tcp_slowtmr+0x58c>)
  69897. 801c648: fba1 1303 umull r1, r3, r1, r3
  69898. 801c64c: 095b lsrs r3, r3, #5
  69899. } else if ((u32_t)(tcp_ticks - pcb->tmr) >
  69900. 801c64e: 429a cmp r2, r3
  69901. 801c650: d911 bls.n 801c676 <tcp_slowtmr+0x3ca>
  69902. err = tcp_keepalive(pcb);
  69903. 801c652: 6af8 ldr r0, [r7, #44] @ 0x2c
  69904. 801c654: f005 f86c bl 8021730 <tcp_keepalive>
  69905. 801c658: 4603 mov r3, r0
  69906. 801c65a: f887 3025 strb.w r3, [r7, #37] @ 0x25
  69907. if (err == ERR_OK) {
  69908. 801c65e: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  69909. 801c662: 2b00 cmp r3, #0
  69910. 801c664: d107 bne.n 801c676 <tcp_slowtmr+0x3ca>
  69911. pcb->keep_cnt_sent++;
  69912. 801c666: 6afb ldr r3, [r7, #44] @ 0x2c
  69913. 801c668: f893 309b ldrb.w r3, [r3, #155] @ 0x9b
  69914. 801c66c: 3301 adds r3, #1
  69915. 801c66e: b2da uxtb r2, r3
  69916. 801c670: 6afb ldr r3, [r7, #44] @ 0x2c
  69917. 801c672: f883 209b strb.w r2, [r3, #155] @ 0x9b
  69918. if (pcb->ooseq != NULL &&
  69919. 801c676: 6afb ldr r3, [r7, #44] @ 0x2c
  69920. 801c678: 6f5b ldr r3, [r3, #116] @ 0x74
  69921. 801c67a: 2b00 cmp r3, #0
  69922. 801c67c: d011 beq.n 801c6a2 <tcp_slowtmr+0x3f6>
  69923. (tcp_ticks - pcb->tmr >= (u32_t)pcb->rto * TCP_OOSEQ_TIMEOUT)) {
  69924. 801c67e: 4b6c ldr r3, [pc, #432] @ (801c830 <tcp_slowtmr+0x584>)
  69925. 801c680: 681a ldr r2, [r3, #0]
  69926. 801c682: 6afb ldr r3, [r7, #44] @ 0x2c
  69927. 801c684: 6a1b ldr r3, [r3, #32]
  69928. 801c686: 1ad2 subs r2, r2, r3
  69929. 801c688: 6afb ldr r3, [r7, #44] @ 0x2c
  69930. 801c68a: f9b3 3040 ldrsh.w r3, [r3, #64] @ 0x40
  69931. 801c68e: 4619 mov r1, r3
  69932. 801c690: 460b mov r3, r1
  69933. 801c692: 005b lsls r3, r3, #1
  69934. 801c694: 440b add r3, r1
  69935. 801c696: 005b lsls r3, r3, #1
  69936. if (pcb->ooseq != NULL &&
  69937. 801c698: 429a cmp r2, r3
  69938. 801c69a: d302 bcc.n 801c6a2 <tcp_slowtmr+0x3f6>
  69939. tcp_free_ooseq(pcb);
  69940. 801c69c: 6af8 ldr r0, [r7, #44] @ 0x2c
  69941. 801c69e: f000 feb7 bl 801d410 <tcp_free_ooseq>
  69942. if (pcb->state == SYN_RCVD) {
  69943. 801c6a2: 6afb ldr r3, [r7, #44] @ 0x2c
  69944. 801c6a4: 7d1b ldrb r3, [r3, #20]
  69945. 801c6a6: 2b03 cmp r3, #3
  69946. 801c6a8: d10b bne.n 801c6c2 <tcp_slowtmr+0x416>
  69947. if ((u32_t)(tcp_ticks - pcb->tmr) >
  69948. 801c6aa: 4b61 ldr r3, [pc, #388] @ (801c830 <tcp_slowtmr+0x584>)
  69949. 801c6ac: 681a ldr r2, [r3, #0]
  69950. 801c6ae: 6afb ldr r3, [r7, #44] @ 0x2c
  69951. 801c6b0: 6a1b ldr r3, [r3, #32]
  69952. 801c6b2: 1ad3 subs r3, r2, r3
  69953. 801c6b4: 2b28 cmp r3, #40 @ 0x28
  69954. 801c6b6: d904 bls.n 801c6c2 <tcp_slowtmr+0x416>
  69955. ++pcb_remove;
  69956. 801c6b8: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69957. 801c6bc: 3301 adds r3, #1
  69958. 801c6be: f887 3027 strb.w r3, [r7, #39] @ 0x27
  69959. if (pcb->state == LAST_ACK) {
  69960. 801c6c2: 6afb ldr r3, [r7, #44] @ 0x2c
  69961. 801c6c4: 7d1b ldrb r3, [r3, #20]
  69962. 801c6c6: 2b09 cmp r3, #9
  69963. 801c6c8: d10b bne.n 801c6e2 <tcp_slowtmr+0x436>
  69964. if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) {
  69965. 801c6ca: 4b59 ldr r3, [pc, #356] @ (801c830 <tcp_slowtmr+0x584>)
  69966. 801c6cc: 681a ldr r2, [r3, #0]
  69967. 801c6ce: 6afb ldr r3, [r7, #44] @ 0x2c
  69968. 801c6d0: 6a1b ldr r3, [r3, #32]
  69969. 801c6d2: 1ad3 subs r3, r2, r3
  69970. 801c6d4: 2bf0 cmp r3, #240 @ 0xf0
  69971. 801c6d6: d904 bls.n 801c6e2 <tcp_slowtmr+0x436>
  69972. ++pcb_remove;
  69973. 801c6d8: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69974. 801c6dc: 3301 adds r3, #1
  69975. 801c6de: f887 3027 strb.w r3, [r7, #39] @ 0x27
  69976. if (pcb_remove) {
  69977. 801c6e2: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69978. 801c6e6: 2b00 cmp r3, #0
  69979. 801c6e8: d060 beq.n 801c7ac <tcp_slowtmr+0x500>
  69980. tcp_err_fn err_fn = pcb->errf;
  69981. 801c6ea: 6afb ldr r3, [r7, #44] @ 0x2c
  69982. 801c6ec: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  69983. 801c6f0: 60fb str r3, [r7, #12]
  69984. tcp_pcb_purge(pcb);
  69985. 801c6f2: 6af8 ldr r0, [r7, #44] @ 0x2c
  69986. 801c6f4: f000 fcd8 bl 801d0a8 <tcp_pcb_purge>
  69987. if (prev != NULL) {
  69988. 801c6f8: 6abb ldr r3, [r7, #40] @ 0x28
  69989. 801c6fa: 2b00 cmp r3, #0
  69990. 801c6fc: d010 beq.n 801c720 <tcp_slowtmr+0x474>
  69991. LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_active_pcbs", pcb != tcp_active_pcbs);
  69992. 801c6fe: 4b50 ldr r3, [pc, #320] @ (801c840 <tcp_slowtmr+0x594>)
  69993. 801c700: 681b ldr r3, [r3, #0]
  69994. 801c702: 6afa ldr r2, [r7, #44] @ 0x2c
  69995. 801c704: 429a cmp r2, r3
  69996. 801c706: d106 bne.n 801c716 <tcp_slowtmr+0x46a>
  69997. 801c708: 4b4e ldr r3, [pc, #312] @ (801c844 <tcp_slowtmr+0x598>)
  69998. 801c70a: f240 526d movw r2, #1389 @ 0x56d
  69999. 801c70e: 494e ldr r1, [pc, #312] @ (801c848 <tcp_slowtmr+0x59c>)
  70000. 801c710: 484e ldr r0, [pc, #312] @ (801c84c <tcp_slowtmr+0x5a0>)
  70001. 801c712: f00e f823 bl 802a75c <iprintf>
  70002. prev->next = pcb->next;
  70003. 801c716: 6afb ldr r3, [r7, #44] @ 0x2c
  70004. 801c718: 68da ldr r2, [r3, #12]
  70005. 801c71a: 6abb ldr r3, [r7, #40] @ 0x28
  70006. 801c71c: 60da str r2, [r3, #12]
  70007. 801c71e: e00f b.n 801c740 <tcp_slowtmr+0x494>
  70008. LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_active_pcbs", tcp_active_pcbs == pcb);
  70009. 801c720: 4b47 ldr r3, [pc, #284] @ (801c840 <tcp_slowtmr+0x594>)
  70010. 801c722: 681b ldr r3, [r3, #0]
  70011. 801c724: 6afa ldr r2, [r7, #44] @ 0x2c
  70012. 801c726: 429a cmp r2, r3
  70013. 801c728: d006 beq.n 801c738 <tcp_slowtmr+0x48c>
  70014. 801c72a: 4b46 ldr r3, [pc, #280] @ (801c844 <tcp_slowtmr+0x598>)
  70015. 801c72c: f240 5271 movw r2, #1393 @ 0x571
  70016. 801c730: 4947 ldr r1, [pc, #284] @ (801c850 <tcp_slowtmr+0x5a4>)
  70017. 801c732: 4846 ldr r0, [pc, #280] @ (801c84c <tcp_slowtmr+0x5a0>)
  70018. 801c734: f00e f812 bl 802a75c <iprintf>
  70019. tcp_active_pcbs = pcb->next;
  70020. 801c738: 6afb ldr r3, [r7, #44] @ 0x2c
  70021. 801c73a: 68db ldr r3, [r3, #12]
  70022. 801c73c: 4a40 ldr r2, [pc, #256] @ (801c840 <tcp_slowtmr+0x594>)
  70023. 801c73e: 6013 str r3, [r2, #0]
  70024. if (pcb_reset) {
  70025. 801c740: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  70026. 801c744: 2b00 cmp r3, #0
  70027. 801c746: d013 beq.n 801c770 <tcp_slowtmr+0x4c4>
  70028. tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip,
  70029. 801c748: 6afb ldr r3, [r7, #44] @ 0x2c
  70030. 801c74a: 6d18 ldr r0, [r3, #80] @ 0x50
  70031. 801c74c: 6afb ldr r3, [r7, #44] @ 0x2c
  70032. 801c74e: 6a5c ldr r4, [r3, #36] @ 0x24
  70033. 801c750: 6afd ldr r5, [r7, #44] @ 0x2c
  70034. 801c752: 6afb ldr r3, [r7, #44] @ 0x2c
  70035. 801c754: 3304 adds r3, #4
  70036. 801c756: 6afa ldr r2, [r7, #44] @ 0x2c
  70037. 801c758: 8ad2 ldrh r2, [r2, #22]
  70038. 801c75a: 6af9 ldr r1, [r7, #44] @ 0x2c
  70039. 801c75c: 8b09 ldrh r1, [r1, #24]
  70040. 801c75e: 9102 str r1, [sp, #8]
  70041. 801c760: 9201 str r2, [sp, #4]
  70042. 801c762: 9300 str r3, [sp, #0]
  70043. 801c764: 462b mov r3, r5
  70044. 801c766: 4622 mov r2, r4
  70045. 801c768: 4601 mov r1, r0
  70046. 801c76a: 6af8 ldr r0, [r7, #44] @ 0x2c
  70047. 801c76c: f004 ff2c bl 80215c8 <tcp_rst>
  70048. err_arg = pcb->callback_arg;
  70049. 801c770: 6afb ldr r3, [r7, #44] @ 0x2c
  70050. 801c772: 691b ldr r3, [r3, #16]
  70051. 801c774: 60bb str r3, [r7, #8]
  70052. last_state = pcb->state;
  70053. 801c776: 6afb ldr r3, [r7, #44] @ 0x2c
  70054. 801c778: 7d1b ldrb r3, [r3, #20]
  70055. 801c77a: 71fb strb r3, [r7, #7]
  70056. pcb2 = pcb;
  70057. 801c77c: 6afb ldr r3, [r7, #44] @ 0x2c
  70058. 801c77e: 603b str r3, [r7, #0]
  70059. pcb = pcb->next;
  70060. 801c780: 6afb ldr r3, [r7, #44] @ 0x2c
  70061. 801c782: 68db ldr r3, [r3, #12]
  70062. 801c784: 62fb str r3, [r7, #44] @ 0x2c
  70063. tcp_free(pcb2);
  70064. 801c786: 6838 ldr r0, [r7, #0]
  70065. 801c788: f7ff f82c bl 801b7e4 <tcp_free>
  70066. tcp_active_pcbs_changed = 0;
  70067. 801c78c: 4b31 ldr r3, [pc, #196] @ (801c854 <tcp_slowtmr+0x5a8>)
  70068. 801c78e: 2200 movs r2, #0
  70069. 801c790: 701a strb r2, [r3, #0]
  70070. TCP_EVENT_ERR(last_state, err_fn, err_arg, ERR_ABRT);
  70071. 801c792: 68fb ldr r3, [r7, #12]
  70072. 801c794: 2b00 cmp r3, #0
  70073. 801c796: d004 beq.n 801c7a2 <tcp_slowtmr+0x4f6>
  70074. 801c798: 68fb ldr r3, [r7, #12]
  70075. 801c79a: f06f 010c mvn.w r1, #12
  70076. 801c79e: 68b8 ldr r0, [r7, #8]
  70077. 801c7a0: 4798 blx r3
  70078. if (tcp_active_pcbs_changed) {
  70079. 801c7a2: 4b2c ldr r3, [pc, #176] @ (801c854 <tcp_slowtmr+0x5a8>)
  70080. 801c7a4: 781b ldrb r3, [r3, #0]
  70081. 801c7a6: 2b00 cmp r3, #0
  70082. 801c7a8: d037 beq.n 801c81a <tcp_slowtmr+0x56e>
  70083. goto tcp_slowtmr_start;
  70084. 801c7aa: e592 b.n 801c2d2 <tcp_slowtmr+0x26>
  70085. prev = pcb;
  70086. 801c7ac: 6afb ldr r3, [r7, #44] @ 0x2c
  70087. 801c7ae: 62bb str r3, [r7, #40] @ 0x28
  70088. pcb = pcb->next;
  70089. 801c7b0: 6afb ldr r3, [r7, #44] @ 0x2c
  70090. 801c7b2: 68db ldr r3, [r3, #12]
  70091. 801c7b4: 62fb str r3, [r7, #44] @ 0x2c
  70092. ++prev->polltmr;
  70093. 801c7b6: 6abb ldr r3, [r7, #40] @ 0x28
  70094. 801c7b8: 7f1b ldrb r3, [r3, #28]
  70095. 801c7ba: 3301 adds r3, #1
  70096. 801c7bc: b2da uxtb r2, r3
  70097. 801c7be: 6abb ldr r3, [r7, #40] @ 0x28
  70098. 801c7c0: 771a strb r2, [r3, #28]
  70099. if (prev->polltmr >= prev->pollinterval) {
  70100. 801c7c2: 6abb ldr r3, [r7, #40] @ 0x28
  70101. 801c7c4: 7f1a ldrb r2, [r3, #28]
  70102. 801c7c6: 6abb ldr r3, [r7, #40] @ 0x28
  70103. 801c7c8: 7f5b ldrb r3, [r3, #29]
  70104. 801c7ca: 429a cmp r2, r3
  70105. 801c7cc: d325 bcc.n 801c81a <tcp_slowtmr+0x56e>
  70106. prev->polltmr = 0;
  70107. 801c7ce: 6abb ldr r3, [r7, #40] @ 0x28
  70108. 801c7d0: 2200 movs r2, #0
  70109. 801c7d2: 771a strb r2, [r3, #28]
  70110. tcp_active_pcbs_changed = 0;
  70111. 801c7d4: 4b1f ldr r3, [pc, #124] @ (801c854 <tcp_slowtmr+0x5a8>)
  70112. 801c7d6: 2200 movs r2, #0
  70113. 801c7d8: 701a strb r2, [r3, #0]
  70114. TCP_EVENT_POLL(prev, err);
  70115. 801c7da: 6abb ldr r3, [r7, #40] @ 0x28
  70116. 801c7dc: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  70117. 801c7e0: 2b00 cmp r3, #0
  70118. 801c7e2: d00b beq.n 801c7fc <tcp_slowtmr+0x550>
  70119. 801c7e4: 6abb ldr r3, [r7, #40] @ 0x28
  70120. 801c7e6: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  70121. 801c7ea: 6aba ldr r2, [r7, #40] @ 0x28
  70122. 801c7ec: 6912 ldr r2, [r2, #16]
  70123. 801c7ee: 6ab9 ldr r1, [r7, #40] @ 0x28
  70124. 801c7f0: 4610 mov r0, r2
  70125. 801c7f2: 4798 blx r3
  70126. 801c7f4: 4603 mov r3, r0
  70127. 801c7f6: f887 3025 strb.w r3, [r7, #37] @ 0x25
  70128. 801c7fa: e002 b.n 801c802 <tcp_slowtmr+0x556>
  70129. 801c7fc: 2300 movs r3, #0
  70130. 801c7fe: f887 3025 strb.w r3, [r7, #37] @ 0x25
  70131. if (tcp_active_pcbs_changed) {
  70132. 801c802: 4b14 ldr r3, [pc, #80] @ (801c854 <tcp_slowtmr+0x5a8>)
  70133. 801c804: 781b ldrb r3, [r3, #0]
  70134. 801c806: 2b00 cmp r3, #0
  70135. 801c808: f47f ad62 bne.w 801c2d0 <tcp_slowtmr+0x24>
  70136. }
  70137. /* if err == ERR_ABRT, 'prev' is already deallocated */
  70138. if (err == ERR_OK) {
  70139. 801c80c: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  70140. 801c810: 2b00 cmp r3, #0
  70141. 801c812: d102 bne.n 801c81a <tcp_slowtmr+0x56e>
  70142. tcp_output(prev);
  70143. 801c814: 6ab8 ldr r0, [r7, #40] @ 0x28
  70144. 801c816: f004 f915 bl 8020a44 <tcp_output>
  70145. while (pcb != NULL) {
  70146. 801c81a: 6afb ldr r3, [r7, #44] @ 0x2c
  70147. 801c81c: 2b00 cmp r3, #0
  70148. 801c81e: f47f ad5e bne.w 801c2de <tcp_slowtmr+0x32>
  70149. }
  70150. }
  70151. /* Steps through all of the TIME-WAIT PCBs. */
  70152. prev = NULL;
  70153. 801c822: 2300 movs r3, #0
  70154. 801c824: 62bb str r3, [r7, #40] @ 0x28
  70155. pcb = tcp_tw_pcbs;
  70156. 801c826: 4b0c ldr r3, [pc, #48] @ (801c858 <tcp_slowtmr+0x5ac>)
  70157. 801c828: 681b ldr r3, [r3, #0]
  70158. 801c82a: 62fb str r3, [r7, #44] @ 0x2c
  70159. while (pcb != NULL) {
  70160. 801c82c: e069 b.n 801c902 <tcp_slowtmr+0x656>
  70161. 801c82e: bf00 nop
  70162. 801c830: 2402af68 .word 0x2402af68
  70163. 801c834: 000a4cb8 .word 0x000a4cb8
  70164. 801c838: 10624dd3 .word 0x10624dd3
  70165. 801c83c: 000124f8 .word 0x000124f8
  70166. 801c840: 2402af74 .word 0x2402af74
  70167. 801c844: 0802f48c .word 0x0802f48c
  70168. 801c848: 0802f8c4 .word 0x0802f8c4
  70169. 801c84c: 0802f4d0 .word 0x0802f4d0
  70170. 801c850: 0802f8f0 .word 0x0802f8f0
  70171. 801c854: 2402af7c .word 0x2402af7c
  70172. 801c858: 2402af78 .word 0x2402af78
  70173. LWIP_ASSERT("tcp_slowtmr: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT);
  70174. 801c85c: 6afb ldr r3, [r7, #44] @ 0x2c
  70175. 801c85e: 7d1b ldrb r3, [r3, #20]
  70176. 801c860: 2b0a cmp r3, #10
  70177. 801c862: d006 beq.n 801c872 <tcp_slowtmr+0x5c6>
  70178. 801c864: 4b2b ldr r3, [pc, #172] @ (801c914 <tcp_slowtmr+0x668>)
  70179. 801c866: f240 52a1 movw r2, #1441 @ 0x5a1
  70180. 801c86a: 492b ldr r1, [pc, #172] @ (801c918 <tcp_slowtmr+0x66c>)
  70181. 801c86c: 482b ldr r0, [pc, #172] @ (801c91c <tcp_slowtmr+0x670>)
  70182. 801c86e: f00d ff75 bl 802a75c <iprintf>
  70183. pcb_remove = 0;
  70184. 801c872: 2300 movs r3, #0
  70185. 801c874: f887 3027 strb.w r3, [r7, #39] @ 0x27
  70186. /* Check if this PCB has stayed long enough in TIME-WAIT */
  70187. if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) {
  70188. 801c878: 4b29 ldr r3, [pc, #164] @ (801c920 <tcp_slowtmr+0x674>)
  70189. 801c87a: 681a ldr r2, [r3, #0]
  70190. 801c87c: 6afb ldr r3, [r7, #44] @ 0x2c
  70191. 801c87e: 6a1b ldr r3, [r3, #32]
  70192. 801c880: 1ad3 subs r3, r2, r3
  70193. 801c882: 2bf0 cmp r3, #240 @ 0xf0
  70194. 801c884: d904 bls.n 801c890 <tcp_slowtmr+0x5e4>
  70195. ++pcb_remove;
  70196. 801c886: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  70197. 801c88a: 3301 adds r3, #1
  70198. 801c88c: f887 3027 strb.w r3, [r7, #39] @ 0x27
  70199. }
  70200. /* If the PCB should be removed, do it. */
  70201. if (pcb_remove) {
  70202. 801c890: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  70203. 801c894: 2b00 cmp r3, #0
  70204. 801c896: d02f beq.n 801c8f8 <tcp_slowtmr+0x64c>
  70205. struct tcp_pcb *pcb2;
  70206. tcp_pcb_purge(pcb);
  70207. 801c898: 6af8 ldr r0, [r7, #44] @ 0x2c
  70208. 801c89a: f000 fc05 bl 801d0a8 <tcp_pcb_purge>
  70209. /* Remove PCB from tcp_tw_pcbs list. */
  70210. if (prev != NULL) {
  70211. 801c89e: 6abb ldr r3, [r7, #40] @ 0x28
  70212. 801c8a0: 2b00 cmp r3, #0
  70213. 801c8a2: d010 beq.n 801c8c6 <tcp_slowtmr+0x61a>
  70214. LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_tw_pcbs", pcb != tcp_tw_pcbs);
  70215. 801c8a4: 4b1f ldr r3, [pc, #124] @ (801c924 <tcp_slowtmr+0x678>)
  70216. 801c8a6: 681b ldr r3, [r3, #0]
  70217. 801c8a8: 6afa ldr r2, [r7, #44] @ 0x2c
  70218. 801c8aa: 429a cmp r2, r3
  70219. 801c8ac: d106 bne.n 801c8bc <tcp_slowtmr+0x610>
  70220. 801c8ae: 4b19 ldr r3, [pc, #100] @ (801c914 <tcp_slowtmr+0x668>)
  70221. 801c8b0: f240 52af movw r2, #1455 @ 0x5af
  70222. 801c8b4: 491c ldr r1, [pc, #112] @ (801c928 <tcp_slowtmr+0x67c>)
  70223. 801c8b6: 4819 ldr r0, [pc, #100] @ (801c91c <tcp_slowtmr+0x670>)
  70224. 801c8b8: f00d ff50 bl 802a75c <iprintf>
  70225. prev->next = pcb->next;
  70226. 801c8bc: 6afb ldr r3, [r7, #44] @ 0x2c
  70227. 801c8be: 68da ldr r2, [r3, #12]
  70228. 801c8c0: 6abb ldr r3, [r7, #40] @ 0x28
  70229. 801c8c2: 60da str r2, [r3, #12]
  70230. 801c8c4: e00f b.n 801c8e6 <tcp_slowtmr+0x63a>
  70231. } else {
  70232. /* This PCB was the first. */
  70233. LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_tw_pcbs", tcp_tw_pcbs == pcb);
  70234. 801c8c6: 4b17 ldr r3, [pc, #92] @ (801c924 <tcp_slowtmr+0x678>)
  70235. 801c8c8: 681b ldr r3, [r3, #0]
  70236. 801c8ca: 6afa ldr r2, [r7, #44] @ 0x2c
  70237. 801c8cc: 429a cmp r2, r3
  70238. 801c8ce: d006 beq.n 801c8de <tcp_slowtmr+0x632>
  70239. 801c8d0: 4b10 ldr r3, [pc, #64] @ (801c914 <tcp_slowtmr+0x668>)
  70240. 801c8d2: f240 52b3 movw r2, #1459 @ 0x5b3
  70241. 801c8d6: 4915 ldr r1, [pc, #84] @ (801c92c <tcp_slowtmr+0x680>)
  70242. 801c8d8: 4810 ldr r0, [pc, #64] @ (801c91c <tcp_slowtmr+0x670>)
  70243. 801c8da: f00d ff3f bl 802a75c <iprintf>
  70244. tcp_tw_pcbs = pcb->next;
  70245. 801c8de: 6afb ldr r3, [r7, #44] @ 0x2c
  70246. 801c8e0: 68db ldr r3, [r3, #12]
  70247. 801c8e2: 4a10 ldr r2, [pc, #64] @ (801c924 <tcp_slowtmr+0x678>)
  70248. 801c8e4: 6013 str r3, [r2, #0]
  70249. }
  70250. pcb2 = pcb;
  70251. 801c8e6: 6afb ldr r3, [r7, #44] @ 0x2c
  70252. 801c8e8: 61fb str r3, [r7, #28]
  70253. pcb = pcb->next;
  70254. 801c8ea: 6afb ldr r3, [r7, #44] @ 0x2c
  70255. 801c8ec: 68db ldr r3, [r3, #12]
  70256. 801c8ee: 62fb str r3, [r7, #44] @ 0x2c
  70257. tcp_free(pcb2);
  70258. 801c8f0: 69f8 ldr r0, [r7, #28]
  70259. 801c8f2: f7fe ff77 bl 801b7e4 <tcp_free>
  70260. 801c8f6: e004 b.n 801c902 <tcp_slowtmr+0x656>
  70261. } else {
  70262. prev = pcb;
  70263. 801c8f8: 6afb ldr r3, [r7, #44] @ 0x2c
  70264. 801c8fa: 62bb str r3, [r7, #40] @ 0x28
  70265. pcb = pcb->next;
  70266. 801c8fc: 6afb ldr r3, [r7, #44] @ 0x2c
  70267. 801c8fe: 68db ldr r3, [r3, #12]
  70268. 801c900: 62fb str r3, [r7, #44] @ 0x2c
  70269. while (pcb != NULL) {
  70270. 801c902: 6afb ldr r3, [r7, #44] @ 0x2c
  70271. 801c904: 2b00 cmp r3, #0
  70272. 801c906: d1a9 bne.n 801c85c <tcp_slowtmr+0x5b0>
  70273. }
  70274. }
  70275. }
  70276. 801c908: bf00 nop
  70277. 801c90a: bf00 nop
  70278. 801c90c: 3730 adds r7, #48 @ 0x30
  70279. 801c90e: 46bd mov sp, r7
  70280. 801c910: bdb0 pop {r4, r5, r7, pc}
  70281. 801c912: bf00 nop
  70282. 801c914: 0802f48c .word 0x0802f48c
  70283. 801c918: 0802f91c .word 0x0802f91c
  70284. 801c91c: 0802f4d0 .word 0x0802f4d0
  70285. 801c920: 2402af68 .word 0x2402af68
  70286. 801c924: 2402af78 .word 0x2402af78
  70287. 801c928: 0802f94c .word 0x0802f94c
  70288. 801c92c: 0802f974 .word 0x0802f974
  70289. 0801c930 <tcp_fasttmr>:
  70290. *
  70291. * Automatically called from tcp_tmr().
  70292. */
  70293. void
  70294. tcp_fasttmr(void)
  70295. {
  70296. 801c930: b580 push {r7, lr}
  70297. 801c932: b082 sub sp, #8
  70298. 801c934: af00 add r7, sp, #0
  70299. struct tcp_pcb *pcb;
  70300. ++tcp_timer_ctr;
  70301. 801c936: 4b2d ldr r3, [pc, #180] @ (801c9ec <tcp_fasttmr+0xbc>)
  70302. 801c938: 781b ldrb r3, [r3, #0]
  70303. 801c93a: 3301 adds r3, #1
  70304. 801c93c: b2da uxtb r2, r3
  70305. 801c93e: 4b2b ldr r3, [pc, #172] @ (801c9ec <tcp_fasttmr+0xbc>)
  70306. 801c940: 701a strb r2, [r3, #0]
  70307. tcp_fasttmr_start:
  70308. pcb = tcp_active_pcbs;
  70309. 801c942: 4b2b ldr r3, [pc, #172] @ (801c9f0 <tcp_fasttmr+0xc0>)
  70310. 801c944: 681b ldr r3, [r3, #0]
  70311. 801c946: 607b str r3, [r7, #4]
  70312. while (pcb != NULL) {
  70313. 801c948: e048 b.n 801c9dc <tcp_fasttmr+0xac>
  70314. if (pcb->last_timer != tcp_timer_ctr) {
  70315. 801c94a: 687b ldr r3, [r7, #4]
  70316. 801c94c: 7f9a ldrb r2, [r3, #30]
  70317. 801c94e: 4b27 ldr r3, [pc, #156] @ (801c9ec <tcp_fasttmr+0xbc>)
  70318. 801c950: 781b ldrb r3, [r3, #0]
  70319. 801c952: 429a cmp r2, r3
  70320. 801c954: d03f beq.n 801c9d6 <tcp_fasttmr+0xa6>
  70321. struct tcp_pcb *next;
  70322. pcb->last_timer = tcp_timer_ctr;
  70323. 801c956: 4b25 ldr r3, [pc, #148] @ (801c9ec <tcp_fasttmr+0xbc>)
  70324. 801c958: 781a ldrb r2, [r3, #0]
  70325. 801c95a: 687b ldr r3, [r7, #4]
  70326. 801c95c: 779a strb r2, [r3, #30]
  70327. /* send delayed ACKs */
  70328. if (pcb->flags & TF_ACK_DELAY) {
  70329. 801c95e: 687b ldr r3, [r7, #4]
  70330. 801c960: 8b5b ldrh r3, [r3, #26]
  70331. 801c962: f003 0301 and.w r3, r3, #1
  70332. 801c966: 2b00 cmp r3, #0
  70333. 801c968: d010 beq.n 801c98c <tcp_fasttmr+0x5c>
  70334. LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: delayed ACK\n"));
  70335. tcp_ack_now(pcb);
  70336. 801c96a: 687b ldr r3, [r7, #4]
  70337. 801c96c: 8b5b ldrh r3, [r3, #26]
  70338. 801c96e: f043 0302 orr.w r3, r3, #2
  70339. 801c972: b29a uxth r2, r3
  70340. 801c974: 687b ldr r3, [r7, #4]
  70341. 801c976: 835a strh r2, [r3, #26]
  70342. tcp_output(pcb);
  70343. 801c978: 6878 ldr r0, [r7, #4]
  70344. 801c97a: f004 f863 bl 8020a44 <tcp_output>
  70345. tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  70346. 801c97e: 687b ldr r3, [r7, #4]
  70347. 801c980: 8b5b ldrh r3, [r3, #26]
  70348. 801c982: f023 0303 bic.w r3, r3, #3
  70349. 801c986: b29a uxth r2, r3
  70350. 801c988: 687b ldr r3, [r7, #4]
  70351. 801c98a: 835a strh r2, [r3, #26]
  70352. }
  70353. /* send pending FIN */
  70354. if (pcb->flags & TF_CLOSEPEND) {
  70355. 801c98c: 687b ldr r3, [r7, #4]
  70356. 801c98e: 8b5b ldrh r3, [r3, #26]
  70357. 801c990: f003 0308 and.w r3, r3, #8
  70358. 801c994: 2b00 cmp r3, #0
  70359. 801c996: d009 beq.n 801c9ac <tcp_fasttmr+0x7c>
  70360. LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: pending FIN\n"));
  70361. tcp_clear_flags(pcb, TF_CLOSEPEND);
  70362. 801c998: 687b ldr r3, [r7, #4]
  70363. 801c99a: 8b5b ldrh r3, [r3, #26]
  70364. 801c99c: f023 0308 bic.w r3, r3, #8
  70365. 801c9a0: b29a uxth r2, r3
  70366. 801c9a2: 687b ldr r3, [r7, #4]
  70367. 801c9a4: 835a strh r2, [r3, #26]
  70368. tcp_close_shutdown_fin(pcb);
  70369. 801c9a6: 6878 ldr r0, [r7, #4]
  70370. 801c9a8: f7ff f8b0 bl 801bb0c <tcp_close_shutdown_fin>
  70371. }
  70372. next = pcb->next;
  70373. 801c9ac: 687b ldr r3, [r7, #4]
  70374. 801c9ae: 68db ldr r3, [r3, #12]
  70375. 801c9b0: 603b str r3, [r7, #0]
  70376. /* If there is data which was previously "refused" by upper layer */
  70377. if (pcb->refused_data != NULL) {
  70378. 801c9b2: 687b ldr r3, [r7, #4]
  70379. 801c9b4: 6f9b ldr r3, [r3, #120] @ 0x78
  70380. 801c9b6: 2b00 cmp r3, #0
  70381. 801c9b8: d00a beq.n 801c9d0 <tcp_fasttmr+0xa0>
  70382. tcp_active_pcbs_changed = 0;
  70383. 801c9ba: 4b0e ldr r3, [pc, #56] @ (801c9f4 <tcp_fasttmr+0xc4>)
  70384. 801c9bc: 2200 movs r2, #0
  70385. 801c9be: 701a strb r2, [r3, #0]
  70386. tcp_process_refused_data(pcb);
  70387. 801c9c0: 6878 ldr r0, [r7, #4]
  70388. 801c9c2: f000 f819 bl 801c9f8 <tcp_process_refused_data>
  70389. if (tcp_active_pcbs_changed) {
  70390. 801c9c6: 4b0b ldr r3, [pc, #44] @ (801c9f4 <tcp_fasttmr+0xc4>)
  70391. 801c9c8: 781b ldrb r3, [r3, #0]
  70392. 801c9ca: 2b00 cmp r3, #0
  70393. 801c9cc: d000 beq.n 801c9d0 <tcp_fasttmr+0xa0>
  70394. /* application callback has changed the pcb list: restart the loop */
  70395. goto tcp_fasttmr_start;
  70396. 801c9ce: e7b8 b.n 801c942 <tcp_fasttmr+0x12>
  70397. }
  70398. }
  70399. pcb = next;
  70400. 801c9d0: 683b ldr r3, [r7, #0]
  70401. 801c9d2: 607b str r3, [r7, #4]
  70402. 801c9d4: e002 b.n 801c9dc <tcp_fasttmr+0xac>
  70403. } else {
  70404. pcb = pcb->next;
  70405. 801c9d6: 687b ldr r3, [r7, #4]
  70406. 801c9d8: 68db ldr r3, [r3, #12]
  70407. 801c9da: 607b str r3, [r7, #4]
  70408. while (pcb != NULL) {
  70409. 801c9dc: 687b ldr r3, [r7, #4]
  70410. 801c9de: 2b00 cmp r3, #0
  70411. 801c9e0: d1b3 bne.n 801c94a <tcp_fasttmr+0x1a>
  70412. }
  70413. }
  70414. }
  70415. 801c9e2: bf00 nop
  70416. 801c9e4: bf00 nop
  70417. 801c9e6: 3708 adds r7, #8
  70418. 801c9e8: 46bd mov sp, r7
  70419. 801c9ea: bd80 pop {r7, pc}
  70420. 801c9ec: 2402af7e .word 0x2402af7e
  70421. 801c9f0: 2402af74 .word 0x2402af74
  70422. 801c9f4: 2402af7c .word 0x2402af7c
  70423. 0801c9f8 <tcp_process_refused_data>:
  70424. }
  70425. /** Pass pcb->refused_data to the recv callback */
  70426. err_t
  70427. tcp_process_refused_data(struct tcp_pcb *pcb)
  70428. {
  70429. 801c9f8: b590 push {r4, r7, lr}
  70430. 801c9fa: b085 sub sp, #20
  70431. 801c9fc: af00 add r7, sp, #0
  70432. 801c9fe: 6078 str r0, [r7, #4]
  70433. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  70434. struct pbuf *rest;
  70435. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  70436. LWIP_ERROR("tcp_process_refused_data: invalid pcb", pcb != NULL, return ERR_ARG);
  70437. 801ca00: 687b ldr r3, [r7, #4]
  70438. 801ca02: 2b00 cmp r3, #0
  70439. 801ca04: d109 bne.n 801ca1a <tcp_process_refused_data+0x22>
  70440. 801ca06: 4b38 ldr r3, [pc, #224] @ (801cae8 <tcp_process_refused_data+0xf0>)
  70441. 801ca08: f240 6209 movw r2, #1545 @ 0x609
  70442. 801ca0c: 4937 ldr r1, [pc, #220] @ (801caec <tcp_process_refused_data+0xf4>)
  70443. 801ca0e: 4838 ldr r0, [pc, #224] @ (801caf0 <tcp_process_refused_data+0xf8>)
  70444. 801ca10: f00d fea4 bl 802a75c <iprintf>
  70445. 801ca14: f06f 030f mvn.w r3, #15
  70446. 801ca18: e061 b.n 801cade <tcp_process_refused_data+0xe6>
  70447. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  70448. while (pcb->refused_data != NULL)
  70449. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  70450. {
  70451. err_t err;
  70452. u8_t refused_flags = pcb->refused_data->flags;
  70453. 801ca1a: 687b ldr r3, [r7, #4]
  70454. 801ca1c: 6f9b ldr r3, [r3, #120] @ 0x78
  70455. 801ca1e: 7b5b ldrb r3, [r3, #13]
  70456. 801ca20: 73bb strb r3, [r7, #14]
  70457. /* set pcb->refused_data to NULL in case the callback frees it and then
  70458. closes the pcb */
  70459. struct pbuf *refused_data = pcb->refused_data;
  70460. 801ca22: 687b ldr r3, [r7, #4]
  70461. 801ca24: 6f9b ldr r3, [r3, #120] @ 0x78
  70462. 801ca26: 60bb str r3, [r7, #8]
  70463. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  70464. pbuf_split_64k(refused_data, &rest);
  70465. pcb->refused_data = rest;
  70466. #else /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  70467. pcb->refused_data = NULL;
  70468. 801ca28: 687b ldr r3, [r7, #4]
  70469. 801ca2a: 2200 movs r2, #0
  70470. 801ca2c: 679a str r2, [r3, #120] @ 0x78
  70471. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  70472. /* Notify again application with data previously received. */
  70473. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: notify kept packet\n"));
  70474. TCP_EVENT_RECV(pcb, refused_data, ERR_OK, err);
  70475. 801ca2e: 687b ldr r3, [r7, #4]
  70476. 801ca30: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  70477. 801ca34: 2b00 cmp r3, #0
  70478. 801ca36: d00b beq.n 801ca50 <tcp_process_refused_data+0x58>
  70479. 801ca38: 687b ldr r3, [r7, #4]
  70480. 801ca3a: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  70481. 801ca3e: 687b ldr r3, [r7, #4]
  70482. 801ca40: 6918 ldr r0, [r3, #16]
  70483. 801ca42: 2300 movs r3, #0
  70484. 801ca44: 68ba ldr r2, [r7, #8]
  70485. 801ca46: 6879 ldr r1, [r7, #4]
  70486. 801ca48: 47a0 blx r4
  70487. 801ca4a: 4603 mov r3, r0
  70488. 801ca4c: 73fb strb r3, [r7, #15]
  70489. 801ca4e: e007 b.n 801ca60 <tcp_process_refused_data+0x68>
  70490. 801ca50: 2300 movs r3, #0
  70491. 801ca52: 68ba ldr r2, [r7, #8]
  70492. 801ca54: 6879 ldr r1, [r7, #4]
  70493. 801ca56: 2000 movs r0, #0
  70494. 801ca58: f000 f8a6 bl 801cba8 <tcp_recv_null>
  70495. 801ca5c: 4603 mov r3, r0
  70496. 801ca5e: 73fb strb r3, [r7, #15]
  70497. if (err == ERR_OK) {
  70498. 801ca60: f997 300f ldrsb.w r3, [r7, #15]
  70499. 801ca64: 2b00 cmp r3, #0
  70500. 801ca66: d12b bne.n 801cac0 <tcp_process_refused_data+0xc8>
  70501. /* did refused_data include a FIN? */
  70502. if ((refused_flags & PBUF_FLAG_TCP_FIN)
  70503. 801ca68: 7bbb ldrb r3, [r7, #14]
  70504. 801ca6a: f003 0320 and.w r3, r3, #32
  70505. 801ca6e: 2b00 cmp r3, #0
  70506. 801ca70: d034 beq.n 801cadc <tcp_process_refused_data+0xe4>
  70507. && (rest == NULL)
  70508. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  70509. ) {
  70510. /* correct rcv_wnd as the application won't call tcp_recved()
  70511. for the FIN's seqno */
  70512. if (pcb->rcv_wnd != TCP_WND_MAX(pcb)) {
  70513. 801ca72: 687b ldr r3, [r7, #4]
  70514. 801ca74: 8d1b ldrh r3, [r3, #40] @ 0x28
  70515. 801ca76: f241 62d0 movw r2, #5840 @ 0x16d0
  70516. 801ca7a: 4293 cmp r3, r2
  70517. 801ca7c: d005 beq.n 801ca8a <tcp_process_refused_data+0x92>
  70518. pcb->rcv_wnd++;
  70519. 801ca7e: 687b ldr r3, [r7, #4]
  70520. 801ca80: 8d1b ldrh r3, [r3, #40] @ 0x28
  70521. 801ca82: 3301 adds r3, #1
  70522. 801ca84: b29a uxth r2, r3
  70523. 801ca86: 687b ldr r3, [r7, #4]
  70524. 801ca88: 851a strh r2, [r3, #40] @ 0x28
  70525. }
  70526. TCP_EVENT_CLOSED(pcb, err);
  70527. 801ca8a: 687b ldr r3, [r7, #4]
  70528. 801ca8c: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  70529. 801ca90: 2b00 cmp r3, #0
  70530. 801ca92: d00b beq.n 801caac <tcp_process_refused_data+0xb4>
  70531. 801ca94: 687b ldr r3, [r7, #4]
  70532. 801ca96: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  70533. 801ca9a: 687b ldr r3, [r7, #4]
  70534. 801ca9c: 6918 ldr r0, [r3, #16]
  70535. 801ca9e: 2300 movs r3, #0
  70536. 801caa0: 2200 movs r2, #0
  70537. 801caa2: 6879 ldr r1, [r7, #4]
  70538. 801caa4: 47a0 blx r4
  70539. 801caa6: 4603 mov r3, r0
  70540. 801caa8: 73fb strb r3, [r7, #15]
  70541. 801caaa: e001 b.n 801cab0 <tcp_process_refused_data+0xb8>
  70542. 801caac: 2300 movs r3, #0
  70543. 801caae: 73fb strb r3, [r7, #15]
  70544. if (err == ERR_ABRT) {
  70545. 801cab0: f997 300f ldrsb.w r3, [r7, #15]
  70546. 801cab4: f113 0f0d cmn.w r3, #13
  70547. 801cab8: d110 bne.n 801cadc <tcp_process_refused_data+0xe4>
  70548. return ERR_ABRT;
  70549. 801caba: f06f 030c mvn.w r3, #12
  70550. 801cabe: e00e b.n 801cade <tcp_process_refused_data+0xe6>
  70551. }
  70552. }
  70553. } else if (err == ERR_ABRT) {
  70554. 801cac0: f997 300f ldrsb.w r3, [r7, #15]
  70555. 801cac4: f113 0f0d cmn.w r3, #13
  70556. 801cac8: d102 bne.n 801cad0 <tcp_process_refused_data+0xd8>
  70557. /* if err == ERR_ABRT, 'pcb' is already deallocated */
  70558. /* Drop incoming packets because pcb is "full" (only if the incoming
  70559. segment contains data). */
  70560. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: drop incoming packets, because pcb is \"full\"\n"));
  70561. return ERR_ABRT;
  70562. 801caca: f06f 030c mvn.w r3, #12
  70563. 801cace: e006 b.n 801cade <tcp_process_refused_data+0xe6>
  70564. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  70565. if (rest != NULL) {
  70566. pbuf_cat(refused_data, rest);
  70567. }
  70568. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  70569. pcb->refused_data = refused_data;
  70570. 801cad0: 687b ldr r3, [r7, #4]
  70571. 801cad2: 68ba ldr r2, [r7, #8]
  70572. 801cad4: 679a str r2, [r3, #120] @ 0x78
  70573. return ERR_INPROGRESS;
  70574. 801cad6: f06f 0304 mvn.w r3, #4
  70575. 801cada: e000 b.n 801cade <tcp_process_refused_data+0xe6>
  70576. }
  70577. }
  70578. return ERR_OK;
  70579. 801cadc: 2300 movs r3, #0
  70580. }
  70581. 801cade: 4618 mov r0, r3
  70582. 801cae0: 3714 adds r7, #20
  70583. 801cae2: 46bd mov sp, r7
  70584. 801cae4: bd90 pop {r4, r7, pc}
  70585. 801cae6: bf00 nop
  70586. 801cae8: 0802f48c .word 0x0802f48c
  70587. 801caec: 0802f99c .word 0x0802f99c
  70588. 801caf0: 0802f4d0 .word 0x0802f4d0
  70589. 0801caf4 <tcp_segs_free>:
  70590. *
  70591. * @param seg tcp_seg list of TCP segments to free
  70592. */
  70593. void
  70594. tcp_segs_free(struct tcp_seg *seg)
  70595. {
  70596. 801caf4: b580 push {r7, lr}
  70597. 801caf6: b084 sub sp, #16
  70598. 801caf8: af00 add r7, sp, #0
  70599. 801cafa: 6078 str r0, [r7, #4]
  70600. while (seg != NULL) {
  70601. 801cafc: e007 b.n 801cb0e <tcp_segs_free+0x1a>
  70602. struct tcp_seg *next = seg->next;
  70603. 801cafe: 687b ldr r3, [r7, #4]
  70604. 801cb00: 681b ldr r3, [r3, #0]
  70605. 801cb02: 60fb str r3, [r7, #12]
  70606. tcp_seg_free(seg);
  70607. 801cb04: 6878 ldr r0, [r7, #4]
  70608. 801cb06: f000 f80a bl 801cb1e <tcp_seg_free>
  70609. seg = next;
  70610. 801cb0a: 68fb ldr r3, [r7, #12]
  70611. 801cb0c: 607b str r3, [r7, #4]
  70612. while (seg != NULL) {
  70613. 801cb0e: 687b ldr r3, [r7, #4]
  70614. 801cb10: 2b00 cmp r3, #0
  70615. 801cb12: d1f4 bne.n 801cafe <tcp_segs_free+0xa>
  70616. }
  70617. }
  70618. 801cb14: bf00 nop
  70619. 801cb16: bf00 nop
  70620. 801cb18: 3710 adds r7, #16
  70621. 801cb1a: 46bd mov sp, r7
  70622. 801cb1c: bd80 pop {r7, pc}
  70623. 0801cb1e <tcp_seg_free>:
  70624. *
  70625. * @param seg single tcp_seg to free
  70626. */
  70627. void
  70628. tcp_seg_free(struct tcp_seg *seg)
  70629. {
  70630. 801cb1e: b580 push {r7, lr}
  70631. 801cb20: b082 sub sp, #8
  70632. 801cb22: af00 add r7, sp, #0
  70633. 801cb24: 6078 str r0, [r7, #4]
  70634. if (seg != NULL) {
  70635. 801cb26: 687b ldr r3, [r7, #4]
  70636. 801cb28: 2b00 cmp r3, #0
  70637. 801cb2a: d00c beq.n 801cb46 <tcp_seg_free+0x28>
  70638. if (seg->p != NULL) {
  70639. 801cb2c: 687b ldr r3, [r7, #4]
  70640. 801cb2e: 685b ldr r3, [r3, #4]
  70641. 801cb30: 2b00 cmp r3, #0
  70642. 801cb32: d004 beq.n 801cb3e <tcp_seg_free+0x20>
  70643. pbuf_free(seg->p);
  70644. 801cb34: 687b ldr r3, [r7, #4]
  70645. 801cb36: 685b ldr r3, [r3, #4]
  70646. 801cb38: 4618 mov r0, r3
  70647. 801cb3a: f7fe fb97 bl 801b26c <pbuf_free>
  70648. #if TCP_DEBUG
  70649. seg->p = NULL;
  70650. #endif /* TCP_DEBUG */
  70651. }
  70652. memp_free(MEMP_TCP_SEG, seg);
  70653. 801cb3e: 6879 ldr r1, [r7, #4]
  70654. 801cb40: 2003 movs r0, #3
  70655. 801cb42: f7fd fca5 bl 801a490 <memp_free>
  70656. }
  70657. }
  70658. 801cb46: bf00 nop
  70659. 801cb48: 3708 adds r7, #8
  70660. 801cb4a: 46bd mov sp, r7
  70661. 801cb4c: bd80 pop {r7, pc}
  70662. ...
  70663. 0801cb50 <tcp_seg_copy>:
  70664. * @param seg the old tcp_seg
  70665. * @return a copy of seg
  70666. */
  70667. struct tcp_seg *
  70668. tcp_seg_copy(struct tcp_seg *seg)
  70669. {
  70670. 801cb50: b580 push {r7, lr}
  70671. 801cb52: b084 sub sp, #16
  70672. 801cb54: af00 add r7, sp, #0
  70673. 801cb56: 6078 str r0, [r7, #4]
  70674. struct tcp_seg *cseg;
  70675. LWIP_ASSERT("tcp_seg_copy: invalid seg", seg != NULL);
  70676. 801cb58: 687b ldr r3, [r7, #4]
  70677. 801cb5a: 2b00 cmp r3, #0
  70678. 801cb5c: d106 bne.n 801cb6c <tcp_seg_copy+0x1c>
  70679. 801cb5e: 4b0f ldr r3, [pc, #60] @ (801cb9c <tcp_seg_copy+0x4c>)
  70680. 801cb60: f240 6282 movw r2, #1666 @ 0x682
  70681. 801cb64: 490e ldr r1, [pc, #56] @ (801cba0 <tcp_seg_copy+0x50>)
  70682. 801cb66: 480f ldr r0, [pc, #60] @ (801cba4 <tcp_seg_copy+0x54>)
  70683. 801cb68: f00d fdf8 bl 802a75c <iprintf>
  70684. cseg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG);
  70685. 801cb6c: 2003 movs r0, #3
  70686. 801cb6e: f7fd fc19 bl 801a3a4 <memp_malloc>
  70687. 801cb72: 60f8 str r0, [r7, #12]
  70688. if (cseg == NULL) {
  70689. 801cb74: 68fb ldr r3, [r7, #12]
  70690. 801cb76: 2b00 cmp r3, #0
  70691. 801cb78: d101 bne.n 801cb7e <tcp_seg_copy+0x2e>
  70692. return NULL;
  70693. 801cb7a: 2300 movs r3, #0
  70694. 801cb7c: e00a b.n 801cb94 <tcp_seg_copy+0x44>
  70695. }
  70696. SMEMCPY((u8_t *)cseg, (const u8_t *)seg, sizeof(struct tcp_seg));
  70697. 801cb7e: 2214 movs r2, #20
  70698. 801cb80: 6879 ldr r1, [r7, #4]
  70699. 801cb82: 68f8 ldr r0, [r7, #12]
  70700. 801cb84: f00e f873 bl 802ac6e <memcpy>
  70701. pbuf_ref(cseg->p);
  70702. 801cb88: 68fb ldr r3, [r7, #12]
  70703. 801cb8a: 685b ldr r3, [r3, #4]
  70704. 801cb8c: 4618 mov r0, r3
  70705. 801cb8e: f7fe fc13 bl 801b3b8 <pbuf_ref>
  70706. return cseg;
  70707. 801cb92: 68fb ldr r3, [r7, #12]
  70708. }
  70709. 801cb94: 4618 mov r0, r3
  70710. 801cb96: 3710 adds r7, #16
  70711. 801cb98: 46bd mov sp, r7
  70712. 801cb9a: bd80 pop {r7, pc}
  70713. 801cb9c: 0802f48c .word 0x0802f48c
  70714. 801cba0: 0802f9e0 .word 0x0802f9e0
  70715. 801cba4: 0802f4d0 .word 0x0802f4d0
  70716. 0801cba8 <tcp_recv_null>:
  70717. * Default receive callback that is called if the user didn't register
  70718. * a recv callback for the pcb.
  70719. */
  70720. err_t
  70721. tcp_recv_null(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
  70722. {
  70723. 801cba8: b580 push {r7, lr}
  70724. 801cbaa: b084 sub sp, #16
  70725. 801cbac: af00 add r7, sp, #0
  70726. 801cbae: 60f8 str r0, [r7, #12]
  70727. 801cbb0: 60b9 str r1, [r7, #8]
  70728. 801cbb2: 607a str r2, [r7, #4]
  70729. 801cbb4: 70fb strb r3, [r7, #3]
  70730. LWIP_UNUSED_ARG(arg);
  70731. LWIP_ERROR("tcp_recv_null: invalid pcb", pcb != NULL, return ERR_ARG);
  70732. 801cbb6: 68bb ldr r3, [r7, #8]
  70733. 801cbb8: 2b00 cmp r3, #0
  70734. 801cbba: d109 bne.n 801cbd0 <tcp_recv_null+0x28>
  70735. 801cbbc: 4b12 ldr r3, [pc, #72] @ (801cc08 <tcp_recv_null+0x60>)
  70736. 801cbbe: f44f 62d3 mov.w r2, #1688 @ 0x698
  70737. 801cbc2: 4912 ldr r1, [pc, #72] @ (801cc0c <tcp_recv_null+0x64>)
  70738. 801cbc4: 4812 ldr r0, [pc, #72] @ (801cc10 <tcp_recv_null+0x68>)
  70739. 801cbc6: f00d fdc9 bl 802a75c <iprintf>
  70740. 801cbca: f06f 030f mvn.w r3, #15
  70741. 801cbce: e016 b.n 801cbfe <tcp_recv_null+0x56>
  70742. if (p != NULL) {
  70743. 801cbd0: 687b ldr r3, [r7, #4]
  70744. 801cbd2: 2b00 cmp r3, #0
  70745. 801cbd4: d009 beq.n 801cbea <tcp_recv_null+0x42>
  70746. tcp_recved(pcb, p->tot_len);
  70747. 801cbd6: 687b ldr r3, [r7, #4]
  70748. 801cbd8: 891b ldrh r3, [r3, #8]
  70749. 801cbda: 4619 mov r1, r3
  70750. 801cbdc: 68b8 ldr r0, [r7, #8]
  70751. 801cbde: f7ff f9b1 bl 801bf44 <tcp_recved>
  70752. pbuf_free(p);
  70753. 801cbe2: 6878 ldr r0, [r7, #4]
  70754. 801cbe4: f7fe fb42 bl 801b26c <pbuf_free>
  70755. 801cbe8: e008 b.n 801cbfc <tcp_recv_null+0x54>
  70756. } else if (err == ERR_OK) {
  70757. 801cbea: f997 3003 ldrsb.w r3, [r7, #3]
  70758. 801cbee: 2b00 cmp r3, #0
  70759. 801cbf0: d104 bne.n 801cbfc <tcp_recv_null+0x54>
  70760. return tcp_close(pcb);
  70761. 801cbf2: 68b8 ldr r0, [r7, #8]
  70762. 801cbf4: f7fe fff4 bl 801bbe0 <tcp_close>
  70763. 801cbf8: 4603 mov r3, r0
  70764. 801cbfa: e000 b.n 801cbfe <tcp_recv_null+0x56>
  70765. }
  70766. return ERR_OK;
  70767. 801cbfc: 2300 movs r3, #0
  70768. }
  70769. 801cbfe: 4618 mov r0, r3
  70770. 801cc00: 3710 adds r7, #16
  70771. 801cc02: 46bd mov sp, r7
  70772. 801cc04: bd80 pop {r7, pc}
  70773. 801cc06: bf00 nop
  70774. 801cc08: 0802f48c .word 0x0802f48c
  70775. 801cc0c: 0802f9fc .word 0x0802f9fc
  70776. 801cc10: 0802f4d0 .word 0x0802f4d0
  70777. 0801cc14 <tcp_kill_prio>:
  70778. *
  70779. * @param prio minimum priority
  70780. */
  70781. static void
  70782. tcp_kill_prio(u8_t prio)
  70783. {
  70784. 801cc14: b580 push {r7, lr}
  70785. 801cc16: b086 sub sp, #24
  70786. 801cc18: af00 add r7, sp, #0
  70787. 801cc1a: 4603 mov r3, r0
  70788. 801cc1c: 71fb strb r3, [r7, #7]
  70789. struct tcp_pcb *pcb, *inactive;
  70790. u32_t inactivity;
  70791. u8_t mprio;
  70792. mprio = LWIP_MIN(TCP_PRIO_MAX, prio);
  70793. 801cc1e: f997 3007 ldrsb.w r3, [r7, #7]
  70794. 801cc22: 2b00 cmp r3, #0
  70795. 801cc24: db01 blt.n 801cc2a <tcp_kill_prio+0x16>
  70796. 801cc26: 79fb ldrb r3, [r7, #7]
  70797. 801cc28: e000 b.n 801cc2c <tcp_kill_prio+0x18>
  70798. 801cc2a: 237f movs r3, #127 @ 0x7f
  70799. 801cc2c: 72fb strb r3, [r7, #11]
  70800. /* We want to kill connections with a lower prio, so bail out if
  70801. * supplied prio is 0 - there can never be a lower prio
  70802. */
  70803. if (mprio == 0) {
  70804. 801cc2e: 7afb ldrb r3, [r7, #11]
  70805. 801cc30: 2b00 cmp r3, #0
  70806. 801cc32: d034 beq.n 801cc9e <tcp_kill_prio+0x8a>
  70807. /* We only want kill connections with a lower prio, so decrement prio by one
  70808. * and start searching for oldest connection with same or lower priority than mprio.
  70809. * We want to find the connections with the lowest possible prio, and among
  70810. * these the one with the longest inactivity time.
  70811. */
  70812. mprio--;
  70813. 801cc34: 7afb ldrb r3, [r7, #11]
  70814. 801cc36: 3b01 subs r3, #1
  70815. 801cc38: 72fb strb r3, [r7, #11]
  70816. inactivity = 0;
  70817. 801cc3a: 2300 movs r3, #0
  70818. 801cc3c: 60fb str r3, [r7, #12]
  70819. inactive = NULL;
  70820. 801cc3e: 2300 movs r3, #0
  70821. 801cc40: 613b str r3, [r7, #16]
  70822. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  70823. 801cc42: 4b19 ldr r3, [pc, #100] @ (801cca8 <tcp_kill_prio+0x94>)
  70824. 801cc44: 681b ldr r3, [r3, #0]
  70825. 801cc46: 617b str r3, [r7, #20]
  70826. 801cc48: e01f b.n 801cc8a <tcp_kill_prio+0x76>
  70827. /* lower prio is always a kill candidate */
  70828. if ((pcb->prio < mprio) ||
  70829. 801cc4a: 697b ldr r3, [r7, #20]
  70830. 801cc4c: 7d5b ldrb r3, [r3, #21]
  70831. 801cc4e: 7afa ldrb r2, [r7, #11]
  70832. 801cc50: 429a cmp r2, r3
  70833. 801cc52: d80c bhi.n 801cc6e <tcp_kill_prio+0x5a>
  70834. /* longer inactivity is also a kill candidate */
  70835. ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) {
  70836. 801cc54: 697b ldr r3, [r7, #20]
  70837. 801cc56: 7d5b ldrb r3, [r3, #21]
  70838. if ((pcb->prio < mprio) ||
  70839. 801cc58: 7afa ldrb r2, [r7, #11]
  70840. 801cc5a: 429a cmp r2, r3
  70841. 801cc5c: d112 bne.n 801cc84 <tcp_kill_prio+0x70>
  70842. ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) {
  70843. 801cc5e: 4b13 ldr r3, [pc, #76] @ (801ccac <tcp_kill_prio+0x98>)
  70844. 801cc60: 681a ldr r2, [r3, #0]
  70845. 801cc62: 697b ldr r3, [r7, #20]
  70846. 801cc64: 6a1b ldr r3, [r3, #32]
  70847. 801cc66: 1ad3 subs r3, r2, r3
  70848. 801cc68: 68fa ldr r2, [r7, #12]
  70849. 801cc6a: 429a cmp r2, r3
  70850. 801cc6c: d80a bhi.n 801cc84 <tcp_kill_prio+0x70>
  70851. inactivity = tcp_ticks - pcb->tmr;
  70852. 801cc6e: 4b0f ldr r3, [pc, #60] @ (801ccac <tcp_kill_prio+0x98>)
  70853. 801cc70: 681a ldr r2, [r3, #0]
  70854. 801cc72: 697b ldr r3, [r7, #20]
  70855. 801cc74: 6a1b ldr r3, [r3, #32]
  70856. 801cc76: 1ad3 subs r3, r2, r3
  70857. 801cc78: 60fb str r3, [r7, #12]
  70858. inactive = pcb;
  70859. 801cc7a: 697b ldr r3, [r7, #20]
  70860. 801cc7c: 613b str r3, [r7, #16]
  70861. mprio = pcb->prio;
  70862. 801cc7e: 697b ldr r3, [r7, #20]
  70863. 801cc80: 7d5b ldrb r3, [r3, #21]
  70864. 801cc82: 72fb strb r3, [r7, #11]
  70865. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  70866. 801cc84: 697b ldr r3, [r7, #20]
  70867. 801cc86: 68db ldr r3, [r3, #12]
  70868. 801cc88: 617b str r3, [r7, #20]
  70869. 801cc8a: 697b ldr r3, [r7, #20]
  70870. 801cc8c: 2b00 cmp r3, #0
  70871. 801cc8e: d1dc bne.n 801cc4a <tcp_kill_prio+0x36>
  70872. }
  70873. }
  70874. if (inactive != NULL) {
  70875. 801cc90: 693b ldr r3, [r7, #16]
  70876. 801cc92: 2b00 cmp r3, #0
  70877. 801cc94: d004 beq.n 801cca0 <tcp_kill_prio+0x8c>
  70878. LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_prio: killing oldest PCB %p (%"S32_F")\n",
  70879. (void *)inactive, inactivity));
  70880. tcp_abort(inactive);
  70881. 801cc96: 6938 ldr r0, [r7, #16]
  70882. 801cc98: f7ff f8ee bl 801be78 <tcp_abort>
  70883. 801cc9c: e000 b.n 801cca0 <tcp_kill_prio+0x8c>
  70884. return;
  70885. 801cc9e: bf00 nop
  70886. }
  70887. }
  70888. 801cca0: 3718 adds r7, #24
  70889. 801cca2: 46bd mov sp, r7
  70890. 801cca4: bd80 pop {r7, pc}
  70891. 801cca6: bf00 nop
  70892. 801cca8: 2402af74 .word 0x2402af74
  70893. 801ccac: 2402af68 .word 0x2402af68
  70894. 0801ccb0 <tcp_kill_state>:
  70895. * Kills the oldest connection that is in specific state.
  70896. * Called from tcp_alloc() for LAST_ACK and CLOSING if no more connections are available.
  70897. */
  70898. static void
  70899. tcp_kill_state(enum tcp_state state)
  70900. {
  70901. 801ccb0: b580 push {r7, lr}
  70902. 801ccb2: b086 sub sp, #24
  70903. 801ccb4: af00 add r7, sp, #0
  70904. 801ccb6: 4603 mov r3, r0
  70905. 801ccb8: 71fb strb r3, [r7, #7]
  70906. struct tcp_pcb *pcb, *inactive;
  70907. u32_t inactivity;
  70908. LWIP_ASSERT("invalid state", (state == CLOSING) || (state == LAST_ACK));
  70909. 801ccba: 79fb ldrb r3, [r7, #7]
  70910. 801ccbc: 2b08 cmp r3, #8
  70911. 801ccbe: d009 beq.n 801ccd4 <tcp_kill_state+0x24>
  70912. 801ccc0: 79fb ldrb r3, [r7, #7]
  70913. 801ccc2: 2b09 cmp r3, #9
  70914. 801ccc4: d006 beq.n 801ccd4 <tcp_kill_state+0x24>
  70915. 801ccc6: 4b1a ldr r3, [pc, #104] @ (801cd30 <tcp_kill_state+0x80>)
  70916. 801ccc8: f240 62dd movw r2, #1757 @ 0x6dd
  70917. 801cccc: 4919 ldr r1, [pc, #100] @ (801cd34 <tcp_kill_state+0x84>)
  70918. 801ccce: 481a ldr r0, [pc, #104] @ (801cd38 <tcp_kill_state+0x88>)
  70919. 801ccd0: f00d fd44 bl 802a75c <iprintf>
  70920. inactivity = 0;
  70921. 801ccd4: 2300 movs r3, #0
  70922. 801ccd6: 60fb str r3, [r7, #12]
  70923. inactive = NULL;
  70924. 801ccd8: 2300 movs r3, #0
  70925. 801ccda: 613b str r3, [r7, #16]
  70926. /* Go through the list of active pcbs and get the oldest pcb that is in state
  70927. CLOSING/LAST_ACK. */
  70928. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  70929. 801ccdc: 4b17 ldr r3, [pc, #92] @ (801cd3c <tcp_kill_state+0x8c>)
  70930. 801ccde: 681b ldr r3, [r3, #0]
  70931. 801cce0: 617b str r3, [r7, #20]
  70932. 801cce2: e017 b.n 801cd14 <tcp_kill_state+0x64>
  70933. if (pcb->state == state) {
  70934. 801cce4: 697b ldr r3, [r7, #20]
  70935. 801cce6: 7d1b ldrb r3, [r3, #20]
  70936. 801cce8: 79fa ldrb r2, [r7, #7]
  70937. 801ccea: 429a cmp r2, r3
  70938. 801ccec: d10f bne.n 801cd0e <tcp_kill_state+0x5e>
  70939. if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) {
  70940. 801ccee: 4b14 ldr r3, [pc, #80] @ (801cd40 <tcp_kill_state+0x90>)
  70941. 801ccf0: 681a ldr r2, [r3, #0]
  70942. 801ccf2: 697b ldr r3, [r7, #20]
  70943. 801ccf4: 6a1b ldr r3, [r3, #32]
  70944. 801ccf6: 1ad3 subs r3, r2, r3
  70945. 801ccf8: 68fa ldr r2, [r7, #12]
  70946. 801ccfa: 429a cmp r2, r3
  70947. 801ccfc: d807 bhi.n 801cd0e <tcp_kill_state+0x5e>
  70948. inactivity = tcp_ticks - pcb->tmr;
  70949. 801ccfe: 4b10 ldr r3, [pc, #64] @ (801cd40 <tcp_kill_state+0x90>)
  70950. 801cd00: 681a ldr r2, [r3, #0]
  70951. 801cd02: 697b ldr r3, [r7, #20]
  70952. 801cd04: 6a1b ldr r3, [r3, #32]
  70953. 801cd06: 1ad3 subs r3, r2, r3
  70954. 801cd08: 60fb str r3, [r7, #12]
  70955. inactive = pcb;
  70956. 801cd0a: 697b ldr r3, [r7, #20]
  70957. 801cd0c: 613b str r3, [r7, #16]
  70958. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  70959. 801cd0e: 697b ldr r3, [r7, #20]
  70960. 801cd10: 68db ldr r3, [r3, #12]
  70961. 801cd12: 617b str r3, [r7, #20]
  70962. 801cd14: 697b ldr r3, [r7, #20]
  70963. 801cd16: 2b00 cmp r3, #0
  70964. 801cd18: d1e4 bne.n 801cce4 <tcp_kill_state+0x34>
  70965. }
  70966. }
  70967. }
  70968. if (inactive != NULL) {
  70969. 801cd1a: 693b ldr r3, [r7, #16]
  70970. 801cd1c: 2b00 cmp r3, #0
  70971. 801cd1e: d003 beq.n 801cd28 <tcp_kill_state+0x78>
  70972. LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_closing: killing oldest %s PCB %p (%"S32_F")\n",
  70973. tcp_state_str[state], (void *)inactive, inactivity));
  70974. /* Don't send a RST, since no data is lost. */
  70975. tcp_abandon(inactive, 0);
  70976. 801cd20: 2100 movs r1, #0
  70977. 801cd22: 6938 ldr r0, [r7, #16]
  70978. 801cd24: f7fe ffe8 bl 801bcf8 <tcp_abandon>
  70979. }
  70980. }
  70981. 801cd28: bf00 nop
  70982. 801cd2a: 3718 adds r7, #24
  70983. 801cd2c: 46bd mov sp, r7
  70984. 801cd2e: bd80 pop {r7, pc}
  70985. 801cd30: 0802f48c .word 0x0802f48c
  70986. 801cd34: 0802fa18 .word 0x0802fa18
  70987. 801cd38: 0802f4d0 .word 0x0802f4d0
  70988. 801cd3c: 2402af74 .word 0x2402af74
  70989. 801cd40: 2402af68 .word 0x2402af68
  70990. 0801cd44 <tcp_kill_timewait>:
  70991. * Kills the oldest connection that is in TIME_WAIT state.
  70992. * Called from tcp_alloc() if no more connections are available.
  70993. */
  70994. static void
  70995. tcp_kill_timewait(void)
  70996. {
  70997. 801cd44: b580 push {r7, lr}
  70998. 801cd46: b084 sub sp, #16
  70999. 801cd48: af00 add r7, sp, #0
  71000. struct tcp_pcb *pcb, *inactive;
  71001. u32_t inactivity;
  71002. inactivity = 0;
  71003. 801cd4a: 2300 movs r3, #0
  71004. 801cd4c: 607b str r3, [r7, #4]
  71005. inactive = NULL;
  71006. 801cd4e: 2300 movs r3, #0
  71007. 801cd50: 60bb str r3, [r7, #8]
  71008. /* Go through the list of TIME_WAIT pcbs and get the oldest pcb. */
  71009. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  71010. 801cd52: 4b12 ldr r3, [pc, #72] @ (801cd9c <tcp_kill_timewait+0x58>)
  71011. 801cd54: 681b ldr r3, [r3, #0]
  71012. 801cd56: 60fb str r3, [r7, #12]
  71013. 801cd58: e012 b.n 801cd80 <tcp_kill_timewait+0x3c>
  71014. if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) {
  71015. 801cd5a: 4b11 ldr r3, [pc, #68] @ (801cda0 <tcp_kill_timewait+0x5c>)
  71016. 801cd5c: 681a ldr r2, [r3, #0]
  71017. 801cd5e: 68fb ldr r3, [r7, #12]
  71018. 801cd60: 6a1b ldr r3, [r3, #32]
  71019. 801cd62: 1ad3 subs r3, r2, r3
  71020. 801cd64: 687a ldr r2, [r7, #4]
  71021. 801cd66: 429a cmp r2, r3
  71022. 801cd68: d807 bhi.n 801cd7a <tcp_kill_timewait+0x36>
  71023. inactivity = tcp_ticks - pcb->tmr;
  71024. 801cd6a: 4b0d ldr r3, [pc, #52] @ (801cda0 <tcp_kill_timewait+0x5c>)
  71025. 801cd6c: 681a ldr r2, [r3, #0]
  71026. 801cd6e: 68fb ldr r3, [r7, #12]
  71027. 801cd70: 6a1b ldr r3, [r3, #32]
  71028. 801cd72: 1ad3 subs r3, r2, r3
  71029. 801cd74: 607b str r3, [r7, #4]
  71030. inactive = pcb;
  71031. 801cd76: 68fb ldr r3, [r7, #12]
  71032. 801cd78: 60bb str r3, [r7, #8]
  71033. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  71034. 801cd7a: 68fb ldr r3, [r7, #12]
  71035. 801cd7c: 68db ldr r3, [r3, #12]
  71036. 801cd7e: 60fb str r3, [r7, #12]
  71037. 801cd80: 68fb ldr r3, [r7, #12]
  71038. 801cd82: 2b00 cmp r3, #0
  71039. 801cd84: d1e9 bne.n 801cd5a <tcp_kill_timewait+0x16>
  71040. }
  71041. }
  71042. if (inactive != NULL) {
  71043. 801cd86: 68bb ldr r3, [r7, #8]
  71044. 801cd88: 2b00 cmp r3, #0
  71045. 801cd8a: d002 beq.n 801cd92 <tcp_kill_timewait+0x4e>
  71046. LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_timewait: killing oldest TIME-WAIT PCB %p (%"S32_F")\n",
  71047. (void *)inactive, inactivity));
  71048. tcp_abort(inactive);
  71049. 801cd8c: 68b8 ldr r0, [r7, #8]
  71050. 801cd8e: f7ff f873 bl 801be78 <tcp_abort>
  71051. }
  71052. }
  71053. 801cd92: bf00 nop
  71054. 801cd94: 3710 adds r7, #16
  71055. 801cd96: 46bd mov sp, r7
  71056. 801cd98: bd80 pop {r7, pc}
  71057. 801cd9a: bf00 nop
  71058. 801cd9c: 2402af78 .word 0x2402af78
  71059. 801cda0: 2402af68 .word 0x2402af68
  71060. 0801cda4 <tcp_handle_closepend>:
  71061. * now send the FIN (which failed before), the pcb might be in a state that is
  71062. * OK for us to now free it.
  71063. */
  71064. static void
  71065. tcp_handle_closepend(void)
  71066. {
  71067. 801cda4: b580 push {r7, lr}
  71068. 801cda6: b082 sub sp, #8
  71069. 801cda8: af00 add r7, sp, #0
  71070. struct tcp_pcb *pcb = tcp_active_pcbs;
  71071. 801cdaa: 4b10 ldr r3, [pc, #64] @ (801cdec <tcp_handle_closepend+0x48>)
  71072. 801cdac: 681b ldr r3, [r3, #0]
  71073. 801cdae: 607b str r3, [r7, #4]
  71074. while (pcb != NULL) {
  71075. 801cdb0: e014 b.n 801cddc <tcp_handle_closepend+0x38>
  71076. struct tcp_pcb *next = pcb->next;
  71077. 801cdb2: 687b ldr r3, [r7, #4]
  71078. 801cdb4: 68db ldr r3, [r3, #12]
  71079. 801cdb6: 603b str r3, [r7, #0]
  71080. /* send pending FIN */
  71081. if (pcb->flags & TF_CLOSEPEND) {
  71082. 801cdb8: 687b ldr r3, [r7, #4]
  71083. 801cdba: 8b5b ldrh r3, [r3, #26]
  71084. 801cdbc: f003 0308 and.w r3, r3, #8
  71085. 801cdc0: 2b00 cmp r3, #0
  71086. 801cdc2: d009 beq.n 801cdd8 <tcp_handle_closepend+0x34>
  71087. LWIP_DEBUGF(TCP_DEBUG, ("tcp_handle_closepend: pending FIN\n"));
  71088. tcp_clear_flags(pcb, TF_CLOSEPEND);
  71089. 801cdc4: 687b ldr r3, [r7, #4]
  71090. 801cdc6: 8b5b ldrh r3, [r3, #26]
  71091. 801cdc8: f023 0308 bic.w r3, r3, #8
  71092. 801cdcc: b29a uxth r2, r3
  71093. 801cdce: 687b ldr r3, [r7, #4]
  71094. 801cdd0: 835a strh r2, [r3, #26]
  71095. tcp_close_shutdown_fin(pcb);
  71096. 801cdd2: 6878 ldr r0, [r7, #4]
  71097. 801cdd4: f7fe fe9a bl 801bb0c <tcp_close_shutdown_fin>
  71098. }
  71099. pcb = next;
  71100. 801cdd8: 683b ldr r3, [r7, #0]
  71101. 801cdda: 607b str r3, [r7, #4]
  71102. while (pcb != NULL) {
  71103. 801cddc: 687b ldr r3, [r7, #4]
  71104. 801cdde: 2b00 cmp r3, #0
  71105. 801cde0: d1e7 bne.n 801cdb2 <tcp_handle_closepend+0xe>
  71106. }
  71107. }
  71108. 801cde2: bf00 nop
  71109. 801cde4: bf00 nop
  71110. 801cde6: 3708 adds r7, #8
  71111. 801cde8: 46bd mov sp, r7
  71112. 801cdea: bd80 pop {r7, pc}
  71113. 801cdec: 2402af74 .word 0x2402af74
  71114. 0801cdf0 <tcp_alloc>:
  71115. * @param prio priority for the new pcb
  71116. * @return a new tcp_pcb that initially is in state CLOSED
  71117. */
  71118. struct tcp_pcb *
  71119. tcp_alloc(u8_t prio)
  71120. {
  71121. 801cdf0: b580 push {r7, lr}
  71122. 801cdf2: b084 sub sp, #16
  71123. 801cdf4: af00 add r7, sp, #0
  71124. 801cdf6: 4603 mov r3, r0
  71125. 801cdf8: 71fb strb r3, [r7, #7]
  71126. struct tcp_pcb *pcb;
  71127. LWIP_ASSERT_CORE_LOCKED();
  71128. 801cdfa: f7f4 f881 bl 8010f00 <sys_check_core_locking>
  71129. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  71130. 801cdfe: 2001 movs r0, #1
  71131. 801ce00: f7fd fad0 bl 801a3a4 <memp_malloc>
  71132. 801ce04: 60f8 str r0, [r7, #12]
  71133. if (pcb == NULL) {
  71134. 801ce06: 68fb ldr r3, [r7, #12]
  71135. 801ce08: 2b00 cmp r3, #0
  71136. 801ce0a: d126 bne.n 801ce5a <tcp_alloc+0x6a>
  71137. /* Try to send FIN for all pcbs stuck in TF_CLOSEPEND first */
  71138. tcp_handle_closepend();
  71139. 801ce0c: f7ff ffca bl 801cda4 <tcp_handle_closepend>
  71140. /* Try killing oldest connection in TIME-WAIT. */
  71141. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest TIME-WAIT connection\n"));
  71142. tcp_kill_timewait();
  71143. 801ce10: f7ff ff98 bl 801cd44 <tcp_kill_timewait>
  71144. /* Try to allocate a tcp_pcb again. */
  71145. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  71146. 801ce14: 2001 movs r0, #1
  71147. 801ce16: f7fd fac5 bl 801a3a4 <memp_malloc>
  71148. 801ce1a: 60f8 str r0, [r7, #12]
  71149. if (pcb == NULL) {
  71150. 801ce1c: 68fb ldr r3, [r7, #12]
  71151. 801ce1e: 2b00 cmp r3, #0
  71152. 801ce20: d11b bne.n 801ce5a <tcp_alloc+0x6a>
  71153. /* Try killing oldest connection in LAST-ACK (these wouldn't go to TIME-WAIT). */
  71154. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest LAST-ACK connection\n"));
  71155. tcp_kill_state(LAST_ACK);
  71156. 801ce22: 2009 movs r0, #9
  71157. 801ce24: f7ff ff44 bl 801ccb0 <tcp_kill_state>
  71158. /* Try to allocate a tcp_pcb again. */
  71159. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  71160. 801ce28: 2001 movs r0, #1
  71161. 801ce2a: f7fd fabb bl 801a3a4 <memp_malloc>
  71162. 801ce2e: 60f8 str r0, [r7, #12]
  71163. if (pcb == NULL) {
  71164. 801ce30: 68fb ldr r3, [r7, #12]
  71165. 801ce32: 2b00 cmp r3, #0
  71166. 801ce34: d111 bne.n 801ce5a <tcp_alloc+0x6a>
  71167. /* Try killing oldest connection in CLOSING. */
  71168. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest CLOSING connection\n"));
  71169. tcp_kill_state(CLOSING);
  71170. 801ce36: 2008 movs r0, #8
  71171. 801ce38: f7ff ff3a bl 801ccb0 <tcp_kill_state>
  71172. /* Try to allocate a tcp_pcb again. */
  71173. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  71174. 801ce3c: 2001 movs r0, #1
  71175. 801ce3e: f7fd fab1 bl 801a3a4 <memp_malloc>
  71176. 801ce42: 60f8 str r0, [r7, #12]
  71177. if (pcb == NULL) {
  71178. 801ce44: 68fb ldr r3, [r7, #12]
  71179. 801ce46: 2b00 cmp r3, #0
  71180. 801ce48: d107 bne.n 801ce5a <tcp_alloc+0x6a>
  71181. /* Try killing oldest active connection with lower priority than the new one. */
  71182. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing oldest connection with prio lower than %d\n", prio));
  71183. tcp_kill_prio(prio);
  71184. 801ce4a: 79fb ldrb r3, [r7, #7]
  71185. 801ce4c: 4618 mov r0, r3
  71186. 801ce4e: f7ff fee1 bl 801cc14 <tcp_kill_prio>
  71187. /* Try to allocate a tcp_pcb again. */
  71188. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  71189. 801ce52: 2001 movs r0, #1
  71190. 801ce54: f7fd faa6 bl 801a3a4 <memp_malloc>
  71191. 801ce58: 60f8 str r0, [r7, #12]
  71192. if (pcb != NULL) {
  71193. /* adjust err stats: memp_malloc failed above */
  71194. MEMP_STATS_DEC(err, MEMP_TCP_PCB);
  71195. }
  71196. }
  71197. if (pcb != NULL) {
  71198. 801ce5a: 68fb ldr r3, [r7, #12]
  71199. 801ce5c: 2b00 cmp r3, #0
  71200. 801ce5e: d03f beq.n 801cee0 <tcp_alloc+0xf0>
  71201. /* zero out the whole pcb, so there is no need to initialize members to zero */
  71202. memset(pcb, 0, sizeof(struct tcp_pcb));
  71203. 801ce60: 229c movs r2, #156 @ 0x9c
  71204. 801ce62: 2100 movs r1, #0
  71205. 801ce64: 68f8 ldr r0, [r7, #12]
  71206. 801ce66: f00d fe0b bl 802aa80 <memset>
  71207. pcb->prio = prio;
  71208. 801ce6a: 68fb ldr r3, [r7, #12]
  71209. 801ce6c: 79fa ldrb r2, [r7, #7]
  71210. 801ce6e: 755a strb r2, [r3, #21]
  71211. pcb->snd_buf = TCP_SND_BUF;
  71212. 801ce70: 68fb ldr r3, [r7, #12]
  71213. 801ce72: f241 62d0 movw r2, #5840 @ 0x16d0
  71214. 801ce76: f8a3 2064 strh.w r2, [r3, #100] @ 0x64
  71215. /* Start with a window that does not need scaling. When window scaling is
  71216. enabled and used, the window is enlarged when both sides agree on scaling. */
  71217. pcb->rcv_wnd = pcb->rcv_ann_wnd = TCPWND_MIN16(TCP_WND);
  71218. 801ce7a: 68fb ldr r3, [r7, #12]
  71219. 801ce7c: f241 62d0 movw r2, #5840 @ 0x16d0
  71220. 801ce80: 855a strh r2, [r3, #42] @ 0x2a
  71221. 801ce82: 68fb ldr r3, [r7, #12]
  71222. 801ce84: 8d5a ldrh r2, [r3, #42] @ 0x2a
  71223. 801ce86: 68fb ldr r3, [r7, #12]
  71224. 801ce88: 851a strh r2, [r3, #40] @ 0x28
  71225. pcb->ttl = TCP_TTL;
  71226. 801ce8a: 68fb ldr r3, [r7, #12]
  71227. 801ce8c: 22ff movs r2, #255 @ 0xff
  71228. 801ce8e: 72da strb r2, [r3, #11]
  71229. /* As initial send MSS, we use TCP_MSS but limit it to 536.
  71230. The send MSS is updated when an MSS option is received. */
  71231. pcb->mss = INITIAL_MSS;
  71232. 801ce90: 68fb ldr r3, [r7, #12]
  71233. 801ce92: f44f 7206 mov.w r2, #536 @ 0x218
  71234. 801ce96: 865a strh r2, [r3, #50] @ 0x32
  71235. pcb->rto = 3000 / TCP_SLOW_INTERVAL;
  71236. 801ce98: 68fb ldr r3, [r7, #12]
  71237. 801ce9a: 2206 movs r2, #6
  71238. 801ce9c: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  71239. pcb->sv = 3000 / TCP_SLOW_INTERVAL;
  71240. 801cea0: 68fb ldr r3, [r7, #12]
  71241. 801cea2: 2206 movs r2, #6
  71242. 801cea4: 87da strh r2, [r3, #62] @ 0x3e
  71243. pcb->rtime = -1;
  71244. 801cea6: 68fb ldr r3, [r7, #12]
  71245. 801cea8: f64f 72ff movw r2, #65535 @ 0xffff
  71246. 801ceac: 861a strh r2, [r3, #48] @ 0x30
  71247. pcb->cwnd = 1;
  71248. 801ceae: 68fb ldr r3, [r7, #12]
  71249. 801ceb0: 2201 movs r2, #1
  71250. 801ceb2: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  71251. pcb->tmr = tcp_ticks;
  71252. 801ceb6: 4b0d ldr r3, [pc, #52] @ (801ceec <tcp_alloc+0xfc>)
  71253. 801ceb8: 681a ldr r2, [r3, #0]
  71254. 801ceba: 68fb ldr r3, [r7, #12]
  71255. 801cebc: 621a str r2, [r3, #32]
  71256. pcb->last_timer = tcp_timer_ctr;
  71257. 801cebe: 4b0c ldr r3, [pc, #48] @ (801cef0 <tcp_alloc+0x100>)
  71258. 801cec0: 781a ldrb r2, [r3, #0]
  71259. 801cec2: 68fb ldr r3, [r7, #12]
  71260. 801cec4: 779a strb r2, [r3, #30]
  71261. of using the largest advertised receive window. We've seen complications with
  71262. receiving TCPs that use window scaling and/or window auto-tuning where the
  71263. initial advertised window is very small and then grows rapidly once the
  71264. connection is established. To avoid these complications, we set ssthresh to the
  71265. largest effective cwnd (amount of in-flight data) that the sender can have. */
  71266. pcb->ssthresh = TCP_SND_BUF;
  71267. 801cec6: 68fb ldr r3, [r7, #12]
  71268. 801cec8: f241 62d0 movw r2, #5840 @ 0x16d0
  71269. 801cecc: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  71270. #if LWIP_CALLBACK_API
  71271. pcb->recv = tcp_recv_null;
  71272. 801ced0: 68fb ldr r3, [r7, #12]
  71273. 801ced2: 4a08 ldr r2, [pc, #32] @ (801cef4 <tcp_alloc+0x104>)
  71274. 801ced4: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  71275. #endif /* LWIP_CALLBACK_API */
  71276. /* Init KEEPALIVE timer */
  71277. pcb->keep_idle = TCP_KEEPIDLE_DEFAULT;
  71278. 801ced8: 68fb ldr r3, [r7, #12]
  71279. 801ceda: 4a07 ldr r2, [pc, #28] @ (801cef8 <tcp_alloc+0x108>)
  71280. 801cedc: f8c3 2094 str.w r2, [r3, #148] @ 0x94
  71281. #if LWIP_TCP_KEEPALIVE
  71282. pcb->keep_intvl = TCP_KEEPINTVL_DEFAULT;
  71283. pcb->keep_cnt = TCP_KEEPCNT_DEFAULT;
  71284. #endif /* LWIP_TCP_KEEPALIVE */
  71285. }
  71286. return pcb;
  71287. 801cee0: 68fb ldr r3, [r7, #12]
  71288. }
  71289. 801cee2: 4618 mov r0, r3
  71290. 801cee4: 3710 adds r7, #16
  71291. 801cee6: 46bd mov sp, r7
  71292. 801cee8: bd80 pop {r7, pc}
  71293. 801ceea: bf00 nop
  71294. 801ceec: 2402af68 .word 0x2402af68
  71295. 801cef0: 2402af7e .word 0x2402af7e
  71296. 801cef4: 0801cba9 .word 0x0801cba9
  71297. 801cef8: 006ddd00 .word 0x006ddd00
  71298. 0801cefc <tcp_new_ip_type>:
  71299. * supply @ref IPADDR_TYPE_ANY as argument and bind to @ref IP_ANY_TYPE.
  71300. * @return a new tcp_pcb that initially is in state CLOSED
  71301. */
  71302. struct tcp_pcb *
  71303. tcp_new_ip_type(u8_t type)
  71304. {
  71305. 801cefc: b580 push {r7, lr}
  71306. 801cefe: b084 sub sp, #16
  71307. 801cf00: af00 add r7, sp, #0
  71308. 801cf02: 4603 mov r3, r0
  71309. 801cf04: 71fb strb r3, [r7, #7]
  71310. struct tcp_pcb *pcb;
  71311. pcb = tcp_alloc(TCP_PRIO_NORMAL);
  71312. 801cf06: 2040 movs r0, #64 @ 0x40
  71313. 801cf08: f7ff ff72 bl 801cdf0 <tcp_alloc>
  71314. 801cf0c: 60f8 str r0, [r7, #12]
  71315. IP_SET_TYPE_VAL(pcb->remote_ip, type);
  71316. }
  71317. #else
  71318. LWIP_UNUSED_ARG(type);
  71319. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  71320. return pcb;
  71321. 801cf0e: 68fb ldr r3, [r7, #12]
  71322. }
  71323. 801cf10: 4618 mov r0, r3
  71324. 801cf12: 3710 adds r7, #16
  71325. 801cf14: 46bd mov sp, r7
  71326. 801cf16: bd80 pop {r7, pc}
  71327. 0801cf18 <tcp_arg>:
  71328. * @param pcb tcp_pcb to set the callback argument
  71329. * @param arg void pointer argument to pass to callback functions
  71330. */
  71331. void
  71332. tcp_arg(struct tcp_pcb *pcb, void *arg)
  71333. {
  71334. 801cf18: b580 push {r7, lr}
  71335. 801cf1a: b082 sub sp, #8
  71336. 801cf1c: af00 add r7, sp, #0
  71337. 801cf1e: 6078 str r0, [r7, #4]
  71338. 801cf20: 6039 str r1, [r7, #0]
  71339. LWIP_ASSERT_CORE_LOCKED();
  71340. 801cf22: f7f3 ffed bl 8010f00 <sys_check_core_locking>
  71341. /* This function is allowed to be called for both listen pcbs and
  71342. connection pcbs. */
  71343. if (pcb != NULL) {
  71344. 801cf26: 687b ldr r3, [r7, #4]
  71345. 801cf28: 2b00 cmp r3, #0
  71346. 801cf2a: d002 beq.n 801cf32 <tcp_arg+0x1a>
  71347. pcb->callback_arg = arg;
  71348. 801cf2c: 687b ldr r3, [r7, #4]
  71349. 801cf2e: 683a ldr r2, [r7, #0]
  71350. 801cf30: 611a str r2, [r3, #16]
  71351. }
  71352. }
  71353. 801cf32: bf00 nop
  71354. 801cf34: 3708 adds r7, #8
  71355. 801cf36: 46bd mov sp, r7
  71356. 801cf38: bd80 pop {r7, pc}
  71357. ...
  71358. 0801cf3c <tcp_recv>:
  71359. * @param pcb tcp_pcb to set the recv callback
  71360. * @param recv callback function to call for this pcb when data is received
  71361. */
  71362. void
  71363. tcp_recv(struct tcp_pcb *pcb, tcp_recv_fn recv)
  71364. {
  71365. 801cf3c: b580 push {r7, lr}
  71366. 801cf3e: b082 sub sp, #8
  71367. 801cf40: af00 add r7, sp, #0
  71368. 801cf42: 6078 str r0, [r7, #4]
  71369. 801cf44: 6039 str r1, [r7, #0]
  71370. LWIP_ASSERT_CORE_LOCKED();
  71371. 801cf46: f7f3 ffdb bl 8010f00 <sys_check_core_locking>
  71372. if (pcb != NULL) {
  71373. 801cf4a: 687b ldr r3, [r7, #4]
  71374. 801cf4c: 2b00 cmp r3, #0
  71375. 801cf4e: d00e beq.n 801cf6e <tcp_recv+0x32>
  71376. LWIP_ASSERT("invalid socket state for recv callback", pcb->state != LISTEN);
  71377. 801cf50: 687b ldr r3, [r7, #4]
  71378. 801cf52: 7d1b ldrb r3, [r3, #20]
  71379. 801cf54: 2b01 cmp r3, #1
  71380. 801cf56: d106 bne.n 801cf66 <tcp_recv+0x2a>
  71381. 801cf58: 4b07 ldr r3, [pc, #28] @ (801cf78 <tcp_recv+0x3c>)
  71382. 801cf5a: f240 72df movw r2, #2015 @ 0x7df
  71383. 801cf5e: 4907 ldr r1, [pc, #28] @ (801cf7c <tcp_recv+0x40>)
  71384. 801cf60: 4807 ldr r0, [pc, #28] @ (801cf80 <tcp_recv+0x44>)
  71385. 801cf62: f00d fbfb bl 802a75c <iprintf>
  71386. pcb->recv = recv;
  71387. 801cf66: 687b ldr r3, [r7, #4]
  71388. 801cf68: 683a ldr r2, [r7, #0]
  71389. 801cf6a: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  71390. }
  71391. }
  71392. 801cf6e: bf00 nop
  71393. 801cf70: 3708 adds r7, #8
  71394. 801cf72: 46bd mov sp, r7
  71395. 801cf74: bd80 pop {r7, pc}
  71396. 801cf76: bf00 nop
  71397. 801cf78: 0802f48c .word 0x0802f48c
  71398. 801cf7c: 0802fa28 .word 0x0802fa28
  71399. 801cf80: 0802f4d0 .word 0x0802f4d0
  71400. 0801cf84 <tcp_sent>:
  71401. * @param pcb tcp_pcb to set the sent callback
  71402. * @param sent callback function to call for this pcb when data is successfully sent
  71403. */
  71404. void
  71405. tcp_sent(struct tcp_pcb *pcb, tcp_sent_fn sent)
  71406. {
  71407. 801cf84: b580 push {r7, lr}
  71408. 801cf86: b082 sub sp, #8
  71409. 801cf88: af00 add r7, sp, #0
  71410. 801cf8a: 6078 str r0, [r7, #4]
  71411. 801cf8c: 6039 str r1, [r7, #0]
  71412. LWIP_ASSERT_CORE_LOCKED();
  71413. 801cf8e: f7f3 ffb7 bl 8010f00 <sys_check_core_locking>
  71414. if (pcb != NULL) {
  71415. 801cf92: 687b ldr r3, [r7, #4]
  71416. 801cf94: 2b00 cmp r3, #0
  71417. 801cf96: d00e beq.n 801cfb6 <tcp_sent+0x32>
  71418. LWIP_ASSERT("invalid socket state for sent callback", pcb->state != LISTEN);
  71419. 801cf98: 687b ldr r3, [r7, #4]
  71420. 801cf9a: 7d1b ldrb r3, [r3, #20]
  71421. 801cf9c: 2b01 cmp r3, #1
  71422. 801cf9e: d106 bne.n 801cfae <tcp_sent+0x2a>
  71423. 801cfa0: 4b07 ldr r3, [pc, #28] @ (801cfc0 <tcp_sent+0x3c>)
  71424. 801cfa2: f240 72f3 movw r2, #2035 @ 0x7f3
  71425. 801cfa6: 4907 ldr r1, [pc, #28] @ (801cfc4 <tcp_sent+0x40>)
  71426. 801cfa8: 4807 ldr r0, [pc, #28] @ (801cfc8 <tcp_sent+0x44>)
  71427. 801cfaa: f00d fbd7 bl 802a75c <iprintf>
  71428. pcb->sent = sent;
  71429. 801cfae: 687b ldr r3, [r7, #4]
  71430. 801cfb0: 683a ldr r2, [r7, #0]
  71431. 801cfb2: f8c3 2080 str.w r2, [r3, #128] @ 0x80
  71432. }
  71433. }
  71434. 801cfb6: bf00 nop
  71435. 801cfb8: 3708 adds r7, #8
  71436. 801cfba: 46bd mov sp, r7
  71437. 801cfbc: bd80 pop {r7, pc}
  71438. 801cfbe: bf00 nop
  71439. 801cfc0: 0802f48c .word 0x0802f48c
  71440. 801cfc4: 0802fa50 .word 0x0802fa50
  71441. 801cfc8: 0802f4d0 .word 0x0802f4d0
  71442. 0801cfcc <tcp_err>:
  71443. * @param err callback function to call for this pcb when a fatal error
  71444. * has occurred on the connection
  71445. */
  71446. void
  71447. tcp_err(struct tcp_pcb *pcb, tcp_err_fn err)
  71448. {
  71449. 801cfcc: b580 push {r7, lr}
  71450. 801cfce: b082 sub sp, #8
  71451. 801cfd0: af00 add r7, sp, #0
  71452. 801cfd2: 6078 str r0, [r7, #4]
  71453. 801cfd4: 6039 str r1, [r7, #0]
  71454. LWIP_ASSERT_CORE_LOCKED();
  71455. 801cfd6: f7f3 ff93 bl 8010f00 <sys_check_core_locking>
  71456. if (pcb != NULL) {
  71457. 801cfda: 687b ldr r3, [r7, #4]
  71458. 801cfdc: 2b00 cmp r3, #0
  71459. 801cfde: d00e beq.n 801cffe <tcp_err+0x32>
  71460. LWIP_ASSERT("invalid socket state for err callback", pcb->state != LISTEN);
  71461. 801cfe0: 687b ldr r3, [r7, #4]
  71462. 801cfe2: 7d1b ldrb r3, [r3, #20]
  71463. 801cfe4: 2b01 cmp r3, #1
  71464. 801cfe6: d106 bne.n 801cff6 <tcp_err+0x2a>
  71465. 801cfe8: 4b07 ldr r3, [pc, #28] @ (801d008 <tcp_err+0x3c>)
  71466. 801cfea: f640 020d movw r2, #2061 @ 0x80d
  71467. 801cfee: 4907 ldr r1, [pc, #28] @ (801d00c <tcp_err+0x40>)
  71468. 801cff0: 4807 ldr r0, [pc, #28] @ (801d010 <tcp_err+0x44>)
  71469. 801cff2: f00d fbb3 bl 802a75c <iprintf>
  71470. pcb->errf = err;
  71471. 801cff6: 687b ldr r3, [r7, #4]
  71472. 801cff8: 683a ldr r2, [r7, #0]
  71473. 801cffa: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  71474. }
  71475. }
  71476. 801cffe: bf00 nop
  71477. 801d000: 3708 adds r7, #8
  71478. 801d002: 46bd mov sp, r7
  71479. 801d004: bd80 pop {r7, pc}
  71480. 801d006: bf00 nop
  71481. 801d008: 0802f48c .word 0x0802f48c
  71482. 801d00c: 0802fa78 .word 0x0802fa78
  71483. 801d010: 0802f4d0 .word 0x0802f4d0
  71484. 0801d014 <tcp_accept>:
  71485. * @param accept callback function to call for this pcb when LISTENing
  71486. * connection has been connected to another host
  71487. */
  71488. void
  71489. tcp_accept(struct tcp_pcb *pcb, tcp_accept_fn accept)
  71490. {
  71491. 801d014: b580 push {r7, lr}
  71492. 801d016: b084 sub sp, #16
  71493. 801d018: af00 add r7, sp, #0
  71494. 801d01a: 6078 str r0, [r7, #4]
  71495. 801d01c: 6039 str r1, [r7, #0]
  71496. LWIP_ASSERT_CORE_LOCKED();
  71497. 801d01e: f7f3 ff6f bl 8010f00 <sys_check_core_locking>
  71498. if ((pcb != NULL) && (pcb->state == LISTEN)) {
  71499. 801d022: 687b ldr r3, [r7, #4]
  71500. 801d024: 2b00 cmp r3, #0
  71501. 801d026: d008 beq.n 801d03a <tcp_accept+0x26>
  71502. 801d028: 687b ldr r3, [r7, #4]
  71503. 801d02a: 7d1b ldrb r3, [r3, #20]
  71504. 801d02c: 2b01 cmp r3, #1
  71505. 801d02e: d104 bne.n 801d03a <tcp_accept+0x26>
  71506. struct tcp_pcb_listen *lpcb = (struct tcp_pcb_listen *)pcb;
  71507. 801d030: 687b ldr r3, [r7, #4]
  71508. 801d032: 60fb str r3, [r7, #12]
  71509. lpcb->accept = accept;
  71510. 801d034: 68fb ldr r3, [r7, #12]
  71511. 801d036: 683a ldr r2, [r7, #0]
  71512. 801d038: 619a str r2, [r3, #24]
  71513. }
  71514. }
  71515. 801d03a: bf00 nop
  71516. 801d03c: 3710 adds r7, #16
  71517. 801d03e: 46bd mov sp, r7
  71518. 801d040: bd80 pop {r7, pc}
  71519. ...
  71520. 0801d044 <tcp_poll>:
  71521. * the application may use the polling functionality to call tcp_write()
  71522. * again when the connection has been idle for a while.
  71523. */
  71524. void
  71525. tcp_poll(struct tcp_pcb *pcb, tcp_poll_fn poll, u8_t interval)
  71526. {
  71527. 801d044: b580 push {r7, lr}
  71528. 801d046: b084 sub sp, #16
  71529. 801d048: af00 add r7, sp, #0
  71530. 801d04a: 60f8 str r0, [r7, #12]
  71531. 801d04c: 60b9 str r1, [r7, #8]
  71532. 801d04e: 4613 mov r3, r2
  71533. 801d050: 71fb strb r3, [r7, #7]
  71534. LWIP_ASSERT_CORE_LOCKED();
  71535. 801d052: f7f3 ff55 bl 8010f00 <sys_check_core_locking>
  71536. LWIP_ERROR("tcp_poll: invalid pcb", pcb != NULL, return);
  71537. 801d056: 68fb ldr r3, [r7, #12]
  71538. 801d058: 2b00 cmp r3, #0
  71539. 801d05a: d107 bne.n 801d06c <tcp_poll+0x28>
  71540. 801d05c: 4b0e ldr r3, [pc, #56] @ (801d098 <tcp_poll+0x54>)
  71541. 801d05e: f640 023d movw r2, #2109 @ 0x83d
  71542. 801d062: 490e ldr r1, [pc, #56] @ (801d09c <tcp_poll+0x58>)
  71543. 801d064: 480e ldr r0, [pc, #56] @ (801d0a0 <tcp_poll+0x5c>)
  71544. 801d066: f00d fb79 bl 802a75c <iprintf>
  71545. 801d06a: e011 b.n 801d090 <tcp_poll+0x4c>
  71546. LWIP_ASSERT("invalid socket state for poll", pcb->state != LISTEN);
  71547. 801d06c: 68fb ldr r3, [r7, #12]
  71548. 801d06e: 7d1b ldrb r3, [r3, #20]
  71549. 801d070: 2b01 cmp r3, #1
  71550. 801d072: d106 bne.n 801d082 <tcp_poll+0x3e>
  71551. 801d074: 4b08 ldr r3, [pc, #32] @ (801d098 <tcp_poll+0x54>)
  71552. 801d076: f640 023e movw r2, #2110 @ 0x83e
  71553. 801d07a: 490a ldr r1, [pc, #40] @ (801d0a4 <tcp_poll+0x60>)
  71554. 801d07c: 4808 ldr r0, [pc, #32] @ (801d0a0 <tcp_poll+0x5c>)
  71555. 801d07e: f00d fb6d bl 802a75c <iprintf>
  71556. #if LWIP_CALLBACK_API
  71557. pcb->poll = poll;
  71558. 801d082: 68fb ldr r3, [r7, #12]
  71559. 801d084: 68ba ldr r2, [r7, #8]
  71560. 801d086: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  71561. #else /* LWIP_CALLBACK_API */
  71562. LWIP_UNUSED_ARG(poll);
  71563. #endif /* LWIP_CALLBACK_API */
  71564. pcb->pollinterval = interval;
  71565. 801d08a: 68fb ldr r3, [r7, #12]
  71566. 801d08c: 79fa ldrb r2, [r7, #7]
  71567. 801d08e: 775a strb r2, [r3, #29]
  71568. }
  71569. 801d090: 3710 adds r7, #16
  71570. 801d092: 46bd mov sp, r7
  71571. 801d094: bd80 pop {r7, pc}
  71572. 801d096: bf00 nop
  71573. 801d098: 0802f48c .word 0x0802f48c
  71574. 801d09c: 0802faa0 .word 0x0802faa0
  71575. 801d0a0: 0802f4d0 .word 0x0802f4d0
  71576. 801d0a4: 0802fab8 .word 0x0802fab8
  71577. 0801d0a8 <tcp_pcb_purge>:
  71578. *
  71579. * @param pcb tcp_pcb to purge. The pcb itself is not deallocated!
  71580. */
  71581. void
  71582. tcp_pcb_purge(struct tcp_pcb *pcb)
  71583. {
  71584. 801d0a8: b580 push {r7, lr}
  71585. 801d0aa: b082 sub sp, #8
  71586. 801d0ac: af00 add r7, sp, #0
  71587. 801d0ae: 6078 str r0, [r7, #4]
  71588. LWIP_ERROR("tcp_pcb_purge: invalid pcb", pcb != NULL, return);
  71589. 801d0b0: 687b ldr r3, [r7, #4]
  71590. 801d0b2: 2b00 cmp r3, #0
  71591. 801d0b4: d107 bne.n 801d0c6 <tcp_pcb_purge+0x1e>
  71592. 801d0b6: 4b21 ldr r3, [pc, #132] @ (801d13c <tcp_pcb_purge+0x94>)
  71593. 801d0b8: f640 0251 movw r2, #2129 @ 0x851
  71594. 801d0bc: 4920 ldr r1, [pc, #128] @ (801d140 <tcp_pcb_purge+0x98>)
  71595. 801d0be: 4821 ldr r0, [pc, #132] @ (801d144 <tcp_pcb_purge+0x9c>)
  71596. 801d0c0: f00d fb4c bl 802a75c <iprintf>
  71597. 801d0c4: e037 b.n 801d136 <tcp_pcb_purge+0x8e>
  71598. if (pcb->state != CLOSED &&
  71599. 801d0c6: 687b ldr r3, [r7, #4]
  71600. 801d0c8: 7d1b ldrb r3, [r3, #20]
  71601. 801d0ca: 2b00 cmp r3, #0
  71602. 801d0cc: d033 beq.n 801d136 <tcp_pcb_purge+0x8e>
  71603. pcb->state != TIME_WAIT &&
  71604. 801d0ce: 687b ldr r3, [r7, #4]
  71605. 801d0d0: 7d1b ldrb r3, [r3, #20]
  71606. if (pcb->state != CLOSED &&
  71607. 801d0d2: 2b0a cmp r3, #10
  71608. 801d0d4: d02f beq.n 801d136 <tcp_pcb_purge+0x8e>
  71609. pcb->state != LISTEN) {
  71610. 801d0d6: 687b ldr r3, [r7, #4]
  71611. 801d0d8: 7d1b ldrb r3, [r3, #20]
  71612. pcb->state != TIME_WAIT &&
  71613. 801d0da: 2b01 cmp r3, #1
  71614. 801d0dc: d02b beq.n 801d136 <tcp_pcb_purge+0x8e>
  71615. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge\n"));
  71616. tcp_backlog_accepted(pcb);
  71617. if (pcb->refused_data != NULL) {
  71618. 801d0de: 687b ldr r3, [r7, #4]
  71619. 801d0e0: 6f9b ldr r3, [r3, #120] @ 0x78
  71620. 801d0e2: 2b00 cmp r3, #0
  71621. 801d0e4: d007 beq.n 801d0f6 <tcp_pcb_purge+0x4e>
  71622. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->refused_data\n"));
  71623. pbuf_free(pcb->refused_data);
  71624. 801d0e6: 687b ldr r3, [r7, #4]
  71625. 801d0e8: 6f9b ldr r3, [r3, #120] @ 0x78
  71626. 801d0ea: 4618 mov r0, r3
  71627. 801d0ec: f7fe f8be bl 801b26c <pbuf_free>
  71628. pcb->refused_data = NULL;
  71629. 801d0f0: 687b ldr r3, [r7, #4]
  71630. 801d0f2: 2200 movs r2, #0
  71631. 801d0f4: 679a str r2, [r3, #120] @ 0x78
  71632. }
  71633. if (pcb->unacked != NULL) {
  71634. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->unacked\n"));
  71635. }
  71636. #if TCP_QUEUE_OOSEQ
  71637. if (pcb->ooseq != NULL) {
  71638. 801d0f6: 687b ldr r3, [r7, #4]
  71639. 801d0f8: 6f5b ldr r3, [r3, #116] @ 0x74
  71640. 801d0fa: 2b00 cmp r3, #0
  71641. 801d0fc: d002 beq.n 801d104 <tcp_pcb_purge+0x5c>
  71642. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->ooseq\n"));
  71643. tcp_free_ooseq(pcb);
  71644. 801d0fe: 6878 ldr r0, [r7, #4]
  71645. 801d100: f000 f986 bl 801d410 <tcp_free_ooseq>
  71646. }
  71647. #endif /* TCP_QUEUE_OOSEQ */
  71648. /* Stop the retransmission timer as it will expect data on unacked
  71649. queue if it fires */
  71650. pcb->rtime = -1;
  71651. 801d104: 687b ldr r3, [r7, #4]
  71652. 801d106: f64f 72ff movw r2, #65535 @ 0xffff
  71653. 801d10a: 861a strh r2, [r3, #48] @ 0x30
  71654. tcp_segs_free(pcb->unsent);
  71655. 801d10c: 687b ldr r3, [r7, #4]
  71656. 801d10e: 6edb ldr r3, [r3, #108] @ 0x6c
  71657. 801d110: 4618 mov r0, r3
  71658. 801d112: f7ff fcef bl 801caf4 <tcp_segs_free>
  71659. tcp_segs_free(pcb->unacked);
  71660. 801d116: 687b ldr r3, [r7, #4]
  71661. 801d118: 6f1b ldr r3, [r3, #112] @ 0x70
  71662. 801d11a: 4618 mov r0, r3
  71663. 801d11c: f7ff fcea bl 801caf4 <tcp_segs_free>
  71664. pcb->unacked = pcb->unsent = NULL;
  71665. 801d120: 687b ldr r3, [r7, #4]
  71666. 801d122: 2200 movs r2, #0
  71667. 801d124: 66da str r2, [r3, #108] @ 0x6c
  71668. 801d126: 687b ldr r3, [r7, #4]
  71669. 801d128: 6eda ldr r2, [r3, #108] @ 0x6c
  71670. 801d12a: 687b ldr r3, [r7, #4]
  71671. 801d12c: 671a str r2, [r3, #112] @ 0x70
  71672. #if TCP_OVERSIZE
  71673. pcb->unsent_oversize = 0;
  71674. 801d12e: 687b ldr r3, [r7, #4]
  71675. 801d130: 2200 movs r2, #0
  71676. 801d132: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  71677. #endif /* TCP_OVERSIZE */
  71678. }
  71679. }
  71680. 801d136: 3708 adds r7, #8
  71681. 801d138: 46bd mov sp, r7
  71682. 801d13a: bd80 pop {r7, pc}
  71683. 801d13c: 0802f48c .word 0x0802f48c
  71684. 801d140: 0802fad8 .word 0x0802fad8
  71685. 801d144: 0802f4d0 .word 0x0802f4d0
  71686. 0801d148 <tcp_pcb_remove>:
  71687. * @param pcblist PCB list to purge.
  71688. * @param pcb tcp_pcb to purge. The pcb itself is NOT deallocated!
  71689. */
  71690. void
  71691. tcp_pcb_remove(struct tcp_pcb **pcblist, struct tcp_pcb *pcb)
  71692. {
  71693. 801d148: b580 push {r7, lr}
  71694. 801d14a: b084 sub sp, #16
  71695. 801d14c: af00 add r7, sp, #0
  71696. 801d14e: 6078 str r0, [r7, #4]
  71697. 801d150: 6039 str r1, [r7, #0]
  71698. LWIP_ASSERT("tcp_pcb_remove: invalid pcb", pcb != NULL);
  71699. 801d152: 683b ldr r3, [r7, #0]
  71700. 801d154: 2b00 cmp r3, #0
  71701. 801d156: d106 bne.n 801d166 <tcp_pcb_remove+0x1e>
  71702. 801d158: 4b3e ldr r3, [pc, #248] @ (801d254 <tcp_pcb_remove+0x10c>)
  71703. 801d15a: f640 0283 movw r2, #2179 @ 0x883
  71704. 801d15e: 493e ldr r1, [pc, #248] @ (801d258 <tcp_pcb_remove+0x110>)
  71705. 801d160: 483e ldr r0, [pc, #248] @ (801d25c <tcp_pcb_remove+0x114>)
  71706. 801d162: f00d fafb bl 802a75c <iprintf>
  71707. LWIP_ASSERT("tcp_pcb_remove: invalid pcblist", pcblist != NULL);
  71708. 801d166: 687b ldr r3, [r7, #4]
  71709. 801d168: 2b00 cmp r3, #0
  71710. 801d16a: d106 bne.n 801d17a <tcp_pcb_remove+0x32>
  71711. 801d16c: 4b39 ldr r3, [pc, #228] @ (801d254 <tcp_pcb_remove+0x10c>)
  71712. 801d16e: f640 0284 movw r2, #2180 @ 0x884
  71713. 801d172: 493b ldr r1, [pc, #236] @ (801d260 <tcp_pcb_remove+0x118>)
  71714. 801d174: 4839 ldr r0, [pc, #228] @ (801d25c <tcp_pcb_remove+0x114>)
  71715. 801d176: f00d faf1 bl 802a75c <iprintf>
  71716. TCP_RMV(pcblist, pcb);
  71717. 801d17a: 687b ldr r3, [r7, #4]
  71718. 801d17c: 681b ldr r3, [r3, #0]
  71719. 801d17e: 683a ldr r2, [r7, #0]
  71720. 801d180: 429a cmp r2, r3
  71721. 801d182: d105 bne.n 801d190 <tcp_pcb_remove+0x48>
  71722. 801d184: 687b ldr r3, [r7, #4]
  71723. 801d186: 681b ldr r3, [r3, #0]
  71724. 801d188: 68da ldr r2, [r3, #12]
  71725. 801d18a: 687b ldr r3, [r7, #4]
  71726. 801d18c: 601a str r2, [r3, #0]
  71727. 801d18e: e013 b.n 801d1b8 <tcp_pcb_remove+0x70>
  71728. 801d190: 687b ldr r3, [r7, #4]
  71729. 801d192: 681b ldr r3, [r3, #0]
  71730. 801d194: 60fb str r3, [r7, #12]
  71731. 801d196: e00c b.n 801d1b2 <tcp_pcb_remove+0x6a>
  71732. 801d198: 68fb ldr r3, [r7, #12]
  71733. 801d19a: 68db ldr r3, [r3, #12]
  71734. 801d19c: 683a ldr r2, [r7, #0]
  71735. 801d19e: 429a cmp r2, r3
  71736. 801d1a0: d104 bne.n 801d1ac <tcp_pcb_remove+0x64>
  71737. 801d1a2: 683b ldr r3, [r7, #0]
  71738. 801d1a4: 68da ldr r2, [r3, #12]
  71739. 801d1a6: 68fb ldr r3, [r7, #12]
  71740. 801d1a8: 60da str r2, [r3, #12]
  71741. 801d1aa: e005 b.n 801d1b8 <tcp_pcb_remove+0x70>
  71742. 801d1ac: 68fb ldr r3, [r7, #12]
  71743. 801d1ae: 68db ldr r3, [r3, #12]
  71744. 801d1b0: 60fb str r3, [r7, #12]
  71745. 801d1b2: 68fb ldr r3, [r7, #12]
  71746. 801d1b4: 2b00 cmp r3, #0
  71747. 801d1b6: d1ef bne.n 801d198 <tcp_pcb_remove+0x50>
  71748. 801d1b8: 683b ldr r3, [r7, #0]
  71749. 801d1ba: 2200 movs r2, #0
  71750. 801d1bc: 60da str r2, [r3, #12]
  71751. tcp_pcb_purge(pcb);
  71752. 801d1be: 6838 ldr r0, [r7, #0]
  71753. 801d1c0: f7ff ff72 bl 801d0a8 <tcp_pcb_purge>
  71754. /* if there is an outstanding delayed ACKs, send it */
  71755. if ((pcb->state != TIME_WAIT) &&
  71756. 801d1c4: 683b ldr r3, [r7, #0]
  71757. 801d1c6: 7d1b ldrb r3, [r3, #20]
  71758. 801d1c8: 2b0a cmp r3, #10
  71759. 801d1ca: d013 beq.n 801d1f4 <tcp_pcb_remove+0xac>
  71760. (pcb->state != LISTEN) &&
  71761. 801d1cc: 683b ldr r3, [r7, #0]
  71762. 801d1ce: 7d1b ldrb r3, [r3, #20]
  71763. if ((pcb->state != TIME_WAIT) &&
  71764. 801d1d0: 2b01 cmp r3, #1
  71765. 801d1d2: d00f beq.n 801d1f4 <tcp_pcb_remove+0xac>
  71766. (pcb->flags & TF_ACK_DELAY)) {
  71767. 801d1d4: 683b ldr r3, [r7, #0]
  71768. 801d1d6: 8b5b ldrh r3, [r3, #26]
  71769. 801d1d8: f003 0301 and.w r3, r3, #1
  71770. (pcb->state != LISTEN) &&
  71771. 801d1dc: 2b00 cmp r3, #0
  71772. 801d1de: d009 beq.n 801d1f4 <tcp_pcb_remove+0xac>
  71773. tcp_ack_now(pcb);
  71774. 801d1e0: 683b ldr r3, [r7, #0]
  71775. 801d1e2: 8b5b ldrh r3, [r3, #26]
  71776. 801d1e4: f043 0302 orr.w r3, r3, #2
  71777. 801d1e8: b29a uxth r2, r3
  71778. 801d1ea: 683b ldr r3, [r7, #0]
  71779. 801d1ec: 835a strh r2, [r3, #26]
  71780. tcp_output(pcb);
  71781. 801d1ee: 6838 ldr r0, [r7, #0]
  71782. 801d1f0: f003 fc28 bl 8020a44 <tcp_output>
  71783. }
  71784. if (pcb->state != LISTEN) {
  71785. 801d1f4: 683b ldr r3, [r7, #0]
  71786. 801d1f6: 7d1b ldrb r3, [r3, #20]
  71787. 801d1f8: 2b01 cmp r3, #1
  71788. 801d1fa: d020 beq.n 801d23e <tcp_pcb_remove+0xf6>
  71789. LWIP_ASSERT("unsent segments leaking", pcb->unsent == NULL);
  71790. 801d1fc: 683b ldr r3, [r7, #0]
  71791. 801d1fe: 6edb ldr r3, [r3, #108] @ 0x6c
  71792. 801d200: 2b00 cmp r3, #0
  71793. 801d202: d006 beq.n 801d212 <tcp_pcb_remove+0xca>
  71794. 801d204: 4b13 ldr r3, [pc, #76] @ (801d254 <tcp_pcb_remove+0x10c>)
  71795. 801d206: f640 0293 movw r2, #2195 @ 0x893
  71796. 801d20a: 4916 ldr r1, [pc, #88] @ (801d264 <tcp_pcb_remove+0x11c>)
  71797. 801d20c: 4813 ldr r0, [pc, #76] @ (801d25c <tcp_pcb_remove+0x114>)
  71798. 801d20e: f00d faa5 bl 802a75c <iprintf>
  71799. LWIP_ASSERT("unacked segments leaking", pcb->unacked == NULL);
  71800. 801d212: 683b ldr r3, [r7, #0]
  71801. 801d214: 6f1b ldr r3, [r3, #112] @ 0x70
  71802. 801d216: 2b00 cmp r3, #0
  71803. 801d218: d006 beq.n 801d228 <tcp_pcb_remove+0xe0>
  71804. 801d21a: 4b0e ldr r3, [pc, #56] @ (801d254 <tcp_pcb_remove+0x10c>)
  71805. 801d21c: f640 0294 movw r2, #2196 @ 0x894
  71806. 801d220: 4911 ldr r1, [pc, #68] @ (801d268 <tcp_pcb_remove+0x120>)
  71807. 801d222: 480e ldr r0, [pc, #56] @ (801d25c <tcp_pcb_remove+0x114>)
  71808. 801d224: f00d fa9a bl 802a75c <iprintf>
  71809. #if TCP_QUEUE_OOSEQ
  71810. LWIP_ASSERT("ooseq segments leaking", pcb->ooseq == NULL);
  71811. 801d228: 683b ldr r3, [r7, #0]
  71812. 801d22a: 6f5b ldr r3, [r3, #116] @ 0x74
  71813. 801d22c: 2b00 cmp r3, #0
  71814. 801d22e: d006 beq.n 801d23e <tcp_pcb_remove+0xf6>
  71815. 801d230: 4b08 ldr r3, [pc, #32] @ (801d254 <tcp_pcb_remove+0x10c>)
  71816. 801d232: f640 0296 movw r2, #2198 @ 0x896
  71817. 801d236: 490d ldr r1, [pc, #52] @ (801d26c <tcp_pcb_remove+0x124>)
  71818. 801d238: 4808 ldr r0, [pc, #32] @ (801d25c <tcp_pcb_remove+0x114>)
  71819. 801d23a: f00d fa8f bl 802a75c <iprintf>
  71820. #endif /* TCP_QUEUE_OOSEQ */
  71821. }
  71822. pcb->state = CLOSED;
  71823. 801d23e: 683b ldr r3, [r7, #0]
  71824. 801d240: 2200 movs r2, #0
  71825. 801d242: 751a strb r2, [r3, #20]
  71826. /* reset the local port to prevent the pcb from being 'bound' */
  71827. pcb->local_port = 0;
  71828. 801d244: 683b ldr r3, [r7, #0]
  71829. 801d246: 2200 movs r2, #0
  71830. 801d248: 82da strh r2, [r3, #22]
  71831. LWIP_ASSERT("tcp_pcb_remove: tcp_pcbs_sane()", tcp_pcbs_sane());
  71832. }
  71833. 801d24a: bf00 nop
  71834. 801d24c: 3710 adds r7, #16
  71835. 801d24e: 46bd mov sp, r7
  71836. 801d250: bd80 pop {r7, pc}
  71837. 801d252: bf00 nop
  71838. 801d254: 0802f48c .word 0x0802f48c
  71839. 801d258: 0802faf4 .word 0x0802faf4
  71840. 801d25c: 0802f4d0 .word 0x0802f4d0
  71841. 801d260: 0802fb10 .word 0x0802fb10
  71842. 801d264: 0802fb30 .word 0x0802fb30
  71843. 801d268: 0802fb48 .word 0x0802fb48
  71844. 801d26c: 0802fb64 .word 0x0802fb64
  71845. 0801d270 <tcp_next_iss>:
  71846. *
  71847. * @return u32_t pseudo random sequence number
  71848. */
  71849. u32_t
  71850. tcp_next_iss(struct tcp_pcb *pcb)
  71851. {
  71852. 801d270: b580 push {r7, lr}
  71853. 801d272: b082 sub sp, #8
  71854. 801d274: af00 add r7, sp, #0
  71855. 801d276: 6078 str r0, [r7, #4]
  71856. LWIP_ASSERT("tcp_next_iss: invalid pcb", pcb != NULL);
  71857. return LWIP_HOOK_TCP_ISN(&pcb->local_ip, pcb->local_port, &pcb->remote_ip, pcb->remote_port);
  71858. #else /* LWIP_HOOK_TCP_ISN */
  71859. static u32_t iss = 6510;
  71860. LWIP_ASSERT("tcp_next_iss: invalid pcb", pcb != NULL);
  71861. 801d278: 687b ldr r3, [r7, #4]
  71862. 801d27a: 2b00 cmp r3, #0
  71863. 801d27c: d106 bne.n 801d28c <tcp_next_iss+0x1c>
  71864. 801d27e: 4b0a ldr r3, [pc, #40] @ (801d2a8 <tcp_next_iss+0x38>)
  71865. 801d280: f640 02af movw r2, #2223 @ 0x8af
  71866. 801d284: 4909 ldr r1, [pc, #36] @ (801d2ac <tcp_next_iss+0x3c>)
  71867. 801d286: 480a ldr r0, [pc, #40] @ (801d2b0 <tcp_next_iss+0x40>)
  71868. 801d288: f00d fa68 bl 802a75c <iprintf>
  71869. LWIP_UNUSED_ARG(pcb);
  71870. iss += tcp_ticks; /* XXX */
  71871. 801d28c: 4b09 ldr r3, [pc, #36] @ (801d2b4 <tcp_next_iss+0x44>)
  71872. 801d28e: 681a ldr r2, [r3, #0]
  71873. 801d290: 4b09 ldr r3, [pc, #36] @ (801d2b8 <tcp_next_iss+0x48>)
  71874. 801d292: 681b ldr r3, [r3, #0]
  71875. 801d294: 4413 add r3, r2
  71876. 801d296: 4a07 ldr r2, [pc, #28] @ (801d2b4 <tcp_next_iss+0x44>)
  71877. 801d298: 6013 str r3, [r2, #0]
  71878. return iss;
  71879. 801d29a: 4b06 ldr r3, [pc, #24] @ (801d2b4 <tcp_next_iss+0x44>)
  71880. 801d29c: 681b ldr r3, [r3, #0]
  71881. #endif /* LWIP_HOOK_TCP_ISN */
  71882. }
  71883. 801d29e: 4618 mov r0, r3
  71884. 801d2a0: 3708 adds r7, #8
  71885. 801d2a2: 46bd mov sp, r7
  71886. 801d2a4: bd80 pop {r7, pc}
  71887. 801d2a6: bf00 nop
  71888. 801d2a8: 0802f48c .word 0x0802f48c
  71889. 801d2ac: 0802fb7c .word 0x0802fb7c
  71890. 801d2b0: 0802f4d0 .word 0x0802f4d0
  71891. 801d2b4: 24000050 .word 0x24000050
  71892. 801d2b8: 2402af68 .word 0x2402af68
  71893. 0801d2bc <tcp_eff_send_mss_netif>:
  71894. * by calculating the minimum of TCP_MSS and the mtu (if set) of the target
  71895. * netif (if not NULL).
  71896. */
  71897. u16_t
  71898. tcp_eff_send_mss_netif(u16_t sendmss, struct netif *outif, const ip_addr_t *dest)
  71899. {
  71900. 801d2bc: b580 push {r7, lr}
  71901. 801d2be: b086 sub sp, #24
  71902. 801d2c0: af00 add r7, sp, #0
  71903. 801d2c2: 4603 mov r3, r0
  71904. 801d2c4: 60b9 str r1, [r7, #8]
  71905. 801d2c6: 607a str r2, [r7, #4]
  71906. 801d2c8: 81fb strh r3, [r7, #14]
  71907. u16_t mss_s;
  71908. u16_t mtu;
  71909. LWIP_UNUSED_ARG(dest); /* in case IPv6 is disabled */
  71910. LWIP_ASSERT("tcp_eff_send_mss_netif: invalid dst_ip", dest != NULL);
  71911. 801d2ca: 687b ldr r3, [r7, #4]
  71912. 801d2cc: 2b00 cmp r3, #0
  71913. 801d2ce: d106 bne.n 801d2de <tcp_eff_send_mss_netif+0x22>
  71914. 801d2d0: 4b14 ldr r3, [pc, #80] @ (801d324 <tcp_eff_send_mss_netif+0x68>)
  71915. 801d2d2: f640 02c5 movw r2, #2245 @ 0x8c5
  71916. 801d2d6: 4914 ldr r1, [pc, #80] @ (801d328 <tcp_eff_send_mss_netif+0x6c>)
  71917. 801d2d8: 4814 ldr r0, [pc, #80] @ (801d32c <tcp_eff_send_mss_netif+0x70>)
  71918. 801d2da: f00d fa3f bl 802a75c <iprintf>
  71919. else
  71920. #endif /* LWIP_IPV4 */
  71921. #endif /* LWIP_IPV6 */
  71922. #if LWIP_IPV4
  71923. {
  71924. if (outif == NULL) {
  71925. 801d2de: 68bb ldr r3, [r7, #8]
  71926. 801d2e0: 2b00 cmp r3, #0
  71927. 801d2e2: d101 bne.n 801d2e8 <tcp_eff_send_mss_netif+0x2c>
  71928. return sendmss;
  71929. 801d2e4: 89fb ldrh r3, [r7, #14]
  71930. 801d2e6: e019 b.n 801d31c <tcp_eff_send_mss_netif+0x60>
  71931. }
  71932. mtu = outif->mtu;
  71933. 801d2e8: 68bb ldr r3, [r7, #8]
  71934. 801d2ea: 8d1b ldrh r3, [r3, #40] @ 0x28
  71935. 801d2ec: 82fb strh r3, [r7, #22]
  71936. }
  71937. #endif /* LWIP_IPV4 */
  71938. if (mtu != 0) {
  71939. 801d2ee: 8afb ldrh r3, [r7, #22]
  71940. 801d2f0: 2b00 cmp r3, #0
  71941. 801d2f2: d012 beq.n 801d31a <tcp_eff_send_mss_netif+0x5e>
  71942. else
  71943. #endif /* LWIP_IPV4 */
  71944. #endif /* LWIP_IPV6 */
  71945. #if LWIP_IPV4
  71946. {
  71947. offset = IP_HLEN + TCP_HLEN;
  71948. 801d2f4: 2328 movs r3, #40 @ 0x28
  71949. 801d2f6: 82bb strh r3, [r7, #20]
  71950. }
  71951. #endif /* LWIP_IPV4 */
  71952. mss_s = (mtu > offset) ? (u16_t)(mtu - offset) : 0;
  71953. 801d2f8: 8afa ldrh r2, [r7, #22]
  71954. 801d2fa: 8abb ldrh r3, [r7, #20]
  71955. 801d2fc: 429a cmp r2, r3
  71956. 801d2fe: d904 bls.n 801d30a <tcp_eff_send_mss_netif+0x4e>
  71957. 801d300: 8afa ldrh r2, [r7, #22]
  71958. 801d302: 8abb ldrh r3, [r7, #20]
  71959. 801d304: 1ad3 subs r3, r2, r3
  71960. 801d306: b29b uxth r3, r3
  71961. 801d308: e000 b.n 801d30c <tcp_eff_send_mss_netif+0x50>
  71962. 801d30a: 2300 movs r3, #0
  71963. 801d30c: 827b strh r3, [r7, #18]
  71964. /* RFC 1122, chap 4.2.2.6:
  71965. * Eff.snd.MSS = min(SendMSS+20, MMS_S) - TCPhdrsize - IPoptionsize
  71966. * We correct for TCP options in tcp_write(), and don't support IP options.
  71967. */
  71968. sendmss = LWIP_MIN(sendmss, mss_s);
  71969. 801d30e: 8a7a ldrh r2, [r7, #18]
  71970. 801d310: 89fb ldrh r3, [r7, #14]
  71971. 801d312: 4293 cmp r3, r2
  71972. 801d314: bf28 it cs
  71973. 801d316: 4613 movcs r3, r2
  71974. 801d318: 81fb strh r3, [r7, #14]
  71975. }
  71976. return sendmss;
  71977. 801d31a: 89fb ldrh r3, [r7, #14]
  71978. }
  71979. 801d31c: 4618 mov r0, r3
  71980. 801d31e: 3718 adds r7, #24
  71981. 801d320: 46bd mov sp, r7
  71982. 801d322: bd80 pop {r7, pc}
  71983. 801d324: 0802f48c .word 0x0802f48c
  71984. 801d328: 0802fb98 .word 0x0802fb98
  71985. 801d32c: 0802f4d0 .word 0x0802f4d0
  71986. 0801d330 <tcp_netif_ip_addr_changed_pcblist>:
  71987. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  71988. /** Helper function for tcp_netif_ip_addr_changed() that iterates a pcb list */
  71989. static void
  71990. tcp_netif_ip_addr_changed_pcblist(const ip_addr_t *old_addr, struct tcp_pcb *pcb_list)
  71991. {
  71992. 801d330: b580 push {r7, lr}
  71993. 801d332: b084 sub sp, #16
  71994. 801d334: af00 add r7, sp, #0
  71995. 801d336: 6078 str r0, [r7, #4]
  71996. 801d338: 6039 str r1, [r7, #0]
  71997. struct tcp_pcb *pcb;
  71998. pcb = pcb_list;
  71999. 801d33a: 683b ldr r3, [r7, #0]
  72000. 801d33c: 60fb str r3, [r7, #12]
  72001. LWIP_ASSERT("tcp_netif_ip_addr_changed_pcblist: invalid old_addr", old_addr != NULL);
  72002. 801d33e: 687b ldr r3, [r7, #4]
  72003. 801d340: 2b00 cmp r3, #0
  72004. 801d342: d119 bne.n 801d378 <tcp_netif_ip_addr_changed_pcblist+0x48>
  72005. 801d344: 4b10 ldr r3, [pc, #64] @ (801d388 <tcp_netif_ip_addr_changed_pcblist+0x58>)
  72006. 801d346: f44f 6210 mov.w r2, #2304 @ 0x900
  72007. 801d34a: 4910 ldr r1, [pc, #64] @ (801d38c <tcp_netif_ip_addr_changed_pcblist+0x5c>)
  72008. 801d34c: 4810 ldr r0, [pc, #64] @ (801d390 <tcp_netif_ip_addr_changed_pcblist+0x60>)
  72009. 801d34e: f00d fa05 bl 802a75c <iprintf>
  72010. while (pcb != NULL) {
  72011. 801d352: e011 b.n 801d378 <tcp_netif_ip_addr_changed_pcblist+0x48>
  72012. /* PCB bound to current local interface address? */
  72013. if (ip_addr_cmp(&pcb->local_ip, old_addr)
  72014. 801d354: 68fb ldr r3, [r7, #12]
  72015. 801d356: 681a ldr r2, [r3, #0]
  72016. 801d358: 687b ldr r3, [r7, #4]
  72017. 801d35a: 681b ldr r3, [r3, #0]
  72018. 801d35c: 429a cmp r2, r3
  72019. 801d35e: d108 bne.n 801d372 <tcp_netif_ip_addr_changed_pcblist+0x42>
  72020. /* connections to link-local addresses must persist (RFC3927 ch. 1.9) */
  72021. && (!IP_IS_V4_VAL(pcb->local_ip) || !ip4_addr_islinklocal(ip_2_ip4(&pcb->local_ip)))
  72022. #endif /* LWIP_AUTOIP */
  72023. ) {
  72024. /* this connection must be aborted */
  72025. struct tcp_pcb *next = pcb->next;
  72026. 801d360: 68fb ldr r3, [r7, #12]
  72027. 801d362: 68db ldr r3, [r3, #12]
  72028. 801d364: 60bb str r3, [r7, #8]
  72029. LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: aborting TCP pcb %p\n", (void *)pcb));
  72030. tcp_abort(pcb);
  72031. 801d366: 68f8 ldr r0, [r7, #12]
  72032. 801d368: f7fe fd86 bl 801be78 <tcp_abort>
  72033. pcb = next;
  72034. 801d36c: 68bb ldr r3, [r7, #8]
  72035. 801d36e: 60fb str r3, [r7, #12]
  72036. 801d370: e002 b.n 801d378 <tcp_netif_ip_addr_changed_pcblist+0x48>
  72037. } else {
  72038. pcb = pcb->next;
  72039. 801d372: 68fb ldr r3, [r7, #12]
  72040. 801d374: 68db ldr r3, [r3, #12]
  72041. 801d376: 60fb str r3, [r7, #12]
  72042. while (pcb != NULL) {
  72043. 801d378: 68fb ldr r3, [r7, #12]
  72044. 801d37a: 2b00 cmp r3, #0
  72045. 801d37c: d1ea bne.n 801d354 <tcp_netif_ip_addr_changed_pcblist+0x24>
  72046. }
  72047. }
  72048. }
  72049. 801d37e: bf00 nop
  72050. 801d380: bf00 nop
  72051. 801d382: 3710 adds r7, #16
  72052. 801d384: 46bd mov sp, r7
  72053. 801d386: bd80 pop {r7, pc}
  72054. 801d388: 0802f48c .word 0x0802f48c
  72055. 801d38c: 0802fbc0 .word 0x0802fbc0
  72056. 801d390: 0802f4d0 .word 0x0802f4d0
  72057. 0801d394 <tcp_netif_ip_addr_changed>:
  72058. * @param old_addr IP address of the netif before change
  72059. * @param new_addr IP address of the netif after change or NULL if netif has been removed
  72060. */
  72061. void
  72062. tcp_netif_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr)
  72063. {
  72064. 801d394: b580 push {r7, lr}
  72065. 801d396: b084 sub sp, #16
  72066. 801d398: af00 add r7, sp, #0
  72067. 801d39a: 6078 str r0, [r7, #4]
  72068. 801d39c: 6039 str r1, [r7, #0]
  72069. struct tcp_pcb_listen *lpcb;
  72070. if (!ip_addr_isany(old_addr)) {
  72071. 801d39e: 687b ldr r3, [r7, #4]
  72072. 801d3a0: 2b00 cmp r3, #0
  72073. 801d3a2: d02a beq.n 801d3fa <tcp_netif_ip_addr_changed+0x66>
  72074. 801d3a4: 687b ldr r3, [r7, #4]
  72075. 801d3a6: 681b ldr r3, [r3, #0]
  72076. 801d3a8: 2b00 cmp r3, #0
  72077. 801d3aa: d026 beq.n 801d3fa <tcp_netif_ip_addr_changed+0x66>
  72078. tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_active_pcbs);
  72079. 801d3ac: 4b15 ldr r3, [pc, #84] @ (801d404 <tcp_netif_ip_addr_changed+0x70>)
  72080. 801d3ae: 681b ldr r3, [r3, #0]
  72081. 801d3b0: 4619 mov r1, r3
  72082. 801d3b2: 6878 ldr r0, [r7, #4]
  72083. 801d3b4: f7ff ffbc bl 801d330 <tcp_netif_ip_addr_changed_pcblist>
  72084. tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_bound_pcbs);
  72085. 801d3b8: 4b13 ldr r3, [pc, #76] @ (801d408 <tcp_netif_ip_addr_changed+0x74>)
  72086. 801d3ba: 681b ldr r3, [r3, #0]
  72087. 801d3bc: 4619 mov r1, r3
  72088. 801d3be: 6878 ldr r0, [r7, #4]
  72089. 801d3c0: f7ff ffb6 bl 801d330 <tcp_netif_ip_addr_changed_pcblist>
  72090. if (!ip_addr_isany(new_addr)) {
  72091. 801d3c4: 683b ldr r3, [r7, #0]
  72092. 801d3c6: 2b00 cmp r3, #0
  72093. 801d3c8: d017 beq.n 801d3fa <tcp_netif_ip_addr_changed+0x66>
  72094. 801d3ca: 683b ldr r3, [r7, #0]
  72095. 801d3cc: 681b ldr r3, [r3, #0]
  72096. 801d3ce: 2b00 cmp r3, #0
  72097. 801d3d0: d013 beq.n 801d3fa <tcp_netif_ip_addr_changed+0x66>
  72098. /* PCB bound to current local interface address? */
  72099. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  72100. 801d3d2: 4b0e ldr r3, [pc, #56] @ (801d40c <tcp_netif_ip_addr_changed+0x78>)
  72101. 801d3d4: 681b ldr r3, [r3, #0]
  72102. 801d3d6: 60fb str r3, [r7, #12]
  72103. 801d3d8: e00c b.n 801d3f4 <tcp_netif_ip_addr_changed+0x60>
  72104. /* PCB bound to current local interface address? */
  72105. if (ip_addr_cmp(&lpcb->local_ip, old_addr)) {
  72106. 801d3da: 68fb ldr r3, [r7, #12]
  72107. 801d3dc: 681a ldr r2, [r3, #0]
  72108. 801d3de: 687b ldr r3, [r7, #4]
  72109. 801d3e0: 681b ldr r3, [r3, #0]
  72110. 801d3e2: 429a cmp r2, r3
  72111. 801d3e4: d103 bne.n 801d3ee <tcp_netif_ip_addr_changed+0x5a>
  72112. /* The PCB is listening to the old ipaddr and
  72113. * is set to listen to the new one instead */
  72114. ip_addr_copy(lpcb->local_ip, *new_addr);
  72115. 801d3e6: 683b ldr r3, [r7, #0]
  72116. 801d3e8: 681a ldr r2, [r3, #0]
  72117. 801d3ea: 68fb ldr r3, [r7, #12]
  72118. 801d3ec: 601a str r2, [r3, #0]
  72119. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  72120. 801d3ee: 68fb ldr r3, [r7, #12]
  72121. 801d3f0: 68db ldr r3, [r3, #12]
  72122. 801d3f2: 60fb str r3, [r7, #12]
  72123. 801d3f4: 68fb ldr r3, [r7, #12]
  72124. 801d3f6: 2b00 cmp r3, #0
  72125. 801d3f8: d1ef bne.n 801d3da <tcp_netif_ip_addr_changed+0x46>
  72126. }
  72127. }
  72128. }
  72129. }
  72130. }
  72131. 801d3fa: bf00 nop
  72132. 801d3fc: 3710 adds r7, #16
  72133. 801d3fe: 46bd mov sp, r7
  72134. 801d400: bd80 pop {r7, pc}
  72135. 801d402: bf00 nop
  72136. 801d404: 2402af74 .word 0x2402af74
  72137. 801d408: 2402af6c .word 0x2402af6c
  72138. 801d40c: 2402af70 .word 0x2402af70
  72139. 0801d410 <tcp_free_ooseq>:
  72140. #if TCP_QUEUE_OOSEQ
  72141. /* Free all ooseq pbufs (and possibly reset SACK state) */
  72142. void
  72143. tcp_free_ooseq(struct tcp_pcb *pcb)
  72144. {
  72145. 801d410: b580 push {r7, lr}
  72146. 801d412: b082 sub sp, #8
  72147. 801d414: af00 add r7, sp, #0
  72148. 801d416: 6078 str r0, [r7, #4]
  72149. if (pcb->ooseq) {
  72150. 801d418: 687b ldr r3, [r7, #4]
  72151. 801d41a: 6f5b ldr r3, [r3, #116] @ 0x74
  72152. 801d41c: 2b00 cmp r3, #0
  72153. 801d41e: d007 beq.n 801d430 <tcp_free_ooseq+0x20>
  72154. tcp_segs_free(pcb->ooseq);
  72155. 801d420: 687b ldr r3, [r7, #4]
  72156. 801d422: 6f5b ldr r3, [r3, #116] @ 0x74
  72157. 801d424: 4618 mov r0, r3
  72158. 801d426: f7ff fb65 bl 801caf4 <tcp_segs_free>
  72159. pcb->ooseq = NULL;
  72160. 801d42a: 687b ldr r3, [r7, #4]
  72161. 801d42c: 2200 movs r2, #0
  72162. 801d42e: 675a str r2, [r3, #116] @ 0x74
  72163. #if LWIP_TCP_SACK_OUT
  72164. memset(pcb->rcv_sacks, 0, sizeof(pcb->rcv_sacks));
  72165. #endif /* LWIP_TCP_SACK_OUT */
  72166. }
  72167. }
  72168. 801d430: bf00 nop
  72169. 801d432: 3708 adds r7, #8
  72170. 801d434: 46bd mov sp, r7
  72171. 801d436: bd80 pop {r7, pc}
  72172. 0801d438 <tcp_input>:
  72173. * @param p received TCP segment to process (p->payload pointing to the TCP header)
  72174. * @param inp network interface on which this segment was received
  72175. */
  72176. void
  72177. tcp_input(struct pbuf *p, struct netif *inp)
  72178. {
  72179. 801d438: b590 push {r4, r7, lr}
  72180. 801d43a: b08d sub sp, #52 @ 0x34
  72181. 801d43c: af04 add r7, sp, #16
  72182. 801d43e: 6078 str r0, [r7, #4]
  72183. 801d440: 6039 str r1, [r7, #0]
  72184. #endif /* SO_REUSE */
  72185. u8_t hdrlen_bytes;
  72186. err_t err;
  72187. LWIP_UNUSED_ARG(inp);
  72188. LWIP_ASSERT_CORE_LOCKED();
  72189. 801d442: f7f3 fd5d bl 8010f00 <sys_check_core_locking>
  72190. LWIP_ASSERT("tcp_input: invalid pbuf", p != NULL);
  72191. 801d446: 687b ldr r3, [r7, #4]
  72192. 801d448: 2b00 cmp r3, #0
  72193. 801d44a: d105 bne.n 801d458 <tcp_input+0x20>
  72194. 801d44c: 4b9b ldr r3, [pc, #620] @ (801d6bc <tcp_input+0x284>)
  72195. 801d44e: 2283 movs r2, #131 @ 0x83
  72196. 801d450: 499b ldr r1, [pc, #620] @ (801d6c0 <tcp_input+0x288>)
  72197. 801d452: 489c ldr r0, [pc, #624] @ (801d6c4 <tcp_input+0x28c>)
  72198. 801d454: f00d f982 bl 802a75c <iprintf>
  72199. PERF_START;
  72200. TCP_STATS_INC(tcp.recv);
  72201. MIB2_STATS_INC(mib2.tcpinsegs);
  72202. tcphdr = (struct tcp_hdr *)p->payload;
  72203. 801d458: 687b ldr r3, [r7, #4]
  72204. 801d45a: 685b ldr r3, [r3, #4]
  72205. 801d45c: 4a9a ldr r2, [pc, #616] @ (801d6c8 <tcp_input+0x290>)
  72206. 801d45e: 6013 str r3, [r2, #0]
  72207. #if TCP_INPUT_DEBUG
  72208. tcp_debug_print(tcphdr);
  72209. #endif
  72210. /* Check that TCP header fits in payload */
  72211. if (p->len < TCP_HLEN) {
  72212. 801d460: 687b ldr r3, [r7, #4]
  72213. 801d462: 895b ldrh r3, [r3, #10]
  72214. 801d464: 2b13 cmp r3, #19
  72215. 801d466: f240 83d1 bls.w 801dc0c <tcp_input+0x7d4>
  72216. TCP_STATS_INC(tcp.lenerr);
  72217. goto dropped;
  72218. }
  72219. /* Don't even process incoming broadcasts/multicasts. */
  72220. if (ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()) ||
  72221. 801d46a: 4b98 ldr r3, [pc, #608] @ (801d6cc <tcp_input+0x294>)
  72222. 801d46c: 695b ldr r3, [r3, #20]
  72223. 801d46e: 4a97 ldr r2, [pc, #604] @ (801d6cc <tcp_input+0x294>)
  72224. 801d470: 6812 ldr r2, [r2, #0]
  72225. 801d472: 4611 mov r1, r2
  72226. 801d474: 4618 mov r0, r3
  72227. 801d476: f008 fc1b bl 8025cb0 <ip4_addr_isbroadcast_u32>
  72228. 801d47a: 4603 mov r3, r0
  72229. 801d47c: 2b00 cmp r3, #0
  72230. 801d47e: f040 83c7 bne.w 801dc10 <tcp_input+0x7d8>
  72231. ip_addr_ismulticast(ip_current_dest_addr())) {
  72232. 801d482: 4b92 ldr r3, [pc, #584] @ (801d6cc <tcp_input+0x294>)
  72233. 801d484: 695b ldr r3, [r3, #20]
  72234. 801d486: f003 03f0 and.w r3, r3, #240 @ 0xf0
  72235. if (ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()) ||
  72236. 801d48a: 2be0 cmp r3, #224 @ 0xe0
  72237. 801d48c: f000 83c0 beq.w 801dc10 <tcp_input+0x7d8>
  72238. }
  72239. }
  72240. #endif /* CHECKSUM_CHECK_TCP */
  72241. /* sanity-check header length */
  72242. hdrlen_bytes = TCPH_HDRLEN_BYTES(tcphdr);
  72243. 801d490: 4b8d ldr r3, [pc, #564] @ (801d6c8 <tcp_input+0x290>)
  72244. 801d492: 681b ldr r3, [r3, #0]
  72245. 801d494: 899b ldrh r3, [r3, #12]
  72246. 801d496: b29b uxth r3, r3
  72247. 801d498: 4618 mov r0, r3
  72248. 801d49a: f7fc fa05 bl 80198a8 <lwip_htons>
  72249. 801d49e: 4603 mov r3, r0
  72250. 801d4a0: 0b1b lsrs r3, r3, #12
  72251. 801d4a2: b29b uxth r3, r3
  72252. 801d4a4: b2db uxtb r3, r3
  72253. 801d4a6: 009b lsls r3, r3, #2
  72254. 801d4a8: 74bb strb r3, [r7, #18]
  72255. if ((hdrlen_bytes < TCP_HLEN) || (hdrlen_bytes > p->tot_len)) {
  72256. 801d4aa: 7cbb ldrb r3, [r7, #18]
  72257. 801d4ac: 2b13 cmp r3, #19
  72258. 801d4ae: f240 83b1 bls.w 801dc14 <tcp_input+0x7dc>
  72259. 801d4b2: 7cbb ldrb r3, [r7, #18]
  72260. 801d4b4: b29a uxth r2, r3
  72261. 801d4b6: 687b ldr r3, [r7, #4]
  72262. 801d4b8: 891b ldrh r3, [r3, #8]
  72263. 801d4ba: 429a cmp r2, r3
  72264. 801d4bc: f200 83aa bhi.w 801dc14 <tcp_input+0x7dc>
  72265. goto dropped;
  72266. }
  72267. /* Move the payload pointer in the pbuf so that it points to the
  72268. TCP data instead of the TCP header. */
  72269. tcphdr_optlen = (u16_t)(hdrlen_bytes - TCP_HLEN);
  72270. 801d4c0: 7cbb ldrb r3, [r7, #18]
  72271. 801d4c2: b29b uxth r3, r3
  72272. 801d4c4: 3b14 subs r3, #20
  72273. 801d4c6: b29a uxth r2, r3
  72274. 801d4c8: 4b81 ldr r3, [pc, #516] @ (801d6d0 <tcp_input+0x298>)
  72275. 801d4ca: 801a strh r2, [r3, #0]
  72276. tcphdr_opt2 = NULL;
  72277. 801d4cc: 4b81 ldr r3, [pc, #516] @ (801d6d4 <tcp_input+0x29c>)
  72278. 801d4ce: 2200 movs r2, #0
  72279. 801d4d0: 601a str r2, [r3, #0]
  72280. if (p->len >= hdrlen_bytes) {
  72281. 801d4d2: 687b ldr r3, [r7, #4]
  72282. 801d4d4: 895a ldrh r2, [r3, #10]
  72283. 801d4d6: 7cbb ldrb r3, [r7, #18]
  72284. 801d4d8: b29b uxth r3, r3
  72285. 801d4da: 429a cmp r2, r3
  72286. 801d4dc: d309 bcc.n 801d4f2 <tcp_input+0xba>
  72287. /* all options are in the first pbuf */
  72288. tcphdr_opt1len = tcphdr_optlen;
  72289. 801d4de: 4b7c ldr r3, [pc, #496] @ (801d6d0 <tcp_input+0x298>)
  72290. 801d4e0: 881a ldrh r2, [r3, #0]
  72291. 801d4e2: 4b7d ldr r3, [pc, #500] @ (801d6d8 <tcp_input+0x2a0>)
  72292. 801d4e4: 801a strh r2, [r3, #0]
  72293. pbuf_remove_header(p, hdrlen_bytes); /* cannot fail */
  72294. 801d4e6: 7cbb ldrb r3, [r7, #18]
  72295. 801d4e8: 4619 mov r1, r3
  72296. 801d4ea: 6878 ldr r0, [r7, #4]
  72297. 801d4ec: f7fd fe06 bl 801b0fc <pbuf_remove_header>
  72298. 801d4f0: e04e b.n 801d590 <tcp_input+0x158>
  72299. } else {
  72300. u16_t opt2len;
  72301. /* TCP header fits into first pbuf, options don't - data is in the next pbuf */
  72302. /* there must be a next pbuf, due to hdrlen_bytes sanity check above */
  72303. LWIP_ASSERT("p->next != NULL", p->next != NULL);
  72304. 801d4f2: 687b ldr r3, [r7, #4]
  72305. 801d4f4: 681b ldr r3, [r3, #0]
  72306. 801d4f6: 2b00 cmp r3, #0
  72307. 801d4f8: d105 bne.n 801d506 <tcp_input+0xce>
  72308. 801d4fa: 4b70 ldr r3, [pc, #448] @ (801d6bc <tcp_input+0x284>)
  72309. 801d4fc: 22c2 movs r2, #194 @ 0xc2
  72310. 801d4fe: 4977 ldr r1, [pc, #476] @ (801d6dc <tcp_input+0x2a4>)
  72311. 801d500: 4870 ldr r0, [pc, #448] @ (801d6c4 <tcp_input+0x28c>)
  72312. 801d502: f00d f92b bl 802a75c <iprintf>
  72313. /* advance over the TCP header (cannot fail) */
  72314. pbuf_remove_header(p, TCP_HLEN);
  72315. 801d506: 2114 movs r1, #20
  72316. 801d508: 6878 ldr r0, [r7, #4]
  72317. 801d50a: f7fd fdf7 bl 801b0fc <pbuf_remove_header>
  72318. /* determine how long the first and second parts of the options are */
  72319. tcphdr_opt1len = p->len;
  72320. 801d50e: 687b ldr r3, [r7, #4]
  72321. 801d510: 895a ldrh r2, [r3, #10]
  72322. 801d512: 4b71 ldr r3, [pc, #452] @ (801d6d8 <tcp_input+0x2a0>)
  72323. 801d514: 801a strh r2, [r3, #0]
  72324. opt2len = (u16_t)(tcphdr_optlen - tcphdr_opt1len);
  72325. 801d516: 4b6e ldr r3, [pc, #440] @ (801d6d0 <tcp_input+0x298>)
  72326. 801d518: 881a ldrh r2, [r3, #0]
  72327. 801d51a: 4b6f ldr r3, [pc, #444] @ (801d6d8 <tcp_input+0x2a0>)
  72328. 801d51c: 881b ldrh r3, [r3, #0]
  72329. 801d51e: 1ad3 subs r3, r2, r3
  72330. 801d520: 823b strh r3, [r7, #16]
  72331. /* options continue in the next pbuf: set p to zero length and hide the
  72332. options in the next pbuf (adjusting p->tot_len) */
  72333. pbuf_remove_header(p, tcphdr_opt1len);
  72334. 801d522: 4b6d ldr r3, [pc, #436] @ (801d6d8 <tcp_input+0x2a0>)
  72335. 801d524: 881b ldrh r3, [r3, #0]
  72336. 801d526: 4619 mov r1, r3
  72337. 801d528: 6878 ldr r0, [r7, #4]
  72338. 801d52a: f7fd fde7 bl 801b0fc <pbuf_remove_header>
  72339. /* check that the options fit in the second pbuf */
  72340. if (opt2len > p->next->len) {
  72341. 801d52e: 687b ldr r3, [r7, #4]
  72342. 801d530: 681b ldr r3, [r3, #0]
  72343. 801d532: 895b ldrh r3, [r3, #10]
  72344. 801d534: 8a3a ldrh r2, [r7, #16]
  72345. 801d536: 429a cmp r2, r3
  72346. 801d538: f200 836e bhi.w 801dc18 <tcp_input+0x7e0>
  72347. TCP_STATS_INC(tcp.lenerr);
  72348. goto dropped;
  72349. }
  72350. /* remember the pointer to the second part of the options */
  72351. tcphdr_opt2 = (u8_t *)p->next->payload;
  72352. 801d53c: 687b ldr r3, [r7, #4]
  72353. 801d53e: 681b ldr r3, [r3, #0]
  72354. 801d540: 685b ldr r3, [r3, #4]
  72355. 801d542: 4a64 ldr r2, [pc, #400] @ (801d6d4 <tcp_input+0x29c>)
  72356. 801d544: 6013 str r3, [r2, #0]
  72357. /* advance p->next to point after the options, and manually
  72358. adjust p->tot_len to keep it consistent with the changed p->next */
  72359. pbuf_remove_header(p->next, opt2len);
  72360. 801d546: 687b ldr r3, [r7, #4]
  72361. 801d548: 681b ldr r3, [r3, #0]
  72362. 801d54a: 8a3a ldrh r2, [r7, #16]
  72363. 801d54c: 4611 mov r1, r2
  72364. 801d54e: 4618 mov r0, r3
  72365. 801d550: f7fd fdd4 bl 801b0fc <pbuf_remove_header>
  72366. p->tot_len = (u16_t)(p->tot_len - opt2len);
  72367. 801d554: 687b ldr r3, [r7, #4]
  72368. 801d556: 891a ldrh r2, [r3, #8]
  72369. 801d558: 8a3b ldrh r3, [r7, #16]
  72370. 801d55a: 1ad3 subs r3, r2, r3
  72371. 801d55c: b29a uxth r2, r3
  72372. 801d55e: 687b ldr r3, [r7, #4]
  72373. 801d560: 811a strh r2, [r3, #8]
  72374. LWIP_ASSERT("p->len == 0", p->len == 0);
  72375. 801d562: 687b ldr r3, [r7, #4]
  72376. 801d564: 895b ldrh r3, [r3, #10]
  72377. 801d566: 2b00 cmp r3, #0
  72378. 801d568: d005 beq.n 801d576 <tcp_input+0x13e>
  72379. 801d56a: 4b54 ldr r3, [pc, #336] @ (801d6bc <tcp_input+0x284>)
  72380. 801d56c: 22df movs r2, #223 @ 0xdf
  72381. 801d56e: 495c ldr r1, [pc, #368] @ (801d6e0 <tcp_input+0x2a8>)
  72382. 801d570: 4854 ldr r0, [pc, #336] @ (801d6c4 <tcp_input+0x28c>)
  72383. 801d572: f00d f8f3 bl 802a75c <iprintf>
  72384. LWIP_ASSERT("p->tot_len == p->next->tot_len", p->tot_len == p->next->tot_len);
  72385. 801d576: 687b ldr r3, [r7, #4]
  72386. 801d578: 891a ldrh r2, [r3, #8]
  72387. 801d57a: 687b ldr r3, [r7, #4]
  72388. 801d57c: 681b ldr r3, [r3, #0]
  72389. 801d57e: 891b ldrh r3, [r3, #8]
  72390. 801d580: 429a cmp r2, r3
  72391. 801d582: d005 beq.n 801d590 <tcp_input+0x158>
  72392. 801d584: 4b4d ldr r3, [pc, #308] @ (801d6bc <tcp_input+0x284>)
  72393. 801d586: 22e0 movs r2, #224 @ 0xe0
  72394. 801d588: 4956 ldr r1, [pc, #344] @ (801d6e4 <tcp_input+0x2ac>)
  72395. 801d58a: 484e ldr r0, [pc, #312] @ (801d6c4 <tcp_input+0x28c>)
  72396. 801d58c: f00d f8e6 bl 802a75c <iprintf>
  72397. }
  72398. /* Convert fields in TCP header to host byte order. */
  72399. tcphdr->src = lwip_ntohs(tcphdr->src);
  72400. 801d590: 4b4d ldr r3, [pc, #308] @ (801d6c8 <tcp_input+0x290>)
  72401. 801d592: 681b ldr r3, [r3, #0]
  72402. 801d594: 881b ldrh r3, [r3, #0]
  72403. 801d596: b29b uxth r3, r3
  72404. 801d598: 4a4b ldr r2, [pc, #300] @ (801d6c8 <tcp_input+0x290>)
  72405. 801d59a: 6814 ldr r4, [r2, #0]
  72406. 801d59c: 4618 mov r0, r3
  72407. 801d59e: f7fc f983 bl 80198a8 <lwip_htons>
  72408. 801d5a2: 4603 mov r3, r0
  72409. 801d5a4: 8023 strh r3, [r4, #0]
  72410. tcphdr->dest = lwip_ntohs(tcphdr->dest);
  72411. 801d5a6: 4b48 ldr r3, [pc, #288] @ (801d6c8 <tcp_input+0x290>)
  72412. 801d5a8: 681b ldr r3, [r3, #0]
  72413. 801d5aa: 885b ldrh r3, [r3, #2]
  72414. 801d5ac: b29b uxth r3, r3
  72415. 801d5ae: 4a46 ldr r2, [pc, #280] @ (801d6c8 <tcp_input+0x290>)
  72416. 801d5b0: 6814 ldr r4, [r2, #0]
  72417. 801d5b2: 4618 mov r0, r3
  72418. 801d5b4: f7fc f978 bl 80198a8 <lwip_htons>
  72419. 801d5b8: 4603 mov r3, r0
  72420. 801d5ba: 8063 strh r3, [r4, #2]
  72421. seqno = tcphdr->seqno = lwip_ntohl(tcphdr->seqno);
  72422. 801d5bc: 4b42 ldr r3, [pc, #264] @ (801d6c8 <tcp_input+0x290>)
  72423. 801d5be: 681b ldr r3, [r3, #0]
  72424. 801d5c0: 685b ldr r3, [r3, #4]
  72425. 801d5c2: 4a41 ldr r2, [pc, #260] @ (801d6c8 <tcp_input+0x290>)
  72426. 801d5c4: 6814 ldr r4, [r2, #0]
  72427. 801d5c6: 4618 mov r0, r3
  72428. 801d5c8: f7fc f983 bl 80198d2 <lwip_htonl>
  72429. 801d5cc: 4603 mov r3, r0
  72430. 801d5ce: 6063 str r3, [r4, #4]
  72431. 801d5d0: 6863 ldr r3, [r4, #4]
  72432. 801d5d2: 4a45 ldr r2, [pc, #276] @ (801d6e8 <tcp_input+0x2b0>)
  72433. 801d5d4: 6013 str r3, [r2, #0]
  72434. ackno = tcphdr->ackno = lwip_ntohl(tcphdr->ackno);
  72435. 801d5d6: 4b3c ldr r3, [pc, #240] @ (801d6c8 <tcp_input+0x290>)
  72436. 801d5d8: 681b ldr r3, [r3, #0]
  72437. 801d5da: 689b ldr r3, [r3, #8]
  72438. 801d5dc: 4a3a ldr r2, [pc, #232] @ (801d6c8 <tcp_input+0x290>)
  72439. 801d5de: 6814 ldr r4, [r2, #0]
  72440. 801d5e0: 4618 mov r0, r3
  72441. 801d5e2: f7fc f976 bl 80198d2 <lwip_htonl>
  72442. 801d5e6: 4603 mov r3, r0
  72443. 801d5e8: 60a3 str r3, [r4, #8]
  72444. 801d5ea: 68a3 ldr r3, [r4, #8]
  72445. 801d5ec: 4a3f ldr r2, [pc, #252] @ (801d6ec <tcp_input+0x2b4>)
  72446. 801d5ee: 6013 str r3, [r2, #0]
  72447. tcphdr->wnd = lwip_ntohs(tcphdr->wnd);
  72448. 801d5f0: 4b35 ldr r3, [pc, #212] @ (801d6c8 <tcp_input+0x290>)
  72449. 801d5f2: 681b ldr r3, [r3, #0]
  72450. 801d5f4: 89db ldrh r3, [r3, #14]
  72451. 801d5f6: b29b uxth r3, r3
  72452. 801d5f8: 4a33 ldr r2, [pc, #204] @ (801d6c8 <tcp_input+0x290>)
  72453. 801d5fa: 6814 ldr r4, [r2, #0]
  72454. 801d5fc: 4618 mov r0, r3
  72455. 801d5fe: f7fc f953 bl 80198a8 <lwip_htons>
  72456. 801d602: 4603 mov r3, r0
  72457. 801d604: 81e3 strh r3, [r4, #14]
  72458. flags = TCPH_FLAGS(tcphdr);
  72459. 801d606: 4b30 ldr r3, [pc, #192] @ (801d6c8 <tcp_input+0x290>)
  72460. 801d608: 681b ldr r3, [r3, #0]
  72461. 801d60a: 899b ldrh r3, [r3, #12]
  72462. 801d60c: b29b uxth r3, r3
  72463. 801d60e: 4618 mov r0, r3
  72464. 801d610: f7fc f94a bl 80198a8 <lwip_htons>
  72465. 801d614: 4603 mov r3, r0
  72466. 801d616: b2db uxtb r3, r3
  72467. 801d618: f003 033f and.w r3, r3, #63 @ 0x3f
  72468. 801d61c: b2da uxtb r2, r3
  72469. 801d61e: 4b34 ldr r3, [pc, #208] @ (801d6f0 <tcp_input+0x2b8>)
  72470. 801d620: 701a strb r2, [r3, #0]
  72471. tcplen = p->tot_len;
  72472. 801d622: 687b ldr r3, [r7, #4]
  72473. 801d624: 891a ldrh r2, [r3, #8]
  72474. 801d626: 4b33 ldr r3, [pc, #204] @ (801d6f4 <tcp_input+0x2bc>)
  72475. 801d628: 801a strh r2, [r3, #0]
  72476. if (flags & (TCP_FIN | TCP_SYN)) {
  72477. 801d62a: 4b31 ldr r3, [pc, #196] @ (801d6f0 <tcp_input+0x2b8>)
  72478. 801d62c: 781b ldrb r3, [r3, #0]
  72479. 801d62e: f003 0303 and.w r3, r3, #3
  72480. 801d632: 2b00 cmp r3, #0
  72481. 801d634: d00c beq.n 801d650 <tcp_input+0x218>
  72482. tcplen++;
  72483. 801d636: 4b2f ldr r3, [pc, #188] @ (801d6f4 <tcp_input+0x2bc>)
  72484. 801d638: 881b ldrh r3, [r3, #0]
  72485. 801d63a: 3301 adds r3, #1
  72486. 801d63c: b29a uxth r2, r3
  72487. 801d63e: 4b2d ldr r3, [pc, #180] @ (801d6f4 <tcp_input+0x2bc>)
  72488. 801d640: 801a strh r2, [r3, #0]
  72489. if (tcplen < p->tot_len) {
  72490. 801d642: 687b ldr r3, [r7, #4]
  72491. 801d644: 891a ldrh r2, [r3, #8]
  72492. 801d646: 4b2b ldr r3, [pc, #172] @ (801d6f4 <tcp_input+0x2bc>)
  72493. 801d648: 881b ldrh r3, [r3, #0]
  72494. 801d64a: 429a cmp r2, r3
  72495. 801d64c: f200 82e6 bhi.w 801dc1c <tcp_input+0x7e4>
  72496. }
  72497. }
  72498. /* Demultiplex an incoming segment. First, we check if it is destined
  72499. for an active connection. */
  72500. prev = NULL;
  72501. 801d650: 2300 movs r3, #0
  72502. 801d652: 61fb str r3, [r7, #28]
  72503. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  72504. 801d654: 4b28 ldr r3, [pc, #160] @ (801d6f8 <tcp_input+0x2c0>)
  72505. 801d656: 681b ldr r3, [r3, #0]
  72506. 801d658: 61bb str r3, [r7, #24]
  72507. 801d65a: e09d b.n 801d798 <tcp_input+0x360>
  72508. LWIP_ASSERT("tcp_input: active pcb->state != CLOSED", pcb->state != CLOSED);
  72509. 801d65c: 69bb ldr r3, [r7, #24]
  72510. 801d65e: 7d1b ldrb r3, [r3, #20]
  72511. 801d660: 2b00 cmp r3, #0
  72512. 801d662: d105 bne.n 801d670 <tcp_input+0x238>
  72513. 801d664: 4b15 ldr r3, [pc, #84] @ (801d6bc <tcp_input+0x284>)
  72514. 801d666: 22fb movs r2, #251 @ 0xfb
  72515. 801d668: 4924 ldr r1, [pc, #144] @ (801d6fc <tcp_input+0x2c4>)
  72516. 801d66a: 4816 ldr r0, [pc, #88] @ (801d6c4 <tcp_input+0x28c>)
  72517. 801d66c: f00d f876 bl 802a75c <iprintf>
  72518. LWIP_ASSERT("tcp_input: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT);
  72519. 801d670: 69bb ldr r3, [r7, #24]
  72520. 801d672: 7d1b ldrb r3, [r3, #20]
  72521. 801d674: 2b0a cmp r3, #10
  72522. 801d676: d105 bne.n 801d684 <tcp_input+0x24c>
  72523. 801d678: 4b10 ldr r3, [pc, #64] @ (801d6bc <tcp_input+0x284>)
  72524. 801d67a: 22fc movs r2, #252 @ 0xfc
  72525. 801d67c: 4920 ldr r1, [pc, #128] @ (801d700 <tcp_input+0x2c8>)
  72526. 801d67e: 4811 ldr r0, [pc, #68] @ (801d6c4 <tcp_input+0x28c>)
  72527. 801d680: f00d f86c bl 802a75c <iprintf>
  72528. LWIP_ASSERT("tcp_input: active pcb->state != LISTEN", pcb->state != LISTEN);
  72529. 801d684: 69bb ldr r3, [r7, #24]
  72530. 801d686: 7d1b ldrb r3, [r3, #20]
  72531. 801d688: 2b01 cmp r3, #1
  72532. 801d68a: d105 bne.n 801d698 <tcp_input+0x260>
  72533. 801d68c: 4b0b ldr r3, [pc, #44] @ (801d6bc <tcp_input+0x284>)
  72534. 801d68e: 22fd movs r2, #253 @ 0xfd
  72535. 801d690: 491c ldr r1, [pc, #112] @ (801d704 <tcp_input+0x2cc>)
  72536. 801d692: 480c ldr r0, [pc, #48] @ (801d6c4 <tcp_input+0x28c>)
  72537. 801d694: f00d f862 bl 802a75c <iprintf>
  72538. /* check if PCB is bound to specific netif */
  72539. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  72540. 801d698: 69bb ldr r3, [r7, #24]
  72541. 801d69a: 7a1b ldrb r3, [r3, #8]
  72542. 801d69c: 2b00 cmp r3, #0
  72543. 801d69e: d033 beq.n 801d708 <tcp_input+0x2d0>
  72544. (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  72545. 801d6a0: 69bb ldr r3, [r7, #24]
  72546. 801d6a2: 7a1a ldrb r2, [r3, #8]
  72547. 801d6a4: 4b09 ldr r3, [pc, #36] @ (801d6cc <tcp_input+0x294>)
  72548. 801d6a6: 685b ldr r3, [r3, #4]
  72549. 801d6a8: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  72550. 801d6ac: 3301 adds r3, #1
  72551. 801d6ae: b2db uxtb r3, r3
  72552. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  72553. 801d6b0: 429a cmp r2, r3
  72554. 801d6b2: d029 beq.n 801d708 <tcp_input+0x2d0>
  72555. prev = pcb;
  72556. 801d6b4: 69bb ldr r3, [r7, #24]
  72557. 801d6b6: 61fb str r3, [r7, #28]
  72558. continue;
  72559. 801d6b8: e06b b.n 801d792 <tcp_input+0x35a>
  72560. 801d6ba: bf00 nop
  72561. 801d6bc: 0802fbf4 .word 0x0802fbf4
  72562. 801d6c0: 0802fc28 .word 0x0802fc28
  72563. 801d6c4: 0802fc40 .word 0x0802fc40
  72564. 801d6c8: 2402af94 .word 0x2402af94
  72565. 801d6cc: 24024418 .word 0x24024418
  72566. 801d6d0: 2402af98 .word 0x2402af98
  72567. 801d6d4: 2402af9c .word 0x2402af9c
  72568. 801d6d8: 2402af9a .word 0x2402af9a
  72569. 801d6dc: 0802fc68 .word 0x0802fc68
  72570. 801d6e0: 0802fc78 .word 0x0802fc78
  72571. 801d6e4: 0802fc84 .word 0x0802fc84
  72572. 801d6e8: 2402afa4 .word 0x2402afa4
  72573. 801d6ec: 2402afa8 .word 0x2402afa8
  72574. 801d6f0: 2402afb0 .word 0x2402afb0
  72575. 801d6f4: 2402afae .word 0x2402afae
  72576. 801d6f8: 2402af74 .word 0x2402af74
  72577. 801d6fc: 0802fca4 .word 0x0802fca4
  72578. 801d700: 0802fccc .word 0x0802fccc
  72579. 801d704: 0802fcf8 .word 0x0802fcf8
  72580. }
  72581. if (pcb->remote_port == tcphdr->src &&
  72582. 801d708: 69bb ldr r3, [r7, #24]
  72583. 801d70a: 8b1a ldrh r2, [r3, #24]
  72584. 801d70c: 4b72 ldr r3, [pc, #456] @ (801d8d8 <tcp_input+0x4a0>)
  72585. 801d70e: 681b ldr r3, [r3, #0]
  72586. 801d710: 881b ldrh r3, [r3, #0]
  72587. 801d712: b29b uxth r3, r3
  72588. 801d714: 429a cmp r2, r3
  72589. 801d716: d13a bne.n 801d78e <tcp_input+0x356>
  72590. pcb->local_port == tcphdr->dest &&
  72591. 801d718: 69bb ldr r3, [r7, #24]
  72592. 801d71a: 8ada ldrh r2, [r3, #22]
  72593. 801d71c: 4b6e ldr r3, [pc, #440] @ (801d8d8 <tcp_input+0x4a0>)
  72594. 801d71e: 681b ldr r3, [r3, #0]
  72595. 801d720: 885b ldrh r3, [r3, #2]
  72596. 801d722: b29b uxth r3, r3
  72597. if (pcb->remote_port == tcphdr->src &&
  72598. 801d724: 429a cmp r2, r3
  72599. 801d726: d132 bne.n 801d78e <tcp_input+0x356>
  72600. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  72601. 801d728: 69bb ldr r3, [r7, #24]
  72602. 801d72a: 685a ldr r2, [r3, #4]
  72603. 801d72c: 4b6b ldr r3, [pc, #428] @ (801d8dc <tcp_input+0x4a4>)
  72604. 801d72e: 691b ldr r3, [r3, #16]
  72605. pcb->local_port == tcphdr->dest &&
  72606. 801d730: 429a cmp r2, r3
  72607. 801d732: d12c bne.n 801d78e <tcp_input+0x356>
  72608. ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
  72609. 801d734: 69bb ldr r3, [r7, #24]
  72610. 801d736: 681a ldr r2, [r3, #0]
  72611. 801d738: 4b68 ldr r3, [pc, #416] @ (801d8dc <tcp_input+0x4a4>)
  72612. 801d73a: 695b ldr r3, [r3, #20]
  72613. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  72614. 801d73c: 429a cmp r2, r3
  72615. 801d73e: d126 bne.n 801d78e <tcp_input+0x356>
  72616. /* Move this PCB to the front of the list so that subsequent
  72617. lookups will be faster (we exploit locality in TCP segment
  72618. arrivals). */
  72619. LWIP_ASSERT("tcp_input: pcb->next != pcb (before cache)", pcb->next != pcb);
  72620. 801d740: 69bb ldr r3, [r7, #24]
  72621. 801d742: 68db ldr r3, [r3, #12]
  72622. 801d744: 69ba ldr r2, [r7, #24]
  72623. 801d746: 429a cmp r2, r3
  72624. 801d748: d106 bne.n 801d758 <tcp_input+0x320>
  72625. 801d74a: 4b65 ldr r3, [pc, #404] @ (801d8e0 <tcp_input+0x4a8>)
  72626. 801d74c: f240 120d movw r2, #269 @ 0x10d
  72627. 801d750: 4964 ldr r1, [pc, #400] @ (801d8e4 <tcp_input+0x4ac>)
  72628. 801d752: 4865 ldr r0, [pc, #404] @ (801d8e8 <tcp_input+0x4b0>)
  72629. 801d754: f00d f802 bl 802a75c <iprintf>
  72630. if (prev != NULL) {
  72631. 801d758: 69fb ldr r3, [r7, #28]
  72632. 801d75a: 2b00 cmp r3, #0
  72633. 801d75c: d00a beq.n 801d774 <tcp_input+0x33c>
  72634. prev->next = pcb->next;
  72635. 801d75e: 69bb ldr r3, [r7, #24]
  72636. 801d760: 68da ldr r2, [r3, #12]
  72637. 801d762: 69fb ldr r3, [r7, #28]
  72638. 801d764: 60da str r2, [r3, #12]
  72639. pcb->next = tcp_active_pcbs;
  72640. 801d766: 4b61 ldr r3, [pc, #388] @ (801d8ec <tcp_input+0x4b4>)
  72641. 801d768: 681a ldr r2, [r3, #0]
  72642. 801d76a: 69bb ldr r3, [r7, #24]
  72643. 801d76c: 60da str r2, [r3, #12]
  72644. tcp_active_pcbs = pcb;
  72645. 801d76e: 4a5f ldr r2, [pc, #380] @ (801d8ec <tcp_input+0x4b4>)
  72646. 801d770: 69bb ldr r3, [r7, #24]
  72647. 801d772: 6013 str r3, [r2, #0]
  72648. } else {
  72649. TCP_STATS_INC(tcp.cachehit);
  72650. }
  72651. LWIP_ASSERT("tcp_input: pcb->next != pcb (after cache)", pcb->next != pcb);
  72652. 801d774: 69bb ldr r3, [r7, #24]
  72653. 801d776: 68db ldr r3, [r3, #12]
  72654. 801d778: 69ba ldr r2, [r7, #24]
  72655. 801d77a: 429a cmp r2, r3
  72656. 801d77c: d111 bne.n 801d7a2 <tcp_input+0x36a>
  72657. 801d77e: 4b58 ldr r3, [pc, #352] @ (801d8e0 <tcp_input+0x4a8>)
  72658. 801d780: f240 1215 movw r2, #277 @ 0x115
  72659. 801d784: 495a ldr r1, [pc, #360] @ (801d8f0 <tcp_input+0x4b8>)
  72660. 801d786: 4858 ldr r0, [pc, #352] @ (801d8e8 <tcp_input+0x4b0>)
  72661. 801d788: f00c ffe8 bl 802a75c <iprintf>
  72662. break;
  72663. 801d78c: e009 b.n 801d7a2 <tcp_input+0x36a>
  72664. }
  72665. prev = pcb;
  72666. 801d78e: 69bb ldr r3, [r7, #24]
  72667. 801d790: 61fb str r3, [r7, #28]
  72668. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  72669. 801d792: 69bb ldr r3, [r7, #24]
  72670. 801d794: 68db ldr r3, [r3, #12]
  72671. 801d796: 61bb str r3, [r7, #24]
  72672. 801d798: 69bb ldr r3, [r7, #24]
  72673. 801d79a: 2b00 cmp r3, #0
  72674. 801d79c: f47f af5e bne.w 801d65c <tcp_input+0x224>
  72675. 801d7a0: e000 b.n 801d7a4 <tcp_input+0x36c>
  72676. break;
  72677. 801d7a2: bf00 nop
  72678. }
  72679. if (pcb == NULL) {
  72680. 801d7a4: 69bb ldr r3, [r7, #24]
  72681. 801d7a6: 2b00 cmp r3, #0
  72682. 801d7a8: f040 80aa bne.w 801d900 <tcp_input+0x4c8>
  72683. /* If it did not go to an active connection, we check the connections
  72684. in the TIME-WAIT state. */
  72685. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  72686. 801d7ac: 4b51 ldr r3, [pc, #324] @ (801d8f4 <tcp_input+0x4bc>)
  72687. 801d7ae: 681b ldr r3, [r3, #0]
  72688. 801d7b0: 61bb str r3, [r7, #24]
  72689. 801d7b2: e03f b.n 801d834 <tcp_input+0x3fc>
  72690. LWIP_ASSERT("tcp_input: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT);
  72691. 801d7b4: 69bb ldr r3, [r7, #24]
  72692. 801d7b6: 7d1b ldrb r3, [r3, #20]
  72693. 801d7b8: 2b0a cmp r3, #10
  72694. 801d7ba: d006 beq.n 801d7ca <tcp_input+0x392>
  72695. 801d7bc: 4b48 ldr r3, [pc, #288] @ (801d8e0 <tcp_input+0x4a8>)
  72696. 801d7be: f240 121f movw r2, #287 @ 0x11f
  72697. 801d7c2: 494d ldr r1, [pc, #308] @ (801d8f8 <tcp_input+0x4c0>)
  72698. 801d7c4: 4848 ldr r0, [pc, #288] @ (801d8e8 <tcp_input+0x4b0>)
  72699. 801d7c6: f00c ffc9 bl 802a75c <iprintf>
  72700. /* check if PCB is bound to specific netif */
  72701. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  72702. 801d7ca: 69bb ldr r3, [r7, #24]
  72703. 801d7cc: 7a1b ldrb r3, [r3, #8]
  72704. 801d7ce: 2b00 cmp r3, #0
  72705. 801d7d0: d009 beq.n 801d7e6 <tcp_input+0x3ae>
  72706. (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  72707. 801d7d2: 69bb ldr r3, [r7, #24]
  72708. 801d7d4: 7a1a ldrb r2, [r3, #8]
  72709. 801d7d6: 4b41 ldr r3, [pc, #260] @ (801d8dc <tcp_input+0x4a4>)
  72710. 801d7d8: 685b ldr r3, [r3, #4]
  72711. 801d7da: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  72712. 801d7de: 3301 adds r3, #1
  72713. 801d7e0: b2db uxtb r3, r3
  72714. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  72715. 801d7e2: 429a cmp r2, r3
  72716. 801d7e4: d122 bne.n 801d82c <tcp_input+0x3f4>
  72717. continue;
  72718. }
  72719. if (pcb->remote_port == tcphdr->src &&
  72720. 801d7e6: 69bb ldr r3, [r7, #24]
  72721. 801d7e8: 8b1a ldrh r2, [r3, #24]
  72722. 801d7ea: 4b3b ldr r3, [pc, #236] @ (801d8d8 <tcp_input+0x4a0>)
  72723. 801d7ec: 681b ldr r3, [r3, #0]
  72724. 801d7ee: 881b ldrh r3, [r3, #0]
  72725. 801d7f0: b29b uxth r3, r3
  72726. 801d7f2: 429a cmp r2, r3
  72727. 801d7f4: d11b bne.n 801d82e <tcp_input+0x3f6>
  72728. pcb->local_port == tcphdr->dest &&
  72729. 801d7f6: 69bb ldr r3, [r7, #24]
  72730. 801d7f8: 8ada ldrh r2, [r3, #22]
  72731. 801d7fa: 4b37 ldr r3, [pc, #220] @ (801d8d8 <tcp_input+0x4a0>)
  72732. 801d7fc: 681b ldr r3, [r3, #0]
  72733. 801d7fe: 885b ldrh r3, [r3, #2]
  72734. 801d800: b29b uxth r3, r3
  72735. if (pcb->remote_port == tcphdr->src &&
  72736. 801d802: 429a cmp r2, r3
  72737. 801d804: d113 bne.n 801d82e <tcp_input+0x3f6>
  72738. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  72739. 801d806: 69bb ldr r3, [r7, #24]
  72740. 801d808: 685a ldr r2, [r3, #4]
  72741. 801d80a: 4b34 ldr r3, [pc, #208] @ (801d8dc <tcp_input+0x4a4>)
  72742. 801d80c: 691b ldr r3, [r3, #16]
  72743. pcb->local_port == tcphdr->dest &&
  72744. 801d80e: 429a cmp r2, r3
  72745. 801d810: d10d bne.n 801d82e <tcp_input+0x3f6>
  72746. ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
  72747. 801d812: 69bb ldr r3, [r7, #24]
  72748. 801d814: 681a ldr r2, [r3, #0]
  72749. 801d816: 4b31 ldr r3, [pc, #196] @ (801d8dc <tcp_input+0x4a4>)
  72750. 801d818: 695b ldr r3, [r3, #20]
  72751. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  72752. 801d81a: 429a cmp r2, r3
  72753. 801d81c: d107 bne.n 801d82e <tcp_input+0x3f6>
  72754. #ifdef LWIP_HOOK_TCP_INPACKET_PCB
  72755. if (LWIP_HOOK_TCP_INPACKET_PCB(pcb, tcphdr, tcphdr_optlen, tcphdr_opt1len,
  72756. tcphdr_opt2, p) == ERR_OK)
  72757. #endif
  72758. {
  72759. tcp_timewait_input(pcb);
  72760. 801d81e: 69b8 ldr r0, [r7, #24]
  72761. 801d820: f000 fb56 bl 801ded0 <tcp_timewait_input>
  72762. }
  72763. pbuf_free(p);
  72764. 801d824: 6878 ldr r0, [r7, #4]
  72765. 801d826: f7fd fd21 bl 801b26c <pbuf_free>
  72766. return;
  72767. 801d82a: e1fd b.n 801dc28 <tcp_input+0x7f0>
  72768. continue;
  72769. 801d82c: bf00 nop
  72770. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  72771. 801d82e: 69bb ldr r3, [r7, #24]
  72772. 801d830: 68db ldr r3, [r3, #12]
  72773. 801d832: 61bb str r3, [r7, #24]
  72774. 801d834: 69bb ldr r3, [r7, #24]
  72775. 801d836: 2b00 cmp r3, #0
  72776. 801d838: d1bc bne.n 801d7b4 <tcp_input+0x37c>
  72777. }
  72778. }
  72779. /* Finally, if we still did not get a match, we check all PCBs that
  72780. are LISTENing for incoming connections. */
  72781. prev = NULL;
  72782. 801d83a: 2300 movs r3, #0
  72783. 801d83c: 61fb str r3, [r7, #28]
  72784. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  72785. 801d83e: 4b2f ldr r3, [pc, #188] @ (801d8fc <tcp_input+0x4c4>)
  72786. 801d840: 681b ldr r3, [r3, #0]
  72787. 801d842: 617b str r3, [r7, #20]
  72788. 801d844: e02a b.n 801d89c <tcp_input+0x464>
  72789. /* check if PCB is bound to specific netif */
  72790. if ((lpcb->netif_idx != NETIF_NO_INDEX) &&
  72791. 801d846: 697b ldr r3, [r7, #20]
  72792. 801d848: 7a1b ldrb r3, [r3, #8]
  72793. 801d84a: 2b00 cmp r3, #0
  72794. 801d84c: d00c beq.n 801d868 <tcp_input+0x430>
  72795. (lpcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  72796. 801d84e: 697b ldr r3, [r7, #20]
  72797. 801d850: 7a1a ldrb r2, [r3, #8]
  72798. 801d852: 4b22 ldr r3, [pc, #136] @ (801d8dc <tcp_input+0x4a4>)
  72799. 801d854: 685b ldr r3, [r3, #4]
  72800. 801d856: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  72801. 801d85a: 3301 adds r3, #1
  72802. 801d85c: b2db uxtb r3, r3
  72803. if ((lpcb->netif_idx != NETIF_NO_INDEX) &&
  72804. 801d85e: 429a cmp r2, r3
  72805. 801d860: d002 beq.n 801d868 <tcp_input+0x430>
  72806. prev = (struct tcp_pcb *)lpcb;
  72807. 801d862: 697b ldr r3, [r7, #20]
  72808. 801d864: 61fb str r3, [r7, #28]
  72809. continue;
  72810. 801d866: e016 b.n 801d896 <tcp_input+0x45e>
  72811. }
  72812. if (lpcb->local_port == tcphdr->dest) {
  72813. 801d868: 697b ldr r3, [r7, #20]
  72814. 801d86a: 8ada ldrh r2, [r3, #22]
  72815. 801d86c: 4b1a ldr r3, [pc, #104] @ (801d8d8 <tcp_input+0x4a0>)
  72816. 801d86e: 681b ldr r3, [r3, #0]
  72817. 801d870: 885b ldrh r3, [r3, #2]
  72818. 801d872: b29b uxth r3, r3
  72819. 801d874: 429a cmp r2, r3
  72820. 801d876: d10c bne.n 801d892 <tcp_input+0x45a>
  72821. lpcb_prev = prev;
  72822. #else /* SO_REUSE */
  72823. break;
  72824. #endif /* SO_REUSE */
  72825. } else if (IP_ADDR_PCB_VERSION_MATCH_EXACT(lpcb, ip_current_dest_addr())) {
  72826. if (ip_addr_cmp(&lpcb->local_ip, ip_current_dest_addr())) {
  72827. 801d878: 697b ldr r3, [r7, #20]
  72828. 801d87a: 681a ldr r2, [r3, #0]
  72829. 801d87c: 4b17 ldr r3, [pc, #92] @ (801d8dc <tcp_input+0x4a4>)
  72830. 801d87e: 695b ldr r3, [r3, #20]
  72831. 801d880: 429a cmp r2, r3
  72832. 801d882: d00f beq.n 801d8a4 <tcp_input+0x46c>
  72833. /* found an exact match */
  72834. break;
  72835. } else if (ip_addr_isany(&lpcb->local_ip)) {
  72836. 801d884: 697b ldr r3, [r7, #20]
  72837. 801d886: 2b00 cmp r3, #0
  72838. 801d888: d00d beq.n 801d8a6 <tcp_input+0x46e>
  72839. 801d88a: 697b ldr r3, [r7, #20]
  72840. 801d88c: 681b ldr r3, [r3, #0]
  72841. 801d88e: 2b00 cmp r3, #0
  72842. 801d890: d009 beq.n 801d8a6 <tcp_input+0x46e>
  72843. break;
  72844. #endif /* SO_REUSE */
  72845. }
  72846. }
  72847. }
  72848. prev = (struct tcp_pcb *)lpcb;
  72849. 801d892: 697b ldr r3, [r7, #20]
  72850. 801d894: 61fb str r3, [r7, #28]
  72851. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  72852. 801d896: 697b ldr r3, [r7, #20]
  72853. 801d898: 68db ldr r3, [r3, #12]
  72854. 801d89a: 617b str r3, [r7, #20]
  72855. 801d89c: 697b ldr r3, [r7, #20]
  72856. 801d89e: 2b00 cmp r3, #0
  72857. 801d8a0: d1d1 bne.n 801d846 <tcp_input+0x40e>
  72858. 801d8a2: e000 b.n 801d8a6 <tcp_input+0x46e>
  72859. break;
  72860. 801d8a4: bf00 nop
  72861. /* only pass to ANY if no specific local IP has been found */
  72862. lpcb = lpcb_any;
  72863. prev = lpcb_prev;
  72864. }
  72865. #endif /* SO_REUSE */
  72866. if (lpcb != NULL) {
  72867. 801d8a6: 697b ldr r3, [r7, #20]
  72868. 801d8a8: 2b00 cmp r3, #0
  72869. 801d8aa: d029 beq.n 801d900 <tcp_input+0x4c8>
  72870. /* Move this PCB to the front of the list so that subsequent
  72871. lookups will be faster (we exploit locality in TCP segment
  72872. arrivals). */
  72873. if (prev != NULL) {
  72874. 801d8ac: 69fb ldr r3, [r7, #28]
  72875. 801d8ae: 2b00 cmp r3, #0
  72876. 801d8b0: d00a beq.n 801d8c8 <tcp_input+0x490>
  72877. ((struct tcp_pcb_listen *)prev)->next = lpcb->next;
  72878. 801d8b2: 697b ldr r3, [r7, #20]
  72879. 801d8b4: 68da ldr r2, [r3, #12]
  72880. 801d8b6: 69fb ldr r3, [r7, #28]
  72881. 801d8b8: 60da str r2, [r3, #12]
  72882. /* our successor is the remainder of the listening list */
  72883. lpcb->next = tcp_listen_pcbs.listen_pcbs;
  72884. 801d8ba: 4b10 ldr r3, [pc, #64] @ (801d8fc <tcp_input+0x4c4>)
  72885. 801d8bc: 681a ldr r2, [r3, #0]
  72886. 801d8be: 697b ldr r3, [r7, #20]
  72887. 801d8c0: 60da str r2, [r3, #12]
  72888. /* put this listening pcb at the head of the listening list */
  72889. tcp_listen_pcbs.listen_pcbs = lpcb;
  72890. 801d8c2: 4a0e ldr r2, [pc, #56] @ (801d8fc <tcp_input+0x4c4>)
  72891. 801d8c4: 697b ldr r3, [r7, #20]
  72892. 801d8c6: 6013 str r3, [r2, #0]
  72893. #ifdef LWIP_HOOK_TCP_INPACKET_PCB
  72894. if (LWIP_HOOK_TCP_INPACKET_PCB((struct tcp_pcb *)lpcb, tcphdr, tcphdr_optlen,
  72895. tcphdr_opt1len, tcphdr_opt2, p) == ERR_OK)
  72896. #endif
  72897. {
  72898. tcp_listen_input(lpcb);
  72899. 801d8c8: 6978 ldr r0, [r7, #20]
  72900. 801d8ca: f000 fa03 bl 801dcd4 <tcp_listen_input>
  72901. }
  72902. pbuf_free(p);
  72903. 801d8ce: 6878 ldr r0, [r7, #4]
  72904. 801d8d0: f7fd fccc bl 801b26c <pbuf_free>
  72905. return;
  72906. 801d8d4: e1a8 b.n 801dc28 <tcp_input+0x7f0>
  72907. 801d8d6: bf00 nop
  72908. 801d8d8: 2402af94 .word 0x2402af94
  72909. 801d8dc: 24024418 .word 0x24024418
  72910. 801d8e0: 0802fbf4 .word 0x0802fbf4
  72911. 801d8e4: 0802fd20 .word 0x0802fd20
  72912. 801d8e8: 0802fc40 .word 0x0802fc40
  72913. 801d8ec: 2402af74 .word 0x2402af74
  72914. 801d8f0: 0802fd4c .word 0x0802fd4c
  72915. 801d8f4: 2402af78 .word 0x2402af78
  72916. 801d8f8: 0802fd78 .word 0x0802fd78
  72917. 801d8fc: 2402af70 .word 0x2402af70
  72918. tcphdr_opt1len, tcphdr_opt2, p) != ERR_OK) {
  72919. pbuf_free(p);
  72920. return;
  72921. }
  72922. #endif
  72923. if (pcb != NULL) {
  72924. 801d900: 69bb ldr r3, [r7, #24]
  72925. 801d902: 2b00 cmp r3, #0
  72926. 801d904: f000 8158 beq.w 801dbb8 <tcp_input+0x780>
  72927. #if TCP_INPUT_DEBUG
  72928. tcp_debug_print_state(pcb->state);
  72929. #endif /* TCP_INPUT_DEBUG */
  72930. /* Set up a tcp_seg structure. */
  72931. inseg.next = NULL;
  72932. 801d908: 4b95 ldr r3, [pc, #596] @ (801db60 <tcp_input+0x728>)
  72933. 801d90a: 2200 movs r2, #0
  72934. 801d90c: 601a str r2, [r3, #0]
  72935. inseg.len = p->tot_len;
  72936. 801d90e: 687b ldr r3, [r7, #4]
  72937. 801d910: 891a ldrh r2, [r3, #8]
  72938. 801d912: 4b93 ldr r3, [pc, #588] @ (801db60 <tcp_input+0x728>)
  72939. 801d914: 811a strh r2, [r3, #8]
  72940. inseg.p = p;
  72941. 801d916: 4a92 ldr r2, [pc, #584] @ (801db60 <tcp_input+0x728>)
  72942. 801d918: 687b ldr r3, [r7, #4]
  72943. 801d91a: 6053 str r3, [r2, #4]
  72944. inseg.tcphdr = tcphdr;
  72945. 801d91c: 4b91 ldr r3, [pc, #580] @ (801db64 <tcp_input+0x72c>)
  72946. 801d91e: 681b ldr r3, [r3, #0]
  72947. 801d920: 4a8f ldr r2, [pc, #572] @ (801db60 <tcp_input+0x728>)
  72948. 801d922: 6113 str r3, [r2, #16]
  72949. recv_data = NULL;
  72950. 801d924: 4b90 ldr r3, [pc, #576] @ (801db68 <tcp_input+0x730>)
  72951. 801d926: 2200 movs r2, #0
  72952. 801d928: 601a str r2, [r3, #0]
  72953. recv_flags = 0;
  72954. 801d92a: 4b90 ldr r3, [pc, #576] @ (801db6c <tcp_input+0x734>)
  72955. 801d92c: 2200 movs r2, #0
  72956. 801d92e: 701a strb r2, [r3, #0]
  72957. recv_acked = 0;
  72958. 801d930: 4b8f ldr r3, [pc, #572] @ (801db70 <tcp_input+0x738>)
  72959. 801d932: 2200 movs r2, #0
  72960. 801d934: 801a strh r2, [r3, #0]
  72961. if (flags & TCP_PSH) {
  72962. 801d936: 4b8f ldr r3, [pc, #572] @ (801db74 <tcp_input+0x73c>)
  72963. 801d938: 781b ldrb r3, [r3, #0]
  72964. 801d93a: f003 0308 and.w r3, r3, #8
  72965. 801d93e: 2b00 cmp r3, #0
  72966. 801d940: d006 beq.n 801d950 <tcp_input+0x518>
  72967. p->flags |= PBUF_FLAG_PUSH;
  72968. 801d942: 687b ldr r3, [r7, #4]
  72969. 801d944: 7b5b ldrb r3, [r3, #13]
  72970. 801d946: f043 0301 orr.w r3, r3, #1
  72971. 801d94a: b2da uxtb r2, r3
  72972. 801d94c: 687b ldr r3, [r7, #4]
  72973. 801d94e: 735a strb r2, [r3, #13]
  72974. }
  72975. /* If there is data which was previously "refused" by upper layer */
  72976. if (pcb->refused_data != NULL) {
  72977. 801d950: 69bb ldr r3, [r7, #24]
  72978. 801d952: 6f9b ldr r3, [r3, #120] @ 0x78
  72979. 801d954: 2b00 cmp r3, #0
  72980. 801d956: d017 beq.n 801d988 <tcp_input+0x550>
  72981. if ((tcp_process_refused_data(pcb) == ERR_ABRT) ||
  72982. 801d958: 69b8 ldr r0, [r7, #24]
  72983. 801d95a: f7ff f84d bl 801c9f8 <tcp_process_refused_data>
  72984. 801d95e: 4603 mov r3, r0
  72985. 801d960: f113 0f0d cmn.w r3, #13
  72986. 801d964: d007 beq.n 801d976 <tcp_input+0x53e>
  72987. ((pcb->refused_data != NULL) && (tcplen > 0))) {
  72988. 801d966: 69bb ldr r3, [r7, #24]
  72989. 801d968: 6f9b ldr r3, [r3, #120] @ 0x78
  72990. if ((tcp_process_refused_data(pcb) == ERR_ABRT) ||
  72991. 801d96a: 2b00 cmp r3, #0
  72992. 801d96c: d00c beq.n 801d988 <tcp_input+0x550>
  72993. ((pcb->refused_data != NULL) && (tcplen > 0))) {
  72994. 801d96e: 4b82 ldr r3, [pc, #520] @ (801db78 <tcp_input+0x740>)
  72995. 801d970: 881b ldrh r3, [r3, #0]
  72996. 801d972: 2b00 cmp r3, #0
  72997. 801d974: d008 beq.n 801d988 <tcp_input+0x550>
  72998. /* pcb has been aborted or refused data is still refused and the new
  72999. segment contains data */
  73000. if (pcb->rcv_ann_wnd == 0) {
  73001. 801d976: 69bb ldr r3, [r7, #24]
  73002. 801d978: 8d5b ldrh r3, [r3, #42] @ 0x2a
  73003. 801d97a: 2b00 cmp r3, #0
  73004. 801d97c: f040 80e4 bne.w 801db48 <tcp_input+0x710>
  73005. /* this is a zero-window probe, we respond to it with current RCV.NXT
  73006. and drop the data segment */
  73007. tcp_send_empty_ack(pcb);
  73008. 801d980: 69b8 ldr r0, [r7, #24]
  73009. 801d982: f003 fe73 bl 802166c <tcp_send_empty_ack>
  73010. }
  73011. TCP_STATS_INC(tcp.drop);
  73012. MIB2_STATS_INC(mib2.tcpinerrs);
  73013. goto aborted;
  73014. 801d986: e0df b.n 801db48 <tcp_input+0x710>
  73015. }
  73016. }
  73017. tcp_input_pcb = pcb;
  73018. 801d988: 4a7c ldr r2, [pc, #496] @ (801db7c <tcp_input+0x744>)
  73019. 801d98a: 69bb ldr r3, [r7, #24]
  73020. 801d98c: 6013 str r3, [r2, #0]
  73021. err = tcp_process(pcb);
  73022. 801d98e: 69b8 ldr r0, [r7, #24]
  73023. 801d990: f000 fb18 bl 801dfc4 <tcp_process>
  73024. 801d994: 4603 mov r3, r0
  73025. 801d996: 74fb strb r3, [r7, #19]
  73026. /* A return value of ERR_ABRT means that tcp_abort() was called
  73027. and that the pcb has been freed. If so, we don't do anything. */
  73028. if (err != ERR_ABRT) {
  73029. 801d998: f997 3013 ldrsb.w r3, [r7, #19]
  73030. 801d99c: f113 0f0d cmn.w r3, #13
  73031. 801d9a0: f000 80d4 beq.w 801db4c <tcp_input+0x714>
  73032. if (recv_flags & TF_RESET) {
  73033. 801d9a4: 4b71 ldr r3, [pc, #452] @ (801db6c <tcp_input+0x734>)
  73034. 801d9a6: 781b ldrb r3, [r3, #0]
  73035. 801d9a8: f003 0308 and.w r3, r3, #8
  73036. 801d9ac: 2b00 cmp r3, #0
  73037. 801d9ae: d015 beq.n 801d9dc <tcp_input+0x5a4>
  73038. /* TF_RESET means that the connection was reset by the other
  73039. end. We then call the error callback to inform the
  73040. application that the connection is dead before we
  73041. deallocate the PCB. */
  73042. TCP_EVENT_ERR(pcb->state, pcb->errf, pcb->callback_arg, ERR_RST);
  73043. 801d9b0: 69bb ldr r3, [r7, #24]
  73044. 801d9b2: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  73045. 801d9b6: 2b00 cmp r3, #0
  73046. 801d9b8: d008 beq.n 801d9cc <tcp_input+0x594>
  73047. 801d9ba: 69bb ldr r3, [r7, #24]
  73048. 801d9bc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  73049. 801d9c0: 69ba ldr r2, [r7, #24]
  73050. 801d9c2: 6912 ldr r2, [r2, #16]
  73051. 801d9c4: f06f 010d mvn.w r1, #13
  73052. 801d9c8: 4610 mov r0, r2
  73053. 801d9ca: 4798 blx r3
  73054. tcp_pcb_remove(&tcp_active_pcbs, pcb);
  73055. 801d9cc: 69b9 ldr r1, [r7, #24]
  73056. 801d9ce: 486c ldr r0, [pc, #432] @ (801db80 <tcp_input+0x748>)
  73057. 801d9d0: f7ff fbba bl 801d148 <tcp_pcb_remove>
  73058. tcp_free(pcb);
  73059. 801d9d4: 69b8 ldr r0, [r7, #24]
  73060. 801d9d6: f7fd ff05 bl 801b7e4 <tcp_free>
  73061. 801d9da: e0da b.n 801db92 <tcp_input+0x75a>
  73062. } else {
  73063. err = ERR_OK;
  73064. 801d9dc: 2300 movs r3, #0
  73065. 801d9de: 74fb strb r3, [r7, #19]
  73066. /* If the application has registered a "sent" function to be
  73067. called when new send buffer space is available, we call it
  73068. now. */
  73069. if (recv_acked > 0) {
  73070. 801d9e0: 4b63 ldr r3, [pc, #396] @ (801db70 <tcp_input+0x738>)
  73071. 801d9e2: 881b ldrh r3, [r3, #0]
  73072. 801d9e4: 2b00 cmp r3, #0
  73073. 801d9e6: d01d beq.n 801da24 <tcp_input+0x5ec>
  73074. while (acked > 0) {
  73075. acked16 = (u16_t)LWIP_MIN(acked, 0xffffu);
  73076. acked -= acked16;
  73077. #else
  73078. {
  73079. acked16 = recv_acked;
  73080. 801d9e8: 4b61 ldr r3, [pc, #388] @ (801db70 <tcp_input+0x738>)
  73081. 801d9ea: 881b ldrh r3, [r3, #0]
  73082. 801d9ec: 81fb strh r3, [r7, #14]
  73083. #endif
  73084. TCP_EVENT_SENT(pcb, (u16_t)acked16, err);
  73085. 801d9ee: 69bb ldr r3, [r7, #24]
  73086. 801d9f0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  73087. 801d9f4: 2b00 cmp r3, #0
  73088. 801d9f6: d00a beq.n 801da0e <tcp_input+0x5d6>
  73089. 801d9f8: 69bb ldr r3, [r7, #24]
  73090. 801d9fa: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  73091. 801d9fe: 69ba ldr r2, [r7, #24]
  73092. 801da00: 6910 ldr r0, [r2, #16]
  73093. 801da02: 89fa ldrh r2, [r7, #14]
  73094. 801da04: 69b9 ldr r1, [r7, #24]
  73095. 801da06: 4798 blx r3
  73096. 801da08: 4603 mov r3, r0
  73097. 801da0a: 74fb strb r3, [r7, #19]
  73098. 801da0c: e001 b.n 801da12 <tcp_input+0x5da>
  73099. 801da0e: 2300 movs r3, #0
  73100. 801da10: 74fb strb r3, [r7, #19]
  73101. if (err == ERR_ABRT) {
  73102. 801da12: f997 3013 ldrsb.w r3, [r7, #19]
  73103. 801da16: f113 0f0d cmn.w r3, #13
  73104. 801da1a: f000 8099 beq.w 801db50 <tcp_input+0x718>
  73105. goto aborted;
  73106. }
  73107. }
  73108. recv_acked = 0;
  73109. 801da1e: 4b54 ldr r3, [pc, #336] @ (801db70 <tcp_input+0x738>)
  73110. 801da20: 2200 movs r2, #0
  73111. 801da22: 801a strh r2, [r3, #0]
  73112. }
  73113. if (tcp_input_delayed_close(pcb)) {
  73114. 801da24: 69b8 ldr r0, [r7, #24]
  73115. 801da26: f000 f915 bl 801dc54 <tcp_input_delayed_close>
  73116. 801da2a: 4603 mov r3, r0
  73117. 801da2c: 2b00 cmp r3, #0
  73118. 801da2e: f040 8091 bne.w 801db54 <tcp_input+0x71c>
  73119. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  73120. while (recv_data != NULL) {
  73121. struct pbuf *rest = NULL;
  73122. pbuf_split_64k(recv_data, &rest);
  73123. #else /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  73124. if (recv_data != NULL) {
  73125. 801da32: 4b4d ldr r3, [pc, #308] @ (801db68 <tcp_input+0x730>)
  73126. 801da34: 681b ldr r3, [r3, #0]
  73127. 801da36: 2b00 cmp r3, #0
  73128. 801da38: d041 beq.n 801dabe <tcp_input+0x686>
  73129. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  73130. LWIP_ASSERT("pcb->refused_data == NULL", pcb->refused_data == NULL);
  73131. 801da3a: 69bb ldr r3, [r7, #24]
  73132. 801da3c: 6f9b ldr r3, [r3, #120] @ 0x78
  73133. 801da3e: 2b00 cmp r3, #0
  73134. 801da40: d006 beq.n 801da50 <tcp_input+0x618>
  73135. 801da42: 4b50 ldr r3, [pc, #320] @ (801db84 <tcp_input+0x74c>)
  73136. 801da44: f44f 72f3 mov.w r2, #486 @ 0x1e6
  73137. 801da48: 494f ldr r1, [pc, #316] @ (801db88 <tcp_input+0x750>)
  73138. 801da4a: 4850 ldr r0, [pc, #320] @ (801db8c <tcp_input+0x754>)
  73139. 801da4c: f00c fe86 bl 802a75c <iprintf>
  73140. if (pcb->flags & TF_RXCLOSED) {
  73141. 801da50: 69bb ldr r3, [r7, #24]
  73142. 801da52: 8b5b ldrh r3, [r3, #26]
  73143. 801da54: f003 0310 and.w r3, r3, #16
  73144. 801da58: 2b00 cmp r3, #0
  73145. 801da5a: d008 beq.n 801da6e <tcp_input+0x636>
  73146. /* received data although already closed -> abort (send RST) to
  73147. notify the remote host that not all data has been processed */
  73148. pbuf_free(recv_data);
  73149. 801da5c: 4b42 ldr r3, [pc, #264] @ (801db68 <tcp_input+0x730>)
  73150. 801da5e: 681b ldr r3, [r3, #0]
  73151. 801da60: 4618 mov r0, r3
  73152. 801da62: f7fd fc03 bl 801b26c <pbuf_free>
  73153. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  73154. if (rest != NULL) {
  73155. pbuf_free(rest);
  73156. }
  73157. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  73158. tcp_abort(pcb);
  73159. 801da66: 69b8 ldr r0, [r7, #24]
  73160. 801da68: f7fe fa06 bl 801be78 <tcp_abort>
  73161. goto aborted;
  73162. 801da6c: e091 b.n 801db92 <tcp_input+0x75a>
  73163. }
  73164. /* Notify application that data has been received. */
  73165. TCP_EVENT_RECV(pcb, recv_data, ERR_OK, err);
  73166. 801da6e: 69bb ldr r3, [r7, #24]
  73167. 801da70: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  73168. 801da74: 2b00 cmp r3, #0
  73169. 801da76: d00c beq.n 801da92 <tcp_input+0x65a>
  73170. 801da78: 69bb ldr r3, [r7, #24]
  73171. 801da7a: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  73172. 801da7e: 69bb ldr r3, [r7, #24]
  73173. 801da80: 6918 ldr r0, [r3, #16]
  73174. 801da82: 4b39 ldr r3, [pc, #228] @ (801db68 <tcp_input+0x730>)
  73175. 801da84: 681a ldr r2, [r3, #0]
  73176. 801da86: 2300 movs r3, #0
  73177. 801da88: 69b9 ldr r1, [r7, #24]
  73178. 801da8a: 47a0 blx r4
  73179. 801da8c: 4603 mov r3, r0
  73180. 801da8e: 74fb strb r3, [r7, #19]
  73181. 801da90: e008 b.n 801daa4 <tcp_input+0x66c>
  73182. 801da92: 4b35 ldr r3, [pc, #212] @ (801db68 <tcp_input+0x730>)
  73183. 801da94: 681a ldr r2, [r3, #0]
  73184. 801da96: 2300 movs r3, #0
  73185. 801da98: 69b9 ldr r1, [r7, #24]
  73186. 801da9a: 2000 movs r0, #0
  73187. 801da9c: f7ff f884 bl 801cba8 <tcp_recv_null>
  73188. 801daa0: 4603 mov r3, r0
  73189. 801daa2: 74fb strb r3, [r7, #19]
  73190. if (err == ERR_ABRT) {
  73191. 801daa4: f997 3013 ldrsb.w r3, [r7, #19]
  73192. 801daa8: f113 0f0d cmn.w r3, #13
  73193. 801daac: d054 beq.n 801db58 <tcp_input+0x720>
  73194. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  73195. goto aborted;
  73196. }
  73197. /* If the upper layer can't receive this data, store it */
  73198. if (err != ERR_OK) {
  73199. 801daae: f997 3013 ldrsb.w r3, [r7, #19]
  73200. 801dab2: 2b00 cmp r3, #0
  73201. 801dab4: d003 beq.n 801dabe <tcp_input+0x686>
  73202. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  73203. if (rest != NULL) {
  73204. pbuf_cat(recv_data, rest);
  73205. }
  73206. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  73207. pcb->refused_data = recv_data;
  73208. 801dab6: 4b2c ldr r3, [pc, #176] @ (801db68 <tcp_input+0x730>)
  73209. 801dab8: 681a ldr r2, [r3, #0]
  73210. 801daba: 69bb ldr r3, [r7, #24]
  73211. 801dabc: 679a str r2, [r3, #120] @ 0x78
  73212. }
  73213. }
  73214. /* If a FIN segment was received, we call the callback
  73215. function with a NULL buffer to indicate EOF. */
  73216. if (recv_flags & TF_GOT_FIN) {
  73217. 801dabe: 4b2b ldr r3, [pc, #172] @ (801db6c <tcp_input+0x734>)
  73218. 801dac0: 781b ldrb r3, [r3, #0]
  73219. 801dac2: f003 0320 and.w r3, r3, #32
  73220. 801dac6: 2b00 cmp r3, #0
  73221. 801dac8: d031 beq.n 801db2e <tcp_input+0x6f6>
  73222. if (pcb->refused_data != NULL) {
  73223. 801daca: 69bb ldr r3, [r7, #24]
  73224. 801dacc: 6f9b ldr r3, [r3, #120] @ 0x78
  73225. 801dace: 2b00 cmp r3, #0
  73226. 801dad0: d009 beq.n 801dae6 <tcp_input+0x6ae>
  73227. /* Delay this if we have refused data. */
  73228. pcb->refused_data->flags |= PBUF_FLAG_TCP_FIN;
  73229. 801dad2: 69bb ldr r3, [r7, #24]
  73230. 801dad4: 6f9b ldr r3, [r3, #120] @ 0x78
  73231. 801dad6: 7b5a ldrb r2, [r3, #13]
  73232. 801dad8: 69bb ldr r3, [r7, #24]
  73233. 801dada: 6f9b ldr r3, [r3, #120] @ 0x78
  73234. 801dadc: f042 0220 orr.w r2, r2, #32
  73235. 801dae0: b2d2 uxtb r2, r2
  73236. 801dae2: 735a strb r2, [r3, #13]
  73237. 801dae4: e023 b.n 801db2e <tcp_input+0x6f6>
  73238. } else {
  73239. /* correct rcv_wnd as the application won't call tcp_recved()
  73240. for the FIN's seqno */
  73241. if (pcb->rcv_wnd != TCP_WND_MAX(pcb)) {
  73242. 801dae6: 69bb ldr r3, [r7, #24]
  73243. 801dae8: 8d1b ldrh r3, [r3, #40] @ 0x28
  73244. 801daea: f241 62d0 movw r2, #5840 @ 0x16d0
  73245. 801daee: 4293 cmp r3, r2
  73246. 801daf0: d005 beq.n 801dafe <tcp_input+0x6c6>
  73247. pcb->rcv_wnd++;
  73248. 801daf2: 69bb ldr r3, [r7, #24]
  73249. 801daf4: 8d1b ldrh r3, [r3, #40] @ 0x28
  73250. 801daf6: 3301 adds r3, #1
  73251. 801daf8: b29a uxth r2, r3
  73252. 801dafa: 69bb ldr r3, [r7, #24]
  73253. 801dafc: 851a strh r2, [r3, #40] @ 0x28
  73254. }
  73255. TCP_EVENT_CLOSED(pcb, err);
  73256. 801dafe: 69bb ldr r3, [r7, #24]
  73257. 801db00: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  73258. 801db04: 2b00 cmp r3, #0
  73259. 801db06: d00b beq.n 801db20 <tcp_input+0x6e8>
  73260. 801db08: 69bb ldr r3, [r7, #24]
  73261. 801db0a: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  73262. 801db0e: 69bb ldr r3, [r7, #24]
  73263. 801db10: 6918 ldr r0, [r3, #16]
  73264. 801db12: 2300 movs r3, #0
  73265. 801db14: 2200 movs r2, #0
  73266. 801db16: 69b9 ldr r1, [r7, #24]
  73267. 801db18: 47a0 blx r4
  73268. 801db1a: 4603 mov r3, r0
  73269. 801db1c: 74fb strb r3, [r7, #19]
  73270. 801db1e: e001 b.n 801db24 <tcp_input+0x6ec>
  73271. 801db20: 2300 movs r3, #0
  73272. 801db22: 74fb strb r3, [r7, #19]
  73273. if (err == ERR_ABRT) {
  73274. 801db24: f997 3013 ldrsb.w r3, [r7, #19]
  73275. 801db28: f113 0f0d cmn.w r3, #13
  73276. 801db2c: d016 beq.n 801db5c <tcp_input+0x724>
  73277. goto aborted;
  73278. }
  73279. }
  73280. }
  73281. tcp_input_pcb = NULL;
  73282. 801db2e: 4b13 ldr r3, [pc, #76] @ (801db7c <tcp_input+0x744>)
  73283. 801db30: 2200 movs r2, #0
  73284. 801db32: 601a str r2, [r3, #0]
  73285. if (tcp_input_delayed_close(pcb)) {
  73286. 801db34: 69b8 ldr r0, [r7, #24]
  73287. 801db36: f000 f88d bl 801dc54 <tcp_input_delayed_close>
  73288. 801db3a: 4603 mov r3, r0
  73289. 801db3c: 2b00 cmp r3, #0
  73290. 801db3e: d127 bne.n 801db90 <tcp_input+0x758>
  73291. goto aborted;
  73292. }
  73293. /* Try to send something out. */
  73294. tcp_output(pcb);
  73295. 801db40: 69b8 ldr r0, [r7, #24]
  73296. 801db42: f002 ff7f bl 8020a44 <tcp_output>
  73297. 801db46: e024 b.n 801db92 <tcp_input+0x75a>
  73298. goto aborted;
  73299. 801db48: bf00 nop
  73300. 801db4a: e022 b.n 801db92 <tcp_input+0x75a>
  73301. #endif /* TCP_INPUT_DEBUG */
  73302. }
  73303. }
  73304. /* Jump target if pcb has been aborted in a callback (by calling tcp_abort()).
  73305. Below this line, 'pcb' may not be dereferenced! */
  73306. aborted:
  73307. 801db4c: bf00 nop
  73308. 801db4e: e020 b.n 801db92 <tcp_input+0x75a>
  73309. goto aborted;
  73310. 801db50: bf00 nop
  73311. 801db52: e01e b.n 801db92 <tcp_input+0x75a>
  73312. goto aborted;
  73313. 801db54: bf00 nop
  73314. 801db56: e01c b.n 801db92 <tcp_input+0x75a>
  73315. goto aborted;
  73316. 801db58: bf00 nop
  73317. 801db5a: e01a b.n 801db92 <tcp_input+0x75a>
  73318. goto aborted;
  73319. 801db5c: bf00 nop
  73320. 801db5e: e018 b.n 801db92 <tcp_input+0x75a>
  73321. 801db60: 2402af80 .word 0x2402af80
  73322. 801db64: 2402af94 .word 0x2402af94
  73323. 801db68: 2402afb4 .word 0x2402afb4
  73324. 801db6c: 2402afb1 .word 0x2402afb1
  73325. 801db70: 2402afac .word 0x2402afac
  73326. 801db74: 2402afb0 .word 0x2402afb0
  73327. 801db78: 2402afae .word 0x2402afae
  73328. 801db7c: 2402afb8 .word 0x2402afb8
  73329. 801db80: 2402af74 .word 0x2402af74
  73330. 801db84: 0802fbf4 .word 0x0802fbf4
  73331. 801db88: 0802fda8 .word 0x0802fda8
  73332. 801db8c: 0802fc40 .word 0x0802fc40
  73333. goto aborted;
  73334. 801db90: bf00 nop
  73335. tcp_input_pcb = NULL;
  73336. 801db92: 4b27 ldr r3, [pc, #156] @ (801dc30 <tcp_input+0x7f8>)
  73337. 801db94: 2200 movs r2, #0
  73338. 801db96: 601a str r2, [r3, #0]
  73339. recv_data = NULL;
  73340. 801db98: 4b26 ldr r3, [pc, #152] @ (801dc34 <tcp_input+0x7fc>)
  73341. 801db9a: 2200 movs r2, #0
  73342. 801db9c: 601a str r2, [r3, #0]
  73343. /* give up our reference to inseg.p */
  73344. if (inseg.p != NULL) {
  73345. 801db9e: 4b26 ldr r3, [pc, #152] @ (801dc38 <tcp_input+0x800>)
  73346. 801dba0: 685b ldr r3, [r3, #4]
  73347. 801dba2: 2b00 cmp r3, #0
  73348. 801dba4: d03f beq.n 801dc26 <tcp_input+0x7ee>
  73349. pbuf_free(inseg.p);
  73350. 801dba6: 4b24 ldr r3, [pc, #144] @ (801dc38 <tcp_input+0x800>)
  73351. 801dba8: 685b ldr r3, [r3, #4]
  73352. 801dbaa: 4618 mov r0, r3
  73353. 801dbac: f7fd fb5e bl 801b26c <pbuf_free>
  73354. inseg.p = NULL;
  73355. 801dbb0: 4b21 ldr r3, [pc, #132] @ (801dc38 <tcp_input+0x800>)
  73356. 801dbb2: 2200 movs r2, #0
  73357. 801dbb4: 605a str r2, [r3, #4]
  73358. pbuf_free(p);
  73359. }
  73360. LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane());
  73361. PERF_STOP("tcp_input");
  73362. return;
  73363. 801dbb6: e036 b.n 801dc26 <tcp_input+0x7ee>
  73364. if (!(TCPH_FLAGS(tcphdr) & TCP_RST)) {
  73365. 801dbb8: 4b20 ldr r3, [pc, #128] @ (801dc3c <tcp_input+0x804>)
  73366. 801dbba: 681b ldr r3, [r3, #0]
  73367. 801dbbc: 899b ldrh r3, [r3, #12]
  73368. 801dbbe: b29b uxth r3, r3
  73369. 801dbc0: 4618 mov r0, r3
  73370. 801dbc2: f7fb fe71 bl 80198a8 <lwip_htons>
  73371. 801dbc6: 4603 mov r3, r0
  73372. 801dbc8: b2db uxtb r3, r3
  73373. 801dbca: f003 0304 and.w r3, r3, #4
  73374. 801dbce: 2b00 cmp r3, #0
  73375. 801dbd0: d118 bne.n 801dc04 <tcp_input+0x7cc>
  73376. tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(),
  73377. 801dbd2: 4b1b ldr r3, [pc, #108] @ (801dc40 <tcp_input+0x808>)
  73378. 801dbd4: 6819 ldr r1, [r3, #0]
  73379. 801dbd6: 4b1b ldr r3, [pc, #108] @ (801dc44 <tcp_input+0x80c>)
  73380. 801dbd8: 881b ldrh r3, [r3, #0]
  73381. 801dbda: 461a mov r2, r3
  73382. 801dbdc: 4b1a ldr r3, [pc, #104] @ (801dc48 <tcp_input+0x810>)
  73383. 801dbde: 681b ldr r3, [r3, #0]
  73384. 801dbe0: 18d0 adds r0, r2, r3
  73385. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  73386. 801dbe2: 4b16 ldr r3, [pc, #88] @ (801dc3c <tcp_input+0x804>)
  73387. 801dbe4: 681b ldr r3, [r3, #0]
  73388. tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(),
  73389. 801dbe6: 885b ldrh r3, [r3, #2]
  73390. 801dbe8: b29b uxth r3, r3
  73391. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  73392. 801dbea: 4a14 ldr r2, [pc, #80] @ (801dc3c <tcp_input+0x804>)
  73393. 801dbec: 6812 ldr r2, [r2, #0]
  73394. tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(),
  73395. 801dbee: 8812 ldrh r2, [r2, #0]
  73396. 801dbf0: b292 uxth r2, r2
  73397. 801dbf2: 9202 str r2, [sp, #8]
  73398. 801dbf4: 9301 str r3, [sp, #4]
  73399. 801dbf6: 4b15 ldr r3, [pc, #84] @ (801dc4c <tcp_input+0x814>)
  73400. 801dbf8: 9300 str r3, [sp, #0]
  73401. 801dbfa: 4b15 ldr r3, [pc, #84] @ (801dc50 <tcp_input+0x818>)
  73402. 801dbfc: 4602 mov r2, r0
  73403. 801dbfe: 2000 movs r0, #0
  73404. 801dc00: f003 fce2 bl 80215c8 <tcp_rst>
  73405. pbuf_free(p);
  73406. 801dc04: 6878 ldr r0, [r7, #4]
  73407. 801dc06: f7fd fb31 bl 801b26c <pbuf_free>
  73408. return;
  73409. 801dc0a: e00c b.n 801dc26 <tcp_input+0x7ee>
  73410. goto dropped;
  73411. 801dc0c: bf00 nop
  73412. 801dc0e: e006 b.n 801dc1e <tcp_input+0x7e6>
  73413. goto dropped;
  73414. 801dc10: bf00 nop
  73415. 801dc12: e004 b.n 801dc1e <tcp_input+0x7e6>
  73416. goto dropped;
  73417. 801dc14: bf00 nop
  73418. 801dc16: e002 b.n 801dc1e <tcp_input+0x7e6>
  73419. goto dropped;
  73420. 801dc18: bf00 nop
  73421. 801dc1a: e000 b.n 801dc1e <tcp_input+0x7e6>
  73422. goto dropped;
  73423. 801dc1c: bf00 nop
  73424. dropped:
  73425. TCP_STATS_INC(tcp.drop);
  73426. MIB2_STATS_INC(mib2.tcpinerrs);
  73427. pbuf_free(p);
  73428. 801dc1e: 6878 ldr r0, [r7, #4]
  73429. 801dc20: f7fd fb24 bl 801b26c <pbuf_free>
  73430. 801dc24: e000 b.n 801dc28 <tcp_input+0x7f0>
  73431. return;
  73432. 801dc26: bf00 nop
  73433. }
  73434. 801dc28: 3724 adds r7, #36 @ 0x24
  73435. 801dc2a: 46bd mov sp, r7
  73436. 801dc2c: bd90 pop {r4, r7, pc}
  73437. 801dc2e: bf00 nop
  73438. 801dc30: 2402afb8 .word 0x2402afb8
  73439. 801dc34: 2402afb4 .word 0x2402afb4
  73440. 801dc38: 2402af80 .word 0x2402af80
  73441. 801dc3c: 2402af94 .word 0x2402af94
  73442. 801dc40: 2402afa8 .word 0x2402afa8
  73443. 801dc44: 2402afae .word 0x2402afae
  73444. 801dc48: 2402afa4 .word 0x2402afa4
  73445. 801dc4c: 24024428 .word 0x24024428
  73446. 801dc50: 2402442c .word 0x2402442c
  73447. 0801dc54 <tcp_input_delayed_close>:
  73448. * any more.
  73449. * @returns 1 if the pcb has been closed and deallocated, 0 otherwise
  73450. */
  73451. static int
  73452. tcp_input_delayed_close(struct tcp_pcb *pcb)
  73453. {
  73454. 801dc54: b580 push {r7, lr}
  73455. 801dc56: b082 sub sp, #8
  73456. 801dc58: af00 add r7, sp, #0
  73457. 801dc5a: 6078 str r0, [r7, #4]
  73458. LWIP_ASSERT("tcp_input_delayed_close: invalid pcb", pcb != NULL);
  73459. 801dc5c: 687b ldr r3, [r7, #4]
  73460. 801dc5e: 2b00 cmp r3, #0
  73461. 801dc60: d106 bne.n 801dc70 <tcp_input_delayed_close+0x1c>
  73462. 801dc62: 4b17 ldr r3, [pc, #92] @ (801dcc0 <tcp_input_delayed_close+0x6c>)
  73463. 801dc64: f240 225a movw r2, #602 @ 0x25a
  73464. 801dc68: 4916 ldr r1, [pc, #88] @ (801dcc4 <tcp_input_delayed_close+0x70>)
  73465. 801dc6a: 4817 ldr r0, [pc, #92] @ (801dcc8 <tcp_input_delayed_close+0x74>)
  73466. 801dc6c: f00c fd76 bl 802a75c <iprintf>
  73467. if (recv_flags & TF_CLOSED) {
  73468. 801dc70: 4b16 ldr r3, [pc, #88] @ (801dccc <tcp_input_delayed_close+0x78>)
  73469. 801dc72: 781b ldrb r3, [r3, #0]
  73470. 801dc74: f003 0310 and.w r3, r3, #16
  73471. 801dc78: 2b00 cmp r3, #0
  73472. 801dc7a: d01c beq.n 801dcb6 <tcp_input_delayed_close+0x62>
  73473. /* The connection has been closed and we will deallocate the
  73474. PCB. */
  73475. if (!(pcb->flags & TF_RXCLOSED)) {
  73476. 801dc7c: 687b ldr r3, [r7, #4]
  73477. 801dc7e: 8b5b ldrh r3, [r3, #26]
  73478. 801dc80: f003 0310 and.w r3, r3, #16
  73479. 801dc84: 2b00 cmp r3, #0
  73480. 801dc86: d10d bne.n 801dca4 <tcp_input_delayed_close+0x50>
  73481. /* Connection closed although the application has only shut down the
  73482. tx side: call the PCB's err callback and indicate the closure to
  73483. ensure the application doesn't continue using the PCB. */
  73484. TCP_EVENT_ERR(pcb->state, pcb->errf, pcb->callback_arg, ERR_CLSD);
  73485. 801dc88: 687b ldr r3, [r7, #4]
  73486. 801dc8a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  73487. 801dc8e: 2b00 cmp r3, #0
  73488. 801dc90: d008 beq.n 801dca4 <tcp_input_delayed_close+0x50>
  73489. 801dc92: 687b ldr r3, [r7, #4]
  73490. 801dc94: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  73491. 801dc98: 687a ldr r2, [r7, #4]
  73492. 801dc9a: 6912 ldr r2, [r2, #16]
  73493. 801dc9c: f06f 010e mvn.w r1, #14
  73494. 801dca0: 4610 mov r0, r2
  73495. 801dca2: 4798 blx r3
  73496. }
  73497. tcp_pcb_remove(&tcp_active_pcbs, pcb);
  73498. 801dca4: 6879 ldr r1, [r7, #4]
  73499. 801dca6: 480a ldr r0, [pc, #40] @ (801dcd0 <tcp_input_delayed_close+0x7c>)
  73500. 801dca8: f7ff fa4e bl 801d148 <tcp_pcb_remove>
  73501. tcp_free(pcb);
  73502. 801dcac: 6878 ldr r0, [r7, #4]
  73503. 801dcae: f7fd fd99 bl 801b7e4 <tcp_free>
  73504. return 1;
  73505. 801dcb2: 2301 movs r3, #1
  73506. 801dcb4: e000 b.n 801dcb8 <tcp_input_delayed_close+0x64>
  73507. }
  73508. return 0;
  73509. 801dcb6: 2300 movs r3, #0
  73510. }
  73511. 801dcb8: 4618 mov r0, r3
  73512. 801dcba: 3708 adds r7, #8
  73513. 801dcbc: 46bd mov sp, r7
  73514. 801dcbe: bd80 pop {r7, pc}
  73515. 801dcc0: 0802fbf4 .word 0x0802fbf4
  73516. 801dcc4: 0802fdc4 .word 0x0802fdc4
  73517. 801dcc8: 0802fc40 .word 0x0802fc40
  73518. 801dccc: 2402afb1 .word 0x2402afb1
  73519. 801dcd0: 2402af74 .word 0x2402af74
  73520. 0801dcd4 <tcp_listen_input>:
  73521. * @note the segment which arrived is saved in global variables, therefore only the pcb
  73522. * involved is passed as a parameter to this function
  73523. */
  73524. static void
  73525. tcp_listen_input(struct tcp_pcb_listen *pcb)
  73526. {
  73527. 801dcd4: b590 push {r4, r7, lr}
  73528. 801dcd6: b08b sub sp, #44 @ 0x2c
  73529. 801dcd8: af04 add r7, sp, #16
  73530. 801dcda: 6078 str r0, [r7, #4]
  73531. struct tcp_pcb *npcb;
  73532. u32_t iss;
  73533. err_t rc;
  73534. if (flags & TCP_RST) {
  73535. 801dcdc: 4b6f ldr r3, [pc, #444] @ (801de9c <tcp_listen_input+0x1c8>)
  73536. 801dcde: 781b ldrb r3, [r3, #0]
  73537. 801dce0: f003 0304 and.w r3, r3, #4
  73538. 801dce4: 2b00 cmp r3, #0
  73539. 801dce6: f040 80d2 bne.w 801de8e <tcp_listen_input+0x1ba>
  73540. /* An incoming RST should be ignored. Return. */
  73541. return;
  73542. }
  73543. LWIP_ASSERT("tcp_listen_input: invalid pcb", pcb != NULL);
  73544. 801dcea: 687b ldr r3, [r7, #4]
  73545. 801dcec: 2b00 cmp r3, #0
  73546. 801dcee: d106 bne.n 801dcfe <tcp_listen_input+0x2a>
  73547. 801dcf0: 4b6b ldr r3, [pc, #428] @ (801dea0 <tcp_listen_input+0x1cc>)
  73548. 801dcf2: f240 2281 movw r2, #641 @ 0x281
  73549. 801dcf6: 496b ldr r1, [pc, #428] @ (801dea4 <tcp_listen_input+0x1d0>)
  73550. 801dcf8: 486b ldr r0, [pc, #428] @ (801dea8 <tcp_listen_input+0x1d4>)
  73551. 801dcfa: f00c fd2f bl 802a75c <iprintf>
  73552. /* In the LISTEN state, we check for incoming SYN segments,
  73553. creates a new PCB, and responds with a SYN|ACK. */
  73554. if (flags & TCP_ACK) {
  73555. 801dcfe: 4b67 ldr r3, [pc, #412] @ (801de9c <tcp_listen_input+0x1c8>)
  73556. 801dd00: 781b ldrb r3, [r3, #0]
  73557. 801dd02: f003 0310 and.w r3, r3, #16
  73558. 801dd06: 2b00 cmp r3, #0
  73559. 801dd08: d019 beq.n 801dd3e <tcp_listen_input+0x6a>
  73560. /* For incoming segments with the ACK flag set, respond with a
  73561. RST. */
  73562. LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_listen_input: ACK in LISTEN, sending reset\n"));
  73563. tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73564. 801dd0a: 4b68 ldr r3, [pc, #416] @ (801deac <tcp_listen_input+0x1d8>)
  73565. 801dd0c: 6819 ldr r1, [r3, #0]
  73566. 801dd0e: 4b68 ldr r3, [pc, #416] @ (801deb0 <tcp_listen_input+0x1dc>)
  73567. 801dd10: 881b ldrh r3, [r3, #0]
  73568. 801dd12: 461a mov r2, r3
  73569. 801dd14: 4b67 ldr r3, [pc, #412] @ (801deb4 <tcp_listen_input+0x1e0>)
  73570. 801dd16: 681b ldr r3, [r3, #0]
  73571. 801dd18: 18d0 adds r0, r2, r3
  73572. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  73573. 801dd1a: 4b67 ldr r3, [pc, #412] @ (801deb8 <tcp_listen_input+0x1e4>)
  73574. 801dd1c: 681b ldr r3, [r3, #0]
  73575. tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73576. 801dd1e: 885b ldrh r3, [r3, #2]
  73577. 801dd20: b29b uxth r3, r3
  73578. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  73579. 801dd22: 4a65 ldr r2, [pc, #404] @ (801deb8 <tcp_listen_input+0x1e4>)
  73580. 801dd24: 6812 ldr r2, [r2, #0]
  73581. tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73582. 801dd26: 8812 ldrh r2, [r2, #0]
  73583. 801dd28: b292 uxth r2, r2
  73584. 801dd2a: 9202 str r2, [sp, #8]
  73585. 801dd2c: 9301 str r3, [sp, #4]
  73586. 801dd2e: 4b63 ldr r3, [pc, #396] @ (801debc <tcp_listen_input+0x1e8>)
  73587. 801dd30: 9300 str r3, [sp, #0]
  73588. 801dd32: 4b63 ldr r3, [pc, #396] @ (801dec0 <tcp_listen_input+0x1ec>)
  73589. 801dd34: 4602 mov r2, r0
  73590. 801dd36: 6878 ldr r0, [r7, #4]
  73591. 801dd38: f003 fc46 bl 80215c8 <tcp_rst>
  73592. tcp_abandon(npcb, 0);
  73593. return;
  73594. }
  73595. tcp_output(npcb);
  73596. }
  73597. return;
  73598. 801dd3c: e0a9 b.n 801de92 <tcp_listen_input+0x1be>
  73599. } else if (flags & TCP_SYN) {
  73600. 801dd3e: 4b57 ldr r3, [pc, #348] @ (801de9c <tcp_listen_input+0x1c8>)
  73601. 801dd40: 781b ldrb r3, [r3, #0]
  73602. 801dd42: f003 0302 and.w r3, r3, #2
  73603. 801dd46: 2b00 cmp r3, #0
  73604. 801dd48: f000 80a3 beq.w 801de92 <tcp_listen_input+0x1be>
  73605. npcb = tcp_alloc(pcb->prio);
  73606. 801dd4c: 687b ldr r3, [r7, #4]
  73607. 801dd4e: 7d5b ldrb r3, [r3, #21]
  73608. 801dd50: 4618 mov r0, r3
  73609. 801dd52: f7ff f84d bl 801cdf0 <tcp_alloc>
  73610. 801dd56: 6178 str r0, [r7, #20]
  73611. if (npcb == NULL) {
  73612. 801dd58: 697b ldr r3, [r7, #20]
  73613. 801dd5a: 2b00 cmp r3, #0
  73614. 801dd5c: d111 bne.n 801dd82 <tcp_listen_input+0xae>
  73615. TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err);
  73616. 801dd5e: 687b ldr r3, [r7, #4]
  73617. 801dd60: 699b ldr r3, [r3, #24]
  73618. 801dd62: 2b00 cmp r3, #0
  73619. 801dd64: d00a beq.n 801dd7c <tcp_listen_input+0xa8>
  73620. 801dd66: 687b ldr r3, [r7, #4]
  73621. 801dd68: 699b ldr r3, [r3, #24]
  73622. 801dd6a: 687a ldr r2, [r7, #4]
  73623. 801dd6c: 6910 ldr r0, [r2, #16]
  73624. 801dd6e: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  73625. 801dd72: 2100 movs r1, #0
  73626. 801dd74: 4798 blx r3
  73627. 801dd76: 4603 mov r3, r0
  73628. 801dd78: 73bb strb r3, [r7, #14]
  73629. return;
  73630. 801dd7a: e08b b.n 801de94 <tcp_listen_input+0x1c0>
  73631. TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err);
  73632. 801dd7c: 23f0 movs r3, #240 @ 0xf0
  73633. 801dd7e: 73bb strb r3, [r7, #14]
  73634. return;
  73635. 801dd80: e088 b.n 801de94 <tcp_listen_input+0x1c0>
  73636. ip_addr_copy(npcb->local_ip, *ip_current_dest_addr());
  73637. 801dd82: 4b50 ldr r3, [pc, #320] @ (801dec4 <tcp_listen_input+0x1f0>)
  73638. 801dd84: 695a ldr r2, [r3, #20]
  73639. 801dd86: 697b ldr r3, [r7, #20]
  73640. 801dd88: 601a str r2, [r3, #0]
  73641. ip_addr_copy(npcb->remote_ip, *ip_current_src_addr());
  73642. 801dd8a: 4b4e ldr r3, [pc, #312] @ (801dec4 <tcp_listen_input+0x1f0>)
  73643. 801dd8c: 691a ldr r2, [r3, #16]
  73644. 801dd8e: 697b ldr r3, [r7, #20]
  73645. 801dd90: 605a str r2, [r3, #4]
  73646. npcb->local_port = pcb->local_port;
  73647. 801dd92: 687b ldr r3, [r7, #4]
  73648. 801dd94: 8ada ldrh r2, [r3, #22]
  73649. 801dd96: 697b ldr r3, [r7, #20]
  73650. 801dd98: 82da strh r2, [r3, #22]
  73651. npcb->remote_port = tcphdr->src;
  73652. 801dd9a: 4b47 ldr r3, [pc, #284] @ (801deb8 <tcp_listen_input+0x1e4>)
  73653. 801dd9c: 681b ldr r3, [r3, #0]
  73654. 801dd9e: 881b ldrh r3, [r3, #0]
  73655. 801dda0: b29a uxth r2, r3
  73656. 801dda2: 697b ldr r3, [r7, #20]
  73657. 801dda4: 831a strh r2, [r3, #24]
  73658. npcb->state = SYN_RCVD;
  73659. 801dda6: 697b ldr r3, [r7, #20]
  73660. 801dda8: 2203 movs r2, #3
  73661. 801ddaa: 751a strb r2, [r3, #20]
  73662. npcb->rcv_nxt = seqno + 1;
  73663. 801ddac: 4b41 ldr r3, [pc, #260] @ (801deb4 <tcp_listen_input+0x1e0>)
  73664. 801ddae: 681b ldr r3, [r3, #0]
  73665. 801ddb0: 1c5a adds r2, r3, #1
  73666. 801ddb2: 697b ldr r3, [r7, #20]
  73667. 801ddb4: 625a str r2, [r3, #36] @ 0x24
  73668. npcb->rcv_ann_right_edge = npcb->rcv_nxt;
  73669. 801ddb6: 697b ldr r3, [r7, #20]
  73670. 801ddb8: 6a5a ldr r2, [r3, #36] @ 0x24
  73671. 801ddba: 697b ldr r3, [r7, #20]
  73672. 801ddbc: 62da str r2, [r3, #44] @ 0x2c
  73673. iss = tcp_next_iss(npcb);
  73674. 801ddbe: 6978 ldr r0, [r7, #20]
  73675. 801ddc0: f7ff fa56 bl 801d270 <tcp_next_iss>
  73676. 801ddc4: 6138 str r0, [r7, #16]
  73677. npcb->snd_wl2 = iss;
  73678. 801ddc6: 697b ldr r3, [r7, #20]
  73679. 801ddc8: 693a ldr r2, [r7, #16]
  73680. 801ddca: 659a str r2, [r3, #88] @ 0x58
  73681. npcb->snd_nxt = iss;
  73682. 801ddcc: 697b ldr r3, [r7, #20]
  73683. 801ddce: 693a ldr r2, [r7, #16]
  73684. 801ddd0: 651a str r2, [r3, #80] @ 0x50
  73685. npcb->lastack = iss;
  73686. 801ddd2: 697b ldr r3, [r7, #20]
  73687. 801ddd4: 693a ldr r2, [r7, #16]
  73688. 801ddd6: 645a str r2, [r3, #68] @ 0x44
  73689. npcb->snd_lbb = iss;
  73690. 801ddd8: 697b ldr r3, [r7, #20]
  73691. 801ddda: 693a ldr r2, [r7, #16]
  73692. 801dddc: 65da str r2, [r3, #92] @ 0x5c
  73693. npcb->snd_wl1 = seqno - 1;/* initialise to seqno-1 to force window update */
  73694. 801ddde: 4b35 ldr r3, [pc, #212] @ (801deb4 <tcp_listen_input+0x1e0>)
  73695. 801dde0: 681b ldr r3, [r3, #0]
  73696. 801dde2: 1e5a subs r2, r3, #1
  73697. 801dde4: 697b ldr r3, [r7, #20]
  73698. 801dde6: 655a str r2, [r3, #84] @ 0x54
  73699. npcb->callback_arg = pcb->callback_arg;
  73700. 801dde8: 687b ldr r3, [r7, #4]
  73701. 801ddea: 691a ldr r2, [r3, #16]
  73702. 801ddec: 697b ldr r3, [r7, #20]
  73703. 801ddee: 611a str r2, [r3, #16]
  73704. npcb->listener = pcb;
  73705. 801ddf0: 697b ldr r3, [r7, #20]
  73706. 801ddf2: 687a ldr r2, [r7, #4]
  73707. 801ddf4: 67da str r2, [r3, #124] @ 0x7c
  73708. npcb->so_options = pcb->so_options & SOF_INHERITED;
  73709. 801ddf6: 687b ldr r3, [r7, #4]
  73710. 801ddf8: 7a5b ldrb r3, [r3, #9]
  73711. 801ddfa: f003 030c and.w r3, r3, #12
  73712. 801ddfe: b2da uxtb r2, r3
  73713. 801de00: 697b ldr r3, [r7, #20]
  73714. 801de02: 725a strb r2, [r3, #9]
  73715. npcb->netif_idx = pcb->netif_idx;
  73716. 801de04: 687b ldr r3, [r7, #4]
  73717. 801de06: 7a1a ldrb r2, [r3, #8]
  73718. 801de08: 697b ldr r3, [r7, #20]
  73719. 801de0a: 721a strb r2, [r3, #8]
  73720. TCP_REG_ACTIVE(npcb);
  73721. 801de0c: 4b2e ldr r3, [pc, #184] @ (801dec8 <tcp_listen_input+0x1f4>)
  73722. 801de0e: 681a ldr r2, [r3, #0]
  73723. 801de10: 697b ldr r3, [r7, #20]
  73724. 801de12: 60da str r2, [r3, #12]
  73725. 801de14: 4a2c ldr r2, [pc, #176] @ (801dec8 <tcp_listen_input+0x1f4>)
  73726. 801de16: 697b ldr r3, [r7, #20]
  73727. 801de18: 6013 str r3, [r2, #0]
  73728. 801de1a: f003 fd97 bl 802194c <tcp_timer_needed>
  73729. 801de1e: 4b2b ldr r3, [pc, #172] @ (801decc <tcp_listen_input+0x1f8>)
  73730. 801de20: 2201 movs r2, #1
  73731. 801de22: 701a strb r2, [r3, #0]
  73732. tcp_parseopt(npcb);
  73733. 801de24: 6978 ldr r0, [r7, #20]
  73734. 801de26: f001 fd8b bl 801f940 <tcp_parseopt>
  73735. npcb->snd_wnd = tcphdr->wnd;
  73736. 801de2a: 4b23 ldr r3, [pc, #140] @ (801deb8 <tcp_listen_input+0x1e4>)
  73737. 801de2c: 681b ldr r3, [r3, #0]
  73738. 801de2e: 89db ldrh r3, [r3, #14]
  73739. 801de30: b29a uxth r2, r3
  73740. 801de32: 697b ldr r3, [r7, #20]
  73741. 801de34: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  73742. npcb->snd_wnd_max = npcb->snd_wnd;
  73743. 801de38: 697b ldr r3, [r7, #20]
  73744. 801de3a: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  73745. 801de3e: 697b ldr r3, [r7, #20]
  73746. 801de40: f8a3 2062 strh.w r2, [r3, #98] @ 0x62
  73747. npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip, &npcb->remote_ip);
  73748. 801de44: 697b ldr r3, [r7, #20]
  73749. 801de46: 8e5c ldrh r4, [r3, #50] @ 0x32
  73750. 801de48: 697b ldr r3, [r7, #20]
  73751. 801de4a: 3304 adds r3, #4
  73752. 801de4c: 4618 mov r0, r3
  73753. 801de4e: f007 fc77 bl 8025740 <ip4_route>
  73754. 801de52: 4601 mov r1, r0
  73755. 801de54: 697b ldr r3, [r7, #20]
  73756. 801de56: 3304 adds r3, #4
  73757. 801de58: 461a mov r2, r3
  73758. 801de5a: 4620 mov r0, r4
  73759. 801de5c: f7ff fa2e bl 801d2bc <tcp_eff_send_mss_netif>
  73760. 801de60: 4603 mov r3, r0
  73761. 801de62: 461a mov r2, r3
  73762. 801de64: 697b ldr r3, [r7, #20]
  73763. 801de66: 865a strh r2, [r3, #50] @ 0x32
  73764. rc = tcp_enqueue_flags(npcb, TCP_SYN | TCP_ACK);
  73765. 801de68: 2112 movs r1, #18
  73766. 801de6a: 6978 ldr r0, [r7, #20]
  73767. 801de6c: f002 fcfc bl 8020868 <tcp_enqueue_flags>
  73768. 801de70: 4603 mov r3, r0
  73769. 801de72: 73fb strb r3, [r7, #15]
  73770. if (rc != ERR_OK) {
  73771. 801de74: f997 300f ldrsb.w r3, [r7, #15]
  73772. 801de78: 2b00 cmp r3, #0
  73773. 801de7a: d004 beq.n 801de86 <tcp_listen_input+0x1b2>
  73774. tcp_abandon(npcb, 0);
  73775. 801de7c: 2100 movs r1, #0
  73776. 801de7e: 6978 ldr r0, [r7, #20]
  73777. 801de80: f7fd ff3a bl 801bcf8 <tcp_abandon>
  73778. return;
  73779. 801de84: e006 b.n 801de94 <tcp_listen_input+0x1c0>
  73780. tcp_output(npcb);
  73781. 801de86: 6978 ldr r0, [r7, #20]
  73782. 801de88: f002 fddc bl 8020a44 <tcp_output>
  73783. return;
  73784. 801de8c: e001 b.n 801de92 <tcp_listen_input+0x1be>
  73785. return;
  73786. 801de8e: bf00 nop
  73787. 801de90: e000 b.n 801de94 <tcp_listen_input+0x1c0>
  73788. return;
  73789. 801de92: bf00 nop
  73790. }
  73791. 801de94: 371c adds r7, #28
  73792. 801de96: 46bd mov sp, r7
  73793. 801de98: bd90 pop {r4, r7, pc}
  73794. 801de9a: bf00 nop
  73795. 801de9c: 2402afb0 .word 0x2402afb0
  73796. 801dea0: 0802fbf4 .word 0x0802fbf4
  73797. 801dea4: 0802fdec .word 0x0802fdec
  73798. 801dea8: 0802fc40 .word 0x0802fc40
  73799. 801deac: 2402afa8 .word 0x2402afa8
  73800. 801deb0: 2402afae .word 0x2402afae
  73801. 801deb4: 2402afa4 .word 0x2402afa4
  73802. 801deb8: 2402af94 .word 0x2402af94
  73803. 801debc: 24024428 .word 0x24024428
  73804. 801dec0: 2402442c .word 0x2402442c
  73805. 801dec4: 24024418 .word 0x24024418
  73806. 801dec8: 2402af74 .word 0x2402af74
  73807. 801decc: 2402af7c .word 0x2402af7c
  73808. 0801ded0 <tcp_timewait_input>:
  73809. * @note the segment which arrived is saved in global variables, therefore only the pcb
  73810. * involved is passed as a parameter to this function
  73811. */
  73812. static void
  73813. tcp_timewait_input(struct tcp_pcb *pcb)
  73814. {
  73815. 801ded0: b580 push {r7, lr}
  73816. 801ded2: b086 sub sp, #24
  73817. 801ded4: af04 add r7, sp, #16
  73818. 801ded6: 6078 str r0, [r7, #4]
  73819. /* RFC 1337: in TIME_WAIT, ignore RST and ACK FINs + any 'acceptable' segments */
  73820. /* RFC 793 3.9 Event Processing - Segment Arrives:
  73821. * - first check sequence number - we skip that one in TIME_WAIT (always
  73822. * acceptable since we only send ACKs)
  73823. * - second check the RST bit (... return) */
  73824. if (flags & TCP_RST) {
  73825. 801ded8: 4b2f ldr r3, [pc, #188] @ (801df98 <tcp_timewait_input+0xc8>)
  73826. 801deda: 781b ldrb r3, [r3, #0]
  73827. 801dedc: f003 0304 and.w r3, r3, #4
  73828. 801dee0: 2b00 cmp r3, #0
  73829. 801dee2: d153 bne.n 801df8c <tcp_timewait_input+0xbc>
  73830. return;
  73831. }
  73832. LWIP_ASSERT("tcp_timewait_input: invalid pcb", pcb != NULL);
  73833. 801dee4: 687b ldr r3, [r7, #4]
  73834. 801dee6: 2b00 cmp r3, #0
  73835. 801dee8: d106 bne.n 801def8 <tcp_timewait_input+0x28>
  73836. 801deea: 4b2c ldr r3, [pc, #176] @ (801df9c <tcp_timewait_input+0xcc>)
  73837. 801deec: f240 22ee movw r2, #750 @ 0x2ee
  73838. 801def0: 492b ldr r1, [pc, #172] @ (801dfa0 <tcp_timewait_input+0xd0>)
  73839. 801def2: 482c ldr r0, [pc, #176] @ (801dfa4 <tcp_timewait_input+0xd4>)
  73840. 801def4: f00c fc32 bl 802a75c <iprintf>
  73841. /* - fourth, check the SYN bit, */
  73842. if (flags & TCP_SYN) {
  73843. 801def8: 4b27 ldr r3, [pc, #156] @ (801df98 <tcp_timewait_input+0xc8>)
  73844. 801defa: 781b ldrb r3, [r3, #0]
  73845. 801defc: f003 0302 and.w r3, r3, #2
  73846. 801df00: 2b00 cmp r3, #0
  73847. 801df02: d02a beq.n 801df5a <tcp_timewait_input+0x8a>
  73848. /* If an incoming segment is not acceptable, an acknowledgment
  73849. should be sent in reply */
  73850. if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, pcb->rcv_nxt + pcb->rcv_wnd)) {
  73851. 801df04: 4b28 ldr r3, [pc, #160] @ (801dfa8 <tcp_timewait_input+0xd8>)
  73852. 801df06: 681a ldr r2, [r3, #0]
  73853. 801df08: 687b ldr r3, [r7, #4]
  73854. 801df0a: 6a5b ldr r3, [r3, #36] @ 0x24
  73855. 801df0c: 1ad3 subs r3, r2, r3
  73856. 801df0e: 2b00 cmp r3, #0
  73857. 801df10: db2d blt.n 801df6e <tcp_timewait_input+0x9e>
  73858. 801df12: 4b25 ldr r3, [pc, #148] @ (801dfa8 <tcp_timewait_input+0xd8>)
  73859. 801df14: 681a ldr r2, [r3, #0]
  73860. 801df16: 687b ldr r3, [r7, #4]
  73861. 801df18: 6a5b ldr r3, [r3, #36] @ 0x24
  73862. 801df1a: 6879 ldr r1, [r7, #4]
  73863. 801df1c: 8d09 ldrh r1, [r1, #40] @ 0x28
  73864. 801df1e: 440b add r3, r1
  73865. 801df20: 1ad3 subs r3, r2, r3
  73866. 801df22: 2b00 cmp r3, #0
  73867. 801df24: dc23 bgt.n 801df6e <tcp_timewait_input+0x9e>
  73868. /* If the SYN is in the window it is an error, send a reset */
  73869. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73870. 801df26: 4b21 ldr r3, [pc, #132] @ (801dfac <tcp_timewait_input+0xdc>)
  73871. 801df28: 6819 ldr r1, [r3, #0]
  73872. 801df2a: 4b21 ldr r3, [pc, #132] @ (801dfb0 <tcp_timewait_input+0xe0>)
  73873. 801df2c: 881b ldrh r3, [r3, #0]
  73874. 801df2e: 461a mov r2, r3
  73875. 801df30: 4b1d ldr r3, [pc, #116] @ (801dfa8 <tcp_timewait_input+0xd8>)
  73876. 801df32: 681b ldr r3, [r3, #0]
  73877. 801df34: 18d0 adds r0, r2, r3
  73878. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  73879. 801df36: 4b1f ldr r3, [pc, #124] @ (801dfb4 <tcp_timewait_input+0xe4>)
  73880. 801df38: 681b ldr r3, [r3, #0]
  73881. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73882. 801df3a: 885b ldrh r3, [r3, #2]
  73883. 801df3c: b29b uxth r3, r3
  73884. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  73885. 801df3e: 4a1d ldr r2, [pc, #116] @ (801dfb4 <tcp_timewait_input+0xe4>)
  73886. 801df40: 6812 ldr r2, [r2, #0]
  73887. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73888. 801df42: 8812 ldrh r2, [r2, #0]
  73889. 801df44: b292 uxth r2, r2
  73890. 801df46: 9202 str r2, [sp, #8]
  73891. 801df48: 9301 str r3, [sp, #4]
  73892. 801df4a: 4b1b ldr r3, [pc, #108] @ (801dfb8 <tcp_timewait_input+0xe8>)
  73893. 801df4c: 9300 str r3, [sp, #0]
  73894. 801df4e: 4b1b ldr r3, [pc, #108] @ (801dfbc <tcp_timewait_input+0xec>)
  73895. 801df50: 4602 mov r2, r0
  73896. 801df52: 6878 ldr r0, [r7, #4]
  73897. 801df54: f003 fb38 bl 80215c8 <tcp_rst>
  73898. return;
  73899. 801df58: e01b b.n 801df92 <tcp_timewait_input+0xc2>
  73900. }
  73901. } else if (flags & TCP_FIN) {
  73902. 801df5a: 4b0f ldr r3, [pc, #60] @ (801df98 <tcp_timewait_input+0xc8>)
  73903. 801df5c: 781b ldrb r3, [r3, #0]
  73904. 801df5e: f003 0301 and.w r3, r3, #1
  73905. 801df62: 2b00 cmp r3, #0
  73906. 801df64: d003 beq.n 801df6e <tcp_timewait_input+0x9e>
  73907. /* - eighth, check the FIN bit: Remain in the TIME-WAIT state.
  73908. Restart the 2 MSL time-wait timeout.*/
  73909. pcb->tmr = tcp_ticks;
  73910. 801df66: 4b16 ldr r3, [pc, #88] @ (801dfc0 <tcp_timewait_input+0xf0>)
  73911. 801df68: 681a ldr r2, [r3, #0]
  73912. 801df6a: 687b ldr r3, [r7, #4]
  73913. 801df6c: 621a str r2, [r3, #32]
  73914. }
  73915. if ((tcplen > 0)) {
  73916. 801df6e: 4b10 ldr r3, [pc, #64] @ (801dfb0 <tcp_timewait_input+0xe0>)
  73917. 801df70: 881b ldrh r3, [r3, #0]
  73918. 801df72: 2b00 cmp r3, #0
  73919. 801df74: d00c beq.n 801df90 <tcp_timewait_input+0xc0>
  73920. /* Acknowledge data, FIN or out-of-window SYN */
  73921. tcp_ack_now(pcb);
  73922. 801df76: 687b ldr r3, [r7, #4]
  73923. 801df78: 8b5b ldrh r3, [r3, #26]
  73924. 801df7a: f043 0302 orr.w r3, r3, #2
  73925. 801df7e: b29a uxth r2, r3
  73926. 801df80: 687b ldr r3, [r7, #4]
  73927. 801df82: 835a strh r2, [r3, #26]
  73928. tcp_output(pcb);
  73929. 801df84: 6878 ldr r0, [r7, #4]
  73930. 801df86: f002 fd5d bl 8020a44 <tcp_output>
  73931. }
  73932. return;
  73933. 801df8a: e001 b.n 801df90 <tcp_timewait_input+0xc0>
  73934. return;
  73935. 801df8c: bf00 nop
  73936. 801df8e: e000 b.n 801df92 <tcp_timewait_input+0xc2>
  73937. return;
  73938. 801df90: bf00 nop
  73939. }
  73940. 801df92: 3708 adds r7, #8
  73941. 801df94: 46bd mov sp, r7
  73942. 801df96: bd80 pop {r7, pc}
  73943. 801df98: 2402afb0 .word 0x2402afb0
  73944. 801df9c: 0802fbf4 .word 0x0802fbf4
  73945. 801dfa0: 0802fe0c .word 0x0802fe0c
  73946. 801dfa4: 0802fc40 .word 0x0802fc40
  73947. 801dfa8: 2402afa4 .word 0x2402afa4
  73948. 801dfac: 2402afa8 .word 0x2402afa8
  73949. 801dfb0: 2402afae .word 0x2402afae
  73950. 801dfb4: 2402af94 .word 0x2402af94
  73951. 801dfb8: 24024428 .word 0x24024428
  73952. 801dfbc: 2402442c .word 0x2402442c
  73953. 801dfc0: 2402af68 .word 0x2402af68
  73954. 0801dfc4 <tcp_process>:
  73955. * @note the segment which arrived is saved in global variables, therefore only the pcb
  73956. * involved is passed as a parameter to this function
  73957. */
  73958. static err_t
  73959. tcp_process(struct tcp_pcb *pcb)
  73960. {
  73961. 801dfc4: b590 push {r4, r7, lr}
  73962. 801dfc6: b08d sub sp, #52 @ 0x34
  73963. 801dfc8: af04 add r7, sp, #16
  73964. 801dfca: 6078 str r0, [r7, #4]
  73965. struct tcp_seg *rseg;
  73966. u8_t acceptable = 0;
  73967. 801dfcc: 2300 movs r3, #0
  73968. 801dfce: 77fb strb r3, [r7, #31]
  73969. err_t err;
  73970. err = ERR_OK;
  73971. 801dfd0: 2300 movs r3, #0
  73972. 801dfd2: 77bb strb r3, [r7, #30]
  73973. LWIP_ASSERT("tcp_process: invalid pcb", pcb != NULL);
  73974. 801dfd4: 687b ldr r3, [r7, #4]
  73975. 801dfd6: 2b00 cmp r3, #0
  73976. 801dfd8: d106 bne.n 801dfe8 <tcp_process+0x24>
  73977. 801dfda: 4b9d ldr r3, [pc, #628] @ (801e250 <tcp_process+0x28c>)
  73978. 801dfdc: f44f 7247 mov.w r2, #796 @ 0x31c
  73979. 801dfe0: 499c ldr r1, [pc, #624] @ (801e254 <tcp_process+0x290>)
  73980. 801dfe2: 489d ldr r0, [pc, #628] @ (801e258 <tcp_process+0x294>)
  73981. 801dfe4: f00c fbba bl 802a75c <iprintf>
  73982. /* Process incoming RST segments. */
  73983. if (flags & TCP_RST) {
  73984. 801dfe8: 4b9c ldr r3, [pc, #624] @ (801e25c <tcp_process+0x298>)
  73985. 801dfea: 781b ldrb r3, [r3, #0]
  73986. 801dfec: f003 0304 and.w r3, r3, #4
  73987. 801dff0: 2b00 cmp r3, #0
  73988. 801dff2: d04e beq.n 801e092 <tcp_process+0xce>
  73989. /* First, determine if the reset is acceptable. */
  73990. if (pcb->state == SYN_SENT) {
  73991. 801dff4: 687b ldr r3, [r7, #4]
  73992. 801dff6: 7d1b ldrb r3, [r3, #20]
  73993. 801dff8: 2b02 cmp r3, #2
  73994. 801dffa: d108 bne.n 801e00e <tcp_process+0x4a>
  73995. /* "In the SYN-SENT state (a RST received in response to an initial SYN),
  73996. the RST is acceptable if the ACK field acknowledges the SYN." */
  73997. if (ackno == pcb->snd_nxt) {
  73998. 801dffc: 687b ldr r3, [r7, #4]
  73999. 801dffe: 6d1a ldr r2, [r3, #80] @ 0x50
  74000. 801e000: 4b97 ldr r3, [pc, #604] @ (801e260 <tcp_process+0x29c>)
  74001. 801e002: 681b ldr r3, [r3, #0]
  74002. 801e004: 429a cmp r2, r3
  74003. 801e006: d123 bne.n 801e050 <tcp_process+0x8c>
  74004. acceptable = 1;
  74005. 801e008: 2301 movs r3, #1
  74006. 801e00a: 77fb strb r3, [r7, #31]
  74007. 801e00c: e020 b.n 801e050 <tcp_process+0x8c>
  74008. }
  74009. } else {
  74010. /* "In all states except SYN-SENT, all reset (RST) segments are validated
  74011. by checking their SEQ-fields." */
  74012. if (seqno == pcb->rcv_nxt) {
  74013. 801e00e: 687b ldr r3, [r7, #4]
  74014. 801e010: 6a5a ldr r2, [r3, #36] @ 0x24
  74015. 801e012: 4b94 ldr r3, [pc, #592] @ (801e264 <tcp_process+0x2a0>)
  74016. 801e014: 681b ldr r3, [r3, #0]
  74017. 801e016: 429a cmp r2, r3
  74018. 801e018: d102 bne.n 801e020 <tcp_process+0x5c>
  74019. acceptable = 1;
  74020. 801e01a: 2301 movs r3, #1
  74021. 801e01c: 77fb strb r3, [r7, #31]
  74022. 801e01e: e017 b.n 801e050 <tcp_process+0x8c>
  74023. } else if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt,
  74024. 801e020: 4b90 ldr r3, [pc, #576] @ (801e264 <tcp_process+0x2a0>)
  74025. 801e022: 681a ldr r2, [r3, #0]
  74026. 801e024: 687b ldr r3, [r7, #4]
  74027. 801e026: 6a5b ldr r3, [r3, #36] @ 0x24
  74028. 801e028: 1ad3 subs r3, r2, r3
  74029. 801e02a: 2b00 cmp r3, #0
  74030. 801e02c: db10 blt.n 801e050 <tcp_process+0x8c>
  74031. 801e02e: 4b8d ldr r3, [pc, #564] @ (801e264 <tcp_process+0x2a0>)
  74032. 801e030: 681a ldr r2, [r3, #0]
  74033. 801e032: 687b ldr r3, [r7, #4]
  74034. 801e034: 6a5b ldr r3, [r3, #36] @ 0x24
  74035. 801e036: 6879 ldr r1, [r7, #4]
  74036. 801e038: 8d09 ldrh r1, [r1, #40] @ 0x28
  74037. 801e03a: 440b add r3, r1
  74038. 801e03c: 1ad3 subs r3, r2, r3
  74039. 801e03e: 2b00 cmp r3, #0
  74040. 801e040: dc06 bgt.n 801e050 <tcp_process+0x8c>
  74041. pcb->rcv_nxt + pcb->rcv_wnd)) {
  74042. /* If the sequence number is inside the window, we send a challenge ACK
  74043. and wait for a re-send with matching sequence number.
  74044. This follows RFC 5961 section 3.2 and addresses CVE-2004-0230
  74045. (RST spoofing attack), which is present in RFC 793 RST handling. */
  74046. tcp_ack_now(pcb);
  74047. 801e042: 687b ldr r3, [r7, #4]
  74048. 801e044: 8b5b ldrh r3, [r3, #26]
  74049. 801e046: f043 0302 orr.w r3, r3, #2
  74050. 801e04a: b29a uxth r2, r3
  74051. 801e04c: 687b ldr r3, [r7, #4]
  74052. 801e04e: 835a strh r2, [r3, #26]
  74053. }
  74054. }
  74055. if (acceptable) {
  74056. 801e050: 7ffb ldrb r3, [r7, #31]
  74057. 801e052: 2b00 cmp r3, #0
  74058. 801e054: d01b beq.n 801e08e <tcp_process+0xca>
  74059. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_process: Connection RESET\n"));
  74060. LWIP_ASSERT("tcp_input: pcb->state != CLOSED", pcb->state != CLOSED);
  74061. 801e056: 687b ldr r3, [r7, #4]
  74062. 801e058: 7d1b ldrb r3, [r3, #20]
  74063. 801e05a: 2b00 cmp r3, #0
  74064. 801e05c: d106 bne.n 801e06c <tcp_process+0xa8>
  74065. 801e05e: 4b7c ldr r3, [pc, #496] @ (801e250 <tcp_process+0x28c>)
  74066. 801e060: f44f 724e mov.w r2, #824 @ 0x338
  74067. 801e064: 4980 ldr r1, [pc, #512] @ (801e268 <tcp_process+0x2a4>)
  74068. 801e066: 487c ldr r0, [pc, #496] @ (801e258 <tcp_process+0x294>)
  74069. 801e068: f00c fb78 bl 802a75c <iprintf>
  74070. recv_flags |= TF_RESET;
  74071. 801e06c: 4b7f ldr r3, [pc, #508] @ (801e26c <tcp_process+0x2a8>)
  74072. 801e06e: 781b ldrb r3, [r3, #0]
  74073. 801e070: f043 0308 orr.w r3, r3, #8
  74074. 801e074: b2da uxtb r2, r3
  74075. 801e076: 4b7d ldr r3, [pc, #500] @ (801e26c <tcp_process+0x2a8>)
  74076. 801e078: 701a strb r2, [r3, #0]
  74077. tcp_clear_flags(pcb, TF_ACK_DELAY);
  74078. 801e07a: 687b ldr r3, [r7, #4]
  74079. 801e07c: 8b5b ldrh r3, [r3, #26]
  74080. 801e07e: f023 0301 bic.w r3, r3, #1
  74081. 801e082: b29a uxth r2, r3
  74082. 801e084: 687b ldr r3, [r7, #4]
  74083. 801e086: 835a strh r2, [r3, #26]
  74084. return ERR_RST;
  74085. 801e088: f06f 030d mvn.w r3, #13
  74086. 801e08c: e37a b.n 801e784 <tcp_process+0x7c0>
  74087. } else {
  74088. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_process: unacceptable reset seqno %"U32_F" rcv_nxt %"U32_F"\n",
  74089. seqno, pcb->rcv_nxt));
  74090. LWIP_DEBUGF(TCP_DEBUG, ("tcp_process: unacceptable reset seqno %"U32_F" rcv_nxt %"U32_F"\n",
  74091. seqno, pcb->rcv_nxt));
  74092. return ERR_OK;
  74093. 801e08e: 2300 movs r3, #0
  74094. 801e090: e378 b.n 801e784 <tcp_process+0x7c0>
  74095. }
  74096. }
  74097. if ((flags & TCP_SYN) && (pcb->state != SYN_SENT && pcb->state != SYN_RCVD)) {
  74098. 801e092: 4b72 ldr r3, [pc, #456] @ (801e25c <tcp_process+0x298>)
  74099. 801e094: 781b ldrb r3, [r3, #0]
  74100. 801e096: f003 0302 and.w r3, r3, #2
  74101. 801e09a: 2b00 cmp r3, #0
  74102. 801e09c: d010 beq.n 801e0c0 <tcp_process+0xfc>
  74103. 801e09e: 687b ldr r3, [r7, #4]
  74104. 801e0a0: 7d1b ldrb r3, [r3, #20]
  74105. 801e0a2: 2b02 cmp r3, #2
  74106. 801e0a4: d00c beq.n 801e0c0 <tcp_process+0xfc>
  74107. 801e0a6: 687b ldr r3, [r7, #4]
  74108. 801e0a8: 7d1b ldrb r3, [r3, #20]
  74109. 801e0aa: 2b03 cmp r3, #3
  74110. 801e0ac: d008 beq.n 801e0c0 <tcp_process+0xfc>
  74111. /* Cope with new connection attempt after remote end crashed */
  74112. tcp_ack_now(pcb);
  74113. 801e0ae: 687b ldr r3, [r7, #4]
  74114. 801e0b0: 8b5b ldrh r3, [r3, #26]
  74115. 801e0b2: f043 0302 orr.w r3, r3, #2
  74116. 801e0b6: b29a uxth r2, r3
  74117. 801e0b8: 687b ldr r3, [r7, #4]
  74118. 801e0ba: 835a strh r2, [r3, #26]
  74119. return ERR_OK;
  74120. 801e0bc: 2300 movs r3, #0
  74121. 801e0be: e361 b.n 801e784 <tcp_process+0x7c0>
  74122. }
  74123. if ((pcb->flags & TF_RXCLOSED) == 0) {
  74124. 801e0c0: 687b ldr r3, [r7, #4]
  74125. 801e0c2: 8b5b ldrh r3, [r3, #26]
  74126. 801e0c4: f003 0310 and.w r3, r3, #16
  74127. 801e0c8: 2b00 cmp r3, #0
  74128. 801e0ca: d103 bne.n 801e0d4 <tcp_process+0x110>
  74129. /* Update the PCB (in)activity timer unless rx is closed (see tcp_shutdown) */
  74130. pcb->tmr = tcp_ticks;
  74131. 801e0cc: 4b68 ldr r3, [pc, #416] @ (801e270 <tcp_process+0x2ac>)
  74132. 801e0ce: 681a ldr r2, [r3, #0]
  74133. 801e0d0: 687b ldr r3, [r7, #4]
  74134. 801e0d2: 621a str r2, [r3, #32]
  74135. }
  74136. pcb->keep_cnt_sent = 0;
  74137. 801e0d4: 687b ldr r3, [r7, #4]
  74138. 801e0d6: 2200 movs r2, #0
  74139. 801e0d8: f883 209b strb.w r2, [r3, #155] @ 0x9b
  74140. pcb->persist_probe = 0;
  74141. 801e0dc: 687b ldr r3, [r7, #4]
  74142. 801e0de: 2200 movs r2, #0
  74143. 801e0e0: f883 209a strb.w r2, [r3, #154] @ 0x9a
  74144. tcp_parseopt(pcb);
  74145. 801e0e4: 6878 ldr r0, [r7, #4]
  74146. 801e0e6: f001 fc2b bl 801f940 <tcp_parseopt>
  74147. /* Do different things depending on the TCP state. */
  74148. switch (pcb->state) {
  74149. 801e0ea: 687b ldr r3, [r7, #4]
  74150. 801e0ec: 7d1b ldrb r3, [r3, #20]
  74151. 801e0ee: 3b02 subs r3, #2
  74152. 801e0f0: 2b07 cmp r3, #7
  74153. 801e0f2: f200 8337 bhi.w 801e764 <tcp_process+0x7a0>
  74154. 801e0f6: a201 add r2, pc, #4 @ (adr r2, 801e0fc <tcp_process+0x138>)
  74155. 801e0f8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  74156. 801e0fc: 0801e11d .word 0x0801e11d
  74157. 801e100: 0801e34d .word 0x0801e34d
  74158. 801e104: 0801e4c5 .word 0x0801e4c5
  74159. 801e108: 0801e4ef .word 0x0801e4ef
  74160. 801e10c: 0801e613 .word 0x0801e613
  74161. 801e110: 0801e4c5 .word 0x0801e4c5
  74162. 801e114: 0801e69f .word 0x0801e69f
  74163. 801e118: 0801e72f .word 0x0801e72f
  74164. case SYN_SENT:
  74165. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("SYN-SENT: ackno %"U32_F" pcb->snd_nxt %"U32_F" unacked %"U32_F"\n", ackno,
  74166. pcb->snd_nxt, lwip_ntohl(pcb->unacked->tcphdr->seqno)));
  74167. /* received SYN ACK with expected sequence number? */
  74168. if ((flags & TCP_ACK) && (flags & TCP_SYN)
  74169. 801e11c: 4b4f ldr r3, [pc, #316] @ (801e25c <tcp_process+0x298>)
  74170. 801e11e: 781b ldrb r3, [r3, #0]
  74171. 801e120: f003 0310 and.w r3, r3, #16
  74172. 801e124: 2b00 cmp r3, #0
  74173. 801e126: f000 80e4 beq.w 801e2f2 <tcp_process+0x32e>
  74174. 801e12a: 4b4c ldr r3, [pc, #304] @ (801e25c <tcp_process+0x298>)
  74175. 801e12c: 781b ldrb r3, [r3, #0]
  74176. 801e12e: f003 0302 and.w r3, r3, #2
  74177. 801e132: 2b00 cmp r3, #0
  74178. 801e134: f000 80dd beq.w 801e2f2 <tcp_process+0x32e>
  74179. && (ackno == pcb->lastack + 1)) {
  74180. 801e138: 687b ldr r3, [r7, #4]
  74181. 801e13a: 6c5b ldr r3, [r3, #68] @ 0x44
  74182. 801e13c: 1c5a adds r2, r3, #1
  74183. 801e13e: 4b48 ldr r3, [pc, #288] @ (801e260 <tcp_process+0x29c>)
  74184. 801e140: 681b ldr r3, [r3, #0]
  74185. 801e142: 429a cmp r2, r3
  74186. 801e144: f040 80d5 bne.w 801e2f2 <tcp_process+0x32e>
  74187. pcb->rcv_nxt = seqno + 1;
  74188. 801e148: 4b46 ldr r3, [pc, #280] @ (801e264 <tcp_process+0x2a0>)
  74189. 801e14a: 681b ldr r3, [r3, #0]
  74190. 801e14c: 1c5a adds r2, r3, #1
  74191. 801e14e: 687b ldr r3, [r7, #4]
  74192. 801e150: 625a str r2, [r3, #36] @ 0x24
  74193. pcb->rcv_ann_right_edge = pcb->rcv_nxt;
  74194. 801e152: 687b ldr r3, [r7, #4]
  74195. 801e154: 6a5a ldr r2, [r3, #36] @ 0x24
  74196. 801e156: 687b ldr r3, [r7, #4]
  74197. 801e158: 62da str r2, [r3, #44] @ 0x2c
  74198. pcb->lastack = ackno;
  74199. 801e15a: 4b41 ldr r3, [pc, #260] @ (801e260 <tcp_process+0x29c>)
  74200. 801e15c: 681a ldr r2, [r3, #0]
  74201. 801e15e: 687b ldr r3, [r7, #4]
  74202. 801e160: 645a str r2, [r3, #68] @ 0x44
  74203. pcb->snd_wnd = tcphdr->wnd;
  74204. 801e162: 4b44 ldr r3, [pc, #272] @ (801e274 <tcp_process+0x2b0>)
  74205. 801e164: 681b ldr r3, [r3, #0]
  74206. 801e166: 89db ldrh r3, [r3, #14]
  74207. 801e168: b29a uxth r2, r3
  74208. 801e16a: 687b ldr r3, [r7, #4]
  74209. 801e16c: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  74210. pcb->snd_wnd_max = pcb->snd_wnd;
  74211. 801e170: 687b ldr r3, [r7, #4]
  74212. 801e172: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  74213. 801e176: 687b ldr r3, [r7, #4]
  74214. 801e178: f8a3 2062 strh.w r2, [r3, #98] @ 0x62
  74215. pcb->snd_wl1 = seqno - 1; /* initialise to seqno - 1 to force window update */
  74216. 801e17c: 4b39 ldr r3, [pc, #228] @ (801e264 <tcp_process+0x2a0>)
  74217. 801e17e: 681b ldr r3, [r3, #0]
  74218. 801e180: 1e5a subs r2, r3, #1
  74219. 801e182: 687b ldr r3, [r7, #4]
  74220. 801e184: 655a str r2, [r3, #84] @ 0x54
  74221. pcb->state = ESTABLISHED;
  74222. 801e186: 687b ldr r3, [r7, #4]
  74223. 801e188: 2204 movs r2, #4
  74224. 801e18a: 751a strb r2, [r3, #20]
  74225. #if TCP_CALCULATE_EFF_SEND_MSS
  74226. pcb->mss = tcp_eff_send_mss(pcb->mss, &pcb->local_ip, &pcb->remote_ip);
  74227. 801e18c: 687b ldr r3, [r7, #4]
  74228. 801e18e: 8e5c ldrh r4, [r3, #50] @ 0x32
  74229. 801e190: 687b ldr r3, [r7, #4]
  74230. 801e192: 3304 adds r3, #4
  74231. 801e194: 4618 mov r0, r3
  74232. 801e196: f007 fad3 bl 8025740 <ip4_route>
  74233. 801e19a: 4601 mov r1, r0
  74234. 801e19c: 687b ldr r3, [r7, #4]
  74235. 801e19e: 3304 adds r3, #4
  74236. 801e1a0: 461a mov r2, r3
  74237. 801e1a2: 4620 mov r0, r4
  74238. 801e1a4: f7ff f88a bl 801d2bc <tcp_eff_send_mss_netif>
  74239. 801e1a8: 4603 mov r3, r0
  74240. 801e1aa: 461a mov r2, r3
  74241. 801e1ac: 687b ldr r3, [r7, #4]
  74242. 801e1ae: 865a strh r2, [r3, #50] @ 0x32
  74243. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  74244. pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss);
  74245. 801e1b0: 687b ldr r3, [r7, #4]
  74246. 801e1b2: 8e5b ldrh r3, [r3, #50] @ 0x32
  74247. 801e1b4: 009a lsls r2, r3, #2
  74248. 801e1b6: 687b ldr r3, [r7, #4]
  74249. 801e1b8: 8e5b ldrh r3, [r3, #50] @ 0x32
  74250. 801e1ba: 005b lsls r3, r3, #1
  74251. 801e1bc: f241 111c movw r1, #4380 @ 0x111c
  74252. 801e1c0: 428b cmp r3, r1
  74253. 801e1c2: bf38 it cc
  74254. 801e1c4: 460b movcc r3, r1
  74255. 801e1c6: 429a cmp r2, r3
  74256. 801e1c8: d204 bcs.n 801e1d4 <tcp_process+0x210>
  74257. 801e1ca: 687b ldr r3, [r7, #4]
  74258. 801e1cc: 8e5b ldrh r3, [r3, #50] @ 0x32
  74259. 801e1ce: 009b lsls r3, r3, #2
  74260. 801e1d0: b29b uxth r3, r3
  74261. 801e1d2: e00d b.n 801e1f0 <tcp_process+0x22c>
  74262. 801e1d4: 687b ldr r3, [r7, #4]
  74263. 801e1d6: 8e5b ldrh r3, [r3, #50] @ 0x32
  74264. 801e1d8: 005b lsls r3, r3, #1
  74265. 801e1da: f241 121c movw r2, #4380 @ 0x111c
  74266. 801e1de: 4293 cmp r3, r2
  74267. 801e1e0: d904 bls.n 801e1ec <tcp_process+0x228>
  74268. 801e1e2: 687b ldr r3, [r7, #4]
  74269. 801e1e4: 8e5b ldrh r3, [r3, #50] @ 0x32
  74270. 801e1e6: 005b lsls r3, r3, #1
  74271. 801e1e8: b29b uxth r3, r3
  74272. 801e1ea: e001 b.n 801e1f0 <tcp_process+0x22c>
  74273. 801e1ec: f241 131c movw r3, #4380 @ 0x111c
  74274. 801e1f0: 687a ldr r2, [r7, #4]
  74275. 801e1f2: f8a2 3048 strh.w r3, [r2, #72] @ 0x48
  74276. LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_process (SENT): cwnd %"TCPWNDSIZE_F
  74277. " ssthresh %"TCPWNDSIZE_F"\n",
  74278. pcb->cwnd, pcb->ssthresh));
  74279. LWIP_ASSERT("pcb->snd_queuelen > 0", (pcb->snd_queuelen > 0));
  74280. 801e1f6: 687b ldr r3, [r7, #4]
  74281. 801e1f8: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  74282. 801e1fc: 2b00 cmp r3, #0
  74283. 801e1fe: d106 bne.n 801e20e <tcp_process+0x24a>
  74284. 801e200: 4b13 ldr r3, [pc, #76] @ (801e250 <tcp_process+0x28c>)
  74285. 801e202: f44f 725b mov.w r2, #876 @ 0x36c
  74286. 801e206: 491c ldr r1, [pc, #112] @ (801e278 <tcp_process+0x2b4>)
  74287. 801e208: 4813 ldr r0, [pc, #76] @ (801e258 <tcp_process+0x294>)
  74288. 801e20a: f00c faa7 bl 802a75c <iprintf>
  74289. --pcb->snd_queuelen;
  74290. 801e20e: 687b ldr r3, [r7, #4]
  74291. 801e210: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  74292. 801e214: 3b01 subs r3, #1
  74293. 801e216: b29a uxth r2, r3
  74294. 801e218: 687b ldr r3, [r7, #4]
  74295. 801e21a: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  74296. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_process: SYN-SENT --queuelen %"TCPWNDSIZE_F"\n", (tcpwnd_size_t)pcb->snd_queuelen));
  74297. rseg = pcb->unacked;
  74298. 801e21e: 687b ldr r3, [r7, #4]
  74299. 801e220: 6f1b ldr r3, [r3, #112] @ 0x70
  74300. 801e222: 617b str r3, [r7, #20]
  74301. if (rseg == NULL) {
  74302. 801e224: 697b ldr r3, [r7, #20]
  74303. 801e226: 2b00 cmp r3, #0
  74304. 801e228: d12a bne.n 801e280 <tcp_process+0x2bc>
  74305. /* might happen if tcp_output fails in tcp_rexmit_rto()
  74306. in which case the segment is on the unsent list */
  74307. rseg = pcb->unsent;
  74308. 801e22a: 687b ldr r3, [r7, #4]
  74309. 801e22c: 6edb ldr r3, [r3, #108] @ 0x6c
  74310. 801e22e: 617b str r3, [r7, #20]
  74311. LWIP_ASSERT("no segment to free", rseg != NULL);
  74312. 801e230: 697b ldr r3, [r7, #20]
  74313. 801e232: 2b00 cmp r3, #0
  74314. 801e234: d106 bne.n 801e244 <tcp_process+0x280>
  74315. 801e236: 4b06 ldr r3, [pc, #24] @ (801e250 <tcp_process+0x28c>)
  74316. 801e238: f44f 725d mov.w r2, #884 @ 0x374
  74317. 801e23c: 490f ldr r1, [pc, #60] @ (801e27c <tcp_process+0x2b8>)
  74318. 801e23e: 4806 ldr r0, [pc, #24] @ (801e258 <tcp_process+0x294>)
  74319. 801e240: f00c fa8c bl 802a75c <iprintf>
  74320. pcb->unsent = rseg->next;
  74321. 801e244: 697b ldr r3, [r7, #20]
  74322. 801e246: 681a ldr r2, [r3, #0]
  74323. 801e248: 687b ldr r3, [r7, #4]
  74324. 801e24a: 66da str r2, [r3, #108] @ 0x6c
  74325. 801e24c: e01c b.n 801e288 <tcp_process+0x2c4>
  74326. 801e24e: bf00 nop
  74327. 801e250: 0802fbf4 .word 0x0802fbf4
  74328. 801e254: 0802fe2c .word 0x0802fe2c
  74329. 801e258: 0802fc40 .word 0x0802fc40
  74330. 801e25c: 2402afb0 .word 0x2402afb0
  74331. 801e260: 2402afa8 .word 0x2402afa8
  74332. 801e264: 2402afa4 .word 0x2402afa4
  74333. 801e268: 0802fe48 .word 0x0802fe48
  74334. 801e26c: 2402afb1 .word 0x2402afb1
  74335. 801e270: 2402af68 .word 0x2402af68
  74336. 801e274: 2402af94 .word 0x2402af94
  74337. 801e278: 0802fe68 .word 0x0802fe68
  74338. 801e27c: 0802fe80 .word 0x0802fe80
  74339. } else {
  74340. pcb->unacked = rseg->next;
  74341. 801e280: 697b ldr r3, [r7, #20]
  74342. 801e282: 681a ldr r2, [r3, #0]
  74343. 801e284: 687b ldr r3, [r7, #4]
  74344. 801e286: 671a str r2, [r3, #112] @ 0x70
  74345. }
  74346. tcp_seg_free(rseg);
  74347. 801e288: 6978 ldr r0, [r7, #20]
  74348. 801e28a: f7fe fc48 bl 801cb1e <tcp_seg_free>
  74349. /* If there's nothing left to acknowledge, stop the retransmit
  74350. timer, otherwise reset it to start again */
  74351. if (pcb->unacked == NULL) {
  74352. 801e28e: 687b ldr r3, [r7, #4]
  74353. 801e290: 6f1b ldr r3, [r3, #112] @ 0x70
  74354. 801e292: 2b00 cmp r3, #0
  74355. 801e294: d104 bne.n 801e2a0 <tcp_process+0x2dc>
  74356. pcb->rtime = -1;
  74357. 801e296: 687b ldr r3, [r7, #4]
  74358. 801e298: f64f 72ff movw r2, #65535 @ 0xffff
  74359. 801e29c: 861a strh r2, [r3, #48] @ 0x30
  74360. 801e29e: e006 b.n 801e2ae <tcp_process+0x2ea>
  74361. } else {
  74362. pcb->rtime = 0;
  74363. 801e2a0: 687b ldr r3, [r7, #4]
  74364. 801e2a2: 2200 movs r2, #0
  74365. 801e2a4: 861a strh r2, [r3, #48] @ 0x30
  74366. pcb->nrtx = 0;
  74367. 801e2a6: 687b ldr r3, [r7, #4]
  74368. 801e2a8: 2200 movs r2, #0
  74369. 801e2aa: f883 2042 strb.w r2, [r3, #66] @ 0x42
  74370. }
  74371. /* Call the user specified function to call when successfully
  74372. * connected. */
  74373. TCP_EVENT_CONNECTED(pcb, ERR_OK, err);
  74374. 801e2ae: 687b ldr r3, [r7, #4]
  74375. 801e2b0: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  74376. 801e2b4: 2b00 cmp r3, #0
  74377. 801e2b6: d00a beq.n 801e2ce <tcp_process+0x30a>
  74378. 801e2b8: 687b ldr r3, [r7, #4]
  74379. 801e2ba: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  74380. 801e2be: 687a ldr r2, [r7, #4]
  74381. 801e2c0: 6910 ldr r0, [r2, #16]
  74382. 801e2c2: 2200 movs r2, #0
  74383. 801e2c4: 6879 ldr r1, [r7, #4]
  74384. 801e2c6: 4798 blx r3
  74385. 801e2c8: 4603 mov r3, r0
  74386. 801e2ca: 77bb strb r3, [r7, #30]
  74387. 801e2cc: e001 b.n 801e2d2 <tcp_process+0x30e>
  74388. 801e2ce: 2300 movs r3, #0
  74389. 801e2d0: 77bb strb r3, [r7, #30]
  74390. if (err == ERR_ABRT) {
  74391. 801e2d2: f997 301e ldrsb.w r3, [r7, #30]
  74392. 801e2d6: f113 0f0d cmn.w r3, #13
  74393. 801e2da: d102 bne.n 801e2e2 <tcp_process+0x31e>
  74394. return ERR_ABRT;
  74395. 801e2dc: f06f 030c mvn.w r3, #12
  74396. 801e2e0: e250 b.n 801e784 <tcp_process+0x7c0>
  74397. }
  74398. tcp_ack_now(pcb);
  74399. 801e2e2: 687b ldr r3, [r7, #4]
  74400. 801e2e4: 8b5b ldrh r3, [r3, #26]
  74401. 801e2e6: f043 0302 orr.w r3, r3, #2
  74402. 801e2ea: b29a uxth r2, r3
  74403. 801e2ec: 687b ldr r3, [r7, #4]
  74404. 801e2ee: 835a strh r2, [r3, #26]
  74405. if (pcb->nrtx < TCP_SYNMAXRTX) {
  74406. pcb->rtime = 0;
  74407. tcp_rexmit_rto(pcb);
  74408. }
  74409. }
  74410. break;
  74411. 801e2f0: e23a b.n 801e768 <tcp_process+0x7a4>
  74412. else if (flags & TCP_ACK) {
  74413. 801e2f2: 4b98 ldr r3, [pc, #608] @ (801e554 <tcp_process+0x590>)
  74414. 801e2f4: 781b ldrb r3, [r3, #0]
  74415. 801e2f6: f003 0310 and.w r3, r3, #16
  74416. 801e2fa: 2b00 cmp r3, #0
  74417. 801e2fc: f000 8234 beq.w 801e768 <tcp_process+0x7a4>
  74418. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  74419. 801e300: 4b95 ldr r3, [pc, #596] @ (801e558 <tcp_process+0x594>)
  74420. 801e302: 6819 ldr r1, [r3, #0]
  74421. 801e304: 4b95 ldr r3, [pc, #596] @ (801e55c <tcp_process+0x598>)
  74422. 801e306: 881b ldrh r3, [r3, #0]
  74423. 801e308: 461a mov r2, r3
  74424. 801e30a: 4b95 ldr r3, [pc, #596] @ (801e560 <tcp_process+0x59c>)
  74425. 801e30c: 681b ldr r3, [r3, #0]
  74426. 801e30e: 18d0 adds r0, r2, r3
  74427. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  74428. 801e310: 4b94 ldr r3, [pc, #592] @ (801e564 <tcp_process+0x5a0>)
  74429. 801e312: 681b ldr r3, [r3, #0]
  74430. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  74431. 801e314: 885b ldrh r3, [r3, #2]
  74432. 801e316: b29b uxth r3, r3
  74433. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  74434. 801e318: 4a92 ldr r2, [pc, #584] @ (801e564 <tcp_process+0x5a0>)
  74435. 801e31a: 6812 ldr r2, [r2, #0]
  74436. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  74437. 801e31c: 8812 ldrh r2, [r2, #0]
  74438. 801e31e: b292 uxth r2, r2
  74439. 801e320: 9202 str r2, [sp, #8]
  74440. 801e322: 9301 str r3, [sp, #4]
  74441. 801e324: 4b90 ldr r3, [pc, #576] @ (801e568 <tcp_process+0x5a4>)
  74442. 801e326: 9300 str r3, [sp, #0]
  74443. 801e328: 4b90 ldr r3, [pc, #576] @ (801e56c <tcp_process+0x5a8>)
  74444. 801e32a: 4602 mov r2, r0
  74445. 801e32c: 6878 ldr r0, [r7, #4]
  74446. 801e32e: f003 f94b bl 80215c8 <tcp_rst>
  74447. if (pcb->nrtx < TCP_SYNMAXRTX) {
  74448. 801e332: 687b ldr r3, [r7, #4]
  74449. 801e334: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  74450. 801e338: 2b05 cmp r3, #5
  74451. 801e33a: f200 8215 bhi.w 801e768 <tcp_process+0x7a4>
  74452. pcb->rtime = 0;
  74453. 801e33e: 687b ldr r3, [r7, #4]
  74454. 801e340: 2200 movs r2, #0
  74455. 801e342: 861a strh r2, [r3, #48] @ 0x30
  74456. tcp_rexmit_rto(pcb);
  74457. 801e344: 6878 ldr r0, [r7, #4]
  74458. 801e346: f002 ff17 bl 8021178 <tcp_rexmit_rto>
  74459. break;
  74460. 801e34a: e20d b.n 801e768 <tcp_process+0x7a4>
  74461. case SYN_RCVD:
  74462. if (flags & TCP_ACK) {
  74463. 801e34c: 4b81 ldr r3, [pc, #516] @ (801e554 <tcp_process+0x590>)
  74464. 801e34e: 781b ldrb r3, [r3, #0]
  74465. 801e350: f003 0310 and.w r3, r3, #16
  74466. 801e354: 2b00 cmp r3, #0
  74467. 801e356: f000 80a1 beq.w 801e49c <tcp_process+0x4d8>
  74468. /* expected ACK number? */
  74469. if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  74470. 801e35a: 4b7f ldr r3, [pc, #508] @ (801e558 <tcp_process+0x594>)
  74471. 801e35c: 681a ldr r2, [r3, #0]
  74472. 801e35e: 687b ldr r3, [r7, #4]
  74473. 801e360: 6c5b ldr r3, [r3, #68] @ 0x44
  74474. 801e362: 1ad3 subs r3, r2, r3
  74475. 801e364: 3b01 subs r3, #1
  74476. 801e366: 2b00 cmp r3, #0
  74477. 801e368: db7e blt.n 801e468 <tcp_process+0x4a4>
  74478. 801e36a: 4b7b ldr r3, [pc, #492] @ (801e558 <tcp_process+0x594>)
  74479. 801e36c: 681a ldr r2, [r3, #0]
  74480. 801e36e: 687b ldr r3, [r7, #4]
  74481. 801e370: 6d1b ldr r3, [r3, #80] @ 0x50
  74482. 801e372: 1ad3 subs r3, r2, r3
  74483. 801e374: 2b00 cmp r3, #0
  74484. 801e376: dc77 bgt.n 801e468 <tcp_process+0x4a4>
  74485. pcb->state = ESTABLISHED;
  74486. 801e378: 687b ldr r3, [r7, #4]
  74487. 801e37a: 2204 movs r2, #4
  74488. 801e37c: 751a strb r2, [r3, #20]
  74489. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection established %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  74490. #if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG
  74491. if (pcb->listener == NULL) {
  74492. 801e37e: 687b ldr r3, [r7, #4]
  74493. 801e380: 6fdb ldr r3, [r3, #124] @ 0x7c
  74494. 801e382: 2b00 cmp r3, #0
  74495. 801e384: d102 bne.n 801e38c <tcp_process+0x3c8>
  74496. /* listen pcb might be closed by now */
  74497. err = ERR_VAL;
  74498. 801e386: 23fa movs r3, #250 @ 0xfa
  74499. 801e388: 77bb strb r3, [r7, #30]
  74500. 801e38a: e01d b.n 801e3c8 <tcp_process+0x404>
  74501. } else
  74502. #endif /* LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG */
  74503. {
  74504. #if LWIP_CALLBACK_API
  74505. LWIP_ASSERT("pcb->listener->accept != NULL", pcb->listener->accept != NULL);
  74506. 801e38c: 687b ldr r3, [r7, #4]
  74507. 801e38e: 6fdb ldr r3, [r3, #124] @ 0x7c
  74508. 801e390: 699b ldr r3, [r3, #24]
  74509. 801e392: 2b00 cmp r3, #0
  74510. 801e394: d106 bne.n 801e3a4 <tcp_process+0x3e0>
  74511. 801e396: 4b76 ldr r3, [pc, #472] @ (801e570 <tcp_process+0x5ac>)
  74512. 801e398: f44f 726a mov.w r2, #936 @ 0x3a8
  74513. 801e39c: 4975 ldr r1, [pc, #468] @ (801e574 <tcp_process+0x5b0>)
  74514. 801e39e: 4876 ldr r0, [pc, #472] @ (801e578 <tcp_process+0x5b4>)
  74515. 801e3a0: f00c f9dc bl 802a75c <iprintf>
  74516. #endif
  74517. tcp_backlog_accepted(pcb);
  74518. /* Call the accept function. */
  74519. TCP_EVENT_ACCEPT(pcb->listener, pcb, pcb->callback_arg, ERR_OK, err);
  74520. 801e3a4: 687b ldr r3, [r7, #4]
  74521. 801e3a6: 6fdb ldr r3, [r3, #124] @ 0x7c
  74522. 801e3a8: 699b ldr r3, [r3, #24]
  74523. 801e3aa: 2b00 cmp r3, #0
  74524. 801e3ac: d00a beq.n 801e3c4 <tcp_process+0x400>
  74525. 801e3ae: 687b ldr r3, [r7, #4]
  74526. 801e3b0: 6fdb ldr r3, [r3, #124] @ 0x7c
  74527. 801e3b2: 699b ldr r3, [r3, #24]
  74528. 801e3b4: 687a ldr r2, [r7, #4]
  74529. 801e3b6: 6910 ldr r0, [r2, #16]
  74530. 801e3b8: 2200 movs r2, #0
  74531. 801e3ba: 6879 ldr r1, [r7, #4]
  74532. 801e3bc: 4798 blx r3
  74533. 801e3be: 4603 mov r3, r0
  74534. 801e3c0: 77bb strb r3, [r7, #30]
  74535. 801e3c2: e001 b.n 801e3c8 <tcp_process+0x404>
  74536. 801e3c4: 23f0 movs r3, #240 @ 0xf0
  74537. 801e3c6: 77bb strb r3, [r7, #30]
  74538. }
  74539. if (err != ERR_OK) {
  74540. 801e3c8: f997 301e ldrsb.w r3, [r7, #30]
  74541. 801e3cc: 2b00 cmp r3, #0
  74542. 801e3ce: d00a beq.n 801e3e6 <tcp_process+0x422>
  74543. /* If the accept function returns with an error, we abort
  74544. * the connection. */
  74545. /* Already aborted? */
  74546. if (err != ERR_ABRT) {
  74547. 801e3d0: f997 301e ldrsb.w r3, [r7, #30]
  74548. 801e3d4: f113 0f0d cmn.w r3, #13
  74549. 801e3d8: d002 beq.n 801e3e0 <tcp_process+0x41c>
  74550. tcp_abort(pcb);
  74551. 801e3da: 6878 ldr r0, [r7, #4]
  74552. 801e3dc: f7fd fd4c bl 801be78 <tcp_abort>
  74553. }
  74554. return ERR_ABRT;
  74555. 801e3e0: f06f 030c mvn.w r3, #12
  74556. 801e3e4: e1ce b.n 801e784 <tcp_process+0x7c0>
  74557. }
  74558. /* If there was any data contained within this ACK,
  74559. * we'd better pass it on to the application as well. */
  74560. tcp_receive(pcb);
  74561. 801e3e6: 6878 ldr r0, [r7, #4]
  74562. 801e3e8: f000 fae0 bl 801e9ac <tcp_receive>
  74563. /* Prevent ACK for SYN to generate a sent event */
  74564. if (recv_acked != 0) {
  74565. 801e3ec: 4b63 ldr r3, [pc, #396] @ (801e57c <tcp_process+0x5b8>)
  74566. 801e3ee: 881b ldrh r3, [r3, #0]
  74567. 801e3f0: 2b00 cmp r3, #0
  74568. 801e3f2: d005 beq.n 801e400 <tcp_process+0x43c>
  74569. recv_acked--;
  74570. 801e3f4: 4b61 ldr r3, [pc, #388] @ (801e57c <tcp_process+0x5b8>)
  74571. 801e3f6: 881b ldrh r3, [r3, #0]
  74572. 801e3f8: 3b01 subs r3, #1
  74573. 801e3fa: b29a uxth r2, r3
  74574. 801e3fc: 4b5f ldr r3, [pc, #380] @ (801e57c <tcp_process+0x5b8>)
  74575. 801e3fe: 801a strh r2, [r3, #0]
  74576. }
  74577. pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss);
  74578. 801e400: 687b ldr r3, [r7, #4]
  74579. 801e402: 8e5b ldrh r3, [r3, #50] @ 0x32
  74580. 801e404: 009a lsls r2, r3, #2
  74581. 801e406: 687b ldr r3, [r7, #4]
  74582. 801e408: 8e5b ldrh r3, [r3, #50] @ 0x32
  74583. 801e40a: 005b lsls r3, r3, #1
  74584. 801e40c: f241 111c movw r1, #4380 @ 0x111c
  74585. 801e410: 428b cmp r3, r1
  74586. 801e412: bf38 it cc
  74587. 801e414: 460b movcc r3, r1
  74588. 801e416: 429a cmp r2, r3
  74589. 801e418: d204 bcs.n 801e424 <tcp_process+0x460>
  74590. 801e41a: 687b ldr r3, [r7, #4]
  74591. 801e41c: 8e5b ldrh r3, [r3, #50] @ 0x32
  74592. 801e41e: 009b lsls r3, r3, #2
  74593. 801e420: b29b uxth r3, r3
  74594. 801e422: e00d b.n 801e440 <tcp_process+0x47c>
  74595. 801e424: 687b ldr r3, [r7, #4]
  74596. 801e426: 8e5b ldrh r3, [r3, #50] @ 0x32
  74597. 801e428: 005b lsls r3, r3, #1
  74598. 801e42a: f241 121c movw r2, #4380 @ 0x111c
  74599. 801e42e: 4293 cmp r3, r2
  74600. 801e430: d904 bls.n 801e43c <tcp_process+0x478>
  74601. 801e432: 687b ldr r3, [r7, #4]
  74602. 801e434: 8e5b ldrh r3, [r3, #50] @ 0x32
  74603. 801e436: 005b lsls r3, r3, #1
  74604. 801e438: b29b uxth r3, r3
  74605. 801e43a: e001 b.n 801e440 <tcp_process+0x47c>
  74606. 801e43c: f241 131c movw r3, #4380 @ 0x111c
  74607. 801e440: 687a ldr r2, [r7, #4]
  74608. 801e442: f8a2 3048 strh.w r3, [r2, #72] @ 0x48
  74609. LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_process (SYN_RCVD): cwnd %"TCPWNDSIZE_F
  74610. " ssthresh %"TCPWNDSIZE_F"\n",
  74611. pcb->cwnd, pcb->ssthresh));
  74612. if (recv_flags & TF_GOT_FIN) {
  74613. 801e446: 4b4e ldr r3, [pc, #312] @ (801e580 <tcp_process+0x5bc>)
  74614. 801e448: 781b ldrb r3, [r3, #0]
  74615. 801e44a: f003 0320 and.w r3, r3, #32
  74616. 801e44e: 2b00 cmp r3, #0
  74617. 801e450: d037 beq.n 801e4c2 <tcp_process+0x4fe>
  74618. tcp_ack_now(pcb);
  74619. 801e452: 687b ldr r3, [r7, #4]
  74620. 801e454: 8b5b ldrh r3, [r3, #26]
  74621. 801e456: f043 0302 orr.w r3, r3, #2
  74622. 801e45a: b29a uxth r2, r3
  74623. 801e45c: 687b ldr r3, [r7, #4]
  74624. 801e45e: 835a strh r2, [r3, #26]
  74625. pcb->state = CLOSE_WAIT;
  74626. 801e460: 687b ldr r3, [r7, #4]
  74627. 801e462: 2207 movs r2, #7
  74628. 801e464: 751a strb r2, [r3, #20]
  74629. if (recv_flags & TF_GOT_FIN) {
  74630. 801e466: e02c b.n 801e4c2 <tcp_process+0x4fe>
  74631. }
  74632. } else {
  74633. /* incorrect ACK number, send RST */
  74634. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  74635. 801e468: 4b3b ldr r3, [pc, #236] @ (801e558 <tcp_process+0x594>)
  74636. 801e46a: 6819 ldr r1, [r3, #0]
  74637. 801e46c: 4b3b ldr r3, [pc, #236] @ (801e55c <tcp_process+0x598>)
  74638. 801e46e: 881b ldrh r3, [r3, #0]
  74639. 801e470: 461a mov r2, r3
  74640. 801e472: 4b3b ldr r3, [pc, #236] @ (801e560 <tcp_process+0x59c>)
  74641. 801e474: 681b ldr r3, [r3, #0]
  74642. 801e476: 18d0 adds r0, r2, r3
  74643. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  74644. 801e478: 4b3a ldr r3, [pc, #232] @ (801e564 <tcp_process+0x5a0>)
  74645. 801e47a: 681b ldr r3, [r3, #0]
  74646. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  74647. 801e47c: 885b ldrh r3, [r3, #2]
  74648. 801e47e: b29b uxth r3, r3
  74649. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  74650. 801e480: 4a38 ldr r2, [pc, #224] @ (801e564 <tcp_process+0x5a0>)
  74651. 801e482: 6812 ldr r2, [r2, #0]
  74652. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  74653. 801e484: 8812 ldrh r2, [r2, #0]
  74654. 801e486: b292 uxth r2, r2
  74655. 801e488: 9202 str r2, [sp, #8]
  74656. 801e48a: 9301 str r3, [sp, #4]
  74657. 801e48c: 4b36 ldr r3, [pc, #216] @ (801e568 <tcp_process+0x5a4>)
  74658. 801e48e: 9300 str r3, [sp, #0]
  74659. 801e490: 4b36 ldr r3, [pc, #216] @ (801e56c <tcp_process+0x5a8>)
  74660. 801e492: 4602 mov r2, r0
  74661. 801e494: 6878 ldr r0, [r7, #4]
  74662. 801e496: f003 f897 bl 80215c8 <tcp_rst>
  74663. }
  74664. } else if ((flags & TCP_SYN) && (seqno == pcb->rcv_nxt - 1)) {
  74665. /* Looks like another copy of the SYN - retransmit our SYN-ACK */
  74666. tcp_rexmit(pcb);
  74667. }
  74668. break;
  74669. 801e49a: e167 b.n 801e76c <tcp_process+0x7a8>
  74670. } else if ((flags & TCP_SYN) && (seqno == pcb->rcv_nxt - 1)) {
  74671. 801e49c: 4b2d ldr r3, [pc, #180] @ (801e554 <tcp_process+0x590>)
  74672. 801e49e: 781b ldrb r3, [r3, #0]
  74673. 801e4a0: f003 0302 and.w r3, r3, #2
  74674. 801e4a4: 2b00 cmp r3, #0
  74675. 801e4a6: f000 8161 beq.w 801e76c <tcp_process+0x7a8>
  74676. 801e4aa: 687b ldr r3, [r7, #4]
  74677. 801e4ac: 6a5b ldr r3, [r3, #36] @ 0x24
  74678. 801e4ae: 1e5a subs r2, r3, #1
  74679. 801e4b0: 4b2b ldr r3, [pc, #172] @ (801e560 <tcp_process+0x59c>)
  74680. 801e4b2: 681b ldr r3, [r3, #0]
  74681. 801e4b4: 429a cmp r2, r3
  74682. 801e4b6: f040 8159 bne.w 801e76c <tcp_process+0x7a8>
  74683. tcp_rexmit(pcb);
  74684. 801e4ba: 6878 ldr r0, [r7, #4]
  74685. 801e4bc: f002 fe7e bl 80211bc <tcp_rexmit>
  74686. break;
  74687. 801e4c0: e154 b.n 801e76c <tcp_process+0x7a8>
  74688. 801e4c2: e153 b.n 801e76c <tcp_process+0x7a8>
  74689. case CLOSE_WAIT:
  74690. /* FALLTHROUGH */
  74691. case ESTABLISHED:
  74692. tcp_receive(pcb);
  74693. 801e4c4: 6878 ldr r0, [r7, #4]
  74694. 801e4c6: f000 fa71 bl 801e9ac <tcp_receive>
  74695. if (recv_flags & TF_GOT_FIN) { /* passive close */
  74696. 801e4ca: 4b2d ldr r3, [pc, #180] @ (801e580 <tcp_process+0x5bc>)
  74697. 801e4cc: 781b ldrb r3, [r3, #0]
  74698. 801e4ce: f003 0320 and.w r3, r3, #32
  74699. 801e4d2: 2b00 cmp r3, #0
  74700. 801e4d4: f000 814c beq.w 801e770 <tcp_process+0x7ac>
  74701. tcp_ack_now(pcb);
  74702. 801e4d8: 687b ldr r3, [r7, #4]
  74703. 801e4da: 8b5b ldrh r3, [r3, #26]
  74704. 801e4dc: f043 0302 orr.w r3, r3, #2
  74705. 801e4e0: b29a uxth r2, r3
  74706. 801e4e2: 687b ldr r3, [r7, #4]
  74707. 801e4e4: 835a strh r2, [r3, #26]
  74708. pcb->state = CLOSE_WAIT;
  74709. 801e4e6: 687b ldr r3, [r7, #4]
  74710. 801e4e8: 2207 movs r2, #7
  74711. 801e4ea: 751a strb r2, [r3, #20]
  74712. }
  74713. break;
  74714. 801e4ec: e140 b.n 801e770 <tcp_process+0x7ac>
  74715. case FIN_WAIT_1:
  74716. tcp_receive(pcb);
  74717. 801e4ee: 6878 ldr r0, [r7, #4]
  74718. 801e4f0: f000 fa5c bl 801e9ac <tcp_receive>
  74719. if (recv_flags & TF_GOT_FIN) {
  74720. 801e4f4: 4b22 ldr r3, [pc, #136] @ (801e580 <tcp_process+0x5bc>)
  74721. 801e4f6: 781b ldrb r3, [r3, #0]
  74722. 801e4f8: f003 0320 and.w r3, r3, #32
  74723. 801e4fc: 2b00 cmp r3, #0
  74724. 801e4fe: d071 beq.n 801e5e4 <tcp_process+0x620>
  74725. if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  74726. 801e500: 4b14 ldr r3, [pc, #80] @ (801e554 <tcp_process+0x590>)
  74727. 801e502: 781b ldrb r3, [r3, #0]
  74728. 801e504: f003 0310 and.w r3, r3, #16
  74729. 801e508: 2b00 cmp r3, #0
  74730. 801e50a: d060 beq.n 801e5ce <tcp_process+0x60a>
  74731. 801e50c: 687b ldr r3, [r7, #4]
  74732. 801e50e: 6d1a ldr r2, [r3, #80] @ 0x50
  74733. 801e510: 4b11 ldr r3, [pc, #68] @ (801e558 <tcp_process+0x594>)
  74734. 801e512: 681b ldr r3, [r3, #0]
  74735. 801e514: 429a cmp r2, r3
  74736. 801e516: d15a bne.n 801e5ce <tcp_process+0x60a>
  74737. pcb->unsent == NULL) {
  74738. 801e518: 687b ldr r3, [r7, #4]
  74739. 801e51a: 6edb ldr r3, [r3, #108] @ 0x6c
  74740. if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  74741. 801e51c: 2b00 cmp r3, #0
  74742. 801e51e: d156 bne.n 801e5ce <tcp_process+0x60a>
  74743. LWIP_DEBUGF(TCP_DEBUG,
  74744. ("TCP connection closed: FIN_WAIT_1 %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  74745. tcp_ack_now(pcb);
  74746. 801e520: 687b ldr r3, [r7, #4]
  74747. 801e522: 8b5b ldrh r3, [r3, #26]
  74748. 801e524: f043 0302 orr.w r3, r3, #2
  74749. 801e528: b29a uxth r2, r3
  74750. 801e52a: 687b ldr r3, [r7, #4]
  74751. 801e52c: 835a strh r2, [r3, #26]
  74752. tcp_pcb_purge(pcb);
  74753. 801e52e: 6878 ldr r0, [r7, #4]
  74754. 801e530: f7fe fdba bl 801d0a8 <tcp_pcb_purge>
  74755. TCP_RMV_ACTIVE(pcb);
  74756. 801e534: 4b13 ldr r3, [pc, #76] @ (801e584 <tcp_process+0x5c0>)
  74757. 801e536: 681b ldr r3, [r3, #0]
  74758. 801e538: 687a ldr r2, [r7, #4]
  74759. 801e53a: 429a cmp r2, r3
  74760. 801e53c: d105 bne.n 801e54a <tcp_process+0x586>
  74761. 801e53e: 4b11 ldr r3, [pc, #68] @ (801e584 <tcp_process+0x5c0>)
  74762. 801e540: 681b ldr r3, [r3, #0]
  74763. 801e542: 68db ldr r3, [r3, #12]
  74764. 801e544: 4a0f ldr r2, [pc, #60] @ (801e584 <tcp_process+0x5c0>)
  74765. 801e546: 6013 str r3, [r2, #0]
  74766. 801e548: e02e b.n 801e5a8 <tcp_process+0x5e4>
  74767. 801e54a: 4b0e ldr r3, [pc, #56] @ (801e584 <tcp_process+0x5c0>)
  74768. 801e54c: 681b ldr r3, [r3, #0]
  74769. 801e54e: 613b str r3, [r7, #16]
  74770. 801e550: e027 b.n 801e5a2 <tcp_process+0x5de>
  74771. 801e552: bf00 nop
  74772. 801e554: 2402afb0 .word 0x2402afb0
  74773. 801e558: 2402afa8 .word 0x2402afa8
  74774. 801e55c: 2402afae .word 0x2402afae
  74775. 801e560: 2402afa4 .word 0x2402afa4
  74776. 801e564: 2402af94 .word 0x2402af94
  74777. 801e568: 24024428 .word 0x24024428
  74778. 801e56c: 2402442c .word 0x2402442c
  74779. 801e570: 0802fbf4 .word 0x0802fbf4
  74780. 801e574: 0802fe94 .word 0x0802fe94
  74781. 801e578: 0802fc40 .word 0x0802fc40
  74782. 801e57c: 2402afac .word 0x2402afac
  74783. 801e580: 2402afb1 .word 0x2402afb1
  74784. 801e584: 2402af74 .word 0x2402af74
  74785. 801e588: 693b ldr r3, [r7, #16]
  74786. 801e58a: 68db ldr r3, [r3, #12]
  74787. 801e58c: 687a ldr r2, [r7, #4]
  74788. 801e58e: 429a cmp r2, r3
  74789. 801e590: d104 bne.n 801e59c <tcp_process+0x5d8>
  74790. 801e592: 687b ldr r3, [r7, #4]
  74791. 801e594: 68da ldr r2, [r3, #12]
  74792. 801e596: 693b ldr r3, [r7, #16]
  74793. 801e598: 60da str r2, [r3, #12]
  74794. 801e59a: e005 b.n 801e5a8 <tcp_process+0x5e4>
  74795. 801e59c: 693b ldr r3, [r7, #16]
  74796. 801e59e: 68db ldr r3, [r3, #12]
  74797. 801e5a0: 613b str r3, [r7, #16]
  74798. 801e5a2: 693b ldr r3, [r7, #16]
  74799. 801e5a4: 2b00 cmp r3, #0
  74800. 801e5a6: d1ef bne.n 801e588 <tcp_process+0x5c4>
  74801. 801e5a8: 687b ldr r3, [r7, #4]
  74802. 801e5aa: 2200 movs r2, #0
  74803. 801e5ac: 60da str r2, [r3, #12]
  74804. 801e5ae: 4b77 ldr r3, [pc, #476] @ (801e78c <tcp_process+0x7c8>)
  74805. 801e5b0: 2201 movs r2, #1
  74806. 801e5b2: 701a strb r2, [r3, #0]
  74807. pcb->state = TIME_WAIT;
  74808. 801e5b4: 687b ldr r3, [r7, #4]
  74809. 801e5b6: 220a movs r2, #10
  74810. 801e5b8: 751a strb r2, [r3, #20]
  74811. TCP_REG(&tcp_tw_pcbs, pcb);
  74812. 801e5ba: 4b75 ldr r3, [pc, #468] @ (801e790 <tcp_process+0x7cc>)
  74813. 801e5bc: 681a ldr r2, [r3, #0]
  74814. 801e5be: 687b ldr r3, [r7, #4]
  74815. 801e5c0: 60da str r2, [r3, #12]
  74816. 801e5c2: 4a73 ldr r2, [pc, #460] @ (801e790 <tcp_process+0x7cc>)
  74817. 801e5c4: 687b ldr r3, [r7, #4]
  74818. 801e5c6: 6013 str r3, [r2, #0]
  74819. 801e5c8: f003 f9c0 bl 802194c <tcp_timer_needed>
  74820. }
  74821. } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  74822. pcb->unsent == NULL) {
  74823. pcb->state = FIN_WAIT_2;
  74824. }
  74825. break;
  74826. 801e5cc: e0d2 b.n 801e774 <tcp_process+0x7b0>
  74827. tcp_ack_now(pcb);
  74828. 801e5ce: 687b ldr r3, [r7, #4]
  74829. 801e5d0: 8b5b ldrh r3, [r3, #26]
  74830. 801e5d2: f043 0302 orr.w r3, r3, #2
  74831. 801e5d6: b29a uxth r2, r3
  74832. 801e5d8: 687b ldr r3, [r7, #4]
  74833. 801e5da: 835a strh r2, [r3, #26]
  74834. pcb->state = CLOSING;
  74835. 801e5dc: 687b ldr r3, [r7, #4]
  74836. 801e5de: 2208 movs r2, #8
  74837. 801e5e0: 751a strb r2, [r3, #20]
  74838. break;
  74839. 801e5e2: e0c7 b.n 801e774 <tcp_process+0x7b0>
  74840. } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  74841. 801e5e4: 4b6b ldr r3, [pc, #428] @ (801e794 <tcp_process+0x7d0>)
  74842. 801e5e6: 781b ldrb r3, [r3, #0]
  74843. 801e5e8: f003 0310 and.w r3, r3, #16
  74844. 801e5ec: 2b00 cmp r3, #0
  74845. 801e5ee: f000 80c1 beq.w 801e774 <tcp_process+0x7b0>
  74846. 801e5f2: 687b ldr r3, [r7, #4]
  74847. 801e5f4: 6d1a ldr r2, [r3, #80] @ 0x50
  74848. 801e5f6: 4b68 ldr r3, [pc, #416] @ (801e798 <tcp_process+0x7d4>)
  74849. 801e5f8: 681b ldr r3, [r3, #0]
  74850. 801e5fa: 429a cmp r2, r3
  74851. 801e5fc: f040 80ba bne.w 801e774 <tcp_process+0x7b0>
  74852. pcb->unsent == NULL) {
  74853. 801e600: 687b ldr r3, [r7, #4]
  74854. 801e602: 6edb ldr r3, [r3, #108] @ 0x6c
  74855. } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  74856. 801e604: 2b00 cmp r3, #0
  74857. 801e606: f040 80b5 bne.w 801e774 <tcp_process+0x7b0>
  74858. pcb->state = FIN_WAIT_2;
  74859. 801e60a: 687b ldr r3, [r7, #4]
  74860. 801e60c: 2206 movs r2, #6
  74861. 801e60e: 751a strb r2, [r3, #20]
  74862. break;
  74863. 801e610: e0b0 b.n 801e774 <tcp_process+0x7b0>
  74864. case FIN_WAIT_2:
  74865. tcp_receive(pcb);
  74866. 801e612: 6878 ldr r0, [r7, #4]
  74867. 801e614: f000 f9ca bl 801e9ac <tcp_receive>
  74868. if (recv_flags & TF_GOT_FIN) {
  74869. 801e618: 4b60 ldr r3, [pc, #384] @ (801e79c <tcp_process+0x7d8>)
  74870. 801e61a: 781b ldrb r3, [r3, #0]
  74871. 801e61c: f003 0320 and.w r3, r3, #32
  74872. 801e620: 2b00 cmp r3, #0
  74873. 801e622: f000 80a9 beq.w 801e778 <tcp_process+0x7b4>
  74874. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: FIN_WAIT_2 %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  74875. tcp_ack_now(pcb);
  74876. 801e626: 687b ldr r3, [r7, #4]
  74877. 801e628: 8b5b ldrh r3, [r3, #26]
  74878. 801e62a: f043 0302 orr.w r3, r3, #2
  74879. 801e62e: b29a uxth r2, r3
  74880. 801e630: 687b ldr r3, [r7, #4]
  74881. 801e632: 835a strh r2, [r3, #26]
  74882. tcp_pcb_purge(pcb);
  74883. 801e634: 6878 ldr r0, [r7, #4]
  74884. 801e636: f7fe fd37 bl 801d0a8 <tcp_pcb_purge>
  74885. TCP_RMV_ACTIVE(pcb);
  74886. 801e63a: 4b59 ldr r3, [pc, #356] @ (801e7a0 <tcp_process+0x7dc>)
  74887. 801e63c: 681b ldr r3, [r3, #0]
  74888. 801e63e: 687a ldr r2, [r7, #4]
  74889. 801e640: 429a cmp r2, r3
  74890. 801e642: d105 bne.n 801e650 <tcp_process+0x68c>
  74891. 801e644: 4b56 ldr r3, [pc, #344] @ (801e7a0 <tcp_process+0x7dc>)
  74892. 801e646: 681b ldr r3, [r3, #0]
  74893. 801e648: 68db ldr r3, [r3, #12]
  74894. 801e64a: 4a55 ldr r2, [pc, #340] @ (801e7a0 <tcp_process+0x7dc>)
  74895. 801e64c: 6013 str r3, [r2, #0]
  74896. 801e64e: e013 b.n 801e678 <tcp_process+0x6b4>
  74897. 801e650: 4b53 ldr r3, [pc, #332] @ (801e7a0 <tcp_process+0x7dc>)
  74898. 801e652: 681b ldr r3, [r3, #0]
  74899. 801e654: 60fb str r3, [r7, #12]
  74900. 801e656: e00c b.n 801e672 <tcp_process+0x6ae>
  74901. 801e658: 68fb ldr r3, [r7, #12]
  74902. 801e65a: 68db ldr r3, [r3, #12]
  74903. 801e65c: 687a ldr r2, [r7, #4]
  74904. 801e65e: 429a cmp r2, r3
  74905. 801e660: d104 bne.n 801e66c <tcp_process+0x6a8>
  74906. 801e662: 687b ldr r3, [r7, #4]
  74907. 801e664: 68da ldr r2, [r3, #12]
  74908. 801e666: 68fb ldr r3, [r7, #12]
  74909. 801e668: 60da str r2, [r3, #12]
  74910. 801e66a: e005 b.n 801e678 <tcp_process+0x6b4>
  74911. 801e66c: 68fb ldr r3, [r7, #12]
  74912. 801e66e: 68db ldr r3, [r3, #12]
  74913. 801e670: 60fb str r3, [r7, #12]
  74914. 801e672: 68fb ldr r3, [r7, #12]
  74915. 801e674: 2b00 cmp r3, #0
  74916. 801e676: d1ef bne.n 801e658 <tcp_process+0x694>
  74917. 801e678: 687b ldr r3, [r7, #4]
  74918. 801e67a: 2200 movs r2, #0
  74919. 801e67c: 60da str r2, [r3, #12]
  74920. 801e67e: 4b43 ldr r3, [pc, #268] @ (801e78c <tcp_process+0x7c8>)
  74921. 801e680: 2201 movs r2, #1
  74922. 801e682: 701a strb r2, [r3, #0]
  74923. pcb->state = TIME_WAIT;
  74924. 801e684: 687b ldr r3, [r7, #4]
  74925. 801e686: 220a movs r2, #10
  74926. 801e688: 751a strb r2, [r3, #20]
  74927. TCP_REG(&tcp_tw_pcbs, pcb);
  74928. 801e68a: 4b41 ldr r3, [pc, #260] @ (801e790 <tcp_process+0x7cc>)
  74929. 801e68c: 681a ldr r2, [r3, #0]
  74930. 801e68e: 687b ldr r3, [r7, #4]
  74931. 801e690: 60da str r2, [r3, #12]
  74932. 801e692: 4a3f ldr r2, [pc, #252] @ (801e790 <tcp_process+0x7cc>)
  74933. 801e694: 687b ldr r3, [r7, #4]
  74934. 801e696: 6013 str r3, [r2, #0]
  74935. 801e698: f003 f958 bl 802194c <tcp_timer_needed>
  74936. }
  74937. break;
  74938. 801e69c: e06c b.n 801e778 <tcp_process+0x7b4>
  74939. case CLOSING:
  74940. tcp_receive(pcb);
  74941. 801e69e: 6878 ldr r0, [r7, #4]
  74942. 801e6a0: f000 f984 bl 801e9ac <tcp_receive>
  74943. if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) {
  74944. 801e6a4: 4b3b ldr r3, [pc, #236] @ (801e794 <tcp_process+0x7d0>)
  74945. 801e6a6: 781b ldrb r3, [r3, #0]
  74946. 801e6a8: f003 0310 and.w r3, r3, #16
  74947. 801e6ac: 2b00 cmp r3, #0
  74948. 801e6ae: d065 beq.n 801e77c <tcp_process+0x7b8>
  74949. 801e6b0: 687b ldr r3, [r7, #4]
  74950. 801e6b2: 6d1a ldr r2, [r3, #80] @ 0x50
  74951. 801e6b4: 4b38 ldr r3, [pc, #224] @ (801e798 <tcp_process+0x7d4>)
  74952. 801e6b6: 681b ldr r3, [r3, #0]
  74953. 801e6b8: 429a cmp r2, r3
  74954. 801e6ba: d15f bne.n 801e77c <tcp_process+0x7b8>
  74955. 801e6bc: 687b ldr r3, [r7, #4]
  74956. 801e6be: 6edb ldr r3, [r3, #108] @ 0x6c
  74957. 801e6c0: 2b00 cmp r3, #0
  74958. 801e6c2: d15b bne.n 801e77c <tcp_process+0x7b8>
  74959. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: CLOSING %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  74960. tcp_pcb_purge(pcb);
  74961. 801e6c4: 6878 ldr r0, [r7, #4]
  74962. 801e6c6: f7fe fcef bl 801d0a8 <tcp_pcb_purge>
  74963. TCP_RMV_ACTIVE(pcb);
  74964. 801e6ca: 4b35 ldr r3, [pc, #212] @ (801e7a0 <tcp_process+0x7dc>)
  74965. 801e6cc: 681b ldr r3, [r3, #0]
  74966. 801e6ce: 687a ldr r2, [r7, #4]
  74967. 801e6d0: 429a cmp r2, r3
  74968. 801e6d2: d105 bne.n 801e6e0 <tcp_process+0x71c>
  74969. 801e6d4: 4b32 ldr r3, [pc, #200] @ (801e7a0 <tcp_process+0x7dc>)
  74970. 801e6d6: 681b ldr r3, [r3, #0]
  74971. 801e6d8: 68db ldr r3, [r3, #12]
  74972. 801e6da: 4a31 ldr r2, [pc, #196] @ (801e7a0 <tcp_process+0x7dc>)
  74973. 801e6dc: 6013 str r3, [r2, #0]
  74974. 801e6de: e013 b.n 801e708 <tcp_process+0x744>
  74975. 801e6e0: 4b2f ldr r3, [pc, #188] @ (801e7a0 <tcp_process+0x7dc>)
  74976. 801e6e2: 681b ldr r3, [r3, #0]
  74977. 801e6e4: 61bb str r3, [r7, #24]
  74978. 801e6e6: e00c b.n 801e702 <tcp_process+0x73e>
  74979. 801e6e8: 69bb ldr r3, [r7, #24]
  74980. 801e6ea: 68db ldr r3, [r3, #12]
  74981. 801e6ec: 687a ldr r2, [r7, #4]
  74982. 801e6ee: 429a cmp r2, r3
  74983. 801e6f0: d104 bne.n 801e6fc <tcp_process+0x738>
  74984. 801e6f2: 687b ldr r3, [r7, #4]
  74985. 801e6f4: 68da ldr r2, [r3, #12]
  74986. 801e6f6: 69bb ldr r3, [r7, #24]
  74987. 801e6f8: 60da str r2, [r3, #12]
  74988. 801e6fa: e005 b.n 801e708 <tcp_process+0x744>
  74989. 801e6fc: 69bb ldr r3, [r7, #24]
  74990. 801e6fe: 68db ldr r3, [r3, #12]
  74991. 801e700: 61bb str r3, [r7, #24]
  74992. 801e702: 69bb ldr r3, [r7, #24]
  74993. 801e704: 2b00 cmp r3, #0
  74994. 801e706: d1ef bne.n 801e6e8 <tcp_process+0x724>
  74995. 801e708: 687b ldr r3, [r7, #4]
  74996. 801e70a: 2200 movs r2, #0
  74997. 801e70c: 60da str r2, [r3, #12]
  74998. 801e70e: 4b1f ldr r3, [pc, #124] @ (801e78c <tcp_process+0x7c8>)
  74999. 801e710: 2201 movs r2, #1
  75000. 801e712: 701a strb r2, [r3, #0]
  75001. pcb->state = TIME_WAIT;
  75002. 801e714: 687b ldr r3, [r7, #4]
  75003. 801e716: 220a movs r2, #10
  75004. 801e718: 751a strb r2, [r3, #20]
  75005. TCP_REG(&tcp_tw_pcbs, pcb);
  75006. 801e71a: 4b1d ldr r3, [pc, #116] @ (801e790 <tcp_process+0x7cc>)
  75007. 801e71c: 681a ldr r2, [r3, #0]
  75008. 801e71e: 687b ldr r3, [r7, #4]
  75009. 801e720: 60da str r2, [r3, #12]
  75010. 801e722: 4a1b ldr r2, [pc, #108] @ (801e790 <tcp_process+0x7cc>)
  75011. 801e724: 687b ldr r3, [r7, #4]
  75012. 801e726: 6013 str r3, [r2, #0]
  75013. 801e728: f003 f910 bl 802194c <tcp_timer_needed>
  75014. }
  75015. break;
  75016. 801e72c: e026 b.n 801e77c <tcp_process+0x7b8>
  75017. case LAST_ACK:
  75018. tcp_receive(pcb);
  75019. 801e72e: 6878 ldr r0, [r7, #4]
  75020. 801e730: f000 f93c bl 801e9ac <tcp_receive>
  75021. if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) {
  75022. 801e734: 4b17 ldr r3, [pc, #92] @ (801e794 <tcp_process+0x7d0>)
  75023. 801e736: 781b ldrb r3, [r3, #0]
  75024. 801e738: f003 0310 and.w r3, r3, #16
  75025. 801e73c: 2b00 cmp r3, #0
  75026. 801e73e: d01f beq.n 801e780 <tcp_process+0x7bc>
  75027. 801e740: 687b ldr r3, [r7, #4]
  75028. 801e742: 6d1a ldr r2, [r3, #80] @ 0x50
  75029. 801e744: 4b14 ldr r3, [pc, #80] @ (801e798 <tcp_process+0x7d4>)
  75030. 801e746: 681b ldr r3, [r3, #0]
  75031. 801e748: 429a cmp r2, r3
  75032. 801e74a: d119 bne.n 801e780 <tcp_process+0x7bc>
  75033. 801e74c: 687b ldr r3, [r7, #4]
  75034. 801e74e: 6edb ldr r3, [r3, #108] @ 0x6c
  75035. 801e750: 2b00 cmp r3, #0
  75036. 801e752: d115 bne.n 801e780 <tcp_process+0x7bc>
  75037. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: LAST_ACK %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  75038. /* bugfix #21699: don't set pcb->state to CLOSED here or we risk leaking segments */
  75039. recv_flags |= TF_CLOSED;
  75040. 801e754: 4b11 ldr r3, [pc, #68] @ (801e79c <tcp_process+0x7d8>)
  75041. 801e756: 781b ldrb r3, [r3, #0]
  75042. 801e758: f043 0310 orr.w r3, r3, #16
  75043. 801e75c: b2da uxtb r2, r3
  75044. 801e75e: 4b0f ldr r3, [pc, #60] @ (801e79c <tcp_process+0x7d8>)
  75045. 801e760: 701a strb r2, [r3, #0]
  75046. }
  75047. break;
  75048. 801e762: e00d b.n 801e780 <tcp_process+0x7bc>
  75049. default:
  75050. break;
  75051. 801e764: bf00 nop
  75052. 801e766: e00c b.n 801e782 <tcp_process+0x7be>
  75053. break;
  75054. 801e768: bf00 nop
  75055. 801e76a: e00a b.n 801e782 <tcp_process+0x7be>
  75056. break;
  75057. 801e76c: bf00 nop
  75058. 801e76e: e008 b.n 801e782 <tcp_process+0x7be>
  75059. break;
  75060. 801e770: bf00 nop
  75061. 801e772: e006 b.n 801e782 <tcp_process+0x7be>
  75062. break;
  75063. 801e774: bf00 nop
  75064. 801e776: e004 b.n 801e782 <tcp_process+0x7be>
  75065. break;
  75066. 801e778: bf00 nop
  75067. 801e77a: e002 b.n 801e782 <tcp_process+0x7be>
  75068. break;
  75069. 801e77c: bf00 nop
  75070. 801e77e: e000 b.n 801e782 <tcp_process+0x7be>
  75071. break;
  75072. 801e780: bf00 nop
  75073. }
  75074. return ERR_OK;
  75075. 801e782: 2300 movs r3, #0
  75076. }
  75077. 801e784: 4618 mov r0, r3
  75078. 801e786: 3724 adds r7, #36 @ 0x24
  75079. 801e788: 46bd mov sp, r7
  75080. 801e78a: bd90 pop {r4, r7, pc}
  75081. 801e78c: 2402af7c .word 0x2402af7c
  75082. 801e790: 2402af78 .word 0x2402af78
  75083. 801e794: 2402afb0 .word 0x2402afb0
  75084. 801e798: 2402afa8 .word 0x2402afa8
  75085. 801e79c: 2402afb1 .word 0x2402afb1
  75086. 801e7a0: 2402af74 .word 0x2402af74
  75087. 0801e7a4 <tcp_oos_insert_segment>:
  75088. *
  75089. * Called from tcp_receive()
  75090. */
  75091. static void
  75092. tcp_oos_insert_segment(struct tcp_seg *cseg, struct tcp_seg *next)
  75093. {
  75094. 801e7a4: b590 push {r4, r7, lr}
  75095. 801e7a6: b085 sub sp, #20
  75096. 801e7a8: af00 add r7, sp, #0
  75097. 801e7aa: 6078 str r0, [r7, #4]
  75098. 801e7ac: 6039 str r1, [r7, #0]
  75099. struct tcp_seg *old_seg;
  75100. LWIP_ASSERT("tcp_oos_insert_segment: invalid cseg", cseg != NULL);
  75101. 801e7ae: 687b ldr r3, [r7, #4]
  75102. 801e7b0: 2b00 cmp r3, #0
  75103. 801e7b2: d106 bne.n 801e7c2 <tcp_oos_insert_segment+0x1e>
  75104. 801e7b4: 4b3b ldr r3, [pc, #236] @ (801e8a4 <tcp_oos_insert_segment+0x100>)
  75105. 801e7b6: f240 421f movw r2, #1055 @ 0x41f
  75106. 801e7ba: 493b ldr r1, [pc, #236] @ (801e8a8 <tcp_oos_insert_segment+0x104>)
  75107. 801e7bc: 483b ldr r0, [pc, #236] @ (801e8ac <tcp_oos_insert_segment+0x108>)
  75108. 801e7be: f00b ffcd bl 802a75c <iprintf>
  75109. if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) {
  75110. 801e7c2: 687b ldr r3, [r7, #4]
  75111. 801e7c4: 691b ldr r3, [r3, #16]
  75112. 801e7c6: 899b ldrh r3, [r3, #12]
  75113. 801e7c8: b29b uxth r3, r3
  75114. 801e7ca: 4618 mov r0, r3
  75115. 801e7cc: f7fb f86c bl 80198a8 <lwip_htons>
  75116. 801e7d0: 4603 mov r3, r0
  75117. 801e7d2: b2db uxtb r3, r3
  75118. 801e7d4: f003 0301 and.w r3, r3, #1
  75119. 801e7d8: 2b00 cmp r3, #0
  75120. 801e7da: d028 beq.n 801e82e <tcp_oos_insert_segment+0x8a>
  75121. /* received segment overlaps all following segments */
  75122. tcp_segs_free(next);
  75123. 801e7dc: 6838 ldr r0, [r7, #0]
  75124. 801e7de: f7fe f989 bl 801caf4 <tcp_segs_free>
  75125. next = NULL;
  75126. 801e7e2: 2300 movs r3, #0
  75127. 801e7e4: 603b str r3, [r7, #0]
  75128. 801e7e6: e056 b.n 801e896 <tcp_oos_insert_segment+0xf2>
  75129. oos queue may have segments with FIN flag */
  75130. while (next &&
  75131. TCP_SEQ_GEQ((seqno + cseg->len),
  75132. (next->tcphdr->seqno + next->len))) {
  75133. /* cseg with FIN already processed */
  75134. if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) {
  75135. 801e7e8: 683b ldr r3, [r7, #0]
  75136. 801e7ea: 691b ldr r3, [r3, #16]
  75137. 801e7ec: 899b ldrh r3, [r3, #12]
  75138. 801e7ee: b29b uxth r3, r3
  75139. 801e7f0: 4618 mov r0, r3
  75140. 801e7f2: f7fb f859 bl 80198a8 <lwip_htons>
  75141. 801e7f6: 4603 mov r3, r0
  75142. 801e7f8: b2db uxtb r3, r3
  75143. 801e7fa: f003 0301 and.w r3, r3, #1
  75144. 801e7fe: 2b00 cmp r3, #0
  75145. 801e800: d00d beq.n 801e81e <tcp_oos_insert_segment+0x7a>
  75146. TCPH_SET_FLAG(cseg->tcphdr, TCP_FIN);
  75147. 801e802: 687b ldr r3, [r7, #4]
  75148. 801e804: 691b ldr r3, [r3, #16]
  75149. 801e806: 899b ldrh r3, [r3, #12]
  75150. 801e808: b29c uxth r4, r3
  75151. 801e80a: 2001 movs r0, #1
  75152. 801e80c: f7fb f84c bl 80198a8 <lwip_htons>
  75153. 801e810: 4603 mov r3, r0
  75154. 801e812: 461a mov r2, r3
  75155. 801e814: 687b ldr r3, [r7, #4]
  75156. 801e816: 691b ldr r3, [r3, #16]
  75157. 801e818: 4322 orrs r2, r4
  75158. 801e81a: b292 uxth r2, r2
  75159. 801e81c: 819a strh r2, [r3, #12]
  75160. }
  75161. old_seg = next;
  75162. 801e81e: 683b ldr r3, [r7, #0]
  75163. 801e820: 60fb str r3, [r7, #12]
  75164. next = next->next;
  75165. 801e822: 683b ldr r3, [r7, #0]
  75166. 801e824: 681b ldr r3, [r3, #0]
  75167. 801e826: 603b str r3, [r7, #0]
  75168. tcp_seg_free(old_seg);
  75169. 801e828: 68f8 ldr r0, [r7, #12]
  75170. 801e82a: f7fe f978 bl 801cb1e <tcp_seg_free>
  75171. while (next &&
  75172. 801e82e: 683b ldr r3, [r7, #0]
  75173. 801e830: 2b00 cmp r3, #0
  75174. 801e832: d00e beq.n 801e852 <tcp_oos_insert_segment+0xae>
  75175. TCP_SEQ_GEQ((seqno + cseg->len),
  75176. 801e834: 687b ldr r3, [r7, #4]
  75177. 801e836: 891b ldrh r3, [r3, #8]
  75178. 801e838: 461a mov r2, r3
  75179. 801e83a: 4b1d ldr r3, [pc, #116] @ (801e8b0 <tcp_oos_insert_segment+0x10c>)
  75180. 801e83c: 681b ldr r3, [r3, #0]
  75181. 801e83e: 441a add r2, r3
  75182. 801e840: 683b ldr r3, [r7, #0]
  75183. 801e842: 691b ldr r3, [r3, #16]
  75184. 801e844: 685b ldr r3, [r3, #4]
  75185. 801e846: 6839 ldr r1, [r7, #0]
  75186. 801e848: 8909 ldrh r1, [r1, #8]
  75187. 801e84a: 440b add r3, r1
  75188. 801e84c: 1ad3 subs r3, r2, r3
  75189. while (next &&
  75190. 801e84e: 2b00 cmp r3, #0
  75191. 801e850: daca bge.n 801e7e8 <tcp_oos_insert_segment+0x44>
  75192. }
  75193. if (next &&
  75194. 801e852: 683b ldr r3, [r7, #0]
  75195. 801e854: 2b00 cmp r3, #0
  75196. 801e856: d01e beq.n 801e896 <tcp_oos_insert_segment+0xf2>
  75197. TCP_SEQ_GT(seqno + cseg->len, next->tcphdr->seqno)) {
  75198. 801e858: 687b ldr r3, [r7, #4]
  75199. 801e85a: 891b ldrh r3, [r3, #8]
  75200. 801e85c: 461a mov r2, r3
  75201. 801e85e: 4b14 ldr r3, [pc, #80] @ (801e8b0 <tcp_oos_insert_segment+0x10c>)
  75202. 801e860: 681b ldr r3, [r3, #0]
  75203. 801e862: 441a add r2, r3
  75204. 801e864: 683b ldr r3, [r7, #0]
  75205. 801e866: 691b ldr r3, [r3, #16]
  75206. 801e868: 685b ldr r3, [r3, #4]
  75207. 801e86a: 1ad3 subs r3, r2, r3
  75208. if (next &&
  75209. 801e86c: 2b00 cmp r3, #0
  75210. 801e86e: dd12 ble.n 801e896 <tcp_oos_insert_segment+0xf2>
  75211. /* We need to trim the incoming segment. */
  75212. cseg->len = (u16_t)(next->tcphdr->seqno - seqno);
  75213. 801e870: 683b ldr r3, [r7, #0]
  75214. 801e872: 691b ldr r3, [r3, #16]
  75215. 801e874: 685b ldr r3, [r3, #4]
  75216. 801e876: b29a uxth r2, r3
  75217. 801e878: 4b0d ldr r3, [pc, #52] @ (801e8b0 <tcp_oos_insert_segment+0x10c>)
  75218. 801e87a: 681b ldr r3, [r3, #0]
  75219. 801e87c: b29b uxth r3, r3
  75220. 801e87e: 1ad3 subs r3, r2, r3
  75221. 801e880: b29a uxth r2, r3
  75222. 801e882: 687b ldr r3, [r7, #4]
  75223. 801e884: 811a strh r2, [r3, #8]
  75224. pbuf_realloc(cseg->p, cseg->len);
  75225. 801e886: 687b ldr r3, [r7, #4]
  75226. 801e888: 685a ldr r2, [r3, #4]
  75227. 801e88a: 687b ldr r3, [r7, #4]
  75228. 801e88c: 891b ldrh r3, [r3, #8]
  75229. 801e88e: 4619 mov r1, r3
  75230. 801e890: 4610 mov r0, r2
  75231. 801e892: f7fc fb35 bl 801af00 <pbuf_realloc>
  75232. }
  75233. }
  75234. cseg->next = next;
  75235. 801e896: 687b ldr r3, [r7, #4]
  75236. 801e898: 683a ldr r2, [r7, #0]
  75237. 801e89a: 601a str r2, [r3, #0]
  75238. }
  75239. 801e89c: bf00 nop
  75240. 801e89e: 3714 adds r7, #20
  75241. 801e8a0: 46bd mov sp, r7
  75242. 801e8a2: bd90 pop {r4, r7, pc}
  75243. 801e8a4: 0802fbf4 .word 0x0802fbf4
  75244. 801e8a8: 0802feb4 .word 0x0802feb4
  75245. 801e8ac: 0802fc40 .word 0x0802fc40
  75246. 801e8b0: 2402afa4 .word 0x2402afa4
  75247. 0801e8b4 <tcp_free_acked_segments>:
  75248. /** Remove segments from a list if the incoming ACK acknowledges them */
  75249. static struct tcp_seg *
  75250. tcp_free_acked_segments(struct tcp_pcb *pcb, struct tcp_seg *seg_list, const char *dbg_list_name,
  75251. struct tcp_seg *dbg_other_seg_list)
  75252. {
  75253. 801e8b4: b5b0 push {r4, r5, r7, lr}
  75254. 801e8b6: b086 sub sp, #24
  75255. 801e8b8: af00 add r7, sp, #0
  75256. 801e8ba: 60f8 str r0, [r7, #12]
  75257. 801e8bc: 60b9 str r1, [r7, #8]
  75258. 801e8be: 607a str r2, [r7, #4]
  75259. 801e8c0: 603b str r3, [r7, #0]
  75260. u16_t clen;
  75261. LWIP_UNUSED_ARG(dbg_list_name);
  75262. LWIP_UNUSED_ARG(dbg_other_seg_list);
  75263. while (seg_list != NULL &&
  75264. 801e8c2: e03e b.n 801e942 <tcp_free_acked_segments+0x8e>
  75265. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: removing %"U32_F":%"U32_F" from pcb->%s\n",
  75266. lwip_ntohl(seg_list->tcphdr->seqno),
  75267. lwip_ntohl(seg_list->tcphdr->seqno) + TCP_TCPLEN(seg_list),
  75268. dbg_list_name));
  75269. next = seg_list;
  75270. 801e8c4: 68bb ldr r3, [r7, #8]
  75271. 801e8c6: 617b str r3, [r7, #20]
  75272. seg_list = seg_list->next;
  75273. 801e8c8: 68bb ldr r3, [r7, #8]
  75274. 801e8ca: 681b ldr r3, [r3, #0]
  75275. 801e8cc: 60bb str r3, [r7, #8]
  75276. clen = pbuf_clen(next->p);
  75277. 801e8ce: 697b ldr r3, [r7, #20]
  75278. 801e8d0: 685b ldr r3, [r3, #4]
  75279. 801e8d2: 4618 mov r0, r3
  75280. 801e8d4: f7fc fd58 bl 801b388 <pbuf_clen>
  75281. 801e8d8: 4603 mov r3, r0
  75282. 801e8da: 827b strh r3, [r7, #18]
  75283. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_receive: queuelen %"TCPWNDSIZE_F" ... ",
  75284. (tcpwnd_size_t)pcb->snd_queuelen));
  75285. LWIP_ASSERT("pcb->snd_queuelen >= pbuf_clen(next->p)", (pcb->snd_queuelen >= clen));
  75286. 801e8dc: 68fb ldr r3, [r7, #12]
  75287. 801e8de: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  75288. 801e8e2: 8a7a ldrh r2, [r7, #18]
  75289. 801e8e4: 429a cmp r2, r3
  75290. 801e8e6: d906 bls.n 801e8f6 <tcp_free_acked_segments+0x42>
  75291. 801e8e8: 4b2a ldr r3, [pc, #168] @ (801e994 <tcp_free_acked_segments+0xe0>)
  75292. 801e8ea: f240 4257 movw r2, #1111 @ 0x457
  75293. 801e8ee: 492a ldr r1, [pc, #168] @ (801e998 <tcp_free_acked_segments+0xe4>)
  75294. 801e8f0: 482a ldr r0, [pc, #168] @ (801e99c <tcp_free_acked_segments+0xe8>)
  75295. 801e8f2: f00b ff33 bl 802a75c <iprintf>
  75296. pcb->snd_queuelen = (u16_t)(pcb->snd_queuelen - clen);
  75297. 801e8f6: 68fb ldr r3, [r7, #12]
  75298. 801e8f8: f8b3 2066 ldrh.w r2, [r3, #102] @ 0x66
  75299. 801e8fc: 8a7b ldrh r3, [r7, #18]
  75300. 801e8fe: 1ad3 subs r3, r2, r3
  75301. 801e900: b29a uxth r2, r3
  75302. 801e902: 68fb ldr r3, [r7, #12]
  75303. 801e904: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  75304. recv_acked = (tcpwnd_size_t)(recv_acked + next->len);
  75305. 801e908: 697b ldr r3, [r7, #20]
  75306. 801e90a: 891a ldrh r2, [r3, #8]
  75307. 801e90c: 4b24 ldr r3, [pc, #144] @ (801e9a0 <tcp_free_acked_segments+0xec>)
  75308. 801e90e: 881b ldrh r3, [r3, #0]
  75309. 801e910: 4413 add r3, r2
  75310. 801e912: b29a uxth r2, r3
  75311. 801e914: 4b22 ldr r3, [pc, #136] @ (801e9a0 <tcp_free_acked_segments+0xec>)
  75312. 801e916: 801a strh r2, [r3, #0]
  75313. tcp_seg_free(next);
  75314. 801e918: 6978 ldr r0, [r7, #20]
  75315. 801e91a: f7fe f900 bl 801cb1e <tcp_seg_free>
  75316. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("%"TCPWNDSIZE_F" (after freeing %s)\n",
  75317. (tcpwnd_size_t)pcb->snd_queuelen,
  75318. dbg_list_name));
  75319. if (pcb->snd_queuelen != 0) {
  75320. 801e91e: 68fb ldr r3, [r7, #12]
  75321. 801e920: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  75322. 801e924: 2b00 cmp r3, #0
  75323. 801e926: d00c beq.n 801e942 <tcp_free_acked_segments+0x8e>
  75324. LWIP_ASSERT("tcp_receive: valid queue length",
  75325. 801e928: 68bb ldr r3, [r7, #8]
  75326. 801e92a: 2b00 cmp r3, #0
  75327. 801e92c: d109 bne.n 801e942 <tcp_free_acked_segments+0x8e>
  75328. 801e92e: 683b ldr r3, [r7, #0]
  75329. 801e930: 2b00 cmp r3, #0
  75330. 801e932: d106 bne.n 801e942 <tcp_free_acked_segments+0x8e>
  75331. 801e934: 4b17 ldr r3, [pc, #92] @ (801e994 <tcp_free_acked_segments+0xe0>)
  75332. 801e936: f240 4261 movw r2, #1121 @ 0x461
  75333. 801e93a: 491a ldr r1, [pc, #104] @ (801e9a4 <tcp_free_acked_segments+0xf0>)
  75334. 801e93c: 4817 ldr r0, [pc, #92] @ (801e99c <tcp_free_acked_segments+0xe8>)
  75335. 801e93e: f00b ff0d bl 802a75c <iprintf>
  75336. while (seg_list != NULL &&
  75337. 801e942: 68bb ldr r3, [r7, #8]
  75338. 801e944: 2b00 cmp r3, #0
  75339. 801e946: d020 beq.n 801e98a <tcp_free_acked_segments+0xd6>
  75340. TCP_SEQ_LEQ(lwip_ntohl(seg_list->tcphdr->seqno) +
  75341. 801e948: 68bb ldr r3, [r7, #8]
  75342. 801e94a: 691b ldr r3, [r3, #16]
  75343. 801e94c: 685b ldr r3, [r3, #4]
  75344. 801e94e: 4618 mov r0, r3
  75345. 801e950: f7fa ffbf bl 80198d2 <lwip_htonl>
  75346. 801e954: 4604 mov r4, r0
  75347. 801e956: 68bb ldr r3, [r7, #8]
  75348. 801e958: 891b ldrh r3, [r3, #8]
  75349. 801e95a: 461d mov r5, r3
  75350. 801e95c: 68bb ldr r3, [r7, #8]
  75351. 801e95e: 691b ldr r3, [r3, #16]
  75352. 801e960: 899b ldrh r3, [r3, #12]
  75353. 801e962: b29b uxth r3, r3
  75354. 801e964: 4618 mov r0, r3
  75355. 801e966: f7fa ff9f bl 80198a8 <lwip_htons>
  75356. 801e96a: 4603 mov r3, r0
  75357. 801e96c: b2db uxtb r3, r3
  75358. 801e96e: f003 0303 and.w r3, r3, #3
  75359. 801e972: 2b00 cmp r3, #0
  75360. 801e974: d001 beq.n 801e97a <tcp_free_acked_segments+0xc6>
  75361. 801e976: 2301 movs r3, #1
  75362. 801e978: e000 b.n 801e97c <tcp_free_acked_segments+0xc8>
  75363. 801e97a: 2300 movs r3, #0
  75364. 801e97c: 442b add r3, r5
  75365. 801e97e: 18e2 adds r2, r4, r3
  75366. 801e980: 4b09 ldr r3, [pc, #36] @ (801e9a8 <tcp_free_acked_segments+0xf4>)
  75367. 801e982: 681b ldr r3, [r3, #0]
  75368. 801e984: 1ad3 subs r3, r2, r3
  75369. while (seg_list != NULL &&
  75370. 801e986: 2b00 cmp r3, #0
  75371. 801e988: dd9c ble.n 801e8c4 <tcp_free_acked_segments+0x10>
  75372. seg_list != NULL || dbg_other_seg_list != NULL);
  75373. }
  75374. }
  75375. return seg_list;
  75376. 801e98a: 68bb ldr r3, [r7, #8]
  75377. }
  75378. 801e98c: 4618 mov r0, r3
  75379. 801e98e: 3718 adds r7, #24
  75380. 801e990: 46bd mov sp, r7
  75381. 801e992: bdb0 pop {r4, r5, r7, pc}
  75382. 801e994: 0802fbf4 .word 0x0802fbf4
  75383. 801e998: 0802fedc .word 0x0802fedc
  75384. 801e99c: 0802fc40 .word 0x0802fc40
  75385. 801e9a0: 2402afac .word 0x2402afac
  75386. 801e9a4: 0802ff04 .word 0x0802ff04
  75387. 801e9a8: 2402afa8 .word 0x2402afa8
  75388. 0801e9ac <tcp_receive>:
  75389. *
  75390. * Called from tcp_process().
  75391. */
  75392. static void
  75393. tcp_receive(struct tcp_pcb *pcb)
  75394. {
  75395. 801e9ac: b5b0 push {r4, r5, r7, lr}
  75396. 801e9ae: b094 sub sp, #80 @ 0x50
  75397. 801e9b0: af00 add r7, sp, #0
  75398. 801e9b2: 6078 str r0, [r7, #4]
  75399. s16_t m;
  75400. u32_t right_wnd_edge;
  75401. int found_dupack = 0;
  75402. 801e9b4: 2300 movs r3, #0
  75403. 801e9b6: 64bb str r3, [r7, #72] @ 0x48
  75404. LWIP_ASSERT("tcp_receive: invalid pcb", pcb != NULL);
  75405. 801e9b8: 687b ldr r3, [r7, #4]
  75406. 801e9ba: 2b00 cmp r3, #0
  75407. 801e9bc: d106 bne.n 801e9cc <tcp_receive+0x20>
  75408. 801e9be: 4b91 ldr r3, [pc, #580] @ (801ec04 <tcp_receive+0x258>)
  75409. 801e9c0: f240 427b movw r2, #1147 @ 0x47b
  75410. 801e9c4: 4990 ldr r1, [pc, #576] @ (801ec08 <tcp_receive+0x25c>)
  75411. 801e9c6: 4891 ldr r0, [pc, #580] @ (801ec0c <tcp_receive+0x260>)
  75412. 801e9c8: f00b fec8 bl 802a75c <iprintf>
  75413. LWIP_ASSERT("tcp_receive: wrong state", pcb->state >= ESTABLISHED);
  75414. 801e9cc: 687b ldr r3, [r7, #4]
  75415. 801e9ce: 7d1b ldrb r3, [r3, #20]
  75416. 801e9d0: 2b03 cmp r3, #3
  75417. 801e9d2: d806 bhi.n 801e9e2 <tcp_receive+0x36>
  75418. 801e9d4: 4b8b ldr r3, [pc, #556] @ (801ec04 <tcp_receive+0x258>)
  75419. 801e9d6: f240 427c movw r2, #1148 @ 0x47c
  75420. 801e9da: 498d ldr r1, [pc, #564] @ (801ec10 <tcp_receive+0x264>)
  75421. 801e9dc: 488b ldr r0, [pc, #556] @ (801ec0c <tcp_receive+0x260>)
  75422. 801e9de: f00b febd bl 802a75c <iprintf>
  75423. if (flags & TCP_ACK) {
  75424. 801e9e2: 4b8c ldr r3, [pc, #560] @ (801ec14 <tcp_receive+0x268>)
  75425. 801e9e4: 781b ldrb r3, [r3, #0]
  75426. 801e9e6: f003 0310 and.w r3, r3, #16
  75427. 801e9ea: 2b00 cmp r3, #0
  75428. 801e9ec: f000 8264 beq.w 801eeb8 <tcp_receive+0x50c>
  75429. right_wnd_edge = pcb->snd_wnd + pcb->snd_wl2;
  75430. 801e9f0: 687b ldr r3, [r7, #4]
  75431. 801e9f2: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  75432. 801e9f6: 461a mov r2, r3
  75433. 801e9f8: 687b ldr r3, [r7, #4]
  75434. 801e9fa: 6d9b ldr r3, [r3, #88] @ 0x58
  75435. 801e9fc: 4413 add r3, r2
  75436. 801e9fe: 633b str r3, [r7, #48] @ 0x30
  75437. /* Update window. */
  75438. if (TCP_SEQ_LT(pcb->snd_wl1, seqno) ||
  75439. 801ea00: 687b ldr r3, [r7, #4]
  75440. 801ea02: 6d5a ldr r2, [r3, #84] @ 0x54
  75441. 801ea04: 4b84 ldr r3, [pc, #528] @ (801ec18 <tcp_receive+0x26c>)
  75442. 801ea06: 681b ldr r3, [r3, #0]
  75443. 801ea08: 1ad3 subs r3, r2, r3
  75444. 801ea0a: 2b00 cmp r3, #0
  75445. 801ea0c: db1b blt.n 801ea46 <tcp_receive+0x9a>
  75446. (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) ||
  75447. 801ea0e: 687b ldr r3, [r7, #4]
  75448. 801ea10: 6d5a ldr r2, [r3, #84] @ 0x54
  75449. 801ea12: 4b81 ldr r3, [pc, #516] @ (801ec18 <tcp_receive+0x26c>)
  75450. 801ea14: 681b ldr r3, [r3, #0]
  75451. if (TCP_SEQ_LT(pcb->snd_wl1, seqno) ||
  75452. 801ea16: 429a cmp r2, r3
  75453. 801ea18: d106 bne.n 801ea28 <tcp_receive+0x7c>
  75454. (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) ||
  75455. 801ea1a: 687b ldr r3, [r7, #4]
  75456. 801ea1c: 6d9a ldr r2, [r3, #88] @ 0x58
  75457. 801ea1e: 4b7f ldr r3, [pc, #508] @ (801ec1c <tcp_receive+0x270>)
  75458. 801ea20: 681b ldr r3, [r3, #0]
  75459. 801ea22: 1ad3 subs r3, r2, r3
  75460. 801ea24: 2b00 cmp r3, #0
  75461. 801ea26: db0e blt.n 801ea46 <tcp_receive+0x9a>
  75462. (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) {
  75463. 801ea28: 687b ldr r3, [r7, #4]
  75464. 801ea2a: 6d9a ldr r2, [r3, #88] @ 0x58
  75465. 801ea2c: 4b7b ldr r3, [pc, #492] @ (801ec1c <tcp_receive+0x270>)
  75466. 801ea2e: 681b ldr r3, [r3, #0]
  75467. (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) ||
  75468. 801ea30: 429a cmp r2, r3
  75469. 801ea32: d125 bne.n 801ea80 <tcp_receive+0xd4>
  75470. (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) {
  75471. 801ea34: 4b7a ldr r3, [pc, #488] @ (801ec20 <tcp_receive+0x274>)
  75472. 801ea36: 681b ldr r3, [r3, #0]
  75473. 801ea38: 89db ldrh r3, [r3, #14]
  75474. 801ea3a: b29a uxth r2, r3
  75475. 801ea3c: 687b ldr r3, [r7, #4]
  75476. 801ea3e: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  75477. 801ea42: 429a cmp r2, r3
  75478. 801ea44: d91c bls.n 801ea80 <tcp_receive+0xd4>
  75479. pcb->snd_wnd = SND_WND_SCALE(pcb, tcphdr->wnd);
  75480. 801ea46: 4b76 ldr r3, [pc, #472] @ (801ec20 <tcp_receive+0x274>)
  75481. 801ea48: 681b ldr r3, [r3, #0]
  75482. 801ea4a: 89db ldrh r3, [r3, #14]
  75483. 801ea4c: b29a uxth r2, r3
  75484. 801ea4e: 687b ldr r3, [r7, #4]
  75485. 801ea50: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  75486. /* keep track of the biggest window announced by the remote host to calculate
  75487. the maximum segment size */
  75488. if (pcb->snd_wnd_max < pcb->snd_wnd) {
  75489. 801ea54: 687b ldr r3, [r7, #4]
  75490. 801ea56: f8b3 2062 ldrh.w r2, [r3, #98] @ 0x62
  75491. 801ea5a: 687b ldr r3, [r7, #4]
  75492. 801ea5c: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  75493. 801ea60: 429a cmp r2, r3
  75494. 801ea62: d205 bcs.n 801ea70 <tcp_receive+0xc4>
  75495. pcb->snd_wnd_max = pcb->snd_wnd;
  75496. 801ea64: 687b ldr r3, [r7, #4]
  75497. 801ea66: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  75498. 801ea6a: 687b ldr r3, [r7, #4]
  75499. 801ea6c: f8a3 2062 strh.w r2, [r3, #98] @ 0x62
  75500. }
  75501. pcb->snd_wl1 = seqno;
  75502. 801ea70: 4b69 ldr r3, [pc, #420] @ (801ec18 <tcp_receive+0x26c>)
  75503. 801ea72: 681a ldr r2, [r3, #0]
  75504. 801ea74: 687b ldr r3, [r7, #4]
  75505. 801ea76: 655a str r2, [r3, #84] @ 0x54
  75506. pcb->snd_wl2 = ackno;
  75507. 801ea78: 4b68 ldr r3, [pc, #416] @ (801ec1c <tcp_receive+0x270>)
  75508. 801ea7a: 681a ldr r2, [r3, #0]
  75509. 801ea7c: 687b ldr r3, [r7, #4]
  75510. 801ea7e: 659a str r2, [r3, #88] @ 0x58
  75511. * If it only passes 1, should reset dupack counter
  75512. *
  75513. */
  75514. /* Clause 1 */
  75515. if (TCP_SEQ_LEQ(ackno, pcb->lastack)) {
  75516. 801ea80: 4b66 ldr r3, [pc, #408] @ (801ec1c <tcp_receive+0x270>)
  75517. 801ea82: 681a ldr r2, [r3, #0]
  75518. 801ea84: 687b ldr r3, [r7, #4]
  75519. 801ea86: 6c5b ldr r3, [r3, #68] @ 0x44
  75520. 801ea88: 1ad3 subs r3, r2, r3
  75521. 801ea8a: 2b00 cmp r3, #0
  75522. 801ea8c: dc58 bgt.n 801eb40 <tcp_receive+0x194>
  75523. /* Clause 2 */
  75524. if (tcplen == 0) {
  75525. 801ea8e: 4b65 ldr r3, [pc, #404] @ (801ec24 <tcp_receive+0x278>)
  75526. 801ea90: 881b ldrh r3, [r3, #0]
  75527. 801ea92: 2b00 cmp r3, #0
  75528. 801ea94: d14b bne.n 801eb2e <tcp_receive+0x182>
  75529. /* Clause 3 */
  75530. if (pcb->snd_wl2 + pcb->snd_wnd == right_wnd_edge) {
  75531. 801ea96: 687b ldr r3, [r7, #4]
  75532. 801ea98: 6d9b ldr r3, [r3, #88] @ 0x58
  75533. 801ea9a: 687a ldr r2, [r7, #4]
  75534. 801ea9c: f8b2 2060 ldrh.w r2, [r2, #96] @ 0x60
  75535. 801eaa0: 4413 add r3, r2
  75536. 801eaa2: 6b3a ldr r2, [r7, #48] @ 0x30
  75537. 801eaa4: 429a cmp r2, r3
  75538. 801eaa6: d142 bne.n 801eb2e <tcp_receive+0x182>
  75539. /* Clause 4 */
  75540. if (pcb->rtime >= 0) {
  75541. 801eaa8: 687b ldr r3, [r7, #4]
  75542. 801eaaa: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  75543. 801eaae: 2b00 cmp r3, #0
  75544. 801eab0: db3d blt.n 801eb2e <tcp_receive+0x182>
  75545. /* Clause 5 */
  75546. if (pcb->lastack == ackno) {
  75547. 801eab2: 687b ldr r3, [r7, #4]
  75548. 801eab4: 6c5a ldr r2, [r3, #68] @ 0x44
  75549. 801eab6: 4b59 ldr r3, [pc, #356] @ (801ec1c <tcp_receive+0x270>)
  75550. 801eab8: 681b ldr r3, [r3, #0]
  75551. 801eaba: 429a cmp r2, r3
  75552. 801eabc: d137 bne.n 801eb2e <tcp_receive+0x182>
  75553. found_dupack = 1;
  75554. 801eabe: 2301 movs r3, #1
  75555. 801eac0: 64bb str r3, [r7, #72] @ 0x48
  75556. if ((u8_t)(pcb->dupacks + 1) > pcb->dupacks) {
  75557. 801eac2: 687b ldr r3, [r7, #4]
  75558. 801eac4: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  75559. 801eac8: 2bff cmp r3, #255 @ 0xff
  75560. 801eaca: d007 beq.n 801eadc <tcp_receive+0x130>
  75561. ++pcb->dupacks;
  75562. 801eacc: 687b ldr r3, [r7, #4]
  75563. 801eace: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  75564. 801ead2: 3301 adds r3, #1
  75565. 801ead4: b2da uxtb r2, r3
  75566. 801ead6: 687b ldr r3, [r7, #4]
  75567. 801ead8: f883 2043 strb.w r2, [r3, #67] @ 0x43
  75568. }
  75569. if (pcb->dupacks > 3) {
  75570. 801eadc: 687b ldr r3, [r7, #4]
  75571. 801eade: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  75572. 801eae2: 2b03 cmp r3, #3
  75573. 801eae4: d91b bls.n 801eb1e <tcp_receive+0x172>
  75574. /* Inflate the congestion window */
  75575. TCP_WND_INC(pcb->cwnd, pcb->mss);
  75576. 801eae6: 687b ldr r3, [r7, #4]
  75577. 801eae8: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  75578. 801eaec: 687b ldr r3, [r7, #4]
  75579. 801eaee: 8e5b ldrh r3, [r3, #50] @ 0x32
  75580. 801eaf0: 4413 add r3, r2
  75581. 801eaf2: b29a uxth r2, r3
  75582. 801eaf4: 687b ldr r3, [r7, #4]
  75583. 801eaf6: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  75584. 801eafa: 429a cmp r2, r3
  75585. 801eafc: d30a bcc.n 801eb14 <tcp_receive+0x168>
  75586. 801eafe: 687b ldr r3, [r7, #4]
  75587. 801eb00: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  75588. 801eb04: 687b ldr r3, [r7, #4]
  75589. 801eb06: 8e5b ldrh r3, [r3, #50] @ 0x32
  75590. 801eb08: 4413 add r3, r2
  75591. 801eb0a: b29a uxth r2, r3
  75592. 801eb0c: 687b ldr r3, [r7, #4]
  75593. 801eb0e: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  75594. 801eb12: e004 b.n 801eb1e <tcp_receive+0x172>
  75595. 801eb14: 687b ldr r3, [r7, #4]
  75596. 801eb16: f64f 72ff movw r2, #65535 @ 0xffff
  75597. 801eb1a: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  75598. }
  75599. if (pcb->dupacks >= 3) {
  75600. 801eb1e: 687b ldr r3, [r7, #4]
  75601. 801eb20: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  75602. 801eb24: 2b02 cmp r3, #2
  75603. 801eb26: d902 bls.n 801eb2e <tcp_receive+0x182>
  75604. /* Do fast retransmit (checked via TF_INFR, not via dupacks count) */
  75605. tcp_rexmit_fast(pcb);
  75606. 801eb28: 6878 ldr r0, [r7, #4]
  75607. 801eb2a: f002 fbb3 bl 8021294 <tcp_rexmit_fast>
  75608. }
  75609. }
  75610. }
  75611. /* If Clause (1) or more is true, but not a duplicate ack, reset
  75612. * count of consecutive duplicate acks */
  75613. if (!found_dupack) {
  75614. 801eb2e: 6cbb ldr r3, [r7, #72] @ 0x48
  75615. 801eb30: 2b00 cmp r3, #0
  75616. 801eb32: f040 8161 bne.w 801edf8 <tcp_receive+0x44c>
  75617. pcb->dupacks = 0;
  75618. 801eb36: 687b ldr r3, [r7, #4]
  75619. 801eb38: 2200 movs r2, #0
  75620. 801eb3a: f883 2043 strb.w r2, [r3, #67] @ 0x43
  75621. 801eb3e: e15b b.n 801edf8 <tcp_receive+0x44c>
  75622. }
  75623. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  75624. 801eb40: 4b36 ldr r3, [pc, #216] @ (801ec1c <tcp_receive+0x270>)
  75625. 801eb42: 681a ldr r2, [r3, #0]
  75626. 801eb44: 687b ldr r3, [r7, #4]
  75627. 801eb46: 6c5b ldr r3, [r3, #68] @ 0x44
  75628. 801eb48: 1ad3 subs r3, r2, r3
  75629. 801eb4a: 3b01 subs r3, #1
  75630. 801eb4c: 2b00 cmp r3, #0
  75631. 801eb4e: f2c0 814e blt.w 801edee <tcp_receive+0x442>
  75632. 801eb52: 4b32 ldr r3, [pc, #200] @ (801ec1c <tcp_receive+0x270>)
  75633. 801eb54: 681a ldr r2, [r3, #0]
  75634. 801eb56: 687b ldr r3, [r7, #4]
  75635. 801eb58: 6d1b ldr r3, [r3, #80] @ 0x50
  75636. 801eb5a: 1ad3 subs r3, r2, r3
  75637. 801eb5c: 2b00 cmp r3, #0
  75638. 801eb5e: f300 8146 bgt.w 801edee <tcp_receive+0x442>
  75639. tcpwnd_size_t acked;
  75640. /* Reset the "IN Fast Retransmit" flag, since we are no longer
  75641. in fast retransmit. Also reset the congestion window to the
  75642. slow start threshold. */
  75643. if (pcb->flags & TF_INFR) {
  75644. 801eb62: 687b ldr r3, [r7, #4]
  75645. 801eb64: 8b5b ldrh r3, [r3, #26]
  75646. 801eb66: f003 0304 and.w r3, r3, #4
  75647. 801eb6a: 2b00 cmp r3, #0
  75648. 801eb6c: d010 beq.n 801eb90 <tcp_receive+0x1e4>
  75649. tcp_clear_flags(pcb, TF_INFR);
  75650. 801eb6e: 687b ldr r3, [r7, #4]
  75651. 801eb70: 8b5b ldrh r3, [r3, #26]
  75652. 801eb72: f023 0304 bic.w r3, r3, #4
  75653. 801eb76: b29a uxth r2, r3
  75654. 801eb78: 687b ldr r3, [r7, #4]
  75655. 801eb7a: 835a strh r2, [r3, #26]
  75656. pcb->cwnd = pcb->ssthresh;
  75657. 801eb7c: 687b ldr r3, [r7, #4]
  75658. 801eb7e: f8b3 204a ldrh.w r2, [r3, #74] @ 0x4a
  75659. 801eb82: 687b ldr r3, [r7, #4]
  75660. 801eb84: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  75661. pcb->bytes_acked = 0;
  75662. 801eb88: 687b ldr r3, [r7, #4]
  75663. 801eb8a: 2200 movs r2, #0
  75664. 801eb8c: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  75665. }
  75666. /* Reset the number of retransmissions. */
  75667. pcb->nrtx = 0;
  75668. 801eb90: 687b ldr r3, [r7, #4]
  75669. 801eb92: 2200 movs r2, #0
  75670. 801eb94: f883 2042 strb.w r2, [r3, #66] @ 0x42
  75671. /* Reset the retransmission time-out. */
  75672. pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv);
  75673. 801eb98: 687b ldr r3, [r7, #4]
  75674. 801eb9a: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  75675. 801eb9e: 10db asrs r3, r3, #3
  75676. 801eba0: b21b sxth r3, r3
  75677. 801eba2: b29a uxth r2, r3
  75678. 801eba4: 687b ldr r3, [r7, #4]
  75679. 801eba6: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  75680. 801ebaa: b29b uxth r3, r3
  75681. 801ebac: 4413 add r3, r2
  75682. 801ebae: b29b uxth r3, r3
  75683. 801ebb0: b21a sxth r2, r3
  75684. 801ebb2: 687b ldr r3, [r7, #4]
  75685. 801ebb4: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  75686. /* Record how much data this ACK acks */
  75687. acked = (tcpwnd_size_t)(ackno - pcb->lastack);
  75688. 801ebb8: 4b18 ldr r3, [pc, #96] @ (801ec1c <tcp_receive+0x270>)
  75689. 801ebba: 681b ldr r3, [r3, #0]
  75690. 801ebbc: b29a uxth r2, r3
  75691. 801ebbe: 687b ldr r3, [r7, #4]
  75692. 801ebc0: 6c5b ldr r3, [r3, #68] @ 0x44
  75693. 801ebc2: b29b uxth r3, r3
  75694. 801ebc4: 1ad3 subs r3, r2, r3
  75695. 801ebc6: 85fb strh r3, [r7, #46] @ 0x2e
  75696. /* Reset the fast retransmit variables. */
  75697. pcb->dupacks = 0;
  75698. 801ebc8: 687b ldr r3, [r7, #4]
  75699. 801ebca: 2200 movs r2, #0
  75700. 801ebcc: f883 2043 strb.w r2, [r3, #67] @ 0x43
  75701. pcb->lastack = ackno;
  75702. 801ebd0: 4b12 ldr r3, [pc, #72] @ (801ec1c <tcp_receive+0x270>)
  75703. 801ebd2: 681a ldr r2, [r3, #0]
  75704. 801ebd4: 687b ldr r3, [r7, #4]
  75705. 801ebd6: 645a str r2, [r3, #68] @ 0x44
  75706. /* Update the congestion control variables (cwnd and
  75707. ssthresh). */
  75708. if (pcb->state >= ESTABLISHED) {
  75709. 801ebd8: 687b ldr r3, [r7, #4]
  75710. 801ebda: 7d1b ldrb r3, [r3, #20]
  75711. 801ebdc: 2b03 cmp r3, #3
  75712. 801ebde: f240 8097 bls.w 801ed10 <tcp_receive+0x364>
  75713. if (pcb->cwnd < pcb->ssthresh) {
  75714. 801ebe2: 687b ldr r3, [r7, #4]
  75715. 801ebe4: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  75716. 801ebe8: 687b ldr r3, [r7, #4]
  75717. 801ebea: f8b3 304a ldrh.w r3, [r3, #74] @ 0x4a
  75718. 801ebee: 429a cmp r2, r3
  75719. 801ebf0: d245 bcs.n 801ec7e <tcp_receive+0x2d2>
  75720. tcpwnd_size_t increase;
  75721. /* limit to 1 SMSS segment during period following RTO */
  75722. u8_t num_seg = (pcb->flags & TF_RTO) ? 1 : 2;
  75723. 801ebf2: 687b ldr r3, [r7, #4]
  75724. 801ebf4: 8b5b ldrh r3, [r3, #26]
  75725. 801ebf6: f403 6300 and.w r3, r3, #2048 @ 0x800
  75726. 801ebfa: 2b00 cmp r3, #0
  75727. 801ebfc: d014 beq.n 801ec28 <tcp_receive+0x27c>
  75728. 801ebfe: 2301 movs r3, #1
  75729. 801ec00: e013 b.n 801ec2a <tcp_receive+0x27e>
  75730. 801ec02: bf00 nop
  75731. 801ec04: 0802fbf4 .word 0x0802fbf4
  75732. 801ec08: 0802ff24 .word 0x0802ff24
  75733. 801ec0c: 0802fc40 .word 0x0802fc40
  75734. 801ec10: 0802ff40 .word 0x0802ff40
  75735. 801ec14: 2402afb0 .word 0x2402afb0
  75736. 801ec18: 2402afa4 .word 0x2402afa4
  75737. 801ec1c: 2402afa8 .word 0x2402afa8
  75738. 801ec20: 2402af94 .word 0x2402af94
  75739. 801ec24: 2402afae .word 0x2402afae
  75740. 801ec28: 2302 movs r3, #2
  75741. 801ec2a: f887 302d strb.w r3, [r7, #45] @ 0x2d
  75742. /* RFC 3465, section 2.2 Slow Start */
  75743. increase = LWIP_MIN(acked, (tcpwnd_size_t)(num_seg * pcb->mss));
  75744. 801ec2e: f897 302d ldrb.w r3, [r7, #45] @ 0x2d
  75745. 801ec32: b29a uxth r2, r3
  75746. 801ec34: 687b ldr r3, [r7, #4]
  75747. 801ec36: 8e5b ldrh r3, [r3, #50] @ 0x32
  75748. 801ec38: fb12 f303 smulbb r3, r2, r3
  75749. 801ec3c: b29b uxth r3, r3
  75750. 801ec3e: 8dfa ldrh r2, [r7, #46] @ 0x2e
  75751. 801ec40: 4293 cmp r3, r2
  75752. 801ec42: bf28 it cs
  75753. 801ec44: 4613 movcs r3, r2
  75754. 801ec46: 857b strh r3, [r7, #42] @ 0x2a
  75755. TCP_WND_INC(pcb->cwnd, increase);
  75756. 801ec48: 687b ldr r3, [r7, #4]
  75757. 801ec4a: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  75758. 801ec4e: 8d7b ldrh r3, [r7, #42] @ 0x2a
  75759. 801ec50: 4413 add r3, r2
  75760. 801ec52: b29a uxth r2, r3
  75761. 801ec54: 687b ldr r3, [r7, #4]
  75762. 801ec56: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  75763. 801ec5a: 429a cmp r2, r3
  75764. 801ec5c: d309 bcc.n 801ec72 <tcp_receive+0x2c6>
  75765. 801ec5e: 687b ldr r3, [r7, #4]
  75766. 801ec60: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  75767. 801ec64: 8d7b ldrh r3, [r7, #42] @ 0x2a
  75768. 801ec66: 4413 add r3, r2
  75769. 801ec68: b29a uxth r2, r3
  75770. 801ec6a: 687b ldr r3, [r7, #4]
  75771. 801ec6c: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  75772. 801ec70: e04e b.n 801ed10 <tcp_receive+0x364>
  75773. 801ec72: 687b ldr r3, [r7, #4]
  75774. 801ec74: f64f 72ff movw r2, #65535 @ 0xffff
  75775. 801ec78: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  75776. 801ec7c: e048 b.n 801ed10 <tcp_receive+0x364>
  75777. LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_receive: slow start cwnd %"TCPWNDSIZE_F"\n", pcb->cwnd));
  75778. } else {
  75779. /* RFC 3465, section 2.1 Congestion Avoidance */
  75780. TCP_WND_INC(pcb->bytes_acked, acked);
  75781. 801ec7e: 687b ldr r3, [r7, #4]
  75782. 801ec80: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  75783. 801ec84: 8dfb ldrh r3, [r7, #46] @ 0x2e
  75784. 801ec86: 4413 add r3, r2
  75785. 801ec88: b29a uxth r2, r3
  75786. 801ec8a: 687b ldr r3, [r7, #4]
  75787. 801ec8c: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  75788. 801ec90: 429a cmp r2, r3
  75789. 801ec92: d309 bcc.n 801eca8 <tcp_receive+0x2fc>
  75790. 801ec94: 687b ldr r3, [r7, #4]
  75791. 801ec96: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  75792. 801ec9a: 8dfb ldrh r3, [r7, #46] @ 0x2e
  75793. 801ec9c: 4413 add r3, r2
  75794. 801ec9e: b29a uxth r2, r3
  75795. 801eca0: 687b ldr r3, [r7, #4]
  75796. 801eca2: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  75797. 801eca6: e004 b.n 801ecb2 <tcp_receive+0x306>
  75798. 801eca8: 687b ldr r3, [r7, #4]
  75799. 801ecaa: f64f 72ff movw r2, #65535 @ 0xffff
  75800. 801ecae: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  75801. if (pcb->bytes_acked >= pcb->cwnd) {
  75802. 801ecb2: 687b ldr r3, [r7, #4]
  75803. 801ecb4: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  75804. 801ecb8: 687b ldr r3, [r7, #4]
  75805. 801ecba: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  75806. 801ecbe: 429a cmp r2, r3
  75807. 801ecc0: d326 bcc.n 801ed10 <tcp_receive+0x364>
  75808. pcb->bytes_acked = (tcpwnd_size_t)(pcb->bytes_acked - pcb->cwnd);
  75809. 801ecc2: 687b ldr r3, [r7, #4]
  75810. 801ecc4: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  75811. 801ecc8: 687b ldr r3, [r7, #4]
  75812. 801ecca: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  75813. 801ecce: 1ad3 subs r3, r2, r3
  75814. 801ecd0: b29a uxth r2, r3
  75815. 801ecd2: 687b ldr r3, [r7, #4]
  75816. 801ecd4: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  75817. TCP_WND_INC(pcb->cwnd, pcb->mss);
  75818. 801ecd8: 687b ldr r3, [r7, #4]
  75819. 801ecda: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  75820. 801ecde: 687b ldr r3, [r7, #4]
  75821. 801ece0: 8e5b ldrh r3, [r3, #50] @ 0x32
  75822. 801ece2: 4413 add r3, r2
  75823. 801ece4: b29a uxth r2, r3
  75824. 801ece6: 687b ldr r3, [r7, #4]
  75825. 801ece8: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  75826. 801ecec: 429a cmp r2, r3
  75827. 801ecee: d30a bcc.n 801ed06 <tcp_receive+0x35a>
  75828. 801ecf0: 687b ldr r3, [r7, #4]
  75829. 801ecf2: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  75830. 801ecf6: 687b ldr r3, [r7, #4]
  75831. 801ecf8: 8e5b ldrh r3, [r3, #50] @ 0x32
  75832. 801ecfa: 4413 add r3, r2
  75833. 801ecfc: b29a uxth r2, r3
  75834. 801ecfe: 687b ldr r3, [r7, #4]
  75835. 801ed00: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  75836. 801ed04: e004 b.n 801ed10 <tcp_receive+0x364>
  75837. 801ed06: 687b ldr r3, [r7, #4]
  75838. 801ed08: f64f 72ff movw r2, #65535 @ 0xffff
  75839. 801ed0c: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  75840. pcb->unacked != NULL ?
  75841. lwip_ntohl(pcb->unacked->tcphdr->seqno) + TCP_TCPLEN(pcb->unacked) : 0));
  75842. /* Remove segment from the unacknowledged list if the incoming
  75843. ACK acknowledges them. */
  75844. pcb->unacked = tcp_free_acked_segments(pcb, pcb->unacked, "unacked", pcb->unsent);
  75845. 801ed10: 687b ldr r3, [r7, #4]
  75846. 801ed12: 6f19 ldr r1, [r3, #112] @ 0x70
  75847. 801ed14: 687b ldr r3, [r7, #4]
  75848. 801ed16: 6edb ldr r3, [r3, #108] @ 0x6c
  75849. 801ed18: 4a98 ldr r2, [pc, #608] @ (801ef7c <tcp_receive+0x5d0>)
  75850. 801ed1a: 6878 ldr r0, [r7, #4]
  75851. 801ed1c: f7ff fdca bl 801e8b4 <tcp_free_acked_segments>
  75852. 801ed20: 4602 mov r2, r0
  75853. 801ed22: 687b ldr r3, [r7, #4]
  75854. 801ed24: 671a str r2, [r3, #112] @ 0x70
  75855. on the list are acknowledged by the ACK. This may seem
  75856. strange since an "unsent" segment shouldn't be acked. The
  75857. rationale is that lwIP puts all outstanding segments on the
  75858. ->unsent list after a retransmission, so these segments may
  75859. in fact have been sent once. */
  75860. pcb->unsent = tcp_free_acked_segments(pcb, pcb->unsent, "unsent", pcb->unacked);
  75861. 801ed26: 687b ldr r3, [r7, #4]
  75862. 801ed28: 6ed9 ldr r1, [r3, #108] @ 0x6c
  75863. 801ed2a: 687b ldr r3, [r7, #4]
  75864. 801ed2c: 6f1b ldr r3, [r3, #112] @ 0x70
  75865. 801ed2e: 4a94 ldr r2, [pc, #592] @ (801ef80 <tcp_receive+0x5d4>)
  75866. 801ed30: 6878 ldr r0, [r7, #4]
  75867. 801ed32: f7ff fdbf bl 801e8b4 <tcp_free_acked_segments>
  75868. 801ed36: 4602 mov r2, r0
  75869. 801ed38: 687b ldr r3, [r7, #4]
  75870. 801ed3a: 66da str r2, [r3, #108] @ 0x6c
  75871. /* If there's nothing left to acknowledge, stop the retransmit
  75872. timer, otherwise reset it to start again */
  75873. if (pcb->unacked == NULL) {
  75874. 801ed3c: 687b ldr r3, [r7, #4]
  75875. 801ed3e: 6f1b ldr r3, [r3, #112] @ 0x70
  75876. 801ed40: 2b00 cmp r3, #0
  75877. 801ed42: d104 bne.n 801ed4e <tcp_receive+0x3a2>
  75878. pcb->rtime = -1;
  75879. 801ed44: 687b ldr r3, [r7, #4]
  75880. 801ed46: f64f 72ff movw r2, #65535 @ 0xffff
  75881. 801ed4a: 861a strh r2, [r3, #48] @ 0x30
  75882. 801ed4c: e002 b.n 801ed54 <tcp_receive+0x3a8>
  75883. } else {
  75884. pcb->rtime = 0;
  75885. 801ed4e: 687b ldr r3, [r7, #4]
  75886. 801ed50: 2200 movs r2, #0
  75887. 801ed52: 861a strh r2, [r3, #48] @ 0x30
  75888. }
  75889. pcb->polltmr = 0;
  75890. 801ed54: 687b ldr r3, [r7, #4]
  75891. 801ed56: 2200 movs r2, #0
  75892. 801ed58: 771a strb r2, [r3, #28]
  75893. #if TCP_OVERSIZE
  75894. if (pcb->unsent == NULL) {
  75895. 801ed5a: 687b ldr r3, [r7, #4]
  75896. 801ed5c: 6edb ldr r3, [r3, #108] @ 0x6c
  75897. 801ed5e: 2b00 cmp r3, #0
  75898. 801ed60: d103 bne.n 801ed6a <tcp_receive+0x3be>
  75899. pcb->unsent_oversize = 0;
  75900. 801ed62: 687b ldr r3, [r7, #4]
  75901. 801ed64: 2200 movs r2, #0
  75902. 801ed66: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  75903. /* Inform neighbor reachability of forward progress. */
  75904. nd6_reachability_hint(ip6_current_src_addr());
  75905. }
  75906. #endif /* LWIP_IPV6 && LWIP_ND6_TCP_REACHABILITY_HINTS*/
  75907. pcb->snd_buf = (tcpwnd_size_t)(pcb->snd_buf + recv_acked);
  75908. 801ed6a: 687b ldr r3, [r7, #4]
  75909. 801ed6c: f8b3 2064 ldrh.w r2, [r3, #100] @ 0x64
  75910. 801ed70: 4b84 ldr r3, [pc, #528] @ (801ef84 <tcp_receive+0x5d8>)
  75911. 801ed72: 881b ldrh r3, [r3, #0]
  75912. 801ed74: 4413 add r3, r2
  75913. 801ed76: b29a uxth r2, r3
  75914. 801ed78: 687b ldr r3, [r7, #4]
  75915. 801ed7a: f8a3 2064 strh.w r2, [r3, #100] @ 0x64
  75916. /* check if this ACK ends our retransmission of in-flight data */
  75917. if (pcb->flags & TF_RTO) {
  75918. 801ed7e: 687b ldr r3, [r7, #4]
  75919. 801ed80: 8b5b ldrh r3, [r3, #26]
  75920. 801ed82: f403 6300 and.w r3, r3, #2048 @ 0x800
  75921. 801ed86: 2b00 cmp r3, #0
  75922. 801ed88: d035 beq.n 801edf6 <tcp_receive+0x44a>
  75923. /* RTO is done if
  75924. 1) both queues are empty or
  75925. 2) unacked is empty and unsent head contains data not part of RTO or
  75926. 3) unacked head contains data not part of RTO */
  75927. if (pcb->unacked == NULL) {
  75928. 801ed8a: 687b ldr r3, [r7, #4]
  75929. 801ed8c: 6f1b ldr r3, [r3, #112] @ 0x70
  75930. 801ed8e: 2b00 cmp r3, #0
  75931. 801ed90: d118 bne.n 801edc4 <tcp_receive+0x418>
  75932. if ((pcb->unsent == NULL) ||
  75933. 801ed92: 687b ldr r3, [r7, #4]
  75934. 801ed94: 6edb ldr r3, [r3, #108] @ 0x6c
  75935. 801ed96: 2b00 cmp r3, #0
  75936. 801ed98: d00c beq.n 801edb4 <tcp_receive+0x408>
  75937. (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unsent->tcphdr->seqno)))) {
  75938. 801ed9a: 687b ldr r3, [r7, #4]
  75939. 801ed9c: 6cdc ldr r4, [r3, #76] @ 0x4c
  75940. 801ed9e: 687b ldr r3, [r7, #4]
  75941. 801eda0: 6edb ldr r3, [r3, #108] @ 0x6c
  75942. 801eda2: 691b ldr r3, [r3, #16]
  75943. 801eda4: 685b ldr r3, [r3, #4]
  75944. 801eda6: 4618 mov r0, r3
  75945. 801eda8: f7fa fd93 bl 80198d2 <lwip_htonl>
  75946. 801edac: 4603 mov r3, r0
  75947. 801edae: 1ae3 subs r3, r4, r3
  75948. if ((pcb->unsent == NULL) ||
  75949. 801edb0: 2b00 cmp r3, #0
  75950. 801edb2: dc20 bgt.n 801edf6 <tcp_receive+0x44a>
  75951. tcp_clear_flags(pcb, TF_RTO);
  75952. 801edb4: 687b ldr r3, [r7, #4]
  75953. 801edb6: 8b5b ldrh r3, [r3, #26]
  75954. 801edb8: f423 6300 bic.w r3, r3, #2048 @ 0x800
  75955. 801edbc: b29a uxth r2, r3
  75956. 801edbe: 687b ldr r3, [r7, #4]
  75957. 801edc0: 835a strh r2, [r3, #26]
  75958. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  75959. 801edc2: e018 b.n 801edf6 <tcp_receive+0x44a>
  75960. }
  75961. } else if (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unacked->tcphdr->seqno))) {
  75962. 801edc4: 687b ldr r3, [r7, #4]
  75963. 801edc6: 6cdc ldr r4, [r3, #76] @ 0x4c
  75964. 801edc8: 687b ldr r3, [r7, #4]
  75965. 801edca: 6f1b ldr r3, [r3, #112] @ 0x70
  75966. 801edcc: 691b ldr r3, [r3, #16]
  75967. 801edce: 685b ldr r3, [r3, #4]
  75968. 801edd0: 4618 mov r0, r3
  75969. 801edd2: f7fa fd7e bl 80198d2 <lwip_htonl>
  75970. 801edd6: 4603 mov r3, r0
  75971. 801edd8: 1ae3 subs r3, r4, r3
  75972. 801edda: 2b00 cmp r3, #0
  75973. 801eddc: dc0b bgt.n 801edf6 <tcp_receive+0x44a>
  75974. tcp_clear_flags(pcb, TF_RTO);
  75975. 801edde: 687b ldr r3, [r7, #4]
  75976. 801ede0: 8b5b ldrh r3, [r3, #26]
  75977. 801ede2: f423 6300 bic.w r3, r3, #2048 @ 0x800
  75978. 801ede6: b29a uxth r2, r3
  75979. 801ede8: 687b ldr r3, [r7, #4]
  75980. 801edea: 835a strh r2, [r3, #26]
  75981. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  75982. 801edec: e003 b.n 801edf6 <tcp_receive+0x44a>
  75983. }
  75984. }
  75985. /* End of ACK for new data processing. */
  75986. } else {
  75987. /* Out of sequence ACK, didn't really ack anything */
  75988. tcp_send_empty_ack(pcb);
  75989. 801edee: 6878 ldr r0, [r7, #4]
  75990. 801edf0: f002 fc3c bl 802166c <tcp_send_empty_ack>
  75991. 801edf4: e000 b.n 801edf8 <tcp_receive+0x44c>
  75992. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  75993. 801edf6: bf00 nop
  75994. pcb->rttest, pcb->rtseq, ackno));
  75995. /* RTT estimation calculations. This is done by checking if the
  75996. incoming segment acknowledges the segment we use to take a
  75997. round-trip time measurement. */
  75998. if (pcb->rttest && TCP_SEQ_LT(pcb->rtseq, ackno)) {
  75999. 801edf8: 687b ldr r3, [r7, #4]
  76000. 801edfa: 6b5b ldr r3, [r3, #52] @ 0x34
  76001. 801edfc: 2b00 cmp r3, #0
  76002. 801edfe: d05b beq.n 801eeb8 <tcp_receive+0x50c>
  76003. 801ee00: 687b ldr r3, [r7, #4]
  76004. 801ee02: 6b9a ldr r2, [r3, #56] @ 0x38
  76005. 801ee04: 4b60 ldr r3, [pc, #384] @ (801ef88 <tcp_receive+0x5dc>)
  76006. 801ee06: 681b ldr r3, [r3, #0]
  76007. 801ee08: 1ad3 subs r3, r2, r3
  76008. 801ee0a: 2b00 cmp r3, #0
  76009. 801ee0c: da54 bge.n 801eeb8 <tcp_receive+0x50c>
  76010. /* diff between this shouldn't exceed 32K since this are tcp timer ticks
  76011. and a round-trip shouldn't be that long... */
  76012. m = (s16_t)(tcp_ticks - pcb->rttest);
  76013. 801ee0e: 4b5f ldr r3, [pc, #380] @ (801ef8c <tcp_receive+0x5e0>)
  76014. 801ee10: 681b ldr r3, [r3, #0]
  76015. 801ee12: b29a uxth r2, r3
  76016. 801ee14: 687b ldr r3, [r7, #4]
  76017. 801ee16: 6b5b ldr r3, [r3, #52] @ 0x34
  76018. 801ee18: b29b uxth r3, r3
  76019. 801ee1a: 1ad3 subs r3, r2, r3
  76020. 801ee1c: b29b uxth r3, r3
  76021. 801ee1e: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  76022. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: experienced rtt %"U16_F" ticks (%"U16_F" msec).\n",
  76023. m, (u16_t)(m * TCP_SLOW_INTERVAL)));
  76024. /* This is taken directly from VJs original code in his paper */
  76025. m = (s16_t)(m - (pcb->sa >> 3));
  76026. 801ee22: f8b7 204e ldrh.w r2, [r7, #78] @ 0x4e
  76027. 801ee26: 687b ldr r3, [r7, #4]
  76028. 801ee28: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  76029. 801ee2c: 10db asrs r3, r3, #3
  76030. 801ee2e: b21b sxth r3, r3
  76031. 801ee30: b29b uxth r3, r3
  76032. 801ee32: 1ad3 subs r3, r2, r3
  76033. 801ee34: b29b uxth r3, r3
  76034. 801ee36: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  76035. pcb->sa = (s16_t)(pcb->sa + m);
  76036. 801ee3a: 687b ldr r3, [r7, #4]
  76037. 801ee3c: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  76038. 801ee40: b29a uxth r2, r3
  76039. 801ee42: f8b7 304e ldrh.w r3, [r7, #78] @ 0x4e
  76040. 801ee46: 4413 add r3, r2
  76041. 801ee48: b29b uxth r3, r3
  76042. 801ee4a: b21a sxth r2, r3
  76043. 801ee4c: 687b ldr r3, [r7, #4]
  76044. 801ee4e: 879a strh r2, [r3, #60] @ 0x3c
  76045. if (m < 0) {
  76046. 801ee50: f9b7 304e ldrsh.w r3, [r7, #78] @ 0x4e
  76047. 801ee54: 2b00 cmp r3, #0
  76048. 801ee56: da05 bge.n 801ee64 <tcp_receive+0x4b8>
  76049. m = (s16_t) - m;
  76050. 801ee58: f8b7 304e ldrh.w r3, [r7, #78] @ 0x4e
  76051. 801ee5c: 425b negs r3, r3
  76052. 801ee5e: b29b uxth r3, r3
  76053. 801ee60: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  76054. }
  76055. m = (s16_t)(m - (pcb->sv >> 2));
  76056. 801ee64: f8b7 204e ldrh.w r2, [r7, #78] @ 0x4e
  76057. 801ee68: 687b ldr r3, [r7, #4]
  76058. 801ee6a: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  76059. 801ee6e: 109b asrs r3, r3, #2
  76060. 801ee70: b21b sxth r3, r3
  76061. 801ee72: b29b uxth r3, r3
  76062. 801ee74: 1ad3 subs r3, r2, r3
  76063. 801ee76: b29b uxth r3, r3
  76064. 801ee78: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  76065. pcb->sv = (s16_t)(pcb->sv + m);
  76066. 801ee7c: 687b ldr r3, [r7, #4]
  76067. 801ee7e: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  76068. 801ee82: b29a uxth r2, r3
  76069. 801ee84: f8b7 304e ldrh.w r3, [r7, #78] @ 0x4e
  76070. 801ee88: 4413 add r3, r2
  76071. 801ee8a: b29b uxth r3, r3
  76072. 801ee8c: b21a sxth r2, r3
  76073. 801ee8e: 687b ldr r3, [r7, #4]
  76074. 801ee90: 87da strh r2, [r3, #62] @ 0x3e
  76075. pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv);
  76076. 801ee92: 687b ldr r3, [r7, #4]
  76077. 801ee94: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  76078. 801ee98: 10db asrs r3, r3, #3
  76079. 801ee9a: b21b sxth r3, r3
  76080. 801ee9c: b29a uxth r2, r3
  76081. 801ee9e: 687b ldr r3, [r7, #4]
  76082. 801eea0: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  76083. 801eea4: b29b uxth r3, r3
  76084. 801eea6: 4413 add r3, r2
  76085. 801eea8: b29b uxth r3, r3
  76086. 801eeaa: b21a sxth r2, r3
  76087. 801eeac: 687b ldr r3, [r7, #4]
  76088. 801eeae: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  76089. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: RTO %"U16_F" (%"U16_F" milliseconds)\n",
  76090. pcb->rto, (u16_t)(pcb->rto * TCP_SLOW_INTERVAL)));
  76091. pcb->rttest = 0;
  76092. 801eeb2: 687b ldr r3, [r7, #4]
  76093. 801eeb4: 2200 movs r2, #0
  76094. 801eeb6: 635a str r2, [r3, #52] @ 0x34
  76095. /* If the incoming segment contains data, we must process it
  76096. further unless the pcb already received a FIN.
  76097. (RFC 793, chapter 3.9, "SEGMENT ARRIVES" in states CLOSE-WAIT, CLOSING,
  76098. LAST-ACK and TIME-WAIT: "Ignore the segment text.") */
  76099. if ((tcplen > 0) && (pcb->state < CLOSE_WAIT)) {
  76100. 801eeb8: 4b35 ldr r3, [pc, #212] @ (801ef90 <tcp_receive+0x5e4>)
  76101. 801eeba: 881b ldrh r3, [r3, #0]
  76102. 801eebc: 2b00 cmp r3, #0
  76103. 801eebe: f000 84df beq.w 801f880 <tcp_receive+0xed4>
  76104. 801eec2: 687b ldr r3, [r7, #4]
  76105. 801eec4: 7d1b ldrb r3, [r3, #20]
  76106. 801eec6: 2b06 cmp r3, #6
  76107. 801eec8: f200 84da bhi.w 801f880 <tcp_receive+0xed4>
  76108. this if the sequence number of the incoming segment is less
  76109. than rcv_nxt, and the sequence number plus the length of the
  76110. segment is larger than rcv_nxt. */
  76111. /* if (TCP_SEQ_LT(seqno, pcb->rcv_nxt)) {
  76112. if (TCP_SEQ_LT(pcb->rcv_nxt, seqno + tcplen)) {*/
  76113. if (TCP_SEQ_BETWEEN(pcb->rcv_nxt, seqno + 1, seqno + tcplen - 1)) {
  76114. 801eecc: 687b ldr r3, [r7, #4]
  76115. 801eece: 6a5a ldr r2, [r3, #36] @ 0x24
  76116. 801eed0: 4b30 ldr r3, [pc, #192] @ (801ef94 <tcp_receive+0x5e8>)
  76117. 801eed2: 681b ldr r3, [r3, #0]
  76118. 801eed4: 1ad3 subs r3, r2, r3
  76119. 801eed6: 3b01 subs r3, #1
  76120. 801eed8: 2b00 cmp r3, #0
  76121. 801eeda: f2c0 808f blt.w 801effc <tcp_receive+0x650>
  76122. 801eede: 687b ldr r3, [r7, #4]
  76123. 801eee0: 6a5a ldr r2, [r3, #36] @ 0x24
  76124. 801eee2: 4b2b ldr r3, [pc, #172] @ (801ef90 <tcp_receive+0x5e4>)
  76125. 801eee4: 881b ldrh r3, [r3, #0]
  76126. 801eee6: 4619 mov r1, r3
  76127. 801eee8: 4b2a ldr r3, [pc, #168] @ (801ef94 <tcp_receive+0x5e8>)
  76128. 801eeea: 681b ldr r3, [r3, #0]
  76129. 801eeec: 440b add r3, r1
  76130. 801eeee: 1ad3 subs r3, r2, r3
  76131. 801eef0: 3301 adds r3, #1
  76132. 801eef2: 2b00 cmp r3, #0
  76133. 801eef4: f300 8082 bgt.w 801effc <tcp_receive+0x650>
  76134. After we are done with adjusting the pbuf pointers we must
  76135. adjust the ->data pointer in the seg and the segment
  76136. length.*/
  76137. struct pbuf *p = inseg.p;
  76138. 801eef8: 4b27 ldr r3, [pc, #156] @ (801ef98 <tcp_receive+0x5ec>)
  76139. 801eefa: 685b ldr r3, [r3, #4]
  76140. 801eefc: 647b str r3, [r7, #68] @ 0x44
  76141. u32_t off32 = pcb->rcv_nxt - seqno;
  76142. 801eefe: 687b ldr r3, [r7, #4]
  76143. 801ef00: 6a5a ldr r2, [r3, #36] @ 0x24
  76144. 801ef02: 4b24 ldr r3, [pc, #144] @ (801ef94 <tcp_receive+0x5e8>)
  76145. 801ef04: 681b ldr r3, [r3, #0]
  76146. 801ef06: 1ad3 subs r3, r2, r3
  76147. 801ef08: 627b str r3, [r7, #36] @ 0x24
  76148. u16_t new_tot_len, off;
  76149. LWIP_ASSERT("inseg.p != NULL", inseg.p);
  76150. 801ef0a: 4b23 ldr r3, [pc, #140] @ (801ef98 <tcp_receive+0x5ec>)
  76151. 801ef0c: 685b ldr r3, [r3, #4]
  76152. 801ef0e: 2b00 cmp r3, #0
  76153. 801ef10: d106 bne.n 801ef20 <tcp_receive+0x574>
  76154. 801ef12: 4b22 ldr r3, [pc, #136] @ (801ef9c <tcp_receive+0x5f0>)
  76155. 801ef14: f240 5294 movw r2, #1428 @ 0x594
  76156. 801ef18: 4921 ldr r1, [pc, #132] @ (801efa0 <tcp_receive+0x5f4>)
  76157. 801ef1a: 4822 ldr r0, [pc, #136] @ (801efa4 <tcp_receive+0x5f8>)
  76158. 801ef1c: f00b fc1e bl 802a75c <iprintf>
  76159. LWIP_ASSERT("insane offset!", (off32 < 0xffff));
  76160. 801ef20: 6a7b ldr r3, [r7, #36] @ 0x24
  76161. 801ef22: f64f 72fe movw r2, #65534 @ 0xfffe
  76162. 801ef26: 4293 cmp r3, r2
  76163. 801ef28: d906 bls.n 801ef38 <tcp_receive+0x58c>
  76164. 801ef2a: 4b1c ldr r3, [pc, #112] @ (801ef9c <tcp_receive+0x5f0>)
  76165. 801ef2c: f240 5295 movw r2, #1429 @ 0x595
  76166. 801ef30: 491d ldr r1, [pc, #116] @ (801efa8 <tcp_receive+0x5fc>)
  76167. 801ef32: 481c ldr r0, [pc, #112] @ (801efa4 <tcp_receive+0x5f8>)
  76168. 801ef34: f00b fc12 bl 802a75c <iprintf>
  76169. off = (u16_t)off32;
  76170. 801ef38: 6a7b ldr r3, [r7, #36] @ 0x24
  76171. 801ef3a: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  76172. LWIP_ASSERT("pbuf too short!", (((s32_t)inseg.p->tot_len) >= off));
  76173. 801ef3e: 4b16 ldr r3, [pc, #88] @ (801ef98 <tcp_receive+0x5ec>)
  76174. 801ef40: 685b ldr r3, [r3, #4]
  76175. 801ef42: 891b ldrh r3, [r3, #8]
  76176. 801ef44: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  76177. 801ef48: 429a cmp r2, r3
  76178. 801ef4a: d906 bls.n 801ef5a <tcp_receive+0x5ae>
  76179. 801ef4c: 4b13 ldr r3, [pc, #76] @ (801ef9c <tcp_receive+0x5f0>)
  76180. 801ef4e: f240 5297 movw r2, #1431 @ 0x597
  76181. 801ef52: 4916 ldr r1, [pc, #88] @ (801efac <tcp_receive+0x600>)
  76182. 801ef54: 4813 ldr r0, [pc, #76] @ (801efa4 <tcp_receive+0x5f8>)
  76183. 801ef56: f00b fc01 bl 802a75c <iprintf>
  76184. inseg.len -= off;
  76185. 801ef5a: 4b0f ldr r3, [pc, #60] @ (801ef98 <tcp_receive+0x5ec>)
  76186. 801ef5c: 891a ldrh r2, [r3, #8]
  76187. 801ef5e: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  76188. 801ef62: 1ad3 subs r3, r2, r3
  76189. 801ef64: b29a uxth r2, r3
  76190. 801ef66: 4b0c ldr r3, [pc, #48] @ (801ef98 <tcp_receive+0x5ec>)
  76191. 801ef68: 811a strh r2, [r3, #8]
  76192. new_tot_len = (u16_t)(inseg.p->tot_len - off);
  76193. 801ef6a: 4b0b ldr r3, [pc, #44] @ (801ef98 <tcp_receive+0x5ec>)
  76194. 801ef6c: 685b ldr r3, [r3, #4]
  76195. 801ef6e: 891a ldrh r2, [r3, #8]
  76196. 801ef70: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  76197. 801ef74: 1ad3 subs r3, r2, r3
  76198. 801ef76: 847b strh r3, [r7, #34] @ 0x22
  76199. while (p->len < off) {
  76200. 801ef78: e02a b.n 801efd0 <tcp_receive+0x624>
  76201. 801ef7a: bf00 nop
  76202. 801ef7c: 0802ff5c .word 0x0802ff5c
  76203. 801ef80: 0802ff64 .word 0x0802ff64
  76204. 801ef84: 2402afac .word 0x2402afac
  76205. 801ef88: 2402afa8 .word 0x2402afa8
  76206. 801ef8c: 2402af68 .word 0x2402af68
  76207. 801ef90: 2402afae .word 0x2402afae
  76208. 801ef94: 2402afa4 .word 0x2402afa4
  76209. 801ef98: 2402af80 .word 0x2402af80
  76210. 801ef9c: 0802fbf4 .word 0x0802fbf4
  76211. 801efa0: 0802ff6c .word 0x0802ff6c
  76212. 801efa4: 0802fc40 .word 0x0802fc40
  76213. 801efa8: 0802ff7c .word 0x0802ff7c
  76214. 801efac: 0802ff8c .word 0x0802ff8c
  76215. off -= p->len;
  76216. 801efb0: 6c7b ldr r3, [r7, #68] @ 0x44
  76217. 801efb2: 895b ldrh r3, [r3, #10]
  76218. 801efb4: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  76219. 801efb8: 1ad3 subs r3, r2, r3
  76220. 801efba: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  76221. /* all pbufs up to and including this one have len==0, so tot_len is equal */
  76222. p->tot_len = new_tot_len;
  76223. 801efbe: 6c7b ldr r3, [r7, #68] @ 0x44
  76224. 801efc0: 8c7a ldrh r2, [r7, #34] @ 0x22
  76225. 801efc2: 811a strh r2, [r3, #8]
  76226. p->len = 0;
  76227. 801efc4: 6c7b ldr r3, [r7, #68] @ 0x44
  76228. 801efc6: 2200 movs r2, #0
  76229. 801efc8: 815a strh r2, [r3, #10]
  76230. p = p->next;
  76231. 801efca: 6c7b ldr r3, [r7, #68] @ 0x44
  76232. 801efcc: 681b ldr r3, [r3, #0]
  76233. 801efce: 647b str r3, [r7, #68] @ 0x44
  76234. while (p->len < off) {
  76235. 801efd0: 6c7b ldr r3, [r7, #68] @ 0x44
  76236. 801efd2: 895b ldrh r3, [r3, #10]
  76237. 801efd4: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  76238. 801efd8: 429a cmp r2, r3
  76239. 801efda: d8e9 bhi.n 801efb0 <tcp_receive+0x604>
  76240. }
  76241. /* cannot fail... */
  76242. pbuf_remove_header(p, off);
  76243. 801efdc: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  76244. 801efe0: 4619 mov r1, r3
  76245. 801efe2: 6c78 ldr r0, [r7, #68] @ 0x44
  76246. 801efe4: f7fc f88a bl 801b0fc <pbuf_remove_header>
  76247. inseg.tcphdr->seqno = seqno = pcb->rcv_nxt;
  76248. 801efe8: 687b ldr r3, [r7, #4]
  76249. 801efea: 6a5b ldr r3, [r3, #36] @ 0x24
  76250. 801efec: 4a90 ldr r2, [pc, #576] @ (801f230 <tcp_receive+0x884>)
  76251. 801efee: 6013 str r3, [r2, #0]
  76252. 801eff0: 4b90 ldr r3, [pc, #576] @ (801f234 <tcp_receive+0x888>)
  76253. 801eff2: 691b ldr r3, [r3, #16]
  76254. 801eff4: 4a8e ldr r2, [pc, #568] @ (801f230 <tcp_receive+0x884>)
  76255. 801eff6: 6812 ldr r2, [r2, #0]
  76256. 801eff8: 605a str r2, [r3, #4]
  76257. if (TCP_SEQ_BETWEEN(pcb->rcv_nxt, seqno + 1, seqno + tcplen - 1)) {
  76258. 801effa: e00d b.n 801f018 <tcp_receive+0x66c>
  76259. } else {
  76260. if (TCP_SEQ_LT(seqno, pcb->rcv_nxt)) {
  76261. 801effc: 4b8c ldr r3, [pc, #560] @ (801f230 <tcp_receive+0x884>)
  76262. 801effe: 681a ldr r2, [r3, #0]
  76263. 801f000: 687b ldr r3, [r7, #4]
  76264. 801f002: 6a5b ldr r3, [r3, #36] @ 0x24
  76265. 801f004: 1ad3 subs r3, r2, r3
  76266. 801f006: 2b00 cmp r3, #0
  76267. 801f008: da06 bge.n 801f018 <tcp_receive+0x66c>
  76268. /* the whole segment is < rcv_nxt */
  76269. /* must be a duplicate of a packet that has already been correctly handled */
  76270. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: duplicate seqno %"U32_F"\n", seqno));
  76271. tcp_ack_now(pcb);
  76272. 801f00a: 687b ldr r3, [r7, #4]
  76273. 801f00c: 8b5b ldrh r3, [r3, #26]
  76274. 801f00e: f043 0302 orr.w r3, r3, #2
  76275. 801f012: b29a uxth r2, r3
  76276. 801f014: 687b ldr r3, [r7, #4]
  76277. 801f016: 835a strh r2, [r3, #26]
  76278. }
  76279. /* The sequence number must be within the window (above rcv_nxt
  76280. and below rcv_nxt + rcv_wnd) in order to be further
  76281. processed. */
  76282. if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt,
  76283. 801f018: 4b85 ldr r3, [pc, #532] @ (801f230 <tcp_receive+0x884>)
  76284. 801f01a: 681a ldr r2, [r3, #0]
  76285. 801f01c: 687b ldr r3, [r7, #4]
  76286. 801f01e: 6a5b ldr r3, [r3, #36] @ 0x24
  76287. 801f020: 1ad3 subs r3, r2, r3
  76288. 801f022: 2b00 cmp r3, #0
  76289. 801f024: f2c0 8427 blt.w 801f876 <tcp_receive+0xeca>
  76290. 801f028: 4b81 ldr r3, [pc, #516] @ (801f230 <tcp_receive+0x884>)
  76291. 801f02a: 681a ldr r2, [r3, #0]
  76292. 801f02c: 687b ldr r3, [r7, #4]
  76293. 801f02e: 6a5b ldr r3, [r3, #36] @ 0x24
  76294. 801f030: 6879 ldr r1, [r7, #4]
  76295. 801f032: 8d09 ldrh r1, [r1, #40] @ 0x28
  76296. 801f034: 440b add r3, r1
  76297. 801f036: 1ad3 subs r3, r2, r3
  76298. 801f038: 3301 adds r3, #1
  76299. 801f03a: 2b00 cmp r3, #0
  76300. 801f03c: f300 841b bgt.w 801f876 <tcp_receive+0xeca>
  76301. pcb->rcv_nxt + pcb->rcv_wnd - 1)) {
  76302. if (pcb->rcv_nxt == seqno) {
  76303. 801f040: 687b ldr r3, [r7, #4]
  76304. 801f042: 6a5a ldr r2, [r3, #36] @ 0x24
  76305. 801f044: 4b7a ldr r3, [pc, #488] @ (801f230 <tcp_receive+0x884>)
  76306. 801f046: 681b ldr r3, [r3, #0]
  76307. 801f048: 429a cmp r2, r3
  76308. 801f04a: f040 8298 bne.w 801f57e <tcp_receive+0xbd2>
  76309. /* The incoming segment is the next in sequence. We check if
  76310. we have to trim the end of the segment and update rcv_nxt
  76311. and pass the data to the application. */
  76312. tcplen = TCP_TCPLEN(&inseg);
  76313. 801f04e: 4b79 ldr r3, [pc, #484] @ (801f234 <tcp_receive+0x888>)
  76314. 801f050: 891c ldrh r4, [r3, #8]
  76315. 801f052: 4b78 ldr r3, [pc, #480] @ (801f234 <tcp_receive+0x888>)
  76316. 801f054: 691b ldr r3, [r3, #16]
  76317. 801f056: 899b ldrh r3, [r3, #12]
  76318. 801f058: b29b uxth r3, r3
  76319. 801f05a: 4618 mov r0, r3
  76320. 801f05c: f7fa fc24 bl 80198a8 <lwip_htons>
  76321. 801f060: 4603 mov r3, r0
  76322. 801f062: b2db uxtb r3, r3
  76323. 801f064: f003 0303 and.w r3, r3, #3
  76324. 801f068: 2b00 cmp r3, #0
  76325. 801f06a: d001 beq.n 801f070 <tcp_receive+0x6c4>
  76326. 801f06c: 2301 movs r3, #1
  76327. 801f06e: e000 b.n 801f072 <tcp_receive+0x6c6>
  76328. 801f070: 2300 movs r3, #0
  76329. 801f072: 4423 add r3, r4
  76330. 801f074: b29a uxth r2, r3
  76331. 801f076: 4b70 ldr r3, [pc, #448] @ (801f238 <tcp_receive+0x88c>)
  76332. 801f078: 801a strh r2, [r3, #0]
  76333. if (tcplen > pcb->rcv_wnd) {
  76334. 801f07a: 687b ldr r3, [r7, #4]
  76335. 801f07c: 8d1a ldrh r2, [r3, #40] @ 0x28
  76336. 801f07e: 4b6e ldr r3, [pc, #440] @ (801f238 <tcp_receive+0x88c>)
  76337. 801f080: 881b ldrh r3, [r3, #0]
  76338. 801f082: 429a cmp r2, r3
  76339. 801f084: d274 bcs.n 801f170 <tcp_receive+0x7c4>
  76340. LWIP_DEBUGF(TCP_INPUT_DEBUG,
  76341. ("tcp_receive: other end overran receive window"
  76342. "seqno %"U32_F" len %"U16_F" right edge %"U32_F"\n",
  76343. seqno, tcplen, pcb->rcv_nxt + pcb->rcv_wnd));
  76344. if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
  76345. 801f086: 4b6b ldr r3, [pc, #428] @ (801f234 <tcp_receive+0x888>)
  76346. 801f088: 691b ldr r3, [r3, #16]
  76347. 801f08a: 899b ldrh r3, [r3, #12]
  76348. 801f08c: b29b uxth r3, r3
  76349. 801f08e: 4618 mov r0, r3
  76350. 801f090: f7fa fc0a bl 80198a8 <lwip_htons>
  76351. 801f094: 4603 mov r3, r0
  76352. 801f096: b2db uxtb r3, r3
  76353. 801f098: f003 0301 and.w r3, r3, #1
  76354. 801f09c: 2b00 cmp r3, #0
  76355. 801f09e: d01e beq.n 801f0de <tcp_receive+0x732>
  76356. /* Must remove the FIN from the header as we're trimming
  76357. * that byte of sequence-space from the packet */
  76358. TCPH_FLAGS_SET(inseg.tcphdr, TCPH_FLAGS(inseg.tcphdr) & ~(unsigned int)TCP_FIN);
  76359. 801f0a0: 4b64 ldr r3, [pc, #400] @ (801f234 <tcp_receive+0x888>)
  76360. 801f0a2: 691b ldr r3, [r3, #16]
  76361. 801f0a4: 899b ldrh r3, [r3, #12]
  76362. 801f0a6: b29b uxth r3, r3
  76363. 801f0a8: b21b sxth r3, r3
  76364. 801f0aa: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  76365. 801f0ae: b21c sxth r4, r3
  76366. 801f0b0: 4b60 ldr r3, [pc, #384] @ (801f234 <tcp_receive+0x888>)
  76367. 801f0b2: 691b ldr r3, [r3, #16]
  76368. 801f0b4: 899b ldrh r3, [r3, #12]
  76369. 801f0b6: b29b uxth r3, r3
  76370. 801f0b8: 4618 mov r0, r3
  76371. 801f0ba: f7fa fbf5 bl 80198a8 <lwip_htons>
  76372. 801f0be: 4603 mov r3, r0
  76373. 801f0c0: b2db uxtb r3, r3
  76374. 801f0c2: f003 033e and.w r3, r3, #62 @ 0x3e
  76375. 801f0c6: b29b uxth r3, r3
  76376. 801f0c8: 4618 mov r0, r3
  76377. 801f0ca: f7fa fbed bl 80198a8 <lwip_htons>
  76378. 801f0ce: 4603 mov r3, r0
  76379. 801f0d0: b21b sxth r3, r3
  76380. 801f0d2: 4323 orrs r3, r4
  76381. 801f0d4: b21a sxth r2, r3
  76382. 801f0d6: 4b57 ldr r3, [pc, #348] @ (801f234 <tcp_receive+0x888>)
  76383. 801f0d8: 691b ldr r3, [r3, #16]
  76384. 801f0da: b292 uxth r2, r2
  76385. 801f0dc: 819a strh r2, [r3, #12]
  76386. }
  76387. /* Adjust length of segment to fit in the window. */
  76388. TCPWND_CHECK16(pcb->rcv_wnd);
  76389. inseg.len = (u16_t)pcb->rcv_wnd;
  76390. 801f0de: 687b ldr r3, [r7, #4]
  76391. 801f0e0: 8d1a ldrh r2, [r3, #40] @ 0x28
  76392. 801f0e2: 4b54 ldr r3, [pc, #336] @ (801f234 <tcp_receive+0x888>)
  76393. 801f0e4: 811a strh r2, [r3, #8]
  76394. if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) {
  76395. 801f0e6: 4b53 ldr r3, [pc, #332] @ (801f234 <tcp_receive+0x888>)
  76396. 801f0e8: 691b ldr r3, [r3, #16]
  76397. 801f0ea: 899b ldrh r3, [r3, #12]
  76398. 801f0ec: b29b uxth r3, r3
  76399. 801f0ee: 4618 mov r0, r3
  76400. 801f0f0: f7fa fbda bl 80198a8 <lwip_htons>
  76401. 801f0f4: 4603 mov r3, r0
  76402. 801f0f6: b2db uxtb r3, r3
  76403. 801f0f8: f003 0302 and.w r3, r3, #2
  76404. 801f0fc: 2b00 cmp r3, #0
  76405. 801f0fe: d005 beq.n 801f10c <tcp_receive+0x760>
  76406. inseg.len -= 1;
  76407. 801f100: 4b4c ldr r3, [pc, #304] @ (801f234 <tcp_receive+0x888>)
  76408. 801f102: 891b ldrh r3, [r3, #8]
  76409. 801f104: 3b01 subs r3, #1
  76410. 801f106: b29a uxth r2, r3
  76411. 801f108: 4b4a ldr r3, [pc, #296] @ (801f234 <tcp_receive+0x888>)
  76412. 801f10a: 811a strh r2, [r3, #8]
  76413. }
  76414. pbuf_realloc(inseg.p, inseg.len);
  76415. 801f10c: 4b49 ldr r3, [pc, #292] @ (801f234 <tcp_receive+0x888>)
  76416. 801f10e: 685b ldr r3, [r3, #4]
  76417. 801f110: 4a48 ldr r2, [pc, #288] @ (801f234 <tcp_receive+0x888>)
  76418. 801f112: 8912 ldrh r2, [r2, #8]
  76419. 801f114: 4611 mov r1, r2
  76420. 801f116: 4618 mov r0, r3
  76421. 801f118: f7fb fef2 bl 801af00 <pbuf_realloc>
  76422. tcplen = TCP_TCPLEN(&inseg);
  76423. 801f11c: 4b45 ldr r3, [pc, #276] @ (801f234 <tcp_receive+0x888>)
  76424. 801f11e: 891c ldrh r4, [r3, #8]
  76425. 801f120: 4b44 ldr r3, [pc, #272] @ (801f234 <tcp_receive+0x888>)
  76426. 801f122: 691b ldr r3, [r3, #16]
  76427. 801f124: 899b ldrh r3, [r3, #12]
  76428. 801f126: b29b uxth r3, r3
  76429. 801f128: 4618 mov r0, r3
  76430. 801f12a: f7fa fbbd bl 80198a8 <lwip_htons>
  76431. 801f12e: 4603 mov r3, r0
  76432. 801f130: b2db uxtb r3, r3
  76433. 801f132: f003 0303 and.w r3, r3, #3
  76434. 801f136: 2b00 cmp r3, #0
  76435. 801f138: d001 beq.n 801f13e <tcp_receive+0x792>
  76436. 801f13a: 2301 movs r3, #1
  76437. 801f13c: e000 b.n 801f140 <tcp_receive+0x794>
  76438. 801f13e: 2300 movs r3, #0
  76439. 801f140: 4423 add r3, r4
  76440. 801f142: b29a uxth r2, r3
  76441. 801f144: 4b3c ldr r3, [pc, #240] @ (801f238 <tcp_receive+0x88c>)
  76442. 801f146: 801a strh r2, [r3, #0]
  76443. LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n",
  76444. 801f148: 4b3b ldr r3, [pc, #236] @ (801f238 <tcp_receive+0x88c>)
  76445. 801f14a: 881b ldrh r3, [r3, #0]
  76446. 801f14c: 461a mov r2, r3
  76447. 801f14e: 4b38 ldr r3, [pc, #224] @ (801f230 <tcp_receive+0x884>)
  76448. 801f150: 681b ldr r3, [r3, #0]
  76449. 801f152: 441a add r2, r3
  76450. 801f154: 687b ldr r3, [r7, #4]
  76451. 801f156: 6a5b ldr r3, [r3, #36] @ 0x24
  76452. 801f158: 6879 ldr r1, [r7, #4]
  76453. 801f15a: 8d09 ldrh r1, [r1, #40] @ 0x28
  76454. 801f15c: 440b add r3, r1
  76455. 801f15e: 429a cmp r2, r3
  76456. 801f160: d006 beq.n 801f170 <tcp_receive+0x7c4>
  76457. 801f162: 4b36 ldr r3, [pc, #216] @ (801f23c <tcp_receive+0x890>)
  76458. 801f164: f240 52cb movw r2, #1483 @ 0x5cb
  76459. 801f168: 4935 ldr r1, [pc, #212] @ (801f240 <tcp_receive+0x894>)
  76460. 801f16a: 4836 ldr r0, [pc, #216] @ (801f244 <tcp_receive+0x898>)
  76461. 801f16c: f00b faf6 bl 802a75c <iprintf>
  76462. }
  76463. #if TCP_QUEUE_OOSEQ
  76464. /* Received in-sequence data, adjust ooseq data if:
  76465. - FIN has been received or
  76466. - inseq overlaps with ooseq */
  76467. if (pcb->ooseq != NULL) {
  76468. 801f170: 687b ldr r3, [r7, #4]
  76469. 801f172: 6f5b ldr r3, [r3, #116] @ 0x74
  76470. 801f174: 2b00 cmp r3, #0
  76471. 801f176: f000 80e6 beq.w 801f346 <tcp_receive+0x99a>
  76472. if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
  76473. 801f17a: 4b2e ldr r3, [pc, #184] @ (801f234 <tcp_receive+0x888>)
  76474. 801f17c: 691b ldr r3, [r3, #16]
  76475. 801f17e: 899b ldrh r3, [r3, #12]
  76476. 801f180: b29b uxth r3, r3
  76477. 801f182: 4618 mov r0, r3
  76478. 801f184: f7fa fb90 bl 80198a8 <lwip_htons>
  76479. 801f188: 4603 mov r3, r0
  76480. 801f18a: b2db uxtb r3, r3
  76481. 801f18c: f003 0301 and.w r3, r3, #1
  76482. 801f190: 2b00 cmp r3, #0
  76483. 801f192: d010 beq.n 801f1b6 <tcp_receive+0x80a>
  76484. LWIP_DEBUGF(TCP_INPUT_DEBUG,
  76485. ("tcp_receive: received in-order FIN, binning ooseq queue\n"));
  76486. /* Received in-order FIN means anything that was received
  76487. * out of order must now have been received in-order, so
  76488. * bin the ooseq queue */
  76489. while (pcb->ooseq != NULL) {
  76490. 801f194: e00a b.n 801f1ac <tcp_receive+0x800>
  76491. struct tcp_seg *old_ooseq = pcb->ooseq;
  76492. 801f196: 687b ldr r3, [r7, #4]
  76493. 801f198: 6f5b ldr r3, [r3, #116] @ 0x74
  76494. 801f19a: 60fb str r3, [r7, #12]
  76495. pcb->ooseq = pcb->ooseq->next;
  76496. 801f19c: 687b ldr r3, [r7, #4]
  76497. 801f19e: 6f5b ldr r3, [r3, #116] @ 0x74
  76498. 801f1a0: 681a ldr r2, [r3, #0]
  76499. 801f1a2: 687b ldr r3, [r7, #4]
  76500. 801f1a4: 675a str r2, [r3, #116] @ 0x74
  76501. tcp_seg_free(old_ooseq);
  76502. 801f1a6: 68f8 ldr r0, [r7, #12]
  76503. 801f1a8: f7fd fcb9 bl 801cb1e <tcp_seg_free>
  76504. while (pcb->ooseq != NULL) {
  76505. 801f1ac: 687b ldr r3, [r7, #4]
  76506. 801f1ae: 6f5b ldr r3, [r3, #116] @ 0x74
  76507. 801f1b0: 2b00 cmp r3, #0
  76508. 801f1b2: d1f0 bne.n 801f196 <tcp_receive+0x7ea>
  76509. 801f1b4: e0c7 b.n 801f346 <tcp_receive+0x99a>
  76510. }
  76511. } else {
  76512. struct tcp_seg *next = pcb->ooseq;
  76513. 801f1b6: 687b ldr r3, [r7, #4]
  76514. 801f1b8: 6f5b ldr r3, [r3, #116] @ 0x74
  76515. 801f1ba: 63fb str r3, [r7, #60] @ 0x3c
  76516. /* Remove all segments on ooseq that are covered by inseg already.
  76517. * FIN is copied from ooseq to inseg if present. */
  76518. while (next &&
  76519. 801f1bc: e051 b.n 801f262 <tcp_receive+0x8b6>
  76520. TCP_SEQ_GEQ(seqno + tcplen,
  76521. next->tcphdr->seqno + next->len)) {
  76522. struct tcp_seg *tmp;
  76523. /* inseg cannot have FIN here (already processed above) */
  76524. if ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0 &&
  76525. 801f1be: 6bfb ldr r3, [r7, #60] @ 0x3c
  76526. 801f1c0: 691b ldr r3, [r3, #16]
  76527. 801f1c2: 899b ldrh r3, [r3, #12]
  76528. 801f1c4: b29b uxth r3, r3
  76529. 801f1c6: 4618 mov r0, r3
  76530. 801f1c8: f7fa fb6e bl 80198a8 <lwip_htons>
  76531. 801f1cc: 4603 mov r3, r0
  76532. 801f1ce: b2db uxtb r3, r3
  76533. 801f1d0: f003 0301 and.w r3, r3, #1
  76534. 801f1d4: 2b00 cmp r3, #0
  76535. 801f1d6: d03c beq.n 801f252 <tcp_receive+0x8a6>
  76536. (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) == 0) {
  76537. 801f1d8: 4b16 ldr r3, [pc, #88] @ (801f234 <tcp_receive+0x888>)
  76538. 801f1da: 691b ldr r3, [r3, #16]
  76539. 801f1dc: 899b ldrh r3, [r3, #12]
  76540. 801f1de: b29b uxth r3, r3
  76541. 801f1e0: 4618 mov r0, r3
  76542. 801f1e2: f7fa fb61 bl 80198a8 <lwip_htons>
  76543. 801f1e6: 4603 mov r3, r0
  76544. 801f1e8: b2db uxtb r3, r3
  76545. 801f1ea: f003 0302 and.w r3, r3, #2
  76546. if ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0 &&
  76547. 801f1ee: 2b00 cmp r3, #0
  76548. 801f1f0: d12f bne.n 801f252 <tcp_receive+0x8a6>
  76549. TCPH_SET_FLAG(inseg.tcphdr, TCP_FIN);
  76550. 801f1f2: 4b10 ldr r3, [pc, #64] @ (801f234 <tcp_receive+0x888>)
  76551. 801f1f4: 691b ldr r3, [r3, #16]
  76552. 801f1f6: 899b ldrh r3, [r3, #12]
  76553. 801f1f8: b29c uxth r4, r3
  76554. 801f1fa: 2001 movs r0, #1
  76555. 801f1fc: f7fa fb54 bl 80198a8 <lwip_htons>
  76556. 801f200: 4603 mov r3, r0
  76557. 801f202: 461a mov r2, r3
  76558. 801f204: 4b0b ldr r3, [pc, #44] @ (801f234 <tcp_receive+0x888>)
  76559. 801f206: 691b ldr r3, [r3, #16]
  76560. 801f208: 4322 orrs r2, r4
  76561. 801f20a: b292 uxth r2, r2
  76562. 801f20c: 819a strh r2, [r3, #12]
  76563. tcplen = TCP_TCPLEN(&inseg);
  76564. 801f20e: 4b09 ldr r3, [pc, #36] @ (801f234 <tcp_receive+0x888>)
  76565. 801f210: 891c ldrh r4, [r3, #8]
  76566. 801f212: 4b08 ldr r3, [pc, #32] @ (801f234 <tcp_receive+0x888>)
  76567. 801f214: 691b ldr r3, [r3, #16]
  76568. 801f216: 899b ldrh r3, [r3, #12]
  76569. 801f218: b29b uxth r3, r3
  76570. 801f21a: 4618 mov r0, r3
  76571. 801f21c: f7fa fb44 bl 80198a8 <lwip_htons>
  76572. 801f220: 4603 mov r3, r0
  76573. 801f222: b2db uxtb r3, r3
  76574. 801f224: f003 0303 and.w r3, r3, #3
  76575. 801f228: 2b00 cmp r3, #0
  76576. 801f22a: d00d beq.n 801f248 <tcp_receive+0x89c>
  76577. 801f22c: 2301 movs r3, #1
  76578. 801f22e: e00c b.n 801f24a <tcp_receive+0x89e>
  76579. 801f230: 2402afa4 .word 0x2402afa4
  76580. 801f234: 2402af80 .word 0x2402af80
  76581. 801f238: 2402afae .word 0x2402afae
  76582. 801f23c: 0802fbf4 .word 0x0802fbf4
  76583. 801f240: 0802ff9c .word 0x0802ff9c
  76584. 801f244: 0802fc40 .word 0x0802fc40
  76585. 801f248: 2300 movs r3, #0
  76586. 801f24a: 4423 add r3, r4
  76587. 801f24c: b29a uxth r2, r3
  76588. 801f24e: 4b98 ldr r3, [pc, #608] @ (801f4b0 <tcp_receive+0xb04>)
  76589. 801f250: 801a strh r2, [r3, #0]
  76590. }
  76591. tmp = next;
  76592. 801f252: 6bfb ldr r3, [r7, #60] @ 0x3c
  76593. 801f254: 613b str r3, [r7, #16]
  76594. next = next->next;
  76595. 801f256: 6bfb ldr r3, [r7, #60] @ 0x3c
  76596. 801f258: 681b ldr r3, [r3, #0]
  76597. 801f25a: 63fb str r3, [r7, #60] @ 0x3c
  76598. tcp_seg_free(tmp);
  76599. 801f25c: 6938 ldr r0, [r7, #16]
  76600. 801f25e: f7fd fc5e bl 801cb1e <tcp_seg_free>
  76601. while (next &&
  76602. 801f262: 6bfb ldr r3, [r7, #60] @ 0x3c
  76603. 801f264: 2b00 cmp r3, #0
  76604. 801f266: d00e beq.n 801f286 <tcp_receive+0x8da>
  76605. TCP_SEQ_GEQ(seqno + tcplen,
  76606. 801f268: 4b91 ldr r3, [pc, #580] @ (801f4b0 <tcp_receive+0xb04>)
  76607. 801f26a: 881b ldrh r3, [r3, #0]
  76608. 801f26c: 461a mov r2, r3
  76609. 801f26e: 4b91 ldr r3, [pc, #580] @ (801f4b4 <tcp_receive+0xb08>)
  76610. 801f270: 681b ldr r3, [r3, #0]
  76611. 801f272: 441a add r2, r3
  76612. 801f274: 6bfb ldr r3, [r7, #60] @ 0x3c
  76613. 801f276: 691b ldr r3, [r3, #16]
  76614. 801f278: 685b ldr r3, [r3, #4]
  76615. 801f27a: 6bf9 ldr r1, [r7, #60] @ 0x3c
  76616. 801f27c: 8909 ldrh r1, [r1, #8]
  76617. 801f27e: 440b add r3, r1
  76618. 801f280: 1ad3 subs r3, r2, r3
  76619. while (next &&
  76620. 801f282: 2b00 cmp r3, #0
  76621. 801f284: da9b bge.n 801f1be <tcp_receive+0x812>
  76622. }
  76623. /* Now trim right side of inseg if it overlaps with the first
  76624. * segment on ooseq */
  76625. if (next &&
  76626. 801f286: 6bfb ldr r3, [r7, #60] @ 0x3c
  76627. 801f288: 2b00 cmp r3, #0
  76628. 801f28a: d059 beq.n 801f340 <tcp_receive+0x994>
  76629. TCP_SEQ_GT(seqno + tcplen,
  76630. 801f28c: 4b88 ldr r3, [pc, #544] @ (801f4b0 <tcp_receive+0xb04>)
  76631. 801f28e: 881b ldrh r3, [r3, #0]
  76632. 801f290: 461a mov r2, r3
  76633. 801f292: 4b88 ldr r3, [pc, #544] @ (801f4b4 <tcp_receive+0xb08>)
  76634. 801f294: 681b ldr r3, [r3, #0]
  76635. 801f296: 441a add r2, r3
  76636. 801f298: 6bfb ldr r3, [r7, #60] @ 0x3c
  76637. 801f29a: 691b ldr r3, [r3, #16]
  76638. 801f29c: 685b ldr r3, [r3, #4]
  76639. 801f29e: 1ad3 subs r3, r2, r3
  76640. if (next &&
  76641. 801f2a0: 2b00 cmp r3, #0
  76642. 801f2a2: dd4d ble.n 801f340 <tcp_receive+0x994>
  76643. next->tcphdr->seqno)) {
  76644. /* inseg cannot have FIN here (already processed above) */
  76645. inseg.len = (u16_t)(next->tcphdr->seqno - seqno);
  76646. 801f2a4: 6bfb ldr r3, [r7, #60] @ 0x3c
  76647. 801f2a6: 691b ldr r3, [r3, #16]
  76648. 801f2a8: 685b ldr r3, [r3, #4]
  76649. 801f2aa: b29a uxth r2, r3
  76650. 801f2ac: 4b81 ldr r3, [pc, #516] @ (801f4b4 <tcp_receive+0xb08>)
  76651. 801f2ae: 681b ldr r3, [r3, #0]
  76652. 801f2b0: b29b uxth r3, r3
  76653. 801f2b2: 1ad3 subs r3, r2, r3
  76654. 801f2b4: b29a uxth r2, r3
  76655. 801f2b6: 4b80 ldr r3, [pc, #512] @ (801f4b8 <tcp_receive+0xb0c>)
  76656. 801f2b8: 811a strh r2, [r3, #8]
  76657. if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) {
  76658. 801f2ba: 4b7f ldr r3, [pc, #508] @ (801f4b8 <tcp_receive+0xb0c>)
  76659. 801f2bc: 691b ldr r3, [r3, #16]
  76660. 801f2be: 899b ldrh r3, [r3, #12]
  76661. 801f2c0: b29b uxth r3, r3
  76662. 801f2c2: 4618 mov r0, r3
  76663. 801f2c4: f7fa faf0 bl 80198a8 <lwip_htons>
  76664. 801f2c8: 4603 mov r3, r0
  76665. 801f2ca: b2db uxtb r3, r3
  76666. 801f2cc: f003 0302 and.w r3, r3, #2
  76667. 801f2d0: 2b00 cmp r3, #0
  76668. 801f2d2: d005 beq.n 801f2e0 <tcp_receive+0x934>
  76669. inseg.len -= 1;
  76670. 801f2d4: 4b78 ldr r3, [pc, #480] @ (801f4b8 <tcp_receive+0xb0c>)
  76671. 801f2d6: 891b ldrh r3, [r3, #8]
  76672. 801f2d8: 3b01 subs r3, #1
  76673. 801f2da: b29a uxth r2, r3
  76674. 801f2dc: 4b76 ldr r3, [pc, #472] @ (801f4b8 <tcp_receive+0xb0c>)
  76675. 801f2de: 811a strh r2, [r3, #8]
  76676. }
  76677. pbuf_realloc(inseg.p, inseg.len);
  76678. 801f2e0: 4b75 ldr r3, [pc, #468] @ (801f4b8 <tcp_receive+0xb0c>)
  76679. 801f2e2: 685b ldr r3, [r3, #4]
  76680. 801f2e4: 4a74 ldr r2, [pc, #464] @ (801f4b8 <tcp_receive+0xb0c>)
  76681. 801f2e6: 8912 ldrh r2, [r2, #8]
  76682. 801f2e8: 4611 mov r1, r2
  76683. 801f2ea: 4618 mov r0, r3
  76684. 801f2ec: f7fb fe08 bl 801af00 <pbuf_realloc>
  76685. tcplen = TCP_TCPLEN(&inseg);
  76686. 801f2f0: 4b71 ldr r3, [pc, #452] @ (801f4b8 <tcp_receive+0xb0c>)
  76687. 801f2f2: 891c ldrh r4, [r3, #8]
  76688. 801f2f4: 4b70 ldr r3, [pc, #448] @ (801f4b8 <tcp_receive+0xb0c>)
  76689. 801f2f6: 691b ldr r3, [r3, #16]
  76690. 801f2f8: 899b ldrh r3, [r3, #12]
  76691. 801f2fa: b29b uxth r3, r3
  76692. 801f2fc: 4618 mov r0, r3
  76693. 801f2fe: f7fa fad3 bl 80198a8 <lwip_htons>
  76694. 801f302: 4603 mov r3, r0
  76695. 801f304: b2db uxtb r3, r3
  76696. 801f306: f003 0303 and.w r3, r3, #3
  76697. 801f30a: 2b00 cmp r3, #0
  76698. 801f30c: d001 beq.n 801f312 <tcp_receive+0x966>
  76699. 801f30e: 2301 movs r3, #1
  76700. 801f310: e000 b.n 801f314 <tcp_receive+0x968>
  76701. 801f312: 2300 movs r3, #0
  76702. 801f314: 4423 add r3, r4
  76703. 801f316: b29a uxth r2, r3
  76704. 801f318: 4b65 ldr r3, [pc, #404] @ (801f4b0 <tcp_receive+0xb04>)
  76705. 801f31a: 801a strh r2, [r3, #0]
  76706. LWIP_ASSERT("tcp_receive: segment not trimmed correctly to ooseq queue\n",
  76707. 801f31c: 4b64 ldr r3, [pc, #400] @ (801f4b0 <tcp_receive+0xb04>)
  76708. 801f31e: 881b ldrh r3, [r3, #0]
  76709. 801f320: 461a mov r2, r3
  76710. 801f322: 4b64 ldr r3, [pc, #400] @ (801f4b4 <tcp_receive+0xb08>)
  76711. 801f324: 681b ldr r3, [r3, #0]
  76712. 801f326: 441a add r2, r3
  76713. 801f328: 6bfb ldr r3, [r7, #60] @ 0x3c
  76714. 801f32a: 691b ldr r3, [r3, #16]
  76715. 801f32c: 685b ldr r3, [r3, #4]
  76716. 801f32e: 429a cmp r2, r3
  76717. 801f330: d006 beq.n 801f340 <tcp_receive+0x994>
  76718. 801f332: 4b62 ldr r3, [pc, #392] @ (801f4bc <tcp_receive+0xb10>)
  76719. 801f334: f240 52fc movw r2, #1532 @ 0x5fc
  76720. 801f338: 4961 ldr r1, [pc, #388] @ (801f4c0 <tcp_receive+0xb14>)
  76721. 801f33a: 4862 ldr r0, [pc, #392] @ (801f4c4 <tcp_receive+0xb18>)
  76722. 801f33c: f00b fa0e bl 802a75c <iprintf>
  76723. (seqno + tcplen) == next->tcphdr->seqno);
  76724. }
  76725. pcb->ooseq = next;
  76726. 801f340: 687b ldr r3, [r7, #4]
  76727. 801f342: 6bfa ldr r2, [r7, #60] @ 0x3c
  76728. 801f344: 675a str r2, [r3, #116] @ 0x74
  76729. }
  76730. }
  76731. #endif /* TCP_QUEUE_OOSEQ */
  76732. pcb->rcv_nxt = seqno + tcplen;
  76733. 801f346: 4b5a ldr r3, [pc, #360] @ (801f4b0 <tcp_receive+0xb04>)
  76734. 801f348: 881b ldrh r3, [r3, #0]
  76735. 801f34a: 461a mov r2, r3
  76736. 801f34c: 4b59 ldr r3, [pc, #356] @ (801f4b4 <tcp_receive+0xb08>)
  76737. 801f34e: 681b ldr r3, [r3, #0]
  76738. 801f350: 441a add r2, r3
  76739. 801f352: 687b ldr r3, [r7, #4]
  76740. 801f354: 625a str r2, [r3, #36] @ 0x24
  76741. /* Update the receiver's (our) window. */
  76742. LWIP_ASSERT("tcp_receive: tcplen > rcv_wnd\n", pcb->rcv_wnd >= tcplen);
  76743. 801f356: 687b ldr r3, [r7, #4]
  76744. 801f358: 8d1a ldrh r2, [r3, #40] @ 0x28
  76745. 801f35a: 4b55 ldr r3, [pc, #340] @ (801f4b0 <tcp_receive+0xb04>)
  76746. 801f35c: 881b ldrh r3, [r3, #0]
  76747. 801f35e: 429a cmp r2, r3
  76748. 801f360: d206 bcs.n 801f370 <tcp_receive+0x9c4>
  76749. 801f362: 4b56 ldr r3, [pc, #344] @ (801f4bc <tcp_receive+0xb10>)
  76750. 801f364: f240 6207 movw r2, #1543 @ 0x607
  76751. 801f368: 4957 ldr r1, [pc, #348] @ (801f4c8 <tcp_receive+0xb1c>)
  76752. 801f36a: 4856 ldr r0, [pc, #344] @ (801f4c4 <tcp_receive+0xb18>)
  76753. 801f36c: f00b f9f6 bl 802a75c <iprintf>
  76754. pcb->rcv_wnd -= tcplen;
  76755. 801f370: 687b ldr r3, [r7, #4]
  76756. 801f372: 8d1a ldrh r2, [r3, #40] @ 0x28
  76757. 801f374: 4b4e ldr r3, [pc, #312] @ (801f4b0 <tcp_receive+0xb04>)
  76758. 801f376: 881b ldrh r3, [r3, #0]
  76759. 801f378: 1ad3 subs r3, r2, r3
  76760. 801f37a: b29a uxth r2, r3
  76761. 801f37c: 687b ldr r3, [r7, #4]
  76762. 801f37e: 851a strh r2, [r3, #40] @ 0x28
  76763. tcp_update_rcv_ann_wnd(pcb);
  76764. 801f380: 6878 ldr r0, [r7, #4]
  76765. 801f382: f7fc fd85 bl 801be90 <tcp_update_rcv_ann_wnd>
  76766. chains its data on this pbuf as well.
  76767. If the segment was a FIN, we set the TF_GOT_FIN flag that will
  76768. be used to indicate to the application that the remote side has
  76769. closed its end of the connection. */
  76770. if (inseg.p->tot_len > 0) {
  76771. 801f386: 4b4c ldr r3, [pc, #304] @ (801f4b8 <tcp_receive+0xb0c>)
  76772. 801f388: 685b ldr r3, [r3, #4]
  76773. 801f38a: 891b ldrh r3, [r3, #8]
  76774. 801f38c: 2b00 cmp r3, #0
  76775. 801f38e: d006 beq.n 801f39e <tcp_receive+0x9f2>
  76776. recv_data = inseg.p;
  76777. 801f390: 4b49 ldr r3, [pc, #292] @ (801f4b8 <tcp_receive+0xb0c>)
  76778. 801f392: 685b ldr r3, [r3, #4]
  76779. 801f394: 4a4d ldr r2, [pc, #308] @ (801f4cc <tcp_receive+0xb20>)
  76780. 801f396: 6013 str r3, [r2, #0]
  76781. /* Since this pbuf now is the responsibility of the
  76782. application, we delete our reference to it so that we won't
  76783. (mistakingly) deallocate it. */
  76784. inseg.p = NULL;
  76785. 801f398: 4b47 ldr r3, [pc, #284] @ (801f4b8 <tcp_receive+0xb0c>)
  76786. 801f39a: 2200 movs r2, #0
  76787. 801f39c: 605a str r2, [r3, #4]
  76788. }
  76789. if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
  76790. 801f39e: 4b46 ldr r3, [pc, #280] @ (801f4b8 <tcp_receive+0xb0c>)
  76791. 801f3a0: 691b ldr r3, [r3, #16]
  76792. 801f3a2: 899b ldrh r3, [r3, #12]
  76793. 801f3a4: b29b uxth r3, r3
  76794. 801f3a6: 4618 mov r0, r3
  76795. 801f3a8: f7fa fa7e bl 80198a8 <lwip_htons>
  76796. 801f3ac: 4603 mov r3, r0
  76797. 801f3ae: b2db uxtb r3, r3
  76798. 801f3b0: f003 0301 and.w r3, r3, #1
  76799. 801f3b4: 2b00 cmp r3, #0
  76800. 801f3b6: f000 80b8 beq.w 801f52a <tcp_receive+0xb7e>
  76801. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: received FIN.\n"));
  76802. recv_flags |= TF_GOT_FIN;
  76803. 801f3ba: 4b45 ldr r3, [pc, #276] @ (801f4d0 <tcp_receive+0xb24>)
  76804. 801f3bc: 781b ldrb r3, [r3, #0]
  76805. 801f3be: f043 0320 orr.w r3, r3, #32
  76806. 801f3c2: b2da uxtb r2, r3
  76807. 801f3c4: 4b42 ldr r3, [pc, #264] @ (801f4d0 <tcp_receive+0xb24>)
  76808. 801f3c6: 701a strb r2, [r3, #0]
  76809. }
  76810. #if TCP_QUEUE_OOSEQ
  76811. /* We now check if we have segments on the ->ooseq queue that
  76812. are now in sequence. */
  76813. while (pcb->ooseq != NULL &&
  76814. 801f3c8: e0af b.n 801f52a <tcp_receive+0xb7e>
  76815. pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) {
  76816. struct tcp_seg *cseg = pcb->ooseq;
  76817. 801f3ca: 687b ldr r3, [r7, #4]
  76818. 801f3cc: 6f5b ldr r3, [r3, #116] @ 0x74
  76819. 801f3ce: 60bb str r3, [r7, #8]
  76820. seqno = pcb->ooseq->tcphdr->seqno;
  76821. 801f3d0: 687b ldr r3, [r7, #4]
  76822. 801f3d2: 6f5b ldr r3, [r3, #116] @ 0x74
  76823. 801f3d4: 691b ldr r3, [r3, #16]
  76824. 801f3d6: 685b ldr r3, [r3, #4]
  76825. 801f3d8: 4a36 ldr r2, [pc, #216] @ (801f4b4 <tcp_receive+0xb08>)
  76826. 801f3da: 6013 str r3, [r2, #0]
  76827. pcb->rcv_nxt += TCP_TCPLEN(cseg);
  76828. 801f3dc: 68bb ldr r3, [r7, #8]
  76829. 801f3de: 891b ldrh r3, [r3, #8]
  76830. 801f3e0: 461c mov r4, r3
  76831. 801f3e2: 68bb ldr r3, [r7, #8]
  76832. 801f3e4: 691b ldr r3, [r3, #16]
  76833. 801f3e6: 899b ldrh r3, [r3, #12]
  76834. 801f3e8: b29b uxth r3, r3
  76835. 801f3ea: 4618 mov r0, r3
  76836. 801f3ec: f7fa fa5c bl 80198a8 <lwip_htons>
  76837. 801f3f0: 4603 mov r3, r0
  76838. 801f3f2: b2db uxtb r3, r3
  76839. 801f3f4: f003 0303 and.w r3, r3, #3
  76840. 801f3f8: 2b00 cmp r3, #0
  76841. 801f3fa: d001 beq.n 801f400 <tcp_receive+0xa54>
  76842. 801f3fc: 2301 movs r3, #1
  76843. 801f3fe: e000 b.n 801f402 <tcp_receive+0xa56>
  76844. 801f400: 2300 movs r3, #0
  76845. 801f402: 191a adds r2, r3, r4
  76846. 801f404: 687b ldr r3, [r7, #4]
  76847. 801f406: 6a5b ldr r3, [r3, #36] @ 0x24
  76848. 801f408: 441a add r2, r3
  76849. 801f40a: 687b ldr r3, [r7, #4]
  76850. 801f40c: 625a str r2, [r3, #36] @ 0x24
  76851. LWIP_ASSERT("tcp_receive: ooseq tcplen > rcv_wnd\n",
  76852. 801f40e: 687b ldr r3, [r7, #4]
  76853. 801f410: 8d1b ldrh r3, [r3, #40] @ 0x28
  76854. 801f412: 461c mov r4, r3
  76855. 801f414: 68bb ldr r3, [r7, #8]
  76856. 801f416: 891b ldrh r3, [r3, #8]
  76857. 801f418: 461d mov r5, r3
  76858. 801f41a: 68bb ldr r3, [r7, #8]
  76859. 801f41c: 691b ldr r3, [r3, #16]
  76860. 801f41e: 899b ldrh r3, [r3, #12]
  76861. 801f420: b29b uxth r3, r3
  76862. 801f422: 4618 mov r0, r3
  76863. 801f424: f7fa fa40 bl 80198a8 <lwip_htons>
  76864. 801f428: 4603 mov r3, r0
  76865. 801f42a: b2db uxtb r3, r3
  76866. 801f42c: f003 0303 and.w r3, r3, #3
  76867. 801f430: 2b00 cmp r3, #0
  76868. 801f432: d001 beq.n 801f438 <tcp_receive+0xa8c>
  76869. 801f434: 2301 movs r3, #1
  76870. 801f436: e000 b.n 801f43a <tcp_receive+0xa8e>
  76871. 801f438: 2300 movs r3, #0
  76872. 801f43a: 442b add r3, r5
  76873. 801f43c: 429c cmp r4, r3
  76874. 801f43e: d206 bcs.n 801f44e <tcp_receive+0xaa2>
  76875. 801f440: 4b1e ldr r3, [pc, #120] @ (801f4bc <tcp_receive+0xb10>)
  76876. 801f442: f240 622b movw r2, #1579 @ 0x62b
  76877. 801f446: 4923 ldr r1, [pc, #140] @ (801f4d4 <tcp_receive+0xb28>)
  76878. 801f448: 481e ldr r0, [pc, #120] @ (801f4c4 <tcp_receive+0xb18>)
  76879. 801f44a: f00b f987 bl 802a75c <iprintf>
  76880. pcb->rcv_wnd >= TCP_TCPLEN(cseg));
  76881. pcb->rcv_wnd -= TCP_TCPLEN(cseg);
  76882. 801f44e: 68bb ldr r3, [r7, #8]
  76883. 801f450: 891b ldrh r3, [r3, #8]
  76884. 801f452: 461c mov r4, r3
  76885. 801f454: 68bb ldr r3, [r7, #8]
  76886. 801f456: 691b ldr r3, [r3, #16]
  76887. 801f458: 899b ldrh r3, [r3, #12]
  76888. 801f45a: b29b uxth r3, r3
  76889. 801f45c: 4618 mov r0, r3
  76890. 801f45e: f7fa fa23 bl 80198a8 <lwip_htons>
  76891. 801f462: 4603 mov r3, r0
  76892. 801f464: b2db uxtb r3, r3
  76893. 801f466: f003 0303 and.w r3, r3, #3
  76894. 801f46a: 2b00 cmp r3, #0
  76895. 801f46c: d001 beq.n 801f472 <tcp_receive+0xac6>
  76896. 801f46e: 2301 movs r3, #1
  76897. 801f470: e000 b.n 801f474 <tcp_receive+0xac8>
  76898. 801f472: 2300 movs r3, #0
  76899. 801f474: 1919 adds r1, r3, r4
  76900. 801f476: 687b ldr r3, [r7, #4]
  76901. 801f478: 8d1a ldrh r2, [r3, #40] @ 0x28
  76902. 801f47a: b28b uxth r3, r1
  76903. 801f47c: 1ad3 subs r3, r2, r3
  76904. 801f47e: b29a uxth r2, r3
  76905. 801f480: 687b ldr r3, [r7, #4]
  76906. 801f482: 851a strh r2, [r3, #40] @ 0x28
  76907. tcp_update_rcv_ann_wnd(pcb);
  76908. 801f484: 6878 ldr r0, [r7, #4]
  76909. 801f486: f7fc fd03 bl 801be90 <tcp_update_rcv_ann_wnd>
  76910. if (cseg->p->tot_len > 0) {
  76911. 801f48a: 68bb ldr r3, [r7, #8]
  76912. 801f48c: 685b ldr r3, [r3, #4]
  76913. 801f48e: 891b ldrh r3, [r3, #8]
  76914. 801f490: 2b00 cmp r3, #0
  76915. 801f492: d028 beq.n 801f4e6 <tcp_receive+0xb3a>
  76916. /* Chain this pbuf onto the pbuf that we will pass to
  76917. the application. */
  76918. /* With window scaling, this can overflow recv_data->tot_len, but
  76919. that's not a problem since we explicitly fix that before passing
  76920. recv_data to the application. */
  76921. if (recv_data) {
  76922. 801f494: 4b0d ldr r3, [pc, #52] @ (801f4cc <tcp_receive+0xb20>)
  76923. 801f496: 681b ldr r3, [r3, #0]
  76924. 801f498: 2b00 cmp r3, #0
  76925. 801f49a: d01d beq.n 801f4d8 <tcp_receive+0xb2c>
  76926. pbuf_cat(recv_data, cseg->p);
  76927. 801f49c: 4b0b ldr r3, [pc, #44] @ (801f4cc <tcp_receive+0xb20>)
  76928. 801f49e: 681a ldr r2, [r3, #0]
  76929. 801f4a0: 68bb ldr r3, [r7, #8]
  76930. 801f4a2: 685b ldr r3, [r3, #4]
  76931. 801f4a4: 4619 mov r1, r3
  76932. 801f4a6: 4610 mov r0, r2
  76933. 801f4a8: f7fb ffae bl 801b408 <pbuf_cat>
  76934. 801f4ac: e018 b.n 801f4e0 <tcp_receive+0xb34>
  76935. 801f4ae: bf00 nop
  76936. 801f4b0: 2402afae .word 0x2402afae
  76937. 801f4b4: 2402afa4 .word 0x2402afa4
  76938. 801f4b8: 2402af80 .word 0x2402af80
  76939. 801f4bc: 0802fbf4 .word 0x0802fbf4
  76940. 801f4c0: 0802ffd4 .word 0x0802ffd4
  76941. 801f4c4: 0802fc40 .word 0x0802fc40
  76942. 801f4c8: 08030010 .word 0x08030010
  76943. 801f4cc: 2402afb4 .word 0x2402afb4
  76944. 801f4d0: 2402afb1 .word 0x2402afb1
  76945. 801f4d4: 08030030 .word 0x08030030
  76946. } else {
  76947. recv_data = cseg->p;
  76948. 801f4d8: 68bb ldr r3, [r7, #8]
  76949. 801f4da: 685b ldr r3, [r3, #4]
  76950. 801f4dc: 4a70 ldr r2, [pc, #448] @ (801f6a0 <tcp_receive+0xcf4>)
  76951. 801f4de: 6013 str r3, [r2, #0]
  76952. }
  76953. cseg->p = NULL;
  76954. 801f4e0: 68bb ldr r3, [r7, #8]
  76955. 801f4e2: 2200 movs r2, #0
  76956. 801f4e4: 605a str r2, [r3, #4]
  76957. }
  76958. if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) {
  76959. 801f4e6: 68bb ldr r3, [r7, #8]
  76960. 801f4e8: 691b ldr r3, [r3, #16]
  76961. 801f4ea: 899b ldrh r3, [r3, #12]
  76962. 801f4ec: b29b uxth r3, r3
  76963. 801f4ee: 4618 mov r0, r3
  76964. 801f4f0: f7fa f9da bl 80198a8 <lwip_htons>
  76965. 801f4f4: 4603 mov r3, r0
  76966. 801f4f6: b2db uxtb r3, r3
  76967. 801f4f8: f003 0301 and.w r3, r3, #1
  76968. 801f4fc: 2b00 cmp r3, #0
  76969. 801f4fe: d00d beq.n 801f51c <tcp_receive+0xb70>
  76970. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: dequeued FIN.\n"));
  76971. recv_flags |= TF_GOT_FIN;
  76972. 801f500: 4b68 ldr r3, [pc, #416] @ (801f6a4 <tcp_receive+0xcf8>)
  76973. 801f502: 781b ldrb r3, [r3, #0]
  76974. 801f504: f043 0320 orr.w r3, r3, #32
  76975. 801f508: b2da uxtb r2, r3
  76976. 801f50a: 4b66 ldr r3, [pc, #408] @ (801f6a4 <tcp_receive+0xcf8>)
  76977. 801f50c: 701a strb r2, [r3, #0]
  76978. if (pcb->state == ESTABLISHED) { /* force passive close or we can move to active close */
  76979. 801f50e: 687b ldr r3, [r7, #4]
  76980. 801f510: 7d1b ldrb r3, [r3, #20]
  76981. 801f512: 2b04 cmp r3, #4
  76982. 801f514: d102 bne.n 801f51c <tcp_receive+0xb70>
  76983. pcb->state = CLOSE_WAIT;
  76984. 801f516: 687b ldr r3, [r7, #4]
  76985. 801f518: 2207 movs r2, #7
  76986. 801f51a: 751a strb r2, [r3, #20]
  76987. }
  76988. }
  76989. pcb->ooseq = cseg->next;
  76990. 801f51c: 68bb ldr r3, [r7, #8]
  76991. 801f51e: 681a ldr r2, [r3, #0]
  76992. 801f520: 687b ldr r3, [r7, #4]
  76993. 801f522: 675a str r2, [r3, #116] @ 0x74
  76994. tcp_seg_free(cseg);
  76995. 801f524: 68b8 ldr r0, [r7, #8]
  76996. 801f526: f7fd fafa bl 801cb1e <tcp_seg_free>
  76997. while (pcb->ooseq != NULL &&
  76998. 801f52a: 687b ldr r3, [r7, #4]
  76999. 801f52c: 6f5b ldr r3, [r3, #116] @ 0x74
  77000. 801f52e: 2b00 cmp r3, #0
  77001. 801f530: d008 beq.n 801f544 <tcp_receive+0xb98>
  77002. pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) {
  77003. 801f532: 687b ldr r3, [r7, #4]
  77004. 801f534: 6f5b ldr r3, [r3, #116] @ 0x74
  77005. 801f536: 691b ldr r3, [r3, #16]
  77006. 801f538: 685a ldr r2, [r3, #4]
  77007. 801f53a: 687b ldr r3, [r7, #4]
  77008. 801f53c: 6a5b ldr r3, [r3, #36] @ 0x24
  77009. while (pcb->ooseq != NULL &&
  77010. 801f53e: 429a cmp r2, r3
  77011. 801f540: f43f af43 beq.w 801f3ca <tcp_receive+0xa1e>
  77012. #endif /* LWIP_TCP_SACK_OUT */
  77013. #endif /* TCP_QUEUE_OOSEQ */
  77014. /* Acknowledge the segment(s). */
  77015. tcp_ack(pcb);
  77016. 801f544: 687b ldr r3, [r7, #4]
  77017. 801f546: 8b5b ldrh r3, [r3, #26]
  77018. 801f548: f003 0301 and.w r3, r3, #1
  77019. 801f54c: 2b00 cmp r3, #0
  77020. 801f54e: d00e beq.n 801f56e <tcp_receive+0xbc2>
  77021. 801f550: 687b ldr r3, [r7, #4]
  77022. 801f552: 8b5b ldrh r3, [r3, #26]
  77023. 801f554: f023 0301 bic.w r3, r3, #1
  77024. 801f558: b29a uxth r2, r3
  77025. 801f55a: 687b ldr r3, [r7, #4]
  77026. 801f55c: 835a strh r2, [r3, #26]
  77027. 801f55e: 687b ldr r3, [r7, #4]
  77028. 801f560: 8b5b ldrh r3, [r3, #26]
  77029. 801f562: f043 0302 orr.w r3, r3, #2
  77030. 801f566: b29a uxth r2, r3
  77031. 801f568: 687b ldr r3, [r7, #4]
  77032. 801f56a: 835a strh r2, [r3, #26]
  77033. if (pcb->rcv_nxt == seqno) {
  77034. 801f56c: e187 b.n 801f87e <tcp_receive+0xed2>
  77035. tcp_ack(pcb);
  77036. 801f56e: 687b ldr r3, [r7, #4]
  77037. 801f570: 8b5b ldrh r3, [r3, #26]
  77038. 801f572: f043 0301 orr.w r3, r3, #1
  77039. 801f576: b29a uxth r2, r3
  77040. 801f578: 687b ldr r3, [r7, #4]
  77041. 801f57a: 835a strh r2, [r3, #26]
  77042. if (pcb->rcv_nxt == seqno) {
  77043. 801f57c: e17f b.n 801f87e <tcp_receive+0xed2>
  77044. } else {
  77045. /* We get here if the incoming segment is out-of-sequence. */
  77046. #if TCP_QUEUE_OOSEQ
  77047. /* We queue the segment on the ->ooseq queue. */
  77048. if (pcb->ooseq == NULL) {
  77049. 801f57e: 687b ldr r3, [r7, #4]
  77050. 801f580: 6f5b ldr r3, [r3, #116] @ 0x74
  77051. 801f582: 2b00 cmp r3, #0
  77052. 801f584: d106 bne.n 801f594 <tcp_receive+0xbe8>
  77053. pcb->ooseq = tcp_seg_copy(&inseg);
  77054. 801f586: 4848 ldr r0, [pc, #288] @ (801f6a8 <tcp_receive+0xcfc>)
  77055. 801f588: f7fd fae2 bl 801cb50 <tcp_seg_copy>
  77056. 801f58c: 4602 mov r2, r0
  77057. 801f58e: 687b ldr r3, [r7, #4]
  77058. 801f590: 675a str r2, [r3, #116] @ 0x74
  77059. 801f592: e16c b.n 801f86e <tcp_receive+0xec2>
  77060. #if LWIP_TCP_SACK_OUT
  77061. /* This is the left edge of the lowest possible SACK range.
  77062. It may start before the newly received segment (possibly adjusted below). */
  77063. u32_t sackbeg = TCP_SEQ_LT(seqno, pcb->ooseq->tcphdr->seqno) ? seqno : pcb->ooseq->tcphdr->seqno;
  77064. #endif /* LWIP_TCP_SACK_OUT */
  77065. struct tcp_seg *next, *prev = NULL;
  77066. 801f594: 2300 movs r3, #0
  77067. 801f596: 637b str r3, [r7, #52] @ 0x34
  77068. for (next = pcb->ooseq; next != NULL; next = next->next) {
  77069. 801f598: 687b ldr r3, [r7, #4]
  77070. 801f59a: 6f5b ldr r3, [r3, #116] @ 0x74
  77071. 801f59c: 63bb str r3, [r7, #56] @ 0x38
  77072. 801f59e: e156 b.n 801f84e <tcp_receive+0xea2>
  77073. if (seqno == next->tcphdr->seqno) {
  77074. 801f5a0: 6bbb ldr r3, [r7, #56] @ 0x38
  77075. 801f5a2: 691b ldr r3, [r3, #16]
  77076. 801f5a4: 685a ldr r2, [r3, #4]
  77077. 801f5a6: 4b41 ldr r3, [pc, #260] @ (801f6ac <tcp_receive+0xd00>)
  77078. 801f5a8: 681b ldr r3, [r3, #0]
  77079. 801f5aa: 429a cmp r2, r3
  77080. 801f5ac: d11d bne.n 801f5ea <tcp_receive+0xc3e>
  77081. /* The sequence number of the incoming segment is the
  77082. same as the sequence number of the segment on
  77083. ->ooseq. We check the lengths to see which one to
  77084. discard. */
  77085. if (inseg.len > next->len) {
  77086. 801f5ae: 4b3e ldr r3, [pc, #248] @ (801f6a8 <tcp_receive+0xcfc>)
  77087. 801f5b0: 891a ldrh r2, [r3, #8]
  77088. 801f5b2: 6bbb ldr r3, [r7, #56] @ 0x38
  77089. 801f5b4: 891b ldrh r3, [r3, #8]
  77090. 801f5b6: 429a cmp r2, r3
  77091. 801f5b8: f240 814e bls.w 801f858 <tcp_receive+0xeac>
  77092. /* The incoming segment is larger than the old
  77093. segment. We replace some segments with the new
  77094. one. */
  77095. struct tcp_seg *cseg = tcp_seg_copy(&inseg);
  77096. 801f5bc: 483a ldr r0, [pc, #232] @ (801f6a8 <tcp_receive+0xcfc>)
  77097. 801f5be: f7fd fac7 bl 801cb50 <tcp_seg_copy>
  77098. 801f5c2: 6178 str r0, [r7, #20]
  77099. if (cseg != NULL) {
  77100. 801f5c4: 697b ldr r3, [r7, #20]
  77101. 801f5c6: 2b00 cmp r3, #0
  77102. 801f5c8: f000 8148 beq.w 801f85c <tcp_receive+0xeb0>
  77103. if (prev != NULL) {
  77104. 801f5cc: 6b7b ldr r3, [r7, #52] @ 0x34
  77105. 801f5ce: 2b00 cmp r3, #0
  77106. 801f5d0: d003 beq.n 801f5da <tcp_receive+0xc2e>
  77107. prev->next = cseg;
  77108. 801f5d2: 6b7b ldr r3, [r7, #52] @ 0x34
  77109. 801f5d4: 697a ldr r2, [r7, #20]
  77110. 801f5d6: 601a str r2, [r3, #0]
  77111. 801f5d8: e002 b.n 801f5e0 <tcp_receive+0xc34>
  77112. } else {
  77113. pcb->ooseq = cseg;
  77114. 801f5da: 687b ldr r3, [r7, #4]
  77115. 801f5dc: 697a ldr r2, [r7, #20]
  77116. 801f5de: 675a str r2, [r3, #116] @ 0x74
  77117. }
  77118. tcp_oos_insert_segment(cseg, next);
  77119. 801f5e0: 6bb9 ldr r1, [r7, #56] @ 0x38
  77120. 801f5e2: 6978 ldr r0, [r7, #20]
  77121. 801f5e4: f7ff f8de bl 801e7a4 <tcp_oos_insert_segment>
  77122. }
  77123. break;
  77124. 801f5e8: e138 b.n 801f85c <tcp_receive+0xeb0>
  77125. segment was smaller than the old one; in either
  77126. case, we ditch the incoming segment. */
  77127. break;
  77128. }
  77129. } else {
  77130. if (prev == NULL) {
  77131. 801f5ea: 6b7b ldr r3, [r7, #52] @ 0x34
  77132. 801f5ec: 2b00 cmp r3, #0
  77133. 801f5ee: d117 bne.n 801f620 <tcp_receive+0xc74>
  77134. if (TCP_SEQ_LT(seqno, next->tcphdr->seqno)) {
  77135. 801f5f0: 4b2e ldr r3, [pc, #184] @ (801f6ac <tcp_receive+0xd00>)
  77136. 801f5f2: 681a ldr r2, [r3, #0]
  77137. 801f5f4: 6bbb ldr r3, [r7, #56] @ 0x38
  77138. 801f5f6: 691b ldr r3, [r3, #16]
  77139. 801f5f8: 685b ldr r3, [r3, #4]
  77140. 801f5fa: 1ad3 subs r3, r2, r3
  77141. 801f5fc: 2b00 cmp r3, #0
  77142. 801f5fe: da57 bge.n 801f6b0 <tcp_receive+0xd04>
  77143. /* The sequence number of the incoming segment is lower
  77144. than the sequence number of the first segment on the
  77145. queue. We put the incoming segment first on the
  77146. queue. */
  77147. struct tcp_seg *cseg = tcp_seg_copy(&inseg);
  77148. 801f600: 4829 ldr r0, [pc, #164] @ (801f6a8 <tcp_receive+0xcfc>)
  77149. 801f602: f7fd faa5 bl 801cb50 <tcp_seg_copy>
  77150. 801f606: 61b8 str r0, [r7, #24]
  77151. if (cseg != NULL) {
  77152. 801f608: 69bb ldr r3, [r7, #24]
  77153. 801f60a: 2b00 cmp r3, #0
  77154. 801f60c: f000 8128 beq.w 801f860 <tcp_receive+0xeb4>
  77155. pcb->ooseq = cseg;
  77156. 801f610: 687b ldr r3, [r7, #4]
  77157. 801f612: 69ba ldr r2, [r7, #24]
  77158. 801f614: 675a str r2, [r3, #116] @ 0x74
  77159. tcp_oos_insert_segment(cseg, next);
  77160. 801f616: 6bb9 ldr r1, [r7, #56] @ 0x38
  77161. 801f618: 69b8 ldr r0, [r7, #24]
  77162. 801f61a: f7ff f8c3 bl 801e7a4 <tcp_oos_insert_segment>
  77163. }
  77164. break;
  77165. 801f61e: e11f b.n 801f860 <tcp_receive+0xeb4>
  77166. }
  77167. } else {
  77168. /*if (TCP_SEQ_LT(prev->tcphdr->seqno, seqno) &&
  77169. TCP_SEQ_LT(seqno, next->tcphdr->seqno)) {*/
  77170. if (TCP_SEQ_BETWEEN(seqno, prev->tcphdr->seqno + 1, next->tcphdr->seqno - 1)) {
  77171. 801f620: 4b22 ldr r3, [pc, #136] @ (801f6ac <tcp_receive+0xd00>)
  77172. 801f622: 681a ldr r2, [r3, #0]
  77173. 801f624: 6b7b ldr r3, [r7, #52] @ 0x34
  77174. 801f626: 691b ldr r3, [r3, #16]
  77175. 801f628: 685b ldr r3, [r3, #4]
  77176. 801f62a: 1ad3 subs r3, r2, r3
  77177. 801f62c: 3b01 subs r3, #1
  77178. 801f62e: 2b00 cmp r3, #0
  77179. 801f630: db3e blt.n 801f6b0 <tcp_receive+0xd04>
  77180. 801f632: 4b1e ldr r3, [pc, #120] @ (801f6ac <tcp_receive+0xd00>)
  77181. 801f634: 681a ldr r2, [r3, #0]
  77182. 801f636: 6bbb ldr r3, [r7, #56] @ 0x38
  77183. 801f638: 691b ldr r3, [r3, #16]
  77184. 801f63a: 685b ldr r3, [r3, #4]
  77185. 801f63c: 1ad3 subs r3, r2, r3
  77186. 801f63e: 3301 adds r3, #1
  77187. 801f640: 2b00 cmp r3, #0
  77188. 801f642: dc35 bgt.n 801f6b0 <tcp_receive+0xd04>
  77189. /* The sequence number of the incoming segment is in
  77190. between the sequence numbers of the previous and
  77191. the next segment on ->ooseq. We trim trim the previous
  77192. segment, delete next segments that included in received segment
  77193. and trim received, if needed. */
  77194. struct tcp_seg *cseg = tcp_seg_copy(&inseg);
  77195. 801f644: 4818 ldr r0, [pc, #96] @ (801f6a8 <tcp_receive+0xcfc>)
  77196. 801f646: f7fd fa83 bl 801cb50 <tcp_seg_copy>
  77197. 801f64a: 61f8 str r0, [r7, #28]
  77198. if (cseg != NULL) {
  77199. 801f64c: 69fb ldr r3, [r7, #28]
  77200. 801f64e: 2b00 cmp r3, #0
  77201. 801f650: f000 8108 beq.w 801f864 <tcp_receive+0xeb8>
  77202. if (TCP_SEQ_GT(prev->tcphdr->seqno + prev->len, seqno)) {
  77203. 801f654: 6b7b ldr r3, [r7, #52] @ 0x34
  77204. 801f656: 691b ldr r3, [r3, #16]
  77205. 801f658: 685b ldr r3, [r3, #4]
  77206. 801f65a: 6b7a ldr r2, [r7, #52] @ 0x34
  77207. 801f65c: 8912 ldrh r2, [r2, #8]
  77208. 801f65e: 441a add r2, r3
  77209. 801f660: 4b12 ldr r3, [pc, #72] @ (801f6ac <tcp_receive+0xd00>)
  77210. 801f662: 681b ldr r3, [r3, #0]
  77211. 801f664: 1ad3 subs r3, r2, r3
  77212. 801f666: 2b00 cmp r3, #0
  77213. 801f668: dd12 ble.n 801f690 <tcp_receive+0xce4>
  77214. /* We need to trim the prev segment. */
  77215. prev->len = (u16_t)(seqno - prev->tcphdr->seqno);
  77216. 801f66a: 4b10 ldr r3, [pc, #64] @ (801f6ac <tcp_receive+0xd00>)
  77217. 801f66c: 681b ldr r3, [r3, #0]
  77218. 801f66e: b29a uxth r2, r3
  77219. 801f670: 6b7b ldr r3, [r7, #52] @ 0x34
  77220. 801f672: 691b ldr r3, [r3, #16]
  77221. 801f674: 685b ldr r3, [r3, #4]
  77222. 801f676: b29b uxth r3, r3
  77223. 801f678: 1ad3 subs r3, r2, r3
  77224. 801f67a: b29a uxth r2, r3
  77225. 801f67c: 6b7b ldr r3, [r7, #52] @ 0x34
  77226. 801f67e: 811a strh r2, [r3, #8]
  77227. pbuf_realloc(prev->p, prev->len);
  77228. 801f680: 6b7b ldr r3, [r7, #52] @ 0x34
  77229. 801f682: 685a ldr r2, [r3, #4]
  77230. 801f684: 6b7b ldr r3, [r7, #52] @ 0x34
  77231. 801f686: 891b ldrh r3, [r3, #8]
  77232. 801f688: 4619 mov r1, r3
  77233. 801f68a: 4610 mov r0, r2
  77234. 801f68c: f7fb fc38 bl 801af00 <pbuf_realloc>
  77235. }
  77236. prev->next = cseg;
  77237. 801f690: 6b7b ldr r3, [r7, #52] @ 0x34
  77238. 801f692: 69fa ldr r2, [r7, #28]
  77239. 801f694: 601a str r2, [r3, #0]
  77240. tcp_oos_insert_segment(cseg, next);
  77241. 801f696: 6bb9 ldr r1, [r7, #56] @ 0x38
  77242. 801f698: 69f8 ldr r0, [r7, #28]
  77243. 801f69a: f7ff f883 bl 801e7a4 <tcp_oos_insert_segment>
  77244. }
  77245. break;
  77246. 801f69e: e0e1 b.n 801f864 <tcp_receive+0xeb8>
  77247. 801f6a0: 2402afb4 .word 0x2402afb4
  77248. 801f6a4: 2402afb1 .word 0x2402afb1
  77249. 801f6a8: 2402af80 .word 0x2402af80
  77250. 801f6ac: 2402afa4 .word 0x2402afa4
  77251. #endif /* LWIP_TCP_SACK_OUT */
  77252. /* We don't use 'prev' below, so let's set it to current 'next'.
  77253. This way even if we break the loop below, 'prev' will be pointing
  77254. at the segment right in front of the newly added one. */
  77255. prev = next;
  77256. 801f6b0: 6bbb ldr r3, [r7, #56] @ 0x38
  77257. 801f6b2: 637b str r3, [r7, #52] @ 0x34
  77258. /* If the "next" segment is the last segment on the
  77259. ooseq queue, we add the incoming segment to the end
  77260. of the list. */
  77261. if (next->next == NULL &&
  77262. 801f6b4: 6bbb ldr r3, [r7, #56] @ 0x38
  77263. 801f6b6: 681b ldr r3, [r3, #0]
  77264. 801f6b8: 2b00 cmp r3, #0
  77265. 801f6ba: f040 80c5 bne.w 801f848 <tcp_receive+0xe9c>
  77266. TCP_SEQ_GT(seqno, next->tcphdr->seqno)) {
  77267. 801f6be: 4b7f ldr r3, [pc, #508] @ (801f8bc <tcp_receive+0xf10>)
  77268. 801f6c0: 681a ldr r2, [r3, #0]
  77269. 801f6c2: 6bbb ldr r3, [r7, #56] @ 0x38
  77270. 801f6c4: 691b ldr r3, [r3, #16]
  77271. 801f6c6: 685b ldr r3, [r3, #4]
  77272. 801f6c8: 1ad3 subs r3, r2, r3
  77273. if (next->next == NULL &&
  77274. 801f6ca: 2b00 cmp r3, #0
  77275. 801f6cc: f340 80bc ble.w 801f848 <tcp_receive+0xe9c>
  77276. if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) {
  77277. 801f6d0: 6bbb ldr r3, [r7, #56] @ 0x38
  77278. 801f6d2: 691b ldr r3, [r3, #16]
  77279. 801f6d4: 899b ldrh r3, [r3, #12]
  77280. 801f6d6: b29b uxth r3, r3
  77281. 801f6d8: 4618 mov r0, r3
  77282. 801f6da: f7fa f8e5 bl 80198a8 <lwip_htons>
  77283. 801f6de: 4603 mov r3, r0
  77284. 801f6e0: b2db uxtb r3, r3
  77285. 801f6e2: f003 0301 and.w r3, r3, #1
  77286. 801f6e6: 2b00 cmp r3, #0
  77287. 801f6e8: f040 80be bne.w 801f868 <tcp_receive+0xebc>
  77288. /* segment "next" already contains all data */
  77289. break;
  77290. }
  77291. next->next = tcp_seg_copy(&inseg);
  77292. 801f6ec: 4874 ldr r0, [pc, #464] @ (801f8c0 <tcp_receive+0xf14>)
  77293. 801f6ee: f7fd fa2f bl 801cb50 <tcp_seg_copy>
  77294. 801f6f2: 4602 mov r2, r0
  77295. 801f6f4: 6bbb ldr r3, [r7, #56] @ 0x38
  77296. 801f6f6: 601a str r2, [r3, #0]
  77297. if (next->next != NULL) {
  77298. 801f6f8: 6bbb ldr r3, [r7, #56] @ 0x38
  77299. 801f6fa: 681b ldr r3, [r3, #0]
  77300. 801f6fc: 2b00 cmp r3, #0
  77301. 801f6fe: f000 80b5 beq.w 801f86c <tcp_receive+0xec0>
  77302. if (TCP_SEQ_GT(next->tcphdr->seqno + next->len, seqno)) {
  77303. 801f702: 6bbb ldr r3, [r7, #56] @ 0x38
  77304. 801f704: 691b ldr r3, [r3, #16]
  77305. 801f706: 685b ldr r3, [r3, #4]
  77306. 801f708: 6bba ldr r2, [r7, #56] @ 0x38
  77307. 801f70a: 8912 ldrh r2, [r2, #8]
  77308. 801f70c: 441a add r2, r3
  77309. 801f70e: 4b6b ldr r3, [pc, #428] @ (801f8bc <tcp_receive+0xf10>)
  77310. 801f710: 681b ldr r3, [r3, #0]
  77311. 801f712: 1ad3 subs r3, r2, r3
  77312. 801f714: 2b00 cmp r3, #0
  77313. 801f716: dd12 ble.n 801f73e <tcp_receive+0xd92>
  77314. /* We need to trim the last segment. */
  77315. next->len = (u16_t)(seqno - next->tcphdr->seqno);
  77316. 801f718: 4b68 ldr r3, [pc, #416] @ (801f8bc <tcp_receive+0xf10>)
  77317. 801f71a: 681b ldr r3, [r3, #0]
  77318. 801f71c: b29a uxth r2, r3
  77319. 801f71e: 6bbb ldr r3, [r7, #56] @ 0x38
  77320. 801f720: 691b ldr r3, [r3, #16]
  77321. 801f722: 685b ldr r3, [r3, #4]
  77322. 801f724: b29b uxth r3, r3
  77323. 801f726: 1ad3 subs r3, r2, r3
  77324. 801f728: b29a uxth r2, r3
  77325. 801f72a: 6bbb ldr r3, [r7, #56] @ 0x38
  77326. 801f72c: 811a strh r2, [r3, #8]
  77327. pbuf_realloc(next->p, next->len);
  77328. 801f72e: 6bbb ldr r3, [r7, #56] @ 0x38
  77329. 801f730: 685a ldr r2, [r3, #4]
  77330. 801f732: 6bbb ldr r3, [r7, #56] @ 0x38
  77331. 801f734: 891b ldrh r3, [r3, #8]
  77332. 801f736: 4619 mov r1, r3
  77333. 801f738: 4610 mov r0, r2
  77334. 801f73a: f7fb fbe1 bl 801af00 <pbuf_realloc>
  77335. }
  77336. /* check if the remote side overruns our receive window */
  77337. if (TCP_SEQ_GT((u32_t)tcplen + seqno, pcb->rcv_nxt + (u32_t)pcb->rcv_wnd)) {
  77338. 801f73e: 4b61 ldr r3, [pc, #388] @ (801f8c4 <tcp_receive+0xf18>)
  77339. 801f740: 881b ldrh r3, [r3, #0]
  77340. 801f742: 461a mov r2, r3
  77341. 801f744: 4b5d ldr r3, [pc, #372] @ (801f8bc <tcp_receive+0xf10>)
  77342. 801f746: 681b ldr r3, [r3, #0]
  77343. 801f748: 441a add r2, r3
  77344. 801f74a: 687b ldr r3, [r7, #4]
  77345. 801f74c: 6a5b ldr r3, [r3, #36] @ 0x24
  77346. 801f74e: 6879 ldr r1, [r7, #4]
  77347. 801f750: 8d09 ldrh r1, [r1, #40] @ 0x28
  77348. 801f752: 440b add r3, r1
  77349. 801f754: 1ad3 subs r3, r2, r3
  77350. 801f756: 2b00 cmp r3, #0
  77351. 801f758: f340 8088 ble.w 801f86c <tcp_receive+0xec0>
  77352. LWIP_DEBUGF(TCP_INPUT_DEBUG,
  77353. ("tcp_receive: other end overran receive window"
  77354. "seqno %"U32_F" len %"U16_F" right edge %"U32_F"\n",
  77355. seqno, tcplen, pcb->rcv_nxt + pcb->rcv_wnd));
  77356. if (TCPH_FLAGS(next->next->tcphdr) & TCP_FIN) {
  77357. 801f75c: 6bbb ldr r3, [r7, #56] @ 0x38
  77358. 801f75e: 681b ldr r3, [r3, #0]
  77359. 801f760: 691b ldr r3, [r3, #16]
  77360. 801f762: 899b ldrh r3, [r3, #12]
  77361. 801f764: b29b uxth r3, r3
  77362. 801f766: 4618 mov r0, r3
  77363. 801f768: f7fa f89e bl 80198a8 <lwip_htons>
  77364. 801f76c: 4603 mov r3, r0
  77365. 801f76e: b2db uxtb r3, r3
  77366. 801f770: f003 0301 and.w r3, r3, #1
  77367. 801f774: 2b00 cmp r3, #0
  77368. 801f776: d021 beq.n 801f7bc <tcp_receive+0xe10>
  77369. /* Must remove the FIN from the header as we're trimming
  77370. * that byte of sequence-space from the packet */
  77371. TCPH_FLAGS_SET(next->next->tcphdr, TCPH_FLAGS(next->next->tcphdr) & ~TCP_FIN);
  77372. 801f778: 6bbb ldr r3, [r7, #56] @ 0x38
  77373. 801f77a: 681b ldr r3, [r3, #0]
  77374. 801f77c: 691b ldr r3, [r3, #16]
  77375. 801f77e: 899b ldrh r3, [r3, #12]
  77376. 801f780: b29b uxth r3, r3
  77377. 801f782: b21b sxth r3, r3
  77378. 801f784: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  77379. 801f788: b21c sxth r4, r3
  77380. 801f78a: 6bbb ldr r3, [r7, #56] @ 0x38
  77381. 801f78c: 681b ldr r3, [r3, #0]
  77382. 801f78e: 691b ldr r3, [r3, #16]
  77383. 801f790: 899b ldrh r3, [r3, #12]
  77384. 801f792: b29b uxth r3, r3
  77385. 801f794: 4618 mov r0, r3
  77386. 801f796: f7fa f887 bl 80198a8 <lwip_htons>
  77387. 801f79a: 4603 mov r3, r0
  77388. 801f79c: b2db uxtb r3, r3
  77389. 801f79e: f003 033e and.w r3, r3, #62 @ 0x3e
  77390. 801f7a2: b29b uxth r3, r3
  77391. 801f7a4: 4618 mov r0, r3
  77392. 801f7a6: f7fa f87f bl 80198a8 <lwip_htons>
  77393. 801f7aa: 4603 mov r3, r0
  77394. 801f7ac: b21b sxth r3, r3
  77395. 801f7ae: 4323 orrs r3, r4
  77396. 801f7b0: b21a sxth r2, r3
  77397. 801f7b2: 6bbb ldr r3, [r7, #56] @ 0x38
  77398. 801f7b4: 681b ldr r3, [r3, #0]
  77399. 801f7b6: 691b ldr r3, [r3, #16]
  77400. 801f7b8: b292 uxth r2, r2
  77401. 801f7ba: 819a strh r2, [r3, #12]
  77402. }
  77403. /* Adjust length of segment to fit in the window. */
  77404. next->next->len = (u16_t)(pcb->rcv_nxt + pcb->rcv_wnd - seqno);
  77405. 801f7bc: 687b ldr r3, [r7, #4]
  77406. 801f7be: 6a5b ldr r3, [r3, #36] @ 0x24
  77407. 801f7c0: b29a uxth r2, r3
  77408. 801f7c2: 687b ldr r3, [r7, #4]
  77409. 801f7c4: 8d1b ldrh r3, [r3, #40] @ 0x28
  77410. 801f7c6: 4413 add r3, r2
  77411. 801f7c8: b299 uxth r1, r3
  77412. 801f7ca: 4b3c ldr r3, [pc, #240] @ (801f8bc <tcp_receive+0xf10>)
  77413. 801f7cc: 681b ldr r3, [r3, #0]
  77414. 801f7ce: b29a uxth r2, r3
  77415. 801f7d0: 6bbb ldr r3, [r7, #56] @ 0x38
  77416. 801f7d2: 681b ldr r3, [r3, #0]
  77417. 801f7d4: 1a8a subs r2, r1, r2
  77418. 801f7d6: b292 uxth r2, r2
  77419. 801f7d8: 811a strh r2, [r3, #8]
  77420. pbuf_realloc(next->next->p, next->next->len);
  77421. 801f7da: 6bbb ldr r3, [r7, #56] @ 0x38
  77422. 801f7dc: 681b ldr r3, [r3, #0]
  77423. 801f7de: 685a ldr r2, [r3, #4]
  77424. 801f7e0: 6bbb ldr r3, [r7, #56] @ 0x38
  77425. 801f7e2: 681b ldr r3, [r3, #0]
  77426. 801f7e4: 891b ldrh r3, [r3, #8]
  77427. 801f7e6: 4619 mov r1, r3
  77428. 801f7e8: 4610 mov r0, r2
  77429. 801f7ea: f7fb fb89 bl 801af00 <pbuf_realloc>
  77430. tcplen = TCP_TCPLEN(next->next);
  77431. 801f7ee: 6bbb ldr r3, [r7, #56] @ 0x38
  77432. 801f7f0: 681b ldr r3, [r3, #0]
  77433. 801f7f2: 891c ldrh r4, [r3, #8]
  77434. 801f7f4: 6bbb ldr r3, [r7, #56] @ 0x38
  77435. 801f7f6: 681b ldr r3, [r3, #0]
  77436. 801f7f8: 691b ldr r3, [r3, #16]
  77437. 801f7fa: 899b ldrh r3, [r3, #12]
  77438. 801f7fc: b29b uxth r3, r3
  77439. 801f7fe: 4618 mov r0, r3
  77440. 801f800: f7fa f852 bl 80198a8 <lwip_htons>
  77441. 801f804: 4603 mov r3, r0
  77442. 801f806: b2db uxtb r3, r3
  77443. 801f808: f003 0303 and.w r3, r3, #3
  77444. 801f80c: 2b00 cmp r3, #0
  77445. 801f80e: d001 beq.n 801f814 <tcp_receive+0xe68>
  77446. 801f810: 2301 movs r3, #1
  77447. 801f812: e000 b.n 801f816 <tcp_receive+0xe6a>
  77448. 801f814: 2300 movs r3, #0
  77449. 801f816: 4423 add r3, r4
  77450. 801f818: b29a uxth r2, r3
  77451. 801f81a: 4b2a ldr r3, [pc, #168] @ (801f8c4 <tcp_receive+0xf18>)
  77452. 801f81c: 801a strh r2, [r3, #0]
  77453. LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n",
  77454. 801f81e: 4b29 ldr r3, [pc, #164] @ (801f8c4 <tcp_receive+0xf18>)
  77455. 801f820: 881b ldrh r3, [r3, #0]
  77456. 801f822: 461a mov r2, r3
  77457. 801f824: 4b25 ldr r3, [pc, #148] @ (801f8bc <tcp_receive+0xf10>)
  77458. 801f826: 681b ldr r3, [r3, #0]
  77459. 801f828: 441a add r2, r3
  77460. 801f82a: 687b ldr r3, [r7, #4]
  77461. 801f82c: 6a5b ldr r3, [r3, #36] @ 0x24
  77462. 801f82e: 6879 ldr r1, [r7, #4]
  77463. 801f830: 8d09 ldrh r1, [r1, #40] @ 0x28
  77464. 801f832: 440b add r3, r1
  77465. 801f834: 429a cmp r2, r3
  77466. 801f836: d019 beq.n 801f86c <tcp_receive+0xec0>
  77467. 801f838: 4b23 ldr r3, [pc, #140] @ (801f8c8 <tcp_receive+0xf1c>)
  77468. 801f83a: f44f 62df mov.w r2, #1784 @ 0x6f8
  77469. 801f83e: 4923 ldr r1, [pc, #140] @ (801f8cc <tcp_receive+0xf20>)
  77470. 801f840: 4823 ldr r0, [pc, #140] @ (801f8d0 <tcp_receive+0xf24>)
  77471. 801f842: f00a ff8b bl 802a75c <iprintf>
  77472. (seqno + tcplen) == (pcb->rcv_nxt + pcb->rcv_wnd));
  77473. }
  77474. }
  77475. break;
  77476. 801f846: e011 b.n 801f86c <tcp_receive+0xec0>
  77477. for (next = pcb->ooseq; next != NULL; next = next->next) {
  77478. 801f848: 6bbb ldr r3, [r7, #56] @ 0x38
  77479. 801f84a: 681b ldr r3, [r3, #0]
  77480. 801f84c: 63bb str r3, [r7, #56] @ 0x38
  77481. 801f84e: 6bbb ldr r3, [r7, #56] @ 0x38
  77482. 801f850: 2b00 cmp r3, #0
  77483. 801f852: f47f aea5 bne.w 801f5a0 <tcp_receive+0xbf4>
  77484. 801f856: e00a b.n 801f86e <tcp_receive+0xec2>
  77485. break;
  77486. 801f858: bf00 nop
  77487. 801f85a: e008 b.n 801f86e <tcp_receive+0xec2>
  77488. break;
  77489. 801f85c: bf00 nop
  77490. 801f85e: e006 b.n 801f86e <tcp_receive+0xec2>
  77491. break;
  77492. 801f860: bf00 nop
  77493. 801f862: e004 b.n 801f86e <tcp_receive+0xec2>
  77494. break;
  77495. 801f864: bf00 nop
  77496. 801f866: e002 b.n 801f86e <tcp_receive+0xec2>
  77497. break;
  77498. 801f868: bf00 nop
  77499. 801f86a: e000 b.n 801f86e <tcp_receive+0xec2>
  77500. break;
  77501. 801f86c: bf00 nop
  77502. #endif /* TCP_OOSEQ_BYTES_LIMIT || TCP_OOSEQ_PBUFS_LIMIT */
  77503. #endif /* TCP_QUEUE_OOSEQ */
  77504. /* We send the ACK packet after we've (potentially) dealt with SACKs,
  77505. so they can be included in the acknowledgment. */
  77506. tcp_send_empty_ack(pcb);
  77507. 801f86e: 6878 ldr r0, [r7, #4]
  77508. 801f870: f001 fefc bl 802166c <tcp_send_empty_ack>
  77509. if (pcb->rcv_nxt == seqno) {
  77510. 801f874: e003 b.n 801f87e <tcp_receive+0xed2>
  77511. }
  77512. } else {
  77513. /* The incoming segment is not within the window. */
  77514. tcp_send_empty_ack(pcb);
  77515. 801f876: 6878 ldr r0, [r7, #4]
  77516. 801f878: f001 fef8 bl 802166c <tcp_send_empty_ack>
  77517. if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt,
  77518. 801f87c: e01a b.n 801f8b4 <tcp_receive+0xf08>
  77519. 801f87e: e019 b.n 801f8b4 <tcp_receive+0xf08>
  77520. }
  77521. } else {
  77522. /* Segments with length 0 is taken care of here. Segments that
  77523. fall out of the window are ACKed. */
  77524. if (!TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, pcb->rcv_nxt + pcb->rcv_wnd - 1)) {
  77525. 801f880: 4b0e ldr r3, [pc, #56] @ (801f8bc <tcp_receive+0xf10>)
  77526. 801f882: 681a ldr r2, [r3, #0]
  77527. 801f884: 687b ldr r3, [r7, #4]
  77528. 801f886: 6a5b ldr r3, [r3, #36] @ 0x24
  77529. 801f888: 1ad3 subs r3, r2, r3
  77530. 801f88a: 2b00 cmp r3, #0
  77531. 801f88c: db0a blt.n 801f8a4 <tcp_receive+0xef8>
  77532. 801f88e: 4b0b ldr r3, [pc, #44] @ (801f8bc <tcp_receive+0xf10>)
  77533. 801f890: 681a ldr r2, [r3, #0]
  77534. 801f892: 687b ldr r3, [r7, #4]
  77535. 801f894: 6a5b ldr r3, [r3, #36] @ 0x24
  77536. 801f896: 6879 ldr r1, [r7, #4]
  77537. 801f898: 8d09 ldrh r1, [r1, #40] @ 0x28
  77538. 801f89a: 440b add r3, r1
  77539. 801f89c: 1ad3 subs r3, r2, r3
  77540. 801f89e: 3301 adds r3, #1
  77541. 801f8a0: 2b00 cmp r3, #0
  77542. 801f8a2: dd07 ble.n 801f8b4 <tcp_receive+0xf08>
  77543. tcp_ack_now(pcb);
  77544. 801f8a4: 687b ldr r3, [r7, #4]
  77545. 801f8a6: 8b5b ldrh r3, [r3, #26]
  77546. 801f8a8: f043 0302 orr.w r3, r3, #2
  77547. 801f8ac: b29a uxth r2, r3
  77548. 801f8ae: 687b ldr r3, [r7, #4]
  77549. 801f8b0: 835a strh r2, [r3, #26]
  77550. }
  77551. }
  77552. }
  77553. 801f8b2: e7ff b.n 801f8b4 <tcp_receive+0xf08>
  77554. 801f8b4: bf00 nop
  77555. 801f8b6: 3750 adds r7, #80 @ 0x50
  77556. 801f8b8: 46bd mov sp, r7
  77557. 801f8ba: bdb0 pop {r4, r5, r7, pc}
  77558. 801f8bc: 2402afa4 .word 0x2402afa4
  77559. 801f8c0: 2402af80 .word 0x2402af80
  77560. 801f8c4: 2402afae .word 0x2402afae
  77561. 801f8c8: 0802fbf4 .word 0x0802fbf4
  77562. 801f8cc: 0802ff9c .word 0x0802ff9c
  77563. 801f8d0: 0802fc40 .word 0x0802fc40
  77564. 0801f8d4 <tcp_get_next_optbyte>:
  77565. static u8_t
  77566. tcp_get_next_optbyte(void)
  77567. {
  77568. 801f8d4: b480 push {r7}
  77569. 801f8d6: b083 sub sp, #12
  77570. 801f8d8: af00 add r7, sp, #0
  77571. u16_t optidx = tcp_optidx++;
  77572. 801f8da: 4b15 ldr r3, [pc, #84] @ (801f930 <tcp_get_next_optbyte+0x5c>)
  77573. 801f8dc: 881b ldrh r3, [r3, #0]
  77574. 801f8de: 1c5a adds r2, r3, #1
  77575. 801f8e0: b291 uxth r1, r2
  77576. 801f8e2: 4a13 ldr r2, [pc, #76] @ (801f930 <tcp_get_next_optbyte+0x5c>)
  77577. 801f8e4: 8011 strh r1, [r2, #0]
  77578. 801f8e6: 80fb strh r3, [r7, #6]
  77579. if ((tcphdr_opt2 == NULL) || (optidx < tcphdr_opt1len)) {
  77580. 801f8e8: 4b12 ldr r3, [pc, #72] @ (801f934 <tcp_get_next_optbyte+0x60>)
  77581. 801f8ea: 681b ldr r3, [r3, #0]
  77582. 801f8ec: 2b00 cmp r3, #0
  77583. 801f8ee: d004 beq.n 801f8fa <tcp_get_next_optbyte+0x26>
  77584. 801f8f0: 4b11 ldr r3, [pc, #68] @ (801f938 <tcp_get_next_optbyte+0x64>)
  77585. 801f8f2: 881b ldrh r3, [r3, #0]
  77586. 801f8f4: 88fa ldrh r2, [r7, #6]
  77587. 801f8f6: 429a cmp r2, r3
  77588. 801f8f8: d208 bcs.n 801f90c <tcp_get_next_optbyte+0x38>
  77589. u8_t *opts = (u8_t *)tcphdr + TCP_HLEN;
  77590. 801f8fa: 4b10 ldr r3, [pc, #64] @ (801f93c <tcp_get_next_optbyte+0x68>)
  77591. 801f8fc: 681b ldr r3, [r3, #0]
  77592. 801f8fe: 3314 adds r3, #20
  77593. 801f900: 603b str r3, [r7, #0]
  77594. return opts[optidx];
  77595. 801f902: 88fb ldrh r3, [r7, #6]
  77596. 801f904: 683a ldr r2, [r7, #0]
  77597. 801f906: 4413 add r3, r2
  77598. 801f908: 781b ldrb r3, [r3, #0]
  77599. 801f90a: e00b b.n 801f924 <tcp_get_next_optbyte+0x50>
  77600. } else {
  77601. u8_t idx = (u8_t)(optidx - tcphdr_opt1len);
  77602. 801f90c: 88fb ldrh r3, [r7, #6]
  77603. 801f90e: b2da uxtb r2, r3
  77604. 801f910: 4b09 ldr r3, [pc, #36] @ (801f938 <tcp_get_next_optbyte+0x64>)
  77605. 801f912: 881b ldrh r3, [r3, #0]
  77606. 801f914: b2db uxtb r3, r3
  77607. 801f916: 1ad3 subs r3, r2, r3
  77608. 801f918: 717b strb r3, [r7, #5]
  77609. return tcphdr_opt2[idx];
  77610. 801f91a: 4b06 ldr r3, [pc, #24] @ (801f934 <tcp_get_next_optbyte+0x60>)
  77611. 801f91c: 681a ldr r2, [r3, #0]
  77612. 801f91e: 797b ldrb r3, [r7, #5]
  77613. 801f920: 4413 add r3, r2
  77614. 801f922: 781b ldrb r3, [r3, #0]
  77615. }
  77616. }
  77617. 801f924: 4618 mov r0, r3
  77618. 801f926: 370c adds r7, #12
  77619. 801f928: 46bd mov sp, r7
  77620. 801f92a: f85d 7b04 ldr.w r7, [sp], #4
  77621. 801f92e: 4770 bx lr
  77622. 801f930: 2402afa0 .word 0x2402afa0
  77623. 801f934: 2402af9c .word 0x2402af9c
  77624. 801f938: 2402af9a .word 0x2402af9a
  77625. 801f93c: 2402af94 .word 0x2402af94
  77626. 0801f940 <tcp_parseopt>:
  77627. *
  77628. * @param pcb the tcp_pcb for which a segment arrived
  77629. */
  77630. static void
  77631. tcp_parseopt(struct tcp_pcb *pcb)
  77632. {
  77633. 801f940: b580 push {r7, lr}
  77634. 801f942: b084 sub sp, #16
  77635. 801f944: af00 add r7, sp, #0
  77636. 801f946: 6078 str r0, [r7, #4]
  77637. u16_t mss;
  77638. #if LWIP_TCP_TIMESTAMPS
  77639. u32_t tsval;
  77640. #endif
  77641. LWIP_ASSERT("tcp_parseopt: invalid pcb", pcb != NULL);
  77642. 801f948: 687b ldr r3, [r7, #4]
  77643. 801f94a: 2b00 cmp r3, #0
  77644. 801f94c: d106 bne.n 801f95c <tcp_parseopt+0x1c>
  77645. 801f94e: 4b33 ldr r3, [pc, #204] @ (801fa1c <tcp_parseopt+0xdc>)
  77646. 801f950: f240 727d movw r2, #1917 @ 0x77d
  77647. 801f954: 4932 ldr r1, [pc, #200] @ (801fa20 <tcp_parseopt+0xe0>)
  77648. 801f956: 4833 ldr r0, [pc, #204] @ (801fa24 <tcp_parseopt+0xe4>)
  77649. 801f958: f00a ff00 bl 802a75c <iprintf>
  77650. /* Parse the TCP MSS option, if present. */
  77651. if (tcphdr_optlen != 0) {
  77652. 801f95c: 4b32 ldr r3, [pc, #200] @ (801fa28 <tcp_parseopt+0xe8>)
  77653. 801f95e: 881b ldrh r3, [r3, #0]
  77654. 801f960: 2b00 cmp r3, #0
  77655. 801f962: d057 beq.n 801fa14 <tcp_parseopt+0xd4>
  77656. for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) {
  77657. 801f964: 4b31 ldr r3, [pc, #196] @ (801fa2c <tcp_parseopt+0xec>)
  77658. 801f966: 2200 movs r2, #0
  77659. 801f968: 801a strh r2, [r3, #0]
  77660. 801f96a: e047 b.n 801f9fc <tcp_parseopt+0xbc>
  77661. u8_t opt = tcp_get_next_optbyte();
  77662. 801f96c: f7ff ffb2 bl 801f8d4 <tcp_get_next_optbyte>
  77663. 801f970: 4603 mov r3, r0
  77664. 801f972: 73fb strb r3, [r7, #15]
  77665. switch (opt) {
  77666. 801f974: 7bfb ldrb r3, [r7, #15]
  77667. 801f976: 2b02 cmp r3, #2
  77668. 801f978: d006 beq.n 801f988 <tcp_parseopt+0x48>
  77669. 801f97a: 2b02 cmp r3, #2
  77670. 801f97c: dc2b bgt.n 801f9d6 <tcp_parseopt+0x96>
  77671. 801f97e: 2b00 cmp r3, #0
  77672. 801f980: d043 beq.n 801fa0a <tcp_parseopt+0xca>
  77673. 801f982: 2b01 cmp r3, #1
  77674. 801f984: d039 beq.n 801f9fa <tcp_parseopt+0xba>
  77675. 801f986: e026 b.n 801f9d6 <tcp_parseopt+0x96>
  77676. /* NOP option. */
  77677. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: NOP\n"));
  77678. break;
  77679. case LWIP_TCP_OPT_MSS:
  77680. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: MSS\n"));
  77681. if (tcp_get_next_optbyte() != LWIP_TCP_OPT_LEN_MSS || (tcp_optidx - 2 + LWIP_TCP_OPT_LEN_MSS) > tcphdr_optlen) {
  77682. 801f988: f7ff ffa4 bl 801f8d4 <tcp_get_next_optbyte>
  77683. 801f98c: 4603 mov r3, r0
  77684. 801f98e: 2b04 cmp r3, #4
  77685. 801f990: d13d bne.n 801fa0e <tcp_parseopt+0xce>
  77686. 801f992: 4b26 ldr r3, [pc, #152] @ (801fa2c <tcp_parseopt+0xec>)
  77687. 801f994: 881b ldrh r3, [r3, #0]
  77688. 801f996: 3301 adds r3, #1
  77689. 801f998: 4a23 ldr r2, [pc, #140] @ (801fa28 <tcp_parseopt+0xe8>)
  77690. 801f99a: 8812 ldrh r2, [r2, #0]
  77691. 801f99c: 4293 cmp r3, r2
  77692. 801f99e: da36 bge.n 801fa0e <tcp_parseopt+0xce>
  77693. /* Bad length */
  77694. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: bad length\n"));
  77695. return;
  77696. }
  77697. /* An MSS option with the right option length. */
  77698. mss = (u16_t)(tcp_get_next_optbyte() << 8);
  77699. 801f9a0: f7ff ff98 bl 801f8d4 <tcp_get_next_optbyte>
  77700. 801f9a4: 4603 mov r3, r0
  77701. 801f9a6: 021b lsls r3, r3, #8
  77702. 801f9a8: 81bb strh r3, [r7, #12]
  77703. mss |= tcp_get_next_optbyte();
  77704. 801f9aa: f7ff ff93 bl 801f8d4 <tcp_get_next_optbyte>
  77705. 801f9ae: 4603 mov r3, r0
  77706. 801f9b0: 461a mov r2, r3
  77707. 801f9b2: 89bb ldrh r3, [r7, #12]
  77708. 801f9b4: 4313 orrs r3, r2
  77709. 801f9b6: 81bb strh r3, [r7, #12]
  77710. /* Limit the mss to the configured TCP_MSS and prevent division by zero */
  77711. pcb->mss = ((mss > TCP_MSS) || (mss == 0)) ? TCP_MSS : mss;
  77712. 801f9b8: 89bb ldrh r3, [r7, #12]
  77713. 801f9ba: f240 52b4 movw r2, #1460 @ 0x5b4
  77714. 801f9be: 4293 cmp r3, r2
  77715. 801f9c0: d804 bhi.n 801f9cc <tcp_parseopt+0x8c>
  77716. 801f9c2: 89bb ldrh r3, [r7, #12]
  77717. 801f9c4: 2b00 cmp r3, #0
  77718. 801f9c6: d001 beq.n 801f9cc <tcp_parseopt+0x8c>
  77719. 801f9c8: 89ba ldrh r2, [r7, #12]
  77720. 801f9ca: e001 b.n 801f9d0 <tcp_parseopt+0x90>
  77721. 801f9cc: f240 52b4 movw r2, #1460 @ 0x5b4
  77722. 801f9d0: 687b ldr r3, [r7, #4]
  77723. 801f9d2: 865a strh r2, [r3, #50] @ 0x32
  77724. break;
  77725. 801f9d4: e012 b.n 801f9fc <tcp_parseopt+0xbc>
  77726. }
  77727. break;
  77728. #endif /* LWIP_TCP_SACK_OUT */
  77729. default:
  77730. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: other\n"));
  77731. data = tcp_get_next_optbyte();
  77732. 801f9d6: f7ff ff7d bl 801f8d4 <tcp_get_next_optbyte>
  77733. 801f9da: 4603 mov r3, r0
  77734. 801f9dc: 72fb strb r3, [r7, #11]
  77735. if (data < 2) {
  77736. 801f9de: 7afb ldrb r3, [r7, #11]
  77737. 801f9e0: 2b01 cmp r3, #1
  77738. 801f9e2: d916 bls.n 801fa12 <tcp_parseopt+0xd2>
  77739. and we don't process them further. */
  77740. return;
  77741. }
  77742. /* All other options have a length field, so that we easily
  77743. can skip past them. */
  77744. tcp_optidx += data - 2;
  77745. 801f9e4: 7afb ldrb r3, [r7, #11]
  77746. 801f9e6: b29a uxth r2, r3
  77747. 801f9e8: 4b10 ldr r3, [pc, #64] @ (801fa2c <tcp_parseopt+0xec>)
  77748. 801f9ea: 881b ldrh r3, [r3, #0]
  77749. 801f9ec: 4413 add r3, r2
  77750. 801f9ee: b29b uxth r3, r3
  77751. 801f9f0: 3b02 subs r3, #2
  77752. 801f9f2: b29a uxth r2, r3
  77753. 801f9f4: 4b0d ldr r3, [pc, #52] @ (801fa2c <tcp_parseopt+0xec>)
  77754. 801f9f6: 801a strh r2, [r3, #0]
  77755. 801f9f8: e000 b.n 801f9fc <tcp_parseopt+0xbc>
  77756. break;
  77757. 801f9fa: bf00 nop
  77758. for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) {
  77759. 801f9fc: 4b0b ldr r3, [pc, #44] @ (801fa2c <tcp_parseopt+0xec>)
  77760. 801f9fe: 881a ldrh r2, [r3, #0]
  77761. 801fa00: 4b09 ldr r3, [pc, #36] @ (801fa28 <tcp_parseopt+0xe8>)
  77762. 801fa02: 881b ldrh r3, [r3, #0]
  77763. 801fa04: 429a cmp r2, r3
  77764. 801fa06: d3b1 bcc.n 801f96c <tcp_parseopt+0x2c>
  77765. 801fa08: e004 b.n 801fa14 <tcp_parseopt+0xd4>
  77766. return;
  77767. 801fa0a: bf00 nop
  77768. 801fa0c: e002 b.n 801fa14 <tcp_parseopt+0xd4>
  77769. return;
  77770. 801fa0e: bf00 nop
  77771. 801fa10: e000 b.n 801fa14 <tcp_parseopt+0xd4>
  77772. return;
  77773. 801fa12: bf00 nop
  77774. }
  77775. }
  77776. }
  77777. }
  77778. 801fa14: 3710 adds r7, #16
  77779. 801fa16: 46bd mov sp, r7
  77780. 801fa18: bd80 pop {r7, pc}
  77781. 801fa1a: bf00 nop
  77782. 801fa1c: 0802fbf4 .word 0x0802fbf4
  77783. 801fa20: 08030058 .word 0x08030058
  77784. 801fa24: 0802fc40 .word 0x0802fc40
  77785. 801fa28: 2402af98 .word 0x2402af98
  77786. 801fa2c: 2402afa0 .word 0x2402afa0
  77787. 0801fa30 <tcp_trigger_input_pcb_close>:
  77788. void
  77789. tcp_trigger_input_pcb_close(void)
  77790. {
  77791. 801fa30: b480 push {r7}
  77792. 801fa32: af00 add r7, sp, #0
  77793. recv_flags |= TF_CLOSED;
  77794. 801fa34: 4b05 ldr r3, [pc, #20] @ (801fa4c <tcp_trigger_input_pcb_close+0x1c>)
  77795. 801fa36: 781b ldrb r3, [r3, #0]
  77796. 801fa38: f043 0310 orr.w r3, r3, #16
  77797. 801fa3c: b2da uxtb r2, r3
  77798. 801fa3e: 4b03 ldr r3, [pc, #12] @ (801fa4c <tcp_trigger_input_pcb_close+0x1c>)
  77799. 801fa40: 701a strb r2, [r3, #0]
  77800. }
  77801. 801fa42: bf00 nop
  77802. 801fa44: 46bd mov sp, r7
  77803. 801fa46: f85d 7b04 ldr.w r7, [sp], #4
  77804. 801fa4a: 4770 bx lr
  77805. 801fa4c: 2402afb1 .word 0x2402afb1
  77806. 0801fa50 <tcp_route>:
  77807. static err_t tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif);
  77808. /* tcp_route: common code that returns a fixed bound netif or calls ip_route */
  77809. static struct netif *
  77810. tcp_route(const struct tcp_pcb *pcb, const ip_addr_t *src, const ip_addr_t *dst)
  77811. {
  77812. 801fa50: b580 push {r7, lr}
  77813. 801fa52: b084 sub sp, #16
  77814. 801fa54: af00 add r7, sp, #0
  77815. 801fa56: 60f8 str r0, [r7, #12]
  77816. 801fa58: 60b9 str r1, [r7, #8]
  77817. 801fa5a: 607a str r2, [r7, #4]
  77818. LWIP_UNUSED_ARG(src); /* in case IPv4-only and source-based routing is disabled */
  77819. if ((pcb != NULL) && (pcb->netif_idx != NETIF_NO_INDEX)) {
  77820. 801fa5c: 68fb ldr r3, [r7, #12]
  77821. 801fa5e: 2b00 cmp r3, #0
  77822. 801fa60: d00a beq.n 801fa78 <tcp_route+0x28>
  77823. 801fa62: 68fb ldr r3, [r7, #12]
  77824. 801fa64: 7a1b ldrb r3, [r3, #8]
  77825. 801fa66: 2b00 cmp r3, #0
  77826. 801fa68: d006 beq.n 801fa78 <tcp_route+0x28>
  77827. return netif_get_by_index(pcb->netif_idx);
  77828. 801fa6a: 68fb ldr r3, [r7, #12]
  77829. 801fa6c: 7a1b ldrb r3, [r3, #8]
  77830. 801fa6e: 4618 mov r0, r3
  77831. 801fa70: f7fb f83c bl 801aaec <netif_get_by_index>
  77832. 801fa74: 4603 mov r3, r0
  77833. 801fa76: e003 b.n 801fa80 <tcp_route+0x30>
  77834. } else {
  77835. return ip_route(src, dst);
  77836. 801fa78: 6878 ldr r0, [r7, #4]
  77837. 801fa7a: f005 fe61 bl 8025740 <ip4_route>
  77838. 801fa7e: 4603 mov r3, r0
  77839. }
  77840. }
  77841. 801fa80: 4618 mov r0, r3
  77842. 801fa82: 3710 adds r7, #16
  77843. 801fa84: 46bd mov sp, r7
  77844. 801fa86: bd80 pop {r7, pc}
  77845. 0801fa88 <tcp_create_segment>:
  77846. * The TCP header is filled in except ackno and wnd.
  77847. * p is freed on failure.
  77848. */
  77849. static struct tcp_seg *
  77850. tcp_create_segment(const struct tcp_pcb *pcb, struct pbuf *p, u8_t hdrflags, u32_t seqno, u8_t optflags)
  77851. {
  77852. 801fa88: b590 push {r4, r7, lr}
  77853. 801fa8a: b087 sub sp, #28
  77854. 801fa8c: af00 add r7, sp, #0
  77855. 801fa8e: 60f8 str r0, [r7, #12]
  77856. 801fa90: 60b9 str r1, [r7, #8]
  77857. 801fa92: 603b str r3, [r7, #0]
  77858. 801fa94: 4613 mov r3, r2
  77859. 801fa96: 71fb strb r3, [r7, #7]
  77860. struct tcp_seg *seg;
  77861. u8_t optlen;
  77862. LWIP_ASSERT("tcp_create_segment: invalid pcb", pcb != NULL);
  77863. 801fa98: 68fb ldr r3, [r7, #12]
  77864. 801fa9a: 2b00 cmp r3, #0
  77865. 801fa9c: d105 bne.n 801faaa <tcp_create_segment+0x22>
  77866. 801fa9e: 4b45 ldr r3, [pc, #276] @ (801fbb4 <tcp_create_segment+0x12c>)
  77867. 801faa0: 22a3 movs r2, #163 @ 0xa3
  77868. 801faa2: 4945 ldr r1, [pc, #276] @ (801fbb8 <tcp_create_segment+0x130>)
  77869. 801faa4: 4845 ldr r0, [pc, #276] @ (801fbbc <tcp_create_segment+0x134>)
  77870. 801faa6: f00a fe59 bl 802a75c <iprintf>
  77871. LWIP_ASSERT("tcp_create_segment: invalid pbuf", p != NULL);
  77872. 801faaa: 68bb ldr r3, [r7, #8]
  77873. 801faac: 2b00 cmp r3, #0
  77874. 801faae: d105 bne.n 801fabc <tcp_create_segment+0x34>
  77875. 801fab0: 4b40 ldr r3, [pc, #256] @ (801fbb4 <tcp_create_segment+0x12c>)
  77876. 801fab2: 22a4 movs r2, #164 @ 0xa4
  77877. 801fab4: 4942 ldr r1, [pc, #264] @ (801fbc0 <tcp_create_segment+0x138>)
  77878. 801fab6: 4841 ldr r0, [pc, #260] @ (801fbbc <tcp_create_segment+0x134>)
  77879. 801fab8: f00a fe50 bl 802a75c <iprintf>
  77880. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb);
  77881. 801fabc: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  77882. 801fac0: 009b lsls r3, r3, #2
  77883. 801fac2: b2db uxtb r3, r3
  77884. 801fac4: f003 0304 and.w r3, r3, #4
  77885. 801fac8: 75fb strb r3, [r7, #23]
  77886. if ((seg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG)) == NULL) {
  77887. 801faca: 2003 movs r0, #3
  77888. 801facc: f7fa fc6a bl 801a3a4 <memp_malloc>
  77889. 801fad0: 6138 str r0, [r7, #16]
  77890. 801fad2: 693b ldr r3, [r7, #16]
  77891. 801fad4: 2b00 cmp r3, #0
  77892. 801fad6: d104 bne.n 801fae2 <tcp_create_segment+0x5a>
  77893. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_create_segment: no memory.\n"));
  77894. pbuf_free(p);
  77895. 801fad8: 68b8 ldr r0, [r7, #8]
  77896. 801fada: f7fb fbc7 bl 801b26c <pbuf_free>
  77897. return NULL;
  77898. 801fade: 2300 movs r3, #0
  77899. 801fae0: e063 b.n 801fbaa <tcp_create_segment+0x122>
  77900. }
  77901. seg->flags = optflags;
  77902. 801fae2: 693b ldr r3, [r7, #16]
  77903. 801fae4: f897 2028 ldrb.w r2, [r7, #40] @ 0x28
  77904. 801fae8: 731a strb r2, [r3, #12]
  77905. seg->next = NULL;
  77906. 801faea: 693b ldr r3, [r7, #16]
  77907. 801faec: 2200 movs r2, #0
  77908. 801faee: 601a str r2, [r3, #0]
  77909. seg->p = p;
  77910. 801faf0: 693b ldr r3, [r7, #16]
  77911. 801faf2: 68ba ldr r2, [r7, #8]
  77912. 801faf4: 605a str r2, [r3, #4]
  77913. LWIP_ASSERT("p->tot_len >= optlen", p->tot_len >= optlen);
  77914. 801faf6: 68bb ldr r3, [r7, #8]
  77915. 801faf8: 891a ldrh r2, [r3, #8]
  77916. 801fafa: 7dfb ldrb r3, [r7, #23]
  77917. 801fafc: b29b uxth r3, r3
  77918. 801fafe: 429a cmp r2, r3
  77919. 801fb00: d205 bcs.n 801fb0e <tcp_create_segment+0x86>
  77920. 801fb02: 4b2c ldr r3, [pc, #176] @ (801fbb4 <tcp_create_segment+0x12c>)
  77921. 801fb04: 22b0 movs r2, #176 @ 0xb0
  77922. 801fb06: 492f ldr r1, [pc, #188] @ (801fbc4 <tcp_create_segment+0x13c>)
  77923. 801fb08: 482c ldr r0, [pc, #176] @ (801fbbc <tcp_create_segment+0x134>)
  77924. 801fb0a: f00a fe27 bl 802a75c <iprintf>
  77925. seg->len = p->tot_len - optlen;
  77926. 801fb0e: 68bb ldr r3, [r7, #8]
  77927. 801fb10: 891a ldrh r2, [r3, #8]
  77928. 801fb12: 7dfb ldrb r3, [r7, #23]
  77929. 801fb14: b29b uxth r3, r3
  77930. 801fb16: 1ad3 subs r3, r2, r3
  77931. 801fb18: b29a uxth r2, r3
  77932. 801fb1a: 693b ldr r3, [r7, #16]
  77933. 801fb1c: 811a strh r2, [r3, #8]
  77934. #if TCP_OVERSIZE_DBGCHECK
  77935. seg->oversize_left = 0;
  77936. 801fb1e: 693b ldr r3, [r7, #16]
  77937. 801fb20: 2200 movs r2, #0
  77938. 801fb22: 815a strh r2, [r3, #10]
  77939. LWIP_ASSERT("invalid optflags passed: TF_SEG_DATA_CHECKSUMMED",
  77940. (optflags & TF_SEG_DATA_CHECKSUMMED) == 0);
  77941. #endif /* TCP_CHECKSUM_ON_COPY */
  77942. /* build TCP header */
  77943. if (pbuf_add_header(p, TCP_HLEN)) {
  77944. 801fb24: 2114 movs r1, #20
  77945. 801fb26: 68b8 ldr r0, [r7, #8]
  77946. 801fb28: f7fb fad8 bl 801b0dc <pbuf_add_header>
  77947. 801fb2c: 4603 mov r3, r0
  77948. 801fb2e: 2b00 cmp r3, #0
  77949. 801fb30: d004 beq.n 801fb3c <tcp_create_segment+0xb4>
  77950. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_create_segment: no room for TCP header in pbuf.\n"));
  77951. TCP_STATS_INC(tcp.err);
  77952. tcp_seg_free(seg);
  77953. 801fb32: 6938 ldr r0, [r7, #16]
  77954. 801fb34: f7fc fff3 bl 801cb1e <tcp_seg_free>
  77955. return NULL;
  77956. 801fb38: 2300 movs r3, #0
  77957. 801fb3a: e036 b.n 801fbaa <tcp_create_segment+0x122>
  77958. }
  77959. seg->tcphdr = (struct tcp_hdr *)seg->p->payload;
  77960. 801fb3c: 693b ldr r3, [r7, #16]
  77961. 801fb3e: 685b ldr r3, [r3, #4]
  77962. 801fb40: 685a ldr r2, [r3, #4]
  77963. 801fb42: 693b ldr r3, [r7, #16]
  77964. 801fb44: 611a str r2, [r3, #16]
  77965. seg->tcphdr->src = lwip_htons(pcb->local_port);
  77966. 801fb46: 68fb ldr r3, [r7, #12]
  77967. 801fb48: 8ada ldrh r2, [r3, #22]
  77968. 801fb4a: 693b ldr r3, [r7, #16]
  77969. 801fb4c: 691c ldr r4, [r3, #16]
  77970. 801fb4e: 4610 mov r0, r2
  77971. 801fb50: f7f9 feaa bl 80198a8 <lwip_htons>
  77972. 801fb54: 4603 mov r3, r0
  77973. 801fb56: 8023 strh r3, [r4, #0]
  77974. seg->tcphdr->dest = lwip_htons(pcb->remote_port);
  77975. 801fb58: 68fb ldr r3, [r7, #12]
  77976. 801fb5a: 8b1a ldrh r2, [r3, #24]
  77977. 801fb5c: 693b ldr r3, [r7, #16]
  77978. 801fb5e: 691c ldr r4, [r3, #16]
  77979. 801fb60: 4610 mov r0, r2
  77980. 801fb62: f7f9 fea1 bl 80198a8 <lwip_htons>
  77981. 801fb66: 4603 mov r3, r0
  77982. 801fb68: 8063 strh r3, [r4, #2]
  77983. seg->tcphdr->seqno = lwip_htonl(seqno);
  77984. 801fb6a: 693b ldr r3, [r7, #16]
  77985. 801fb6c: 691c ldr r4, [r3, #16]
  77986. 801fb6e: 6838 ldr r0, [r7, #0]
  77987. 801fb70: f7f9 feaf bl 80198d2 <lwip_htonl>
  77988. 801fb74: 4603 mov r3, r0
  77989. 801fb76: 6063 str r3, [r4, #4]
  77990. /* ackno is set in tcp_output */
  77991. TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), hdrflags);
  77992. 801fb78: 7dfb ldrb r3, [r7, #23]
  77993. 801fb7a: 089b lsrs r3, r3, #2
  77994. 801fb7c: b2db uxtb r3, r3
  77995. 801fb7e: 3305 adds r3, #5
  77996. 801fb80: b29b uxth r3, r3
  77997. 801fb82: 031b lsls r3, r3, #12
  77998. 801fb84: b29a uxth r2, r3
  77999. 801fb86: 79fb ldrb r3, [r7, #7]
  78000. 801fb88: b29b uxth r3, r3
  78001. 801fb8a: 4313 orrs r3, r2
  78002. 801fb8c: b29a uxth r2, r3
  78003. 801fb8e: 693b ldr r3, [r7, #16]
  78004. 801fb90: 691c ldr r4, [r3, #16]
  78005. 801fb92: 4610 mov r0, r2
  78006. 801fb94: f7f9 fe88 bl 80198a8 <lwip_htons>
  78007. 801fb98: 4603 mov r3, r0
  78008. 801fb9a: 81a3 strh r3, [r4, #12]
  78009. /* wnd and chksum are set in tcp_output */
  78010. seg->tcphdr->urgp = 0;
  78011. 801fb9c: 693b ldr r3, [r7, #16]
  78012. 801fb9e: 691b ldr r3, [r3, #16]
  78013. 801fba0: 2200 movs r2, #0
  78014. 801fba2: 749a strb r2, [r3, #18]
  78015. 801fba4: 2200 movs r2, #0
  78016. 801fba6: 74da strb r2, [r3, #19]
  78017. return seg;
  78018. 801fba8: 693b ldr r3, [r7, #16]
  78019. }
  78020. 801fbaa: 4618 mov r0, r3
  78021. 801fbac: 371c adds r7, #28
  78022. 801fbae: 46bd mov sp, r7
  78023. 801fbb0: bd90 pop {r4, r7, pc}
  78024. 801fbb2: bf00 nop
  78025. 801fbb4: 08030074 .word 0x08030074
  78026. 801fbb8: 080300a8 .word 0x080300a8
  78027. 801fbbc: 080300c8 .word 0x080300c8
  78028. 801fbc0: 080300f0 .word 0x080300f0
  78029. 801fbc4: 08030114 .word 0x08030114
  78030. 0801fbc8 <tcp_pbuf_prealloc>:
  78031. #if TCP_OVERSIZE
  78032. static struct pbuf *
  78033. tcp_pbuf_prealloc(pbuf_layer layer, u16_t length, u16_t max_length,
  78034. u16_t *oversize, const struct tcp_pcb *pcb, u8_t apiflags,
  78035. u8_t first_seg)
  78036. {
  78037. 801fbc8: b580 push {r7, lr}
  78038. 801fbca: b086 sub sp, #24
  78039. 801fbcc: af00 add r7, sp, #0
  78040. 801fbce: 607b str r3, [r7, #4]
  78041. 801fbd0: 4603 mov r3, r0
  78042. 801fbd2: 73fb strb r3, [r7, #15]
  78043. 801fbd4: 460b mov r3, r1
  78044. 801fbd6: 81bb strh r3, [r7, #12]
  78045. 801fbd8: 4613 mov r3, r2
  78046. 801fbda: 817b strh r3, [r7, #10]
  78047. struct pbuf *p;
  78048. u16_t alloc = length;
  78049. 801fbdc: 89bb ldrh r3, [r7, #12]
  78050. 801fbde: 82fb strh r3, [r7, #22]
  78051. LWIP_ASSERT("tcp_pbuf_prealloc: invalid oversize", oversize != NULL);
  78052. 801fbe0: 687b ldr r3, [r7, #4]
  78053. 801fbe2: 2b00 cmp r3, #0
  78054. 801fbe4: d105 bne.n 801fbf2 <tcp_pbuf_prealloc+0x2a>
  78055. 801fbe6: 4b30 ldr r3, [pc, #192] @ (801fca8 <tcp_pbuf_prealloc+0xe0>)
  78056. 801fbe8: 22e8 movs r2, #232 @ 0xe8
  78057. 801fbea: 4930 ldr r1, [pc, #192] @ (801fcac <tcp_pbuf_prealloc+0xe4>)
  78058. 801fbec: 4830 ldr r0, [pc, #192] @ (801fcb0 <tcp_pbuf_prealloc+0xe8>)
  78059. 801fbee: f00a fdb5 bl 802a75c <iprintf>
  78060. LWIP_ASSERT("tcp_pbuf_prealloc: invalid pcb", pcb != NULL);
  78061. 801fbf2: 6a3b ldr r3, [r7, #32]
  78062. 801fbf4: 2b00 cmp r3, #0
  78063. 801fbf6: d105 bne.n 801fc04 <tcp_pbuf_prealloc+0x3c>
  78064. 801fbf8: 4b2b ldr r3, [pc, #172] @ (801fca8 <tcp_pbuf_prealloc+0xe0>)
  78065. 801fbfa: 22e9 movs r2, #233 @ 0xe9
  78066. 801fbfc: 492d ldr r1, [pc, #180] @ (801fcb4 <tcp_pbuf_prealloc+0xec>)
  78067. 801fbfe: 482c ldr r0, [pc, #176] @ (801fcb0 <tcp_pbuf_prealloc+0xe8>)
  78068. 801fc00: f00a fdac bl 802a75c <iprintf>
  78069. LWIP_UNUSED_ARG(pcb);
  78070. LWIP_UNUSED_ARG(apiflags);
  78071. LWIP_UNUSED_ARG(first_seg);
  78072. alloc = max_length;
  78073. #else /* LWIP_NETIF_TX_SINGLE_PBUF */
  78074. if (length < max_length) {
  78075. 801fc04: 89ba ldrh r2, [r7, #12]
  78076. 801fc06: 897b ldrh r3, [r7, #10]
  78077. 801fc08: 429a cmp r2, r3
  78078. 801fc0a: d221 bcs.n 801fc50 <tcp_pbuf_prealloc+0x88>
  78079. *
  78080. * Did the user set TCP_WRITE_FLAG_MORE?
  78081. *
  78082. * Will the Nagle algorithm defer transmission of this segment?
  78083. */
  78084. if ((apiflags & TCP_WRITE_FLAG_MORE) ||
  78085. 801fc0c: f897 3024 ldrb.w r3, [r7, #36] @ 0x24
  78086. 801fc10: f003 0302 and.w r3, r3, #2
  78087. 801fc14: 2b00 cmp r3, #0
  78088. 801fc16: d111 bne.n 801fc3c <tcp_pbuf_prealloc+0x74>
  78089. (!(pcb->flags & TF_NODELAY) &&
  78090. 801fc18: 6a3b ldr r3, [r7, #32]
  78091. 801fc1a: 8b5b ldrh r3, [r3, #26]
  78092. 801fc1c: f003 0340 and.w r3, r3, #64 @ 0x40
  78093. if ((apiflags & TCP_WRITE_FLAG_MORE) ||
  78094. 801fc20: 2b00 cmp r3, #0
  78095. 801fc22: d115 bne.n 801fc50 <tcp_pbuf_prealloc+0x88>
  78096. (!(pcb->flags & TF_NODELAY) &&
  78097. 801fc24: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  78098. 801fc28: 2b00 cmp r3, #0
  78099. 801fc2a: d007 beq.n 801fc3c <tcp_pbuf_prealloc+0x74>
  78100. (!first_seg ||
  78101. pcb->unsent != NULL ||
  78102. 801fc2c: 6a3b ldr r3, [r7, #32]
  78103. 801fc2e: 6edb ldr r3, [r3, #108] @ 0x6c
  78104. (!first_seg ||
  78105. 801fc30: 2b00 cmp r3, #0
  78106. 801fc32: d103 bne.n 801fc3c <tcp_pbuf_prealloc+0x74>
  78107. pcb->unacked != NULL))) {
  78108. 801fc34: 6a3b ldr r3, [r7, #32]
  78109. 801fc36: 6f1b ldr r3, [r3, #112] @ 0x70
  78110. pcb->unsent != NULL ||
  78111. 801fc38: 2b00 cmp r3, #0
  78112. 801fc3a: d009 beq.n 801fc50 <tcp_pbuf_prealloc+0x88>
  78113. alloc = LWIP_MIN(max_length, LWIP_MEM_ALIGN_SIZE(TCP_OVERSIZE_CALC_LENGTH(length)));
  78114. 801fc3c: 89bb ldrh r3, [r7, #12]
  78115. 801fc3e: f203 53b7 addw r3, r3, #1463 @ 0x5b7
  78116. 801fc42: f023 0203 bic.w r2, r3, #3
  78117. 801fc46: 897b ldrh r3, [r7, #10]
  78118. 801fc48: 4293 cmp r3, r2
  78119. 801fc4a: bf28 it cs
  78120. 801fc4c: 4613 movcs r3, r2
  78121. 801fc4e: 82fb strh r3, [r7, #22]
  78122. }
  78123. }
  78124. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  78125. p = pbuf_alloc(layer, alloc, PBUF_RAM);
  78126. 801fc50: 8af9 ldrh r1, [r7, #22]
  78127. 801fc52: 7bfb ldrb r3, [r7, #15]
  78128. 801fc54: f44f 7220 mov.w r2, #640 @ 0x280
  78129. 801fc58: 4618 mov r0, r3
  78130. 801fc5a: f7fa fff1 bl 801ac40 <pbuf_alloc>
  78131. 801fc5e: 6138 str r0, [r7, #16]
  78132. if (p == NULL) {
  78133. 801fc60: 693b ldr r3, [r7, #16]
  78134. 801fc62: 2b00 cmp r3, #0
  78135. 801fc64: d101 bne.n 801fc6a <tcp_pbuf_prealloc+0xa2>
  78136. return NULL;
  78137. 801fc66: 2300 movs r3, #0
  78138. 801fc68: e019 b.n 801fc9e <tcp_pbuf_prealloc+0xd6>
  78139. }
  78140. LWIP_ASSERT("need unchained pbuf", p->next == NULL);
  78141. 801fc6a: 693b ldr r3, [r7, #16]
  78142. 801fc6c: 681b ldr r3, [r3, #0]
  78143. 801fc6e: 2b00 cmp r3, #0
  78144. 801fc70: d006 beq.n 801fc80 <tcp_pbuf_prealloc+0xb8>
  78145. 801fc72: 4b0d ldr r3, [pc, #52] @ (801fca8 <tcp_pbuf_prealloc+0xe0>)
  78146. 801fc74: f240 120b movw r2, #267 @ 0x10b
  78147. 801fc78: 490f ldr r1, [pc, #60] @ (801fcb8 <tcp_pbuf_prealloc+0xf0>)
  78148. 801fc7a: 480d ldr r0, [pc, #52] @ (801fcb0 <tcp_pbuf_prealloc+0xe8>)
  78149. 801fc7c: f00a fd6e bl 802a75c <iprintf>
  78150. *oversize = p->len - length;
  78151. 801fc80: 693b ldr r3, [r7, #16]
  78152. 801fc82: 895a ldrh r2, [r3, #10]
  78153. 801fc84: 89bb ldrh r3, [r7, #12]
  78154. 801fc86: 1ad3 subs r3, r2, r3
  78155. 801fc88: b29a uxth r2, r3
  78156. 801fc8a: 687b ldr r3, [r7, #4]
  78157. 801fc8c: 801a strh r2, [r3, #0]
  78158. /* trim p->len to the currently used size */
  78159. p->len = p->tot_len = length;
  78160. 801fc8e: 693b ldr r3, [r7, #16]
  78161. 801fc90: 89ba ldrh r2, [r7, #12]
  78162. 801fc92: 811a strh r2, [r3, #8]
  78163. 801fc94: 693b ldr r3, [r7, #16]
  78164. 801fc96: 891a ldrh r2, [r3, #8]
  78165. 801fc98: 693b ldr r3, [r7, #16]
  78166. 801fc9a: 815a strh r2, [r3, #10]
  78167. return p;
  78168. 801fc9c: 693b ldr r3, [r7, #16]
  78169. }
  78170. 801fc9e: 4618 mov r0, r3
  78171. 801fca0: 3718 adds r7, #24
  78172. 801fca2: 46bd mov sp, r7
  78173. 801fca4: bd80 pop {r7, pc}
  78174. 801fca6: bf00 nop
  78175. 801fca8: 08030074 .word 0x08030074
  78176. 801fcac: 0803012c .word 0x0803012c
  78177. 801fcb0: 080300c8 .word 0x080300c8
  78178. 801fcb4: 08030150 .word 0x08030150
  78179. 801fcb8: 08030170 .word 0x08030170
  78180. 0801fcbc <tcp_write_checks>:
  78181. * @param len length of data to send (checked agains snd_buf)
  78182. * @return ERR_OK if tcp_write is allowed to proceed, another err_t otherwise
  78183. */
  78184. static err_t
  78185. tcp_write_checks(struct tcp_pcb *pcb, u16_t len)
  78186. {
  78187. 801fcbc: b580 push {r7, lr}
  78188. 801fcbe: b082 sub sp, #8
  78189. 801fcc0: af00 add r7, sp, #0
  78190. 801fcc2: 6078 str r0, [r7, #4]
  78191. 801fcc4: 460b mov r3, r1
  78192. 801fcc6: 807b strh r3, [r7, #2]
  78193. LWIP_ASSERT("tcp_write_checks: invalid pcb", pcb != NULL);
  78194. 801fcc8: 687b ldr r3, [r7, #4]
  78195. 801fcca: 2b00 cmp r3, #0
  78196. 801fccc: d106 bne.n 801fcdc <tcp_write_checks+0x20>
  78197. 801fcce: 4b33 ldr r3, [pc, #204] @ (801fd9c <tcp_write_checks+0xe0>)
  78198. 801fcd0: f240 1233 movw r2, #307 @ 0x133
  78199. 801fcd4: 4932 ldr r1, [pc, #200] @ (801fda0 <tcp_write_checks+0xe4>)
  78200. 801fcd6: 4833 ldr r0, [pc, #204] @ (801fda4 <tcp_write_checks+0xe8>)
  78201. 801fcd8: f00a fd40 bl 802a75c <iprintf>
  78202. /* connection is in invalid state for data transmission? */
  78203. if ((pcb->state != ESTABLISHED) &&
  78204. 801fcdc: 687b ldr r3, [r7, #4]
  78205. 801fcde: 7d1b ldrb r3, [r3, #20]
  78206. 801fce0: 2b04 cmp r3, #4
  78207. 801fce2: d00e beq.n 801fd02 <tcp_write_checks+0x46>
  78208. (pcb->state != CLOSE_WAIT) &&
  78209. 801fce4: 687b ldr r3, [r7, #4]
  78210. 801fce6: 7d1b ldrb r3, [r3, #20]
  78211. if ((pcb->state != ESTABLISHED) &&
  78212. 801fce8: 2b07 cmp r3, #7
  78213. 801fcea: d00a beq.n 801fd02 <tcp_write_checks+0x46>
  78214. (pcb->state != SYN_SENT) &&
  78215. 801fcec: 687b ldr r3, [r7, #4]
  78216. 801fcee: 7d1b ldrb r3, [r3, #20]
  78217. (pcb->state != CLOSE_WAIT) &&
  78218. 801fcf0: 2b02 cmp r3, #2
  78219. 801fcf2: d006 beq.n 801fd02 <tcp_write_checks+0x46>
  78220. (pcb->state != SYN_RCVD)) {
  78221. 801fcf4: 687b ldr r3, [r7, #4]
  78222. 801fcf6: 7d1b ldrb r3, [r3, #20]
  78223. (pcb->state != SYN_SENT) &&
  78224. 801fcf8: 2b03 cmp r3, #3
  78225. 801fcfa: d002 beq.n 801fd02 <tcp_write_checks+0x46>
  78226. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_STATE | LWIP_DBG_LEVEL_SEVERE, ("tcp_write() called in invalid state\n"));
  78227. return ERR_CONN;
  78228. 801fcfc: f06f 030a mvn.w r3, #10
  78229. 801fd00: e048 b.n 801fd94 <tcp_write_checks+0xd8>
  78230. } else if (len == 0) {
  78231. 801fd02: 887b ldrh r3, [r7, #2]
  78232. 801fd04: 2b00 cmp r3, #0
  78233. 801fd06: d101 bne.n 801fd0c <tcp_write_checks+0x50>
  78234. return ERR_OK;
  78235. 801fd08: 2300 movs r3, #0
  78236. 801fd0a: e043 b.n 801fd94 <tcp_write_checks+0xd8>
  78237. }
  78238. /* fail on too much data */
  78239. if (len > pcb->snd_buf) {
  78240. 801fd0c: 687b ldr r3, [r7, #4]
  78241. 801fd0e: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  78242. 801fd12: 887a ldrh r2, [r7, #2]
  78243. 801fd14: 429a cmp r2, r3
  78244. 801fd16: d909 bls.n 801fd2c <tcp_write_checks+0x70>
  78245. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too much data (len=%"U16_F" > snd_buf=%"TCPWNDSIZE_F")\n",
  78246. len, pcb->snd_buf));
  78247. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  78248. 801fd18: 687b ldr r3, [r7, #4]
  78249. 801fd1a: 8b5b ldrh r3, [r3, #26]
  78250. 801fd1c: f043 0380 orr.w r3, r3, #128 @ 0x80
  78251. 801fd20: b29a uxth r2, r3
  78252. 801fd22: 687b ldr r3, [r7, #4]
  78253. 801fd24: 835a strh r2, [r3, #26]
  78254. return ERR_MEM;
  78255. 801fd26: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  78256. 801fd2a: e033 b.n 801fd94 <tcp_write_checks+0xd8>
  78257. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: queuelen: %"TCPWNDSIZE_F"\n", (tcpwnd_size_t)pcb->snd_queuelen));
  78258. /* If total number of pbufs on the unsent/unacked queues exceeds the
  78259. * configured maximum, return an error */
  78260. /* check for configured max queuelen and possible overflow */
  78261. if (pcb->snd_queuelen >= LWIP_MIN(TCP_SND_QUEUELEN, (TCP_SNDQUEUELEN_OVERFLOW + 1))) {
  78262. 801fd2c: 687b ldr r3, [r7, #4]
  78263. 801fd2e: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  78264. 801fd32: 2b0f cmp r3, #15
  78265. 801fd34: d909 bls.n 801fd4a <tcp_write_checks+0x8e>
  78266. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too long queue %"U16_F" (max %"U16_F")\n",
  78267. pcb->snd_queuelen, (u16_t)TCP_SND_QUEUELEN));
  78268. TCP_STATS_INC(tcp.memerr);
  78269. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  78270. 801fd36: 687b ldr r3, [r7, #4]
  78271. 801fd38: 8b5b ldrh r3, [r3, #26]
  78272. 801fd3a: f043 0380 orr.w r3, r3, #128 @ 0x80
  78273. 801fd3e: b29a uxth r2, r3
  78274. 801fd40: 687b ldr r3, [r7, #4]
  78275. 801fd42: 835a strh r2, [r3, #26]
  78276. return ERR_MEM;
  78277. 801fd44: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  78278. 801fd48: e024 b.n 801fd94 <tcp_write_checks+0xd8>
  78279. }
  78280. if (pcb->snd_queuelen != 0) {
  78281. 801fd4a: 687b ldr r3, [r7, #4]
  78282. 801fd4c: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  78283. 801fd50: 2b00 cmp r3, #0
  78284. 801fd52: d00f beq.n 801fd74 <tcp_write_checks+0xb8>
  78285. LWIP_ASSERT("tcp_write: pbufs on queue => at least one queue non-empty",
  78286. 801fd54: 687b ldr r3, [r7, #4]
  78287. 801fd56: 6f1b ldr r3, [r3, #112] @ 0x70
  78288. 801fd58: 2b00 cmp r3, #0
  78289. 801fd5a: d11a bne.n 801fd92 <tcp_write_checks+0xd6>
  78290. 801fd5c: 687b ldr r3, [r7, #4]
  78291. 801fd5e: 6edb ldr r3, [r3, #108] @ 0x6c
  78292. 801fd60: 2b00 cmp r3, #0
  78293. 801fd62: d116 bne.n 801fd92 <tcp_write_checks+0xd6>
  78294. 801fd64: 4b0d ldr r3, [pc, #52] @ (801fd9c <tcp_write_checks+0xe0>)
  78295. 801fd66: f240 1255 movw r2, #341 @ 0x155
  78296. 801fd6a: 490f ldr r1, [pc, #60] @ (801fda8 <tcp_write_checks+0xec>)
  78297. 801fd6c: 480d ldr r0, [pc, #52] @ (801fda4 <tcp_write_checks+0xe8>)
  78298. 801fd6e: f00a fcf5 bl 802a75c <iprintf>
  78299. 801fd72: e00e b.n 801fd92 <tcp_write_checks+0xd6>
  78300. pcb->unacked != NULL || pcb->unsent != NULL);
  78301. } else {
  78302. LWIP_ASSERT("tcp_write: no pbufs on queue => both queues empty",
  78303. 801fd74: 687b ldr r3, [r7, #4]
  78304. 801fd76: 6f1b ldr r3, [r3, #112] @ 0x70
  78305. 801fd78: 2b00 cmp r3, #0
  78306. 801fd7a: d103 bne.n 801fd84 <tcp_write_checks+0xc8>
  78307. 801fd7c: 687b ldr r3, [r7, #4]
  78308. 801fd7e: 6edb ldr r3, [r3, #108] @ 0x6c
  78309. 801fd80: 2b00 cmp r3, #0
  78310. 801fd82: d006 beq.n 801fd92 <tcp_write_checks+0xd6>
  78311. 801fd84: 4b05 ldr r3, [pc, #20] @ (801fd9c <tcp_write_checks+0xe0>)
  78312. 801fd86: f44f 72ac mov.w r2, #344 @ 0x158
  78313. 801fd8a: 4908 ldr r1, [pc, #32] @ (801fdac <tcp_write_checks+0xf0>)
  78314. 801fd8c: 4805 ldr r0, [pc, #20] @ (801fda4 <tcp_write_checks+0xe8>)
  78315. 801fd8e: f00a fce5 bl 802a75c <iprintf>
  78316. pcb->unacked == NULL && pcb->unsent == NULL);
  78317. }
  78318. return ERR_OK;
  78319. 801fd92: 2300 movs r3, #0
  78320. }
  78321. 801fd94: 4618 mov r0, r3
  78322. 801fd96: 3708 adds r7, #8
  78323. 801fd98: 46bd mov sp, r7
  78324. 801fd9a: bd80 pop {r7, pc}
  78325. 801fd9c: 08030074 .word 0x08030074
  78326. 801fda0: 08030184 .word 0x08030184
  78327. 801fda4: 080300c8 .word 0x080300c8
  78328. 801fda8: 080301a4 .word 0x080301a4
  78329. 801fdac: 080301e0 .word 0x080301e0
  78330. 0801fdb0 <tcp_write>:
  78331. * - TCP_WRITE_FLAG_MORE (0x02) for TCP connection, PSH flag will not be set on last segment sent,
  78332. * @return ERR_OK if enqueued, another err_t on error
  78333. */
  78334. err_t
  78335. tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
  78336. {
  78337. 801fdb0: b590 push {r4, r7, lr}
  78338. 801fdb2: b09d sub sp, #116 @ 0x74
  78339. 801fdb4: af04 add r7, sp, #16
  78340. 801fdb6: 60f8 str r0, [r7, #12]
  78341. 801fdb8: 60b9 str r1, [r7, #8]
  78342. 801fdba: 4611 mov r1, r2
  78343. 801fdbc: 461a mov r2, r3
  78344. 801fdbe: 460b mov r3, r1
  78345. 801fdc0: 80fb strh r3, [r7, #6]
  78346. 801fdc2: 4613 mov r3, r2
  78347. 801fdc4: 717b strb r3, [r7, #5]
  78348. struct pbuf *concat_p = NULL;
  78349. 801fdc6: 2300 movs r3, #0
  78350. 801fdc8: 63fb str r3, [r7, #60] @ 0x3c
  78351. struct tcp_seg *last_unsent = NULL, *seg = NULL, *prev_seg = NULL, *queue = NULL;
  78352. 801fdca: 2300 movs r3, #0
  78353. 801fdcc: 643b str r3, [r7, #64] @ 0x40
  78354. 801fdce: 2300 movs r3, #0
  78355. 801fdd0: 657b str r3, [r7, #84] @ 0x54
  78356. 801fdd2: 2300 movs r3, #0
  78357. 801fdd4: 653b str r3, [r7, #80] @ 0x50
  78358. 801fdd6: 2300 movs r3, #0
  78359. 801fdd8: 64fb str r3, [r7, #76] @ 0x4c
  78360. u16_t pos = 0; /* position in 'arg' data */
  78361. 801fdda: 2300 movs r3, #0
  78362. 801fddc: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  78363. u16_t queuelen;
  78364. u8_t optlen;
  78365. u8_t optflags = 0;
  78366. 801fde0: 2300 movs r3, #0
  78367. 801fde2: f887 302b strb.w r3, [r7, #43] @ 0x2b
  78368. #if TCP_OVERSIZE
  78369. u16_t oversize = 0;
  78370. 801fde6: 2300 movs r3, #0
  78371. 801fde8: 82fb strh r3, [r7, #22]
  78372. u16_t oversize_used = 0;
  78373. 801fdea: 2300 movs r3, #0
  78374. 801fdec: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  78375. #if TCP_OVERSIZE_DBGCHECK
  78376. u16_t oversize_add = 0;
  78377. 801fdf0: 2300 movs r3, #0
  78378. 801fdf2: f8a7 305a strh.w r3, [r7, #90] @ 0x5a
  78379. #endif /* TCP_OVERSIZE_DBGCHECK*/
  78380. #endif /* TCP_OVERSIZE */
  78381. u16_t extendlen = 0;
  78382. 801fdf6: 2300 movs r3, #0
  78383. 801fdf8: f8a7 305e strh.w r3, [r7, #94] @ 0x5e
  78384. u16_t concat_chksummed = 0;
  78385. #endif /* TCP_CHECKSUM_ON_COPY */
  78386. err_t err;
  78387. u16_t mss_local;
  78388. LWIP_ERROR("tcp_write: invalid pcb", pcb != NULL, return ERR_ARG);
  78389. 801fdfc: 68fb ldr r3, [r7, #12]
  78390. 801fdfe: 2b00 cmp r3, #0
  78391. 801fe00: d109 bne.n 801fe16 <tcp_write+0x66>
  78392. 801fe02: 4b9d ldr r3, [pc, #628] @ (8020078 <tcp_write+0x2c8>)
  78393. 801fe04: f44f 72cf mov.w r2, #414 @ 0x19e
  78394. 801fe08: 499c ldr r1, [pc, #624] @ (802007c <tcp_write+0x2cc>)
  78395. 801fe0a: 489d ldr r0, [pc, #628] @ (8020080 <tcp_write+0x2d0>)
  78396. 801fe0c: f00a fca6 bl 802a75c <iprintf>
  78397. 801fe10: f06f 030f mvn.w r3, #15
  78398. 801fe14: e37b b.n 802050e <tcp_write+0x75e>
  78399. /* don't allocate segments bigger than half the maximum window we ever received */
  78400. mss_local = LWIP_MIN(pcb->mss, TCPWND_MIN16(pcb->snd_wnd_max / 2));
  78401. 801fe16: 68fb ldr r3, [r7, #12]
  78402. 801fe18: f8b3 3062 ldrh.w r3, [r3, #98] @ 0x62
  78403. 801fe1c: 085b lsrs r3, r3, #1
  78404. 801fe1e: b29a uxth r2, r3
  78405. 801fe20: 68fb ldr r3, [r7, #12]
  78406. 801fe22: 8e5b ldrh r3, [r3, #50] @ 0x32
  78407. 801fe24: 4293 cmp r3, r2
  78408. 801fe26: bf28 it cs
  78409. 801fe28: 4613 movcs r3, r2
  78410. 801fe2a: 853b strh r3, [r7, #40] @ 0x28
  78411. mss_local = mss_local ? mss_local : pcb->mss;
  78412. 801fe2c: 8d3b ldrh r3, [r7, #40] @ 0x28
  78413. 801fe2e: 2b00 cmp r3, #0
  78414. 801fe30: d102 bne.n 801fe38 <tcp_write+0x88>
  78415. 801fe32: 68fb ldr r3, [r7, #12]
  78416. 801fe34: 8e5b ldrh r3, [r3, #50] @ 0x32
  78417. 801fe36: e000 b.n 801fe3a <tcp_write+0x8a>
  78418. 801fe38: 8d3b ldrh r3, [r7, #40] @ 0x28
  78419. 801fe3a: 853b strh r3, [r7, #40] @ 0x28
  78420. LWIP_ASSERT_CORE_LOCKED();
  78421. 801fe3c: f7f1 f860 bl 8010f00 <sys_check_core_locking>
  78422. apiflags |= TCP_WRITE_FLAG_COPY;
  78423. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  78424. LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_write(pcb=%p, data=%p, len=%"U16_F", apiflags=%"U16_F")\n",
  78425. (void *)pcb, arg, len, (u16_t)apiflags));
  78426. LWIP_ERROR("tcp_write: arg == NULL (programmer violates API)",
  78427. 801fe40: 68bb ldr r3, [r7, #8]
  78428. 801fe42: 2b00 cmp r3, #0
  78429. 801fe44: d109 bne.n 801fe5a <tcp_write+0xaa>
  78430. 801fe46: 4b8c ldr r3, [pc, #560] @ (8020078 <tcp_write+0x2c8>)
  78431. 801fe48: f240 12ad movw r2, #429 @ 0x1ad
  78432. 801fe4c: 498d ldr r1, [pc, #564] @ (8020084 <tcp_write+0x2d4>)
  78433. 801fe4e: 488c ldr r0, [pc, #560] @ (8020080 <tcp_write+0x2d0>)
  78434. 801fe50: f00a fc84 bl 802a75c <iprintf>
  78435. 801fe54: f06f 030f mvn.w r3, #15
  78436. 801fe58: e359 b.n 802050e <tcp_write+0x75e>
  78437. arg != NULL, return ERR_ARG;);
  78438. err = tcp_write_checks(pcb, len);
  78439. 801fe5a: 88fb ldrh r3, [r7, #6]
  78440. 801fe5c: 4619 mov r1, r3
  78441. 801fe5e: 68f8 ldr r0, [r7, #12]
  78442. 801fe60: f7ff ff2c bl 801fcbc <tcp_write_checks>
  78443. 801fe64: 4603 mov r3, r0
  78444. 801fe66: f887 3027 strb.w r3, [r7, #39] @ 0x27
  78445. if (err != ERR_OK) {
  78446. 801fe6a: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  78447. 801fe6e: 2b00 cmp r3, #0
  78448. 801fe70: d002 beq.n 801fe78 <tcp_write+0xc8>
  78449. return err;
  78450. 801fe72: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  78451. 801fe76: e34a b.n 802050e <tcp_write+0x75e>
  78452. }
  78453. queuelen = pcb->snd_queuelen;
  78454. 801fe78: 68fb ldr r3, [r7, #12]
  78455. 801fe7a: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  78456. 801fe7e: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  78457. /* ensure that segments can hold at least one data byte... */
  78458. mss_local = LWIP_MAX(mss_local, LWIP_TCP_OPT_LEN_TS + 1);
  78459. } else
  78460. #endif /* LWIP_TCP_TIMESTAMPS */
  78461. {
  78462. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  78463. 801fe82: 2300 movs r3, #0
  78464. 801fe84: f887 3026 strb.w r3, [r7, #38] @ 0x26
  78465. *
  78466. * pos records progress as data is segmented.
  78467. */
  78468. /* Find the tail of the unsent queue. */
  78469. if (pcb->unsent != NULL) {
  78470. 801fe88: 68fb ldr r3, [r7, #12]
  78471. 801fe8a: 6edb ldr r3, [r3, #108] @ 0x6c
  78472. 801fe8c: 2b00 cmp r3, #0
  78473. 801fe8e: f000 8127 beq.w 80200e0 <tcp_write+0x330>
  78474. u16_t space;
  78475. u16_t unsent_optlen;
  78476. /* @todo: this could be sped up by keeping last_unsent in the pcb */
  78477. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  78478. 801fe92: 68fb ldr r3, [r7, #12]
  78479. 801fe94: 6edb ldr r3, [r3, #108] @ 0x6c
  78480. 801fe96: 643b str r3, [r7, #64] @ 0x40
  78481. 801fe98: e002 b.n 801fea0 <tcp_write+0xf0>
  78482. last_unsent = last_unsent->next);
  78483. 801fe9a: 6c3b ldr r3, [r7, #64] @ 0x40
  78484. 801fe9c: 681b ldr r3, [r3, #0]
  78485. 801fe9e: 643b str r3, [r7, #64] @ 0x40
  78486. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  78487. 801fea0: 6c3b ldr r3, [r7, #64] @ 0x40
  78488. 801fea2: 681b ldr r3, [r3, #0]
  78489. 801fea4: 2b00 cmp r3, #0
  78490. 801fea6: d1f8 bne.n 801fe9a <tcp_write+0xea>
  78491. /* Usable space at the end of the last unsent segment */
  78492. unsent_optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(last_unsent->flags, pcb);
  78493. 801fea8: 6c3b ldr r3, [r7, #64] @ 0x40
  78494. 801feaa: 7b1b ldrb r3, [r3, #12]
  78495. 801feac: 009b lsls r3, r3, #2
  78496. 801feae: b29b uxth r3, r3
  78497. 801feb0: f003 0304 and.w r3, r3, #4
  78498. 801feb4: 84bb strh r3, [r7, #36] @ 0x24
  78499. LWIP_ASSERT("mss_local is too small", mss_local >= last_unsent->len + unsent_optlen);
  78500. 801feb6: 8d3a ldrh r2, [r7, #40] @ 0x28
  78501. 801feb8: 6c3b ldr r3, [r7, #64] @ 0x40
  78502. 801feba: 891b ldrh r3, [r3, #8]
  78503. 801febc: 4619 mov r1, r3
  78504. 801febe: 8cbb ldrh r3, [r7, #36] @ 0x24
  78505. 801fec0: 440b add r3, r1
  78506. 801fec2: 429a cmp r2, r3
  78507. 801fec4: da06 bge.n 801fed4 <tcp_write+0x124>
  78508. 801fec6: 4b6c ldr r3, [pc, #432] @ (8020078 <tcp_write+0x2c8>)
  78509. 801fec8: f44f 72f3 mov.w r2, #486 @ 0x1e6
  78510. 801fecc: 496e ldr r1, [pc, #440] @ (8020088 <tcp_write+0x2d8>)
  78511. 801fece: 486c ldr r0, [pc, #432] @ (8020080 <tcp_write+0x2d0>)
  78512. 801fed0: f00a fc44 bl 802a75c <iprintf>
  78513. space = mss_local - (last_unsent->len + unsent_optlen);
  78514. 801fed4: 6c3b ldr r3, [r7, #64] @ 0x40
  78515. 801fed6: 891a ldrh r2, [r3, #8]
  78516. 801fed8: 8cbb ldrh r3, [r7, #36] @ 0x24
  78517. 801feda: 4413 add r3, r2
  78518. 801fedc: b29b uxth r3, r3
  78519. 801fede: 8d3a ldrh r2, [r7, #40] @ 0x28
  78520. 801fee0: 1ad3 subs r3, r2, r3
  78521. 801fee2: f8a7 305c strh.w r3, [r7, #92] @ 0x5c
  78522. * function.
  78523. */
  78524. #if TCP_OVERSIZE
  78525. #if TCP_OVERSIZE_DBGCHECK
  78526. /* check that pcb->unsent_oversize matches last_unsent->oversize_left */
  78527. LWIP_ASSERT("unsent_oversize mismatch (pcb vs. last_unsent)",
  78528. 801fee6: 68fb ldr r3, [r7, #12]
  78529. 801fee8: f8b3 2068 ldrh.w r2, [r3, #104] @ 0x68
  78530. 801feec: 6c3b ldr r3, [r7, #64] @ 0x40
  78531. 801feee: 895b ldrh r3, [r3, #10]
  78532. 801fef0: 429a cmp r2, r3
  78533. 801fef2: d006 beq.n 801ff02 <tcp_write+0x152>
  78534. 801fef4: 4b60 ldr r3, [pc, #384] @ (8020078 <tcp_write+0x2c8>)
  78535. 801fef6: f240 12f3 movw r2, #499 @ 0x1f3
  78536. 801fefa: 4964 ldr r1, [pc, #400] @ (802008c <tcp_write+0x2dc>)
  78537. 801fefc: 4860 ldr r0, [pc, #384] @ (8020080 <tcp_write+0x2d0>)
  78538. 801fefe: f00a fc2d bl 802a75c <iprintf>
  78539. pcb->unsent_oversize == last_unsent->oversize_left);
  78540. #endif /* TCP_OVERSIZE_DBGCHECK */
  78541. oversize = pcb->unsent_oversize;
  78542. 801ff02: 68fb ldr r3, [r7, #12]
  78543. 801ff04: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  78544. 801ff08: 82fb strh r3, [r7, #22]
  78545. if (oversize > 0) {
  78546. 801ff0a: 8afb ldrh r3, [r7, #22]
  78547. 801ff0c: 2b00 cmp r3, #0
  78548. 801ff0e: d02e beq.n 801ff6e <tcp_write+0x1be>
  78549. LWIP_ASSERT("inconsistent oversize vs. space", oversize <= space);
  78550. 801ff10: 8afb ldrh r3, [r7, #22]
  78551. 801ff12: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  78552. 801ff16: 429a cmp r2, r3
  78553. 801ff18: d206 bcs.n 801ff28 <tcp_write+0x178>
  78554. 801ff1a: 4b57 ldr r3, [pc, #348] @ (8020078 <tcp_write+0x2c8>)
  78555. 801ff1c: f44f 72fc mov.w r2, #504 @ 0x1f8
  78556. 801ff20: 495b ldr r1, [pc, #364] @ (8020090 <tcp_write+0x2e0>)
  78557. 801ff22: 4857 ldr r0, [pc, #348] @ (8020080 <tcp_write+0x2d0>)
  78558. 801ff24: f00a fc1a bl 802a75c <iprintf>
  78559. seg = last_unsent;
  78560. 801ff28: 6c3b ldr r3, [r7, #64] @ 0x40
  78561. 801ff2a: 657b str r3, [r7, #84] @ 0x54
  78562. oversize_used = LWIP_MIN(space, LWIP_MIN(oversize, len));
  78563. 801ff2c: 8afb ldrh r3, [r7, #22]
  78564. 801ff2e: 88fa ldrh r2, [r7, #6]
  78565. 801ff30: 4293 cmp r3, r2
  78566. 801ff32: bf28 it cs
  78567. 801ff34: 4613 movcs r3, r2
  78568. 801ff36: b29b uxth r3, r3
  78569. 801ff38: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  78570. 801ff3c: 4293 cmp r3, r2
  78571. 801ff3e: bf28 it cs
  78572. 801ff40: 4613 movcs r3, r2
  78573. 801ff42: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  78574. pos += oversize_used;
  78575. 801ff46: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  78576. 801ff4a: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  78577. 801ff4e: 4413 add r3, r2
  78578. 801ff50: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  78579. oversize -= oversize_used;
  78580. 801ff54: 8afa ldrh r2, [r7, #22]
  78581. 801ff56: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  78582. 801ff5a: 1ad3 subs r3, r2, r3
  78583. 801ff5c: b29b uxth r3, r3
  78584. 801ff5e: 82fb strh r3, [r7, #22]
  78585. space -= oversize_used;
  78586. 801ff60: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  78587. 801ff64: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  78588. 801ff68: 1ad3 subs r3, r2, r3
  78589. 801ff6a: f8a7 305c strh.w r3, [r7, #92] @ 0x5c
  78590. }
  78591. /* now we are either finished or oversize is zero */
  78592. LWIP_ASSERT("inconsistent oversize vs. len", (oversize == 0) || (pos == len));
  78593. 801ff6e: 8afb ldrh r3, [r7, #22]
  78594. 801ff70: 2b00 cmp r3, #0
  78595. 801ff72: d00b beq.n 801ff8c <tcp_write+0x1dc>
  78596. 801ff74: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  78597. 801ff78: 88fb ldrh r3, [r7, #6]
  78598. 801ff7a: 429a cmp r2, r3
  78599. 801ff7c: d006 beq.n 801ff8c <tcp_write+0x1dc>
  78600. 801ff7e: 4b3e ldr r3, [pc, #248] @ (8020078 <tcp_write+0x2c8>)
  78601. 801ff80: f44f 7200 mov.w r2, #512 @ 0x200
  78602. 801ff84: 4943 ldr r1, [pc, #268] @ (8020094 <tcp_write+0x2e4>)
  78603. 801ff86: 483e ldr r0, [pc, #248] @ (8020080 <tcp_write+0x2d0>)
  78604. 801ff88: f00a fbe8 bl 802a75c <iprintf>
  78605. *
  78606. * This phase is skipped for LWIP_NETIF_TX_SINGLE_PBUF as we could only execute
  78607. * it after rexmit puts a segment from unacked to unsent and at this point,
  78608. * oversize info is lost.
  78609. */
  78610. if ((pos < len) && (space > 0) && (last_unsent->len > 0)) {
  78611. 801ff8c: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  78612. 801ff90: 88fb ldrh r3, [r7, #6]
  78613. 801ff92: 429a cmp r2, r3
  78614. 801ff94: f080 8172 bcs.w 802027c <tcp_write+0x4cc>
  78615. 801ff98: f8b7 305c ldrh.w r3, [r7, #92] @ 0x5c
  78616. 801ff9c: 2b00 cmp r3, #0
  78617. 801ff9e: f000 816d beq.w 802027c <tcp_write+0x4cc>
  78618. 801ffa2: 6c3b ldr r3, [r7, #64] @ 0x40
  78619. 801ffa4: 891b ldrh r3, [r3, #8]
  78620. 801ffa6: 2b00 cmp r3, #0
  78621. 801ffa8: f000 8168 beq.w 802027c <tcp_write+0x4cc>
  78622. u16_t seglen = LWIP_MIN(space, len - pos);
  78623. 801ffac: 88fa ldrh r2, [r7, #6]
  78624. 801ffae: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  78625. 801ffb2: 1ad2 subs r2, r2, r3
  78626. 801ffb4: f8b7 305c ldrh.w r3, [r7, #92] @ 0x5c
  78627. 801ffb8: 4293 cmp r3, r2
  78628. 801ffba: bfa8 it ge
  78629. 801ffbc: 4613 movge r3, r2
  78630. 801ffbe: 847b strh r3, [r7, #34] @ 0x22
  78631. seg = last_unsent;
  78632. 801ffc0: 6c3b ldr r3, [r7, #64] @ 0x40
  78633. 801ffc2: 657b str r3, [r7, #84] @ 0x54
  78634. /* Create a pbuf with a copy or reference to seglen bytes. We
  78635. * can use PBUF_RAW here since the data appears in the middle of
  78636. * a segment. A header will never be prepended. */
  78637. if (apiflags & TCP_WRITE_FLAG_COPY) {
  78638. 801ffc4: 797b ldrb r3, [r7, #5]
  78639. 801ffc6: f003 0301 and.w r3, r3, #1
  78640. 801ffca: 2b00 cmp r3, #0
  78641. 801ffcc: d02b beq.n 8020026 <tcp_write+0x276>
  78642. /* Data is copied */
  78643. if ((concat_p = tcp_pbuf_prealloc(PBUF_RAW, seglen, space, &oversize, pcb, apiflags, 1)) == NULL) {
  78644. 801ffce: f107 0016 add.w r0, r7, #22
  78645. 801ffd2: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  78646. 801ffd6: 8c79 ldrh r1, [r7, #34] @ 0x22
  78647. 801ffd8: 2301 movs r3, #1
  78648. 801ffda: 9302 str r3, [sp, #8]
  78649. 801ffdc: 797b ldrb r3, [r7, #5]
  78650. 801ffde: 9301 str r3, [sp, #4]
  78651. 801ffe0: 68fb ldr r3, [r7, #12]
  78652. 801ffe2: 9300 str r3, [sp, #0]
  78653. 801ffe4: 4603 mov r3, r0
  78654. 801ffe6: 2000 movs r0, #0
  78655. 801ffe8: f7ff fdee bl 801fbc8 <tcp_pbuf_prealloc>
  78656. 801ffec: 63f8 str r0, [r7, #60] @ 0x3c
  78657. 801ffee: 6bfb ldr r3, [r7, #60] @ 0x3c
  78658. 801fff0: 2b00 cmp r3, #0
  78659. 801fff2: f000 825a beq.w 80204aa <tcp_write+0x6fa>
  78660. ("tcp_write : could not allocate memory for pbuf copy size %"U16_F"\n",
  78661. seglen));
  78662. goto memerr;
  78663. }
  78664. #if TCP_OVERSIZE_DBGCHECK
  78665. oversize_add = oversize;
  78666. 801fff6: 8afb ldrh r3, [r7, #22]
  78667. 801fff8: f8a7 305a strh.w r3, [r7, #90] @ 0x5a
  78668. #endif /* TCP_OVERSIZE_DBGCHECK */
  78669. TCP_DATA_COPY2(concat_p->payload, (const u8_t *)arg + pos, seglen, &concat_chksum, &concat_chksum_swapped);
  78670. 801fffc: 6bfb ldr r3, [r7, #60] @ 0x3c
  78671. 801fffe: 6858 ldr r0, [r3, #4]
  78672. 8020000: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  78673. 8020004: 68ba ldr r2, [r7, #8]
  78674. 8020006: 4413 add r3, r2
  78675. 8020008: 8c7a ldrh r2, [r7, #34] @ 0x22
  78676. 802000a: 4619 mov r1, r3
  78677. 802000c: f00a fe2f bl 802ac6e <memcpy>
  78678. #if TCP_CHECKSUM_ON_COPY
  78679. concat_chksummed += seglen;
  78680. #endif /* TCP_CHECKSUM_ON_COPY */
  78681. queuelen += pbuf_clen(concat_p);
  78682. 8020010: 6bf8 ldr r0, [r7, #60] @ 0x3c
  78683. 8020012: f7fb f9b9 bl 801b388 <pbuf_clen>
  78684. 8020016: 4603 mov r3, r0
  78685. 8020018: 461a mov r2, r3
  78686. 802001a: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  78687. 802001e: 4413 add r3, r2
  78688. 8020020: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  78689. 8020024: e055 b.n 80200d2 <tcp_write+0x322>
  78690. } else {
  78691. /* Data is not copied */
  78692. /* If the last unsent pbuf is of type PBUF_ROM, try to extend it. */
  78693. struct pbuf *p;
  78694. for (p = last_unsent->p; p->next != NULL; p = p->next);
  78695. 8020026: 6c3b ldr r3, [r7, #64] @ 0x40
  78696. 8020028: 685b ldr r3, [r3, #4]
  78697. 802002a: 63bb str r3, [r7, #56] @ 0x38
  78698. 802002c: e002 b.n 8020034 <tcp_write+0x284>
  78699. 802002e: 6bbb ldr r3, [r7, #56] @ 0x38
  78700. 8020030: 681b ldr r3, [r3, #0]
  78701. 8020032: 63bb str r3, [r7, #56] @ 0x38
  78702. 8020034: 6bbb ldr r3, [r7, #56] @ 0x38
  78703. 8020036: 681b ldr r3, [r3, #0]
  78704. 8020038: 2b00 cmp r3, #0
  78705. 802003a: d1f8 bne.n 802002e <tcp_write+0x27e>
  78706. if (((p->type_internal & (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_FLAG_DATA_VOLATILE)) == 0) &&
  78707. 802003c: 6bbb ldr r3, [r7, #56] @ 0x38
  78708. 802003e: 7b1b ldrb r3, [r3, #12]
  78709. 8020040: f003 03c0 and.w r3, r3, #192 @ 0xc0
  78710. 8020044: 2b00 cmp r3, #0
  78711. 8020046: d129 bne.n 802009c <tcp_write+0x2ec>
  78712. (const u8_t *)p->payload + p->len == (const u8_t *)arg) {
  78713. 8020048: 6bbb ldr r3, [r7, #56] @ 0x38
  78714. 802004a: 685b ldr r3, [r3, #4]
  78715. 802004c: 6bba ldr r2, [r7, #56] @ 0x38
  78716. 802004e: 8952 ldrh r2, [r2, #10]
  78717. 8020050: 4413 add r3, r2
  78718. if (((p->type_internal & (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_FLAG_DATA_VOLATILE)) == 0) &&
  78719. 8020052: 68ba ldr r2, [r7, #8]
  78720. 8020054: 429a cmp r2, r3
  78721. 8020056: d121 bne.n 802009c <tcp_write+0x2ec>
  78722. LWIP_ASSERT("tcp_write: ROM pbufs cannot be oversized", pos == 0);
  78723. 8020058: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  78724. 802005c: 2b00 cmp r3, #0
  78725. 802005e: d006 beq.n 802006e <tcp_write+0x2be>
  78726. 8020060: 4b05 ldr r3, [pc, #20] @ (8020078 <tcp_write+0x2c8>)
  78727. 8020062: f240 2231 movw r2, #561 @ 0x231
  78728. 8020066: 490c ldr r1, [pc, #48] @ (8020098 <tcp_write+0x2e8>)
  78729. 8020068: 4805 ldr r0, [pc, #20] @ (8020080 <tcp_write+0x2d0>)
  78730. 802006a: f00a fb77 bl 802a75c <iprintf>
  78731. extendlen = seglen;
  78732. 802006e: 8c7b ldrh r3, [r7, #34] @ 0x22
  78733. 8020070: f8a7 305e strh.w r3, [r7, #94] @ 0x5e
  78734. 8020074: e02d b.n 80200d2 <tcp_write+0x322>
  78735. 8020076: bf00 nop
  78736. 8020078: 08030074 .word 0x08030074
  78737. 802007c: 08030214 .word 0x08030214
  78738. 8020080: 080300c8 .word 0x080300c8
  78739. 8020084: 0803022c .word 0x0803022c
  78740. 8020088: 08030260 .word 0x08030260
  78741. 802008c: 08030278 .word 0x08030278
  78742. 8020090: 080302a8 .word 0x080302a8
  78743. 8020094: 080302c8 .word 0x080302c8
  78744. 8020098: 080302e8 .word 0x080302e8
  78745. } else {
  78746. if ((concat_p = pbuf_alloc(PBUF_RAW, seglen, PBUF_ROM)) == NULL) {
  78747. 802009c: 8c7b ldrh r3, [r7, #34] @ 0x22
  78748. 802009e: 2201 movs r2, #1
  78749. 80200a0: 4619 mov r1, r3
  78750. 80200a2: 2000 movs r0, #0
  78751. 80200a4: f7fa fdcc bl 801ac40 <pbuf_alloc>
  78752. 80200a8: 63f8 str r0, [r7, #60] @ 0x3c
  78753. 80200aa: 6bfb ldr r3, [r7, #60] @ 0x3c
  78754. 80200ac: 2b00 cmp r3, #0
  78755. 80200ae: f000 81fe beq.w 80204ae <tcp_write+0x6fe>
  78756. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  78757. ("tcp_write: could not allocate memory for zero-copy pbuf\n"));
  78758. goto memerr;
  78759. }
  78760. /* reference the non-volatile payload data */
  78761. ((struct pbuf_rom *)concat_p)->payload = (const u8_t *)arg + pos;
  78762. 80200b2: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  78763. 80200b6: 68ba ldr r2, [r7, #8]
  78764. 80200b8: 441a add r2, r3
  78765. 80200ba: 6bfb ldr r3, [r7, #60] @ 0x3c
  78766. 80200bc: 605a str r2, [r3, #4]
  78767. queuelen += pbuf_clen(concat_p);
  78768. 80200be: 6bf8 ldr r0, [r7, #60] @ 0x3c
  78769. 80200c0: f7fb f962 bl 801b388 <pbuf_clen>
  78770. 80200c4: 4603 mov r3, r0
  78771. 80200c6: 461a mov r2, r3
  78772. 80200c8: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  78773. 80200cc: 4413 add r3, r2
  78774. 80200ce: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  78775. &concat_chksum, &concat_chksum_swapped);
  78776. concat_chksummed += seglen;
  78777. #endif /* TCP_CHECKSUM_ON_COPY */
  78778. }
  78779. pos += seglen;
  78780. 80200d2: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  78781. 80200d6: 8c7b ldrh r3, [r7, #34] @ 0x22
  78782. 80200d8: 4413 add r3, r2
  78783. 80200da: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  78784. 80200de: e0cd b.n 802027c <tcp_write+0x4cc>
  78785. }
  78786. #endif /* !LWIP_NETIF_TX_SINGLE_PBUF */
  78787. } else {
  78788. #if TCP_OVERSIZE
  78789. LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)",
  78790. 80200e0: 68fb ldr r3, [r7, #12]
  78791. 80200e2: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  78792. 80200e6: 2b00 cmp r3, #0
  78793. 80200e8: f000 80c8 beq.w 802027c <tcp_write+0x4cc>
  78794. 80200ec: 4b72 ldr r3, [pc, #456] @ (80202b8 <tcp_write+0x508>)
  78795. 80200ee: f240 224a movw r2, #586 @ 0x24a
  78796. 80200f2: 4972 ldr r1, [pc, #456] @ (80202bc <tcp_write+0x50c>)
  78797. 80200f4: 4872 ldr r0, [pc, #456] @ (80202c0 <tcp_write+0x510>)
  78798. 80200f6: f00a fb31 bl 802a75c <iprintf>
  78799. * Phase 3: Create new segments.
  78800. *
  78801. * The new segments are chained together in the local 'queue'
  78802. * variable, ready to be appended to pcb->unsent.
  78803. */
  78804. while (pos < len) {
  78805. 80200fa: e0bf b.n 802027c <tcp_write+0x4cc>
  78806. struct pbuf *p;
  78807. u16_t left = len - pos;
  78808. 80200fc: 88fa ldrh r2, [r7, #6]
  78809. 80200fe: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  78810. 8020102: 1ad3 subs r3, r2, r3
  78811. 8020104: 843b strh r3, [r7, #32]
  78812. u16_t max_len = mss_local - optlen;
  78813. 8020106: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  78814. 802010a: b29b uxth r3, r3
  78815. 802010c: 8d3a ldrh r2, [r7, #40] @ 0x28
  78816. 802010e: 1ad3 subs r3, r2, r3
  78817. 8020110: 83fb strh r3, [r7, #30]
  78818. u16_t seglen = LWIP_MIN(left, max_len);
  78819. 8020112: 8bfa ldrh r2, [r7, #30]
  78820. 8020114: 8c3b ldrh r3, [r7, #32]
  78821. 8020116: 4293 cmp r3, r2
  78822. 8020118: bf28 it cs
  78823. 802011a: 4613 movcs r3, r2
  78824. 802011c: 83bb strh r3, [r7, #28]
  78825. #if TCP_CHECKSUM_ON_COPY
  78826. u16_t chksum = 0;
  78827. u8_t chksum_swapped = 0;
  78828. #endif /* TCP_CHECKSUM_ON_COPY */
  78829. if (apiflags & TCP_WRITE_FLAG_COPY) {
  78830. 802011e: 797b ldrb r3, [r7, #5]
  78831. 8020120: f003 0301 and.w r3, r3, #1
  78832. 8020124: 2b00 cmp r3, #0
  78833. 8020126: d036 beq.n 8020196 <tcp_write+0x3e6>
  78834. /* If copy is set, memory should be allocated and data copied
  78835. * into pbuf */
  78836. if ((p = tcp_pbuf_prealloc(PBUF_TRANSPORT, seglen + optlen, mss_local, &oversize, pcb, apiflags, queue == NULL)) == NULL) {
  78837. 8020128: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  78838. 802012c: b29a uxth r2, r3
  78839. 802012e: 8bbb ldrh r3, [r7, #28]
  78840. 8020130: 4413 add r3, r2
  78841. 8020132: b299 uxth r1, r3
  78842. 8020134: 6cfb ldr r3, [r7, #76] @ 0x4c
  78843. 8020136: 2b00 cmp r3, #0
  78844. 8020138: bf0c ite eq
  78845. 802013a: 2301 moveq r3, #1
  78846. 802013c: 2300 movne r3, #0
  78847. 802013e: b2db uxtb r3, r3
  78848. 8020140: f107 0016 add.w r0, r7, #22
  78849. 8020144: 8d3a ldrh r2, [r7, #40] @ 0x28
  78850. 8020146: 9302 str r3, [sp, #8]
  78851. 8020148: 797b ldrb r3, [r7, #5]
  78852. 802014a: 9301 str r3, [sp, #4]
  78853. 802014c: 68fb ldr r3, [r7, #12]
  78854. 802014e: 9300 str r3, [sp, #0]
  78855. 8020150: 4603 mov r3, r0
  78856. 8020152: 2036 movs r0, #54 @ 0x36
  78857. 8020154: f7ff fd38 bl 801fbc8 <tcp_pbuf_prealloc>
  78858. 8020158: 6378 str r0, [r7, #52] @ 0x34
  78859. 802015a: 6b7b ldr r3, [r7, #52] @ 0x34
  78860. 802015c: 2b00 cmp r3, #0
  78861. 802015e: f000 81a8 beq.w 80204b2 <tcp_write+0x702>
  78862. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write : could not allocate memory for pbuf copy size %"U16_F"\n", seglen));
  78863. goto memerr;
  78864. }
  78865. LWIP_ASSERT("tcp_write: check that first pbuf can hold the complete seglen",
  78866. 8020162: 6b7b ldr r3, [r7, #52] @ 0x34
  78867. 8020164: 895b ldrh r3, [r3, #10]
  78868. 8020166: 8bba ldrh r2, [r7, #28]
  78869. 8020168: 429a cmp r2, r3
  78870. 802016a: d906 bls.n 802017a <tcp_write+0x3ca>
  78871. 802016c: 4b52 ldr r3, [pc, #328] @ (80202b8 <tcp_write+0x508>)
  78872. 802016e: f240 2266 movw r2, #614 @ 0x266
  78873. 8020172: 4954 ldr r1, [pc, #336] @ (80202c4 <tcp_write+0x514>)
  78874. 8020174: 4852 ldr r0, [pc, #328] @ (80202c0 <tcp_write+0x510>)
  78875. 8020176: f00a faf1 bl 802a75c <iprintf>
  78876. (p->len >= seglen));
  78877. TCP_DATA_COPY2((char *)p->payload + optlen, (const u8_t *)arg + pos, seglen, &chksum, &chksum_swapped);
  78878. 802017a: 6b7b ldr r3, [r7, #52] @ 0x34
  78879. 802017c: 685a ldr r2, [r3, #4]
  78880. 802017e: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  78881. 8020182: 18d0 adds r0, r2, r3
  78882. 8020184: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  78883. 8020188: 68ba ldr r2, [r7, #8]
  78884. 802018a: 4413 add r3, r2
  78885. 802018c: 8bba ldrh r2, [r7, #28]
  78886. 802018e: 4619 mov r1, r3
  78887. 8020190: f00a fd6d bl 802ac6e <memcpy>
  78888. 8020194: e02f b.n 80201f6 <tcp_write+0x446>
  78889. * sent out on the link (as it has to be ACKed by the remote
  78890. * party) we can safely use PBUF_ROM instead of PBUF_REF here.
  78891. */
  78892. struct pbuf *p2;
  78893. #if TCP_OVERSIZE
  78894. LWIP_ASSERT("oversize == 0", oversize == 0);
  78895. 8020196: 8afb ldrh r3, [r7, #22]
  78896. 8020198: 2b00 cmp r3, #0
  78897. 802019a: d006 beq.n 80201aa <tcp_write+0x3fa>
  78898. 802019c: 4b46 ldr r3, [pc, #280] @ (80202b8 <tcp_write+0x508>)
  78899. 802019e: f240 2271 movw r2, #625 @ 0x271
  78900. 80201a2: 4949 ldr r1, [pc, #292] @ (80202c8 <tcp_write+0x518>)
  78901. 80201a4: 4846 ldr r0, [pc, #280] @ (80202c0 <tcp_write+0x510>)
  78902. 80201a6: f00a fad9 bl 802a75c <iprintf>
  78903. #endif /* TCP_OVERSIZE */
  78904. if ((p2 = pbuf_alloc(PBUF_TRANSPORT, seglen, PBUF_ROM)) == NULL) {
  78905. 80201aa: 8bbb ldrh r3, [r7, #28]
  78906. 80201ac: 2201 movs r2, #1
  78907. 80201ae: 4619 mov r1, r3
  78908. 80201b0: 2036 movs r0, #54 @ 0x36
  78909. 80201b2: f7fa fd45 bl 801ac40 <pbuf_alloc>
  78910. 80201b6: 61b8 str r0, [r7, #24]
  78911. 80201b8: 69bb ldr r3, [r7, #24]
  78912. 80201ba: 2b00 cmp r3, #0
  78913. 80201bc: f000 817b beq.w 80204b6 <tcp_write+0x706>
  78914. chksum_swapped = 1;
  78915. chksum = SWAP_BYTES_IN_WORD(chksum);
  78916. }
  78917. #endif /* TCP_CHECKSUM_ON_COPY */
  78918. /* reference the non-volatile payload data */
  78919. ((struct pbuf_rom *)p2)->payload = (const u8_t *)arg + pos;
  78920. 80201c0: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  78921. 80201c4: 68ba ldr r2, [r7, #8]
  78922. 80201c6: 441a add r2, r3
  78923. 80201c8: 69bb ldr r3, [r7, #24]
  78924. 80201ca: 605a str r2, [r3, #4]
  78925. /* Second, allocate a pbuf for the headers. */
  78926. if ((p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) {
  78927. 80201cc: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  78928. 80201d0: b29b uxth r3, r3
  78929. 80201d2: f44f 7220 mov.w r2, #640 @ 0x280
  78930. 80201d6: 4619 mov r1, r3
  78931. 80201d8: 2036 movs r0, #54 @ 0x36
  78932. 80201da: f7fa fd31 bl 801ac40 <pbuf_alloc>
  78933. 80201de: 6378 str r0, [r7, #52] @ 0x34
  78934. 80201e0: 6b7b ldr r3, [r7, #52] @ 0x34
  78935. 80201e2: 2b00 cmp r3, #0
  78936. 80201e4: d103 bne.n 80201ee <tcp_write+0x43e>
  78937. /* If allocation fails, we have to deallocate the data pbuf as
  78938. * well. */
  78939. pbuf_free(p2);
  78940. 80201e6: 69b8 ldr r0, [r7, #24]
  78941. 80201e8: f7fb f840 bl 801b26c <pbuf_free>
  78942. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: could not allocate memory for header pbuf\n"));
  78943. goto memerr;
  78944. 80201ec: e166 b.n 80204bc <tcp_write+0x70c>
  78945. }
  78946. /* Concatenate the headers and data pbufs together. */
  78947. pbuf_cat(p/*header*/, p2/*data*/);
  78948. 80201ee: 69b9 ldr r1, [r7, #24]
  78949. 80201f0: 6b78 ldr r0, [r7, #52] @ 0x34
  78950. 80201f2: f7fb f909 bl 801b408 <pbuf_cat>
  78951. }
  78952. queuelen += pbuf_clen(p);
  78953. 80201f6: 6b78 ldr r0, [r7, #52] @ 0x34
  78954. 80201f8: f7fb f8c6 bl 801b388 <pbuf_clen>
  78955. 80201fc: 4603 mov r3, r0
  78956. 80201fe: 461a mov r2, r3
  78957. 8020200: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  78958. 8020204: 4413 add r3, r2
  78959. 8020206: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  78960. /* Now that there are more segments queued, we check again if the
  78961. * length of the queue exceeds the configured maximum or
  78962. * overflows. */
  78963. if (queuelen > LWIP_MIN(TCP_SND_QUEUELEN, TCP_SNDQUEUELEN_OVERFLOW)) {
  78964. 802020a: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  78965. 802020e: 2b10 cmp r3, #16
  78966. 8020210: d903 bls.n 802021a <tcp_write+0x46a>
  78967. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: queue too long %"U16_F" (%d)\n",
  78968. queuelen, (int)TCP_SND_QUEUELEN));
  78969. pbuf_free(p);
  78970. 8020212: 6b78 ldr r0, [r7, #52] @ 0x34
  78971. 8020214: f7fb f82a bl 801b26c <pbuf_free>
  78972. goto memerr;
  78973. 8020218: e150 b.n 80204bc <tcp_write+0x70c>
  78974. }
  78975. if ((seg = tcp_create_segment(pcb, p, 0, pcb->snd_lbb + pos, optflags)) == NULL) {
  78976. 802021a: 68fb ldr r3, [r7, #12]
  78977. 802021c: 6dda ldr r2, [r3, #92] @ 0x5c
  78978. 802021e: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  78979. 8020222: 441a add r2, r3
  78980. 8020224: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  78981. 8020228: 9300 str r3, [sp, #0]
  78982. 802022a: 4613 mov r3, r2
  78983. 802022c: 2200 movs r2, #0
  78984. 802022e: 6b79 ldr r1, [r7, #52] @ 0x34
  78985. 8020230: 68f8 ldr r0, [r7, #12]
  78986. 8020232: f7ff fc29 bl 801fa88 <tcp_create_segment>
  78987. 8020236: 6578 str r0, [r7, #84] @ 0x54
  78988. 8020238: 6d7b ldr r3, [r7, #84] @ 0x54
  78989. 802023a: 2b00 cmp r3, #0
  78990. 802023c: f000 813d beq.w 80204ba <tcp_write+0x70a>
  78991. goto memerr;
  78992. }
  78993. #if TCP_OVERSIZE_DBGCHECK
  78994. seg->oversize_left = oversize;
  78995. 8020240: 8afa ldrh r2, [r7, #22]
  78996. 8020242: 6d7b ldr r3, [r7, #84] @ 0x54
  78997. 8020244: 815a strh r2, [r3, #10]
  78998. seg->chksum_swapped = chksum_swapped;
  78999. seg->flags |= TF_SEG_DATA_CHECKSUMMED;
  79000. #endif /* TCP_CHECKSUM_ON_COPY */
  79001. /* first segment of to-be-queued data? */
  79002. if (queue == NULL) {
  79003. 8020246: 6cfb ldr r3, [r7, #76] @ 0x4c
  79004. 8020248: 2b00 cmp r3, #0
  79005. 802024a: d102 bne.n 8020252 <tcp_write+0x4a2>
  79006. queue = seg;
  79007. 802024c: 6d7b ldr r3, [r7, #84] @ 0x54
  79008. 802024e: 64fb str r3, [r7, #76] @ 0x4c
  79009. 8020250: e00c b.n 802026c <tcp_write+0x4bc>
  79010. } else {
  79011. /* Attach the segment to the end of the queued segments */
  79012. LWIP_ASSERT("prev_seg != NULL", prev_seg != NULL);
  79013. 8020252: 6d3b ldr r3, [r7, #80] @ 0x50
  79014. 8020254: 2b00 cmp r3, #0
  79015. 8020256: d106 bne.n 8020266 <tcp_write+0x4b6>
  79016. 8020258: 4b17 ldr r3, [pc, #92] @ (80202b8 <tcp_write+0x508>)
  79017. 802025a: f240 22ab movw r2, #683 @ 0x2ab
  79018. 802025e: 491b ldr r1, [pc, #108] @ (80202cc <tcp_write+0x51c>)
  79019. 8020260: 4817 ldr r0, [pc, #92] @ (80202c0 <tcp_write+0x510>)
  79020. 8020262: f00a fa7b bl 802a75c <iprintf>
  79021. prev_seg->next = seg;
  79022. 8020266: 6d3b ldr r3, [r7, #80] @ 0x50
  79023. 8020268: 6d7a ldr r2, [r7, #84] @ 0x54
  79024. 802026a: 601a str r2, [r3, #0]
  79025. }
  79026. /* remember last segment of to-be-queued data for next iteration */
  79027. prev_seg = seg;
  79028. 802026c: 6d7b ldr r3, [r7, #84] @ 0x54
  79029. 802026e: 653b str r3, [r7, #80] @ 0x50
  79030. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_TRACE, ("tcp_write: queueing %"U32_F":%"U32_F"\n",
  79031. lwip_ntohl(seg->tcphdr->seqno),
  79032. lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg)));
  79033. pos += seglen;
  79034. 8020270: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  79035. 8020274: 8bbb ldrh r3, [r7, #28]
  79036. 8020276: 4413 add r3, r2
  79037. 8020278: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  79038. while (pos < len) {
  79039. 802027c: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  79040. 8020280: 88fb ldrh r3, [r7, #6]
  79041. 8020282: 429a cmp r2, r3
  79042. 8020284: f4ff af3a bcc.w 80200fc <tcp_write+0x34c>
  79043. /*
  79044. * All three segmentation phases were successful. We can commit the
  79045. * transaction.
  79046. */
  79047. #if TCP_OVERSIZE_DBGCHECK
  79048. if ((last_unsent != NULL) && (oversize_add != 0)) {
  79049. 8020288: 6c3b ldr r3, [r7, #64] @ 0x40
  79050. 802028a: 2b00 cmp r3, #0
  79051. 802028c: d00b beq.n 80202a6 <tcp_write+0x4f6>
  79052. 802028e: f8b7 305a ldrh.w r3, [r7, #90] @ 0x5a
  79053. 8020292: 2b00 cmp r3, #0
  79054. 8020294: d007 beq.n 80202a6 <tcp_write+0x4f6>
  79055. last_unsent->oversize_left += oversize_add;
  79056. 8020296: 6c3b ldr r3, [r7, #64] @ 0x40
  79057. 8020298: 895a ldrh r2, [r3, #10]
  79058. 802029a: f8b7 305a ldrh.w r3, [r7, #90] @ 0x5a
  79059. 802029e: 4413 add r3, r2
  79060. 80202a0: b29a uxth r2, r3
  79061. 80202a2: 6c3b ldr r3, [r7, #64] @ 0x40
  79062. 80202a4: 815a strh r2, [r3, #10]
  79063. /*
  79064. * Phase 1: If data has been added to the preallocated tail of
  79065. * last_unsent, we update the length fields of the pbuf chain.
  79066. */
  79067. #if TCP_OVERSIZE
  79068. if (oversize_used > 0) {
  79069. 80202a6: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  79070. 80202aa: 2b00 cmp r3, #0
  79071. 80202ac: d052 beq.n 8020354 <tcp_write+0x5a4>
  79072. struct pbuf *p;
  79073. /* Bump tot_len of whole chain, len of tail */
  79074. for (p = last_unsent->p; p; p = p->next) {
  79075. 80202ae: 6c3b ldr r3, [r7, #64] @ 0x40
  79076. 80202b0: 685b ldr r3, [r3, #4]
  79077. 80202b2: 633b str r3, [r7, #48] @ 0x30
  79078. 80202b4: e02e b.n 8020314 <tcp_write+0x564>
  79079. 80202b6: bf00 nop
  79080. 80202b8: 08030074 .word 0x08030074
  79081. 80202bc: 08030314 .word 0x08030314
  79082. 80202c0: 080300c8 .word 0x080300c8
  79083. 80202c4: 08030344 .word 0x08030344
  79084. 80202c8: 08030384 .word 0x08030384
  79085. 80202cc: 08030394 .word 0x08030394
  79086. p->tot_len += oversize_used;
  79087. 80202d0: 6b3b ldr r3, [r7, #48] @ 0x30
  79088. 80202d2: 891a ldrh r2, [r3, #8]
  79089. 80202d4: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  79090. 80202d8: 4413 add r3, r2
  79091. 80202da: b29a uxth r2, r3
  79092. 80202dc: 6b3b ldr r3, [r7, #48] @ 0x30
  79093. 80202de: 811a strh r2, [r3, #8]
  79094. if (p->next == NULL) {
  79095. 80202e0: 6b3b ldr r3, [r7, #48] @ 0x30
  79096. 80202e2: 681b ldr r3, [r3, #0]
  79097. 80202e4: 2b00 cmp r3, #0
  79098. 80202e6: d112 bne.n 802030e <tcp_write+0x55e>
  79099. TCP_DATA_COPY((char *)p->payload + p->len, arg, oversize_used, last_unsent);
  79100. 80202e8: 6b3b ldr r3, [r7, #48] @ 0x30
  79101. 80202ea: 685b ldr r3, [r3, #4]
  79102. 80202ec: 6b3a ldr r2, [r7, #48] @ 0x30
  79103. 80202ee: 8952 ldrh r2, [r2, #10]
  79104. 80202f0: 4413 add r3, r2
  79105. 80202f2: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  79106. 80202f6: 68b9 ldr r1, [r7, #8]
  79107. 80202f8: 4618 mov r0, r3
  79108. 80202fa: f00a fcb8 bl 802ac6e <memcpy>
  79109. p->len += oversize_used;
  79110. 80202fe: 6b3b ldr r3, [r7, #48] @ 0x30
  79111. 8020300: 895a ldrh r2, [r3, #10]
  79112. 8020302: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  79113. 8020306: 4413 add r3, r2
  79114. 8020308: b29a uxth r2, r3
  79115. 802030a: 6b3b ldr r3, [r7, #48] @ 0x30
  79116. 802030c: 815a strh r2, [r3, #10]
  79117. for (p = last_unsent->p; p; p = p->next) {
  79118. 802030e: 6b3b ldr r3, [r7, #48] @ 0x30
  79119. 8020310: 681b ldr r3, [r3, #0]
  79120. 8020312: 633b str r3, [r7, #48] @ 0x30
  79121. 8020314: 6b3b ldr r3, [r7, #48] @ 0x30
  79122. 8020316: 2b00 cmp r3, #0
  79123. 8020318: d1da bne.n 80202d0 <tcp_write+0x520>
  79124. }
  79125. }
  79126. last_unsent->len += oversize_used;
  79127. 802031a: 6c3b ldr r3, [r7, #64] @ 0x40
  79128. 802031c: 891a ldrh r2, [r3, #8]
  79129. 802031e: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  79130. 8020322: 4413 add r3, r2
  79131. 8020324: b29a uxth r2, r3
  79132. 8020326: 6c3b ldr r3, [r7, #64] @ 0x40
  79133. 8020328: 811a strh r2, [r3, #8]
  79134. #if TCP_OVERSIZE_DBGCHECK
  79135. LWIP_ASSERT("last_unsent->oversize_left >= oversize_used",
  79136. 802032a: 6c3b ldr r3, [r7, #64] @ 0x40
  79137. 802032c: 895b ldrh r3, [r3, #10]
  79138. 802032e: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  79139. 8020332: 429a cmp r2, r3
  79140. 8020334: d906 bls.n 8020344 <tcp_write+0x594>
  79141. 8020336: 4b78 ldr r3, [pc, #480] @ (8020518 <tcp_write+0x768>)
  79142. 8020338: f240 22d3 movw r2, #723 @ 0x2d3
  79143. 802033c: 4977 ldr r1, [pc, #476] @ (802051c <tcp_write+0x76c>)
  79144. 802033e: 4878 ldr r0, [pc, #480] @ (8020520 <tcp_write+0x770>)
  79145. 8020340: f00a fa0c bl 802a75c <iprintf>
  79146. last_unsent->oversize_left >= oversize_used);
  79147. last_unsent->oversize_left -= oversize_used;
  79148. 8020344: 6c3b ldr r3, [r7, #64] @ 0x40
  79149. 8020346: 895a ldrh r2, [r3, #10]
  79150. 8020348: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  79151. 802034c: 1ad3 subs r3, r2, r3
  79152. 802034e: b29a uxth r2, r3
  79153. 8020350: 6c3b ldr r3, [r7, #64] @ 0x40
  79154. 8020352: 815a strh r2, [r3, #10]
  79155. #endif /* TCP_OVERSIZE_DBGCHECK */
  79156. }
  79157. pcb->unsent_oversize = oversize;
  79158. 8020354: 8afa ldrh r2, [r7, #22]
  79159. 8020356: 68fb ldr r3, [r7, #12]
  79160. 8020358: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  79161. /*
  79162. * Phase 2: concat_p can be concatenated onto last_unsent->p, unless we
  79163. * determined that the last ROM pbuf can be extended to include the new data.
  79164. */
  79165. if (concat_p != NULL) {
  79166. 802035c: 6bfb ldr r3, [r7, #60] @ 0x3c
  79167. 802035e: 2b00 cmp r3, #0
  79168. 8020360: d018 beq.n 8020394 <tcp_write+0x5e4>
  79169. LWIP_ASSERT("tcp_write: cannot concatenate when pcb->unsent is empty",
  79170. 8020362: 6c3b ldr r3, [r7, #64] @ 0x40
  79171. 8020364: 2b00 cmp r3, #0
  79172. 8020366: d106 bne.n 8020376 <tcp_write+0x5c6>
  79173. 8020368: 4b6b ldr r3, [pc, #428] @ (8020518 <tcp_write+0x768>)
  79174. 802036a: f44f 7238 mov.w r2, #736 @ 0x2e0
  79175. 802036e: 496d ldr r1, [pc, #436] @ (8020524 <tcp_write+0x774>)
  79176. 8020370: 486b ldr r0, [pc, #428] @ (8020520 <tcp_write+0x770>)
  79177. 8020372: f00a f9f3 bl 802a75c <iprintf>
  79178. (last_unsent != NULL));
  79179. pbuf_cat(last_unsent->p, concat_p);
  79180. 8020376: 6c3b ldr r3, [r7, #64] @ 0x40
  79181. 8020378: 685b ldr r3, [r3, #4]
  79182. 802037a: 6bf9 ldr r1, [r7, #60] @ 0x3c
  79183. 802037c: 4618 mov r0, r3
  79184. 802037e: f7fb f843 bl 801b408 <pbuf_cat>
  79185. last_unsent->len += concat_p->tot_len;
  79186. 8020382: 6c3b ldr r3, [r7, #64] @ 0x40
  79187. 8020384: 891a ldrh r2, [r3, #8]
  79188. 8020386: 6bfb ldr r3, [r7, #60] @ 0x3c
  79189. 8020388: 891b ldrh r3, [r3, #8]
  79190. 802038a: 4413 add r3, r2
  79191. 802038c: b29a uxth r2, r3
  79192. 802038e: 6c3b ldr r3, [r7, #64] @ 0x40
  79193. 8020390: 811a strh r2, [r3, #8]
  79194. 8020392: e03c b.n 802040e <tcp_write+0x65e>
  79195. } else if (extendlen > 0) {
  79196. 8020394: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  79197. 8020398: 2b00 cmp r3, #0
  79198. 802039a: d038 beq.n 802040e <tcp_write+0x65e>
  79199. struct pbuf *p;
  79200. LWIP_ASSERT("tcp_write: extension of reference requires reference",
  79201. 802039c: 6c3b ldr r3, [r7, #64] @ 0x40
  79202. 802039e: 2b00 cmp r3, #0
  79203. 80203a0: d003 beq.n 80203aa <tcp_write+0x5fa>
  79204. 80203a2: 6c3b ldr r3, [r7, #64] @ 0x40
  79205. 80203a4: 685b ldr r3, [r3, #4]
  79206. 80203a6: 2b00 cmp r3, #0
  79207. 80203a8: d106 bne.n 80203b8 <tcp_write+0x608>
  79208. 80203aa: 4b5b ldr r3, [pc, #364] @ (8020518 <tcp_write+0x768>)
  79209. 80203ac: f240 22e6 movw r2, #742 @ 0x2e6
  79210. 80203b0: 495d ldr r1, [pc, #372] @ (8020528 <tcp_write+0x778>)
  79211. 80203b2: 485b ldr r0, [pc, #364] @ (8020520 <tcp_write+0x770>)
  79212. 80203b4: f00a f9d2 bl 802a75c <iprintf>
  79213. last_unsent != NULL && last_unsent->p != NULL);
  79214. for (p = last_unsent->p; p->next != NULL; p = p->next) {
  79215. 80203b8: 6c3b ldr r3, [r7, #64] @ 0x40
  79216. 80203ba: 685b ldr r3, [r3, #4]
  79217. 80203bc: 62fb str r3, [r7, #44] @ 0x2c
  79218. 80203be: e00a b.n 80203d6 <tcp_write+0x626>
  79219. p->tot_len += extendlen;
  79220. 80203c0: 6afb ldr r3, [r7, #44] @ 0x2c
  79221. 80203c2: 891a ldrh r2, [r3, #8]
  79222. 80203c4: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  79223. 80203c8: 4413 add r3, r2
  79224. 80203ca: b29a uxth r2, r3
  79225. 80203cc: 6afb ldr r3, [r7, #44] @ 0x2c
  79226. 80203ce: 811a strh r2, [r3, #8]
  79227. for (p = last_unsent->p; p->next != NULL; p = p->next) {
  79228. 80203d0: 6afb ldr r3, [r7, #44] @ 0x2c
  79229. 80203d2: 681b ldr r3, [r3, #0]
  79230. 80203d4: 62fb str r3, [r7, #44] @ 0x2c
  79231. 80203d6: 6afb ldr r3, [r7, #44] @ 0x2c
  79232. 80203d8: 681b ldr r3, [r3, #0]
  79233. 80203da: 2b00 cmp r3, #0
  79234. 80203dc: d1f0 bne.n 80203c0 <tcp_write+0x610>
  79235. }
  79236. p->tot_len += extendlen;
  79237. 80203de: 6afb ldr r3, [r7, #44] @ 0x2c
  79238. 80203e0: 891a ldrh r2, [r3, #8]
  79239. 80203e2: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  79240. 80203e6: 4413 add r3, r2
  79241. 80203e8: b29a uxth r2, r3
  79242. 80203ea: 6afb ldr r3, [r7, #44] @ 0x2c
  79243. 80203ec: 811a strh r2, [r3, #8]
  79244. p->len += extendlen;
  79245. 80203ee: 6afb ldr r3, [r7, #44] @ 0x2c
  79246. 80203f0: 895a ldrh r2, [r3, #10]
  79247. 80203f2: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  79248. 80203f6: 4413 add r3, r2
  79249. 80203f8: b29a uxth r2, r3
  79250. 80203fa: 6afb ldr r3, [r7, #44] @ 0x2c
  79251. 80203fc: 815a strh r2, [r3, #10]
  79252. last_unsent->len += extendlen;
  79253. 80203fe: 6c3b ldr r3, [r7, #64] @ 0x40
  79254. 8020400: 891a ldrh r2, [r3, #8]
  79255. 8020402: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  79256. 8020406: 4413 add r3, r2
  79257. 8020408: b29a uxth r2, r3
  79258. 802040a: 6c3b ldr r3, [r7, #64] @ 0x40
  79259. 802040c: 811a strh r2, [r3, #8]
  79260. /*
  79261. * Phase 3: Append queue to pcb->unsent. Queue may be NULL, but that
  79262. * is harmless
  79263. */
  79264. if (last_unsent == NULL) {
  79265. 802040e: 6c3b ldr r3, [r7, #64] @ 0x40
  79266. 8020410: 2b00 cmp r3, #0
  79267. 8020412: d103 bne.n 802041c <tcp_write+0x66c>
  79268. pcb->unsent = queue;
  79269. 8020414: 68fb ldr r3, [r7, #12]
  79270. 8020416: 6cfa ldr r2, [r7, #76] @ 0x4c
  79271. 8020418: 66da str r2, [r3, #108] @ 0x6c
  79272. 802041a: e002 b.n 8020422 <tcp_write+0x672>
  79273. } else {
  79274. last_unsent->next = queue;
  79275. 802041c: 6c3b ldr r3, [r7, #64] @ 0x40
  79276. 802041e: 6cfa ldr r2, [r7, #76] @ 0x4c
  79277. 8020420: 601a str r2, [r3, #0]
  79278. }
  79279. /*
  79280. * Finally update the pcb state.
  79281. */
  79282. pcb->snd_lbb += len;
  79283. 8020422: 68fb ldr r3, [r7, #12]
  79284. 8020424: 6dda ldr r2, [r3, #92] @ 0x5c
  79285. 8020426: 88fb ldrh r3, [r7, #6]
  79286. 8020428: 441a add r2, r3
  79287. 802042a: 68fb ldr r3, [r7, #12]
  79288. 802042c: 65da str r2, [r3, #92] @ 0x5c
  79289. pcb->snd_buf -= len;
  79290. 802042e: 68fb ldr r3, [r7, #12]
  79291. 8020430: f8b3 2064 ldrh.w r2, [r3, #100] @ 0x64
  79292. 8020434: 88fb ldrh r3, [r7, #6]
  79293. 8020436: 1ad3 subs r3, r2, r3
  79294. 8020438: b29a uxth r2, r3
  79295. 802043a: 68fb ldr r3, [r7, #12]
  79296. 802043c: f8a3 2064 strh.w r2, [r3, #100] @ 0x64
  79297. pcb->snd_queuelen = queuelen;
  79298. 8020440: 68fb ldr r3, [r7, #12]
  79299. 8020442: f8b7 2048 ldrh.w r2, [r7, #72] @ 0x48
  79300. 8020446: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  79301. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: %"S16_F" (after enqueued)\n",
  79302. pcb->snd_queuelen));
  79303. if (pcb->snd_queuelen != 0) {
  79304. 802044a: 68fb ldr r3, [r7, #12]
  79305. 802044c: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  79306. 8020450: 2b00 cmp r3, #0
  79307. 8020452: d00e beq.n 8020472 <tcp_write+0x6c2>
  79308. LWIP_ASSERT("tcp_write: valid queue length",
  79309. 8020454: 68fb ldr r3, [r7, #12]
  79310. 8020456: 6f1b ldr r3, [r3, #112] @ 0x70
  79311. 8020458: 2b00 cmp r3, #0
  79312. 802045a: d10a bne.n 8020472 <tcp_write+0x6c2>
  79313. 802045c: 68fb ldr r3, [r7, #12]
  79314. 802045e: 6edb ldr r3, [r3, #108] @ 0x6c
  79315. 8020460: 2b00 cmp r3, #0
  79316. 8020462: d106 bne.n 8020472 <tcp_write+0x6c2>
  79317. 8020464: 4b2c ldr r3, [pc, #176] @ (8020518 <tcp_write+0x768>)
  79318. 8020466: f240 3212 movw r2, #786 @ 0x312
  79319. 802046a: 4930 ldr r1, [pc, #192] @ (802052c <tcp_write+0x77c>)
  79320. 802046c: 482c ldr r0, [pc, #176] @ (8020520 <tcp_write+0x770>)
  79321. 802046e: f00a f975 bl 802a75c <iprintf>
  79322. pcb->unacked != NULL || pcb->unsent != NULL);
  79323. }
  79324. /* Set the PSH flag in the last segment that we enqueued. */
  79325. if (seg != NULL && seg->tcphdr != NULL && ((apiflags & TCP_WRITE_FLAG_MORE) == 0)) {
  79326. 8020472: 6d7b ldr r3, [r7, #84] @ 0x54
  79327. 8020474: 2b00 cmp r3, #0
  79328. 8020476: d016 beq.n 80204a6 <tcp_write+0x6f6>
  79329. 8020478: 6d7b ldr r3, [r7, #84] @ 0x54
  79330. 802047a: 691b ldr r3, [r3, #16]
  79331. 802047c: 2b00 cmp r3, #0
  79332. 802047e: d012 beq.n 80204a6 <tcp_write+0x6f6>
  79333. 8020480: 797b ldrb r3, [r7, #5]
  79334. 8020482: f003 0302 and.w r3, r3, #2
  79335. 8020486: 2b00 cmp r3, #0
  79336. 8020488: d10d bne.n 80204a6 <tcp_write+0x6f6>
  79337. TCPH_SET_FLAG(seg->tcphdr, TCP_PSH);
  79338. 802048a: 6d7b ldr r3, [r7, #84] @ 0x54
  79339. 802048c: 691b ldr r3, [r3, #16]
  79340. 802048e: 899b ldrh r3, [r3, #12]
  79341. 8020490: b29c uxth r4, r3
  79342. 8020492: 2008 movs r0, #8
  79343. 8020494: f7f9 fa08 bl 80198a8 <lwip_htons>
  79344. 8020498: 4603 mov r3, r0
  79345. 802049a: 461a mov r2, r3
  79346. 802049c: 6d7b ldr r3, [r7, #84] @ 0x54
  79347. 802049e: 691b ldr r3, [r3, #16]
  79348. 80204a0: 4322 orrs r2, r4
  79349. 80204a2: b292 uxth r2, r2
  79350. 80204a4: 819a strh r2, [r3, #12]
  79351. }
  79352. return ERR_OK;
  79353. 80204a6: 2300 movs r3, #0
  79354. 80204a8: e031 b.n 802050e <tcp_write+0x75e>
  79355. goto memerr;
  79356. 80204aa: bf00 nop
  79357. 80204ac: e006 b.n 80204bc <tcp_write+0x70c>
  79358. goto memerr;
  79359. 80204ae: bf00 nop
  79360. 80204b0: e004 b.n 80204bc <tcp_write+0x70c>
  79361. goto memerr;
  79362. 80204b2: bf00 nop
  79363. 80204b4: e002 b.n 80204bc <tcp_write+0x70c>
  79364. goto memerr;
  79365. 80204b6: bf00 nop
  79366. 80204b8: e000 b.n 80204bc <tcp_write+0x70c>
  79367. goto memerr;
  79368. 80204ba: bf00 nop
  79369. memerr:
  79370. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  79371. 80204bc: 68fb ldr r3, [r7, #12]
  79372. 80204be: 8b5b ldrh r3, [r3, #26]
  79373. 80204c0: f043 0380 orr.w r3, r3, #128 @ 0x80
  79374. 80204c4: b29a uxth r2, r3
  79375. 80204c6: 68fb ldr r3, [r7, #12]
  79376. 80204c8: 835a strh r2, [r3, #26]
  79377. TCP_STATS_INC(tcp.memerr);
  79378. if (concat_p != NULL) {
  79379. 80204ca: 6bfb ldr r3, [r7, #60] @ 0x3c
  79380. 80204cc: 2b00 cmp r3, #0
  79381. 80204ce: d002 beq.n 80204d6 <tcp_write+0x726>
  79382. pbuf_free(concat_p);
  79383. 80204d0: 6bf8 ldr r0, [r7, #60] @ 0x3c
  79384. 80204d2: f7fa fecb bl 801b26c <pbuf_free>
  79385. }
  79386. if (queue != NULL) {
  79387. 80204d6: 6cfb ldr r3, [r7, #76] @ 0x4c
  79388. 80204d8: 2b00 cmp r3, #0
  79389. 80204da: d002 beq.n 80204e2 <tcp_write+0x732>
  79390. tcp_segs_free(queue);
  79391. 80204dc: 6cf8 ldr r0, [r7, #76] @ 0x4c
  79392. 80204de: f7fc fb09 bl 801caf4 <tcp_segs_free>
  79393. }
  79394. if (pcb->snd_queuelen != 0) {
  79395. 80204e2: 68fb ldr r3, [r7, #12]
  79396. 80204e4: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  79397. 80204e8: 2b00 cmp r3, #0
  79398. 80204ea: d00e beq.n 802050a <tcp_write+0x75a>
  79399. LWIP_ASSERT("tcp_write: valid queue length", pcb->unacked != NULL ||
  79400. 80204ec: 68fb ldr r3, [r7, #12]
  79401. 80204ee: 6f1b ldr r3, [r3, #112] @ 0x70
  79402. 80204f0: 2b00 cmp r3, #0
  79403. 80204f2: d10a bne.n 802050a <tcp_write+0x75a>
  79404. 80204f4: 68fb ldr r3, [r7, #12]
  79405. 80204f6: 6edb ldr r3, [r3, #108] @ 0x6c
  79406. 80204f8: 2b00 cmp r3, #0
  79407. 80204fa: d106 bne.n 802050a <tcp_write+0x75a>
  79408. 80204fc: 4b06 ldr r3, [pc, #24] @ (8020518 <tcp_write+0x768>)
  79409. 80204fe: f240 3227 movw r2, #807 @ 0x327
  79410. 8020502: 490a ldr r1, [pc, #40] @ (802052c <tcp_write+0x77c>)
  79411. 8020504: 4806 ldr r0, [pc, #24] @ (8020520 <tcp_write+0x770>)
  79412. 8020506: f00a f929 bl 802a75c <iprintf>
  79413. pcb->unsent != NULL);
  79414. }
  79415. LWIP_DEBUGF(TCP_QLEN_DEBUG | LWIP_DBG_STATE, ("tcp_write: %"S16_F" (with mem err)\n", pcb->snd_queuelen));
  79416. return ERR_MEM;
  79417. 802050a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  79418. }
  79419. 802050e: 4618 mov r0, r3
  79420. 8020510: 3764 adds r7, #100 @ 0x64
  79421. 8020512: 46bd mov sp, r7
  79422. 8020514: bd90 pop {r4, r7, pc}
  79423. 8020516: bf00 nop
  79424. 8020518: 08030074 .word 0x08030074
  79425. 802051c: 080303a8 .word 0x080303a8
  79426. 8020520: 080300c8 .word 0x080300c8
  79427. 8020524: 080303d4 .word 0x080303d4
  79428. 8020528: 0803040c .word 0x0803040c
  79429. 802052c: 08030444 .word 0x08030444
  79430. 08020530 <tcp_split_unsent_seg>:
  79431. * @param pcb the tcp_pcb for which to split the unsent head
  79432. * @param split the amount of payload to remain in the head
  79433. */
  79434. err_t
  79435. tcp_split_unsent_seg(struct tcp_pcb *pcb, u16_t split)
  79436. {
  79437. 8020530: b590 push {r4, r7, lr}
  79438. 8020532: b08b sub sp, #44 @ 0x2c
  79439. 8020534: af02 add r7, sp, #8
  79440. 8020536: 6078 str r0, [r7, #4]
  79441. 8020538: 460b mov r3, r1
  79442. 802053a: 807b strh r3, [r7, #2]
  79443. struct tcp_seg *seg = NULL, *useg = NULL;
  79444. 802053c: 2300 movs r3, #0
  79445. 802053e: 61bb str r3, [r7, #24]
  79446. 8020540: 2300 movs r3, #0
  79447. 8020542: 617b str r3, [r7, #20]
  79448. struct pbuf *p = NULL;
  79449. 8020544: 2300 movs r3, #0
  79450. 8020546: 613b str r3, [r7, #16]
  79451. u16_t chksum = 0;
  79452. u8_t chksum_swapped = 0;
  79453. struct pbuf *q;
  79454. #endif /* TCP_CHECKSUM_ON_COPY */
  79455. LWIP_ASSERT("tcp_split_unsent_seg: invalid pcb", pcb != NULL);
  79456. 8020548: 687b ldr r3, [r7, #4]
  79457. 802054a: 2b00 cmp r3, #0
  79458. 802054c: d106 bne.n 802055c <tcp_split_unsent_seg+0x2c>
  79459. 802054e: 4b97 ldr r3, [pc, #604] @ (80207ac <tcp_split_unsent_seg+0x27c>)
  79460. 8020550: f240 324b movw r2, #843 @ 0x34b
  79461. 8020554: 4996 ldr r1, [pc, #600] @ (80207b0 <tcp_split_unsent_seg+0x280>)
  79462. 8020556: 4897 ldr r0, [pc, #604] @ (80207b4 <tcp_split_unsent_seg+0x284>)
  79463. 8020558: f00a f900 bl 802a75c <iprintf>
  79464. useg = pcb->unsent;
  79465. 802055c: 687b ldr r3, [r7, #4]
  79466. 802055e: 6edb ldr r3, [r3, #108] @ 0x6c
  79467. 8020560: 617b str r3, [r7, #20]
  79468. if (useg == NULL) {
  79469. 8020562: 697b ldr r3, [r7, #20]
  79470. 8020564: 2b00 cmp r3, #0
  79471. 8020566: d102 bne.n 802056e <tcp_split_unsent_seg+0x3e>
  79472. return ERR_MEM;
  79473. 8020568: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  79474. 802056c: e119 b.n 80207a2 <tcp_split_unsent_seg+0x272>
  79475. }
  79476. if (split == 0) {
  79477. 802056e: 887b ldrh r3, [r7, #2]
  79478. 8020570: 2b00 cmp r3, #0
  79479. 8020572: d109 bne.n 8020588 <tcp_split_unsent_seg+0x58>
  79480. LWIP_ASSERT("Can't split segment into length 0", 0);
  79481. 8020574: 4b8d ldr r3, [pc, #564] @ (80207ac <tcp_split_unsent_seg+0x27c>)
  79482. 8020576: f240 3253 movw r2, #851 @ 0x353
  79483. 802057a: 498f ldr r1, [pc, #572] @ (80207b8 <tcp_split_unsent_seg+0x288>)
  79484. 802057c: 488d ldr r0, [pc, #564] @ (80207b4 <tcp_split_unsent_seg+0x284>)
  79485. 802057e: f00a f8ed bl 802a75c <iprintf>
  79486. return ERR_VAL;
  79487. 8020582: f06f 0305 mvn.w r3, #5
  79488. 8020586: e10c b.n 80207a2 <tcp_split_unsent_seg+0x272>
  79489. }
  79490. if (useg->len <= split) {
  79491. 8020588: 697b ldr r3, [r7, #20]
  79492. 802058a: 891b ldrh r3, [r3, #8]
  79493. 802058c: 887a ldrh r2, [r7, #2]
  79494. 802058e: 429a cmp r2, r3
  79495. 8020590: d301 bcc.n 8020596 <tcp_split_unsent_seg+0x66>
  79496. return ERR_OK;
  79497. 8020592: 2300 movs r3, #0
  79498. 8020594: e105 b.n 80207a2 <tcp_split_unsent_seg+0x272>
  79499. }
  79500. LWIP_ASSERT("split <= mss", split <= pcb->mss);
  79501. 8020596: 687b ldr r3, [r7, #4]
  79502. 8020598: 8e5b ldrh r3, [r3, #50] @ 0x32
  79503. 802059a: 887a ldrh r2, [r7, #2]
  79504. 802059c: 429a cmp r2, r3
  79505. 802059e: d906 bls.n 80205ae <tcp_split_unsent_seg+0x7e>
  79506. 80205a0: 4b82 ldr r3, [pc, #520] @ (80207ac <tcp_split_unsent_seg+0x27c>)
  79507. 80205a2: f240 325b movw r2, #859 @ 0x35b
  79508. 80205a6: 4985 ldr r1, [pc, #532] @ (80207bc <tcp_split_unsent_seg+0x28c>)
  79509. 80205a8: 4882 ldr r0, [pc, #520] @ (80207b4 <tcp_split_unsent_seg+0x284>)
  79510. 80205aa: f00a f8d7 bl 802a75c <iprintf>
  79511. LWIP_ASSERT("useg->len > 0", useg->len > 0);
  79512. 80205ae: 697b ldr r3, [r7, #20]
  79513. 80205b0: 891b ldrh r3, [r3, #8]
  79514. 80205b2: 2b00 cmp r3, #0
  79515. 80205b4: d106 bne.n 80205c4 <tcp_split_unsent_seg+0x94>
  79516. 80205b6: 4b7d ldr r3, [pc, #500] @ (80207ac <tcp_split_unsent_seg+0x27c>)
  79517. 80205b8: f44f 7257 mov.w r2, #860 @ 0x35c
  79518. 80205bc: 4980 ldr r1, [pc, #512] @ (80207c0 <tcp_split_unsent_seg+0x290>)
  79519. 80205be: 487d ldr r0, [pc, #500] @ (80207b4 <tcp_split_unsent_seg+0x284>)
  79520. 80205c0: f00a f8cc bl 802a75c <iprintf>
  79521. * to split this packet so we may actually exceed the max value by
  79522. * one!
  79523. */
  79524. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue: split_unsent_seg: %u\n", (unsigned int)pcb->snd_queuelen));
  79525. optflags = useg->flags;
  79526. 80205c4: 697b ldr r3, [r7, #20]
  79527. 80205c6: 7b1b ldrb r3, [r3, #12]
  79528. 80205c8: 73fb strb r3, [r7, #15]
  79529. #if TCP_CHECKSUM_ON_COPY
  79530. /* Remove since checksum is not stored until after tcp_create_segment() */
  79531. optflags &= ~TF_SEG_DATA_CHECKSUMMED;
  79532. #endif /* TCP_CHECKSUM_ON_COPY */
  79533. optlen = LWIP_TCP_OPT_LENGTH(optflags);
  79534. 80205ca: 7bfb ldrb r3, [r7, #15]
  79535. 80205cc: 009b lsls r3, r3, #2
  79536. 80205ce: b2db uxtb r3, r3
  79537. 80205d0: f003 0304 and.w r3, r3, #4
  79538. 80205d4: 73bb strb r3, [r7, #14]
  79539. remainder = useg->len - split;
  79540. 80205d6: 697b ldr r3, [r7, #20]
  79541. 80205d8: 891a ldrh r2, [r3, #8]
  79542. 80205da: 887b ldrh r3, [r7, #2]
  79543. 80205dc: 1ad3 subs r3, r2, r3
  79544. 80205de: 81bb strh r3, [r7, #12]
  79545. /* Create new pbuf for the remainder of the split */
  79546. p = pbuf_alloc(PBUF_TRANSPORT, remainder + optlen, PBUF_RAM);
  79547. 80205e0: 7bbb ldrb r3, [r7, #14]
  79548. 80205e2: b29a uxth r2, r3
  79549. 80205e4: 89bb ldrh r3, [r7, #12]
  79550. 80205e6: 4413 add r3, r2
  79551. 80205e8: b29b uxth r3, r3
  79552. 80205ea: f44f 7220 mov.w r2, #640 @ 0x280
  79553. 80205ee: 4619 mov r1, r3
  79554. 80205f0: 2036 movs r0, #54 @ 0x36
  79555. 80205f2: f7fa fb25 bl 801ac40 <pbuf_alloc>
  79556. 80205f6: 6138 str r0, [r7, #16]
  79557. if (p == NULL) {
  79558. 80205f8: 693b ldr r3, [r7, #16]
  79559. 80205fa: 2b00 cmp r3, #0
  79560. 80205fc: f000 80ba beq.w 8020774 <tcp_split_unsent_seg+0x244>
  79561. ("tcp_split_unsent_seg: could not allocate memory for pbuf remainder %u\n", remainder));
  79562. goto memerr;
  79563. }
  79564. /* Offset into the original pbuf is past TCP/IP headers, options, and split amount */
  79565. offset = useg->p->tot_len - useg->len + split;
  79566. 8020600: 697b ldr r3, [r7, #20]
  79567. 8020602: 685b ldr r3, [r3, #4]
  79568. 8020604: 891a ldrh r2, [r3, #8]
  79569. 8020606: 697b ldr r3, [r7, #20]
  79570. 8020608: 891b ldrh r3, [r3, #8]
  79571. 802060a: 1ad3 subs r3, r2, r3
  79572. 802060c: b29a uxth r2, r3
  79573. 802060e: 887b ldrh r3, [r7, #2]
  79574. 8020610: 4413 add r3, r2
  79575. 8020612: 817b strh r3, [r7, #10]
  79576. /* Copy remainder into new pbuf, headers and options will not be filled out */
  79577. if (pbuf_copy_partial(useg->p, (u8_t *)p->payload + optlen, remainder, offset ) != remainder) {
  79578. 8020614: 697b ldr r3, [r7, #20]
  79579. 8020616: 6858 ldr r0, [r3, #4]
  79580. 8020618: 693b ldr r3, [r7, #16]
  79581. 802061a: 685a ldr r2, [r3, #4]
  79582. 802061c: 7bbb ldrb r3, [r7, #14]
  79583. 802061e: 18d1 adds r1, r2, r3
  79584. 8020620: 897b ldrh r3, [r7, #10]
  79585. 8020622: 89ba ldrh r2, [r7, #12]
  79586. 8020624: f7fb f828 bl 801b678 <pbuf_copy_partial>
  79587. 8020628: 4603 mov r3, r0
  79588. 802062a: 461a mov r2, r3
  79589. 802062c: 89bb ldrh r3, [r7, #12]
  79590. 802062e: 4293 cmp r3, r2
  79591. 8020630: f040 80a2 bne.w 8020778 <tcp_split_unsent_seg+0x248>
  79592. #endif /* TCP_CHECKSUM_ON_COPY */
  79593. /* Options are created when calling tcp_output() */
  79594. /* Migrate flags from original segment */
  79595. split_flags = TCPH_FLAGS(useg->tcphdr);
  79596. 8020634: 697b ldr r3, [r7, #20]
  79597. 8020636: 691b ldr r3, [r3, #16]
  79598. 8020638: 899b ldrh r3, [r3, #12]
  79599. 802063a: b29b uxth r3, r3
  79600. 802063c: 4618 mov r0, r3
  79601. 802063e: f7f9 f933 bl 80198a8 <lwip_htons>
  79602. 8020642: 4603 mov r3, r0
  79603. 8020644: b2db uxtb r3, r3
  79604. 8020646: f003 033f and.w r3, r3, #63 @ 0x3f
  79605. 802064a: 77fb strb r3, [r7, #31]
  79606. remainder_flags = 0; /* ACK added in tcp_output() */
  79607. 802064c: 2300 movs r3, #0
  79608. 802064e: 77bb strb r3, [r7, #30]
  79609. if (split_flags & TCP_PSH) {
  79610. 8020650: 7ffb ldrb r3, [r7, #31]
  79611. 8020652: f003 0308 and.w r3, r3, #8
  79612. 8020656: 2b00 cmp r3, #0
  79613. 8020658: d007 beq.n 802066a <tcp_split_unsent_seg+0x13a>
  79614. split_flags &= ~TCP_PSH;
  79615. 802065a: 7ffb ldrb r3, [r7, #31]
  79616. 802065c: f023 0308 bic.w r3, r3, #8
  79617. 8020660: 77fb strb r3, [r7, #31]
  79618. remainder_flags |= TCP_PSH;
  79619. 8020662: 7fbb ldrb r3, [r7, #30]
  79620. 8020664: f043 0308 orr.w r3, r3, #8
  79621. 8020668: 77bb strb r3, [r7, #30]
  79622. }
  79623. if (split_flags & TCP_FIN) {
  79624. 802066a: 7ffb ldrb r3, [r7, #31]
  79625. 802066c: f003 0301 and.w r3, r3, #1
  79626. 8020670: 2b00 cmp r3, #0
  79627. 8020672: d007 beq.n 8020684 <tcp_split_unsent_seg+0x154>
  79628. split_flags &= ~TCP_FIN;
  79629. 8020674: 7ffb ldrb r3, [r7, #31]
  79630. 8020676: f023 0301 bic.w r3, r3, #1
  79631. 802067a: 77fb strb r3, [r7, #31]
  79632. remainder_flags |= TCP_FIN;
  79633. 802067c: 7fbb ldrb r3, [r7, #30]
  79634. 802067e: f043 0301 orr.w r3, r3, #1
  79635. 8020682: 77bb strb r3, [r7, #30]
  79636. }
  79637. /* SYN should be left on split, RST should not be present with data */
  79638. seg = tcp_create_segment(pcb, p, remainder_flags, lwip_ntohl(useg->tcphdr->seqno) + split, optflags);
  79639. 8020684: 697b ldr r3, [r7, #20]
  79640. 8020686: 691b ldr r3, [r3, #16]
  79641. 8020688: 685b ldr r3, [r3, #4]
  79642. 802068a: 4618 mov r0, r3
  79643. 802068c: f7f9 f921 bl 80198d2 <lwip_htonl>
  79644. 8020690: 4602 mov r2, r0
  79645. 8020692: 887b ldrh r3, [r7, #2]
  79646. 8020694: 18d1 adds r1, r2, r3
  79647. 8020696: 7fba ldrb r2, [r7, #30]
  79648. 8020698: 7bfb ldrb r3, [r7, #15]
  79649. 802069a: 9300 str r3, [sp, #0]
  79650. 802069c: 460b mov r3, r1
  79651. 802069e: 6939 ldr r1, [r7, #16]
  79652. 80206a0: 6878 ldr r0, [r7, #4]
  79653. 80206a2: f7ff f9f1 bl 801fa88 <tcp_create_segment>
  79654. 80206a6: 61b8 str r0, [r7, #24]
  79655. if (seg == NULL) {
  79656. 80206a8: 69bb ldr r3, [r7, #24]
  79657. 80206aa: 2b00 cmp r3, #0
  79658. 80206ac: d066 beq.n 802077c <tcp_split_unsent_seg+0x24c>
  79659. seg->chksum_swapped = chksum_swapped;
  79660. seg->flags |= TF_SEG_DATA_CHECKSUMMED;
  79661. #endif /* TCP_CHECKSUM_ON_COPY */
  79662. /* Remove this segment from the queue since trimming it may free pbufs */
  79663. pcb->snd_queuelen -= pbuf_clen(useg->p);
  79664. 80206ae: 697b ldr r3, [r7, #20]
  79665. 80206b0: 685b ldr r3, [r3, #4]
  79666. 80206b2: 4618 mov r0, r3
  79667. 80206b4: f7fa fe68 bl 801b388 <pbuf_clen>
  79668. 80206b8: 4603 mov r3, r0
  79669. 80206ba: 461a mov r2, r3
  79670. 80206bc: 687b ldr r3, [r7, #4]
  79671. 80206be: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  79672. 80206c2: 1a9b subs r3, r3, r2
  79673. 80206c4: b29a uxth r2, r3
  79674. 80206c6: 687b ldr r3, [r7, #4]
  79675. 80206c8: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  79676. /* Trim the original pbuf into our split size. At this point our remainder segment must be setup
  79677. successfully because we are modifying the original segment */
  79678. pbuf_realloc(useg->p, useg->p->tot_len - remainder);
  79679. 80206cc: 697b ldr r3, [r7, #20]
  79680. 80206ce: 6858 ldr r0, [r3, #4]
  79681. 80206d0: 697b ldr r3, [r7, #20]
  79682. 80206d2: 685b ldr r3, [r3, #4]
  79683. 80206d4: 891a ldrh r2, [r3, #8]
  79684. 80206d6: 89bb ldrh r3, [r7, #12]
  79685. 80206d8: 1ad3 subs r3, r2, r3
  79686. 80206da: b29b uxth r3, r3
  79687. 80206dc: 4619 mov r1, r3
  79688. 80206de: f7fa fc0f bl 801af00 <pbuf_realloc>
  79689. useg->len -= remainder;
  79690. 80206e2: 697b ldr r3, [r7, #20]
  79691. 80206e4: 891a ldrh r2, [r3, #8]
  79692. 80206e6: 89bb ldrh r3, [r7, #12]
  79693. 80206e8: 1ad3 subs r3, r2, r3
  79694. 80206ea: b29a uxth r2, r3
  79695. 80206ec: 697b ldr r3, [r7, #20]
  79696. 80206ee: 811a strh r2, [r3, #8]
  79697. TCPH_SET_FLAG(useg->tcphdr, split_flags);
  79698. 80206f0: 697b ldr r3, [r7, #20]
  79699. 80206f2: 691b ldr r3, [r3, #16]
  79700. 80206f4: 899b ldrh r3, [r3, #12]
  79701. 80206f6: b29c uxth r4, r3
  79702. 80206f8: 7ffb ldrb r3, [r7, #31]
  79703. 80206fa: b29b uxth r3, r3
  79704. 80206fc: 4618 mov r0, r3
  79705. 80206fe: f7f9 f8d3 bl 80198a8 <lwip_htons>
  79706. 8020702: 4603 mov r3, r0
  79707. 8020704: 461a mov r2, r3
  79708. 8020706: 697b ldr r3, [r7, #20]
  79709. 8020708: 691b ldr r3, [r3, #16]
  79710. 802070a: 4322 orrs r2, r4
  79711. 802070c: b292 uxth r2, r2
  79712. 802070e: 819a strh r2, [r3, #12]
  79713. #if TCP_OVERSIZE_DBGCHECK
  79714. /* By trimming, realloc may have actually shrunk the pbuf, so clear oversize_left */
  79715. useg->oversize_left = 0;
  79716. 8020710: 697b ldr r3, [r7, #20]
  79717. 8020712: 2200 movs r2, #0
  79718. 8020714: 815a strh r2, [r3, #10]
  79719. #endif /* TCP_OVERSIZE_DBGCHECK */
  79720. /* Add back to the queue with new trimmed pbuf */
  79721. pcb->snd_queuelen += pbuf_clen(useg->p);
  79722. 8020716: 697b ldr r3, [r7, #20]
  79723. 8020718: 685b ldr r3, [r3, #4]
  79724. 802071a: 4618 mov r0, r3
  79725. 802071c: f7fa fe34 bl 801b388 <pbuf_clen>
  79726. 8020720: 4603 mov r3, r0
  79727. 8020722: 461a mov r2, r3
  79728. 8020724: 687b ldr r3, [r7, #4]
  79729. 8020726: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  79730. 802072a: 4413 add r3, r2
  79731. 802072c: b29a uxth r2, r3
  79732. 802072e: 687b ldr r3, [r7, #4]
  79733. 8020730: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  79734. #endif /* TCP_CHECKSUM_ON_COPY */
  79735. /* Update number of segments on the queues. Note that length now may
  79736. * exceed TCP_SND_QUEUELEN! We don't have to touch pcb->snd_buf
  79737. * because the total amount of data is constant when packet is split */
  79738. pcb->snd_queuelen += pbuf_clen(seg->p);
  79739. 8020734: 69bb ldr r3, [r7, #24]
  79740. 8020736: 685b ldr r3, [r3, #4]
  79741. 8020738: 4618 mov r0, r3
  79742. 802073a: f7fa fe25 bl 801b388 <pbuf_clen>
  79743. 802073e: 4603 mov r3, r0
  79744. 8020740: 461a mov r2, r3
  79745. 8020742: 687b ldr r3, [r7, #4]
  79746. 8020744: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  79747. 8020748: 4413 add r3, r2
  79748. 802074a: b29a uxth r2, r3
  79749. 802074c: 687b ldr r3, [r7, #4]
  79750. 802074e: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  79751. /* Finally insert remainder into queue after split (which stays head) */
  79752. seg->next = useg->next;
  79753. 8020752: 697b ldr r3, [r7, #20]
  79754. 8020754: 681a ldr r2, [r3, #0]
  79755. 8020756: 69bb ldr r3, [r7, #24]
  79756. 8020758: 601a str r2, [r3, #0]
  79757. useg->next = seg;
  79758. 802075a: 697b ldr r3, [r7, #20]
  79759. 802075c: 69ba ldr r2, [r7, #24]
  79760. 802075e: 601a str r2, [r3, #0]
  79761. #if TCP_OVERSIZE
  79762. /* If remainder is last segment on the unsent, ensure we clear the oversize amount
  79763. * because the remainder is always sized to the exact remaining amount */
  79764. if (seg->next == NULL) {
  79765. 8020760: 69bb ldr r3, [r7, #24]
  79766. 8020762: 681b ldr r3, [r3, #0]
  79767. 8020764: 2b00 cmp r3, #0
  79768. 8020766: d103 bne.n 8020770 <tcp_split_unsent_seg+0x240>
  79769. pcb->unsent_oversize = 0;
  79770. 8020768: 687b ldr r3, [r7, #4]
  79771. 802076a: 2200 movs r2, #0
  79772. 802076c: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  79773. }
  79774. #endif /* TCP_OVERSIZE */
  79775. return ERR_OK;
  79776. 8020770: 2300 movs r3, #0
  79777. 8020772: e016 b.n 80207a2 <tcp_split_unsent_seg+0x272>
  79778. goto memerr;
  79779. 8020774: bf00 nop
  79780. 8020776: e002 b.n 802077e <tcp_split_unsent_seg+0x24e>
  79781. goto memerr;
  79782. 8020778: bf00 nop
  79783. 802077a: e000 b.n 802077e <tcp_split_unsent_seg+0x24e>
  79784. goto memerr;
  79785. 802077c: bf00 nop
  79786. memerr:
  79787. TCP_STATS_INC(tcp.memerr);
  79788. LWIP_ASSERT("seg == NULL", seg == NULL);
  79789. 802077e: 69bb ldr r3, [r7, #24]
  79790. 8020780: 2b00 cmp r3, #0
  79791. 8020782: d006 beq.n 8020792 <tcp_split_unsent_seg+0x262>
  79792. 8020784: 4b09 ldr r3, [pc, #36] @ (80207ac <tcp_split_unsent_seg+0x27c>)
  79793. 8020786: f44f 7276 mov.w r2, #984 @ 0x3d8
  79794. 802078a: 490e ldr r1, [pc, #56] @ (80207c4 <tcp_split_unsent_seg+0x294>)
  79795. 802078c: 4809 ldr r0, [pc, #36] @ (80207b4 <tcp_split_unsent_seg+0x284>)
  79796. 802078e: f009 ffe5 bl 802a75c <iprintf>
  79797. if (p != NULL) {
  79798. 8020792: 693b ldr r3, [r7, #16]
  79799. 8020794: 2b00 cmp r3, #0
  79800. 8020796: d002 beq.n 802079e <tcp_split_unsent_seg+0x26e>
  79801. pbuf_free(p);
  79802. 8020798: 6938 ldr r0, [r7, #16]
  79803. 802079a: f7fa fd67 bl 801b26c <pbuf_free>
  79804. }
  79805. return ERR_MEM;
  79806. 802079e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  79807. }
  79808. 80207a2: 4618 mov r0, r3
  79809. 80207a4: 3724 adds r7, #36 @ 0x24
  79810. 80207a6: 46bd mov sp, r7
  79811. 80207a8: bd90 pop {r4, r7, pc}
  79812. 80207aa: bf00 nop
  79813. 80207ac: 08030074 .word 0x08030074
  79814. 80207b0: 08030464 .word 0x08030464
  79815. 80207b4: 080300c8 .word 0x080300c8
  79816. 80207b8: 08030488 .word 0x08030488
  79817. 80207bc: 080304ac .word 0x080304ac
  79818. 80207c0: 080304bc .word 0x080304bc
  79819. 80207c4: 080304cc .word 0x080304cc
  79820. 080207c8 <tcp_send_fin>:
  79821. * @param pcb the tcp_pcb over which to send a segment
  79822. * @return ERR_OK if sent, another err_t otherwise
  79823. */
  79824. err_t
  79825. tcp_send_fin(struct tcp_pcb *pcb)
  79826. {
  79827. 80207c8: b590 push {r4, r7, lr}
  79828. 80207ca: b085 sub sp, #20
  79829. 80207cc: af00 add r7, sp, #0
  79830. 80207ce: 6078 str r0, [r7, #4]
  79831. LWIP_ASSERT("tcp_send_fin: invalid pcb", pcb != NULL);
  79832. 80207d0: 687b ldr r3, [r7, #4]
  79833. 80207d2: 2b00 cmp r3, #0
  79834. 80207d4: d106 bne.n 80207e4 <tcp_send_fin+0x1c>
  79835. 80207d6: 4b21 ldr r3, [pc, #132] @ (802085c <tcp_send_fin+0x94>)
  79836. 80207d8: f240 32eb movw r2, #1003 @ 0x3eb
  79837. 80207dc: 4920 ldr r1, [pc, #128] @ (8020860 <tcp_send_fin+0x98>)
  79838. 80207de: 4821 ldr r0, [pc, #132] @ (8020864 <tcp_send_fin+0x9c>)
  79839. 80207e0: f009 ffbc bl 802a75c <iprintf>
  79840. /* first, try to add the fin to the last unsent segment */
  79841. if (pcb->unsent != NULL) {
  79842. 80207e4: 687b ldr r3, [r7, #4]
  79843. 80207e6: 6edb ldr r3, [r3, #108] @ 0x6c
  79844. 80207e8: 2b00 cmp r3, #0
  79845. 80207ea: d02e beq.n 802084a <tcp_send_fin+0x82>
  79846. struct tcp_seg *last_unsent;
  79847. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  79848. 80207ec: 687b ldr r3, [r7, #4]
  79849. 80207ee: 6edb ldr r3, [r3, #108] @ 0x6c
  79850. 80207f0: 60fb str r3, [r7, #12]
  79851. 80207f2: e002 b.n 80207fa <tcp_send_fin+0x32>
  79852. last_unsent = last_unsent->next);
  79853. 80207f4: 68fb ldr r3, [r7, #12]
  79854. 80207f6: 681b ldr r3, [r3, #0]
  79855. 80207f8: 60fb str r3, [r7, #12]
  79856. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  79857. 80207fa: 68fb ldr r3, [r7, #12]
  79858. 80207fc: 681b ldr r3, [r3, #0]
  79859. 80207fe: 2b00 cmp r3, #0
  79860. 8020800: d1f8 bne.n 80207f4 <tcp_send_fin+0x2c>
  79861. if ((TCPH_FLAGS(last_unsent->tcphdr) & (TCP_SYN | TCP_FIN | TCP_RST)) == 0) {
  79862. 8020802: 68fb ldr r3, [r7, #12]
  79863. 8020804: 691b ldr r3, [r3, #16]
  79864. 8020806: 899b ldrh r3, [r3, #12]
  79865. 8020808: b29b uxth r3, r3
  79866. 802080a: 4618 mov r0, r3
  79867. 802080c: f7f9 f84c bl 80198a8 <lwip_htons>
  79868. 8020810: 4603 mov r3, r0
  79869. 8020812: b2db uxtb r3, r3
  79870. 8020814: f003 0307 and.w r3, r3, #7
  79871. 8020818: 2b00 cmp r3, #0
  79872. 802081a: d116 bne.n 802084a <tcp_send_fin+0x82>
  79873. /* no SYN/FIN/RST flag in the header, we can add the FIN flag */
  79874. TCPH_SET_FLAG(last_unsent->tcphdr, TCP_FIN);
  79875. 802081c: 68fb ldr r3, [r7, #12]
  79876. 802081e: 691b ldr r3, [r3, #16]
  79877. 8020820: 899b ldrh r3, [r3, #12]
  79878. 8020822: b29c uxth r4, r3
  79879. 8020824: 2001 movs r0, #1
  79880. 8020826: f7f9 f83f bl 80198a8 <lwip_htons>
  79881. 802082a: 4603 mov r3, r0
  79882. 802082c: 461a mov r2, r3
  79883. 802082e: 68fb ldr r3, [r7, #12]
  79884. 8020830: 691b ldr r3, [r3, #16]
  79885. 8020832: 4322 orrs r2, r4
  79886. 8020834: b292 uxth r2, r2
  79887. 8020836: 819a strh r2, [r3, #12]
  79888. tcp_set_flags(pcb, TF_FIN);
  79889. 8020838: 687b ldr r3, [r7, #4]
  79890. 802083a: 8b5b ldrh r3, [r3, #26]
  79891. 802083c: f043 0320 orr.w r3, r3, #32
  79892. 8020840: b29a uxth r2, r3
  79893. 8020842: 687b ldr r3, [r7, #4]
  79894. 8020844: 835a strh r2, [r3, #26]
  79895. return ERR_OK;
  79896. 8020846: 2300 movs r3, #0
  79897. 8020848: e004 b.n 8020854 <tcp_send_fin+0x8c>
  79898. }
  79899. }
  79900. /* no data, no length, flags, copy=1, no optdata */
  79901. return tcp_enqueue_flags(pcb, TCP_FIN);
  79902. 802084a: 2101 movs r1, #1
  79903. 802084c: 6878 ldr r0, [r7, #4]
  79904. 802084e: f000 f80b bl 8020868 <tcp_enqueue_flags>
  79905. 8020852: 4603 mov r3, r0
  79906. }
  79907. 8020854: 4618 mov r0, r3
  79908. 8020856: 3714 adds r7, #20
  79909. 8020858: 46bd mov sp, r7
  79910. 802085a: bd90 pop {r4, r7, pc}
  79911. 802085c: 08030074 .word 0x08030074
  79912. 8020860: 080304d8 .word 0x080304d8
  79913. 8020864: 080300c8 .word 0x080300c8
  79914. 08020868 <tcp_enqueue_flags>:
  79915. * @param pcb Protocol control block for the TCP connection.
  79916. * @param flags TCP header flags to set in the outgoing segment.
  79917. */
  79918. err_t
  79919. tcp_enqueue_flags(struct tcp_pcb *pcb, u8_t flags)
  79920. {
  79921. 8020868: b580 push {r7, lr}
  79922. 802086a: b088 sub sp, #32
  79923. 802086c: af02 add r7, sp, #8
  79924. 802086e: 6078 str r0, [r7, #4]
  79925. 8020870: 460b mov r3, r1
  79926. 8020872: 70fb strb r3, [r7, #3]
  79927. struct pbuf *p;
  79928. struct tcp_seg *seg;
  79929. u8_t optflags = 0;
  79930. 8020874: 2300 movs r3, #0
  79931. 8020876: 75fb strb r3, [r7, #23]
  79932. u8_t optlen = 0;
  79933. 8020878: 2300 movs r3, #0
  79934. 802087a: 75bb strb r3, [r7, #22]
  79935. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue_flags: queuelen: %"U16_F"\n", (u16_t)pcb->snd_queuelen));
  79936. LWIP_ASSERT("tcp_enqueue_flags: need either TCP_SYN or TCP_FIN in flags (programmer violates API)",
  79937. 802087c: 78fb ldrb r3, [r7, #3]
  79938. 802087e: f003 0303 and.w r3, r3, #3
  79939. 8020882: 2b00 cmp r3, #0
  79940. 8020884: d106 bne.n 8020894 <tcp_enqueue_flags+0x2c>
  79941. 8020886: 4b67 ldr r3, [pc, #412] @ (8020a24 <tcp_enqueue_flags+0x1bc>)
  79942. 8020888: f240 4211 movw r2, #1041 @ 0x411
  79943. 802088c: 4966 ldr r1, [pc, #408] @ (8020a28 <tcp_enqueue_flags+0x1c0>)
  79944. 802088e: 4867 ldr r0, [pc, #412] @ (8020a2c <tcp_enqueue_flags+0x1c4>)
  79945. 8020890: f009 ff64 bl 802a75c <iprintf>
  79946. (flags & (TCP_SYN | TCP_FIN)) != 0);
  79947. LWIP_ASSERT("tcp_enqueue_flags: invalid pcb", pcb != NULL);
  79948. 8020894: 687b ldr r3, [r7, #4]
  79949. 8020896: 2b00 cmp r3, #0
  79950. 8020898: d106 bne.n 80208a8 <tcp_enqueue_flags+0x40>
  79951. 802089a: 4b62 ldr r3, [pc, #392] @ (8020a24 <tcp_enqueue_flags+0x1bc>)
  79952. 802089c: f240 4213 movw r2, #1043 @ 0x413
  79953. 80208a0: 4963 ldr r1, [pc, #396] @ (8020a30 <tcp_enqueue_flags+0x1c8>)
  79954. 80208a2: 4862 ldr r0, [pc, #392] @ (8020a2c <tcp_enqueue_flags+0x1c4>)
  79955. 80208a4: f009 ff5a bl 802a75c <iprintf>
  79956. /* No need to check pcb->snd_queuelen if only SYN or FIN are allowed! */
  79957. /* Get options for this segment. This is a special case since this is the
  79958. only place where a SYN can be sent. */
  79959. if (flags & TCP_SYN) {
  79960. 80208a8: 78fb ldrb r3, [r7, #3]
  79961. 80208aa: f003 0302 and.w r3, r3, #2
  79962. 80208ae: 2b00 cmp r3, #0
  79963. 80208b0: d001 beq.n 80208b6 <tcp_enqueue_flags+0x4e>
  79964. optflags = TF_SEG_OPTS_MSS;
  79965. 80208b2: 2301 movs r3, #1
  79966. 80208b4: 75fb strb r3, [r7, #23]
  79967. /* Make sure the timestamp option is only included in data segments if we
  79968. agreed about it with the remote host (and in active open SYN segments). */
  79969. optflags |= TF_SEG_OPTS_TS;
  79970. }
  79971. #endif /* LWIP_TCP_TIMESTAMPS */
  79972. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb);
  79973. 80208b6: 7dfb ldrb r3, [r7, #23]
  79974. 80208b8: 009b lsls r3, r3, #2
  79975. 80208ba: b2db uxtb r3, r3
  79976. 80208bc: f003 0304 and.w r3, r3, #4
  79977. 80208c0: 75bb strb r3, [r7, #22]
  79978. /* Allocate pbuf with room for TCP header + options */
  79979. if ((p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) {
  79980. 80208c2: 7dbb ldrb r3, [r7, #22]
  79981. 80208c4: b29b uxth r3, r3
  79982. 80208c6: f44f 7220 mov.w r2, #640 @ 0x280
  79983. 80208ca: 4619 mov r1, r3
  79984. 80208cc: 2036 movs r0, #54 @ 0x36
  79985. 80208ce: f7fa f9b7 bl 801ac40 <pbuf_alloc>
  79986. 80208d2: 60f8 str r0, [r7, #12]
  79987. 80208d4: 68fb ldr r3, [r7, #12]
  79988. 80208d6: 2b00 cmp r3, #0
  79989. 80208d8: d109 bne.n 80208ee <tcp_enqueue_flags+0x86>
  79990. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  79991. 80208da: 687b ldr r3, [r7, #4]
  79992. 80208dc: 8b5b ldrh r3, [r3, #26]
  79993. 80208de: f043 0380 orr.w r3, r3, #128 @ 0x80
  79994. 80208e2: b29a uxth r2, r3
  79995. 80208e4: 687b ldr r3, [r7, #4]
  79996. 80208e6: 835a strh r2, [r3, #26]
  79997. TCP_STATS_INC(tcp.memerr);
  79998. return ERR_MEM;
  79999. 80208e8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  80000. 80208ec: e095 b.n 8020a1a <tcp_enqueue_flags+0x1b2>
  80001. }
  80002. LWIP_ASSERT("tcp_enqueue_flags: check that first pbuf can hold optlen",
  80003. 80208ee: 68fb ldr r3, [r7, #12]
  80004. 80208f0: 895a ldrh r2, [r3, #10]
  80005. 80208f2: 7dbb ldrb r3, [r7, #22]
  80006. 80208f4: b29b uxth r3, r3
  80007. 80208f6: 429a cmp r2, r3
  80008. 80208f8: d206 bcs.n 8020908 <tcp_enqueue_flags+0xa0>
  80009. 80208fa: 4b4a ldr r3, [pc, #296] @ (8020a24 <tcp_enqueue_flags+0x1bc>)
  80010. 80208fc: f240 4239 movw r2, #1081 @ 0x439
  80011. 8020900: 494c ldr r1, [pc, #304] @ (8020a34 <tcp_enqueue_flags+0x1cc>)
  80012. 8020902: 484a ldr r0, [pc, #296] @ (8020a2c <tcp_enqueue_flags+0x1c4>)
  80013. 8020904: f009 ff2a bl 802a75c <iprintf>
  80014. (p->len >= optlen));
  80015. /* Allocate memory for tcp_seg, and fill in fields. */
  80016. if ((seg = tcp_create_segment(pcb, p, flags, pcb->snd_lbb, optflags)) == NULL) {
  80017. 8020908: 687b ldr r3, [r7, #4]
  80018. 802090a: 6dd9 ldr r1, [r3, #92] @ 0x5c
  80019. 802090c: 78fa ldrb r2, [r7, #3]
  80020. 802090e: 7dfb ldrb r3, [r7, #23]
  80021. 8020910: 9300 str r3, [sp, #0]
  80022. 8020912: 460b mov r3, r1
  80023. 8020914: 68f9 ldr r1, [r7, #12]
  80024. 8020916: 6878 ldr r0, [r7, #4]
  80025. 8020918: f7ff f8b6 bl 801fa88 <tcp_create_segment>
  80026. 802091c: 60b8 str r0, [r7, #8]
  80027. 802091e: 68bb ldr r3, [r7, #8]
  80028. 8020920: 2b00 cmp r3, #0
  80029. 8020922: d109 bne.n 8020938 <tcp_enqueue_flags+0xd0>
  80030. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  80031. 8020924: 687b ldr r3, [r7, #4]
  80032. 8020926: 8b5b ldrh r3, [r3, #26]
  80033. 8020928: f043 0380 orr.w r3, r3, #128 @ 0x80
  80034. 802092c: b29a uxth r2, r3
  80035. 802092e: 687b ldr r3, [r7, #4]
  80036. 8020930: 835a strh r2, [r3, #26]
  80037. TCP_STATS_INC(tcp.memerr);
  80038. return ERR_MEM;
  80039. 8020932: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  80040. 8020936: e070 b.n 8020a1a <tcp_enqueue_flags+0x1b2>
  80041. }
  80042. LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % LWIP_MIN(MEM_ALIGNMENT, 4)) == 0);
  80043. 8020938: 68bb ldr r3, [r7, #8]
  80044. 802093a: 691b ldr r3, [r3, #16]
  80045. 802093c: f003 0303 and.w r3, r3, #3
  80046. 8020940: 2b00 cmp r3, #0
  80047. 8020942: d006 beq.n 8020952 <tcp_enqueue_flags+0xea>
  80048. 8020944: 4b37 ldr r3, [pc, #220] @ (8020a24 <tcp_enqueue_flags+0x1bc>)
  80049. 8020946: f240 4242 movw r2, #1090 @ 0x442
  80050. 802094a: 493b ldr r1, [pc, #236] @ (8020a38 <tcp_enqueue_flags+0x1d0>)
  80051. 802094c: 4837 ldr r0, [pc, #220] @ (8020a2c <tcp_enqueue_flags+0x1c4>)
  80052. 802094e: f009 ff05 bl 802a75c <iprintf>
  80053. LWIP_ASSERT("tcp_enqueue_flags: invalid segment length", seg->len == 0);
  80054. 8020952: 68bb ldr r3, [r7, #8]
  80055. 8020954: 891b ldrh r3, [r3, #8]
  80056. 8020956: 2b00 cmp r3, #0
  80057. 8020958: d006 beq.n 8020968 <tcp_enqueue_flags+0x100>
  80058. 802095a: 4b32 ldr r3, [pc, #200] @ (8020a24 <tcp_enqueue_flags+0x1bc>)
  80059. 802095c: f240 4243 movw r2, #1091 @ 0x443
  80060. 8020960: 4936 ldr r1, [pc, #216] @ (8020a3c <tcp_enqueue_flags+0x1d4>)
  80061. 8020962: 4832 ldr r0, [pc, #200] @ (8020a2c <tcp_enqueue_flags+0x1c4>)
  80062. 8020964: f009 fefa bl 802a75c <iprintf>
  80063. lwip_ntohl(seg->tcphdr->seqno),
  80064. lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg),
  80065. (u16_t)flags));
  80066. /* Now append seg to pcb->unsent queue */
  80067. if (pcb->unsent == NULL) {
  80068. 8020968: 687b ldr r3, [r7, #4]
  80069. 802096a: 6edb ldr r3, [r3, #108] @ 0x6c
  80070. 802096c: 2b00 cmp r3, #0
  80071. 802096e: d103 bne.n 8020978 <tcp_enqueue_flags+0x110>
  80072. pcb->unsent = seg;
  80073. 8020970: 687b ldr r3, [r7, #4]
  80074. 8020972: 68ba ldr r2, [r7, #8]
  80075. 8020974: 66da str r2, [r3, #108] @ 0x6c
  80076. 8020976: e00d b.n 8020994 <tcp_enqueue_flags+0x12c>
  80077. } else {
  80078. struct tcp_seg *useg;
  80079. for (useg = pcb->unsent; useg->next != NULL; useg = useg->next);
  80080. 8020978: 687b ldr r3, [r7, #4]
  80081. 802097a: 6edb ldr r3, [r3, #108] @ 0x6c
  80082. 802097c: 613b str r3, [r7, #16]
  80083. 802097e: e002 b.n 8020986 <tcp_enqueue_flags+0x11e>
  80084. 8020980: 693b ldr r3, [r7, #16]
  80085. 8020982: 681b ldr r3, [r3, #0]
  80086. 8020984: 613b str r3, [r7, #16]
  80087. 8020986: 693b ldr r3, [r7, #16]
  80088. 8020988: 681b ldr r3, [r3, #0]
  80089. 802098a: 2b00 cmp r3, #0
  80090. 802098c: d1f8 bne.n 8020980 <tcp_enqueue_flags+0x118>
  80091. useg->next = seg;
  80092. 802098e: 693b ldr r3, [r7, #16]
  80093. 8020990: 68ba ldr r2, [r7, #8]
  80094. 8020992: 601a str r2, [r3, #0]
  80095. }
  80096. #if TCP_OVERSIZE
  80097. /* The new unsent tail has no space */
  80098. pcb->unsent_oversize = 0;
  80099. 8020994: 687b ldr r3, [r7, #4]
  80100. 8020996: 2200 movs r2, #0
  80101. 8020998: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  80102. #endif /* TCP_OVERSIZE */
  80103. /* SYN and FIN bump the sequence number */
  80104. if ((flags & TCP_SYN) || (flags & TCP_FIN)) {
  80105. 802099c: 78fb ldrb r3, [r7, #3]
  80106. 802099e: f003 0302 and.w r3, r3, #2
  80107. 80209a2: 2b00 cmp r3, #0
  80108. 80209a4: d104 bne.n 80209b0 <tcp_enqueue_flags+0x148>
  80109. 80209a6: 78fb ldrb r3, [r7, #3]
  80110. 80209a8: f003 0301 and.w r3, r3, #1
  80111. 80209ac: 2b00 cmp r3, #0
  80112. 80209ae: d004 beq.n 80209ba <tcp_enqueue_flags+0x152>
  80113. pcb->snd_lbb++;
  80114. 80209b0: 687b ldr r3, [r7, #4]
  80115. 80209b2: 6ddb ldr r3, [r3, #92] @ 0x5c
  80116. 80209b4: 1c5a adds r2, r3, #1
  80117. 80209b6: 687b ldr r3, [r7, #4]
  80118. 80209b8: 65da str r2, [r3, #92] @ 0x5c
  80119. /* optlen does not influence snd_buf */
  80120. }
  80121. if (flags & TCP_FIN) {
  80122. 80209ba: 78fb ldrb r3, [r7, #3]
  80123. 80209bc: f003 0301 and.w r3, r3, #1
  80124. 80209c0: 2b00 cmp r3, #0
  80125. 80209c2: d006 beq.n 80209d2 <tcp_enqueue_flags+0x16a>
  80126. tcp_set_flags(pcb, TF_FIN);
  80127. 80209c4: 687b ldr r3, [r7, #4]
  80128. 80209c6: 8b5b ldrh r3, [r3, #26]
  80129. 80209c8: f043 0320 orr.w r3, r3, #32
  80130. 80209cc: b29a uxth r2, r3
  80131. 80209ce: 687b ldr r3, [r7, #4]
  80132. 80209d0: 835a strh r2, [r3, #26]
  80133. }
  80134. /* update number of segments on the queues */
  80135. pcb->snd_queuelen += pbuf_clen(seg->p);
  80136. 80209d2: 68bb ldr r3, [r7, #8]
  80137. 80209d4: 685b ldr r3, [r3, #4]
  80138. 80209d6: 4618 mov r0, r3
  80139. 80209d8: f7fa fcd6 bl 801b388 <pbuf_clen>
  80140. 80209dc: 4603 mov r3, r0
  80141. 80209de: 461a mov r2, r3
  80142. 80209e0: 687b ldr r3, [r7, #4]
  80143. 80209e2: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  80144. 80209e6: 4413 add r3, r2
  80145. 80209e8: b29a uxth r2, r3
  80146. 80209ea: 687b ldr r3, [r7, #4]
  80147. 80209ec: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  80148. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue_flags: %"S16_F" (after enqueued)\n", pcb->snd_queuelen));
  80149. if (pcb->snd_queuelen != 0) {
  80150. 80209f0: 687b ldr r3, [r7, #4]
  80151. 80209f2: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  80152. 80209f6: 2b00 cmp r3, #0
  80153. 80209f8: d00e beq.n 8020a18 <tcp_enqueue_flags+0x1b0>
  80154. LWIP_ASSERT("tcp_enqueue_flags: invalid queue length",
  80155. 80209fa: 687b ldr r3, [r7, #4]
  80156. 80209fc: 6f1b ldr r3, [r3, #112] @ 0x70
  80157. 80209fe: 2b00 cmp r3, #0
  80158. 8020a00: d10a bne.n 8020a18 <tcp_enqueue_flags+0x1b0>
  80159. 8020a02: 687b ldr r3, [r7, #4]
  80160. 8020a04: 6edb ldr r3, [r3, #108] @ 0x6c
  80161. 8020a06: 2b00 cmp r3, #0
  80162. 8020a08: d106 bne.n 8020a18 <tcp_enqueue_flags+0x1b0>
  80163. 8020a0a: 4b06 ldr r3, [pc, #24] @ (8020a24 <tcp_enqueue_flags+0x1bc>)
  80164. 8020a0c: f240 4265 movw r2, #1125 @ 0x465
  80165. 8020a10: 490b ldr r1, [pc, #44] @ (8020a40 <tcp_enqueue_flags+0x1d8>)
  80166. 8020a12: 4806 ldr r0, [pc, #24] @ (8020a2c <tcp_enqueue_flags+0x1c4>)
  80167. 8020a14: f009 fea2 bl 802a75c <iprintf>
  80168. pcb->unacked != NULL || pcb->unsent != NULL);
  80169. }
  80170. return ERR_OK;
  80171. 8020a18: 2300 movs r3, #0
  80172. }
  80173. 8020a1a: 4618 mov r0, r3
  80174. 8020a1c: 3718 adds r7, #24
  80175. 8020a1e: 46bd mov sp, r7
  80176. 8020a20: bd80 pop {r7, pc}
  80177. 8020a22: bf00 nop
  80178. 8020a24: 08030074 .word 0x08030074
  80179. 8020a28: 080304f4 .word 0x080304f4
  80180. 8020a2c: 080300c8 .word 0x080300c8
  80181. 8020a30: 0803054c .word 0x0803054c
  80182. 8020a34: 0803056c .word 0x0803056c
  80183. 8020a38: 080305a8 .word 0x080305a8
  80184. 8020a3c: 080305c0 .word 0x080305c0
  80185. 8020a40: 080305ec .word 0x080305ec
  80186. 08020a44 <tcp_output>:
  80187. * @return ERR_OK if data has been sent or nothing to send
  80188. * another err_t on error
  80189. */
  80190. err_t
  80191. tcp_output(struct tcp_pcb *pcb)
  80192. {
  80193. 8020a44: b5b0 push {r4, r5, r7, lr}
  80194. 8020a46: b08a sub sp, #40 @ 0x28
  80195. 8020a48: af00 add r7, sp, #0
  80196. 8020a4a: 6078 str r0, [r7, #4]
  80197. struct netif *netif;
  80198. #if TCP_CWND_DEBUG
  80199. s16_t i = 0;
  80200. #endif /* TCP_CWND_DEBUG */
  80201. LWIP_ASSERT_CORE_LOCKED();
  80202. 8020a4c: f7f0 fa58 bl 8010f00 <sys_check_core_locking>
  80203. LWIP_ASSERT("tcp_output: invalid pcb", pcb != NULL);
  80204. 8020a50: 687b ldr r3, [r7, #4]
  80205. 8020a52: 2b00 cmp r3, #0
  80206. 8020a54: d106 bne.n 8020a64 <tcp_output+0x20>
  80207. 8020a56: 4b8a ldr r3, [pc, #552] @ (8020c80 <tcp_output+0x23c>)
  80208. 8020a58: f240 42e1 movw r2, #1249 @ 0x4e1
  80209. 8020a5c: 4989 ldr r1, [pc, #548] @ (8020c84 <tcp_output+0x240>)
  80210. 8020a5e: 488a ldr r0, [pc, #552] @ (8020c88 <tcp_output+0x244>)
  80211. 8020a60: f009 fe7c bl 802a75c <iprintf>
  80212. /* pcb->state LISTEN not allowed here */
  80213. LWIP_ASSERT("don't call tcp_output for listen-pcbs",
  80214. 8020a64: 687b ldr r3, [r7, #4]
  80215. 8020a66: 7d1b ldrb r3, [r3, #20]
  80216. 8020a68: 2b01 cmp r3, #1
  80217. 8020a6a: d106 bne.n 8020a7a <tcp_output+0x36>
  80218. 8020a6c: 4b84 ldr r3, [pc, #528] @ (8020c80 <tcp_output+0x23c>)
  80219. 8020a6e: f240 42e3 movw r2, #1251 @ 0x4e3
  80220. 8020a72: 4986 ldr r1, [pc, #536] @ (8020c8c <tcp_output+0x248>)
  80221. 8020a74: 4884 ldr r0, [pc, #528] @ (8020c88 <tcp_output+0x244>)
  80222. 8020a76: f009 fe71 bl 802a75c <iprintf>
  80223. /* First, check if we are invoked by the TCP input processing
  80224. code. If so, we do not output anything. Instead, we rely on the
  80225. input processing code to call us when input processing is done
  80226. with. */
  80227. if (tcp_input_pcb == pcb) {
  80228. 8020a7a: 4b85 ldr r3, [pc, #532] @ (8020c90 <tcp_output+0x24c>)
  80229. 8020a7c: 681b ldr r3, [r3, #0]
  80230. 8020a7e: 687a ldr r2, [r7, #4]
  80231. 8020a80: 429a cmp r2, r3
  80232. 8020a82: d101 bne.n 8020a88 <tcp_output+0x44>
  80233. return ERR_OK;
  80234. 8020a84: 2300 movs r3, #0
  80235. 8020a86: e1d1 b.n 8020e2c <tcp_output+0x3e8>
  80236. }
  80237. wnd = LWIP_MIN(pcb->snd_wnd, pcb->cwnd);
  80238. 8020a88: 687b ldr r3, [r7, #4]
  80239. 8020a8a: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  80240. 8020a8e: 687b ldr r3, [r7, #4]
  80241. 8020a90: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  80242. 8020a94: 4293 cmp r3, r2
  80243. 8020a96: bf28 it cs
  80244. 8020a98: 4613 movcs r3, r2
  80245. 8020a9a: b29b uxth r3, r3
  80246. 8020a9c: 61bb str r3, [r7, #24]
  80247. seg = pcb->unsent;
  80248. 8020a9e: 687b ldr r3, [r7, #4]
  80249. 8020aa0: 6edb ldr r3, [r3, #108] @ 0x6c
  80250. 8020aa2: 627b str r3, [r7, #36] @ 0x24
  80251. if (seg == NULL) {
  80252. 8020aa4: 6a7b ldr r3, [r7, #36] @ 0x24
  80253. 8020aa6: 2b00 cmp r3, #0
  80254. 8020aa8: d10b bne.n 8020ac2 <tcp_output+0x7e>
  80255. ", seg == NULL, ack %"U32_F"\n",
  80256. pcb->snd_wnd, pcb->cwnd, wnd, pcb->lastack));
  80257. /* If the TF_ACK_NOW flag is set and the ->unsent queue is empty, construct
  80258. * an empty ACK segment and send it. */
  80259. if (pcb->flags & TF_ACK_NOW) {
  80260. 8020aaa: 687b ldr r3, [r7, #4]
  80261. 8020aac: 8b5b ldrh r3, [r3, #26]
  80262. 8020aae: f003 0302 and.w r3, r3, #2
  80263. 8020ab2: 2b00 cmp r3, #0
  80264. 8020ab4: f000 81ad beq.w 8020e12 <tcp_output+0x3ce>
  80265. return tcp_send_empty_ack(pcb);
  80266. 8020ab8: 6878 ldr r0, [r7, #4]
  80267. 8020aba: f000 fdd7 bl 802166c <tcp_send_empty_ack>
  80268. 8020abe: 4603 mov r3, r0
  80269. 8020ac0: e1b4 b.n 8020e2c <tcp_output+0x3e8>
  80270. pcb->snd_wnd, pcb->cwnd, wnd,
  80271. lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len,
  80272. lwip_ntohl(seg->tcphdr->seqno), pcb->lastack));
  80273. }
  80274. netif = tcp_route(pcb, &pcb->local_ip, &pcb->remote_ip);
  80275. 8020ac2: 6879 ldr r1, [r7, #4]
  80276. 8020ac4: 687b ldr r3, [r7, #4]
  80277. 8020ac6: 3304 adds r3, #4
  80278. 8020ac8: 461a mov r2, r3
  80279. 8020aca: 6878 ldr r0, [r7, #4]
  80280. 8020acc: f7fe ffc0 bl 801fa50 <tcp_route>
  80281. 8020ad0: 6178 str r0, [r7, #20]
  80282. if (netif == NULL) {
  80283. 8020ad2: 697b ldr r3, [r7, #20]
  80284. 8020ad4: 2b00 cmp r3, #0
  80285. 8020ad6: d102 bne.n 8020ade <tcp_output+0x9a>
  80286. return ERR_RTE;
  80287. 8020ad8: f06f 0303 mvn.w r3, #3
  80288. 8020adc: e1a6 b.n 8020e2c <tcp_output+0x3e8>
  80289. }
  80290. /* If we don't have a local IP address, we get one from netif */
  80291. if (ip_addr_isany(&pcb->local_ip)) {
  80292. 8020ade: 687b ldr r3, [r7, #4]
  80293. 8020ae0: 2b00 cmp r3, #0
  80294. 8020ae2: d003 beq.n 8020aec <tcp_output+0xa8>
  80295. 8020ae4: 687b ldr r3, [r7, #4]
  80296. 8020ae6: 681b ldr r3, [r3, #0]
  80297. 8020ae8: 2b00 cmp r3, #0
  80298. 8020aea: d111 bne.n 8020b10 <tcp_output+0xcc>
  80299. const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, &pcb->remote_ip);
  80300. 8020aec: 697b ldr r3, [r7, #20]
  80301. 8020aee: 2b00 cmp r3, #0
  80302. 8020af0: d002 beq.n 8020af8 <tcp_output+0xb4>
  80303. 8020af2: 697b ldr r3, [r7, #20]
  80304. 8020af4: 3304 adds r3, #4
  80305. 8020af6: e000 b.n 8020afa <tcp_output+0xb6>
  80306. 8020af8: 2300 movs r3, #0
  80307. 8020afa: 613b str r3, [r7, #16]
  80308. if (local_ip == NULL) {
  80309. 8020afc: 693b ldr r3, [r7, #16]
  80310. 8020afe: 2b00 cmp r3, #0
  80311. 8020b00: d102 bne.n 8020b08 <tcp_output+0xc4>
  80312. return ERR_RTE;
  80313. 8020b02: f06f 0303 mvn.w r3, #3
  80314. 8020b06: e191 b.n 8020e2c <tcp_output+0x3e8>
  80315. }
  80316. ip_addr_copy(pcb->local_ip, *local_ip);
  80317. 8020b08: 693b ldr r3, [r7, #16]
  80318. 8020b0a: 681a ldr r2, [r3, #0]
  80319. 8020b0c: 687b ldr r3, [r7, #4]
  80320. 8020b0e: 601a str r2, [r3, #0]
  80321. }
  80322. /* Handle the current segment not fitting within the window */
  80323. if (lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len > wnd) {
  80324. 8020b10: 6a7b ldr r3, [r7, #36] @ 0x24
  80325. 8020b12: 691b ldr r3, [r3, #16]
  80326. 8020b14: 685b ldr r3, [r3, #4]
  80327. 8020b16: 4618 mov r0, r3
  80328. 8020b18: f7f8 fedb bl 80198d2 <lwip_htonl>
  80329. 8020b1c: 4602 mov r2, r0
  80330. 8020b1e: 687b ldr r3, [r7, #4]
  80331. 8020b20: 6c5b ldr r3, [r3, #68] @ 0x44
  80332. 8020b22: 1ad3 subs r3, r2, r3
  80333. 8020b24: 6a7a ldr r2, [r7, #36] @ 0x24
  80334. 8020b26: 8912 ldrh r2, [r2, #8]
  80335. 8020b28: 4413 add r3, r2
  80336. 8020b2a: 69ba ldr r2, [r7, #24]
  80337. 8020b2c: 429a cmp r2, r3
  80338. 8020b2e: d227 bcs.n 8020b80 <tcp_output+0x13c>
  80339. * within the remaining (could be 0) send window and RTO timer is not running (we
  80340. * have no in-flight data). If window is still too small after persist timer fires,
  80341. * then we split the segment. We don't consider the congestion window since a cwnd
  80342. * smaller than 1 SMSS implies in-flight data
  80343. */
  80344. if (wnd == pcb->snd_wnd && pcb->unacked == NULL && pcb->persist_backoff == 0) {
  80345. 8020b30: 687b ldr r3, [r7, #4]
  80346. 8020b32: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  80347. 8020b36: 461a mov r2, r3
  80348. 8020b38: 69bb ldr r3, [r7, #24]
  80349. 8020b3a: 4293 cmp r3, r2
  80350. 8020b3c: d114 bne.n 8020b68 <tcp_output+0x124>
  80351. 8020b3e: 687b ldr r3, [r7, #4]
  80352. 8020b40: 6f1b ldr r3, [r3, #112] @ 0x70
  80353. 8020b42: 2b00 cmp r3, #0
  80354. 8020b44: d110 bne.n 8020b68 <tcp_output+0x124>
  80355. 8020b46: 687b ldr r3, [r7, #4]
  80356. 8020b48: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  80357. 8020b4c: 2b00 cmp r3, #0
  80358. 8020b4e: d10b bne.n 8020b68 <tcp_output+0x124>
  80359. pcb->persist_cnt = 0;
  80360. 8020b50: 687b ldr r3, [r7, #4]
  80361. 8020b52: 2200 movs r2, #0
  80362. 8020b54: f883 2098 strb.w r2, [r3, #152] @ 0x98
  80363. pcb->persist_backoff = 1;
  80364. 8020b58: 687b ldr r3, [r7, #4]
  80365. 8020b5a: 2201 movs r2, #1
  80366. 8020b5c: f883 2099 strb.w r2, [r3, #153] @ 0x99
  80367. pcb->persist_probe = 0;
  80368. 8020b60: 687b ldr r3, [r7, #4]
  80369. 8020b62: 2200 movs r2, #0
  80370. 8020b64: f883 209a strb.w r2, [r3, #154] @ 0x9a
  80371. }
  80372. /* We need an ACK, but can't send data now, so send an empty ACK */
  80373. if (pcb->flags & TF_ACK_NOW) {
  80374. 8020b68: 687b ldr r3, [r7, #4]
  80375. 8020b6a: 8b5b ldrh r3, [r3, #26]
  80376. 8020b6c: f003 0302 and.w r3, r3, #2
  80377. 8020b70: 2b00 cmp r3, #0
  80378. 8020b72: f000 8150 beq.w 8020e16 <tcp_output+0x3d2>
  80379. return tcp_send_empty_ack(pcb);
  80380. 8020b76: 6878 ldr r0, [r7, #4]
  80381. 8020b78: f000 fd78 bl 802166c <tcp_send_empty_ack>
  80382. 8020b7c: 4603 mov r3, r0
  80383. 8020b7e: e155 b.n 8020e2c <tcp_output+0x3e8>
  80384. }
  80385. goto output_done;
  80386. }
  80387. /* Stop persist timer, above conditions are not active */
  80388. pcb->persist_backoff = 0;
  80389. 8020b80: 687b ldr r3, [r7, #4]
  80390. 8020b82: 2200 movs r2, #0
  80391. 8020b84: f883 2099 strb.w r2, [r3, #153] @ 0x99
  80392. /* useg should point to last segment on unacked queue */
  80393. useg = pcb->unacked;
  80394. 8020b88: 687b ldr r3, [r7, #4]
  80395. 8020b8a: 6f1b ldr r3, [r3, #112] @ 0x70
  80396. 8020b8c: 623b str r3, [r7, #32]
  80397. if (useg != NULL) {
  80398. 8020b8e: 6a3b ldr r3, [r7, #32]
  80399. 8020b90: 2b00 cmp r3, #0
  80400. 8020b92: f000 811f beq.w 8020dd4 <tcp_output+0x390>
  80401. for (; useg->next != NULL; useg = useg->next);
  80402. 8020b96: e002 b.n 8020b9e <tcp_output+0x15a>
  80403. 8020b98: 6a3b ldr r3, [r7, #32]
  80404. 8020b9a: 681b ldr r3, [r3, #0]
  80405. 8020b9c: 623b str r3, [r7, #32]
  80406. 8020b9e: 6a3b ldr r3, [r7, #32]
  80407. 8020ba0: 681b ldr r3, [r3, #0]
  80408. 8020ba2: 2b00 cmp r3, #0
  80409. 8020ba4: d1f8 bne.n 8020b98 <tcp_output+0x154>
  80410. }
  80411. /* data available and window allows it to be sent? */
  80412. while (seg != NULL &&
  80413. 8020ba6: e115 b.n 8020dd4 <tcp_output+0x390>
  80414. lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
  80415. LWIP_ASSERT("RST not expected here!",
  80416. 8020ba8: 6a7b ldr r3, [r7, #36] @ 0x24
  80417. 8020baa: 691b ldr r3, [r3, #16]
  80418. 8020bac: 899b ldrh r3, [r3, #12]
  80419. 8020bae: b29b uxth r3, r3
  80420. 8020bb0: 4618 mov r0, r3
  80421. 8020bb2: f7f8 fe79 bl 80198a8 <lwip_htons>
  80422. 8020bb6: 4603 mov r3, r0
  80423. 8020bb8: b2db uxtb r3, r3
  80424. 8020bba: f003 0304 and.w r3, r3, #4
  80425. 8020bbe: 2b00 cmp r3, #0
  80426. 8020bc0: d006 beq.n 8020bd0 <tcp_output+0x18c>
  80427. 8020bc2: 4b2f ldr r3, [pc, #188] @ (8020c80 <tcp_output+0x23c>)
  80428. 8020bc4: f240 5236 movw r2, #1334 @ 0x536
  80429. 8020bc8: 4932 ldr r1, [pc, #200] @ (8020c94 <tcp_output+0x250>)
  80430. 8020bca: 482f ldr r0, [pc, #188] @ (8020c88 <tcp_output+0x244>)
  80431. 8020bcc: f009 fdc6 bl 802a75c <iprintf>
  80432. * - if tcp_write had a memory error before (prevent delayed ACK timeout) or
  80433. * - if FIN was already enqueued for this PCB (SYN is always alone in a segment -
  80434. * either seg->next != NULL or pcb->unacked == NULL;
  80435. * RST is no sent using tcp_write/tcp_output.
  80436. */
  80437. if ((tcp_do_output_nagle(pcb) == 0) &&
  80438. 8020bd0: 687b ldr r3, [r7, #4]
  80439. 8020bd2: 6f1b ldr r3, [r3, #112] @ 0x70
  80440. 8020bd4: 2b00 cmp r3, #0
  80441. 8020bd6: d01f beq.n 8020c18 <tcp_output+0x1d4>
  80442. 8020bd8: 687b ldr r3, [r7, #4]
  80443. 8020bda: 8b5b ldrh r3, [r3, #26]
  80444. 8020bdc: f003 0344 and.w r3, r3, #68 @ 0x44
  80445. 8020be0: 2b00 cmp r3, #0
  80446. 8020be2: d119 bne.n 8020c18 <tcp_output+0x1d4>
  80447. 8020be4: 687b ldr r3, [r7, #4]
  80448. 8020be6: 6edb ldr r3, [r3, #108] @ 0x6c
  80449. 8020be8: 2b00 cmp r3, #0
  80450. 8020bea: d00b beq.n 8020c04 <tcp_output+0x1c0>
  80451. 8020bec: 687b ldr r3, [r7, #4]
  80452. 8020bee: 6edb ldr r3, [r3, #108] @ 0x6c
  80453. 8020bf0: 681b ldr r3, [r3, #0]
  80454. 8020bf2: 2b00 cmp r3, #0
  80455. 8020bf4: d110 bne.n 8020c18 <tcp_output+0x1d4>
  80456. 8020bf6: 687b ldr r3, [r7, #4]
  80457. 8020bf8: 6edb ldr r3, [r3, #108] @ 0x6c
  80458. 8020bfa: 891a ldrh r2, [r3, #8]
  80459. 8020bfc: 687b ldr r3, [r7, #4]
  80460. 8020bfe: 8e5b ldrh r3, [r3, #50] @ 0x32
  80461. 8020c00: 429a cmp r2, r3
  80462. 8020c02: d209 bcs.n 8020c18 <tcp_output+0x1d4>
  80463. 8020c04: 687b ldr r3, [r7, #4]
  80464. 8020c06: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  80465. 8020c0a: 2b00 cmp r3, #0
  80466. 8020c0c: d004 beq.n 8020c18 <tcp_output+0x1d4>
  80467. 8020c0e: 687b ldr r3, [r7, #4]
  80468. 8020c10: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  80469. 8020c14: 2b0f cmp r3, #15
  80470. 8020c16: d901 bls.n 8020c1c <tcp_output+0x1d8>
  80471. 8020c18: 2301 movs r3, #1
  80472. 8020c1a: e000 b.n 8020c1e <tcp_output+0x1da>
  80473. 8020c1c: 2300 movs r3, #0
  80474. 8020c1e: 2b00 cmp r3, #0
  80475. 8020c20: d106 bne.n 8020c30 <tcp_output+0x1ec>
  80476. ((pcb->flags & (TF_NAGLEMEMERR | TF_FIN)) == 0)) {
  80477. 8020c22: 687b ldr r3, [r7, #4]
  80478. 8020c24: 8b5b ldrh r3, [r3, #26]
  80479. 8020c26: f003 03a0 and.w r3, r3, #160 @ 0xa0
  80480. if ((tcp_do_output_nagle(pcb) == 0) &&
  80481. 8020c2a: 2b00 cmp r3, #0
  80482. 8020c2c: f000 80e7 beq.w 8020dfe <tcp_output+0x3ba>
  80483. pcb->lastack,
  80484. lwip_ntohl(seg->tcphdr->seqno), pcb->lastack, i));
  80485. ++i;
  80486. #endif /* TCP_CWND_DEBUG */
  80487. if (pcb->state != SYN_SENT) {
  80488. 8020c30: 687b ldr r3, [r7, #4]
  80489. 8020c32: 7d1b ldrb r3, [r3, #20]
  80490. 8020c34: 2b02 cmp r3, #2
  80491. 8020c36: d00d beq.n 8020c54 <tcp_output+0x210>
  80492. TCPH_SET_FLAG(seg->tcphdr, TCP_ACK);
  80493. 8020c38: 6a7b ldr r3, [r7, #36] @ 0x24
  80494. 8020c3a: 691b ldr r3, [r3, #16]
  80495. 8020c3c: 899b ldrh r3, [r3, #12]
  80496. 8020c3e: b29c uxth r4, r3
  80497. 8020c40: 2010 movs r0, #16
  80498. 8020c42: f7f8 fe31 bl 80198a8 <lwip_htons>
  80499. 8020c46: 4603 mov r3, r0
  80500. 8020c48: 461a mov r2, r3
  80501. 8020c4a: 6a7b ldr r3, [r7, #36] @ 0x24
  80502. 8020c4c: 691b ldr r3, [r3, #16]
  80503. 8020c4e: 4322 orrs r2, r4
  80504. 8020c50: b292 uxth r2, r2
  80505. 8020c52: 819a strh r2, [r3, #12]
  80506. }
  80507. err = tcp_output_segment(seg, pcb, netif);
  80508. 8020c54: 697a ldr r2, [r7, #20]
  80509. 8020c56: 6879 ldr r1, [r7, #4]
  80510. 8020c58: 6a78 ldr r0, [r7, #36] @ 0x24
  80511. 8020c5a: f000 f90b bl 8020e74 <tcp_output_segment>
  80512. 8020c5e: 4603 mov r3, r0
  80513. 8020c60: 73fb strb r3, [r7, #15]
  80514. if (err != ERR_OK) {
  80515. 8020c62: f997 300f ldrsb.w r3, [r7, #15]
  80516. 8020c66: 2b00 cmp r3, #0
  80517. 8020c68: d016 beq.n 8020c98 <tcp_output+0x254>
  80518. /* segment could not be sent, for whatever reason */
  80519. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  80520. 8020c6a: 687b ldr r3, [r7, #4]
  80521. 8020c6c: 8b5b ldrh r3, [r3, #26]
  80522. 8020c6e: f043 0380 orr.w r3, r3, #128 @ 0x80
  80523. 8020c72: b29a uxth r2, r3
  80524. 8020c74: 687b ldr r3, [r7, #4]
  80525. 8020c76: 835a strh r2, [r3, #26]
  80526. return err;
  80527. 8020c78: f997 300f ldrsb.w r3, [r7, #15]
  80528. 8020c7c: e0d6 b.n 8020e2c <tcp_output+0x3e8>
  80529. 8020c7e: bf00 nop
  80530. 8020c80: 08030074 .word 0x08030074
  80531. 8020c84: 08030614 .word 0x08030614
  80532. 8020c88: 080300c8 .word 0x080300c8
  80533. 8020c8c: 0803062c .word 0x0803062c
  80534. 8020c90: 2402afb8 .word 0x2402afb8
  80535. 8020c94: 08030654 .word 0x08030654
  80536. }
  80537. #if TCP_OVERSIZE_DBGCHECK
  80538. seg->oversize_left = 0;
  80539. 8020c98: 6a7b ldr r3, [r7, #36] @ 0x24
  80540. 8020c9a: 2200 movs r2, #0
  80541. 8020c9c: 815a strh r2, [r3, #10]
  80542. #endif /* TCP_OVERSIZE_DBGCHECK */
  80543. pcb->unsent = seg->next;
  80544. 8020c9e: 6a7b ldr r3, [r7, #36] @ 0x24
  80545. 8020ca0: 681a ldr r2, [r3, #0]
  80546. 8020ca2: 687b ldr r3, [r7, #4]
  80547. 8020ca4: 66da str r2, [r3, #108] @ 0x6c
  80548. if (pcb->state != SYN_SENT) {
  80549. 8020ca6: 687b ldr r3, [r7, #4]
  80550. 8020ca8: 7d1b ldrb r3, [r3, #20]
  80551. 8020caa: 2b02 cmp r3, #2
  80552. 8020cac: d006 beq.n 8020cbc <tcp_output+0x278>
  80553. tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  80554. 8020cae: 687b ldr r3, [r7, #4]
  80555. 8020cb0: 8b5b ldrh r3, [r3, #26]
  80556. 8020cb2: f023 0303 bic.w r3, r3, #3
  80557. 8020cb6: b29a uxth r2, r3
  80558. 8020cb8: 687b ldr r3, [r7, #4]
  80559. 8020cba: 835a strh r2, [r3, #26]
  80560. }
  80561. snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg);
  80562. 8020cbc: 6a7b ldr r3, [r7, #36] @ 0x24
  80563. 8020cbe: 691b ldr r3, [r3, #16]
  80564. 8020cc0: 685b ldr r3, [r3, #4]
  80565. 8020cc2: 4618 mov r0, r3
  80566. 8020cc4: f7f8 fe05 bl 80198d2 <lwip_htonl>
  80567. 8020cc8: 4604 mov r4, r0
  80568. 8020cca: 6a7b ldr r3, [r7, #36] @ 0x24
  80569. 8020ccc: 891b ldrh r3, [r3, #8]
  80570. 8020cce: 461d mov r5, r3
  80571. 8020cd0: 6a7b ldr r3, [r7, #36] @ 0x24
  80572. 8020cd2: 691b ldr r3, [r3, #16]
  80573. 8020cd4: 899b ldrh r3, [r3, #12]
  80574. 8020cd6: b29b uxth r3, r3
  80575. 8020cd8: 4618 mov r0, r3
  80576. 8020cda: f7f8 fde5 bl 80198a8 <lwip_htons>
  80577. 8020cde: 4603 mov r3, r0
  80578. 8020ce0: b2db uxtb r3, r3
  80579. 8020ce2: f003 0303 and.w r3, r3, #3
  80580. 8020ce6: 2b00 cmp r3, #0
  80581. 8020ce8: d001 beq.n 8020cee <tcp_output+0x2aa>
  80582. 8020cea: 2301 movs r3, #1
  80583. 8020cec: e000 b.n 8020cf0 <tcp_output+0x2ac>
  80584. 8020cee: 2300 movs r3, #0
  80585. 8020cf0: 442b add r3, r5
  80586. 8020cf2: 4423 add r3, r4
  80587. 8020cf4: 60bb str r3, [r7, #8]
  80588. if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) {
  80589. 8020cf6: 687b ldr r3, [r7, #4]
  80590. 8020cf8: 6d1a ldr r2, [r3, #80] @ 0x50
  80591. 8020cfa: 68bb ldr r3, [r7, #8]
  80592. 8020cfc: 1ad3 subs r3, r2, r3
  80593. 8020cfe: 2b00 cmp r3, #0
  80594. 8020d00: da02 bge.n 8020d08 <tcp_output+0x2c4>
  80595. pcb->snd_nxt = snd_nxt;
  80596. 8020d02: 687b ldr r3, [r7, #4]
  80597. 8020d04: 68ba ldr r2, [r7, #8]
  80598. 8020d06: 651a str r2, [r3, #80] @ 0x50
  80599. }
  80600. /* put segment on unacknowledged list if length > 0 */
  80601. if (TCP_TCPLEN(seg) > 0) {
  80602. 8020d08: 6a7b ldr r3, [r7, #36] @ 0x24
  80603. 8020d0a: 891b ldrh r3, [r3, #8]
  80604. 8020d0c: 461c mov r4, r3
  80605. 8020d0e: 6a7b ldr r3, [r7, #36] @ 0x24
  80606. 8020d10: 691b ldr r3, [r3, #16]
  80607. 8020d12: 899b ldrh r3, [r3, #12]
  80608. 8020d14: b29b uxth r3, r3
  80609. 8020d16: 4618 mov r0, r3
  80610. 8020d18: f7f8 fdc6 bl 80198a8 <lwip_htons>
  80611. 8020d1c: 4603 mov r3, r0
  80612. 8020d1e: b2db uxtb r3, r3
  80613. 8020d20: f003 0303 and.w r3, r3, #3
  80614. 8020d24: 2b00 cmp r3, #0
  80615. 8020d26: d001 beq.n 8020d2c <tcp_output+0x2e8>
  80616. 8020d28: 2301 movs r3, #1
  80617. 8020d2a: e000 b.n 8020d2e <tcp_output+0x2ea>
  80618. 8020d2c: 2300 movs r3, #0
  80619. 8020d2e: 4423 add r3, r4
  80620. 8020d30: 2b00 cmp r3, #0
  80621. 8020d32: d049 beq.n 8020dc8 <tcp_output+0x384>
  80622. seg->next = NULL;
  80623. 8020d34: 6a7b ldr r3, [r7, #36] @ 0x24
  80624. 8020d36: 2200 movs r2, #0
  80625. 8020d38: 601a str r2, [r3, #0]
  80626. /* unacked list is empty? */
  80627. if (pcb->unacked == NULL) {
  80628. 8020d3a: 687b ldr r3, [r7, #4]
  80629. 8020d3c: 6f1b ldr r3, [r3, #112] @ 0x70
  80630. 8020d3e: 2b00 cmp r3, #0
  80631. 8020d40: d105 bne.n 8020d4e <tcp_output+0x30a>
  80632. pcb->unacked = seg;
  80633. 8020d42: 687b ldr r3, [r7, #4]
  80634. 8020d44: 6a7a ldr r2, [r7, #36] @ 0x24
  80635. 8020d46: 671a str r2, [r3, #112] @ 0x70
  80636. useg = seg;
  80637. 8020d48: 6a7b ldr r3, [r7, #36] @ 0x24
  80638. 8020d4a: 623b str r3, [r7, #32]
  80639. 8020d4c: e03f b.n 8020dce <tcp_output+0x38a>
  80640. /* unacked list is not empty? */
  80641. } else {
  80642. /* In the case of fast retransmit, the packet should not go to the tail
  80643. * of the unacked queue, but rather somewhere before it. We need to check for
  80644. * this case. -STJ Jul 27, 2004 */
  80645. if (TCP_SEQ_LT(lwip_ntohl(seg->tcphdr->seqno), lwip_ntohl(useg->tcphdr->seqno))) {
  80646. 8020d4e: 6a7b ldr r3, [r7, #36] @ 0x24
  80647. 8020d50: 691b ldr r3, [r3, #16]
  80648. 8020d52: 685b ldr r3, [r3, #4]
  80649. 8020d54: 4618 mov r0, r3
  80650. 8020d56: f7f8 fdbc bl 80198d2 <lwip_htonl>
  80651. 8020d5a: 4604 mov r4, r0
  80652. 8020d5c: 6a3b ldr r3, [r7, #32]
  80653. 8020d5e: 691b ldr r3, [r3, #16]
  80654. 8020d60: 685b ldr r3, [r3, #4]
  80655. 8020d62: 4618 mov r0, r3
  80656. 8020d64: f7f8 fdb5 bl 80198d2 <lwip_htonl>
  80657. 8020d68: 4603 mov r3, r0
  80658. 8020d6a: 1ae3 subs r3, r4, r3
  80659. 8020d6c: 2b00 cmp r3, #0
  80660. 8020d6e: da24 bge.n 8020dba <tcp_output+0x376>
  80661. /* add segment to before tail of unacked list, keeping the list sorted */
  80662. struct tcp_seg **cur_seg = &(pcb->unacked);
  80663. 8020d70: 687b ldr r3, [r7, #4]
  80664. 8020d72: 3370 adds r3, #112 @ 0x70
  80665. 8020d74: 61fb str r3, [r7, #28]
  80666. while (*cur_seg &&
  80667. 8020d76: e002 b.n 8020d7e <tcp_output+0x33a>
  80668. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  80669. cur_seg = &((*cur_seg)->next );
  80670. 8020d78: 69fb ldr r3, [r7, #28]
  80671. 8020d7a: 681b ldr r3, [r3, #0]
  80672. 8020d7c: 61fb str r3, [r7, #28]
  80673. while (*cur_seg &&
  80674. 8020d7e: 69fb ldr r3, [r7, #28]
  80675. 8020d80: 681b ldr r3, [r3, #0]
  80676. 8020d82: 2b00 cmp r3, #0
  80677. 8020d84: d011 beq.n 8020daa <tcp_output+0x366>
  80678. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  80679. 8020d86: 69fb ldr r3, [r7, #28]
  80680. 8020d88: 681b ldr r3, [r3, #0]
  80681. 8020d8a: 691b ldr r3, [r3, #16]
  80682. 8020d8c: 685b ldr r3, [r3, #4]
  80683. 8020d8e: 4618 mov r0, r3
  80684. 8020d90: f7f8 fd9f bl 80198d2 <lwip_htonl>
  80685. 8020d94: 4604 mov r4, r0
  80686. 8020d96: 6a7b ldr r3, [r7, #36] @ 0x24
  80687. 8020d98: 691b ldr r3, [r3, #16]
  80688. 8020d9a: 685b ldr r3, [r3, #4]
  80689. 8020d9c: 4618 mov r0, r3
  80690. 8020d9e: f7f8 fd98 bl 80198d2 <lwip_htonl>
  80691. 8020da2: 4603 mov r3, r0
  80692. 8020da4: 1ae3 subs r3, r4, r3
  80693. while (*cur_seg &&
  80694. 8020da6: 2b00 cmp r3, #0
  80695. 8020da8: dbe6 blt.n 8020d78 <tcp_output+0x334>
  80696. }
  80697. seg->next = (*cur_seg);
  80698. 8020daa: 69fb ldr r3, [r7, #28]
  80699. 8020dac: 681a ldr r2, [r3, #0]
  80700. 8020dae: 6a7b ldr r3, [r7, #36] @ 0x24
  80701. 8020db0: 601a str r2, [r3, #0]
  80702. (*cur_seg) = seg;
  80703. 8020db2: 69fb ldr r3, [r7, #28]
  80704. 8020db4: 6a7a ldr r2, [r7, #36] @ 0x24
  80705. 8020db6: 601a str r2, [r3, #0]
  80706. 8020db8: e009 b.n 8020dce <tcp_output+0x38a>
  80707. } else {
  80708. /* add segment to tail of unacked list */
  80709. useg->next = seg;
  80710. 8020dba: 6a3b ldr r3, [r7, #32]
  80711. 8020dbc: 6a7a ldr r2, [r7, #36] @ 0x24
  80712. 8020dbe: 601a str r2, [r3, #0]
  80713. useg = useg->next;
  80714. 8020dc0: 6a3b ldr r3, [r7, #32]
  80715. 8020dc2: 681b ldr r3, [r3, #0]
  80716. 8020dc4: 623b str r3, [r7, #32]
  80717. 8020dc6: e002 b.n 8020dce <tcp_output+0x38a>
  80718. }
  80719. }
  80720. /* do not queue empty segments on the unacked list */
  80721. } else {
  80722. tcp_seg_free(seg);
  80723. 8020dc8: 6a78 ldr r0, [r7, #36] @ 0x24
  80724. 8020dca: f7fb fea8 bl 801cb1e <tcp_seg_free>
  80725. }
  80726. seg = pcb->unsent;
  80727. 8020dce: 687b ldr r3, [r7, #4]
  80728. 8020dd0: 6edb ldr r3, [r3, #108] @ 0x6c
  80729. 8020dd2: 627b str r3, [r7, #36] @ 0x24
  80730. while (seg != NULL &&
  80731. 8020dd4: 6a7b ldr r3, [r7, #36] @ 0x24
  80732. 8020dd6: 2b00 cmp r3, #0
  80733. 8020dd8: d012 beq.n 8020e00 <tcp_output+0x3bc>
  80734. lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
  80735. 8020dda: 6a7b ldr r3, [r7, #36] @ 0x24
  80736. 8020ddc: 691b ldr r3, [r3, #16]
  80737. 8020dde: 685b ldr r3, [r3, #4]
  80738. 8020de0: 4618 mov r0, r3
  80739. 8020de2: f7f8 fd76 bl 80198d2 <lwip_htonl>
  80740. 8020de6: 4602 mov r2, r0
  80741. 8020de8: 687b ldr r3, [r7, #4]
  80742. 8020dea: 6c5b ldr r3, [r3, #68] @ 0x44
  80743. 8020dec: 1ad3 subs r3, r2, r3
  80744. 8020dee: 6a7a ldr r2, [r7, #36] @ 0x24
  80745. 8020df0: 8912 ldrh r2, [r2, #8]
  80746. 8020df2: 4413 add r3, r2
  80747. while (seg != NULL &&
  80748. 8020df4: 69ba ldr r2, [r7, #24]
  80749. 8020df6: 429a cmp r2, r3
  80750. 8020df8: f4bf aed6 bcs.w 8020ba8 <tcp_output+0x164>
  80751. 8020dfc: e000 b.n 8020e00 <tcp_output+0x3bc>
  80752. break;
  80753. 8020dfe: bf00 nop
  80754. }
  80755. #if TCP_OVERSIZE
  80756. if (pcb->unsent == NULL) {
  80757. 8020e00: 687b ldr r3, [r7, #4]
  80758. 8020e02: 6edb ldr r3, [r3, #108] @ 0x6c
  80759. 8020e04: 2b00 cmp r3, #0
  80760. 8020e06: d108 bne.n 8020e1a <tcp_output+0x3d6>
  80761. /* last unsent has been removed, reset unsent_oversize */
  80762. pcb->unsent_oversize = 0;
  80763. 8020e08: 687b ldr r3, [r7, #4]
  80764. 8020e0a: 2200 movs r2, #0
  80765. 8020e0c: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  80766. 8020e10: e004 b.n 8020e1c <tcp_output+0x3d8>
  80767. goto output_done;
  80768. 8020e12: bf00 nop
  80769. 8020e14: e002 b.n 8020e1c <tcp_output+0x3d8>
  80770. goto output_done;
  80771. 8020e16: bf00 nop
  80772. 8020e18: e000 b.n 8020e1c <tcp_output+0x3d8>
  80773. }
  80774. #endif /* TCP_OVERSIZE */
  80775. output_done:
  80776. 8020e1a: bf00 nop
  80777. tcp_clear_flags(pcb, TF_NAGLEMEMERR);
  80778. 8020e1c: 687b ldr r3, [r7, #4]
  80779. 8020e1e: 8b5b ldrh r3, [r3, #26]
  80780. 8020e20: f023 0380 bic.w r3, r3, #128 @ 0x80
  80781. 8020e24: b29a uxth r2, r3
  80782. 8020e26: 687b ldr r3, [r7, #4]
  80783. 8020e28: 835a strh r2, [r3, #26]
  80784. return ERR_OK;
  80785. 8020e2a: 2300 movs r3, #0
  80786. }
  80787. 8020e2c: 4618 mov r0, r3
  80788. 8020e2e: 3728 adds r7, #40 @ 0x28
  80789. 8020e30: 46bd mov sp, r7
  80790. 8020e32: bdb0 pop {r4, r5, r7, pc}
  80791. 08020e34 <tcp_output_segment_busy>:
  80792. * @arg seg the tcp segment to check
  80793. * @return 1 if ref != 1, 0 if ref == 1
  80794. */
  80795. static int
  80796. tcp_output_segment_busy(const struct tcp_seg *seg)
  80797. {
  80798. 8020e34: b580 push {r7, lr}
  80799. 8020e36: b082 sub sp, #8
  80800. 8020e38: af00 add r7, sp, #0
  80801. 8020e3a: 6078 str r0, [r7, #4]
  80802. LWIP_ASSERT("tcp_output_segment_busy: invalid seg", seg != NULL);
  80803. 8020e3c: 687b ldr r3, [r7, #4]
  80804. 8020e3e: 2b00 cmp r3, #0
  80805. 8020e40: d106 bne.n 8020e50 <tcp_output_segment_busy+0x1c>
  80806. 8020e42: 4b09 ldr r3, [pc, #36] @ (8020e68 <tcp_output_segment_busy+0x34>)
  80807. 8020e44: f240 529a movw r2, #1434 @ 0x59a
  80808. 8020e48: 4908 ldr r1, [pc, #32] @ (8020e6c <tcp_output_segment_busy+0x38>)
  80809. 8020e4a: 4809 ldr r0, [pc, #36] @ (8020e70 <tcp_output_segment_busy+0x3c>)
  80810. 8020e4c: f009 fc86 bl 802a75c <iprintf>
  80811. /* We only need to check the first pbuf here:
  80812. If a pbuf is queued for transmission, a driver calls pbuf_ref(),
  80813. which only changes the ref count of the first pbuf */
  80814. if (seg->p->ref != 1) {
  80815. 8020e50: 687b ldr r3, [r7, #4]
  80816. 8020e52: 685b ldr r3, [r3, #4]
  80817. 8020e54: 7b9b ldrb r3, [r3, #14]
  80818. 8020e56: 2b01 cmp r3, #1
  80819. 8020e58: d001 beq.n 8020e5e <tcp_output_segment_busy+0x2a>
  80820. /* other reference found */
  80821. return 1;
  80822. 8020e5a: 2301 movs r3, #1
  80823. 8020e5c: e000 b.n 8020e60 <tcp_output_segment_busy+0x2c>
  80824. }
  80825. /* no other references found */
  80826. return 0;
  80827. 8020e5e: 2300 movs r3, #0
  80828. }
  80829. 8020e60: 4618 mov r0, r3
  80830. 8020e62: 3708 adds r7, #8
  80831. 8020e64: 46bd mov sp, r7
  80832. 8020e66: bd80 pop {r7, pc}
  80833. 8020e68: 08030074 .word 0x08030074
  80834. 8020e6c: 0803066c .word 0x0803066c
  80835. 8020e70: 080300c8 .word 0x080300c8
  80836. 08020e74 <tcp_output_segment>:
  80837. * @param pcb the tcp_pcb for the TCP connection used to send the segment
  80838. * @param netif the netif used to send the segment
  80839. */
  80840. static err_t
  80841. tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif)
  80842. {
  80843. 8020e74: b5b0 push {r4, r5, r7, lr}
  80844. 8020e76: b08c sub sp, #48 @ 0x30
  80845. 8020e78: af04 add r7, sp, #16
  80846. 8020e7a: 60f8 str r0, [r7, #12]
  80847. 8020e7c: 60b9 str r1, [r7, #8]
  80848. 8020e7e: 607a str r2, [r7, #4]
  80849. u32_t *opts;
  80850. #if TCP_CHECKSUM_ON_COPY
  80851. int seg_chksum_was_swapped = 0;
  80852. #endif
  80853. LWIP_ASSERT("tcp_output_segment: invalid seg", seg != NULL);
  80854. 8020e80: 68fb ldr r3, [r7, #12]
  80855. 8020e82: 2b00 cmp r3, #0
  80856. 8020e84: d106 bne.n 8020e94 <tcp_output_segment+0x20>
  80857. 8020e86: 4b64 ldr r3, [pc, #400] @ (8021018 <tcp_output_segment+0x1a4>)
  80858. 8020e88: f44f 62b7 mov.w r2, #1464 @ 0x5b8
  80859. 8020e8c: 4963 ldr r1, [pc, #396] @ (802101c <tcp_output_segment+0x1a8>)
  80860. 8020e8e: 4864 ldr r0, [pc, #400] @ (8021020 <tcp_output_segment+0x1ac>)
  80861. 8020e90: f009 fc64 bl 802a75c <iprintf>
  80862. LWIP_ASSERT("tcp_output_segment: invalid pcb", pcb != NULL);
  80863. 8020e94: 68bb ldr r3, [r7, #8]
  80864. 8020e96: 2b00 cmp r3, #0
  80865. 8020e98: d106 bne.n 8020ea8 <tcp_output_segment+0x34>
  80866. 8020e9a: 4b5f ldr r3, [pc, #380] @ (8021018 <tcp_output_segment+0x1a4>)
  80867. 8020e9c: f240 52b9 movw r2, #1465 @ 0x5b9
  80868. 8020ea0: 4960 ldr r1, [pc, #384] @ (8021024 <tcp_output_segment+0x1b0>)
  80869. 8020ea2: 485f ldr r0, [pc, #380] @ (8021020 <tcp_output_segment+0x1ac>)
  80870. 8020ea4: f009 fc5a bl 802a75c <iprintf>
  80871. LWIP_ASSERT("tcp_output_segment: invalid netif", netif != NULL);
  80872. 8020ea8: 687b ldr r3, [r7, #4]
  80873. 8020eaa: 2b00 cmp r3, #0
  80874. 8020eac: d106 bne.n 8020ebc <tcp_output_segment+0x48>
  80875. 8020eae: 4b5a ldr r3, [pc, #360] @ (8021018 <tcp_output_segment+0x1a4>)
  80876. 8020eb0: f240 52ba movw r2, #1466 @ 0x5ba
  80877. 8020eb4: 495c ldr r1, [pc, #368] @ (8021028 <tcp_output_segment+0x1b4>)
  80878. 8020eb6: 485a ldr r0, [pc, #360] @ (8021020 <tcp_output_segment+0x1ac>)
  80879. 8020eb8: f009 fc50 bl 802a75c <iprintf>
  80880. if (tcp_output_segment_busy(seg)) {
  80881. 8020ebc: 68f8 ldr r0, [r7, #12]
  80882. 8020ebe: f7ff ffb9 bl 8020e34 <tcp_output_segment_busy>
  80883. 8020ec2: 4603 mov r3, r0
  80884. 8020ec4: 2b00 cmp r3, #0
  80885. 8020ec6: d001 beq.n 8020ecc <tcp_output_segment+0x58>
  80886. /* This should not happen: rexmit functions should have checked this.
  80887. However, since this function modifies p->len, we must not continue in this case. */
  80888. LWIP_DEBUGF(TCP_RTO_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_output_segment: segment busy\n"));
  80889. return ERR_OK;
  80890. 8020ec8: 2300 movs r3, #0
  80891. 8020eca: e0a1 b.n 8021010 <tcp_output_segment+0x19c>
  80892. }
  80893. /* The TCP header has already been constructed, but the ackno and
  80894. wnd fields remain. */
  80895. seg->tcphdr->ackno = lwip_htonl(pcb->rcv_nxt);
  80896. 8020ecc: 68bb ldr r3, [r7, #8]
  80897. 8020ece: 6a5a ldr r2, [r3, #36] @ 0x24
  80898. 8020ed0: 68fb ldr r3, [r7, #12]
  80899. 8020ed2: 691c ldr r4, [r3, #16]
  80900. 8020ed4: 4610 mov r0, r2
  80901. 8020ed6: f7f8 fcfc bl 80198d2 <lwip_htonl>
  80902. 8020eda: 4603 mov r3, r0
  80903. 8020edc: 60a3 str r3, [r4, #8]
  80904. the window scale option) is never scaled. */
  80905. seg->tcphdr->wnd = lwip_htons(TCPWND_MIN16(pcb->rcv_ann_wnd));
  80906. } else
  80907. #endif /* LWIP_WND_SCALE */
  80908. {
  80909. seg->tcphdr->wnd = lwip_htons(TCPWND_MIN16(RCV_WND_SCALE(pcb, pcb->rcv_ann_wnd)));
  80910. 8020ede: 68bb ldr r3, [r7, #8]
  80911. 8020ee0: 8d5a ldrh r2, [r3, #42] @ 0x2a
  80912. 8020ee2: 68fb ldr r3, [r7, #12]
  80913. 8020ee4: 691c ldr r4, [r3, #16]
  80914. 8020ee6: 4610 mov r0, r2
  80915. 8020ee8: f7f8 fcde bl 80198a8 <lwip_htons>
  80916. 8020eec: 4603 mov r3, r0
  80917. 8020eee: 81e3 strh r3, [r4, #14]
  80918. }
  80919. pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd;
  80920. 8020ef0: 68bb ldr r3, [r7, #8]
  80921. 8020ef2: 6a5b ldr r3, [r3, #36] @ 0x24
  80922. 8020ef4: 68ba ldr r2, [r7, #8]
  80923. 8020ef6: 8d52 ldrh r2, [r2, #42] @ 0x2a
  80924. 8020ef8: 441a add r2, r3
  80925. 8020efa: 68bb ldr r3, [r7, #8]
  80926. 8020efc: 62da str r2, [r3, #44] @ 0x2c
  80927. /* Add any requested options. NB MSS option is only set on SYN
  80928. packets, so ignore it here */
  80929. /* cast through void* to get rid of alignment warnings */
  80930. opts = (u32_t *)(void *)(seg->tcphdr + 1);
  80931. 8020efe: 68fb ldr r3, [r7, #12]
  80932. 8020f00: 691b ldr r3, [r3, #16]
  80933. 8020f02: 3314 adds r3, #20
  80934. 8020f04: 61fb str r3, [r7, #28]
  80935. if (seg->flags & TF_SEG_OPTS_MSS) {
  80936. 8020f06: 68fb ldr r3, [r7, #12]
  80937. 8020f08: 7b1b ldrb r3, [r3, #12]
  80938. 8020f0a: f003 0301 and.w r3, r3, #1
  80939. 8020f0e: 2b00 cmp r3, #0
  80940. 8020f10: d015 beq.n 8020f3e <tcp_output_segment+0xca>
  80941. u16_t mss;
  80942. #if TCP_CALCULATE_EFF_SEND_MSS
  80943. mss = tcp_eff_send_mss_netif(TCP_MSS, netif, &pcb->remote_ip);
  80944. 8020f12: 68bb ldr r3, [r7, #8]
  80945. 8020f14: 3304 adds r3, #4
  80946. 8020f16: 461a mov r2, r3
  80947. 8020f18: 6879 ldr r1, [r7, #4]
  80948. 8020f1a: f240 50b4 movw r0, #1460 @ 0x5b4
  80949. 8020f1e: f7fc f9cd bl 801d2bc <tcp_eff_send_mss_netif>
  80950. 8020f22: 4603 mov r3, r0
  80951. 8020f24: 837b strh r3, [r7, #26]
  80952. #else /* TCP_CALCULATE_EFF_SEND_MSS */
  80953. mss = TCP_MSS;
  80954. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  80955. *opts = TCP_BUILD_MSS_OPTION(mss);
  80956. 8020f26: 8b7b ldrh r3, [r7, #26]
  80957. 8020f28: f043 7301 orr.w r3, r3, #33816576 @ 0x2040000
  80958. 8020f2c: 4618 mov r0, r3
  80959. 8020f2e: f7f8 fcd0 bl 80198d2 <lwip_htonl>
  80960. 8020f32: 4602 mov r2, r0
  80961. 8020f34: 69fb ldr r3, [r7, #28]
  80962. 8020f36: 601a str r2, [r3, #0]
  80963. opts += 1;
  80964. 8020f38: 69fb ldr r3, [r7, #28]
  80965. 8020f3a: 3304 adds r3, #4
  80966. 8020f3c: 61fb str r3, [r7, #28]
  80967. }
  80968. #endif
  80969. /* Set retransmission timer running if it is not currently enabled
  80970. This must be set before checking the route. */
  80971. if (pcb->rtime < 0) {
  80972. 8020f3e: 68bb ldr r3, [r7, #8]
  80973. 8020f40: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  80974. 8020f44: 2b00 cmp r3, #0
  80975. 8020f46: da02 bge.n 8020f4e <tcp_output_segment+0xda>
  80976. pcb->rtime = 0;
  80977. 8020f48: 68bb ldr r3, [r7, #8]
  80978. 8020f4a: 2200 movs r2, #0
  80979. 8020f4c: 861a strh r2, [r3, #48] @ 0x30
  80980. }
  80981. if (pcb->rttest == 0) {
  80982. 8020f4e: 68bb ldr r3, [r7, #8]
  80983. 8020f50: 6b5b ldr r3, [r3, #52] @ 0x34
  80984. 8020f52: 2b00 cmp r3, #0
  80985. 8020f54: d10c bne.n 8020f70 <tcp_output_segment+0xfc>
  80986. pcb->rttest = tcp_ticks;
  80987. 8020f56: 4b35 ldr r3, [pc, #212] @ (802102c <tcp_output_segment+0x1b8>)
  80988. 8020f58: 681a ldr r2, [r3, #0]
  80989. 8020f5a: 68bb ldr r3, [r7, #8]
  80990. 8020f5c: 635a str r2, [r3, #52] @ 0x34
  80991. pcb->rtseq = lwip_ntohl(seg->tcphdr->seqno);
  80992. 8020f5e: 68fb ldr r3, [r7, #12]
  80993. 8020f60: 691b ldr r3, [r3, #16]
  80994. 8020f62: 685b ldr r3, [r3, #4]
  80995. 8020f64: 4618 mov r0, r3
  80996. 8020f66: f7f8 fcb4 bl 80198d2 <lwip_htonl>
  80997. 8020f6a: 4602 mov r2, r0
  80998. 8020f6c: 68bb ldr r3, [r7, #8]
  80999. 8020f6e: 639a str r2, [r3, #56] @ 0x38
  81000. }
  81001. LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output_segment: %"U32_F":%"U32_F"\n",
  81002. lwip_htonl(seg->tcphdr->seqno), lwip_htonl(seg->tcphdr->seqno) +
  81003. seg->len));
  81004. len = (u16_t)((u8_t *)seg->tcphdr - (u8_t *)seg->p->payload);
  81005. 8020f70: 68fb ldr r3, [r7, #12]
  81006. 8020f72: 691a ldr r2, [r3, #16]
  81007. 8020f74: 68fb ldr r3, [r7, #12]
  81008. 8020f76: 685b ldr r3, [r3, #4]
  81009. 8020f78: 685b ldr r3, [r3, #4]
  81010. 8020f7a: 1ad3 subs r3, r2, r3
  81011. 8020f7c: 833b strh r3, [r7, #24]
  81012. if (len == 0) {
  81013. /** Exclude retransmitted segments from this count. */
  81014. MIB2_STATS_INC(mib2.tcpoutsegs);
  81015. }
  81016. seg->p->len -= len;
  81017. 8020f7e: 68fb ldr r3, [r7, #12]
  81018. 8020f80: 685b ldr r3, [r3, #4]
  81019. 8020f82: 8959 ldrh r1, [r3, #10]
  81020. 8020f84: 68fb ldr r3, [r7, #12]
  81021. 8020f86: 685b ldr r3, [r3, #4]
  81022. 8020f88: 8b3a ldrh r2, [r7, #24]
  81023. 8020f8a: 1a8a subs r2, r1, r2
  81024. 8020f8c: b292 uxth r2, r2
  81025. 8020f8e: 815a strh r2, [r3, #10]
  81026. seg->p->tot_len -= len;
  81027. 8020f90: 68fb ldr r3, [r7, #12]
  81028. 8020f92: 685b ldr r3, [r3, #4]
  81029. 8020f94: 8919 ldrh r1, [r3, #8]
  81030. 8020f96: 68fb ldr r3, [r7, #12]
  81031. 8020f98: 685b ldr r3, [r3, #4]
  81032. 8020f9a: 8b3a ldrh r2, [r7, #24]
  81033. 8020f9c: 1a8a subs r2, r1, r2
  81034. 8020f9e: b292 uxth r2, r2
  81035. 8020fa0: 811a strh r2, [r3, #8]
  81036. seg->p->payload = seg->tcphdr;
  81037. 8020fa2: 68fb ldr r3, [r7, #12]
  81038. 8020fa4: 685b ldr r3, [r3, #4]
  81039. 8020fa6: 68fa ldr r2, [r7, #12]
  81040. 8020fa8: 6912 ldr r2, [r2, #16]
  81041. 8020faa: 605a str r2, [r3, #4]
  81042. seg->tcphdr->chksum = 0;
  81043. 8020fac: 68fb ldr r3, [r7, #12]
  81044. 8020fae: 691b ldr r3, [r3, #16]
  81045. 8020fb0: 2200 movs r2, #0
  81046. 8020fb2: 741a strb r2, [r3, #16]
  81047. 8020fb4: 2200 movs r2, #0
  81048. 8020fb6: 745a strb r2, [r3, #17]
  81049. #ifdef LWIP_HOOK_TCP_OUT_ADD_TCPOPTS
  81050. opts = LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(seg->p, seg->tcphdr, pcb, opts);
  81051. #endif
  81052. LWIP_ASSERT("options not filled", (u8_t *)opts == ((u8_t *)(seg->tcphdr + 1)) + LWIP_TCP_OPT_LENGTH_SEGMENT(seg->flags, pcb));
  81053. 8020fb8: 68fb ldr r3, [r7, #12]
  81054. 8020fba: 691a ldr r2, [r3, #16]
  81055. 8020fbc: 68fb ldr r3, [r7, #12]
  81056. 8020fbe: 7b1b ldrb r3, [r3, #12]
  81057. 8020fc0: f003 0301 and.w r3, r3, #1
  81058. 8020fc4: 2b00 cmp r3, #0
  81059. 8020fc6: d001 beq.n 8020fcc <tcp_output_segment+0x158>
  81060. 8020fc8: 2318 movs r3, #24
  81061. 8020fca: e000 b.n 8020fce <tcp_output_segment+0x15a>
  81062. 8020fcc: 2314 movs r3, #20
  81063. 8020fce: 4413 add r3, r2
  81064. 8020fd0: 69fa ldr r2, [r7, #28]
  81065. 8020fd2: 429a cmp r2, r3
  81066. 8020fd4: d006 beq.n 8020fe4 <tcp_output_segment+0x170>
  81067. 8020fd6: 4b10 ldr r3, [pc, #64] @ (8021018 <tcp_output_segment+0x1a4>)
  81068. 8020fd8: f240 621c movw r2, #1564 @ 0x61c
  81069. 8020fdc: 4914 ldr r1, [pc, #80] @ (8021030 <tcp_output_segment+0x1bc>)
  81070. 8020fde: 4810 ldr r0, [pc, #64] @ (8021020 <tcp_output_segment+0x1ac>)
  81071. 8020fe0: f009 fbbc bl 802a75c <iprintf>
  81072. }
  81073. #endif /* CHECKSUM_GEN_TCP */
  81074. TCP_STATS_INC(tcp.xmit);
  81075. NETIF_SET_HINTS(netif, &(pcb->netif_hints));
  81076. err = ip_output_if(seg->p, &pcb->local_ip, &pcb->remote_ip, pcb->ttl,
  81077. 8020fe4: 68fb ldr r3, [r7, #12]
  81078. 8020fe6: 6858 ldr r0, [r3, #4]
  81079. 8020fe8: 68b9 ldr r1, [r7, #8]
  81080. 8020fea: 68bb ldr r3, [r7, #8]
  81081. 8020fec: 1d1c adds r4, r3, #4
  81082. 8020fee: 68bb ldr r3, [r7, #8]
  81083. 8020ff0: 7add ldrb r5, [r3, #11]
  81084. 8020ff2: 68bb ldr r3, [r7, #8]
  81085. 8020ff4: 7a9b ldrb r3, [r3, #10]
  81086. 8020ff6: 687a ldr r2, [r7, #4]
  81087. 8020ff8: 9202 str r2, [sp, #8]
  81088. 8020ffa: 2206 movs r2, #6
  81089. 8020ffc: 9201 str r2, [sp, #4]
  81090. 8020ffe: 9300 str r3, [sp, #0]
  81091. 8021000: 462b mov r3, r5
  81092. 8021002: 4622 mov r2, r4
  81093. 8021004: f004 fd7a bl 8025afc <ip4_output_if>
  81094. 8021008: 4603 mov r3, r0
  81095. 802100a: 75fb strb r3, [r7, #23]
  81096. seg->chksum = SWAP_BYTES_IN_WORD(seg->chksum);
  81097. seg->chksum_swapped = 1;
  81098. }
  81099. #endif
  81100. return err;
  81101. 802100c: f997 3017 ldrsb.w r3, [r7, #23]
  81102. }
  81103. 8021010: 4618 mov r0, r3
  81104. 8021012: 3720 adds r7, #32
  81105. 8021014: 46bd mov sp, r7
  81106. 8021016: bdb0 pop {r4, r5, r7, pc}
  81107. 8021018: 08030074 .word 0x08030074
  81108. 802101c: 08030694 .word 0x08030694
  81109. 8021020: 080300c8 .word 0x080300c8
  81110. 8021024: 080306b4 .word 0x080306b4
  81111. 8021028: 080306d4 .word 0x080306d4
  81112. 802102c: 2402af68 .word 0x2402af68
  81113. 8021030: 080306f8 .word 0x080306f8
  81114. 08021034 <tcp_rexmit_rto_prepare>:
  81115. *
  81116. * @param pcb the tcp_pcb for which to re-enqueue all unacked segments
  81117. */
  81118. err_t
  81119. tcp_rexmit_rto_prepare(struct tcp_pcb *pcb)
  81120. {
  81121. 8021034: b5b0 push {r4, r5, r7, lr}
  81122. 8021036: b084 sub sp, #16
  81123. 8021038: af00 add r7, sp, #0
  81124. 802103a: 6078 str r0, [r7, #4]
  81125. struct tcp_seg *seg;
  81126. LWIP_ASSERT("tcp_rexmit_rto_prepare: invalid pcb", pcb != NULL);
  81127. 802103c: 687b ldr r3, [r7, #4]
  81128. 802103e: 2b00 cmp r3, #0
  81129. 8021040: d106 bne.n 8021050 <tcp_rexmit_rto_prepare+0x1c>
  81130. 8021042: 4b36 ldr r3, [pc, #216] @ (802111c <tcp_rexmit_rto_prepare+0xe8>)
  81131. 8021044: f240 6263 movw r2, #1635 @ 0x663
  81132. 8021048: 4935 ldr r1, [pc, #212] @ (8021120 <tcp_rexmit_rto_prepare+0xec>)
  81133. 802104a: 4836 ldr r0, [pc, #216] @ (8021124 <tcp_rexmit_rto_prepare+0xf0>)
  81134. 802104c: f009 fb86 bl 802a75c <iprintf>
  81135. if (pcb->unacked == NULL) {
  81136. 8021050: 687b ldr r3, [r7, #4]
  81137. 8021052: 6f1b ldr r3, [r3, #112] @ 0x70
  81138. 8021054: 2b00 cmp r3, #0
  81139. 8021056: d102 bne.n 802105e <tcp_rexmit_rto_prepare+0x2a>
  81140. return ERR_VAL;
  81141. 8021058: f06f 0305 mvn.w r3, #5
  81142. 802105c: e059 b.n 8021112 <tcp_rexmit_rto_prepare+0xde>
  81143. /* Move all unacked segments to the head of the unsent queue.
  81144. However, give up if any of the unsent pbufs are still referenced by the
  81145. netif driver due to deferred transmission. No point loading the link further
  81146. if it is struggling to flush its buffered writes. */
  81147. for (seg = pcb->unacked; seg->next != NULL; seg = seg->next) {
  81148. 802105e: 687b ldr r3, [r7, #4]
  81149. 8021060: 6f1b ldr r3, [r3, #112] @ 0x70
  81150. 8021062: 60fb str r3, [r7, #12]
  81151. 8021064: e00b b.n 802107e <tcp_rexmit_rto_prepare+0x4a>
  81152. if (tcp_output_segment_busy(seg)) {
  81153. 8021066: 68f8 ldr r0, [r7, #12]
  81154. 8021068: f7ff fee4 bl 8020e34 <tcp_output_segment_busy>
  81155. 802106c: 4603 mov r3, r0
  81156. 802106e: 2b00 cmp r3, #0
  81157. 8021070: d002 beq.n 8021078 <tcp_rexmit_rto_prepare+0x44>
  81158. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n"));
  81159. return ERR_VAL;
  81160. 8021072: f06f 0305 mvn.w r3, #5
  81161. 8021076: e04c b.n 8021112 <tcp_rexmit_rto_prepare+0xde>
  81162. for (seg = pcb->unacked; seg->next != NULL; seg = seg->next) {
  81163. 8021078: 68fb ldr r3, [r7, #12]
  81164. 802107a: 681b ldr r3, [r3, #0]
  81165. 802107c: 60fb str r3, [r7, #12]
  81166. 802107e: 68fb ldr r3, [r7, #12]
  81167. 8021080: 681b ldr r3, [r3, #0]
  81168. 8021082: 2b00 cmp r3, #0
  81169. 8021084: d1ef bne.n 8021066 <tcp_rexmit_rto_prepare+0x32>
  81170. }
  81171. }
  81172. if (tcp_output_segment_busy(seg)) {
  81173. 8021086: 68f8 ldr r0, [r7, #12]
  81174. 8021088: f7ff fed4 bl 8020e34 <tcp_output_segment_busy>
  81175. 802108c: 4603 mov r3, r0
  81176. 802108e: 2b00 cmp r3, #0
  81177. 8021090: d002 beq.n 8021098 <tcp_rexmit_rto_prepare+0x64>
  81178. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n"));
  81179. return ERR_VAL;
  81180. 8021092: f06f 0305 mvn.w r3, #5
  81181. 8021096: e03c b.n 8021112 <tcp_rexmit_rto_prepare+0xde>
  81182. }
  81183. /* concatenate unsent queue after unacked queue */
  81184. seg->next = pcb->unsent;
  81185. 8021098: 687b ldr r3, [r7, #4]
  81186. 802109a: 6eda ldr r2, [r3, #108] @ 0x6c
  81187. 802109c: 68fb ldr r3, [r7, #12]
  81188. 802109e: 601a str r2, [r3, #0]
  81189. #if TCP_OVERSIZE_DBGCHECK
  81190. /* if last unsent changed, we need to update unsent_oversize */
  81191. if (pcb->unsent == NULL) {
  81192. 80210a0: 687b ldr r3, [r7, #4]
  81193. 80210a2: 6edb ldr r3, [r3, #108] @ 0x6c
  81194. 80210a4: 2b00 cmp r3, #0
  81195. 80210a6: d104 bne.n 80210b2 <tcp_rexmit_rto_prepare+0x7e>
  81196. pcb->unsent_oversize = seg->oversize_left;
  81197. 80210a8: 68fb ldr r3, [r7, #12]
  81198. 80210aa: 895a ldrh r2, [r3, #10]
  81199. 80210ac: 687b ldr r3, [r7, #4]
  81200. 80210ae: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  81201. }
  81202. #endif /* TCP_OVERSIZE_DBGCHECK */
  81203. /* unsent queue is the concatenated queue (of unacked, unsent) */
  81204. pcb->unsent = pcb->unacked;
  81205. 80210b2: 687b ldr r3, [r7, #4]
  81206. 80210b4: 6f1a ldr r2, [r3, #112] @ 0x70
  81207. 80210b6: 687b ldr r3, [r7, #4]
  81208. 80210b8: 66da str r2, [r3, #108] @ 0x6c
  81209. /* unacked queue is now empty */
  81210. pcb->unacked = NULL;
  81211. 80210ba: 687b ldr r3, [r7, #4]
  81212. 80210bc: 2200 movs r2, #0
  81213. 80210be: 671a str r2, [r3, #112] @ 0x70
  81214. /* Mark RTO in-progress */
  81215. tcp_set_flags(pcb, TF_RTO);
  81216. 80210c0: 687b ldr r3, [r7, #4]
  81217. 80210c2: 8b5b ldrh r3, [r3, #26]
  81218. 80210c4: f443 6300 orr.w r3, r3, #2048 @ 0x800
  81219. 80210c8: b29a uxth r2, r3
  81220. 80210ca: 687b ldr r3, [r7, #4]
  81221. 80210cc: 835a strh r2, [r3, #26]
  81222. /* Record the next byte following retransmit */
  81223. pcb->rto_end = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg);
  81224. 80210ce: 68fb ldr r3, [r7, #12]
  81225. 80210d0: 691b ldr r3, [r3, #16]
  81226. 80210d2: 685b ldr r3, [r3, #4]
  81227. 80210d4: 4618 mov r0, r3
  81228. 80210d6: f7f8 fbfc bl 80198d2 <lwip_htonl>
  81229. 80210da: 4604 mov r4, r0
  81230. 80210dc: 68fb ldr r3, [r7, #12]
  81231. 80210de: 891b ldrh r3, [r3, #8]
  81232. 80210e0: 461d mov r5, r3
  81233. 80210e2: 68fb ldr r3, [r7, #12]
  81234. 80210e4: 691b ldr r3, [r3, #16]
  81235. 80210e6: 899b ldrh r3, [r3, #12]
  81236. 80210e8: b29b uxth r3, r3
  81237. 80210ea: 4618 mov r0, r3
  81238. 80210ec: f7f8 fbdc bl 80198a8 <lwip_htons>
  81239. 80210f0: 4603 mov r3, r0
  81240. 80210f2: b2db uxtb r3, r3
  81241. 80210f4: f003 0303 and.w r3, r3, #3
  81242. 80210f8: 2b00 cmp r3, #0
  81243. 80210fa: d001 beq.n 8021100 <tcp_rexmit_rto_prepare+0xcc>
  81244. 80210fc: 2301 movs r3, #1
  81245. 80210fe: e000 b.n 8021102 <tcp_rexmit_rto_prepare+0xce>
  81246. 8021100: 2300 movs r3, #0
  81247. 8021102: 442b add r3, r5
  81248. 8021104: 18e2 adds r2, r4, r3
  81249. 8021106: 687b ldr r3, [r7, #4]
  81250. 8021108: 64da str r2, [r3, #76] @ 0x4c
  81251. /* Don't take any RTT measurements after retransmitting. */
  81252. pcb->rttest = 0;
  81253. 802110a: 687b ldr r3, [r7, #4]
  81254. 802110c: 2200 movs r2, #0
  81255. 802110e: 635a str r2, [r3, #52] @ 0x34
  81256. return ERR_OK;
  81257. 8021110: 2300 movs r3, #0
  81258. }
  81259. 8021112: 4618 mov r0, r3
  81260. 8021114: 3710 adds r7, #16
  81261. 8021116: 46bd mov sp, r7
  81262. 8021118: bdb0 pop {r4, r5, r7, pc}
  81263. 802111a: bf00 nop
  81264. 802111c: 08030074 .word 0x08030074
  81265. 8021120: 0803070c .word 0x0803070c
  81266. 8021124: 080300c8 .word 0x080300c8
  81267. 08021128 <tcp_rexmit_rto_commit>:
  81268. *
  81269. * @param pcb the tcp_pcb for which to re-enqueue all unacked segments
  81270. */
  81271. void
  81272. tcp_rexmit_rto_commit(struct tcp_pcb *pcb)
  81273. {
  81274. 8021128: b580 push {r7, lr}
  81275. 802112a: b082 sub sp, #8
  81276. 802112c: af00 add r7, sp, #0
  81277. 802112e: 6078 str r0, [r7, #4]
  81278. LWIP_ASSERT("tcp_rexmit_rto_commit: invalid pcb", pcb != NULL);
  81279. 8021130: 687b ldr r3, [r7, #4]
  81280. 8021132: 2b00 cmp r3, #0
  81281. 8021134: d106 bne.n 8021144 <tcp_rexmit_rto_commit+0x1c>
  81282. 8021136: 4b0d ldr r3, [pc, #52] @ (802116c <tcp_rexmit_rto_commit+0x44>)
  81283. 8021138: f44f 62d3 mov.w r2, #1688 @ 0x698
  81284. 802113c: 490c ldr r1, [pc, #48] @ (8021170 <tcp_rexmit_rto_commit+0x48>)
  81285. 802113e: 480d ldr r0, [pc, #52] @ (8021174 <tcp_rexmit_rto_commit+0x4c>)
  81286. 8021140: f009 fb0c bl 802a75c <iprintf>
  81287. /* increment number of retransmissions */
  81288. if (pcb->nrtx < 0xFF) {
  81289. 8021144: 687b ldr r3, [r7, #4]
  81290. 8021146: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  81291. 802114a: 2bff cmp r3, #255 @ 0xff
  81292. 802114c: d007 beq.n 802115e <tcp_rexmit_rto_commit+0x36>
  81293. ++pcb->nrtx;
  81294. 802114e: 687b ldr r3, [r7, #4]
  81295. 8021150: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  81296. 8021154: 3301 adds r3, #1
  81297. 8021156: b2da uxtb r2, r3
  81298. 8021158: 687b ldr r3, [r7, #4]
  81299. 802115a: f883 2042 strb.w r2, [r3, #66] @ 0x42
  81300. }
  81301. /* Do the actual retransmission */
  81302. tcp_output(pcb);
  81303. 802115e: 6878 ldr r0, [r7, #4]
  81304. 8021160: f7ff fc70 bl 8020a44 <tcp_output>
  81305. }
  81306. 8021164: bf00 nop
  81307. 8021166: 3708 adds r7, #8
  81308. 8021168: 46bd mov sp, r7
  81309. 802116a: bd80 pop {r7, pc}
  81310. 802116c: 08030074 .word 0x08030074
  81311. 8021170: 08030730 .word 0x08030730
  81312. 8021174: 080300c8 .word 0x080300c8
  81313. 08021178 <tcp_rexmit_rto>:
  81314. *
  81315. * @param pcb the tcp_pcb for which to re-enqueue all unacked segments
  81316. */
  81317. void
  81318. tcp_rexmit_rto(struct tcp_pcb *pcb)
  81319. {
  81320. 8021178: b580 push {r7, lr}
  81321. 802117a: b082 sub sp, #8
  81322. 802117c: af00 add r7, sp, #0
  81323. 802117e: 6078 str r0, [r7, #4]
  81324. LWIP_ASSERT("tcp_rexmit_rto: invalid pcb", pcb != NULL);
  81325. 8021180: 687b ldr r3, [r7, #4]
  81326. 8021182: 2b00 cmp r3, #0
  81327. 8021184: d106 bne.n 8021194 <tcp_rexmit_rto+0x1c>
  81328. 8021186: 4b0a ldr r3, [pc, #40] @ (80211b0 <tcp_rexmit_rto+0x38>)
  81329. 8021188: f240 62ad movw r2, #1709 @ 0x6ad
  81330. 802118c: 4909 ldr r1, [pc, #36] @ (80211b4 <tcp_rexmit_rto+0x3c>)
  81331. 802118e: 480a ldr r0, [pc, #40] @ (80211b8 <tcp_rexmit_rto+0x40>)
  81332. 8021190: f009 fae4 bl 802a75c <iprintf>
  81333. if (tcp_rexmit_rto_prepare(pcb) == ERR_OK) {
  81334. 8021194: 6878 ldr r0, [r7, #4]
  81335. 8021196: f7ff ff4d bl 8021034 <tcp_rexmit_rto_prepare>
  81336. 802119a: 4603 mov r3, r0
  81337. 802119c: 2b00 cmp r3, #0
  81338. 802119e: d102 bne.n 80211a6 <tcp_rexmit_rto+0x2e>
  81339. tcp_rexmit_rto_commit(pcb);
  81340. 80211a0: 6878 ldr r0, [r7, #4]
  81341. 80211a2: f7ff ffc1 bl 8021128 <tcp_rexmit_rto_commit>
  81342. }
  81343. }
  81344. 80211a6: bf00 nop
  81345. 80211a8: 3708 adds r7, #8
  81346. 80211aa: 46bd mov sp, r7
  81347. 80211ac: bd80 pop {r7, pc}
  81348. 80211ae: bf00 nop
  81349. 80211b0: 08030074 .word 0x08030074
  81350. 80211b4: 08030754 .word 0x08030754
  81351. 80211b8: 080300c8 .word 0x080300c8
  81352. 080211bc <tcp_rexmit>:
  81353. *
  81354. * @param pcb the tcp_pcb for which to retransmit the first unacked segment
  81355. */
  81356. err_t
  81357. tcp_rexmit(struct tcp_pcb *pcb)
  81358. {
  81359. 80211bc: b590 push {r4, r7, lr}
  81360. 80211be: b085 sub sp, #20
  81361. 80211c0: af00 add r7, sp, #0
  81362. 80211c2: 6078 str r0, [r7, #4]
  81363. struct tcp_seg *seg;
  81364. struct tcp_seg **cur_seg;
  81365. LWIP_ASSERT("tcp_rexmit: invalid pcb", pcb != NULL);
  81366. 80211c4: 687b ldr r3, [r7, #4]
  81367. 80211c6: 2b00 cmp r3, #0
  81368. 80211c8: d106 bne.n 80211d8 <tcp_rexmit+0x1c>
  81369. 80211ca: 4b2f ldr r3, [pc, #188] @ (8021288 <tcp_rexmit+0xcc>)
  81370. 80211cc: f240 62c1 movw r2, #1729 @ 0x6c1
  81371. 80211d0: 492e ldr r1, [pc, #184] @ (802128c <tcp_rexmit+0xd0>)
  81372. 80211d2: 482f ldr r0, [pc, #188] @ (8021290 <tcp_rexmit+0xd4>)
  81373. 80211d4: f009 fac2 bl 802a75c <iprintf>
  81374. if (pcb->unacked == NULL) {
  81375. 80211d8: 687b ldr r3, [r7, #4]
  81376. 80211da: 6f1b ldr r3, [r3, #112] @ 0x70
  81377. 80211dc: 2b00 cmp r3, #0
  81378. 80211de: d102 bne.n 80211e6 <tcp_rexmit+0x2a>
  81379. return ERR_VAL;
  81380. 80211e0: f06f 0305 mvn.w r3, #5
  81381. 80211e4: e04c b.n 8021280 <tcp_rexmit+0xc4>
  81382. }
  81383. seg = pcb->unacked;
  81384. 80211e6: 687b ldr r3, [r7, #4]
  81385. 80211e8: 6f1b ldr r3, [r3, #112] @ 0x70
  81386. 80211ea: 60bb str r3, [r7, #8]
  81387. /* Give up if the segment is still referenced by the netif driver
  81388. due to deferred transmission. */
  81389. if (tcp_output_segment_busy(seg)) {
  81390. 80211ec: 68b8 ldr r0, [r7, #8]
  81391. 80211ee: f7ff fe21 bl 8020e34 <tcp_output_segment_busy>
  81392. 80211f2: 4603 mov r3, r0
  81393. 80211f4: 2b00 cmp r3, #0
  81394. 80211f6: d002 beq.n 80211fe <tcp_rexmit+0x42>
  81395. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit busy\n"));
  81396. return ERR_VAL;
  81397. 80211f8: f06f 0305 mvn.w r3, #5
  81398. 80211fc: e040 b.n 8021280 <tcp_rexmit+0xc4>
  81399. }
  81400. /* Move the first unacked segment to the unsent queue */
  81401. /* Keep the unsent queue sorted. */
  81402. pcb->unacked = seg->next;
  81403. 80211fe: 68bb ldr r3, [r7, #8]
  81404. 8021200: 681a ldr r2, [r3, #0]
  81405. 8021202: 687b ldr r3, [r7, #4]
  81406. 8021204: 671a str r2, [r3, #112] @ 0x70
  81407. cur_seg = &(pcb->unsent);
  81408. 8021206: 687b ldr r3, [r7, #4]
  81409. 8021208: 336c adds r3, #108 @ 0x6c
  81410. 802120a: 60fb str r3, [r7, #12]
  81411. while (*cur_seg &&
  81412. 802120c: e002 b.n 8021214 <tcp_rexmit+0x58>
  81413. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  81414. cur_seg = &((*cur_seg)->next );
  81415. 802120e: 68fb ldr r3, [r7, #12]
  81416. 8021210: 681b ldr r3, [r3, #0]
  81417. 8021212: 60fb str r3, [r7, #12]
  81418. while (*cur_seg &&
  81419. 8021214: 68fb ldr r3, [r7, #12]
  81420. 8021216: 681b ldr r3, [r3, #0]
  81421. 8021218: 2b00 cmp r3, #0
  81422. 802121a: d011 beq.n 8021240 <tcp_rexmit+0x84>
  81423. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  81424. 802121c: 68fb ldr r3, [r7, #12]
  81425. 802121e: 681b ldr r3, [r3, #0]
  81426. 8021220: 691b ldr r3, [r3, #16]
  81427. 8021222: 685b ldr r3, [r3, #4]
  81428. 8021224: 4618 mov r0, r3
  81429. 8021226: f7f8 fb54 bl 80198d2 <lwip_htonl>
  81430. 802122a: 4604 mov r4, r0
  81431. 802122c: 68bb ldr r3, [r7, #8]
  81432. 802122e: 691b ldr r3, [r3, #16]
  81433. 8021230: 685b ldr r3, [r3, #4]
  81434. 8021232: 4618 mov r0, r3
  81435. 8021234: f7f8 fb4d bl 80198d2 <lwip_htonl>
  81436. 8021238: 4603 mov r3, r0
  81437. 802123a: 1ae3 subs r3, r4, r3
  81438. while (*cur_seg &&
  81439. 802123c: 2b00 cmp r3, #0
  81440. 802123e: dbe6 blt.n 802120e <tcp_rexmit+0x52>
  81441. }
  81442. seg->next = *cur_seg;
  81443. 8021240: 68fb ldr r3, [r7, #12]
  81444. 8021242: 681a ldr r2, [r3, #0]
  81445. 8021244: 68bb ldr r3, [r7, #8]
  81446. 8021246: 601a str r2, [r3, #0]
  81447. *cur_seg = seg;
  81448. 8021248: 68fb ldr r3, [r7, #12]
  81449. 802124a: 68ba ldr r2, [r7, #8]
  81450. 802124c: 601a str r2, [r3, #0]
  81451. #if TCP_OVERSIZE
  81452. if (seg->next == NULL) {
  81453. 802124e: 68bb ldr r3, [r7, #8]
  81454. 8021250: 681b ldr r3, [r3, #0]
  81455. 8021252: 2b00 cmp r3, #0
  81456. 8021254: d103 bne.n 802125e <tcp_rexmit+0xa2>
  81457. /* the retransmitted segment is last in unsent, so reset unsent_oversize */
  81458. pcb->unsent_oversize = 0;
  81459. 8021256: 687b ldr r3, [r7, #4]
  81460. 8021258: 2200 movs r2, #0
  81461. 802125a: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  81462. }
  81463. #endif /* TCP_OVERSIZE */
  81464. if (pcb->nrtx < 0xFF) {
  81465. 802125e: 687b ldr r3, [r7, #4]
  81466. 8021260: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  81467. 8021264: 2bff cmp r3, #255 @ 0xff
  81468. 8021266: d007 beq.n 8021278 <tcp_rexmit+0xbc>
  81469. ++pcb->nrtx;
  81470. 8021268: 687b ldr r3, [r7, #4]
  81471. 802126a: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  81472. 802126e: 3301 adds r3, #1
  81473. 8021270: b2da uxtb r2, r3
  81474. 8021272: 687b ldr r3, [r7, #4]
  81475. 8021274: f883 2042 strb.w r2, [r3, #66] @ 0x42
  81476. }
  81477. /* Don't take any rtt measurements after retransmitting. */
  81478. pcb->rttest = 0;
  81479. 8021278: 687b ldr r3, [r7, #4]
  81480. 802127a: 2200 movs r2, #0
  81481. 802127c: 635a str r2, [r3, #52] @ 0x34
  81482. /* Do the actual retransmission. */
  81483. MIB2_STATS_INC(mib2.tcpretranssegs);
  81484. /* No need to call tcp_output: we are always called from tcp_input()
  81485. and thus tcp_output directly returns. */
  81486. return ERR_OK;
  81487. 802127e: 2300 movs r3, #0
  81488. }
  81489. 8021280: 4618 mov r0, r3
  81490. 8021282: 3714 adds r7, #20
  81491. 8021284: 46bd mov sp, r7
  81492. 8021286: bd90 pop {r4, r7, pc}
  81493. 8021288: 08030074 .word 0x08030074
  81494. 802128c: 08030770 .word 0x08030770
  81495. 8021290: 080300c8 .word 0x080300c8
  81496. 08021294 <tcp_rexmit_fast>:
  81497. *
  81498. * @param pcb the tcp_pcb for which to retransmit the first unacked segment
  81499. */
  81500. void
  81501. tcp_rexmit_fast(struct tcp_pcb *pcb)
  81502. {
  81503. 8021294: b580 push {r7, lr}
  81504. 8021296: b082 sub sp, #8
  81505. 8021298: af00 add r7, sp, #0
  81506. 802129a: 6078 str r0, [r7, #4]
  81507. LWIP_ASSERT("tcp_rexmit_fast: invalid pcb", pcb != NULL);
  81508. 802129c: 687b ldr r3, [r7, #4]
  81509. 802129e: 2b00 cmp r3, #0
  81510. 80212a0: d106 bne.n 80212b0 <tcp_rexmit_fast+0x1c>
  81511. 80212a2: 4b2a ldr r3, [pc, #168] @ (802134c <tcp_rexmit_fast+0xb8>)
  81512. 80212a4: f240 62f9 movw r2, #1785 @ 0x6f9
  81513. 80212a8: 4929 ldr r1, [pc, #164] @ (8021350 <tcp_rexmit_fast+0xbc>)
  81514. 80212aa: 482a ldr r0, [pc, #168] @ (8021354 <tcp_rexmit_fast+0xc0>)
  81515. 80212ac: f009 fa56 bl 802a75c <iprintf>
  81516. if (pcb->unacked != NULL && !(pcb->flags & TF_INFR)) {
  81517. 80212b0: 687b ldr r3, [r7, #4]
  81518. 80212b2: 6f1b ldr r3, [r3, #112] @ 0x70
  81519. 80212b4: 2b00 cmp r3, #0
  81520. 80212b6: d045 beq.n 8021344 <tcp_rexmit_fast+0xb0>
  81521. 80212b8: 687b ldr r3, [r7, #4]
  81522. 80212ba: 8b5b ldrh r3, [r3, #26]
  81523. 80212bc: f003 0304 and.w r3, r3, #4
  81524. 80212c0: 2b00 cmp r3, #0
  81525. 80212c2: d13f bne.n 8021344 <tcp_rexmit_fast+0xb0>
  81526. LWIP_DEBUGF(TCP_FR_DEBUG,
  81527. ("tcp_receive: dupacks %"U16_F" (%"U32_F
  81528. "), fast retransmit %"U32_F"\n",
  81529. (u16_t)pcb->dupacks, pcb->lastack,
  81530. lwip_ntohl(pcb->unacked->tcphdr->seqno)));
  81531. if (tcp_rexmit(pcb) == ERR_OK) {
  81532. 80212c4: 6878 ldr r0, [r7, #4]
  81533. 80212c6: f7ff ff79 bl 80211bc <tcp_rexmit>
  81534. 80212ca: 4603 mov r3, r0
  81535. 80212cc: 2b00 cmp r3, #0
  81536. 80212ce: d139 bne.n 8021344 <tcp_rexmit_fast+0xb0>
  81537. /* Set ssthresh to half of the minimum of the current
  81538. * cwnd and the advertised window */
  81539. pcb->ssthresh = LWIP_MIN(pcb->cwnd, pcb->snd_wnd) / 2;
  81540. 80212d0: 687b ldr r3, [r7, #4]
  81541. 80212d2: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  81542. 80212d6: 687b ldr r3, [r7, #4]
  81543. 80212d8: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  81544. 80212dc: 4293 cmp r3, r2
  81545. 80212de: bf28 it cs
  81546. 80212e0: 4613 movcs r3, r2
  81547. 80212e2: b29b uxth r3, r3
  81548. 80212e4: 2b00 cmp r3, #0
  81549. 80212e6: da00 bge.n 80212ea <tcp_rexmit_fast+0x56>
  81550. 80212e8: 3301 adds r3, #1
  81551. 80212ea: 105b asrs r3, r3, #1
  81552. 80212ec: b29a uxth r2, r3
  81553. 80212ee: 687b ldr r3, [r7, #4]
  81554. 80212f0: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  81555. /* The minimum value for ssthresh should be 2 MSS */
  81556. if (pcb->ssthresh < (2U * pcb->mss)) {
  81557. 80212f4: 687b ldr r3, [r7, #4]
  81558. 80212f6: f8b3 304a ldrh.w r3, [r3, #74] @ 0x4a
  81559. 80212fa: 461a mov r2, r3
  81560. 80212fc: 687b ldr r3, [r7, #4]
  81561. 80212fe: 8e5b ldrh r3, [r3, #50] @ 0x32
  81562. 8021300: 005b lsls r3, r3, #1
  81563. 8021302: 429a cmp r2, r3
  81564. 8021304: d206 bcs.n 8021314 <tcp_rexmit_fast+0x80>
  81565. LWIP_DEBUGF(TCP_FR_DEBUG,
  81566. ("tcp_receive: The minimum value for ssthresh %"TCPWNDSIZE_F
  81567. " should be min 2 mss %"U16_F"...\n",
  81568. pcb->ssthresh, (u16_t)(2 * pcb->mss)));
  81569. pcb->ssthresh = 2 * pcb->mss;
  81570. 8021306: 687b ldr r3, [r7, #4]
  81571. 8021308: 8e5b ldrh r3, [r3, #50] @ 0x32
  81572. 802130a: 005b lsls r3, r3, #1
  81573. 802130c: b29a uxth r2, r3
  81574. 802130e: 687b ldr r3, [r7, #4]
  81575. 8021310: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  81576. }
  81577. pcb->cwnd = pcb->ssthresh + 3 * pcb->mss;
  81578. 8021314: 687b ldr r3, [r7, #4]
  81579. 8021316: f8b3 204a ldrh.w r2, [r3, #74] @ 0x4a
  81580. 802131a: 687b ldr r3, [r7, #4]
  81581. 802131c: 8e5b ldrh r3, [r3, #50] @ 0x32
  81582. 802131e: 4619 mov r1, r3
  81583. 8021320: 0049 lsls r1, r1, #1
  81584. 8021322: 440b add r3, r1
  81585. 8021324: b29b uxth r3, r3
  81586. 8021326: 4413 add r3, r2
  81587. 8021328: b29a uxth r2, r3
  81588. 802132a: 687b ldr r3, [r7, #4]
  81589. 802132c: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  81590. tcp_set_flags(pcb, TF_INFR);
  81591. 8021330: 687b ldr r3, [r7, #4]
  81592. 8021332: 8b5b ldrh r3, [r3, #26]
  81593. 8021334: f043 0304 orr.w r3, r3, #4
  81594. 8021338: b29a uxth r2, r3
  81595. 802133a: 687b ldr r3, [r7, #4]
  81596. 802133c: 835a strh r2, [r3, #26]
  81597. /* Reset the retransmission timer to prevent immediate rto retransmissions */
  81598. pcb->rtime = 0;
  81599. 802133e: 687b ldr r3, [r7, #4]
  81600. 8021340: 2200 movs r2, #0
  81601. 8021342: 861a strh r2, [r3, #48] @ 0x30
  81602. }
  81603. }
  81604. }
  81605. 8021344: bf00 nop
  81606. 8021346: 3708 adds r7, #8
  81607. 8021348: 46bd mov sp, r7
  81608. 802134a: bd80 pop {r7, pc}
  81609. 802134c: 08030074 .word 0x08030074
  81610. 8021350: 08030788 .word 0x08030788
  81611. 8021354: 080300c8 .word 0x080300c8
  81612. 08021358 <tcp_output_alloc_header_common>:
  81613. static struct pbuf *
  81614. tcp_output_alloc_header_common(u32_t ackno, u16_t optlen, u16_t datalen,
  81615. u32_t seqno_be /* already in network byte order */,
  81616. u16_t src_port, u16_t dst_port, u8_t flags, u16_t wnd)
  81617. {
  81618. 8021358: b580 push {r7, lr}
  81619. 802135a: b086 sub sp, #24
  81620. 802135c: af00 add r7, sp, #0
  81621. 802135e: 60f8 str r0, [r7, #12]
  81622. 8021360: 607b str r3, [r7, #4]
  81623. 8021362: 460b mov r3, r1
  81624. 8021364: 817b strh r3, [r7, #10]
  81625. 8021366: 4613 mov r3, r2
  81626. 8021368: 813b strh r3, [r7, #8]
  81627. struct tcp_hdr *tcphdr;
  81628. struct pbuf *p;
  81629. p = pbuf_alloc(PBUF_IP, TCP_HLEN + optlen + datalen, PBUF_RAM);
  81630. 802136a: 897a ldrh r2, [r7, #10]
  81631. 802136c: 893b ldrh r3, [r7, #8]
  81632. 802136e: 4413 add r3, r2
  81633. 8021370: b29b uxth r3, r3
  81634. 8021372: 3314 adds r3, #20
  81635. 8021374: b29b uxth r3, r3
  81636. 8021376: f44f 7220 mov.w r2, #640 @ 0x280
  81637. 802137a: 4619 mov r1, r3
  81638. 802137c: 2022 movs r0, #34 @ 0x22
  81639. 802137e: f7f9 fc5f bl 801ac40 <pbuf_alloc>
  81640. 8021382: 6178 str r0, [r7, #20]
  81641. if (p != NULL) {
  81642. 8021384: 697b ldr r3, [r7, #20]
  81643. 8021386: 2b00 cmp r3, #0
  81644. 8021388: d04d beq.n 8021426 <tcp_output_alloc_header_common+0xce>
  81645. LWIP_ASSERT("check that first pbuf can hold struct tcp_hdr",
  81646. 802138a: 897b ldrh r3, [r7, #10]
  81647. 802138c: 3313 adds r3, #19
  81648. 802138e: 697a ldr r2, [r7, #20]
  81649. 8021390: 8952 ldrh r2, [r2, #10]
  81650. 8021392: 4293 cmp r3, r2
  81651. 8021394: db06 blt.n 80213a4 <tcp_output_alloc_header_common+0x4c>
  81652. 8021396: 4b26 ldr r3, [pc, #152] @ (8021430 <tcp_output_alloc_header_common+0xd8>)
  81653. 8021398: f240 7223 movw r2, #1827 @ 0x723
  81654. 802139c: 4925 ldr r1, [pc, #148] @ (8021434 <tcp_output_alloc_header_common+0xdc>)
  81655. 802139e: 4826 ldr r0, [pc, #152] @ (8021438 <tcp_output_alloc_header_common+0xe0>)
  81656. 80213a0: f009 f9dc bl 802a75c <iprintf>
  81657. (p->len >= TCP_HLEN + optlen));
  81658. tcphdr = (struct tcp_hdr *)p->payload;
  81659. 80213a4: 697b ldr r3, [r7, #20]
  81660. 80213a6: 685b ldr r3, [r3, #4]
  81661. 80213a8: 613b str r3, [r7, #16]
  81662. tcphdr->src = lwip_htons(src_port);
  81663. 80213aa: 8c3b ldrh r3, [r7, #32]
  81664. 80213ac: 4618 mov r0, r3
  81665. 80213ae: f7f8 fa7b bl 80198a8 <lwip_htons>
  81666. 80213b2: 4603 mov r3, r0
  81667. 80213b4: 461a mov r2, r3
  81668. 80213b6: 693b ldr r3, [r7, #16]
  81669. 80213b8: 801a strh r2, [r3, #0]
  81670. tcphdr->dest = lwip_htons(dst_port);
  81671. 80213ba: 8cbb ldrh r3, [r7, #36] @ 0x24
  81672. 80213bc: 4618 mov r0, r3
  81673. 80213be: f7f8 fa73 bl 80198a8 <lwip_htons>
  81674. 80213c2: 4603 mov r3, r0
  81675. 80213c4: 461a mov r2, r3
  81676. 80213c6: 693b ldr r3, [r7, #16]
  81677. 80213c8: 805a strh r2, [r3, #2]
  81678. tcphdr->seqno = seqno_be;
  81679. 80213ca: 693b ldr r3, [r7, #16]
  81680. 80213cc: 687a ldr r2, [r7, #4]
  81681. 80213ce: 605a str r2, [r3, #4]
  81682. tcphdr->ackno = lwip_htonl(ackno);
  81683. 80213d0: 68f8 ldr r0, [r7, #12]
  81684. 80213d2: f7f8 fa7e bl 80198d2 <lwip_htonl>
  81685. 80213d6: 4602 mov r2, r0
  81686. 80213d8: 693b ldr r3, [r7, #16]
  81687. 80213da: 609a str r2, [r3, #8]
  81688. TCPH_HDRLEN_FLAGS_SET(tcphdr, (5 + optlen / 4), flags);
  81689. 80213dc: 897b ldrh r3, [r7, #10]
  81690. 80213de: 089b lsrs r3, r3, #2
  81691. 80213e0: b29b uxth r3, r3
  81692. 80213e2: 3305 adds r3, #5
  81693. 80213e4: b29b uxth r3, r3
  81694. 80213e6: 031b lsls r3, r3, #12
  81695. 80213e8: b29a uxth r2, r3
  81696. 80213ea: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  81697. 80213ee: b29b uxth r3, r3
  81698. 80213f0: 4313 orrs r3, r2
  81699. 80213f2: b29b uxth r3, r3
  81700. 80213f4: 4618 mov r0, r3
  81701. 80213f6: f7f8 fa57 bl 80198a8 <lwip_htons>
  81702. 80213fa: 4603 mov r3, r0
  81703. 80213fc: 461a mov r2, r3
  81704. 80213fe: 693b ldr r3, [r7, #16]
  81705. 8021400: 819a strh r2, [r3, #12]
  81706. tcphdr->wnd = lwip_htons(wnd);
  81707. 8021402: 8dbb ldrh r3, [r7, #44] @ 0x2c
  81708. 8021404: 4618 mov r0, r3
  81709. 8021406: f7f8 fa4f bl 80198a8 <lwip_htons>
  81710. 802140a: 4603 mov r3, r0
  81711. 802140c: 461a mov r2, r3
  81712. 802140e: 693b ldr r3, [r7, #16]
  81713. 8021410: 81da strh r2, [r3, #14]
  81714. tcphdr->chksum = 0;
  81715. 8021412: 693b ldr r3, [r7, #16]
  81716. 8021414: 2200 movs r2, #0
  81717. 8021416: 741a strb r2, [r3, #16]
  81718. 8021418: 2200 movs r2, #0
  81719. 802141a: 745a strb r2, [r3, #17]
  81720. tcphdr->urgp = 0;
  81721. 802141c: 693b ldr r3, [r7, #16]
  81722. 802141e: 2200 movs r2, #0
  81723. 8021420: 749a strb r2, [r3, #18]
  81724. 8021422: 2200 movs r2, #0
  81725. 8021424: 74da strb r2, [r3, #19]
  81726. }
  81727. return p;
  81728. 8021426: 697b ldr r3, [r7, #20]
  81729. }
  81730. 8021428: 4618 mov r0, r3
  81731. 802142a: 3718 adds r7, #24
  81732. 802142c: 46bd mov sp, r7
  81733. 802142e: bd80 pop {r7, pc}
  81734. 8021430: 08030074 .word 0x08030074
  81735. 8021434: 080307a8 .word 0x080307a8
  81736. 8021438: 080300c8 .word 0x080300c8
  81737. 0802143c <tcp_output_alloc_header>:
  81738. * @return pbuf with p->payload being the tcp_hdr
  81739. */
  81740. static struct pbuf *
  81741. tcp_output_alloc_header(struct tcp_pcb *pcb, u16_t optlen, u16_t datalen,
  81742. u32_t seqno_be /* already in network byte order */)
  81743. {
  81744. 802143c: b5b0 push {r4, r5, r7, lr}
  81745. 802143e: b08a sub sp, #40 @ 0x28
  81746. 8021440: af04 add r7, sp, #16
  81747. 8021442: 60f8 str r0, [r7, #12]
  81748. 8021444: 607b str r3, [r7, #4]
  81749. 8021446: 460b mov r3, r1
  81750. 8021448: 817b strh r3, [r7, #10]
  81751. 802144a: 4613 mov r3, r2
  81752. 802144c: 813b strh r3, [r7, #8]
  81753. struct pbuf *p;
  81754. LWIP_ASSERT("tcp_output_alloc_header: invalid pcb", pcb != NULL);
  81755. 802144e: 68fb ldr r3, [r7, #12]
  81756. 8021450: 2b00 cmp r3, #0
  81757. 8021452: d106 bne.n 8021462 <tcp_output_alloc_header+0x26>
  81758. 8021454: 4b15 ldr r3, [pc, #84] @ (80214ac <tcp_output_alloc_header+0x70>)
  81759. 8021456: f240 7242 movw r2, #1858 @ 0x742
  81760. 802145a: 4915 ldr r1, [pc, #84] @ (80214b0 <tcp_output_alloc_header+0x74>)
  81761. 802145c: 4815 ldr r0, [pc, #84] @ (80214b4 <tcp_output_alloc_header+0x78>)
  81762. 802145e: f009 f97d bl 802a75c <iprintf>
  81763. p = tcp_output_alloc_header_common(pcb->rcv_nxt, optlen, datalen,
  81764. 8021462: 68fb ldr r3, [r7, #12]
  81765. 8021464: 6a58 ldr r0, [r3, #36] @ 0x24
  81766. 8021466: 68fb ldr r3, [r7, #12]
  81767. 8021468: 8adb ldrh r3, [r3, #22]
  81768. 802146a: 68fa ldr r2, [r7, #12]
  81769. 802146c: 8b12 ldrh r2, [r2, #24]
  81770. 802146e: 68f9 ldr r1, [r7, #12]
  81771. 8021470: 8d49 ldrh r1, [r1, #42] @ 0x2a
  81772. 8021472: 893d ldrh r5, [r7, #8]
  81773. 8021474: 897c ldrh r4, [r7, #10]
  81774. 8021476: 9103 str r1, [sp, #12]
  81775. 8021478: 2110 movs r1, #16
  81776. 802147a: 9102 str r1, [sp, #8]
  81777. 802147c: 9201 str r2, [sp, #4]
  81778. 802147e: 9300 str r3, [sp, #0]
  81779. 8021480: 687b ldr r3, [r7, #4]
  81780. 8021482: 462a mov r2, r5
  81781. 8021484: 4621 mov r1, r4
  81782. 8021486: f7ff ff67 bl 8021358 <tcp_output_alloc_header_common>
  81783. 802148a: 6178 str r0, [r7, #20]
  81784. seqno_be, pcb->local_port, pcb->remote_port, TCP_ACK,
  81785. TCPWND_MIN16(RCV_WND_SCALE(pcb, pcb->rcv_ann_wnd)));
  81786. if (p != NULL) {
  81787. 802148c: 697b ldr r3, [r7, #20]
  81788. 802148e: 2b00 cmp r3, #0
  81789. 8021490: d006 beq.n 80214a0 <tcp_output_alloc_header+0x64>
  81790. /* If we're sending a packet, update the announced right window edge */
  81791. pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd;
  81792. 8021492: 68fb ldr r3, [r7, #12]
  81793. 8021494: 6a5b ldr r3, [r3, #36] @ 0x24
  81794. 8021496: 68fa ldr r2, [r7, #12]
  81795. 8021498: 8d52 ldrh r2, [r2, #42] @ 0x2a
  81796. 802149a: 441a add r2, r3
  81797. 802149c: 68fb ldr r3, [r7, #12]
  81798. 802149e: 62da str r2, [r3, #44] @ 0x2c
  81799. }
  81800. return p;
  81801. 80214a0: 697b ldr r3, [r7, #20]
  81802. }
  81803. 80214a2: 4618 mov r0, r3
  81804. 80214a4: 3718 adds r7, #24
  81805. 80214a6: 46bd mov sp, r7
  81806. 80214a8: bdb0 pop {r4, r5, r7, pc}
  81807. 80214aa: bf00 nop
  81808. 80214ac: 08030074 .word 0x08030074
  81809. 80214b0: 080307d8 .word 0x080307d8
  81810. 80214b4: 080300c8 .word 0x080300c8
  81811. 080214b8 <tcp_output_fill_options>:
  81812. /* Fill in options for control segments */
  81813. static void
  81814. tcp_output_fill_options(const struct tcp_pcb *pcb, struct pbuf *p, u8_t optflags, u8_t num_sacks)
  81815. {
  81816. 80214b8: b580 push {r7, lr}
  81817. 80214ba: b088 sub sp, #32
  81818. 80214bc: af00 add r7, sp, #0
  81819. 80214be: 60f8 str r0, [r7, #12]
  81820. 80214c0: 60b9 str r1, [r7, #8]
  81821. 80214c2: 4611 mov r1, r2
  81822. 80214c4: 461a mov r2, r3
  81823. 80214c6: 460b mov r3, r1
  81824. 80214c8: 71fb strb r3, [r7, #7]
  81825. 80214ca: 4613 mov r3, r2
  81826. 80214cc: 71bb strb r3, [r7, #6]
  81827. struct tcp_hdr *tcphdr;
  81828. u32_t *opts;
  81829. u16_t sacks_len = 0;
  81830. 80214ce: 2300 movs r3, #0
  81831. 80214d0: 83fb strh r3, [r7, #30]
  81832. LWIP_ASSERT("tcp_output_fill_options: invalid pbuf", p != NULL);
  81833. 80214d2: 68bb ldr r3, [r7, #8]
  81834. 80214d4: 2b00 cmp r3, #0
  81835. 80214d6: d106 bne.n 80214e6 <tcp_output_fill_options+0x2e>
  81836. 80214d8: 4b12 ldr r3, [pc, #72] @ (8021524 <tcp_output_fill_options+0x6c>)
  81837. 80214da: f240 7256 movw r2, #1878 @ 0x756
  81838. 80214de: 4912 ldr r1, [pc, #72] @ (8021528 <tcp_output_fill_options+0x70>)
  81839. 80214e0: 4812 ldr r0, [pc, #72] @ (802152c <tcp_output_fill_options+0x74>)
  81840. 80214e2: f009 f93b bl 802a75c <iprintf>
  81841. tcphdr = (struct tcp_hdr *)p->payload;
  81842. 80214e6: 68bb ldr r3, [r7, #8]
  81843. 80214e8: 685b ldr r3, [r3, #4]
  81844. 80214ea: 61bb str r3, [r7, #24]
  81845. opts = (u32_t *)(void *)(tcphdr + 1);
  81846. 80214ec: 69bb ldr r3, [r7, #24]
  81847. 80214ee: 3314 adds r3, #20
  81848. 80214f0: 617b str r3, [r7, #20]
  81849. opts = LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(p, tcphdr, pcb, opts);
  81850. #endif
  81851. LWIP_UNUSED_ARG(pcb);
  81852. LWIP_UNUSED_ARG(sacks_len);
  81853. LWIP_ASSERT("options not filled", (u8_t *)opts == ((u8_t *)(tcphdr + 1)) + sacks_len * 4 + LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb));
  81854. 80214f2: 8bfb ldrh r3, [r7, #30]
  81855. 80214f4: 009b lsls r3, r3, #2
  81856. 80214f6: 461a mov r2, r3
  81857. 80214f8: 79fb ldrb r3, [r7, #7]
  81858. 80214fa: 009b lsls r3, r3, #2
  81859. 80214fc: f003 0304 and.w r3, r3, #4
  81860. 8021500: 4413 add r3, r2
  81861. 8021502: 3314 adds r3, #20
  81862. 8021504: 69ba ldr r2, [r7, #24]
  81863. 8021506: 4413 add r3, r2
  81864. 8021508: 697a ldr r2, [r7, #20]
  81865. 802150a: 429a cmp r2, r3
  81866. 802150c: d006 beq.n 802151c <tcp_output_fill_options+0x64>
  81867. 802150e: 4b05 ldr r3, [pc, #20] @ (8021524 <tcp_output_fill_options+0x6c>)
  81868. 8021510: f240 7275 movw r2, #1909 @ 0x775
  81869. 8021514: 4906 ldr r1, [pc, #24] @ (8021530 <tcp_output_fill_options+0x78>)
  81870. 8021516: 4805 ldr r0, [pc, #20] @ (802152c <tcp_output_fill_options+0x74>)
  81871. 8021518: f009 f920 bl 802a75c <iprintf>
  81872. LWIP_UNUSED_ARG(optflags); /* for LWIP_NOASSERT */
  81873. LWIP_UNUSED_ARG(opts); /* for LWIP_NOASSERT */
  81874. }
  81875. 802151c: bf00 nop
  81876. 802151e: 3720 adds r7, #32
  81877. 8021520: 46bd mov sp, r7
  81878. 8021522: bd80 pop {r7, pc}
  81879. 8021524: 08030074 .word 0x08030074
  81880. 8021528: 08030800 .word 0x08030800
  81881. 802152c: 080300c8 .word 0x080300c8
  81882. 8021530: 080306f8 .word 0x080306f8
  81883. 08021534 <tcp_output_control_segment>:
  81884. * header checksum and calling ip_output_if while handling netif hints and stats.
  81885. */
  81886. static err_t
  81887. tcp_output_control_segment(const struct tcp_pcb *pcb, struct pbuf *p,
  81888. const ip_addr_t *src, const ip_addr_t *dst)
  81889. {
  81890. 8021534: b580 push {r7, lr}
  81891. 8021536: b08a sub sp, #40 @ 0x28
  81892. 8021538: af04 add r7, sp, #16
  81893. 802153a: 60f8 str r0, [r7, #12]
  81894. 802153c: 60b9 str r1, [r7, #8]
  81895. 802153e: 607a str r2, [r7, #4]
  81896. 8021540: 603b str r3, [r7, #0]
  81897. err_t err;
  81898. struct netif *netif;
  81899. LWIP_ASSERT("tcp_output_control_segment: invalid pbuf", p != NULL);
  81900. 8021542: 68bb ldr r3, [r7, #8]
  81901. 8021544: 2b00 cmp r3, #0
  81902. 8021546: d106 bne.n 8021556 <tcp_output_control_segment+0x22>
  81903. 8021548: 4b1c ldr r3, [pc, #112] @ (80215bc <tcp_output_control_segment+0x88>)
  81904. 802154a: f240 7287 movw r2, #1927 @ 0x787
  81905. 802154e: 491c ldr r1, [pc, #112] @ (80215c0 <tcp_output_control_segment+0x8c>)
  81906. 8021550: 481c ldr r0, [pc, #112] @ (80215c4 <tcp_output_control_segment+0x90>)
  81907. 8021552: f009 f903 bl 802a75c <iprintf>
  81908. netif = tcp_route(pcb, src, dst);
  81909. 8021556: 683a ldr r2, [r7, #0]
  81910. 8021558: 6879 ldr r1, [r7, #4]
  81911. 802155a: 68f8 ldr r0, [r7, #12]
  81912. 802155c: f7fe fa78 bl 801fa50 <tcp_route>
  81913. 8021560: 6138 str r0, [r7, #16]
  81914. if (netif == NULL) {
  81915. 8021562: 693b ldr r3, [r7, #16]
  81916. 8021564: 2b00 cmp r3, #0
  81917. 8021566: d102 bne.n 802156e <tcp_output_control_segment+0x3a>
  81918. err = ERR_RTE;
  81919. 8021568: 23fc movs r3, #252 @ 0xfc
  81920. 802156a: 75fb strb r3, [r7, #23]
  81921. 802156c: e01c b.n 80215a8 <tcp_output_control_segment+0x74>
  81922. struct tcp_hdr *tcphdr = (struct tcp_hdr *)p->payload;
  81923. tcphdr->chksum = ip_chksum_pseudo(p, IP_PROTO_TCP, p->tot_len,
  81924. src, dst);
  81925. }
  81926. #endif
  81927. if (pcb != NULL) {
  81928. 802156e: 68fb ldr r3, [r7, #12]
  81929. 8021570: 2b00 cmp r3, #0
  81930. 8021572: d006 beq.n 8021582 <tcp_output_control_segment+0x4e>
  81931. NETIF_SET_HINTS(netif, LWIP_CONST_CAST(struct netif_hint*, &(pcb->netif_hints)));
  81932. ttl = pcb->ttl;
  81933. 8021574: 68fb ldr r3, [r7, #12]
  81934. 8021576: 7adb ldrb r3, [r3, #11]
  81935. 8021578: 75bb strb r3, [r7, #22]
  81936. tos = pcb->tos;
  81937. 802157a: 68fb ldr r3, [r7, #12]
  81938. 802157c: 7a9b ldrb r3, [r3, #10]
  81939. 802157e: 757b strb r3, [r7, #21]
  81940. 8021580: e003 b.n 802158a <tcp_output_control_segment+0x56>
  81941. } else {
  81942. /* Send output with hardcoded TTL/HL since we have no access to the pcb */
  81943. ttl = TCP_TTL;
  81944. 8021582: 23ff movs r3, #255 @ 0xff
  81945. 8021584: 75bb strb r3, [r7, #22]
  81946. tos = 0;
  81947. 8021586: 2300 movs r3, #0
  81948. 8021588: 757b strb r3, [r7, #21]
  81949. }
  81950. TCP_STATS_INC(tcp.xmit);
  81951. err = ip_output_if(p, src, dst, ttl, tos, IP_PROTO_TCP, netif);
  81952. 802158a: 7dba ldrb r2, [r7, #22]
  81953. 802158c: 693b ldr r3, [r7, #16]
  81954. 802158e: 9302 str r3, [sp, #8]
  81955. 8021590: 2306 movs r3, #6
  81956. 8021592: 9301 str r3, [sp, #4]
  81957. 8021594: 7d7b ldrb r3, [r7, #21]
  81958. 8021596: 9300 str r3, [sp, #0]
  81959. 8021598: 4613 mov r3, r2
  81960. 802159a: 683a ldr r2, [r7, #0]
  81961. 802159c: 6879 ldr r1, [r7, #4]
  81962. 802159e: 68b8 ldr r0, [r7, #8]
  81963. 80215a0: f004 faac bl 8025afc <ip4_output_if>
  81964. 80215a4: 4603 mov r3, r0
  81965. 80215a6: 75fb strb r3, [r7, #23]
  81966. NETIF_RESET_HINTS(netif);
  81967. }
  81968. pbuf_free(p);
  81969. 80215a8: 68b8 ldr r0, [r7, #8]
  81970. 80215aa: f7f9 fe5f bl 801b26c <pbuf_free>
  81971. return err;
  81972. 80215ae: f997 3017 ldrsb.w r3, [r7, #23]
  81973. }
  81974. 80215b2: 4618 mov r0, r3
  81975. 80215b4: 3718 adds r7, #24
  81976. 80215b6: 46bd mov sp, r7
  81977. 80215b8: bd80 pop {r7, pc}
  81978. 80215ba: bf00 nop
  81979. 80215bc: 08030074 .word 0x08030074
  81980. 80215c0: 08030828 .word 0x08030828
  81981. 80215c4: 080300c8 .word 0x080300c8
  81982. 080215c8 <tcp_rst>:
  81983. */
  81984. void
  81985. tcp_rst(const struct tcp_pcb *pcb, u32_t seqno, u32_t ackno,
  81986. const ip_addr_t *local_ip, const ip_addr_t *remote_ip,
  81987. u16_t local_port, u16_t remote_port)
  81988. {
  81989. 80215c8: b590 push {r4, r7, lr}
  81990. 80215ca: b08b sub sp, #44 @ 0x2c
  81991. 80215cc: af04 add r7, sp, #16
  81992. 80215ce: 60f8 str r0, [r7, #12]
  81993. 80215d0: 60b9 str r1, [r7, #8]
  81994. 80215d2: 607a str r2, [r7, #4]
  81995. 80215d4: 603b str r3, [r7, #0]
  81996. struct pbuf *p;
  81997. u16_t wnd;
  81998. u8_t optlen;
  81999. LWIP_ASSERT("tcp_rst: invalid local_ip", local_ip != NULL);
  82000. 80215d6: 683b ldr r3, [r7, #0]
  82001. 80215d8: 2b00 cmp r3, #0
  82002. 80215da: d106 bne.n 80215ea <tcp_rst+0x22>
  82003. 80215dc: 4b1f ldr r3, [pc, #124] @ (802165c <tcp_rst+0x94>)
  82004. 80215de: f240 72c4 movw r2, #1988 @ 0x7c4
  82005. 80215e2: 491f ldr r1, [pc, #124] @ (8021660 <tcp_rst+0x98>)
  82006. 80215e4: 481f ldr r0, [pc, #124] @ (8021664 <tcp_rst+0x9c>)
  82007. 80215e6: f009 f8b9 bl 802a75c <iprintf>
  82008. LWIP_ASSERT("tcp_rst: invalid remote_ip", remote_ip != NULL);
  82009. 80215ea: 6abb ldr r3, [r7, #40] @ 0x28
  82010. 80215ec: 2b00 cmp r3, #0
  82011. 80215ee: d106 bne.n 80215fe <tcp_rst+0x36>
  82012. 80215f0: 4b1a ldr r3, [pc, #104] @ (802165c <tcp_rst+0x94>)
  82013. 80215f2: f240 72c5 movw r2, #1989 @ 0x7c5
  82014. 80215f6: 491c ldr r1, [pc, #112] @ (8021668 <tcp_rst+0xa0>)
  82015. 80215f8: 481a ldr r0, [pc, #104] @ (8021664 <tcp_rst+0x9c>)
  82016. 80215fa: f009 f8af bl 802a75c <iprintf>
  82017. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  82018. 80215fe: 2300 movs r3, #0
  82019. 8021600: 75fb strb r3, [r7, #23]
  82020. #if LWIP_WND_SCALE
  82021. wnd = PP_HTONS(((TCP_WND >> TCP_RCV_SCALE) & 0xFFFF));
  82022. #else
  82023. wnd = PP_HTONS(TCP_WND);
  82024. 8021602: f24d 0316 movw r3, #53270 @ 0xd016
  82025. 8021606: 82bb strh r3, [r7, #20]
  82026. #endif
  82027. p = tcp_output_alloc_header_common(ackno, optlen, 0, lwip_htonl(seqno), local_port,
  82028. 8021608: 7dfb ldrb r3, [r7, #23]
  82029. 802160a: b29c uxth r4, r3
  82030. 802160c: 68b8 ldr r0, [r7, #8]
  82031. 802160e: f7f8 f960 bl 80198d2 <lwip_htonl>
  82032. 8021612: 4602 mov r2, r0
  82033. 8021614: 8abb ldrh r3, [r7, #20]
  82034. 8021616: 9303 str r3, [sp, #12]
  82035. 8021618: 2314 movs r3, #20
  82036. 802161a: 9302 str r3, [sp, #8]
  82037. 802161c: 8e3b ldrh r3, [r7, #48] @ 0x30
  82038. 802161e: 9301 str r3, [sp, #4]
  82039. 8021620: 8dbb ldrh r3, [r7, #44] @ 0x2c
  82040. 8021622: 9300 str r3, [sp, #0]
  82041. 8021624: 4613 mov r3, r2
  82042. 8021626: 2200 movs r2, #0
  82043. 8021628: 4621 mov r1, r4
  82044. 802162a: 6878 ldr r0, [r7, #4]
  82045. 802162c: f7ff fe94 bl 8021358 <tcp_output_alloc_header_common>
  82046. 8021630: 6138 str r0, [r7, #16]
  82047. remote_port, TCP_RST | TCP_ACK, wnd);
  82048. if (p == NULL) {
  82049. 8021632: 693b ldr r3, [r7, #16]
  82050. 8021634: 2b00 cmp r3, #0
  82051. 8021636: d00c beq.n 8021652 <tcp_rst+0x8a>
  82052. LWIP_DEBUGF(TCP_DEBUG, ("tcp_rst: could not allocate memory for pbuf\n"));
  82053. return;
  82054. }
  82055. tcp_output_fill_options(pcb, p, 0, optlen);
  82056. 8021638: 7dfb ldrb r3, [r7, #23]
  82057. 802163a: 2200 movs r2, #0
  82058. 802163c: 6939 ldr r1, [r7, #16]
  82059. 802163e: 68f8 ldr r0, [r7, #12]
  82060. 8021640: f7ff ff3a bl 80214b8 <tcp_output_fill_options>
  82061. MIB2_STATS_INC(mib2.tcpoutrsts);
  82062. tcp_output_control_segment(pcb, p, local_ip, remote_ip);
  82063. 8021644: 6abb ldr r3, [r7, #40] @ 0x28
  82064. 8021646: 683a ldr r2, [r7, #0]
  82065. 8021648: 6939 ldr r1, [r7, #16]
  82066. 802164a: 68f8 ldr r0, [r7, #12]
  82067. 802164c: f7ff ff72 bl 8021534 <tcp_output_control_segment>
  82068. 8021650: e000 b.n 8021654 <tcp_rst+0x8c>
  82069. return;
  82070. 8021652: bf00 nop
  82071. LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_rst: seqno %"U32_F" ackno %"U32_F".\n", seqno, ackno));
  82072. }
  82073. 8021654: 371c adds r7, #28
  82074. 8021656: 46bd mov sp, r7
  82075. 8021658: bd90 pop {r4, r7, pc}
  82076. 802165a: bf00 nop
  82077. 802165c: 08030074 .word 0x08030074
  82078. 8021660: 08030854 .word 0x08030854
  82079. 8021664: 080300c8 .word 0x080300c8
  82080. 8021668: 08030870 .word 0x08030870
  82081. 0802166c <tcp_send_empty_ack>:
  82082. *
  82083. * @param pcb Protocol control block for the TCP connection to send the ACK
  82084. */
  82085. err_t
  82086. tcp_send_empty_ack(struct tcp_pcb *pcb)
  82087. {
  82088. 802166c: b590 push {r4, r7, lr}
  82089. 802166e: b087 sub sp, #28
  82090. 8021670: af00 add r7, sp, #0
  82091. 8021672: 6078 str r0, [r7, #4]
  82092. err_t err;
  82093. struct pbuf *p;
  82094. u8_t optlen, optflags = 0;
  82095. 8021674: 2300 movs r3, #0
  82096. 8021676: 75fb strb r3, [r7, #23]
  82097. u8_t num_sacks = 0;
  82098. 8021678: 2300 movs r3, #0
  82099. 802167a: 75bb strb r3, [r7, #22]
  82100. LWIP_ASSERT("tcp_send_empty_ack: invalid pcb", pcb != NULL);
  82101. 802167c: 687b ldr r3, [r7, #4]
  82102. 802167e: 2b00 cmp r3, #0
  82103. 8021680: d106 bne.n 8021690 <tcp_send_empty_ack+0x24>
  82104. 8021682: 4b28 ldr r3, [pc, #160] @ (8021724 <tcp_send_empty_ack+0xb8>)
  82105. 8021684: f240 72ea movw r2, #2026 @ 0x7ea
  82106. 8021688: 4927 ldr r1, [pc, #156] @ (8021728 <tcp_send_empty_ack+0xbc>)
  82107. 802168a: 4828 ldr r0, [pc, #160] @ (802172c <tcp_send_empty_ack+0xc0>)
  82108. 802168c: f009 f866 bl 802a75c <iprintf>
  82109. #if LWIP_TCP_TIMESTAMPS
  82110. if (pcb->flags & TF_TIMESTAMP) {
  82111. optflags = TF_SEG_OPTS_TS;
  82112. }
  82113. #endif
  82114. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb);
  82115. 8021690: 7dfb ldrb r3, [r7, #23]
  82116. 8021692: 009b lsls r3, r3, #2
  82117. 8021694: b2db uxtb r3, r3
  82118. 8021696: f003 0304 and.w r3, r3, #4
  82119. 802169a: 757b strb r3, [r7, #21]
  82120. if ((num_sacks = tcp_get_num_sacks(pcb, optlen)) > 0) {
  82121. optlen += 4 + num_sacks * 8; /* 4 bytes for header (including 2*NOP), plus 8B for each SACK */
  82122. }
  82123. #endif
  82124. p = tcp_output_alloc_header(pcb, optlen, 0, lwip_htonl(pcb->snd_nxt));
  82125. 802169c: 7d7b ldrb r3, [r7, #21]
  82126. 802169e: b29c uxth r4, r3
  82127. 80216a0: 687b ldr r3, [r7, #4]
  82128. 80216a2: 6d1b ldr r3, [r3, #80] @ 0x50
  82129. 80216a4: 4618 mov r0, r3
  82130. 80216a6: f7f8 f914 bl 80198d2 <lwip_htonl>
  82131. 80216aa: 4603 mov r3, r0
  82132. 80216ac: 2200 movs r2, #0
  82133. 80216ae: 4621 mov r1, r4
  82134. 80216b0: 6878 ldr r0, [r7, #4]
  82135. 80216b2: f7ff fec3 bl 802143c <tcp_output_alloc_header>
  82136. 80216b6: 6138 str r0, [r7, #16]
  82137. if (p == NULL) {
  82138. 80216b8: 693b ldr r3, [r7, #16]
  82139. 80216ba: 2b00 cmp r3, #0
  82140. 80216bc: d109 bne.n 80216d2 <tcp_send_empty_ack+0x66>
  82141. /* let tcp_fasttmr retry sending this ACK */
  82142. tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  82143. 80216be: 687b ldr r3, [r7, #4]
  82144. 80216c0: 8b5b ldrh r3, [r3, #26]
  82145. 80216c2: f043 0303 orr.w r3, r3, #3
  82146. 80216c6: b29a uxth r2, r3
  82147. 80216c8: 687b ldr r3, [r7, #4]
  82148. 80216ca: 835a strh r2, [r3, #26]
  82149. LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output: (ACK) could not allocate pbuf\n"));
  82150. return ERR_BUF;
  82151. 80216cc: f06f 0301 mvn.w r3, #1
  82152. 80216d0: e023 b.n 802171a <tcp_send_empty_ack+0xae>
  82153. }
  82154. tcp_output_fill_options(pcb, p, optflags, num_sacks);
  82155. 80216d2: 7dbb ldrb r3, [r7, #22]
  82156. 80216d4: 7dfa ldrb r2, [r7, #23]
  82157. 80216d6: 6939 ldr r1, [r7, #16]
  82158. 80216d8: 6878 ldr r0, [r7, #4]
  82159. 80216da: f7ff feed bl 80214b8 <tcp_output_fill_options>
  82160. pcb->ts_lastacksent = pcb->rcv_nxt;
  82161. #endif
  82162. LWIP_DEBUGF(TCP_OUTPUT_DEBUG,
  82163. ("tcp_output: sending ACK for %"U32_F"\n", pcb->rcv_nxt));
  82164. err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);
  82165. 80216de: 687a ldr r2, [r7, #4]
  82166. 80216e0: 687b ldr r3, [r7, #4]
  82167. 80216e2: 3304 adds r3, #4
  82168. 80216e4: 6939 ldr r1, [r7, #16]
  82169. 80216e6: 6878 ldr r0, [r7, #4]
  82170. 80216e8: f7ff ff24 bl 8021534 <tcp_output_control_segment>
  82171. 80216ec: 4603 mov r3, r0
  82172. 80216ee: 73fb strb r3, [r7, #15]
  82173. if (err != ERR_OK) {
  82174. 80216f0: f997 300f ldrsb.w r3, [r7, #15]
  82175. 80216f4: 2b00 cmp r3, #0
  82176. 80216f6: d007 beq.n 8021708 <tcp_send_empty_ack+0x9c>
  82177. /* let tcp_fasttmr retry sending this ACK */
  82178. tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  82179. 80216f8: 687b ldr r3, [r7, #4]
  82180. 80216fa: 8b5b ldrh r3, [r3, #26]
  82181. 80216fc: f043 0303 orr.w r3, r3, #3
  82182. 8021700: b29a uxth r2, r3
  82183. 8021702: 687b ldr r3, [r7, #4]
  82184. 8021704: 835a strh r2, [r3, #26]
  82185. 8021706: e006 b.n 8021716 <tcp_send_empty_ack+0xaa>
  82186. } else {
  82187. /* remove ACK flags from the PCB, as we sent an empty ACK now */
  82188. tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  82189. 8021708: 687b ldr r3, [r7, #4]
  82190. 802170a: 8b5b ldrh r3, [r3, #26]
  82191. 802170c: f023 0303 bic.w r3, r3, #3
  82192. 8021710: b29a uxth r2, r3
  82193. 8021712: 687b ldr r3, [r7, #4]
  82194. 8021714: 835a strh r2, [r3, #26]
  82195. }
  82196. return err;
  82197. 8021716: f997 300f ldrsb.w r3, [r7, #15]
  82198. }
  82199. 802171a: 4618 mov r0, r3
  82200. 802171c: 371c adds r7, #28
  82201. 802171e: 46bd mov sp, r7
  82202. 8021720: bd90 pop {r4, r7, pc}
  82203. 8021722: bf00 nop
  82204. 8021724: 08030074 .word 0x08030074
  82205. 8021728: 0803088c .word 0x0803088c
  82206. 802172c: 080300c8 .word 0x080300c8
  82207. 08021730 <tcp_keepalive>:
  82208. *
  82209. * @param pcb the tcp_pcb for which to send a keepalive packet
  82210. */
  82211. err_t
  82212. tcp_keepalive(struct tcp_pcb *pcb)
  82213. {
  82214. 8021730: b590 push {r4, r7, lr}
  82215. 8021732: b085 sub sp, #20
  82216. 8021734: af00 add r7, sp, #0
  82217. 8021736: 6078 str r0, [r7, #4]
  82218. err_t err;
  82219. struct pbuf *p;
  82220. u8_t optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  82221. 8021738: 2300 movs r3, #0
  82222. 802173a: 72bb strb r3, [r7, #10]
  82223. LWIP_ASSERT("tcp_keepalive: invalid pcb", pcb != NULL);
  82224. 802173c: 687b ldr r3, [r7, #4]
  82225. 802173e: 2b00 cmp r3, #0
  82226. 8021740: d106 bne.n 8021750 <tcp_keepalive+0x20>
  82227. 8021742: 4b18 ldr r3, [pc, #96] @ (80217a4 <tcp_keepalive+0x74>)
  82228. 8021744: f640 0224 movw r2, #2084 @ 0x824
  82229. 8021748: 4917 ldr r1, [pc, #92] @ (80217a8 <tcp_keepalive+0x78>)
  82230. 802174a: 4818 ldr r0, [pc, #96] @ (80217ac <tcp_keepalive+0x7c>)
  82231. 802174c: f009 f806 bl 802a75c <iprintf>
  82232. LWIP_DEBUGF(TCP_DEBUG, ("\n"));
  82233. LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: tcp_ticks %"U32_F" pcb->tmr %"U32_F" pcb->keep_cnt_sent %"U16_F"\n",
  82234. tcp_ticks, pcb->tmr, (u16_t)pcb->keep_cnt_sent));
  82235. p = tcp_output_alloc_header(pcb, optlen, 0, lwip_htonl(pcb->snd_nxt - 1));
  82236. 8021750: 7abb ldrb r3, [r7, #10]
  82237. 8021752: b29c uxth r4, r3
  82238. 8021754: 687b ldr r3, [r7, #4]
  82239. 8021756: 6d1b ldr r3, [r3, #80] @ 0x50
  82240. 8021758: 3b01 subs r3, #1
  82241. 802175a: 4618 mov r0, r3
  82242. 802175c: f7f8 f8b9 bl 80198d2 <lwip_htonl>
  82243. 8021760: 4603 mov r3, r0
  82244. 8021762: 2200 movs r2, #0
  82245. 8021764: 4621 mov r1, r4
  82246. 8021766: 6878 ldr r0, [r7, #4]
  82247. 8021768: f7ff fe68 bl 802143c <tcp_output_alloc_header>
  82248. 802176c: 60f8 str r0, [r7, #12]
  82249. if (p == NULL) {
  82250. 802176e: 68fb ldr r3, [r7, #12]
  82251. 8021770: 2b00 cmp r3, #0
  82252. 8021772: d102 bne.n 802177a <tcp_keepalive+0x4a>
  82253. LWIP_DEBUGF(TCP_DEBUG,
  82254. ("tcp_keepalive: could not allocate memory for pbuf\n"));
  82255. return ERR_MEM;
  82256. 8021774: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  82257. 8021778: e010 b.n 802179c <tcp_keepalive+0x6c>
  82258. }
  82259. tcp_output_fill_options(pcb, p, 0, optlen);
  82260. 802177a: 7abb ldrb r3, [r7, #10]
  82261. 802177c: 2200 movs r2, #0
  82262. 802177e: 68f9 ldr r1, [r7, #12]
  82263. 8021780: 6878 ldr r0, [r7, #4]
  82264. 8021782: f7ff fe99 bl 80214b8 <tcp_output_fill_options>
  82265. err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);
  82266. 8021786: 687a ldr r2, [r7, #4]
  82267. 8021788: 687b ldr r3, [r7, #4]
  82268. 802178a: 3304 adds r3, #4
  82269. 802178c: 68f9 ldr r1, [r7, #12]
  82270. 802178e: 6878 ldr r0, [r7, #4]
  82271. 8021790: f7ff fed0 bl 8021534 <tcp_output_control_segment>
  82272. 8021794: 4603 mov r3, r0
  82273. 8021796: 72fb strb r3, [r7, #11]
  82274. LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: seqno %"U32_F" ackno %"U32_F" err %d.\n",
  82275. pcb->snd_nxt - 1, pcb->rcv_nxt, (int)err));
  82276. return err;
  82277. 8021798: f997 300b ldrsb.w r3, [r7, #11]
  82278. }
  82279. 802179c: 4618 mov r0, r3
  82280. 802179e: 3714 adds r7, #20
  82281. 80217a0: 46bd mov sp, r7
  82282. 80217a2: bd90 pop {r4, r7, pc}
  82283. 80217a4: 08030074 .word 0x08030074
  82284. 80217a8: 080308ac .word 0x080308ac
  82285. 80217ac: 080300c8 .word 0x080300c8
  82286. 080217b0 <tcp_zero_window_probe>:
  82287. *
  82288. * @param pcb the tcp_pcb for which to send a zero-window probe packet
  82289. */
  82290. err_t
  82291. tcp_zero_window_probe(struct tcp_pcb *pcb)
  82292. {
  82293. 80217b0: b590 push {r4, r7, lr}
  82294. 80217b2: b08b sub sp, #44 @ 0x2c
  82295. 80217b4: af00 add r7, sp, #0
  82296. 80217b6: 6078 str r0, [r7, #4]
  82297. struct tcp_hdr *tcphdr;
  82298. struct tcp_seg *seg;
  82299. u16_t len;
  82300. u8_t is_fin;
  82301. u32_t snd_nxt;
  82302. u8_t optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  82303. 80217b8: 2300 movs r3, #0
  82304. 80217ba: 74fb strb r3, [r7, #19]
  82305. LWIP_ASSERT("tcp_zero_window_probe: invalid pcb", pcb != NULL);
  82306. 80217bc: 687b ldr r3, [r7, #4]
  82307. 80217be: 2b00 cmp r3, #0
  82308. 80217c0: d106 bne.n 80217d0 <tcp_zero_window_probe+0x20>
  82309. 80217c2: 4b4d ldr r3, [pc, #308] @ (80218f8 <tcp_zero_window_probe+0x148>)
  82310. 80217c4: f640 024f movw r2, #2127 @ 0x84f
  82311. 80217c8: 494c ldr r1, [pc, #304] @ (80218fc <tcp_zero_window_probe+0x14c>)
  82312. 80217ca: 484d ldr r0, [pc, #308] @ (8021900 <tcp_zero_window_probe+0x150>)
  82313. 80217cc: f008 ffc6 bl 802a75c <iprintf>
  82314. ("tcp_zero_window_probe: tcp_ticks %"U32_F
  82315. " pcb->tmr %"U32_F" pcb->keep_cnt_sent %"U16_F"\n",
  82316. tcp_ticks, pcb->tmr, (u16_t)pcb->keep_cnt_sent));
  82317. /* Only consider unsent, persist timer should be off when there is data in-flight */
  82318. seg = pcb->unsent;
  82319. 80217d0: 687b ldr r3, [r7, #4]
  82320. 80217d2: 6edb ldr r3, [r3, #108] @ 0x6c
  82321. 80217d4: 627b str r3, [r7, #36] @ 0x24
  82322. if (seg == NULL) {
  82323. 80217d6: 6a7b ldr r3, [r7, #36] @ 0x24
  82324. 80217d8: 2b00 cmp r3, #0
  82325. 80217da: d101 bne.n 80217e0 <tcp_zero_window_probe+0x30>
  82326. /* Not expected, persist timer should be off when the send buffer is empty */
  82327. return ERR_OK;
  82328. 80217dc: 2300 movs r3, #0
  82329. 80217de: e087 b.n 80218f0 <tcp_zero_window_probe+0x140>
  82330. /* increment probe count. NOTE: we record probe even if it fails
  82331. to actually transmit due to an error. This ensures memory exhaustion/
  82332. routing problem doesn't leave a zero-window pcb as an indefinite zombie.
  82333. RTO mechanism has similar behavior, see pcb->nrtx */
  82334. if (pcb->persist_probe < 0xFF) {
  82335. 80217e0: 687b ldr r3, [r7, #4]
  82336. 80217e2: f893 309a ldrb.w r3, [r3, #154] @ 0x9a
  82337. 80217e6: 2bff cmp r3, #255 @ 0xff
  82338. 80217e8: d007 beq.n 80217fa <tcp_zero_window_probe+0x4a>
  82339. ++pcb->persist_probe;
  82340. 80217ea: 687b ldr r3, [r7, #4]
  82341. 80217ec: f893 309a ldrb.w r3, [r3, #154] @ 0x9a
  82342. 80217f0: 3301 adds r3, #1
  82343. 80217f2: b2da uxtb r2, r3
  82344. 80217f4: 687b ldr r3, [r7, #4]
  82345. 80217f6: f883 209a strb.w r2, [r3, #154] @ 0x9a
  82346. }
  82347. is_fin = ((TCPH_FLAGS(seg->tcphdr) & TCP_FIN) != 0) && (seg->len == 0);
  82348. 80217fa: 6a7b ldr r3, [r7, #36] @ 0x24
  82349. 80217fc: 691b ldr r3, [r3, #16]
  82350. 80217fe: 899b ldrh r3, [r3, #12]
  82351. 8021800: b29b uxth r3, r3
  82352. 8021802: 4618 mov r0, r3
  82353. 8021804: f7f8 f850 bl 80198a8 <lwip_htons>
  82354. 8021808: 4603 mov r3, r0
  82355. 802180a: b2db uxtb r3, r3
  82356. 802180c: f003 0301 and.w r3, r3, #1
  82357. 8021810: 2b00 cmp r3, #0
  82358. 8021812: d005 beq.n 8021820 <tcp_zero_window_probe+0x70>
  82359. 8021814: 6a7b ldr r3, [r7, #36] @ 0x24
  82360. 8021816: 891b ldrh r3, [r3, #8]
  82361. 8021818: 2b00 cmp r3, #0
  82362. 802181a: d101 bne.n 8021820 <tcp_zero_window_probe+0x70>
  82363. 802181c: 2301 movs r3, #1
  82364. 802181e: e000 b.n 8021822 <tcp_zero_window_probe+0x72>
  82365. 8021820: 2300 movs r3, #0
  82366. 8021822: f887 3023 strb.w r3, [r7, #35] @ 0x23
  82367. /* we want to send one seqno: either FIN or data (no options) */
  82368. len = is_fin ? 0 : 1;
  82369. 8021826: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  82370. 802182a: 2b00 cmp r3, #0
  82371. 802182c: bf0c ite eq
  82372. 802182e: 2301 moveq r3, #1
  82373. 8021830: 2300 movne r3, #0
  82374. 8021832: b2db uxtb r3, r3
  82375. 8021834: 843b strh r3, [r7, #32]
  82376. p = tcp_output_alloc_header(pcb, optlen, len, seg->tcphdr->seqno);
  82377. 8021836: 7cfb ldrb r3, [r7, #19]
  82378. 8021838: b299 uxth r1, r3
  82379. 802183a: 6a7b ldr r3, [r7, #36] @ 0x24
  82380. 802183c: 691b ldr r3, [r3, #16]
  82381. 802183e: 685b ldr r3, [r3, #4]
  82382. 8021840: 8c3a ldrh r2, [r7, #32]
  82383. 8021842: 6878 ldr r0, [r7, #4]
  82384. 8021844: f7ff fdfa bl 802143c <tcp_output_alloc_header>
  82385. 8021848: 61f8 str r0, [r7, #28]
  82386. if (p == NULL) {
  82387. 802184a: 69fb ldr r3, [r7, #28]
  82388. 802184c: 2b00 cmp r3, #0
  82389. 802184e: d102 bne.n 8021856 <tcp_zero_window_probe+0xa6>
  82390. LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: no memory for pbuf\n"));
  82391. return ERR_MEM;
  82392. 8021850: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  82393. 8021854: e04c b.n 80218f0 <tcp_zero_window_probe+0x140>
  82394. }
  82395. tcphdr = (struct tcp_hdr *)p->payload;
  82396. 8021856: 69fb ldr r3, [r7, #28]
  82397. 8021858: 685b ldr r3, [r3, #4]
  82398. 802185a: 61bb str r3, [r7, #24]
  82399. if (is_fin) {
  82400. 802185c: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  82401. 8021860: 2b00 cmp r3, #0
  82402. 8021862: d011 beq.n 8021888 <tcp_zero_window_probe+0xd8>
  82403. /* FIN segment, no data */
  82404. TCPH_FLAGS_SET(tcphdr, TCP_ACK | TCP_FIN);
  82405. 8021864: 69bb ldr r3, [r7, #24]
  82406. 8021866: 899b ldrh r3, [r3, #12]
  82407. 8021868: b29b uxth r3, r3
  82408. 802186a: b21b sxth r3, r3
  82409. 802186c: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  82410. 8021870: b21c sxth r4, r3
  82411. 8021872: 2011 movs r0, #17
  82412. 8021874: f7f8 f818 bl 80198a8 <lwip_htons>
  82413. 8021878: 4603 mov r3, r0
  82414. 802187a: b21b sxth r3, r3
  82415. 802187c: 4323 orrs r3, r4
  82416. 802187e: b21b sxth r3, r3
  82417. 8021880: b29a uxth r2, r3
  82418. 8021882: 69bb ldr r3, [r7, #24]
  82419. 8021884: 819a strh r2, [r3, #12]
  82420. 8021886: e010 b.n 80218aa <tcp_zero_window_probe+0xfa>
  82421. } else {
  82422. /* Data segment, copy in one byte from the head of the unacked queue */
  82423. char *d = ((char *)p->payload + TCP_HLEN);
  82424. 8021888: 69fb ldr r3, [r7, #28]
  82425. 802188a: 685b ldr r3, [r3, #4]
  82426. 802188c: 3314 adds r3, #20
  82427. 802188e: 617b str r3, [r7, #20]
  82428. /* Depending on whether the segment has already been sent (unacked) or not
  82429. (unsent), seg->p->payload points to the IP header or TCP header.
  82430. Ensure we copy the first TCP data byte: */
  82431. pbuf_copy_partial(seg->p, d, 1, seg->p->tot_len - seg->len);
  82432. 8021890: 6a7b ldr r3, [r7, #36] @ 0x24
  82433. 8021892: 6858 ldr r0, [r3, #4]
  82434. 8021894: 6a7b ldr r3, [r7, #36] @ 0x24
  82435. 8021896: 685b ldr r3, [r3, #4]
  82436. 8021898: 891a ldrh r2, [r3, #8]
  82437. 802189a: 6a7b ldr r3, [r7, #36] @ 0x24
  82438. 802189c: 891b ldrh r3, [r3, #8]
  82439. 802189e: 1ad3 subs r3, r2, r3
  82440. 80218a0: b29b uxth r3, r3
  82441. 80218a2: 2201 movs r2, #1
  82442. 80218a4: 6979 ldr r1, [r7, #20]
  82443. 80218a6: f7f9 fee7 bl 801b678 <pbuf_copy_partial>
  82444. }
  82445. /* The byte may be acknowledged without the window being opened. */
  82446. snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + 1;
  82447. 80218aa: 6a7b ldr r3, [r7, #36] @ 0x24
  82448. 80218ac: 691b ldr r3, [r3, #16]
  82449. 80218ae: 685b ldr r3, [r3, #4]
  82450. 80218b0: 4618 mov r0, r3
  82451. 80218b2: f7f8 f80e bl 80198d2 <lwip_htonl>
  82452. 80218b6: 4603 mov r3, r0
  82453. 80218b8: 3301 adds r3, #1
  82454. 80218ba: 60fb str r3, [r7, #12]
  82455. if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) {
  82456. 80218bc: 687b ldr r3, [r7, #4]
  82457. 80218be: 6d1a ldr r2, [r3, #80] @ 0x50
  82458. 80218c0: 68fb ldr r3, [r7, #12]
  82459. 80218c2: 1ad3 subs r3, r2, r3
  82460. 80218c4: 2b00 cmp r3, #0
  82461. 80218c6: da02 bge.n 80218ce <tcp_zero_window_probe+0x11e>
  82462. pcb->snd_nxt = snd_nxt;
  82463. 80218c8: 687b ldr r3, [r7, #4]
  82464. 80218ca: 68fa ldr r2, [r7, #12]
  82465. 80218cc: 651a str r2, [r3, #80] @ 0x50
  82466. }
  82467. tcp_output_fill_options(pcb, p, 0, optlen);
  82468. 80218ce: 7cfb ldrb r3, [r7, #19]
  82469. 80218d0: 2200 movs r2, #0
  82470. 80218d2: 69f9 ldr r1, [r7, #28]
  82471. 80218d4: 6878 ldr r0, [r7, #4]
  82472. 80218d6: f7ff fdef bl 80214b8 <tcp_output_fill_options>
  82473. err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);
  82474. 80218da: 687a ldr r2, [r7, #4]
  82475. 80218dc: 687b ldr r3, [r7, #4]
  82476. 80218de: 3304 adds r3, #4
  82477. 80218e0: 69f9 ldr r1, [r7, #28]
  82478. 80218e2: 6878 ldr r0, [r7, #4]
  82479. 80218e4: f7ff fe26 bl 8021534 <tcp_output_control_segment>
  82480. 80218e8: 4603 mov r3, r0
  82481. 80218ea: 72fb strb r3, [r7, #11]
  82482. LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: seqno %"U32_F
  82483. " ackno %"U32_F" err %d.\n",
  82484. pcb->snd_nxt - 1, pcb->rcv_nxt, (int)err));
  82485. return err;
  82486. 80218ec: f997 300b ldrsb.w r3, [r7, #11]
  82487. }
  82488. 80218f0: 4618 mov r0, r3
  82489. 80218f2: 372c adds r7, #44 @ 0x2c
  82490. 80218f4: 46bd mov sp, r7
  82491. 80218f6: bd90 pop {r4, r7, pc}
  82492. 80218f8: 08030074 .word 0x08030074
  82493. 80218fc: 080308c8 .word 0x080308c8
  82494. 8021900: 080300c8 .word 0x080300c8
  82495. 08021904 <tcpip_tcp_timer>:
  82496. *
  82497. * @param arg unused argument
  82498. */
  82499. static void
  82500. tcpip_tcp_timer(void *arg)
  82501. {
  82502. 8021904: b580 push {r7, lr}
  82503. 8021906: b082 sub sp, #8
  82504. 8021908: af00 add r7, sp, #0
  82505. 802190a: 6078 str r0, [r7, #4]
  82506. LWIP_UNUSED_ARG(arg);
  82507. /* call TCP timer handler */
  82508. tcp_tmr();
  82509. 802190c: f7f9 ffa2 bl 801b854 <tcp_tmr>
  82510. /* timer still needed? */
  82511. if (tcp_active_pcbs || tcp_tw_pcbs) {
  82512. 8021910: 4b0a ldr r3, [pc, #40] @ (802193c <tcpip_tcp_timer+0x38>)
  82513. 8021912: 681b ldr r3, [r3, #0]
  82514. 8021914: 2b00 cmp r3, #0
  82515. 8021916: d103 bne.n 8021920 <tcpip_tcp_timer+0x1c>
  82516. 8021918: 4b09 ldr r3, [pc, #36] @ (8021940 <tcpip_tcp_timer+0x3c>)
  82517. 802191a: 681b ldr r3, [r3, #0]
  82518. 802191c: 2b00 cmp r3, #0
  82519. 802191e: d005 beq.n 802192c <tcpip_tcp_timer+0x28>
  82520. /* restart timer */
  82521. sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
  82522. 8021920: 2200 movs r2, #0
  82523. 8021922: 4908 ldr r1, [pc, #32] @ (8021944 <tcpip_tcp_timer+0x40>)
  82524. 8021924: 20fa movs r0, #250 @ 0xfa
  82525. 8021926: f000 f8f5 bl 8021b14 <sys_timeout>
  82526. 802192a: e003 b.n 8021934 <tcpip_tcp_timer+0x30>
  82527. } else {
  82528. /* disable timer */
  82529. tcpip_tcp_timer_active = 0;
  82530. 802192c: 4b06 ldr r3, [pc, #24] @ (8021948 <tcpip_tcp_timer+0x44>)
  82531. 802192e: 2200 movs r2, #0
  82532. 8021930: 601a str r2, [r3, #0]
  82533. }
  82534. }
  82535. 8021932: bf00 nop
  82536. 8021934: bf00 nop
  82537. 8021936: 3708 adds r7, #8
  82538. 8021938: 46bd mov sp, r7
  82539. 802193a: bd80 pop {r7, pc}
  82540. 802193c: 2402af74 .word 0x2402af74
  82541. 8021940: 2402af78 .word 0x2402af78
  82542. 8021944: 08021905 .word 0x08021905
  82543. 8021948: 2402afc4 .word 0x2402afc4
  82544. 0802194c <tcp_timer_needed>:
  82545. * the reason is to have the TCP timer only running when
  82546. * there are active (or time-wait) PCBs.
  82547. */
  82548. void
  82549. tcp_timer_needed(void)
  82550. {
  82551. 802194c: b580 push {r7, lr}
  82552. 802194e: af00 add r7, sp, #0
  82553. LWIP_ASSERT_CORE_LOCKED();
  82554. 8021950: f7ef fad6 bl 8010f00 <sys_check_core_locking>
  82555. /* timer is off but needed again? */
  82556. if (!tcpip_tcp_timer_active && (tcp_active_pcbs || tcp_tw_pcbs)) {
  82557. 8021954: 4b0a ldr r3, [pc, #40] @ (8021980 <tcp_timer_needed+0x34>)
  82558. 8021956: 681b ldr r3, [r3, #0]
  82559. 8021958: 2b00 cmp r3, #0
  82560. 802195a: d10f bne.n 802197c <tcp_timer_needed+0x30>
  82561. 802195c: 4b09 ldr r3, [pc, #36] @ (8021984 <tcp_timer_needed+0x38>)
  82562. 802195e: 681b ldr r3, [r3, #0]
  82563. 8021960: 2b00 cmp r3, #0
  82564. 8021962: d103 bne.n 802196c <tcp_timer_needed+0x20>
  82565. 8021964: 4b08 ldr r3, [pc, #32] @ (8021988 <tcp_timer_needed+0x3c>)
  82566. 8021966: 681b ldr r3, [r3, #0]
  82567. 8021968: 2b00 cmp r3, #0
  82568. 802196a: d007 beq.n 802197c <tcp_timer_needed+0x30>
  82569. /* enable and start timer */
  82570. tcpip_tcp_timer_active = 1;
  82571. 802196c: 4b04 ldr r3, [pc, #16] @ (8021980 <tcp_timer_needed+0x34>)
  82572. 802196e: 2201 movs r2, #1
  82573. 8021970: 601a str r2, [r3, #0]
  82574. sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
  82575. 8021972: 2200 movs r2, #0
  82576. 8021974: 4905 ldr r1, [pc, #20] @ (802198c <tcp_timer_needed+0x40>)
  82577. 8021976: 20fa movs r0, #250 @ 0xfa
  82578. 8021978: f000 f8cc bl 8021b14 <sys_timeout>
  82579. }
  82580. }
  82581. 802197c: bf00 nop
  82582. 802197e: bd80 pop {r7, pc}
  82583. 8021980: 2402afc4 .word 0x2402afc4
  82584. 8021984: 2402af74 .word 0x2402af74
  82585. 8021988: 2402af78 .word 0x2402af78
  82586. 802198c: 08021905 .word 0x08021905
  82587. 08021990 <sys_timeout_abs>:
  82588. #if LWIP_DEBUG_TIMERNAMES
  82589. sys_timeout_abs(u32_t abs_time, sys_timeout_handler handler, void *arg, const char *handler_name)
  82590. #else /* LWIP_DEBUG_TIMERNAMES */
  82591. sys_timeout_abs(u32_t abs_time, sys_timeout_handler handler, void *arg)
  82592. #endif
  82593. {
  82594. 8021990: b580 push {r7, lr}
  82595. 8021992: b086 sub sp, #24
  82596. 8021994: af00 add r7, sp, #0
  82597. 8021996: 60f8 str r0, [r7, #12]
  82598. 8021998: 60b9 str r1, [r7, #8]
  82599. 802199a: 607a str r2, [r7, #4]
  82600. struct sys_timeo *timeout, *t;
  82601. timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT);
  82602. 802199c: 200a movs r0, #10
  82603. 802199e: f7f8 fd01 bl 801a3a4 <memp_malloc>
  82604. 80219a2: 6138 str r0, [r7, #16]
  82605. if (timeout == NULL) {
  82606. 80219a4: 693b ldr r3, [r7, #16]
  82607. 80219a6: 2b00 cmp r3, #0
  82608. 80219a8: d109 bne.n 80219be <sys_timeout_abs+0x2e>
  82609. LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL);
  82610. 80219aa: 693b ldr r3, [r7, #16]
  82611. 80219ac: 2b00 cmp r3, #0
  82612. 80219ae: d151 bne.n 8021a54 <sys_timeout_abs+0xc4>
  82613. 80219b0: 4b2a ldr r3, [pc, #168] @ (8021a5c <sys_timeout_abs+0xcc>)
  82614. 80219b2: 22be movs r2, #190 @ 0xbe
  82615. 80219b4: 492a ldr r1, [pc, #168] @ (8021a60 <sys_timeout_abs+0xd0>)
  82616. 80219b6: 482b ldr r0, [pc, #172] @ (8021a64 <sys_timeout_abs+0xd4>)
  82617. 80219b8: f008 fed0 bl 802a75c <iprintf>
  82618. return;
  82619. 80219bc: e04a b.n 8021a54 <sys_timeout_abs+0xc4>
  82620. }
  82621. timeout->next = NULL;
  82622. 80219be: 693b ldr r3, [r7, #16]
  82623. 80219c0: 2200 movs r2, #0
  82624. 80219c2: 601a str r2, [r3, #0]
  82625. timeout->h = handler;
  82626. 80219c4: 693b ldr r3, [r7, #16]
  82627. 80219c6: 68ba ldr r2, [r7, #8]
  82628. 80219c8: 609a str r2, [r3, #8]
  82629. timeout->arg = arg;
  82630. 80219ca: 693b ldr r3, [r7, #16]
  82631. 80219cc: 687a ldr r2, [r7, #4]
  82632. 80219ce: 60da str r2, [r3, #12]
  82633. timeout->time = abs_time;
  82634. 80219d0: 693b ldr r3, [r7, #16]
  82635. 80219d2: 68fa ldr r2, [r7, #12]
  82636. 80219d4: 605a str r2, [r3, #4]
  82637. timeout->handler_name = handler_name;
  82638. LWIP_DEBUGF(TIMERS_DEBUG, ("sys_timeout: %p abs_time=%"U32_F" handler=%s arg=%p\n",
  82639. (void *)timeout, abs_time, handler_name, (void *)arg));
  82640. #endif /* LWIP_DEBUG_TIMERNAMES */
  82641. if (next_timeout == NULL) {
  82642. 80219d6: 4b24 ldr r3, [pc, #144] @ (8021a68 <sys_timeout_abs+0xd8>)
  82643. 80219d8: 681b ldr r3, [r3, #0]
  82644. 80219da: 2b00 cmp r3, #0
  82645. 80219dc: d103 bne.n 80219e6 <sys_timeout_abs+0x56>
  82646. next_timeout = timeout;
  82647. 80219de: 4a22 ldr r2, [pc, #136] @ (8021a68 <sys_timeout_abs+0xd8>)
  82648. 80219e0: 693b ldr r3, [r7, #16]
  82649. 80219e2: 6013 str r3, [r2, #0]
  82650. return;
  82651. 80219e4: e037 b.n 8021a56 <sys_timeout_abs+0xc6>
  82652. }
  82653. if (TIME_LESS_THAN(timeout->time, next_timeout->time)) {
  82654. 80219e6: 693b ldr r3, [r7, #16]
  82655. 80219e8: 685a ldr r2, [r3, #4]
  82656. 80219ea: 4b1f ldr r3, [pc, #124] @ (8021a68 <sys_timeout_abs+0xd8>)
  82657. 80219ec: 681b ldr r3, [r3, #0]
  82658. 80219ee: 685b ldr r3, [r3, #4]
  82659. 80219f0: 1ad3 subs r3, r2, r3
  82660. 80219f2: 0fdb lsrs r3, r3, #31
  82661. 80219f4: f003 0301 and.w r3, r3, #1
  82662. 80219f8: b2db uxtb r3, r3
  82663. 80219fa: 2b00 cmp r3, #0
  82664. 80219fc: d007 beq.n 8021a0e <sys_timeout_abs+0x7e>
  82665. timeout->next = next_timeout;
  82666. 80219fe: 4b1a ldr r3, [pc, #104] @ (8021a68 <sys_timeout_abs+0xd8>)
  82667. 8021a00: 681a ldr r2, [r3, #0]
  82668. 8021a02: 693b ldr r3, [r7, #16]
  82669. 8021a04: 601a str r2, [r3, #0]
  82670. next_timeout = timeout;
  82671. 8021a06: 4a18 ldr r2, [pc, #96] @ (8021a68 <sys_timeout_abs+0xd8>)
  82672. 8021a08: 693b ldr r3, [r7, #16]
  82673. 8021a0a: 6013 str r3, [r2, #0]
  82674. 8021a0c: e023 b.n 8021a56 <sys_timeout_abs+0xc6>
  82675. } else {
  82676. for (t = next_timeout; t != NULL; t = t->next) {
  82677. 8021a0e: 4b16 ldr r3, [pc, #88] @ (8021a68 <sys_timeout_abs+0xd8>)
  82678. 8021a10: 681b ldr r3, [r3, #0]
  82679. 8021a12: 617b str r3, [r7, #20]
  82680. 8021a14: e01a b.n 8021a4c <sys_timeout_abs+0xbc>
  82681. if ((t->next == NULL) || TIME_LESS_THAN(timeout->time, t->next->time)) {
  82682. 8021a16: 697b ldr r3, [r7, #20]
  82683. 8021a18: 681b ldr r3, [r3, #0]
  82684. 8021a1a: 2b00 cmp r3, #0
  82685. 8021a1c: d00b beq.n 8021a36 <sys_timeout_abs+0xa6>
  82686. 8021a1e: 693b ldr r3, [r7, #16]
  82687. 8021a20: 685a ldr r2, [r3, #4]
  82688. 8021a22: 697b ldr r3, [r7, #20]
  82689. 8021a24: 681b ldr r3, [r3, #0]
  82690. 8021a26: 685b ldr r3, [r3, #4]
  82691. 8021a28: 1ad3 subs r3, r2, r3
  82692. 8021a2a: 0fdb lsrs r3, r3, #31
  82693. 8021a2c: f003 0301 and.w r3, r3, #1
  82694. 8021a30: b2db uxtb r3, r3
  82695. 8021a32: 2b00 cmp r3, #0
  82696. 8021a34: d007 beq.n 8021a46 <sys_timeout_abs+0xb6>
  82697. timeout->next = t->next;
  82698. 8021a36: 697b ldr r3, [r7, #20]
  82699. 8021a38: 681a ldr r2, [r3, #0]
  82700. 8021a3a: 693b ldr r3, [r7, #16]
  82701. 8021a3c: 601a str r2, [r3, #0]
  82702. t->next = timeout;
  82703. 8021a3e: 697b ldr r3, [r7, #20]
  82704. 8021a40: 693a ldr r2, [r7, #16]
  82705. 8021a42: 601a str r2, [r3, #0]
  82706. break;
  82707. 8021a44: e007 b.n 8021a56 <sys_timeout_abs+0xc6>
  82708. for (t = next_timeout; t != NULL; t = t->next) {
  82709. 8021a46: 697b ldr r3, [r7, #20]
  82710. 8021a48: 681b ldr r3, [r3, #0]
  82711. 8021a4a: 617b str r3, [r7, #20]
  82712. 8021a4c: 697b ldr r3, [r7, #20]
  82713. 8021a4e: 2b00 cmp r3, #0
  82714. 8021a50: d1e1 bne.n 8021a16 <sys_timeout_abs+0x86>
  82715. 8021a52: e000 b.n 8021a56 <sys_timeout_abs+0xc6>
  82716. return;
  82717. 8021a54: bf00 nop
  82718. }
  82719. }
  82720. }
  82721. }
  82722. 8021a56: 3718 adds r7, #24
  82723. 8021a58: 46bd mov sp, r7
  82724. 8021a5a: bd80 pop {r7, pc}
  82725. 8021a5c: 080308ec .word 0x080308ec
  82726. 8021a60: 08030920 .word 0x08030920
  82727. 8021a64: 08030960 .word 0x08030960
  82728. 8021a68: 2402afbc .word 0x2402afbc
  82729. 08021a6c <lwip_cyclic_timer>:
  82730. #if !LWIP_TESTMODE
  82731. static
  82732. #endif
  82733. void
  82734. lwip_cyclic_timer(void *arg)
  82735. {
  82736. 8021a6c: b580 push {r7, lr}
  82737. 8021a6e: b086 sub sp, #24
  82738. 8021a70: af00 add r7, sp, #0
  82739. 8021a72: 6078 str r0, [r7, #4]
  82740. u32_t now;
  82741. u32_t next_timeout_time;
  82742. const struct lwip_cyclic_timer *cyclic = (const struct lwip_cyclic_timer *)arg;
  82743. 8021a74: 687b ldr r3, [r7, #4]
  82744. 8021a76: 617b str r3, [r7, #20]
  82745. #if LWIP_DEBUG_TIMERNAMES
  82746. LWIP_DEBUGF(TIMERS_DEBUG, ("tcpip: %s()\n", cyclic->handler_name));
  82747. #endif
  82748. cyclic->handler();
  82749. 8021a78: 697b ldr r3, [r7, #20]
  82750. 8021a7a: 685b ldr r3, [r3, #4]
  82751. 8021a7c: 4798 blx r3
  82752. now = sys_now();
  82753. 8021a7e: f7ee ffa3 bl 80109c8 <sys_now>
  82754. 8021a82: 6138 str r0, [r7, #16]
  82755. next_timeout_time = (u32_t)(current_timeout_due_time + cyclic->interval_ms); /* overflow handled by TIME_LESS_THAN macro */
  82756. 8021a84: 697b ldr r3, [r7, #20]
  82757. 8021a86: 681a ldr r2, [r3, #0]
  82758. 8021a88: 4b0f ldr r3, [pc, #60] @ (8021ac8 <lwip_cyclic_timer+0x5c>)
  82759. 8021a8a: 681b ldr r3, [r3, #0]
  82760. 8021a8c: 4413 add r3, r2
  82761. 8021a8e: 60fb str r3, [r7, #12]
  82762. if (TIME_LESS_THAN(next_timeout_time, now)) {
  82763. 8021a90: 68fa ldr r2, [r7, #12]
  82764. 8021a92: 693b ldr r3, [r7, #16]
  82765. 8021a94: 1ad3 subs r3, r2, r3
  82766. 8021a96: 0fdb lsrs r3, r3, #31
  82767. 8021a98: f003 0301 and.w r3, r3, #1
  82768. 8021a9c: b2db uxtb r3, r3
  82769. 8021a9e: 2b00 cmp r3, #0
  82770. 8021aa0: d009 beq.n 8021ab6 <lwip_cyclic_timer+0x4a>
  82771. /* timer would immediately expire again -> "overload" -> restart without any correction */
  82772. #if LWIP_DEBUG_TIMERNAMES
  82773. sys_timeout_abs((u32_t)(now + cyclic->interval_ms), lwip_cyclic_timer, arg, cyclic->handler_name);
  82774. #else
  82775. sys_timeout_abs((u32_t)(now + cyclic->interval_ms), lwip_cyclic_timer, arg);
  82776. 8021aa2: 697b ldr r3, [r7, #20]
  82777. 8021aa4: 681a ldr r2, [r3, #0]
  82778. 8021aa6: 693b ldr r3, [r7, #16]
  82779. 8021aa8: 4413 add r3, r2
  82780. 8021aaa: 687a ldr r2, [r7, #4]
  82781. 8021aac: 4907 ldr r1, [pc, #28] @ (8021acc <lwip_cyclic_timer+0x60>)
  82782. 8021aae: 4618 mov r0, r3
  82783. 8021ab0: f7ff ff6e bl 8021990 <sys_timeout_abs>
  82784. sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg, cyclic->handler_name);
  82785. #else
  82786. sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg);
  82787. #endif
  82788. }
  82789. }
  82790. 8021ab4: e004 b.n 8021ac0 <lwip_cyclic_timer+0x54>
  82791. sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg);
  82792. 8021ab6: 687a ldr r2, [r7, #4]
  82793. 8021ab8: 4904 ldr r1, [pc, #16] @ (8021acc <lwip_cyclic_timer+0x60>)
  82794. 8021aba: 68f8 ldr r0, [r7, #12]
  82795. 8021abc: f7ff ff68 bl 8021990 <sys_timeout_abs>
  82796. }
  82797. 8021ac0: bf00 nop
  82798. 8021ac2: 3718 adds r7, #24
  82799. 8021ac4: 46bd mov sp, r7
  82800. 8021ac6: bd80 pop {r7, pc}
  82801. 8021ac8: 2402afc0 .word 0x2402afc0
  82802. 8021acc: 08021a6d .word 0x08021a6d
  82803. 08021ad0 <sys_timeouts_init>:
  82804. /** Initialize this module */
  82805. void sys_timeouts_init(void)
  82806. {
  82807. 8021ad0: b580 push {r7, lr}
  82808. 8021ad2: b082 sub sp, #8
  82809. 8021ad4: af00 add r7, sp, #0
  82810. size_t i;
  82811. /* tcp_tmr() at index 0 is started on demand */
  82812. for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) {
  82813. 8021ad6: 2301 movs r3, #1
  82814. 8021ad8: 607b str r3, [r7, #4]
  82815. 8021ada: e00e b.n 8021afa <sys_timeouts_init+0x2a>
  82816. /* we have to cast via size_t to get rid of const warning
  82817. (this is OK as cyclic_timer() casts back to const* */
  82818. sys_timeout(lwip_cyclic_timers[i].interval_ms, lwip_cyclic_timer, LWIP_CONST_CAST(void *, &lwip_cyclic_timers[i]));
  82819. 8021adc: 4a0b ldr r2, [pc, #44] @ (8021b0c <sys_timeouts_init+0x3c>)
  82820. 8021ade: 687b ldr r3, [r7, #4]
  82821. 8021ae0: f852 0033 ldr.w r0, [r2, r3, lsl #3]
  82822. 8021ae4: 687b ldr r3, [r7, #4]
  82823. 8021ae6: 00db lsls r3, r3, #3
  82824. 8021ae8: 4a08 ldr r2, [pc, #32] @ (8021b0c <sys_timeouts_init+0x3c>)
  82825. 8021aea: 4413 add r3, r2
  82826. 8021aec: 461a mov r2, r3
  82827. 8021aee: 4908 ldr r1, [pc, #32] @ (8021b10 <sys_timeouts_init+0x40>)
  82828. 8021af0: f000 f810 bl 8021b14 <sys_timeout>
  82829. for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) {
  82830. 8021af4: 687b ldr r3, [r7, #4]
  82831. 8021af6: 3301 adds r3, #1
  82832. 8021af8: 607b str r3, [r7, #4]
  82833. 8021afa: 687b ldr r3, [r7, #4]
  82834. 8021afc: 2b04 cmp r3, #4
  82835. 8021afe: d9ed bls.n 8021adc <sys_timeouts_init+0xc>
  82836. }
  82837. }
  82838. 8021b00: bf00 nop
  82839. 8021b02: bf00 nop
  82840. 8021b04: 3708 adds r7, #8
  82841. 8021b06: 46bd mov sp, r7
  82842. 8021b08: bd80 pop {r7, pc}
  82843. 8021b0a: bf00 nop
  82844. 8021b0c: 08031b30 .word 0x08031b30
  82845. 8021b10: 08021a6d .word 0x08021a6d
  82846. 08021b14 <sys_timeout>:
  82847. sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char *handler_name)
  82848. #else /* LWIP_DEBUG_TIMERNAMES */
  82849. void
  82850. sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg)
  82851. #endif /* LWIP_DEBUG_TIMERNAMES */
  82852. {
  82853. 8021b14: b580 push {r7, lr}
  82854. 8021b16: b086 sub sp, #24
  82855. 8021b18: af00 add r7, sp, #0
  82856. 8021b1a: 60f8 str r0, [r7, #12]
  82857. 8021b1c: 60b9 str r1, [r7, #8]
  82858. 8021b1e: 607a str r2, [r7, #4]
  82859. u32_t next_timeout_time;
  82860. LWIP_ASSERT_CORE_LOCKED();
  82861. 8021b20: f7ef f9ee bl 8010f00 <sys_check_core_locking>
  82862. LWIP_ASSERT("Timeout time too long, max is LWIP_UINT32_MAX/4 msecs", msecs <= (LWIP_UINT32_MAX / 4));
  82863. 8021b24: 68fb ldr r3, [r7, #12]
  82864. 8021b26: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  82865. 8021b2a: d306 bcc.n 8021b3a <sys_timeout+0x26>
  82866. 8021b2c: 4b0a ldr r3, [pc, #40] @ (8021b58 <sys_timeout+0x44>)
  82867. 8021b2e: f240 1229 movw r2, #297 @ 0x129
  82868. 8021b32: 490a ldr r1, [pc, #40] @ (8021b5c <sys_timeout+0x48>)
  82869. 8021b34: 480a ldr r0, [pc, #40] @ (8021b60 <sys_timeout+0x4c>)
  82870. 8021b36: f008 fe11 bl 802a75c <iprintf>
  82871. next_timeout_time = (u32_t)(sys_now() + msecs); /* overflow handled by TIME_LESS_THAN macro */
  82872. 8021b3a: f7ee ff45 bl 80109c8 <sys_now>
  82873. 8021b3e: 4602 mov r2, r0
  82874. 8021b40: 68fb ldr r3, [r7, #12]
  82875. 8021b42: 4413 add r3, r2
  82876. 8021b44: 617b str r3, [r7, #20]
  82877. #if LWIP_DEBUG_TIMERNAMES
  82878. sys_timeout_abs(next_timeout_time, handler, arg, handler_name);
  82879. #else
  82880. sys_timeout_abs(next_timeout_time, handler, arg);
  82881. 8021b46: 687a ldr r2, [r7, #4]
  82882. 8021b48: 68b9 ldr r1, [r7, #8]
  82883. 8021b4a: 6978 ldr r0, [r7, #20]
  82884. 8021b4c: f7ff ff20 bl 8021990 <sys_timeout_abs>
  82885. #endif
  82886. }
  82887. 8021b50: bf00 nop
  82888. 8021b52: 3718 adds r7, #24
  82889. 8021b54: 46bd mov sp, r7
  82890. 8021b56: bd80 pop {r7, pc}
  82891. 8021b58: 080308ec .word 0x080308ec
  82892. 8021b5c: 08030988 .word 0x08030988
  82893. 8021b60: 08030960 .word 0x08030960
  82894. 08021b64 <sys_check_timeouts>:
  82895. *
  82896. * Must be called periodically from your main loop.
  82897. */
  82898. void
  82899. sys_check_timeouts(void)
  82900. {
  82901. 8021b64: b580 push {r7, lr}
  82902. 8021b66: b084 sub sp, #16
  82903. 8021b68: af00 add r7, sp, #0
  82904. u32_t now;
  82905. LWIP_ASSERT_CORE_LOCKED();
  82906. 8021b6a: f7ef f9c9 bl 8010f00 <sys_check_core_locking>
  82907. /* Process only timers expired at the start of the function. */
  82908. now = sys_now();
  82909. 8021b6e: f7ee ff2b bl 80109c8 <sys_now>
  82910. 8021b72: 60f8 str r0, [r7, #12]
  82911. sys_timeout_handler handler;
  82912. void *arg;
  82913. PBUF_CHECK_FREE_OOSEQ();
  82914. tmptimeout = next_timeout;
  82915. 8021b74: 4b17 ldr r3, [pc, #92] @ (8021bd4 <sys_check_timeouts+0x70>)
  82916. 8021b76: 681b ldr r3, [r3, #0]
  82917. 8021b78: 60bb str r3, [r7, #8]
  82918. if (tmptimeout == NULL) {
  82919. 8021b7a: 68bb ldr r3, [r7, #8]
  82920. 8021b7c: 2b00 cmp r3, #0
  82921. 8021b7e: d022 beq.n 8021bc6 <sys_check_timeouts+0x62>
  82922. return;
  82923. }
  82924. if (TIME_LESS_THAN(now, tmptimeout->time)) {
  82925. 8021b80: 68bb ldr r3, [r7, #8]
  82926. 8021b82: 685b ldr r3, [r3, #4]
  82927. 8021b84: 68fa ldr r2, [r7, #12]
  82928. 8021b86: 1ad3 subs r3, r2, r3
  82929. 8021b88: 0fdb lsrs r3, r3, #31
  82930. 8021b8a: f003 0301 and.w r3, r3, #1
  82931. 8021b8e: b2db uxtb r3, r3
  82932. 8021b90: 2b00 cmp r3, #0
  82933. 8021b92: d11a bne.n 8021bca <sys_check_timeouts+0x66>
  82934. return;
  82935. }
  82936. /* Timeout has expired */
  82937. next_timeout = tmptimeout->next;
  82938. 8021b94: 68bb ldr r3, [r7, #8]
  82939. 8021b96: 681b ldr r3, [r3, #0]
  82940. 8021b98: 4a0e ldr r2, [pc, #56] @ (8021bd4 <sys_check_timeouts+0x70>)
  82941. 8021b9a: 6013 str r3, [r2, #0]
  82942. handler = tmptimeout->h;
  82943. 8021b9c: 68bb ldr r3, [r7, #8]
  82944. 8021b9e: 689b ldr r3, [r3, #8]
  82945. 8021ba0: 607b str r3, [r7, #4]
  82946. arg = tmptimeout->arg;
  82947. 8021ba2: 68bb ldr r3, [r7, #8]
  82948. 8021ba4: 68db ldr r3, [r3, #12]
  82949. 8021ba6: 603b str r3, [r7, #0]
  82950. current_timeout_due_time = tmptimeout->time;
  82951. 8021ba8: 68bb ldr r3, [r7, #8]
  82952. 8021baa: 685b ldr r3, [r3, #4]
  82953. 8021bac: 4a0a ldr r2, [pc, #40] @ (8021bd8 <sys_check_timeouts+0x74>)
  82954. 8021bae: 6013 str r3, [r2, #0]
  82955. if (handler != NULL) {
  82956. LWIP_DEBUGF(TIMERS_DEBUG, ("sct calling h=%s t=%"U32_F" arg=%p\n",
  82957. tmptimeout->handler_name, sys_now() - tmptimeout->time, arg));
  82958. }
  82959. #endif /* LWIP_DEBUG_TIMERNAMES */
  82960. memp_free(MEMP_SYS_TIMEOUT, tmptimeout);
  82961. 8021bb0: 68b9 ldr r1, [r7, #8]
  82962. 8021bb2: 200a movs r0, #10
  82963. 8021bb4: f7f8 fc6c bl 801a490 <memp_free>
  82964. if (handler != NULL) {
  82965. 8021bb8: 687b ldr r3, [r7, #4]
  82966. 8021bba: 2b00 cmp r3, #0
  82967. 8021bbc: d0da beq.n 8021b74 <sys_check_timeouts+0x10>
  82968. handler(arg);
  82969. 8021bbe: 687b ldr r3, [r7, #4]
  82970. 8021bc0: 6838 ldr r0, [r7, #0]
  82971. 8021bc2: 4798 blx r3
  82972. do {
  82973. 8021bc4: e7d6 b.n 8021b74 <sys_check_timeouts+0x10>
  82974. return;
  82975. 8021bc6: bf00 nop
  82976. 8021bc8: e000 b.n 8021bcc <sys_check_timeouts+0x68>
  82977. return;
  82978. 8021bca: bf00 nop
  82979. }
  82980. LWIP_TCPIP_THREAD_ALIVE();
  82981. /* Repeat until all expired timers have been called */
  82982. } while (1);
  82983. }
  82984. 8021bcc: 3710 adds r7, #16
  82985. 8021bce: 46bd mov sp, r7
  82986. 8021bd0: bd80 pop {r7, pc}
  82987. 8021bd2: bf00 nop
  82988. 8021bd4: 2402afbc .word 0x2402afbc
  82989. 8021bd8: 2402afc0 .word 0x2402afc0
  82990. 08021bdc <sys_timeouts_sleeptime>:
  82991. /** Return the time left before the next timeout is due. If no timeouts are
  82992. * enqueued, returns 0xffffffff
  82993. */
  82994. u32_t
  82995. sys_timeouts_sleeptime(void)
  82996. {
  82997. 8021bdc: b580 push {r7, lr}
  82998. 8021bde: b082 sub sp, #8
  82999. 8021be0: af00 add r7, sp, #0
  83000. u32_t now;
  83001. LWIP_ASSERT_CORE_LOCKED();
  83002. 8021be2: f7ef f98d bl 8010f00 <sys_check_core_locking>
  83003. if (next_timeout == NULL) {
  83004. 8021be6: 4b16 ldr r3, [pc, #88] @ (8021c40 <sys_timeouts_sleeptime+0x64>)
  83005. 8021be8: 681b ldr r3, [r3, #0]
  83006. 8021bea: 2b00 cmp r3, #0
  83007. 8021bec: d102 bne.n 8021bf4 <sys_timeouts_sleeptime+0x18>
  83008. return SYS_TIMEOUTS_SLEEPTIME_INFINITE;
  83009. 8021bee: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  83010. 8021bf2: e020 b.n 8021c36 <sys_timeouts_sleeptime+0x5a>
  83011. }
  83012. now = sys_now();
  83013. 8021bf4: f7ee fee8 bl 80109c8 <sys_now>
  83014. 8021bf8: 6078 str r0, [r7, #4]
  83015. if (TIME_LESS_THAN(next_timeout->time, now)) {
  83016. 8021bfa: 4b11 ldr r3, [pc, #68] @ (8021c40 <sys_timeouts_sleeptime+0x64>)
  83017. 8021bfc: 681b ldr r3, [r3, #0]
  83018. 8021bfe: 685a ldr r2, [r3, #4]
  83019. 8021c00: 687b ldr r3, [r7, #4]
  83020. 8021c02: 1ad3 subs r3, r2, r3
  83021. 8021c04: 0fdb lsrs r3, r3, #31
  83022. 8021c06: f003 0301 and.w r3, r3, #1
  83023. 8021c0a: b2db uxtb r3, r3
  83024. 8021c0c: 2b00 cmp r3, #0
  83025. 8021c0e: d001 beq.n 8021c14 <sys_timeouts_sleeptime+0x38>
  83026. return 0;
  83027. 8021c10: 2300 movs r3, #0
  83028. 8021c12: e010 b.n 8021c36 <sys_timeouts_sleeptime+0x5a>
  83029. } else {
  83030. u32_t ret = (u32_t)(next_timeout->time - now);
  83031. 8021c14: 4b0a ldr r3, [pc, #40] @ (8021c40 <sys_timeouts_sleeptime+0x64>)
  83032. 8021c16: 681b ldr r3, [r3, #0]
  83033. 8021c18: 685a ldr r2, [r3, #4]
  83034. 8021c1a: 687b ldr r3, [r7, #4]
  83035. 8021c1c: 1ad3 subs r3, r2, r3
  83036. 8021c1e: 603b str r3, [r7, #0]
  83037. LWIP_ASSERT("invalid sleeptime", ret <= LWIP_MAX_TIMEOUT);
  83038. 8021c20: 683b ldr r3, [r7, #0]
  83039. 8021c22: 2b00 cmp r3, #0
  83040. 8021c24: da06 bge.n 8021c34 <sys_timeouts_sleeptime+0x58>
  83041. 8021c26: 4b07 ldr r3, [pc, #28] @ (8021c44 <sys_timeouts_sleeptime+0x68>)
  83042. 8021c28: f44f 72dc mov.w r2, #440 @ 0x1b8
  83043. 8021c2c: 4906 ldr r1, [pc, #24] @ (8021c48 <sys_timeouts_sleeptime+0x6c>)
  83044. 8021c2e: 4807 ldr r0, [pc, #28] @ (8021c4c <sys_timeouts_sleeptime+0x70>)
  83045. 8021c30: f008 fd94 bl 802a75c <iprintf>
  83046. return ret;
  83047. 8021c34: 683b ldr r3, [r7, #0]
  83048. }
  83049. }
  83050. 8021c36: 4618 mov r0, r3
  83051. 8021c38: 3708 adds r7, #8
  83052. 8021c3a: 46bd mov sp, r7
  83053. 8021c3c: bd80 pop {r7, pc}
  83054. 8021c3e: bf00 nop
  83055. 8021c40: 2402afbc .word 0x2402afbc
  83056. 8021c44: 080308ec .word 0x080308ec
  83057. 8021c48: 080309c0 .word 0x080309c0
  83058. 8021c4c: 08030960 .word 0x08030960
  83059. 08021c50 <udp_init>:
  83060. /**
  83061. * Initialize this module.
  83062. */
  83063. void
  83064. udp_init(void)
  83065. {
  83066. 8021c50: b580 push {r7, lr}
  83067. 8021c52: af00 add r7, sp, #0
  83068. #ifdef LWIP_RAND
  83069. udp_port = UDP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND());
  83070. 8021c54: f007 fa58 bl 8029108 <rand>
  83071. 8021c58: 4603 mov r3, r0
  83072. 8021c5a: b29b uxth r3, r3
  83073. 8021c5c: f3c3 030d ubfx r3, r3, #0, #14
  83074. 8021c60: b29b uxth r3, r3
  83075. 8021c62: f5a3 4380 sub.w r3, r3, #16384 @ 0x4000
  83076. 8021c66: b29a uxth r2, r3
  83077. 8021c68: 4b01 ldr r3, [pc, #4] @ (8021c70 <udp_init+0x20>)
  83078. 8021c6a: 801a strh r2, [r3, #0]
  83079. #endif /* LWIP_RAND */
  83080. }
  83081. 8021c6c: bf00 nop
  83082. 8021c6e: bd80 pop {r7, pc}
  83083. 8021c70: 24000054 .word 0x24000054
  83084. 08021c74 <udp_new_port>:
  83085. *
  83086. * @return a new (free) local UDP port number
  83087. */
  83088. static u16_t
  83089. udp_new_port(void)
  83090. {
  83091. 8021c74: b480 push {r7}
  83092. 8021c76: b083 sub sp, #12
  83093. 8021c78: af00 add r7, sp, #0
  83094. u16_t n = 0;
  83095. 8021c7a: 2300 movs r3, #0
  83096. 8021c7c: 80fb strh r3, [r7, #6]
  83097. struct udp_pcb *pcb;
  83098. again:
  83099. if (udp_port++ == UDP_LOCAL_PORT_RANGE_END) {
  83100. 8021c7e: 4b17 ldr r3, [pc, #92] @ (8021cdc <udp_new_port+0x68>)
  83101. 8021c80: 881b ldrh r3, [r3, #0]
  83102. 8021c82: 1c5a adds r2, r3, #1
  83103. 8021c84: b291 uxth r1, r2
  83104. 8021c86: 4a15 ldr r2, [pc, #84] @ (8021cdc <udp_new_port+0x68>)
  83105. 8021c88: 8011 strh r1, [r2, #0]
  83106. 8021c8a: f64f 72ff movw r2, #65535 @ 0xffff
  83107. 8021c8e: 4293 cmp r3, r2
  83108. 8021c90: d103 bne.n 8021c9a <udp_new_port+0x26>
  83109. udp_port = UDP_LOCAL_PORT_RANGE_START;
  83110. 8021c92: 4b12 ldr r3, [pc, #72] @ (8021cdc <udp_new_port+0x68>)
  83111. 8021c94: f44f 4240 mov.w r2, #49152 @ 0xc000
  83112. 8021c98: 801a strh r2, [r3, #0]
  83113. }
  83114. /* Check all PCBs. */
  83115. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  83116. 8021c9a: 4b11 ldr r3, [pc, #68] @ (8021ce0 <udp_new_port+0x6c>)
  83117. 8021c9c: 681b ldr r3, [r3, #0]
  83118. 8021c9e: 603b str r3, [r7, #0]
  83119. 8021ca0: e011 b.n 8021cc6 <udp_new_port+0x52>
  83120. if (pcb->local_port == udp_port) {
  83121. 8021ca2: 683b ldr r3, [r7, #0]
  83122. 8021ca4: 8a5a ldrh r2, [r3, #18]
  83123. 8021ca6: 4b0d ldr r3, [pc, #52] @ (8021cdc <udp_new_port+0x68>)
  83124. 8021ca8: 881b ldrh r3, [r3, #0]
  83125. 8021caa: 429a cmp r2, r3
  83126. 8021cac: d108 bne.n 8021cc0 <udp_new_port+0x4c>
  83127. if (++n > (UDP_LOCAL_PORT_RANGE_END - UDP_LOCAL_PORT_RANGE_START)) {
  83128. 8021cae: 88fb ldrh r3, [r7, #6]
  83129. 8021cb0: 3301 adds r3, #1
  83130. 8021cb2: 80fb strh r3, [r7, #6]
  83131. 8021cb4: 88fb ldrh r3, [r7, #6]
  83132. 8021cb6: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  83133. 8021cba: d3e0 bcc.n 8021c7e <udp_new_port+0xa>
  83134. return 0;
  83135. 8021cbc: 2300 movs r3, #0
  83136. 8021cbe: e007 b.n 8021cd0 <udp_new_port+0x5c>
  83137. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  83138. 8021cc0: 683b ldr r3, [r7, #0]
  83139. 8021cc2: 68db ldr r3, [r3, #12]
  83140. 8021cc4: 603b str r3, [r7, #0]
  83141. 8021cc6: 683b ldr r3, [r7, #0]
  83142. 8021cc8: 2b00 cmp r3, #0
  83143. 8021cca: d1ea bne.n 8021ca2 <udp_new_port+0x2e>
  83144. }
  83145. goto again;
  83146. }
  83147. }
  83148. return udp_port;
  83149. 8021ccc: 4b03 ldr r3, [pc, #12] @ (8021cdc <udp_new_port+0x68>)
  83150. 8021cce: 881b ldrh r3, [r3, #0]
  83151. }
  83152. 8021cd0: 4618 mov r0, r3
  83153. 8021cd2: 370c adds r7, #12
  83154. 8021cd4: 46bd mov sp, r7
  83155. 8021cd6: f85d 7b04 ldr.w r7, [sp], #4
  83156. 8021cda: 4770 bx lr
  83157. 8021cdc: 24000054 .word 0x24000054
  83158. 8021ce0: 2402afc8 .word 0x2402afc8
  83159. 08021ce4 <udp_input_local_match>:
  83160. * @param broadcast 1 if his is an IPv4 broadcast (global or subnet-only), 0 otherwise (only used for IPv4)
  83161. * @return 1 on match, 0 otherwise
  83162. */
  83163. static u8_t
  83164. udp_input_local_match(struct udp_pcb *pcb, struct netif *inp, u8_t broadcast)
  83165. {
  83166. 8021ce4: b580 push {r7, lr}
  83167. 8021ce6: b084 sub sp, #16
  83168. 8021ce8: af00 add r7, sp, #0
  83169. 8021cea: 60f8 str r0, [r7, #12]
  83170. 8021cec: 60b9 str r1, [r7, #8]
  83171. 8021cee: 4613 mov r3, r2
  83172. 8021cf0: 71fb strb r3, [r7, #7]
  83173. LWIP_UNUSED_ARG(inp); /* in IPv6 only case */
  83174. LWIP_UNUSED_ARG(broadcast); /* in IPv6 only case */
  83175. LWIP_ASSERT("udp_input_local_match: invalid pcb", pcb != NULL);
  83176. 8021cf2: 68fb ldr r3, [r7, #12]
  83177. 8021cf4: 2b00 cmp r3, #0
  83178. 8021cf6: d105 bne.n 8021d04 <udp_input_local_match+0x20>
  83179. 8021cf8: 4b27 ldr r3, [pc, #156] @ (8021d98 <udp_input_local_match+0xb4>)
  83180. 8021cfa: 2287 movs r2, #135 @ 0x87
  83181. 8021cfc: 4927 ldr r1, [pc, #156] @ (8021d9c <udp_input_local_match+0xb8>)
  83182. 8021cfe: 4828 ldr r0, [pc, #160] @ (8021da0 <udp_input_local_match+0xbc>)
  83183. 8021d00: f008 fd2c bl 802a75c <iprintf>
  83184. LWIP_ASSERT("udp_input_local_match: invalid netif", inp != NULL);
  83185. 8021d04: 68bb ldr r3, [r7, #8]
  83186. 8021d06: 2b00 cmp r3, #0
  83187. 8021d08: d105 bne.n 8021d16 <udp_input_local_match+0x32>
  83188. 8021d0a: 4b23 ldr r3, [pc, #140] @ (8021d98 <udp_input_local_match+0xb4>)
  83189. 8021d0c: 2288 movs r2, #136 @ 0x88
  83190. 8021d0e: 4925 ldr r1, [pc, #148] @ (8021da4 <udp_input_local_match+0xc0>)
  83191. 8021d10: 4823 ldr r0, [pc, #140] @ (8021da0 <udp_input_local_match+0xbc>)
  83192. 8021d12: f008 fd23 bl 802a75c <iprintf>
  83193. /* check if PCB is bound to specific netif */
  83194. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  83195. 8021d16: 68fb ldr r3, [r7, #12]
  83196. 8021d18: 7a1b ldrb r3, [r3, #8]
  83197. 8021d1a: 2b00 cmp r3, #0
  83198. 8021d1c: d00b beq.n 8021d36 <udp_input_local_match+0x52>
  83199. (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  83200. 8021d1e: 68fb ldr r3, [r7, #12]
  83201. 8021d20: 7a1a ldrb r2, [r3, #8]
  83202. 8021d22: 4b21 ldr r3, [pc, #132] @ (8021da8 <udp_input_local_match+0xc4>)
  83203. 8021d24: 685b ldr r3, [r3, #4]
  83204. 8021d26: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  83205. 8021d2a: 3301 adds r3, #1
  83206. 8021d2c: b2db uxtb r3, r3
  83207. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  83208. 8021d2e: 429a cmp r2, r3
  83209. 8021d30: d001 beq.n 8021d36 <udp_input_local_match+0x52>
  83210. return 0;
  83211. 8021d32: 2300 movs r3, #0
  83212. 8021d34: e02b b.n 8021d8e <udp_input_local_match+0xaa>
  83213. /* Only need to check PCB if incoming IP version matches PCB IP version */
  83214. if (IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ip_current_dest_addr())) {
  83215. #if LWIP_IPV4
  83216. /* Special case: IPv4 broadcast: all or broadcasts in my subnet
  83217. * Note: broadcast variable can only be 1 if it is an IPv4 broadcast */
  83218. if (broadcast != 0) {
  83219. 8021d36: 79fb ldrb r3, [r7, #7]
  83220. 8021d38: 2b00 cmp r3, #0
  83221. 8021d3a: d018 beq.n 8021d6e <udp_input_local_match+0x8a>
  83222. #if IP_SOF_BROADCAST_RECV
  83223. if (ip_get_option(pcb, SOF_BROADCAST))
  83224. #endif /* IP_SOF_BROADCAST_RECV */
  83225. {
  83226. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  83227. 8021d3c: 68fb ldr r3, [r7, #12]
  83228. 8021d3e: 2b00 cmp r3, #0
  83229. 8021d40: d013 beq.n 8021d6a <udp_input_local_match+0x86>
  83230. 8021d42: 68fb ldr r3, [r7, #12]
  83231. 8021d44: 681b ldr r3, [r3, #0]
  83232. 8021d46: 2b00 cmp r3, #0
  83233. 8021d48: d00f beq.n 8021d6a <udp_input_local_match+0x86>
  83234. ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) ||
  83235. 8021d4a: 4b17 ldr r3, [pc, #92] @ (8021da8 <udp_input_local_match+0xc4>)
  83236. 8021d4c: 695b ldr r3, [r3, #20]
  83237. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  83238. 8021d4e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  83239. 8021d52: d00a beq.n 8021d6a <udp_input_local_match+0x86>
  83240. ip4_addr_netcmp(ip_2_ip4(&pcb->local_ip), ip4_current_dest_addr(), netif_ip4_netmask(inp))) {
  83241. 8021d54: 68fb ldr r3, [r7, #12]
  83242. 8021d56: 681a ldr r2, [r3, #0]
  83243. 8021d58: 4b13 ldr r3, [pc, #76] @ (8021da8 <udp_input_local_match+0xc4>)
  83244. 8021d5a: 695b ldr r3, [r3, #20]
  83245. 8021d5c: 405a eors r2, r3
  83246. 8021d5e: 68bb ldr r3, [r7, #8]
  83247. 8021d60: 3308 adds r3, #8
  83248. 8021d62: 681b ldr r3, [r3, #0]
  83249. 8021d64: 4013 ands r3, r2
  83250. ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) ||
  83251. 8021d66: 2b00 cmp r3, #0
  83252. 8021d68: d110 bne.n 8021d8c <udp_input_local_match+0xa8>
  83253. return 1;
  83254. 8021d6a: 2301 movs r3, #1
  83255. 8021d6c: e00f b.n 8021d8e <udp_input_local_match+0xaa>
  83256. }
  83257. }
  83258. } else
  83259. #endif /* LWIP_IPV4 */
  83260. /* Handle IPv4 and IPv6: all or exact match */
  83261. if (ip_addr_isany(&pcb->local_ip) || ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
  83262. 8021d6e: 68fb ldr r3, [r7, #12]
  83263. 8021d70: 2b00 cmp r3, #0
  83264. 8021d72: d009 beq.n 8021d88 <udp_input_local_match+0xa4>
  83265. 8021d74: 68fb ldr r3, [r7, #12]
  83266. 8021d76: 681b ldr r3, [r3, #0]
  83267. 8021d78: 2b00 cmp r3, #0
  83268. 8021d7a: d005 beq.n 8021d88 <udp_input_local_match+0xa4>
  83269. 8021d7c: 68fb ldr r3, [r7, #12]
  83270. 8021d7e: 681a ldr r2, [r3, #0]
  83271. 8021d80: 4b09 ldr r3, [pc, #36] @ (8021da8 <udp_input_local_match+0xc4>)
  83272. 8021d82: 695b ldr r3, [r3, #20]
  83273. 8021d84: 429a cmp r2, r3
  83274. 8021d86: d101 bne.n 8021d8c <udp_input_local_match+0xa8>
  83275. return 1;
  83276. 8021d88: 2301 movs r3, #1
  83277. 8021d8a: e000 b.n 8021d8e <udp_input_local_match+0xaa>
  83278. }
  83279. }
  83280. return 0;
  83281. 8021d8c: 2300 movs r3, #0
  83282. }
  83283. 8021d8e: 4618 mov r0, r3
  83284. 8021d90: 3710 adds r7, #16
  83285. 8021d92: 46bd mov sp, r7
  83286. 8021d94: bd80 pop {r7, pc}
  83287. 8021d96: bf00 nop
  83288. 8021d98: 080309d4 .word 0x080309d4
  83289. 8021d9c: 08030a04 .word 0x08030a04
  83290. 8021da0: 08030a28 .word 0x08030a28
  83291. 8021da4: 08030a50 .word 0x08030a50
  83292. 8021da8: 24024418 .word 0x24024418
  83293. 08021dac <udp_input>:
  83294. * @param inp network interface on which the datagram was received.
  83295. *
  83296. */
  83297. void
  83298. udp_input(struct pbuf *p, struct netif *inp)
  83299. {
  83300. 8021dac: b590 push {r4, r7, lr}
  83301. 8021dae: b08d sub sp, #52 @ 0x34
  83302. 8021db0: af02 add r7, sp, #8
  83303. 8021db2: 6078 str r0, [r7, #4]
  83304. 8021db4: 6039 str r1, [r7, #0]
  83305. struct udp_hdr *udphdr;
  83306. struct udp_pcb *pcb, *prev;
  83307. struct udp_pcb *uncon_pcb;
  83308. u16_t src, dest;
  83309. u8_t broadcast;
  83310. u8_t for_us = 0;
  83311. 8021db6: 2300 movs r3, #0
  83312. 8021db8: 77fb strb r3, [r7, #31]
  83313. LWIP_UNUSED_ARG(inp);
  83314. LWIP_ASSERT_CORE_LOCKED();
  83315. 8021dba: f7ef f8a1 bl 8010f00 <sys_check_core_locking>
  83316. LWIP_ASSERT("udp_input: invalid pbuf", p != NULL);
  83317. 8021dbe: 687b ldr r3, [r7, #4]
  83318. 8021dc0: 2b00 cmp r3, #0
  83319. 8021dc2: d105 bne.n 8021dd0 <udp_input+0x24>
  83320. 8021dc4: 4b7c ldr r3, [pc, #496] @ (8021fb8 <udp_input+0x20c>)
  83321. 8021dc6: 22cf movs r2, #207 @ 0xcf
  83322. 8021dc8: 497c ldr r1, [pc, #496] @ (8021fbc <udp_input+0x210>)
  83323. 8021dca: 487d ldr r0, [pc, #500] @ (8021fc0 <udp_input+0x214>)
  83324. 8021dcc: f008 fcc6 bl 802a75c <iprintf>
  83325. LWIP_ASSERT("udp_input: invalid netif", inp != NULL);
  83326. 8021dd0: 683b ldr r3, [r7, #0]
  83327. 8021dd2: 2b00 cmp r3, #0
  83328. 8021dd4: d105 bne.n 8021de2 <udp_input+0x36>
  83329. 8021dd6: 4b78 ldr r3, [pc, #480] @ (8021fb8 <udp_input+0x20c>)
  83330. 8021dd8: 22d0 movs r2, #208 @ 0xd0
  83331. 8021dda: 497a ldr r1, [pc, #488] @ (8021fc4 <udp_input+0x218>)
  83332. 8021ddc: 4878 ldr r0, [pc, #480] @ (8021fc0 <udp_input+0x214>)
  83333. 8021dde: f008 fcbd bl 802a75c <iprintf>
  83334. PERF_START;
  83335. UDP_STATS_INC(udp.recv);
  83336. /* Check minimum length (UDP header) */
  83337. if (p->len < UDP_HLEN) {
  83338. 8021de2: 687b ldr r3, [r7, #4]
  83339. 8021de4: 895b ldrh r3, [r3, #10]
  83340. 8021de6: 2b07 cmp r3, #7
  83341. 8021de8: d803 bhi.n 8021df2 <udp_input+0x46>
  83342. LWIP_DEBUGF(UDP_DEBUG,
  83343. ("udp_input: short UDP datagram (%"U16_F" bytes) discarded\n", p->tot_len));
  83344. UDP_STATS_INC(udp.lenerr);
  83345. UDP_STATS_INC(udp.drop);
  83346. MIB2_STATS_INC(mib2.udpinerrors);
  83347. pbuf_free(p);
  83348. 8021dea: 6878 ldr r0, [r7, #4]
  83349. 8021dec: f7f9 fa3e bl 801b26c <pbuf_free>
  83350. goto end;
  83351. 8021df0: e0de b.n 8021fb0 <udp_input+0x204>
  83352. }
  83353. udphdr = (struct udp_hdr *)p->payload;
  83354. 8021df2: 687b ldr r3, [r7, #4]
  83355. 8021df4: 685b ldr r3, [r3, #4]
  83356. 8021df6: 617b str r3, [r7, #20]
  83357. /* is broadcast packet ? */
  83358. broadcast = ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif());
  83359. 8021df8: 4b73 ldr r3, [pc, #460] @ (8021fc8 <udp_input+0x21c>)
  83360. 8021dfa: 695b ldr r3, [r3, #20]
  83361. 8021dfc: 4a72 ldr r2, [pc, #456] @ (8021fc8 <udp_input+0x21c>)
  83362. 8021dfe: 6812 ldr r2, [r2, #0]
  83363. 8021e00: 4611 mov r1, r2
  83364. 8021e02: 4618 mov r0, r3
  83365. 8021e04: f003 ff54 bl 8025cb0 <ip4_addr_isbroadcast_u32>
  83366. 8021e08: 4603 mov r3, r0
  83367. 8021e0a: 74fb strb r3, [r7, #19]
  83368. LWIP_DEBUGF(UDP_DEBUG, ("udp_input: received datagram of length %"U16_F"\n", p->tot_len));
  83369. /* convert src and dest ports to host byte order */
  83370. src = lwip_ntohs(udphdr->src);
  83371. 8021e0c: 697b ldr r3, [r7, #20]
  83372. 8021e0e: 881b ldrh r3, [r3, #0]
  83373. 8021e10: b29b uxth r3, r3
  83374. 8021e12: 4618 mov r0, r3
  83375. 8021e14: f7f7 fd48 bl 80198a8 <lwip_htons>
  83376. 8021e18: 4603 mov r3, r0
  83377. 8021e1a: 823b strh r3, [r7, #16]
  83378. dest = lwip_ntohs(udphdr->dest);
  83379. 8021e1c: 697b ldr r3, [r7, #20]
  83380. 8021e1e: 885b ldrh r3, [r3, #2]
  83381. 8021e20: b29b uxth r3, r3
  83382. 8021e22: 4618 mov r0, r3
  83383. 8021e24: f7f7 fd40 bl 80198a8 <lwip_htons>
  83384. 8021e28: 4603 mov r3, r0
  83385. 8021e2a: 81fb strh r3, [r7, #14]
  83386. ip_addr_debug_print_val(UDP_DEBUG, *ip_current_dest_addr());
  83387. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", lwip_ntohs(udphdr->dest)));
  83388. ip_addr_debug_print_val(UDP_DEBUG, *ip_current_src_addr());
  83389. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", lwip_ntohs(udphdr->src)));
  83390. pcb = NULL;
  83391. 8021e2c: 2300 movs r3, #0
  83392. 8021e2e: 623b str r3, [r7, #32]
  83393. prev = NULL;
  83394. 8021e30: 2300 movs r3, #0
  83395. 8021e32: 627b str r3, [r7, #36] @ 0x24
  83396. uncon_pcb = NULL;
  83397. 8021e34: 2300 movs r3, #0
  83398. 8021e36: 61bb str r3, [r7, #24]
  83399. /* Iterate through the UDP pcb list for a matching pcb.
  83400. * 'Perfect match' pcbs (connected to the remote port & ip address) are
  83401. * preferred. If no perfect match is found, the first unconnected pcb that
  83402. * matches the local port and ip address gets the datagram. */
  83403. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  83404. 8021e38: 4b64 ldr r3, [pc, #400] @ (8021fcc <udp_input+0x220>)
  83405. 8021e3a: 681b ldr r3, [r3, #0]
  83406. 8021e3c: 623b str r3, [r7, #32]
  83407. 8021e3e: e054 b.n 8021eea <udp_input+0x13e>
  83408. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", pcb->local_port));
  83409. ip_addr_debug_print_val(UDP_DEBUG, pcb->remote_ip);
  83410. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", pcb->remote_port));
  83411. /* compare PCB local addr+port to UDP destination addr+port */
  83412. if ((pcb->local_port == dest) &&
  83413. 8021e40: 6a3b ldr r3, [r7, #32]
  83414. 8021e42: 8a5b ldrh r3, [r3, #18]
  83415. 8021e44: 89fa ldrh r2, [r7, #14]
  83416. 8021e46: 429a cmp r2, r3
  83417. 8021e48: d14a bne.n 8021ee0 <udp_input+0x134>
  83418. (udp_input_local_match(pcb, inp, broadcast) != 0)) {
  83419. 8021e4a: 7cfb ldrb r3, [r7, #19]
  83420. 8021e4c: 461a mov r2, r3
  83421. 8021e4e: 6839 ldr r1, [r7, #0]
  83422. 8021e50: 6a38 ldr r0, [r7, #32]
  83423. 8021e52: f7ff ff47 bl 8021ce4 <udp_input_local_match>
  83424. 8021e56: 4603 mov r3, r0
  83425. if ((pcb->local_port == dest) &&
  83426. 8021e58: 2b00 cmp r3, #0
  83427. 8021e5a: d041 beq.n 8021ee0 <udp_input+0x134>
  83428. if ((pcb->flags & UDP_FLAGS_CONNECTED) == 0) {
  83429. 8021e5c: 6a3b ldr r3, [r7, #32]
  83430. 8021e5e: 7c1b ldrb r3, [r3, #16]
  83431. 8021e60: f003 0304 and.w r3, r3, #4
  83432. 8021e64: 2b00 cmp r3, #0
  83433. 8021e66: d11d bne.n 8021ea4 <udp_input+0xf8>
  83434. if (uncon_pcb == NULL) {
  83435. 8021e68: 69bb ldr r3, [r7, #24]
  83436. 8021e6a: 2b00 cmp r3, #0
  83437. 8021e6c: d102 bne.n 8021e74 <udp_input+0xc8>
  83438. /* the first unconnected matching PCB */
  83439. uncon_pcb = pcb;
  83440. 8021e6e: 6a3b ldr r3, [r7, #32]
  83441. 8021e70: 61bb str r3, [r7, #24]
  83442. 8021e72: e017 b.n 8021ea4 <udp_input+0xf8>
  83443. #if LWIP_IPV4
  83444. } else if (broadcast && ip4_current_dest_addr()->addr == IPADDR_BROADCAST) {
  83445. 8021e74: 7cfb ldrb r3, [r7, #19]
  83446. 8021e76: 2b00 cmp r3, #0
  83447. 8021e78: d014 beq.n 8021ea4 <udp_input+0xf8>
  83448. 8021e7a: 4b53 ldr r3, [pc, #332] @ (8021fc8 <udp_input+0x21c>)
  83449. 8021e7c: 695b ldr r3, [r3, #20]
  83450. 8021e7e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  83451. 8021e82: d10f bne.n 8021ea4 <udp_input+0xf8>
  83452. /* global broadcast address (only valid for IPv4; match was checked before) */
  83453. if (!IP_IS_V4_VAL(uncon_pcb->local_ip) || !ip4_addr_cmp(ip_2_ip4(&uncon_pcb->local_ip), netif_ip4_addr(inp))) {
  83454. 8021e84: 69bb ldr r3, [r7, #24]
  83455. 8021e86: 681a ldr r2, [r3, #0]
  83456. 8021e88: 683b ldr r3, [r7, #0]
  83457. 8021e8a: 3304 adds r3, #4
  83458. 8021e8c: 681b ldr r3, [r3, #0]
  83459. 8021e8e: 429a cmp r2, r3
  83460. 8021e90: d008 beq.n 8021ea4 <udp_input+0xf8>
  83461. /* uncon_pcb does not match the input netif, check this pcb */
  83462. if (IP_IS_V4_VAL(pcb->local_ip) && ip4_addr_cmp(ip_2_ip4(&pcb->local_ip), netif_ip4_addr(inp))) {
  83463. 8021e92: 6a3b ldr r3, [r7, #32]
  83464. 8021e94: 681a ldr r2, [r3, #0]
  83465. 8021e96: 683b ldr r3, [r7, #0]
  83466. 8021e98: 3304 adds r3, #4
  83467. 8021e9a: 681b ldr r3, [r3, #0]
  83468. 8021e9c: 429a cmp r2, r3
  83469. 8021e9e: d101 bne.n 8021ea4 <udp_input+0xf8>
  83470. /* better match */
  83471. uncon_pcb = pcb;
  83472. 8021ea0: 6a3b ldr r3, [r7, #32]
  83473. 8021ea2: 61bb str r3, [r7, #24]
  83474. }
  83475. #endif /* SO_REUSE */
  83476. }
  83477. /* compare PCB remote addr+port to UDP source addr+port */
  83478. if ((pcb->remote_port == src) &&
  83479. 8021ea4: 6a3b ldr r3, [r7, #32]
  83480. 8021ea6: 8a9b ldrh r3, [r3, #20]
  83481. 8021ea8: 8a3a ldrh r2, [r7, #16]
  83482. 8021eaa: 429a cmp r2, r3
  83483. 8021eac: d118 bne.n 8021ee0 <udp_input+0x134>
  83484. (ip_addr_isany_val(pcb->remote_ip) ||
  83485. 8021eae: 6a3b ldr r3, [r7, #32]
  83486. 8021eb0: 685b ldr r3, [r3, #4]
  83487. if ((pcb->remote_port == src) &&
  83488. 8021eb2: 2b00 cmp r3, #0
  83489. 8021eb4: d005 beq.n 8021ec2 <udp_input+0x116>
  83490. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()))) {
  83491. 8021eb6: 6a3b ldr r3, [r7, #32]
  83492. 8021eb8: 685a ldr r2, [r3, #4]
  83493. 8021eba: 4b43 ldr r3, [pc, #268] @ (8021fc8 <udp_input+0x21c>)
  83494. 8021ebc: 691b ldr r3, [r3, #16]
  83495. (ip_addr_isany_val(pcb->remote_ip) ||
  83496. 8021ebe: 429a cmp r2, r3
  83497. 8021ec0: d10e bne.n 8021ee0 <udp_input+0x134>
  83498. /* the first fully matching PCB */
  83499. if (prev != NULL) {
  83500. 8021ec2: 6a7b ldr r3, [r7, #36] @ 0x24
  83501. 8021ec4: 2b00 cmp r3, #0
  83502. 8021ec6: d014 beq.n 8021ef2 <udp_input+0x146>
  83503. /* move the pcb to the front of udp_pcbs so that is
  83504. found faster next time */
  83505. prev->next = pcb->next;
  83506. 8021ec8: 6a3b ldr r3, [r7, #32]
  83507. 8021eca: 68da ldr r2, [r3, #12]
  83508. 8021ecc: 6a7b ldr r3, [r7, #36] @ 0x24
  83509. 8021ece: 60da str r2, [r3, #12]
  83510. pcb->next = udp_pcbs;
  83511. 8021ed0: 4b3e ldr r3, [pc, #248] @ (8021fcc <udp_input+0x220>)
  83512. 8021ed2: 681a ldr r2, [r3, #0]
  83513. 8021ed4: 6a3b ldr r3, [r7, #32]
  83514. 8021ed6: 60da str r2, [r3, #12]
  83515. udp_pcbs = pcb;
  83516. 8021ed8: 4a3c ldr r2, [pc, #240] @ (8021fcc <udp_input+0x220>)
  83517. 8021eda: 6a3b ldr r3, [r7, #32]
  83518. 8021edc: 6013 str r3, [r2, #0]
  83519. } else {
  83520. UDP_STATS_INC(udp.cachehit);
  83521. }
  83522. break;
  83523. 8021ede: e008 b.n 8021ef2 <udp_input+0x146>
  83524. }
  83525. }
  83526. prev = pcb;
  83527. 8021ee0: 6a3b ldr r3, [r7, #32]
  83528. 8021ee2: 627b str r3, [r7, #36] @ 0x24
  83529. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  83530. 8021ee4: 6a3b ldr r3, [r7, #32]
  83531. 8021ee6: 68db ldr r3, [r3, #12]
  83532. 8021ee8: 623b str r3, [r7, #32]
  83533. 8021eea: 6a3b ldr r3, [r7, #32]
  83534. 8021eec: 2b00 cmp r3, #0
  83535. 8021eee: d1a7 bne.n 8021e40 <udp_input+0x94>
  83536. 8021ef0: e000 b.n 8021ef4 <udp_input+0x148>
  83537. break;
  83538. 8021ef2: bf00 nop
  83539. }
  83540. /* no fully matching pcb found? then look for an unconnected pcb */
  83541. if (pcb == NULL) {
  83542. 8021ef4: 6a3b ldr r3, [r7, #32]
  83543. 8021ef6: 2b00 cmp r3, #0
  83544. 8021ef8: d101 bne.n 8021efe <udp_input+0x152>
  83545. pcb = uncon_pcb;
  83546. 8021efa: 69bb ldr r3, [r7, #24]
  83547. 8021efc: 623b str r3, [r7, #32]
  83548. }
  83549. /* Check checksum if this is a match or if it was directed at us. */
  83550. if (pcb != NULL) {
  83551. 8021efe: 6a3b ldr r3, [r7, #32]
  83552. 8021f00: 2b00 cmp r3, #0
  83553. 8021f02: d002 beq.n 8021f0a <udp_input+0x15e>
  83554. for_us = 1;
  83555. 8021f04: 2301 movs r3, #1
  83556. 8021f06: 77fb strb r3, [r7, #31]
  83557. 8021f08: e00a b.n 8021f20 <udp_input+0x174>
  83558. for_us = netif_get_ip6_addr_match(inp, ip6_current_dest_addr()) >= 0;
  83559. }
  83560. #endif /* LWIP_IPV6 */
  83561. #if LWIP_IPV4
  83562. if (!ip_current_is_v6()) {
  83563. for_us = ip4_addr_cmp(netif_ip4_addr(inp), ip4_current_dest_addr());
  83564. 8021f0a: 683b ldr r3, [r7, #0]
  83565. 8021f0c: 3304 adds r3, #4
  83566. 8021f0e: 681a ldr r2, [r3, #0]
  83567. 8021f10: 4b2d ldr r3, [pc, #180] @ (8021fc8 <udp_input+0x21c>)
  83568. 8021f12: 695b ldr r3, [r3, #20]
  83569. 8021f14: 429a cmp r2, r3
  83570. 8021f16: bf0c ite eq
  83571. 8021f18: 2301 moveq r3, #1
  83572. 8021f1a: 2300 movne r3, #0
  83573. 8021f1c: b2db uxtb r3, r3
  83574. 8021f1e: 77fb strb r3, [r7, #31]
  83575. }
  83576. #endif /* LWIP_IPV4 */
  83577. }
  83578. if (for_us) {
  83579. 8021f20: 7ffb ldrb r3, [r7, #31]
  83580. 8021f22: 2b00 cmp r3, #0
  83581. 8021f24: d041 beq.n 8021faa <udp_input+0x1fe>
  83582. }
  83583. }
  83584. }
  83585. }
  83586. #endif /* CHECKSUM_CHECK_UDP */
  83587. if (pbuf_remove_header(p, UDP_HLEN)) {
  83588. 8021f26: 2108 movs r1, #8
  83589. 8021f28: 6878 ldr r0, [r7, #4]
  83590. 8021f2a: f7f9 f8e7 bl 801b0fc <pbuf_remove_header>
  83591. 8021f2e: 4603 mov r3, r0
  83592. 8021f30: 2b00 cmp r3, #0
  83593. 8021f32: d00a beq.n 8021f4a <udp_input+0x19e>
  83594. /* Can we cope with this failing? Just assert for now */
  83595. LWIP_ASSERT("pbuf_remove_header failed\n", 0);
  83596. 8021f34: 4b20 ldr r3, [pc, #128] @ (8021fb8 <udp_input+0x20c>)
  83597. 8021f36: f44f 72b8 mov.w r2, #368 @ 0x170
  83598. 8021f3a: 4925 ldr r1, [pc, #148] @ (8021fd0 <udp_input+0x224>)
  83599. 8021f3c: 4820 ldr r0, [pc, #128] @ (8021fc0 <udp_input+0x214>)
  83600. 8021f3e: f008 fc0d bl 802a75c <iprintf>
  83601. UDP_STATS_INC(udp.drop);
  83602. MIB2_STATS_INC(mib2.udpinerrors);
  83603. pbuf_free(p);
  83604. 8021f42: 6878 ldr r0, [r7, #4]
  83605. 8021f44: f7f9 f992 bl 801b26c <pbuf_free>
  83606. goto end;
  83607. 8021f48: e032 b.n 8021fb0 <udp_input+0x204>
  83608. }
  83609. if (pcb != NULL) {
  83610. 8021f4a: 6a3b ldr r3, [r7, #32]
  83611. 8021f4c: 2b00 cmp r3, #0
  83612. 8021f4e: d012 beq.n 8021f76 <udp_input+0x1ca>
  83613. }
  83614. }
  83615. }
  83616. #endif /* SO_REUSE && SO_REUSE_RXTOALL */
  83617. /* callback */
  83618. if (pcb->recv != NULL) {
  83619. 8021f50: 6a3b ldr r3, [r7, #32]
  83620. 8021f52: 699b ldr r3, [r3, #24]
  83621. 8021f54: 2b00 cmp r3, #0
  83622. 8021f56: d00a beq.n 8021f6e <udp_input+0x1c2>
  83623. /* now the recv function is responsible for freeing p */
  83624. pcb->recv(pcb->recv_arg, pcb, p, ip_current_src_addr(), src);
  83625. 8021f58: 6a3b ldr r3, [r7, #32]
  83626. 8021f5a: 699c ldr r4, [r3, #24]
  83627. 8021f5c: 6a3b ldr r3, [r7, #32]
  83628. 8021f5e: 69d8 ldr r0, [r3, #28]
  83629. 8021f60: 8a3b ldrh r3, [r7, #16]
  83630. 8021f62: 9300 str r3, [sp, #0]
  83631. 8021f64: 4b1b ldr r3, [pc, #108] @ (8021fd4 <udp_input+0x228>)
  83632. 8021f66: 687a ldr r2, [r7, #4]
  83633. 8021f68: 6a39 ldr r1, [r7, #32]
  83634. 8021f6a: 47a0 blx r4
  83635. } else {
  83636. pbuf_free(p);
  83637. }
  83638. end:
  83639. PERF_STOP("udp_input");
  83640. return;
  83641. 8021f6c: e021 b.n 8021fb2 <udp_input+0x206>
  83642. pbuf_free(p);
  83643. 8021f6e: 6878 ldr r0, [r7, #4]
  83644. 8021f70: f7f9 f97c bl 801b26c <pbuf_free>
  83645. goto end;
  83646. 8021f74: e01c b.n 8021fb0 <udp_input+0x204>
  83647. if (!broadcast && !ip_addr_ismulticast(ip_current_dest_addr())) {
  83648. 8021f76: 7cfb ldrb r3, [r7, #19]
  83649. 8021f78: 2b00 cmp r3, #0
  83650. 8021f7a: d112 bne.n 8021fa2 <udp_input+0x1f6>
  83651. 8021f7c: 4b12 ldr r3, [pc, #72] @ (8021fc8 <udp_input+0x21c>)
  83652. 8021f7e: 695b ldr r3, [r3, #20]
  83653. 8021f80: f003 03f0 and.w r3, r3, #240 @ 0xf0
  83654. 8021f84: 2be0 cmp r3, #224 @ 0xe0
  83655. 8021f86: d00c beq.n 8021fa2 <udp_input+0x1f6>
  83656. pbuf_header_force(p, (s16_t)(ip_current_header_tot_len() + UDP_HLEN));
  83657. 8021f88: 4b0f ldr r3, [pc, #60] @ (8021fc8 <udp_input+0x21c>)
  83658. 8021f8a: 899b ldrh r3, [r3, #12]
  83659. 8021f8c: 3308 adds r3, #8
  83660. 8021f8e: b29b uxth r3, r3
  83661. 8021f90: b21b sxth r3, r3
  83662. 8021f92: 4619 mov r1, r3
  83663. 8021f94: 6878 ldr r0, [r7, #4]
  83664. 8021f96: f7f9 f924 bl 801b1e2 <pbuf_header_force>
  83665. icmp_port_unreach(ip_current_is_v6(), p);
  83666. 8021f9a: 2103 movs r1, #3
  83667. 8021f9c: 6878 ldr r0, [r7, #4]
  83668. 8021f9e: f003 fb3b bl 8025618 <icmp_dest_unreach>
  83669. pbuf_free(p);
  83670. 8021fa2: 6878 ldr r0, [r7, #4]
  83671. 8021fa4: f7f9 f962 bl 801b26c <pbuf_free>
  83672. return;
  83673. 8021fa8: e003 b.n 8021fb2 <udp_input+0x206>
  83674. pbuf_free(p);
  83675. 8021faa: 6878 ldr r0, [r7, #4]
  83676. 8021fac: f7f9 f95e bl 801b26c <pbuf_free>
  83677. return;
  83678. 8021fb0: bf00 nop
  83679. UDP_STATS_INC(udp.drop);
  83680. MIB2_STATS_INC(mib2.udpinerrors);
  83681. pbuf_free(p);
  83682. PERF_STOP("udp_input");
  83683. #endif /* CHECKSUM_CHECK_UDP */
  83684. }
  83685. 8021fb2: 372c adds r7, #44 @ 0x2c
  83686. 8021fb4: 46bd mov sp, r7
  83687. 8021fb6: bd90 pop {r4, r7, pc}
  83688. 8021fb8: 080309d4 .word 0x080309d4
  83689. 8021fbc: 08030a78 .word 0x08030a78
  83690. 8021fc0: 08030a28 .word 0x08030a28
  83691. 8021fc4: 08030a90 .word 0x08030a90
  83692. 8021fc8: 24024418 .word 0x24024418
  83693. 8021fcc: 2402afc8 .word 0x2402afc8
  83694. 8021fd0: 08030aac .word 0x08030aac
  83695. 8021fd4: 24024428 .word 0x24024428
  83696. 08021fd8 <udp_send>:
  83697. *
  83698. * @see udp_disconnect() udp_sendto()
  83699. */
  83700. err_t
  83701. udp_send(struct udp_pcb *pcb, struct pbuf *p)
  83702. {
  83703. 8021fd8: b580 push {r7, lr}
  83704. 8021fda: b082 sub sp, #8
  83705. 8021fdc: af00 add r7, sp, #0
  83706. 8021fde: 6078 str r0, [r7, #4]
  83707. 8021fe0: 6039 str r1, [r7, #0]
  83708. LWIP_ERROR("udp_send: invalid pcb", pcb != NULL, return ERR_ARG);
  83709. 8021fe2: 687b ldr r3, [r7, #4]
  83710. 8021fe4: 2b00 cmp r3, #0
  83711. 8021fe6: d109 bne.n 8021ffc <udp_send+0x24>
  83712. 8021fe8: 4b11 ldr r3, [pc, #68] @ (8022030 <udp_send+0x58>)
  83713. 8021fea: f240 12d5 movw r2, #469 @ 0x1d5
  83714. 8021fee: 4911 ldr r1, [pc, #68] @ (8022034 <udp_send+0x5c>)
  83715. 8021ff0: 4811 ldr r0, [pc, #68] @ (8022038 <udp_send+0x60>)
  83716. 8021ff2: f008 fbb3 bl 802a75c <iprintf>
  83717. 8021ff6: f06f 030f mvn.w r3, #15
  83718. 8021ffa: e015 b.n 8022028 <udp_send+0x50>
  83719. LWIP_ERROR("udp_send: invalid pbuf", p != NULL, return ERR_ARG);
  83720. 8021ffc: 683b ldr r3, [r7, #0]
  83721. 8021ffe: 2b00 cmp r3, #0
  83722. 8022000: d109 bne.n 8022016 <udp_send+0x3e>
  83723. 8022002: 4b0b ldr r3, [pc, #44] @ (8022030 <udp_send+0x58>)
  83724. 8022004: f44f 72eb mov.w r2, #470 @ 0x1d6
  83725. 8022008: 490c ldr r1, [pc, #48] @ (802203c <udp_send+0x64>)
  83726. 802200a: 480b ldr r0, [pc, #44] @ (8022038 <udp_send+0x60>)
  83727. 802200c: f008 fba6 bl 802a75c <iprintf>
  83728. 8022010: f06f 030f mvn.w r3, #15
  83729. 8022014: e008 b.n 8022028 <udp_send+0x50>
  83730. if (IP_IS_ANY_TYPE_VAL(pcb->remote_ip)) {
  83731. return ERR_VAL;
  83732. }
  83733. /* send to the packet using remote ip and port stored in the pcb */
  83734. return udp_sendto(pcb, p, &pcb->remote_ip, pcb->remote_port);
  83735. 8022016: 687b ldr r3, [r7, #4]
  83736. 8022018: 1d1a adds r2, r3, #4
  83737. 802201a: 687b ldr r3, [r7, #4]
  83738. 802201c: 8a9b ldrh r3, [r3, #20]
  83739. 802201e: 6839 ldr r1, [r7, #0]
  83740. 8022020: 6878 ldr r0, [r7, #4]
  83741. 8022022: f000 f80d bl 8022040 <udp_sendto>
  83742. 8022026: 4603 mov r3, r0
  83743. }
  83744. 8022028: 4618 mov r0, r3
  83745. 802202a: 3708 adds r7, #8
  83746. 802202c: 46bd mov sp, r7
  83747. 802202e: bd80 pop {r7, pc}
  83748. 8022030: 080309d4 .word 0x080309d4
  83749. 8022034: 08030ac8 .word 0x08030ac8
  83750. 8022038: 08030a28 .word 0x08030a28
  83751. 802203c: 08030ae0 .word 0x08030ae0
  83752. 08022040 <udp_sendto>:
  83753. * @see udp_disconnect() udp_send()
  83754. */
  83755. err_t
  83756. udp_sendto(struct udp_pcb *pcb, struct pbuf *p,
  83757. const ip_addr_t *dst_ip, u16_t dst_port)
  83758. {
  83759. 8022040: b580 push {r7, lr}
  83760. 8022042: b088 sub sp, #32
  83761. 8022044: af02 add r7, sp, #8
  83762. 8022046: 60f8 str r0, [r7, #12]
  83763. 8022048: 60b9 str r1, [r7, #8]
  83764. 802204a: 607a str r2, [r7, #4]
  83765. 802204c: 807b strh r3, [r7, #2]
  83766. u16_t dst_port, u8_t have_chksum, u16_t chksum)
  83767. {
  83768. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  83769. struct netif *netif;
  83770. LWIP_ERROR("udp_sendto: invalid pcb", pcb != NULL, return ERR_ARG);
  83771. 802204e: 68fb ldr r3, [r7, #12]
  83772. 8022050: 2b00 cmp r3, #0
  83773. 8022052: d109 bne.n 8022068 <udp_sendto+0x28>
  83774. 8022054: 4b23 ldr r3, [pc, #140] @ (80220e4 <udp_sendto+0xa4>)
  83775. 8022056: f44f 7206 mov.w r2, #536 @ 0x218
  83776. 802205a: 4923 ldr r1, [pc, #140] @ (80220e8 <udp_sendto+0xa8>)
  83777. 802205c: 4823 ldr r0, [pc, #140] @ (80220ec <udp_sendto+0xac>)
  83778. 802205e: f008 fb7d bl 802a75c <iprintf>
  83779. 8022062: f06f 030f mvn.w r3, #15
  83780. 8022066: e038 b.n 80220da <udp_sendto+0x9a>
  83781. LWIP_ERROR("udp_sendto: invalid pbuf", p != NULL, return ERR_ARG);
  83782. 8022068: 68bb ldr r3, [r7, #8]
  83783. 802206a: 2b00 cmp r3, #0
  83784. 802206c: d109 bne.n 8022082 <udp_sendto+0x42>
  83785. 802206e: 4b1d ldr r3, [pc, #116] @ (80220e4 <udp_sendto+0xa4>)
  83786. 8022070: f240 2219 movw r2, #537 @ 0x219
  83787. 8022074: 491e ldr r1, [pc, #120] @ (80220f0 <udp_sendto+0xb0>)
  83788. 8022076: 481d ldr r0, [pc, #116] @ (80220ec <udp_sendto+0xac>)
  83789. 8022078: f008 fb70 bl 802a75c <iprintf>
  83790. 802207c: f06f 030f mvn.w r3, #15
  83791. 8022080: e02b b.n 80220da <udp_sendto+0x9a>
  83792. LWIP_ERROR("udp_sendto: invalid dst_ip", dst_ip != NULL, return ERR_ARG);
  83793. 8022082: 687b ldr r3, [r7, #4]
  83794. 8022084: 2b00 cmp r3, #0
  83795. 8022086: d109 bne.n 802209c <udp_sendto+0x5c>
  83796. 8022088: 4b16 ldr r3, [pc, #88] @ (80220e4 <udp_sendto+0xa4>)
  83797. 802208a: f240 221a movw r2, #538 @ 0x21a
  83798. 802208e: 4919 ldr r1, [pc, #100] @ (80220f4 <udp_sendto+0xb4>)
  83799. 8022090: 4816 ldr r0, [pc, #88] @ (80220ec <udp_sendto+0xac>)
  83800. 8022092: f008 fb63 bl 802a75c <iprintf>
  83801. 8022096: f06f 030f mvn.w r3, #15
  83802. 802209a: e01e b.n 80220da <udp_sendto+0x9a>
  83803. return ERR_VAL;
  83804. }
  83805. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_send\n"));
  83806. if (pcb->netif_idx != NETIF_NO_INDEX) {
  83807. 802209c: 68fb ldr r3, [r7, #12]
  83808. 802209e: 7a1b ldrb r3, [r3, #8]
  83809. 80220a0: 2b00 cmp r3, #0
  83810. 80220a2: d006 beq.n 80220b2 <udp_sendto+0x72>
  83811. netif = netif_get_by_index(pcb->netif_idx);
  83812. 80220a4: 68fb ldr r3, [r7, #12]
  83813. 80220a6: 7a1b ldrb r3, [r3, #8]
  83814. 80220a8: 4618 mov r0, r3
  83815. 80220aa: f7f8 fd1f bl 801aaec <netif_get_by_index>
  83816. 80220ae: 6178 str r0, [r7, #20]
  83817. 80220b0: e003 b.n 80220ba <udp_sendto+0x7a>
  83818. if (netif == NULL)
  83819. #endif /* LWIP_MULTICAST_TX_OPTIONS */
  83820. {
  83821. /* find the outgoing network interface for this packet */
  83822. netif = ip_route(&pcb->local_ip, dst_ip);
  83823. 80220b2: 6878 ldr r0, [r7, #4]
  83824. 80220b4: f003 fb44 bl 8025740 <ip4_route>
  83825. 80220b8: 6178 str r0, [r7, #20]
  83826. }
  83827. }
  83828. /* no outgoing network interface could be found? */
  83829. if (netif == NULL) {
  83830. 80220ba: 697b ldr r3, [r7, #20]
  83831. 80220bc: 2b00 cmp r3, #0
  83832. 80220be: d102 bne.n 80220c6 <udp_sendto+0x86>
  83833. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: No route to "));
  83834. ip_addr_debug_print(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, dst_ip);
  83835. LWIP_DEBUGF(UDP_DEBUG, ("\n"));
  83836. UDP_STATS_INC(udp.rterr);
  83837. return ERR_RTE;
  83838. 80220c0: f06f 0303 mvn.w r3, #3
  83839. 80220c4: e009 b.n 80220da <udp_sendto+0x9a>
  83840. }
  83841. #if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP
  83842. return udp_sendto_if_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum);
  83843. #else /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  83844. return udp_sendto_if(pcb, p, dst_ip, dst_port, netif);
  83845. 80220c6: 887a ldrh r2, [r7, #2]
  83846. 80220c8: 697b ldr r3, [r7, #20]
  83847. 80220ca: 9300 str r3, [sp, #0]
  83848. 80220cc: 4613 mov r3, r2
  83849. 80220ce: 687a ldr r2, [r7, #4]
  83850. 80220d0: 68b9 ldr r1, [r7, #8]
  83851. 80220d2: 68f8 ldr r0, [r7, #12]
  83852. 80220d4: f000 f810 bl 80220f8 <udp_sendto_if>
  83853. 80220d8: 4603 mov r3, r0
  83854. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  83855. }
  83856. 80220da: 4618 mov r0, r3
  83857. 80220dc: 3718 adds r7, #24
  83858. 80220de: 46bd mov sp, r7
  83859. 80220e0: bd80 pop {r7, pc}
  83860. 80220e2: bf00 nop
  83861. 80220e4: 080309d4 .word 0x080309d4
  83862. 80220e8: 08030af8 .word 0x08030af8
  83863. 80220ec: 08030a28 .word 0x08030a28
  83864. 80220f0: 08030b10 .word 0x08030b10
  83865. 80220f4: 08030b2c .word 0x08030b2c
  83866. 080220f8 <udp_sendto_if>:
  83867. * @see udp_disconnect() udp_send()
  83868. */
  83869. err_t
  83870. udp_sendto_if(struct udp_pcb *pcb, struct pbuf *p,
  83871. const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif)
  83872. {
  83873. 80220f8: b580 push {r7, lr}
  83874. 80220fa: b088 sub sp, #32
  83875. 80220fc: af02 add r7, sp, #8
  83876. 80220fe: 60f8 str r0, [r7, #12]
  83877. 8022100: 60b9 str r1, [r7, #8]
  83878. 8022102: 607a str r2, [r7, #4]
  83879. 8022104: 807b strh r3, [r7, #2]
  83880. u16_t chksum)
  83881. {
  83882. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  83883. const ip_addr_t *src_ip;
  83884. LWIP_ERROR("udp_sendto_if: invalid pcb", pcb != NULL, return ERR_ARG);
  83885. 8022106: 68fb ldr r3, [r7, #12]
  83886. 8022108: 2b00 cmp r3, #0
  83887. 802210a: d109 bne.n 8022120 <udp_sendto_if+0x28>
  83888. 802210c: 4b2e ldr r3, [pc, #184] @ (80221c8 <udp_sendto_if+0xd0>)
  83889. 802210e: f44f 7220 mov.w r2, #640 @ 0x280
  83890. 8022112: 492e ldr r1, [pc, #184] @ (80221cc <udp_sendto_if+0xd4>)
  83891. 8022114: 482e ldr r0, [pc, #184] @ (80221d0 <udp_sendto_if+0xd8>)
  83892. 8022116: f008 fb21 bl 802a75c <iprintf>
  83893. 802211a: f06f 030f mvn.w r3, #15
  83894. 802211e: e04f b.n 80221c0 <udp_sendto_if+0xc8>
  83895. LWIP_ERROR("udp_sendto_if: invalid pbuf", p != NULL, return ERR_ARG);
  83896. 8022120: 68bb ldr r3, [r7, #8]
  83897. 8022122: 2b00 cmp r3, #0
  83898. 8022124: d109 bne.n 802213a <udp_sendto_if+0x42>
  83899. 8022126: 4b28 ldr r3, [pc, #160] @ (80221c8 <udp_sendto_if+0xd0>)
  83900. 8022128: f240 2281 movw r2, #641 @ 0x281
  83901. 802212c: 4929 ldr r1, [pc, #164] @ (80221d4 <udp_sendto_if+0xdc>)
  83902. 802212e: 4828 ldr r0, [pc, #160] @ (80221d0 <udp_sendto_if+0xd8>)
  83903. 8022130: f008 fb14 bl 802a75c <iprintf>
  83904. 8022134: f06f 030f mvn.w r3, #15
  83905. 8022138: e042 b.n 80221c0 <udp_sendto_if+0xc8>
  83906. LWIP_ERROR("udp_sendto_if: invalid dst_ip", dst_ip != NULL, return ERR_ARG);
  83907. 802213a: 687b ldr r3, [r7, #4]
  83908. 802213c: 2b00 cmp r3, #0
  83909. 802213e: d109 bne.n 8022154 <udp_sendto_if+0x5c>
  83910. 8022140: 4b21 ldr r3, [pc, #132] @ (80221c8 <udp_sendto_if+0xd0>)
  83911. 8022142: f240 2282 movw r2, #642 @ 0x282
  83912. 8022146: 4924 ldr r1, [pc, #144] @ (80221d8 <udp_sendto_if+0xe0>)
  83913. 8022148: 4821 ldr r0, [pc, #132] @ (80221d0 <udp_sendto_if+0xd8>)
  83914. 802214a: f008 fb07 bl 802a75c <iprintf>
  83915. 802214e: f06f 030f mvn.w r3, #15
  83916. 8022152: e035 b.n 80221c0 <udp_sendto_if+0xc8>
  83917. LWIP_ERROR("udp_sendto_if: invalid netif", netif != NULL, return ERR_ARG);
  83918. 8022154: 6a3b ldr r3, [r7, #32]
  83919. 8022156: 2b00 cmp r3, #0
  83920. 8022158: d109 bne.n 802216e <udp_sendto_if+0x76>
  83921. 802215a: 4b1b ldr r3, [pc, #108] @ (80221c8 <udp_sendto_if+0xd0>)
  83922. 802215c: f240 2283 movw r2, #643 @ 0x283
  83923. 8022160: 491e ldr r1, [pc, #120] @ (80221dc <udp_sendto_if+0xe4>)
  83924. 8022162: 481b ldr r0, [pc, #108] @ (80221d0 <udp_sendto_if+0xd8>)
  83925. 8022164: f008 fafa bl 802a75c <iprintf>
  83926. 8022168: f06f 030f mvn.w r3, #15
  83927. 802216c: e028 b.n 80221c0 <udp_sendto_if+0xc8>
  83928. #endif /* LWIP_IPV6 */
  83929. #if LWIP_IPV4 && LWIP_IPV6
  83930. else
  83931. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  83932. #if LWIP_IPV4
  83933. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  83934. 802216e: 68fb ldr r3, [r7, #12]
  83935. 8022170: 2b00 cmp r3, #0
  83936. 8022172: d009 beq.n 8022188 <udp_sendto_if+0x90>
  83937. 8022174: 68fb ldr r3, [r7, #12]
  83938. 8022176: 681b ldr r3, [r3, #0]
  83939. 8022178: 2b00 cmp r3, #0
  83940. 802217a: d005 beq.n 8022188 <udp_sendto_if+0x90>
  83941. ip4_addr_ismulticast(ip_2_ip4(&pcb->local_ip))) {
  83942. 802217c: 68fb ldr r3, [r7, #12]
  83943. 802217e: 681b ldr r3, [r3, #0]
  83944. 8022180: f003 03f0 and.w r3, r3, #240 @ 0xf0
  83945. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  83946. 8022184: 2be0 cmp r3, #224 @ 0xe0
  83947. 8022186: d103 bne.n 8022190 <udp_sendto_if+0x98>
  83948. /* if the local_ip is any or multicast
  83949. * use the outgoing network interface IP address as source address */
  83950. src_ip = netif_ip_addr4(netif);
  83951. 8022188: 6a3b ldr r3, [r7, #32]
  83952. 802218a: 3304 adds r3, #4
  83953. 802218c: 617b str r3, [r7, #20]
  83954. 802218e: e00b b.n 80221a8 <udp_sendto_if+0xb0>
  83955. } else {
  83956. /* check if UDP PCB local IP address is correct
  83957. * this could be an old address if netif->ip_addr has changed */
  83958. if (!ip4_addr_cmp(ip_2_ip4(&(pcb->local_ip)), netif_ip4_addr(netif))) {
  83959. 8022190: 68fb ldr r3, [r7, #12]
  83960. 8022192: 681a ldr r2, [r3, #0]
  83961. 8022194: 6a3b ldr r3, [r7, #32]
  83962. 8022196: 3304 adds r3, #4
  83963. 8022198: 681b ldr r3, [r3, #0]
  83964. 802219a: 429a cmp r2, r3
  83965. 802219c: d002 beq.n 80221a4 <udp_sendto_if+0xac>
  83966. /* local_ip doesn't match, drop the packet */
  83967. return ERR_RTE;
  83968. 802219e: f06f 0303 mvn.w r3, #3
  83969. 80221a2: e00d b.n 80221c0 <udp_sendto_if+0xc8>
  83970. }
  83971. /* use UDP PCB local IP address as source address */
  83972. src_ip = &pcb->local_ip;
  83973. 80221a4: 68fb ldr r3, [r7, #12]
  83974. 80221a6: 617b str r3, [r7, #20]
  83975. }
  83976. #endif /* LWIP_IPV4 */
  83977. #if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP
  83978. return udp_sendto_if_src_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum, src_ip);
  83979. #else /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  83980. return udp_sendto_if_src(pcb, p, dst_ip, dst_port, netif, src_ip);
  83981. 80221a8: 887a ldrh r2, [r7, #2]
  83982. 80221aa: 697b ldr r3, [r7, #20]
  83983. 80221ac: 9301 str r3, [sp, #4]
  83984. 80221ae: 6a3b ldr r3, [r7, #32]
  83985. 80221b0: 9300 str r3, [sp, #0]
  83986. 80221b2: 4613 mov r3, r2
  83987. 80221b4: 687a ldr r2, [r7, #4]
  83988. 80221b6: 68b9 ldr r1, [r7, #8]
  83989. 80221b8: 68f8 ldr r0, [r7, #12]
  83990. 80221ba: f000 f811 bl 80221e0 <udp_sendto_if_src>
  83991. 80221be: 4603 mov r3, r0
  83992. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  83993. }
  83994. 80221c0: 4618 mov r0, r3
  83995. 80221c2: 3718 adds r7, #24
  83996. 80221c4: 46bd mov sp, r7
  83997. 80221c6: bd80 pop {r7, pc}
  83998. 80221c8: 080309d4 .word 0x080309d4
  83999. 80221cc: 08030b48 .word 0x08030b48
  84000. 80221d0: 08030a28 .word 0x08030a28
  84001. 80221d4: 08030b64 .word 0x08030b64
  84002. 80221d8: 08030b80 .word 0x08030b80
  84003. 80221dc: 08030ba0 .word 0x08030ba0
  84004. 080221e0 <udp_sendto_if_src>:
  84005. /** @ingroup udp_raw
  84006. * Same as @ref udp_sendto_if, but with source address */
  84007. err_t
  84008. udp_sendto_if_src(struct udp_pcb *pcb, struct pbuf *p,
  84009. const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif, const ip_addr_t *src_ip)
  84010. {
  84011. 80221e0: b580 push {r7, lr}
  84012. 80221e2: b08c sub sp, #48 @ 0x30
  84013. 80221e4: af04 add r7, sp, #16
  84014. 80221e6: 60f8 str r0, [r7, #12]
  84015. 80221e8: 60b9 str r1, [r7, #8]
  84016. 80221ea: 607a str r2, [r7, #4]
  84017. 80221ec: 807b strh r3, [r7, #2]
  84018. err_t err;
  84019. struct pbuf *q; /* q will be sent down the stack */
  84020. u8_t ip_proto;
  84021. u8_t ttl;
  84022. LWIP_ASSERT_CORE_LOCKED();
  84023. 80221ee: f7ee fe87 bl 8010f00 <sys_check_core_locking>
  84024. LWIP_ERROR("udp_sendto_if_src: invalid pcb", pcb != NULL, return ERR_ARG);
  84025. 80221f2: 68fb ldr r3, [r7, #12]
  84026. 80221f4: 2b00 cmp r3, #0
  84027. 80221f6: d109 bne.n 802220c <udp_sendto_if_src+0x2c>
  84028. 80221f8: 4b65 ldr r3, [pc, #404] @ (8022390 <udp_sendto_if_src+0x1b0>)
  84029. 80221fa: f240 22d1 movw r2, #721 @ 0x2d1
  84030. 80221fe: 4965 ldr r1, [pc, #404] @ (8022394 <udp_sendto_if_src+0x1b4>)
  84031. 8022200: 4865 ldr r0, [pc, #404] @ (8022398 <udp_sendto_if_src+0x1b8>)
  84032. 8022202: f008 faab bl 802a75c <iprintf>
  84033. 8022206: f06f 030f mvn.w r3, #15
  84034. 802220a: e0bc b.n 8022386 <udp_sendto_if_src+0x1a6>
  84035. LWIP_ERROR("udp_sendto_if_src: invalid pbuf", p != NULL, return ERR_ARG);
  84036. 802220c: 68bb ldr r3, [r7, #8]
  84037. 802220e: 2b00 cmp r3, #0
  84038. 8022210: d109 bne.n 8022226 <udp_sendto_if_src+0x46>
  84039. 8022212: 4b5f ldr r3, [pc, #380] @ (8022390 <udp_sendto_if_src+0x1b0>)
  84040. 8022214: f240 22d2 movw r2, #722 @ 0x2d2
  84041. 8022218: 4960 ldr r1, [pc, #384] @ (802239c <udp_sendto_if_src+0x1bc>)
  84042. 802221a: 485f ldr r0, [pc, #380] @ (8022398 <udp_sendto_if_src+0x1b8>)
  84043. 802221c: f008 fa9e bl 802a75c <iprintf>
  84044. 8022220: f06f 030f mvn.w r3, #15
  84045. 8022224: e0af b.n 8022386 <udp_sendto_if_src+0x1a6>
  84046. LWIP_ERROR("udp_sendto_if_src: invalid dst_ip", dst_ip != NULL, return ERR_ARG);
  84047. 8022226: 687b ldr r3, [r7, #4]
  84048. 8022228: 2b00 cmp r3, #0
  84049. 802222a: d109 bne.n 8022240 <udp_sendto_if_src+0x60>
  84050. 802222c: 4b58 ldr r3, [pc, #352] @ (8022390 <udp_sendto_if_src+0x1b0>)
  84051. 802222e: f240 22d3 movw r2, #723 @ 0x2d3
  84052. 8022232: 495b ldr r1, [pc, #364] @ (80223a0 <udp_sendto_if_src+0x1c0>)
  84053. 8022234: 4858 ldr r0, [pc, #352] @ (8022398 <udp_sendto_if_src+0x1b8>)
  84054. 8022236: f008 fa91 bl 802a75c <iprintf>
  84055. 802223a: f06f 030f mvn.w r3, #15
  84056. 802223e: e0a2 b.n 8022386 <udp_sendto_if_src+0x1a6>
  84057. LWIP_ERROR("udp_sendto_if_src: invalid src_ip", src_ip != NULL, return ERR_ARG);
  84058. 8022240: 6afb ldr r3, [r7, #44] @ 0x2c
  84059. 8022242: 2b00 cmp r3, #0
  84060. 8022244: d109 bne.n 802225a <udp_sendto_if_src+0x7a>
  84061. 8022246: 4b52 ldr r3, [pc, #328] @ (8022390 <udp_sendto_if_src+0x1b0>)
  84062. 8022248: f44f 7235 mov.w r2, #724 @ 0x2d4
  84063. 802224c: 4955 ldr r1, [pc, #340] @ (80223a4 <udp_sendto_if_src+0x1c4>)
  84064. 802224e: 4852 ldr r0, [pc, #328] @ (8022398 <udp_sendto_if_src+0x1b8>)
  84065. 8022250: f008 fa84 bl 802a75c <iprintf>
  84066. 8022254: f06f 030f mvn.w r3, #15
  84067. 8022258: e095 b.n 8022386 <udp_sendto_if_src+0x1a6>
  84068. LWIP_ERROR("udp_sendto_if_src: invalid netif", netif != NULL, return ERR_ARG);
  84069. 802225a: 6abb ldr r3, [r7, #40] @ 0x28
  84070. 802225c: 2b00 cmp r3, #0
  84071. 802225e: d109 bne.n 8022274 <udp_sendto_if_src+0x94>
  84072. 8022260: 4b4b ldr r3, [pc, #300] @ (8022390 <udp_sendto_if_src+0x1b0>)
  84073. 8022262: f240 22d5 movw r2, #725 @ 0x2d5
  84074. 8022266: 4950 ldr r1, [pc, #320] @ (80223a8 <udp_sendto_if_src+0x1c8>)
  84075. 8022268: 484b ldr r0, [pc, #300] @ (8022398 <udp_sendto_if_src+0x1b8>)
  84076. 802226a: f008 fa77 bl 802a75c <iprintf>
  84077. 802226e: f06f 030f mvn.w r3, #15
  84078. 8022272: e088 b.n 8022386 <udp_sendto_if_src+0x1a6>
  84079. return ERR_VAL;
  84080. }
  84081. #endif /* LWIP_IPV4 && IP_SOF_BROADCAST */
  84082. /* if the PCB is not yet bound to a port, bind it here */
  84083. if (pcb->local_port == 0) {
  84084. 8022274: 68fb ldr r3, [r7, #12]
  84085. 8022276: 8a5b ldrh r3, [r3, #18]
  84086. 8022278: 2b00 cmp r3, #0
  84087. 802227a: d10f bne.n 802229c <udp_sendto_if_src+0xbc>
  84088. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_send: not yet bound to a port, binding now\n"));
  84089. err = udp_bind(pcb, &pcb->local_ip, pcb->local_port);
  84090. 802227c: 68f9 ldr r1, [r7, #12]
  84091. 802227e: 68fb ldr r3, [r7, #12]
  84092. 8022280: 8a5b ldrh r3, [r3, #18]
  84093. 8022282: 461a mov r2, r3
  84094. 8022284: 68f8 ldr r0, [r7, #12]
  84095. 8022286: f000 f893 bl 80223b0 <udp_bind>
  84096. 802228a: 4603 mov r3, r0
  84097. 802228c: 76fb strb r3, [r7, #27]
  84098. if (err != ERR_OK) {
  84099. 802228e: f997 301b ldrsb.w r3, [r7, #27]
  84100. 8022292: 2b00 cmp r3, #0
  84101. 8022294: d002 beq.n 802229c <udp_sendto_if_src+0xbc>
  84102. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: forced port bind failed\n"));
  84103. return err;
  84104. 8022296: f997 301b ldrsb.w r3, [r7, #27]
  84105. 802229a: e074 b.n 8022386 <udp_sendto_if_src+0x1a6>
  84106. }
  84107. }
  84108. /* packet too large to add a UDP header without causing an overflow? */
  84109. if ((u16_t)(p->tot_len + UDP_HLEN) < p->tot_len) {
  84110. 802229c: 68bb ldr r3, [r7, #8]
  84111. 802229e: 891b ldrh r3, [r3, #8]
  84112. 80222a0: f64f 72f7 movw r2, #65527 @ 0xfff7
  84113. 80222a4: 4293 cmp r3, r2
  84114. 80222a6: d902 bls.n 80222ae <udp_sendto_if_src+0xce>
  84115. return ERR_MEM;
  84116. 80222a8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  84117. 80222ac: e06b b.n 8022386 <udp_sendto_if_src+0x1a6>
  84118. }
  84119. /* not enough space to add an UDP header to first pbuf in given p chain? */
  84120. if (pbuf_add_header(p, UDP_HLEN)) {
  84121. 80222ae: 2108 movs r1, #8
  84122. 80222b0: 68b8 ldr r0, [r7, #8]
  84123. 80222b2: f7f8 ff13 bl 801b0dc <pbuf_add_header>
  84124. 80222b6: 4603 mov r3, r0
  84125. 80222b8: 2b00 cmp r3, #0
  84126. 80222ba: d015 beq.n 80222e8 <udp_sendto_if_src+0x108>
  84127. /* allocate header in a separate new pbuf */
  84128. q = pbuf_alloc(PBUF_IP, UDP_HLEN, PBUF_RAM);
  84129. 80222bc: f44f 7220 mov.w r2, #640 @ 0x280
  84130. 80222c0: 2108 movs r1, #8
  84131. 80222c2: 2022 movs r0, #34 @ 0x22
  84132. 80222c4: f7f8 fcbc bl 801ac40 <pbuf_alloc>
  84133. 80222c8: 61f8 str r0, [r7, #28]
  84134. /* new header pbuf could not be allocated? */
  84135. if (q == NULL) {
  84136. 80222ca: 69fb ldr r3, [r7, #28]
  84137. 80222cc: 2b00 cmp r3, #0
  84138. 80222ce: d102 bne.n 80222d6 <udp_sendto_if_src+0xf6>
  84139. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: could not allocate header\n"));
  84140. return ERR_MEM;
  84141. 80222d0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  84142. 80222d4: e057 b.n 8022386 <udp_sendto_if_src+0x1a6>
  84143. }
  84144. if (p->tot_len != 0) {
  84145. 80222d6: 68bb ldr r3, [r7, #8]
  84146. 80222d8: 891b ldrh r3, [r3, #8]
  84147. 80222da: 2b00 cmp r3, #0
  84148. 80222dc: d006 beq.n 80222ec <udp_sendto_if_src+0x10c>
  84149. /* chain header q in front of given pbuf p (only if p contains data) */
  84150. pbuf_chain(q, p);
  84151. 80222de: 68b9 ldr r1, [r7, #8]
  84152. 80222e0: 69f8 ldr r0, [r7, #28]
  84153. 80222e2: f7f9 f8e7 bl 801b4b4 <pbuf_chain>
  84154. 80222e6: e001 b.n 80222ec <udp_sendto_if_src+0x10c>
  84155. LWIP_DEBUGF(UDP_DEBUG,
  84156. ("udp_send: added header pbuf %p before given pbuf %p\n", (void *)q, (void *)p));
  84157. } else {
  84158. /* adding space for header within p succeeded */
  84159. /* first pbuf q equals given pbuf */
  84160. q = p;
  84161. 80222e8: 68bb ldr r3, [r7, #8]
  84162. 80222ea: 61fb str r3, [r7, #28]
  84163. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: added header in given pbuf %p\n", (void *)p));
  84164. }
  84165. LWIP_ASSERT("check that first pbuf can hold struct udp_hdr",
  84166. 80222ec: 69fb ldr r3, [r7, #28]
  84167. 80222ee: 895b ldrh r3, [r3, #10]
  84168. 80222f0: 2b07 cmp r3, #7
  84169. 80222f2: d806 bhi.n 8022302 <udp_sendto_if_src+0x122>
  84170. 80222f4: 4b26 ldr r3, [pc, #152] @ (8022390 <udp_sendto_if_src+0x1b0>)
  84171. 80222f6: f240 320d movw r2, #781 @ 0x30d
  84172. 80222fa: 492c ldr r1, [pc, #176] @ (80223ac <udp_sendto_if_src+0x1cc>)
  84173. 80222fc: 4826 ldr r0, [pc, #152] @ (8022398 <udp_sendto_if_src+0x1b8>)
  84174. 80222fe: f008 fa2d bl 802a75c <iprintf>
  84175. (q->len >= sizeof(struct udp_hdr)));
  84176. /* q now represents the packet to be sent */
  84177. udphdr = (struct udp_hdr *)q->payload;
  84178. 8022302: 69fb ldr r3, [r7, #28]
  84179. 8022304: 685b ldr r3, [r3, #4]
  84180. 8022306: 617b str r3, [r7, #20]
  84181. udphdr->src = lwip_htons(pcb->local_port);
  84182. 8022308: 68fb ldr r3, [r7, #12]
  84183. 802230a: 8a5b ldrh r3, [r3, #18]
  84184. 802230c: 4618 mov r0, r3
  84185. 802230e: f7f7 facb bl 80198a8 <lwip_htons>
  84186. 8022312: 4603 mov r3, r0
  84187. 8022314: 461a mov r2, r3
  84188. 8022316: 697b ldr r3, [r7, #20]
  84189. 8022318: 801a strh r2, [r3, #0]
  84190. udphdr->dest = lwip_htons(dst_port);
  84191. 802231a: 887b ldrh r3, [r7, #2]
  84192. 802231c: 4618 mov r0, r3
  84193. 802231e: f7f7 fac3 bl 80198a8 <lwip_htons>
  84194. 8022322: 4603 mov r3, r0
  84195. 8022324: 461a mov r2, r3
  84196. 8022326: 697b ldr r3, [r7, #20]
  84197. 8022328: 805a strh r2, [r3, #2]
  84198. /* in UDP, 0 checksum means 'no checksum' */
  84199. udphdr->chksum = 0x0000;
  84200. 802232a: 697b ldr r3, [r7, #20]
  84201. 802232c: 2200 movs r2, #0
  84202. 802232e: 719a strb r2, [r3, #6]
  84203. 8022330: 2200 movs r2, #0
  84204. 8022332: 71da strb r2, [r3, #7]
  84205. ip_proto = IP_PROTO_UDPLITE;
  84206. } else
  84207. #endif /* LWIP_UDPLITE */
  84208. { /* UDP */
  84209. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP packet length %"U16_F"\n", q->tot_len));
  84210. udphdr->len = lwip_htons(q->tot_len);
  84211. 8022334: 69fb ldr r3, [r7, #28]
  84212. 8022336: 891b ldrh r3, [r3, #8]
  84213. 8022338: 4618 mov r0, r3
  84214. 802233a: f7f7 fab5 bl 80198a8 <lwip_htons>
  84215. 802233e: 4603 mov r3, r0
  84216. 8022340: 461a mov r2, r3
  84217. 8022342: 697b ldr r3, [r7, #20]
  84218. 8022344: 809a strh r2, [r3, #4]
  84219. }
  84220. udphdr->chksum = udpchksum;
  84221. }
  84222. }
  84223. #endif /* CHECKSUM_GEN_UDP */
  84224. ip_proto = IP_PROTO_UDP;
  84225. 8022346: 2311 movs r3, #17
  84226. 8022348: 74fb strb r3, [r7, #19]
  84227. /* Determine TTL to use */
  84228. #if LWIP_MULTICAST_TX_OPTIONS
  84229. ttl = (ip_addr_ismulticast(dst_ip) ? udp_get_multicast_ttl(pcb) : pcb->ttl);
  84230. #else /* LWIP_MULTICAST_TX_OPTIONS */
  84231. ttl = pcb->ttl;
  84232. 802234a: 68fb ldr r3, [r7, #12]
  84233. 802234c: 7adb ldrb r3, [r3, #11]
  84234. 802234e: 74bb strb r3, [r7, #18]
  84235. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP checksum 0x%04"X16_F"\n", udphdr->chksum));
  84236. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: ip_output_if (,,,,0x%02"X16_F",)\n", (u16_t)ip_proto));
  84237. /* output to IP */
  84238. NETIF_SET_HINTS(netif, &(pcb->netif_hints));
  84239. err = ip_output_if_src(q, src_ip, dst_ip, ttl, pcb->tos, ip_proto, netif);
  84240. 8022350: 68fb ldr r3, [r7, #12]
  84241. 8022352: 7a9b ldrb r3, [r3, #10]
  84242. 8022354: 7cb9 ldrb r1, [r7, #18]
  84243. 8022356: 6aba ldr r2, [r7, #40] @ 0x28
  84244. 8022358: 9202 str r2, [sp, #8]
  84245. 802235a: 7cfa ldrb r2, [r7, #19]
  84246. 802235c: 9201 str r2, [sp, #4]
  84247. 802235e: 9300 str r3, [sp, #0]
  84248. 8022360: 460b mov r3, r1
  84249. 8022362: 687a ldr r2, [r7, #4]
  84250. 8022364: 6af9 ldr r1, [r7, #44] @ 0x2c
  84251. 8022366: 69f8 ldr r0, [r7, #28]
  84252. 8022368: f003 fbf2 bl 8025b50 <ip4_output_if_src>
  84253. 802236c: 4603 mov r3, r0
  84254. 802236e: 76fb strb r3, [r7, #27]
  84255. /* @todo: must this be increased even if error occurred? */
  84256. MIB2_STATS_INC(mib2.udpoutdatagrams);
  84257. /* did we chain a separate header pbuf earlier? */
  84258. if (q != p) {
  84259. 8022370: 69fa ldr r2, [r7, #28]
  84260. 8022372: 68bb ldr r3, [r7, #8]
  84261. 8022374: 429a cmp r2, r3
  84262. 8022376: d004 beq.n 8022382 <udp_sendto_if_src+0x1a2>
  84263. /* free the header pbuf */
  84264. pbuf_free(q);
  84265. 8022378: 69f8 ldr r0, [r7, #28]
  84266. 802237a: f7f8 ff77 bl 801b26c <pbuf_free>
  84267. q = NULL;
  84268. 802237e: 2300 movs r3, #0
  84269. 8022380: 61fb str r3, [r7, #28]
  84270. /* p is still referenced by the caller, and will live on */
  84271. }
  84272. UDP_STATS_INC(udp.xmit);
  84273. return err;
  84274. 8022382: f997 301b ldrsb.w r3, [r7, #27]
  84275. }
  84276. 8022386: 4618 mov r0, r3
  84277. 8022388: 3720 adds r7, #32
  84278. 802238a: 46bd mov sp, r7
  84279. 802238c: bd80 pop {r7, pc}
  84280. 802238e: bf00 nop
  84281. 8022390: 080309d4 .word 0x080309d4
  84282. 8022394: 08030bc0 .word 0x08030bc0
  84283. 8022398: 08030a28 .word 0x08030a28
  84284. 802239c: 08030be0 .word 0x08030be0
  84285. 80223a0: 08030c00 .word 0x08030c00
  84286. 80223a4: 08030c24 .word 0x08030c24
  84287. 80223a8: 08030c48 .word 0x08030c48
  84288. 80223ac: 08030c6c .word 0x08030c6c
  84289. 080223b0 <udp_bind>:
  84290. *
  84291. * @see udp_disconnect()
  84292. */
  84293. err_t
  84294. udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
  84295. {
  84296. 80223b0: b580 push {r7, lr}
  84297. 80223b2: b086 sub sp, #24
  84298. 80223b4: af00 add r7, sp, #0
  84299. 80223b6: 60f8 str r0, [r7, #12]
  84300. 80223b8: 60b9 str r1, [r7, #8]
  84301. 80223ba: 4613 mov r3, r2
  84302. 80223bc: 80fb strh r3, [r7, #6]
  84303. u8_t rebind;
  84304. #if LWIP_IPV6 && LWIP_IPV6_SCOPES
  84305. ip_addr_t zoned_ipaddr;
  84306. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  84307. LWIP_ASSERT_CORE_LOCKED();
  84308. 80223be: f7ee fd9f bl 8010f00 <sys_check_core_locking>
  84309. #if LWIP_IPV4
  84310. /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */
  84311. if (ipaddr == NULL) {
  84312. 80223c2: 68bb ldr r3, [r7, #8]
  84313. 80223c4: 2b00 cmp r3, #0
  84314. 80223c6: d101 bne.n 80223cc <udp_bind+0x1c>
  84315. ipaddr = IP4_ADDR_ANY;
  84316. 80223c8: 4b39 ldr r3, [pc, #228] @ (80224b0 <udp_bind+0x100>)
  84317. 80223ca: 60bb str r3, [r7, #8]
  84318. }
  84319. #else /* LWIP_IPV4 */
  84320. LWIP_ERROR("udp_bind: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
  84321. #endif /* LWIP_IPV4 */
  84322. LWIP_ERROR("udp_bind: invalid pcb", pcb != NULL, return ERR_ARG);
  84323. 80223cc: 68fb ldr r3, [r7, #12]
  84324. 80223ce: 2b00 cmp r3, #0
  84325. 80223d0: d109 bne.n 80223e6 <udp_bind+0x36>
  84326. 80223d2: 4b38 ldr r3, [pc, #224] @ (80224b4 <udp_bind+0x104>)
  84327. 80223d4: f240 32b7 movw r2, #951 @ 0x3b7
  84328. 80223d8: 4937 ldr r1, [pc, #220] @ (80224b8 <udp_bind+0x108>)
  84329. 80223da: 4838 ldr r0, [pc, #224] @ (80224bc <udp_bind+0x10c>)
  84330. 80223dc: f008 f9be bl 802a75c <iprintf>
  84331. 80223e0: f06f 030f mvn.w r3, #15
  84332. 80223e4: e060 b.n 80224a8 <udp_bind+0xf8>
  84333. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_bind(ipaddr = "));
  84334. ip_addr_debug_print(UDP_DEBUG | LWIP_DBG_TRACE, ipaddr);
  84335. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, (", port = %"U16_F")\n", port));
  84336. rebind = 0;
  84337. 80223e6: 2300 movs r3, #0
  84338. 80223e8: 74fb strb r3, [r7, #19]
  84339. /* Check for double bind and rebind of the same pcb */
  84340. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  84341. 80223ea: 4b35 ldr r3, [pc, #212] @ (80224c0 <udp_bind+0x110>)
  84342. 80223ec: 681b ldr r3, [r3, #0]
  84343. 80223ee: 617b str r3, [r7, #20]
  84344. 80223f0: e009 b.n 8022406 <udp_bind+0x56>
  84345. /* is this UDP PCB already on active list? */
  84346. if (pcb == ipcb) {
  84347. 80223f2: 68fa ldr r2, [r7, #12]
  84348. 80223f4: 697b ldr r3, [r7, #20]
  84349. 80223f6: 429a cmp r2, r3
  84350. 80223f8: d102 bne.n 8022400 <udp_bind+0x50>
  84351. rebind = 1;
  84352. 80223fa: 2301 movs r3, #1
  84353. 80223fc: 74fb strb r3, [r7, #19]
  84354. break;
  84355. 80223fe: e005 b.n 802240c <udp_bind+0x5c>
  84356. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  84357. 8022400: 697b ldr r3, [r7, #20]
  84358. 8022402: 68db ldr r3, [r3, #12]
  84359. 8022404: 617b str r3, [r7, #20]
  84360. 8022406: 697b ldr r3, [r7, #20]
  84361. 8022408: 2b00 cmp r3, #0
  84362. 802240a: d1f2 bne.n 80223f2 <udp_bind+0x42>
  84363. ipaddr = &zoned_ipaddr;
  84364. }
  84365. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  84366. /* no port specified? */
  84367. if (port == 0) {
  84368. 802240c: 88fb ldrh r3, [r7, #6]
  84369. 802240e: 2b00 cmp r3, #0
  84370. 8022410: d109 bne.n 8022426 <udp_bind+0x76>
  84371. port = udp_new_port();
  84372. 8022412: f7ff fc2f bl 8021c74 <udp_new_port>
  84373. 8022416: 4603 mov r3, r0
  84374. 8022418: 80fb strh r3, [r7, #6]
  84375. if (port == 0) {
  84376. 802241a: 88fb ldrh r3, [r7, #6]
  84377. 802241c: 2b00 cmp r3, #0
  84378. 802241e: d12c bne.n 802247a <udp_bind+0xca>
  84379. /* no more ports available in local range */
  84380. LWIP_DEBUGF(UDP_DEBUG, ("udp_bind: out of free UDP ports\n"));
  84381. return ERR_USE;
  84382. 8022420: f06f 0307 mvn.w r3, #7
  84383. 8022424: e040 b.n 80224a8 <udp_bind+0xf8>
  84384. }
  84385. } else {
  84386. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  84387. 8022426: 4b26 ldr r3, [pc, #152] @ (80224c0 <udp_bind+0x110>)
  84388. 8022428: 681b ldr r3, [r3, #0]
  84389. 802242a: 617b str r3, [r7, #20]
  84390. 802242c: e022 b.n 8022474 <udp_bind+0xc4>
  84391. if (pcb != ipcb) {
  84392. 802242e: 68fa ldr r2, [r7, #12]
  84393. 8022430: 697b ldr r3, [r7, #20]
  84394. 8022432: 429a cmp r2, r3
  84395. 8022434: d01b beq.n 802246e <udp_bind+0xbe>
  84396. if (!ip_get_option(pcb, SOF_REUSEADDR) ||
  84397. !ip_get_option(ipcb, SOF_REUSEADDR))
  84398. #endif /* SO_REUSE */
  84399. {
  84400. /* port matches that of PCB in list and REUSEADDR not set -> reject */
  84401. if ((ipcb->local_port == port) &&
  84402. 8022436: 697b ldr r3, [r7, #20]
  84403. 8022438: 8a5b ldrh r3, [r3, #18]
  84404. 802243a: 88fa ldrh r2, [r7, #6]
  84405. 802243c: 429a cmp r2, r3
  84406. 802243e: d116 bne.n 802246e <udp_bind+0xbe>
  84407. /* IP address matches or any IP used? */
  84408. (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) ||
  84409. 8022440: 697b ldr r3, [r7, #20]
  84410. 8022442: 681a ldr r2, [r3, #0]
  84411. 8022444: 68bb ldr r3, [r7, #8]
  84412. 8022446: 681b ldr r3, [r3, #0]
  84413. if ((ipcb->local_port == port) &&
  84414. 8022448: 429a cmp r2, r3
  84415. 802244a: d00d beq.n 8022468 <udp_bind+0xb8>
  84416. (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) ||
  84417. 802244c: 68bb ldr r3, [r7, #8]
  84418. 802244e: 2b00 cmp r3, #0
  84419. 8022450: d00a beq.n 8022468 <udp_bind+0xb8>
  84420. 8022452: 68bb ldr r3, [r7, #8]
  84421. 8022454: 681b ldr r3, [r3, #0]
  84422. 8022456: 2b00 cmp r3, #0
  84423. 8022458: d006 beq.n 8022468 <udp_bind+0xb8>
  84424. ip_addr_isany(&ipcb->local_ip))) {
  84425. 802245a: 697b ldr r3, [r7, #20]
  84426. (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) ||
  84427. 802245c: 2b00 cmp r3, #0
  84428. 802245e: d003 beq.n 8022468 <udp_bind+0xb8>
  84429. ip_addr_isany(&ipcb->local_ip))) {
  84430. 8022460: 697b ldr r3, [r7, #20]
  84431. 8022462: 681b ldr r3, [r3, #0]
  84432. 8022464: 2b00 cmp r3, #0
  84433. 8022466: d102 bne.n 802246e <udp_bind+0xbe>
  84434. /* other PCB already binds to this local IP and port */
  84435. LWIP_DEBUGF(UDP_DEBUG,
  84436. ("udp_bind: local port %"U16_F" already bound by another pcb\n", port));
  84437. return ERR_USE;
  84438. 8022468: f06f 0307 mvn.w r3, #7
  84439. 802246c: e01c b.n 80224a8 <udp_bind+0xf8>
  84440. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  84441. 802246e: 697b ldr r3, [r7, #20]
  84442. 8022470: 68db ldr r3, [r3, #12]
  84443. 8022472: 617b str r3, [r7, #20]
  84444. 8022474: 697b ldr r3, [r7, #20]
  84445. 8022476: 2b00 cmp r3, #0
  84446. 8022478: d1d9 bne.n 802242e <udp_bind+0x7e>
  84447. }
  84448. }
  84449. }
  84450. }
  84451. ip_addr_set_ipaddr(&pcb->local_ip, ipaddr);
  84452. 802247a: 68bb ldr r3, [r7, #8]
  84453. 802247c: 2b00 cmp r3, #0
  84454. 802247e: d002 beq.n 8022486 <udp_bind+0xd6>
  84455. 8022480: 68bb ldr r3, [r7, #8]
  84456. 8022482: 681b ldr r3, [r3, #0]
  84457. 8022484: e000 b.n 8022488 <udp_bind+0xd8>
  84458. 8022486: 2300 movs r3, #0
  84459. 8022488: 68fa ldr r2, [r7, #12]
  84460. 802248a: 6013 str r3, [r2, #0]
  84461. pcb->local_port = port;
  84462. 802248c: 68fb ldr r3, [r7, #12]
  84463. 802248e: 88fa ldrh r2, [r7, #6]
  84464. 8022490: 825a strh r2, [r3, #18]
  84465. mib2_udp_bind(pcb);
  84466. /* pcb not active yet? */
  84467. if (rebind == 0) {
  84468. 8022492: 7cfb ldrb r3, [r7, #19]
  84469. 8022494: 2b00 cmp r3, #0
  84470. 8022496: d106 bne.n 80224a6 <udp_bind+0xf6>
  84471. /* place the PCB on the active list if not already there */
  84472. pcb->next = udp_pcbs;
  84473. 8022498: 4b09 ldr r3, [pc, #36] @ (80224c0 <udp_bind+0x110>)
  84474. 802249a: 681a ldr r2, [r3, #0]
  84475. 802249c: 68fb ldr r3, [r7, #12]
  84476. 802249e: 60da str r2, [r3, #12]
  84477. udp_pcbs = pcb;
  84478. 80224a0: 4a07 ldr r2, [pc, #28] @ (80224c0 <udp_bind+0x110>)
  84479. 80224a2: 68fb ldr r3, [r7, #12]
  84480. 80224a4: 6013 str r3, [r2, #0]
  84481. }
  84482. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("udp_bind: bound to "));
  84483. ip_addr_debug_print_val(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, pcb->local_ip);
  84484. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, (", port %"U16_F")\n", pcb->local_port));
  84485. return ERR_OK;
  84486. 80224a6: 2300 movs r3, #0
  84487. }
  84488. 80224a8: 4618 mov r0, r3
  84489. 80224aa: 3718 adds r7, #24
  84490. 80224ac: 46bd mov sp, r7
  84491. 80224ae: bd80 pop {r7, pc}
  84492. 80224b0: 08031b58 .word 0x08031b58
  84493. 80224b4: 080309d4 .word 0x080309d4
  84494. 80224b8: 08030c9c .word 0x08030c9c
  84495. 80224bc: 08030a28 .word 0x08030a28
  84496. 80224c0: 2402afc8 .word 0x2402afc8
  84497. 080224c4 <udp_connect>:
  84498. *
  84499. * @see udp_disconnect()
  84500. */
  84501. err_t
  84502. udp_connect(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
  84503. {
  84504. 80224c4: b580 push {r7, lr}
  84505. 80224c6: b086 sub sp, #24
  84506. 80224c8: af00 add r7, sp, #0
  84507. 80224ca: 60f8 str r0, [r7, #12]
  84508. 80224cc: 60b9 str r1, [r7, #8]
  84509. 80224ce: 4613 mov r3, r2
  84510. 80224d0: 80fb strh r3, [r7, #6]
  84511. struct udp_pcb *ipcb;
  84512. LWIP_ASSERT_CORE_LOCKED();
  84513. 80224d2: f7ee fd15 bl 8010f00 <sys_check_core_locking>
  84514. LWIP_ERROR("udp_connect: invalid pcb", pcb != NULL, return ERR_ARG);
  84515. 80224d6: 68fb ldr r3, [r7, #12]
  84516. 80224d8: 2b00 cmp r3, #0
  84517. 80224da: d109 bne.n 80224f0 <udp_connect+0x2c>
  84518. 80224dc: 4b2c ldr r3, [pc, #176] @ (8022590 <udp_connect+0xcc>)
  84519. 80224de: f240 4235 movw r2, #1077 @ 0x435
  84520. 80224e2: 492c ldr r1, [pc, #176] @ (8022594 <udp_connect+0xd0>)
  84521. 80224e4: 482c ldr r0, [pc, #176] @ (8022598 <udp_connect+0xd4>)
  84522. 80224e6: f008 f939 bl 802a75c <iprintf>
  84523. 80224ea: f06f 030f mvn.w r3, #15
  84524. 80224ee: e04b b.n 8022588 <udp_connect+0xc4>
  84525. LWIP_ERROR("udp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
  84526. 80224f0: 68bb ldr r3, [r7, #8]
  84527. 80224f2: 2b00 cmp r3, #0
  84528. 80224f4: d109 bne.n 802250a <udp_connect+0x46>
  84529. 80224f6: 4b26 ldr r3, [pc, #152] @ (8022590 <udp_connect+0xcc>)
  84530. 80224f8: f240 4236 movw r2, #1078 @ 0x436
  84531. 80224fc: 4927 ldr r1, [pc, #156] @ (802259c <udp_connect+0xd8>)
  84532. 80224fe: 4826 ldr r0, [pc, #152] @ (8022598 <udp_connect+0xd4>)
  84533. 8022500: f008 f92c bl 802a75c <iprintf>
  84534. 8022504: f06f 030f mvn.w r3, #15
  84535. 8022508: e03e b.n 8022588 <udp_connect+0xc4>
  84536. if (pcb->local_port == 0) {
  84537. 802250a: 68fb ldr r3, [r7, #12]
  84538. 802250c: 8a5b ldrh r3, [r3, #18]
  84539. 802250e: 2b00 cmp r3, #0
  84540. 8022510: d10f bne.n 8022532 <udp_connect+0x6e>
  84541. err_t err = udp_bind(pcb, &pcb->local_ip, pcb->local_port);
  84542. 8022512: 68f9 ldr r1, [r7, #12]
  84543. 8022514: 68fb ldr r3, [r7, #12]
  84544. 8022516: 8a5b ldrh r3, [r3, #18]
  84545. 8022518: 461a mov r2, r3
  84546. 802251a: 68f8 ldr r0, [r7, #12]
  84547. 802251c: f7ff ff48 bl 80223b0 <udp_bind>
  84548. 8022520: 4603 mov r3, r0
  84549. 8022522: 75fb strb r3, [r7, #23]
  84550. if (err != ERR_OK) {
  84551. 8022524: f997 3017 ldrsb.w r3, [r7, #23]
  84552. 8022528: 2b00 cmp r3, #0
  84553. 802252a: d002 beq.n 8022532 <udp_connect+0x6e>
  84554. return err;
  84555. 802252c: f997 3017 ldrsb.w r3, [r7, #23]
  84556. 8022530: e02a b.n 8022588 <udp_connect+0xc4>
  84557. }
  84558. }
  84559. ip_addr_set_ipaddr(&pcb->remote_ip, ipaddr);
  84560. 8022532: 68bb ldr r3, [r7, #8]
  84561. 8022534: 2b00 cmp r3, #0
  84562. 8022536: d002 beq.n 802253e <udp_connect+0x7a>
  84563. 8022538: 68bb ldr r3, [r7, #8]
  84564. 802253a: 681b ldr r3, [r3, #0]
  84565. 802253c: e000 b.n 8022540 <udp_connect+0x7c>
  84566. 802253e: 2300 movs r3, #0
  84567. 8022540: 68fa ldr r2, [r7, #12]
  84568. 8022542: 6053 str r3, [r2, #4]
  84569. ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNKNOWN)) {
  84570. ip6_addr_select_zone(ip_2_ip6(&pcb->remote_ip), ip_2_ip6(&pcb->local_ip));
  84571. }
  84572. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  84573. pcb->remote_port = port;
  84574. 8022544: 68fb ldr r3, [r7, #12]
  84575. 8022546: 88fa ldrh r2, [r7, #6]
  84576. 8022548: 829a strh r2, [r3, #20]
  84577. pcb->flags |= UDP_FLAGS_CONNECTED;
  84578. 802254a: 68fb ldr r3, [r7, #12]
  84579. 802254c: 7c1b ldrb r3, [r3, #16]
  84580. 802254e: f043 0304 orr.w r3, r3, #4
  84581. 8022552: b2da uxtb r2, r3
  84582. 8022554: 68fb ldr r3, [r7, #12]
  84583. 8022556: 741a strb r2, [r3, #16]
  84584. ip_addr_debug_print_val(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE,
  84585. pcb->remote_ip);
  84586. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, (", port %"U16_F")\n", pcb->remote_port));
  84587. /* Insert UDP PCB into the list of active UDP PCBs. */
  84588. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  84589. 8022558: 4b11 ldr r3, [pc, #68] @ (80225a0 <udp_connect+0xdc>)
  84590. 802255a: 681b ldr r3, [r3, #0]
  84591. 802255c: 613b str r3, [r7, #16]
  84592. 802255e: e008 b.n 8022572 <udp_connect+0xae>
  84593. if (pcb == ipcb) {
  84594. 8022560: 68fa ldr r2, [r7, #12]
  84595. 8022562: 693b ldr r3, [r7, #16]
  84596. 8022564: 429a cmp r2, r3
  84597. 8022566: d101 bne.n 802256c <udp_connect+0xa8>
  84598. /* already on the list, just return */
  84599. return ERR_OK;
  84600. 8022568: 2300 movs r3, #0
  84601. 802256a: e00d b.n 8022588 <udp_connect+0xc4>
  84602. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  84603. 802256c: 693b ldr r3, [r7, #16]
  84604. 802256e: 68db ldr r3, [r3, #12]
  84605. 8022570: 613b str r3, [r7, #16]
  84606. 8022572: 693b ldr r3, [r7, #16]
  84607. 8022574: 2b00 cmp r3, #0
  84608. 8022576: d1f3 bne.n 8022560 <udp_connect+0x9c>
  84609. }
  84610. }
  84611. /* PCB not yet on the list, add PCB now */
  84612. pcb->next = udp_pcbs;
  84613. 8022578: 4b09 ldr r3, [pc, #36] @ (80225a0 <udp_connect+0xdc>)
  84614. 802257a: 681a ldr r2, [r3, #0]
  84615. 802257c: 68fb ldr r3, [r7, #12]
  84616. 802257e: 60da str r2, [r3, #12]
  84617. udp_pcbs = pcb;
  84618. 8022580: 4a07 ldr r2, [pc, #28] @ (80225a0 <udp_connect+0xdc>)
  84619. 8022582: 68fb ldr r3, [r7, #12]
  84620. 8022584: 6013 str r3, [r2, #0]
  84621. return ERR_OK;
  84622. 8022586: 2300 movs r3, #0
  84623. }
  84624. 8022588: 4618 mov r0, r3
  84625. 802258a: 3718 adds r7, #24
  84626. 802258c: 46bd mov sp, r7
  84627. 802258e: bd80 pop {r7, pc}
  84628. 8022590: 080309d4 .word 0x080309d4
  84629. 8022594: 08030cb4 .word 0x08030cb4
  84630. 8022598: 08030a28 .word 0x08030a28
  84631. 802259c: 08030cd0 .word 0x08030cd0
  84632. 80225a0: 2402afc8 .word 0x2402afc8
  84633. 080225a4 <udp_disconnect>:
  84634. *
  84635. * @param pcb the udp pcb to disconnect.
  84636. */
  84637. void
  84638. udp_disconnect(struct udp_pcb *pcb)
  84639. {
  84640. 80225a4: b580 push {r7, lr}
  84641. 80225a6: b082 sub sp, #8
  84642. 80225a8: af00 add r7, sp, #0
  84643. 80225aa: 6078 str r0, [r7, #4]
  84644. LWIP_ASSERT_CORE_LOCKED();
  84645. 80225ac: f7ee fca8 bl 8010f00 <sys_check_core_locking>
  84646. LWIP_ERROR("udp_disconnect: invalid pcb", pcb != NULL, return);
  84647. 80225b0: 687b ldr r3, [r7, #4]
  84648. 80225b2: 2b00 cmp r3, #0
  84649. 80225b4: d107 bne.n 80225c6 <udp_disconnect+0x22>
  84650. 80225b6: 4b0d ldr r3, [pc, #52] @ (80225ec <udp_disconnect+0x48>)
  84651. 80225b8: f240 426a movw r2, #1130 @ 0x46a
  84652. 80225bc: 490c ldr r1, [pc, #48] @ (80225f0 <udp_disconnect+0x4c>)
  84653. 80225be: 480d ldr r0, [pc, #52] @ (80225f4 <udp_disconnect+0x50>)
  84654. 80225c0: f008 f8cc bl 802a75c <iprintf>
  84655. 80225c4: e00f b.n 80225e6 <udp_disconnect+0x42>
  84656. #if LWIP_IPV4 && LWIP_IPV6
  84657. if (IP_IS_ANY_TYPE_VAL(pcb->local_ip)) {
  84658. ip_addr_copy(pcb->remote_ip, *IP_ANY_TYPE);
  84659. } else {
  84660. #endif
  84661. ip_addr_set_any(IP_IS_V6_VAL(pcb->remote_ip), &pcb->remote_ip);
  84662. 80225c6: 687b ldr r3, [r7, #4]
  84663. 80225c8: 2200 movs r2, #0
  84664. 80225ca: 605a str r2, [r3, #4]
  84665. #if LWIP_IPV4 && LWIP_IPV6
  84666. }
  84667. #endif
  84668. pcb->remote_port = 0;
  84669. 80225cc: 687b ldr r3, [r7, #4]
  84670. 80225ce: 2200 movs r2, #0
  84671. 80225d0: 829a strh r2, [r3, #20]
  84672. pcb->netif_idx = NETIF_NO_INDEX;
  84673. 80225d2: 687b ldr r3, [r7, #4]
  84674. 80225d4: 2200 movs r2, #0
  84675. 80225d6: 721a strb r2, [r3, #8]
  84676. /* mark PCB as unconnected */
  84677. udp_clear_flags(pcb, UDP_FLAGS_CONNECTED);
  84678. 80225d8: 687b ldr r3, [r7, #4]
  84679. 80225da: 7c1b ldrb r3, [r3, #16]
  84680. 80225dc: f023 0304 bic.w r3, r3, #4
  84681. 80225e0: b2da uxtb r2, r3
  84682. 80225e2: 687b ldr r3, [r7, #4]
  84683. 80225e4: 741a strb r2, [r3, #16]
  84684. }
  84685. 80225e6: 3708 adds r7, #8
  84686. 80225e8: 46bd mov sp, r7
  84687. 80225ea: bd80 pop {r7, pc}
  84688. 80225ec: 080309d4 .word 0x080309d4
  84689. 80225f0: 08030cec .word 0x08030cec
  84690. 80225f4: 08030a28 .word 0x08030a28
  84691. 080225f8 <udp_recv>:
  84692. * @param recv function pointer of the callback function
  84693. * @param recv_arg additional argument to pass to the callback function
  84694. */
  84695. void
  84696. udp_recv(struct udp_pcb *pcb, udp_recv_fn recv, void *recv_arg)
  84697. {
  84698. 80225f8: b580 push {r7, lr}
  84699. 80225fa: b084 sub sp, #16
  84700. 80225fc: af00 add r7, sp, #0
  84701. 80225fe: 60f8 str r0, [r7, #12]
  84702. 8022600: 60b9 str r1, [r7, #8]
  84703. 8022602: 607a str r2, [r7, #4]
  84704. LWIP_ASSERT_CORE_LOCKED();
  84705. 8022604: f7ee fc7c bl 8010f00 <sys_check_core_locking>
  84706. LWIP_ERROR("udp_recv: invalid pcb", pcb != NULL, return);
  84707. 8022608: 68fb ldr r3, [r7, #12]
  84708. 802260a: 2b00 cmp r3, #0
  84709. 802260c: d107 bne.n 802261e <udp_recv+0x26>
  84710. 802260e: 4b08 ldr r3, [pc, #32] @ (8022630 <udp_recv+0x38>)
  84711. 8022610: f240 428a movw r2, #1162 @ 0x48a
  84712. 8022614: 4907 ldr r1, [pc, #28] @ (8022634 <udp_recv+0x3c>)
  84713. 8022616: 4808 ldr r0, [pc, #32] @ (8022638 <udp_recv+0x40>)
  84714. 8022618: f008 f8a0 bl 802a75c <iprintf>
  84715. 802261c: e005 b.n 802262a <udp_recv+0x32>
  84716. /* remember recv() callback and user data */
  84717. pcb->recv = recv;
  84718. 802261e: 68fb ldr r3, [r7, #12]
  84719. 8022620: 68ba ldr r2, [r7, #8]
  84720. 8022622: 619a str r2, [r3, #24]
  84721. pcb->recv_arg = recv_arg;
  84722. 8022624: 68fb ldr r3, [r7, #12]
  84723. 8022626: 687a ldr r2, [r7, #4]
  84724. 8022628: 61da str r2, [r3, #28]
  84725. }
  84726. 802262a: 3710 adds r7, #16
  84727. 802262c: 46bd mov sp, r7
  84728. 802262e: bd80 pop {r7, pc}
  84729. 8022630: 080309d4 .word 0x080309d4
  84730. 8022634: 08030d08 .word 0x08030d08
  84731. 8022638: 08030a28 .word 0x08030a28
  84732. 0802263c <udp_remove>:
  84733. *
  84734. * @see udp_new()
  84735. */
  84736. void
  84737. udp_remove(struct udp_pcb *pcb)
  84738. {
  84739. 802263c: b580 push {r7, lr}
  84740. 802263e: b084 sub sp, #16
  84741. 8022640: af00 add r7, sp, #0
  84742. 8022642: 6078 str r0, [r7, #4]
  84743. struct udp_pcb *pcb2;
  84744. LWIP_ASSERT_CORE_LOCKED();
  84745. 8022644: f7ee fc5c bl 8010f00 <sys_check_core_locking>
  84746. LWIP_ERROR("udp_remove: invalid pcb", pcb != NULL, return);
  84747. 8022648: 687b ldr r3, [r7, #4]
  84748. 802264a: 2b00 cmp r3, #0
  84749. 802264c: d107 bne.n 802265e <udp_remove+0x22>
  84750. 802264e: 4b19 ldr r3, [pc, #100] @ (80226b4 <udp_remove+0x78>)
  84751. 8022650: f240 42a1 movw r2, #1185 @ 0x4a1
  84752. 8022654: 4918 ldr r1, [pc, #96] @ (80226b8 <udp_remove+0x7c>)
  84753. 8022656: 4819 ldr r0, [pc, #100] @ (80226bc <udp_remove+0x80>)
  84754. 8022658: f008 f880 bl 802a75c <iprintf>
  84755. 802265c: e026 b.n 80226ac <udp_remove+0x70>
  84756. mib2_udp_unbind(pcb);
  84757. /* pcb to be removed is first in list? */
  84758. if (udp_pcbs == pcb) {
  84759. 802265e: 4b18 ldr r3, [pc, #96] @ (80226c0 <udp_remove+0x84>)
  84760. 8022660: 681b ldr r3, [r3, #0]
  84761. 8022662: 687a ldr r2, [r7, #4]
  84762. 8022664: 429a cmp r2, r3
  84763. 8022666: d105 bne.n 8022674 <udp_remove+0x38>
  84764. /* make list start at 2nd pcb */
  84765. udp_pcbs = udp_pcbs->next;
  84766. 8022668: 4b15 ldr r3, [pc, #84] @ (80226c0 <udp_remove+0x84>)
  84767. 802266a: 681b ldr r3, [r3, #0]
  84768. 802266c: 68db ldr r3, [r3, #12]
  84769. 802266e: 4a14 ldr r2, [pc, #80] @ (80226c0 <udp_remove+0x84>)
  84770. 8022670: 6013 str r3, [r2, #0]
  84771. 8022672: e017 b.n 80226a4 <udp_remove+0x68>
  84772. /* pcb not 1st in list */
  84773. } else {
  84774. for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) {
  84775. 8022674: 4b12 ldr r3, [pc, #72] @ (80226c0 <udp_remove+0x84>)
  84776. 8022676: 681b ldr r3, [r3, #0]
  84777. 8022678: 60fb str r3, [r7, #12]
  84778. 802267a: e010 b.n 802269e <udp_remove+0x62>
  84779. /* find pcb in udp_pcbs list */
  84780. if (pcb2->next != NULL && pcb2->next == pcb) {
  84781. 802267c: 68fb ldr r3, [r7, #12]
  84782. 802267e: 68db ldr r3, [r3, #12]
  84783. 8022680: 2b00 cmp r3, #0
  84784. 8022682: d009 beq.n 8022698 <udp_remove+0x5c>
  84785. 8022684: 68fb ldr r3, [r7, #12]
  84786. 8022686: 68db ldr r3, [r3, #12]
  84787. 8022688: 687a ldr r2, [r7, #4]
  84788. 802268a: 429a cmp r2, r3
  84789. 802268c: d104 bne.n 8022698 <udp_remove+0x5c>
  84790. /* remove pcb from list */
  84791. pcb2->next = pcb->next;
  84792. 802268e: 687b ldr r3, [r7, #4]
  84793. 8022690: 68da ldr r2, [r3, #12]
  84794. 8022692: 68fb ldr r3, [r7, #12]
  84795. 8022694: 60da str r2, [r3, #12]
  84796. break;
  84797. 8022696: e005 b.n 80226a4 <udp_remove+0x68>
  84798. for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) {
  84799. 8022698: 68fb ldr r3, [r7, #12]
  84800. 802269a: 68db ldr r3, [r3, #12]
  84801. 802269c: 60fb str r3, [r7, #12]
  84802. 802269e: 68fb ldr r3, [r7, #12]
  84803. 80226a0: 2b00 cmp r3, #0
  84804. 80226a2: d1eb bne.n 802267c <udp_remove+0x40>
  84805. }
  84806. }
  84807. }
  84808. memp_free(MEMP_UDP_PCB, pcb);
  84809. 80226a4: 6879 ldr r1, [r7, #4]
  84810. 80226a6: 2000 movs r0, #0
  84811. 80226a8: f7f7 fef2 bl 801a490 <memp_free>
  84812. }
  84813. 80226ac: 3710 adds r7, #16
  84814. 80226ae: 46bd mov sp, r7
  84815. 80226b0: bd80 pop {r7, pc}
  84816. 80226b2: bf00 nop
  84817. 80226b4: 080309d4 .word 0x080309d4
  84818. 80226b8: 08030d20 .word 0x08030d20
  84819. 80226bc: 08030a28 .word 0x08030a28
  84820. 80226c0: 2402afc8 .word 0x2402afc8
  84821. 080226c4 <udp_new>:
  84822. *
  84823. * @see udp_remove()
  84824. */
  84825. struct udp_pcb *
  84826. udp_new(void)
  84827. {
  84828. 80226c4: b580 push {r7, lr}
  84829. 80226c6: b082 sub sp, #8
  84830. 80226c8: af00 add r7, sp, #0
  84831. struct udp_pcb *pcb;
  84832. LWIP_ASSERT_CORE_LOCKED();
  84833. 80226ca: f7ee fc19 bl 8010f00 <sys_check_core_locking>
  84834. pcb = (struct udp_pcb *)memp_malloc(MEMP_UDP_PCB);
  84835. 80226ce: 2000 movs r0, #0
  84836. 80226d0: f7f7 fe68 bl 801a3a4 <memp_malloc>
  84837. 80226d4: 6078 str r0, [r7, #4]
  84838. /* could allocate UDP PCB? */
  84839. if (pcb != NULL) {
  84840. 80226d6: 687b ldr r3, [r7, #4]
  84841. 80226d8: 2b00 cmp r3, #0
  84842. 80226da: d007 beq.n 80226ec <udp_new+0x28>
  84843. /* UDP Lite: by initializing to all zeroes, chksum_len is set to 0
  84844. * which means checksum is generated over the whole datagram per default
  84845. * (recommended as default by RFC 3828). */
  84846. /* initialize PCB to all zeroes */
  84847. memset(pcb, 0, sizeof(struct udp_pcb));
  84848. 80226dc: 2220 movs r2, #32
  84849. 80226de: 2100 movs r1, #0
  84850. 80226e0: 6878 ldr r0, [r7, #4]
  84851. 80226e2: f008 f9cd bl 802aa80 <memset>
  84852. pcb->ttl = UDP_TTL;
  84853. 80226e6: 687b ldr r3, [r7, #4]
  84854. 80226e8: 22ff movs r2, #255 @ 0xff
  84855. 80226ea: 72da strb r2, [r3, #11]
  84856. #if LWIP_MULTICAST_TX_OPTIONS
  84857. udp_set_multicast_ttl(pcb, UDP_TTL);
  84858. #endif /* LWIP_MULTICAST_TX_OPTIONS */
  84859. }
  84860. return pcb;
  84861. 80226ec: 687b ldr r3, [r7, #4]
  84862. }
  84863. 80226ee: 4618 mov r0, r3
  84864. 80226f0: 3708 adds r7, #8
  84865. 80226f2: 46bd mov sp, r7
  84866. 80226f4: bd80 pop {r7, pc}
  84867. 080226f6 <udp_new_ip_type>:
  84868. *
  84869. * @see udp_remove()
  84870. */
  84871. struct udp_pcb *
  84872. udp_new_ip_type(u8_t type)
  84873. {
  84874. 80226f6: b580 push {r7, lr}
  84875. 80226f8: b084 sub sp, #16
  84876. 80226fa: af00 add r7, sp, #0
  84877. 80226fc: 4603 mov r3, r0
  84878. 80226fe: 71fb strb r3, [r7, #7]
  84879. struct udp_pcb *pcb;
  84880. LWIP_ASSERT_CORE_LOCKED();
  84881. 8022700: f7ee fbfe bl 8010f00 <sys_check_core_locking>
  84882. pcb = udp_new();
  84883. 8022704: f7ff ffde bl 80226c4 <udp_new>
  84884. 8022708: 60f8 str r0, [r7, #12]
  84885. IP_SET_TYPE_VAL(pcb->remote_ip, type);
  84886. }
  84887. #else
  84888. LWIP_UNUSED_ARG(type);
  84889. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  84890. return pcb;
  84891. 802270a: 68fb ldr r3, [r7, #12]
  84892. }
  84893. 802270c: 4618 mov r0, r3
  84894. 802270e: 3710 adds r7, #16
  84895. 8022710: 46bd mov sp, r7
  84896. 8022712: bd80 pop {r7, pc}
  84897. 08022714 <udp_netif_ip_addr_changed>:
  84898. *
  84899. * @param old_addr IP address of the netif before change
  84900. * @param new_addr IP address of the netif after change
  84901. */
  84902. void udp_netif_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr)
  84903. {
  84904. 8022714: b480 push {r7}
  84905. 8022716: b085 sub sp, #20
  84906. 8022718: af00 add r7, sp, #0
  84907. 802271a: 6078 str r0, [r7, #4]
  84908. 802271c: 6039 str r1, [r7, #0]
  84909. struct udp_pcb *upcb;
  84910. if (!ip_addr_isany(old_addr) && !ip_addr_isany(new_addr)) {
  84911. 802271e: 687b ldr r3, [r7, #4]
  84912. 8022720: 2b00 cmp r3, #0
  84913. 8022722: d01e beq.n 8022762 <udp_netif_ip_addr_changed+0x4e>
  84914. 8022724: 687b ldr r3, [r7, #4]
  84915. 8022726: 681b ldr r3, [r3, #0]
  84916. 8022728: 2b00 cmp r3, #0
  84917. 802272a: d01a beq.n 8022762 <udp_netif_ip_addr_changed+0x4e>
  84918. 802272c: 683b ldr r3, [r7, #0]
  84919. 802272e: 2b00 cmp r3, #0
  84920. 8022730: d017 beq.n 8022762 <udp_netif_ip_addr_changed+0x4e>
  84921. 8022732: 683b ldr r3, [r7, #0]
  84922. 8022734: 681b ldr r3, [r3, #0]
  84923. 8022736: 2b00 cmp r3, #0
  84924. 8022738: d013 beq.n 8022762 <udp_netif_ip_addr_changed+0x4e>
  84925. for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) {
  84926. 802273a: 4b0d ldr r3, [pc, #52] @ (8022770 <udp_netif_ip_addr_changed+0x5c>)
  84927. 802273c: 681b ldr r3, [r3, #0]
  84928. 802273e: 60fb str r3, [r7, #12]
  84929. 8022740: e00c b.n 802275c <udp_netif_ip_addr_changed+0x48>
  84930. /* PCB bound to current local interface address? */
  84931. if (ip_addr_cmp(&upcb->local_ip, old_addr)) {
  84932. 8022742: 68fb ldr r3, [r7, #12]
  84933. 8022744: 681a ldr r2, [r3, #0]
  84934. 8022746: 687b ldr r3, [r7, #4]
  84935. 8022748: 681b ldr r3, [r3, #0]
  84936. 802274a: 429a cmp r2, r3
  84937. 802274c: d103 bne.n 8022756 <udp_netif_ip_addr_changed+0x42>
  84938. /* The PCB is bound to the old ipaddr and
  84939. * is set to bound to the new one instead */
  84940. ip_addr_copy(upcb->local_ip, *new_addr);
  84941. 802274e: 683b ldr r3, [r7, #0]
  84942. 8022750: 681a ldr r2, [r3, #0]
  84943. 8022752: 68fb ldr r3, [r7, #12]
  84944. 8022754: 601a str r2, [r3, #0]
  84945. for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) {
  84946. 8022756: 68fb ldr r3, [r7, #12]
  84947. 8022758: 68db ldr r3, [r3, #12]
  84948. 802275a: 60fb str r3, [r7, #12]
  84949. 802275c: 68fb ldr r3, [r7, #12]
  84950. 802275e: 2b00 cmp r3, #0
  84951. 8022760: d1ef bne.n 8022742 <udp_netif_ip_addr_changed+0x2e>
  84952. }
  84953. }
  84954. }
  84955. }
  84956. 8022762: bf00 nop
  84957. 8022764: 3714 adds r7, #20
  84958. 8022766: 46bd mov sp, r7
  84959. 8022768: f85d 7b04 ldr.w r7, [sp], #4
  84960. 802276c: 4770 bx lr
  84961. 802276e: bf00 nop
  84962. 8022770: 2402afc8 .word 0x2402afc8
  84963. 08022774 <dhcp_inc_pcb_refcount>:
  84964. static void dhcp_option_trailer(u16_t options_out_len, u8_t *options, struct pbuf *p_out);
  84965. /** Ensure DHCP PCB is allocated and bound */
  84966. static err_t
  84967. dhcp_inc_pcb_refcount(void)
  84968. {
  84969. 8022774: b580 push {r7, lr}
  84970. 8022776: af00 add r7, sp, #0
  84971. if (dhcp_pcb_refcount == 0) {
  84972. 8022778: 4b20 ldr r3, [pc, #128] @ (80227fc <dhcp_inc_pcb_refcount+0x88>)
  84973. 802277a: 781b ldrb r3, [r3, #0]
  84974. 802277c: 2b00 cmp r3, #0
  84975. 802277e: d133 bne.n 80227e8 <dhcp_inc_pcb_refcount+0x74>
  84976. LWIP_ASSERT("dhcp_inc_pcb_refcount(): memory leak", dhcp_pcb == NULL);
  84977. 8022780: 4b1f ldr r3, [pc, #124] @ (8022800 <dhcp_inc_pcb_refcount+0x8c>)
  84978. 8022782: 681b ldr r3, [r3, #0]
  84979. 8022784: 2b00 cmp r3, #0
  84980. 8022786: d005 beq.n 8022794 <dhcp_inc_pcb_refcount+0x20>
  84981. 8022788: 4b1e ldr r3, [pc, #120] @ (8022804 <dhcp_inc_pcb_refcount+0x90>)
  84982. 802278a: 22e5 movs r2, #229 @ 0xe5
  84983. 802278c: 491e ldr r1, [pc, #120] @ (8022808 <dhcp_inc_pcb_refcount+0x94>)
  84984. 802278e: 481f ldr r0, [pc, #124] @ (802280c <dhcp_inc_pcb_refcount+0x98>)
  84985. 8022790: f007 ffe4 bl 802a75c <iprintf>
  84986. /* allocate UDP PCB */
  84987. dhcp_pcb = udp_new();
  84988. 8022794: f7ff ff96 bl 80226c4 <udp_new>
  84989. 8022798: 4603 mov r3, r0
  84990. 802279a: 4a19 ldr r2, [pc, #100] @ (8022800 <dhcp_inc_pcb_refcount+0x8c>)
  84991. 802279c: 6013 str r3, [r2, #0]
  84992. if (dhcp_pcb == NULL) {
  84993. 802279e: 4b18 ldr r3, [pc, #96] @ (8022800 <dhcp_inc_pcb_refcount+0x8c>)
  84994. 80227a0: 681b ldr r3, [r3, #0]
  84995. 80227a2: 2b00 cmp r3, #0
  84996. 80227a4: d102 bne.n 80227ac <dhcp_inc_pcb_refcount+0x38>
  84997. return ERR_MEM;
  84998. 80227a6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  84999. 80227aa: e024 b.n 80227f6 <dhcp_inc_pcb_refcount+0x82>
  85000. }
  85001. ip_set_option(dhcp_pcb, SOF_BROADCAST);
  85002. 80227ac: 4b14 ldr r3, [pc, #80] @ (8022800 <dhcp_inc_pcb_refcount+0x8c>)
  85003. 80227ae: 681b ldr r3, [r3, #0]
  85004. 80227b0: 7a5a ldrb r2, [r3, #9]
  85005. 80227b2: 4b13 ldr r3, [pc, #76] @ (8022800 <dhcp_inc_pcb_refcount+0x8c>)
  85006. 80227b4: 681b ldr r3, [r3, #0]
  85007. 80227b6: f042 0220 orr.w r2, r2, #32
  85008. 80227ba: b2d2 uxtb r2, r2
  85009. 80227bc: 725a strb r2, [r3, #9]
  85010. /* set up local and remote port for the pcb -> listen on all interfaces on all src/dest IPs */
  85011. udp_bind(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_CLIENT);
  85012. 80227be: 4b10 ldr r3, [pc, #64] @ (8022800 <dhcp_inc_pcb_refcount+0x8c>)
  85013. 80227c0: 681b ldr r3, [r3, #0]
  85014. 80227c2: 2244 movs r2, #68 @ 0x44
  85015. 80227c4: 4912 ldr r1, [pc, #72] @ (8022810 <dhcp_inc_pcb_refcount+0x9c>)
  85016. 80227c6: 4618 mov r0, r3
  85017. 80227c8: f7ff fdf2 bl 80223b0 <udp_bind>
  85018. udp_connect(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_SERVER);
  85019. 80227cc: 4b0c ldr r3, [pc, #48] @ (8022800 <dhcp_inc_pcb_refcount+0x8c>)
  85020. 80227ce: 681b ldr r3, [r3, #0]
  85021. 80227d0: 2243 movs r2, #67 @ 0x43
  85022. 80227d2: 490f ldr r1, [pc, #60] @ (8022810 <dhcp_inc_pcb_refcount+0x9c>)
  85023. 80227d4: 4618 mov r0, r3
  85024. 80227d6: f7ff fe75 bl 80224c4 <udp_connect>
  85025. udp_recv(dhcp_pcb, dhcp_recv, NULL);
  85026. 80227da: 4b09 ldr r3, [pc, #36] @ (8022800 <dhcp_inc_pcb_refcount+0x8c>)
  85027. 80227dc: 681b ldr r3, [r3, #0]
  85028. 80227de: 2200 movs r2, #0
  85029. 80227e0: 490c ldr r1, [pc, #48] @ (8022814 <dhcp_inc_pcb_refcount+0xa0>)
  85030. 80227e2: 4618 mov r0, r3
  85031. 80227e4: f7ff ff08 bl 80225f8 <udp_recv>
  85032. }
  85033. dhcp_pcb_refcount++;
  85034. 80227e8: 4b04 ldr r3, [pc, #16] @ (80227fc <dhcp_inc_pcb_refcount+0x88>)
  85035. 80227ea: 781b ldrb r3, [r3, #0]
  85036. 80227ec: 3301 adds r3, #1
  85037. 80227ee: b2da uxtb r2, r3
  85038. 80227f0: 4b02 ldr r3, [pc, #8] @ (80227fc <dhcp_inc_pcb_refcount+0x88>)
  85039. 80227f2: 701a strb r2, [r3, #0]
  85040. return ERR_OK;
  85041. 80227f4: 2300 movs r3, #0
  85042. }
  85043. 80227f6: 4618 mov r0, r3
  85044. 80227f8: bd80 pop {r7, pc}
  85045. 80227fa: bf00 nop
  85046. 80227fc: 2402aff8 .word 0x2402aff8
  85047. 8022800: 2402aff4 .word 0x2402aff4
  85048. 8022804: 08030d38 .word 0x08030d38
  85049. 8022808: 08030d70 .word 0x08030d70
  85050. 802280c: 08030d98 .word 0x08030d98
  85051. 8022810: 08031b58 .word 0x08031b58
  85052. 8022814: 080240e5 .word 0x080240e5
  85053. 08022818 <dhcp_dec_pcb_refcount>:
  85054. /** Free DHCP PCB if the last netif stops using it */
  85055. static void
  85056. dhcp_dec_pcb_refcount(void)
  85057. {
  85058. 8022818: b580 push {r7, lr}
  85059. 802281a: af00 add r7, sp, #0
  85060. LWIP_ASSERT("dhcp_pcb_refcount(): refcount error", (dhcp_pcb_refcount > 0));
  85061. 802281c: 4b0e ldr r3, [pc, #56] @ (8022858 <dhcp_dec_pcb_refcount+0x40>)
  85062. 802281e: 781b ldrb r3, [r3, #0]
  85063. 8022820: 2b00 cmp r3, #0
  85064. 8022822: d105 bne.n 8022830 <dhcp_dec_pcb_refcount+0x18>
  85065. 8022824: 4b0d ldr r3, [pc, #52] @ (802285c <dhcp_dec_pcb_refcount+0x44>)
  85066. 8022826: 22ff movs r2, #255 @ 0xff
  85067. 8022828: 490d ldr r1, [pc, #52] @ (8022860 <dhcp_dec_pcb_refcount+0x48>)
  85068. 802282a: 480e ldr r0, [pc, #56] @ (8022864 <dhcp_dec_pcb_refcount+0x4c>)
  85069. 802282c: f007 ff96 bl 802a75c <iprintf>
  85070. dhcp_pcb_refcount--;
  85071. 8022830: 4b09 ldr r3, [pc, #36] @ (8022858 <dhcp_dec_pcb_refcount+0x40>)
  85072. 8022832: 781b ldrb r3, [r3, #0]
  85073. 8022834: 3b01 subs r3, #1
  85074. 8022836: b2da uxtb r2, r3
  85075. 8022838: 4b07 ldr r3, [pc, #28] @ (8022858 <dhcp_dec_pcb_refcount+0x40>)
  85076. 802283a: 701a strb r2, [r3, #0]
  85077. if (dhcp_pcb_refcount == 0) {
  85078. 802283c: 4b06 ldr r3, [pc, #24] @ (8022858 <dhcp_dec_pcb_refcount+0x40>)
  85079. 802283e: 781b ldrb r3, [r3, #0]
  85080. 8022840: 2b00 cmp r3, #0
  85081. 8022842: d107 bne.n 8022854 <dhcp_dec_pcb_refcount+0x3c>
  85082. udp_remove(dhcp_pcb);
  85083. 8022844: 4b08 ldr r3, [pc, #32] @ (8022868 <dhcp_dec_pcb_refcount+0x50>)
  85084. 8022846: 681b ldr r3, [r3, #0]
  85085. 8022848: 4618 mov r0, r3
  85086. 802284a: f7ff fef7 bl 802263c <udp_remove>
  85087. dhcp_pcb = NULL;
  85088. 802284e: 4b06 ldr r3, [pc, #24] @ (8022868 <dhcp_dec_pcb_refcount+0x50>)
  85089. 8022850: 2200 movs r2, #0
  85090. 8022852: 601a str r2, [r3, #0]
  85091. }
  85092. }
  85093. 8022854: bf00 nop
  85094. 8022856: bd80 pop {r7, pc}
  85095. 8022858: 2402aff8 .word 0x2402aff8
  85096. 802285c: 08030d38 .word 0x08030d38
  85097. 8022860: 08030dc0 .word 0x08030dc0
  85098. 8022864: 08030d98 .word 0x08030d98
  85099. 8022868: 2402aff4 .word 0x2402aff4
  85100. 0802286c <dhcp_handle_nak>:
  85101. *
  85102. * @param netif the netif under DHCP control
  85103. */
  85104. static void
  85105. dhcp_handle_nak(struct netif *netif)
  85106. {
  85107. 802286c: b580 push {r7, lr}
  85108. 802286e: b084 sub sp, #16
  85109. 8022870: af00 add r7, sp, #0
  85110. 8022872: 6078 str r0, [r7, #4]
  85111. struct dhcp *dhcp = netif_dhcp_data(netif);
  85112. 8022874: 687b ldr r3, [r7, #4]
  85113. 8022876: 6a5b ldr r3, [r3, #36] @ 0x24
  85114. 8022878: 60fb str r3, [r7, #12]
  85115. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_handle_nak(netif=%p) %c%c%"U16_F"\n",
  85116. (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num));
  85117. /* Change to a defined state - set this before assigning the address
  85118. to ensure the callback can use dhcp_supplied_address() */
  85119. dhcp_set_state(dhcp, DHCP_STATE_BACKING_OFF);
  85120. 802287a: 210c movs r1, #12
  85121. 802287c: 68f8 ldr r0, [r7, #12]
  85122. 802287e: f001 f862 bl 8023946 <dhcp_set_state>
  85123. /* remove IP address from interface (must no longer be used, as per RFC2131) */
  85124. netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4);
  85125. 8022882: 4b06 ldr r3, [pc, #24] @ (802289c <dhcp_handle_nak+0x30>)
  85126. 8022884: 4a05 ldr r2, [pc, #20] @ (802289c <dhcp_handle_nak+0x30>)
  85127. 8022886: 4905 ldr r1, [pc, #20] @ (802289c <dhcp_handle_nak+0x30>)
  85128. 8022888: 6878 ldr r0, [r7, #4]
  85129. 802288a: f7f7 ffa5 bl 801a7d8 <netif_set_addr>
  85130. /* We can immediately restart discovery */
  85131. dhcp_discover(netif);
  85132. 802288e: 6878 ldr r0, [r7, #4]
  85133. 8022890: f000 fc4c bl 802312c <dhcp_discover>
  85134. }
  85135. 8022894: bf00 nop
  85136. 8022896: 3710 adds r7, #16
  85137. 8022898: 46bd mov sp, r7
  85138. 802289a: bd80 pop {r7, pc}
  85139. 802289c: 08031b58 .word 0x08031b58
  85140. 080228a0 <dhcp_check>:
  85141. *
  85142. * @param netif the netif under DHCP control
  85143. */
  85144. static void
  85145. dhcp_check(struct netif *netif)
  85146. {
  85147. 80228a0: b580 push {r7, lr}
  85148. 80228a2: b084 sub sp, #16
  85149. 80228a4: af00 add r7, sp, #0
  85150. 80228a6: 6078 str r0, [r7, #4]
  85151. struct dhcp *dhcp = netif_dhcp_data(netif);
  85152. 80228a8: 687b ldr r3, [r7, #4]
  85153. 80228aa: 6a5b ldr r3, [r3, #36] @ 0x24
  85154. 80228ac: 60fb str r3, [r7, #12]
  85155. err_t result;
  85156. u16_t msecs;
  85157. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_check(netif=%p) %c%c\n", (void *)netif, (s16_t)netif->name[0],
  85158. (s16_t)netif->name[1]));
  85159. dhcp_set_state(dhcp, DHCP_STATE_CHECKING);
  85160. 80228ae: 2108 movs r1, #8
  85161. 80228b0: 68f8 ldr r0, [r7, #12]
  85162. 80228b2: f001 f848 bl 8023946 <dhcp_set_state>
  85163. /* create an ARP query for the offered IP address, expecting that no host
  85164. responds, as the IP address should not be in use. */
  85165. result = etharp_query(netif, &dhcp->offered_ip_addr, NULL);
  85166. 80228b6: 68fb ldr r3, [r7, #12]
  85167. 80228b8: 331c adds r3, #28
  85168. 80228ba: 2200 movs r2, #0
  85169. 80228bc: 4619 mov r1, r3
  85170. 80228be: 6878 ldr r0, [r7, #4]
  85171. 80228c0: f002 fb88 bl 8024fd4 <etharp_query>
  85172. 80228c4: 4603 mov r3, r0
  85173. 80228c6: 72fb strb r3, [r7, #11]
  85174. if (result != ERR_OK) {
  85175. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("dhcp_check: could not perform ARP query\n"));
  85176. }
  85177. if (dhcp->tries < 255) {
  85178. 80228c8: 68fb ldr r3, [r7, #12]
  85179. 80228ca: 799b ldrb r3, [r3, #6]
  85180. 80228cc: 2bff cmp r3, #255 @ 0xff
  85181. 80228ce: d005 beq.n 80228dc <dhcp_check+0x3c>
  85182. dhcp->tries++;
  85183. 80228d0: 68fb ldr r3, [r7, #12]
  85184. 80228d2: 799b ldrb r3, [r3, #6]
  85185. 80228d4: 3301 adds r3, #1
  85186. 80228d6: b2da uxtb r2, r3
  85187. 80228d8: 68fb ldr r3, [r7, #12]
  85188. 80228da: 719a strb r2, [r3, #6]
  85189. }
  85190. msecs = 500;
  85191. 80228dc: f44f 73fa mov.w r3, #500 @ 0x1f4
  85192. 80228e0: 813b strh r3, [r7, #8]
  85193. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  85194. 80228e2: 893b ldrh r3, [r7, #8]
  85195. 80228e4: f203 13f3 addw r3, r3, #499 @ 0x1f3
  85196. 80228e8: 4a06 ldr r2, [pc, #24] @ (8022904 <dhcp_check+0x64>)
  85197. 80228ea: fb82 1203 smull r1, r2, r2, r3
  85198. 80228ee: 1152 asrs r2, r2, #5
  85199. 80228f0: 17db asrs r3, r3, #31
  85200. 80228f2: 1ad3 subs r3, r2, r3
  85201. 80228f4: b29a uxth r2, r3
  85202. 80228f6: 68fb ldr r3, [r7, #12]
  85203. 80228f8: 811a strh r2, [r3, #8]
  85204. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_check(): set request timeout %"U16_F" msecs\n", msecs));
  85205. }
  85206. 80228fa: bf00 nop
  85207. 80228fc: 3710 adds r7, #16
  85208. 80228fe: 46bd mov sp, r7
  85209. 8022900: bd80 pop {r7, pc}
  85210. 8022902: bf00 nop
  85211. 8022904: 10624dd3 .word 0x10624dd3
  85212. 08022908 <dhcp_handle_offer>:
  85213. *
  85214. * @param netif the netif under DHCP control
  85215. */
  85216. static void
  85217. dhcp_handle_offer(struct netif *netif, struct dhcp_msg *msg_in)
  85218. {
  85219. 8022908: b580 push {r7, lr}
  85220. 802290a: b084 sub sp, #16
  85221. 802290c: af00 add r7, sp, #0
  85222. 802290e: 6078 str r0, [r7, #4]
  85223. 8022910: 6039 str r1, [r7, #0]
  85224. struct dhcp *dhcp = netif_dhcp_data(netif);
  85225. 8022912: 687b ldr r3, [r7, #4]
  85226. 8022914: 6a5b ldr r3, [r3, #36] @ 0x24
  85227. 8022916: 60fb str r3, [r7, #12]
  85228. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_handle_offer(netif=%p) %c%c%"U16_F"\n",
  85229. (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num));
  85230. /* obtain the server address */
  85231. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_SERVER_ID)) {
  85232. 8022918: 4b0c ldr r3, [pc, #48] @ (802294c <dhcp_handle_offer+0x44>)
  85233. 802291a: 789b ldrb r3, [r3, #2]
  85234. 802291c: 2b00 cmp r3, #0
  85235. 802291e: d011 beq.n 8022944 <dhcp_handle_offer+0x3c>
  85236. dhcp->request_timeout = 0; /* stop timer */
  85237. 8022920: 68fb ldr r3, [r7, #12]
  85238. 8022922: 2200 movs r2, #0
  85239. 8022924: 811a strh r2, [r3, #8]
  85240. ip_addr_set_ip4_u32(&dhcp->server_ip_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SERVER_ID)));
  85241. 8022926: 4b0a ldr r3, [pc, #40] @ (8022950 <dhcp_handle_offer+0x48>)
  85242. 8022928: 689b ldr r3, [r3, #8]
  85243. 802292a: 4618 mov r0, r3
  85244. 802292c: f7f6 ffd1 bl 80198d2 <lwip_htonl>
  85245. 8022930: 4602 mov r2, r0
  85246. 8022932: 68fb ldr r3, [r7, #12]
  85247. 8022934: 619a str r2, [r3, #24]
  85248. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_handle_offer(): server 0x%08"X32_F"\n",
  85249. ip4_addr_get_u32(ip_2_ip4(&dhcp->server_ip_addr))));
  85250. /* remember offered address */
  85251. ip4_addr_copy(dhcp->offered_ip_addr, msg_in->yiaddr);
  85252. 8022936: 683b ldr r3, [r7, #0]
  85253. 8022938: 691a ldr r2, [r3, #16]
  85254. 802293a: 68fb ldr r3, [r7, #12]
  85255. 802293c: 61da str r2, [r3, #28]
  85256. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_handle_offer(): offer for 0x%08"X32_F"\n",
  85257. ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  85258. dhcp_select(netif);
  85259. 802293e: 6878 ldr r0, [r7, #4]
  85260. 8022940: f000 f808 bl 8022954 <dhcp_select>
  85261. } else {
  85262. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  85263. ("dhcp_handle_offer(netif=%p) did not get server ID!\n", (void *)netif));
  85264. }
  85265. }
  85266. 8022944: bf00 nop
  85267. 8022946: 3710 adds r7, #16
  85268. 8022948: 46bd mov sp, r7
  85269. 802294a: bd80 pop {r7, pc}
  85270. 802294c: 2402afec .word 0x2402afec
  85271. 8022950: 2402afcc .word 0x2402afcc
  85272. 08022954 <dhcp_select>:
  85273. * @param netif the netif under DHCP control
  85274. * @return lwIP specific error (see error.h)
  85275. */
  85276. static err_t
  85277. dhcp_select(struct netif *netif)
  85278. {
  85279. 8022954: b5b0 push {r4, r5, r7, lr}
  85280. 8022956: b08a sub sp, #40 @ 0x28
  85281. 8022958: af02 add r7, sp, #8
  85282. 802295a: 6078 str r0, [r7, #4]
  85283. u16_t msecs;
  85284. u8_t i;
  85285. struct pbuf *p_out;
  85286. u16_t options_out_len;
  85287. LWIP_ERROR("dhcp_select: netif != NULL", (netif != NULL), return ERR_ARG;);
  85288. 802295c: 687b ldr r3, [r7, #4]
  85289. 802295e: 2b00 cmp r3, #0
  85290. 8022960: d109 bne.n 8022976 <dhcp_select+0x22>
  85291. 8022962: 4b71 ldr r3, [pc, #452] @ (8022b28 <dhcp_select+0x1d4>)
  85292. 8022964: f240 1277 movw r2, #375 @ 0x177
  85293. 8022968: 4970 ldr r1, [pc, #448] @ (8022b2c <dhcp_select+0x1d8>)
  85294. 802296a: 4871 ldr r0, [pc, #452] @ (8022b30 <dhcp_select+0x1dc>)
  85295. 802296c: f007 fef6 bl 802a75c <iprintf>
  85296. 8022970: f06f 030f mvn.w r3, #15
  85297. 8022974: e0d3 b.n 8022b1e <dhcp_select+0x1ca>
  85298. dhcp = netif_dhcp_data(netif);
  85299. 8022976: 687b ldr r3, [r7, #4]
  85300. 8022978: 6a5b ldr r3, [r3, #36] @ 0x24
  85301. 802297a: 61bb str r3, [r7, #24]
  85302. LWIP_ERROR("dhcp_select: dhcp != NULL", (dhcp != NULL), return ERR_VAL;);
  85303. 802297c: 69bb ldr r3, [r7, #24]
  85304. 802297e: 2b00 cmp r3, #0
  85305. 8022980: d109 bne.n 8022996 <dhcp_select+0x42>
  85306. 8022982: 4b69 ldr r3, [pc, #420] @ (8022b28 <dhcp_select+0x1d4>)
  85307. 8022984: f240 1279 movw r2, #377 @ 0x179
  85308. 8022988: 496a ldr r1, [pc, #424] @ (8022b34 <dhcp_select+0x1e0>)
  85309. 802298a: 4869 ldr r0, [pc, #420] @ (8022b30 <dhcp_select+0x1dc>)
  85310. 802298c: f007 fee6 bl 802a75c <iprintf>
  85311. 8022990: f06f 0305 mvn.w r3, #5
  85312. 8022994: e0c3 b.n 8022b1e <dhcp_select+0x1ca>
  85313. 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));
  85314. dhcp_set_state(dhcp, DHCP_STATE_REQUESTING);
  85315. 8022996: 2101 movs r1, #1
  85316. 8022998: 69b8 ldr r0, [r7, #24]
  85317. 802299a: f000 ffd4 bl 8023946 <dhcp_set_state>
  85318. /* create and initialize the DHCP message header */
  85319. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  85320. 802299e: f107 030c add.w r3, r7, #12
  85321. 80229a2: 2203 movs r2, #3
  85322. 80229a4: 69b9 ldr r1, [r7, #24]
  85323. 80229a6: 6878 ldr r0, [r7, #4]
  85324. 80229a8: f001 fc66 bl 8024278 <dhcp_create_msg>
  85325. 80229ac: 6178 str r0, [r7, #20]
  85326. if (p_out != NULL) {
  85327. 80229ae: 697b ldr r3, [r7, #20]
  85328. 80229b0: 2b00 cmp r3, #0
  85329. 80229b2: f000 8085 beq.w 8022ac0 <dhcp_select+0x16c>
  85330. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  85331. 80229b6: 697b ldr r3, [r7, #20]
  85332. 80229b8: 685b ldr r3, [r3, #4]
  85333. 80229ba: 613b str r3, [r7, #16]
  85334. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  85335. 80229bc: 89b8 ldrh r0, [r7, #12]
  85336. 80229be: 693b ldr r3, [r7, #16]
  85337. 80229c0: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85338. 80229c4: 2302 movs r3, #2
  85339. 80229c6: 2239 movs r2, #57 @ 0x39
  85340. 80229c8: f000 ffd8 bl 802397c <dhcp_option>
  85341. 80229cc: 4603 mov r3, r0
  85342. 80229ce: 81bb strh r3, [r7, #12]
  85343. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  85344. 80229d0: 89b8 ldrh r0, [r7, #12]
  85345. 80229d2: 693b ldr r3, [r7, #16]
  85346. 80229d4: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85347. 80229d8: 687b ldr r3, [r7, #4]
  85348. 80229da: 8d1b ldrh r3, [r3, #40] @ 0x28
  85349. 80229dc: 461a mov r2, r3
  85350. 80229de: f001 f827 bl 8023a30 <dhcp_option_short>
  85351. 80229e2: 4603 mov r3, r0
  85352. 80229e4: 81bb strh r3, [r7, #12]
  85353. /* MUST request the offered IP address */
  85354. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4);
  85355. 80229e6: 89b8 ldrh r0, [r7, #12]
  85356. 80229e8: 693b ldr r3, [r7, #16]
  85357. 80229ea: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85358. 80229ee: 2304 movs r3, #4
  85359. 80229f0: 2232 movs r2, #50 @ 0x32
  85360. 80229f2: f000 ffc3 bl 802397c <dhcp_option>
  85361. 80229f6: 4603 mov r3, r0
  85362. 80229f8: 81bb strh r3, [r7, #12]
  85363. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  85364. 80229fa: 89bc ldrh r4, [r7, #12]
  85365. 80229fc: 693b ldr r3, [r7, #16]
  85366. 80229fe: f103 05f0 add.w r5, r3, #240 @ 0xf0
  85367. 8022a02: 69bb ldr r3, [r7, #24]
  85368. 8022a04: 69db ldr r3, [r3, #28]
  85369. 8022a06: 4618 mov r0, r3
  85370. 8022a08: f7f6 ff63 bl 80198d2 <lwip_htonl>
  85371. 8022a0c: 4603 mov r3, r0
  85372. 8022a0e: 461a mov r2, r3
  85373. 8022a10: 4629 mov r1, r5
  85374. 8022a12: 4620 mov r0, r4
  85375. 8022a14: f001 f83e bl 8023a94 <dhcp_option_long>
  85376. 8022a18: 4603 mov r3, r0
  85377. 8022a1a: 81bb strh r3, [r7, #12]
  85378. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_SERVER_ID, 4);
  85379. 8022a1c: 89b8 ldrh r0, [r7, #12]
  85380. 8022a1e: 693b ldr r3, [r7, #16]
  85381. 8022a20: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85382. 8022a24: 2304 movs r3, #4
  85383. 8022a26: 2236 movs r2, #54 @ 0x36
  85384. 8022a28: f000 ffa8 bl 802397c <dhcp_option>
  85385. 8022a2c: 4603 mov r3, r0
  85386. 8022a2e: 81bb strh r3, [r7, #12]
  85387. 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))));
  85388. 8022a30: 89bc ldrh r4, [r7, #12]
  85389. 8022a32: 693b ldr r3, [r7, #16]
  85390. 8022a34: f103 05f0 add.w r5, r3, #240 @ 0xf0
  85391. 8022a38: 69bb ldr r3, [r7, #24]
  85392. 8022a3a: 699b ldr r3, [r3, #24]
  85393. 8022a3c: 4618 mov r0, r3
  85394. 8022a3e: f7f6 ff48 bl 80198d2 <lwip_htonl>
  85395. 8022a42: 4603 mov r3, r0
  85396. 8022a44: 461a mov r2, r3
  85397. 8022a46: 4629 mov r1, r5
  85398. 8022a48: 4620 mov r0, r4
  85399. 8022a4a: f001 f823 bl 8023a94 <dhcp_option_long>
  85400. 8022a4e: 4603 mov r3, r0
  85401. 8022a50: 81bb strh r3, [r7, #12]
  85402. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  85403. 8022a52: 89b8 ldrh r0, [r7, #12]
  85404. 8022a54: 693b ldr r3, [r7, #16]
  85405. 8022a56: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85406. 8022a5a: 2303 movs r3, #3
  85407. 8022a5c: 2237 movs r2, #55 @ 0x37
  85408. 8022a5e: f000 ff8d bl 802397c <dhcp_option>
  85409. 8022a62: 4603 mov r3, r0
  85410. 8022a64: 81bb strh r3, [r7, #12]
  85411. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  85412. 8022a66: 2300 movs r3, #0
  85413. 8022a68: 77fb strb r3, [r7, #31]
  85414. 8022a6a: e00e b.n 8022a8a <dhcp_select+0x136>
  85415. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  85416. 8022a6c: 89b8 ldrh r0, [r7, #12]
  85417. 8022a6e: 693b ldr r3, [r7, #16]
  85418. 8022a70: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85419. 8022a74: 7ffb ldrb r3, [r7, #31]
  85420. 8022a76: 4a30 ldr r2, [pc, #192] @ (8022b38 <dhcp_select+0x1e4>)
  85421. 8022a78: 5cd3 ldrb r3, [r2, r3]
  85422. 8022a7a: 461a mov r2, r3
  85423. 8022a7c: f000 ffb2 bl 80239e4 <dhcp_option_byte>
  85424. 8022a80: 4603 mov r3, r0
  85425. 8022a82: 81bb strh r3, [r7, #12]
  85426. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  85427. 8022a84: 7ffb ldrb r3, [r7, #31]
  85428. 8022a86: 3301 adds r3, #1
  85429. 8022a88: 77fb strb r3, [r7, #31]
  85430. 8022a8a: 7ffb ldrb r3, [r7, #31]
  85431. 8022a8c: 2b02 cmp r3, #2
  85432. 8022a8e: d9ed bls.n 8022a6c <dhcp_select+0x118>
  85433. #if LWIP_NETIF_HOSTNAME
  85434. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  85435. #endif /* LWIP_NETIF_HOSTNAME */
  85436. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REQUESTING, msg_out, DHCP_REQUEST, &options_out_len);
  85437. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  85438. 8022a90: 89b8 ldrh r0, [r7, #12]
  85439. 8022a92: 693b ldr r3, [r7, #16]
  85440. 8022a94: 33f0 adds r3, #240 @ 0xf0
  85441. 8022a96: 697a ldr r2, [r7, #20]
  85442. 8022a98: 4619 mov r1, r3
  85443. 8022a9a: f001 fcc3 bl 8024424 <dhcp_option_trailer>
  85444. /* send broadcast to any DHCP server */
  85445. result = udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY);
  85446. 8022a9e: 4b27 ldr r3, [pc, #156] @ (8022b3c <dhcp_select+0x1e8>)
  85447. 8022aa0: 6818 ldr r0, [r3, #0]
  85448. 8022aa2: 4b27 ldr r3, [pc, #156] @ (8022b40 <dhcp_select+0x1ec>)
  85449. 8022aa4: 9301 str r3, [sp, #4]
  85450. 8022aa6: 687b ldr r3, [r7, #4]
  85451. 8022aa8: 9300 str r3, [sp, #0]
  85452. 8022aaa: 2343 movs r3, #67 @ 0x43
  85453. 8022aac: 4a25 ldr r2, [pc, #148] @ (8022b44 <dhcp_select+0x1f0>)
  85454. 8022aae: 6979 ldr r1, [r7, #20]
  85455. 8022ab0: f7ff fb96 bl 80221e0 <udp_sendto_if_src>
  85456. 8022ab4: 4603 mov r3, r0
  85457. 8022ab6: 77bb strb r3, [r7, #30]
  85458. pbuf_free(p_out);
  85459. 8022ab8: 6978 ldr r0, [r7, #20]
  85460. 8022aba: f7f8 fbd7 bl 801b26c <pbuf_free>
  85461. 8022abe: e001 b.n 8022ac4 <dhcp_select+0x170>
  85462. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_select: REQUESTING\n"));
  85463. } else {
  85464. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("dhcp_select: could not allocate DHCP request\n"));
  85465. result = ERR_MEM;
  85466. 8022ac0: 23ff movs r3, #255 @ 0xff
  85467. 8022ac2: 77bb strb r3, [r7, #30]
  85468. }
  85469. if (dhcp->tries < 255) {
  85470. 8022ac4: 69bb ldr r3, [r7, #24]
  85471. 8022ac6: 799b ldrb r3, [r3, #6]
  85472. 8022ac8: 2bff cmp r3, #255 @ 0xff
  85473. 8022aca: d005 beq.n 8022ad8 <dhcp_select+0x184>
  85474. dhcp->tries++;
  85475. 8022acc: 69bb ldr r3, [r7, #24]
  85476. 8022ace: 799b ldrb r3, [r3, #6]
  85477. 8022ad0: 3301 adds r3, #1
  85478. 8022ad2: b2da uxtb r2, r3
  85479. 8022ad4: 69bb ldr r3, [r7, #24]
  85480. 8022ad6: 719a strb r2, [r3, #6]
  85481. }
  85482. msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000);
  85483. 8022ad8: 69bb ldr r3, [r7, #24]
  85484. 8022ada: 799b ldrb r3, [r3, #6]
  85485. 8022adc: 2b05 cmp r3, #5
  85486. 8022ade: d80d bhi.n 8022afc <dhcp_select+0x1a8>
  85487. 8022ae0: 69bb ldr r3, [r7, #24]
  85488. 8022ae2: 799b ldrb r3, [r3, #6]
  85489. 8022ae4: 461a mov r2, r3
  85490. 8022ae6: 2301 movs r3, #1
  85491. 8022ae8: 4093 lsls r3, r2
  85492. 8022aea: b29b uxth r3, r3
  85493. 8022aec: 461a mov r2, r3
  85494. 8022aee: 0152 lsls r2, r2, #5
  85495. 8022af0: 1ad2 subs r2, r2, r3
  85496. 8022af2: 0092 lsls r2, r2, #2
  85497. 8022af4: 4413 add r3, r2
  85498. 8022af6: 00db lsls r3, r3, #3
  85499. 8022af8: b29b uxth r3, r3
  85500. 8022afa: e001 b.n 8022b00 <dhcp_select+0x1ac>
  85501. 8022afc: f64e 2360 movw r3, #60000 @ 0xea60
  85502. 8022b00: 81fb strh r3, [r7, #14]
  85503. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  85504. 8022b02: 89fb ldrh r3, [r7, #14]
  85505. 8022b04: f203 13f3 addw r3, r3, #499 @ 0x1f3
  85506. 8022b08: 4a0f ldr r2, [pc, #60] @ (8022b48 <dhcp_select+0x1f4>)
  85507. 8022b0a: fb82 1203 smull r1, r2, r2, r3
  85508. 8022b0e: 1152 asrs r2, r2, #5
  85509. 8022b10: 17db asrs r3, r3, #31
  85510. 8022b12: 1ad3 subs r3, r2, r3
  85511. 8022b14: b29a uxth r2, r3
  85512. 8022b16: 69bb ldr r3, [r7, #24]
  85513. 8022b18: 811a strh r2, [r3, #8]
  85514. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_select(): set request timeout %"U16_F" msecs\n", msecs));
  85515. return result;
  85516. 8022b1a: f997 301e ldrsb.w r3, [r7, #30]
  85517. }
  85518. 8022b1e: 4618 mov r0, r3
  85519. 8022b20: 3720 adds r7, #32
  85520. 8022b22: 46bd mov sp, r7
  85521. 8022b24: bdb0 pop {r4, r5, r7, pc}
  85522. 8022b26: bf00 nop
  85523. 8022b28: 08030d38 .word 0x08030d38
  85524. 8022b2c: 08030de4 .word 0x08030de4
  85525. 8022b30: 08030d98 .word 0x08030d98
  85526. 8022b34: 08030e00 .word 0x08030e00
  85527. 8022b38: 24000058 .word 0x24000058
  85528. 8022b3c: 2402aff4 .word 0x2402aff4
  85529. 8022b40: 08031b58 .word 0x08031b58
  85530. 8022b44: 08031b5c .word 0x08031b5c
  85531. 8022b48: 10624dd3 .word 0x10624dd3
  85532. 08022b4c <dhcp_coarse_tmr>:
  85533. * The DHCP timer that checks for lease renewal/rebind timeouts.
  85534. * Must be called once a minute (see @ref DHCP_COARSE_TIMER_SECS).
  85535. */
  85536. void
  85537. dhcp_coarse_tmr(void)
  85538. {
  85539. 8022b4c: b580 push {r7, lr}
  85540. 8022b4e: b082 sub sp, #8
  85541. 8022b50: af00 add r7, sp, #0
  85542. struct netif *netif;
  85543. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_coarse_tmr()\n"));
  85544. /* iterate through all network interfaces */
  85545. NETIF_FOREACH(netif) {
  85546. 8022b52: 4b27 ldr r3, [pc, #156] @ (8022bf0 <dhcp_coarse_tmr+0xa4>)
  85547. 8022b54: 681b ldr r3, [r3, #0]
  85548. 8022b56: 607b str r3, [r7, #4]
  85549. 8022b58: e042 b.n 8022be0 <dhcp_coarse_tmr+0x94>
  85550. /* only act on DHCP configured interfaces */
  85551. struct dhcp *dhcp = netif_dhcp_data(netif);
  85552. 8022b5a: 687b ldr r3, [r7, #4]
  85553. 8022b5c: 6a5b ldr r3, [r3, #36] @ 0x24
  85554. 8022b5e: 603b str r3, [r7, #0]
  85555. if ((dhcp != NULL) && (dhcp->state != DHCP_STATE_OFF)) {
  85556. 8022b60: 683b ldr r3, [r7, #0]
  85557. 8022b62: 2b00 cmp r3, #0
  85558. 8022b64: d039 beq.n 8022bda <dhcp_coarse_tmr+0x8e>
  85559. 8022b66: 683b ldr r3, [r7, #0]
  85560. 8022b68: 795b ldrb r3, [r3, #5]
  85561. 8022b6a: 2b00 cmp r3, #0
  85562. 8022b6c: d035 beq.n 8022bda <dhcp_coarse_tmr+0x8e>
  85563. /* compare lease time to expire timeout */
  85564. if (dhcp->t0_timeout && (++dhcp->lease_used == dhcp->t0_timeout)) {
  85565. 8022b6e: 683b ldr r3, [r7, #0]
  85566. 8022b70: 8a9b ldrh r3, [r3, #20]
  85567. 8022b72: 2b00 cmp r3, #0
  85568. 8022b74: d012 beq.n 8022b9c <dhcp_coarse_tmr+0x50>
  85569. 8022b76: 683b ldr r3, [r7, #0]
  85570. 8022b78: 8a5b ldrh r3, [r3, #18]
  85571. 8022b7a: 3301 adds r3, #1
  85572. 8022b7c: b29a uxth r2, r3
  85573. 8022b7e: 683b ldr r3, [r7, #0]
  85574. 8022b80: 825a strh r2, [r3, #18]
  85575. 8022b82: 683b ldr r3, [r7, #0]
  85576. 8022b84: 8a5a ldrh r2, [r3, #18]
  85577. 8022b86: 683b ldr r3, [r7, #0]
  85578. 8022b88: 8a9b ldrh r3, [r3, #20]
  85579. 8022b8a: 429a cmp r2, r3
  85580. 8022b8c: d106 bne.n 8022b9c <dhcp_coarse_tmr+0x50>
  85581. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t0 timeout\n"));
  85582. /* this clients' lease time has expired */
  85583. dhcp_release_and_stop(netif);
  85584. 8022b8e: 6878 ldr r0, [r7, #4]
  85585. 8022b90: f000 fe32 bl 80237f8 <dhcp_release_and_stop>
  85586. dhcp_start(netif);
  85587. 8022b94: 6878 ldr r0, [r7, #4]
  85588. 8022b96: f000 f96b bl 8022e70 <dhcp_start>
  85589. 8022b9a: e01e b.n 8022bda <dhcp_coarse_tmr+0x8e>
  85590. /* timer is active (non zero), and triggers (zeroes) now? */
  85591. } else if (dhcp->t2_rebind_time && (dhcp->t2_rebind_time-- == 1)) {
  85592. 8022b9c: 683b ldr r3, [r7, #0]
  85593. 8022b9e: 8a1b ldrh r3, [r3, #16]
  85594. 8022ba0: 2b00 cmp r3, #0
  85595. 8022ba2: d00b beq.n 8022bbc <dhcp_coarse_tmr+0x70>
  85596. 8022ba4: 683b ldr r3, [r7, #0]
  85597. 8022ba6: 8a1b ldrh r3, [r3, #16]
  85598. 8022ba8: 1e5a subs r2, r3, #1
  85599. 8022baa: b291 uxth r1, r2
  85600. 8022bac: 683a ldr r2, [r7, #0]
  85601. 8022bae: 8211 strh r1, [r2, #16]
  85602. 8022bb0: 2b01 cmp r3, #1
  85603. 8022bb2: d103 bne.n 8022bbc <dhcp_coarse_tmr+0x70>
  85604. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t2 timeout\n"));
  85605. /* this clients' rebind timeout triggered */
  85606. dhcp_t2_timeout(netif);
  85607. 8022bb4: 6878 ldr r0, [r7, #4]
  85608. 8022bb6: f000 f8c7 bl 8022d48 <dhcp_t2_timeout>
  85609. 8022bba: e00e b.n 8022bda <dhcp_coarse_tmr+0x8e>
  85610. /* timer is active (non zero), and triggers (zeroes) now */
  85611. } else if (dhcp->t1_renew_time && (dhcp->t1_renew_time-- == 1)) {
  85612. 8022bbc: 683b ldr r3, [r7, #0]
  85613. 8022bbe: 89db ldrh r3, [r3, #14]
  85614. 8022bc0: 2b00 cmp r3, #0
  85615. 8022bc2: d00a beq.n 8022bda <dhcp_coarse_tmr+0x8e>
  85616. 8022bc4: 683b ldr r3, [r7, #0]
  85617. 8022bc6: 89db ldrh r3, [r3, #14]
  85618. 8022bc8: 1e5a subs r2, r3, #1
  85619. 8022bca: b291 uxth r1, r2
  85620. 8022bcc: 683a ldr r2, [r7, #0]
  85621. 8022bce: 81d1 strh r1, [r2, #14]
  85622. 8022bd0: 2b01 cmp r3, #1
  85623. 8022bd2: d102 bne.n 8022bda <dhcp_coarse_tmr+0x8e>
  85624. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t1 timeout\n"));
  85625. /* this clients' renewal timeout triggered */
  85626. dhcp_t1_timeout(netif);
  85627. 8022bd4: 6878 ldr r0, [r7, #4]
  85628. 8022bd6: f000 f888 bl 8022cea <dhcp_t1_timeout>
  85629. NETIF_FOREACH(netif) {
  85630. 8022bda: 687b ldr r3, [r7, #4]
  85631. 8022bdc: 681b ldr r3, [r3, #0]
  85632. 8022bde: 607b str r3, [r7, #4]
  85633. 8022be0: 687b ldr r3, [r7, #4]
  85634. 8022be2: 2b00 cmp r3, #0
  85635. 8022be4: d1b9 bne.n 8022b5a <dhcp_coarse_tmr+0xe>
  85636. }
  85637. }
  85638. }
  85639. }
  85640. 8022be6: bf00 nop
  85641. 8022be8: bf00 nop
  85642. 8022bea: 3708 adds r7, #8
  85643. 8022bec: 46bd mov sp, r7
  85644. 8022bee: bd80 pop {r7, pc}
  85645. 8022bf0: 2402af5c .word 0x2402af5c
  85646. 08022bf4 <dhcp_fine_tmr>:
  85647. * A DHCP server is expected to respond within a short period of time.
  85648. * This timer checks whether an outstanding DHCP request is timed out.
  85649. */
  85650. void
  85651. dhcp_fine_tmr(void)
  85652. {
  85653. 8022bf4: b580 push {r7, lr}
  85654. 8022bf6: b082 sub sp, #8
  85655. 8022bf8: af00 add r7, sp, #0
  85656. struct netif *netif;
  85657. /* loop through netif's */
  85658. NETIF_FOREACH(netif) {
  85659. 8022bfa: 4b16 ldr r3, [pc, #88] @ (8022c54 <dhcp_fine_tmr+0x60>)
  85660. 8022bfc: 681b ldr r3, [r3, #0]
  85661. 8022bfe: 607b str r3, [r7, #4]
  85662. 8022c00: e020 b.n 8022c44 <dhcp_fine_tmr+0x50>
  85663. struct dhcp *dhcp = netif_dhcp_data(netif);
  85664. 8022c02: 687b ldr r3, [r7, #4]
  85665. 8022c04: 6a5b ldr r3, [r3, #36] @ 0x24
  85666. 8022c06: 603b str r3, [r7, #0]
  85667. /* only act on DHCP configured interfaces */
  85668. if (dhcp != NULL) {
  85669. 8022c08: 683b ldr r3, [r7, #0]
  85670. 8022c0a: 2b00 cmp r3, #0
  85671. 8022c0c: d017 beq.n 8022c3e <dhcp_fine_tmr+0x4a>
  85672. /* timer is active (non zero), and is about to trigger now */
  85673. if (dhcp->request_timeout > 1) {
  85674. 8022c0e: 683b ldr r3, [r7, #0]
  85675. 8022c10: 891b ldrh r3, [r3, #8]
  85676. 8022c12: 2b01 cmp r3, #1
  85677. 8022c14: d906 bls.n 8022c24 <dhcp_fine_tmr+0x30>
  85678. dhcp->request_timeout--;
  85679. 8022c16: 683b ldr r3, [r7, #0]
  85680. 8022c18: 891b ldrh r3, [r3, #8]
  85681. 8022c1a: 3b01 subs r3, #1
  85682. 8022c1c: b29a uxth r2, r3
  85683. 8022c1e: 683b ldr r3, [r7, #0]
  85684. 8022c20: 811a strh r2, [r3, #8]
  85685. 8022c22: e00c b.n 8022c3e <dhcp_fine_tmr+0x4a>
  85686. } else if (dhcp->request_timeout == 1) {
  85687. 8022c24: 683b ldr r3, [r7, #0]
  85688. 8022c26: 891b ldrh r3, [r3, #8]
  85689. 8022c28: 2b01 cmp r3, #1
  85690. 8022c2a: d108 bne.n 8022c3e <dhcp_fine_tmr+0x4a>
  85691. dhcp->request_timeout--;
  85692. 8022c2c: 683b ldr r3, [r7, #0]
  85693. 8022c2e: 891b ldrh r3, [r3, #8]
  85694. 8022c30: 3b01 subs r3, #1
  85695. 8022c32: b29a uxth r2, r3
  85696. 8022c34: 683b ldr r3, [r7, #0]
  85697. 8022c36: 811a strh r2, [r3, #8]
  85698. /* { dhcp->request_timeout == 0 } */
  85699. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_fine_tmr(): request timeout\n"));
  85700. /* this client's request timeout triggered */
  85701. dhcp_timeout(netif);
  85702. 8022c38: 6878 ldr r0, [r7, #4]
  85703. 8022c3a: f000 f80d bl 8022c58 <dhcp_timeout>
  85704. NETIF_FOREACH(netif) {
  85705. 8022c3e: 687b ldr r3, [r7, #4]
  85706. 8022c40: 681b ldr r3, [r3, #0]
  85707. 8022c42: 607b str r3, [r7, #4]
  85708. 8022c44: 687b ldr r3, [r7, #4]
  85709. 8022c46: 2b00 cmp r3, #0
  85710. 8022c48: d1db bne.n 8022c02 <dhcp_fine_tmr+0xe>
  85711. }
  85712. }
  85713. }
  85714. }
  85715. 8022c4a: bf00 nop
  85716. 8022c4c: bf00 nop
  85717. 8022c4e: 3708 adds r7, #8
  85718. 8022c50: 46bd mov sp, r7
  85719. 8022c52: bd80 pop {r7, pc}
  85720. 8022c54: 2402af5c .word 0x2402af5c
  85721. 08022c58 <dhcp_timeout>:
  85722. *
  85723. * @param netif the netif under DHCP control
  85724. */
  85725. static void
  85726. dhcp_timeout(struct netif *netif)
  85727. {
  85728. 8022c58: b580 push {r7, lr}
  85729. 8022c5a: b084 sub sp, #16
  85730. 8022c5c: af00 add r7, sp, #0
  85731. 8022c5e: 6078 str r0, [r7, #4]
  85732. struct dhcp *dhcp = netif_dhcp_data(netif);
  85733. 8022c60: 687b ldr r3, [r7, #4]
  85734. 8022c62: 6a5b ldr r3, [r3, #36] @ 0x24
  85735. 8022c64: 60fb str r3, [r7, #12]
  85736. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_timeout()\n"));
  85737. /* back-off period has passed, or server selection timed out */
  85738. if ((dhcp->state == DHCP_STATE_BACKING_OFF) || (dhcp->state == DHCP_STATE_SELECTING)) {
  85739. 8022c66: 68fb ldr r3, [r7, #12]
  85740. 8022c68: 795b ldrb r3, [r3, #5]
  85741. 8022c6a: 2b0c cmp r3, #12
  85742. 8022c6c: d003 beq.n 8022c76 <dhcp_timeout+0x1e>
  85743. 8022c6e: 68fb ldr r3, [r7, #12]
  85744. 8022c70: 795b ldrb r3, [r3, #5]
  85745. 8022c72: 2b06 cmp r3, #6
  85746. 8022c74: d103 bne.n 8022c7e <dhcp_timeout+0x26>
  85747. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_timeout(): restarting discovery\n"));
  85748. dhcp_discover(netif);
  85749. 8022c76: 6878 ldr r0, [r7, #4]
  85750. 8022c78: f000 fa58 bl 802312c <dhcp_discover>
  85751. dhcp_reboot(netif);
  85752. } else {
  85753. dhcp_discover(netif);
  85754. }
  85755. }
  85756. }
  85757. 8022c7c: e031 b.n 8022ce2 <dhcp_timeout+0x8a>
  85758. } else if (dhcp->state == DHCP_STATE_REQUESTING) {
  85759. 8022c7e: 68fb ldr r3, [r7, #12]
  85760. 8022c80: 795b ldrb r3, [r3, #5]
  85761. 8022c82: 2b01 cmp r3, #1
  85762. 8022c84: d10e bne.n 8022ca4 <dhcp_timeout+0x4c>
  85763. if (dhcp->tries <= 5) {
  85764. 8022c86: 68fb ldr r3, [r7, #12]
  85765. 8022c88: 799b ldrb r3, [r3, #6]
  85766. 8022c8a: 2b05 cmp r3, #5
  85767. 8022c8c: d803 bhi.n 8022c96 <dhcp_timeout+0x3e>
  85768. dhcp_select(netif);
  85769. 8022c8e: 6878 ldr r0, [r7, #4]
  85770. 8022c90: f7ff fe60 bl 8022954 <dhcp_select>
  85771. }
  85772. 8022c94: e025 b.n 8022ce2 <dhcp_timeout+0x8a>
  85773. dhcp_release_and_stop(netif);
  85774. 8022c96: 6878 ldr r0, [r7, #4]
  85775. 8022c98: f000 fdae bl 80237f8 <dhcp_release_and_stop>
  85776. dhcp_start(netif);
  85777. 8022c9c: 6878 ldr r0, [r7, #4]
  85778. 8022c9e: f000 f8e7 bl 8022e70 <dhcp_start>
  85779. }
  85780. 8022ca2: e01e b.n 8022ce2 <dhcp_timeout+0x8a>
  85781. } else if (dhcp->state == DHCP_STATE_CHECKING) {
  85782. 8022ca4: 68fb ldr r3, [r7, #12]
  85783. 8022ca6: 795b ldrb r3, [r3, #5]
  85784. 8022ca8: 2b08 cmp r3, #8
  85785. 8022caa: d10b bne.n 8022cc4 <dhcp_timeout+0x6c>
  85786. if (dhcp->tries <= 1) {
  85787. 8022cac: 68fb ldr r3, [r7, #12]
  85788. 8022cae: 799b ldrb r3, [r3, #6]
  85789. 8022cb0: 2b01 cmp r3, #1
  85790. 8022cb2: d803 bhi.n 8022cbc <dhcp_timeout+0x64>
  85791. dhcp_check(netif);
  85792. 8022cb4: 6878 ldr r0, [r7, #4]
  85793. 8022cb6: f7ff fdf3 bl 80228a0 <dhcp_check>
  85794. }
  85795. 8022cba: e012 b.n 8022ce2 <dhcp_timeout+0x8a>
  85796. dhcp_bind(netif);
  85797. 8022cbc: 6878 ldr r0, [r7, #4]
  85798. 8022cbe: f000 fad7 bl 8023270 <dhcp_bind>
  85799. }
  85800. 8022cc2: e00e b.n 8022ce2 <dhcp_timeout+0x8a>
  85801. } else if (dhcp->state == DHCP_STATE_REBOOTING) {
  85802. 8022cc4: 68fb ldr r3, [r7, #12]
  85803. 8022cc6: 795b ldrb r3, [r3, #5]
  85804. 8022cc8: 2b03 cmp r3, #3
  85805. 8022cca: d10a bne.n 8022ce2 <dhcp_timeout+0x8a>
  85806. if (dhcp->tries < REBOOT_TRIES) {
  85807. 8022ccc: 68fb ldr r3, [r7, #12]
  85808. 8022cce: 799b ldrb r3, [r3, #6]
  85809. 8022cd0: 2b01 cmp r3, #1
  85810. 8022cd2: d803 bhi.n 8022cdc <dhcp_timeout+0x84>
  85811. dhcp_reboot(netif);
  85812. 8022cd4: 6878 ldr r0, [r7, #4]
  85813. 8022cd6: f000 fcdb bl 8023690 <dhcp_reboot>
  85814. }
  85815. 8022cda: e002 b.n 8022ce2 <dhcp_timeout+0x8a>
  85816. dhcp_discover(netif);
  85817. 8022cdc: 6878 ldr r0, [r7, #4]
  85818. 8022cde: f000 fa25 bl 802312c <dhcp_discover>
  85819. }
  85820. 8022ce2: bf00 nop
  85821. 8022ce4: 3710 adds r7, #16
  85822. 8022ce6: 46bd mov sp, r7
  85823. 8022ce8: bd80 pop {r7, pc}
  85824. 08022cea <dhcp_t1_timeout>:
  85825. *
  85826. * @param netif the netif under DHCP control
  85827. */
  85828. static void
  85829. dhcp_t1_timeout(struct netif *netif)
  85830. {
  85831. 8022cea: b580 push {r7, lr}
  85832. 8022cec: b084 sub sp, #16
  85833. 8022cee: af00 add r7, sp, #0
  85834. 8022cf0: 6078 str r0, [r7, #4]
  85835. struct dhcp *dhcp = netif_dhcp_data(netif);
  85836. 8022cf2: 687b ldr r3, [r7, #4]
  85837. 8022cf4: 6a5b ldr r3, [r3, #36] @ 0x24
  85838. 8022cf6: 60fb str r3, [r7, #12]
  85839. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_t1_timeout()\n"));
  85840. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  85841. 8022cf8: 68fb ldr r3, [r7, #12]
  85842. 8022cfa: 795b ldrb r3, [r3, #5]
  85843. 8022cfc: 2b01 cmp r3, #1
  85844. 8022cfe: d007 beq.n 8022d10 <dhcp_t1_timeout+0x26>
  85845. 8022d00: 68fb ldr r3, [r7, #12]
  85846. 8022d02: 795b ldrb r3, [r3, #5]
  85847. 8022d04: 2b0a cmp r3, #10
  85848. 8022d06: d003 beq.n 8022d10 <dhcp_t1_timeout+0x26>
  85849. (dhcp->state == DHCP_STATE_RENEWING)) {
  85850. 8022d08: 68fb ldr r3, [r7, #12]
  85851. 8022d0a: 795b ldrb r3, [r3, #5]
  85852. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  85853. 8022d0c: 2b05 cmp r3, #5
  85854. 8022d0e: d117 bne.n 8022d40 <dhcp_t1_timeout+0x56>
  85855. * eventually time-out if renew tries fail. */
  85856. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE,
  85857. ("dhcp_t1_timeout(): must renew\n"));
  85858. /* This slightly different to RFC2131: DHCPREQUEST will be sent from state
  85859. DHCP_STATE_RENEWING, not DHCP_STATE_BOUND */
  85860. dhcp_renew(netif);
  85861. 8022d10: 6878 ldr r0, [r7, #4]
  85862. 8022d12: f000 fb87 bl 8023424 <dhcp_renew>
  85863. /* Calculate next timeout */
  85864. if (((dhcp->t2_timeout - dhcp->lease_used) / 2) >= ((60 + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS)) {
  85865. 8022d16: 68fb ldr r3, [r7, #12]
  85866. 8022d18: 899b ldrh r3, [r3, #12]
  85867. 8022d1a: 461a mov r2, r3
  85868. 8022d1c: 68fb ldr r3, [r7, #12]
  85869. 8022d1e: 8a5b ldrh r3, [r3, #18]
  85870. 8022d20: 1ad3 subs r3, r2, r3
  85871. 8022d22: 2b01 cmp r3, #1
  85872. 8022d24: dd0c ble.n 8022d40 <dhcp_t1_timeout+0x56>
  85873. dhcp->t1_renew_time = (u16_t)((dhcp->t2_timeout - dhcp->lease_used) / 2);
  85874. 8022d26: 68fb ldr r3, [r7, #12]
  85875. 8022d28: 899b ldrh r3, [r3, #12]
  85876. 8022d2a: 461a mov r2, r3
  85877. 8022d2c: 68fb ldr r3, [r7, #12]
  85878. 8022d2e: 8a5b ldrh r3, [r3, #18]
  85879. 8022d30: 1ad3 subs r3, r2, r3
  85880. 8022d32: 2b00 cmp r3, #0
  85881. 8022d34: da00 bge.n 8022d38 <dhcp_t1_timeout+0x4e>
  85882. 8022d36: 3301 adds r3, #1
  85883. 8022d38: 105b asrs r3, r3, #1
  85884. 8022d3a: b29a uxth r2, r3
  85885. 8022d3c: 68fb ldr r3, [r7, #12]
  85886. 8022d3e: 81da strh r2, [r3, #14]
  85887. }
  85888. }
  85889. }
  85890. 8022d40: bf00 nop
  85891. 8022d42: 3710 adds r7, #16
  85892. 8022d44: 46bd mov sp, r7
  85893. 8022d46: bd80 pop {r7, pc}
  85894. 08022d48 <dhcp_t2_timeout>:
  85895. *
  85896. * @param netif the netif under DHCP control
  85897. */
  85898. static void
  85899. dhcp_t2_timeout(struct netif *netif)
  85900. {
  85901. 8022d48: b580 push {r7, lr}
  85902. 8022d4a: b084 sub sp, #16
  85903. 8022d4c: af00 add r7, sp, #0
  85904. 8022d4e: 6078 str r0, [r7, #4]
  85905. struct dhcp *dhcp = netif_dhcp_data(netif);
  85906. 8022d50: 687b ldr r3, [r7, #4]
  85907. 8022d52: 6a5b ldr r3, [r3, #36] @ 0x24
  85908. 8022d54: 60fb str r3, [r7, #12]
  85909. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_t2_timeout()\n"));
  85910. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  85911. 8022d56: 68fb ldr r3, [r7, #12]
  85912. 8022d58: 795b ldrb r3, [r3, #5]
  85913. 8022d5a: 2b01 cmp r3, #1
  85914. 8022d5c: d00b beq.n 8022d76 <dhcp_t2_timeout+0x2e>
  85915. 8022d5e: 68fb ldr r3, [r7, #12]
  85916. 8022d60: 795b ldrb r3, [r3, #5]
  85917. 8022d62: 2b0a cmp r3, #10
  85918. 8022d64: d007 beq.n 8022d76 <dhcp_t2_timeout+0x2e>
  85919. (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) {
  85920. 8022d66: 68fb ldr r3, [r7, #12]
  85921. 8022d68: 795b ldrb r3, [r3, #5]
  85922. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  85923. 8022d6a: 2b05 cmp r3, #5
  85924. 8022d6c: d003 beq.n 8022d76 <dhcp_t2_timeout+0x2e>
  85925. (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) {
  85926. 8022d6e: 68fb ldr r3, [r7, #12]
  85927. 8022d70: 795b ldrb r3, [r3, #5]
  85928. 8022d72: 2b04 cmp r3, #4
  85929. 8022d74: d117 bne.n 8022da6 <dhcp_t2_timeout+0x5e>
  85930. /* just retry to rebind */
  85931. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE,
  85932. ("dhcp_t2_timeout(): must rebind\n"));
  85933. /* This slightly different to RFC2131: DHCPREQUEST will be sent from state
  85934. DHCP_STATE_REBINDING, not DHCP_STATE_BOUND */
  85935. dhcp_rebind(netif);
  85936. 8022d76: 6878 ldr r0, [r7, #4]
  85937. 8022d78: f000 fbf0 bl 802355c <dhcp_rebind>
  85938. /* Calculate next timeout */
  85939. if (((dhcp->t0_timeout - dhcp->lease_used) / 2) >= ((60 + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS)) {
  85940. 8022d7c: 68fb ldr r3, [r7, #12]
  85941. 8022d7e: 8a9b ldrh r3, [r3, #20]
  85942. 8022d80: 461a mov r2, r3
  85943. 8022d82: 68fb ldr r3, [r7, #12]
  85944. 8022d84: 8a5b ldrh r3, [r3, #18]
  85945. 8022d86: 1ad3 subs r3, r2, r3
  85946. 8022d88: 2b01 cmp r3, #1
  85947. 8022d8a: dd0c ble.n 8022da6 <dhcp_t2_timeout+0x5e>
  85948. dhcp->t2_rebind_time = (u16_t)((dhcp->t0_timeout - dhcp->lease_used) / 2);
  85949. 8022d8c: 68fb ldr r3, [r7, #12]
  85950. 8022d8e: 8a9b ldrh r3, [r3, #20]
  85951. 8022d90: 461a mov r2, r3
  85952. 8022d92: 68fb ldr r3, [r7, #12]
  85953. 8022d94: 8a5b ldrh r3, [r3, #18]
  85954. 8022d96: 1ad3 subs r3, r2, r3
  85955. 8022d98: 2b00 cmp r3, #0
  85956. 8022d9a: da00 bge.n 8022d9e <dhcp_t2_timeout+0x56>
  85957. 8022d9c: 3301 adds r3, #1
  85958. 8022d9e: 105b asrs r3, r3, #1
  85959. 8022da0: b29a uxth r2, r3
  85960. 8022da2: 68fb ldr r3, [r7, #12]
  85961. 8022da4: 821a strh r2, [r3, #16]
  85962. }
  85963. }
  85964. }
  85965. 8022da6: bf00 nop
  85966. 8022da8: 3710 adds r7, #16
  85967. 8022daa: 46bd mov sp, r7
  85968. 8022dac: bd80 pop {r7, pc}
  85969. ...
  85970. 08022db0 <dhcp_handle_ack>:
  85971. *
  85972. * @param netif the netif under DHCP control
  85973. */
  85974. static void
  85975. dhcp_handle_ack(struct netif *netif, struct dhcp_msg *msg_in)
  85976. {
  85977. 8022db0: b580 push {r7, lr}
  85978. 8022db2: b084 sub sp, #16
  85979. 8022db4: af00 add r7, sp, #0
  85980. 8022db6: 6078 str r0, [r7, #4]
  85981. 8022db8: 6039 str r1, [r7, #0]
  85982. struct dhcp *dhcp = netif_dhcp_data(netif);
  85983. 8022dba: 687b ldr r3, [r7, #4]
  85984. 8022dbc: 6a5b ldr r3, [r3, #36] @ 0x24
  85985. 8022dbe: 60fb str r3, [r7, #12]
  85986. #if LWIP_DHCP_GET_NTP_SRV
  85987. ip4_addr_t ntp_server_addrs[LWIP_DHCP_MAX_NTP_SERVERS];
  85988. #endif
  85989. /* clear options we might not get from the ACK */
  85990. ip4_addr_set_zero(&dhcp->offered_sn_mask);
  85991. 8022dc0: 68fb ldr r3, [r7, #12]
  85992. 8022dc2: 2200 movs r2, #0
  85993. 8022dc4: 621a str r2, [r3, #32]
  85994. ip4_addr_set_zero(&dhcp->offered_gw_addr);
  85995. 8022dc6: 68fb ldr r3, [r7, #12]
  85996. 8022dc8: 2200 movs r2, #0
  85997. 8022dca: 625a str r2, [r3, #36] @ 0x24
  85998. #if LWIP_DHCP_BOOTP_FILE
  85999. ip4_addr_set_zero(&dhcp->offered_si_addr);
  86000. #endif /* LWIP_DHCP_BOOTP_FILE */
  86001. /* lease time given? */
  86002. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_LEASE_TIME)) {
  86003. 8022dcc: 4b26 ldr r3, [pc, #152] @ (8022e68 <dhcp_handle_ack+0xb8>)
  86004. 8022dce: 78db ldrb r3, [r3, #3]
  86005. 8022dd0: 2b00 cmp r3, #0
  86006. 8022dd2: d003 beq.n 8022ddc <dhcp_handle_ack+0x2c>
  86007. /* remember offered lease time */
  86008. dhcp->offered_t0_lease = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_LEASE_TIME);
  86009. 8022dd4: 4b25 ldr r3, [pc, #148] @ (8022e6c <dhcp_handle_ack+0xbc>)
  86010. 8022dd6: 68da ldr r2, [r3, #12]
  86011. 8022dd8: 68fb ldr r3, [r7, #12]
  86012. 8022dda: 629a str r2, [r3, #40] @ 0x28
  86013. }
  86014. /* renewal period given? */
  86015. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_T1)) {
  86016. 8022ddc: 4b22 ldr r3, [pc, #136] @ (8022e68 <dhcp_handle_ack+0xb8>)
  86017. 8022dde: 791b ldrb r3, [r3, #4]
  86018. 8022de0: 2b00 cmp r3, #0
  86019. 8022de2: d004 beq.n 8022dee <dhcp_handle_ack+0x3e>
  86020. /* remember given renewal period */
  86021. dhcp->offered_t1_renew = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T1);
  86022. 8022de4: 4b21 ldr r3, [pc, #132] @ (8022e6c <dhcp_handle_ack+0xbc>)
  86023. 8022de6: 691a ldr r2, [r3, #16]
  86024. 8022de8: 68fb ldr r3, [r7, #12]
  86025. 8022dea: 62da str r2, [r3, #44] @ 0x2c
  86026. 8022dec: e004 b.n 8022df8 <dhcp_handle_ack+0x48>
  86027. } else {
  86028. /* calculate safe periods for renewal */
  86029. dhcp->offered_t1_renew = dhcp->offered_t0_lease / 2;
  86030. 8022dee: 68fb ldr r3, [r7, #12]
  86031. 8022df0: 6a9b ldr r3, [r3, #40] @ 0x28
  86032. 8022df2: 085a lsrs r2, r3, #1
  86033. 8022df4: 68fb ldr r3, [r7, #12]
  86034. 8022df6: 62da str r2, [r3, #44] @ 0x2c
  86035. }
  86036. /* renewal period given? */
  86037. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_T2)) {
  86038. 8022df8: 4b1b ldr r3, [pc, #108] @ (8022e68 <dhcp_handle_ack+0xb8>)
  86039. 8022dfa: 795b ldrb r3, [r3, #5]
  86040. 8022dfc: 2b00 cmp r3, #0
  86041. 8022dfe: d004 beq.n 8022e0a <dhcp_handle_ack+0x5a>
  86042. /* remember given rebind period */
  86043. dhcp->offered_t2_rebind = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T2);
  86044. 8022e00: 4b1a ldr r3, [pc, #104] @ (8022e6c <dhcp_handle_ack+0xbc>)
  86045. 8022e02: 695a ldr r2, [r3, #20]
  86046. 8022e04: 68fb ldr r3, [r7, #12]
  86047. 8022e06: 631a str r2, [r3, #48] @ 0x30
  86048. 8022e08: e007 b.n 8022e1a <dhcp_handle_ack+0x6a>
  86049. } else {
  86050. /* calculate safe periods for rebinding (offered_t0_lease * 0.875 -> 87.5%)*/
  86051. dhcp->offered_t2_rebind = (dhcp->offered_t0_lease * 7U) / 8U;
  86052. 8022e0a: 68fb ldr r3, [r7, #12]
  86053. 8022e0c: 6a9a ldr r2, [r3, #40] @ 0x28
  86054. 8022e0e: 4613 mov r3, r2
  86055. 8022e10: 00db lsls r3, r3, #3
  86056. 8022e12: 1a9b subs r3, r3, r2
  86057. 8022e14: 08da lsrs r2, r3, #3
  86058. 8022e16: 68fb ldr r3, [r7, #12]
  86059. 8022e18: 631a str r2, [r3, #48] @ 0x30
  86060. }
  86061. /* (y)our internet address */
  86062. ip4_addr_copy(dhcp->offered_ip_addr, msg_in->yiaddr);
  86063. 8022e1a: 683b ldr r3, [r7, #0]
  86064. 8022e1c: 691a ldr r2, [r3, #16]
  86065. 8022e1e: 68fb ldr r3, [r7, #12]
  86066. 8022e20: 61da str r2, [r3, #28]
  86067. boot file name copied in dhcp_parse_reply if not overloaded */
  86068. ip4_addr_copy(dhcp->offered_si_addr, msg_in->siaddr);
  86069. #endif /* LWIP_DHCP_BOOTP_FILE */
  86070. /* subnet mask given? */
  86071. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_SUBNET_MASK)) {
  86072. 8022e22: 4b11 ldr r3, [pc, #68] @ (8022e68 <dhcp_handle_ack+0xb8>)
  86073. 8022e24: 799b ldrb r3, [r3, #6]
  86074. 8022e26: 2b00 cmp r3, #0
  86075. 8022e28: d00b beq.n 8022e42 <dhcp_handle_ack+0x92>
  86076. /* remember given subnet mask */
  86077. ip4_addr_set_u32(&dhcp->offered_sn_mask, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SUBNET_MASK)));
  86078. 8022e2a: 4b10 ldr r3, [pc, #64] @ (8022e6c <dhcp_handle_ack+0xbc>)
  86079. 8022e2c: 699b ldr r3, [r3, #24]
  86080. 8022e2e: 4618 mov r0, r3
  86081. 8022e30: f7f6 fd4f bl 80198d2 <lwip_htonl>
  86082. 8022e34: 4602 mov r2, r0
  86083. 8022e36: 68fb ldr r3, [r7, #12]
  86084. 8022e38: 621a str r2, [r3, #32]
  86085. dhcp->subnet_mask_given = 1;
  86086. 8022e3a: 68fb ldr r3, [r7, #12]
  86087. 8022e3c: 2201 movs r2, #1
  86088. 8022e3e: 71da strb r2, [r3, #7]
  86089. 8022e40: e002 b.n 8022e48 <dhcp_handle_ack+0x98>
  86090. } else {
  86091. dhcp->subnet_mask_given = 0;
  86092. 8022e42: 68fb ldr r3, [r7, #12]
  86093. 8022e44: 2200 movs r2, #0
  86094. 8022e46: 71da strb r2, [r3, #7]
  86095. }
  86096. /* gateway router */
  86097. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_ROUTER)) {
  86098. 8022e48: 4b07 ldr r3, [pc, #28] @ (8022e68 <dhcp_handle_ack+0xb8>)
  86099. 8022e4a: 79db ldrb r3, [r3, #7]
  86100. 8022e4c: 2b00 cmp r3, #0
  86101. 8022e4e: d007 beq.n 8022e60 <dhcp_handle_ack+0xb0>
  86102. ip4_addr_set_u32(&dhcp->offered_gw_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_ROUTER)));
  86103. 8022e50: 4b06 ldr r3, [pc, #24] @ (8022e6c <dhcp_handle_ack+0xbc>)
  86104. 8022e52: 69db ldr r3, [r3, #28]
  86105. 8022e54: 4618 mov r0, r3
  86106. 8022e56: f7f6 fd3c bl 80198d2 <lwip_htonl>
  86107. 8022e5a: 4602 mov r2, r0
  86108. 8022e5c: 68fb ldr r3, [r7, #12]
  86109. 8022e5e: 625a str r2, [r3, #36] @ 0x24
  86110. ip_addr_t dns_addr;
  86111. ip_addr_set_ip4_u32_val(dns_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_DNS_SERVER + n)));
  86112. dns_setserver(n, &dns_addr);
  86113. }
  86114. #endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */
  86115. }
  86116. 8022e60: bf00 nop
  86117. 8022e62: 3710 adds r7, #16
  86118. 8022e64: 46bd mov sp, r7
  86119. 8022e66: bd80 pop {r7, pc}
  86120. 8022e68: 2402afec .word 0x2402afec
  86121. 8022e6c: 2402afcc .word 0x2402afcc
  86122. 08022e70 <dhcp_start>:
  86123. * - ERR_OK - No error
  86124. * - ERR_MEM - Out of memory
  86125. */
  86126. err_t
  86127. dhcp_start(struct netif *netif)
  86128. {
  86129. 8022e70: b580 push {r7, lr}
  86130. 8022e72: b084 sub sp, #16
  86131. 8022e74: af00 add r7, sp, #0
  86132. 8022e76: 6078 str r0, [r7, #4]
  86133. struct dhcp *dhcp;
  86134. err_t result;
  86135. LWIP_ASSERT_CORE_LOCKED();
  86136. 8022e78: f7ee f842 bl 8010f00 <sys_check_core_locking>
  86137. LWIP_ERROR("netif != NULL", (netif != NULL), return ERR_ARG;);
  86138. 8022e7c: 687b ldr r3, [r7, #4]
  86139. 8022e7e: 2b00 cmp r3, #0
  86140. 8022e80: d109 bne.n 8022e96 <dhcp_start+0x26>
  86141. 8022e82: 4b37 ldr r3, [pc, #220] @ (8022f60 <dhcp_start+0xf0>)
  86142. 8022e84: f240 22e7 movw r2, #743 @ 0x2e7
  86143. 8022e88: 4936 ldr r1, [pc, #216] @ (8022f64 <dhcp_start+0xf4>)
  86144. 8022e8a: 4837 ldr r0, [pc, #220] @ (8022f68 <dhcp_start+0xf8>)
  86145. 8022e8c: f007 fc66 bl 802a75c <iprintf>
  86146. 8022e90: f06f 030f mvn.w r3, #15
  86147. 8022e94: e060 b.n 8022f58 <dhcp_start+0xe8>
  86148. LWIP_ERROR("netif is not up, old style port?", netif_is_up(netif), return ERR_ARG;);
  86149. 8022e96: 687b ldr r3, [r7, #4]
  86150. 8022e98: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  86151. 8022e9c: f003 0301 and.w r3, r3, #1
  86152. 8022ea0: 2b00 cmp r3, #0
  86153. 8022ea2: d109 bne.n 8022eb8 <dhcp_start+0x48>
  86154. 8022ea4: 4b2e ldr r3, [pc, #184] @ (8022f60 <dhcp_start+0xf0>)
  86155. 8022ea6: f44f 723a mov.w r2, #744 @ 0x2e8
  86156. 8022eaa: 4930 ldr r1, [pc, #192] @ (8022f6c <dhcp_start+0xfc>)
  86157. 8022eac: 482e ldr r0, [pc, #184] @ (8022f68 <dhcp_start+0xf8>)
  86158. 8022eae: f007 fc55 bl 802a75c <iprintf>
  86159. 8022eb2: f06f 030f mvn.w r3, #15
  86160. 8022eb6: e04f b.n 8022f58 <dhcp_start+0xe8>
  86161. dhcp = netif_dhcp_data(netif);
  86162. 8022eb8: 687b ldr r3, [r7, #4]
  86163. 8022eba: 6a5b ldr r3, [r3, #36] @ 0x24
  86164. 8022ebc: 60fb str r3, [r7, #12]
  86165. 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));
  86166. /* check MTU of the netif */
  86167. if (netif->mtu < DHCP_MAX_MSG_LEN_MIN_REQUIRED) {
  86168. 8022ebe: 687b ldr r3, [r7, #4]
  86169. 8022ec0: 8d1b ldrh r3, [r3, #40] @ 0x28
  86170. 8022ec2: f5b3 7f10 cmp.w r3, #576 @ 0x240
  86171. 8022ec6: d202 bcs.n 8022ece <dhcp_start+0x5e>
  86172. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): Cannot use this netif with DHCP: MTU is too small\n"));
  86173. return ERR_MEM;
  86174. 8022ec8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  86175. 8022ecc: e044 b.n 8022f58 <dhcp_start+0xe8>
  86176. }
  86177. /* no DHCP client attached yet? */
  86178. if (dhcp == NULL) {
  86179. 8022ece: 68fb ldr r3, [r7, #12]
  86180. 8022ed0: 2b00 cmp r3, #0
  86181. 8022ed2: d10d bne.n 8022ef0 <dhcp_start+0x80>
  86182. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): mallocing new DHCP client\n"));
  86183. dhcp = (struct dhcp *)mem_malloc(sizeof(struct dhcp));
  86184. 8022ed4: 2034 movs r0, #52 @ 0x34
  86185. 8022ed6: f7f7 f8c9 bl 801a06c <mem_malloc>
  86186. 8022eda: 60f8 str r0, [r7, #12]
  86187. if (dhcp == NULL) {
  86188. 8022edc: 68fb ldr r3, [r7, #12]
  86189. 8022ede: 2b00 cmp r3, #0
  86190. 8022ee0: d102 bne.n 8022ee8 <dhcp_start+0x78>
  86191. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): could not allocate dhcp\n"));
  86192. return ERR_MEM;
  86193. 8022ee2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  86194. 8022ee6: e037 b.n 8022f58 <dhcp_start+0xe8>
  86195. }
  86196. /* store this dhcp client in the netif */
  86197. netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, dhcp);
  86198. 8022ee8: 687b ldr r3, [r7, #4]
  86199. 8022eea: 68fa ldr r2, [r7, #12]
  86200. 8022eec: 625a str r2, [r3, #36] @ 0x24
  86201. 8022eee: e005 b.n 8022efc <dhcp_start+0x8c>
  86202. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): allocated dhcp"));
  86203. /* already has DHCP client attached */
  86204. } else {
  86205. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_start(): restarting DHCP configuration\n"));
  86206. if (dhcp->pcb_allocated != 0) {
  86207. 8022ef0: 68fb ldr r3, [r7, #12]
  86208. 8022ef2: 791b ldrb r3, [r3, #4]
  86209. 8022ef4: 2b00 cmp r3, #0
  86210. 8022ef6: d001 beq.n 8022efc <dhcp_start+0x8c>
  86211. dhcp_dec_pcb_refcount(); /* free DHCP PCB if not needed any more */
  86212. 8022ef8: f7ff fc8e bl 8022818 <dhcp_dec_pcb_refcount>
  86213. }
  86214. /* dhcp is cleared below, no need to reset flag*/
  86215. }
  86216. /* clear data structure */
  86217. memset(dhcp, 0, sizeof(struct dhcp));
  86218. 8022efc: 2234 movs r2, #52 @ 0x34
  86219. 8022efe: 2100 movs r1, #0
  86220. 8022f00: 68f8 ldr r0, [r7, #12]
  86221. 8022f02: f007 fdbd bl 802aa80 <memset>
  86222. /* dhcp_set_state(&dhcp, DHCP_STATE_OFF); */
  86223. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): starting DHCP configuration\n"));
  86224. if (dhcp_inc_pcb_refcount() != ERR_OK) { /* ensure DHCP PCB is allocated */
  86225. 8022f06: f7ff fc35 bl 8022774 <dhcp_inc_pcb_refcount>
  86226. 8022f0a: 4603 mov r3, r0
  86227. 8022f0c: 2b00 cmp r3, #0
  86228. 8022f0e: d002 beq.n 8022f16 <dhcp_start+0xa6>
  86229. return ERR_MEM;
  86230. 8022f10: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  86231. 8022f14: e020 b.n 8022f58 <dhcp_start+0xe8>
  86232. }
  86233. dhcp->pcb_allocated = 1;
  86234. 8022f16: 68fb ldr r3, [r7, #12]
  86235. 8022f18: 2201 movs r2, #1
  86236. 8022f1a: 711a strb r2, [r3, #4]
  86237. if (!netif_is_link_up(netif)) {
  86238. 8022f1c: 687b ldr r3, [r7, #4]
  86239. 8022f1e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  86240. 8022f22: f003 0304 and.w r3, r3, #4
  86241. 8022f26: 2b00 cmp r3, #0
  86242. 8022f28: d105 bne.n 8022f36 <dhcp_start+0xc6>
  86243. /* set state INIT and wait for dhcp_network_changed() to call dhcp_discover() */
  86244. dhcp_set_state(dhcp, DHCP_STATE_INIT);
  86245. 8022f2a: 2102 movs r1, #2
  86246. 8022f2c: 68f8 ldr r0, [r7, #12]
  86247. 8022f2e: f000 fd0a bl 8023946 <dhcp_set_state>
  86248. return ERR_OK;
  86249. 8022f32: 2300 movs r3, #0
  86250. 8022f34: e010 b.n 8022f58 <dhcp_start+0xe8>
  86251. }
  86252. /* (re)start the DHCP negotiation */
  86253. result = dhcp_discover(netif);
  86254. 8022f36: 6878 ldr r0, [r7, #4]
  86255. 8022f38: f000 f8f8 bl 802312c <dhcp_discover>
  86256. 8022f3c: 4603 mov r3, r0
  86257. 8022f3e: 72fb strb r3, [r7, #11]
  86258. if (result != ERR_OK) {
  86259. 8022f40: f997 300b ldrsb.w r3, [r7, #11]
  86260. 8022f44: 2b00 cmp r3, #0
  86261. 8022f46: d005 beq.n 8022f54 <dhcp_start+0xe4>
  86262. /* free resources allocated above */
  86263. dhcp_release_and_stop(netif);
  86264. 8022f48: 6878 ldr r0, [r7, #4]
  86265. 8022f4a: f000 fc55 bl 80237f8 <dhcp_release_and_stop>
  86266. return ERR_MEM;
  86267. 8022f4e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  86268. 8022f52: e001 b.n 8022f58 <dhcp_start+0xe8>
  86269. }
  86270. return result;
  86271. 8022f54: f997 300b ldrsb.w r3, [r7, #11]
  86272. }
  86273. 8022f58: 4618 mov r0, r3
  86274. 8022f5a: 3710 adds r7, #16
  86275. 8022f5c: 46bd mov sp, r7
  86276. 8022f5e: bd80 pop {r7, pc}
  86277. 8022f60: 08030d38 .word 0x08030d38
  86278. 8022f64: 08030e1c .word 0x08030e1c
  86279. 8022f68: 08030d98 .word 0x08030d98
  86280. 8022f6c: 08030e60 .word 0x08030e60
  86281. 08022f70 <dhcp_network_changed>:
  86282. * This enters the REBOOTING state to verify that the currently bound
  86283. * address is still valid.
  86284. */
  86285. void
  86286. dhcp_network_changed(struct netif *netif)
  86287. {
  86288. 8022f70: b580 push {r7, lr}
  86289. 8022f72: b084 sub sp, #16
  86290. 8022f74: af00 add r7, sp, #0
  86291. 8022f76: 6078 str r0, [r7, #4]
  86292. struct dhcp *dhcp = netif_dhcp_data(netif);
  86293. 8022f78: 687b ldr r3, [r7, #4]
  86294. 8022f7a: 6a5b ldr r3, [r3, #36] @ 0x24
  86295. 8022f7c: 60fb str r3, [r7, #12]
  86296. if (!dhcp) {
  86297. 8022f7e: 68fb ldr r3, [r7, #12]
  86298. 8022f80: 2b00 cmp r3, #0
  86299. 8022f82: d025 beq.n 8022fd0 <dhcp_network_changed+0x60>
  86300. return;
  86301. }
  86302. switch (dhcp->state) {
  86303. 8022f84: 68fb ldr r3, [r7, #12]
  86304. 8022f86: 795b ldrb r3, [r3, #5]
  86305. 8022f88: 2b0a cmp r3, #10
  86306. 8022f8a: d008 beq.n 8022f9e <dhcp_network_changed+0x2e>
  86307. 8022f8c: 2b0a cmp r3, #10
  86308. 8022f8e: dc0d bgt.n 8022fac <dhcp_network_changed+0x3c>
  86309. 8022f90: 2b00 cmp r3, #0
  86310. 8022f92: d01f beq.n 8022fd4 <dhcp_network_changed+0x64>
  86311. 8022f94: 2b00 cmp r3, #0
  86312. 8022f96: db09 blt.n 8022fac <dhcp_network_changed+0x3c>
  86313. 8022f98: 3b03 subs r3, #3
  86314. 8022f9a: 2b02 cmp r3, #2
  86315. 8022f9c: d806 bhi.n 8022fac <dhcp_network_changed+0x3c>
  86316. case DHCP_STATE_REBINDING:
  86317. case DHCP_STATE_RENEWING:
  86318. case DHCP_STATE_BOUND:
  86319. case DHCP_STATE_REBOOTING:
  86320. dhcp->tries = 0;
  86321. 8022f9e: 68fb ldr r3, [r7, #12]
  86322. 8022fa0: 2200 movs r2, #0
  86323. 8022fa2: 719a strb r2, [r3, #6]
  86324. dhcp_reboot(netif);
  86325. 8022fa4: 6878 ldr r0, [r7, #4]
  86326. 8022fa6: f000 fb73 bl 8023690 <dhcp_reboot>
  86327. break;
  86328. 8022faa: e014 b.n 8022fd6 <dhcp_network_changed+0x66>
  86329. case DHCP_STATE_OFF:
  86330. /* stay off */
  86331. break;
  86332. default:
  86333. LWIP_ASSERT("invalid dhcp->state", dhcp->state <= DHCP_STATE_BACKING_OFF);
  86334. 8022fac: 68fb ldr r3, [r7, #12]
  86335. 8022fae: 795b ldrb r3, [r3, #5]
  86336. 8022fb0: 2b0c cmp r3, #12
  86337. 8022fb2: d906 bls.n 8022fc2 <dhcp_network_changed+0x52>
  86338. 8022fb4: 4b09 ldr r3, [pc, #36] @ (8022fdc <dhcp_network_changed+0x6c>)
  86339. 8022fb6: f240 326d movw r2, #877 @ 0x36d
  86340. 8022fba: 4909 ldr r1, [pc, #36] @ (8022fe0 <dhcp_network_changed+0x70>)
  86341. 8022fbc: 4809 ldr r0, [pc, #36] @ (8022fe4 <dhcp_network_changed+0x74>)
  86342. 8022fbe: f007 fbcd bl 802a75c <iprintf>
  86343. autoip_stop(netif);
  86344. dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
  86345. }
  86346. #endif /* LWIP_DHCP_AUTOIP_COOP */
  86347. /* ensure we start with short timeouts, even if already discovering */
  86348. dhcp->tries = 0;
  86349. 8022fc2: 68fb ldr r3, [r7, #12]
  86350. 8022fc4: 2200 movs r2, #0
  86351. 8022fc6: 719a strb r2, [r3, #6]
  86352. dhcp_discover(netif);
  86353. 8022fc8: 6878 ldr r0, [r7, #4]
  86354. 8022fca: f000 f8af bl 802312c <dhcp_discover>
  86355. break;
  86356. 8022fce: e002 b.n 8022fd6 <dhcp_network_changed+0x66>
  86357. return;
  86358. 8022fd0: bf00 nop
  86359. 8022fd2: e000 b.n 8022fd6 <dhcp_network_changed+0x66>
  86360. break;
  86361. 8022fd4: bf00 nop
  86362. }
  86363. }
  86364. 8022fd6: 3710 adds r7, #16
  86365. 8022fd8: 46bd mov sp, r7
  86366. 8022fda: bd80 pop {r7, pc}
  86367. 8022fdc: 08030d38 .word 0x08030d38
  86368. 8022fe0: 08030e84 .word 0x08030e84
  86369. 8022fe4: 08030d98 .word 0x08030d98
  86370. 08022fe8 <dhcp_arp_reply>:
  86371. * @param netif the network interface on which the reply was received
  86372. * @param addr The IP address we received a reply from
  86373. */
  86374. void
  86375. dhcp_arp_reply(struct netif *netif, const ip4_addr_t *addr)
  86376. {
  86377. 8022fe8: b580 push {r7, lr}
  86378. 8022fea: b084 sub sp, #16
  86379. 8022fec: af00 add r7, sp, #0
  86380. 8022fee: 6078 str r0, [r7, #4]
  86381. 8022ff0: 6039 str r1, [r7, #0]
  86382. struct dhcp *dhcp;
  86383. LWIP_ERROR("netif != NULL", (netif != NULL), return;);
  86384. 8022ff2: 687b ldr r3, [r7, #4]
  86385. 8022ff4: 2b00 cmp r3, #0
  86386. 8022ff6: d107 bne.n 8023008 <dhcp_arp_reply+0x20>
  86387. 8022ff8: 4b0e ldr r3, [pc, #56] @ (8023034 <dhcp_arp_reply+0x4c>)
  86388. 8022ffa: f240 328b movw r2, #907 @ 0x38b
  86389. 8022ffe: 490e ldr r1, [pc, #56] @ (8023038 <dhcp_arp_reply+0x50>)
  86390. 8023000: 480e ldr r0, [pc, #56] @ (802303c <dhcp_arp_reply+0x54>)
  86391. 8023002: f007 fbab bl 802a75c <iprintf>
  86392. 8023006: e012 b.n 802302e <dhcp_arp_reply+0x46>
  86393. dhcp = netif_dhcp_data(netif);
  86394. 8023008: 687b ldr r3, [r7, #4]
  86395. 802300a: 6a5b ldr r3, [r3, #36] @ 0x24
  86396. 802300c: 60fb str r3, [r7, #12]
  86397. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_arp_reply()\n"));
  86398. /* is a DHCP client doing an ARP check? */
  86399. if ((dhcp != NULL) && (dhcp->state == DHCP_STATE_CHECKING)) {
  86400. 802300e: 68fb ldr r3, [r7, #12]
  86401. 8023010: 2b00 cmp r3, #0
  86402. 8023012: d00c beq.n 802302e <dhcp_arp_reply+0x46>
  86403. 8023014: 68fb ldr r3, [r7, #12]
  86404. 8023016: 795b ldrb r3, [r3, #5]
  86405. 8023018: 2b08 cmp r3, #8
  86406. 802301a: d108 bne.n 802302e <dhcp_arp_reply+0x46>
  86407. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_arp_reply(): CHECKING, arp reply for 0x%08"X32_F"\n",
  86408. ip4_addr_get_u32(addr)));
  86409. /* did a host respond with the address we
  86410. were offered by the DHCP server? */
  86411. if (ip4_addr_cmp(addr, &dhcp->offered_ip_addr)) {
  86412. 802301c: 683b ldr r3, [r7, #0]
  86413. 802301e: 681a ldr r2, [r3, #0]
  86414. 8023020: 68fb ldr r3, [r7, #12]
  86415. 8023022: 69db ldr r3, [r3, #28]
  86416. 8023024: 429a cmp r2, r3
  86417. 8023026: d102 bne.n 802302e <dhcp_arp_reply+0x46>
  86418. /* we will not accept the offered address */
  86419. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE | LWIP_DBG_LEVEL_WARNING,
  86420. ("dhcp_arp_reply(): arp reply matched with offered address, declining\n"));
  86421. dhcp_decline(netif);
  86422. 8023028: 6878 ldr r0, [r7, #4]
  86423. 802302a: f000 f809 bl 8023040 <dhcp_decline>
  86424. }
  86425. }
  86426. }
  86427. 802302e: 3710 adds r7, #16
  86428. 8023030: 46bd mov sp, r7
  86429. 8023032: bd80 pop {r7, pc}
  86430. 8023034: 08030d38 .word 0x08030d38
  86431. 8023038: 08030e1c .word 0x08030e1c
  86432. 802303c: 08030d98 .word 0x08030d98
  86433. 08023040 <dhcp_decline>:
  86434. *
  86435. * @param netif the netif under DHCP control
  86436. */
  86437. static err_t
  86438. dhcp_decline(struct netif *netif)
  86439. {
  86440. 8023040: b5b0 push {r4, r5, r7, lr}
  86441. 8023042: b08a sub sp, #40 @ 0x28
  86442. 8023044: af02 add r7, sp, #8
  86443. 8023046: 6078 str r0, [r7, #4]
  86444. struct dhcp *dhcp = netif_dhcp_data(netif);
  86445. 8023048: 687b ldr r3, [r7, #4]
  86446. 802304a: 6a5b ldr r3, [r3, #36] @ 0x24
  86447. 802304c: 61bb str r3, [r7, #24]
  86448. u16_t msecs;
  86449. struct pbuf *p_out;
  86450. u16_t options_out_len;
  86451. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_decline()\n"));
  86452. dhcp_set_state(dhcp, DHCP_STATE_BACKING_OFF);
  86453. 802304e: 210c movs r1, #12
  86454. 8023050: 69b8 ldr r0, [r7, #24]
  86455. 8023052: f000 fc78 bl 8023946 <dhcp_set_state>
  86456. /* create and initialize the DHCP message header */
  86457. p_out = dhcp_create_msg(netif, dhcp, DHCP_DECLINE, &options_out_len);
  86458. 8023056: f107 030c add.w r3, r7, #12
  86459. 802305a: 2204 movs r2, #4
  86460. 802305c: 69b9 ldr r1, [r7, #24]
  86461. 802305e: 6878 ldr r0, [r7, #4]
  86462. 8023060: f001 f90a bl 8024278 <dhcp_create_msg>
  86463. 8023064: 6178 str r0, [r7, #20]
  86464. if (p_out != NULL) {
  86465. 8023066: 697b ldr r3, [r7, #20]
  86466. 8023068: 2b00 cmp r3, #0
  86467. 802306a: d035 beq.n 80230d8 <dhcp_decline+0x98>
  86468. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  86469. 802306c: 697b ldr r3, [r7, #20]
  86470. 802306e: 685b ldr r3, [r3, #4]
  86471. 8023070: 613b str r3, [r7, #16]
  86472. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4);
  86473. 8023072: 89b8 ldrh r0, [r7, #12]
  86474. 8023074: 693b ldr r3, [r7, #16]
  86475. 8023076: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86476. 802307a: 2304 movs r3, #4
  86477. 802307c: 2232 movs r2, #50 @ 0x32
  86478. 802307e: f000 fc7d bl 802397c <dhcp_option>
  86479. 8023082: 4603 mov r3, r0
  86480. 8023084: 81bb strh r3, [r7, #12]
  86481. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  86482. 8023086: 89bc ldrh r4, [r7, #12]
  86483. 8023088: 693b ldr r3, [r7, #16]
  86484. 802308a: f103 05f0 add.w r5, r3, #240 @ 0xf0
  86485. 802308e: 69bb ldr r3, [r7, #24]
  86486. 8023090: 69db ldr r3, [r3, #28]
  86487. 8023092: 4618 mov r0, r3
  86488. 8023094: f7f6 fc1d bl 80198d2 <lwip_htonl>
  86489. 8023098: 4603 mov r3, r0
  86490. 802309a: 461a mov r2, r3
  86491. 802309c: 4629 mov r1, r5
  86492. 802309e: 4620 mov r0, r4
  86493. 80230a0: f000 fcf8 bl 8023a94 <dhcp_option_long>
  86494. 80230a4: 4603 mov r3, r0
  86495. 80230a6: 81bb strh r3, [r7, #12]
  86496. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_BACKING_OFF, msg_out, DHCP_DECLINE, &options_out_len);
  86497. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  86498. 80230a8: 89b8 ldrh r0, [r7, #12]
  86499. 80230aa: 693b ldr r3, [r7, #16]
  86500. 80230ac: 33f0 adds r3, #240 @ 0xf0
  86501. 80230ae: 697a ldr r2, [r7, #20]
  86502. 80230b0: 4619 mov r1, r3
  86503. 80230b2: f001 f9b7 bl 8024424 <dhcp_option_trailer>
  86504. /* per section 4.4.4, broadcast DECLINE messages */
  86505. result = udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY);
  86506. 80230b6: 4b19 ldr r3, [pc, #100] @ (802311c <dhcp_decline+0xdc>)
  86507. 80230b8: 6818 ldr r0, [r3, #0]
  86508. 80230ba: 4b19 ldr r3, [pc, #100] @ (8023120 <dhcp_decline+0xe0>)
  86509. 80230bc: 9301 str r3, [sp, #4]
  86510. 80230be: 687b ldr r3, [r7, #4]
  86511. 80230c0: 9300 str r3, [sp, #0]
  86512. 80230c2: 2343 movs r3, #67 @ 0x43
  86513. 80230c4: 4a17 ldr r2, [pc, #92] @ (8023124 <dhcp_decline+0xe4>)
  86514. 80230c6: 6979 ldr r1, [r7, #20]
  86515. 80230c8: f7ff f88a bl 80221e0 <udp_sendto_if_src>
  86516. 80230cc: 4603 mov r3, r0
  86517. 80230ce: 77fb strb r3, [r7, #31]
  86518. pbuf_free(p_out);
  86519. 80230d0: 6978 ldr r0, [r7, #20]
  86520. 80230d2: f7f8 f8cb bl 801b26c <pbuf_free>
  86521. 80230d6: e001 b.n 80230dc <dhcp_decline+0x9c>
  86522. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_decline: BACKING OFF\n"));
  86523. } else {
  86524. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  86525. ("dhcp_decline: could not allocate DHCP request\n"));
  86526. result = ERR_MEM;
  86527. 80230d8: 23ff movs r3, #255 @ 0xff
  86528. 80230da: 77fb strb r3, [r7, #31]
  86529. }
  86530. if (dhcp->tries < 255) {
  86531. 80230dc: 69bb ldr r3, [r7, #24]
  86532. 80230de: 799b ldrb r3, [r3, #6]
  86533. 80230e0: 2bff cmp r3, #255 @ 0xff
  86534. 80230e2: d005 beq.n 80230f0 <dhcp_decline+0xb0>
  86535. dhcp->tries++;
  86536. 80230e4: 69bb ldr r3, [r7, #24]
  86537. 80230e6: 799b ldrb r3, [r3, #6]
  86538. 80230e8: 3301 adds r3, #1
  86539. 80230ea: b2da uxtb r2, r3
  86540. 80230ec: 69bb ldr r3, [r7, #24]
  86541. 80230ee: 719a strb r2, [r3, #6]
  86542. }
  86543. msecs = 10 * 1000;
  86544. 80230f0: f242 7310 movw r3, #10000 @ 0x2710
  86545. 80230f4: 81fb strh r3, [r7, #14]
  86546. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  86547. 80230f6: 89fb ldrh r3, [r7, #14]
  86548. 80230f8: f203 13f3 addw r3, r3, #499 @ 0x1f3
  86549. 80230fc: 4a0a ldr r2, [pc, #40] @ (8023128 <dhcp_decline+0xe8>)
  86550. 80230fe: fb82 1203 smull r1, r2, r2, r3
  86551. 8023102: 1152 asrs r2, r2, #5
  86552. 8023104: 17db asrs r3, r3, #31
  86553. 8023106: 1ad3 subs r3, r2, r3
  86554. 8023108: b29a uxth r2, r3
  86555. 802310a: 69bb ldr r3, [r7, #24]
  86556. 802310c: 811a strh r2, [r3, #8]
  86557. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_decline(): set request timeout %"U16_F" msecs\n", msecs));
  86558. return result;
  86559. 802310e: f997 301f ldrsb.w r3, [r7, #31]
  86560. }
  86561. 8023112: 4618 mov r0, r3
  86562. 8023114: 3720 adds r7, #32
  86563. 8023116: 46bd mov sp, r7
  86564. 8023118: bdb0 pop {r4, r5, r7, pc}
  86565. 802311a: bf00 nop
  86566. 802311c: 2402aff4 .word 0x2402aff4
  86567. 8023120: 08031b58 .word 0x08031b58
  86568. 8023124: 08031b5c .word 0x08031b5c
  86569. 8023128: 10624dd3 .word 0x10624dd3
  86570. 0802312c <dhcp_discover>:
  86571. *
  86572. * @param netif the netif under DHCP control
  86573. */
  86574. static err_t
  86575. dhcp_discover(struct netif *netif)
  86576. {
  86577. 802312c: b580 push {r7, lr}
  86578. 802312e: b08a sub sp, #40 @ 0x28
  86579. 8023130: af02 add r7, sp, #8
  86580. 8023132: 6078 str r0, [r7, #4]
  86581. struct dhcp *dhcp = netif_dhcp_data(netif);
  86582. 8023134: 687b ldr r3, [r7, #4]
  86583. 8023136: 6a5b ldr r3, [r3, #36] @ 0x24
  86584. 8023138: 61bb str r3, [r7, #24]
  86585. err_t result = ERR_OK;
  86586. 802313a: 2300 movs r3, #0
  86587. 802313c: 75fb strb r3, [r7, #23]
  86588. struct pbuf *p_out;
  86589. u16_t options_out_len;
  86590. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover()\n"));
  86591. ip4_addr_set_any(&dhcp->offered_ip_addr);
  86592. 802313e: 69bb ldr r3, [r7, #24]
  86593. 8023140: 2200 movs r2, #0
  86594. 8023142: 61da str r2, [r3, #28]
  86595. dhcp_set_state(dhcp, DHCP_STATE_SELECTING);
  86596. 8023144: 2106 movs r1, #6
  86597. 8023146: 69b8 ldr r0, [r7, #24]
  86598. 8023148: f000 fbfd bl 8023946 <dhcp_set_state>
  86599. /* create and initialize the DHCP message header */
  86600. p_out = dhcp_create_msg(netif, dhcp, DHCP_DISCOVER, &options_out_len);
  86601. 802314c: f107 0308 add.w r3, r7, #8
  86602. 8023150: 2201 movs r2, #1
  86603. 8023152: 69b9 ldr r1, [r7, #24]
  86604. 8023154: 6878 ldr r0, [r7, #4]
  86605. 8023156: f001 f88f bl 8024278 <dhcp_create_msg>
  86606. 802315a: 6138 str r0, [r7, #16]
  86607. if (p_out != NULL) {
  86608. 802315c: 693b ldr r3, [r7, #16]
  86609. 802315e: 2b00 cmp r3, #0
  86610. 8023160: d04b beq.n 80231fa <dhcp_discover+0xce>
  86611. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  86612. 8023162: 693b ldr r3, [r7, #16]
  86613. 8023164: 685b ldr r3, [r3, #4]
  86614. 8023166: 60fb str r3, [r7, #12]
  86615. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: making request\n"));
  86616. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  86617. 8023168: 8938 ldrh r0, [r7, #8]
  86618. 802316a: 68fb ldr r3, [r7, #12]
  86619. 802316c: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86620. 8023170: 2302 movs r3, #2
  86621. 8023172: 2239 movs r2, #57 @ 0x39
  86622. 8023174: f000 fc02 bl 802397c <dhcp_option>
  86623. 8023178: 4603 mov r3, r0
  86624. 802317a: 813b strh r3, [r7, #8]
  86625. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  86626. 802317c: 8938 ldrh r0, [r7, #8]
  86627. 802317e: 68fb ldr r3, [r7, #12]
  86628. 8023180: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86629. 8023184: 687b ldr r3, [r7, #4]
  86630. 8023186: 8d1b ldrh r3, [r3, #40] @ 0x28
  86631. 8023188: 461a mov r2, r3
  86632. 802318a: f000 fc51 bl 8023a30 <dhcp_option_short>
  86633. 802318e: 4603 mov r3, r0
  86634. 8023190: 813b strh r3, [r7, #8]
  86635. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  86636. 8023192: 8938 ldrh r0, [r7, #8]
  86637. 8023194: 68fb ldr r3, [r7, #12]
  86638. 8023196: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86639. 802319a: 2303 movs r3, #3
  86640. 802319c: 2237 movs r2, #55 @ 0x37
  86641. 802319e: f000 fbed bl 802397c <dhcp_option>
  86642. 80231a2: 4603 mov r3, r0
  86643. 80231a4: 813b strh r3, [r7, #8]
  86644. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  86645. 80231a6: 2300 movs r3, #0
  86646. 80231a8: 77fb strb r3, [r7, #31]
  86647. 80231aa: e00e b.n 80231ca <dhcp_discover+0x9e>
  86648. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  86649. 80231ac: 8938 ldrh r0, [r7, #8]
  86650. 80231ae: 68fb ldr r3, [r7, #12]
  86651. 80231b0: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86652. 80231b4: 7ffb ldrb r3, [r7, #31]
  86653. 80231b6: 4a29 ldr r2, [pc, #164] @ (802325c <dhcp_discover+0x130>)
  86654. 80231b8: 5cd3 ldrb r3, [r2, r3]
  86655. 80231ba: 461a mov r2, r3
  86656. 80231bc: f000 fc12 bl 80239e4 <dhcp_option_byte>
  86657. 80231c0: 4603 mov r3, r0
  86658. 80231c2: 813b strh r3, [r7, #8]
  86659. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  86660. 80231c4: 7ffb ldrb r3, [r7, #31]
  86661. 80231c6: 3301 adds r3, #1
  86662. 80231c8: 77fb strb r3, [r7, #31]
  86663. 80231ca: 7ffb ldrb r3, [r7, #31]
  86664. 80231cc: 2b02 cmp r3, #2
  86665. 80231ce: d9ed bls.n 80231ac <dhcp_discover+0x80>
  86666. }
  86667. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_SELECTING, msg_out, DHCP_DISCOVER, &options_out_len);
  86668. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  86669. 80231d0: 8938 ldrh r0, [r7, #8]
  86670. 80231d2: 68fb ldr r3, [r7, #12]
  86671. 80231d4: 33f0 adds r3, #240 @ 0xf0
  86672. 80231d6: 693a ldr r2, [r7, #16]
  86673. 80231d8: 4619 mov r1, r3
  86674. 80231da: f001 f923 bl 8024424 <dhcp_option_trailer>
  86675. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)\n"));
  86676. udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY);
  86677. 80231de: 4b20 ldr r3, [pc, #128] @ (8023260 <dhcp_discover+0x134>)
  86678. 80231e0: 6818 ldr r0, [r3, #0]
  86679. 80231e2: 4b20 ldr r3, [pc, #128] @ (8023264 <dhcp_discover+0x138>)
  86680. 80231e4: 9301 str r3, [sp, #4]
  86681. 80231e6: 687b ldr r3, [r7, #4]
  86682. 80231e8: 9300 str r3, [sp, #0]
  86683. 80231ea: 2343 movs r3, #67 @ 0x43
  86684. 80231ec: 4a1e ldr r2, [pc, #120] @ (8023268 <dhcp_discover+0x13c>)
  86685. 80231ee: 6939 ldr r1, [r7, #16]
  86686. 80231f0: f7fe fff6 bl 80221e0 <udp_sendto_if_src>
  86687. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: deleting()ing\n"));
  86688. pbuf_free(p_out);
  86689. 80231f4: 6938 ldr r0, [r7, #16]
  86690. 80231f6: f7f8 f839 bl 801b26c <pbuf_free>
  86691. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_discover: SELECTING\n"));
  86692. } else {
  86693. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_discover: could not allocate DHCP request\n"));
  86694. }
  86695. if (dhcp->tries < 255) {
  86696. 80231fa: 69bb ldr r3, [r7, #24]
  86697. 80231fc: 799b ldrb r3, [r3, #6]
  86698. 80231fe: 2bff cmp r3, #255 @ 0xff
  86699. 8023200: d005 beq.n 802320e <dhcp_discover+0xe2>
  86700. dhcp->tries++;
  86701. 8023202: 69bb ldr r3, [r7, #24]
  86702. 8023204: 799b ldrb r3, [r3, #6]
  86703. 8023206: 3301 adds r3, #1
  86704. 8023208: b2da uxtb r2, r3
  86705. 802320a: 69bb ldr r3, [r7, #24]
  86706. 802320c: 719a strb r2, [r3, #6]
  86707. if (dhcp->tries >= LWIP_DHCP_AUTOIP_COOP_TRIES && dhcp->autoip_coop_state == DHCP_AUTOIP_COOP_STATE_OFF) {
  86708. dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_ON;
  86709. autoip_start(netif);
  86710. }
  86711. #endif /* LWIP_DHCP_AUTOIP_COOP */
  86712. msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000);
  86713. 802320e: 69bb ldr r3, [r7, #24]
  86714. 8023210: 799b ldrb r3, [r3, #6]
  86715. 8023212: 2b05 cmp r3, #5
  86716. 8023214: d80d bhi.n 8023232 <dhcp_discover+0x106>
  86717. 8023216: 69bb ldr r3, [r7, #24]
  86718. 8023218: 799b ldrb r3, [r3, #6]
  86719. 802321a: 461a mov r2, r3
  86720. 802321c: 2301 movs r3, #1
  86721. 802321e: 4093 lsls r3, r2
  86722. 8023220: b29b uxth r3, r3
  86723. 8023222: 461a mov r2, r3
  86724. 8023224: 0152 lsls r2, r2, #5
  86725. 8023226: 1ad2 subs r2, r2, r3
  86726. 8023228: 0092 lsls r2, r2, #2
  86727. 802322a: 4413 add r3, r2
  86728. 802322c: 00db lsls r3, r3, #3
  86729. 802322e: b29b uxth r3, r3
  86730. 8023230: e001 b.n 8023236 <dhcp_discover+0x10a>
  86731. 8023232: f64e 2360 movw r3, #60000 @ 0xea60
  86732. 8023236: 817b strh r3, [r7, #10]
  86733. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  86734. 8023238: 897b ldrh r3, [r7, #10]
  86735. 802323a: f203 13f3 addw r3, r3, #499 @ 0x1f3
  86736. 802323e: 4a0b ldr r2, [pc, #44] @ (802326c <dhcp_discover+0x140>)
  86737. 8023240: fb82 1203 smull r1, r2, r2, r3
  86738. 8023244: 1152 asrs r2, r2, #5
  86739. 8023246: 17db asrs r3, r3, #31
  86740. 8023248: 1ad3 subs r3, r2, r3
  86741. 802324a: b29a uxth r2, r3
  86742. 802324c: 69bb ldr r3, [r7, #24]
  86743. 802324e: 811a strh r2, [r3, #8]
  86744. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_discover(): set request timeout %"U16_F" msecs\n", msecs));
  86745. return result;
  86746. 8023250: f997 3017 ldrsb.w r3, [r7, #23]
  86747. }
  86748. 8023254: 4618 mov r0, r3
  86749. 8023256: 3720 adds r7, #32
  86750. 8023258: 46bd mov sp, r7
  86751. 802325a: bd80 pop {r7, pc}
  86752. 802325c: 24000058 .word 0x24000058
  86753. 8023260: 2402aff4 .word 0x2402aff4
  86754. 8023264: 08031b58 .word 0x08031b58
  86755. 8023268: 08031b5c .word 0x08031b5c
  86756. 802326c: 10624dd3 .word 0x10624dd3
  86757. 08023270 <dhcp_bind>:
  86758. *
  86759. * @param netif network interface to bind to the offered address
  86760. */
  86761. static void
  86762. dhcp_bind(struct netif *netif)
  86763. {
  86764. 8023270: b580 push {r7, lr}
  86765. 8023272: b088 sub sp, #32
  86766. 8023274: af00 add r7, sp, #0
  86767. 8023276: 6078 str r0, [r7, #4]
  86768. u32_t timeout;
  86769. struct dhcp *dhcp;
  86770. ip4_addr_t sn_mask, gw_addr;
  86771. LWIP_ERROR("dhcp_bind: netif != NULL", (netif != NULL), return;);
  86772. 8023278: 687b ldr r3, [r7, #4]
  86773. 802327a: 2b00 cmp r3, #0
  86774. 802327c: d107 bne.n 802328e <dhcp_bind+0x1e>
  86775. 802327e: 4b64 ldr r3, [pc, #400] @ (8023410 <dhcp_bind+0x1a0>)
  86776. 8023280: f240 4215 movw r2, #1045 @ 0x415
  86777. 8023284: 4963 ldr r1, [pc, #396] @ (8023414 <dhcp_bind+0x1a4>)
  86778. 8023286: 4864 ldr r0, [pc, #400] @ (8023418 <dhcp_bind+0x1a8>)
  86779. 8023288: f007 fa68 bl 802a75c <iprintf>
  86780. 802328c: e0bc b.n 8023408 <dhcp_bind+0x198>
  86781. dhcp = netif_dhcp_data(netif);
  86782. 802328e: 687b ldr r3, [r7, #4]
  86783. 8023290: 6a5b ldr r3, [r3, #36] @ 0x24
  86784. 8023292: 61fb str r3, [r7, #28]
  86785. LWIP_ERROR("dhcp_bind: dhcp != NULL", (dhcp != NULL), return;);
  86786. 8023294: 69fb ldr r3, [r7, #28]
  86787. 8023296: 2b00 cmp r3, #0
  86788. 8023298: d107 bne.n 80232aa <dhcp_bind+0x3a>
  86789. 802329a: 4b5d ldr r3, [pc, #372] @ (8023410 <dhcp_bind+0x1a0>)
  86790. 802329c: f240 4217 movw r2, #1047 @ 0x417
  86791. 80232a0: 495e ldr r1, [pc, #376] @ (802341c <dhcp_bind+0x1ac>)
  86792. 80232a2: 485d ldr r0, [pc, #372] @ (8023418 <dhcp_bind+0x1a8>)
  86793. 80232a4: f007 fa5a bl 802a75c <iprintf>
  86794. 80232a8: e0ae b.n 8023408 <dhcp_bind+0x198>
  86795. 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));
  86796. /* reset time used of lease */
  86797. dhcp->lease_used = 0;
  86798. 80232aa: 69fb ldr r3, [r7, #28]
  86799. 80232ac: 2200 movs r2, #0
  86800. 80232ae: 825a strh r2, [r3, #18]
  86801. if (dhcp->offered_t0_lease != 0xffffffffUL) {
  86802. 80232b0: 69fb ldr r3, [r7, #28]
  86803. 80232b2: 6a9b ldr r3, [r3, #40] @ 0x28
  86804. 80232b4: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  86805. 80232b8: d019 beq.n 80232ee <dhcp_bind+0x7e>
  86806. /* set renewal period timer */
  86807. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t0 renewal timer %"U32_F" secs\n", dhcp->offered_t0_lease));
  86808. timeout = (dhcp->offered_t0_lease + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS;
  86809. 80232ba: 69fb ldr r3, [r7, #28]
  86810. 80232bc: 6a9b ldr r3, [r3, #40] @ 0x28
  86811. 80232be: 331e adds r3, #30
  86812. 80232c0: 4a57 ldr r2, [pc, #348] @ (8023420 <dhcp_bind+0x1b0>)
  86813. 80232c2: fba2 2303 umull r2, r3, r2, r3
  86814. 80232c6: 095b lsrs r3, r3, #5
  86815. 80232c8: 61bb str r3, [r7, #24]
  86816. if (timeout > 0xffff) {
  86817. 80232ca: 69bb ldr r3, [r7, #24]
  86818. 80232cc: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  86819. 80232d0: d302 bcc.n 80232d8 <dhcp_bind+0x68>
  86820. timeout = 0xffff;
  86821. 80232d2: f64f 73ff movw r3, #65535 @ 0xffff
  86822. 80232d6: 61bb str r3, [r7, #24]
  86823. }
  86824. dhcp->t0_timeout = (u16_t)timeout;
  86825. 80232d8: 69bb ldr r3, [r7, #24]
  86826. 80232da: b29a uxth r2, r3
  86827. 80232dc: 69fb ldr r3, [r7, #28]
  86828. 80232de: 829a strh r2, [r3, #20]
  86829. if (dhcp->t0_timeout == 0) {
  86830. 80232e0: 69fb ldr r3, [r7, #28]
  86831. 80232e2: 8a9b ldrh r3, [r3, #20]
  86832. 80232e4: 2b00 cmp r3, #0
  86833. 80232e6: d102 bne.n 80232ee <dhcp_bind+0x7e>
  86834. dhcp->t0_timeout = 1;
  86835. 80232e8: 69fb ldr r3, [r7, #28]
  86836. 80232ea: 2201 movs r2, #1
  86837. 80232ec: 829a strh r2, [r3, #20]
  86838. }
  86839. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t0_lease * 1000));
  86840. }
  86841. /* temporary DHCP lease? */
  86842. if (dhcp->offered_t1_renew != 0xffffffffUL) {
  86843. 80232ee: 69fb ldr r3, [r7, #28]
  86844. 80232f0: 6adb ldr r3, [r3, #44] @ 0x2c
  86845. 80232f2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  86846. 80232f6: d01d beq.n 8023334 <dhcp_bind+0xc4>
  86847. /* set renewal period timer */
  86848. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t1 renewal timer %"U32_F" secs\n", dhcp->offered_t1_renew));
  86849. timeout = (dhcp->offered_t1_renew + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS;
  86850. 80232f8: 69fb ldr r3, [r7, #28]
  86851. 80232fa: 6adb ldr r3, [r3, #44] @ 0x2c
  86852. 80232fc: 331e adds r3, #30
  86853. 80232fe: 4a48 ldr r2, [pc, #288] @ (8023420 <dhcp_bind+0x1b0>)
  86854. 8023300: fba2 2303 umull r2, r3, r2, r3
  86855. 8023304: 095b lsrs r3, r3, #5
  86856. 8023306: 61bb str r3, [r7, #24]
  86857. if (timeout > 0xffff) {
  86858. 8023308: 69bb ldr r3, [r7, #24]
  86859. 802330a: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  86860. 802330e: d302 bcc.n 8023316 <dhcp_bind+0xa6>
  86861. timeout = 0xffff;
  86862. 8023310: f64f 73ff movw r3, #65535 @ 0xffff
  86863. 8023314: 61bb str r3, [r7, #24]
  86864. }
  86865. dhcp->t1_timeout = (u16_t)timeout;
  86866. 8023316: 69bb ldr r3, [r7, #24]
  86867. 8023318: b29a uxth r2, r3
  86868. 802331a: 69fb ldr r3, [r7, #28]
  86869. 802331c: 815a strh r2, [r3, #10]
  86870. if (dhcp->t1_timeout == 0) {
  86871. 802331e: 69fb ldr r3, [r7, #28]
  86872. 8023320: 895b ldrh r3, [r3, #10]
  86873. 8023322: 2b00 cmp r3, #0
  86874. 8023324: d102 bne.n 802332c <dhcp_bind+0xbc>
  86875. dhcp->t1_timeout = 1;
  86876. 8023326: 69fb ldr r3, [r7, #28]
  86877. 8023328: 2201 movs r2, #1
  86878. 802332a: 815a strh r2, [r3, #10]
  86879. }
  86880. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t1_renew * 1000));
  86881. dhcp->t1_renew_time = dhcp->t1_timeout;
  86882. 802332c: 69fb ldr r3, [r7, #28]
  86883. 802332e: 895a ldrh r2, [r3, #10]
  86884. 8023330: 69fb ldr r3, [r7, #28]
  86885. 8023332: 81da strh r2, [r3, #14]
  86886. }
  86887. /* set renewal period timer */
  86888. if (dhcp->offered_t2_rebind != 0xffffffffUL) {
  86889. 8023334: 69fb ldr r3, [r7, #28]
  86890. 8023336: 6b1b ldr r3, [r3, #48] @ 0x30
  86891. 8023338: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  86892. 802333c: d01d beq.n 802337a <dhcp_bind+0x10a>
  86893. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t2 rebind timer %"U32_F" secs\n", dhcp->offered_t2_rebind));
  86894. timeout = (dhcp->offered_t2_rebind + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS;
  86895. 802333e: 69fb ldr r3, [r7, #28]
  86896. 8023340: 6b1b ldr r3, [r3, #48] @ 0x30
  86897. 8023342: 331e adds r3, #30
  86898. 8023344: 4a36 ldr r2, [pc, #216] @ (8023420 <dhcp_bind+0x1b0>)
  86899. 8023346: fba2 2303 umull r2, r3, r2, r3
  86900. 802334a: 095b lsrs r3, r3, #5
  86901. 802334c: 61bb str r3, [r7, #24]
  86902. if (timeout > 0xffff) {
  86903. 802334e: 69bb ldr r3, [r7, #24]
  86904. 8023350: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  86905. 8023354: d302 bcc.n 802335c <dhcp_bind+0xec>
  86906. timeout = 0xffff;
  86907. 8023356: f64f 73ff movw r3, #65535 @ 0xffff
  86908. 802335a: 61bb str r3, [r7, #24]
  86909. }
  86910. dhcp->t2_timeout = (u16_t)timeout;
  86911. 802335c: 69bb ldr r3, [r7, #24]
  86912. 802335e: b29a uxth r2, r3
  86913. 8023360: 69fb ldr r3, [r7, #28]
  86914. 8023362: 819a strh r2, [r3, #12]
  86915. if (dhcp->t2_timeout == 0) {
  86916. 8023364: 69fb ldr r3, [r7, #28]
  86917. 8023366: 899b ldrh r3, [r3, #12]
  86918. 8023368: 2b00 cmp r3, #0
  86919. 802336a: d102 bne.n 8023372 <dhcp_bind+0x102>
  86920. dhcp->t2_timeout = 1;
  86921. 802336c: 69fb ldr r3, [r7, #28]
  86922. 802336e: 2201 movs r2, #1
  86923. 8023370: 819a strh r2, [r3, #12]
  86924. }
  86925. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t2_rebind * 1000));
  86926. dhcp->t2_rebind_time = dhcp->t2_timeout;
  86927. 8023372: 69fb ldr r3, [r7, #28]
  86928. 8023374: 899a ldrh r2, [r3, #12]
  86929. 8023376: 69fb ldr r3, [r7, #28]
  86930. 8023378: 821a strh r2, [r3, #16]
  86931. }
  86932. /* If we have sub 1 minute lease, t2 and t1 will kick in at the same time. */
  86933. if ((dhcp->t1_timeout >= dhcp->t2_timeout) && (dhcp->t2_timeout > 0)) {
  86934. 802337a: 69fb ldr r3, [r7, #28]
  86935. 802337c: 895a ldrh r2, [r3, #10]
  86936. 802337e: 69fb ldr r3, [r7, #28]
  86937. 8023380: 899b ldrh r3, [r3, #12]
  86938. 8023382: 429a cmp r2, r3
  86939. 8023384: d306 bcc.n 8023394 <dhcp_bind+0x124>
  86940. 8023386: 69fb ldr r3, [r7, #28]
  86941. 8023388: 899b ldrh r3, [r3, #12]
  86942. 802338a: 2b00 cmp r3, #0
  86943. 802338c: d002 beq.n 8023394 <dhcp_bind+0x124>
  86944. dhcp->t1_timeout = 0;
  86945. 802338e: 69fb ldr r3, [r7, #28]
  86946. 8023390: 2200 movs r2, #0
  86947. 8023392: 815a strh r2, [r3, #10]
  86948. }
  86949. if (dhcp->subnet_mask_given) {
  86950. 8023394: 69fb ldr r3, [r7, #28]
  86951. 8023396: 79db ldrb r3, [r3, #7]
  86952. 8023398: 2b00 cmp r3, #0
  86953. 802339a: d003 beq.n 80233a4 <dhcp_bind+0x134>
  86954. /* copy offered network mask */
  86955. ip4_addr_copy(sn_mask, dhcp->offered_sn_mask);
  86956. 802339c: 69fb ldr r3, [r7, #28]
  86957. 802339e: 6a1b ldr r3, [r3, #32]
  86958. 80233a0: 613b str r3, [r7, #16]
  86959. 80233a2: e014 b.n 80233ce <dhcp_bind+0x15e>
  86960. } else {
  86961. /* subnet mask not given, choose a safe subnet mask given the network class */
  86962. u8_t first_octet = ip4_addr1(&dhcp->offered_ip_addr);
  86963. 80233a4: 69fb ldr r3, [r7, #28]
  86964. 80233a6: 331c adds r3, #28
  86965. 80233a8: 781b ldrb r3, [r3, #0]
  86966. 80233aa: 75fb strb r3, [r7, #23]
  86967. if (first_octet <= 127) {
  86968. 80233ac: f997 3017 ldrsb.w r3, [r7, #23]
  86969. 80233b0: 2b00 cmp r3, #0
  86970. 80233b2: db02 blt.n 80233ba <dhcp_bind+0x14a>
  86971. ip4_addr_set_u32(&sn_mask, PP_HTONL(0xff000000UL));
  86972. 80233b4: 23ff movs r3, #255 @ 0xff
  86973. 80233b6: 613b str r3, [r7, #16]
  86974. 80233b8: e009 b.n 80233ce <dhcp_bind+0x15e>
  86975. } else if (first_octet >= 192) {
  86976. 80233ba: 7dfb ldrb r3, [r7, #23]
  86977. 80233bc: 2bbf cmp r3, #191 @ 0xbf
  86978. 80233be: d903 bls.n 80233c8 <dhcp_bind+0x158>
  86979. ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffffff00UL));
  86980. 80233c0: f06f 437f mvn.w r3, #4278190080 @ 0xff000000
  86981. 80233c4: 613b str r3, [r7, #16]
  86982. 80233c6: e002 b.n 80233ce <dhcp_bind+0x15e>
  86983. } else {
  86984. ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffff0000UL));
  86985. 80233c8: f64f 73ff movw r3, #65535 @ 0xffff
  86986. 80233cc: 613b str r3, [r7, #16]
  86987. }
  86988. }
  86989. ip4_addr_copy(gw_addr, dhcp->offered_gw_addr);
  86990. 80233ce: 69fb ldr r3, [r7, #28]
  86991. 80233d0: 6a5b ldr r3, [r3, #36] @ 0x24
  86992. 80233d2: 60fb str r3, [r7, #12]
  86993. /* gateway address not given? */
  86994. if (ip4_addr_isany_val(gw_addr)) {
  86995. 80233d4: 68fb ldr r3, [r7, #12]
  86996. 80233d6: 2b00 cmp r3, #0
  86997. 80233d8: d108 bne.n 80233ec <dhcp_bind+0x17c>
  86998. /* copy network address */
  86999. ip4_addr_get_network(&gw_addr, &dhcp->offered_ip_addr, &sn_mask);
  87000. 80233da: 69fb ldr r3, [r7, #28]
  87001. 80233dc: 69da ldr r2, [r3, #28]
  87002. 80233de: 693b ldr r3, [r7, #16]
  87003. 80233e0: 4013 ands r3, r2
  87004. 80233e2: 60fb str r3, [r7, #12]
  87005. /* use first host address on network as gateway */
  87006. ip4_addr_set_u32(&gw_addr, ip4_addr_get_u32(&gw_addr) | PP_HTONL(0x00000001UL));
  87007. 80233e4: 68fb ldr r3, [r7, #12]
  87008. 80233e6: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  87009. 80233ea: 60fb str r3, [r7, #12]
  87010. 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",
  87011. ip4_addr_get_u32(&dhcp->offered_ip_addr), ip4_addr_get_u32(&sn_mask), ip4_addr_get_u32(&gw_addr)));
  87012. /* netif is now bound to DHCP leased address - set this before assigning the address
  87013. to ensure the callback can use dhcp_supplied_address() */
  87014. dhcp_set_state(dhcp, DHCP_STATE_BOUND);
  87015. 80233ec: 210a movs r1, #10
  87016. 80233ee: 69f8 ldr r0, [r7, #28]
  87017. 80233f0: f000 faa9 bl 8023946 <dhcp_set_state>
  87018. netif_set_addr(netif, &dhcp->offered_ip_addr, &sn_mask, &gw_addr);
  87019. 80233f4: 69fb ldr r3, [r7, #28]
  87020. 80233f6: f103 011c add.w r1, r3, #28
  87021. 80233fa: f107 030c add.w r3, r7, #12
  87022. 80233fe: f107 0210 add.w r2, r7, #16
  87023. 8023402: 6878 ldr r0, [r7, #4]
  87024. 8023404: f7f7 f9e8 bl 801a7d8 <netif_set_addr>
  87025. /* interface is used by routing now that an address is set */
  87026. }
  87027. 8023408: 3720 adds r7, #32
  87028. 802340a: 46bd mov sp, r7
  87029. 802340c: bd80 pop {r7, pc}
  87030. 802340e: bf00 nop
  87031. 8023410: 08030d38 .word 0x08030d38
  87032. 8023414: 08030e98 .word 0x08030e98
  87033. 8023418: 08030d98 .word 0x08030d98
  87034. 802341c: 08030eb4 .word 0x08030eb4
  87035. 8023420: 88888889 .word 0x88888889
  87036. 08023424 <dhcp_renew>:
  87037. *
  87038. * @param netif network interface which must renew its lease
  87039. */
  87040. err_t
  87041. dhcp_renew(struct netif *netif)
  87042. {
  87043. 8023424: b580 push {r7, lr}
  87044. 8023426: b08a sub sp, #40 @ 0x28
  87045. 8023428: af02 add r7, sp, #8
  87046. 802342a: 6078 str r0, [r7, #4]
  87047. struct dhcp *dhcp = netif_dhcp_data(netif);
  87048. 802342c: 687b ldr r3, [r7, #4]
  87049. 802342e: 6a5b ldr r3, [r3, #36] @ 0x24
  87050. 8023430: 61bb str r3, [r7, #24]
  87051. u16_t msecs;
  87052. u8_t i;
  87053. struct pbuf *p_out;
  87054. u16_t options_out_len;
  87055. LWIP_ASSERT_CORE_LOCKED();
  87056. 8023432: f7ed fd65 bl 8010f00 <sys_check_core_locking>
  87057. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_renew()\n"));
  87058. dhcp_set_state(dhcp, DHCP_STATE_RENEWING);
  87059. 8023436: 2105 movs r1, #5
  87060. 8023438: 69b8 ldr r0, [r7, #24]
  87061. 802343a: f000 fa84 bl 8023946 <dhcp_set_state>
  87062. /* create and initialize the DHCP message header */
  87063. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  87064. 802343e: f107 030c add.w r3, r7, #12
  87065. 8023442: 2203 movs r2, #3
  87066. 8023444: 69b9 ldr r1, [r7, #24]
  87067. 8023446: 6878 ldr r0, [r7, #4]
  87068. 8023448: f000 ff16 bl 8024278 <dhcp_create_msg>
  87069. 802344c: 6178 str r0, [r7, #20]
  87070. if (p_out != NULL) {
  87071. 802344e: 697b ldr r3, [r7, #20]
  87072. 8023450: 2b00 cmp r3, #0
  87073. 8023452: d04e beq.n 80234f2 <dhcp_renew+0xce>
  87074. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  87075. 8023454: 697b ldr r3, [r7, #20]
  87076. 8023456: 685b ldr r3, [r3, #4]
  87077. 8023458: 613b str r3, [r7, #16]
  87078. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  87079. 802345a: 89b8 ldrh r0, [r7, #12]
  87080. 802345c: 693b ldr r3, [r7, #16]
  87081. 802345e: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87082. 8023462: 2302 movs r3, #2
  87083. 8023464: 2239 movs r2, #57 @ 0x39
  87084. 8023466: f000 fa89 bl 802397c <dhcp_option>
  87085. 802346a: 4603 mov r3, r0
  87086. 802346c: 81bb strh r3, [r7, #12]
  87087. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  87088. 802346e: 89b8 ldrh r0, [r7, #12]
  87089. 8023470: 693b ldr r3, [r7, #16]
  87090. 8023472: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87091. 8023476: 687b ldr r3, [r7, #4]
  87092. 8023478: 8d1b ldrh r3, [r3, #40] @ 0x28
  87093. 802347a: 461a mov r2, r3
  87094. 802347c: f000 fad8 bl 8023a30 <dhcp_option_short>
  87095. 8023480: 4603 mov r3, r0
  87096. 8023482: 81bb strh r3, [r7, #12]
  87097. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  87098. 8023484: 89b8 ldrh r0, [r7, #12]
  87099. 8023486: 693b ldr r3, [r7, #16]
  87100. 8023488: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87101. 802348c: 2303 movs r3, #3
  87102. 802348e: 2237 movs r2, #55 @ 0x37
  87103. 8023490: f000 fa74 bl 802397c <dhcp_option>
  87104. 8023494: 4603 mov r3, r0
  87105. 8023496: 81bb strh r3, [r7, #12]
  87106. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  87107. 8023498: 2300 movs r3, #0
  87108. 802349a: 77bb strb r3, [r7, #30]
  87109. 802349c: e00e b.n 80234bc <dhcp_renew+0x98>
  87110. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  87111. 802349e: 89b8 ldrh r0, [r7, #12]
  87112. 80234a0: 693b ldr r3, [r7, #16]
  87113. 80234a2: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87114. 80234a6: 7fbb ldrb r3, [r7, #30]
  87115. 80234a8: 4a29 ldr r2, [pc, #164] @ (8023550 <dhcp_renew+0x12c>)
  87116. 80234aa: 5cd3 ldrb r3, [r2, r3]
  87117. 80234ac: 461a mov r2, r3
  87118. 80234ae: f000 fa99 bl 80239e4 <dhcp_option_byte>
  87119. 80234b2: 4603 mov r3, r0
  87120. 80234b4: 81bb strh r3, [r7, #12]
  87121. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  87122. 80234b6: 7fbb ldrb r3, [r7, #30]
  87123. 80234b8: 3301 adds r3, #1
  87124. 80234ba: 77bb strb r3, [r7, #30]
  87125. 80234bc: 7fbb ldrb r3, [r7, #30]
  87126. 80234be: 2b02 cmp r3, #2
  87127. 80234c0: d9ed bls.n 802349e <dhcp_renew+0x7a>
  87128. #if LWIP_NETIF_HOSTNAME
  87129. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  87130. #endif /* LWIP_NETIF_HOSTNAME */
  87131. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_RENEWING, msg_out, DHCP_REQUEST, &options_out_len);
  87132. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  87133. 80234c2: 89b8 ldrh r0, [r7, #12]
  87134. 80234c4: 693b ldr r3, [r7, #16]
  87135. 80234c6: 33f0 adds r3, #240 @ 0xf0
  87136. 80234c8: 697a ldr r2, [r7, #20]
  87137. 80234ca: 4619 mov r1, r3
  87138. 80234cc: f000 ffaa bl 8024424 <dhcp_option_trailer>
  87139. result = udp_sendto_if(dhcp_pcb, p_out, &dhcp->server_ip_addr, LWIP_IANA_PORT_DHCP_SERVER, netif);
  87140. 80234d0: 4b20 ldr r3, [pc, #128] @ (8023554 <dhcp_renew+0x130>)
  87141. 80234d2: 6818 ldr r0, [r3, #0]
  87142. 80234d4: 69bb ldr r3, [r7, #24]
  87143. 80234d6: f103 0218 add.w r2, r3, #24
  87144. 80234da: 687b ldr r3, [r7, #4]
  87145. 80234dc: 9300 str r3, [sp, #0]
  87146. 80234de: 2343 movs r3, #67 @ 0x43
  87147. 80234e0: 6979 ldr r1, [r7, #20]
  87148. 80234e2: f7fe fe09 bl 80220f8 <udp_sendto_if>
  87149. 80234e6: 4603 mov r3, r0
  87150. 80234e8: 77fb strb r3, [r7, #31]
  87151. pbuf_free(p_out);
  87152. 80234ea: 6978 ldr r0, [r7, #20]
  87153. 80234ec: f7f7 febe bl 801b26c <pbuf_free>
  87154. 80234f0: e001 b.n 80234f6 <dhcp_renew+0xd2>
  87155. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_renew: RENEWING\n"));
  87156. } else {
  87157. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_renew: could not allocate DHCP request\n"));
  87158. result = ERR_MEM;
  87159. 80234f2: 23ff movs r3, #255 @ 0xff
  87160. 80234f4: 77fb strb r3, [r7, #31]
  87161. }
  87162. if (dhcp->tries < 255) {
  87163. 80234f6: 69bb ldr r3, [r7, #24]
  87164. 80234f8: 799b ldrb r3, [r3, #6]
  87165. 80234fa: 2bff cmp r3, #255 @ 0xff
  87166. 80234fc: d005 beq.n 802350a <dhcp_renew+0xe6>
  87167. dhcp->tries++;
  87168. 80234fe: 69bb ldr r3, [r7, #24]
  87169. 8023500: 799b ldrb r3, [r3, #6]
  87170. 8023502: 3301 adds r3, #1
  87171. 8023504: b2da uxtb r2, r3
  87172. 8023506: 69bb ldr r3, [r7, #24]
  87173. 8023508: 719a strb r2, [r3, #6]
  87174. }
  87175. /* back-off on retries, but to a maximum of 20 seconds */
  87176. msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 2000 : 20 * 1000);
  87177. 802350a: 69bb ldr r3, [r7, #24]
  87178. 802350c: 799b ldrb r3, [r3, #6]
  87179. 802350e: 2b09 cmp r3, #9
  87180. 8023510: d809 bhi.n 8023526 <dhcp_renew+0x102>
  87181. 8023512: 69bb ldr r3, [r7, #24]
  87182. 8023514: 799b ldrb r3, [r3, #6]
  87183. 8023516: 461a mov r2, r3
  87184. 8023518: 0152 lsls r2, r2, #5
  87185. 802351a: 1ad2 subs r2, r2, r3
  87186. 802351c: 0092 lsls r2, r2, #2
  87187. 802351e: 4413 add r3, r2
  87188. 8023520: 011b lsls r3, r3, #4
  87189. 8023522: b29b uxth r3, r3
  87190. 8023524: e001 b.n 802352a <dhcp_renew+0x106>
  87191. 8023526: f644 6320 movw r3, #20000 @ 0x4e20
  87192. 802352a: 81fb strh r3, [r7, #14]
  87193. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  87194. 802352c: 89fb ldrh r3, [r7, #14]
  87195. 802352e: f203 13f3 addw r3, r3, #499 @ 0x1f3
  87196. 8023532: 4a09 ldr r2, [pc, #36] @ (8023558 <dhcp_renew+0x134>)
  87197. 8023534: fb82 1203 smull r1, r2, r2, r3
  87198. 8023538: 1152 asrs r2, r2, #5
  87199. 802353a: 17db asrs r3, r3, #31
  87200. 802353c: 1ad3 subs r3, r2, r3
  87201. 802353e: b29a uxth r2, r3
  87202. 8023540: 69bb ldr r3, [r7, #24]
  87203. 8023542: 811a strh r2, [r3, #8]
  87204. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_renew(): set request timeout %"U16_F" msecs\n", msecs));
  87205. return result;
  87206. 8023544: f997 301f ldrsb.w r3, [r7, #31]
  87207. }
  87208. 8023548: 4618 mov r0, r3
  87209. 802354a: 3720 adds r7, #32
  87210. 802354c: 46bd mov sp, r7
  87211. 802354e: bd80 pop {r7, pc}
  87212. 8023550: 24000058 .word 0x24000058
  87213. 8023554: 2402aff4 .word 0x2402aff4
  87214. 8023558: 10624dd3 .word 0x10624dd3
  87215. 0802355c <dhcp_rebind>:
  87216. *
  87217. * @param netif network interface which must rebind with a DHCP server
  87218. */
  87219. static err_t
  87220. dhcp_rebind(struct netif *netif)
  87221. {
  87222. 802355c: b580 push {r7, lr}
  87223. 802355e: b08a sub sp, #40 @ 0x28
  87224. 8023560: af02 add r7, sp, #8
  87225. 8023562: 6078 str r0, [r7, #4]
  87226. struct dhcp *dhcp = netif_dhcp_data(netif);
  87227. 8023564: 687b ldr r3, [r7, #4]
  87228. 8023566: 6a5b ldr r3, [r3, #36] @ 0x24
  87229. 8023568: 61bb str r3, [r7, #24]
  87230. u8_t i;
  87231. struct pbuf *p_out;
  87232. u16_t options_out_len;
  87233. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind()\n"));
  87234. dhcp_set_state(dhcp, DHCP_STATE_REBINDING);
  87235. 802356a: 2104 movs r1, #4
  87236. 802356c: 69b8 ldr r0, [r7, #24]
  87237. 802356e: f000 f9ea bl 8023946 <dhcp_set_state>
  87238. /* create and initialize the DHCP message header */
  87239. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  87240. 8023572: f107 030c add.w r3, r7, #12
  87241. 8023576: 2203 movs r2, #3
  87242. 8023578: 69b9 ldr r1, [r7, #24]
  87243. 802357a: 6878 ldr r0, [r7, #4]
  87244. 802357c: f000 fe7c bl 8024278 <dhcp_create_msg>
  87245. 8023580: 6178 str r0, [r7, #20]
  87246. if (p_out != NULL) {
  87247. 8023582: 697b ldr r3, [r7, #20]
  87248. 8023584: 2b00 cmp r3, #0
  87249. 8023586: d04c beq.n 8023622 <dhcp_rebind+0xc6>
  87250. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  87251. 8023588: 697b ldr r3, [r7, #20]
  87252. 802358a: 685b ldr r3, [r3, #4]
  87253. 802358c: 613b str r3, [r7, #16]
  87254. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  87255. 802358e: 89b8 ldrh r0, [r7, #12]
  87256. 8023590: 693b ldr r3, [r7, #16]
  87257. 8023592: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87258. 8023596: 2302 movs r3, #2
  87259. 8023598: 2239 movs r2, #57 @ 0x39
  87260. 802359a: f000 f9ef bl 802397c <dhcp_option>
  87261. 802359e: 4603 mov r3, r0
  87262. 80235a0: 81bb strh r3, [r7, #12]
  87263. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  87264. 80235a2: 89b8 ldrh r0, [r7, #12]
  87265. 80235a4: 693b ldr r3, [r7, #16]
  87266. 80235a6: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87267. 80235aa: 687b ldr r3, [r7, #4]
  87268. 80235ac: 8d1b ldrh r3, [r3, #40] @ 0x28
  87269. 80235ae: 461a mov r2, r3
  87270. 80235b0: f000 fa3e bl 8023a30 <dhcp_option_short>
  87271. 80235b4: 4603 mov r3, r0
  87272. 80235b6: 81bb strh r3, [r7, #12]
  87273. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  87274. 80235b8: 89b8 ldrh r0, [r7, #12]
  87275. 80235ba: 693b ldr r3, [r7, #16]
  87276. 80235bc: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87277. 80235c0: 2303 movs r3, #3
  87278. 80235c2: 2237 movs r2, #55 @ 0x37
  87279. 80235c4: f000 f9da bl 802397c <dhcp_option>
  87280. 80235c8: 4603 mov r3, r0
  87281. 80235ca: 81bb strh r3, [r7, #12]
  87282. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  87283. 80235cc: 2300 movs r3, #0
  87284. 80235ce: 77bb strb r3, [r7, #30]
  87285. 80235d0: e00e b.n 80235f0 <dhcp_rebind+0x94>
  87286. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  87287. 80235d2: 89b8 ldrh r0, [r7, #12]
  87288. 80235d4: 693b ldr r3, [r7, #16]
  87289. 80235d6: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87290. 80235da: 7fbb ldrb r3, [r7, #30]
  87291. 80235dc: 4a28 ldr r2, [pc, #160] @ (8023680 <dhcp_rebind+0x124>)
  87292. 80235de: 5cd3 ldrb r3, [r2, r3]
  87293. 80235e0: 461a mov r2, r3
  87294. 80235e2: f000 f9ff bl 80239e4 <dhcp_option_byte>
  87295. 80235e6: 4603 mov r3, r0
  87296. 80235e8: 81bb strh r3, [r7, #12]
  87297. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  87298. 80235ea: 7fbb ldrb r3, [r7, #30]
  87299. 80235ec: 3301 adds r3, #1
  87300. 80235ee: 77bb strb r3, [r7, #30]
  87301. 80235f0: 7fbb ldrb r3, [r7, #30]
  87302. 80235f2: 2b02 cmp r3, #2
  87303. 80235f4: d9ed bls.n 80235d2 <dhcp_rebind+0x76>
  87304. #if LWIP_NETIF_HOSTNAME
  87305. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  87306. #endif /* LWIP_NETIF_HOSTNAME */
  87307. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REBINDING, msg_out, DHCP_DISCOVER, &options_out_len);
  87308. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  87309. 80235f6: 89b8 ldrh r0, [r7, #12]
  87310. 80235f8: 693b ldr r3, [r7, #16]
  87311. 80235fa: 33f0 adds r3, #240 @ 0xf0
  87312. 80235fc: 697a ldr r2, [r7, #20]
  87313. 80235fe: 4619 mov r1, r3
  87314. 8023600: f000 ff10 bl 8024424 <dhcp_option_trailer>
  87315. /* broadcast to server */
  87316. result = udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif);
  87317. 8023604: 4b1f ldr r3, [pc, #124] @ (8023684 <dhcp_rebind+0x128>)
  87318. 8023606: 6818 ldr r0, [r3, #0]
  87319. 8023608: 687b ldr r3, [r7, #4]
  87320. 802360a: 9300 str r3, [sp, #0]
  87321. 802360c: 2343 movs r3, #67 @ 0x43
  87322. 802360e: 4a1e ldr r2, [pc, #120] @ (8023688 <dhcp_rebind+0x12c>)
  87323. 8023610: 6979 ldr r1, [r7, #20]
  87324. 8023612: f7fe fd71 bl 80220f8 <udp_sendto_if>
  87325. 8023616: 4603 mov r3, r0
  87326. 8023618: 77fb strb r3, [r7, #31]
  87327. pbuf_free(p_out);
  87328. 802361a: 6978 ldr r0, [r7, #20]
  87329. 802361c: f7f7 fe26 bl 801b26c <pbuf_free>
  87330. 8023620: e001 b.n 8023626 <dhcp_rebind+0xca>
  87331. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind: REBINDING\n"));
  87332. } else {
  87333. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_rebind: could not allocate DHCP request\n"));
  87334. result = ERR_MEM;
  87335. 8023622: 23ff movs r3, #255 @ 0xff
  87336. 8023624: 77fb strb r3, [r7, #31]
  87337. }
  87338. if (dhcp->tries < 255) {
  87339. 8023626: 69bb ldr r3, [r7, #24]
  87340. 8023628: 799b ldrb r3, [r3, #6]
  87341. 802362a: 2bff cmp r3, #255 @ 0xff
  87342. 802362c: d005 beq.n 802363a <dhcp_rebind+0xde>
  87343. dhcp->tries++;
  87344. 802362e: 69bb ldr r3, [r7, #24]
  87345. 8023630: 799b ldrb r3, [r3, #6]
  87346. 8023632: 3301 adds r3, #1
  87347. 8023634: b2da uxtb r2, r3
  87348. 8023636: 69bb ldr r3, [r7, #24]
  87349. 8023638: 719a strb r2, [r3, #6]
  87350. }
  87351. msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000);
  87352. 802363a: 69bb ldr r3, [r7, #24]
  87353. 802363c: 799b ldrb r3, [r3, #6]
  87354. 802363e: 2b09 cmp r3, #9
  87355. 8023640: d809 bhi.n 8023656 <dhcp_rebind+0xfa>
  87356. 8023642: 69bb ldr r3, [r7, #24]
  87357. 8023644: 799b ldrb r3, [r3, #6]
  87358. 8023646: 461a mov r2, r3
  87359. 8023648: 0152 lsls r2, r2, #5
  87360. 802364a: 1ad2 subs r2, r2, r3
  87361. 802364c: 0092 lsls r2, r2, #2
  87362. 802364e: 4413 add r3, r2
  87363. 8023650: 00db lsls r3, r3, #3
  87364. 8023652: b29b uxth r3, r3
  87365. 8023654: e001 b.n 802365a <dhcp_rebind+0xfe>
  87366. 8023656: f242 7310 movw r3, #10000 @ 0x2710
  87367. 802365a: 81fb strh r3, [r7, #14]
  87368. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  87369. 802365c: 89fb ldrh r3, [r7, #14]
  87370. 802365e: f203 13f3 addw r3, r3, #499 @ 0x1f3
  87371. 8023662: 4a0a ldr r2, [pc, #40] @ (802368c <dhcp_rebind+0x130>)
  87372. 8023664: fb82 1203 smull r1, r2, r2, r3
  87373. 8023668: 1152 asrs r2, r2, #5
  87374. 802366a: 17db asrs r3, r3, #31
  87375. 802366c: 1ad3 subs r3, r2, r3
  87376. 802366e: b29a uxth r2, r3
  87377. 8023670: 69bb ldr r3, [r7, #24]
  87378. 8023672: 811a strh r2, [r3, #8]
  87379. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind(): set request timeout %"U16_F" msecs\n", msecs));
  87380. return result;
  87381. 8023674: f997 301f ldrsb.w r3, [r7, #31]
  87382. }
  87383. 8023678: 4618 mov r0, r3
  87384. 802367a: 3720 adds r7, #32
  87385. 802367c: 46bd mov sp, r7
  87386. 802367e: bd80 pop {r7, pc}
  87387. 8023680: 24000058 .word 0x24000058
  87388. 8023684: 2402aff4 .word 0x2402aff4
  87389. 8023688: 08031b5c .word 0x08031b5c
  87390. 802368c: 10624dd3 .word 0x10624dd3
  87391. 08023690 <dhcp_reboot>:
  87392. *
  87393. * @param netif network interface which must reboot
  87394. */
  87395. static err_t
  87396. dhcp_reboot(struct netif *netif)
  87397. {
  87398. 8023690: b5b0 push {r4, r5, r7, lr}
  87399. 8023692: b08a sub sp, #40 @ 0x28
  87400. 8023694: af02 add r7, sp, #8
  87401. 8023696: 6078 str r0, [r7, #4]
  87402. struct dhcp *dhcp = netif_dhcp_data(netif);
  87403. 8023698: 687b ldr r3, [r7, #4]
  87404. 802369a: 6a5b ldr r3, [r3, #36] @ 0x24
  87405. 802369c: 61bb str r3, [r7, #24]
  87406. u8_t i;
  87407. struct pbuf *p_out;
  87408. u16_t options_out_len;
  87409. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot()\n"));
  87410. dhcp_set_state(dhcp, DHCP_STATE_REBOOTING);
  87411. 802369e: 2103 movs r1, #3
  87412. 80236a0: 69b8 ldr r0, [r7, #24]
  87413. 80236a2: f000 f950 bl 8023946 <dhcp_set_state>
  87414. /* create and initialize the DHCP message header */
  87415. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  87416. 80236a6: f107 030c add.w r3, r7, #12
  87417. 80236aa: 2203 movs r2, #3
  87418. 80236ac: 69b9 ldr r1, [r7, #24]
  87419. 80236ae: 6878 ldr r0, [r7, #4]
  87420. 80236b0: f000 fde2 bl 8024278 <dhcp_create_msg>
  87421. 80236b4: 6178 str r0, [r7, #20]
  87422. if (p_out != NULL) {
  87423. 80236b6: 697b ldr r3, [r7, #20]
  87424. 80236b8: 2b00 cmp r3, #0
  87425. 80236ba: d066 beq.n 802378a <dhcp_reboot+0xfa>
  87426. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  87427. 80236bc: 697b ldr r3, [r7, #20]
  87428. 80236be: 685b ldr r3, [r3, #4]
  87429. 80236c0: 613b str r3, [r7, #16]
  87430. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  87431. 80236c2: 89b8 ldrh r0, [r7, #12]
  87432. 80236c4: 693b ldr r3, [r7, #16]
  87433. 80236c6: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87434. 80236ca: 2302 movs r3, #2
  87435. 80236cc: 2239 movs r2, #57 @ 0x39
  87436. 80236ce: f000 f955 bl 802397c <dhcp_option>
  87437. 80236d2: 4603 mov r3, r0
  87438. 80236d4: 81bb strh r3, [r7, #12]
  87439. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN_MIN_REQUIRED);
  87440. 80236d6: 89b8 ldrh r0, [r7, #12]
  87441. 80236d8: 693b ldr r3, [r7, #16]
  87442. 80236da: 33f0 adds r3, #240 @ 0xf0
  87443. 80236dc: f44f 7210 mov.w r2, #576 @ 0x240
  87444. 80236e0: 4619 mov r1, r3
  87445. 80236e2: f000 f9a5 bl 8023a30 <dhcp_option_short>
  87446. 80236e6: 4603 mov r3, r0
  87447. 80236e8: 81bb strh r3, [r7, #12]
  87448. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4);
  87449. 80236ea: 89b8 ldrh r0, [r7, #12]
  87450. 80236ec: 693b ldr r3, [r7, #16]
  87451. 80236ee: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87452. 80236f2: 2304 movs r3, #4
  87453. 80236f4: 2232 movs r2, #50 @ 0x32
  87454. 80236f6: f000 f941 bl 802397c <dhcp_option>
  87455. 80236fa: 4603 mov r3, r0
  87456. 80236fc: 81bb strh r3, [r7, #12]
  87457. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  87458. 80236fe: 89bc ldrh r4, [r7, #12]
  87459. 8023700: 693b ldr r3, [r7, #16]
  87460. 8023702: f103 05f0 add.w r5, r3, #240 @ 0xf0
  87461. 8023706: 69bb ldr r3, [r7, #24]
  87462. 8023708: 69db ldr r3, [r3, #28]
  87463. 802370a: 4618 mov r0, r3
  87464. 802370c: f7f6 f8e1 bl 80198d2 <lwip_htonl>
  87465. 8023710: 4603 mov r3, r0
  87466. 8023712: 461a mov r2, r3
  87467. 8023714: 4629 mov r1, r5
  87468. 8023716: 4620 mov r0, r4
  87469. 8023718: f000 f9bc bl 8023a94 <dhcp_option_long>
  87470. 802371c: 4603 mov r3, r0
  87471. 802371e: 81bb strh r3, [r7, #12]
  87472. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  87473. 8023720: 89b8 ldrh r0, [r7, #12]
  87474. 8023722: 693b ldr r3, [r7, #16]
  87475. 8023724: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87476. 8023728: 2303 movs r3, #3
  87477. 802372a: 2237 movs r2, #55 @ 0x37
  87478. 802372c: f000 f926 bl 802397c <dhcp_option>
  87479. 8023730: 4603 mov r3, r0
  87480. 8023732: 81bb strh r3, [r7, #12]
  87481. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  87482. 8023734: 2300 movs r3, #0
  87483. 8023736: 77bb strb r3, [r7, #30]
  87484. 8023738: e00e b.n 8023758 <dhcp_reboot+0xc8>
  87485. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  87486. 802373a: 89b8 ldrh r0, [r7, #12]
  87487. 802373c: 693b ldr r3, [r7, #16]
  87488. 802373e: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87489. 8023742: 7fbb ldrb r3, [r7, #30]
  87490. 8023744: 4a28 ldr r2, [pc, #160] @ (80237e8 <dhcp_reboot+0x158>)
  87491. 8023746: 5cd3 ldrb r3, [r2, r3]
  87492. 8023748: 461a mov r2, r3
  87493. 802374a: f000 f94b bl 80239e4 <dhcp_option_byte>
  87494. 802374e: 4603 mov r3, r0
  87495. 8023750: 81bb strh r3, [r7, #12]
  87496. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  87497. 8023752: 7fbb ldrb r3, [r7, #30]
  87498. 8023754: 3301 adds r3, #1
  87499. 8023756: 77bb strb r3, [r7, #30]
  87500. 8023758: 7fbb ldrb r3, [r7, #30]
  87501. 802375a: 2b02 cmp r3, #2
  87502. 802375c: d9ed bls.n 802373a <dhcp_reboot+0xaa>
  87503. #if LWIP_NETIF_HOSTNAME
  87504. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  87505. #endif /* LWIP_NETIF_HOSTNAME */
  87506. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REBOOTING, msg_out, DHCP_REQUEST, &options_out_len);
  87507. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  87508. 802375e: 89b8 ldrh r0, [r7, #12]
  87509. 8023760: 693b ldr r3, [r7, #16]
  87510. 8023762: 33f0 adds r3, #240 @ 0xf0
  87511. 8023764: 697a ldr r2, [r7, #20]
  87512. 8023766: 4619 mov r1, r3
  87513. 8023768: f000 fe5c bl 8024424 <dhcp_option_trailer>
  87514. /* broadcast to server */
  87515. result = udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif);
  87516. 802376c: 4b1f ldr r3, [pc, #124] @ (80237ec <dhcp_reboot+0x15c>)
  87517. 802376e: 6818 ldr r0, [r3, #0]
  87518. 8023770: 687b ldr r3, [r7, #4]
  87519. 8023772: 9300 str r3, [sp, #0]
  87520. 8023774: 2343 movs r3, #67 @ 0x43
  87521. 8023776: 4a1e ldr r2, [pc, #120] @ (80237f0 <dhcp_reboot+0x160>)
  87522. 8023778: 6979 ldr r1, [r7, #20]
  87523. 802377a: f7fe fcbd bl 80220f8 <udp_sendto_if>
  87524. 802377e: 4603 mov r3, r0
  87525. 8023780: 77fb strb r3, [r7, #31]
  87526. pbuf_free(p_out);
  87527. 8023782: 6978 ldr r0, [r7, #20]
  87528. 8023784: f7f7 fd72 bl 801b26c <pbuf_free>
  87529. 8023788: e001 b.n 802378e <dhcp_reboot+0xfe>
  87530. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot: REBOOTING\n"));
  87531. } else {
  87532. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_reboot: could not allocate DHCP request\n"));
  87533. result = ERR_MEM;
  87534. 802378a: 23ff movs r3, #255 @ 0xff
  87535. 802378c: 77fb strb r3, [r7, #31]
  87536. }
  87537. if (dhcp->tries < 255) {
  87538. 802378e: 69bb ldr r3, [r7, #24]
  87539. 8023790: 799b ldrb r3, [r3, #6]
  87540. 8023792: 2bff cmp r3, #255 @ 0xff
  87541. 8023794: d005 beq.n 80237a2 <dhcp_reboot+0x112>
  87542. dhcp->tries++;
  87543. 8023796: 69bb ldr r3, [r7, #24]
  87544. 8023798: 799b ldrb r3, [r3, #6]
  87545. 802379a: 3301 adds r3, #1
  87546. 802379c: b2da uxtb r2, r3
  87547. 802379e: 69bb ldr r3, [r7, #24]
  87548. 80237a0: 719a strb r2, [r3, #6]
  87549. }
  87550. msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000);
  87551. 80237a2: 69bb ldr r3, [r7, #24]
  87552. 80237a4: 799b ldrb r3, [r3, #6]
  87553. 80237a6: 2b09 cmp r3, #9
  87554. 80237a8: d809 bhi.n 80237be <dhcp_reboot+0x12e>
  87555. 80237aa: 69bb ldr r3, [r7, #24]
  87556. 80237ac: 799b ldrb r3, [r3, #6]
  87557. 80237ae: 461a mov r2, r3
  87558. 80237b0: 0152 lsls r2, r2, #5
  87559. 80237b2: 1ad2 subs r2, r2, r3
  87560. 80237b4: 0092 lsls r2, r2, #2
  87561. 80237b6: 4413 add r3, r2
  87562. 80237b8: 00db lsls r3, r3, #3
  87563. 80237ba: b29b uxth r3, r3
  87564. 80237bc: e001 b.n 80237c2 <dhcp_reboot+0x132>
  87565. 80237be: f242 7310 movw r3, #10000 @ 0x2710
  87566. 80237c2: 81fb strh r3, [r7, #14]
  87567. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  87568. 80237c4: 89fb ldrh r3, [r7, #14]
  87569. 80237c6: f203 13f3 addw r3, r3, #499 @ 0x1f3
  87570. 80237ca: 4a0a ldr r2, [pc, #40] @ (80237f4 <dhcp_reboot+0x164>)
  87571. 80237cc: fb82 1203 smull r1, r2, r2, r3
  87572. 80237d0: 1152 asrs r2, r2, #5
  87573. 80237d2: 17db asrs r3, r3, #31
  87574. 80237d4: 1ad3 subs r3, r2, r3
  87575. 80237d6: b29a uxth r2, r3
  87576. 80237d8: 69bb ldr r3, [r7, #24]
  87577. 80237da: 811a strh r2, [r3, #8]
  87578. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot(): set request timeout %"U16_F" msecs\n", msecs));
  87579. return result;
  87580. 80237dc: f997 301f ldrsb.w r3, [r7, #31]
  87581. }
  87582. 80237e0: 4618 mov r0, r3
  87583. 80237e2: 3720 adds r7, #32
  87584. 80237e4: 46bd mov sp, r7
  87585. 80237e6: bdb0 pop {r4, r5, r7, pc}
  87586. 80237e8: 24000058 .word 0x24000058
  87587. 80237ec: 2402aff4 .word 0x2402aff4
  87588. 80237f0: 08031b5c .word 0x08031b5c
  87589. 80237f4: 10624dd3 .word 0x10624dd3
  87590. 080237f8 <dhcp_release_and_stop>:
  87591. *
  87592. * @param netif network interface
  87593. */
  87594. void
  87595. dhcp_release_and_stop(struct netif *netif)
  87596. {
  87597. 80237f8: b5b0 push {r4, r5, r7, lr}
  87598. 80237fa: b08a sub sp, #40 @ 0x28
  87599. 80237fc: af02 add r7, sp, #8
  87600. 80237fe: 6078 str r0, [r7, #4]
  87601. struct dhcp *dhcp = netif_dhcp_data(netif);
  87602. 8023800: 687b ldr r3, [r7, #4]
  87603. 8023802: 6a5b ldr r3, [r3, #36] @ 0x24
  87604. 8023804: 61fb str r3, [r7, #28]
  87605. ip_addr_t server_ip_addr;
  87606. LWIP_ASSERT_CORE_LOCKED();
  87607. 8023806: f7ed fb7b bl 8010f00 <sys_check_core_locking>
  87608. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_release_and_stop()\n"));
  87609. if (dhcp == NULL) {
  87610. 802380a: 69fb ldr r3, [r7, #28]
  87611. 802380c: 2b00 cmp r3, #0
  87612. 802380e: f000 8084 beq.w 802391a <dhcp_release_and_stop+0x122>
  87613. return;
  87614. }
  87615. /* already off? -> nothing to do */
  87616. if (dhcp->state == DHCP_STATE_OFF) {
  87617. 8023812: 69fb ldr r3, [r7, #28]
  87618. 8023814: 795b ldrb r3, [r3, #5]
  87619. 8023816: 2b00 cmp r3, #0
  87620. 8023818: f000 8081 beq.w 802391e <dhcp_release_and_stop+0x126>
  87621. return;
  87622. }
  87623. ip_addr_copy(server_ip_addr, dhcp->server_ip_addr);
  87624. 802381c: 69fb ldr r3, [r7, #28]
  87625. 802381e: 699b ldr r3, [r3, #24]
  87626. 8023820: 613b str r3, [r7, #16]
  87627. /* clean old DHCP offer */
  87628. ip_addr_set_zero_ip4(&dhcp->server_ip_addr);
  87629. 8023822: 69fb ldr r3, [r7, #28]
  87630. 8023824: 2200 movs r2, #0
  87631. 8023826: 619a str r2, [r3, #24]
  87632. ip4_addr_set_zero(&dhcp->offered_ip_addr);
  87633. 8023828: 69fb ldr r3, [r7, #28]
  87634. 802382a: 2200 movs r2, #0
  87635. 802382c: 61da str r2, [r3, #28]
  87636. ip4_addr_set_zero(&dhcp->offered_sn_mask);
  87637. 802382e: 69fb ldr r3, [r7, #28]
  87638. 8023830: 2200 movs r2, #0
  87639. 8023832: 621a str r2, [r3, #32]
  87640. ip4_addr_set_zero(&dhcp->offered_gw_addr);
  87641. 8023834: 69fb ldr r3, [r7, #28]
  87642. 8023836: 2200 movs r2, #0
  87643. 8023838: 625a str r2, [r3, #36] @ 0x24
  87644. #if LWIP_DHCP_BOOTP_FILE
  87645. ip4_addr_set_zero(&dhcp->offered_si_addr);
  87646. #endif /* LWIP_DHCP_BOOTP_FILE */
  87647. dhcp->offered_t0_lease = dhcp->offered_t1_renew = dhcp->offered_t2_rebind = 0;
  87648. 802383a: 69fb ldr r3, [r7, #28]
  87649. 802383c: 2200 movs r2, #0
  87650. 802383e: 631a str r2, [r3, #48] @ 0x30
  87651. 8023840: 69fb ldr r3, [r7, #28]
  87652. 8023842: 6b1a ldr r2, [r3, #48] @ 0x30
  87653. 8023844: 69fb ldr r3, [r7, #28]
  87654. 8023846: 62da str r2, [r3, #44] @ 0x2c
  87655. 8023848: 69fb ldr r3, [r7, #28]
  87656. 802384a: 6ada ldr r2, [r3, #44] @ 0x2c
  87657. 802384c: 69fb ldr r3, [r7, #28]
  87658. 802384e: 629a str r2, [r3, #40] @ 0x28
  87659. dhcp->t1_renew_time = dhcp->t2_rebind_time = dhcp->lease_used = dhcp->t0_timeout = 0;
  87660. 8023850: 69fb ldr r3, [r7, #28]
  87661. 8023852: 2200 movs r2, #0
  87662. 8023854: 829a strh r2, [r3, #20]
  87663. 8023856: 69fb ldr r3, [r7, #28]
  87664. 8023858: 8a9a ldrh r2, [r3, #20]
  87665. 802385a: 69fb ldr r3, [r7, #28]
  87666. 802385c: 825a strh r2, [r3, #18]
  87667. 802385e: 69fb ldr r3, [r7, #28]
  87668. 8023860: 8a5a ldrh r2, [r3, #18]
  87669. 8023862: 69fb ldr r3, [r7, #28]
  87670. 8023864: 821a strh r2, [r3, #16]
  87671. 8023866: 69fb ldr r3, [r7, #28]
  87672. 8023868: 8a1a ldrh r2, [r3, #16]
  87673. 802386a: 69fb ldr r3, [r7, #28]
  87674. 802386c: 81da strh r2, [r3, #14]
  87675. /* send release message when current IP was assigned via DHCP */
  87676. if (dhcp_supplied_address(netif)) {
  87677. 802386e: 6878 ldr r0, [r7, #4]
  87678. 8023870: f000 fe06 bl 8024480 <dhcp_supplied_address>
  87679. 8023874: 4603 mov r3, r0
  87680. 8023876: 2b00 cmp r3, #0
  87681. 8023878: d03b beq.n 80238f2 <dhcp_release_and_stop+0xfa>
  87682. /* create and initialize the DHCP message header */
  87683. struct pbuf *p_out;
  87684. u16_t options_out_len;
  87685. p_out = dhcp_create_msg(netif, dhcp, DHCP_RELEASE, &options_out_len);
  87686. 802387a: f107 030e add.w r3, r7, #14
  87687. 802387e: 2207 movs r2, #7
  87688. 8023880: 69f9 ldr r1, [r7, #28]
  87689. 8023882: 6878 ldr r0, [r7, #4]
  87690. 8023884: f000 fcf8 bl 8024278 <dhcp_create_msg>
  87691. 8023888: 61b8 str r0, [r7, #24]
  87692. if (p_out != NULL) {
  87693. 802388a: 69bb ldr r3, [r7, #24]
  87694. 802388c: 2b00 cmp r3, #0
  87695. 802388e: d030 beq.n 80238f2 <dhcp_release_and_stop+0xfa>
  87696. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  87697. 8023890: 69bb ldr r3, [r7, #24]
  87698. 8023892: 685b ldr r3, [r3, #4]
  87699. 8023894: 617b str r3, [r7, #20]
  87700. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_SERVER_ID, 4);
  87701. 8023896: 89f8 ldrh r0, [r7, #14]
  87702. 8023898: 697b ldr r3, [r7, #20]
  87703. 802389a: f103 01f0 add.w r1, r3, #240 @ 0xf0
  87704. 802389e: 2304 movs r3, #4
  87705. 80238a0: 2236 movs r2, #54 @ 0x36
  87706. 80238a2: f000 f86b bl 802397c <dhcp_option>
  87707. 80238a6: 4603 mov r3, r0
  87708. 80238a8: 81fb strh r3, [r7, #14]
  87709. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(ip_2_ip4(&server_ip_addr))));
  87710. 80238aa: 89fc ldrh r4, [r7, #14]
  87711. 80238ac: 697b ldr r3, [r7, #20]
  87712. 80238ae: f103 05f0 add.w r5, r3, #240 @ 0xf0
  87713. 80238b2: 693b ldr r3, [r7, #16]
  87714. 80238b4: 4618 mov r0, r3
  87715. 80238b6: f7f6 f80c bl 80198d2 <lwip_htonl>
  87716. 80238ba: 4603 mov r3, r0
  87717. 80238bc: 461a mov r2, r3
  87718. 80238be: 4629 mov r1, r5
  87719. 80238c0: 4620 mov r0, r4
  87720. 80238c2: f000 f8e7 bl 8023a94 <dhcp_option_long>
  87721. 80238c6: 4603 mov r3, r0
  87722. 80238c8: 81fb strh r3, [r7, #14]
  87723. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, dhcp->state, msg_out, DHCP_RELEASE, &options_out_len);
  87724. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  87725. 80238ca: 89f8 ldrh r0, [r7, #14]
  87726. 80238cc: 697b ldr r3, [r7, #20]
  87727. 80238ce: 33f0 adds r3, #240 @ 0xf0
  87728. 80238d0: 69ba ldr r2, [r7, #24]
  87729. 80238d2: 4619 mov r1, r3
  87730. 80238d4: f000 fda6 bl 8024424 <dhcp_option_trailer>
  87731. udp_sendto_if(dhcp_pcb, p_out, &server_ip_addr, LWIP_IANA_PORT_DHCP_SERVER, netif);
  87732. 80238d8: 4b13 ldr r3, [pc, #76] @ (8023928 <dhcp_release_and_stop+0x130>)
  87733. 80238da: 6818 ldr r0, [r3, #0]
  87734. 80238dc: f107 0210 add.w r2, r7, #16
  87735. 80238e0: 687b ldr r3, [r7, #4]
  87736. 80238e2: 9300 str r3, [sp, #0]
  87737. 80238e4: 2343 movs r3, #67 @ 0x43
  87738. 80238e6: 69b9 ldr r1, [r7, #24]
  87739. 80238e8: f7fe fc06 bl 80220f8 <udp_sendto_if>
  87740. pbuf_free(p_out);
  87741. 80238ec: 69b8 ldr r0, [r7, #24]
  87742. 80238ee: f7f7 fcbd bl 801b26c <pbuf_free>
  87743. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_release: could not allocate DHCP request\n"));
  87744. }
  87745. }
  87746. /* remove IP address from interface (prevents routing from selecting this interface) */
  87747. netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4);
  87748. 80238f2: 4b0e ldr r3, [pc, #56] @ (802392c <dhcp_release_and_stop+0x134>)
  87749. 80238f4: 4a0d ldr r2, [pc, #52] @ (802392c <dhcp_release_and_stop+0x134>)
  87750. 80238f6: 490d ldr r1, [pc, #52] @ (802392c <dhcp_release_and_stop+0x134>)
  87751. 80238f8: 6878 ldr r0, [r7, #4]
  87752. 80238fa: f7f6 ff6d bl 801a7d8 <netif_set_addr>
  87753. autoip_stop(netif);
  87754. dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
  87755. }
  87756. #endif /* LWIP_DHCP_AUTOIP_COOP */
  87757. dhcp_set_state(dhcp, DHCP_STATE_OFF);
  87758. 80238fe: 2100 movs r1, #0
  87759. 8023900: 69f8 ldr r0, [r7, #28]
  87760. 8023902: f000 f820 bl 8023946 <dhcp_set_state>
  87761. if (dhcp->pcb_allocated != 0) {
  87762. 8023906: 69fb ldr r3, [r7, #28]
  87763. 8023908: 791b ldrb r3, [r3, #4]
  87764. 802390a: 2b00 cmp r3, #0
  87765. 802390c: d008 beq.n 8023920 <dhcp_release_and_stop+0x128>
  87766. dhcp_dec_pcb_refcount(); /* free DHCP PCB if not needed any more */
  87767. 802390e: f7fe ff83 bl 8022818 <dhcp_dec_pcb_refcount>
  87768. dhcp->pcb_allocated = 0;
  87769. 8023912: 69fb ldr r3, [r7, #28]
  87770. 8023914: 2200 movs r2, #0
  87771. 8023916: 711a strb r2, [r3, #4]
  87772. 8023918: e002 b.n 8023920 <dhcp_release_and_stop+0x128>
  87773. return;
  87774. 802391a: bf00 nop
  87775. 802391c: e000 b.n 8023920 <dhcp_release_and_stop+0x128>
  87776. return;
  87777. 802391e: bf00 nop
  87778. }
  87779. }
  87780. 8023920: 3720 adds r7, #32
  87781. 8023922: 46bd mov sp, r7
  87782. 8023924: bdb0 pop {r4, r5, r7, pc}
  87783. 8023926: bf00 nop
  87784. 8023928: 2402aff4 .word 0x2402aff4
  87785. 802392c: 08031b58 .word 0x08031b58
  87786. 08023930 <dhcp_stop>:
  87787. * This function calls dhcp_release_and_stop() internally.
  87788. * @deprecated Use dhcp_release_and_stop() instead.
  87789. */
  87790. void
  87791. dhcp_stop(struct netif *netif)
  87792. {
  87793. 8023930: b580 push {r7, lr}
  87794. 8023932: b082 sub sp, #8
  87795. 8023934: af00 add r7, sp, #0
  87796. 8023936: 6078 str r0, [r7, #4]
  87797. dhcp_release_and_stop(netif);
  87798. 8023938: 6878 ldr r0, [r7, #4]
  87799. 802393a: f7ff ff5d bl 80237f8 <dhcp_release_and_stop>
  87800. }
  87801. 802393e: bf00 nop
  87802. 8023940: 3708 adds r7, #8
  87803. 8023942: 46bd mov sp, r7
  87804. 8023944: bd80 pop {r7, pc}
  87805. 08023946 <dhcp_set_state>:
  87806. *
  87807. * If the state changed, reset the number of tries.
  87808. */
  87809. static void
  87810. dhcp_set_state(struct dhcp *dhcp, u8_t new_state)
  87811. {
  87812. 8023946: b480 push {r7}
  87813. 8023948: b083 sub sp, #12
  87814. 802394a: af00 add r7, sp, #0
  87815. 802394c: 6078 str r0, [r7, #4]
  87816. 802394e: 460b mov r3, r1
  87817. 8023950: 70fb strb r3, [r7, #3]
  87818. if (new_state != dhcp->state) {
  87819. 8023952: 687b ldr r3, [r7, #4]
  87820. 8023954: 795b ldrb r3, [r3, #5]
  87821. 8023956: 78fa ldrb r2, [r7, #3]
  87822. 8023958: 429a cmp r2, r3
  87823. 802395a: d008 beq.n 802396e <dhcp_set_state+0x28>
  87824. dhcp->state = new_state;
  87825. 802395c: 687b ldr r3, [r7, #4]
  87826. 802395e: 78fa ldrb r2, [r7, #3]
  87827. 8023960: 715a strb r2, [r3, #5]
  87828. dhcp->tries = 0;
  87829. 8023962: 687b ldr r3, [r7, #4]
  87830. 8023964: 2200 movs r2, #0
  87831. 8023966: 719a strb r2, [r3, #6]
  87832. dhcp->request_timeout = 0;
  87833. 8023968: 687b ldr r3, [r7, #4]
  87834. 802396a: 2200 movs r2, #0
  87835. 802396c: 811a strh r2, [r3, #8]
  87836. }
  87837. }
  87838. 802396e: bf00 nop
  87839. 8023970: 370c adds r7, #12
  87840. 8023972: 46bd mov sp, r7
  87841. 8023974: f85d 7b04 ldr.w r7, [sp], #4
  87842. 8023978: 4770 bx lr
  87843. ...
  87844. 0802397c <dhcp_option>:
  87845. * DHCP message.
  87846. *
  87847. */
  87848. static u16_t
  87849. dhcp_option(u16_t options_out_len, u8_t *options, u8_t option_type, u8_t option_len)
  87850. {
  87851. 802397c: b580 push {r7, lr}
  87852. 802397e: b082 sub sp, #8
  87853. 8023980: af00 add r7, sp, #0
  87854. 8023982: 6039 str r1, [r7, #0]
  87855. 8023984: 4611 mov r1, r2
  87856. 8023986: 461a mov r2, r3
  87857. 8023988: 4603 mov r3, r0
  87858. 802398a: 80fb strh r3, [r7, #6]
  87859. 802398c: 460b mov r3, r1
  87860. 802398e: 717b strb r3, [r7, #5]
  87861. 8023990: 4613 mov r3, r2
  87862. 8023992: 713b strb r3, [r7, #4]
  87863. LWIP_ASSERT("dhcp_option: options_out_len + 2 + option_len <= DHCP_OPTIONS_LEN", options_out_len + 2U + option_len <= DHCP_OPTIONS_LEN);
  87864. 8023994: 88fa ldrh r2, [r7, #6]
  87865. 8023996: 793b ldrb r3, [r7, #4]
  87866. 8023998: 4413 add r3, r2
  87867. 802399a: 3302 adds r3, #2
  87868. 802399c: 2b44 cmp r3, #68 @ 0x44
  87869. 802399e: d906 bls.n 80239ae <dhcp_option+0x32>
  87870. 80239a0: 4b0d ldr r3, [pc, #52] @ (80239d8 <dhcp_option+0x5c>)
  87871. 80239a2: f240 529a movw r2, #1434 @ 0x59a
  87872. 80239a6: 490d ldr r1, [pc, #52] @ (80239dc <dhcp_option+0x60>)
  87873. 80239a8: 480d ldr r0, [pc, #52] @ (80239e0 <dhcp_option+0x64>)
  87874. 80239aa: f006 fed7 bl 802a75c <iprintf>
  87875. options[options_out_len++] = option_type;
  87876. 80239ae: 88fb ldrh r3, [r7, #6]
  87877. 80239b0: 1c5a adds r2, r3, #1
  87878. 80239b2: 80fa strh r2, [r7, #6]
  87879. 80239b4: 461a mov r2, r3
  87880. 80239b6: 683b ldr r3, [r7, #0]
  87881. 80239b8: 4413 add r3, r2
  87882. 80239ba: 797a ldrb r2, [r7, #5]
  87883. 80239bc: 701a strb r2, [r3, #0]
  87884. options[options_out_len++] = option_len;
  87885. 80239be: 88fb ldrh r3, [r7, #6]
  87886. 80239c0: 1c5a adds r2, r3, #1
  87887. 80239c2: 80fa strh r2, [r7, #6]
  87888. 80239c4: 461a mov r2, r3
  87889. 80239c6: 683b ldr r3, [r7, #0]
  87890. 80239c8: 4413 add r3, r2
  87891. 80239ca: 793a ldrb r2, [r7, #4]
  87892. 80239cc: 701a strb r2, [r3, #0]
  87893. return options_out_len;
  87894. 80239ce: 88fb ldrh r3, [r7, #6]
  87895. }
  87896. 80239d0: 4618 mov r0, r3
  87897. 80239d2: 3708 adds r7, #8
  87898. 80239d4: 46bd mov sp, r7
  87899. 80239d6: bd80 pop {r7, pc}
  87900. 80239d8: 08030d38 .word 0x08030d38
  87901. 80239dc: 08030ecc .word 0x08030ecc
  87902. 80239e0: 08030d98 .word 0x08030d98
  87903. 080239e4 <dhcp_option_byte>:
  87904. * Concatenate a single byte to the outgoing DHCP message.
  87905. *
  87906. */
  87907. static u16_t
  87908. dhcp_option_byte(u16_t options_out_len, u8_t *options, u8_t value)
  87909. {
  87910. 80239e4: b580 push {r7, lr}
  87911. 80239e6: b082 sub sp, #8
  87912. 80239e8: af00 add r7, sp, #0
  87913. 80239ea: 4603 mov r3, r0
  87914. 80239ec: 6039 str r1, [r7, #0]
  87915. 80239ee: 80fb strh r3, [r7, #6]
  87916. 80239f0: 4613 mov r3, r2
  87917. 80239f2: 717b strb r3, [r7, #5]
  87918. LWIP_ASSERT("dhcp_option_byte: options_out_len < DHCP_OPTIONS_LEN", options_out_len < DHCP_OPTIONS_LEN);
  87919. 80239f4: 88fb ldrh r3, [r7, #6]
  87920. 80239f6: 2b43 cmp r3, #67 @ 0x43
  87921. 80239f8: d906 bls.n 8023a08 <dhcp_option_byte+0x24>
  87922. 80239fa: 4b0a ldr r3, [pc, #40] @ (8023a24 <dhcp_option_byte+0x40>)
  87923. 80239fc: f240 52a6 movw r2, #1446 @ 0x5a6
  87924. 8023a00: 4909 ldr r1, [pc, #36] @ (8023a28 <dhcp_option_byte+0x44>)
  87925. 8023a02: 480a ldr r0, [pc, #40] @ (8023a2c <dhcp_option_byte+0x48>)
  87926. 8023a04: f006 feaa bl 802a75c <iprintf>
  87927. options[options_out_len++] = value;
  87928. 8023a08: 88fb ldrh r3, [r7, #6]
  87929. 8023a0a: 1c5a adds r2, r3, #1
  87930. 8023a0c: 80fa strh r2, [r7, #6]
  87931. 8023a0e: 461a mov r2, r3
  87932. 8023a10: 683b ldr r3, [r7, #0]
  87933. 8023a12: 4413 add r3, r2
  87934. 8023a14: 797a ldrb r2, [r7, #5]
  87935. 8023a16: 701a strb r2, [r3, #0]
  87936. return options_out_len;
  87937. 8023a18: 88fb ldrh r3, [r7, #6]
  87938. }
  87939. 8023a1a: 4618 mov r0, r3
  87940. 8023a1c: 3708 adds r7, #8
  87941. 8023a1e: 46bd mov sp, r7
  87942. 8023a20: bd80 pop {r7, pc}
  87943. 8023a22: bf00 nop
  87944. 8023a24: 08030d38 .word 0x08030d38
  87945. 8023a28: 08030f10 .word 0x08030f10
  87946. 8023a2c: 08030d98 .word 0x08030d98
  87947. 08023a30 <dhcp_option_short>:
  87948. static u16_t
  87949. dhcp_option_short(u16_t options_out_len, u8_t *options, u16_t value)
  87950. {
  87951. 8023a30: b580 push {r7, lr}
  87952. 8023a32: b082 sub sp, #8
  87953. 8023a34: af00 add r7, sp, #0
  87954. 8023a36: 4603 mov r3, r0
  87955. 8023a38: 6039 str r1, [r7, #0]
  87956. 8023a3a: 80fb strh r3, [r7, #6]
  87957. 8023a3c: 4613 mov r3, r2
  87958. 8023a3e: 80bb strh r3, [r7, #4]
  87959. LWIP_ASSERT("dhcp_option_short: options_out_len + 2 <= DHCP_OPTIONS_LEN", options_out_len + 2U <= DHCP_OPTIONS_LEN);
  87960. 8023a40: 88fb ldrh r3, [r7, #6]
  87961. 8023a42: 3302 adds r3, #2
  87962. 8023a44: 2b44 cmp r3, #68 @ 0x44
  87963. 8023a46: d906 bls.n 8023a56 <dhcp_option_short+0x26>
  87964. 8023a48: 4b0f ldr r3, [pc, #60] @ (8023a88 <dhcp_option_short+0x58>)
  87965. 8023a4a: f240 52ae movw r2, #1454 @ 0x5ae
  87966. 8023a4e: 490f ldr r1, [pc, #60] @ (8023a8c <dhcp_option_short+0x5c>)
  87967. 8023a50: 480f ldr r0, [pc, #60] @ (8023a90 <dhcp_option_short+0x60>)
  87968. 8023a52: f006 fe83 bl 802a75c <iprintf>
  87969. options[options_out_len++] = (u8_t)((value & 0xff00U) >> 8);
  87970. 8023a56: 88bb ldrh r3, [r7, #4]
  87971. 8023a58: 0a1b lsrs r3, r3, #8
  87972. 8023a5a: b29a uxth r2, r3
  87973. 8023a5c: 88fb ldrh r3, [r7, #6]
  87974. 8023a5e: 1c59 adds r1, r3, #1
  87975. 8023a60: 80f9 strh r1, [r7, #6]
  87976. 8023a62: 4619 mov r1, r3
  87977. 8023a64: 683b ldr r3, [r7, #0]
  87978. 8023a66: 440b add r3, r1
  87979. 8023a68: b2d2 uxtb r2, r2
  87980. 8023a6a: 701a strb r2, [r3, #0]
  87981. options[options_out_len++] = (u8_t) (value & 0x00ffU);
  87982. 8023a6c: 88fb ldrh r3, [r7, #6]
  87983. 8023a6e: 1c5a adds r2, r3, #1
  87984. 8023a70: 80fa strh r2, [r7, #6]
  87985. 8023a72: 461a mov r2, r3
  87986. 8023a74: 683b ldr r3, [r7, #0]
  87987. 8023a76: 4413 add r3, r2
  87988. 8023a78: 88ba ldrh r2, [r7, #4]
  87989. 8023a7a: b2d2 uxtb r2, r2
  87990. 8023a7c: 701a strb r2, [r3, #0]
  87991. return options_out_len;
  87992. 8023a7e: 88fb ldrh r3, [r7, #6]
  87993. }
  87994. 8023a80: 4618 mov r0, r3
  87995. 8023a82: 3708 adds r7, #8
  87996. 8023a84: 46bd mov sp, r7
  87997. 8023a86: bd80 pop {r7, pc}
  87998. 8023a88: 08030d38 .word 0x08030d38
  87999. 8023a8c: 08030f48 .word 0x08030f48
  88000. 8023a90: 08030d98 .word 0x08030d98
  88001. 08023a94 <dhcp_option_long>:
  88002. static u16_t
  88003. dhcp_option_long(u16_t options_out_len, u8_t *options, u32_t value)
  88004. {
  88005. 8023a94: b580 push {r7, lr}
  88006. 8023a96: b084 sub sp, #16
  88007. 8023a98: af00 add r7, sp, #0
  88008. 8023a9a: 4603 mov r3, r0
  88009. 8023a9c: 60b9 str r1, [r7, #8]
  88010. 8023a9e: 607a str r2, [r7, #4]
  88011. 8023aa0: 81fb strh r3, [r7, #14]
  88012. LWIP_ASSERT("dhcp_option_long: options_out_len + 4 <= DHCP_OPTIONS_LEN", options_out_len + 4U <= DHCP_OPTIONS_LEN);
  88013. 8023aa2: 89fb ldrh r3, [r7, #14]
  88014. 8023aa4: 3304 adds r3, #4
  88015. 8023aa6: 2b44 cmp r3, #68 @ 0x44
  88016. 8023aa8: d906 bls.n 8023ab8 <dhcp_option_long+0x24>
  88017. 8023aaa: 4b19 ldr r3, [pc, #100] @ (8023b10 <dhcp_option_long+0x7c>)
  88018. 8023aac: f240 52b7 movw r2, #1463 @ 0x5b7
  88019. 8023ab0: 4918 ldr r1, [pc, #96] @ (8023b14 <dhcp_option_long+0x80>)
  88020. 8023ab2: 4819 ldr r0, [pc, #100] @ (8023b18 <dhcp_option_long+0x84>)
  88021. 8023ab4: f006 fe52 bl 802a75c <iprintf>
  88022. options[options_out_len++] = (u8_t)((value & 0xff000000UL) >> 24);
  88023. 8023ab8: 687b ldr r3, [r7, #4]
  88024. 8023aba: 0e1a lsrs r2, r3, #24
  88025. 8023abc: 89fb ldrh r3, [r7, #14]
  88026. 8023abe: 1c59 adds r1, r3, #1
  88027. 8023ac0: 81f9 strh r1, [r7, #14]
  88028. 8023ac2: 4619 mov r1, r3
  88029. 8023ac4: 68bb ldr r3, [r7, #8]
  88030. 8023ac6: 440b add r3, r1
  88031. 8023ac8: b2d2 uxtb r2, r2
  88032. 8023aca: 701a strb r2, [r3, #0]
  88033. options[options_out_len++] = (u8_t)((value & 0x00ff0000UL) >> 16);
  88034. 8023acc: 687b ldr r3, [r7, #4]
  88035. 8023ace: 0c1a lsrs r2, r3, #16
  88036. 8023ad0: 89fb ldrh r3, [r7, #14]
  88037. 8023ad2: 1c59 adds r1, r3, #1
  88038. 8023ad4: 81f9 strh r1, [r7, #14]
  88039. 8023ad6: 4619 mov r1, r3
  88040. 8023ad8: 68bb ldr r3, [r7, #8]
  88041. 8023ada: 440b add r3, r1
  88042. 8023adc: b2d2 uxtb r2, r2
  88043. 8023ade: 701a strb r2, [r3, #0]
  88044. options[options_out_len++] = (u8_t)((value & 0x0000ff00UL) >> 8);
  88045. 8023ae0: 687b ldr r3, [r7, #4]
  88046. 8023ae2: 0a1a lsrs r2, r3, #8
  88047. 8023ae4: 89fb ldrh r3, [r7, #14]
  88048. 8023ae6: 1c59 adds r1, r3, #1
  88049. 8023ae8: 81f9 strh r1, [r7, #14]
  88050. 8023aea: 4619 mov r1, r3
  88051. 8023aec: 68bb ldr r3, [r7, #8]
  88052. 8023aee: 440b add r3, r1
  88053. 8023af0: b2d2 uxtb r2, r2
  88054. 8023af2: 701a strb r2, [r3, #0]
  88055. options[options_out_len++] = (u8_t)((value & 0x000000ffUL));
  88056. 8023af4: 89fb ldrh r3, [r7, #14]
  88057. 8023af6: 1c5a adds r2, r3, #1
  88058. 8023af8: 81fa strh r2, [r7, #14]
  88059. 8023afa: 461a mov r2, r3
  88060. 8023afc: 68bb ldr r3, [r7, #8]
  88061. 8023afe: 4413 add r3, r2
  88062. 8023b00: 687a ldr r2, [r7, #4]
  88063. 8023b02: b2d2 uxtb r2, r2
  88064. 8023b04: 701a strb r2, [r3, #0]
  88065. return options_out_len;
  88066. 8023b06: 89fb ldrh r3, [r7, #14]
  88067. }
  88068. 8023b08: 4618 mov r0, r3
  88069. 8023b0a: 3710 adds r7, #16
  88070. 8023b0c: 46bd mov sp, r7
  88071. 8023b0e: bd80 pop {r7, pc}
  88072. 8023b10: 08030d38 .word 0x08030d38
  88073. 8023b14: 08030f84 .word 0x08030f84
  88074. 8023b18: 08030d98 .word 0x08030d98
  88075. 08023b1c <dhcp_parse_reply>:
  88076. * use that further on.
  88077. *
  88078. */
  88079. static err_t
  88080. dhcp_parse_reply(struct pbuf *p, struct dhcp *dhcp)
  88081. {
  88082. 8023b1c: b580 push {r7, lr}
  88083. 8023b1e: b092 sub sp, #72 @ 0x48
  88084. 8023b20: af00 add r7, sp, #0
  88085. 8023b22: 6078 str r0, [r7, #4]
  88086. 8023b24: 6039 str r1, [r7, #0]
  88087. u16_t offset;
  88088. u16_t offset_max;
  88089. u16_t options_idx;
  88090. u16_t options_idx_max;
  88091. struct pbuf *q;
  88092. int parse_file_as_options = 0;
  88093. 8023b26: 2300 movs r3, #0
  88094. 8023b28: 633b str r3, [r7, #48] @ 0x30
  88095. int parse_sname_as_options = 0;
  88096. 8023b2a: 2300 movs r3, #0
  88097. 8023b2c: 62fb str r3, [r7, #44] @ 0x2c
  88098. #endif
  88099. LWIP_UNUSED_ARG(dhcp);
  88100. /* clear received options */
  88101. dhcp_clear_all_options(dhcp);
  88102. 8023b2e: 2208 movs r2, #8
  88103. 8023b30: 2100 movs r1, #0
  88104. 8023b32: 48b8 ldr r0, [pc, #736] @ (8023e14 <dhcp_parse_reply+0x2f8>)
  88105. 8023b34: f006 ffa4 bl 802aa80 <memset>
  88106. /* check that beginning of dhcp_msg (up to and including chaddr) is in first pbuf */
  88107. if (p->len < DHCP_SNAME_OFS) {
  88108. 8023b38: 687b ldr r3, [r7, #4]
  88109. 8023b3a: 895b ldrh r3, [r3, #10]
  88110. 8023b3c: 2b2b cmp r3, #43 @ 0x2b
  88111. 8023b3e: d802 bhi.n 8023b46 <dhcp_parse_reply+0x2a>
  88112. return ERR_BUF;
  88113. 8023b40: f06f 0301 mvn.w r3, #1
  88114. 8023b44: e2b8 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88115. }
  88116. msg_in = (struct dhcp_msg *)p->payload;
  88117. 8023b46: 687b ldr r3, [r7, #4]
  88118. 8023b48: 685b ldr r3, [r3, #4]
  88119. 8023b4a: 61fb str r3, [r7, #28]
  88120. #endif /* LWIP_DHCP_BOOTP_FILE */
  88121. /* parse options */
  88122. /* start with options field */
  88123. options_idx = DHCP_OPTIONS_OFS;
  88124. 8023b4c: 23f0 movs r3, #240 @ 0xf0
  88125. 8023b4e: 87bb strh r3, [r7, #60] @ 0x3c
  88126. /* parse options to the end of the received packet */
  88127. options_idx_max = p->tot_len;
  88128. 8023b50: 687b ldr r3, [r7, #4]
  88129. 8023b52: 891b ldrh r3, [r3, #8]
  88130. 8023b54: 877b strh r3, [r7, #58] @ 0x3a
  88131. again:
  88132. q = p;
  88133. 8023b56: 687b ldr r3, [r7, #4]
  88134. 8023b58: 637b str r3, [r7, #52] @ 0x34
  88135. while ((q != NULL) && (options_idx >= q->len)) {
  88136. 8023b5a: e00c b.n 8023b76 <dhcp_parse_reply+0x5a>
  88137. options_idx = (u16_t)(options_idx - q->len);
  88138. 8023b5c: 6b7b ldr r3, [r7, #52] @ 0x34
  88139. 8023b5e: 895b ldrh r3, [r3, #10]
  88140. 8023b60: 8fba ldrh r2, [r7, #60] @ 0x3c
  88141. 8023b62: 1ad3 subs r3, r2, r3
  88142. 8023b64: 87bb strh r3, [r7, #60] @ 0x3c
  88143. options_idx_max = (u16_t)(options_idx_max - q->len);
  88144. 8023b66: 6b7b ldr r3, [r7, #52] @ 0x34
  88145. 8023b68: 895b ldrh r3, [r3, #10]
  88146. 8023b6a: 8f7a ldrh r2, [r7, #58] @ 0x3a
  88147. 8023b6c: 1ad3 subs r3, r2, r3
  88148. 8023b6e: 877b strh r3, [r7, #58] @ 0x3a
  88149. q = q->next;
  88150. 8023b70: 6b7b ldr r3, [r7, #52] @ 0x34
  88151. 8023b72: 681b ldr r3, [r3, #0]
  88152. 8023b74: 637b str r3, [r7, #52] @ 0x34
  88153. while ((q != NULL) && (options_idx >= q->len)) {
  88154. 8023b76: 6b7b ldr r3, [r7, #52] @ 0x34
  88155. 8023b78: 2b00 cmp r3, #0
  88156. 8023b7a: d004 beq.n 8023b86 <dhcp_parse_reply+0x6a>
  88157. 8023b7c: 6b7b ldr r3, [r7, #52] @ 0x34
  88158. 8023b7e: 895b ldrh r3, [r3, #10]
  88159. 8023b80: 8fba ldrh r2, [r7, #60] @ 0x3c
  88160. 8023b82: 429a cmp r2, r3
  88161. 8023b84: d2ea bcs.n 8023b5c <dhcp_parse_reply+0x40>
  88162. }
  88163. if (q == NULL) {
  88164. 8023b86: 6b7b ldr r3, [r7, #52] @ 0x34
  88165. 8023b88: 2b00 cmp r3, #0
  88166. 8023b8a: d102 bne.n 8023b92 <dhcp_parse_reply+0x76>
  88167. return ERR_BUF;
  88168. 8023b8c: f06f 0301 mvn.w r3, #1
  88169. 8023b90: e292 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88170. }
  88171. offset = options_idx;
  88172. 8023b92: 8fbb ldrh r3, [r7, #60] @ 0x3c
  88173. 8023b94: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  88174. offset_max = options_idx_max;
  88175. 8023b98: 8f7b ldrh r3, [r7, #58] @ 0x3a
  88176. 8023b9a: 87fb strh r3, [r7, #62] @ 0x3e
  88177. options = (u8_t *)q->payload;
  88178. 8023b9c: 6b7b ldr r3, [r7, #52] @ 0x34
  88179. 8023b9e: 685b ldr r3, [r3, #4]
  88180. 8023ba0: 643b str r3, [r7, #64] @ 0x40
  88181. /* at least 1 byte to read and no end marker, then at least 3 bytes to read? */
  88182. while ((q != NULL) && (offset < offset_max) && (options[offset] != DHCP_OPTION_END)) {
  88183. 8023ba2: e247 b.n 8024034 <dhcp_parse_reply+0x518>
  88184. u8_t op = options[offset];
  88185. 8023ba4: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  88186. 8023ba8: 6c3a ldr r2, [r7, #64] @ 0x40
  88187. 8023baa: 4413 add r3, r2
  88188. 8023bac: 781b ldrb r3, [r3, #0]
  88189. 8023bae: 76fb strb r3, [r7, #27]
  88190. u8_t len;
  88191. u8_t decode_len = 0;
  88192. 8023bb0: 2300 movs r3, #0
  88193. 8023bb2: f887 302a strb.w r3, [r7, #42] @ 0x2a
  88194. int decode_idx = -1;
  88195. 8023bb6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  88196. 8023bba: 627b str r3, [r7, #36] @ 0x24
  88197. u16_t val_offset = (u16_t)(offset + 2);
  88198. 8023bbc: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  88199. 8023bc0: 3302 adds r3, #2
  88200. 8023bc2: 847b strh r3, [r7, #34] @ 0x22
  88201. if (val_offset < offset) {
  88202. 8023bc4: 8c7a ldrh r2, [r7, #34] @ 0x22
  88203. 8023bc6: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  88204. 8023bca: 429a cmp r2, r3
  88205. 8023bcc: d202 bcs.n 8023bd4 <dhcp_parse_reply+0xb8>
  88206. /* overflow */
  88207. return ERR_BUF;
  88208. 8023bce: f06f 0301 mvn.w r3, #1
  88209. 8023bd2: e271 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88210. }
  88211. /* len byte might be in the next pbuf */
  88212. if ((offset + 1) < q->len) {
  88213. 8023bd4: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  88214. 8023bd8: 3301 adds r3, #1
  88215. 8023bda: 6b7a ldr r2, [r7, #52] @ 0x34
  88216. 8023bdc: 8952 ldrh r2, [r2, #10]
  88217. 8023bde: 4293 cmp r3, r2
  88218. 8023be0: da08 bge.n 8023bf4 <dhcp_parse_reply+0xd8>
  88219. len = options[offset + 1];
  88220. 8023be2: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  88221. 8023be6: 3301 adds r3, #1
  88222. 8023be8: 6c3a ldr r2, [r7, #64] @ 0x40
  88223. 8023bea: 4413 add r3, r2
  88224. 8023bec: 781b ldrb r3, [r3, #0]
  88225. 8023bee: f887 302b strb.w r3, [r7, #43] @ 0x2b
  88226. 8023bf2: e00b b.n 8023c0c <dhcp_parse_reply+0xf0>
  88227. } else {
  88228. len = (q->next != NULL ? ((u8_t *)q->next->payload)[0] : 0);
  88229. 8023bf4: 6b7b ldr r3, [r7, #52] @ 0x34
  88230. 8023bf6: 681b ldr r3, [r3, #0]
  88231. 8023bf8: 2b00 cmp r3, #0
  88232. 8023bfa: d004 beq.n 8023c06 <dhcp_parse_reply+0xea>
  88233. 8023bfc: 6b7b ldr r3, [r7, #52] @ 0x34
  88234. 8023bfe: 681b ldr r3, [r3, #0]
  88235. 8023c00: 685b ldr r3, [r3, #4]
  88236. 8023c02: 781b ldrb r3, [r3, #0]
  88237. 8023c04: e000 b.n 8023c08 <dhcp_parse_reply+0xec>
  88238. 8023c06: 2300 movs r3, #0
  88239. 8023c08: f887 302b strb.w r3, [r7, #43] @ 0x2b
  88240. }
  88241. /* LWIP_DEBUGF(DHCP_DEBUG, ("msg_offset=%"U16_F", q->len=%"U16_F, msg_offset, q->len)); */
  88242. decode_len = len;
  88243. 8023c0c: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  88244. 8023c10: f887 302a strb.w r3, [r7, #42] @ 0x2a
  88245. switch (op) {
  88246. 8023c14: 7efb ldrb r3, [r7, #27]
  88247. 8023c16: 2b3b cmp r3, #59 @ 0x3b
  88248. 8023c18: f200 812c bhi.w 8023e74 <dhcp_parse_reply+0x358>
  88249. 8023c1c: a201 add r2, pc, #4 @ (adr r2, 8023c24 <dhcp_parse_reply+0x108>)
  88250. 8023c1e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  88251. 8023c22: bf00 nop
  88252. 8023c24: 08023d15 .word 0x08023d15
  88253. 8023c28: 08023d25 .word 0x08023d25
  88254. 8023c2c: 08023e75 .word 0x08023e75
  88255. 8023c30: 08023d47 .word 0x08023d47
  88256. 8023c34: 08023e75 .word 0x08023e75
  88257. 8023c38: 08023e75 .word 0x08023e75
  88258. 8023c3c: 08023e75 .word 0x08023e75
  88259. 8023c40: 08023e75 .word 0x08023e75
  88260. 8023c44: 08023e75 .word 0x08023e75
  88261. 8023c48: 08023e75 .word 0x08023e75
  88262. 8023c4c: 08023e75 .word 0x08023e75
  88263. 8023c50: 08023e75 .word 0x08023e75
  88264. 8023c54: 08023e75 .word 0x08023e75
  88265. 8023c58: 08023e75 .word 0x08023e75
  88266. 8023c5c: 08023e75 .word 0x08023e75
  88267. 8023c60: 08023e75 .word 0x08023e75
  88268. 8023c64: 08023e75 .word 0x08023e75
  88269. 8023c68: 08023e75 .word 0x08023e75
  88270. 8023c6c: 08023e75 .word 0x08023e75
  88271. 8023c70: 08023e75 .word 0x08023e75
  88272. 8023c74: 08023e75 .word 0x08023e75
  88273. 8023c78: 08023e75 .word 0x08023e75
  88274. 8023c7c: 08023e75 .word 0x08023e75
  88275. 8023c80: 08023e75 .word 0x08023e75
  88276. 8023c84: 08023e75 .word 0x08023e75
  88277. 8023c88: 08023e75 .word 0x08023e75
  88278. 8023c8c: 08023e75 .word 0x08023e75
  88279. 8023c90: 08023e75 .word 0x08023e75
  88280. 8023c94: 08023e75 .word 0x08023e75
  88281. 8023c98: 08023e75 .word 0x08023e75
  88282. 8023c9c: 08023e75 .word 0x08023e75
  88283. 8023ca0: 08023e75 .word 0x08023e75
  88284. 8023ca4: 08023e75 .word 0x08023e75
  88285. 8023ca8: 08023e75 .word 0x08023e75
  88286. 8023cac: 08023e75 .word 0x08023e75
  88287. 8023cb0: 08023e75 .word 0x08023e75
  88288. 8023cb4: 08023e75 .word 0x08023e75
  88289. 8023cb8: 08023e75 .word 0x08023e75
  88290. 8023cbc: 08023e75 .word 0x08023e75
  88291. 8023cc0: 08023e75 .word 0x08023e75
  88292. 8023cc4: 08023e75 .word 0x08023e75
  88293. 8023cc8: 08023e75 .word 0x08023e75
  88294. 8023ccc: 08023e75 .word 0x08023e75
  88295. 8023cd0: 08023e75 .word 0x08023e75
  88296. 8023cd4: 08023e75 .word 0x08023e75
  88297. 8023cd8: 08023e75 .word 0x08023e75
  88298. 8023cdc: 08023e75 .word 0x08023e75
  88299. 8023ce0: 08023e75 .word 0x08023e75
  88300. 8023ce4: 08023e75 .word 0x08023e75
  88301. 8023ce8: 08023e75 .word 0x08023e75
  88302. 8023cec: 08023e75 .word 0x08023e75
  88303. 8023cf0: 08023d73 .word 0x08023d73
  88304. 8023cf4: 08023d95 .word 0x08023d95
  88305. 8023cf8: 08023dd1 .word 0x08023dd1
  88306. 8023cfc: 08023df3 .word 0x08023df3
  88307. 8023d00: 08023e75 .word 0x08023e75
  88308. 8023d04: 08023e75 .word 0x08023e75
  88309. 8023d08: 08023e75 .word 0x08023e75
  88310. 8023d0c: 08023e31 .word 0x08023e31
  88311. 8023d10: 08023e53 .word 0x08023e53
  88312. /* case(DHCP_OPTION_END): handled above */
  88313. case (DHCP_OPTION_PAD):
  88314. /* special option: no len encoded */
  88315. decode_len = len = 0;
  88316. 8023d14: 2300 movs r3, #0
  88317. 8023d16: f887 302b strb.w r3, [r7, #43] @ 0x2b
  88318. 8023d1a: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  88319. 8023d1e: f887 302a strb.w r3, [r7, #42] @ 0x2a
  88320. /* will be increased below */
  88321. break;
  88322. 8023d22: e0ab b.n 8023e7c <dhcp_parse_reply+0x360>
  88323. case (DHCP_OPTION_SUBNET_MASK):
  88324. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  88325. 8023d24: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  88326. 8023d28: 2b04 cmp r3, #4
  88327. 8023d2a: d009 beq.n 8023d40 <dhcp_parse_reply+0x224>
  88328. 8023d2c: 4b3a ldr r3, [pc, #232] @ (8023e18 <dhcp_parse_reply+0x2fc>)
  88329. 8023d2e: f240 622e movw r2, #1582 @ 0x62e
  88330. 8023d32: 493a ldr r1, [pc, #232] @ (8023e1c <dhcp_parse_reply+0x300>)
  88331. 8023d34: 483a ldr r0, [pc, #232] @ (8023e20 <dhcp_parse_reply+0x304>)
  88332. 8023d36: f006 fd11 bl 802a75c <iprintf>
  88333. 8023d3a: f06f 0305 mvn.w r3, #5
  88334. 8023d3e: e1bb b.n 80240b8 <dhcp_parse_reply+0x59c>
  88335. decode_idx = DHCP_OPTION_IDX_SUBNET_MASK;
  88336. 8023d40: 2306 movs r3, #6
  88337. 8023d42: 627b str r3, [r7, #36] @ 0x24
  88338. break;
  88339. 8023d44: e09a b.n 8023e7c <dhcp_parse_reply+0x360>
  88340. case (DHCP_OPTION_ROUTER):
  88341. decode_len = 4; /* only copy the first given router */
  88342. 8023d46: 2304 movs r3, #4
  88343. 8023d48: f887 302a strb.w r3, [r7, #42] @ 0x2a
  88344. LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;);
  88345. 8023d4c: f897 202b ldrb.w r2, [r7, #43] @ 0x2b
  88346. 8023d50: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  88347. 8023d54: 429a cmp r2, r3
  88348. 8023d56: d209 bcs.n 8023d6c <dhcp_parse_reply+0x250>
  88349. 8023d58: 4b2f ldr r3, [pc, #188] @ (8023e18 <dhcp_parse_reply+0x2fc>)
  88350. 8023d5a: f240 6233 movw r2, #1587 @ 0x633
  88351. 8023d5e: 4931 ldr r1, [pc, #196] @ (8023e24 <dhcp_parse_reply+0x308>)
  88352. 8023d60: 482f ldr r0, [pc, #188] @ (8023e20 <dhcp_parse_reply+0x304>)
  88353. 8023d62: f006 fcfb bl 802a75c <iprintf>
  88354. 8023d66: f06f 0305 mvn.w r3, #5
  88355. 8023d6a: e1a5 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88356. decode_idx = DHCP_OPTION_IDX_ROUTER;
  88357. 8023d6c: 2307 movs r3, #7
  88358. 8023d6e: 627b str r3, [r7, #36] @ 0x24
  88359. break;
  88360. 8023d70: e084 b.n 8023e7c <dhcp_parse_reply+0x360>
  88361. LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;);
  88362. decode_idx = DHCP_OPTION_IDX_DNS_SERVER;
  88363. break;
  88364. #endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */
  88365. case (DHCP_OPTION_LEASE_TIME):
  88366. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  88367. 8023d72: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  88368. 8023d76: 2b04 cmp r3, #4
  88369. 8023d78: d009 beq.n 8023d8e <dhcp_parse_reply+0x272>
  88370. 8023d7a: 4b27 ldr r3, [pc, #156] @ (8023e18 <dhcp_parse_reply+0x2fc>)
  88371. 8023d7c: f240 6241 movw r2, #1601 @ 0x641
  88372. 8023d80: 4926 ldr r1, [pc, #152] @ (8023e1c <dhcp_parse_reply+0x300>)
  88373. 8023d82: 4827 ldr r0, [pc, #156] @ (8023e20 <dhcp_parse_reply+0x304>)
  88374. 8023d84: f006 fcea bl 802a75c <iprintf>
  88375. 8023d88: f06f 0305 mvn.w r3, #5
  88376. 8023d8c: e194 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88377. decode_idx = DHCP_OPTION_IDX_LEASE_TIME;
  88378. 8023d8e: 2303 movs r3, #3
  88379. 8023d90: 627b str r3, [r7, #36] @ 0x24
  88380. break;
  88381. 8023d92: e073 b.n 8023e7c <dhcp_parse_reply+0x360>
  88382. LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;);
  88383. decode_idx = DHCP_OPTION_IDX_NTP_SERVER;
  88384. break;
  88385. #endif /* LWIP_DHCP_GET_NTP_SRV*/
  88386. case (DHCP_OPTION_OVERLOAD):
  88387. LWIP_ERROR("len == 1", len == 1, return ERR_VAL;);
  88388. 8023d94: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  88389. 8023d98: 2b01 cmp r3, #1
  88390. 8023d9a: d009 beq.n 8023db0 <dhcp_parse_reply+0x294>
  88391. 8023d9c: 4b1e ldr r3, [pc, #120] @ (8023e18 <dhcp_parse_reply+0x2fc>)
  88392. 8023d9e: f240 624f movw r2, #1615 @ 0x64f
  88393. 8023da2: 4921 ldr r1, [pc, #132] @ (8023e28 <dhcp_parse_reply+0x30c>)
  88394. 8023da4: 481e ldr r0, [pc, #120] @ (8023e20 <dhcp_parse_reply+0x304>)
  88395. 8023da6: f006 fcd9 bl 802a75c <iprintf>
  88396. 8023daa: f06f 0305 mvn.w r3, #5
  88397. 8023dae: e183 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88398. /* decode overload only in options, not in file/sname: invalid packet */
  88399. LWIP_ERROR("overload in file/sname", options_idx == DHCP_OPTIONS_OFS, return ERR_VAL;);
  88400. 8023db0: 8fbb ldrh r3, [r7, #60] @ 0x3c
  88401. 8023db2: 2bf0 cmp r3, #240 @ 0xf0
  88402. 8023db4: d009 beq.n 8023dca <dhcp_parse_reply+0x2ae>
  88403. 8023db6: 4b18 ldr r3, [pc, #96] @ (8023e18 <dhcp_parse_reply+0x2fc>)
  88404. 8023db8: f240 6251 movw r2, #1617 @ 0x651
  88405. 8023dbc: 491b ldr r1, [pc, #108] @ (8023e2c <dhcp_parse_reply+0x310>)
  88406. 8023dbe: 4818 ldr r0, [pc, #96] @ (8023e20 <dhcp_parse_reply+0x304>)
  88407. 8023dc0: f006 fccc bl 802a75c <iprintf>
  88408. 8023dc4: f06f 0305 mvn.w r3, #5
  88409. 8023dc8: e176 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88410. decode_idx = DHCP_OPTION_IDX_OVERLOAD;
  88411. 8023dca: 2300 movs r3, #0
  88412. 8023dcc: 627b str r3, [r7, #36] @ 0x24
  88413. break;
  88414. 8023dce: e055 b.n 8023e7c <dhcp_parse_reply+0x360>
  88415. case (DHCP_OPTION_MESSAGE_TYPE):
  88416. LWIP_ERROR("len == 1", len == 1, return ERR_VAL;);
  88417. 8023dd0: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  88418. 8023dd4: 2b01 cmp r3, #1
  88419. 8023dd6: d009 beq.n 8023dec <dhcp_parse_reply+0x2d0>
  88420. 8023dd8: 4b0f ldr r3, [pc, #60] @ (8023e18 <dhcp_parse_reply+0x2fc>)
  88421. 8023dda: f240 6255 movw r2, #1621 @ 0x655
  88422. 8023dde: 4912 ldr r1, [pc, #72] @ (8023e28 <dhcp_parse_reply+0x30c>)
  88423. 8023de0: 480f ldr r0, [pc, #60] @ (8023e20 <dhcp_parse_reply+0x304>)
  88424. 8023de2: f006 fcbb bl 802a75c <iprintf>
  88425. 8023de6: f06f 0305 mvn.w r3, #5
  88426. 8023dea: e165 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88427. decode_idx = DHCP_OPTION_IDX_MSG_TYPE;
  88428. 8023dec: 2301 movs r3, #1
  88429. 8023dee: 627b str r3, [r7, #36] @ 0x24
  88430. break;
  88431. 8023df0: e044 b.n 8023e7c <dhcp_parse_reply+0x360>
  88432. case (DHCP_OPTION_SERVER_ID):
  88433. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  88434. 8023df2: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  88435. 8023df6: 2b04 cmp r3, #4
  88436. 8023df8: d009 beq.n 8023e0e <dhcp_parse_reply+0x2f2>
  88437. 8023dfa: 4b07 ldr r3, [pc, #28] @ (8023e18 <dhcp_parse_reply+0x2fc>)
  88438. 8023dfc: f240 6259 movw r2, #1625 @ 0x659
  88439. 8023e00: 4906 ldr r1, [pc, #24] @ (8023e1c <dhcp_parse_reply+0x300>)
  88440. 8023e02: 4807 ldr r0, [pc, #28] @ (8023e20 <dhcp_parse_reply+0x304>)
  88441. 8023e04: f006 fcaa bl 802a75c <iprintf>
  88442. 8023e08: f06f 0305 mvn.w r3, #5
  88443. 8023e0c: e154 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88444. decode_idx = DHCP_OPTION_IDX_SERVER_ID;
  88445. 8023e0e: 2302 movs r3, #2
  88446. 8023e10: 627b str r3, [r7, #36] @ 0x24
  88447. break;
  88448. 8023e12: e033 b.n 8023e7c <dhcp_parse_reply+0x360>
  88449. 8023e14: 2402afec .word 0x2402afec
  88450. 8023e18: 08030d38 .word 0x08030d38
  88451. 8023e1c: 08030fc0 .word 0x08030fc0
  88452. 8023e20: 08030d98 .word 0x08030d98
  88453. 8023e24: 08030fcc .word 0x08030fcc
  88454. 8023e28: 08030fe0 .word 0x08030fe0
  88455. 8023e2c: 08030fec .word 0x08030fec
  88456. case (DHCP_OPTION_T1):
  88457. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  88458. 8023e30: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  88459. 8023e34: 2b04 cmp r3, #4
  88460. 8023e36: d009 beq.n 8023e4c <dhcp_parse_reply+0x330>
  88461. 8023e38: 4ba1 ldr r3, [pc, #644] @ (80240c0 <dhcp_parse_reply+0x5a4>)
  88462. 8023e3a: f240 625d movw r2, #1629 @ 0x65d
  88463. 8023e3e: 49a1 ldr r1, [pc, #644] @ (80240c4 <dhcp_parse_reply+0x5a8>)
  88464. 8023e40: 48a1 ldr r0, [pc, #644] @ (80240c8 <dhcp_parse_reply+0x5ac>)
  88465. 8023e42: f006 fc8b bl 802a75c <iprintf>
  88466. 8023e46: f06f 0305 mvn.w r3, #5
  88467. 8023e4a: e135 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88468. decode_idx = DHCP_OPTION_IDX_T1;
  88469. 8023e4c: 2304 movs r3, #4
  88470. 8023e4e: 627b str r3, [r7, #36] @ 0x24
  88471. break;
  88472. 8023e50: e014 b.n 8023e7c <dhcp_parse_reply+0x360>
  88473. case (DHCP_OPTION_T2):
  88474. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  88475. 8023e52: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  88476. 8023e56: 2b04 cmp r3, #4
  88477. 8023e58: d009 beq.n 8023e6e <dhcp_parse_reply+0x352>
  88478. 8023e5a: 4b99 ldr r3, [pc, #612] @ (80240c0 <dhcp_parse_reply+0x5a4>)
  88479. 8023e5c: f240 6261 movw r2, #1633 @ 0x661
  88480. 8023e60: 4998 ldr r1, [pc, #608] @ (80240c4 <dhcp_parse_reply+0x5a8>)
  88481. 8023e62: 4899 ldr r0, [pc, #612] @ (80240c8 <dhcp_parse_reply+0x5ac>)
  88482. 8023e64: f006 fc7a bl 802a75c <iprintf>
  88483. 8023e68: f06f 0305 mvn.w r3, #5
  88484. 8023e6c: e124 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88485. decode_idx = DHCP_OPTION_IDX_T2;
  88486. 8023e6e: 2305 movs r3, #5
  88487. 8023e70: 627b str r3, [r7, #36] @ 0x24
  88488. break;
  88489. 8023e72: e003 b.n 8023e7c <dhcp_parse_reply+0x360>
  88490. default:
  88491. decode_len = 0;
  88492. 8023e74: 2300 movs r3, #0
  88493. 8023e76: f887 302a strb.w r3, [r7, #42] @ 0x2a
  88494. LWIP_DEBUGF(DHCP_DEBUG, ("skipping option %"U16_F" in options\n", (u16_t)op));
  88495. LWIP_HOOK_DHCP_PARSE_OPTION(ip_current_netif(), dhcp, dhcp->state, msg_in,
  88496. dhcp_option_given(dhcp, DHCP_OPTION_IDX_MSG_TYPE) ? (u8_t)dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_MSG_TYPE) : 0,
  88497. op, len, q, val_offset);
  88498. break;
  88499. 8023e7a: bf00 nop
  88500. }
  88501. if (op == DHCP_OPTION_PAD) {
  88502. 8023e7c: 7efb ldrb r3, [r7, #27]
  88503. 8023e7e: 2b00 cmp r3, #0
  88504. 8023e80: d105 bne.n 8023e8e <dhcp_parse_reply+0x372>
  88505. offset++;
  88506. 8023e82: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  88507. 8023e86: 3301 adds r3, #1
  88508. 8023e88: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  88509. 8023e8c: e0a4 b.n 8023fd8 <dhcp_parse_reply+0x4bc>
  88510. } else {
  88511. if (offset + len + 2 > 0xFFFF) {
  88512. 8023e8e: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  88513. 8023e92: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  88514. 8023e96: 4413 add r3, r2
  88515. 8023e98: f64f 72fd movw r2, #65533 @ 0xfffd
  88516. 8023e9c: 4293 cmp r3, r2
  88517. 8023e9e: dd02 ble.n 8023ea6 <dhcp_parse_reply+0x38a>
  88518. /* overflow */
  88519. return ERR_BUF;
  88520. 8023ea0: f06f 0301 mvn.w r3, #1
  88521. 8023ea4: e108 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88522. }
  88523. offset = (u16_t)(offset + len + 2);
  88524. 8023ea6: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  88525. 8023eaa: b29a uxth r2, r3
  88526. 8023eac: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  88527. 8023eb0: 4413 add r3, r2
  88528. 8023eb2: b29b uxth r3, r3
  88529. 8023eb4: 3302 adds r3, #2
  88530. 8023eb6: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  88531. if (decode_len > 0) {
  88532. 8023eba: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  88533. 8023ebe: 2b00 cmp r3, #0
  88534. 8023ec0: f000 808a beq.w 8023fd8 <dhcp_parse_reply+0x4bc>
  88535. u32_t value = 0;
  88536. 8023ec4: 2300 movs r3, #0
  88537. 8023ec6: 60fb str r3, [r7, #12]
  88538. u16_t copy_len;
  88539. decode_next:
  88540. LWIP_ASSERT("check decode_idx", decode_idx >= 0 && decode_idx < DHCP_OPTION_IDX_MAX);
  88541. 8023ec8: 6a7b ldr r3, [r7, #36] @ 0x24
  88542. 8023eca: 2b00 cmp r3, #0
  88543. 8023ecc: db02 blt.n 8023ed4 <dhcp_parse_reply+0x3b8>
  88544. 8023ece: 6a7b ldr r3, [r7, #36] @ 0x24
  88545. 8023ed0: 2b07 cmp r3, #7
  88546. 8023ed2: dd06 ble.n 8023ee2 <dhcp_parse_reply+0x3c6>
  88547. 8023ed4: 4b7a ldr r3, [pc, #488] @ (80240c0 <dhcp_parse_reply+0x5a4>)
  88548. 8023ed6: f44f 62cf mov.w r2, #1656 @ 0x678
  88549. 8023eda: 497c ldr r1, [pc, #496] @ (80240cc <dhcp_parse_reply+0x5b0>)
  88550. 8023edc: 487a ldr r0, [pc, #488] @ (80240c8 <dhcp_parse_reply+0x5ac>)
  88551. 8023ede: f006 fc3d bl 802a75c <iprintf>
  88552. if (!dhcp_option_given(dhcp, decode_idx)) {
  88553. 8023ee2: 4a7b ldr r2, [pc, #492] @ (80240d0 <dhcp_parse_reply+0x5b4>)
  88554. 8023ee4: 6a7b ldr r3, [r7, #36] @ 0x24
  88555. 8023ee6: 4413 add r3, r2
  88556. 8023ee8: 781b ldrb r3, [r3, #0]
  88557. 8023eea: 2b00 cmp r3, #0
  88558. 8023eec: d174 bne.n 8023fd8 <dhcp_parse_reply+0x4bc>
  88559. copy_len = LWIP_MIN(decode_len, 4);
  88560. 8023eee: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  88561. 8023ef2: 2b04 cmp r3, #4
  88562. 8023ef4: bf28 it cs
  88563. 8023ef6: 2304 movcs r3, #4
  88564. 8023ef8: b2db uxtb r3, r3
  88565. 8023efa: 833b strh r3, [r7, #24]
  88566. if (pbuf_copy_partial(q, &value, copy_len, val_offset) != copy_len) {
  88567. 8023efc: 8c7b ldrh r3, [r7, #34] @ 0x22
  88568. 8023efe: 8b3a ldrh r2, [r7, #24]
  88569. 8023f00: f107 010c add.w r1, r7, #12
  88570. 8023f04: 6b78 ldr r0, [r7, #52] @ 0x34
  88571. 8023f06: f7f7 fbb7 bl 801b678 <pbuf_copy_partial>
  88572. 8023f0a: 4603 mov r3, r0
  88573. 8023f0c: 461a mov r2, r3
  88574. 8023f0e: 8b3b ldrh r3, [r7, #24]
  88575. 8023f10: 4293 cmp r3, r2
  88576. 8023f12: d002 beq.n 8023f1a <dhcp_parse_reply+0x3fe>
  88577. return ERR_BUF;
  88578. 8023f14: f06f 0301 mvn.w r3, #1
  88579. 8023f18: e0ce b.n 80240b8 <dhcp_parse_reply+0x59c>
  88580. }
  88581. if (decode_len > 4) {
  88582. 8023f1a: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  88583. 8023f1e: 2b04 cmp r3, #4
  88584. 8023f20: d933 bls.n 8023f8a <dhcp_parse_reply+0x46e>
  88585. /* decode more than one u32_t */
  88586. u16_t next_val_offset;
  88587. LWIP_ERROR("decode_len %% 4 == 0", decode_len % 4 == 0, return ERR_VAL;);
  88588. 8023f22: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  88589. 8023f26: f003 0303 and.w r3, r3, #3
  88590. 8023f2a: b2db uxtb r3, r3
  88591. 8023f2c: 2b00 cmp r3, #0
  88592. 8023f2e: d009 beq.n 8023f44 <dhcp_parse_reply+0x428>
  88593. 8023f30: 4b63 ldr r3, [pc, #396] @ (80240c0 <dhcp_parse_reply+0x5a4>)
  88594. 8023f32: f240 6281 movw r2, #1665 @ 0x681
  88595. 8023f36: 4967 ldr r1, [pc, #412] @ (80240d4 <dhcp_parse_reply+0x5b8>)
  88596. 8023f38: 4863 ldr r0, [pc, #396] @ (80240c8 <dhcp_parse_reply+0x5ac>)
  88597. 8023f3a: f006 fc0f bl 802a75c <iprintf>
  88598. 8023f3e: f06f 0305 mvn.w r3, #5
  88599. 8023f42: e0b9 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88600. dhcp_got_option(dhcp, decode_idx);
  88601. 8023f44: 4a62 ldr r2, [pc, #392] @ (80240d0 <dhcp_parse_reply+0x5b4>)
  88602. 8023f46: 6a7b ldr r3, [r7, #36] @ 0x24
  88603. 8023f48: 4413 add r3, r2
  88604. 8023f4a: 2201 movs r2, #1
  88605. 8023f4c: 701a strb r2, [r3, #0]
  88606. dhcp_set_option_value(dhcp, decode_idx, lwip_htonl(value));
  88607. 8023f4e: 68fb ldr r3, [r7, #12]
  88608. 8023f50: 4618 mov r0, r3
  88609. 8023f52: f7f5 fcbe bl 80198d2 <lwip_htonl>
  88610. 8023f56: 4602 mov r2, r0
  88611. 8023f58: 495f ldr r1, [pc, #380] @ (80240d8 <dhcp_parse_reply+0x5bc>)
  88612. 8023f5a: 6a7b ldr r3, [r7, #36] @ 0x24
  88613. 8023f5c: f841 2023 str.w r2, [r1, r3, lsl #2]
  88614. decode_len = (u8_t)(decode_len - 4);
  88615. 8023f60: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  88616. 8023f64: 3b04 subs r3, #4
  88617. 8023f66: f887 302a strb.w r3, [r7, #42] @ 0x2a
  88618. next_val_offset = (u16_t)(val_offset + 4);
  88619. 8023f6a: 8c7b ldrh r3, [r7, #34] @ 0x22
  88620. 8023f6c: 3304 adds r3, #4
  88621. 8023f6e: 82fb strh r3, [r7, #22]
  88622. if (next_val_offset < val_offset) {
  88623. 8023f70: 8afa ldrh r2, [r7, #22]
  88624. 8023f72: 8c7b ldrh r3, [r7, #34] @ 0x22
  88625. 8023f74: 429a cmp r2, r3
  88626. 8023f76: d202 bcs.n 8023f7e <dhcp_parse_reply+0x462>
  88627. /* overflow */
  88628. return ERR_BUF;
  88629. 8023f78: f06f 0301 mvn.w r3, #1
  88630. 8023f7c: e09c b.n 80240b8 <dhcp_parse_reply+0x59c>
  88631. }
  88632. val_offset = next_val_offset;
  88633. 8023f7e: 8afb ldrh r3, [r7, #22]
  88634. 8023f80: 847b strh r3, [r7, #34] @ 0x22
  88635. decode_idx++;
  88636. 8023f82: 6a7b ldr r3, [r7, #36] @ 0x24
  88637. 8023f84: 3301 adds r3, #1
  88638. 8023f86: 627b str r3, [r7, #36] @ 0x24
  88639. goto decode_next;
  88640. 8023f88: e79e b.n 8023ec8 <dhcp_parse_reply+0x3ac>
  88641. } else if (decode_len == 4) {
  88642. 8023f8a: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  88643. 8023f8e: 2b04 cmp r3, #4
  88644. 8023f90: d106 bne.n 8023fa0 <dhcp_parse_reply+0x484>
  88645. value = lwip_ntohl(value);
  88646. 8023f92: 68fb ldr r3, [r7, #12]
  88647. 8023f94: 4618 mov r0, r3
  88648. 8023f96: f7f5 fc9c bl 80198d2 <lwip_htonl>
  88649. 8023f9a: 4603 mov r3, r0
  88650. 8023f9c: 60fb str r3, [r7, #12]
  88651. 8023f9e: e011 b.n 8023fc4 <dhcp_parse_reply+0x4a8>
  88652. } else {
  88653. LWIP_ERROR("invalid decode_len", decode_len == 1, return ERR_VAL;);
  88654. 8023fa0: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  88655. 8023fa4: 2b01 cmp r3, #1
  88656. 8023fa6: d009 beq.n 8023fbc <dhcp_parse_reply+0x4a0>
  88657. 8023fa8: 4b45 ldr r3, [pc, #276] @ (80240c0 <dhcp_parse_reply+0x5a4>)
  88658. 8023faa: f44f 62d2 mov.w r2, #1680 @ 0x690
  88659. 8023fae: 494b ldr r1, [pc, #300] @ (80240dc <dhcp_parse_reply+0x5c0>)
  88660. 8023fb0: 4845 ldr r0, [pc, #276] @ (80240c8 <dhcp_parse_reply+0x5ac>)
  88661. 8023fb2: f006 fbd3 bl 802a75c <iprintf>
  88662. 8023fb6: f06f 0305 mvn.w r3, #5
  88663. 8023fba: e07d b.n 80240b8 <dhcp_parse_reply+0x59c>
  88664. value = ((u8_t *)&value)[0];
  88665. 8023fbc: f107 030c add.w r3, r7, #12
  88666. 8023fc0: 781b ldrb r3, [r3, #0]
  88667. 8023fc2: 60fb str r3, [r7, #12]
  88668. }
  88669. dhcp_got_option(dhcp, decode_idx);
  88670. 8023fc4: 4a42 ldr r2, [pc, #264] @ (80240d0 <dhcp_parse_reply+0x5b4>)
  88671. 8023fc6: 6a7b ldr r3, [r7, #36] @ 0x24
  88672. 8023fc8: 4413 add r3, r2
  88673. 8023fca: 2201 movs r2, #1
  88674. 8023fcc: 701a strb r2, [r3, #0]
  88675. dhcp_set_option_value(dhcp, decode_idx, value);
  88676. 8023fce: 68fa ldr r2, [r7, #12]
  88677. 8023fd0: 4941 ldr r1, [pc, #260] @ (80240d8 <dhcp_parse_reply+0x5bc>)
  88678. 8023fd2: 6a7b ldr r3, [r7, #36] @ 0x24
  88679. 8023fd4: f841 2023 str.w r2, [r1, r3, lsl #2]
  88680. }
  88681. }
  88682. }
  88683. if (offset >= q->len) {
  88684. 8023fd8: 6b7b ldr r3, [r7, #52] @ 0x34
  88685. 8023fda: 895b ldrh r3, [r3, #10]
  88686. 8023fdc: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  88687. 8023fe0: 429a cmp r2, r3
  88688. 8023fe2: d327 bcc.n 8024034 <dhcp_parse_reply+0x518>
  88689. offset = (u16_t)(offset - q->len);
  88690. 8023fe4: 6b7b ldr r3, [r7, #52] @ 0x34
  88691. 8023fe6: 895b ldrh r3, [r3, #10]
  88692. 8023fe8: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  88693. 8023fec: 1ad3 subs r3, r2, r3
  88694. 8023fee: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  88695. offset_max = (u16_t)(offset_max - q->len);
  88696. 8023ff2: 6b7b ldr r3, [r7, #52] @ 0x34
  88697. 8023ff4: 895b ldrh r3, [r3, #10]
  88698. 8023ff6: 8ffa ldrh r2, [r7, #62] @ 0x3e
  88699. 8023ff8: 1ad3 subs r3, r2, r3
  88700. 8023ffa: 87fb strh r3, [r7, #62] @ 0x3e
  88701. if (offset < offset_max) {
  88702. 8023ffc: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  88703. 8024000: 8ffb ldrh r3, [r7, #62] @ 0x3e
  88704. 8024002: 429a cmp r2, r3
  88705. 8024004: d213 bcs.n 802402e <dhcp_parse_reply+0x512>
  88706. q = q->next;
  88707. 8024006: 6b7b ldr r3, [r7, #52] @ 0x34
  88708. 8024008: 681b ldr r3, [r3, #0]
  88709. 802400a: 637b str r3, [r7, #52] @ 0x34
  88710. LWIP_ERROR("next pbuf was null", q != NULL, return ERR_VAL;);
  88711. 802400c: 6b7b ldr r3, [r7, #52] @ 0x34
  88712. 802400e: 2b00 cmp r3, #0
  88713. 8024010: d109 bne.n 8024026 <dhcp_parse_reply+0x50a>
  88714. 8024012: 4b2b ldr r3, [pc, #172] @ (80240c0 <dhcp_parse_reply+0x5a4>)
  88715. 8024014: f240 629d movw r2, #1693 @ 0x69d
  88716. 8024018: 4931 ldr r1, [pc, #196] @ (80240e0 <dhcp_parse_reply+0x5c4>)
  88717. 802401a: 482b ldr r0, [pc, #172] @ (80240c8 <dhcp_parse_reply+0x5ac>)
  88718. 802401c: f006 fb9e bl 802a75c <iprintf>
  88719. 8024020: f06f 0305 mvn.w r3, #5
  88720. 8024024: e048 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88721. options = (u8_t *)q->payload;
  88722. 8024026: 6b7b ldr r3, [r7, #52] @ 0x34
  88723. 8024028: 685b ldr r3, [r3, #4]
  88724. 802402a: 643b str r3, [r7, #64] @ 0x40
  88725. 802402c: e002 b.n 8024034 <dhcp_parse_reply+0x518>
  88726. } else {
  88727. /* We've run out of bytes, probably no end marker. Don't proceed. */
  88728. return ERR_BUF;
  88729. 802402e: f06f 0301 mvn.w r3, #1
  88730. 8024032: e041 b.n 80240b8 <dhcp_parse_reply+0x59c>
  88731. while ((q != NULL) && (offset < offset_max) && (options[offset] != DHCP_OPTION_END)) {
  88732. 8024034: 6b7b ldr r3, [r7, #52] @ 0x34
  88733. 8024036: 2b00 cmp r3, #0
  88734. 8024038: d00c beq.n 8024054 <dhcp_parse_reply+0x538>
  88735. 802403a: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  88736. 802403e: 8ffb ldrh r3, [r7, #62] @ 0x3e
  88737. 8024040: 429a cmp r2, r3
  88738. 8024042: d207 bcs.n 8024054 <dhcp_parse_reply+0x538>
  88739. 8024044: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  88740. 8024048: 6c3a ldr r2, [r7, #64] @ 0x40
  88741. 802404a: 4413 add r3, r2
  88742. 802404c: 781b ldrb r3, [r3, #0]
  88743. 802404e: 2bff cmp r3, #255 @ 0xff
  88744. 8024050: f47f ada8 bne.w 8023ba4 <dhcp_parse_reply+0x88>
  88745. }
  88746. }
  88747. }
  88748. /* is this an overloaded message? */
  88749. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_OVERLOAD)) {
  88750. 8024054: 4b1e ldr r3, [pc, #120] @ (80240d0 <dhcp_parse_reply+0x5b4>)
  88751. 8024056: 781b ldrb r3, [r3, #0]
  88752. 8024058: 2b00 cmp r3, #0
  88753. 802405a: d018 beq.n 802408e <dhcp_parse_reply+0x572>
  88754. u32_t overload = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_OVERLOAD);
  88755. 802405c: 4b1e ldr r3, [pc, #120] @ (80240d8 <dhcp_parse_reply+0x5bc>)
  88756. 802405e: 681b ldr r3, [r3, #0]
  88757. 8024060: 613b str r3, [r7, #16]
  88758. dhcp_clear_option(dhcp, DHCP_OPTION_IDX_OVERLOAD);
  88759. 8024062: 4b1b ldr r3, [pc, #108] @ (80240d0 <dhcp_parse_reply+0x5b4>)
  88760. 8024064: 2200 movs r2, #0
  88761. 8024066: 701a strb r2, [r3, #0]
  88762. if (overload == DHCP_OVERLOAD_FILE) {
  88763. 8024068: 693b ldr r3, [r7, #16]
  88764. 802406a: 2b01 cmp r3, #1
  88765. 802406c: d102 bne.n 8024074 <dhcp_parse_reply+0x558>
  88766. parse_file_as_options = 1;
  88767. 802406e: 2301 movs r3, #1
  88768. 8024070: 633b str r3, [r7, #48] @ 0x30
  88769. 8024072: e00c b.n 802408e <dhcp_parse_reply+0x572>
  88770. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded file field\n"));
  88771. } else if (overload == DHCP_OVERLOAD_SNAME) {
  88772. 8024074: 693b ldr r3, [r7, #16]
  88773. 8024076: 2b02 cmp r3, #2
  88774. 8024078: d102 bne.n 8024080 <dhcp_parse_reply+0x564>
  88775. parse_sname_as_options = 1;
  88776. 802407a: 2301 movs r3, #1
  88777. 802407c: 62fb str r3, [r7, #44] @ 0x2c
  88778. 802407e: e006 b.n 802408e <dhcp_parse_reply+0x572>
  88779. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded sname field\n"));
  88780. } else if (overload == DHCP_OVERLOAD_SNAME_FILE) {
  88781. 8024080: 693b ldr r3, [r7, #16]
  88782. 8024082: 2b03 cmp r3, #3
  88783. 8024084: d103 bne.n 802408e <dhcp_parse_reply+0x572>
  88784. parse_sname_as_options = 1;
  88785. 8024086: 2301 movs r3, #1
  88786. 8024088: 62fb str r3, [r7, #44] @ 0x2c
  88787. parse_file_as_options = 1;
  88788. 802408a: 2301 movs r3, #1
  88789. 802408c: 633b str r3, [r7, #48] @ 0x30
  88790. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded sname and file field\n"));
  88791. } else {
  88792. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("invalid overload option: %d\n", (int)overload));
  88793. }
  88794. }
  88795. if (parse_file_as_options) {
  88796. 802408e: 6b3b ldr r3, [r7, #48] @ 0x30
  88797. 8024090: 2b00 cmp r3, #0
  88798. 8024092: d006 beq.n 80240a2 <dhcp_parse_reply+0x586>
  88799. /* if both are overloaded, parse file first and then sname (RFC 2131 ch. 4.1) */
  88800. parse_file_as_options = 0;
  88801. 8024094: 2300 movs r3, #0
  88802. 8024096: 633b str r3, [r7, #48] @ 0x30
  88803. options_idx = DHCP_FILE_OFS;
  88804. 8024098: 236c movs r3, #108 @ 0x6c
  88805. 802409a: 87bb strh r3, [r7, #60] @ 0x3c
  88806. options_idx_max = DHCP_FILE_OFS + DHCP_FILE_LEN;
  88807. 802409c: 23ec movs r3, #236 @ 0xec
  88808. 802409e: 877b strh r3, [r7, #58] @ 0x3a
  88809. #if LWIP_DHCP_BOOTP_FILE
  88810. file_overloaded = 1;
  88811. #endif
  88812. goto again;
  88813. 80240a0: e559 b.n 8023b56 <dhcp_parse_reply+0x3a>
  88814. } else if (parse_sname_as_options) {
  88815. 80240a2: 6afb ldr r3, [r7, #44] @ 0x2c
  88816. 80240a4: 2b00 cmp r3, #0
  88817. 80240a6: d006 beq.n 80240b6 <dhcp_parse_reply+0x59a>
  88818. parse_sname_as_options = 0;
  88819. 80240a8: 2300 movs r3, #0
  88820. 80240aa: 62fb str r3, [r7, #44] @ 0x2c
  88821. options_idx = DHCP_SNAME_OFS;
  88822. 80240ac: 232c movs r3, #44 @ 0x2c
  88823. 80240ae: 87bb strh r3, [r7, #60] @ 0x3c
  88824. options_idx_max = DHCP_SNAME_OFS + DHCP_SNAME_LEN;
  88825. 80240b0: 236c movs r3, #108 @ 0x6c
  88826. 80240b2: 877b strh r3, [r7, #58] @ 0x3a
  88827. goto again;
  88828. 80240b4: e54f b.n 8023b56 <dhcp_parse_reply+0x3a>
  88829. }
  88830. /* make sure the string is really NULL-terminated */
  88831. dhcp->boot_file_name[DHCP_FILE_LEN-1] = 0;
  88832. }
  88833. #endif /* LWIP_DHCP_BOOTP_FILE */
  88834. return ERR_OK;
  88835. 80240b6: 2300 movs r3, #0
  88836. }
  88837. 80240b8: 4618 mov r0, r3
  88838. 80240ba: 3748 adds r7, #72 @ 0x48
  88839. 80240bc: 46bd mov sp, r7
  88840. 80240be: bd80 pop {r7, pc}
  88841. 80240c0: 08030d38 .word 0x08030d38
  88842. 80240c4: 08030fc0 .word 0x08030fc0
  88843. 80240c8: 08030d98 .word 0x08030d98
  88844. 80240cc: 08031004 .word 0x08031004
  88845. 80240d0: 2402afec .word 0x2402afec
  88846. 80240d4: 08031018 .word 0x08031018
  88847. 80240d8: 2402afcc .word 0x2402afcc
  88848. 80240dc: 08031030 .word 0x08031030
  88849. 80240e0: 08031044 .word 0x08031044
  88850. 080240e4 <dhcp_recv>:
  88851. /**
  88852. * If an incoming DHCP message is in response to us, then trigger the state machine
  88853. */
  88854. static void
  88855. dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port)
  88856. {
  88857. 80240e4: b580 push {r7, lr}
  88858. 80240e6: b08a sub sp, #40 @ 0x28
  88859. 80240e8: af00 add r7, sp, #0
  88860. 80240ea: 60f8 str r0, [r7, #12]
  88861. 80240ec: 60b9 str r1, [r7, #8]
  88862. 80240ee: 607a str r2, [r7, #4]
  88863. 80240f0: 603b str r3, [r7, #0]
  88864. struct netif *netif = ip_current_input_netif();
  88865. 80240f2: 4b5e ldr r3, [pc, #376] @ (802426c <dhcp_recv+0x188>)
  88866. 80240f4: 685b ldr r3, [r3, #4]
  88867. 80240f6: 61fb str r3, [r7, #28]
  88868. struct dhcp *dhcp = netif_dhcp_data(netif);
  88869. 80240f8: 69fb ldr r3, [r7, #28]
  88870. 80240fa: 6a5b ldr r3, [r3, #36] @ 0x24
  88871. 80240fc: 61bb str r3, [r7, #24]
  88872. struct dhcp_msg *reply_msg = (struct dhcp_msg *)p->payload;
  88873. 80240fe: 687b ldr r3, [r7, #4]
  88874. 8024100: 685b ldr r3, [r3, #4]
  88875. 8024102: 617b str r3, [r7, #20]
  88876. struct dhcp_msg *msg_in;
  88877. LWIP_UNUSED_ARG(arg);
  88878. /* Caught DHCP message from netif that does not have DHCP enabled? -> not interested */
  88879. if ((dhcp == NULL) || (dhcp->pcb_allocated == 0)) {
  88880. 8024104: 69bb ldr r3, [r7, #24]
  88881. 8024106: 2b00 cmp r3, #0
  88882. 8024108: f000 809a beq.w 8024240 <dhcp_recv+0x15c>
  88883. 802410c: 69bb ldr r3, [r7, #24]
  88884. 802410e: 791b ldrb r3, [r3, #4]
  88885. 8024110: 2b00 cmp r3, #0
  88886. 8024112: f000 8095 beq.w 8024240 <dhcp_recv+0x15c>
  88887. /* prevent warnings about unused arguments */
  88888. LWIP_UNUSED_ARG(pcb);
  88889. LWIP_UNUSED_ARG(addr);
  88890. LWIP_UNUSED_ARG(port);
  88891. if (p->len < DHCP_MIN_REPLY_LEN) {
  88892. 8024116: 687b ldr r3, [r7, #4]
  88893. 8024118: 895b ldrh r3, [r3, #10]
  88894. 802411a: 2b2b cmp r3, #43 @ 0x2b
  88895. 802411c: f240 8092 bls.w 8024244 <dhcp_recv+0x160>
  88896. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("DHCP reply message or pbuf too short\n"));
  88897. goto free_pbuf_and_return;
  88898. }
  88899. if (reply_msg->op != DHCP_BOOTREPLY) {
  88900. 8024120: 697b ldr r3, [r7, #20]
  88901. 8024122: 781b ldrb r3, [r3, #0]
  88902. 8024124: 2b02 cmp r3, #2
  88903. 8024126: f040 808f bne.w 8024248 <dhcp_recv+0x164>
  88904. 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));
  88905. goto free_pbuf_and_return;
  88906. }
  88907. /* iterate through hardware address and match against DHCP message */
  88908. for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  88909. 802412a: 2300 movs r3, #0
  88910. 802412c: 74fb strb r3, [r7, #19]
  88911. 802412e: e00e b.n 802414e <dhcp_recv+0x6a>
  88912. if (netif->hwaddr[i] != reply_msg->chaddr[i]) {
  88913. 8024130: 7cfb ldrb r3, [r7, #19]
  88914. 8024132: 69fa ldr r2, [r7, #28]
  88915. 8024134: 4413 add r3, r2
  88916. 8024136: f893 202a ldrb.w r2, [r3, #42] @ 0x2a
  88917. 802413a: 7cfb ldrb r3, [r7, #19]
  88918. 802413c: 6979 ldr r1, [r7, #20]
  88919. 802413e: 440b add r3, r1
  88920. 8024140: 7f1b ldrb r3, [r3, #28]
  88921. 8024142: 429a cmp r2, r3
  88922. 8024144: f040 8082 bne.w 802424c <dhcp_recv+0x168>
  88923. for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  88924. 8024148: 7cfb ldrb r3, [r7, #19]
  88925. 802414a: 3301 adds r3, #1
  88926. 802414c: 74fb strb r3, [r7, #19]
  88927. 802414e: 69fb ldr r3, [r7, #28]
  88928. 8024150: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  88929. 8024154: 7cfa ldrb r2, [r7, #19]
  88930. 8024156: 429a cmp r2, r3
  88931. 8024158: d202 bcs.n 8024160 <dhcp_recv+0x7c>
  88932. 802415a: 7cfb ldrb r3, [r7, #19]
  88933. 802415c: 2b05 cmp r3, #5
  88934. 802415e: d9e7 bls.n 8024130 <dhcp_recv+0x4c>
  88935. (u16_t)i, (u16_t)netif->hwaddr[i], (u16_t)i, (u16_t)reply_msg->chaddr[i]));
  88936. goto free_pbuf_and_return;
  88937. }
  88938. }
  88939. /* match transaction ID against what we expected */
  88940. if (lwip_ntohl(reply_msg->xid) != dhcp->xid) {
  88941. 8024160: 697b ldr r3, [r7, #20]
  88942. 8024162: 685b ldr r3, [r3, #4]
  88943. 8024164: 4618 mov r0, r3
  88944. 8024166: f7f5 fbb4 bl 80198d2 <lwip_htonl>
  88945. 802416a: 4602 mov r2, r0
  88946. 802416c: 69bb ldr r3, [r7, #24]
  88947. 802416e: 681b ldr r3, [r3, #0]
  88948. 8024170: 429a cmp r2, r3
  88949. 8024172: d16d bne.n 8024250 <dhcp_recv+0x16c>
  88950. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING,
  88951. ("transaction id mismatch reply_msg->xid(%"X32_F")!=dhcp->xid(%"X32_F")\n", lwip_ntohl(reply_msg->xid), dhcp->xid));
  88952. goto free_pbuf_and_return;
  88953. }
  88954. /* option fields could be unfold? */
  88955. if (dhcp_parse_reply(p, dhcp) != ERR_OK) {
  88956. 8024174: 69b9 ldr r1, [r7, #24]
  88957. 8024176: 6878 ldr r0, [r7, #4]
  88958. 8024178: f7ff fcd0 bl 8023b1c <dhcp_parse_reply>
  88959. 802417c: 4603 mov r3, r0
  88960. 802417e: 2b00 cmp r3, #0
  88961. 8024180: d168 bne.n 8024254 <dhcp_recv+0x170>
  88962. goto free_pbuf_and_return;
  88963. }
  88964. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("searching DHCP_OPTION_MESSAGE_TYPE\n"));
  88965. /* obtain pointer to DHCP message type */
  88966. if (!dhcp_option_given(dhcp, DHCP_OPTION_IDX_MSG_TYPE)) {
  88967. 8024182: 4b3b ldr r3, [pc, #236] @ (8024270 <dhcp_recv+0x18c>)
  88968. 8024184: 785b ldrb r3, [r3, #1]
  88969. 8024186: 2b00 cmp r3, #0
  88970. 8024188: d066 beq.n 8024258 <dhcp_recv+0x174>
  88971. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("DHCP_OPTION_MESSAGE_TYPE option not found\n"));
  88972. goto free_pbuf_and_return;
  88973. }
  88974. msg_in = (struct dhcp_msg *)p->payload;
  88975. 802418a: 687b ldr r3, [r7, #4]
  88976. 802418c: 685b ldr r3, [r3, #4]
  88977. 802418e: 627b str r3, [r7, #36] @ 0x24
  88978. /* read DHCP message type */
  88979. msg_type = (u8_t)dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_MSG_TYPE);
  88980. 8024190: 4b38 ldr r3, [pc, #224] @ (8024274 <dhcp_recv+0x190>)
  88981. 8024192: 685b ldr r3, [r3, #4]
  88982. 8024194: f887 3023 strb.w r3, [r7, #35] @ 0x23
  88983. /* message type is DHCP ACK? */
  88984. if (msg_type == DHCP_ACK) {
  88985. 8024198: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  88986. 802419c: 2b05 cmp r3, #5
  88987. 802419e: d12a bne.n 80241f6 <dhcp_recv+0x112>
  88988. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_ACK received\n"));
  88989. /* in requesting state? */
  88990. if (dhcp->state == DHCP_STATE_REQUESTING) {
  88991. 80241a0: 69bb ldr r3, [r7, #24]
  88992. 80241a2: 795b ldrb r3, [r3, #5]
  88993. 80241a4: 2b01 cmp r3, #1
  88994. 80241a6: d112 bne.n 80241ce <dhcp_recv+0xea>
  88995. dhcp_handle_ack(netif, msg_in);
  88996. 80241a8: 6a79 ldr r1, [r7, #36] @ 0x24
  88997. 80241aa: 69f8 ldr r0, [r7, #28]
  88998. 80241ac: f7fe fe00 bl 8022db0 <dhcp_handle_ack>
  88999. #if DHCP_DOES_ARP_CHECK
  89000. if ((netif->flags & NETIF_FLAG_ETHARP) != 0) {
  89001. 80241b0: 69fb ldr r3, [r7, #28]
  89002. 80241b2: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  89003. 80241b6: f003 0308 and.w r3, r3, #8
  89004. 80241ba: 2b00 cmp r3, #0
  89005. 80241bc: d003 beq.n 80241c6 <dhcp_recv+0xe2>
  89006. /* check if the acknowledged lease address is already in use */
  89007. dhcp_check(netif);
  89008. 80241be: 69f8 ldr r0, [r7, #28]
  89009. 80241c0: f7fe fb6e bl 80228a0 <dhcp_check>
  89010. 80241c4: e04b b.n 802425e <dhcp_recv+0x17a>
  89011. } else {
  89012. /* bind interface to the acknowledged lease address */
  89013. dhcp_bind(netif);
  89014. 80241c6: 69f8 ldr r0, [r7, #28]
  89015. 80241c8: f7ff f852 bl 8023270 <dhcp_bind>
  89016. 80241cc: e047 b.n 802425e <dhcp_recv+0x17a>
  89017. /* bind interface to the acknowledged lease address */
  89018. dhcp_bind(netif);
  89019. #endif
  89020. }
  89021. /* already bound to the given lease address? */
  89022. else if ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REBINDING) ||
  89023. 80241ce: 69bb ldr r3, [r7, #24]
  89024. 80241d0: 795b ldrb r3, [r3, #5]
  89025. 80241d2: 2b03 cmp r3, #3
  89026. 80241d4: d007 beq.n 80241e6 <dhcp_recv+0x102>
  89027. 80241d6: 69bb ldr r3, [r7, #24]
  89028. 80241d8: 795b ldrb r3, [r3, #5]
  89029. 80241da: 2b04 cmp r3, #4
  89030. 80241dc: d003 beq.n 80241e6 <dhcp_recv+0x102>
  89031. (dhcp->state == DHCP_STATE_RENEWING)) {
  89032. 80241de: 69bb ldr r3, [r7, #24]
  89033. 80241e0: 795b ldrb r3, [r3, #5]
  89034. else if ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REBINDING) ||
  89035. 80241e2: 2b05 cmp r3, #5
  89036. 80241e4: d13b bne.n 802425e <dhcp_recv+0x17a>
  89037. dhcp_handle_ack(netif, msg_in);
  89038. 80241e6: 6a79 ldr r1, [r7, #36] @ 0x24
  89039. 80241e8: 69f8 ldr r0, [r7, #28]
  89040. 80241ea: f7fe fde1 bl 8022db0 <dhcp_handle_ack>
  89041. dhcp_bind(netif);
  89042. 80241ee: 69f8 ldr r0, [r7, #28]
  89043. 80241f0: f7ff f83e bl 8023270 <dhcp_bind>
  89044. 80241f4: e033 b.n 802425e <dhcp_recv+0x17a>
  89045. }
  89046. }
  89047. /* received a DHCP_NAK in appropriate state? */
  89048. else if ((msg_type == DHCP_NAK) &&
  89049. 80241f6: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  89050. 80241fa: 2b06 cmp r3, #6
  89051. 80241fc: d113 bne.n 8024226 <dhcp_recv+0x142>
  89052. ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) ||
  89053. 80241fe: 69bb ldr r3, [r7, #24]
  89054. 8024200: 795b ldrb r3, [r3, #5]
  89055. else if ((msg_type == DHCP_NAK) &&
  89056. 8024202: 2b03 cmp r3, #3
  89057. 8024204: d00b beq.n 802421e <dhcp_recv+0x13a>
  89058. ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) ||
  89059. 8024206: 69bb ldr r3, [r7, #24]
  89060. 8024208: 795b ldrb r3, [r3, #5]
  89061. 802420a: 2b01 cmp r3, #1
  89062. 802420c: d007 beq.n 802421e <dhcp_recv+0x13a>
  89063. (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) {
  89064. 802420e: 69bb ldr r3, [r7, #24]
  89065. 8024210: 795b ldrb r3, [r3, #5]
  89066. ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) ||
  89067. 8024212: 2b04 cmp r3, #4
  89068. 8024214: d003 beq.n 802421e <dhcp_recv+0x13a>
  89069. (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) {
  89070. 8024216: 69bb ldr r3, [r7, #24]
  89071. 8024218: 795b ldrb r3, [r3, #5]
  89072. 802421a: 2b05 cmp r3, #5
  89073. 802421c: d103 bne.n 8024226 <dhcp_recv+0x142>
  89074. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_NAK received\n"));
  89075. dhcp_handle_nak(netif);
  89076. 802421e: 69f8 ldr r0, [r7, #28]
  89077. 8024220: f7fe fb24 bl 802286c <dhcp_handle_nak>
  89078. 8024224: e01b b.n 802425e <dhcp_recv+0x17a>
  89079. }
  89080. /* received a DHCP_OFFER in DHCP_STATE_SELECTING state? */
  89081. else if ((msg_type == DHCP_OFFER) && (dhcp->state == DHCP_STATE_SELECTING)) {
  89082. 8024226: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  89083. 802422a: 2b02 cmp r3, #2
  89084. 802422c: d116 bne.n 802425c <dhcp_recv+0x178>
  89085. 802422e: 69bb ldr r3, [r7, #24]
  89086. 8024230: 795b ldrb r3, [r3, #5]
  89087. 8024232: 2b06 cmp r3, #6
  89088. 8024234: d112 bne.n 802425c <dhcp_recv+0x178>
  89089. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_OFFER received in DHCP_STATE_SELECTING state\n"));
  89090. /* remember offered lease */
  89091. dhcp_handle_offer(netif, msg_in);
  89092. 8024236: 6a79 ldr r1, [r7, #36] @ 0x24
  89093. 8024238: 69f8 ldr r0, [r7, #28]
  89094. 802423a: f7fe fb65 bl 8022908 <dhcp_handle_offer>
  89095. 802423e: e00e b.n 802425e <dhcp_recv+0x17a>
  89096. goto free_pbuf_and_return;
  89097. 8024240: bf00 nop
  89098. 8024242: e00c b.n 802425e <dhcp_recv+0x17a>
  89099. goto free_pbuf_and_return;
  89100. 8024244: bf00 nop
  89101. 8024246: e00a b.n 802425e <dhcp_recv+0x17a>
  89102. goto free_pbuf_and_return;
  89103. 8024248: bf00 nop
  89104. 802424a: e008 b.n 802425e <dhcp_recv+0x17a>
  89105. goto free_pbuf_and_return;
  89106. 802424c: bf00 nop
  89107. 802424e: e006 b.n 802425e <dhcp_recv+0x17a>
  89108. goto free_pbuf_and_return;
  89109. 8024250: bf00 nop
  89110. 8024252: e004 b.n 802425e <dhcp_recv+0x17a>
  89111. goto free_pbuf_and_return;
  89112. 8024254: bf00 nop
  89113. 8024256: e002 b.n 802425e <dhcp_recv+0x17a>
  89114. goto free_pbuf_and_return;
  89115. 8024258: bf00 nop
  89116. 802425a: e000 b.n 802425e <dhcp_recv+0x17a>
  89117. }
  89118. free_pbuf_and_return:
  89119. 802425c: bf00 nop
  89120. pbuf_free(p);
  89121. 802425e: 6878 ldr r0, [r7, #4]
  89122. 8024260: f7f7 f804 bl 801b26c <pbuf_free>
  89123. }
  89124. 8024264: bf00 nop
  89125. 8024266: 3728 adds r7, #40 @ 0x28
  89126. 8024268: 46bd mov sp, r7
  89127. 802426a: bd80 pop {r7, pc}
  89128. 802426c: 24024418 .word 0x24024418
  89129. 8024270: 2402afec .word 0x2402afec
  89130. 8024274: 2402afcc .word 0x2402afcc
  89131. 08024278 <dhcp_create_msg>:
  89132. * @param dhcp dhcp control struct
  89133. * @param message_type message type of the request
  89134. */
  89135. static struct pbuf *
  89136. dhcp_create_msg(struct netif *netif, struct dhcp *dhcp, u8_t message_type, u16_t *options_out_len)
  89137. {
  89138. 8024278: b580 push {r7, lr}
  89139. 802427a: b088 sub sp, #32
  89140. 802427c: af00 add r7, sp, #0
  89141. 802427e: 60f8 str r0, [r7, #12]
  89142. 8024280: 60b9 str r1, [r7, #8]
  89143. 8024282: 603b str r3, [r7, #0]
  89144. 8024284: 4613 mov r3, r2
  89145. 8024286: 71fb strb r3, [r7, #7]
  89146. if (!xid_initialised) {
  89147. xid = DHCP_GLOBAL_XID;
  89148. xid_initialised = !xid_initialised;
  89149. }
  89150. #endif
  89151. LWIP_ERROR("dhcp_create_msg: netif != NULL", (netif != NULL), return NULL;);
  89152. 8024288: 68fb ldr r3, [r7, #12]
  89153. 802428a: 2b00 cmp r3, #0
  89154. 802428c: d108 bne.n 80242a0 <dhcp_create_msg+0x28>
  89155. 802428e: 4b5f ldr r3, [pc, #380] @ (802440c <dhcp_create_msg+0x194>)
  89156. 8024290: f240 7269 movw r2, #1897 @ 0x769
  89157. 8024294: 495e ldr r1, [pc, #376] @ (8024410 <dhcp_create_msg+0x198>)
  89158. 8024296: 485f ldr r0, [pc, #380] @ (8024414 <dhcp_create_msg+0x19c>)
  89159. 8024298: f006 fa60 bl 802a75c <iprintf>
  89160. 802429c: 2300 movs r3, #0
  89161. 802429e: e0b1 b.n 8024404 <dhcp_create_msg+0x18c>
  89162. LWIP_ERROR("dhcp_create_msg: dhcp != NULL", (dhcp != NULL), return NULL;);
  89163. 80242a0: 68bb ldr r3, [r7, #8]
  89164. 80242a2: 2b00 cmp r3, #0
  89165. 80242a4: d108 bne.n 80242b8 <dhcp_create_msg+0x40>
  89166. 80242a6: 4b59 ldr r3, [pc, #356] @ (802440c <dhcp_create_msg+0x194>)
  89167. 80242a8: f240 726a movw r2, #1898 @ 0x76a
  89168. 80242ac: 495a ldr r1, [pc, #360] @ (8024418 <dhcp_create_msg+0x1a0>)
  89169. 80242ae: 4859 ldr r0, [pc, #356] @ (8024414 <dhcp_create_msg+0x19c>)
  89170. 80242b0: f006 fa54 bl 802a75c <iprintf>
  89171. 80242b4: 2300 movs r3, #0
  89172. 80242b6: e0a5 b.n 8024404 <dhcp_create_msg+0x18c>
  89173. p_out = pbuf_alloc(PBUF_TRANSPORT, sizeof(struct dhcp_msg), PBUF_RAM);
  89174. 80242b8: f44f 7220 mov.w r2, #640 @ 0x280
  89175. 80242bc: f44f 719a mov.w r1, #308 @ 0x134
  89176. 80242c0: 2036 movs r0, #54 @ 0x36
  89177. 80242c2: f7f6 fcbd bl 801ac40 <pbuf_alloc>
  89178. 80242c6: 61b8 str r0, [r7, #24]
  89179. if (p_out == NULL) {
  89180. 80242c8: 69bb ldr r3, [r7, #24]
  89181. 80242ca: 2b00 cmp r3, #0
  89182. 80242cc: d101 bne.n 80242d2 <dhcp_create_msg+0x5a>
  89183. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  89184. ("dhcp_create_msg(): could not allocate pbuf\n"));
  89185. return NULL;
  89186. 80242ce: 2300 movs r3, #0
  89187. 80242d0: e098 b.n 8024404 <dhcp_create_msg+0x18c>
  89188. }
  89189. LWIP_ASSERT("dhcp_create_msg: check that first pbuf can hold struct dhcp_msg",
  89190. 80242d2: 69bb ldr r3, [r7, #24]
  89191. 80242d4: 895b ldrh r3, [r3, #10]
  89192. 80242d6: f5b3 7f9a cmp.w r3, #308 @ 0x134
  89193. 80242da: d206 bcs.n 80242ea <dhcp_create_msg+0x72>
  89194. 80242dc: 4b4b ldr r3, [pc, #300] @ (802440c <dhcp_create_msg+0x194>)
  89195. 80242de: f240 7271 movw r2, #1905 @ 0x771
  89196. 80242e2: 494e ldr r1, [pc, #312] @ (802441c <dhcp_create_msg+0x1a4>)
  89197. 80242e4: 484b ldr r0, [pc, #300] @ (8024414 <dhcp_create_msg+0x19c>)
  89198. 80242e6: f006 fa39 bl 802a75c <iprintf>
  89199. (p_out->len >= sizeof(struct dhcp_msg)));
  89200. /* DHCP_REQUEST should reuse 'xid' from DHCPOFFER */
  89201. if ((message_type != DHCP_REQUEST) || (dhcp->state == DHCP_STATE_REBOOTING)) {
  89202. 80242ea: 79fb ldrb r3, [r7, #7]
  89203. 80242ec: 2b03 cmp r3, #3
  89204. 80242ee: d103 bne.n 80242f8 <dhcp_create_msg+0x80>
  89205. 80242f0: 68bb ldr r3, [r7, #8]
  89206. 80242f2: 795b ldrb r3, [r3, #5]
  89207. 80242f4: 2b03 cmp r3, #3
  89208. 80242f6: d10d bne.n 8024314 <dhcp_create_msg+0x9c>
  89209. /* reuse transaction identifier in retransmissions */
  89210. if (dhcp->tries == 0) {
  89211. 80242f8: 68bb ldr r3, [r7, #8]
  89212. 80242fa: 799b ldrb r3, [r3, #6]
  89213. 80242fc: 2b00 cmp r3, #0
  89214. 80242fe: d105 bne.n 802430c <dhcp_create_msg+0x94>
  89215. #if DHCP_CREATE_RAND_XID && defined(LWIP_RAND)
  89216. xid = LWIP_RAND();
  89217. 8024300: f004 ff02 bl 8029108 <rand>
  89218. 8024304: 4603 mov r3, r0
  89219. 8024306: 461a mov r2, r3
  89220. 8024308: 4b45 ldr r3, [pc, #276] @ (8024420 <dhcp_create_msg+0x1a8>)
  89221. 802430a: 601a str r2, [r3, #0]
  89222. #else /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */
  89223. xid++;
  89224. #endif /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */
  89225. }
  89226. dhcp->xid = xid;
  89227. 802430c: 4b44 ldr r3, [pc, #272] @ (8024420 <dhcp_create_msg+0x1a8>)
  89228. 802430e: 681a ldr r2, [r3, #0]
  89229. 8024310: 68bb ldr r3, [r7, #8]
  89230. 8024312: 601a str r2, [r3, #0]
  89231. }
  89232. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE,
  89233. ("transaction id xid(%"X32_F")\n", xid));
  89234. msg_out = (struct dhcp_msg *)p_out->payload;
  89235. 8024314: 69bb ldr r3, [r7, #24]
  89236. 8024316: 685b ldr r3, [r3, #4]
  89237. 8024318: 617b str r3, [r7, #20]
  89238. memset(msg_out, 0, sizeof(struct dhcp_msg));
  89239. 802431a: f44f 729a mov.w r2, #308 @ 0x134
  89240. 802431e: 2100 movs r1, #0
  89241. 8024320: 6978 ldr r0, [r7, #20]
  89242. 8024322: f006 fbad bl 802aa80 <memset>
  89243. msg_out->op = DHCP_BOOTREQUEST;
  89244. 8024326: 697b ldr r3, [r7, #20]
  89245. 8024328: 2201 movs r2, #1
  89246. 802432a: 701a strb r2, [r3, #0]
  89247. /* @todo: make link layer independent */
  89248. msg_out->htype = LWIP_IANA_HWTYPE_ETHERNET;
  89249. 802432c: 697b ldr r3, [r7, #20]
  89250. 802432e: 2201 movs r2, #1
  89251. 8024330: 705a strb r2, [r3, #1]
  89252. msg_out->hlen = netif->hwaddr_len;
  89253. 8024332: 68fb ldr r3, [r7, #12]
  89254. 8024334: f893 2030 ldrb.w r2, [r3, #48] @ 0x30
  89255. 8024338: 697b ldr r3, [r7, #20]
  89256. 802433a: 709a strb r2, [r3, #2]
  89257. msg_out->xid = lwip_htonl(dhcp->xid);
  89258. 802433c: 68bb ldr r3, [r7, #8]
  89259. 802433e: 681b ldr r3, [r3, #0]
  89260. 8024340: 4618 mov r0, r3
  89261. 8024342: f7f5 fac6 bl 80198d2 <lwip_htonl>
  89262. 8024346: 4602 mov r2, r0
  89263. 8024348: 697b ldr r3, [r7, #20]
  89264. 802434a: 605a str r2, [r3, #4]
  89265. /* we don't need the broadcast flag since we can receive unicast traffic
  89266. before being fully configured! */
  89267. /* set ciaddr to netif->ip_addr based on message_type and state */
  89268. if ((message_type == DHCP_INFORM) || (message_type == DHCP_DECLINE) || (message_type == DHCP_RELEASE) ||
  89269. 802434c: 79fb ldrb r3, [r7, #7]
  89270. 802434e: 2b08 cmp r3, #8
  89271. 8024350: d010 beq.n 8024374 <dhcp_create_msg+0xfc>
  89272. 8024352: 79fb ldrb r3, [r7, #7]
  89273. 8024354: 2b04 cmp r3, #4
  89274. 8024356: d00d beq.n 8024374 <dhcp_create_msg+0xfc>
  89275. 8024358: 79fb ldrb r3, [r7, #7]
  89276. 802435a: 2b07 cmp r3, #7
  89277. 802435c: d00a beq.n 8024374 <dhcp_create_msg+0xfc>
  89278. 802435e: 79fb ldrb r3, [r7, #7]
  89279. 8024360: 2b03 cmp r3, #3
  89280. 8024362: d10c bne.n 802437e <dhcp_create_msg+0x106>
  89281. ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */
  89282. ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) {
  89283. 8024364: 68bb ldr r3, [r7, #8]
  89284. 8024366: 795b ldrb r3, [r3, #5]
  89285. ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */
  89286. 8024368: 2b05 cmp r3, #5
  89287. 802436a: d003 beq.n 8024374 <dhcp_create_msg+0xfc>
  89288. ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) {
  89289. 802436c: 68bb ldr r3, [r7, #8]
  89290. 802436e: 795b ldrb r3, [r3, #5]
  89291. 8024370: 2b04 cmp r3, #4
  89292. 8024372: d104 bne.n 802437e <dhcp_create_msg+0x106>
  89293. ip4_addr_copy(msg_out->ciaddr, *netif_ip4_addr(netif));
  89294. 8024374: 68fb ldr r3, [r7, #12]
  89295. 8024376: 3304 adds r3, #4
  89296. 8024378: 681a ldr r2, [r3, #0]
  89297. 802437a: 697b ldr r3, [r7, #20]
  89298. 802437c: 60da str r2, [r3, #12]
  89299. }
  89300. for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  89301. 802437e: 2300 movs r3, #0
  89302. 8024380: 83fb strh r3, [r7, #30]
  89303. 8024382: e00c b.n 802439e <dhcp_create_msg+0x126>
  89304. /* copy netif hardware address (padded with zeroes through memset already) */
  89305. msg_out->chaddr[i] = netif->hwaddr[i];
  89306. 8024384: 8bfa ldrh r2, [r7, #30]
  89307. 8024386: 8bfb ldrh r3, [r7, #30]
  89308. 8024388: 68f9 ldr r1, [r7, #12]
  89309. 802438a: 440a add r2, r1
  89310. 802438c: f892 102a ldrb.w r1, [r2, #42] @ 0x2a
  89311. 8024390: 697a ldr r2, [r7, #20]
  89312. 8024392: 4413 add r3, r2
  89313. 8024394: 460a mov r2, r1
  89314. 8024396: 771a strb r2, [r3, #28]
  89315. for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  89316. 8024398: 8bfb ldrh r3, [r7, #30]
  89317. 802439a: 3301 adds r3, #1
  89318. 802439c: 83fb strh r3, [r7, #30]
  89319. 802439e: 8bfb ldrh r3, [r7, #30]
  89320. 80243a0: 2b05 cmp r3, #5
  89321. 80243a2: d9ef bls.n 8024384 <dhcp_create_msg+0x10c>
  89322. }
  89323. msg_out->cookie = PP_HTONL(DHCP_MAGIC_COOKIE);
  89324. 80243a4: 697b ldr r3, [r7, #20]
  89325. 80243a6: 2200 movs r2, #0
  89326. 80243a8: f042 0263 orr.w r2, r2, #99 @ 0x63
  89327. 80243ac: f883 20ec strb.w r2, [r3, #236] @ 0xec
  89328. 80243b0: 2200 movs r2, #0
  89329. 80243b2: f062 027d orn r2, r2, #125 @ 0x7d
  89330. 80243b6: f883 20ed strb.w r2, [r3, #237] @ 0xed
  89331. 80243ba: 2200 movs r2, #0
  89332. 80243bc: f042 0253 orr.w r2, r2, #83 @ 0x53
  89333. 80243c0: f883 20ee strb.w r2, [r3, #238] @ 0xee
  89334. 80243c4: 2200 movs r2, #0
  89335. 80243c6: f042 0263 orr.w r2, r2, #99 @ 0x63
  89336. 80243ca: f883 20ef strb.w r2, [r3, #239] @ 0xef
  89337. /* Add option MESSAGE_TYPE */
  89338. options_out_len_loc = dhcp_option(0, msg_out->options, DHCP_OPTION_MESSAGE_TYPE, DHCP_OPTION_MESSAGE_TYPE_LEN);
  89339. 80243ce: 697b ldr r3, [r7, #20]
  89340. 80243d0: f103 01f0 add.w r1, r3, #240 @ 0xf0
  89341. 80243d4: 2301 movs r3, #1
  89342. 80243d6: 2235 movs r2, #53 @ 0x35
  89343. 80243d8: 2000 movs r0, #0
  89344. 80243da: f7ff facf bl 802397c <dhcp_option>
  89345. 80243de: 4603 mov r3, r0
  89346. 80243e0: 827b strh r3, [r7, #18]
  89347. options_out_len_loc = dhcp_option_byte(options_out_len_loc, msg_out->options, message_type);
  89348. 80243e2: 697b ldr r3, [r7, #20]
  89349. 80243e4: f103 01f0 add.w r1, r3, #240 @ 0xf0
  89350. 80243e8: 79fa ldrb r2, [r7, #7]
  89351. 80243ea: 8a7b ldrh r3, [r7, #18]
  89352. 80243ec: 4618 mov r0, r3
  89353. 80243ee: f7ff faf9 bl 80239e4 <dhcp_option_byte>
  89354. 80243f2: 4603 mov r3, r0
  89355. 80243f4: 827b strh r3, [r7, #18]
  89356. if (options_out_len) {
  89357. 80243f6: 683b ldr r3, [r7, #0]
  89358. 80243f8: 2b00 cmp r3, #0
  89359. 80243fa: d002 beq.n 8024402 <dhcp_create_msg+0x18a>
  89360. *options_out_len = options_out_len_loc;
  89361. 80243fc: 683b ldr r3, [r7, #0]
  89362. 80243fe: 8a7a ldrh r2, [r7, #18]
  89363. 8024400: 801a strh r2, [r3, #0]
  89364. }
  89365. return p_out;
  89366. 8024402: 69bb ldr r3, [r7, #24]
  89367. }
  89368. 8024404: 4618 mov r0, r3
  89369. 8024406: 3720 adds r7, #32
  89370. 8024408: 46bd mov sp, r7
  89371. 802440a: bd80 pop {r7, pc}
  89372. 802440c: 08030d38 .word 0x08030d38
  89373. 8024410: 08031058 .word 0x08031058
  89374. 8024414: 08030d98 .word 0x08030d98
  89375. 8024418: 08031078 .word 0x08031078
  89376. 802441c: 08031098 .word 0x08031098
  89377. 8024420: 2402affc .word 0x2402affc
  89378. 08024424 <dhcp_option_trailer>:
  89379. * Adds the END option to the DHCP message, and if
  89380. * necessary, up to three padding bytes.
  89381. */
  89382. static void
  89383. dhcp_option_trailer(u16_t options_out_len, u8_t *options, struct pbuf *p_out)
  89384. {
  89385. 8024424: b580 push {r7, lr}
  89386. 8024426: b084 sub sp, #16
  89387. 8024428: af00 add r7, sp, #0
  89388. 802442a: 4603 mov r3, r0
  89389. 802442c: 60b9 str r1, [r7, #8]
  89390. 802442e: 607a str r2, [r7, #4]
  89391. 8024430: 81fb strh r3, [r7, #14]
  89392. options[options_out_len++] = DHCP_OPTION_END;
  89393. 8024432: 89fb ldrh r3, [r7, #14]
  89394. 8024434: 1c5a adds r2, r3, #1
  89395. 8024436: 81fa strh r2, [r7, #14]
  89396. 8024438: 461a mov r2, r3
  89397. 802443a: 68bb ldr r3, [r7, #8]
  89398. 802443c: 4413 add r3, r2
  89399. 802443e: 22ff movs r2, #255 @ 0xff
  89400. 8024440: 701a strb r2, [r3, #0]
  89401. /* packet is too small, or not 4 byte aligned? */
  89402. while (((options_out_len < DHCP_MIN_OPTIONS_LEN) || (options_out_len & 3)) &&
  89403. 8024442: e007 b.n 8024454 <dhcp_option_trailer+0x30>
  89404. (options_out_len < DHCP_OPTIONS_LEN)) {
  89405. /* add a fill/padding byte */
  89406. options[options_out_len++] = 0;
  89407. 8024444: 89fb ldrh r3, [r7, #14]
  89408. 8024446: 1c5a adds r2, r3, #1
  89409. 8024448: 81fa strh r2, [r7, #14]
  89410. 802444a: 461a mov r2, r3
  89411. 802444c: 68bb ldr r3, [r7, #8]
  89412. 802444e: 4413 add r3, r2
  89413. 8024450: 2200 movs r2, #0
  89414. 8024452: 701a strb r2, [r3, #0]
  89415. while (((options_out_len < DHCP_MIN_OPTIONS_LEN) || (options_out_len & 3)) &&
  89416. 8024454: 89fb ldrh r3, [r7, #14]
  89417. 8024456: 2b43 cmp r3, #67 @ 0x43
  89418. 8024458: d904 bls.n 8024464 <dhcp_option_trailer+0x40>
  89419. 802445a: 89fb ldrh r3, [r7, #14]
  89420. 802445c: f003 0303 and.w r3, r3, #3
  89421. 8024460: 2b00 cmp r3, #0
  89422. 8024462: d002 beq.n 802446a <dhcp_option_trailer+0x46>
  89423. 8024464: 89fb ldrh r3, [r7, #14]
  89424. 8024466: 2b43 cmp r3, #67 @ 0x43
  89425. 8024468: d9ec bls.n 8024444 <dhcp_option_trailer+0x20>
  89426. }
  89427. /* shrink the pbuf to the actual content length */
  89428. pbuf_realloc(p_out, (u16_t)(sizeof(struct dhcp_msg) - DHCP_OPTIONS_LEN + options_out_len));
  89429. 802446a: 89fb ldrh r3, [r7, #14]
  89430. 802446c: 33f0 adds r3, #240 @ 0xf0
  89431. 802446e: b29b uxth r3, r3
  89432. 8024470: 4619 mov r1, r3
  89433. 8024472: 6878 ldr r0, [r7, #4]
  89434. 8024474: f7f6 fd44 bl 801af00 <pbuf_realloc>
  89435. }
  89436. 8024478: bf00 nop
  89437. 802447a: 3710 adds r7, #16
  89438. 802447c: 46bd mov sp, r7
  89439. 802447e: bd80 pop {r7, pc}
  89440. 08024480 <dhcp_supplied_address>:
  89441. * @return 1 if DHCP supplied netif->ip_addr (states BOUND or RENEWING),
  89442. * 0 otherwise
  89443. */
  89444. u8_t
  89445. dhcp_supplied_address(const struct netif *netif)
  89446. {
  89447. 8024480: b480 push {r7}
  89448. 8024482: b085 sub sp, #20
  89449. 8024484: af00 add r7, sp, #0
  89450. 8024486: 6078 str r0, [r7, #4]
  89451. if ((netif != NULL) && (netif_dhcp_data(netif) != NULL)) {
  89452. 8024488: 687b ldr r3, [r7, #4]
  89453. 802448a: 2b00 cmp r3, #0
  89454. 802448c: d017 beq.n 80244be <dhcp_supplied_address+0x3e>
  89455. 802448e: 687b ldr r3, [r7, #4]
  89456. 8024490: 6a5b ldr r3, [r3, #36] @ 0x24
  89457. 8024492: 2b00 cmp r3, #0
  89458. 8024494: d013 beq.n 80244be <dhcp_supplied_address+0x3e>
  89459. struct dhcp *dhcp = netif_dhcp_data(netif);
  89460. 8024496: 687b ldr r3, [r7, #4]
  89461. 8024498: 6a5b ldr r3, [r3, #36] @ 0x24
  89462. 802449a: 60fb str r3, [r7, #12]
  89463. return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING) ||
  89464. 802449c: 68fb ldr r3, [r7, #12]
  89465. 802449e: 795b ldrb r3, [r3, #5]
  89466. 80244a0: 2b0a cmp r3, #10
  89467. 80244a2: d007 beq.n 80244b4 <dhcp_supplied_address+0x34>
  89468. 80244a4: 68fb ldr r3, [r7, #12]
  89469. 80244a6: 795b ldrb r3, [r3, #5]
  89470. 80244a8: 2b05 cmp r3, #5
  89471. 80244aa: d003 beq.n 80244b4 <dhcp_supplied_address+0x34>
  89472. (dhcp->state == DHCP_STATE_REBINDING);
  89473. 80244ac: 68fb ldr r3, [r7, #12]
  89474. 80244ae: 795b ldrb r3, [r3, #5]
  89475. return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING) ||
  89476. 80244b0: 2b04 cmp r3, #4
  89477. 80244b2: d101 bne.n 80244b8 <dhcp_supplied_address+0x38>
  89478. 80244b4: 2301 movs r3, #1
  89479. 80244b6: e000 b.n 80244ba <dhcp_supplied_address+0x3a>
  89480. 80244b8: 2300 movs r3, #0
  89481. 80244ba: b2db uxtb r3, r3
  89482. 80244bc: e000 b.n 80244c0 <dhcp_supplied_address+0x40>
  89483. }
  89484. return 0;
  89485. 80244be: 2300 movs r3, #0
  89486. }
  89487. 80244c0: 4618 mov r0, r3
  89488. 80244c2: 3714 adds r7, #20
  89489. 80244c4: 46bd mov sp, r7
  89490. 80244c6: f85d 7b04 ldr.w r7, [sp], #4
  89491. 80244ca: 4770 bx lr
  89492. 080244cc <etharp_free_entry>:
  89493. #endif /* ARP_QUEUEING */
  89494. /** Clean up ARP table entries */
  89495. static void
  89496. etharp_free_entry(int i)
  89497. {
  89498. 80244cc: b580 push {r7, lr}
  89499. 80244ce: b082 sub sp, #8
  89500. 80244d0: af00 add r7, sp, #0
  89501. 80244d2: 6078 str r0, [r7, #4]
  89502. /* remove from SNMP ARP index tree */
  89503. mib2_remove_arp_entry(arp_table[i].netif, &arp_table[i].ipaddr);
  89504. /* and empty packet queue */
  89505. if (arp_table[i].q != NULL) {
  89506. 80244d4: 492b ldr r1, [pc, #172] @ (8024584 <etharp_free_entry+0xb8>)
  89507. 80244d6: 687a ldr r2, [r7, #4]
  89508. 80244d8: 4613 mov r3, r2
  89509. 80244da: 005b lsls r3, r3, #1
  89510. 80244dc: 4413 add r3, r2
  89511. 80244de: 00db lsls r3, r3, #3
  89512. 80244e0: 440b add r3, r1
  89513. 80244e2: 681b ldr r3, [r3, #0]
  89514. 80244e4: 2b00 cmp r3, #0
  89515. 80244e6: d013 beq.n 8024510 <etharp_free_entry+0x44>
  89516. /* remove all queued packets */
  89517. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_free_entry: freeing entry %"U16_F", packet queue %p.\n", (u16_t)i, (void *)(arp_table[i].q)));
  89518. free_etharp_q(arp_table[i].q);
  89519. 80244e8: 4926 ldr r1, [pc, #152] @ (8024584 <etharp_free_entry+0xb8>)
  89520. 80244ea: 687a ldr r2, [r7, #4]
  89521. 80244ec: 4613 mov r3, r2
  89522. 80244ee: 005b lsls r3, r3, #1
  89523. 80244f0: 4413 add r3, r2
  89524. 80244f2: 00db lsls r3, r3, #3
  89525. 80244f4: 440b add r3, r1
  89526. 80244f6: 681b ldr r3, [r3, #0]
  89527. 80244f8: 4618 mov r0, r3
  89528. 80244fa: f7f6 feb7 bl 801b26c <pbuf_free>
  89529. arp_table[i].q = NULL;
  89530. 80244fe: 4921 ldr r1, [pc, #132] @ (8024584 <etharp_free_entry+0xb8>)
  89531. 8024500: 687a ldr r2, [r7, #4]
  89532. 8024502: 4613 mov r3, r2
  89533. 8024504: 005b lsls r3, r3, #1
  89534. 8024506: 4413 add r3, r2
  89535. 8024508: 00db lsls r3, r3, #3
  89536. 802450a: 440b add r3, r1
  89537. 802450c: 2200 movs r2, #0
  89538. 802450e: 601a str r2, [r3, #0]
  89539. }
  89540. /* recycle entry for re-use */
  89541. arp_table[i].state = ETHARP_STATE_EMPTY;
  89542. 8024510: 491c ldr r1, [pc, #112] @ (8024584 <etharp_free_entry+0xb8>)
  89543. 8024512: 687a ldr r2, [r7, #4]
  89544. 8024514: 4613 mov r3, r2
  89545. 8024516: 005b lsls r3, r3, #1
  89546. 8024518: 4413 add r3, r2
  89547. 802451a: 00db lsls r3, r3, #3
  89548. 802451c: 440b add r3, r1
  89549. 802451e: 3314 adds r3, #20
  89550. 8024520: 2200 movs r2, #0
  89551. 8024522: 701a strb r2, [r3, #0]
  89552. #ifdef LWIP_DEBUG
  89553. /* for debugging, clean out the complete entry */
  89554. arp_table[i].ctime = 0;
  89555. 8024524: 4917 ldr r1, [pc, #92] @ (8024584 <etharp_free_entry+0xb8>)
  89556. 8024526: 687a ldr r2, [r7, #4]
  89557. 8024528: 4613 mov r3, r2
  89558. 802452a: 005b lsls r3, r3, #1
  89559. 802452c: 4413 add r3, r2
  89560. 802452e: 00db lsls r3, r3, #3
  89561. 8024530: 440b add r3, r1
  89562. 8024532: 3312 adds r3, #18
  89563. 8024534: 2200 movs r2, #0
  89564. 8024536: 801a strh r2, [r3, #0]
  89565. arp_table[i].netif = NULL;
  89566. 8024538: 4912 ldr r1, [pc, #72] @ (8024584 <etharp_free_entry+0xb8>)
  89567. 802453a: 687a ldr r2, [r7, #4]
  89568. 802453c: 4613 mov r3, r2
  89569. 802453e: 005b lsls r3, r3, #1
  89570. 8024540: 4413 add r3, r2
  89571. 8024542: 00db lsls r3, r3, #3
  89572. 8024544: 440b add r3, r1
  89573. 8024546: 3308 adds r3, #8
  89574. 8024548: 2200 movs r2, #0
  89575. 802454a: 601a str r2, [r3, #0]
  89576. ip4_addr_set_zero(&arp_table[i].ipaddr);
  89577. 802454c: 490d ldr r1, [pc, #52] @ (8024584 <etharp_free_entry+0xb8>)
  89578. 802454e: 687a ldr r2, [r7, #4]
  89579. 8024550: 4613 mov r3, r2
  89580. 8024552: 005b lsls r3, r3, #1
  89581. 8024554: 4413 add r3, r2
  89582. 8024556: 00db lsls r3, r3, #3
  89583. 8024558: 440b add r3, r1
  89584. 802455a: 3304 adds r3, #4
  89585. 802455c: 2200 movs r2, #0
  89586. 802455e: 601a str r2, [r3, #0]
  89587. arp_table[i].ethaddr = ethzero;
  89588. 8024560: 4908 ldr r1, [pc, #32] @ (8024584 <etharp_free_entry+0xb8>)
  89589. 8024562: 687a ldr r2, [r7, #4]
  89590. 8024564: 4613 mov r3, r2
  89591. 8024566: 005b lsls r3, r3, #1
  89592. 8024568: 4413 add r3, r2
  89593. 802456a: 00db lsls r3, r3, #3
  89594. 802456c: 440b add r3, r1
  89595. 802456e: 3308 adds r3, #8
  89596. 8024570: 4a05 ldr r2, [pc, #20] @ (8024588 <etharp_free_entry+0xbc>)
  89597. 8024572: 3304 adds r3, #4
  89598. 8024574: 6810 ldr r0, [r2, #0]
  89599. 8024576: 6018 str r0, [r3, #0]
  89600. 8024578: 8892 ldrh r2, [r2, #4]
  89601. 802457a: 809a strh r2, [r3, #4]
  89602. #endif /* LWIP_DEBUG */
  89603. }
  89604. 802457c: bf00 nop
  89605. 802457e: 3708 adds r7, #8
  89606. 8024580: 46bd mov sp, r7
  89607. 8024582: bd80 pop {r7, pc}
  89608. 8024584: 2402b000 .word 0x2402b000
  89609. 8024588: 08031b68 .word 0x08031b68
  89610. 0802458c <etharp_tmr>:
  89611. * This function should be called every ARP_TMR_INTERVAL milliseconds (1 second),
  89612. * in order to expire entries in the ARP table.
  89613. */
  89614. void
  89615. etharp_tmr(void)
  89616. {
  89617. 802458c: b580 push {r7, lr}
  89618. 802458e: b082 sub sp, #8
  89619. 8024590: af00 add r7, sp, #0
  89620. int i;
  89621. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_timer\n"));
  89622. /* remove expired entries from the ARP table */
  89623. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  89624. 8024592: 2300 movs r3, #0
  89625. 8024594: 607b str r3, [r7, #4]
  89626. 8024596: e096 b.n 80246c6 <etharp_tmr+0x13a>
  89627. u8_t state = arp_table[i].state;
  89628. 8024598: 494f ldr r1, [pc, #316] @ (80246d8 <etharp_tmr+0x14c>)
  89629. 802459a: 687a ldr r2, [r7, #4]
  89630. 802459c: 4613 mov r3, r2
  89631. 802459e: 005b lsls r3, r3, #1
  89632. 80245a0: 4413 add r3, r2
  89633. 80245a2: 00db lsls r3, r3, #3
  89634. 80245a4: 440b add r3, r1
  89635. 80245a6: 3314 adds r3, #20
  89636. 80245a8: 781b ldrb r3, [r3, #0]
  89637. 80245aa: 70fb strb r3, [r7, #3]
  89638. if (state != ETHARP_STATE_EMPTY
  89639. 80245ac: 78fb ldrb r3, [r7, #3]
  89640. 80245ae: 2b00 cmp r3, #0
  89641. 80245b0: f000 8086 beq.w 80246c0 <etharp_tmr+0x134>
  89642. #if ETHARP_SUPPORT_STATIC_ENTRIES
  89643. && (state != ETHARP_STATE_STATIC)
  89644. #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
  89645. ) {
  89646. arp_table[i].ctime++;
  89647. 80245b4: 4948 ldr r1, [pc, #288] @ (80246d8 <etharp_tmr+0x14c>)
  89648. 80245b6: 687a ldr r2, [r7, #4]
  89649. 80245b8: 4613 mov r3, r2
  89650. 80245ba: 005b lsls r3, r3, #1
  89651. 80245bc: 4413 add r3, r2
  89652. 80245be: 00db lsls r3, r3, #3
  89653. 80245c0: 440b add r3, r1
  89654. 80245c2: 3312 adds r3, #18
  89655. 80245c4: 881b ldrh r3, [r3, #0]
  89656. 80245c6: 3301 adds r3, #1
  89657. 80245c8: b298 uxth r0, r3
  89658. 80245ca: 4943 ldr r1, [pc, #268] @ (80246d8 <etharp_tmr+0x14c>)
  89659. 80245cc: 687a ldr r2, [r7, #4]
  89660. 80245ce: 4613 mov r3, r2
  89661. 80245d0: 005b lsls r3, r3, #1
  89662. 80245d2: 4413 add r3, r2
  89663. 80245d4: 00db lsls r3, r3, #3
  89664. 80245d6: 440b add r3, r1
  89665. 80245d8: 3312 adds r3, #18
  89666. 80245da: 4602 mov r2, r0
  89667. 80245dc: 801a strh r2, [r3, #0]
  89668. if ((arp_table[i].ctime >= ARP_MAXAGE) ||
  89669. 80245de: 493e ldr r1, [pc, #248] @ (80246d8 <etharp_tmr+0x14c>)
  89670. 80245e0: 687a ldr r2, [r7, #4]
  89671. 80245e2: 4613 mov r3, r2
  89672. 80245e4: 005b lsls r3, r3, #1
  89673. 80245e6: 4413 add r3, r2
  89674. 80245e8: 00db lsls r3, r3, #3
  89675. 80245ea: 440b add r3, r1
  89676. 80245ec: 3312 adds r3, #18
  89677. 80245ee: 881b ldrh r3, [r3, #0]
  89678. 80245f0: f5b3 7f96 cmp.w r3, #300 @ 0x12c
  89679. 80245f4: d215 bcs.n 8024622 <etharp_tmr+0x96>
  89680. ((arp_table[i].state == ETHARP_STATE_PENDING) &&
  89681. 80245f6: 4938 ldr r1, [pc, #224] @ (80246d8 <etharp_tmr+0x14c>)
  89682. 80245f8: 687a ldr r2, [r7, #4]
  89683. 80245fa: 4613 mov r3, r2
  89684. 80245fc: 005b lsls r3, r3, #1
  89685. 80245fe: 4413 add r3, r2
  89686. 8024600: 00db lsls r3, r3, #3
  89687. 8024602: 440b add r3, r1
  89688. 8024604: 3314 adds r3, #20
  89689. 8024606: 781b ldrb r3, [r3, #0]
  89690. if ((arp_table[i].ctime >= ARP_MAXAGE) ||
  89691. 8024608: 2b01 cmp r3, #1
  89692. 802460a: d10e bne.n 802462a <etharp_tmr+0x9e>
  89693. (arp_table[i].ctime >= ARP_MAXPENDING))) {
  89694. 802460c: 4932 ldr r1, [pc, #200] @ (80246d8 <etharp_tmr+0x14c>)
  89695. 802460e: 687a ldr r2, [r7, #4]
  89696. 8024610: 4613 mov r3, r2
  89697. 8024612: 005b lsls r3, r3, #1
  89698. 8024614: 4413 add r3, r2
  89699. 8024616: 00db lsls r3, r3, #3
  89700. 8024618: 440b add r3, r1
  89701. 802461a: 3312 adds r3, #18
  89702. 802461c: 881b ldrh r3, [r3, #0]
  89703. ((arp_table[i].state == ETHARP_STATE_PENDING) &&
  89704. 802461e: 2b04 cmp r3, #4
  89705. 8024620: d903 bls.n 802462a <etharp_tmr+0x9e>
  89706. /* pending or stable entry has become old! */
  89707. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_timer: expired %s entry %d.\n",
  89708. arp_table[i].state >= ETHARP_STATE_STABLE ? "stable" : "pending", i));
  89709. /* clean up entries that have just been expired */
  89710. etharp_free_entry(i);
  89711. 8024622: 6878 ldr r0, [r7, #4]
  89712. 8024624: f7ff ff52 bl 80244cc <etharp_free_entry>
  89713. 8024628: e04a b.n 80246c0 <etharp_tmr+0x134>
  89714. } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_1) {
  89715. 802462a: 492b ldr r1, [pc, #172] @ (80246d8 <etharp_tmr+0x14c>)
  89716. 802462c: 687a ldr r2, [r7, #4]
  89717. 802462e: 4613 mov r3, r2
  89718. 8024630: 005b lsls r3, r3, #1
  89719. 8024632: 4413 add r3, r2
  89720. 8024634: 00db lsls r3, r3, #3
  89721. 8024636: 440b add r3, r1
  89722. 8024638: 3314 adds r3, #20
  89723. 802463a: 781b ldrb r3, [r3, #0]
  89724. 802463c: 2b03 cmp r3, #3
  89725. 802463e: d10a bne.n 8024656 <etharp_tmr+0xca>
  89726. /* Don't send more than one request every 2 seconds. */
  89727. arp_table[i].state = ETHARP_STATE_STABLE_REREQUESTING_2;
  89728. 8024640: 4925 ldr r1, [pc, #148] @ (80246d8 <etharp_tmr+0x14c>)
  89729. 8024642: 687a ldr r2, [r7, #4]
  89730. 8024644: 4613 mov r3, r2
  89731. 8024646: 005b lsls r3, r3, #1
  89732. 8024648: 4413 add r3, r2
  89733. 802464a: 00db lsls r3, r3, #3
  89734. 802464c: 440b add r3, r1
  89735. 802464e: 3314 adds r3, #20
  89736. 8024650: 2204 movs r2, #4
  89737. 8024652: 701a strb r2, [r3, #0]
  89738. 8024654: e034 b.n 80246c0 <etharp_tmr+0x134>
  89739. } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_2) {
  89740. 8024656: 4920 ldr r1, [pc, #128] @ (80246d8 <etharp_tmr+0x14c>)
  89741. 8024658: 687a ldr r2, [r7, #4]
  89742. 802465a: 4613 mov r3, r2
  89743. 802465c: 005b lsls r3, r3, #1
  89744. 802465e: 4413 add r3, r2
  89745. 8024660: 00db lsls r3, r3, #3
  89746. 8024662: 440b add r3, r1
  89747. 8024664: 3314 adds r3, #20
  89748. 8024666: 781b ldrb r3, [r3, #0]
  89749. 8024668: 2b04 cmp r3, #4
  89750. 802466a: d10a bne.n 8024682 <etharp_tmr+0xf6>
  89751. /* Reset state to stable, so that the next transmitted packet will
  89752. re-send an ARP request. */
  89753. arp_table[i].state = ETHARP_STATE_STABLE;
  89754. 802466c: 491a ldr r1, [pc, #104] @ (80246d8 <etharp_tmr+0x14c>)
  89755. 802466e: 687a ldr r2, [r7, #4]
  89756. 8024670: 4613 mov r3, r2
  89757. 8024672: 005b lsls r3, r3, #1
  89758. 8024674: 4413 add r3, r2
  89759. 8024676: 00db lsls r3, r3, #3
  89760. 8024678: 440b add r3, r1
  89761. 802467a: 3314 adds r3, #20
  89762. 802467c: 2202 movs r2, #2
  89763. 802467e: 701a strb r2, [r3, #0]
  89764. 8024680: e01e b.n 80246c0 <etharp_tmr+0x134>
  89765. } else if (arp_table[i].state == ETHARP_STATE_PENDING) {
  89766. 8024682: 4915 ldr r1, [pc, #84] @ (80246d8 <etharp_tmr+0x14c>)
  89767. 8024684: 687a ldr r2, [r7, #4]
  89768. 8024686: 4613 mov r3, r2
  89769. 8024688: 005b lsls r3, r3, #1
  89770. 802468a: 4413 add r3, r2
  89771. 802468c: 00db lsls r3, r3, #3
  89772. 802468e: 440b add r3, r1
  89773. 8024690: 3314 adds r3, #20
  89774. 8024692: 781b ldrb r3, [r3, #0]
  89775. 8024694: 2b01 cmp r3, #1
  89776. 8024696: d113 bne.n 80246c0 <etharp_tmr+0x134>
  89777. /* still pending, resend an ARP query */
  89778. etharp_request(arp_table[i].netif, &arp_table[i].ipaddr);
  89779. 8024698: 490f ldr r1, [pc, #60] @ (80246d8 <etharp_tmr+0x14c>)
  89780. 802469a: 687a ldr r2, [r7, #4]
  89781. 802469c: 4613 mov r3, r2
  89782. 802469e: 005b lsls r3, r3, #1
  89783. 80246a0: 4413 add r3, r2
  89784. 80246a2: 00db lsls r3, r3, #3
  89785. 80246a4: 440b add r3, r1
  89786. 80246a6: 3308 adds r3, #8
  89787. 80246a8: 6818 ldr r0, [r3, #0]
  89788. 80246aa: 687a ldr r2, [r7, #4]
  89789. 80246ac: 4613 mov r3, r2
  89790. 80246ae: 005b lsls r3, r3, #1
  89791. 80246b0: 4413 add r3, r2
  89792. 80246b2: 00db lsls r3, r3, #3
  89793. 80246b4: 4a08 ldr r2, [pc, #32] @ (80246d8 <etharp_tmr+0x14c>)
  89794. 80246b6: 4413 add r3, r2
  89795. 80246b8: 3304 adds r3, #4
  89796. 80246ba: 4619 mov r1, r3
  89797. 80246bc: f000 fe76 bl 80253ac <etharp_request>
  89798. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  89799. 80246c0: 687b ldr r3, [r7, #4]
  89800. 80246c2: 3301 adds r3, #1
  89801. 80246c4: 607b str r3, [r7, #4]
  89802. 80246c6: 687b ldr r3, [r7, #4]
  89803. 80246c8: 2b09 cmp r3, #9
  89804. 80246ca: f77f af65 ble.w 8024598 <etharp_tmr+0xc>
  89805. }
  89806. }
  89807. }
  89808. }
  89809. 80246ce: bf00 nop
  89810. 80246d0: bf00 nop
  89811. 80246d2: 3708 adds r7, #8
  89812. 80246d4: 46bd mov sp, r7
  89813. 80246d6: bd80 pop {r7, pc}
  89814. 80246d8: 2402b000 .word 0x2402b000
  89815. 080246dc <etharp_find_entry>:
  89816. * @return The ARP entry index that matched or is created, ERR_MEM if no
  89817. * entry is found or could be recycled.
  89818. */
  89819. static s16_t
  89820. etharp_find_entry(const ip4_addr_t *ipaddr, u8_t flags, struct netif *netif)
  89821. {
  89822. 80246dc: b580 push {r7, lr}
  89823. 80246de: b08a sub sp, #40 @ 0x28
  89824. 80246e0: af00 add r7, sp, #0
  89825. 80246e2: 60f8 str r0, [r7, #12]
  89826. 80246e4: 460b mov r3, r1
  89827. 80246e6: 607a str r2, [r7, #4]
  89828. 80246e8: 72fb strb r3, [r7, #11]
  89829. s16_t old_pending = ARP_TABLE_SIZE, old_stable = ARP_TABLE_SIZE;
  89830. 80246ea: 230a movs r3, #10
  89831. 80246ec: 843b strh r3, [r7, #32]
  89832. 80246ee: 230a movs r3, #10
  89833. 80246f0: 847b strh r3, [r7, #34] @ 0x22
  89834. s16_t empty = ARP_TABLE_SIZE;
  89835. 80246f2: 230a movs r3, #10
  89836. 80246f4: 84bb strh r3, [r7, #36] @ 0x24
  89837. s16_t i = 0;
  89838. 80246f6: 2300 movs r3, #0
  89839. 80246f8: 84fb strh r3, [r7, #38] @ 0x26
  89840. /* oldest entry with packets on queue */
  89841. s16_t old_queue = ARP_TABLE_SIZE;
  89842. 80246fa: 230a movs r3, #10
  89843. 80246fc: 83fb strh r3, [r7, #30]
  89844. /* its age */
  89845. u16_t age_queue = 0, age_pending = 0, age_stable = 0;
  89846. 80246fe: 2300 movs r3, #0
  89847. 8024700: 83bb strh r3, [r7, #28]
  89848. 8024702: 2300 movs r3, #0
  89849. 8024704: 837b strh r3, [r7, #26]
  89850. 8024706: 2300 movs r3, #0
  89851. 8024708: 833b strh r3, [r7, #24]
  89852. * 4) remember the oldest pending entry with queued packets (if any)
  89853. * 5) search for a matching IP entry, either pending or stable
  89854. * until 5 matches, or all entries are searched for.
  89855. */
  89856. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  89857. 802470a: 2300 movs r3, #0
  89858. 802470c: 84fb strh r3, [r7, #38] @ 0x26
  89859. 802470e: e0ae b.n 802486e <etharp_find_entry+0x192>
  89860. u8_t state = arp_table[i].state;
  89861. 8024710: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89862. 8024714: 49a6 ldr r1, [pc, #664] @ (80249b0 <etharp_find_entry+0x2d4>)
  89863. 8024716: 4613 mov r3, r2
  89864. 8024718: 005b lsls r3, r3, #1
  89865. 802471a: 4413 add r3, r2
  89866. 802471c: 00db lsls r3, r3, #3
  89867. 802471e: 440b add r3, r1
  89868. 8024720: 3314 adds r3, #20
  89869. 8024722: 781b ldrb r3, [r3, #0]
  89870. 8024724: 75fb strb r3, [r7, #23]
  89871. /* no empty entry found yet and now we do find one? */
  89872. if ((empty == ARP_TABLE_SIZE) && (state == ETHARP_STATE_EMPTY)) {
  89873. 8024726: f9b7 3024 ldrsh.w r3, [r7, #36] @ 0x24
  89874. 802472a: 2b0a cmp r3, #10
  89875. 802472c: d105 bne.n 802473a <etharp_find_entry+0x5e>
  89876. 802472e: 7dfb ldrb r3, [r7, #23]
  89877. 8024730: 2b00 cmp r3, #0
  89878. 8024732: d102 bne.n 802473a <etharp_find_entry+0x5e>
  89879. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_find_entry: found empty entry %d\n", (int)i));
  89880. /* remember first empty entry */
  89881. empty = i;
  89882. 8024734: 8cfb ldrh r3, [r7, #38] @ 0x26
  89883. 8024736: 84bb strh r3, [r7, #36] @ 0x24
  89884. 8024738: e095 b.n 8024866 <etharp_find_entry+0x18a>
  89885. } else if (state != ETHARP_STATE_EMPTY) {
  89886. 802473a: 7dfb ldrb r3, [r7, #23]
  89887. 802473c: 2b00 cmp r3, #0
  89888. 802473e: f000 8092 beq.w 8024866 <etharp_find_entry+0x18a>
  89889. LWIP_ASSERT("state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE",
  89890. 8024742: 7dfb ldrb r3, [r7, #23]
  89891. 8024744: 2b01 cmp r3, #1
  89892. 8024746: d009 beq.n 802475c <etharp_find_entry+0x80>
  89893. 8024748: 7dfb ldrb r3, [r7, #23]
  89894. 802474a: 2b01 cmp r3, #1
  89895. 802474c: d806 bhi.n 802475c <etharp_find_entry+0x80>
  89896. 802474e: 4b99 ldr r3, [pc, #612] @ (80249b4 <etharp_find_entry+0x2d8>)
  89897. 8024750: f240 1223 movw r2, #291 @ 0x123
  89898. 8024754: 4998 ldr r1, [pc, #608] @ (80249b8 <etharp_find_entry+0x2dc>)
  89899. 8024756: 4899 ldr r0, [pc, #612] @ (80249bc <etharp_find_entry+0x2e0>)
  89900. 8024758: f006 f800 bl 802a75c <iprintf>
  89901. state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE);
  89902. /* if given, does IP address match IP address in ARP entry? */
  89903. if (ipaddr && ip4_addr_cmp(ipaddr, &arp_table[i].ipaddr)
  89904. 802475c: 68fb ldr r3, [r7, #12]
  89905. 802475e: 2b00 cmp r3, #0
  89906. 8024760: d020 beq.n 80247a4 <etharp_find_entry+0xc8>
  89907. 8024762: 68fb ldr r3, [r7, #12]
  89908. 8024764: 6819 ldr r1, [r3, #0]
  89909. 8024766: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89910. 802476a: 4891 ldr r0, [pc, #580] @ (80249b0 <etharp_find_entry+0x2d4>)
  89911. 802476c: 4613 mov r3, r2
  89912. 802476e: 005b lsls r3, r3, #1
  89913. 8024770: 4413 add r3, r2
  89914. 8024772: 00db lsls r3, r3, #3
  89915. 8024774: 4403 add r3, r0
  89916. 8024776: 3304 adds r3, #4
  89917. 8024778: 681b ldr r3, [r3, #0]
  89918. 802477a: 4299 cmp r1, r3
  89919. 802477c: d112 bne.n 80247a4 <etharp_find_entry+0xc8>
  89920. #if ETHARP_TABLE_MATCH_NETIF
  89921. && ((netif == NULL) || (netif == arp_table[i].netif))
  89922. 802477e: 687b ldr r3, [r7, #4]
  89923. 8024780: 2b00 cmp r3, #0
  89924. 8024782: d00c beq.n 802479e <etharp_find_entry+0xc2>
  89925. 8024784: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89926. 8024788: 4989 ldr r1, [pc, #548] @ (80249b0 <etharp_find_entry+0x2d4>)
  89927. 802478a: 4613 mov r3, r2
  89928. 802478c: 005b lsls r3, r3, #1
  89929. 802478e: 4413 add r3, r2
  89930. 8024790: 00db lsls r3, r3, #3
  89931. 8024792: 440b add r3, r1
  89932. 8024794: 3308 adds r3, #8
  89933. 8024796: 681b ldr r3, [r3, #0]
  89934. 8024798: 687a ldr r2, [r7, #4]
  89935. 802479a: 429a cmp r2, r3
  89936. 802479c: d102 bne.n 80247a4 <etharp_find_entry+0xc8>
  89937. #endif /* ETHARP_TABLE_MATCH_NETIF */
  89938. ) {
  89939. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: found matching entry %d\n", (int)i));
  89940. /* found exact IP address match, simply bail out */
  89941. return i;
  89942. 802479e: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  89943. 80247a2: e100 b.n 80249a6 <etharp_find_entry+0x2ca>
  89944. }
  89945. /* pending entry? */
  89946. if (state == ETHARP_STATE_PENDING) {
  89947. 80247a4: 7dfb ldrb r3, [r7, #23]
  89948. 80247a6: 2b01 cmp r3, #1
  89949. 80247a8: d140 bne.n 802482c <etharp_find_entry+0x150>
  89950. /* pending with queued packets? */
  89951. if (arp_table[i].q != NULL) {
  89952. 80247aa: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89953. 80247ae: 4980 ldr r1, [pc, #512] @ (80249b0 <etharp_find_entry+0x2d4>)
  89954. 80247b0: 4613 mov r3, r2
  89955. 80247b2: 005b lsls r3, r3, #1
  89956. 80247b4: 4413 add r3, r2
  89957. 80247b6: 00db lsls r3, r3, #3
  89958. 80247b8: 440b add r3, r1
  89959. 80247ba: 681b ldr r3, [r3, #0]
  89960. 80247bc: 2b00 cmp r3, #0
  89961. 80247be: d01a beq.n 80247f6 <etharp_find_entry+0x11a>
  89962. if (arp_table[i].ctime >= age_queue) {
  89963. 80247c0: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89964. 80247c4: 497a ldr r1, [pc, #488] @ (80249b0 <etharp_find_entry+0x2d4>)
  89965. 80247c6: 4613 mov r3, r2
  89966. 80247c8: 005b lsls r3, r3, #1
  89967. 80247ca: 4413 add r3, r2
  89968. 80247cc: 00db lsls r3, r3, #3
  89969. 80247ce: 440b add r3, r1
  89970. 80247d0: 3312 adds r3, #18
  89971. 80247d2: 881b ldrh r3, [r3, #0]
  89972. 80247d4: 8bba ldrh r2, [r7, #28]
  89973. 80247d6: 429a cmp r2, r3
  89974. 80247d8: d845 bhi.n 8024866 <etharp_find_entry+0x18a>
  89975. old_queue = i;
  89976. 80247da: 8cfb ldrh r3, [r7, #38] @ 0x26
  89977. 80247dc: 83fb strh r3, [r7, #30]
  89978. age_queue = arp_table[i].ctime;
  89979. 80247de: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89980. 80247e2: 4973 ldr r1, [pc, #460] @ (80249b0 <etharp_find_entry+0x2d4>)
  89981. 80247e4: 4613 mov r3, r2
  89982. 80247e6: 005b lsls r3, r3, #1
  89983. 80247e8: 4413 add r3, r2
  89984. 80247ea: 00db lsls r3, r3, #3
  89985. 80247ec: 440b add r3, r1
  89986. 80247ee: 3312 adds r3, #18
  89987. 80247f0: 881b ldrh r3, [r3, #0]
  89988. 80247f2: 83bb strh r3, [r7, #28]
  89989. 80247f4: e037 b.n 8024866 <etharp_find_entry+0x18a>
  89990. }
  89991. } else
  89992. /* pending without queued packets? */
  89993. {
  89994. if (arp_table[i].ctime >= age_pending) {
  89995. 80247f6: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89996. 80247fa: 496d ldr r1, [pc, #436] @ (80249b0 <etharp_find_entry+0x2d4>)
  89997. 80247fc: 4613 mov r3, r2
  89998. 80247fe: 005b lsls r3, r3, #1
  89999. 8024800: 4413 add r3, r2
  90000. 8024802: 00db lsls r3, r3, #3
  90001. 8024804: 440b add r3, r1
  90002. 8024806: 3312 adds r3, #18
  90003. 8024808: 881b ldrh r3, [r3, #0]
  90004. 802480a: 8b7a ldrh r2, [r7, #26]
  90005. 802480c: 429a cmp r2, r3
  90006. 802480e: d82a bhi.n 8024866 <etharp_find_entry+0x18a>
  90007. old_pending = i;
  90008. 8024810: 8cfb ldrh r3, [r7, #38] @ 0x26
  90009. 8024812: 843b strh r3, [r7, #32]
  90010. age_pending = arp_table[i].ctime;
  90011. 8024814: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  90012. 8024818: 4965 ldr r1, [pc, #404] @ (80249b0 <etharp_find_entry+0x2d4>)
  90013. 802481a: 4613 mov r3, r2
  90014. 802481c: 005b lsls r3, r3, #1
  90015. 802481e: 4413 add r3, r2
  90016. 8024820: 00db lsls r3, r3, #3
  90017. 8024822: 440b add r3, r1
  90018. 8024824: 3312 adds r3, #18
  90019. 8024826: 881b ldrh r3, [r3, #0]
  90020. 8024828: 837b strh r3, [r7, #26]
  90021. 802482a: e01c b.n 8024866 <etharp_find_entry+0x18a>
  90022. }
  90023. }
  90024. /* stable entry? */
  90025. } else if (state >= ETHARP_STATE_STABLE) {
  90026. 802482c: 7dfb ldrb r3, [r7, #23]
  90027. 802482e: 2b01 cmp r3, #1
  90028. 8024830: d919 bls.n 8024866 <etharp_find_entry+0x18a>
  90029. /* don't record old_stable for static entries since they never expire */
  90030. if (state < ETHARP_STATE_STATIC)
  90031. #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
  90032. {
  90033. /* remember entry with oldest stable entry in oldest, its age in maxtime */
  90034. if (arp_table[i].ctime >= age_stable) {
  90035. 8024832: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  90036. 8024836: 495e ldr r1, [pc, #376] @ (80249b0 <etharp_find_entry+0x2d4>)
  90037. 8024838: 4613 mov r3, r2
  90038. 802483a: 005b lsls r3, r3, #1
  90039. 802483c: 4413 add r3, r2
  90040. 802483e: 00db lsls r3, r3, #3
  90041. 8024840: 440b add r3, r1
  90042. 8024842: 3312 adds r3, #18
  90043. 8024844: 881b ldrh r3, [r3, #0]
  90044. 8024846: 8b3a ldrh r2, [r7, #24]
  90045. 8024848: 429a cmp r2, r3
  90046. 802484a: d80c bhi.n 8024866 <etharp_find_entry+0x18a>
  90047. old_stable = i;
  90048. 802484c: 8cfb ldrh r3, [r7, #38] @ 0x26
  90049. 802484e: 847b strh r3, [r7, #34] @ 0x22
  90050. age_stable = arp_table[i].ctime;
  90051. 8024850: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  90052. 8024854: 4956 ldr r1, [pc, #344] @ (80249b0 <etharp_find_entry+0x2d4>)
  90053. 8024856: 4613 mov r3, r2
  90054. 8024858: 005b lsls r3, r3, #1
  90055. 802485a: 4413 add r3, r2
  90056. 802485c: 00db lsls r3, r3, #3
  90057. 802485e: 440b add r3, r1
  90058. 8024860: 3312 adds r3, #18
  90059. 8024862: 881b ldrh r3, [r3, #0]
  90060. 8024864: 833b strh r3, [r7, #24]
  90061. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  90062. 8024866: 8cfb ldrh r3, [r7, #38] @ 0x26
  90063. 8024868: 3301 adds r3, #1
  90064. 802486a: b29b uxth r3, r3
  90065. 802486c: 84fb strh r3, [r7, #38] @ 0x26
  90066. 802486e: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  90067. 8024872: 2b09 cmp r3, #9
  90068. 8024874: f77f af4c ble.w 8024710 <etharp_find_entry+0x34>
  90069. }
  90070. }
  90071. /* { we have no match } => try to create a new entry */
  90072. /* don't create new entry, only search? */
  90073. if (((flags & ETHARP_FLAG_FIND_ONLY) != 0) ||
  90074. 8024878: 7afb ldrb r3, [r7, #11]
  90075. 802487a: f003 0302 and.w r3, r3, #2
  90076. 802487e: 2b00 cmp r3, #0
  90077. 8024880: d108 bne.n 8024894 <etharp_find_entry+0x1b8>
  90078. 8024882: f9b7 3024 ldrsh.w r3, [r7, #36] @ 0x24
  90079. 8024886: 2b0a cmp r3, #10
  90080. 8024888: d107 bne.n 802489a <etharp_find_entry+0x1be>
  90081. /* or no empty entry found and not allowed to recycle? */
  90082. ((empty == ARP_TABLE_SIZE) && ((flags & ETHARP_FLAG_TRY_HARD) == 0))) {
  90083. 802488a: 7afb ldrb r3, [r7, #11]
  90084. 802488c: f003 0301 and.w r3, r3, #1
  90085. 8024890: 2b00 cmp r3, #0
  90086. 8024892: d102 bne.n 802489a <etharp_find_entry+0x1be>
  90087. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: no empty entry found and not allowed to recycle\n"));
  90088. return (s16_t)ERR_MEM;
  90089. 8024894: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  90090. 8024898: e085 b.n 80249a6 <etharp_find_entry+0x2ca>
  90091. *
  90092. * { ETHARP_FLAG_TRY_HARD is set at this point }
  90093. */
  90094. /* 1) empty entry available? */
  90095. if (empty < ARP_TABLE_SIZE) {
  90096. 802489a: f9b7 3024 ldrsh.w r3, [r7, #36] @ 0x24
  90097. 802489e: 2b09 cmp r3, #9
  90098. 80248a0: dc02 bgt.n 80248a8 <etharp_find_entry+0x1cc>
  90099. i = empty;
  90100. 80248a2: 8cbb ldrh r3, [r7, #36] @ 0x24
  90101. 80248a4: 84fb strh r3, [r7, #38] @ 0x26
  90102. 80248a6: e039 b.n 802491c <etharp_find_entry+0x240>
  90103. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting empty entry %d\n", (int)i));
  90104. } else {
  90105. /* 2) found recyclable stable entry? */
  90106. if (old_stable < ARP_TABLE_SIZE) {
  90107. 80248a8: f9b7 3022 ldrsh.w r3, [r7, #34] @ 0x22
  90108. 80248ac: 2b09 cmp r3, #9
  90109. 80248ae: dc14 bgt.n 80248da <etharp_find_entry+0x1fe>
  90110. /* recycle oldest stable*/
  90111. i = old_stable;
  90112. 80248b0: 8c7b ldrh r3, [r7, #34] @ 0x22
  90113. 80248b2: 84fb strh r3, [r7, #38] @ 0x26
  90114. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest stable entry %d\n", (int)i));
  90115. /* no queued packets should exist on stable entries */
  90116. LWIP_ASSERT("arp_table[i].q == NULL", arp_table[i].q == NULL);
  90117. 80248b4: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  90118. 80248b8: 493d ldr r1, [pc, #244] @ (80249b0 <etharp_find_entry+0x2d4>)
  90119. 80248ba: 4613 mov r3, r2
  90120. 80248bc: 005b lsls r3, r3, #1
  90121. 80248be: 4413 add r3, r2
  90122. 80248c0: 00db lsls r3, r3, #3
  90123. 80248c2: 440b add r3, r1
  90124. 80248c4: 681b ldr r3, [r3, #0]
  90125. 80248c6: 2b00 cmp r3, #0
  90126. 80248c8: d018 beq.n 80248fc <etharp_find_entry+0x220>
  90127. 80248ca: 4b3a ldr r3, [pc, #232] @ (80249b4 <etharp_find_entry+0x2d8>)
  90128. 80248cc: f240 126d movw r2, #365 @ 0x16d
  90129. 80248d0: 493b ldr r1, [pc, #236] @ (80249c0 <etharp_find_entry+0x2e4>)
  90130. 80248d2: 483a ldr r0, [pc, #232] @ (80249bc <etharp_find_entry+0x2e0>)
  90131. 80248d4: f005 ff42 bl 802a75c <iprintf>
  90132. 80248d8: e010 b.n 80248fc <etharp_find_entry+0x220>
  90133. /* 3) found recyclable pending entry without queued packets? */
  90134. } else if (old_pending < ARP_TABLE_SIZE) {
  90135. 80248da: f9b7 3020 ldrsh.w r3, [r7, #32]
  90136. 80248de: 2b09 cmp r3, #9
  90137. 80248e0: dc02 bgt.n 80248e8 <etharp_find_entry+0x20c>
  90138. /* recycle oldest pending */
  90139. i = old_pending;
  90140. 80248e2: 8c3b ldrh r3, [r7, #32]
  90141. 80248e4: 84fb strh r3, [r7, #38] @ 0x26
  90142. 80248e6: e009 b.n 80248fc <etharp_find_entry+0x220>
  90143. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest pending entry %d (without queue)\n", (int)i));
  90144. /* 4) found recyclable pending entry with queued packets? */
  90145. } else if (old_queue < ARP_TABLE_SIZE) {
  90146. 80248e8: f9b7 301e ldrsh.w r3, [r7, #30]
  90147. 80248ec: 2b09 cmp r3, #9
  90148. 80248ee: dc02 bgt.n 80248f6 <etharp_find_entry+0x21a>
  90149. /* recycle oldest pending (queued packets are free in etharp_free_entry) */
  90150. i = old_queue;
  90151. 80248f0: 8bfb ldrh r3, [r7, #30]
  90152. 80248f2: 84fb strh r3, [r7, #38] @ 0x26
  90153. 80248f4: e002 b.n 80248fc <etharp_find_entry+0x220>
  90154. 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)));
  90155. /* no empty or recyclable entries found */
  90156. } else {
  90157. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: no empty or recyclable entries found\n"));
  90158. return (s16_t)ERR_MEM;
  90159. 80248f6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  90160. 80248fa: e054 b.n 80249a6 <etharp_find_entry+0x2ca>
  90161. }
  90162. /* { empty or recyclable entry found } */
  90163. LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE);
  90164. 80248fc: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  90165. 8024900: 2b09 cmp r3, #9
  90166. 8024902: dd06 ble.n 8024912 <etharp_find_entry+0x236>
  90167. 8024904: 4b2b ldr r3, [pc, #172] @ (80249b4 <etharp_find_entry+0x2d8>)
  90168. 8024906: f240 127f movw r2, #383 @ 0x17f
  90169. 802490a: 492e ldr r1, [pc, #184] @ (80249c4 <etharp_find_entry+0x2e8>)
  90170. 802490c: 482b ldr r0, [pc, #172] @ (80249bc <etharp_find_entry+0x2e0>)
  90171. 802490e: f005 ff25 bl 802a75c <iprintf>
  90172. etharp_free_entry(i);
  90173. 8024912: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  90174. 8024916: 4618 mov r0, r3
  90175. 8024918: f7ff fdd8 bl 80244cc <etharp_free_entry>
  90176. }
  90177. LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE);
  90178. 802491c: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  90179. 8024920: 2b09 cmp r3, #9
  90180. 8024922: dd06 ble.n 8024932 <etharp_find_entry+0x256>
  90181. 8024924: 4b23 ldr r3, [pc, #140] @ (80249b4 <etharp_find_entry+0x2d8>)
  90182. 8024926: f240 1283 movw r2, #387 @ 0x183
  90183. 802492a: 4926 ldr r1, [pc, #152] @ (80249c4 <etharp_find_entry+0x2e8>)
  90184. 802492c: 4823 ldr r0, [pc, #140] @ (80249bc <etharp_find_entry+0x2e0>)
  90185. 802492e: f005 ff15 bl 802a75c <iprintf>
  90186. LWIP_ASSERT("arp_table[i].state == ETHARP_STATE_EMPTY",
  90187. 8024932: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  90188. 8024936: 491e ldr r1, [pc, #120] @ (80249b0 <etharp_find_entry+0x2d4>)
  90189. 8024938: 4613 mov r3, r2
  90190. 802493a: 005b lsls r3, r3, #1
  90191. 802493c: 4413 add r3, r2
  90192. 802493e: 00db lsls r3, r3, #3
  90193. 8024940: 440b add r3, r1
  90194. 8024942: 3314 adds r3, #20
  90195. 8024944: 781b ldrb r3, [r3, #0]
  90196. 8024946: 2b00 cmp r3, #0
  90197. 8024948: d006 beq.n 8024958 <etharp_find_entry+0x27c>
  90198. 802494a: 4b1a ldr r3, [pc, #104] @ (80249b4 <etharp_find_entry+0x2d8>)
  90199. 802494c: f44f 72c2 mov.w r2, #388 @ 0x184
  90200. 8024950: 491d ldr r1, [pc, #116] @ (80249c8 <etharp_find_entry+0x2ec>)
  90201. 8024952: 481a ldr r0, [pc, #104] @ (80249bc <etharp_find_entry+0x2e0>)
  90202. 8024954: f005 ff02 bl 802a75c <iprintf>
  90203. arp_table[i].state == ETHARP_STATE_EMPTY);
  90204. /* IP address given? */
  90205. if (ipaddr != NULL) {
  90206. 8024958: 68fb ldr r3, [r7, #12]
  90207. 802495a: 2b00 cmp r3, #0
  90208. 802495c: d00b beq.n 8024976 <etharp_find_entry+0x29a>
  90209. /* set IP address */
  90210. ip4_addr_copy(arp_table[i].ipaddr, *ipaddr);
  90211. 802495e: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  90212. 8024962: 68fb ldr r3, [r7, #12]
  90213. 8024964: 6819 ldr r1, [r3, #0]
  90214. 8024966: 4812 ldr r0, [pc, #72] @ (80249b0 <etharp_find_entry+0x2d4>)
  90215. 8024968: 4613 mov r3, r2
  90216. 802496a: 005b lsls r3, r3, #1
  90217. 802496c: 4413 add r3, r2
  90218. 802496e: 00db lsls r3, r3, #3
  90219. 8024970: 4403 add r3, r0
  90220. 8024972: 3304 adds r3, #4
  90221. 8024974: 6019 str r1, [r3, #0]
  90222. }
  90223. arp_table[i].ctime = 0;
  90224. 8024976: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  90225. 802497a: 490d ldr r1, [pc, #52] @ (80249b0 <etharp_find_entry+0x2d4>)
  90226. 802497c: 4613 mov r3, r2
  90227. 802497e: 005b lsls r3, r3, #1
  90228. 8024980: 4413 add r3, r2
  90229. 8024982: 00db lsls r3, r3, #3
  90230. 8024984: 440b add r3, r1
  90231. 8024986: 3312 adds r3, #18
  90232. 8024988: 2200 movs r2, #0
  90233. 802498a: 801a strh r2, [r3, #0]
  90234. #if ETHARP_TABLE_MATCH_NETIF
  90235. arp_table[i].netif = netif;
  90236. 802498c: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  90237. 8024990: 4907 ldr r1, [pc, #28] @ (80249b0 <etharp_find_entry+0x2d4>)
  90238. 8024992: 4613 mov r3, r2
  90239. 8024994: 005b lsls r3, r3, #1
  90240. 8024996: 4413 add r3, r2
  90241. 8024998: 00db lsls r3, r3, #3
  90242. 802499a: 440b add r3, r1
  90243. 802499c: 3308 adds r3, #8
  90244. 802499e: 687a ldr r2, [r7, #4]
  90245. 80249a0: 601a str r2, [r3, #0]
  90246. #endif /* ETHARP_TABLE_MATCH_NETIF */
  90247. return (s16_t)i;
  90248. 80249a2: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  90249. }
  90250. 80249a6: 4618 mov r0, r3
  90251. 80249a8: 3728 adds r7, #40 @ 0x28
  90252. 80249aa: 46bd mov sp, r7
  90253. 80249ac: bd80 pop {r7, pc}
  90254. 80249ae: bf00 nop
  90255. 80249b0: 2402b000 .word 0x2402b000
  90256. 80249b4: 080310d8 .word 0x080310d8
  90257. 80249b8: 08031110 .word 0x08031110
  90258. 80249bc: 08031150 .word 0x08031150
  90259. 80249c0: 08031178 .word 0x08031178
  90260. 80249c4: 08031190 .word 0x08031190
  90261. 80249c8: 080311a4 .word 0x080311a4
  90262. 080249cc <etharp_update_arp_entry>:
  90263. *
  90264. * @see pbuf_free()
  90265. */
  90266. static err_t
  90267. etharp_update_arp_entry(struct netif *netif, const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, u8_t flags)
  90268. {
  90269. 80249cc: b580 push {r7, lr}
  90270. 80249ce: b088 sub sp, #32
  90271. 80249d0: af02 add r7, sp, #8
  90272. 80249d2: 60f8 str r0, [r7, #12]
  90273. 80249d4: 60b9 str r1, [r7, #8]
  90274. 80249d6: 607a str r2, [r7, #4]
  90275. 80249d8: 70fb strb r3, [r7, #3]
  90276. s16_t i;
  90277. LWIP_ASSERT("netif->hwaddr_len == ETH_HWADDR_LEN", netif->hwaddr_len == ETH_HWADDR_LEN);
  90278. 80249da: 68fb ldr r3, [r7, #12]
  90279. 80249dc: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  90280. 80249e0: 2b06 cmp r3, #6
  90281. 80249e2: d006 beq.n 80249f2 <etharp_update_arp_entry+0x26>
  90282. 80249e4: 4b48 ldr r3, [pc, #288] @ (8024b08 <etharp_update_arp_entry+0x13c>)
  90283. 80249e6: f240 12a9 movw r2, #425 @ 0x1a9
  90284. 80249ea: 4948 ldr r1, [pc, #288] @ (8024b0c <etharp_update_arp_entry+0x140>)
  90285. 80249ec: 4848 ldr r0, [pc, #288] @ (8024b10 <etharp_update_arp_entry+0x144>)
  90286. 80249ee: f005 feb5 bl 802a75c <iprintf>
  90287. 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",
  90288. ip4_addr1_16(ipaddr), ip4_addr2_16(ipaddr), ip4_addr3_16(ipaddr), ip4_addr4_16(ipaddr),
  90289. (u16_t)ethaddr->addr[0], (u16_t)ethaddr->addr[1], (u16_t)ethaddr->addr[2],
  90290. (u16_t)ethaddr->addr[3], (u16_t)ethaddr->addr[4], (u16_t)ethaddr->addr[5]));
  90291. /* non-unicast address? */
  90292. if (ip4_addr_isany(ipaddr) ||
  90293. 80249f2: 68bb ldr r3, [r7, #8]
  90294. 80249f4: 2b00 cmp r3, #0
  90295. 80249f6: d012 beq.n 8024a1e <etharp_update_arp_entry+0x52>
  90296. 80249f8: 68bb ldr r3, [r7, #8]
  90297. 80249fa: 681b ldr r3, [r3, #0]
  90298. 80249fc: 2b00 cmp r3, #0
  90299. 80249fe: d00e beq.n 8024a1e <etharp_update_arp_entry+0x52>
  90300. ip4_addr_isbroadcast(ipaddr, netif) ||
  90301. 8024a00: 68bb ldr r3, [r7, #8]
  90302. 8024a02: 681b ldr r3, [r3, #0]
  90303. 8024a04: 68f9 ldr r1, [r7, #12]
  90304. 8024a06: 4618 mov r0, r3
  90305. 8024a08: f001 f952 bl 8025cb0 <ip4_addr_isbroadcast_u32>
  90306. 8024a0c: 4603 mov r3, r0
  90307. if (ip4_addr_isany(ipaddr) ||
  90308. 8024a0e: 2b00 cmp r3, #0
  90309. 8024a10: d105 bne.n 8024a1e <etharp_update_arp_entry+0x52>
  90310. ip4_addr_ismulticast(ipaddr)) {
  90311. 8024a12: 68bb ldr r3, [r7, #8]
  90312. 8024a14: 681b ldr r3, [r3, #0]
  90313. 8024a16: f003 03f0 and.w r3, r3, #240 @ 0xf0
  90314. ip4_addr_isbroadcast(ipaddr, netif) ||
  90315. 8024a1a: 2be0 cmp r3, #224 @ 0xe0
  90316. 8024a1c: d102 bne.n 8024a24 <etharp_update_arp_entry+0x58>
  90317. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: will not add non-unicast IP address to ARP cache\n"));
  90318. return ERR_ARG;
  90319. 8024a1e: f06f 030f mvn.w r3, #15
  90320. 8024a22: e06c b.n 8024afe <etharp_update_arp_entry+0x132>
  90321. }
  90322. /* find or create ARP entry */
  90323. i = etharp_find_entry(ipaddr, flags, netif);
  90324. 8024a24: 78fb ldrb r3, [r7, #3]
  90325. 8024a26: 68fa ldr r2, [r7, #12]
  90326. 8024a28: 4619 mov r1, r3
  90327. 8024a2a: 68b8 ldr r0, [r7, #8]
  90328. 8024a2c: f7ff fe56 bl 80246dc <etharp_find_entry>
  90329. 8024a30: 4603 mov r3, r0
  90330. 8024a32: 82fb strh r3, [r7, #22]
  90331. /* bail out if no entry could be found */
  90332. if (i < 0) {
  90333. 8024a34: f9b7 3016 ldrsh.w r3, [r7, #22]
  90334. 8024a38: 2b00 cmp r3, #0
  90335. 8024a3a: da02 bge.n 8024a42 <etharp_update_arp_entry+0x76>
  90336. return (err_t)i;
  90337. 8024a3c: 8afb ldrh r3, [r7, #22]
  90338. 8024a3e: b25b sxtb r3, r3
  90339. 8024a40: e05d b.n 8024afe <etharp_update_arp_entry+0x132>
  90340. return ERR_VAL;
  90341. } else
  90342. #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
  90343. {
  90344. /* mark it stable */
  90345. arp_table[i].state = ETHARP_STATE_STABLE;
  90346. 8024a42: f9b7 2016 ldrsh.w r2, [r7, #22]
  90347. 8024a46: 4933 ldr r1, [pc, #204] @ (8024b14 <etharp_update_arp_entry+0x148>)
  90348. 8024a48: 4613 mov r3, r2
  90349. 8024a4a: 005b lsls r3, r3, #1
  90350. 8024a4c: 4413 add r3, r2
  90351. 8024a4e: 00db lsls r3, r3, #3
  90352. 8024a50: 440b add r3, r1
  90353. 8024a52: 3314 adds r3, #20
  90354. 8024a54: 2202 movs r2, #2
  90355. 8024a56: 701a strb r2, [r3, #0]
  90356. }
  90357. /* record network interface */
  90358. arp_table[i].netif = netif;
  90359. 8024a58: f9b7 2016 ldrsh.w r2, [r7, #22]
  90360. 8024a5c: 492d ldr r1, [pc, #180] @ (8024b14 <etharp_update_arp_entry+0x148>)
  90361. 8024a5e: 4613 mov r3, r2
  90362. 8024a60: 005b lsls r3, r3, #1
  90363. 8024a62: 4413 add r3, r2
  90364. 8024a64: 00db lsls r3, r3, #3
  90365. 8024a66: 440b add r3, r1
  90366. 8024a68: 3308 adds r3, #8
  90367. 8024a6a: 68fa ldr r2, [r7, #12]
  90368. 8024a6c: 601a str r2, [r3, #0]
  90369. /* insert in SNMP ARP index tree */
  90370. mib2_add_arp_entry(netif, &arp_table[i].ipaddr);
  90371. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: updating stable entry %"S16_F"\n", i));
  90372. /* update address */
  90373. SMEMCPY(&arp_table[i].ethaddr, ethaddr, ETH_HWADDR_LEN);
  90374. 8024a6e: f9b7 2016 ldrsh.w r2, [r7, #22]
  90375. 8024a72: 4613 mov r3, r2
  90376. 8024a74: 005b lsls r3, r3, #1
  90377. 8024a76: 4413 add r3, r2
  90378. 8024a78: 00db lsls r3, r3, #3
  90379. 8024a7a: 3308 adds r3, #8
  90380. 8024a7c: 4a25 ldr r2, [pc, #148] @ (8024b14 <etharp_update_arp_entry+0x148>)
  90381. 8024a7e: 4413 add r3, r2
  90382. 8024a80: 3304 adds r3, #4
  90383. 8024a82: 2206 movs r2, #6
  90384. 8024a84: 6879 ldr r1, [r7, #4]
  90385. 8024a86: 4618 mov r0, r3
  90386. 8024a88: f006 f8f1 bl 802ac6e <memcpy>
  90387. /* reset time stamp */
  90388. arp_table[i].ctime = 0;
  90389. 8024a8c: f9b7 2016 ldrsh.w r2, [r7, #22]
  90390. 8024a90: 4920 ldr r1, [pc, #128] @ (8024b14 <etharp_update_arp_entry+0x148>)
  90391. 8024a92: 4613 mov r3, r2
  90392. 8024a94: 005b lsls r3, r3, #1
  90393. 8024a96: 4413 add r3, r2
  90394. 8024a98: 00db lsls r3, r3, #3
  90395. 8024a9a: 440b add r3, r1
  90396. 8024a9c: 3312 adds r3, #18
  90397. 8024a9e: 2200 movs r2, #0
  90398. 8024aa0: 801a strh r2, [r3, #0]
  90399. /* get the packet pointer */
  90400. p = q->p;
  90401. /* now queue entry can be freed */
  90402. memp_free(MEMP_ARP_QUEUE, q);
  90403. #else /* ARP_QUEUEING */
  90404. if (arp_table[i].q != NULL) {
  90405. 8024aa2: f9b7 2016 ldrsh.w r2, [r7, #22]
  90406. 8024aa6: 491b ldr r1, [pc, #108] @ (8024b14 <etharp_update_arp_entry+0x148>)
  90407. 8024aa8: 4613 mov r3, r2
  90408. 8024aaa: 005b lsls r3, r3, #1
  90409. 8024aac: 4413 add r3, r2
  90410. 8024aae: 00db lsls r3, r3, #3
  90411. 8024ab0: 440b add r3, r1
  90412. 8024ab2: 681b ldr r3, [r3, #0]
  90413. 8024ab4: 2b00 cmp r3, #0
  90414. 8024ab6: d021 beq.n 8024afc <etharp_update_arp_entry+0x130>
  90415. struct pbuf *p = arp_table[i].q;
  90416. 8024ab8: f9b7 2016 ldrsh.w r2, [r7, #22]
  90417. 8024abc: 4915 ldr r1, [pc, #84] @ (8024b14 <etharp_update_arp_entry+0x148>)
  90418. 8024abe: 4613 mov r3, r2
  90419. 8024ac0: 005b lsls r3, r3, #1
  90420. 8024ac2: 4413 add r3, r2
  90421. 8024ac4: 00db lsls r3, r3, #3
  90422. 8024ac6: 440b add r3, r1
  90423. 8024ac8: 681b ldr r3, [r3, #0]
  90424. 8024aca: 613b str r3, [r7, #16]
  90425. arp_table[i].q = NULL;
  90426. 8024acc: f9b7 2016 ldrsh.w r2, [r7, #22]
  90427. 8024ad0: 4910 ldr r1, [pc, #64] @ (8024b14 <etharp_update_arp_entry+0x148>)
  90428. 8024ad2: 4613 mov r3, r2
  90429. 8024ad4: 005b lsls r3, r3, #1
  90430. 8024ad6: 4413 add r3, r2
  90431. 8024ad8: 00db lsls r3, r3, #3
  90432. 8024ada: 440b add r3, r1
  90433. 8024adc: 2200 movs r2, #0
  90434. 8024ade: 601a str r2, [r3, #0]
  90435. #endif /* ARP_QUEUEING */
  90436. /* send the queued IP packet */
  90437. ethernet_output(netif, p, (struct eth_addr *)(netif->hwaddr), ethaddr, ETHTYPE_IP);
  90438. 8024ae0: 68fb ldr r3, [r7, #12]
  90439. 8024ae2: f103 022a add.w r2, r3, #42 @ 0x2a
  90440. 8024ae6: f44f 6300 mov.w r3, #2048 @ 0x800
  90441. 8024aea: 9300 str r3, [sp, #0]
  90442. 8024aec: 687b ldr r3, [r7, #4]
  90443. 8024aee: 6939 ldr r1, [r7, #16]
  90444. 8024af0: 68f8 ldr r0, [r7, #12]
  90445. 8024af2: f002 f9bb bl 8026e6c <ethernet_output>
  90446. /* free the queued IP packet */
  90447. pbuf_free(p);
  90448. 8024af6: 6938 ldr r0, [r7, #16]
  90449. 8024af8: f7f6 fbb8 bl 801b26c <pbuf_free>
  90450. }
  90451. return ERR_OK;
  90452. 8024afc: 2300 movs r3, #0
  90453. }
  90454. 8024afe: 4618 mov r0, r3
  90455. 8024b00: 3718 adds r7, #24
  90456. 8024b02: 46bd mov sp, r7
  90457. 8024b04: bd80 pop {r7, pc}
  90458. 8024b06: bf00 nop
  90459. 8024b08: 080310d8 .word 0x080310d8
  90460. 8024b0c: 080311d0 .word 0x080311d0
  90461. 8024b10: 08031150 .word 0x08031150
  90462. 8024b14: 2402b000 .word 0x2402b000
  90463. 08024b18 <etharp_cleanup_netif>:
  90464. *
  90465. * @param netif points to a network interface
  90466. */
  90467. void
  90468. etharp_cleanup_netif(struct netif *netif)
  90469. {
  90470. 8024b18: b580 push {r7, lr}
  90471. 8024b1a: b084 sub sp, #16
  90472. 8024b1c: af00 add r7, sp, #0
  90473. 8024b1e: 6078 str r0, [r7, #4]
  90474. int i;
  90475. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  90476. 8024b20: 2300 movs r3, #0
  90477. 8024b22: 60fb str r3, [r7, #12]
  90478. 8024b24: e01e b.n 8024b64 <etharp_cleanup_netif+0x4c>
  90479. u8_t state = arp_table[i].state;
  90480. 8024b26: 4913 ldr r1, [pc, #76] @ (8024b74 <etharp_cleanup_netif+0x5c>)
  90481. 8024b28: 68fa ldr r2, [r7, #12]
  90482. 8024b2a: 4613 mov r3, r2
  90483. 8024b2c: 005b lsls r3, r3, #1
  90484. 8024b2e: 4413 add r3, r2
  90485. 8024b30: 00db lsls r3, r3, #3
  90486. 8024b32: 440b add r3, r1
  90487. 8024b34: 3314 adds r3, #20
  90488. 8024b36: 781b ldrb r3, [r3, #0]
  90489. 8024b38: 72fb strb r3, [r7, #11]
  90490. if ((state != ETHARP_STATE_EMPTY) && (arp_table[i].netif == netif)) {
  90491. 8024b3a: 7afb ldrb r3, [r7, #11]
  90492. 8024b3c: 2b00 cmp r3, #0
  90493. 8024b3e: d00e beq.n 8024b5e <etharp_cleanup_netif+0x46>
  90494. 8024b40: 490c ldr r1, [pc, #48] @ (8024b74 <etharp_cleanup_netif+0x5c>)
  90495. 8024b42: 68fa ldr r2, [r7, #12]
  90496. 8024b44: 4613 mov r3, r2
  90497. 8024b46: 005b lsls r3, r3, #1
  90498. 8024b48: 4413 add r3, r2
  90499. 8024b4a: 00db lsls r3, r3, #3
  90500. 8024b4c: 440b add r3, r1
  90501. 8024b4e: 3308 adds r3, #8
  90502. 8024b50: 681b ldr r3, [r3, #0]
  90503. 8024b52: 687a ldr r2, [r7, #4]
  90504. 8024b54: 429a cmp r2, r3
  90505. 8024b56: d102 bne.n 8024b5e <etharp_cleanup_netif+0x46>
  90506. etharp_free_entry(i);
  90507. 8024b58: 68f8 ldr r0, [r7, #12]
  90508. 8024b5a: f7ff fcb7 bl 80244cc <etharp_free_entry>
  90509. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  90510. 8024b5e: 68fb ldr r3, [r7, #12]
  90511. 8024b60: 3301 adds r3, #1
  90512. 8024b62: 60fb str r3, [r7, #12]
  90513. 8024b64: 68fb ldr r3, [r7, #12]
  90514. 8024b66: 2b09 cmp r3, #9
  90515. 8024b68: dddd ble.n 8024b26 <etharp_cleanup_netif+0xe>
  90516. }
  90517. }
  90518. }
  90519. 8024b6a: bf00 nop
  90520. 8024b6c: bf00 nop
  90521. 8024b6e: 3710 adds r7, #16
  90522. 8024b70: 46bd mov sp, r7
  90523. 8024b72: bd80 pop {r7, pc}
  90524. 8024b74: 2402b000 .word 0x2402b000
  90525. 08024b78 <etharp_input>:
  90526. *
  90527. * @see pbuf_free()
  90528. */
  90529. void
  90530. etharp_input(struct pbuf *p, struct netif *netif)
  90531. {
  90532. 8024b78: b5b0 push {r4, r5, r7, lr}
  90533. 8024b7a: b08a sub sp, #40 @ 0x28
  90534. 8024b7c: af04 add r7, sp, #16
  90535. 8024b7e: 6078 str r0, [r7, #4]
  90536. 8024b80: 6039 str r1, [r7, #0]
  90537. struct etharp_hdr *hdr;
  90538. /* these are aligned properly, whereas the ARP header fields might not be */
  90539. ip4_addr_t sipaddr, dipaddr;
  90540. u8_t for_us;
  90541. LWIP_ASSERT_CORE_LOCKED();
  90542. 8024b82: f7ec f9bd bl 8010f00 <sys_check_core_locking>
  90543. LWIP_ERROR("netif != NULL", (netif != NULL), return;);
  90544. 8024b86: 683b ldr r3, [r7, #0]
  90545. 8024b88: 2b00 cmp r3, #0
  90546. 8024b8a: d107 bne.n 8024b9c <etharp_input+0x24>
  90547. 8024b8c: 4b3f ldr r3, [pc, #252] @ (8024c8c <etharp_input+0x114>)
  90548. 8024b8e: f240 228a movw r2, #650 @ 0x28a
  90549. 8024b92: 493f ldr r1, [pc, #252] @ (8024c90 <etharp_input+0x118>)
  90550. 8024b94: 483f ldr r0, [pc, #252] @ (8024c94 <etharp_input+0x11c>)
  90551. 8024b96: f005 fde1 bl 802a75c <iprintf>
  90552. 8024b9a: e074 b.n 8024c86 <etharp_input+0x10e>
  90553. hdr = (struct etharp_hdr *)p->payload;
  90554. 8024b9c: 687b ldr r3, [r7, #4]
  90555. 8024b9e: 685b ldr r3, [r3, #4]
  90556. 8024ba0: 617b str r3, [r7, #20]
  90557. /* RFC 826 "Packet Reception": */
  90558. if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) ||
  90559. 8024ba2: 697b ldr r3, [r7, #20]
  90560. 8024ba4: 881b ldrh r3, [r3, #0]
  90561. 8024ba6: b29b uxth r3, r3
  90562. 8024ba8: f5b3 7f80 cmp.w r3, #256 @ 0x100
  90563. 8024bac: d10c bne.n 8024bc8 <etharp_input+0x50>
  90564. (hdr->hwlen != ETH_HWADDR_LEN) ||
  90565. 8024bae: 697b ldr r3, [r7, #20]
  90566. 8024bb0: 791b ldrb r3, [r3, #4]
  90567. if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) ||
  90568. 8024bb2: 2b06 cmp r3, #6
  90569. 8024bb4: d108 bne.n 8024bc8 <etharp_input+0x50>
  90570. (hdr->protolen != sizeof(ip4_addr_t)) ||
  90571. 8024bb6: 697b ldr r3, [r7, #20]
  90572. 8024bb8: 795b ldrb r3, [r3, #5]
  90573. (hdr->hwlen != ETH_HWADDR_LEN) ||
  90574. 8024bba: 2b04 cmp r3, #4
  90575. 8024bbc: d104 bne.n 8024bc8 <etharp_input+0x50>
  90576. (hdr->proto != PP_HTONS(ETHTYPE_IP))) {
  90577. 8024bbe: 697b ldr r3, [r7, #20]
  90578. 8024bc0: 885b ldrh r3, [r3, #2]
  90579. 8024bc2: b29b uxth r3, r3
  90580. (hdr->protolen != sizeof(ip4_addr_t)) ||
  90581. 8024bc4: 2b08 cmp r3, #8
  90582. 8024bc6: d003 beq.n 8024bd0 <etharp_input+0x58>
  90583. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING,
  90584. ("etharp_input: packet dropped, wrong hw type, hwlen, proto, protolen or ethernet type (%"U16_F"/%"U16_F"/%"U16_F"/%"U16_F")\n",
  90585. hdr->hwtype, (u16_t)hdr->hwlen, hdr->proto, (u16_t)hdr->protolen));
  90586. ETHARP_STATS_INC(etharp.proterr);
  90587. ETHARP_STATS_INC(etharp.drop);
  90588. pbuf_free(p);
  90589. 8024bc8: 6878 ldr r0, [r7, #4]
  90590. 8024bca: f7f6 fb4f bl 801b26c <pbuf_free>
  90591. return;
  90592. 8024bce: e05a b.n 8024c86 <etharp_input+0x10e>
  90593. autoip_arp_reply(netif, hdr);
  90594. #endif /* LWIP_AUTOIP */
  90595. /* Copy struct ip4_addr_wordaligned to aligned ip4_addr, to support compilers without
  90596. * structure packing (not using structure copy which breaks strict-aliasing rules). */
  90597. IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&sipaddr, &hdr->sipaddr);
  90598. 8024bd0: 697b ldr r3, [r7, #20]
  90599. 8024bd2: 330e adds r3, #14
  90600. 8024bd4: 681b ldr r3, [r3, #0]
  90601. 8024bd6: 60fb str r3, [r7, #12]
  90602. IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&dipaddr, &hdr->dipaddr);
  90603. 8024bd8: 697b ldr r3, [r7, #20]
  90604. 8024bda: 3318 adds r3, #24
  90605. 8024bdc: 681b ldr r3, [r3, #0]
  90606. 8024bde: 60bb str r3, [r7, #8]
  90607. /* this interface is not configured? */
  90608. if (ip4_addr_isany_val(*netif_ip4_addr(netif))) {
  90609. 8024be0: 683b ldr r3, [r7, #0]
  90610. 8024be2: 3304 adds r3, #4
  90611. 8024be4: 681b ldr r3, [r3, #0]
  90612. 8024be6: 2b00 cmp r3, #0
  90613. 8024be8: d102 bne.n 8024bf0 <etharp_input+0x78>
  90614. for_us = 0;
  90615. 8024bea: 2300 movs r3, #0
  90616. 8024bec: 74fb strb r3, [r7, #19]
  90617. 8024bee: e009 b.n 8024c04 <etharp_input+0x8c>
  90618. } else {
  90619. /* ARP packet directed to us? */
  90620. for_us = (u8_t)ip4_addr_cmp(&dipaddr, netif_ip4_addr(netif));
  90621. 8024bf0: 68ba ldr r2, [r7, #8]
  90622. 8024bf2: 683b ldr r3, [r7, #0]
  90623. 8024bf4: 3304 adds r3, #4
  90624. 8024bf6: 681b ldr r3, [r3, #0]
  90625. 8024bf8: 429a cmp r2, r3
  90626. 8024bfa: bf0c ite eq
  90627. 8024bfc: 2301 moveq r3, #1
  90628. 8024bfe: 2300 movne r3, #0
  90629. 8024c00: b2db uxtb r3, r3
  90630. 8024c02: 74fb strb r3, [r7, #19]
  90631. /* ARP message directed to us?
  90632. -> add IP address in ARP cache; assume requester wants to talk to us,
  90633. can result in directly sending the queued packets for this host.
  90634. ARP message not directed to us?
  90635. -> update the source IP address in the cache, if present */
  90636. etharp_update_arp_entry(netif, &sipaddr, &(hdr->shwaddr),
  90637. 8024c04: 697b ldr r3, [r7, #20]
  90638. 8024c06: f103 0208 add.w r2, r3, #8
  90639. 8024c0a: 7cfb ldrb r3, [r7, #19]
  90640. 8024c0c: 2b00 cmp r3, #0
  90641. 8024c0e: d001 beq.n 8024c14 <etharp_input+0x9c>
  90642. 8024c10: 2301 movs r3, #1
  90643. 8024c12: e000 b.n 8024c16 <etharp_input+0x9e>
  90644. 8024c14: 2302 movs r3, #2
  90645. 8024c16: f107 010c add.w r1, r7, #12
  90646. 8024c1a: 6838 ldr r0, [r7, #0]
  90647. 8024c1c: f7ff fed6 bl 80249cc <etharp_update_arp_entry>
  90648. for_us ? ETHARP_FLAG_TRY_HARD : ETHARP_FLAG_FIND_ONLY);
  90649. /* now act on the message itself */
  90650. switch (hdr->opcode) {
  90651. 8024c20: 697b ldr r3, [r7, #20]
  90652. 8024c22: 88db ldrh r3, [r3, #6]
  90653. 8024c24: b29b uxth r3, r3
  90654. 8024c26: f5b3 7f80 cmp.w r3, #256 @ 0x100
  90655. 8024c2a: d003 beq.n 8024c34 <etharp_input+0xbc>
  90656. 8024c2c: f5b3 7f00 cmp.w r3, #512 @ 0x200
  90657. 8024c30: d01e beq.n 8024c70 <etharp_input+0xf8>
  90658. #endif /* (LWIP_DHCP && DHCP_DOES_ARP_CHECK) */
  90659. break;
  90660. default:
  90661. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_input: ARP unknown opcode type %"S16_F"\n", lwip_htons(hdr->opcode)));
  90662. ETHARP_STATS_INC(etharp.err);
  90663. break;
  90664. 8024c32: e025 b.n 8024c80 <etharp_input+0x108>
  90665. if (for_us) {
  90666. 8024c34: 7cfb ldrb r3, [r7, #19]
  90667. 8024c36: 2b00 cmp r3, #0
  90668. 8024c38: d021 beq.n 8024c7e <etharp_input+0x106>
  90669. (struct eth_addr *)netif->hwaddr, &hdr->shwaddr,
  90670. 8024c3a: 683b ldr r3, [r7, #0]
  90671. 8024c3c: f103 002a add.w r0, r3, #42 @ 0x2a
  90672. 8024c40: 697b ldr r3, [r7, #20]
  90673. 8024c42: f103 0408 add.w r4, r3, #8
  90674. (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif),
  90675. 8024c46: 683b ldr r3, [r7, #0]
  90676. 8024c48: f103 052a add.w r5, r3, #42 @ 0x2a
  90677. 8024c4c: 683b ldr r3, [r7, #0]
  90678. 8024c4e: 3304 adds r3, #4
  90679. &hdr->shwaddr, &sipaddr,
  90680. 8024c50: 697a ldr r2, [r7, #20]
  90681. 8024c52: 3208 adds r2, #8
  90682. etharp_raw(netif,
  90683. 8024c54: 2102 movs r1, #2
  90684. 8024c56: 9103 str r1, [sp, #12]
  90685. 8024c58: f107 010c add.w r1, r7, #12
  90686. 8024c5c: 9102 str r1, [sp, #8]
  90687. 8024c5e: 9201 str r2, [sp, #4]
  90688. 8024c60: 9300 str r3, [sp, #0]
  90689. 8024c62: 462b mov r3, r5
  90690. 8024c64: 4622 mov r2, r4
  90691. 8024c66: 4601 mov r1, r0
  90692. 8024c68: 6838 ldr r0, [r7, #0]
  90693. 8024c6a: f000 faf1 bl 8025250 <etharp_raw>
  90694. break;
  90695. 8024c6e: e006 b.n 8024c7e <etharp_input+0x106>
  90696. dhcp_arp_reply(netif, &sipaddr);
  90697. 8024c70: f107 030c add.w r3, r7, #12
  90698. 8024c74: 4619 mov r1, r3
  90699. 8024c76: 6838 ldr r0, [r7, #0]
  90700. 8024c78: f7fe f9b6 bl 8022fe8 <dhcp_arp_reply>
  90701. break;
  90702. 8024c7c: e000 b.n 8024c80 <etharp_input+0x108>
  90703. break;
  90704. 8024c7e: bf00 nop
  90705. }
  90706. /* free ARP packet */
  90707. pbuf_free(p);
  90708. 8024c80: 6878 ldr r0, [r7, #4]
  90709. 8024c82: f7f6 faf3 bl 801b26c <pbuf_free>
  90710. }
  90711. 8024c86: 3718 adds r7, #24
  90712. 8024c88: 46bd mov sp, r7
  90713. 8024c8a: bdb0 pop {r4, r5, r7, pc}
  90714. 8024c8c: 080310d8 .word 0x080310d8
  90715. 8024c90: 08031228 .word 0x08031228
  90716. 8024c94: 08031150 .word 0x08031150
  90717. 08024c98 <etharp_output_to_arp_index>:
  90718. /** Just a small helper function that sends a pbuf to an ethernet address
  90719. * in the arp_table specified by the index 'arp_idx'.
  90720. */
  90721. static err_t
  90722. etharp_output_to_arp_index(struct netif *netif, struct pbuf *q, netif_addr_idx_t arp_idx)
  90723. {
  90724. 8024c98: b580 push {r7, lr}
  90725. 8024c9a: b086 sub sp, #24
  90726. 8024c9c: af02 add r7, sp, #8
  90727. 8024c9e: 60f8 str r0, [r7, #12]
  90728. 8024ca0: 60b9 str r1, [r7, #8]
  90729. 8024ca2: 4613 mov r3, r2
  90730. 8024ca4: 71fb strb r3, [r7, #7]
  90731. LWIP_ASSERT("arp_table[arp_idx].state >= ETHARP_STATE_STABLE",
  90732. 8024ca6: 79fa ldrb r2, [r7, #7]
  90733. 8024ca8: 4944 ldr r1, [pc, #272] @ (8024dbc <etharp_output_to_arp_index+0x124>)
  90734. 8024caa: 4613 mov r3, r2
  90735. 8024cac: 005b lsls r3, r3, #1
  90736. 8024cae: 4413 add r3, r2
  90737. 8024cb0: 00db lsls r3, r3, #3
  90738. 8024cb2: 440b add r3, r1
  90739. 8024cb4: 3314 adds r3, #20
  90740. 8024cb6: 781b ldrb r3, [r3, #0]
  90741. 8024cb8: 2b01 cmp r3, #1
  90742. 8024cba: d806 bhi.n 8024cca <etharp_output_to_arp_index+0x32>
  90743. 8024cbc: 4b40 ldr r3, [pc, #256] @ (8024dc0 <etharp_output_to_arp_index+0x128>)
  90744. 8024cbe: f240 22ee movw r2, #750 @ 0x2ee
  90745. 8024cc2: 4940 ldr r1, [pc, #256] @ (8024dc4 <etharp_output_to_arp_index+0x12c>)
  90746. 8024cc4: 4840 ldr r0, [pc, #256] @ (8024dc8 <etharp_output_to_arp_index+0x130>)
  90747. 8024cc6: f005 fd49 bl 802a75c <iprintf>
  90748. arp_table[arp_idx].state >= ETHARP_STATE_STABLE);
  90749. /* if arp table entry is about to expire: re-request it,
  90750. but only if its state is ETHARP_STATE_STABLE to prevent flooding the
  90751. network with ARP requests if this address is used frequently. */
  90752. if (arp_table[arp_idx].state == ETHARP_STATE_STABLE) {
  90753. 8024cca: 79fa ldrb r2, [r7, #7]
  90754. 8024ccc: 493b ldr r1, [pc, #236] @ (8024dbc <etharp_output_to_arp_index+0x124>)
  90755. 8024cce: 4613 mov r3, r2
  90756. 8024cd0: 005b lsls r3, r3, #1
  90757. 8024cd2: 4413 add r3, r2
  90758. 8024cd4: 00db lsls r3, r3, #3
  90759. 8024cd6: 440b add r3, r1
  90760. 8024cd8: 3314 adds r3, #20
  90761. 8024cda: 781b ldrb r3, [r3, #0]
  90762. 8024cdc: 2b02 cmp r3, #2
  90763. 8024cde: d153 bne.n 8024d88 <etharp_output_to_arp_index+0xf0>
  90764. if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_BROADCAST) {
  90765. 8024ce0: 79fa ldrb r2, [r7, #7]
  90766. 8024ce2: 4936 ldr r1, [pc, #216] @ (8024dbc <etharp_output_to_arp_index+0x124>)
  90767. 8024ce4: 4613 mov r3, r2
  90768. 8024ce6: 005b lsls r3, r3, #1
  90769. 8024ce8: 4413 add r3, r2
  90770. 8024cea: 00db lsls r3, r3, #3
  90771. 8024cec: 440b add r3, r1
  90772. 8024cee: 3312 adds r3, #18
  90773. 8024cf0: 881b ldrh r3, [r3, #0]
  90774. 8024cf2: f5b3 7f8e cmp.w r3, #284 @ 0x11c
  90775. 8024cf6: d919 bls.n 8024d2c <etharp_output_to_arp_index+0x94>
  90776. /* issue a standard request using broadcast */
  90777. if (etharp_request(netif, &arp_table[arp_idx].ipaddr) == ERR_OK) {
  90778. 8024cf8: 79fa ldrb r2, [r7, #7]
  90779. 8024cfa: 4613 mov r3, r2
  90780. 8024cfc: 005b lsls r3, r3, #1
  90781. 8024cfe: 4413 add r3, r2
  90782. 8024d00: 00db lsls r3, r3, #3
  90783. 8024d02: 4a2e ldr r2, [pc, #184] @ (8024dbc <etharp_output_to_arp_index+0x124>)
  90784. 8024d04: 4413 add r3, r2
  90785. 8024d06: 3304 adds r3, #4
  90786. 8024d08: 4619 mov r1, r3
  90787. 8024d0a: 68f8 ldr r0, [r7, #12]
  90788. 8024d0c: f000 fb4e bl 80253ac <etharp_request>
  90789. 8024d10: 4603 mov r3, r0
  90790. 8024d12: 2b00 cmp r3, #0
  90791. 8024d14: d138 bne.n 8024d88 <etharp_output_to_arp_index+0xf0>
  90792. arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1;
  90793. 8024d16: 79fa ldrb r2, [r7, #7]
  90794. 8024d18: 4928 ldr r1, [pc, #160] @ (8024dbc <etharp_output_to_arp_index+0x124>)
  90795. 8024d1a: 4613 mov r3, r2
  90796. 8024d1c: 005b lsls r3, r3, #1
  90797. 8024d1e: 4413 add r3, r2
  90798. 8024d20: 00db lsls r3, r3, #3
  90799. 8024d22: 440b add r3, r1
  90800. 8024d24: 3314 adds r3, #20
  90801. 8024d26: 2203 movs r2, #3
  90802. 8024d28: 701a strb r2, [r3, #0]
  90803. 8024d2a: e02d b.n 8024d88 <etharp_output_to_arp_index+0xf0>
  90804. }
  90805. } else if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_UNICAST) {
  90806. 8024d2c: 79fa ldrb r2, [r7, #7]
  90807. 8024d2e: 4923 ldr r1, [pc, #140] @ (8024dbc <etharp_output_to_arp_index+0x124>)
  90808. 8024d30: 4613 mov r3, r2
  90809. 8024d32: 005b lsls r3, r3, #1
  90810. 8024d34: 4413 add r3, r2
  90811. 8024d36: 00db lsls r3, r3, #3
  90812. 8024d38: 440b add r3, r1
  90813. 8024d3a: 3312 adds r3, #18
  90814. 8024d3c: 881b ldrh r3, [r3, #0]
  90815. 8024d3e: f5b3 7f87 cmp.w r3, #270 @ 0x10e
  90816. 8024d42: d321 bcc.n 8024d88 <etharp_output_to_arp_index+0xf0>
  90817. /* issue a unicast request (for 15 seconds) to prevent unnecessary broadcast */
  90818. if (etharp_request_dst(netif, &arp_table[arp_idx].ipaddr, &arp_table[arp_idx].ethaddr) == ERR_OK) {
  90819. 8024d44: 79fa ldrb r2, [r7, #7]
  90820. 8024d46: 4613 mov r3, r2
  90821. 8024d48: 005b lsls r3, r3, #1
  90822. 8024d4a: 4413 add r3, r2
  90823. 8024d4c: 00db lsls r3, r3, #3
  90824. 8024d4e: 4a1b ldr r2, [pc, #108] @ (8024dbc <etharp_output_to_arp_index+0x124>)
  90825. 8024d50: 4413 add r3, r2
  90826. 8024d52: 1d19 adds r1, r3, #4
  90827. 8024d54: 79fa ldrb r2, [r7, #7]
  90828. 8024d56: 4613 mov r3, r2
  90829. 8024d58: 005b lsls r3, r3, #1
  90830. 8024d5a: 4413 add r3, r2
  90831. 8024d5c: 00db lsls r3, r3, #3
  90832. 8024d5e: 3308 adds r3, #8
  90833. 8024d60: 4a16 ldr r2, [pc, #88] @ (8024dbc <etharp_output_to_arp_index+0x124>)
  90834. 8024d62: 4413 add r3, r2
  90835. 8024d64: 3304 adds r3, #4
  90836. 8024d66: 461a mov r2, r3
  90837. 8024d68: 68f8 ldr r0, [r7, #12]
  90838. 8024d6a: f000 fafd bl 8025368 <etharp_request_dst>
  90839. 8024d6e: 4603 mov r3, r0
  90840. 8024d70: 2b00 cmp r3, #0
  90841. 8024d72: d109 bne.n 8024d88 <etharp_output_to_arp_index+0xf0>
  90842. arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1;
  90843. 8024d74: 79fa ldrb r2, [r7, #7]
  90844. 8024d76: 4911 ldr r1, [pc, #68] @ (8024dbc <etharp_output_to_arp_index+0x124>)
  90845. 8024d78: 4613 mov r3, r2
  90846. 8024d7a: 005b lsls r3, r3, #1
  90847. 8024d7c: 4413 add r3, r2
  90848. 8024d7e: 00db lsls r3, r3, #3
  90849. 8024d80: 440b add r3, r1
  90850. 8024d82: 3314 adds r3, #20
  90851. 8024d84: 2203 movs r2, #3
  90852. 8024d86: 701a strb r2, [r3, #0]
  90853. }
  90854. }
  90855. }
  90856. return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), &arp_table[arp_idx].ethaddr, ETHTYPE_IP);
  90857. 8024d88: 68fb ldr r3, [r7, #12]
  90858. 8024d8a: f103 012a add.w r1, r3, #42 @ 0x2a
  90859. 8024d8e: 79fa ldrb r2, [r7, #7]
  90860. 8024d90: 4613 mov r3, r2
  90861. 8024d92: 005b lsls r3, r3, #1
  90862. 8024d94: 4413 add r3, r2
  90863. 8024d96: 00db lsls r3, r3, #3
  90864. 8024d98: 3308 adds r3, #8
  90865. 8024d9a: 4a08 ldr r2, [pc, #32] @ (8024dbc <etharp_output_to_arp_index+0x124>)
  90866. 8024d9c: 4413 add r3, r2
  90867. 8024d9e: 3304 adds r3, #4
  90868. 8024da0: f44f 6200 mov.w r2, #2048 @ 0x800
  90869. 8024da4: 9200 str r2, [sp, #0]
  90870. 8024da6: 460a mov r2, r1
  90871. 8024da8: 68b9 ldr r1, [r7, #8]
  90872. 8024daa: 68f8 ldr r0, [r7, #12]
  90873. 8024dac: f002 f85e bl 8026e6c <ethernet_output>
  90874. 8024db0: 4603 mov r3, r0
  90875. }
  90876. 8024db2: 4618 mov r0, r3
  90877. 8024db4: 3710 adds r7, #16
  90878. 8024db6: 46bd mov sp, r7
  90879. 8024db8: bd80 pop {r7, pc}
  90880. 8024dba: bf00 nop
  90881. 8024dbc: 2402b000 .word 0x2402b000
  90882. 8024dc0: 080310d8 .word 0x080310d8
  90883. 8024dc4: 08031248 .word 0x08031248
  90884. 8024dc8: 08031150 .word 0x08031150
  90885. 08024dcc <etharp_output>:
  90886. * - ERR_RTE No route to destination (no gateway to external networks),
  90887. * or the return type of either etharp_query() or ethernet_output().
  90888. */
  90889. err_t
  90890. etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr)
  90891. {
  90892. 8024dcc: b580 push {r7, lr}
  90893. 8024dce: b08a sub sp, #40 @ 0x28
  90894. 8024dd0: af02 add r7, sp, #8
  90895. 8024dd2: 60f8 str r0, [r7, #12]
  90896. 8024dd4: 60b9 str r1, [r7, #8]
  90897. 8024dd6: 607a str r2, [r7, #4]
  90898. const struct eth_addr *dest;
  90899. struct eth_addr mcastaddr;
  90900. const ip4_addr_t *dst_addr = ipaddr;
  90901. 8024dd8: 687b ldr r3, [r7, #4]
  90902. 8024dda: 61bb str r3, [r7, #24]
  90903. LWIP_ASSERT_CORE_LOCKED();
  90904. 8024ddc: f7ec f890 bl 8010f00 <sys_check_core_locking>
  90905. LWIP_ASSERT("netif != NULL", netif != NULL);
  90906. 8024de0: 68fb ldr r3, [r7, #12]
  90907. 8024de2: 2b00 cmp r3, #0
  90908. 8024de4: d106 bne.n 8024df4 <etharp_output+0x28>
  90909. 8024de6: 4b73 ldr r3, [pc, #460] @ (8024fb4 <etharp_output+0x1e8>)
  90910. 8024de8: f240 321e movw r2, #798 @ 0x31e
  90911. 8024dec: 4972 ldr r1, [pc, #456] @ (8024fb8 <etharp_output+0x1ec>)
  90912. 8024dee: 4873 ldr r0, [pc, #460] @ (8024fbc <etharp_output+0x1f0>)
  90913. 8024df0: f005 fcb4 bl 802a75c <iprintf>
  90914. LWIP_ASSERT("q != NULL", q != NULL);
  90915. 8024df4: 68bb ldr r3, [r7, #8]
  90916. 8024df6: 2b00 cmp r3, #0
  90917. 8024df8: d106 bne.n 8024e08 <etharp_output+0x3c>
  90918. 8024dfa: 4b6e ldr r3, [pc, #440] @ (8024fb4 <etharp_output+0x1e8>)
  90919. 8024dfc: f240 321f movw r2, #799 @ 0x31f
  90920. 8024e00: 496f ldr r1, [pc, #444] @ (8024fc0 <etharp_output+0x1f4>)
  90921. 8024e02: 486e ldr r0, [pc, #440] @ (8024fbc <etharp_output+0x1f0>)
  90922. 8024e04: f005 fcaa bl 802a75c <iprintf>
  90923. LWIP_ASSERT("ipaddr != NULL", ipaddr != NULL);
  90924. 8024e08: 687b ldr r3, [r7, #4]
  90925. 8024e0a: 2b00 cmp r3, #0
  90926. 8024e0c: d106 bne.n 8024e1c <etharp_output+0x50>
  90927. 8024e0e: 4b69 ldr r3, [pc, #420] @ (8024fb4 <etharp_output+0x1e8>)
  90928. 8024e10: f44f 7248 mov.w r2, #800 @ 0x320
  90929. 8024e14: 496b ldr r1, [pc, #428] @ (8024fc4 <etharp_output+0x1f8>)
  90930. 8024e16: 4869 ldr r0, [pc, #420] @ (8024fbc <etharp_output+0x1f0>)
  90931. 8024e18: f005 fca0 bl 802a75c <iprintf>
  90932. /* Determine on destination hardware address. Broadcasts and multicasts
  90933. * are special, other IP addresses are looked up in the ARP table. */
  90934. /* broadcast destination IP address? */
  90935. if (ip4_addr_isbroadcast(ipaddr, netif)) {
  90936. 8024e1c: 687b ldr r3, [r7, #4]
  90937. 8024e1e: 681b ldr r3, [r3, #0]
  90938. 8024e20: 68f9 ldr r1, [r7, #12]
  90939. 8024e22: 4618 mov r0, r3
  90940. 8024e24: f000 ff44 bl 8025cb0 <ip4_addr_isbroadcast_u32>
  90941. 8024e28: 4603 mov r3, r0
  90942. 8024e2a: 2b00 cmp r3, #0
  90943. 8024e2c: d002 beq.n 8024e34 <etharp_output+0x68>
  90944. /* broadcast on Ethernet also */
  90945. dest = (const struct eth_addr *)&ethbroadcast;
  90946. 8024e2e: 4b66 ldr r3, [pc, #408] @ (8024fc8 <etharp_output+0x1fc>)
  90947. 8024e30: 61fb str r3, [r7, #28]
  90948. 8024e32: e0af b.n 8024f94 <etharp_output+0x1c8>
  90949. /* multicast destination IP address? */
  90950. } else if (ip4_addr_ismulticast(ipaddr)) {
  90951. 8024e34: 687b ldr r3, [r7, #4]
  90952. 8024e36: 681b ldr r3, [r3, #0]
  90953. 8024e38: f003 03f0 and.w r3, r3, #240 @ 0xf0
  90954. 8024e3c: 2be0 cmp r3, #224 @ 0xe0
  90955. 8024e3e: d118 bne.n 8024e72 <etharp_output+0xa6>
  90956. /* Hash IP multicast address to MAC address.*/
  90957. mcastaddr.addr[0] = LL_IP4_MULTICAST_ADDR_0;
  90958. 8024e40: 2301 movs r3, #1
  90959. 8024e42: 743b strb r3, [r7, #16]
  90960. mcastaddr.addr[1] = LL_IP4_MULTICAST_ADDR_1;
  90961. 8024e44: 2300 movs r3, #0
  90962. 8024e46: 747b strb r3, [r7, #17]
  90963. mcastaddr.addr[2] = LL_IP4_MULTICAST_ADDR_2;
  90964. 8024e48: 235e movs r3, #94 @ 0x5e
  90965. 8024e4a: 74bb strb r3, [r7, #18]
  90966. mcastaddr.addr[3] = ip4_addr2(ipaddr) & 0x7f;
  90967. 8024e4c: 687b ldr r3, [r7, #4]
  90968. 8024e4e: 3301 adds r3, #1
  90969. 8024e50: 781b ldrb r3, [r3, #0]
  90970. 8024e52: f003 037f and.w r3, r3, #127 @ 0x7f
  90971. 8024e56: b2db uxtb r3, r3
  90972. 8024e58: 74fb strb r3, [r7, #19]
  90973. mcastaddr.addr[4] = ip4_addr3(ipaddr);
  90974. 8024e5a: 687b ldr r3, [r7, #4]
  90975. 8024e5c: 3302 adds r3, #2
  90976. 8024e5e: 781b ldrb r3, [r3, #0]
  90977. 8024e60: 753b strb r3, [r7, #20]
  90978. mcastaddr.addr[5] = ip4_addr4(ipaddr);
  90979. 8024e62: 687b ldr r3, [r7, #4]
  90980. 8024e64: 3303 adds r3, #3
  90981. 8024e66: 781b ldrb r3, [r3, #0]
  90982. 8024e68: 757b strb r3, [r7, #21]
  90983. /* destination Ethernet address is multicast */
  90984. dest = &mcastaddr;
  90985. 8024e6a: f107 0310 add.w r3, r7, #16
  90986. 8024e6e: 61fb str r3, [r7, #28]
  90987. 8024e70: e090 b.n 8024f94 <etharp_output+0x1c8>
  90988. /* unicast destination IP address? */
  90989. } else {
  90990. netif_addr_idx_t i;
  90991. /* outside local network? if so, this can neither be a global broadcast nor
  90992. a subnet broadcast. */
  90993. if (!ip4_addr_netcmp(ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) &&
  90994. 8024e72: 687b ldr r3, [r7, #4]
  90995. 8024e74: 681a ldr r2, [r3, #0]
  90996. 8024e76: 68fb ldr r3, [r7, #12]
  90997. 8024e78: 3304 adds r3, #4
  90998. 8024e7a: 681b ldr r3, [r3, #0]
  90999. 8024e7c: 405a eors r2, r3
  91000. 8024e7e: 68fb ldr r3, [r7, #12]
  91001. 8024e80: 3308 adds r3, #8
  91002. 8024e82: 681b ldr r3, [r3, #0]
  91003. 8024e84: 4013 ands r3, r2
  91004. 8024e86: 2b00 cmp r3, #0
  91005. 8024e88: d012 beq.n 8024eb0 <etharp_output+0xe4>
  91006. !ip4_addr_islinklocal(ipaddr)) {
  91007. 8024e8a: 687b ldr r3, [r7, #4]
  91008. 8024e8c: 681b ldr r3, [r3, #0]
  91009. 8024e8e: b29b uxth r3, r3
  91010. if (!ip4_addr_netcmp(ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) &&
  91011. 8024e90: f64f 62a9 movw r2, #65193 @ 0xfea9
  91012. 8024e94: 4293 cmp r3, r2
  91013. 8024e96: d00b beq.n 8024eb0 <etharp_output+0xe4>
  91014. dst_addr = LWIP_HOOK_ETHARP_GET_GW(netif, ipaddr);
  91015. if (dst_addr == NULL)
  91016. #endif /* LWIP_HOOK_ETHARP_GET_GW */
  91017. {
  91018. /* interface has default gateway? */
  91019. if (!ip4_addr_isany_val(*netif_ip4_gw(netif))) {
  91020. 8024e98: 68fb ldr r3, [r7, #12]
  91021. 8024e9a: 330c adds r3, #12
  91022. 8024e9c: 681b ldr r3, [r3, #0]
  91023. 8024e9e: 2b00 cmp r3, #0
  91024. 8024ea0: d003 beq.n 8024eaa <etharp_output+0xde>
  91025. /* send to hardware address of default gateway IP address */
  91026. dst_addr = netif_ip4_gw(netif);
  91027. 8024ea2: 68fb ldr r3, [r7, #12]
  91028. 8024ea4: 330c adds r3, #12
  91029. 8024ea6: 61bb str r3, [r7, #24]
  91030. 8024ea8: e002 b.n 8024eb0 <etharp_output+0xe4>
  91031. /* no default gateway available */
  91032. } else {
  91033. /* no route to destination error (default gateway missing) */
  91034. return ERR_RTE;
  91035. 8024eaa: f06f 0303 mvn.w r3, #3
  91036. 8024eae: e07d b.n 8024fac <etharp_output+0x1e0>
  91037. if (netif->hints != NULL) {
  91038. /* per-pcb cached entry was given */
  91039. netif_addr_idx_t etharp_cached_entry = netif->hints->addr_hint;
  91040. if (etharp_cached_entry < ARP_TABLE_SIZE) {
  91041. #endif /* LWIP_NETIF_HWADDRHINT */
  91042. if ((arp_table[etharp_cached_entry].state >= ETHARP_STATE_STABLE) &&
  91043. 8024eb0: 4b46 ldr r3, [pc, #280] @ (8024fcc <etharp_output+0x200>)
  91044. 8024eb2: 781b ldrb r3, [r3, #0]
  91045. 8024eb4: 4619 mov r1, r3
  91046. 8024eb6: 4a46 ldr r2, [pc, #280] @ (8024fd0 <etharp_output+0x204>)
  91047. 8024eb8: 460b mov r3, r1
  91048. 8024eba: 005b lsls r3, r3, #1
  91049. 8024ebc: 440b add r3, r1
  91050. 8024ebe: 00db lsls r3, r3, #3
  91051. 8024ec0: 4413 add r3, r2
  91052. 8024ec2: 3314 adds r3, #20
  91053. 8024ec4: 781b ldrb r3, [r3, #0]
  91054. 8024ec6: 2b01 cmp r3, #1
  91055. 8024ec8: d925 bls.n 8024f16 <etharp_output+0x14a>
  91056. #if ETHARP_TABLE_MATCH_NETIF
  91057. (arp_table[etharp_cached_entry].netif == netif) &&
  91058. 8024eca: 4b40 ldr r3, [pc, #256] @ (8024fcc <etharp_output+0x200>)
  91059. 8024ecc: 781b ldrb r3, [r3, #0]
  91060. 8024ece: 4619 mov r1, r3
  91061. 8024ed0: 4a3f ldr r2, [pc, #252] @ (8024fd0 <etharp_output+0x204>)
  91062. 8024ed2: 460b mov r3, r1
  91063. 8024ed4: 005b lsls r3, r3, #1
  91064. 8024ed6: 440b add r3, r1
  91065. 8024ed8: 00db lsls r3, r3, #3
  91066. 8024eda: 4413 add r3, r2
  91067. 8024edc: 3308 adds r3, #8
  91068. 8024ede: 681b ldr r3, [r3, #0]
  91069. if ((arp_table[etharp_cached_entry].state >= ETHARP_STATE_STABLE) &&
  91070. 8024ee0: 68fa ldr r2, [r7, #12]
  91071. 8024ee2: 429a cmp r2, r3
  91072. 8024ee4: d117 bne.n 8024f16 <etharp_output+0x14a>
  91073. #endif
  91074. (ip4_addr_cmp(dst_addr, &arp_table[etharp_cached_entry].ipaddr))) {
  91075. 8024ee6: 69bb ldr r3, [r7, #24]
  91076. 8024ee8: 681a ldr r2, [r3, #0]
  91077. 8024eea: 4b38 ldr r3, [pc, #224] @ (8024fcc <etharp_output+0x200>)
  91078. 8024eec: 781b ldrb r3, [r3, #0]
  91079. 8024eee: 4618 mov r0, r3
  91080. 8024ef0: 4937 ldr r1, [pc, #220] @ (8024fd0 <etharp_output+0x204>)
  91081. 8024ef2: 4603 mov r3, r0
  91082. 8024ef4: 005b lsls r3, r3, #1
  91083. 8024ef6: 4403 add r3, r0
  91084. 8024ef8: 00db lsls r3, r3, #3
  91085. 8024efa: 440b add r3, r1
  91086. 8024efc: 3304 adds r3, #4
  91087. 8024efe: 681b ldr r3, [r3, #0]
  91088. (arp_table[etharp_cached_entry].netif == netif) &&
  91089. 8024f00: 429a cmp r2, r3
  91090. 8024f02: d108 bne.n 8024f16 <etharp_output+0x14a>
  91091. /* the per-pcb-cached entry is stable and the right one! */
  91092. ETHARP_STATS_INC(etharp.cachehit);
  91093. return etharp_output_to_arp_index(netif, q, etharp_cached_entry);
  91094. 8024f04: 4b31 ldr r3, [pc, #196] @ (8024fcc <etharp_output+0x200>)
  91095. 8024f06: 781b ldrb r3, [r3, #0]
  91096. 8024f08: 461a mov r2, r3
  91097. 8024f0a: 68b9 ldr r1, [r7, #8]
  91098. 8024f0c: 68f8 ldr r0, [r7, #12]
  91099. 8024f0e: f7ff fec3 bl 8024c98 <etharp_output_to_arp_index>
  91100. 8024f12: 4603 mov r3, r0
  91101. 8024f14: e04a b.n 8024fac <etharp_output+0x1e0>
  91102. }
  91103. #endif /* LWIP_NETIF_HWADDRHINT */
  91104. /* find stable entry: do this here since this is a critical path for
  91105. throughput and etharp_find_entry() is kind of slow */
  91106. for (i = 0; i < ARP_TABLE_SIZE; i++) {
  91107. 8024f16: 2300 movs r3, #0
  91108. 8024f18: 75fb strb r3, [r7, #23]
  91109. 8024f1a: e031 b.n 8024f80 <etharp_output+0x1b4>
  91110. if ((arp_table[i].state >= ETHARP_STATE_STABLE) &&
  91111. 8024f1c: 7dfa ldrb r2, [r7, #23]
  91112. 8024f1e: 492c ldr r1, [pc, #176] @ (8024fd0 <etharp_output+0x204>)
  91113. 8024f20: 4613 mov r3, r2
  91114. 8024f22: 005b lsls r3, r3, #1
  91115. 8024f24: 4413 add r3, r2
  91116. 8024f26: 00db lsls r3, r3, #3
  91117. 8024f28: 440b add r3, r1
  91118. 8024f2a: 3314 adds r3, #20
  91119. 8024f2c: 781b ldrb r3, [r3, #0]
  91120. 8024f2e: 2b01 cmp r3, #1
  91121. 8024f30: d923 bls.n 8024f7a <etharp_output+0x1ae>
  91122. #if ETHARP_TABLE_MATCH_NETIF
  91123. (arp_table[i].netif == netif) &&
  91124. 8024f32: 7dfa ldrb r2, [r7, #23]
  91125. 8024f34: 4926 ldr r1, [pc, #152] @ (8024fd0 <etharp_output+0x204>)
  91126. 8024f36: 4613 mov r3, r2
  91127. 8024f38: 005b lsls r3, r3, #1
  91128. 8024f3a: 4413 add r3, r2
  91129. 8024f3c: 00db lsls r3, r3, #3
  91130. 8024f3e: 440b add r3, r1
  91131. 8024f40: 3308 adds r3, #8
  91132. 8024f42: 681b ldr r3, [r3, #0]
  91133. if ((arp_table[i].state >= ETHARP_STATE_STABLE) &&
  91134. 8024f44: 68fa ldr r2, [r7, #12]
  91135. 8024f46: 429a cmp r2, r3
  91136. 8024f48: d117 bne.n 8024f7a <etharp_output+0x1ae>
  91137. #endif
  91138. (ip4_addr_cmp(dst_addr, &arp_table[i].ipaddr))) {
  91139. 8024f4a: 69bb ldr r3, [r7, #24]
  91140. 8024f4c: 6819 ldr r1, [r3, #0]
  91141. 8024f4e: 7dfa ldrb r2, [r7, #23]
  91142. 8024f50: 481f ldr r0, [pc, #124] @ (8024fd0 <etharp_output+0x204>)
  91143. 8024f52: 4613 mov r3, r2
  91144. 8024f54: 005b lsls r3, r3, #1
  91145. 8024f56: 4413 add r3, r2
  91146. 8024f58: 00db lsls r3, r3, #3
  91147. 8024f5a: 4403 add r3, r0
  91148. 8024f5c: 3304 adds r3, #4
  91149. 8024f5e: 681b ldr r3, [r3, #0]
  91150. (arp_table[i].netif == netif) &&
  91151. 8024f60: 4299 cmp r1, r3
  91152. 8024f62: d10a bne.n 8024f7a <etharp_output+0x1ae>
  91153. /* found an existing, stable entry */
  91154. ETHARP_SET_ADDRHINT(netif, i);
  91155. 8024f64: 4a19 ldr r2, [pc, #100] @ (8024fcc <etharp_output+0x200>)
  91156. 8024f66: 7dfb ldrb r3, [r7, #23]
  91157. 8024f68: 7013 strb r3, [r2, #0]
  91158. return etharp_output_to_arp_index(netif, q, i);
  91159. 8024f6a: 7dfb ldrb r3, [r7, #23]
  91160. 8024f6c: 461a mov r2, r3
  91161. 8024f6e: 68b9 ldr r1, [r7, #8]
  91162. 8024f70: 68f8 ldr r0, [r7, #12]
  91163. 8024f72: f7ff fe91 bl 8024c98 <etharp_output_to_arp_index>
  91164. 8024f76: 4603 mov r3, r0
  91165. 8024f78: e018 b.n 8024fac <etharp_output+0x1e0>
  91166. for (i = 0; i < ARP_TABLE_SIZE; i++) {
  91167. 8024f7a: 7dfb ldrb r3, [r7, #23]
  91168. 8024f7c: 3301 adds r3, #1
  91169. 8024f7e: 75fb strb r3, [r7, #23]
  91170. 8024f80: 7dfb ldrb r3, [r7, #23]
  91171. 8024f82: 2b09 cmp r3, #9
  91172. 8024f84: d9ca bls.n 8024f1c <etharp_output+0x150>
  91173. }
  91174. }
  91175. /* no stable entry found, use the (slower) query function:
  91176. queue on destination Ethernet address belonging to ipaddr */
  91177. return etharp_query(netif, dst_addr, q);
  91178. 8024f86: 68ba ldr r2, [r7, #8]
  91179. 8024f88: 69b9 ldr r1, [r7, #24]
  91180. 8024f8a: 68f8 ldr r0, [r7, #12]
  91181. 8024f8c: f000 f822 bl 8024fd4 <etharp_query>
  91182. 8024f90: 4603 mov r3, r0
  91183. 8024f92: e00b b.n 8024fac <etharp_output+0x1e0>
  91184. }
  91185. /* continuation for multicast/broadcast destinations */
  91186. /* obtain source Ethernet address of the given interface */
  91187. /* send packet directly on the link */
  91188. return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), dest, ETHTYPE_IP);
  91189. 8024f94: 68fb ldr r3, [r7, #12]
  91190. 8024f96: f103 022a add.w r2, r3, #42 @ 0x2a
  91191. 8024f9a: f44f 6300 mov.w r3, #2048 @ 0x800
  91192. 8024f9e: 9300 str r3, [sp, #0]
  91193. 8024fa0: 69fb ldr r3, [r7, #28]
  91194. 8024fa2: 68b9 ldr r1, [r7, #8]
  91195. 8024fa4: 68f8 ldr r0, [r7, #12]
  91196. 8024fa6: f001 ff61 bl 8026e6c <ethernet_output>
  91197. 8024faa: 4603 mov r3, r0
  91198. }
  91199. 8024fac: 4618 mov r0, r3
  91200. 8024fae: 3720 adds r7, #32
  91201. 8024fb0: 46bd mov sp, r7
  91202. 8024fb2: bd80 pop {r7, pc}
  91203. 8024fb4: 080310d8 .word 0x080310d8
  91204. 8024fb8: 08031228 .word 0x08031228
  91205. 8024fbc: 08031150 .word 0x08031150
  91206. 8024fc0: 08031278 .word 0x08031278
  91207. 8024fc4: 08031218 .word 0x08031218
  91208. 8024fc8: 08031b60 .word 0x08031b60
  91209. 8024fcc: 2402b0f0 .word 0x2402b0f0
  91210. 8024fd0: 2402b000 .word 0x2402b000
  91211. 08024fd4 <etharp_query>:
  91212. * - ERR_ARG Non-unicast address given, those will not appear in ARP cache.
  91213. *
  91214. */
  91215. err_t
  91216. etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q)
  91217. {
  91218. 8024fd4: b580 push {r7, lr}
  91219. 8024fd6: b08c sub sp, #48 @ 0x30
  91220. 8024fd8: af02 add r7, sp, #8
  91221. 8024fda: 60f8 str r0, [r7, #12]
  91222. 8024fdc: 60b9 str r1, [r7, #8]
  91223. 8024fde: 607a str r2, [r7, #4]
  91224. struct eth_addr *srcaddr = (struct eth_addr *)netif->hwaddr;
  91225. 8024fe0: 68fb ldr r3, [r7, #12]
  91226. 8024fe2: 332a adds r3, #42 @ 0x2a
  91227. 8024fe4: 617b str r3, [r7, #20]
  91228. err_t result = ERR_MEM;
  91229. 8024fe6: 23ff movs r3, #255 @ 0xff
  91230. 8024fe8: f887 3027 strb.w r3, [r7, #39] @ 0x27
  91231. int is_new_entry = 0;
  91232. 8024fec: 2300 movs r3, #0
  91233. 8024fee: 623b str r3, [r7, #32]
  91234. s16_t i_err;
  91235. netif_addr_idx_t i;
  91236. /* non-unicast address? */
  91237. if (ip4_addr_isbroadcast(ipaddr, netif) ||
  91238. 8024ff0: 68bb ldr r3, [r7, #8]
  91239. 8024ff2: 681b ldr r3, [r3, #0]
  91240. 8024ff4: 68f9 ldr r1, [r7, #12]
  91241. 8024ff6: 4618 mov r0, r3
  91242. 8024ff8: f000 fe5a bl 8025cb0 <ip4_addr_isbroadcast_u32>
  91243. 8024ffc: 4603 mov r3, r0
  91244. 8024ffe: 2b00 cmp r3, #0
  91245. 8025000: d10c bne.n 802501c <etharp_query+0x48>
  91246. ip4_addr_ismulticast(ipaddr) ||
  91247. 8025002: 68bb ldr r3, [r7, #8]
  91248. 8025004: 681b ldr r3, [r3, #0]
  91249. 8025006: f003 03f0 and.w r3, r3, #240 @ 0xf0
  91250. if (ip4_addr_isbroadcast(ipaddr, netif) ||
  91251. 802500a: 2be0 cmp r3, #224 @ 0xe0
  91252. 802500c: d006 beq.n 802501c <etharp_query+0x48>
  91253. ip4_addr_ismulticast(ipaddr) ||
  91254. 802500e: 68bb ldr r3, [r7, #8]
  91255. 8025010: 2b00 cmp r3, #0
  91256. 8025012: d003 beq.n 802501c <etharp_query+0x48>
  91257. ip4_addr_isany(ipaddr)) {
  91258. 8025014: 68bb ldr r3, [r7, #8]
  91259. 8025016: 681b ldr r3, [r3, #0]
  91260. 8025018: 2b00 cmp r3, #0
  91261. 802501a: d102 bne.n 8025022 <etharp_query+0x4e>
  91262. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: will not add non-unicast IP address to ARP cache\n"));
  91263. return ERR_ARG;
  91264. 802501c: f06f 030f mvn.w r3, #15
  91265. 8025020: e101 b.n 8025226 <etharp_query+0x252>
  91266. }
  91267. /* find entry in ARP cache, ask to create entry if queueing packet */
  91268. i_err = etharp_find_entry(ipaddr, ETHARP_FLAG_TRY_HARD, netif);
  91269. 8025022: 68fa ldr r2, [r7, #12]
  91270. 8025024: 2101 movs r1, #1
  91271. 8025026: 68b8 ldr r0, [r7, #8]
  91272. 8025028: f7ff fb58 bl 80246dc <etharp_find_entry>
  91273. 802502c: 4603 mov r3, r0
  91274. 802502e: 827b strh r3, [r7, #18]
  91275. /* could not find or create entry? */
  91276. if (i_err < 0) {
  91277. 8025030: f9b7 3012 ldrsh.w r3, [r7, #18]
  91278. 8025034: 2b00 cmp r3, #0
  91279. 8025036: da02 bge.n 802503e <etharp_query+0x6a>
  91280. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: could not create ARP entry\n"));
  91281. if (q) {
  91282. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: packet dropped\n"));
  91283. ETHARP_STATS_INC(etharp.memerr);
  91284. }
  91285. return (err_t)i_err;
  91286. 8025038: 8a7b ldrh r3, [r7, #18]
  91287. 802503a: b25b sxtb r3, r3
  91288. 802503c: e0f3 b.n 8025226 <etharp_query+0x252>
  91289. }
  91290. LWIP_ASSERT("type overflow", (size_t)i_err < NETIF_ADDR_IDX_MAX);
  91291. 802503e: 8a7b ldrh r3, [r7, #18]
  91292. 8025040: 2b7e cmp r3, #126 @ 0x7e
  91293. 8025042: d906 bls.n 8025052 <etharp_query+0x7e>
  91294. 8025044: 4b7a ldr r3, [pc, #488] @ (8025230 <etharp_query+0x25c>)
  91295. 8025046: f240 32c1 movw r2, #961 @ 0x3c1
  91296. 802504a: 497a ldr r1, [pc, #488] @ (8025234 <etharp_query+0x260>)
  91297. 802504c: 487a ldr r0, [pc, #488] @ (8025238 <etharp_query+0x264>)
  91298. 802504e: f005 fb85 bl 802a75c <iprintf>
  91299. i = (netif_addr_idx_t)i_err;
  91300. 8025052: 8a7b ldrh r3, [r7, #18]
  91301. 8025054: 747b strb r3, [r7, #17]
  91302. /* mark a fresh entry as pending (we just sent a request) */
  91303. if (arp_table[i].state == ETHARP_STATE_EMPTY) {
  91304. 8025056: 7c7a ldrb r2, [r7, #17]
  91305. 8025058: 4978 ldr r1, [pc, #480] @ (802523c <etharp_query+0x268>)
  91306. 802505a: 4613 mov r3, r2
  91307. 802505c: 005b lsls r3, r3, #1
  91308. 802505e: 4413 add r3, r2
  91309. 8025060: 00db lsls r3, r3, #3
  91310. 8025062: 440b add r3, r1
  91311. 8025064: 3314 adds r3, #20
  91312. 8025066: 781b ldrb r3, [r3, #0]
  91313. 8025068: 2b00 cmp r3, #0
  91314. 802506a: d115 bne.n 8025098 <etharp_query+0xc4>
  91315. is_new_entry = 1;
  91316. 802506c: 2301 movs r3, #1
  91317. 802506e: 623b str r3, [r7, #32]
  91318. arp_table[i].state = ETHARP_STATE_PENDING;
  91319. 8025070: 7c7a ldrb r2, [r7, #17]
  91320. 8025072: 4972 ldr r1, [pc, #456] @ (802523c <etharp_query+0x268>)
  91321. 8025074: 4613 mov r3, r2
  91322. 8025076: 005b lsls r3, r3, #1
  91323. 8025078: 4413 add r3, r2
  91324. 802507a: 00db lsls r3, r3, #3
  91325. 802507c: 440b add r3, r1
  91326. 802507e: 3314 adds r3, #20
  91327. 8025080: 2201 movs r2, #1
  91328. 8025082: 701a strb r2, [r3, #0]
  91329. /* record network interface for re-sending arp request in etharp_tmr */
  91330. arp_table[i].netif = netif;
  91331. 8025084: 7c7a ldrb r2, [r7, #17]
  91332. 8025086: 496d ldr r1, [pc, #436] @ (802523c <etharp_query+0x268>)
  91333. 8025088: 4613 mov r3, r2
  91334. 802508a: 005b lsls r3, r3, #1
  91335. 802508c: 4413 add r3, r2
  91336. 802508e: 00db lsls r3, r3, #3
  91337. 8025090: 440b add r3, r1
  91338. 8025092: 3308 adds r3, #8
  91339. 8025094: 68fa ldr r2, [r7, #12]
  91340. 8025096: 601a str r2, [r3, #0]
  91341. }
  91342. /* { i is either a STABLE or (new or existing) PENDING entry } */
  91343. LWIP_ASSERT("arp_table[i].state == PENDING or STABLE",
  91344. 8025098: 7c7a ldrb r2, [r7, #17]
  91345. 802509a: 4968 ldr r1, [pc, #416] @ (802523c <etharp_query+0x268>)
  91346. 802509c: 4613 mov r3, r2
  91347. 802509e: 005b lsls r3, r3, #1
  91348. 80250a0: 4413 add r3, r2
  91349. 80250a2: 00db lsls r3, r3, #3
  91350. 80250a4: 440b add r3, r1
  91351. 80250a6: 3314 adds r3, #20
  91352. 80250a8: 781b ldrb r3, [r3, #0]
  91353. 80250aa: 2b01 cmp r3, #1
  91354. 80250ac: d011 beq.n 80250d2 <etharp_query+0xfe>
  91355. 80250ae: 7c7a ldrb r2, [r7, #17]
  91356. 80250b0: 4962 ldr r1, [pc, #392] @ (802523c <etharp_query+0x268>)
  91357. 80250b2: 4613 mov r3, r2
  91358. 80250b4: 005b lsls r3, r3, #1
  91359. 80250b6: 4413 add r3, r2
  91360. 80250b8: 00db lsls r3, r3, #3
  91361. 80250ba: 440b add r3, r1
  91362. 80250bc: 3314 adds r3, #20
  91363. 80250be: 781b ldrb r3, [r3, #0]
  91364. 80250c0: 2b01 cmp r3, #1
  91365. 80250c2: d806 bhi.n 80250d2 <etharp_query+0xfe>
  91366. 80250c4: 4b5a ldr r3, [pc, #360] @ (8025230 <etharp_query+0x25c>)
  91367. 80250c6: f240 32cd movw r2, #973 @ 0x3cd
  91368. 80250ca: 495d ldr r1, [pc, #372] @ (8025240 <etharp_query+0x26c>)
  91369. 80250cc: 485a ldr r0, [pc, #360] @ (8025238 <etharp_query+0x264>)
  91370. 80250ce: f005 fb45 bl 802a75c <iprintf>
  91371. ((arp_table[i].state == ETHARP_STATE_PENDING) ||
  91372. (arp_table[i].state >= ETHARP_STATE_STABLE)));
  91373. /* do we have a new entry? or an implicit query request? */
  91374. if (is_new_entry || (q == NULL)) {
  91375. 80250d2: 6a3b ldr r3, [r7, #32]
  91376. 80250d4: 2b00 cmp r3, #0
  91377. 80250d6: d102 bne.n 80250de <etharp_query+0x10a>
  91378. 80250d8: 687b ldr r3, [r7, #4]
  91379. 80250da: 2b00 cmp r3, #0
  91380. 80250dc: d10c bne.n 80250f8 <etharp_query+0x124>
  91381. /* try to resolve it; send out ARP request */
  91382. result = etharp_request(netif, ipaddr);
  91383. 80250de: 68b9 ldr r1, [r7, #8]
  91384. 80250e0: 68f8 ldr r0, [r7, #12]
  91385. 80250e2: f000 f963 bl 80253ac <etharp_request>
  91386. 80250e6: 4603 mov r3, r0
  91387. 80250e8: f887 3027 strb.w r3, [r7, #39] @ 0x27
  91388. /* ARP request couldn't be sent */
  91389. /* We don't re-send arp request in etharp_tmr, but we still queue packets,
  91390. since this failure could be temporary, and the next packet calling
  91391. etharp_query again could lead to sending the queued packets. */
  91392. }
  91393. if (q == NULL) {
  91394. 80250ec: 687b ldr r3, [r7, #4]
  91395. 80250ee: 2b00 cmp r3, #0
  91396. 80250f0: d102 bne.n 80250f8 <etharp_query+0x124>
  91397. return result;
  91398. 80250f2: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  91399. 80250f6: e096 b.n 8025226 <etharp_query+0x252>
  91400. }
  91401. }
  91402. /* packet given? */
  91403. LWIP_ASSERT("q != NULL", q != NULL);
  91404. 80250f8: 687b ldr r3, [r7, #4]
  91405. 80250fa: 2b00 cmp r3, #0
  91406. 80250fc: d106 bne.n 802510c <etharp_query+0x138>
  91407. 80250fe: 4b4c ldr r3, [pc, #304] @ (8025230 <etharp_query+0x25c>)
  91408. 8025100: f240 32e1 movw r2, #993 @ 0x3e1
  91409. 8025104: 494f ldr r1, [pc, #316] @ (8025244 <etharp_query+0x270>)
  91410. 8025106: 484c ldr r0, [pc, #304] @ (8025238 <etharp_query+0x264>)
  91411. 8025108: f005 fb28 bl 802a75c <iprintf>
  91412. /* stable entry? */
  91413. if (arp_table[i].state >= ETHARP_STATE_STABLE) {
  91414. 802510c: 7c7a ldrb r2, [r7, #17]
  91415. 802510e: 494b ldr r1, [pc, #300] @ (802523c <etharp_query+0x268>)
  91416. 8025110: 4613 mov r3, r2
  91417. 8025112: 005b lsls r3, r3, #1
  91418. 8025114: 4413 add r3, r2
  91419. 8025116: 00db lsls r3, r3, #3
  91420. 8025118: 440b add r3, r1
  91421. 802511a: 3314 adds r3, #20
  91422. 802511c: 781b ldrb r3, [r3, #0]
  91423. 802511e: 2b01 cmp r3, #1
  91424. 8025120: d917 bls.n 8025152 <etharp_query+0x17e>
  91425. /* we have a valid IP->Ethernet address mapping */
  91426. ETHARP_SET_ADDRHINT(netif, i);
  91427. 8025122: 4a49 ldr r2, [pc, #292] @ (8025248 <etharp_query+0x274>)
  91428. 8025124: 7c7b ldrb r3, [r7, #17]
  91429. 8025126: 7013 strb r3, [r2, #0]
  91430. /* send the packet */
  91431. result = ethernet_output(netif, q, srcaddr, &(arp_table[i].ethaddr), ETHTYPE_IP);
  91432. 8025128: 7c7a ldrb r2, [r7, #17]
  91433. 802512a: 4613 mov r3, r2
  91434. 802512c: 005b lsls r3, r3, #1
  91435. 802512e: 4413 add r3, r2
  91436. 8025130: 00db lsls r3, r3, #3
  91437. 8025132: 3308 adds r3, #8
  91438. 8025134: 4a41 ldr r2, [pc, #260] @ (802523c <etharp_query+0x268>)
  91439. 8025136: 4413 add r3, r2
  91440. 8025138: 3304 adds r3, #4
  91441. 802513a: f44f 6200 mov.w r2, #2048 @ 0x800
  91442. 802513e: 9200 str r2, [sp, #0]
  91443. 8025140: 697a ldr r2, [r7, #20]
  91444. 8025142: 6879 ldr r1, [r7, #4]
  91445. 8025144: 68f8 ldr r0, [r7, #12]
  91446. 8025146: f001 fe91 bl 8026e6c <ethernet_output>
  91447. 802514a: 4603 mov r3, r0
  91448. 802514c: f887 3027 strb.w r3, [r7, #39] @ 0x27
  91449. 8025150: e067 b.n 8025222 <etharp_query+0x24e>
  91450. /* pending entry? (either just created or already pending */
  91451. } else if (arp_table[i].state == ETHARP_STATE_PENDING) {
  91452. 8025152: 7c7a ldrb r2, [r7, #17]
  91453. 8025154: 4939 ldr r1, [pc, #228] @ (802523c <etharp_query+0x268>)
  91454. 8025156: 4613 mov r3, r2
  91455. 8025158: 005b lsls r3, r3, #1
  91456. 802515a: 4413 add r3, r2
  91457. 802515c: 00db lsls r3, r3, #3
  91458. 802515e: 440b add r3, r1
  91459. 8025160: 3314 adds r3, #20
  91460. 8025162: 781b ldrb r3, [r3, #0]
  91461. 8025164: 2b01 cmp r3, #1
  91462. 8025166: d15c bne.n 8025222 <etharp_query+0x24e>
  91463. /* entry is still pending, queue the given packet 'q' */
  91464. struct pbuf *p;
  91465. int copy_needed = 0;
  91466. 8025168: 2300 movs r3, #0
  91467. 802516a: 61bb str r3, [r7, #24]
  91468. /* IF q includes a pbuf that must be copied, copy the whole chain into a
  91469. * new PBUF_RAM. See the definition of PBUF_NEEDS_COPY for details. */
  91470. p = q;
  91471. 802516c: 687b ldr r3, [r7, #4]
  91472. 802516e: 61fb str r3, [r7, #28]
  91473. while (p) {
  91474. 8025170: e01c b.n 80251ac <etharp_query+0x1d8>
  91475. LWIP_ASSERT("no packet queues allowed!", (p->len != p->tot_len) || (p->next == 0));
  91476. 8025172: 69fb ldr r3, [r7, #28]
  91477. 8025174: 895a ldrh r2, [r3, #10]
  91478. 8025176: 69fb ldr r3, [r7, #28]
  91479. 8025178: 891b ldrh r3, [r3, #8]
  91480. 802517a: 429a cmp r2, r3
  91481. 802517c: d10a bne.n 8025194 <etharp_query+0x1c0>
  91482. 802517e: 69fb ldr r3, [r7, #28]
  91483. 8025180: 681b ldr r3, [r3, #0]
  91484. 8025182: 2b00 cmp r3, #0
  91485. 8025184: d006 beq.n 8025194 <etharp_query+0x1c0>
  91486. 8025186: 4b2a ldr r3, [pc, #168] @ (8025230 <etharp_query+0x25c>)
  91487. 8025188: f240 32f1 movw r2, #1009 @ 0x3f1
  91488. 802518c: 492f ldr r1, [pc, #188] @ (802524c <etharp_query+0x278>)
  91489. 802518e: 482a ldr r0, [pc, #168] @ (8025238 <etharp_query+0x264>)
  91490. 8025190: f005 fae4 bl 802a75c <iprintf>
  91491. if (PBUF_NEEDS_COPY(p)) {
  91492. 8025194: 69fb ldr r3, [r7, #28]
  91493. 8025196: 7b1b ldrb r3, [r3, #12]
  91494. 8025198: f003 0340 and.w r3, r3, #64 @ 0x40
  91495. 802519c: 2b00 cmp r3, #0
  91496. 802519e: d002 beq.n 80251a6 <etharp_query+0x1d2>
  91497. copy_needed = 1;
  91498. 80251a0: 2301 movs r3, #1
  91499. 80251a2: 61bb str r3, [r7, #24]
  91500. break;
  91501. 80251a4: e005 b.n 80251b2 <etharp_query+0x1de>
  91502. }
  91503. p = p->next;
  91504. 80251a6: 69fb ldr r3, [r7, #28]
  91505. 80251a8: 681b ldr r3, [r3, #0]
  91506. 80251aa: 61fb str r3, [r7, #28]
  91507. while (p) {
  91508. 80251ac: 69fb ldr r3, [r7, #28]
  91509. 80251ae: 2b00 cmp r3, #0
  91510. 80251b0: d1df bne.n 8025172 <etharp_query+0x19e>
  91511. }
  91512. if (copy_needed) {
  91513. 80251b2: 69bb ldr r3, [r7, #24]
  91514. 80251b4: 2b00 cmp r3, #0
  91515. 80251b6: d007 beq.n 80251c8 <etharp_query+0x1f4>
  91516. /* copy the whole packet into new pbufs */
  91517. p = pbuf_clone(PBUF_LINK, PBUF_RAM, q);
  91518. 80251b8: 687a ldr r2, [r7, #4]
  91519. 80251ba: f44f 7120 mov.w r1, #640 @ 0x280
  91520. 80251be: 200e movs r0, #14
  91521. 80251c0: f7f6 facc bl 801b75c <pbuf_clone>
  91522. 80251c4: 61f8 str r0, [r7, #28]
  91523. 80251c6: e004 b.n 80251d2 <etharp_query+0x1fe>
  91524. } else {
  91525. /* referencing the old pbuf is enough */
  91526. p = q;
  91527. 80251c8: 687b ldr r3, [r7, #4]
  91528. 80251ca: 61fb str r3, [r7, #28]
  91529. pbuf_ref(p);
  91530. 80251cc: 69f8 ldr r0, [r7, #28]
  91531. 80251ce: f7f6 f8f3 bl 801b3b8 <pbuf_ref>
  91532. }
  91533. /* packet could be taken over? */
  91534. if (p != NULL) {
  91535. 80251d2: 69fb ldr r3, [r7, #28]
  91536. 80251d4: 2b00 cmp r3, #0
  91537. 80251d6: d021 beq.n 802521c <etharp_query+0x248>
  91538. 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));
  91539. result = ERR_MEM;
  91540. }
  91541. #else /* ARP_QUEUEING */
  91542. /* always queue one packet per ARP request only, freeing a previously queued packet */
  91543. if (arp_table[i].q != NULL) {
  91544. 80251d8: 7c7a ldrb r2, [r7, #17]
  91545. 80251da: 4918 ldr r1, [pc, #96] @ (802523c <etharp_query+0x268>)
  91546. 80251dc: 4613 mov r3, r2
  91547. 80251de: 005b lsls r3, r3, #1
  91548. 80251e0: 4413 add r3, r2
  91549. 80251e2: 00db lsls r3, r3, #3
  91550. 80251e4: 440b add r3, r1
  91551. 80251e6: 681b ldr r3, [r3, #0]
  91552. 80251e8: 2b00 cmp r3, #0
  91553. 80251ea: d00a beq.n 8025202 <etharp_query+0x22e>
  91554. 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));
  91555. pbuf_free(arp_table[i].q);
  91556. 80251ec: 7c7a ldrb r2, [r7, #17]
  91557. 80251ee: 4913 ldr r1, [pc, #76] @ (802523c <etharp_query+0x268>)
  91558. 80251f0: 4613 mov r3, r2
  91559. 80251f2: 005b lsls r3, r3, #1
  91560. 80251f4: 4413 add r3, r2
  91561. 80251f6: 00db lsls r3, r3, #3
  91562. 80251f8: 440b add r3, r1
  91563. 80251fa: 681b ldr r3, [r3, #0]
  91564. 80251fc: 4618 mov r0, r3
  91565. 80251fe: f7f6 f835 bl 801b26c <pbuf_free>
  91566. }
  91567. arp_table[i].q = p;
  91568. 8025202: 7c7a ldrb r2, [r7, #17]
  91569. 8025204: 490d ldr r1, [pc, #52] @ (802523c <etharp_query+0x268>)
  91570. 8025206: 4613 mov r3, r2
  91571. 8025208: 005b lsls r3, r3, #1
  91572. 802520a: 4413 add r3, r2
  91573. 802520c: 00db lsls r3, r3, #3
  91574. 802520e: 440b add r3, r1
  91575. 8025210: 69fa ldr r2, [r7, #28]
  91576. 8025212: 601a str r2, [r3, #0]
  91577. result = ERR_OK;
  91578. 8025214: 2300 movs r3, #0
  91579. 8025216: f887 3027 strb.w r3, [r7, #39] @ 0x27
  91580. 802521a: e002 b.n 8025222 <etharp_query+0x24e>
  91581. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: queued packet %p on ARP entry %"U16_F"\n", (void *)q, (u16_t)i));
  91582. #endif /* ARP_QUEUEING */
  91583. } else {
  91584. ETHARP_STATS_INC(etharp.memerr);
  91585. 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));
  91586. result = ERR_MEM;
  91587. 802521c: 23ff movs r3, #255 @ 0xff
  91588. 802521e: f887 3027 strb.w r3, [r7, #39] @ 0x27
  91589. }
  91590. }
  91591. return result;
  91592. 8025222: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  91593. }
  91594. 8025226: 4618 mov r0, r3
  91595. 8025228: 3728 adds r7, #40 @ 0x28
  91596. 802522a: 46bd mov sp, r7
  91597. 802522c: bd80 pop {r7, pc}
  91598. 802522e: bf00 nop
  91599. 8025230: 080310d8 .word 0x080310d8
  91600. 8025234: 08031284 .word 0x08031284
  91601. 8025238: 08031150 .word 0x08031150
  91602. 802523c: 2402b000 .word 0x2402b000
  91603. 8025240: 08031294 .word 0x08031294
  91604. 8025244: 08031278 .word 0x08031278
  91605. 8025248: 2402b0f0 .word 0x2402b0f0
  91606. 802524c: 080312bc .word 0x080312bc
  91607. 08025250 <etharp_raw>:
  91608. etharp_raw(struct netif *netif, const struct eth_addr *ethsrc_addr,
  91609. const struct eth_addr *ethdst_addr,
  91610. const struct eth_addr *hwsrc_addr, const ip4_addr_t *ipsrc_addr,
  91611. const struct eth_addr *hwdst_addr, const ip4_addr_t *ipdst_addr,
  91612. const u16_t opcode)
  91613. {
  91614. 8025250: b580 push {r7, lr}
  91615. 8025252: b08a sub sp, #40 @ 0x28
  91616. 8025254: af02 add r7, sp, #8
  91617. 8025256: 60f8 str r0, [r7, #12]
  91618. 8025258: 60b9 str r1, [r7, #8]
  91619. 802525a: 607a str r2, [r7, #4]
  91620. 802525c: 603b str r3, [r7, #0]
  91621. struct pbuf *p;
  91622. err_t result = ERR_OK;
  91623. 802525e: 2300 movs r3, #0
  91624. 8025260: 77fb strb r3, [r7, #31]
  91625. struct etharp_hdr *hdr;
  91626. LWIP_ASSERT("netif != NULL", netif != NULL);
  91627. 8025262: 68fb ldr r3, [r7, #12]
  91628. 8025264: 2b00 cmp r3, #0
  91629. 8025266: d106 bne.n 8025276 <etharp_raw+0x26>
  91630. 8025268: 4b3a ldr r3, [pc, #232] @ (8025354 <etharp_raw+0x104>)
  91631. 802526a: f240 4257 movw r2, #1111 @ 0x457
  91632. 802526e: 493a ldr r1, [pc, #232] @ (8025358 <etharp_raw+0x108>)
  91633. 8025270: 483a ldr r0, [pc, #232] @ (802535c <etharp_raw+0x10c>)
  91634. 8025272: f005 fa73 bl 802a75c <iprintf>
  91635. /* allocate a pbuf for the outgoing ARP request packet */
  91636. p = pbuf_alloc(PBUF_LINK, SIZEOF_ETHARP_HDR, PBUF_RAM);
  91637. 8025276: f44f 7220 mov.w r2, #640 @ 0x280
  91638. 802527a: 211c movs r1, #28
  91639. 802527c: 200e movs r0, #14
  91640. 802527e: f7f5 fcdf bl 801ac40 <pbuf_alloc>
  91641. 8025282: 61b8 str r0, [r7, #24]
  91642. /* could allocate a pbuf for an ARP request? */
  91643. if (p == NULL) {
  91644. 8025284: 69bb ldr r3, [r7, #24]
  91645. 8025286: 2b00 cmp r3, #0
  91646. 8025288: d102 bne.n 8025290 <etharp_raw+0x40>
  91647. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  91648. ("etharp_raw: could not allocate pbuf for ARP request.\n"));
  91649. ETHARP_STATS_INC(etharp.memerr);
  91650. return ERR_MEM;
  91651. 802528a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  91652. 802528e: e05d b.n 802534c <etharp_raw+0xfc>
  91653. }
  91654. LWIP_ASSERT("check that first pbuf can hold struct etharp_hdr",
  91655. 8025290: 69bb ldr r3, [r7, #24]
  91656. 8025292: 895b ldrh r3, [r3, #10]
  91657. 8025294: 2b1b cmp r3, #27
  91658. 8025296: d806 bhi.n 80252a6 <etharp_raw+0x56>
  91659. 8025298: 4b2e ldr r3, [pc, #184] @ (8025354 <etharp_raw+0x104>)
  91660. 802529a: f240 4262 movw r2, #1122 @ 0x462
  91661. 802529e: 4930 ldr r1, [pc, #192] @ (8025360 <etharp_raw+0x110>)
  91662. 80252a0: 482e ldr r0, [pc, #184] @ (802535c <etharp_raw+0x10c>)
  91663. 80252a2: f005 fa5b bl 802a75c <iprintf>
  91664. (p->len >= SIZEOF_ETHARP_HDR));
  91665. hdr = (struct etharp_hdr *)p->payload;
  91666. 80252a6: 69bb ldr r3, [r7, #24]
  91667. 80252a8: 685b ldr r3, [r3, #4]
  91668. 80252aa: 617b str r3, [r7, #20]
  91669. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_raw: sending raw ARP packet.\n"));
  91670. hdr->opcode = lwip_htons(opcode);
  91671. 80252ac: 8ebb ldrh r3, [r7, #52] @ 0x34
  91672. 80252ae: 4618 mov r0, r3
  91673. 80252b0: f7f4 fafa bl 80198a8 <lwip_htons>
  91674. 80252b4: 4603 mov r3, r0
  91675. 80252b6: 461a mov r2, r3
  91676. 80252b8: 697b ldr r3, [r7, #20]
  91677. 80252ba: 80da strh r2, [r3, #6]
  91678. LWIP_ASSERT("netif->hwaddr_len must be the same as ETH_HWADDR_LEN for etharp!",
  91679. 80252bc: 68fb ldr r3, [r7, #12]
  91680. 80252be: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  91681. 80252c2: 2b06 cmp r3, #6
  91682. 80252c4: d006 beq.n 80252d4 <etharp_raw+0x84>
  91683. 80252c6: 4b23 ldr r3, [pc, #140] @ (8025354 <etharp_raw+0x104>)
  91684. 80252c8: f240 4269 movw r2, #1129 @ 0x469
  91685. 80252cc: 4925 ldr r1, [pc, #148] @ (8025364 <etharp_raw+0x114>)
  91686. 80252ce: 4823 ldr r0, [pc, #140] @ (802535c <etharp_raw+0x10c>)
  91687. 80252d0: f005 fa44 bl 802a75c <iprintf>
  91688. (netif->hwaddr_len == ETH_HWADDR_LEN));
  91689. /* Write the ARP MAC-Addresses */
  91690. SMEMCPY(&hdr->shwaddr, hwsrc_addr, ETH_HWADDR_LEN);
  91691. 80252d4: 697b ldr r3, [r7, #20]
  91692. 80252d6: 3308 adds r3, #8
  91693. 80252d8: 2206 movs r2, #6
  91694. 80252da: 6839 ldr r1, [r7, #0]
  91695. 80252dc: 4618 mov r0, r3
  91696. 80252de: f005 fcc6 bl 802ac6e <memcpy>
  91697. SMEMCPY(&hdr->dhwaddr, hwdst_addr, ETH_HWADDR_LEN);
  91698. 80252e2: 697b ldr r3, [r7, #20]
  91699. 80252e4: 3312 adds r3, #18
  91700. 80252e6: 2206 movs r2, #6
  91701. 80252e8: 6af9 ldr r1, [r7, #44] @ 0x2c
  91702. 80252ea: 4618 mov r0, r3
  91703. 80252ec: f005 fcbf bl 802ac6e <memcpy>
  91704. /* Copy struct ip4_addr_wordaligned to aligned ip4_addr, to support compilers without
  91705. * structure packing. */
  91706. IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(&hdr->sipaddr, ipsrc_addr);
  91707. 80252f0: 697b ldr r3, [r7, #20]
  91708. 80252f2: 330e adds r3, #14
  91709. 80252f4: 6aba ldr r2, [r7, #40] @ 0x28
  91710. 80252f6: 6812 ldr r2, [r2, #0]
  91711. 80252f8: 601a str r2, [r3, #0]
  91712. IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(&hdr->dipaddr, ipdst_addr);
  91713. 80252fa: 697b ldr r3, [r7, #20]
  91714. 80252fc: 3318 adds r3, #24
  91715. 80252fe: 6b3a ldr r2, [r7, #48] @ 0x30
  91716. 8025300: 6812 ldr r2, [r2, #0]
  91717. 8025302: 601a str r2, [r3, #0]
  91718. hdr->hwtype = PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET);
  91719. 8025304: 697b ldr r3, [r7, #20]
  91720. 8025306: 2200 movs r2, #0
  91721. 8025308: 701a strb r2, [r3, #0]
  91722. 802530a: 2200 movs r2, #0
  91723. 802530c: f042 0201 orr.w r2, r2, #1
  91724. 8025310: 705a strb r2, [r3, #1]
  91725. hdr->proto = PP_HTONS(ETHTYPE_IP);
  91726. 8025312: 697b ldr r3, [r7, #20]
  91727. 8025314: 2200 movs r2, #0
  91728. 8025316: f042 0208 orr.w r2, r2, #8
  91729. 802531a: 709a strb r2, [r3, #2]
  91730. 802531c: 2200 movs r2, #0
  91731. 802531e: 70da strb r2, [r3, #3]
  91732. /* set hwlen and protolen */
  91733. hdr->hwlen = ETH_HWADDR_LEN;
  91734. 8025320: 697b ldr r3, [r7, #20]
  91735. 8025322: 2206 movs r2, #6
  91736. 8025324: 711a strb r2, [r3, #4]
  91737. hdr->protolen = sizeof(ip4_addr_t);
  91738. 8025326: 697b ldr r3, [r7, #20]
  91739. 8025328: 2204 movs r2, #4
  91740. 802532a: 715a strb r2, [r3, #5]
  91741. if (ip4_addr_islinklocal(ipsrc_addr)) {
  91742. ethernet_output(netif, p, ethsrc_addr, &ethbroadcast, ETHTYPE_ARP);
  91743. } else
  91744. #endif /* LWIP_AUTOIP */
  91745. {
  91746. ethernet_output(netif, p, ethsrc_addr, ethdst_addr, ETHTYPE_ARP);
  91747. 802532c: f640 0306 movw r3, #2054 @ 0x806
  91748. 8025330: 9300 str r3, [sp, #0]
  91749. 8025332: 687b ldr r3, [r7, #4]
  91750. 8025334: 68ba ldr r2, [r7, #8]
  91751. 8025336: 69b9 ldr r1, [r7, #24]
  91752. 8025338: 68f8 ldr r0, [r7, #12]
  91753. 802533a: f001 fd97 bl 8026e6c <ethernet_output>
  91754. }
  91755. ETHARP_STATS_INC(etharp.xmit);
  91756. /* free ARP query packet */
  91757. pbuf_free(p);
  91758. 802533e: 69b8 ldr r0, [r7, #24]
  91759. 8025340: f7f5 ff94 bl 801b26c <pbuf_free>
  91760. p = NULL;
  91761. 8025344: 2300 movs r3, #0
  91762. 8025346: 61bb str r3, [r7, #24]
  91763. /* could not allocate pbuf for ARP request */
  91764. return result;
  91765. 8025348: f997 301f ldrsb.w r3, [r7, #31]
  91766. }
  91767. 802534c: 4618 mov r0, r3
  91768. 802534e: 3720 adds r7, #32
  91769. 8025350: 46bd mov sp, r7
  91770. 8025352: bd80 pop {r7, pc}
  91771. 8025354: 080310d8 .word 0x080310d8
  91772. 8025358: 08031228 .word 0x08031228
  91773. 802535c: 08031150 .word 0x08031150
  91774. 8025360: 080312d8 .word 0x080312d8
  91775. 8025364: 0803130c .word 0x0803130c
  91776. 08025368 <etharp_request_dst>:
  91777. * ERR_MEM if the ARP packet couldn't be allocated
  91778. * any other err_t on failure
  91779. */
  91780. static err_t
  91781. etharp_request_dst(struct netif *netif, const ip4_addr_t *ipaddr, const struct eth_addr *hw_dst_addr)
  91782. {
  91783. 8025368: b580 push {r7, lr}
  91784. 802536a: b088 sub sp, #32
  91785. 802536c: af04 add r7, sp, #16
  91786. 802536e: 60f8 str r0, [r7, #12]
  91787. 8025370: 60b9 str r1, [r7, #8]
  91788. 8025372: 607a str r2, [r7, #4]
  91789. return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr,
  91790. 8025374: 68fb ldr r3, [r7, #12]
  91791. 8025376: f103 012a add.w r1, r3, #42 @ 0x2a
  91792. (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), &ethzero,
  91793. 802537a: 68fb ldr r3, [r7, #12]
  91794. 802537c: f103 002a add.w r0, r3, #42 @ 0x2a
  91795. 8025380: 68fb ldr r3, [r7, #12]
  91796. 8025382: 3304 adds r3, #4
  91797. return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr,
  91798. 8025384: 2201 movs r2, #1
  91799. 8025386: 9203 str r2, [sp, #12]
  91800. 8025388: 68ba ldr r2, [r7, #8]
  91801. 802538a: 9202 str r2, [sp, #8]
  91802. 802538c: 4a06 ldr r2, [pc, #24] @ (80253a8 <etharp_request_dst+0x40>)
  91803. 802538e: 9201 str r2, [sp, #4]
  91804. 8025390: 9300 str r3, [sp, #0]
  91805. 8025392: 4603 mov r3, r0
  91806. 8025394: 687a ldr r2, [r7, #4]
  91807. 8025396: 68f8 ldr r0, [r7, #12]
  91808. 8025398: f7ff ff5a bl 8025250 <etharp_raw>
  91809. 802539c: 4603 mov r3, r0
  91810. ipaddr, ARP_REQUEST);
  91811. }
  91812. 802539e: 4618 mov r0, r3
  91813. 80253a0: 3710 adds r7, #16
  91814. 80253a2: 46bd mov sp, r7
  91815. 80253a4: bd80 pop {r7, pc}
  91816. 80253a6: bf00 nop
  91817. 80253a8: 08031b68 .word 0x08031b68
  91818. 080253ac <etharp_request>:
  91819. * ERR_MEM if the ARP packet couldn't be allocated
  91820. * any other err_t on failure
  91821. */
  91822. err_t
  91823. etharp_request(struct netif *netif, const ip4_addr_t *ipaddr)
  91824. {
  91825. 80253ac: b580 push {r7, lr}
  91826. 80253ae: b082 sub sp, #8
  91827. 80253b0: af00 add r7, sp, #0
  91828. 80253b2: 6078 str r0, [r7, #4]
  91829. 80253b4: 6039 str r1, [r7, #0]
  91830. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_request: sending ARP request.\n"));
  91831. return etharp_request_dst(netif, ipaddr, &ethbroadcast);
  91832. 80253b6: 4a05 ldr r2, [pc, #20] @ (80253cc <etharp_request+0x20>)
  91833. 80253b8: 6839 ldr r1, [r7, #0]
  91834. 80253ba: 6878 ldr r0, [r7, #4]
  91835. 80253bc: f7ff ffd4 bl 8025368 <etharp_request_dst>
  91836. 80253c0: 4603 mov r3, r0
  91837. }
  91838. 80253c2: 4618 mov r0, r3
  91839. 80253c4: 3708 adds r7, #8
  91840. 80253c6: 46bd mov sp, r7
  91841. 80253c8: bd80 pop {r7, pc}
  91842. 80253ca: bf00 nop
  91843. 80253cc: 08031b60 .word 0x08031b60
  91844. 080253d0 <icmp_input>:
  91845. * @param p the icmp echo request packet, p->payload pointing to the icmp header
  91846. * @param inp the netif on which this packet was received
  91847. */
  91848. void
  91849. icmp_input(struct pbuf *p, struct netif *inp)
  91850. {
  91851. 80253d0: b580 push {r7, lr}
  91852. 80253d2: b08e sub sp, #56 @ 0x38
  91853. 80253d4: af04 add r7, sp, #16
  91854. 80253d6: 6078 str r0, [r7, #4]
  91855. 80253d8: 6039 str r1, [r7, #0]
  91856. const ip4_addr_t *src;
  91857. ICMP_STATS_INC(icmp.recv);
  91858. MIB2_STATS_INC(mib2.icmpinmsgs);
  91859. iphdr_in = ip4_current_header();
  91860. 80253da: 4b89 ldr r3, [pc, #548] @ (8025600 <icmp_input+0x230>)
  91861. 80253dc: 689b ldr r3, [r3, #8]
  91862. 80253de: 627b str r3, [r7, #36] @ 0x24
  91863. hlen = IPH_HL_BYTES(iphdr_in);
  91864. 80253e0: 6a7b ldr r3, [r7, #36] @ 0x24
  91865. 80253e2: 781b ldrb r3, [r3, #0]
  91866. 80253e4: f003 030f and.w r3, r3, #15
  91867. 80253e8: b2db uxtb r3, r3
  91868. 80253ea: 009b lsls r3, r3, #2
  91869. 80253ec: b2db uxtb r3, r3
  91870. 80253ee: 847b strh r3, [r7, #34] @ 0x22
  91871. if (hlen < IP_HLEN) {
  91872. 80253f0: 8c7b ldrh r3, [r7, #34] @ 0x22
  91873. 80253f2: 2b13 cmp r3, #19
  91874. 80253f4: f240 80ed bls.w 80255d2 <icmp_input+0x202>
  91875. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short IP header (%"S16_F" bytes) received\n", hlen));
  91876. goto lenerr;
  91877. }
  91878. if (p->len < sizeof(u16_t) * 2) {
  91879. 80253f8: 687b ldr r3, [r7, #4]
  91880. 80253fa: 895b ldrh r3, [r3, #10]
  91881. 80253fc: 2b03 cmp r3, #3
  91882. 80253fe: f240 80ea bls.w 80255d6 <icmp_input+0x206>
  91883. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short ICMP (%"U16_F" bytes) received\n", p->tot_len));
  91884. goto lenerr;
  91885. }
  91886. type = *((u8_t *)p->payload);
  91887. 8025402: 687b ldr r3, [r7, #4]
  91888. 8025404: 685b ldr r3, [r3, #4]
  91889. 8025406: 781b ldrb r3, [r3, #0]
  91890. 8025408: f887 3021 strb.w r3, [r7, #33] @ 0x21
  91891. #ifdef LWIP_DEBUG
  91892. code = *(((u8_t *)p->payload) + 1);
  91893. 802540c: 687b ldr r3, [r7, #4]
  91894. 802540e: 685b ldr r3, [r3, #4]
  91895. 8025410: 785b ldrb r3, [r3, #1]
  91896. 8025412: f887 3020 strb.w r3, [r7, #32]
  91897. /* if debug is enabled but debug statement below is somehow disabled: */
  91898. LWIP_UNUSED_ARG(code);
  91899. #endif /* LWIP_DEBUG */
  91900. switch (type) {
  91901. 8025416: f897 3021 ldrb.w r3, [r7, #33] @ 0x21
  91902. 802541a: 2b00 cmp r3, #0
  91903. 802541c: f000 80d2 beq.w 80255c4 <icmp_input+0x1f4>
  91904. 8025420: 2b08 cmp r3, #8
  91905. 8025422: f040 80d2 bne.w 80255ca <icmp_input+0x1fa>
  91906. (as obviously, an echo request has been sent, too). */
  91907. MIB2_STATS_INC(mib2.icmpinechoreps);
  91908. break;
  91909. case ICMP_ECHO:
  91910. MIB2_STATS_INC(mib2.icmpinechos);
  91911. src = ip4_current_dest_addr();
  91912. 8025426: 4b77 ldr r3, [pc, #476] @ (8025604 <icmp_input+0x234>)
  91913. 8025428: 61fb str r3, [r7, #28]
  91914. /* multicast destination address? */
  91915. if (ip4_addr_ismulticast(ip4_current_dest_addr())) {
  91916. 802542a: 4b75 ldr r3, [pc, #468] @ (8025600 <icmp_input+0x230>)
  91917. 802542c: 695b ldr r3, [r3, #20]
  91918. 802542e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  91919. 8025432: 2be0 cmp r3, #224 @ 0xe0
  91920. 8025434: f000 80d6 beq.w 80255e4 <icmp_input+0x214>
  91921. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: Not echoing to multicast pings\n"));
  91922. goto icmperr;
  91923. #endif /* LWIP_MULTICAST_PING */
  91924. }
  91925. /* broadcast destination address? */
  91926. if (ip4_addr_isbroadcast(ip4_current_dest_addr(), ip_current_netif())) {
  91927. 8025438: 4b71 ldr r3, [pc, #452] @ (8025600 <icmp_input+0x230>)
  91928. 802543a: 695b ldr r3, [r3, #20]
  91929. 802543c: 4a70 ldr r2, [pc, #448] @ (8025600 <icmp_input+0x230>)
  91930. 802543e: 6812 ldr r2, [r2, #0]
  91931. 8025440: 4611 mov r1, r2
  91932. 8025442: 4618 mov r0, r3
  91933. 8025444: f000 fc34 bl 8025cb0 <ip4_addr_isbroadcast_u32>
  91934. 8025448: 4603 mov r3, r0
  91935. 802544a: 2b00 cmp r3, #0
  91936. 802544c: f040 80cc bne.w 80255e8 <icmp_input+0x218>
  91937. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: Not echoing to broadcast pings\n"));
  91938. goto icmperr;
  91939. #endif /* LWIP_BROADCAST_PING */
  91940. }
  91941. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ping\n"));
  91942. if (p->tot_len < sizeof(struct icmp_echo_hdr)) {
  91943. 8025450: 687b ldr r3, [r7, #4]
  91944. 8025452: 891b ldrh r3, [r3, #8]
  91945. 8025454: 2b07 cmp r3, #7
  91946. 8025456: f240 80c0 bls.w 80255da <icmp_input+0x20a>
  91947. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: bad ICMP echo received\n"));
  91948. goto lenerr;
  91949. }
  91950. #if CHECKSUM_CHECK_ICMP
  91951. IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_CHECK_ICMP) {
  91952. if (inet_chksum_pbuf(p) != 0) {
  91953. 802545a: 6878 ldr r0, [r7, #4]
  91954. 802545c: f7f4 fac1 bl 80199e2 <inet_chksum_pbuf>
  91955. 8025460: 4603 mov r3, r0
  91956. 8025462: 2b00 cmp r3, #0
  91957. 8025464: d003 beq.n 802546e <icmp_input+0x9e>
  91958. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: checksum failed for received ICMP echo\n"));
  91959. pbuf_free(p);
  91960. 8025466: 6878 ldr r0, [r7, #4]
  91961. 8025468: f7f5 ff00 bl 801b26c <pbuf_free>
  91962. ICMP_STATS_INC(icmp.chkerr);
  91963. MIB2_STATS_INC(mib2.icmpinerrors);
  91964. return;
  91965. 802546c: e0c5 b.n 80255fa <icmp_input+0x22a>
  91966. }
  91967. }
  91968. #endif
  91969. #if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN
  91970. if (pbuf_add_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) {
  91971. 802546e: 8c7b ldrh r3, [r7, #34] @ 0x22
  91972. 8025470: 330e adds r3, #14
  91973. 8025472: 4619 mov r1, r3
  91974. 8025474: 6878 ldr r0, [r7, #4]
  91975. 8025476: f7f5 fe31 bl 801b0dc <pbuf_add_header>
  91976. 802547a: 4603 mov r3, r0
  91977. 802547c: 2b00 cmp r3, #0
  91978. 802547e: d04b beq.n 8025518 <icmp_input+0x148>
  91979. /* p is not big enough to contain link headers
  91980. * allocate a new one and copy p into it
  91981. */
  91982. struct pbuf *r;
  91983. u16_t alloc_len = (u16_t)(p->tot_len + hlen);
  91984. 8025480: 687b ldr r3, [r7, #4]
  91985. 8025482: 891a ldrh r2, [r3, #8]
  91986. 8025484: 8c7b ldrh r3, [r7, #34] @ 0x22
  91987. 8025486: 4413 add r3, r2
  91988. 8025488: 837b strh r3, [r7, #26]
  91989. if (alloc_len < p->tot_len) {
  91990. 802548a: 687b ldr r3, [r7, #4]
  91991. 802548c: 891b ldrh r3, [r3, #8]
  91992. 802548e: 8b7a ldrh r2, [r7, #26]
  91993. 8025490: 429a cmp r2, r3
  91994. 8025492: f0c0 80ab bcc.w 80255ec <icmp_input+0x21c>
  91995. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed (tot_len overflow)\n"));
  91996. goto icmperr;
  91997. }
  91998. /* allocate new packet buffer with space for link headers */
  91999. r = pbuf_alloc(PBUF_LINK, alloc_len, PBUF_RAM);
  92000. 8025496: 8b7b ldrh r3, [r7, #26]
  92001. 8025498: f44f 7220 mov.w r2, #640 @ 0x280
  92002. 802549c: 4619 mov r1, r3
  92003. 802549e: 200e movs r0, #14
  92004. 80254a0: f7f5 fbce bl 801ac40 <pbuf_alloc>
  92005. 80254a4: 6178 str r0, [r7, #20]
  92006. if (r == NULL) {
  92007. 80254a6: 697b ldr r3, [r7, #20]
  92008. 80254a8: 2b00 cmp r3, #0
  92009. 80254aa: f000 80a1 beq.w 80255f0 <icmp_input+0x220>
  92010. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed\n"));
  92011. goto icmperr;
  92012. }
  92013. if (r->len < hlen + sizeof(struct icmp_echo_hdr)) {
  92014. 80254ae: 697b ldr r3, [r7, #20]
  92015. 80254b0: 895b ldrh r3, [r3, #10]
  92016. 80254b2: 461a mov r2, r3
  92017. 80254b4: 8c7b ldrh r3, [r7, #34] @ 0x22
  92018. 80254b6: 3308 adds r3, #8
  92019. 80254b8: 429a cmp r2, r3
  92020. 80254ba: d203 bcs.n 80254c4 <icmp_input+0xf4>
  92021. LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("first pbuf cannot hold the ICMP header"));
  92022. pbuf_free(r);
  92023. 80254bc: 6978 ldr r0, [r7, #20]
  92024. 80254be: f7f5 fed5 bl 801b26c <pbuf_free>
  92025. goto icmperr;
  92026. 80254c2: e096 b.n 80255f2 <icmp_input+0x222>
  92027. }
  92028. /* copy the ip header */
  92029. MEMCPY(r->payload, iphdr_in, hlen);
  92030. 80254c4: 697b ldr r3, [r7, #20]
  92031. 80254c6: 685b ldr r3, [r3, #4]
  92032. 80254c8: 8c7a ldrh r2, [r7, #34] @ 0x22
  92033. 80254ca: 6a79 ldr r1, [r7, #36] @ 0x24
  92034. 80254cc: 4618 mov r0, r3
  92035. 80254ce: f005 fbce bl 802ac6e <memcpy>
  92036. /* switch r->payload back to icmp header (cannot fail) */
  92037. if (pbuf_remove_header(r, hlen)) {
  92038. 80254d2: 8c7b ldrh r3, [r7, #34] @ 0x22
  92039. 80254d4: 4619 mov r1, r3
  92040. 80254d6: 6978 ldr r0, [r7, #20]
  92041. 80254d8: f7f5 fe10 bl 801b0fc <pbuf_remove_header>
  92042. 80254dc: 4603 mov r3, r0
  92043. 80254de: 2b00 cmp r3, #0
  92044. 80254e0: d009 beq.n 80254f6 <icmp_input+0x126>
  92045. LWIP_ASSERT("icmp_input: moving r->payload to icmp header failed\n", 0);
  92046. 80254e2: 4b49 ldr r3, [pc, #292] @ (8025608 <icmp_input+0x238>)
  92047. 80254e4: 22b6 movs r2, #182 @ 0xb6
  92048. 80254e6: 4949 ldr r1, [pc, #292] @ (802560c <icmp_input+0x23c>)
  92049. 80254e8: 4849 ldr r0, [pc, #292] @ (8025610 <icmp_input+0x240>)
  92050. 80254ea: f005 f937 bl 802a75c <iprintf>
  92051. pbuf_free(r);
  92052. 80254ee: 6978 ldr r0, [r7, #20]
  92053. 80254f0: f7f5 febc bl 801b26c <pbuf_free>
  92054. goto icmperr;
  92055. 80254f4: e07d b.n 80255f2 <icmp_input+0x222>
  92056. }
  92057. /* copy the rest of the packet without ip header */
  92058. if (pbuf_copy(r, p) != ERR_OK) {
  92059. 80254f6: 6879 ldr r1, [r7, #4]
  92060. 80254f8: 6978 ldr r0, [r7, #20]
  92061. 80254fa: f7f5 ffeb bl 801b4d4 <pbuf_copy>
  92062. 80254fe: 4603 mov r3, r0
  92063. 8025500: 2b00 cmp r3, #0
  92064. 8025502: d003 beq.n 802550c <icmp_input+0x13c>
  92065. LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("icmp_input: copying to new pbuf failed"));
  92066. pbuf_free(r);
  92067. 8025504: 6978 ldr r0, [r7, #20]
  92068. 8025506: f7f5 feb1 bl 801b26c <pbuf_free>
  92069. goto icmperr;
  92070. 802550a: e072 b.n 80255f2 <icmp_input+0x222>
  92071. }
  92072. /* free the original p */
  92073. pbuf_free(p);
  92074. 802550c: 6878 ldr r0, [r7, #4]
  92075. 802550e: f7f5 fead bl 801b26c <pbuf_free>
  92076. /* we now have an identical copy of p that has room for link headers */
  92077. p = r;
  92078. 8025512: 697b ldr r3, [r7, #20]
  92079. 8025514: 607b str r3, [r7, #4]
  92080. 8025516: e00f b.n 8025538 <icmp_input+0x168>
  92081. } else {
  92082. /* restore p->payload to point to icmp header (cannot fail) */
  92083. if (pbuf_remove_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) {
  92084. 8025518: 8c7b ldrh r3, [r7, #34] @ 0x22
  92085. 802551a: 330e adds r3, #14
  92086. 802551c: 4619 mov r1, r3
  92087. 802551e: 6878 ldr r0, [r7, #4]
  92088. 8025520: f7f5 fdec bl 801b0fc <pbuf_remove_header>
  92089. 8025524: 4603 mov r3, r0
  92090. 8025526: 2b00 cmp r3, #0
  92091. 8025528: d006 beq.n 8025538 <icmp_input+0x168>
  92092. LWIP_ASSERT("icmp_input: restoring original p->payload failed\n", 0);
  92093. 802552a: 4b37 ldr r3, [pc, #220] @ (8025608 <icmp_input+0x238>)
  92094. 802552c: 22c7 movs r2, #199 @ 0xc7
  92095. 802552e: 4939 ldr r1, [pc, #228] @ (8025614 <icmp_input+0x244>)
  92096. 8025530: 4837 ldr r0, [pc, #220] @ (8025610 <icmp_input+0x240>)
  92097. 8025532: f005 f913 bl 802a75c <iprintf>
  92098. goto icmperr;
  92099. 8025536: e05c b.n 80255f2 <icmp_input+0x222>
  92100. }
  92101. #endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN */
  92102. /* At this point, all checks are OK. */
  92103. /* We generate an answer by switching the dest and src ip addresses,
  92104. * setting the icmp type to ECHO_RESPONSE and updating the checksum. */
  92105. iecho = (struct icmp_echo_hdr *)p->payload;
  92106. 8025538: 687b ldr r3, [r7, #4]
  92107. 802553a: 685b ldr r3, [r3, #4]
  92108. 802553c: 613b str r3, [r7, #16]
  92109. if (pbuf_add_header(p, hlen)) {
  92110. 802553e: 8c7b ldrh r3, [r7, #34] @ 0x22
  92111. 8025540: 4619 mov r1, r3
  92112. 8025542: 6878 ldr r0, [r7, #4]
  92113. 8025544: f7f5 fdca bl 801b0dc <pbuf_add_header>
  92114. 8025548: 4603 mov r3, r0
  92115. 802554a: 2b00 cmp r3, #0
  92116. 802554c: d13c bne.n 80255c8 <icmp_input+0x1f8>
  92117. LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("Can't move over header in packet"));
  92118. } else {
  92119. err_t ret;
  92120. struct ip_hdr *iphdr = (struct ip_hdr *)p->payload;
  92121. 802554e: 687b ldr r3, [r7, #4]
  92122. 8025550: 685b ldr r3, [r3, #4]
  92123. 8025552: 60fb str r3, [r7, #12]
  92124. ip4_addr_copy(iphdr->src, *src);
  92125. 8025554: 69fb ldr r3, [r7, #28]
  92126. 8025556: 681a ldr r2, [r3, #0]
  92127. 8025558: 68fb ldr r3, [r7, #12]
  92128. 802555a: 60da str r2, [r3, #12]
  92129. ip4_addr_copy(iphdr->dest, *ip4_current_src_addr());
  92130. 802555c: 4b28 ldr r3, [pc, #160] @ (8025600 <icmp_input+0x230>)
  92131. 802555e: 691a ldr r2, [r3, #16]
  92132. 8025560: 68fb ldr r3, [r7, #12]
  92133. 8025562: 611a str r2, [r3, #16]
  92134. ICMPH_TYPE_SET(iecho, ICMP_ER);
  92135. 8025564: 693b ldr r3, [r7, #16]
  92136. 8025566: 2200 movs r2, #0
  92137. 8025568: 701a strb r2, [r3, #0]
  92138. #if CHECKSUM_GEN_ICMP
  92139. IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_GEN_ICMP) {
  92140. /* adjust the checksum */
  92141. if (iecho->chksum > PP_HTONS(0xffffU - (ICMP_ECHO << 8))) {
  92142. 802556a: 693b ldr r3, [r7, #16]
  92143. 802556c: 885b ldrh r3, [r3, #2]
  92144. 802556e: b29b uxth r3, r3
  92145. 8025570: f64f 72f7 movw r2, #65527 @ 0xfff7
  92146. 8025574: 4293 cmp r3, r2
  92147. 8025576: d907 bls.n 8025588 <icmp_input+0x1b8>
  92148. iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS((u16_t)(ICMP_ECHO << 8)) + 1);
  92149. 8025578: 693b ldr r3, [r7, #16]
  92150. 802557a: 885b ldrh r3, [r3, #2]
  92151. 802557c: b29b uxth r3, r3
  92152. 802557e: 3309 adds r3, #9
  92153. 8025580: b29a uxth r2, r3
  92154. 8025582: 693b ldr r3, [r7, #16]
  92155. 8025584: 805a strh r2, [r3, #2]
  92156. 8025586: e006 b.n 8025596 <icmp_input+0x1c6>
  92157. } else {
  92158. iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS(ICMP_ECHO << 8));
  92159. 8025588: 693b ldr r3, [r7, #16]
  92160. 802558a: 885b ldrh r3, [r3, #2]
  92161. 802558c: b29b uxth r3, r3
  92162. 802558e: 3308 adds r3, #8
  92163. 8025590: b29a uxth r2, r3
  92164. 8025592: 693b ldr r3, [r7, #16]
  92165. 8025594: 805a strh r2, [r3, #2]
  92166. #else /* CHECKSUM_GEN_ICMP */
  92167. iecho->chksum = 0;
  92168. #endif /* CHECKSUM_GEN_ICMP */
  92169. /* Set the correct TTL and recalculate the header checksum. */
  92170. IPH_TTL_SET(iphdr, ICMP_TTL);
  92171. 8025596: 68fb ldr r3, [r7, #12]
  92172. 8025598: 22ff movs r2, #255 @ 0xff
  92173. 802559a: 721a strb r2, [r3, #8]
  92174. IPH_CHKSUM_SET(iphdr, 0);
  92175. 802559c: 68fb ldr r3, [r7, #12]
  92176. 802559e: 2200 movs r2, #0
  92177. 80255a0: 729a strb r2, [r3, #10]
  92178. 80255a2: 2200 movs r2, #0
  92179. 80255a4: 72da strb r2, [r3, #11]
  92180. MIB2_STATS_INC(mib2.icmpoutmsgs);
  92181. /* increase number of echo replies attempted to send */
  92182. MIB2_STATS_INC(mib2.icmpoutechoreps);
  92183. /* send an ICMP packet */
  92184. ret = ip4_output_if(p, src, LWIP_IP_HDRINCL,
  92185. 80255a6: 683b ldr r3, [r7, #0]
  92186. 80255a8: 9302 str r3, [sp, #8]
  92187. 80255aa: 2301 movs r3, #1
  92188. 80255ac: 9301 str r3, [sp, #4]
  92189. 80255ae: 2300 movs r3, #0
  92190. 80255b0: 9300 str r3, [sp, #0]
  92191. 80255b2: 23ff movs r3, #255 @ 0xff
  92192. 80255b4: 2200 movs r2, #0
  92193. 80255b6: 69f9 ldr r1, [r7, #28]
  92194. 80255b8: 6878 ldr r0, [r7, #4]
  92195. 80255ba: f000 fa9f bl 8025afc <ip4_output_if>
  92196. 80255be: 4603 mov r3, r0
  92197. 80255c0: 72fb strb r3, [r7, #11]
  92198. ICMP_TTL, 0, IP_PROTO_ICMP, inp);
  92199. if (ret != ERR_OK) {
  92200. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ip_output_if returned an error: %s\n", lwip_strerr(ret)));
  92201. }
  92202. }
  92203. break;
  92204. 80255c2: e001 b.n 80255c8 <icmp_input+0x1f8>
  92205. break;
  92206. 80255c4: bf00 nop
  92207. 80255c6: e000 b.n 80255ca <icmp_input+0x1fa>
  92208. break;
  92209. 80255c8: bf00 nop
  92210. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ICMP type %"S16_F" code %"S16_F" not supported.\n",
  92211. (s16_t)type, (s16_t)code));
  92212. ICMP_STATS_INC(icmp.proterr);
  92213. ICMP_STATS_INC(icmp.drop);
  92214. }
  92215. pbuf_free(p);
  92216. 80255ca: 6878 ldr r0, [r7, #4]
  92217. 80255cc: f7f5 fe4e bl 801b26c <pbuf_free>
  92218. return;
  92219. 80255d0: e013 b.n 80255fa <icmp_input+0x22a>
  92220. goto lenerr;
  92221. 80255d2: bf00 nop
  92222. 80255d4: e002 b.n 80255dc <icmp_input+0x20c>
  92223. goto lenerr;
  92224. 80255d6: bf00 nop
  92225. 80255d8: e000 b.n 80255dc <icmp_input+0x20c>
  92226. goto lenerr;
  92227. 80255da: bf00 nop
  92228. lenerr:
  92229. pbuf_free(p);
  92230. 80255dc: 6878 ldr r0, [r7, #4]
  92231. 80255de: f7f5 fe45 bl 801b26c <pbuf_free>
  92232. ICMP_STATS_INC(icmp.lenerr);
  92233. MIB2_STATS_INC(mib2.icmpinerrors);
  92234. return;
  92235. 80255e2: e00a b.n 80255fa <icmp_input+0x22a>
  92236. goto icmperr;
  92237. 80255e4: bf00 nop
  92238. 80255e6: e004 b.n 80255f2 <icmp_input+0x222>
  92239. goto icmperr;
  92240. 80255e8: bf00 nop
  92241. 80255ea: e002 b.n 80255f2 <icmp_input+0x222>
  92242. goto icmperr;
  92243. 80255ec: bf00 nop
  92244. 80255ee: e000 b.n 80255f2 <icmp_input+0x222>
  92245. goto icmperr;
  92246. 80255f0: bf00 nop
  92247. #if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING
  92248. icmperr:
  92249. pbuf_free(p);
  92250. 80255f2: 6878 ldr r0, [r7, #4]
  92251. 80255f4: f7f5 fe3a bl 801b26c <pbuf_free>
  92252. ICMP_STATS_INC(icmp.err);
  92253. MIB2_STATS_INC(mib2.icmpinerrors);
  92254. return;
  92255. 80255f8: bf00 nop
  92256. #endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING */
  92257. }
  92258. 80255fa: 3728 adds r7, #40 @ 0x28
  92259. 80255fc: 46bd mov sp, r7
  92260. 80255fe: bd80 pop {r7, pc}
  92261. 8025600: 24024418 .word 0x24024418
  92262. 8025604: 2402442c .word 0x2402442c
  92263. 8025608: 08031350 .word 0x08031350
  92264. 802560c: 08031388 .word 0x08031388
  92265. 8025610: 080313c0 .word 0x080313c0
  92266. 8025614: 080313e8 .word 0x080313e8
  92267. 08025618 <icmp_dest_unreach>:
  92268. * p->payload pointing to the IP header
  92269. * @param t type of the 'unreachable' packet
  92270. */
  92271. void
  92272. icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t)
  92273. {
  92274. 8025618: b580 push {r7, lr}
  92275. 802561a: b082 sub sp, #8
  92276. 802561c: af00 add r7, sp, #0
  92277. 802561e: 6078 str r0, [r7, #4]
  92278. 8025620: 460b mov r3, r1
  92279. 8025622: 70fb strb r3, [r7, #3]
  92280. MIB2_STATS_INC(mib2.icmpoutdestunreachs);
  92281. icmp_send_response(p, ICMP_DUR, t);
  92282. 8025624: 78fb ldrb r3, [r7, #3]
  92283. 8025626: 461a mov r2, r3
  92284. 8025628: 2103 movs r1, #3
  92285. 802562a: 6878 ldr r0, [r7, #4]
  92286. 802562c: f000 f814 bl 8025658 <icmp_send_response>
  92287. }
  92288. 8025630: bf00 nop
  92289. 8025632: 3708 adds r7, #8
  92290. 8025634: 46bd mov sp, r7
  92291. 8025636: bd80 pop {r7, pc}
  92292. 08025638 <icmp_time_exceeded>:
  92293. * p->payload pointing to the IP header
  92294. * @param t type of the 'time exceeded' packet
  92295. */
  92296. void
  92297. icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t)
  92298. {
  92299. 8025638: b580 push {r7, lr}
  92300. 802563a: b082 sub sp, #8
  92301. 802563c: af00 add r7, sp, #0
  92302. 802563e: 6078 str r0, [r7, #4]
  92303. 8025640: 460b mov r3, r1
  92304. 8025642: 70fb strb r3, [r7, #3]
  92305. MIB2_STATS_INC(mib2.icmpouttimeexcds);
  92306. icmp_send_response(p, ICMP_TE, t);
  92307. 8025644: 78fb ldrb r3, [r7, #3]
  92308. 8025646: 461a mov r2, r3
  92309. 8025648: 210b movs r1, #11
  92310. 802564a: 6878 ldr r0, [r7, #4]
  92311. 802564c: f000 f804 bl 8025658 <icmp_send_response>
  92312. }
  92313. 8025650: bf00 nop
  92314. 8025652: 3708 adds r7, #8
  92315. 8025654: 46bd mov sp, r7
  92316. 8025656: bd80 pop {r7, pc}
  92317. 08025658 <icmp_send_response>:
  92318. * @param type Type of the ICMP header
  92319. * @param code Code of the ICMP header
  92320. */
  92321. static void
  92322. icmp_send_response(struct pbuf *p, u8_t type, u8_t code)
  92323. {
  92324. 8025658: b580 push {r7, lr}
  92325. 802565a: b08c sub sp, #48 @ 0x30
  92326. 802565c: af04 add r7, sp, #16
  92327. 802565e: 6078 str r0, [r7, #4]
  92328. 8025660: 460b mov r3, r1
  92329. 8025662: 70fb strb r3, [r7, #3]
  92330. 8025664: 4613 mov r3, r2
  92331. 8025666: 70bb strb r3, [r7, #2]
  92332. /* increase number of messages attempted to send */
  92333. MIB2_STATS_INC(mib2.icmpoutmsgs);
  92334. /* ICMP header + IP header + 8 bytes of data */
  92335. q = pbuf_alloc(PBUF_IP, sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE,
  92336. 8025668: f44f 7220 mov.w r2, #640 @ 0x280
  92337. 802566c: 2124 movs r1, #36 @ 0x24
  92338. 802566e: 2022 movs r0, #34 @ 0x22
  92339. 8025670: f7f5 fae6 bl 801ac40 <pbuf_alloc>
  92340. 8025674: 61b8 str r0, [r7, #24]
  92341. PBUF_RAM);
  92342. if (q == NULL) {
  92343. 8025676: 69bb ldr r3, [r7, #24]
  92344. 8025678: 2b00 cmp r3, #0
  92345. 802567a: d056 beq.n 802572a <icmp_send_response+0xd2>
  92346. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_time_exceeded: failed to allocate pbuf for ICMP packet.\n"));
  92347. MIB2_STATS_INC(mib2.icmpouterrors);
  92348. return;
  92349. }
  92350. LWIP_ASSERT("check that first pbuf can hold icmp message",
  92351. 802567c: 69bb ldr r3, [r7, #24]
  92352. 802567e: 895b ldrh r3, [r3, #10]
  92353. 8025680: 2b23 cmp r3, #35 @ 0x23
  92354. 8025682: d806 bhi.n 8025692 <icmp_send_response+0x3a>
  92355. 8025684: 4b2b ldr r3, [pc, #172] @ (8025734 <icmp_send_response+0xdc>)
  92356. 8025686: f44f 72b4 mov.w r2, #360 @ 0x168
  92357. 802568a: 492b ldr r1, [pc, #172] @ (8025738 <icmp_send_response+0xe0>)
  92358. 802568c: 482b ldr r0, [pc, #172] @ (802573c <icmp_send_response+0xe4>)
  92359. 802568e: f005 f865 bl 802a75c <iprintf>
  92360. (q->len >= (sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE)));
  92361. iphdr = (struct ip_hdr *)p->payload;
  92362. 8025692: 687b ldr r3, [r7, #4]
  92363. 8025694: 685b ldr r3, [r3, #4]
  92364. 8025696: 617b str r3, [r7, #20]
  92365. ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->src);
  92366. LWIP_DEBUGF(ICMP_DEBUG, (" to "));
  92367. ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->dest);
  92368. LWIP_DEBUGF(ICMP_DEBUG, ("\n"));
  92369. icmphdr = (struct icmp_echo_hdr *)q->payload;
  92370. 8025698: 69bb ldr r3, [r7, #24]
  92371. 802569a: 685b ldr r3, [r3, #4]
  92372. 802569c: 613b str r3, [r7, #16]
  92373. icmphdr->type = type;
  92374. 802569e: 693b ldr r3, [r7, #16]
  92375. 80256a0: 78fa ldrb r2, [r7, #3]
  92376. 80256a2: 701a strb r2, [r3, #0]
  92377. icmphdr->code = code;
  92378. 80256a4: 693b ldr r3, [r7, #16]
  92379. 80256a6: 78ba ldrb r2, [r7, #2]
  92380. 80256a8: 705a strb r2, [r3, #1]
  92381. icmphdr->id = 0;
  92382. 80256aa: 693b ldr r3, [r7, #16]
  92383. 80256ac: 2200 movs r2, #0
  92384. 80256ae: 711a strb r2, [r3, #4]
  92385. 80256b0: 2200 movs r2, #0
  92386. 80256b2: 715a strb r2, [r3, #5]
  92387. icmphdr->seqno = 0;
  92388. 80256b4: 693b ldr r3, [r7, #16]
  92389. 80256b6: 2200 movs r2, #0
  92390. 80256b8: 719a strb r2, [r3, #6]
  92391. 80256ba: 2200 movs r2, #0
  92392. 80256bc: 71da strb r2, [r3, #7]
  92393. /* copy fields from original packet */
  92394. SMEMCPY((u8_t *)q->payload + sizeof(struct icmp_echo_hdr), (u8_t *)p->payload,
  92395. 80256be: 69bb ldr r3, [r7, #24]
  92396. 80256c0: 685b ldr r3, [r3, #4]
  92397. 80256c2: f103 0008 add.w r0, r3, #8
  92398. 80256c6: 687b ldr r3, [r7, #4]
  92399. 80256c8: 685b ldr r3, [r3, #4]
  92400. 80256ca: 221c movs r2, #28
  92401. 80256cc: 4619 mov r1, r3
  92402. 80256ce: f005 face bl 802ac6e <memcpy>
  92403. IP_HLEN + ICMP_DEST_UNREACH_DATASIZE);
  92404. ip4_addr_copy(iphdr_src, iphdr->src);
  92405. 80256d2: 697b ldr r3, [r7, #20]
  92406. 80256d4: 68db ldr r3, [r3, #12]
  92407. 80256d6: 60fb str r3, [r7, #12]
  92408. ip4_addr_t iphdr_dst;
  92409. ip4_addr_copy(iphdr_dst, iphdr->dest);
  92410. netif = ip4_route_src(&iphdr_dst, &iphdr_src);
  92411. }
  92412. #else
  92413. netif = ip4_route(&iphdr_src);
  92414. 80256d8: f107 030c add.w r3, r7, #12
  92415. 80256dc: 4618 mov r0, r3
  92416. 80256de: f000 f82f bl 8025740 <ip4_route>
  92417. 80256e2: 61f8 str r0, [r7, #28]
  92418. #endif
  92419. if (netif != NULL) {
  92420. 80256e4: 69fb ldr r3, [r7, #28]
  92421. 80256e6: 2b00 cmp r3, #0
  92422. 80256e8: d01b beq.n 8025722 <icmp_send_response+0xca>
  92423. /* calculate checksum */
  92424. icmphdr->chksum = 0;
  92425. 80256ea: 693b ldr r3, [r7, #16]
  92426. 80256ec: 2200 movs r2, #0
  92427. 80256ee: 709a strb r2, [r3, #2]
  92428. 80256f0: 2200 movs r2, #0
  92429. 80256f2: 70da strb r2, [r3, #3]
  92430. #if CHECKSUM_GEN_ICMP
  92431. IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_ICMP) {
  92432. icmphdr->chksum = inet_chksum(icmphdr, q->len);
  92433. 80256f4: 69bb ldr r3, [r7, #24]
  92434. 80256f6: 895b ldrh r3, [r3, #10]
  92435. 80256f8: 4619 mov r1, r3
  92436. 80256fa: 6938 ldr r0, [r7, #16]
  92437. 80256fc: f7f4 f95f bl 80199be <inet_chksum>
  92438. 8025700: 4603 mov r3, r0
  92439. 8025702: 461a mov r2, r3
  92440. 8025704: 693b ldr r3, [r7, #16]
  92441. 8025706: 805a strh r2, [r3, #2]
  92442. }
  92443. #endif
  92444. ICMP_STATS_INC(icmp.xmit);
  92445. ip4_output_if(q, NULL, &iphdr_src, ICMP_TTL, 0, IP_PROTO_ICMP, netif);
  92446. 8025708: f107 020c add.w r2, r7, #12
  92447. 802570c: 69fb ldr r3, [r7, #28]
  92448. 802570e: 9302 str r3, [sp, #8]
  92449. 8025710: 2301 movs r3, #1
  92450. 8025712: 9301 str r3, [sp, #4]
  92451. 8025714: 2300 movs r3, #0
  92452. 8025716: 9300 str r3, [sp, #0]
  92453. 8025718: 23ff movs r3, #255 @ 0xff
  92454. 802571a: 2100 movs r1, #0
  92455. 802571c: 69b8 ldr r0, [r7, #24]
  92456. 802571e: f000 f9ed bl 8025afc <ip4_output_if>
  92457. }
  92458. pbuf_free(q);
  92459. 8025722: 69b8 ldr r0, [r7, #24]
  92460. 8025724: f7f5 fda2 bl 801b26c <pbuf_free>
  92461. 8025728: e000 b.n 802572c <icmp_send_response+0xd4>
  92462. return;
  92463. 802572a: bf00 nop
  92464. }
  92465. 802572c: 3720 adds r7, #32
  92466. 802572e: 46bd mov sp, r7
  92467. 8025730: bd80 pop {r7, pc}
  92468. 8025732: bf00 nop
  92469. 8025734: 08031350 .word 0x08031350
  92470. 8025738: 0803141c .word 0x0803141c
  92471. 802573c: 080313c0 .word 0x080313c0
  92472. 08025740 <ip4_route>:
  92473. * @param dest the destination IP address for which to find the route
  92474. * @return the netif on which to send to reach dest
  92475. */
  92476. struct netif *
  92477. ip4_route(const ip4_addr_t *dest)
  92478. {
  92479. 8025740: b580 push {r7, lr}
  92480. 8025742: b084 sub sp, #16
  92481. 8025744: af00 add r7, sp, #0
  92482. 8025746: 6078 str r0, [r7, #4]
  92483. #if !LWIP_SINGLE_NETIF
  92484. struct netif *netif;
  92485. LWIP_ASSERT_CORE_LOCKED();
  92486. 8025748: f7eb fbda bl 8010f00 <sys_check_core_locking>
  92487. /* bug #54569: in case LWIP_SINGLE_NETIF=1 and LWIP_DEBUGF() disabled, the following loop is optimized away */
  92488. LWIP_UNUSED_ARG(dest);
  92489. /* iterate through netifs */
  92490. NETIF_FOREACH(netif) {
  92491. 802574c: 4b32 ldr r3, [pc, #200] @ (8025818 <ip4_route+0xd8>)
  92492. 802574e: 681b ldr r3, [r3, #0]
  92493. 8025750: 60fb str r3, [r7, #12]
  92494. 8025752: e036 b.n 80257c2 <ip4_route+0x82>
  92495. /* is the netif up, does it have a link and a valid address? */
  92496. if (netif_is_up(netif) && netif_is_link_up(netif) && !ip4_addr_isany_val(*netif_ip4_addr(netif))) {
  92497. 8025754: 68fb ldr r3, [r7, #12]
  92498. 8025756: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  92499. 802575a: f003 0301 and.w r3, r3, #1
  92500. 802575e: b2db uxtb r3, r3
  92501. 8025760: 2b00 cmp r3, #0
  92502. 8025762: d02b beq.n 80257bc <ip4_route+0x7c>
  92503. 8025764: 68fb ldr r3, [r7, #12]
  92504. 8025766: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  92505. 802576a: 089b lsrs r3, r3, #2
  92506. 802576c: f003 0301 and.w r3, r3, #1
  92507. 8025770: b2db uxtb r3, r3
  92508. 8025772: 2b00 cmp r3, #0
  92509. 8025774: d022 beq.n 80257bc <ip4_route+0x7c>
  92510. 8025776: 68fb ldr r3, [r7, #12]
  92511. 8025778: 3304 adds r3, #4
  92512. 802577a: 681b ldr r3, [r3, #0]
  92513. 802577c: 2b00 cmp r3, #0
  92514. 802577e: d01d beq.n 80257bc <ip4_route+0x7c>
  92515. /* network mask matches? */
  92516. if (ip4_addr_netcmp(dest, netif_ip4_addr(netif), netif_ip4_netmask(netif))) {
  92517. 8025780: 687b ldr r3, [r7, #4]
  92518. 8025782: 681a ldr r2, [r3, #0]
  92519. 8025784: 68fb ldr r3, [r7, #12]
  92520. 8025786: 3304 adds r3, #4
  92521. 8025788: 681b ldr r3, [r3, #0]
  92522. 802578a: 405a eors r2, r3
  92523. 802578c: 68fb ldr r3, [r7, #12]
  92524. 802578e: 3308 adds r3, #8
  92525. 8025790: 681b ldr r3, [r3, #0]
  92526. 8025792: 4013 ands r3, r2
  92527. 8025794: 2b00 cmp r3, #0
  92528. 8025796: d101 bne.n 802579c <ip4_route+0x5c>
  92529. /* return netif on which to forward IP packet */
  92530. return netif;
  92531. 8025798: 68fb ldr r3, [r7, #12]
  92532. 802579a: e038 b.n 802580e <ip4_route+0xce>
  92533. }
  92534. /* gateway matches on a non broadcast interface? (i.e. peer in a point to point interface) */
  92535. if (((netif->flags & NETIF_FLAG_BROADCAST) == 0) && ip4_addr_cmp(dest, netif_ip4_gw(netif))) {
  92536. 802579c: 68fb ldr r3, [r7, #12]
  92537. 802579e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  92538. 80257a2: f003 0302 and.w r3, r3, #2
  92539. 80257a6: 2b00 cmp r3, #0
  92540. 80257a8: d108 bne.n 80257bc <ip4_route+0x7c>
  92541. 80257aa: 687b ldr r3, [r7, #4]
  92542. 80257ac: 681a ldr r2, [r3, #0]
  92543. 80257ae: 68fb ldr r3, [r7, #12]
  92544. 80257b0: 330c adds r3, #12
  92545. 80257b2: 681b ldr r3, [r3, #0]
  92546. 80257b4: 429a cmp r2, r3
  92547. 80257b6: d101 bne.n 80257bc <ip4_route+0x7c>
  92548. /* return netif on which to forward IP packet */
  92549. return netif;
  92550. 80257b8: 68fb ldr r3, [r7, #12]
  92551. 80257ba: e028 b.n 802580e <ip4_route+0xce>
  92552. NETIF_FOREACH(netif) {
  92553. 80257bc: 68fb ldr r3, [r7, #12]
  92554. 80257be: 681b ldr r3, [r3, #0]
  92555. 80257c0: 60fb str r3, [r7, #12]
  92556. 80257c2: 68fb ldr r3, [r7, #12]
  92557. 80257c4: 2b00 cmp r3, #0
  92558. 80257c6: d1c5 bne.n 8025754 <ip4_route+0x14>
  92559. return netif;
  92560. }
  92561. #endif
  92562. #endif /* !LWIP_SINGLE_NETIF */
  92563. if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) ||
  92564. 80257c8: 4b14 ldr r3, [pc, #80] @ (802581c <ip4_route+0xdc>)
  92565. 80257ca: 681b ldr r3, [r3, #0]
  92566. 80257cc: 2b00 cmp r3, #0
  92567. 80257ce: d01a beq.n 8025806 <ip4_route+0xc6>
  92568. 80257d0: 4b12 ldr r3, [pc, #72] @ (802581c <ip4_route+0xdc>)
  92569. 80257d2: 681b ldr r3, [r3, #0]
  92570. 80257d4: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  92571. 80257d8: f003 0301 and.w r3, r3, #1
  92572. 80257dc: 2b00 cmp r3, #0
  92573. 80257de: d012 beq.n 8025806 <ip4_route+0xc6>
  92574. 80257e0: 4b0e ldr r3, [pc, #56] @ (802581c <ip4_route+0xdc>)
  92575. 80257e2: 681b ldr r3, [r3, #0]
  92576. 80257e4: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  92577. 80257e8: f003 0304 and.w r3, r3, #4
  92578. 80257ec: 2b00 cmp r3, #0
  92579. 80257ee: d00a beq.n 8025806 <ip4_route+0xc6>
  92580. ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) {
  92581. 80257f0: 4b0a ldr r3, [pc, #40] @ (802581c <ip4_route+0xdc>)
  92582. 80257f2: 681b ldr r3, [r3, #0]
  92583. 80257f4: 3304 adds r3, #4
  92584. 80257f6: 681b ldr r3, [r3, #0]
  92585. if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) ||
  92586. 80257f8: 2b00 cmp r3, #0
  92587. 80257fa: d004 beq.n 8025806 <ip4_route+0xc6>
  92588. ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) {
  92589. 80257fc: 687b ldr r3, [r7, #4]
  92590. 80257fe: 681b ldr r3, [r3, #0]
  92591. 8025800: b2db uxtb r3, r3
  92592. 8025802: 2b7f cmp r3, #127 @ 0x7f
  92593. 8025804: d101 bne.n 802580a <ip4_route+0xca>
  92594. If this is not good enough for you, use LWIP_HOOK_IP4_ROUTE() */
  92595. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_route: No route to %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n",
  92596. ip4_addr1_16(dest), ip4_addr2_16(dest), ip4_addr3_16(dest), ip4_addr4_16(dest)));
  92597. IP_STATS_INC(ip.rterr);
  92598. MIB2_STATS_INC(mib2.ipoutnoroutes);
  92599. return NULL;
  92600. 8025806: 2300 movs r3, #0
  92601. 8025808: e001 b.n 802580e <ip4_route+0xce>
  92602. }
  92603. return netif_default;
  92604. 802580a: 4b04 ldr r3, [pc, #16] @ (802581c <ip4_route+0xdc>)
  92605. 802580c: 681b ldr r3, [r3, #0]
  92606. }
  92607. 802580e: 4618 mov r0, r3
  92608. 8025810: 3710 adds r7, #16
  92609. 8025812: 46bd mov sp, r7
  92610. 8025814: bd80 pop {r7, pc}
  92611. 8025816: bf00 nop
  92612. 8025818: 2402af5c .word 0x2402af5c
  92613. 802581c: 2402af60 .word 0x2402af60
  92614. 08025820 <ip4_input_accept>:
  92615. #endif /* IP_FORWARD */
  92616. /** Return true if the current input packet should be accepted on this netif */
  92617. static int
  92618. ip4_input_accept(struct netif *netif)
  92619. {
  92620. 8025820: b580 push {r7, lr}
  92621. 8025822: b082 sub sp, #8
  92622. 8025824: af00 add r7, sp, #0
  92623. 8025826: 6078 str r0, [r7, #4]
  92624. ip4_addr_get_u32(ip4_current_dest_addr()) & ip4_addr_get_u32(netif_ip4_netmask(netif)),
  92625. ip4_addr_get_u32(netif_ip4_addr(netif)) & ip4_addr_get_u32(netif_ip4_netmask(netif)),
  92626. ip4_addr_get_u32(ip4_current_dest_addr()) & ~ip4_addr_get_u32(netif_ip4_netmask(netif))));
  92627. /* interface is up and configured? */
  92628. if ((netif_is_up(netif)) && (!ip4_addr_isany_val(*netif_ip4_addr(netif)))) {
  92629. 8025828: 687b ldr r3, [r7, #4]
  92630. 802582a: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  92631. 802582e: f003 0301 and.w r3, r3, #1
  92632. 8025832: b2db uxtb r3, r3
  92633. 8025834: 2b00 cmp r3, #0
  92634. 8025836: d016 beq.n 8025866 <ip4_input_accept+0x46>
  92635. 8025838: 687b ldr r3, [r7, #4]
  92636. 802583a: 3304 adds r3, #4
  92637. 802583c: 681b ldr r3, [r3, #0]
  92638. 802583e: 2b00 cmp r3, #0
  92639. 8025840: d011 beq.n 8025866 <ip4_input_accept+0x46>
  92640. /* unicast to this interface address? */
  92641. if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) ||
  92642. 8025842: 4b0b ldr r3, [pc, #44] @ (8025870 <ip4_input_accept+0x50>)
  92643. 8025844: 695a ldr r2, [r3, #20]
  92644. 8025846: 687b ldr r3, [r7, #4]
  92645. 8025848: 3304 adds r3, #4
  92646. 802584a: 681b ldr r3, [r3, #0]
  92647. 802584c: 429a cmp r2, r3
  92648. 802584e: d008 beq.n 8025862 <ip4_input_accept+0x42>
  92649. /* or broadcast on this interface network address? */
  92650. ip4_addr_isbroadcast(ip4_current_dest_addr(), netif)
  92651. 8025850: 4b07 ldr r3, [pc, #28] @ (8025870 <ip4_input_accept+0x50>)
  92652. 8025852: 695b ldr r3, [r3, #20]
  92653. 8025854: 6879 ldr r1, [r7, #4]
  92654. 8025856: 4618 mov r0, r3
  92655. 8025858: f000 fa2a bl 8025cb0 <ip4_addr_isbroadcast_u32>
  92656. 802585c: 4603 mov r3, r0
  92657. if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) ||
  92658. 802585e: 2b00 cmp r3, #0
  92659. 8025860: d001 beq.n 8025866 <ip4_input_accept+0x46>
  92660. #endif /* LWIP_NETIF_LOOPBACK && !LWIP_HAVE_LOOPIF */
  92661. ) {
  92662. LWIP_DEBUGF(IP_DEBUG, ("ip4_input: packet accepted on interface %c%c\n",
  92663. netif->name[0], netif->name[1]));
  92664. /* accept on this netif */
  92665. return 1;
  92666. 8025862: 2301 movs r3, #1
  92667. 8025864: e000 b.n 8025868 <ip4_input_accept+0x48>
  92668. /* accept on this netif */
  92669. return 1;
  92670. }
  92671. #endif /* LWIP_AUTOIP */
  92672. }
  92673. return 0;
  92674. 8025866: 2300 movs r3, #0
  92675. }
  92676. 8025868: 4618 mov r0, r3
  92677. 802586a: 3708 adds r7, #8
  92678. 802586c: 46bd mov sp, r7
  92679. 802586e: bd80 pop {r7, pc}
  92680. 8025870: 24024418 .word 0x24024418
  92681. 08025874 <ip4_input>:
  92682. * @return ERR_OK if the packet was processed (could return ERR_* if it wasn't
  92683. * processed, but currently always returns ERR_OK)
  92684. */
  92685. err_t
  92686. ip4_input(struct pbuf *p, struct netif *inp)
  92687. {
  92688. 8025874: b580 push {r7, lr}
  92689. 8025876: b088 sub sp, #32
  92690. 8025878: af00 add r7, sp, #0
  92691. 802587a: 6078 str r0, [r7, #4]
  92692. 802587c: 6039 str r1, [r7, #0]
  92693. const struct ip_hdr *iphdr;
  92694. struct netif *netif;
  92695. u16_t iphdr_hlen;
  92696. u16_t iphdr_len;
  92697. #if IP_ACCEPT_LINK_LAYER_ADDRESSING || LWIP_IGMP
  92698. int check_ip_src = 1;
  92699. 802587e: 2301 movs r3, #1
  92700. 8025880: 617b str r3, [r7, #20]
  92701. #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING || LWIP_IGMP */
  92702. #if LWIP_RAW
  92703. raw_input_state_t raw_status;
  92704. #endif /* LWIP_RAW */
  92705. LWIP_ASSERT_CORE_LOCKED();
  92706. 8025882: f7eb fb3d bl 8010f00 <sys_check_core_locking>
  92707. IP_STATS_INC(ip.recv);
  92708. MIB2_STATS_INC(mib2.ipinreceives);
  92709. /* identify the IP header */
  92710. iphdr = (struct ip_hdr *)p->payload;
  92711. 8025886: 687b ldr r3, [r7, #4]
  92712. 8025888: 685b ldr r3, [r3, #4]
  92713. 802588a: 613b str r3, [r7, #16]
  92714. if (IPH_V(iphdr) != 4) {
  92715. 802588c: 693b ldr r3, [r7, #16]
  92716. 802588e: 781b ldrb r3, [r3, #0]
  92717. 8025890: 091b lsrs r3, r3, #4
  92718. 8025892: b2db uxtb r3, r3
  92719. 8025894: 2b04 cmp r3, #4
  92720. 8025896: d004 beq.n 80258a2 <ip4_input+0x2e>
  92721. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_WARNING, ("IP packet dropped due to bad version number %"U16_F"\n", (u16_t)IPH_V(iphdr)));
  92722. ip4_debug_print(p);
  92723. pbuf_free(p);
  92724. 8025898: 6878 ldr r0, [r7, #4]
  92725. 802589a: f7f5 fce7 bl 801b26c <pbuf_free>
  92726. IP_STATS_INC(ip.err);
  92727. IP_STATS_INC(ip.drop);
  92728. MIB2_STATS_INC(mib2.ipinhdrerrors);
  92729. return ERR_OK;
  92730. 802589e: 2300 movs r3, #0
  92731. 80258a0: e123 b.n 8025aea <ip4_input+0x276>
  92732. return ERR_OK;
  92733. }
  92734. #endif
  92735. /* obtain IP header length in bytes */
  92736. iphdr_hlen = IPH_HL_BYTES(iphdr);
  92737. 80258a2: 693b ldr r3, [r7, #16]
  92738. 80258a4: 781b ldrb r3, [r3, #0]
  92739. 80258a6: f003 030f and.w r3, r3, #15
  92740. 80258aa: b2db uxtb r3, r3
  92741. 80258ac: 009b lsls r3, r3, #2
  92742. 80258ae: b2db uxtb r3, r3
  92743. 80258b0: 81fb strh r3, [r7, #14]
  92744. /* obtain ip length in bytes */
  92745. iphdr_len = lwip_ntohs(IPH_LEN(iphdr));
  92746. 80258b2: 693b ldr r3, [r7, #16]
  92747. 80258b4: 885b ldrh r3, [r3, #2]
  92748. 80258b6: b29b uxth r3, r3
  92749. 80258b8: 4618 mov r0, r3
  92750. 80258ba: f7f3 fff5 bl 80198a8 <lwip_htons>
  92751. 80258be: 4603 mov r3, r0
  92752. 80258c0: 837b strh r3, [r7, #26]
  92753. /* Trim pbuf. This is especially required for packets < 60 bytes. */
  92754. if (iphdr_len < p->tot_len) {
  92755. 80258c2: 687b ldr r3, [r7, #4]
  92756. 80258c4: 891b ldrh r3, [r3, #8]
  92757. 80258c6: 8b7a ldrh r2, [r7, #26]
  92758. 80258c8: 429a cmp r2, r3
  92759. 80258ca: d204 bcs.n 80258d6 <ip4_input+0x62>
  92760. pbuf_realloc(p, iphdr_len);
  92761. 80258cc: 8b7b ldrh r3, [r7, #26]
  92762. 80258ce: 4619 mov r1, r3
  92763. 80258d0: 6878 ldr r0, [r7, #4]
  92764. 80258d2: f7f5 fb15 bl 801af00 <pbuf_realloc>
  92765. }
  92766. /* header length exceeds first pbuf length, or ip length exceeds total pbuf length? */
  92767. if ((iphdr_hlen > p->len) || (iphdr_len > p->tot_len) || (iphdr_hlen < IP_HLEN)) {
  92768. 80258d6: 687b ldr r3, [r7, #4]
  92769. 80258d8: 895b ldrh r3, [r3, #10]
  92770. 80258da: 89fa ldrh r2, [r7, #14]
  92771. 80258dc: 429a cmp r2, r3
  92772. 80258de: d807 bhi.n 80258f0 <ip4_input+0x7c>
  92773. 80258e0: 687b ldr r3, [r7, #4]
  92774. 80258e2: 891b ldrh r3, [r3, #8]
  92775. 80258e4: 8b7a ldrh r2, [r7, #26]
  92776. 80258e6: 429a cmp r2, r3
  92777. 80258e8: d802 bhi.n 80258f0 <ip4_input+0x7c>
  92778. 80258ea: 89fb ldrh r3, [r7, #14]
  92779. 80258ec: 2b13 cmp r3, #19
  92780. 80258ee: d804 bhi.n 80258fa <ip4_input+0x86>
  92781. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  92782. ("IP (len %"U16_F") is longer than pbuf (len %"U16_F"), IP packet dropped.\n",
  92783. iphdr_len, p->tot_len));
  92784. }
  92785. /* free (drop) packet pbufs */
  92786. pbuf_free(p);
  92787. 80258f0: 6878 ldr r0, [r7, #4]
  92788. 80258f2: f7f5 fcbb bl 801b26c <pbuf_free>
  92789. IP_STATS_INC(ip.lenerr);
  92790. IP_STATS_INC(ip.drop);
  92791. MIB2_STATS_INC(mib2.ipindiscards);
  92792. return ERR_OK;
  92793. 80258f6: 2300 movs r3, #0
  92794. 80258f8: e0f7 b.n 8025aea <ip4_input+0x276>
  92795. }
  92796. }
  92797. #endif
  92798. /* copy IP addresses to aligned ip_addr_t */
  92799. ip_addr_copy_from_ip4(ip_data.current_iphdr_dest, iphdr->dest);
  92800. 80258fa: 693b ldr r3, [r7, #16]
  92801. 80258fc: 691b ldr r3, [r3, #16]
  92802. 80258fe: 4a7d ldr r2, [pc, #500] @ (8025af4 <ip4_input+0x280>)
  92803. 8025900: 6153 str r3, [r2, #20]
  92804. ip_addr_copy_from_ip4(ip_data.current_iphdr_src, iphdr->src);
  92805. 8025902: 693b ldr r3, [r7, #16]
  92806. 8025904: 68db ldr r3, [r3, #12]
  92807. 8025906: 4a7b ldr r2, [pc, #492] @ (8025af4 <ip4_input+0x280>)
  92808. 8025908: 6113 str r3, [r2, #16]
  92809. /* match packet against an interface, i.e. is this packet for us? */
  92810. if (ip4_addr_ismulticast(ip4_current_dest_addr())) {
  92811. 802590a: 4b7a ldr r3, [pc, #488] @ (8025af4 <ip4_input+0x280>)
  92812. 802590c: 695b ldr r3, [r3, #20]
  92813. 802590e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  92814. 8025912: 2be0 cmp r3, #224 @ 0xe0
  92815. 8025914: d112 bne.n 802593c <ip4_input+0xc8>
  92816. netif = inp;
  92817. } else {
  92818. netif = NULL;
  92819. }
  92820. #else /* LWIP_IGMP */
  92821. if ((netif_is_up(inp)) && (!ip4_addr_isany_val(*netif_ip4_addr(inp)))) {
  92822. 8025916: 683b ldr r3, [r7, #0]
  92823. 8025918: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  92824. 802591c: f003 0301 and.w r3, r3, #1
  92825. 8025920: b2db uxtb r3, r3
  92826. 8025922: 2b00 cmp r3, #0
  92827. 8025924: d007 beq.n 8025936 <ip4_input+0xc2>
  92828. 8025926: 683b ldr r3, [r7, #0]
  92829. 8025928: 3304 adds r3, #4
  92830. 802592a: 681b ldr r3, [r3, #0]
  92831. 802592c: 2b00 cmp r3, #0
  92832. 802592e: d002 beq.n 8025936 <ip4_input+0xc2>
  92833. netif = inp;
  92834. 8025930: 683b ldr r3, [r7, #0]
  92835. 8025932: 61fb str r3, [r7, #28]
  92836. 8025934: e02a b.n 802598c <ip4_input+0x118>
  92837. } else {
  92838. netif = NULL;
  92839. 8025936: 2300 movs r3, #0
  92840. 8025938: 61fb str r3, [r7, #28]
  92841. 802593a: e027 b.n 802598c <ip4_input+0x118>
  92842. }
  92843. #endif /* LWIP_IGMP */
  92844. } else {
  92845. /* start trying with inp. if that's not acceptable, start walking the
  92846. list of configured netifs. */
  92847. if (ip4_input_accept(inp)) {
  92848. 802593c: 6838 ldr r0, [r7, #0]
  92849. 802593e: f7ff ff6f bl 8025820 <ip4_input_accept>
  92850. 8025942: 4603 mov r3, r0
  92851. 8025944: 2b00 cmp r3, #0
  92852. 8025946: d002 beq.n 802594e <ip4_input+0xda>
  92853. netif = inp;
  92854. 8025948: 683b ldr r3, [r7, #0]
  92855. 802594a: 61fb str r3, [r7, #28]
  92856. 802594c: e01e b.n 802598c <ip4_input+0x118>
  92857. } else {
  92858. netif = NULL;
  92859. 802594e: 2300 movs r3, #0
  92860. 8025950: 61fb str r3, [r7, #28]
  92861. #if !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF
  92862. /* Packets sent to the loopback address must not be accepted on an
  92863. * interface that does not have the loopback address assigned to it,
  92864. * unless a non-loopback interface is used for loopback traffic. */
  92865. if (!ip4_addr_isloopback(ip4_current_dest_addr()))
  92866. 8025952: 4b68 ldr r3, [pc, #416] @ (8025af4 <ip4_input+0x280>)
  92867. 8025954: 695b ldr r3, [r3, #20]
  92868. 8025956: b2db uxtb r3, r3
  92869. 8025958: 2b7f cmp r3, #127 @ 0x7f
  92870. 802595a: d017 beq.n 802598c <ip4_input+0x118>
  92871. #endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */
  92872. {
  92873. #if !LWIP_SINGLE_NETIF
  92874. NETIF_FOREACH(netif) {
  92875. 802595c: 4b66 ldr r3, [pc, #408] @ (8025af8 <ip4_input+0x284>)
  92876. 802595e: 681b ldr r3, [r3, #0]
  92877. 8025960: 61fb str r3, [r7, #28]
  92878. 8025962: e00e b.n 8025982 <ip4_input+0x10e>
  92879. if (netif == inp) {
  92880. 8025964: 69fa ldr r2, [r7, #28]
  92881. 8025966: 683b ldr r3, [r7, #0]
  92882. 8025968: 429a cmp r2, r3
  92883. 802596a: d006 beq.n 802597a <ip4_input+0x106>
  92884. /* we checked that before already */
  92885. continue;
  92886. }
  92887. if (ip4_input_accept(netif)) {
  92888. 802596c: 69f8 ldr r0, [r7, #28]
  92889. 802596e: f7ff ff57 bl 8025820 <ip4_input_accept>
  92890. 8025972: 4603 mov r3, r0
  92891. 8025974: 2b00 cmp r3, #0
  92892. 8025976: d108 bne.n 802598a <ip4_input+0x116>
  92893. 8025978: e000 b.n 802597c <ip4_input+0x108>
  92894. continue;
  92895. 802597a: bf00 nop
  92896. NETIF_FOREACH(netif) {
  92897. 802597c: 69fb ldr r3, [r7, #28]
  92898. 802597e: 681b ldr r3, [r3, #0]
  92899. 8025980: 61fb str r3, [r7, #28]
  92900. 8025982: 69fb ldr r3, [r7, #28]
  92901. 8025984: 2b00 cmp r3, #0
  92902. 8025986: d1ed bne.n 8025964 <ip4_input+0xf0>
  92903. 8025988: e000 b.n 802598c <ip4_input+0x118>
  92904. break;
  92905. 802598a: bf00 nop
  92906. * If you want to accept private broadcast communication while a netif is down,
  92907. * define LWIP_IP_ACCEPT_UDP_PORT(dst_port), e.g.:
  92908. *
  92909. * #define LWIP_IP_ACCEPT_UDP_PORT(dst_port) ((dst_port) == PP_NTOHS(12345))
  92910. */
  92911. if (netif == NULL) {
  92912. 802598c: 69fb ldr r3, [r7, #28]
  92913. 802598e: 2b00 cmp r3, #0
  92914. 8025990: d111 bne.n 80259b6 <ip4_input+0x142>
  92915. /* remote port is DHCP server? */
  92916. if (IPH_PROTO(iphdr) == IP_PROTO_UDP) {
  92917. 8025992: 693b ldr r3, [r7, #16]
  92918. 8025994: 7a5b ldrb r3, [r3, #9]
  92919. 8025996: 2b11 cmp r3, #17
  92920. 8025998: d10d bne.n 80259b6 <ip4_input+0x142>
  92921. const struct udp_hdr *udphdr = (const struct udp_hdr *)((const u8_t *)iphdr + iphdr_hlen);
  92922. 802599a: 89fb ldrh r3, [r7, #14]
  92923. 802599c: 693a ldr r2, [r7, #16]
  92924. 802599e: 4413 add r3, r2
  92925. 80259a0: 60bb str r3, [r7, #8]
  92926. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE, ("ip4_input: UDP packet to DHCP client port %"U16_F"\n",
  92927. lwip_ntohs(udphdr->dest)));
  92928. if (IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(udphdr->dest)) {
  92929. 80259a2: 68bb ldr r3, [r7, #8]
  92930. 80259a4: 885b ldrh r3, [r3, #2]
  92931. 80259a6: b29b uxth r3, r3
  92932. 80259a8: f5b3 4f88 cmp.w r3, #17408 @ 0x4400
  92933. 80259ac: d103 bne.n 80259b6 <ip4_input+0x142>
  92934. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE, ("ip4_input: DHCP packet accepted.\n"));
  92935. netif = inp;
  92936. 80259ae: 683b ldr r3, [r7, #0]
  92937. 80259b0: 61fb str r3, [r7, #28]
  92938. check_ip_src = 0;
  92939. 80259b2: 2300 movs r3, #0
  92940. 80259b4: 617b str r3, [r7, #20]
  92941. }
  92942. #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */
  92943. /* broadcast or multicast packet source address? Compliant with RFC 1122: 3.2.1.3 */
  92944. #if LWIP_IGMP || IP_ACCEPT_LINK_LAYER_ADDRESSING
  92945. if (check_ip_src
  92946. 80259b6: 697b ldr r3, [r7, #20]
  92947. 80259b8: 2b00 cmp r3, #0
  92948. 80259ba: d017 beq.n 80259ec <ip4_input+0x178>
  92949. #if IP_ACCEPT_LINK_LAYER_ADDRESSING
  92950. /* DHCP servers need 0.0.0.0 to be allowed as source address (RFC 1.1.2.2: 3.2.1.3/a) */
  92951. && !ip4_addr_isany_val(*ip4_current_src_addr())
  92952. 80259bc: 4b4d ldr r3, [pc, #308] @ (8025af4 <ip4_input+0x280>)
  92953. 80259be: 691b ldr r3, [r3, #16]
  92954. 80259c0: 2b00 cmp r3, #0
  92955. 80259c2: d013 beq.n 80259ec <ip4_input+0x178>
  92956. #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */
  92957. )
  92958. #endif /* LWIP_IGMP || IP_ACCEPT_LINK_LAYER_ADDRESSING */
  92959. {
  92960. if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) ||
  92961. 80259c4: 4b4b ldr r3, [pc, #300] @ (8025af4 <ip4_input+0x280>)
  92962. 80259c6: 691b ldr r3, [r3, #16]
  92963. 80259c8: 6839 ldr r1, [r7, #0]
  92964. 80259ca: 4618 mov r0, r3
  92965. 80259cc: f000 f970 bl 8025cb0 <ip4_addr_isbroadcast_u32>
  92966. 80259d0: 4603 mov r3, r0
  92967. 80259d2: 2b00 cmp r3, #0
  92968. 80259d4: d105 bne.n 80259e2 <ip4_input+0x16e>
  92969. (ip4_addr_ismulticast(ip4_current_src_addr()))) {
  92970. 80259d6: 4b47 ldr r3, [pc, #284] @ (8025af4 <ip4_input+0x280>)
  92971. 80259d8: 691b ldr r3, [r3, #16]
  92972. 80259da: f003 03f0 and.w r3, r3, #240 @ 0xf0
  92973. if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) ||
  92974. 80259de: 2be0 cmp r3, #224 @ 0xe0
  92975. 80259e0: d104 bne.n 80259ec <ip4_input+0x178>
  92976. /* packet source is not valid */
  92977. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("ip4_input: packet source is not valid.\n"));
  92978. /* free (drop) packet pbufs */
  92979. pbuf_free(p);
  92980. 80259e2: 6878 ldr r0, [r7, #4]
  92981. 80259e4: f7f5 fc42 bl 801b26c <pbuf_free>
  92982. IP_STATS_INC(ip.drop);
  92983. MIB2_STATS_INC(mib2.ipinaddrerrors);
  92984. MIB2_STATS_INC(mib2.ipindiscards);
  92985. return ERR_OK;
  92986. 80259e8: 2300 movs r3, #0
  92987. 80259ea: e07e b.n 8025aea <ip4_input+0x276>
  92988. }
  92989. }
  92990. /* packet not for us? */
  92991. if (netif == NULL) {
  92992. 80259ec: 69fb ldr r3, [r7, #28]
  92993. 80259ee: 2b00 cmp r3, #0
  92994. 80259f0: d104 bne.n 80259fc <ip4_input+0x188>
  92995. {
  92996. IP_STATS_INC(ip.drop);
  92997. MIB2_STATS_INC(mib2.ipinaddrerrors);
  92998. MIB2_STATS_INC(mib2.ipindiscards);
  92999. }
  93000. pbuf_free(p);
  93001. 80259f2: 6878 ldr r0, [r7, #4]
  93002. 80259f4: f7f5 fc3a bl 801b26c <pbuf_free>
  93003. return ERR_OK;
  93004. 80259f8: 2300 movs r3, #0
  93005. 80259fa: e076 b.n 8025aea <ip4_input+0x276>
  93006. }
  93007. /* packet consists of multiple fragments? */
  93008. if ((IPH_OFFSET(iphdr) & PP_HTONS(IP_OFFMASK | IP_MF)) != 0) {
  93009. 80259fc: 693b ldr r3, [r7, #16]
  93010. 80259fe: 88db ldrh r3, [r3, #6]
  93011. 8025a00: b29b uxth r3, r3
  93012. 8025a02: 461a mov r2, r3
  93013. 8025a04: f64f 733f movw r3, #65343 @ 0xff3f
  93014. 8025a08: 4013 ands r3, r2
  93015. 8025a0a: 2b00 cmp r3, #0
  93016. 8025a0c: d00b beq.n 8025a26 <ip4_input+0x1b2>
  93017. #if IP_REASSEMBLY /* packet fragment reassembly code present? */
  93018. 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",
  93019. 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)));
  93020. /* reassemble the packet*/
  93021. p = ip4_reass(p);
  93022. 8025a0e: 6878 ldr r0, [r7, #4]
  93023. 8025a10: f000 fe62 bl 80266d8 <ip4_reass>
  93024. 8025a14: 6078 str r0, [r7, #4]
  93025. /* packet not fully reassembled yet? */
  93026. if (p == NULL) {
  93027. 8025a16: 687b ldr r3, [r7, #4]
  93028. 8025a18: 2b00 cmp r3, #0
  93029. 8025a1a: d101 bne.n 8025a20 <ip4_input+0x1ac>
  93030. return ERR_OK;
  93031. 8025a1c: 2300 movs r3, #0
  93032. 8025a1e: e064 b.n 8025aea <ip4_input+0x276>
  93033. }
  93034. iphdr = (const struct ip_hdr *)p->payload;
  93035. 8025a20: 687b ldr r3, [r7, #4]
  93036. 8025a22: 685b ldr r3, [r3, #4]
  93037. 8025a24: 613b str r3, [r7, #16]
  93038. /* send to upper layers */
  93039. LWIP_DEBUGF(IP_DEBUG, ("ip4_input: \n"));
  93040. ip4_debug_print(p);
  93041. LWIP_DEBUGF(IP_DEBUG, ("ip4_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len));
  93042. ip_data.current_netif = netif;
  93043. 8025a26: 4a33 ldr r2, [pc, #204] @ (8025af4 <ip4_input+0x280>)
  93044. 8025a28: 69fb ldr r3, [r7, #28]
  93045. 8025a2a: 6013 str r3, [r2, #0]
  93046. ip_data.current_input_netif = inp;
  93047. 8025a2c: 4a31 ldr r2, [pc, #196] @ (8025af4 <ip4_input+0x280>)
  93048. 8025a2e: 683b ldr r3, [r7, #0]
  93049. 8025a30: 6053 str r3, [r2, #4]
  93050. ip_data.current_ip4_header = iphdr;
  93051. 8025a32: 4a30 ldr r2, [pc, #192] @ (8025af4 <ip4_input+0x280>)
  93052. 8025a34: 693b ldr r3, [r7, #16]
  93053. 8025a36: 6093 str r3, [r2, #8]
  93054. ip_data.current_ip_header_tot_len = IPH_HL_BYTES(iphdr);
  93055. 8025a38: 693b ldr r3, [r7, #16]
  93056. 8025a3a: 781b ldrb r3, [r3, #0]
  93057. 8025a3c: f003 030f and.w r3, r3, #15
  93058. 8025a40: b2db uxtb r3, r3
  93059. 8025a42: 009b lsls r3, r3, #2
  93060. 8025a44: b2db uxtb r3, r3
  93061. 8025a46: 461a mov r2, r3
  93062. 8025a48: 4b2a ldr r3, [pc, #168] @ (8025af4 <ip4_input+0x280>)
  93063. 8025a4a: 819a strh r2, [r3, #12]
  93064. /* raw input did not eat the packet? */
  93065. raw_status = raw_input(p, inp);
  93066. if (raw_status != RAW_INPUT_EATEN)
  93067. #endif /* LWIP_RAW */
  93068. {
  93069. pbuf_remove_header(p, iphdr_hlen); /* Move to payload, no check necessary. */
  93070. 8025a4c: 89fb ldrh r3, [r7, #14]
  93071. 8025a4e: 4619 mov r1, r3
  93072. 8025a50: 6878 ldr r0, [r7, #4]
  93073. 8025a52: f7f5 fb53 bl 801b0fc <pbuf_remove_header>
  93074. switch (IPH_PROTO(iphdr)) {
  93075. 8025a56: 693b ldr r3, [r7, #16]
  93076. 8025a58: 7a5b ldrb r3, [r3, #9]
  93077. 8025a5a: 2b11 cmp r3, #17
  93078. 8025a5c: d006 beq.n 8025a6c <ip4_input+0x1f8>
  93079. 8025a5e: 2b11 cmp r3, #17
  93080. 8025a60: dc13 bgt.n 8025a8a <ip4_input+0x216>
  93081. 8025a62: 2b01 cmp r3, #1
  93082. 8025a64: d00c beq.n 8025a80 <ip4_input+0x20c>
  93083. 8025a66: 2b06 cmp r3, #6
  93084. 8025a68: d005 beq.n 8025a76 <ip4_input+0x202>
  93085. 8025a6a: e00e b.n 8025a8a <ip4_input+0x216>
  93086. case IP_PROTO_UDP:
  93087. #if LWIP_UDPLITE
  93088. case IP_PROTO_UDPLITE:
  93089. #endif /* LWIP_UDPLITE */
  93090. MIB2_STATS_INC(mib2.ipindelivers);
  93091. udp_input(p, inp);
  93092. 8025a6c: 6839 ldr r1, [r7, #0]
  93093. 8025a6e: 6878 ldr r0, [r7, #4]
  93094. 8025a70: f7fc f99c bl 8021dac <udp_input>
  93095. break;
  93096. 8025a74: e026 b.n 8025ac4 <ip4_input+0x250>
  93097. #endif /* LWIP_UDP */
  93098. #if LWIP_TCP
  93099. case IP_PROTO_TCP:
  93100. MIB2_STATS_INC(mib2.ipindelivers);
  93101. tcp_input(p, inp);
  93102. 8025a76: 6839 ldr r1, [r7, #0]
  93103. 8025a78: 6878 ldr r0, [r7, #4]
  93104. 8025a7a: f7f7 fcdd bl 801d438 <tcp_input>
  93105. break;
  93106. 8025a7e: e021 b.n 8025ac4 <ip4_input+0x250>
  93107. #endif /* LWIP_TCP */
  93108. #if LWIP_ICMP
  93109. case IP_PROTO_ICMP:
  93110. MIB2_STATS_INC(mib2.ipindelivers);
  93111. icmp_input(p, inp);
  93112. 8025a80: 6839 ldr r1, [r7, #0]
  93113. 8025a82: 6878 ldr r0, [r7, #4]
  93114. 8025a84: f7ff fca4 bl 80253d0 <icmp_input>
  93115. break;
  93116. 8025a88: e01c b.n 8025ac4 <ip4_input+0x250>
  93117. } else
  93118. #endif /* LWIP_RAW */
  93119. {
  93120. #if LWIP_ICMP
  93121. /* send ICMP destination protocol unreachable unless is was a broadcast */
  93122. if (!ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) &&
  93123. 8025a8a: 4b1a ldr r3, [pc, #104] @ (8025af4 <ip4_input+0x280>)
  93124. 8025a8c: 695b ldr r3, [r3, #20]
  93125. 8025a8e: 69f9 ldr r1, [r7, #28]
  93126. 8025a90: 4618 mov r0, r3
  93127. 8025a92: f000 f90d bl 8025cb0 <ip4_addr_isbroadcast_u32>
  93128. 8025a96: 4603 mov r3, r0
  93129. 8025a98: 2b00 cmp r3, #0
  93130. 8025a9a: d10f bne.n 8025abc <ip4_input+0x248>
  93131. !ip4_addr_ismulticast(ip4_current_dest_addr())) {
  93132. 8025a9c: 4b15 ldr r3, [pc, #84] @ (8025af4 <ip4_input+0x280>)
  93133. 8025a9e: 695b ldr r3, [r3, #20]
  93134. 8025aa0: f003 03f0 and.w r3, r3, #240 @ 0xf0
  93135. if (!ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) &&
  93136. 8025aa4: 2be0 cmp r3, #224 @ 0xe0
  93137. 8025aa6: d009 beq.n 8025abc <ip4_input+0x248>
  93138. pbuf_header_force(p, (s16_t)iphdr_hlen); /* Move to ip header, no check necessary. */
  93139. 8025aa8: f9b7 300e ldrsh.w r3, [r7, #14]
  93140. 8025aac: 4619 mov r1, r3
  93141. 8025aae: 6878 ldr r0, [r7, #4]
  93142. 8025ab0: f7f5 fb97 bl 801b1e2 <pbuf_header_force>
  93143. icmp_dest_unreach(p, ICMP_DUR_PROTO);
  93144. 8025ab4: 2102 movs r1, #2
  93145. 8025ab6: 6878 ldr r0, [r7, #4]
  93146. 8025ab8: f7ff fdae bl 8025618 <icmp_dest_unreach>
  93147. IP_STATS_INC(ip.proterr);
  93148. IP_STATS_INC(ip.drop);
  93149. MIB2_STATS_INC(mib2.ipinunknownprotos);
  93150. }
  93151. pbuf_free(p);
  93152. 8025abc: 6878 ldr r0, [r7, #4]
  93153. 8025abe: f7f5 fbd5 bl 801b26c <pbuf_free>
  93154. break;
  93155. 8025ac2: bf00 nop
  93156. }
  93157. }
  93158. /* @todo: this is not really necessary... */
  93159. ip_data.current_netif = NULL;
  93160. 8025ac4: 4b0b ldr r3, [pc, #44] @ (8025af4 <ip4_input+0x280>)
  93161. 8025ac6: 2200 movs r2, #0
  93162. 8025ac8: 601a str r2, [r3, #0]
  93163. ip_data.current_input_netif = NULL;
  93164. 8025aca: 4b0a ldr r3, [pc, #40] @ (8025af4 <ip4_input+0x280>)
  93165. 8025acc: 2200 movs r2, #0
  93166. 8025ace: 605a str r2, [r3, #4]
  93167. ip_data.current_ip4_header = NULL;
  93168. 8025ad0: 4b08 ldr r3, [pc, #32] @ (8025af4 <ip4_input+0x280>)
  93169. 8025ad2: 2200 movs r2, #0
  93170. 8025ad4: 609a str r2, [r3, #8]
  93171. ip_data.current_ip_header_tot_len = 0;
  93172. 8025ad6: 4b07 ldr r3, [pc, #28] @ (8025af4 <ip4_input+0x280>)
  93173. 8025ad8: 2200 movs r2, #0
  93174. 8025ada: 819a strh r2, [r3, #12]
  93175. ip4_addr_set_any(ip4_current_src_addr());
  93176. 8025adc: 4b05 ldr r3, [pc, #20] @ (8025af4 <ip4_input+0x280>)
  93177. 8025ade: 2200 movs r2, #0
  93178. 8025ae0: 611a str r2, [r3, #16]
  93179. ip4_addr_set_any(ip4_current_dest_addr());
  93180. 8025ae2: 4b04 ldr r3, [pc, #16] @ (8025af4 <ip4_input+0x280>)
  93181. 8025ae4: 2200 movs r2, #0
  93182. 8025ae6: 615a str r2, [r3, #20]
  93183. return ERR_OK;
  93184. 8025ae8: 2300 movs r3, #0
  93185. }
  93186. 8025aea: 4618 mov r0, r3
  93187. 8025aec: 3720 adds r7, #32
  93188. 8025aee: 46bd mov sp, r7
  93189. 8025af0: bd80 pop {r7, pc}
  93190. 8025af2: bf00 nop
  93191. 8025af4: 24024418 .word 0x24024418
  93192. 8025af8: 2402af5c .word 0x2402af5c
  93193. 08025afc <ip4_output_if>:
  93194. */
  93195. err_t
  93196. ip4_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
  93197. u8_t ttl, u8_t tos,
  93198. u8_t proto, struct netif *netif)
  93199. {
  93200. 8025afc: b580 push {r7, lr}
  93201. 8025afe: b08a sub sp, #40 @ 0x28
  93202. 8025b00: af04 add r7, sp, #16
  93203. 8025b02: 60f8 str r0, [r7, #12]
  93204. 8025b04: 60b9 str r1, [r7, #8]
  93205. 8025b06: 607a str r2, [r7, #4]
  93206. 8025b08: 70fb strb r3, [r7, #3]
  93207. ip4_output_if_opt(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
  93208. u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
  93209. u16_t optlen)
  93210. {
  93211. #endif /* IP_OPTIONS_SEND */
  93212. const ip4_addr_t *src_used = src;
  93213. 8025b0a: 68bb ldr r3, [r7, #8]
  93214. 8025b0c: 617b str r3, [r7, #20]
  93215. if (dest != LWIP_IP_HDRINCL) {
  93216. 8025b0e: 687b ldr r3, [r7, #4]
  93217. 8025b10: 2b00 cmp r3, #0
  93218. 8025b12: d009 beq.n 8025b28 <ip4_output_if+0x2c>
  93219. if (ip4_addr_isany(src)) {
  93220. 8025b14: 68bb ldr r3, [r7, #8]
  93221. 8025b16: 2b00 cmp r3, #0
  93222. 8025b18: d003 beq.n 8025b22 <ip4_output_if+0x26>
  93223. 8025b1a: 68bb ldr r3, [r7, #8]
  93224. 8025b1c: 681b ldr r3, [r3, #0]
  93225. 8025b1e: 2b00 cmp r3, #0
  93226. 8025b20: d102 bne.n 8025b28 <ip4_output_if+0x2c>
  93227. src_used = netif_ip4_addr(netif);
  93228. 8025b22: 6abb ldr r3, [r7, #40] @ 0x28
  93229. 8025b24: 3304 adds r3, #4
  93230. 8025b26: 617b str r3, [r7, #20]
  93231. #if IP_OPTIONS_SEND
  93232. return ip4_output_if_opt_src(p, src_used, dest, ttl, tos, proto, netif,
  93233. ip_options, optlen);
  93234. #else /* IP_OPTIONS_SEND */
  93235. return ip4_output_if_src(p, src_used, dest, ttl, tos, proto, netif);
  93236. 8025b28: 78fa ldrb r2, [r7, #3]
  93237. 8025b2a: 6abb ldr r3, [r7, #40] @ 0x28
  93238. 8025b2c: 9302 str r3, [sp, #8]
  93239. 8025b2e: f897 3024 ldrb.w r3, [r7, #36] @ 0x24
  93240. 8025b32: 9301 str r3, [sp, #4]
  93241. 8025b34: f897 3020 ldrb.w r3, [r7, #32]
  93242. 8025b38: 9300 str r3, [sp, #0]
  93243. 8025b3a: 4613 mov r3, r2
  93244. 8025b3c: 687a ldr r2, [r7, #4]
  93245. 8025b3e: 6979 ldr r1, [r7, #20]
  93246. 8025b40: 68f8 ldr r0, [r7, #12]
  93247. 8025b42: f000 f805 bl 8025b50 <ip4_output_if_src>
  93248. 8025b46: 4603 mov r3, r0
  93249. #endif /* IP_OPTIONS_SEND */
  93250. }
  93251. 8025b48: 4618 mov r0, r3
  93252. 8025b4a: 3718 adds r7, #24
  93253. 8025b4c: 46bd mov sp, r7
  93254. 8025b4e: bd80 pop {r7, pc}
  93255. 08025b50 <ip4_output_if_src>:
  93256. */
  93257. err_t
  93258. ip4_output_if_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
  93259. u8_t ttl, u8_t tos,
  93260. u8_t proto, struct netif *netif)
  93261. {
  93262. 8025b50: b580 push {r7, lr}
  93263. 8025b52: b088 sub sp, #32
  93264. 8025b54: af00 add r7, sp, #0
  93265. 8025b56: 60f8 str r0, [r7, #12]
  93266. 8025b58: 60b9 str r1, [r7, #8]
  93267. 8025b5a: 607a str r2, [r7, #4]
  93268. 8025b5c: 70fb strb r3, [r7, #3]
  93269. ip4_addr_t dest_addr;
  93270. #if CHECKSUM_GEN_IP_INLINE
  93271. u32_t chk_sum = 0;
  93272. #endif /* CHECKSUM_GEN_IP_INLINE */
  93273. LWIP_ASSERT_CORE_LOCKED();
  93274. 8025b5e: f7eb f9cf bl 8010f00 <sys_check_core_locking>
  93275. LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p);
  93276. 8025b62: 68fb ldr r3, [r7, #12]
  93277. 8025b64: 7b9b ldrb r3, [r3, #14]
  93278. 8025b66: 2b01 cmp r3, #1
  93279. 8025b68: d006 beq.n 8025b78 <ip4_output_if_src+0x28>
  93280. 8025b6a: 4b4b ldr r3, [pc, #300] @ (8025c98 <ip4_output_if_src+0x148>)
  93281. 8025b6c: f44f 7255 mov.w r2, #852 @ 0x354
  93282. 8025b70: 494a ldr r1, [pc, #296] @ (8025c9c <ip4_output_if_src+0x14c>)
  93283. 8025b72: 484b ldr r0, [pc, #300] @ (8025ca0 <ip4_output_if_src+0x150>)
  93284. 8025b74: f004 fdf2 bl 802a75c <iprintf>
  93285. MIB2_STATS_INC(mib2.ipoutrequests);
  93286. /* Should the IP header be generated or is it already included in p? */
  93287. if (dest != LWIP_IP_HDRINCL) {
  93288. 8025b78: 687b ldr r3, [r7, #4]
  93289. 8025b7a: 2b00 cmp r3, #0
  93290. 8025b7c: d060 beq.n 8025c40 <ip4_output_if_src+0xf0>
  93291. u16_t ip_hlen = IP_HLEN;
  93292. 8025b7e: 2314 movs r3, #20
  93293. 8025b80: 837b strh r3, [r7, #26]
  93294. }
  93295. #endif /* CHECKSUM_GEN_IP_INLINE */
  93296. }
  93297. #endif /* IP_OPTIONS_SEND */
  93298. /* generate IP header */
  93299. if (pbuf_add_header(p, IP_HLEN)) {
  93300. 8025b82: 2114 movs r1, #20
  93301. 8025b84: 68f8 ldr r0, [r7, #12]
  93302. 8025b86: f7f5 faa9 bl 801b0dc <pbuf_add_header>
  93303. 8025b8a: 4603 mov r3, r0
  93304. 8025b8c: 2b00 cmp r3, #0
  93305. 8025b8e: d002 beq.n 8025b96 <ip4_output_if_src+0x46>
  93306. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_output: not enough room for IP header in pbuf\n"));
  93307. IP_STATS_INC(ip.err);
  93308. MIB2_STATS_INC(mib2.ipoutdiscards);
  93309. return ERR_BUF;
  93310. 8025b90: f06f 0301 mvn.w r3, #1
  93311. 8025b94: e07c b.n 8025c90 <ip4_output_if_src+0x140>
  93312. }
  93313. iphdr = (struct ip_hdr *)p->payload;
  93314. 8025b96: 68fb ldr r3, [r7, #12]
  93315. 8025b98: 685b ldr r3, [r3, #4]
  93316. 8025b9a: 61fb str r3, [r7, #28]
  93317. LWIP_ASSERT("check that first pbuf can hold struct ip_hdr",
  93318. 8025b9c: 68fb ldr r3, [r7, #12]
  93319. 8025b9e: 895b ldrh r3, [r3, #10]
  93320. 8025ba0: 2b13 cmp r3, #19
  93321. 8025ba2: d806 bhi.n 8025bb2 <ip4_output_if_src+0x62>
  93322. 8025ba4: 4b3c ldr r3, [pc, #240] @ (8025c98 <ip4_output_if_src+0x148>)
  93323. 8025ba6: f44f 7262 mov.w r2, #904 @ 0x388
  93324. 8025baa: 493e ldr r1, [pc, #248] @ (8025ca4 <ip4_output_if_src+0x154>)
  93325. 8025bac: 483c ldr r0, [pc, #240] @ (8025ca0 <ip4_output_if_src+0x150>)
  93326. 8025bae: f004 fdd5 bl 802a75c <iprintf>
  93327. (p->len >= sizeof(struct ip_hdr)));
  93328. IPH_TTL_SET(iphdr, ttl);
  93329. 8025bb2: 69fb ldr r3, [r7, #28]
  93330. 8025bb4: 78fa ldrb r2, [r7, #3]
  93331. 8025bb6: 721a strb r2, [r3, #8]
  93332. IPH_PROTO_SET(iphdr, proto);
  93333. 8025bb8: 69fb ldr r3, [r7, #28]
  93334. 8025bba: f897 202c ldrb.w r2, [r7, #44] @ 0x2c
  93335. 8025bbe: 725a strb r2, [r3, #9]
  93336. #if CHECKSUM_GEN_IP_INLINE
  93337. chk_sum += PP_NTOHS(proto | (ttl << 8));
  93338. #endif /* CHECKSUM_GEN_IP_INLINE */
  93339. /* dest cannot be NULL here */
  93340. ip4_addr_copy(iphdr->dest, *dest);
  93341. 8025bc0: 687b ldr r3, [r7, #4]
  93342. 8025bc2: 681a ldr r2, [r3, #0]
  93343. 8025bc4: 69fb ldr r3, [r7, #28]
  93344. 8025bc6: 611a str r2, [r3, #16]
  93345. #if CHECKSUM_GEN_IP_INLINE
  93346. chk_sum += ip4_addr_get_u32(&iphdr->dest) & 0xFFFF;
  93347. chk_sum += ip4_addr_get_u32(&iphdr->dest) >> 16;
  93348. #endif /* CHECKSUM_GEN_IP_INLINE */
  93349. IPH_VHL_SET(iphdr, 4, ip_hlen / 4);
  93350. 8025bc8: 8b7b ldrh r3, [r7, #26]
  93351. 8025bca: 089b lsrs r3, r3, #2
  93352. 8025bcc: b29b uxth r3, r3
  93353. 8025bce: b2db uxtb r3, r3
  93354. 8025bd0: f043 0340 orr.w r3, r3, #64 @ 0x40
  93355. 8025bd4: b2da uxtb r2, r3
  93356. 8025bd6: 69fb ldr r3, [r7, #28]
  93357. 8025bd8: 701a strb r2, [r3, #0]
  93358. IPH_TOS_SET(iphdr, tos);
  93359. 8025bda: 69fb ldr r3, [r7, #28]
  93360. 8025bdc: f897 2028 ldrb.w r2, [r7, #40] @ 0x28
  93361. 8025be0: 705a strb r2, [r3, #1]
  93362. #if CHECKSUM_GEN_IP_INLINE
  93363. chk_sum += PP_NTOHS(tos | (iphdr->_v_hl << 8));
  93364. #endif /* CHECKSUM_GEN_IP_INLINE */
  93365. IPH_LEN_SET(iphdr, lwip_htons(p->tot_len));
  93366. 8025be2: 68fb ldr r3, [r7, #12]
  93367. 8025be4: 891b ldrh r3, [r3, #8]
  93368. 8025be6: 4618 mov r0, r3
  93369. 8025be8: f7f3 fe5e bl 80198a8 <lwip_htons>
  93370. 8025bec: 4603 mov r3, r0
  93371. 8025bee: 461a mov r2, r3
  93372. 8025bf0: 69fb ldr r3, [r7, #28]
  93373. 8025bf2: 805a strh r2, [r3, #2]
  93374. #if CHECKSUM_GEN_IP_INLINE
  93375. chk_sum += iphdr->_len;
  93376. #endif /* CHECKSUM_GEN_IP_INLINE */
  93377. IPH_OFFSET_SET(iphdr, 0);
  93378. 8025bf4: 69fb ldr r3, [r7, #28]
  93379. 8025bf6: 2200 movs r2, #0
  93380. 8025bf8: 719a strb r2, [r3, #6]
  93381. 8025bfa: 2200 movs r2, #0
  93382. 8025bfc: 71da strb r2, [r3, #7]
  93383. IPH_ID_SET(iphdr, lwip_htons(ip_id));
  93384. 8025bfe: 4b2a ldr r3, [pc, #168] @ (8025ca8 <ip4_output_if_src+0x158>)
  93385. 8025c00: 881b ldrh r3, [r3, #0]
  93386. 8025c02: 4618 mov r0, r3
  93387. 8025c04: f7f3 fe50 bl 80198a8 <lwip_htons>
  93388. 8025c08: 4603 mov r3, r0
  93389. 8025c0a: 461a mov r2, r3
  93390. 8025c0c: 69fb ldr r3, [r7, #28]
  93391. 8025c0e: 809a strh r2, [r3, #4]
  93392. #if CHECKSUM_GEN_IP_INLINE
  93393. chk_sum += iphdr->_id;
  93394. #endif /* CHECKSUM_GEN_IP_INLINE */
  93395. ++ip_id;
  93396. 8025c10: 4b25 ldr r3, [pc, #148] @ (8025ca8 <ip4_output_if_src+0x158>)
  93397. 8025c12: 881b ldrh r3, [r3, #0]
  93398. 8025c14: 3301 adds r3, #1
  93399. 8025c16: b29a uxth r2, r3
  93400. 8025c18: 4b23 ldr r3, [pc, #140] @ (8025ca8 <ip4_output_if_src+0x158>)
  93401. 8025c1a: 801a strh r2, [r3, #0]
  93402. if (src == NULL) {
  93403. 8025c1c: 68bb ldr r3, [r7, #8]
  93404. 8025c1e: 2b00 cmp r3, #0
  93405. 8025c20: d104 bne.n 8025c2c <ip4_output_if_src+0xdc>
  93406. ip4_addr_copy(iphdr->src, *IP4_ADDR_ANY4);
  93407. 8025c22: 4b22 ldr r3, [pc, #136] @ (8025cac <ip4_output_if_src+0x15c>)
  93408. 8025c24: 681a ldr r2, [r3, #0]
  93409. 8025c26: 69fb ldr r3, [r7, #28]
  93410. 8025c28: 60da str r2, [r3, #12]
  93411. 8025c2a: e003 b.n 8025c34 <ip4_output_if_src+0xe4>
  93412. } else {
  93413. /* src cannot be NULL here */
  93414. ip4_addr_copy(iphdr->src, *src);
  93415. 8025c2c: 68bb ldr r3, [r7, #8]
  93416. 8025c2e: 681a ldr r2, [r3, #0]
  93417. 8025c30: 69fb ldr r3, [r7, #28]
  93418. 8025c32: 60da str r2, [r3, #12]
  93419. else {
  93420. IPH_CHKSUM_SET(iphdr, 0);
  93421. }
  93422. #endif /* LWIP_CHECKSUM_CTRL_PER_NETIF*/
  93423. #else /* CHECKSUM_GEN_IP_INLINE */
  93424. IPH_CHKSUM_SET(iphdr, 0);
  93425. 8025c34: 69fb ldr r3, [r7, #28]
  93426. 8025c36: 2200 movs r2, #0
  93427. 8025c38: 729a strb r2, [r3, #10]
  93428. 8025c3a: 2200 movs r2, #0
  93429. 8025c3c: 72da strb r2, [r3, #11]
  93430. 8025c3e: e00f b.n 8025c60 <ip4_output_if_src+0x110>
  93431. }
  93432. #endif /* CHECKSUM_GEN_IP */
  93433. #endif /* CHECKSUM_GEN_IP_INLINE */
  93434. } else {
  93435. /* IP header already included in p */
  93436. if (p->len < IP_HLEN) {
  93437. 8025c40: 68fb ldr r3, [r7, #12]
  93438. 8025c42: 895b ldrh r3, [r3, #10]
  93439. 8025c44: 2b13 cmp r3, #19
  93440. 8025c46: d802 bhi.n 8025c4e <ip4_output_if_src+0xfe>
  93441. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_output: LWIP_IP_HDRINCL but pbuf is too short\n"));
  93442. IP_STATS_INC(ip.err);
  93443. MIB2_STATS_INC(mib2.ipoutdiscards);
  93444. return ERR_BUF;
  93445. 8025c48: f06f 0301 mvn.w r3, #1
  93446. 8025c4c: e020 b.n 8025c90 <ip4_output_if_src+0x140>
  93447. }
  93448. iphdr = (struct ip_hdr *)p->payload;
  93449. 8025c4e: 68fb ldr r3, [r7, #12]
  93450. 8025c50: 685b ldr r3, [r3, #4]
  93451. 8025c52: 61fb str r3, [r7, #28]
  93452. ip4_addr_copy(dest_addr, iphdr->dest);
  93453. 8025c54: 69fb ldr r3, [r7, #28]
  93454. 8025c56: 691b ldr r3, [r3, #16]
  93455. 8025c58: 617b str r3, [r7, #20]
  93456. dest = &dest_addr;
  93457. 8025c5a: f107 0314 add.w r3, r7, #20
  93458. 8025c5e: 607b str r3, [r7, #4]
  93459. }
  93460. #endif /* LWIP_MULTICAST_TX_OPTIONS */
  93461. #endif /* ENABLE_LOOPBACK */
  93462. #if IP_FRAG
  93463. /* don't fragment if interface has mtu set to 0 [loopif] */
  93464. if (netif->mtu && (p->tot_len > netif->mtu)) {
  93465. 8025c60: 6b3b ldr r3, [r7, #48] @ 0x30
  93466. 8025c62: 8d1b ldrh r3, [r3, #40] @ 0x28
  93467. 8025c64: 2b00 cmp r3, #0
  93468. 8025c66: d00c beq.n 8025c82 <ip4_output_if_src+0x132>
  93469. 8025c68: 68fb ldr r3, [r7, #12]
  93470. 8025c6a: 891a ldrh r2, [r3, #8]
  93471. 8025c6c: 6b3b ldr r3, [r7, #48] @ 0x30
  93472. 8025c6e: 8d1b ldrh r3, [r3, #40] @ 0x28
  93473. 8025c70: 429a cmp r2, r3
  93474. 8025c72: d906 bls.n 8025c82 <ip4_output_if_src+0x132>
  93475. return ip4_frag(p, netif, dest);
  93476. 8025c74: 687a ldr r2, [r7, #4]
  93477. 8025c76: 6b39 ldr r1, [r7, #48] @ 0x30
  93478. 8025c78: 68f8 ldr r0, [r7, #12]
  93479. 8025c7a: f000 ff21 bl 8026ac0 <ip4_frag>
  93480. 8025c7e: 4603 mov r3, r0
  93481. 8025c80: e006 b.n 8025c90 <ip4_output_if_src+0x140>
  93482. }
  93483. #endif /* IP_FRAG */
  93484. LWIP_DEBUGF(IP_DEBUG, ("ip4_output_if: call netif->output()\n"));
  93485. return netif->output(netif, p, dest);
  93486. 8025c82: 6b3b ldr r3, [r7, #48] @ 0x30
  93487. 8025c84: 695b ldr r3, [r3, #20]
  93488. 8025c86: 687a ldr r2, [r7, #4]
  93489. 8025c88: 68f9 ldr r1, [r7, #12]
  93490. 8025c8a: 6b38 ldr r0, [r7, #48] @ 0x30
  93491. 8025c8c: 4798 blx r3
  93492. 8025c8e: 4603 mov r3, r0
  93493. }
  93494. 8025c90: 4618 mov r0, r3
  93495. 8025c92: 3720 adds r7, #32
  93496. 8025c94: 46bd mov sp, r7
  93497. 8025c96: bd80 pop {r7, pc}
  93498. 8025c98: 08031448 .word 0x08031448
  93499. 8025c9c: 0803147c .word 0x0803147c
  93500. 8025ca0: 08031488 .word 0x08031488
  93501. 8025ca4: 080314b0 .word 0x080314b0
  93502. 8025ca8: 2402b0f2 .word 0x2402b0f2
  93503. 8025cac: 08031b58 .word 0x08031b58
  93504. 08025cb0 <ip4_addr_isbroadcast_u32>:
  93505. * @param netif the network interface against which the address is checked
  93506. * @return returns non-zero if the address is a broadcast address
  93507. */
  93508. u8_t
  93509. ip4_addr_isbroadcast_u32(u32_t addr, const struct netif *netif)
  93510. {
  93511. 8025cb0: b480 push {r7}
  93512. 8025cb2: b085 sub sp, #20
  93513. 8025cb4: af00 add r7, sp, #0
  93514. 8025cb6: 6078 str r0, [r7, #4]
  93515. 8025cb8: 6039 str r1, [r7, #0]
  93516. ip4_addr_t ipaddr;
  93517. ip4_addr_set_u32(&ipaddr, addr);
  93518. 8025cba: 687b ldr r3, [r7, #4]
  93519. 8025cbc: 60fb str r3, [r7, #12]
  93520. /* all ones (broadcast) or all zeroes (old skool broadcast) */
  93521. if ((~addr == IPADDR_ANY) ||
  93522. 8025cbe: 687b ldr r3, [r7, #4]
  93523. 8025cc0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  93524. 8025cc4: d002 beq.n 8025ccc <ip4_addr_isbroadcast_u32+0x1c>
  93525. 8025cc6: 687b ldr r3, [r7, #4]
  93526. 8025cc8: 2b00 cmp r3, #0
  93527. 8025cca: d101 bne.n 8025cd0 <ip4_addr_isbroadcast_u32+0x20>
  93528. (addr == IPADDR_ANY)) {
  93529. return 1;
  93530. 8025ccc: 2301 movs r3, #1
  93531. 8025cce: e02a b.n 8025d26 <ip4_addr_isbroadcast_u32+0x76>
  93532. /* no broadcast support on this network interface? */
  93533. } else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0) {
  93534. 8025cd0: 683b ldr r3, [r7, #0]
  93535. 8025cd2: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  93536. 8025cd6: f003 0302 and.w r3, r3, #2
  93537. 8025cda: 2b00 cmp r3, #0
  93538. 8025cdc: d101 bne.n 8025ce2 <ip4_addr_isbroadcast_u32+0x32>
  93539. /* the given address cannot be a broadcast address
  93540. * nor can we check against any broadcast addresses */
  93541. return 0;
  93542. 8025cde: 2300 movs r3, #0
  93543. 8025ce0: e021 b.n 8025d26 <ip4_addr_isbroadcast_u32+0x76>
  93544. /* address matches network interface address exactly? => no broadcast */
  93545. } else if (addr == ip4_addr_get_u32(netif_ip4_addr(netif))) {
  93546. 8025ce2: 683b ldr r3, [r7, #0]
  93547. 8025ce4: 3304 adds r3, #4
  93548. 8025ce6: 681b ldr r3, [r3, #0]
  93549. 8025ce8: 687a ldr r2, [r7, #4]
  93550. 8025cea: 429a cmp r2, r3
  93551. 8025cec: d101 bne.n 8025cf2 <ip4_addr_isbroadcast_u32+0x42>
  93552. return 0;
  93553. 8025cee: 2300 movs r3, #0
  93554. 8025cf0: e019 b.n 8025d26 <ip4_addr_isbroadcast_u32+0x76>
  93555. /* on the same (sub) network... */
  93556. } else if (ip4_addr_netcmp(&ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif))
  93557. 8025cf2: 68fa ldr r2, [r7, #12]
  93558. 8025cf4: 683b ldr r3, [r7, #0]
  93559. 8025cf6: 3304 adds r3, #4
  93560. 8025cf8: 681b ldr r3, [r3, #0]
  93561. 8025cfa: 405a eors r2, r3
  93562. 8025cfc: 683b ldr r3, [r7, #0]
  93563. 8025cfe: 3308 adds r3, #8
  93564. 8025d00: 681b ldr r3, [r3, #0]
  93565. 8025d02: 4013 ands r3, r2
  93566. 8025d04: 2b00 cmp r3, #0
  93567. 8025d06: d10d bne.n 8025d24 <ip4_addr_isbroadcast_u32+0x74>
  93568. /* ...and host identifier bits are all ones? =>... */
  93569. && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) ==
  93570. 8025d08: 683b ldr r3, [r7, #0]
  93571. 8025d0a: 3308 adds r3, #8
  93572. 8025d0c: 681b ldr r3, [r3, #0]
  93573. 8025d0e: 43da mvns r2, r3
  93574. 8025d10: 687b ldr r3, [r7, #4]
  93575. 8025d12: 401a ands r2, r3
  93576. (IPADDR_BROADCAST & ~ip4_addr_get_u32(netif_ip4_netmask(netif))))) {
  93577. 8025d14: 683b ldr r3, [r7, #0]
  93578. 8025d16: 3308 adds r3, #8
  93579. 8025d18: 681b ldr r3, [r3, #0]
  93580. 8025d1a: 43db mvns r3, r3
  93581. && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) ==
  93582. 8025d1c: 429a cmp r2, r3
  93583. 8025d1e: d101 bne.n 8025d24 <ip4_addr_isbroadcast_u32+0x74>
  93584. /* => network broadcast address */
  93585. return 1;
  93586. 8025d20: 2301 movs r3, #1
  93587. 8025d22: e000 b.n 8025d26 <ip4_addr_isbroadcast_u32+0x76>
  93588. } else {
  93589. return 0;
  93590. 8025d24: 2300 movs r3, #0
  93591. }
  93592. }
  93593. 8025d26: 4618 mov r0, r3
  93594. 8025d28: 3714 adds r7, #20
  93595. 8025d2a: 46bd mov sp, r7
  93596. 8025d2c: f85d 7b04 ldr.w r7, [sp], #4
  93597. 8025d30: 4770 bx lr
  93598. 08025d32 <ipaddr_addr>:
  93599. * @param cp IP address in ascii representation (e.g. "127.0.0.1")
  93600. * @return ip address in network order
  93601. */
  93602. u32_t
  93603. ipaddr_addr(const char *cp)
  93604. {
  93605. 8025d32: b580 push {r7, lr}
  93606. 8025d34: b084 sub sp, #16
  93607. 8025d36: af00 add r7, sp, #0
  93608. 8025d38: 6078 str r0, [r7, #4]
  93609. ip4_addr_t val;
  93610. if (ip4addr_aton(cp, &val)) {
  93611. 8025d3a: f107 030c add.w r3, r7, #12
  93612. 8025d3e: 4619 mov r1, r3
  93613. 8025d40: 6878 ldr r0, [r7, #4]
  93614. 8025d42: f000 f80b bl 8025d5c <ip4addr_aton>
  93615. 8025d46: 4603 mov r3, r0
  93616. 8025d48: 2b00 cmp r3, #0
  93617. 8025d4a: d001 beq.n 8025d50 <ipaddr_addr+0x1e>
  93618. return ip4_addr_get_u32(&val);
  93619. 8025d4c: 68fb ldr r3, [r7, #12]
  93620. 8025d4e: e001 b.n 8025d54 <ipaddr_addr+0x22>
  93621. }
  93622. return (IPADDR_NONE);
  93623. 8025d50: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  93624. }
  93625. 8025d54: 4618 mov r0, r3
  93626. 8025d56: 3710 adds r7, #16
  93627. 8025d58: 46bd mov sp, r7
  93628. 8025d5a: bd80 pop {r7, pc}
  93629. 08025d5c <ip4addr_aton>:
  93630. * @param addr pointer to which to save the ip address in network order
  93631. * @return 1 if cp could be converted to addr, 0 on failure
  93632. */
  93633. int
  93634. ip4addr_aton(const char *cp, ip4_addr_t *addr)
  93635. {
  93636. 8025d5c: b580 push {r7, lr}
  93637. 8025d5e: b08a sub sp, #40 @ 0x28
  93638. 8025d60: af00 add r7, sp, #0
  93639. 8025d62: 6078 str r0, [r7, #4]
  93640. 8025d64: 6039 str r1, [r7, #0]
  93641. u32_t val;
  93642. u8_t base;
  93643. char c;
  93644. u32_t parts[4];
  93645. u32_t *pp = parts;
  93646. 8025d66: f107 030c add.w r3, r7, #12
  93647. 8025d6a: 61fb str r3, [r7, #28]
  93648. c = *cp;
  93649. 8025d6c: 687b ldr r3, [r7, #4]
  93650. 8025d6e: 781b ldrb r3, [r3, #0]
  93651. 8025d70: f887 3022 strb.w r3, [r7, #34] @ 0x22
  93652. /*
  93653. * Collect number up to ``.''.
  93654. * Values are specified as for C:
  93655. * 0x=hex, 0=octal, 1-9=decimal.
  93656. */
  93657. if (!lwip_isdigit(c)) {
  93658. 8025d74: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  93659. 8025d78: 3301 adds r3, #1
  93660. 8025d7a: 4a89 ldr r2, [pc, #548] @ (8025fa0 <ip4addr_aton+0x244>)
  93661. 8025d7c: 4413 add r3, r2
  93662. 8025d7e: 781b ldrb r3, [r3, #0]
  93663. 8025d80: f003 0304 and.w r3, r3, #4
  93664. 8025d84: 2b00 cmp r3, #0
  93665. 8025d86: d101 bne.n 8025d8c <ip4addr_aton+0x30>
  93666. return 0;
  93667. 8025d88: 2300 movs r3, #0
  93668. 8025d8a: e105 b.n 8025f98 <ip4addr_aton+0x23c>
  93669. }
  93670. val = 0;
  93671. 8025d8c: 2300 movs r3, #0
  93672. 8025d8e: 627b str r3, [r7, #36] @ 0x24
  93673. base = 10;
  93674. 8025d90: 230a movs r3, #10
  93675. 8025d92: f887 3023 strb.w r3, [r7, #35] @ 0x23
  93676. if (c == '0') {
  93677. 8025d96: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  93678. 8025d9a: 2b30 cmp r3, #48 @ 0x30
  93679. 8025d9c: d11c bne.n 8025dd8 <ip4addr_aton+0x7c>
  93680. c = *++cp;
  93681. 8025d9e: 687b ldr r3, [r7, #4]
  93682. 8025da0: 3301 adds r3, #1
  93683. 8025da2: 607b str r3, [r7, #4]
  93684. 8025da4: 687b ldr r3, [r7, #4]
  93685. 8025da6: 781b ldrb r3, [r3, #0]
  93686. 8025da8: f887 3022 strb.w r3, [r7, #34] @ 0x22
  93687. if (c == 'x' || c == 'X') {
  93688. 8025dac: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  93689. 8025db0: 2b78 cmp r3, #120 @ 0x78
  93690. 8025db2: d003 beq.n 8025dbc <ip4addr_aton+0x60>
  93691. 8025db4: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  93692. 8025db8: 2b58 cmp r3, #88 @ 0x58
  93693. 8025dba: d10a bne.n 8025dd2 <ip4addr_aton+0x76>
  93694. base = 16;
  93695. 8025dbc: 2310 movs r3, #16
  93696. 8025dbe: f887 3023 strb.w r3, [r7, #35] @ 0x23
  93697. c = *++cp;
  93698. 8025dc2: 687b ldr r3, [r7, #4]
  93699. 8025dc4: 3301 adds r3, #1
  93700. 8025dc6: 607b str r3, [r7, #4]
  93701. 8025dc8: 687b ldr r3, [r7, #4]
  93702. 8025dca: 781b ldrb r3, [r3, #0]
  93703. 8025dcc: f887 3022 strb.w r3, [r7, #34] @ 0x22
  93704. 8025dd0: e002 b.n 8025dd8 <ip4addr_aton+0x7c>
  93705. } else {
  93706. base = 8;
  93707. 8025dd2: 2308 movs r3, #8
  93708. 8025dd4: f887 3023 strb.w r3, [r7, #35] @ 0x23
  93709. }
  93710. }
  93711. for (;;) {
  93712. if (lwip_isdigit(c)) {
  93713. 8025dd8: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  93714. 8025ddc: 3301 adds r3, #1
  93715. 8025dde: 4a70 ldr r2, [pc, #448] @ (8025fa0 <ip4addr_aton+0x244>)
  93716. 8025de0: 4413 add r3, r2
  93717. 8025de2: 781b ldrb r3, [r3, #0]
  93718. 8025de4: f003 0304 and.w r3, r3, #4
  93719. 8025de8: 2b00 cmp r3, #0
  93720. 8025dea: d011 beq.n 8025e10 <ip4addr_aton+0xb4>
  93721. val = (val * base) + (u32_t)(c - '0');
  93722. 8025dec: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  93723. 8025df0: 6a7a ldr r2, [r7, #36] @ 0x24
  93724. 8025df2: fb03 f202 mul.w r2, r3, r2
  93725. 8025df6: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  93726. 8025dfa: 4413 add r3, r2
  93727. 8025dfc: 3b30 subs r3, #48 @ 0x30
  93728. 8025dfe: 627b str r3, [r7, #36] @ 0x24
  93729. c = *++cp;
  93730. 8025e00: 687b ldr r3, [r7, #4]
  93731. 8025e02: 3301 adds r3, #1
  93732. 8025e04: 607b str r3, [r7, #4]
  93733. 8025e06: 687b ldr r3, [r7, #4]
  93734. 8025e08: 781b ldrb r3, [r3, #0]
  93735. 8025e0a: f887 3022 strb.w r3, [r7, #34] @ 0x22
  93736. 8025e0e: e7e3 b.n 8025dd8 <ip4addr_aton+0x7c>
  93737. } else if (base == 16 && lwip_isxdigit(c)) {
  93738. 8025e10: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  93739. 8025e14: 2b10 cmp r3, #16
  93740. 8025e16: d127 bne.n 8025e68 <ip4addr_aton+0x10c>
  93741. 8025e18: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  93742. 8025e1c: 3301 adds r3, #1
  93743. 8025e1e: 4a60 ldr r2, [pc, #384] @ (8025fa0 <ip4addr_aton+0x244>)
  93744. 8025e20: 4413 add r3, r2
  93745. 8025e22: 781b ldrb r3, [r3, #0]
  93746. 8025e24: f003 0344 and.w r3, r3, #68 @ 0x44
  93747. 8025e28: 2b00 cmp r3, #0
  93748. 8025e2a: d01d beq.n 8025e68 <ip4addr_aton+0x10c>
  93749. val = (val << 4) | (u32_t)(c + 10 - (lwip_islower(c) ? 'a' : 'A'));
  93750. 8025e2c: 6a7b ldr r3, [r7, #36] @ 0x24
  93751. 8025e2e: 011b lsls r3, r3, #4
  93752. 8025e30: f897 2022 ldrb.w r2, [r7, #34] @ 0x22
  93753. 8025e34: f102 010a add.w r1, r2, #10
  93754. 8025e38: f897 2022 ldrb.w r2, [r7, #34] @ 0x22
  93755. 8025e3c: 3201 adds r2, #1
  93756. 8025e3e: 4858 ldr r0, [pc, #352] @ (8025fa0 <ip4addr_aton+0x244>)
  93757. 8025e40: 4402 add r2, r0
  93758. 8025e42: 7812 ldrb r2, [r2, #0]
  93759. 8025e44: f002 0203 and.w r2, r2, #3
  93760. 8025e48: 2a02 cmp r2, #2
  93761. 8025e4a: d101 bne.n 8025e50 <ip4addr_aton+0xf4>
  93762. 8025e4c: 2261 movs r2, #97 @ 0x61
  93763. 8025e4e: e000 b.n 8025e52 <ip4addr_aton+0xf6>
  93764. 8025e50: 2241 movs r2, #65 @ 0x41
  93765. 8025e52: 1a8a subs r2, r1, r2
  93766. 8025e54: 4313 orrs r3, r2
  93767. 8025e56: 627b str r3, [r7, #36] @ 0x24
  93768. c = *++cp;
  93769. 8025e58: 687b ldr r3, [r7, #4]
  93770. 8025e5a: 3301 adds r3, #1
  93771. 8025e5c: 607b str r3, [r7, #4]
  93772. 8025e5e: 687b ldr r3, [r7, #4]
  93773. 8025e60: 781b ldrb r3, [r3, #0]
  93774. 8025e62: f887 3022 strb.w r3, [r7, #34] @ 0x22
  93775. if (lwip_isdigit(c)) {
  93776. 8025e66: e7b7 b.n 8025dd8 <ip4addr_aton+0x7c>
  93777. } else {
  93778. break;
  93779. }
  93780. }
  93781. if (c == '.') {
  93782. 8025e68: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  93783. 8025e6c: 2b2e cmp r3, #46 @ 0x2e
  93784. 8025e6e: d114 bne.n 8025e9a <ip4addr_aton+0x13e>
  93785. * Internet format:
  93786. * a.b.c.d
  93787. * a.b.c (with c treated as 16 bits)
  93788. * a.b (with b treated as 24 bits)
  93789. */
  93790. if (pp >= parts + 3) {
  93791. 8025e70: f107 030c add.w r3, r7, #12
  93792. 8025e74: 330c adds r3, #12
  93793. 8025e76: 69fa ldr r2, [r7, #28]
  93794. 8025e78: 429a cmp r2, r3
  93795. 8025e7a: d301 bcc.n 8025e80 <ip4addr_aton+0x124>
  93796. return 0;
  93797. 8025e7c: 2300 movs r3, #0
  93798. 8025e7e: e08b b.n 8025f98 <ip4addr_aton+0x23c>
  93799. }
  93800. *pp++ = val;
  93801. 8025e80: 69fb ldr r3, [r7, #28]
  93802. 8025e82: 1d1a adds r2, r3, #4
  93803. 8025e84: 61fa str r2, [r7, #28]
  93804. 8025e86: 6a7a ldr r2, [r7, #36] @ 0x24
  93805. 8025e88: 601a str r2, [r3, #0]
  93806. c = *++cp;
  93807. 8025e8a: 687b ldr r3, [r7, #4]
  93808. 8025e8c: 3301 adds r3, #1
  93809. 8025e8e: 607b str r3, [r7, #4]
  93810. 8025e90: 687b ldr r3, [r7, #4]
  93811. 8025e92: 781b ldrb r3, [r3, #0]
  93812. 8025e94: f887 3022 strb.w r3, [r7, #34] @ 0x22
  93813. if (!lwip_isdigit(c)) {
  93814. 8025e98: e76c b.n 8025d74 <ip4addr_aton+0x18>
  93815. } else {
  93816. break;
  93817. 8025e9a: bf00 nop
  93818. }
  93819. }
  93820. /*
  93821. * Check for trailing characters.
  93822. */
  93823. if (c != '\0' && !lwip_isspace(c)) {
  93824. 8025e9c: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  93825. 8025ea0: 2b00 cmp r3, #0
  93826. 8025ea2: d00b beq.n 8025ebc <ip4addr_aton+0x160>
  93827. 8025ea4: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  93828. 8025ea8: 3301 adds r3, #1
  93829. 8025eaa: 4a3d ldr r2, [pc, #244] @ (8025fa0 <ip4addr_aton+0x244>)
  93830. 8025eac: 4413 add r3, r2
  93831. 8025eae: 781b ldrb r3, [r3, #0]
  93832. 8025eb0: f003 0308 and.w r3, r3, #8
  93833. 8025eb4: 2b00 cmp r3, #0
  93834. 8025eb6: d101 bne.n 8025ebc <ip4addr_aton+0x160>
  93835. return 0;
  93836. 8025eb8: 2300 movs r3, #0
  93837. 8025eba: e06d b.n 8025f98 <ip4addr_aton+0x23c>
  93838. }
  93839. /*
  93840. * Concoct the address according to
  93841. * the number of parts specified.
  93842. */
  93843. switch (pp - parts + 1) {
  93844. 8025ebc: f107 030c add.w r3, r7, #12
  93845. 8025ec0: 69fa ldr r2, [r7, #28]
  93846. 8025ec2: 1ad3 subs r3, r2, r3
  93847. 8025ec4: 109b asrs r3, r3, #2
  93848. 8025ec6: 3301 adds r3, #1
  93849. 8025ec8: 2b04 cmp r3, #4
  93850. 8025eca: d853 bhi.n 8025f74 <ip4addr_aton+0x218>
  93851. 8025ecc: a201 add r2, pc, #4 @ (adr r2, 8025ed4 <ip4addr_aton+0x178>)
  93852. 8025ece: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  93853. 8025ed2: bf00 nop
  93854. 8025ed4: 08025ee9 .word 0x08025ee9
  93855. 8025ed8: 08025f83 .word 0x08025f83
  93856. 8025edc: 08025eed .word 0x08025eed
  93857. 8025ee0: 08025f0f .word 0x08025f0f
  93858. 8025ee4: 08025f3d .word 0x08025f3d
  93859. case 0:
  93860. return 0; /* initial nondigit */
  93861. 8025ee8: 2300 movs r3, #0
  93862. 8025eea: e055 b.n 8025f98 <ip4addr_aton+0x23c>
  93863. case 1: /* a -- 32 bits */
  93864. break;
  93865. case 2: /* a.b -- 8.24 bits */
  93866. if (val > 0xffffffUL) {
  93867. 8025eec: 6a7b ldr r3, [r7, #36] @ 0x24
  93868. 8025eee: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  93869. 8025ef2: d301 bcc.n 8025ef8 <ip4addr_aton+0x19c>
  93870. return 0;
  93871. 8025ef4: 2300 movs r3, #0
  93872. 8025ef6: e04f b.n 8025f98 <ip4addr_aton+0x23c>
  93873. }
  93874. if (parts[0] > 0xff) {
  93875. 8025ef8: 68fb ldr r3, [r7, #12]
  93876. 8025efa: 2bff cmp r3, #255 @ 0xff
  93877. 8025efc: d901 bls.n 8025f02 <ip4addr_aton+0x1a6>
  93878. return 0;
  93879. 8025efe: 2300 movs r3, #0
  93880. 8025f00: e04a b.n 8025f98 <ip4addr_aton+0x23c>
  93881. }
  93882. val |= parts[0] << 24;
  93883. 8025f02: 68fb ldr r3, [r7, #12]
  93884. 8025f04: 061b lsls r3, r3, #24
  93885. 8025f06: 6a7a ldr r2, [r7, #36] @ 0x24
  93886. 8025f08: 4313 orrs r3, r2
  93887. 8025f0a: 627b str r3, [r7, #36] @ 0x24
  93888. break;
  93889. 8025f0c: e03a b.n 8025f84 <ip4addr_aton+0x228>
  93890. case 3: /* a.b.c -- 8.8.16 bits */
  93891. if (val > 0xffff) {
  93892. 8025f0e: 6a7b ldr r3, [r7, #36] @ 0x24
  93893. 8025f10: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  93894. 8025f14: d301 bcc.n 8025f1a <ip4addr_aton+0x1be>
  93895. return 0;
  93896. 8025f16: 2300 movs r3, #0
  93897. 8025f18: e03e b.n 8025f98 <ip4addr_aton+0x23c>
  93898. }
  93899. if ((parts[0] > 0xff) || (parts[1] > 0xff)) {
  93900. 8025f1a: 68fb ldr r3, [r7, #12]
  93901. 8025f1c: 2bff cmp r3, #255 @ 0xff
  93902. 8025f1e: d802 bhi.n 8025f26 <ip4addr_aton+0x1ca>
  93903. 8025f20: 693b ldr r3, [r7, #16]
  93904. 8025f22: 2bff cmp r3, #255 @ 0xff
  93905. 8025f24: d901 bls.n 8025f2a <ip4addr_aton+0x1ce>
  93906. return 0;
  93907. 8025f26: 2300 movs r3, #0
  93908. 8025f28: e036 b.n 8025f98 <ip4addr_aton+0x23c>
  93909. }
  93910. val |= (parts[0] << 24) | (parts[1] << 16);
  93911. 8025f2a: 68fb ldr r3, [r7, #12]
  93912. 8025f2c: 061a lsls r2, r3, #24
  93913. 8025f2e: 693b ldr r3, [r7, #16]
  93914. 8025f30: 041b lsls r3, r3, #16
  93915. 8025f32: 4313 orrs r3, r2
  93916. 8025f34: 6a7a ldr r2, [r7, #36] @ 0x24
  93917. 8025f36: 4313 orrs r3, r2
  93918. 8025f38: 627b str r3, [r7, #36] @ 0x24
  93919. break;
  93920. 8025f3a: e023 b.n 8025f84 <ip4addr_aton+0x228>
  93921. case 4: /* a.b.c.d -- 8.8.8.8 bits */
  93922. if (val > 0xff) {
  93923. 8025f3c: 6a7b ldr r3, [r7, #36] @ 0x24
  93924. 8025f3e: 2bff cmp r3, #255 @ 0xff
  93925. 8025f40: d901 bls.n 8025f46 <ip4addr_aton+0x1ea>
  93926. return 0;
  93927. 8025f42: 2300 movs r3, #0
  93928. 8025f44: e028 b.n 8025f98 <ip4addr_aton+0x23c>
  93929. }
  93930. if ((parts[0] > 0xff) || (parts[1] > 0xff) || (parts[2] > 0xff)) {
  93931. 8025f46: 68fb ldr r3, [r7, #12]
  93932. 8025f48: 2bff cmp r3, #255 @ 0xff
  93933. 8025f4a: d805 bhi.n 8025f58 <ip4addr_aton+0x1fc>
  93934. 8025f4c: 693b ldr r3, [r7, #16]
  93935. 8025f4e: 2bff cmp r3, #255 @ 0xff
  93936. 8025f50: d802 bhi.n 8025f58 <ip4addr_aton+0x1fc>
  93937. 8025f52: 697b ldr r3, [r7, #20]
  93938. 8025f54: 2bff cmp r3, #255 @ 0xff
  93939. 8025f56: d901 bls.n 8025f5c <ip4addr_aton+0x200>
  93940. return 0;
  93941. 8025f58: 2300 movs r3, #0
  93942. 8025f5a: e01d b.n 8025f98 <ip4addr_aton+0x23c>
  93943. }
  93944. val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8);
  93945. 8025f5c: 68fb ldr r3, [r7, #12]
  93946. 8025f5e: 061a lsls r2, r3, #24
  93947. 8025f60: 693b ldr r3, [r7, #16]
  93948. 8025f62: 041b lsls r3, r3, #16
  93949. 8025f64: 431a orrs r2, r3
  93950. 8025f66: 697b ldr r3, [r7, #20]
  93951. 8025f68: 021b lsls r3, r3, #8
  93952. 8025f6a: 4313 orrs r3, r2
  93953. 8025f6c: 6a7a ldr r2, [r7, #36] @ 0x24
  93954. 8025f6e: 4313 orrs r3, r2
  93955. 8025f70: 627b str r3, [r7, #36] @ 0x24
  93956. break;
  93957. 8025f72: e007 b.n 8025f84 <ip4addr_aton+0x228>
  93958. default:
  93959. LWIP_ASSERT("unhandled", 0);
  93960. 8025f74: 4b0b ldr r3, [pc, #44] @ (8025fa4 <ip4addr_aton+0x248>)
  93961. 8025f76: 22f9 movs r2, #249 @ 0xf9
  93962. 8025f78: 490b ldr r1, [pc, #44] @ (8025fa8 <ip4addr_aton+0x24c>)
  93963. 8025f7a: 480c ldr r0, [pc, #48] @ (8025fac <ip4addr_aton+0x250>)
  93964. 8025f7c: f004 fbee bl 802a75c <iprintf>
  93965. break;
  93966. 8025f80: e000 b.n 8025f84 <ip4addr_aton+0x228>
  93967. break;
  93968. 8025f82: bf00 nop
  93969. }
  93970. if (addr) {
  93971. 8025f84: 683b ldr r3, [r7, #0]
  93972. 8025f86: 2b00 cmp r3, #0
  93973. 8025f88: d005 beq.n 8025f96 <ip4addr_aton+0x23a>
  93974. ip4_addr_set_u32(addr, lwip_htonl(val));
  93975. 8025f8a: 6a78 ldr r0, [r7, #36] @ 0x24
  93976. 8025f8c: f7f3 fca1 bl 80198d2 <lwip_htonl>
  93977. 8025f90: 4602 mov r2, r0
  93978. 8025f92: 683b ldr r3, [r7, #0]
  93979. 8025f94: 601a str r2, [r3, #0]
  93980. }
  93981. return 1;
  93982. 8025f96: 2301 movs r3, #1
  93983. }
  93984. 8025f98: 4618 mov r0, r3
  93985. 8025f9a: 3728 adds r7, #40 @ 0x28
  93986. 8025f9c: 46bd mov sp, r7
  93987. 8025f9e: bd80 pop {r7, pc}
  93988. 8025fa0: 08031c30 .word 0x08031c30
  93989. 8025fa4: 080314e0 .word 0x080314e0
  93990. 8025fa8: 0803151c .word 0x0803151c
  93991. 8025fac: 08031528 .word 0x08031528
  93992. 08025fb0 <ip4addr_ntoa>:
  93993. * @return pointer to a global static (!) buffer that holds the ASCII
  93994. * representation of addr
  93995. */
  93996. char *
  93997. ip4addr_ntoa(const ip4_addr_t *addr)
  93998. {
  93999. 8025fb0: b580 push {r7, lr}
  94000. 8025fb2: b082 sub sp, #8
  94001. 8025fb4: af00 add r7, sp, #0
  94002. 8025fb6: 6078 str r0, [r7, #4]
  94003. static char str[IP4ADDR_STRLEN_MAX];
  94004. return ip4addr_ntoa_r(addr, str, IP4ADDR_STRLEN_MAX);
  94005. 8025fb8: 2210 movs r2, #16
  94006. 8025fba: 4904 ldr r1, [pc, #16] @ (8025fcc <ip4addr_ntoa+0x1c>)
  94007. 8025fbc: 6878 ldr r0, [r7, #4]
  94008. 8025fbe: f000 f807 bl 8025fd0 <ip4addr_ntoa_r>
  94009. 8025fc2: 4603 mov r3, r0
  94010. }
  94011. 8025fc4: 4618 mov r0, r3
  94012. 8025fc6: 3708 adds r7, #8
  94013. 8025fc8: 46bd mov sp, r7
  94014. 8025fca: bd80 pop {r7, pc}
  94015. 8025fcc: 2402b0f4 .word 0x2402b0f4
  94016. 08025fd0 <ip4addr_ntoa_r>:
  94017. * @return either pointer to buf which now holds the ASCII
  94018. * representation of addr or NULL if buf was too small
  94019. */
  94020. char *
  94021. ip4addr_ntoa_r(const ip4_addr_t *addr, char *buf, int buflen)
  94022. {
  94023. 8025fd0: b480 push {r7}
  94024. 8025fd2: b08d sub sp, #52 @ 0x34
  94025. 8025fd4: af00 add r7, sp, #0
  94026. 8025fd6: 60f8 str r0, [r7, #12]
  94027. 8025fd8: 60b9 str r1, [r7, #8]
  94028. 8025fda: 607a str r2, [r7, #4]
  94029. char *rp;
  94030. u8_t *ap;
  94031. u8_t rem;
  94032. u8_t n;
  94033. u8_t i;
  94034. int len = 0;
  94035. 8025fdc: 2300 movs r3, #0
  94036. 8025fde: 623b str r3, [r7, #32]
  94037. s_addr = ip4_addr_get_u32(addr);
  94038. 8025fe0: 68fb ldr r3, [r7, #12]
  94039. 8025fe2: 681b ldr r3, [r3, #0]
  94040. 8025fe4: 61bb str r3, [r7, #24]
  94041. rp = buf;
  94042. 8025fe6: 68bb ldr r3, [r7, #8]
  94043. 8025fe8: 62fb str r3, [r7, #44] @ 0x2c
  94044. ap = (u8_t *)&s_addr;
  94045. 8025fea: f107 0318 add.w r3, r7, #24
  94046. 8025fee: 62bb str r3, [r7, #40] @ 0x28
  94047. for (n = 0; n < 4; n++) {
  94048. 8025ff0: 2300 movs r3, #0
  94049. 8025ff2: f887 3027 strb.w r3, [r7, #39] @ 0x27
  94050. 8025ff6: e058 b.n 80260aa <ip4addr_ntoa_r+0xda>
  94051. i = 0;
  94052. 8025ff8: 2300 movs r3, #0
  94053. 8025ffa: f887 3026 strb.w r3, [r7, #38] @ 0x26
  94054. do {
  94055. rem = *ap % (u8_t)10;
  94056. 8025ffe: 6abb ldr r3, [r7, #40] @ 0x28
  94057. 8026000: 781a ldrb r2, [r3, #0]
  94058. 8026002: 4b32 ldr r3, [pc, #200] @ (80260cc <ip4addr_ntoa_r+0xfc>)
  94059. 8026004: fba3 1302 umull r1, r3, r3, r2
  94060. 8026008: 08d9 lsrs r1, r3, #3
  94061. 802600a: 460b mov r3, r1
  94062. 802600c: 009b lsls r3, r3, #2
  94063. 802600e: 440b add r3, r1
  94064. 8026010: 005b lsls r3, r3, #1
  94065. 8026012: 1ad3 subs r3, r2, r3
  94066. 8026014: 77fb strb r3, [r7, #31]
  94067. *ap /= (u8_t)10;
  94068. 8026016: 6abb ldr r3, [r7, #40] @ 0x28
  94069. 8026018: 781b ldrb r3, [r3, #0]
  94070. 802601a: 4a2c ldr r2, [pc, #176] @ (80260cc <ip4addr_ntoa_r+0xfc>)
  94071. 802601c: fba2 2303 umull r2, r3, r2, r3
  94072. 8026020: 08db lsrs r3, r3, #3
  94073. 8026022: b2da uxtb r2, r3
  94074. 8026024: 6abb ldr r3, [r7, #40] @ 0x28
  94075. 8026026: 701a strb r2, [r3, #0]
  94076. inv[i++] = (char)('0' + rem);
  94077. 8026028: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  94078. 802602c: 1c5a adds r2, r3, #1
  94079. 802602e: f887 2026 strb.w r2, [r7, #38] @ 0x26
  94080. 8026032: 4619 mov r1, r3
  94081. 8026034: 7ffb ldrb r3, [r7, #31]
  94082. 8026036: 3330 adds r3, #48 @ 0x30
  94083. 8026038: b2da uxtb r2, r3
  94084. 802603a: f101 0330 add.w r3, r1, #48 @ 0x30
  94085. 802603e: 443b add r3, r7
  94086. 8026040: f803 2c1c strb.w r2, [r3, #-28]
  94087. } while (*ap);
  94088. 8026044: 6abb ldr r3, [r7, #40] @ 0x28
  94089. 8026046: 781b ldrb r3, [r3, #0]
  94090. 8026048: 2b00 cmp r3, #0
  94091. 802604a: d1d8 bne.n 8025ffe <ip4addr_ntoa_r+0x2e>
  94092. while (i--) {
  94093. 802604c: e011 b.n 8026072 <ip4addr_ntoa_r+0xa2>
  94094. if (len++ >= buflen) {
  94095. 802604e: 6a3b ldr r3, [r7, #32]
  94096. 8026050: 1c5a adds r2, r3, #1
  94097. 8026052: 623a str r2, [r7, #32]
  94098. 8026054: 687a ldr r2, [r7, #4]
  94099. 8026056: 429a cmp r2, r3
  94100. 8026058: dc01 bgt.n 802605e <ip4addr_ntoa_r+0x8e>
  94101. return NULL;
  94102. 802605a: 2300 movs r3, #0
  94103. 802605c: e030 b.n 80260c0 <ip4addr_ntoa_r+0xf0>
  94104. }
  94105. *rp++ = inv[i];
  94106. 802605e: f897 2026 ldrb.w r2, [r7, #38] @ 0x26
  94107. 8026062: 6afb ldr r3, [r7, #44] @ 0x2c
  94108. 8026064: 1c59 adds r1, r3, #1
  94109. 8026066: 62f9 str r1, [r7, #44] @ 0x2c
  94110. 8026068: 3230 adds r2, #48 @ 0x30
  94111. 802606a: 443a add r2, r7
  94112. 802606c: f812 2c1c ldrb.w r2, [r2, #-28]
  94113. 8026070: 701a strb r2, [r3, #0]
  94114. while (i--) {
  94115. 8026072: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  94116. 8026076: 1e5a subs r2, r3, #1
  94117. 8026078: f887 2026 strb.w r2, [r7, #38] @ 0x26
  94118. 802607c: 2b00 cmp r3, #0
  94119. 802607e: d1e6 bne.n 802604e <ip4addr_ntoa_r+0x7e>
  94120. }
  94121. if (len++ >= buflen) {
  94122. 8026080: 6a3b ldr r3, [r7, #32]
  94123. 8026082: 1c5a adds r2, r3, #1
  94124. 8026084: 623a str r2, [r7, #32]
  94125. 8026086: 687a ldr r2, [r7, #4]
  94126. 8026088: 429a cmp r2, r3
  94127. 802608a: dc01 bgt.n 8026090 <ip4addr_ntoa_r+0xc0>
  94128. return NULL;
  94129. 802608c: 2300 movs r3, #0
  94130. 802608e: e017 b.n 80260c0 <ip4addr_ntoa_r+0xf0>
  94131. }
  94132. *rp++ = '.';
  94133. 8026090: 6afb ldr r3, [r7, #44] @ 0x2c
  94134. 8026092: 1c5a adds r2, r3, #1
  94135. 8026094: 62fa str r2, [r7, #44] @ 0x2c
  94136. 8026096: 222e movs r2, #46 @ 0x2e
  94137. 8026098: 701a strb r2, [r3, #0]
  94138. ap++;
  94139. 802609a: 6abb ldr r3, [r7, #40] @ 0x28
  94140. 802609c: 3301 adds r3, #1
  94141. 802609e: 62bb str r3, [r7, #40] @ 0x28
  94142. for (n = 0; n < 4; n++) {
  94143. 80260a0: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  94144. 80260a4: 3301 adds r3, #1
  94145. 80260a6: f887 3027 strb.w r3, [r7, #39] @ 0x27
  94146. 80260aa: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  94147. 80260ae: 2b03 cmp r3, #3
  94148. 80260b0: d9a2 bls.n 8025ff8 <ip4addr_ntoa_r+0x28>
  94149. }
  94150. *--rp = 0;
  94151. 80260b2: 6afb ldr r3, [r7, #44] @ 0x2c
  94152. 80260b4: 3b01 subs r3, #1
  94153. 80260b6: 62fb str r3, [r7, #44] @ 0x2c
  94154. 80260b8: 6afb ldr r3, [r7, #44] @ 0x2c
  94155. 80260ba: 2200 movs r2, #0
  94156. 80260bc: 701a strb r2, [r3, #0]
  94157. return buf;
  94158. 80260be: 68bb ldr r3, [r7, #8]
  94159. }
  94160. 80260c0: 4618 mov r0, r3
  94161. 80260c2: 3734 adds r7, #52 @ 0x34
  94162. 80260c4: 46bd mov sp, r7
  94163. 80260c6: f85d 7b04 ldr.w r7, [sp], #4
  94164. 80260ca: 4770 bx lr
  94165. 80260cc: cccccccd .word 0xcccccccd
  94166. 080260d0 <ip_reass_tmr>:
  94167. *
  94168. * Should be called every 1000 msec (defined by IP_TMR_INTERVAL).
  94169. */
  94170. void
  94171. ip_reass_tmr(void)
  94172. {
  94173. 80260d0: b580 push {r7, lr}
  94174. 80260d2: b084 sub sp, #16
  94175. 80260d4: af00 add r7, sp, #0
  94176. struct ip_reassdata *r, *prev = NULL;
  94177. 80260d6: 2300 movs r3, #0
  94178. 80260d8: 60bb str r3, [r7, #8]
  94179. r = reassdatagrams;
  94180. 80260da: 4b12 ldr r3, [pc, #72] @ (8026124 <ip_reass_tmr+0x54>)
  94181. 80260dc: 681b ldr r3, [r3, #0]
  94182. 80260de: 60fb str r3, [r7, #12]
  94183. while (r != NULL) {
  94184. 80260e0: e018 b.n 8026114 <ip_reass_tmr+0x44>
  94185. /* Decrement the timer. Once it reaches 0,
  94186. * clean up the incomplete fragment assembly */
  94187. if (r->timer > 0) {
  94188. 80260e2: 68fb ldr r3, [r7, #12]
  94189. 80260e4: 7fdb ldrb r3, [r3, #31]
  94190. 80260e6: 2b00 cmp r3, #0
  94191. 80260e8: d00b beq.n 8026102 <ip_reass_tmr+0x32>
  94192. r->timer--;
  94193. 80260ea: 68fb ldr r3, [r7, #12]
  94194. 80260ec: 7fdb ldrb r3, [r3, #31]
  94195. 80260ee: 3b01 subs r3, #1
  94196. 80260f0: b2da uxtb r2, r3
  94197. 80260f2: 68fb ldr r3, [r7, #12]
  94198. 80260f4: 77da strb r2, [r3, #31]
  94199. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer dec %"U16_F"\n", (u16_t)r->timer));
  94200. prev = r;
  94201. 80260f6: 68fb ldr r3, [r7, #12]
  94202. 80260f8: 60bb str r3, [r7, #8]
  94203. r = r->next;
  94204. 80260fa: 68fb ldr r3, [r7, #12]
  94205. 80260fc: 681b ldr r3, [r3, #0]
  94206. 80260fe: 60fb str r3, [r7, #12]
  94207. 8026100: e008 b.n 8026114 <ip_reass_tmr+0x44>
  94208. } else {
  94209. /* reassembly timed out */
  94210. struct ip_reassdata *tmp;
  94211. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer timed out\n"));
  94212. tmp = r;
  94213. 8026102: 68fb ldr r3, [r7, #12]
  94214. 8026104: 607b str r3, [r7, #4]
  94215. /* get the next pointer before freeing */
  94216. r = r->next;
  94217. 8026106: 68fb ldr r3, [r7, #12]
  94218. 8026108: 681b ldr r3, [r3, #0]
  94219. 802610a: 60fb str r3, [r7, #12]
  94220. /* free the helper struct and all enqueued pbufs */
  94221. ip_reass_free_complete_datagram(tmp, prev);
  94222. 802610c: 68b9 ldr r1, [r7, #8]
  94223. 802610e: 6878 ldr r0, [r7, #4]
  94224. 8026110: f000 f80a bl 8026128 <ip_reass_free_complete_datagram>
  94225. while (r != NULL) {
  94226. 8026114: 68fb ldr r3, [r7, #12]
  94227. 8026116: 2b00 cmp r3, #0
  94228. 8026118: d1e3 bne.n 80260e2 <ip_reass_tmr+0x12>
  94229. }
  94230. }
  94231. }
  94232. 802611a: bf00 nop
  94233. 802611c: bf00 nop
  94234. 802611e: 3710 adds r7, #16
  94235. 8026120: 46bd mov sp, r7
  94236. 8026122: bd80 pop {r7, pc}
  94237. 8026124: 2402b104 .word 0x2402b104
  94238. 08026128 <ip_reass_free_complete_datagram>:
  94239. * @param prev the previous datagram in the linked list
  94240. * @return the number of pbufs freed
  94241. */
  94242. static int
  94243. ip_reass_free_complete_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev)
  94244. {
  94245. 8026128: b580 push {r7, lr}
  94246. 802612a: b088 sub sp, #32
  94247. 802612c: af00 add r7, sp, #0
  94248. 802612e: 6078 str r0, [r7, #4]
  94249. 8026130: 6039 str r1, [r7, #0]
  94250. u16_t pbufs_freed = 0;
  94251. 8026132: 2300 movs r3, #0
  94252. 8026134: 83fb strh r3, [r7, #30]
  94253. u16_t clen;
  94254. struct pbuf *p;
  94255. struct ip_reass_helper *iprh;
  94256. LWIP_ASSERT("prev != ipr", prev != ipr);
  94257. 8026136: 683a ldr r2, [r7, #0]
  94258. 8026138: 687b ldr r3, [r7, #4]
  94259. 802613a: 429a cmp r2, r3
  94260. 802613c: d105 bne.n 802614a <ip_reass_free_complete_datagram+0x22>
  94261. 802613e: 4b45 ldr r3, [pc, #276] @ (8026254 <ip_reass_free_complete_datagram+0x12c>)
  94262. 8026140: 22ab movs r2, #171 @ 0xab
  94263. 8026142: 4945 ldr r1, [pc, #276] @ (8026258 <ip_reass_free_complete_datagram+0x130>)
  94264. 8026144: 4845 ldr r0, [pc, #276] @ (802625c <ip_reass_free_complete_datagram+0x134>)
  94265. 8026146: f004 fb09 bl 802a75c <iprintf>
  94266. if (prev != NULL) {
  94267. 802614a: 683b ldr r3, [r7, #0]
  94268. 802614c: 2b00 cmp r3, #0
  94269. 802614e: d00a beq.n 8026166 <ip_reass_free_complete_datagram+0x3e>
  94270. LWIP_ASSERT("prev->next == ipr", prev->next == ipr);
  94271. 8026150: 683b ldr r3, [r7, #0]
  94272. 8026152: 681b ldr r3, [r3, #0]
  94273. 8026154: 687a ldr r2, [r7, #4]
  94274. 8026156: 429a cmp r2, r3
  94275. 8026158: d005 beq.n 8026166 <ip_reass_free_complete_datagram+0x3e>
  94276. 802615a: 4b3e ldr r3, [pc, #248] @ (8026254 <ip_reass_free_complete_datagram+0x12c>)
  94277. 802615c: 22ad movs r2, #173 @ 0xad
  94278. 802615e: 4940 ldr r1, [pc, #256] @ (8026260 <ip_reass_free_complete_datagram+0x138>)
  94279. 8026160: 483e ldr r0, [pc, #248] @ (802625c <ip_reass_free_complete_datagram+0x134>)
  94280. 8026162: f004 fafb bl 802a75c <iprintf>
  94281. }
  94282. MIB2_STATS_INC(mib2.ipreasmfails);
  94283. #if LWIP_ICMP
  94284. iprh = (struct ip_reass_helper *)ipr->p->payload;
  94285. 8026166: 687b ldr r3, [r7, #4]
  94286. 8026168: 685b ldr r3, [r3, #4]
  94287. 802616a: 685b ldr r3, [r3, #4]
  94288. 802616c: 617b str r3, [r7, #20]
  94289. if (iprh->start == 0) {
  94290. 802616e: 697b ldr r3, [r7, #20]
  94291. 8026170: 889b ldrh r3, [r3, #4]
  94292. 8026172: b29b uxth r3, r3
  94293. 8026174: 2b00 cmp r3, #0
  94294. 8026176: d12a bne.n 80261ce <ip_reass_free_complete_datagram+0xa6>
  94295. /* The first fragment was received, send ICMP time exceeded. */
  94296. /* First, de-queue the first pbuf from r->p. */
  94297. p = ipr->p;
  94298. 8026178: 687b ldr r3, [r7, #4]
  94299. 802617a: 685b ldr r3, [r3, #4]
  94300. 802617c: 61bb str r3, [r7, #24]
  94301. ipr->p = iprh->next_pbuf;
  94302. 802617e: 697b ldr r3, [r7, #20]
  94303. 8026180: 681a ldr r2, [r3, #0]
  94304. 8026182: 687b ldr r3, [r7, #4]
  94305. 8026184: 605a str r2, [r3, #4]
  94306. /* Then, copy the original header into it. */
  94307. SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN);
  94308. 8026186: 69bb ldr r3, [r7, #24]
  94309. 8026188: 6858 ldr r0, [r3, #4]
  94310. 802618a: 687b ldr r3, [r7, #4]
  94311. 802618c: 3308 adds r3, #8
  94312. 802618e: 2214 movs r2, #20
  94313. 8026190: 4619 mov r1, r3
  94314. 8026192: f004 fd6c bl 802ac6e <memcpy>
  94315. icmp_time_exceeded(p, ICMP_TE_FRAG);
  94316. 8026196: 2101 movs r1, #1
  94317. 8026198: 69b8 ldr r0, [r7, #24]
  94318. 802619a: f7ff fa4d bl 8025638 <icmp_time_exceeded>
  94319. clen = pbuf_clen(p);
  94320. 802619e: 69b8 ldr r0, [r7, #24]
  94321. 80261a0: f7f5 f8f2 bl 801b388 <pbuf_clen>
  94322. 80261a4: 4603 mov r3, r0
  94323. 80261a6: 827b strh r3, [r7, #18]
  94324. LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff);
  94325. 80261a8: 8bfa ldrh r2, [r7, #30]
  94326. 80261aa: 8a7b ldrh r3, [r7, #18]
  94327. 80261ac: 4413 add r3, r2
  94328. 80261ae: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  94329. 80261b2: db05 blt.n 80261c0 <ip_reass_free_complete_datagram+0x98>
  94330. 80261b4: 4b27 ldr r3, [pc, #156] @ (8026254 <ip_reass_free_complete_datagram+0x12c>)
  94331. 80261b6: 22bc movs r2, #188 @ 0xbc
  94332. 80261b8: 492a ldr r1, [pc, #168] @ (8026264 <ip_reass_free_complete_datagram+0x13c>)
  94333. 80261ba: 4828 ldr r0, [pc, #160] @ (802625c <ip_reass_free_complete_datagram+0x134>)
  94334. 80261bc: f004 face bl 802a75c <iprintf>
  94335. pbufs_freed = (u16_t)(pbufs_freed + clen);
  94336. 80261c0: 8bfa ldrh r2, [r7, #30]
  94337. 80261c2: 8a7b ldrh r3, [r7, #18]
  94338. 80261c4: 4413 add r3, r2
  94339. 80261c6: 83fb strh r3, [r7, #30]
  94340. pbuf_free(p);
  94341. 80261c8: 69b8 ldr r0, [r7, #24]
  94342. 80261ca: f7f5 f84f bl 801b26c <pbuf_free>
  94343. }
  94344. #endif /* LWIP_ICMP */
  94345. /* First, free all received pbufs. The individual pbufs need to be released
  94346. separately as they have not yet been chained */
  94347. p = ipr->p;
  94348. 80261ce: 687b ldr r3, [r7, #4]
  94349. 80261d0: 685b ldr r3, [r3, #4]
  94350. 80261d2: 61bb str r3, [r7, #24]
  94351. while (p != NULL) {
  94352. 80261d4: e01f b.n 8026216 <ip_reass_free_complete_datagram+0xee>
  94353. struct pbuf *pcur;
  94354. iprh = (struct ip_reass_helper *)p->payload;
  94355. 80261d6: 69bb ldr r3, [r7, #24]
  94356. 80261d8: 685b ldr r3, [r3, #4]
  94357. 80261da: 617b str r3, [r7, #20]
  94358. pcur = p;
  94359. 80261dc: 69bb ldr r3, [r7, #24]
  94360. 80261de: 60fb str r3, [r7, #12]
  94361. /* get the next pointer before freeing */
  94362. p = iprh->next_pbuf;
  94363. 80261e0: 697b ldr r3, [r7, #20]
  94364. 80261e2: 681b ldr r3, [r3, #0]
  94365. 80261e4: 61bb str r3, [r7, #24]
  94366. clen = pbuf_clen(pcur);
  94367. 80261e6: 68f8 ldr r0, [r7, #12]
  94368. 80261e8: f7f5 f8ce bl 801b388 <pbuf_clen>
  94369. 80261ec: 4603 mov r3, r0
  94370. 80261ee: 827b strh r3, [r7, #18]
  94371. LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff);
  94372. 80261f0: 8bfa ldrh r2, [r7, #30]
  94373. 80261f2: 8a7b ldrh r3, [r7, #18]
  94374. 80261f4: 4413 add r3, r2
  94375. 80261f6: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  94376. 80261fa: db05 blt.n 8026208 <ip_reass_free_complete_datagram+0xe0>
  94377. 80261fc: 4b15 ldr r3, [pc, #84] @ (8026254 <ip_reass_free_complete_datagram+0x12c>)
  94378. 80261fe: 22cc movs r2, #204 @ 0xcc
  94379. 8026200: 4918 ldr r1, [pc, #96] @ (8026264 <ip_reass_free_complete_datagram+0x13c>)
  94380. 8026202: 4816 ldr r0, [pc, #88] @ (802625c <ip_reass_free_complete_datagram+0x134>)
  94381. 8026204: f004 faaa bl 802a75c <iprintf>
  94382. pbufs_freed = (u16_t)(pbufs_freed + clen);
  94383. 8026208: 8bfa ldrh r2, [r7, #30]
  94384. 802620a: 8a7b ldrh r3, [r7, #18]
  94385. 802620c: 4413 add r3, r2
  94386. 802620e: 83fb strh r3, [r7, #30]
  94387. pbuf_free(pcur);
  94388. 8026210: 68f8 ldr r0, [r7, #12]
  94389. 8026212: f7f5 f82b bl 801b26c <pbuf_free>
  94390. while (p != NULL) {
  94391. 8026216: 69bb ldr r3, [r7, #24]
  94392. 8026218: 2b00 cmp r3, #0
  94393. 802621a: d1dc bne.n 80261d6 <ip_reass_free_complete_datagram+0xae>
  94394. }
  94395. /* Then, unchain the struct ip_reassdata from the list and free it. */
  94396. ip_reass_dequeue_datagram(ipr, prev);
  94397. 802621c: 6839 ldr r1, [r7, #0]
  94398. 802621e: 6878 ldr r0, [r7, #4]
  94399. 8026220: f000 f8c2 bl 80263a8 <ip_reass_dequeue_datagram>
  94400. LWIP_ASSERT("ip_reass_pbufcount >= pbufs_freed", ip_reass_pbufcount >= pbufs_freed);
  94401. 8026224: 4b10 ldr r3, [pc, #64] @ (8026268 <ip_reass_free_complete_datagram+0x140>)
  94402. 8026226: 881b ldrh r3, [r3, #0]
  94403. 8026228: 8bfa ldrh r2, [r7, #30]
  94404. 802622a: 429a cmp r2, r3
  94405. 802622c: d905 bls.n 802623a <ip_reass_free_complete_datagram+0x112>
  94406. 802622e: 4b09 ldr r3, [pc, #36] @ (8026254 <ip_reass_free_complete_datagram+0x12c>)
  94407. 8026230: 22d2 movs r2, #210 @ 0xd2
  94408. 8026232: 490e ldr r1, [pc, #56] @ (802626c <ip_reass_free_complete_datagram+0x144>)
  94409. 8026234: 4809 ldr r0, [pc, #36] @ (802625c <ip_reass_free_complete_datagram+0x134>)
  94410. 8026236: f004 fa91 bl 802a75c <iprintf>
  94411. ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - pbufs_freed);
  94412. 802623a: 4b0b ldr r3, [pc, #44] @ (8026268 <ip_reass_free_complete_datagram+0x140>)
  94413. 802623c: 881a ldrh r2, [r3, #0]
  94414. 802623e: 8bfb ldrh r3, [r7, #30]
  94415. 8026240: 1ad3 subs r3, r2, r3
  94416. 8026242: b29a uxth r2, r3
  94417. 8026244: 4b08 ldr r3, [pc, #32] @ (8026268 <ip_reass_free_complete_datagram+0x140>)
  94418. 8026246: 801a strh r2, [r3, #0]
  94419. return pbufs_freed;
  94420. 8026248: 8bfb ldrh r3, [r7, #30]
  94421. }
  94422. 802624a: 4618 mov r0, r3
  94423. 802624c: 3720 adds r7, #32
  94424. 802624e: 46bd mov sp, r7
  94425. 8026250: bd80 pop {r7, pc}
  94426. 8026252: bf00 nop
  94427. 8026254: 08031550 .word 0x08031550
  94428. 8026258: 0803158c .word 0x0803158c
  94429. 802625c: 08031598 .word 0x08031598
  94430. 8026260: 080315c0 .word 0x080315c0
  94431. 8026264: 080315d4 .word 0x080315d4
  94432. 8026268: 2402b108 .word 0x2402b108
  94433. 802626c: 080315f4 .word 0x080315f4
  94434. 08026270 <ip_reass_remove_oldest_datagram>:
  94435. * (used for freeing other datagrams if not enough space)
  94436. * @return the number of pbufs freed
  94437. */
  94438. static int
  94439. ip_reass_remove_oldest_datagram(struct ip_hdr *fraghdr, int pbufs_needed)
  94440. {
  94441. 8026270: b580 push {r7, lr}
  94442. 8026272: b08a sub sp, #40 @ 0x28
  94443. 8026274: af00 add r7, sp, #0
  94444. 8026276: 6078 str r0, [r7, #4]
  94445. 8026278: 6039 str r1, [r7, #0]
  94446. /* @todo Can't we simply remove the last datagram in the
  94447. * linked list behind reassdatagrams?
  94448. */
  94449. struct ip_reassdata *r, *oldest, *prev, *oldest_prev;
  94450. int pbufs_freed = 0, pbufs_freed_current;
  94451. 802627a: 2300 movs r3, #0
  94452. 802627c: 617b str r3, [r7, #20]
  94453. int other_datagrams;
  94454. /* Free datagrams until being allowed to enqueue 'pbufs_needed' pbufs,
  94455. * but don't free the datagram that 'fraghdr' belongs to! */
  94456. do {
  94457. oldest = NULL;
  94458. 802627e: 2300 movs r3, #0
  94459. 8026280: 623b str r3, [r7, #32]
  94460. prev = NULL;
  94461. 8026282: 2300 movs r3, #0
  94462. 8026284: 61fb str r3, [r7, #28]
  94463. oldest_prev = NULL;
  94464. 8026286: 2300 movs r3, #0
  94465. 8026288: 61bb str r3, [r7, #24]
  94466. other_datagrams = 0;
  94467. 802628a: 2300 movs r3, #0
  94468. 802628c: 613b str r3, [r7, #16]
  94469. r = reassdatagrams;
  94470. 802628e: 4b28 ldr r3, [pc, #160] @ (8026330 <ip_reass_remove_oldest_datagram+0xc0>)
  94471. 8026290: 681b ldr r3, [r3, #0]
  94472. 8026292: 627b str r3, [r7, #36] @ 0x24
  94473. while (r != NULL) {
  94474. 8026294: e030 b.n 80262f8 <ip_reass_remove_oldest_datagram+0x88>
  94475. if (!IP_ADDRESSES_AND_ID_MATCH(&r->iphdr, fraghdr)) {
  94476. 8026296: 6a7b ldr r3, [r7, #36] @ 0x24
  94477. 8026298: 695a ldr r2, [r3, #20]
  94478. 802629a: 687b ldr r3, [r7, #4]
  94479. 802629c: 68db ldr r3, [r3, #12]
  94480. 802629e: 429a cmp r2, r3
  94481. 80262a0: d10c bne.n 80262bc <ip_reass_remove_oldest_datagram+0x4c>
  94482. 80262a2: 6a7b ldr r3, [r7, #36] @ 0x24
  94483. 80262a4: 699a ldr r2, [r3, #24]
  94484. 80262a6: 687b ldr r3, [r7, #4]
  94485. 80262a8: 691b ldr r3, [r3, #16]
  94486. 80262aa: 429a cmp r2, r3
  94487. 80262ac: d106 bne.n 80262bc <ip_reass_remove_oldest_datagram+0x4c>
  94488. 80262ae: 6a7b ldr r3, [r7, #36] @ 0x24
  94489. 80262b0: 899a ldrh r2, [r3, #12]
  94490. 80262b2: 687b ldr r3, [r7, #4]
  94491. 80262b4: 889b ldrh r3, [r3, #4]
  94492. 80262b6: b29b uxth r3, r3
  94493. 80262b8: 429a cmp r2, r3
  94494. 80262ba: d014 beq.n 80262e6 <ip_reass_remove_oldest_datagram+0x76>
  94495. /* Not the same datagram as fraghdr */
  94496. other_datagrams++;
  94497. 80262bc: 693b ldr r3, [r7, #16]
  94498. 80262be: 3301 adds r3, #1
  94499. 80262c0: 613b str r3, [r7, #16]
  94500. if (oldest == NULL) {
  94501. 80262c2: 6a3b ldr r3, [r7, #32]
  94502. 80262c4: 2b00 cmp r3, #0
  94503. 80262c6: d104 bne.n 80262d2 <ip_reass_remove_oldest_datagram+0x62>
  94504. oldest = r;
  94505. 80262c8: 6a7b ldr r3, [r7, #36] @ 0x24
  94506. 80262ca: 623b str r3, [r7, #32]
  94507. oldest_prev = prev;
  94508. 80262cc: 69fb ldr r3, [r7, #28]
  94509. 80262ce: 61bb str r3, [r7, #24]
  94510. 80262d0: e009 b.n 80262e6 <ip_reass_remove_oldest_datagram+0x76>
  94511. } else if (r->timer <= oldest->timer) {
  94512. 80262d2: 6a7b ldr r3, [r7, #36] @ 0x24
  94513. 80262d4: 7fda ldrb r2, [r3, #31]
  94514. 80262d6: 6a3b ldr r3, [r7, #32]
  94515. 80262d8: 7fdb ldrb r3, [r3, #31]
  94516. 80262da: 429a cmp r2, r3
  94517. 80262dc: d803 bhi.n 80262e6 <ip_reass_remove_oldest_datagram+0x76>
  94518. /* older than the previous oldest */
  94519. oldest = r;
  94520. 80262de: 6a7b ldr r3, [r7, #36] @ 0x24
  94521. 80262e0: 623b str r3, [r7, #32]
  94522. oldest_prev = prev;
  94523. 80262e2: 69fb ldr r3, [r7, #28]
  94524. 80262e4: 61bb str r3, [r7, #24]
  94525. }
  94526. }
  94527. if (r->next != NULL) {
  94528. 80262e6: 6a7b ldr r3, [r7, #36] @ 0x24
  94529. 80262e8: 681b ldr r3, [r3, #0]
  94530. 80262ea: 2b00 cmp r3, #0
  94531. 80262ec: d001 beq.n 80262f2 <ip_reass_remove_oldest_datagram+0x82>
  94532. prev = r;
  94533. 80262ee: 6a7b ldr r3, [r7, #36] @ 0x24
  94534. 80262f0: 61fb str r3, [r7, #28]
  94535. }
  94536. r = r->next;
  94537. 80262f2: 6a7b ldr r3, [r7, #36] @ 0x24
  94538. 80262f4: 681b ldr r3, [r3, #0]
  94539. 80262f6: 627b str r3, [r7, #36] @ 0x24
  94540. while (r != NULL) {
  94541. 80262f8: 6a7b ldr r3, [r7, #36] @ 0x24
  94542. 80262fa: 2b00 cmp r3, #0
  94543. 80262fc: d1cb bne.n 8026296 <ip_reass_remove_oldest_datagram+0x26>
  94544. }
  94545. if (oldest != NULL) {
  94546. 80262fe: 6a3b ldr r3, [r7, #32]
  94547. 8026300: 2b00 cmp r3, #0
  94548. 8026302: d008 beq.n 8026316 <ip_reass_remove_oldest_datagram+0xa6>
  94549. pbufs_freed_current = ip_reass_free_complete_datagram(oldest, oldest_prev);
  94550. 8026304: 69b9 ldr r1, [r7, #24]
  94551. 8026306: 6a38 ldr r0, [r7, #32]
  94552. 8026308: f7ff ff0e bl 8026128 <ip_reass_free_complete_datagram>
  94553. 802630c: 60f8 str r0, [r7, #12]
  94554. pbufs_freed += pbufs_freed_current;
  94555. 802630e: 697a ldr r2, [r7, #20]
  94556. 8026310: 68fb ldr r3, [r7, #12]
  94557. 8026312: 4413 add r3, r2
  94558. 8026314: 617b str r3, [r7, #20]
  94559. }
  94560. } while ((pbufs_freed < pbufs_needed) && (other_datagrams > 1));
  94561. 8026316: 697a ldr r2, [r7, #20]
  94562. 8026318: 683b ldr r3, [r7, #0]
  94563. 802631a: 429a cmp r2, r3
  94564. 802631c: da02 bge.n 8026324 <ip_reass_remove_oldest_datagram+0xb4>
  94565. 802631e: 693b ldr r3, [r7, #16]
  94566. 8026320: 2b01 cmp r3, #1
  94567. 8026322: dcac bgt.n 802627e <ip_reass_remove_oldest_datagram+0xe>
  94568. return pbufs_freed;
  94569. 8026324: 697b ldr r3, [r7, #20]
  94570. }
  94571. 8026326: 4618 mov r0, r3
  94572. 8026328: 3728 adds r7, #40 @ 0x28
  94573. 802632a: 46bd mov sp, r7
  94574. 802632c: bd80 pop {r7, pc}
  94575. 802632e: bf00 nop
  94576. 8026330: 2402b104 .word 0x2402b104
  94577. 08026334 <ip_reass_enqueue_new_datagram>:
  94578. * @param clen number of pbufs needed to enqueue (used for freeing other datagrams if not enough space)
  94579. * @return A pointer to the queue location into which the fragment was enqueued
  94580. */
  94581. static struct ip_reassdata *
  94582. ip_reass_enqueue_new_datagram(struct ip_hdr *fraghdr, int clen)
  94583. {
  94584. 8026334: b580 push {r7, lr}
  94585. 8026336: b084 sub sp, #16
  94586. 8026338: af00 add r7, sp, #0
  94587. 802633a: 6078 str r0, [r7, #4]
  94588. 802633c: 6039 str r1, [r7, #0]
  94589. #if ! IP_REASS_FREE_OLDEST
  94590. LWIP_UNUSED_ARG(clen);
  94591. #endif
  94592. /* No matching previous fragment found, allocate a new reassdata struct */
  94593. ipr = (struct ip_reassdata *)memp_malloc(MEMP_REASSDATA);
  94594. 802633e: 2004 movs r0, #4
  94595. 8026340: f7f4 f830 bl 801a3a4 <memp_malloc>
  94596. 8026344: 60f8 str r0, [r7, #12]
  94597. if (ipr == NULL) {
  94598. 8026346: 68fb ldr r3, [r7, #12]
  94599. 8026348: 2b00 cmp r3, #0
  94600. 802634a: d110 bne.n 802636e <ip_reass_enqueue_new_datagram+0x3a>
  94601. #if IP_REASS_FREE_OLDEST
  94602. if (ip_reass_remove_oldest_datagram(fraghdr, clen) >= clen) {
  94603. 802634c: 6839 ldr r1, [r7, #0]
  94604. 802634e: 6878 ldr r0, [r7, #4]
  94605. 8026350: f7ff ff8e bl 8026270 <ip_reass_remove_oldest_datagram>
  94606. 8026354: 4602 mov r2, r0
  94607. 8026356: 683b ldr r3, [r7, #0]
  94608. 8026358: 4293 cmp r3, r2
  94609. 802635a: dc03 bgt.n 8026364 <ip_reass_enqueue_new_datagram+0x30>
  94610. ipr = (struct ip_reassdata *)memp_malloc(MEMP_REASSDATA);
  94611. 802635c: 2004 movs r0, #4
  94612. 802635e: f7f4 f821 bl 801a3a4 <memp_malloc>
  94613. 8026362: 60f8 str r0, [r7, #12]
  94614. }
  94615. if (ipr == NULL)
  94616. 8026364: 68fb ldr r3, [r7, #12]
  94617. 8026366: 2b00 cmp r3, #0
  94618. 8026368: d101 bne.n 802636e <ip_reass_enqueue_new_datagram+0x3a>
  94619. #endif /* IP_REASS_FREE_OLDEST */
  94620. {
  94621. IPFRAG_STATS_INC(ip_frag.memerr);
  94622. LWIP_DEBUGF(IP_REASS_DEBUG, ("Failed to alloc reassdata struct\n"));
  94623. return NULL;
  94624. 802636a: 2300 movs r3, #0
  94625. 802636c: e016 b.n 802639c <ip_reass_enqueue_new_datagram+0x68>
  94626. }
  94627. }
  94628. memset(ipr, 0, sizeof(struct ip_reassdata));
  94629. 802636e: 2220 movs r2, #32
  94630. 8026370: 2100 movs r1, #0
  94631. 8026372: 68f8 ldr r0, [r7, #12]
  94632. 8026374: f004 fb84 bl 802aa80 <memset>
  94633. ipr->timer = IP_REASS_MAXAGE;
  94634. 8026378: 68fb ldr r3, [r7, #12]
  94635. 802637a: 220f movs r2, #15
  94636. 802637c: 77da strb r2, [r3, #31]
  94637. /* enqueue the new structure to the front of the list */
  94638. ipr->next = reassdatagrams;
  94639. 802637e: 4b09 ldr r3, [pc, #36] @ (80263a4 <ip_reass_enqueue_new_datagram+0x70>)
  94640. 8026380: 681a ldr r2, [r3, #0]
  94641. 8026382: 68fb ldr r3, [r7, #12]
  94642. 8026384: 601a str r2, [r3, #0]
  94643. reassdatagrams = ipr;
  94644. 8026386: 4a07 ldr r2, [pc, #28] @ (80263a4 <ip_reass_enqueue_new_datagram+0x70>)
  94645. 8026388: 68fb ldr r3, [r7, #12]
  94646. 802638a: 6013 str r3, [r2, #0]
  94647. /* copy the ip header for later tests and input */
  94648. /* @todo: no ip options supported? */
  94649. SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN);
  94650. 802638c: 68fb ldr r3, [r7, #12]
  94651. 802638e: 3308 adds r3, #8
  94652. 8026390: 2214 movs r2, #20
  94653. 8026392: 6879 ldr r1, [r7, #4]
  94654. 8026394: 4618 mov r0, r3
  94655. 8026396: f004 fc6a bl 802ac6e <memcpy>
  94656. return ipr;
  94657. 802639a: 68fb ldr r3, [r7, #12]
  94658. }
  94659. 802639c: 4618 mov r0, r3
  94660. 802639e: 3710 adds r7, #16
  94661. 80263a0: 46bd mov sp, r7
  94662. 80263a2: bd80 pop {r7, pc}
  94663. 80263a4: 2402b104 .word 0x2402b104
  94664. 080263a8 <ip_reass_dequeue_datagram>:
  94665. * Dequeues a datagram from the datagram queue. Doesn't deallocate the pbufs.
  94666. * @param ipr points to the queue entry to dequeue
  94667. */
  94668. static void
  94669. ip_reass_dequeue_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev)
  94670. {
  94671. 80263a8: b580 push {r7, lr}
  94672. 80263aa: b082 sub sp, #8
  94673. 80263ac: af00 add r7, sp, #0
  94674. 80263ae: 6078 str r0, [r7, #4]
  94675. 80263b0: 6039 str r1, [r7, #0]
  94676. /* dequeue the reass struct */
  94677. if (reassdatagrams == ipr) {
  94678. 80263b2: 4b10 ldr r3, [pc, #64] @ (80263f4 <ip_reass_dequeue_datagram+0x4c>)
  94679. 80263b4: 681b ldr r3, [r3, #0]
  94680. 80263b6: 687a ldr r2, [r7, #4]
  94681. 80263b8: 429a cmp r2, r3
  94682. 80263ba: d104 bne.n 80263c6 <ip_reass_dequeue_datagram+0x1e>
  94683. /* it was the first in the list */
  94684. reassdatagrams = ipr->next;
  94685. 80263bc: 687b ldr r3, [r7, #4]
  94686. 80263be: 681b ldr r3, [r3, #0]
  94687. 80263c0: 4a0c ldr r2, [pc, #48] @ (80263f4 <ip_reass_dequeue_datagram+0x4c>)
  94688. 80263c2: 6013 str r3, [r2, #0]
  94689. 80263c4: e00d b.n 80263e2 <ip_reass_dequeue_datagram+0x3a>
  94690. } else {
  94691. /* it wasn't the first, so it must have a valid 'prev' */
  94692. LWIP_ASSERT("sanity check linked list", prev != NULL);
  94693. 80263c6: 683b ldr r3, [r7, #0]
  94694. 80263c8: 2b00 cmp r3, #0
  94695. 80263ca: d106 bne.n 80263da <ip_reass_dequeue_datagram+0x32>
  94696. 80263cc: 4b0a ldr r3, [pc, #40] @ (80263f8 <ip_reass_dequeue_datagram+0x50>)
  94697. 80263ce: f240 1245 movw r2, #325 @ 0x145
  94698. 80263d2: 490a ldr r1, [pc, #40] @ (80263fc <ip_reass_dequeue_datagram+0x54>)
  94699. 80263d4: 480a ldr r0, [pc, #40] @ (8026400 <ip_reass_dequeue_datagram+0x58>)
  94700. 80263d6: f004 f9c1 bl 802a75c <iprintf>
  94701. prev->next = ipr->next;
  94702. 80263da: 687b ldr r3, [r7, #4]
  94703. 80263dc: 681a ldr r2, [r3, #0]
  94704. 80263de: 683b ldr r3, [r7, #0]
  94705. 80263e0: 601a str r2, [r3, #0]
  94706. }
  94707. /* now we can free the ip_reassdata struct */
  94708. memp_free(MEMP_REASSDATA, ipr);
  94709. 80263e2: 6879 ldr r1, [r7, #4]
  94710. 80263e4: 2004 movs r0, #4
  94711. 80263e6: f7f4 f853 bl 801a490 <memp_free>
  94712. }
  94713. 80263ea: bf00 nop
  94714. 80263ec: 3708 adds r7, #8
  94715. 80263ee: 46bd mov sp, r7
  94716. 80263f0: bd80 pop {r7, pc}
  94717. 80263f2: bf00 nop
  94718. 80263f4: 2402b104 .word 0x2402b104
  94719. 80263f8: 08031550 .word 0x08031550
  94720. 80263fc: 08031618 .word 0x08031618
  94721. 8026400: 08031598 .word 0x08031598
  94722. 08026404 <ip_reass_chain_frag_into_datagram_and_validate>:
  94723. * @param is_last is 1 if this pbuf has MF==0 (ipr->flags not updated yet)
  94724. * @return see IP_REASS_VALIDATE_* defines
  94725. */
  94726. static int
  94727. ip_reass_chain_frag_into_datagram_and_validate(struct ip_reassdata *ipr, struct pbuf *new_p, int is_last)
  94728. {
  94729. 8026404: b580 push {r7, lr}
  94730. 8026406: b08c sub sp, #48 @ 0x30
  94731. 8026408: af00 add r7, sp, #0
  94732. 802640a: 60f8 str r0, [r7, #12]
  94733. 802640c: 60b9 str r1, [r7, #8]
  94734. 802640e: 607a str r2, [r7, #4]
  94735. struct ip_reass_helper *iprh, *iprh_tmp, *iprh_prev = NULL;
  94736. 8026410: 2300 movs r3, #0
  94737. 8026412: 62bb str r3, [r7, #40] @ 0x28
  94738. struct pbuf *q;
  94739. u16_t offset, len;
  94740. u8_t hlen;
  94741. struct ip_hdr *fraghdr;
  94742. int valid = 1;
  94743. 8026414: 2301 movs r3, #1
  94744. 8026416: 623b str r3, [r7, #32]
  94745. /* Extract length and fragment offset from current fragment */
  94746. fraghdr = (struct ip_hdr *)new_p->payload;
  94747. 8026418: 68bb ldr r3, [r7, #8]
  94748. 802641a: 685b ldr r3, [r3, #4]
  94749. 802641c: 61fb str r3, [r7, #28]
  94750. len = lwip_ntohs(IPH_LEN(fraghdr));
  94751. 802641e: 69fb ldr r3, [r7, #28]
  94752. 8026420: 885b ldrh r3, [r3, #2]
  94753. 8026422: b29b uxth r3, r3
  94754. 8026424: 4618 mov r0, r3
  94755. 8026426: f7f3 fa3f bl 80198a8 <lwip_htons>
  94756. 802642a: 4603 mov r3, r0
  94757. 802642c: 837b strh r3, [r7, #26]
  94758. hlen = IPH_HL_BYTES(fraghdr);
  94759. 802642e: 69fb ldr r3, [r7, #28]
  94760. 8026430: 781b ldrb r3, [r3, #0]
  94761. 8026432: f003 030f and.w r3, r3, #15
  94762. 8026436: b2db uxtb r3, r3
  94763. 8026438: 009b lsls r3, r3, #2
  94764. 802643a: 767b strb r3, [r7, #25]
  94765. if (hlen > len) {
  94766. 802643c: 7e7b ldrb r3, [r7, #25]
  94767. 802643e: b29b uxth r3, r3
  94768. 8026440: 8b7a ldrh r2, [r7, #26]
  94769. 8026442: 429a cmp r2, r3
  94770. 8026444: d202 bcs.n 802644c <ip_reass_chain_frag_into_datagram_and_validate+0x48>
  94771. /* invalid datagram */
  94772. return IP_REASS_VALIDATE_PBUF_DROPPED;
  94773. 8026446: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94774. 802644a: e135 b.n 80266b8 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  94775. }
  94776. len = (u16_t)(len - hlen);
  94777. 802644c: 7e7b ldrb r3, [r7, #25]
  94778. 802644e: b29b uxth r3, r3
  94779. 8026450: 8b7a ldrh r2, [r7, #26]
  94780. 8026452: 1ad3 subs r3, r2, r3
  94781. 8026454: 837b strh r3, [r7, #26]
  94782. offset = IPH_OFFSET_BYTES(fraghdr);
  94783. 8026456: 69fb ldr r3, [r7, #28]
  94784. 8026458: 88db ldrh r3, [r3, #6]
  94785. 802645a: b29b uxth r3, r3
  94786. 802645c: 4618 mov r0, r3
  94787. 802645e: f7f3 fa23 bl 80198a8 <lwip_htons>
  94788. 8026462: 4603 mov r3, r0
  94789. 8026464: f3c3 030c ubfx r3, r3, #0, #13
  94790. 8026468: b29b uxth r3, r3
  94791. 802646a: 00db lsls r3, r3, #3
  94792. 802646c: 82fb strh r3, [r7, #22]
  94793. /* overwrite the fragment's ip header from the pbuf with our helper struct,
  94794. * and setup the embedded helper structure. */
  94795. /* make sure the struct ip_reass_helper fits into the IP header */
  94796. LWIP_ASSERT("sizeof(struct ip_reass_helper) <= IP_HLEN",
  94797. sizeof(struct ip_reass_helper) <= IP_HLEN);
  94798. iprh = (struct ip_reass_helper *)new_p->payload;
  94799. 802646e: 68bb ldr r3, [r7, #8]
  94800. 8026470: 685b ldr r3, [r3, #4]
  94801. 8026472: 62fb str r3, [r7, #44] @ 0x2c
  94802. iprh->next_pbuf = NULL;
  94803. 8026474: 6afb ldr r3, [r7, #44] @ 0x2c
  94804. 8026476: 2200 movs r2, #0
  94805. 8026478: 701a strb r2, [r3, #0]
  94806. 802647a: 2200 movs r2, #0
  94807. 802647c: 705a strb r2, [r3, #1]
  94808. 802647e: 2200 movs r2, #0
  94809. 8026480: 709a strb r2, [r3, #2]
  94810. 8026482: 2200 movs r2, #0
  94811. 8026484: 70da strb r2, [r3, #3]
  94812. iprh->start = offset;
  94813. 8026486: 6afb ldr r3, [r7, #44] @ 0x2c
  94814. 8026488: 8afa ldrh r2, [r7, #22]
  94815. 802648a: 809a strh r2, [r3, #4]
  94816. iprh->end = (u16_t)(offset + len);
  94817. 802648c: 8afa ldrh r2, [r7, #22]
  94818. 802648e: 8b7b ldrh r3, [r7, #26]
  94819. 8026490: 4413 add r3, r2
  94820. 8026492: b29a uxth r2, r3
  94821. 8026494: 6afb ldr r3, [r7, #44] @ 0x2c
  94822. 8026496: 80da strh r2, [r3, #6]
  94823. if (iprh->end < offset) {
  94824. 8026498: 6afb ldr r3, [r7, #44] @ 0x2c
  94825. 802649a: 88db ldrh r3, [r3, #6]
  94826. 802649c: b29b uxth r3, r3
  94827. 802649e: 8afa ldrh r2, [r7, #22]
  94828. 80264a0: 429a cmp r2, r3
  94829. 80264a2: d902 bls.n 80264aa <ip_reass_chain_frag_into_datagram_and_validate+0xa6>
  94830. /* u16_t overflow, cannot handle this */
  94831. return IP_REASS_VALIDATE_PBUF_DROPPED;
  94832. 80264a4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94833. 80264a8: e106 b.n 80266b8 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  94834. }
  94835. /* Iterate through until we either get to the end of the list (append),
  94836. * or we find one with a larger offset (insert). */
  94837. for (q = ipr->p; q != NULL;) {
  94838. 80264aa: 68fb ldr r3, [r7, #12]
  94839. 80264ac: 685b ldr r3, [r3, #4]
  94840. 80264ae: 627b str r3, [r7, #36] @ 0x24
  94841. 80264b0: e068 b.n 8026584 <ip_reass_chain_frag_into_datagram_and_validate+0x180>
  94842. iprh_tmp = (struct ip_reass_helper *)q->payload;
  94843. 80264b2: 6a7b ldr r3, [r7, #36] @ 0x24
  94844. 80264b4: 685b ldr r3, [r3, #4]
  94845. 80264b6: 613b str r3, [r7, #16]
  94846. if (iprh->start < iprh_tmp->start) {
  94847. 80264b8: 6afb ldr r3, [r7, #44] @ 0x2c
  94848. 80264ba: 889b ldrh r3, [r3, #4]
  94849. 80264bc: b29a uxth r2, r3
  94850. 80264be: 693b ldr r3, [r7, #16]
  94851. 80264c0: 889b ldrh r3, [r3, #4]
  94852. 80264c2: b29b uxth r3, r3
  94853. 80264c4: 429a cmp r2, r3
  94854. 80264c6: d235 bcs.n 8026534 <ip_reass_chain_frag_into_datagram_and_validate+0x130>
  94855. /* the new pbuf should be inserted before this */
  94856. iprh->next_pbuf = q;
  94857. 80264c8: 6afb ldr r3, [r7, #44] @ 0x2c
  94858. 80264ca: 6a7a ldr r2, [r7, #36] @ 0x24
  94859. 80264cc: 601a str r2, [r3, #0]
  94860. if (iprh_prev != NULL) {
  94861. 80264ce: 6abb ldr r3, [r7, #40] @ 0x28
  94862. 80264d0: 2b00 cmp r3, #0
  94863. 80264d2: d020 beq.n 8026516 <ip_reass_chain_frag_into_datagram_and_validate+0x112>
  94864. /* not the fragment with the lowest offset */
  94865. #if IP_REASS_CHECK_OVERLAP
  94866. if ((iprh->start < iprh_prev->end) || (iprh->end > iprh_tmp->start)) {
  94867. 80264d4: 6afb ldr r3, [r7, #44] @ 0x2c
  94868. 80264d6: 889b ldrh r3, [r3, #4]
  94869. 80264d8: b29a uxth r2, r3
  94870. 80264da: 6abb ldr r3, [r7, #40] @ 0x28
  94871. 80264dc: 88db ldrh r3, [r3, #6]
  94872. 80264de: b29b uxth r3, r3
  94873. 80264e0: 429a cmp r2, r3
  94874. 80264e2: d307 bcc.n 80264f4 <ip_reass_chain_frag_into_datagram_and_validate+0xf0>
  94875. 80264e4: 6afb ldr r3, [r7, #44] @ 0x2c
  94876. 80264e6: 88db ldrh r3, [r3, #6]
  94877. 80264e8: b29a uxth r2, r3
  94878. 80264ea: 693b ldr r3, [r7, #16]
  94879. 80264ec: 889b ldrh r3, [r3, #4]
  94880. 80264ee: b29b uxth r3, r3
  94881. 80264f0: 429a cmp r2, r3
  94882. 80264f2: d902 bls.n 80264fa <ip_reass_chain_frag_into_datagram_and_validate+0xf6>
  94883. /* fragment overlaps with previous or following, throw away */
  94884. return IP_REASS_VALIDATE_PBUF_DROPPED;
  94885. 80264f4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94886. 80264f8: e0de b.n 80266b8 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  94887. }
  94888. #endif /* IP_REASS_CHECK_OVERLAP */
  94889. iprh_prev->next_pbuf = new_p;
  94890. 80264fa: 6abb ldr r3, [r7, #40] @ 0x28
  94891. 80264fc: 68ba ldr r2, [r7, #8]
  94892. 80264fe: 601a str r2, [r3, #0]
  94893. if (iprh_prev->end != iprh->start) {
  94894. 8026500: 6abb ldr r3, [r7, #40] @ 0x28
  94895. 8026502: 88db ldrh r3, [r3, #6]
  94896. 8026504: b29a uxth r2, r3
  94897. 8026506: 6afb ldr r3, [r7, #44] @ 0x2c
  94898. 8026508: 889b ldrh r3, [r3, #4]
  94899. 802650a: b29b uxth r3, r3
  94900. 802650c: 429a cmp r2, r3
  94901. 802650e: d03d beq.n 802658c <ip_reass_chain_frag_into_datagram_and_validate+0x188>
  94902. /* There is a fragment missing between the current
  94903. * and the previous fragment */
  94904. valid = 0;
  94905. 8026510: 2300 movs r3, #0
  94906. 8026512: 623b str r3, [r7, #32]
  94907. }
  94908. #endif /* IP_REASS_CHECK_OVERLAP */
  94909. /* fragment with the lowest offset */
  94910. ipr->p = new_p;
  94911. }
  94912. break;
  94913. 8026514: e03a b.n 802658c <ip_reass_chain_frag_into_datagram_and_validate+0x188>
  94914. if (iprh->end > iprh_tmp->start) {
  94915. 8026516: 6afb ldr r3, [r7, #44] @ 0x2c
  94916. 8026518: 88db ldrh r3, [r3, #6]
  94917. 802651a: b29a uxth r2, r3
  94918. 802651c: 693b ldr r3, [r7, #16]
  94919. 802651e: 889b ldrh r3, [r3, #4]
  94920. 8026520: b29b uxth r3, r3
  94921. 8026522: 429a cmp r2, r3
  94922. 8026524: d902 bls.n 802652c <ip_reass_chain_frag_into_datagram_and_validate+0x128>
  94923. return IP_REASS_VALIDATE_PBUF_DROPPED;
  94924. 8026526: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94925. 802652a: e0c5 b.n 80266b8 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  94926. ipr->p = new_p;
  94927. 802652c: 68fb ldr r3, [r7, #12]
  94928. 802652e: 68ba ldr r2, [r7, #8]
  94929. 8026530: 605a str r2, [r3, #4]
  94930. break;
  94931. 8026532: e02b b.n 802658c <ip_reass_chain_frag_into_datagram_and_validate+0x188>
  94932. } else if (iprh->start == iprh_tmp->start) {
  94933. 8026534: 6afb ldr r3, [r7, #44] @ 0x2c
  94934. 8026536: 889b ldrh r3, [r3, #4]
  94935. 8026538: b29a uxth r2, r3
  94936. 802653a: 693b ldr r3, [r7, #16]
  94937. 802653c: 889b ldrh r3, [r3, #4]
  94938. 802653e: b29b uxth r3, r3
  94939. 8026540: 429a cmp r2, r3
  94940. 8026542: d102 bne.n 802654a <ip_reass_chain_frag_into_datagram_and_validate+0x146>
  94941. /* received the same datagram twice: no need to keep the datagram */
  94942. return IP_REASS_VALIDATE_PBUF_DROPPED;
  94943. 8026544: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94944. 8026548: e0b6 b.n 80266b8 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  94945. #if IP_REASS_CHECK_OVERLAP
  94946. } else if (iprh->start < iprh_tmp->end) {
  94947. 802654a: 6afb ldr r3, [r7, #44] @ 0x2c
  94948. 802654c: 889b ldrh r3, [r3, #4]
  94949. 802654e: b29a uxth r2, r3
  94950. 8026550: 693b ldr r3, [r7, #16]
  94951. 8026552: 88db ldrh r3, [r3, #6]
  94952. 8026554: b29b uxth r3, r3
  94953. 8026556: 429a cmp r2, r3
  94954. 8026558: d202 bcs.n 8026560 <ip_reass_chain_frag_into_datagram_and_validate+0x15c>
  94955. /* overlap: no need to keep the new datagram */
  94956. return IP_REASS_VALIDATE_PBUF_DROPPED;
  94957. 802655a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94958. 802655e: e0ab b.n 80266b8 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  94959. #endif /* IP_REASS_CHECK_OVERLAP */
  94960. } else {
  94961. /* Check if the fragments received so far have no holes. */
  94962. if (iprh_prev != NULL) {
  94963. 8026560: 6abb ldr r3, [r7, #40] @ 0x28
  94964. 8026562: 2b00 cmp r3, #0
  94965. 8026564: d009 beq.n 802657a <ip_reass_chain_frag_into_datagram_and_validate+0x176>
  94966. if (iprh_prev->end != iprh_tmp->start) {
  94967. 8026566: 6abb ldr r3, [r7, #40] @ 0x28
  94968. 8026568: 88db ldrh r3, [r3, #6]
  94969. 802656a: b29a uxth r2, r3
  94970. 802656c: 693b ldr r3, [r7, #16]
  94971. 802656e: 889b ldrh r3, [r3, #4]
  94972. 8026570: b29b uxth r3, r3
  94973. 8026572: 429a cmp r2, r3
  94974. 8026574: d001 beq.n 802657a <ip_reass_chain_frag_into_datagram_and_validate+0x176>
  94975. /* There is a fragment missing between the current
  94976. * and the previous fragment */
  94977. valid = 0;
  94978. 8026576: 2300 movs r3, #0
  94979. 8026578: 623b str r3, [r7, #32]
  94980. }
  94981. }
  94982. }
  94983. q = iprh_tmp->next_pbuf;
  94984. 802657a: 693b ldr r3, [r7, #16]
  94985. 802657c: 681b ldr r3, [r3, #0]
  94986. 802657e: 627b str r3, [r7, #36] @ 0x24
  94987. iprh_prev = iprh_tmp;
  94988. 8026580: 693b ldr r3, [r7, #16]
  94989. 8026582: 62bb str r3, [r7, #40] @ 0x28
  94990. for (q = ipr->p; q != NULL;) {
  94991. 8026584: 6a7b ldr r3, [r7, #36] @ 0x24
  94992. 8026586: 2b00 cmp r3, #0
  94993. 8026588: d193 bne.n 80264b2 <ip_reass_chain_frag_into_datagram_and_validate+0xae>
  94994. 802658a: e000 b.n 802658e <ip_reass_chain_frag_into_datagram_and_validate+0x18a>
  94995. break;
  94996. 802658c: bf00 nop
  94997. }
  94998. /* If q is NULL, then we made it to the end of the list. Determine what to do now */
  94999. if (q == NULL) {
  95000. 802658e: 6a7b ldr r3, [r7, #36] @ 0x24
  95001. 8026590: 2b00 cmp r3, #0
  95002. 8026592: d12d bne.n 80265f0 <ip_reass_chain_frag_into_datagram_and_validate+0x1ec>
  95003. if (iprh_prev != NULL) {
  95004. 8026594: 6abb ldr r3, [r7, #40] @ 0x28
  95005. 8026596: 2b00 cmp r3, #0
  95006. 8026598: d01c beq.n 80265d4 <ip_reass_chain_frag_into_datagram_and_validate+0x1d0>
  95007. /* this is (for now), the fragment with the highest offset:
  95008. * chain it to the last fragment */
  95009. #if IP_REASS_CHECK_OVERLAP
  95010. LWIP_ASSERT("check fragments don't overlap", iprh_prev->end <= iprh->start);
  95011. 802659a: 6abb ldr r3, [r7, #40] @ 0x28
  95012. 802659c: 88db ldrh r3, [r3, #6]
  95013. 802659e: b29a uxth r2, r3
  95014. 80265a0: 6afb ldr r3, [r7, #44] @ 0x2c
  95015. 80265a2: 889b ldrh r3, [r3, #4]
  95016. 80265a4: b29b uxth r3, r3
  95017. 80265a6: 429a cmp r2, r3
  95018. 80265a8: d906 bls.n 80265b8 <ip_reass_chain_frag_into_datagram_and_validate+0x1b4>
  95019. 80265aa: 4b45 ldr r3, [pc, #276] @ (80266c0 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  95020. 80265ac: f44f 72db mov.w r2, #438 @ 0x1b6
  95021. 80265b0: 4944 ldr r1, [pc, #272] @ (80266c4 <ip_reass_chain_frag_into_datagram_and_validate+0x2c0>)
  95022. 80265b2: 4845 ldr r0, [pc, #276] @ (80266c8 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  95023. 80265b4: f004 f8d2 bl 802a75c <iprintf>
  95024. #endif /* IP_REASS_CHECK_OVERLAP */
  95025. iprh_prev->next_pbuf = new_p;
  95026. 80265b8: 6abb ldr r3, [r7, #40] @ 0x28
  95027. 80265ba: 68ba ldr r2, [r7, #8]
  95028. 80265bc: 601a str r2, [r3, #0]
  95029. if (iprh_prev->end != iprh->start) {
  95030. 80265be: 6abb ldr r3, [r7, #40] @ 0x28
  95031. 80265c0: 88db ldrh r3, [r3, #6]
  95032. 80265c2: b29a uxth r2, r3
  95033. 80265c4: 6afb ldr r3, [r7, #44] @ 0x2c
  95034. 80265c6: 889b ldrh r3, [r3, #4]
  95035. 80265c8: b29b uxth r3, r3
  95036. 80265ca: 429a cmp r2, r3
  95037. 80265cc: d010 beq.n 80265f0 <ip_reass_chain_frag_into_datagram_and_validate+0x1ec>
  95038. valid = 0;
  95039. 80265ce: 2300 movs r3, #0
  95040. 80265d0: 623b str r3, [r7, #32]
  95041. 80265d2: e00d b.n 80265f0 <ip_reass_chain_frag_into_datagram_and_validate+0x1ec>
  95042. }
  95043. } else {
  95044. #if IP_REASS_CHECK_OVERLAP
  95045. LWIP_ASSERT("no previous fragment, this must be the first fragment!",
  95046. 80265d4: 68fb ldr r3, [r7, #12]
  95047. 80265d6: 685b ldr r3, [r3, #4]
  95048. 80265d8: 2b00 cmp r3, #0
  95049. 80265da: d006 beq.n 80265ea <ip_reass_chain_frag_into_datagram_and_validate+0x1e6>
  95050. 80265dc: 4b38 ldr r3, [pc, #224] @ (80266c0 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  95051. 80265de: f44f 72df mov.w r2, #446 @ 0x1be
  95052. 80265e2: 493a ldr r1, [pc, #232] @ (80266cc <ip_reass_chain_frag_into_datagram_and_validate+0x2c8>)
  95053. 80265e4: 4838 ldr r0, [pc, #224] @ (80266c8 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  95054. 80265e6: f004 f8b9 bl 802a75c <iprintf>
  95055. ipr->p == NULL);
  95056. #endif /* IP_REASS_CHECK_OVERLAP */
  95057. /* this is the first fragment we ever received for this ip datagram */
  95058. ipr->p = new_p;
  95059. 80265ea: 68fb ldr r3, [r7, #12]
  95060. 80265ec: 68ba ldr r2, [r7, #8]
  95061. 80265ee: 605a str r2, [r3, #4]
  95062. }
  95063. }
  95064. /* At this point, the validation part begins: */
  95065. /* If we already received the last fragment */
  95066. if (is_last || ((ipr->flags & IP_REASS_FLAG_LASTFRAG) != 0)) {
  95067. 80265f0: 687b ldr r3, [r7, #4]
  95068. 80265f2: 2b00 cmp r3, #0
  95069. 80265f4: d105 bne.n 8026602 <ip_reass_chain_frag_into_datagram_and_validate+0x1fe>
  95070. 80265f6: 68fb ldr r3, [r7, #12]
  95071. 80265f8: 7f9b ldrb r3, [r3, #30]
  95072. 80265fa: f003 0301 and.w r3, r3, #1
  95073. 80265fe: 2b00 cmp r3, #0
  95074. 8026600: d059 beq.n 80266b6 <ip_reass_chain_frag_into_datagram_and_validate+0x2b2>
  95075. /* and had no holes so far */
  95076. if (valid) {
  95077. 8026602: 6a3b ldr r3, [r7, #32]
  95078. 8026604: 2b00 cmp r3, #0
  95079. 8026606: d04f beq.n 80266a8 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  95080. /* then check if the rest of the fragments is here */
  95081. /* Check if the queue starts with the first datagram */
  95082. if ((ipr->p == NULL) || (((struct ip_reass_helper *)ipr->p->payload)->start != 0)) {
  95083. 8026608: 68fb ldr r3, [r7, #12]
  95084. 802660a: 685b ldr r3, [r3, #4]
  95085. 802660c: 2b00 cmp r3, #0
  95086. 802660e: d006 beq.n 802661e <ip_reass_chain_frag_into_datagram_and_validate+0x21a>
  95087. 8026610: 68fb ldr r3, [r7, #12]
  95088. 8026612: 685b ldr r3, [r3, #4]
  95089. 8026614: 685b ldr r3, [r3, #4]
  95090. 8026616: 889b ldrh r3, [r3, #4]
  95091. 8026618: b29b uxth r3, r3
  95092. 802661a: 2b00 cmp r3, #0
  95093. 802661c: d002 beq.n 8026624 <ip_reass_chain_frag_into_datagram_and_validate+0x220>
  95094. valid = 0;
  95095. 802661e: 2300 movs r3, #0
  95096. 8026620: 623b str r3, [r7, #32]
  95097. 8026622: e041 b.n 80266a8 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  95098. } else {
  95099. /* and check that there are no holes after this datagram */
  95100. iprh_prev = iprh;
  95101. 8026624: 6afb ldr r3, [r7, #44] @ 0x2c
  95102. 8026626: 62bb str r3, [r7, #40] @ 0x28
  95103. q = iprh->next_pbuf;
  95104. 8026628: 6afb ldr r3, [r7, #44] @ 0x2c
  95105. 802662a: 681b ldr r3, [r3, #0]
  95106. 802662c: 627b str r3, [r7, #36] @ 0x24
  95107. while (q != NULL) {
  95108. 802662e: e012 b.n 8026656 <ip_reass_chain_frag_into_datagram_and_validate+0x252>
  95109. iprh = (struct ip_reass_helper *)q->payload;
  95110. 8026630: 6a7b ldr r3, [r7, #36] @ 0x24
  95111. 8026632: 685b ldr r3, [r3, #4]
  95112. 8026634: 62fb str r3, [r7, #44] @ 0x2c
  95113. if (iprh_prev->end != iprh->start) {
  95114. 8026636: 6abb ldr r3, [r7, #40] @ 0x28
  95115. 8026638: 88db ldrh r3, [r3, #6]
  95116. 802663a: b29a uxth r2, r3
  95117. 802663c: 6afb ldr r3, [r7, #44] @ 0x2c
  95118. 802663e: 889b ldrh r3, [r3, #4]
  95119. 8026640: b29b uxth r3, r3
  95120. 8026642: 429a cmp r2, r3
  95121. 8026644: d002 beq.n 802664c <ip_reass_chain_frag_into_datagram_and_validate+0x248>
  95122. valid = 0;
  95123. 8026646: 2300 movs r3, #0
  95124. 8026648: 623b str r3, [r7, #32]
  95125. break;
  95126. 802664a: e007 b.n 802665c <ip_reass_chain_frag_into_datagram_and_validate+0x258>
  95127. }
  95128. iprh_prev = iprh;
  95129. 802664c: 6afb ldr r3, [r7, #44] @ 0x2c
  95130. 802664e: 62bb str r3, [r7, #40] @ 0x28
  95131. q = iprh->next_pbuf;
  95132. 8026650: 6afb ldr r3, [r7, #44] @ 0x2c
  95133. 8026652: 681b ldr r3, [r3, #0]
  95134. 8026654: 627b str r3, [r7, #36] @ 0x24
  95135. while (q != NULL) {
  95136. 8026656: 6a7b ldr r3, [r7, #36] @ 0x24
  95137. 8026658: 2b00 cmp r3, #0
  95138. 802665a: d1e9 bne.n 8026630 <ip_reass_chain_frag_into_datagram_and_validate+0x22c>
  95139. }
  95140. /* if still valid, all fragments are received
  95141. * (because to the MF==0 already arrived */
  95142. if (valid) {
  95143. 802665c: 6a3b ldr r3, [r7, #32]
  95144. 802665e: 2b00 cmp r3, #0
  95145. 8026660: d022 beq.n 80266a8 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  95146. LWIP_ASSERT("sanity check", ipr->p != NULL);
  95147. 8026662: 68fb ldr r3, [r7, #12]
  95148. 8026664: 685b ldr r3, [r3, #4]
  95149. 8026666: 2b00 cmp r3, #0
  95150. 8026668: d106 bne.n 8026678 <ip_reass_chain_frag_into_datagram_and_validate+0x274>
  95151. 802666a: 4b15 ldr r3, [pc, #84] @ (80266c0 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  95152. 802666c: f240 12df movw r2, #479 @ 0x1df
  95153. 8026670: 4917 ldr r1, [pc, #92] @ (80266d0 <ip_reass_chain_frag_into_datagram_and_validate+0x2cc>)
  95154. 8026672: 4815 ldr r0, [pc, #84] @ (80266c8 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  95155. 8026674: f004 f872 bl 802a75c <iprintf>
  95156. LWIP_ASSERT("sanity check",
  95157. 8026678: 68fb ldr r3, [r7, #12]
  95158. 802667a: 685b ldr r3, [r3, #4]
  95159. 802667c: 685b ldr r3, [r3, #4]
  95160. 802667e: 6afa ldr r2, [r7, #44] @ 0x2c
  95161. 8026680: 429a cmp r2, r3
  95162. 8026682: d106 bne.n 8026692 <ip_reass_chain_frag_into_datagram_and_validate+0x28e>
  95163. 8026684: 4b0e ldr r3, [pc, #56] @ (80266c0 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  95164. 8026686: f44f 72f0 mov.w r2, #480 @ 0x1e0
  95165. 802668a: 4911 ldr r1, [pc, #68] @ (80266d0 <ip_reass_chain_frag_into_datagram_and_validate+0x2cc>)
  95166. 802668c: 480e ldr r0, [pc, #56] @ (80266c8 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  95167. 802668e: f004 f865 bl 802a75c <iprintf>
  95168. ((struct ip_reass_helper *)ipr->p->payload) != iprh);
  95169. LWIP_ASSERT("validate_datagram:next_pbuf!=NULL",
  95170. 8026692: 6afb ldr r3, [r7, #44] @ 0x2c
  95171. 8026694: 681b ldr r3, [r3, #0]
  95172. 8026696: 2b00 cmp r3, #0
  95173. 8026698: d006 beq.n 80266a8 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  95174. 802669a: 4b09 ldr r3, [pc, #36] @ (80266c0 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  95175. 802669c: f44f 72f1 mov.w r2, #482 @ 0x1e2
  95176. 80266a0: 490c ldr r1, [pc, #48] @ (80266d4 <ip_reass_chain_frag_into_datagram_and_validate+0x2d0>)
  95177. 80266a2: 4809 ldr r0, [pc, #36] @ (80266c8 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  95178. 80266a4: f004 f85a bl 802a75c <iprintf>
  95179. }
  95180. }
  95181. /* If valid is 0 here, there are some fragments missing in the middle
  95182. * (since MF == 0 has already arrived). Such datagrams simply time out if
  95183. * no more fragments are received... */
  95184. return valid ? IP_REASS_VALIDATE_TELEGRAM_FINISHED : IP_REASS_VALIDATE_PBUF_QUEUED;
  95185. 80266a8: 6a3b ldr r3, [r7, #32]
  95186. 80266aa: 2b00 cmp r3, #0
  95187. 80266ac: bf14 ite ne
  95188. 80266ae: 2301 movne r3, #1
  95189. 80266b0: 2300 moveq r3, #0
  95190. 80266b2: b2db uxtb r3, r3
  95191. 80266b4: e000 b.n 80266b8 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  95192. }
  95193. /* If we come here, not all fragments were received, yet! */
  95194. return IP_REASS_VALIDATE_PBUF_QUEUED; /* not yet valid! */
  95195. 80266b6: 2300 movs r3, #0
  95196. }
  95197. 80266b8: 4618 mov r0, r3
  95198. 80266ba: 3730 adds r7, #48 @ 0x30
  95199. 80266bc: 46bd mov sp, r7
  95200. 80266be: bd80 pop {r7, pc}
  95201. 80266c0: 08031550 .word 0x08031550
  95202. 80266c4: 08031634 .word 0x08031634
  95203. 80266c8: 08031598 .word 0x08031598
  95204. 80266cc: 08031654 .word 0x08031654
  95205. 80266d0: 0803168c .word 0x0803168c
  95206. 80266d4: 0803169c .word 0x0803169c
  95207. 080266d8 <ip4_reass>:
  95208. * @param p points to a pbuf chain of the fragment
  95209. * @return NULL if reassembly is incomplete, ? otherwise
  95210. */
  95211. struct pbuf *
  95212. ip4_reass(struct pbuf *p)
  95213. {
  95214. 80266d8: b580 push {r7, lr}
  95215. 80266da: b08e sub sp, #56 @ 0x38
  95216. 80266dc: af00 add r7, sp, #0
  95217. 80266de: 6078 str r0, [r7, #4]
  95218. int is_last;
  95219. IPFRAG_STATS_INC(ip_frag.recv);
  95220. MIB2_STATS_INC(mib2.ipreasmreqds);
  95221. fraghdr = (struct ip_hdr *)p->payload;
  95222. 80266e0: 687b ldr r3, [r7, #4]
  95223. 80266e2: 685b ldr r3, [r3, #4]
  95224. 80266e4: 62bb str r3, [r7, #40] @ 0x28
  95225. if (IPH_HL_BYTES(fraghdr) != IP_HLEN) {
  95226. 80266e6: 6abb ldr r3, [r7, #40] @ 0x28
  95227. 80266e8: 781b ldrb r3, [r3, #0]
  95228. 80266ea: f003 030f and.w r3, r3, #15
  95229. 80266ee: b2db uxtb r3, r3
  95230. 80266f0: 009b lsls r3, r3, #2
  95231. 80266f2: b2db uxtb r3, r3
  95232. 80266f4: 2b14 cmp r3, #20
  95233. 80266f6: f040 8171 bne.w 80269dc <ip4_reass+0x304>
  95234. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: IP options currently not supported!\n"));
  95235. IPFRAG_STATS_INC(ip_frag.err);
  95236. goto nullreturn;
  95237. }
  95238. offset = IPH_OFFSET_BYTES(fraghdr);
  95239. 80266fa: 6abb ldr r3, [r7, #40] @ 0x28
  95240. 80266fc: 88db ldrh r3, [r3, #6]
  95241. 80266fe: b29b uxth r3, r3
  95242. 8026700: 4618 mov r0, r3
  95243. 8026702: f7f3 f8d1 bl 80198a8 <lwip_htons>
  95244. 8026706: 4603 mov r3, r0
  95245. 8026708: f3c3 030c ubfx r3, r3, #0, #13
  95246. 802670c: b29b uxth r3, r3
  95247. 802670e: 00db lsls r3, r3, #3
  95248. 8026710: 84fb strh r3, [r7, #38] @ 0x26
  95249. len = lwip_ntohs(IPH_LEN(fraghdr));
  95250. 8026712: 6abb ldr r3, [r7, #40] @ 0x28
  95251. 8026714: 885b ldrh r3, [r3, #2]
  95252. 8026716: b29b uxth r3, r3
  95253. 8026718: 4618 mov r0, r3
  95254. 802671a: f7f3 f8c5 bl 80198a8 <lwip_htons>
  95255. 802671e: 4603 mov r3, r0
  95256. 8026720: 84bb strh r3, [r7, #36] @ 0x24
  95257. hlen = IPH_HL_BYTES(fraghdr);
  95258. 8026722: 6abb ldr r3, [r7, #40] @ 0x28
  95259. 8026724: 781b ldrb r3, [r3, #0]
  95260. 8026726: f003 030f and.w r3, r3, #15
  95261. 802672a: b2db uxtb r3, r3
  95262. 802672c: 009b lsls r3, r3, #2
  95263. 802672e: f887 3023 strb.w r3, [r7, #35] @ 0x23
  95264. if (hlen > len) {
  95265. 8026732: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  95266. 8026736: b29b uxth r3, r3
  95267. 8026738: 8cba ldrh r2, [r7, #36] @ 0x24
  95268. 802673a: 429a cmp r2, r3
  95269. 802673c: f0c0 8150 bcc.w 80269e0 <ip4_reass+0x308>
  95270. /* invalid datagram */
  95271. goto nullreturn;
  95272. }
  95273. len = (u16_t)(len - hlen);
  95274. 8026740: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  95275. 8026744: b29b uxth r3, r3
  95276. 8026746: 8cba ldrh r2, [r7, #36] @ 0x24
  95277. 8026748: 1ad3 subs r3, r2, r3
  95278. 802674a: 84bb strh r3, [r7, #36] @ 0x24
  95279. /* Check if we are allowed to enqueue more datagrams. */
  95280. clen = pbuf_clen(p);
  95281. 802674c: 6878 ldr r0, [r7, #4]
  95282. 802674e: f7f4 fe1b bl 801b388 <pbuf_clen>
  95283. 8026752: 4603 mov r3, r0
  95284. 8026754: 843b strh r3, [r7, #32]
  95285. if ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS) {
  95286. 8026756: 4b8c ldr r3, [pc, #560] @ (8026988 <ip4_reass+0x2b0>)
  95287. 8026758: 881b ldrh r3, [r3, #0]
  95288. 802675a: 461a mov r2, r3
  95289. 802675c: 8c3b ldrh r3, [r7, #32]
  95290. 802675e: 4413 add r3, r2
  95291. 8026760: 2b0a cmp r3, #10
  95292. 8026762: dd10 ble.n 8026786 <ip4_reass+0xae>
  95293. #if IP_REASS_FREE_OLDEST
  95294. if (!ip_reass_remove_oldest_datagram(fraghdr, clen) ||
  95295. 8026764: 8c3b ldrh r3, [r7, #32]
  95296. 8026766: 4619 mov r1, r3
  95297. 8026768: 6ab8 ldr r0, [r7, #40] @ 0x28
  95298. 802676a: f7ff fd81 bl 8026270 <ip_reass_remove_oldest_datagram>
  95299. 802676e: 4603 mov r3, r0
  95300. 8026770: 2b00 cmp r3, #0
  95301. 8026772: f000 8137 beq.w 80269e4 <ip4_reass+0x30c>
  95302. ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS))
  95303. 8026776: 4b84 ldr r3, [pc, #528] @ (8026988 <ip4_reass+0x2b0>)
  95304. 8026778: 881b ldrh r3, [r3, #0]
  95305. 802677a: 461a mov r2, r3
  95306. 802677c: 8c3b ldrh r3, [r7, #32]
  95307. 802677e: 4413 add r3, r2
  95308. if (!ip_reass_remove_oldest_datagram(fraghdr, clen) ||
  95309. 8026780: 2b0a cmp r3, #10
  95310. 8026782: f300 812f bgt.w 80269e4 <ip4_reass+0x30c>
  95311. }
  95312. }
  95313. /* Look for the datagram the fragment belongs to in the current datagram queue,
  95314. * remembering the previous in the queue for later dequeueing. */
  95315. for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) {
  95316. 8026786: 4b81 ldr r3, [pc, #516] @ (802698c <ip4_reass+0x2b4>)
  95317. 8026788: 681b ldr r3, [r3, #0]
  95318. 802678a: 633b str r3, [r7, #48] @ 0x30
  95319. 802678c: e015 b.n 80267ba <ip4_reass+0xe2>
  95320. /* Check if the incoming fragment matches the one currently present
  95321. in the reassembly buffer. If so, we proceed with copying the
  95322. fragment into the buffer. */
  95323. if (IP_ADDRESSES_AND_ID_MATCH(&ipr->iphdr, fraghdr)) {
  95324. 802678e: 6b3b ldr r3, [r7, #48] @ 0x30
  95325. 8026790: 695a ldr r2, [r3, #20]
  95326. 8026792: 6abb ldr r3, [r7, #40] @ 0x28
  95327. 8026794: 68db ldr r3, [r3, #12]
  95328. 8026796: 429a cmp r2, r3
  95329. 8026798: d10c bne.n 80267b4 <ip4_reass+0xdc>
  95330. 802679a: 6b3b ldr r3, [r7, #48] @ 0x30
  95331. 802679c: 699a ldr r2, [r3, #24]
  95332. 802679e: 6abb ldr r3, [r7, #40] @ 0x28
  95333. 80267a0: 691b ldr r3, [r3, #16]
  95334. 80267a2: 429a cmp r2, r3
  95335. 80267a4: d106 bne.n 80267b4 <ip4_reass+0xdc>
  95336. 80267a6: 6b3b ldr r3, [r7, #48] @ 0x30
  95337. 80267a8: 899a ldrh r2, [r3, #12]
  95338. 80267aa: 6abb ldr r3, [r7, #40] @ 0x28
  95339. 80267ac: 889b ldrh r3, [r3, #4]
  95340. 80267ae: b29b uxth r3, r3
  95341. 80267b0: 429a cmp r2, r3
  95342. 80267b2: d006 beq.n 80267c2 <ip4_reass+0xea>
  95343. for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) {
  95344. 80267b4: 6b3b ldr r3, [r7, #48] @ 0x30
  95345. 80267b6: 681b ldr r3, [r3, #0]
  95346. 80267b8: 633b str r3, [r7, #48] @ 0x30
  95347. 80267ba: 6b3b ldr r3, [r7, #48] @ 0x30
  95348. 80267bc: 2b00 cmp r3, #0
  95349. 80267be: d1e6 bne.n 802678e <ip4_reass+0xb6>
  95350. 80267c0: e000 b.n 80267c4 <ip4_reass+0xec>
  95351. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: matching previous fragment ID=%"X16_F"\n",
  95352. lwip_ntohs(IPH_ID(fraghdr))));
  95353. IPFRAG_STATS_INC(ip_frag.cachehit);
  95354. break;
  95355. 80267c2: bf00 nop
  95356. }
  95357. }
  95358. if (ipr == NULL) {
  95359. 80267c4: 6b3b ldr r3, [r7, #48] @ 0x30
  95360. 80267c6: 2b00 cmp r3, #0
  95361. 80267c8: d109 bne.n 80267de <ip4_reass+0x106>
  95362. /* Enqueue a new datagram into the datagram queue */
  95363. ipr = ip_reass_enqueue_new_datagram(fraghdr, clen);
  95364. 80267ca: 8c3b ldrh r3, [r7, #32]
  95365. 80267cc: 4619 mov r1, r3
  95366. 80267ce: 6ab8 ldr r0, [r7, #40] @ 0x28
  95367. 80267d0: f7ff fdb0 bl 8026334 <ip_reass_enqueue_new_datagram>
  95368. 80267d4: 6338 str r0, [r7, #48] @ 0x30
  95369. /* Bail if unable to enqueue */
  95370. if (ipr == NULL) {
  95371. 80267d6: 6b3b ldr r3, [r7, #48] @ 0x30
  95372. 80267d8: 2b00 cmp r3, #0
  95373. 80267da: d11c bne.n 8026816 <ip4_reass+0x13e>
  95374. goto nullreturn;
  95375. 80267dc: e105 b.n 80269ea <ip4_reass+0x312>
  95376. }
  95377. } else {
  95378. if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) &&
  95379. 80267de: 6abb ldr r3, [r7, #40] @ 0x28
  95380. 80267e0: 88db ldrh r3, [r3, #6]
  95381. 80267e2: b29b uxth r3, r3
  95382. 80267e4: 4618 mov r0, r3
  95383. 80267e6: f7f3 f85f bl 80198a8 <lwip_htons>
  95384. 80267ea: 4603 mov r3, r0
  95385. 80267ec: f3c3 030c ubfx r3, r3, #0, #13
  95386. 80267f0: 2b00 cmp r3, #0
  95387. 80267f2: d110 bne.n 8026816 <ip4_reass+0x13e>
  95388. ((lwip_ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) {
  95389. 80267f4: 6b3b ldr r3, [r7, #48] @ 0x30
  95390. 80267f6: 89db ldrh r3, [r3, #14]
  95391. 80267f8: 4618 mov r0, r3
  95392. 80267fa: f7f3 f855 bl 80198a8 <lwip_htons>
  95393. 80267fe: 4603 mov r3, r0
  95394. 8026800: f3c3 030c ubfx r3, r3, #0, #13
  95395. if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) &&
  95396. 8026804: 2b00 cmp r3, #0
  95397. 8026806: d006 beq.n 8026816 <ip4_reass+0x13e>
  95398. /* ipr->iphdr is not the header from the first fragment, but fraghdr is
  95399. * -> copy fraghdr into ipr->iphdr since we want to have the header
  95400. * of the first fragment (for ICMP time exceeded and later, for copying
  95401. * all options, if supported)*/
  95402. SMEMCPY(&ipr->iphdr, fraghdr, IP_HLEN);
  95403. 8026808: 6b3b ldr r3, [r7, #48] @ 0x30
  95404. 802680a: 3308 adds r3, #8
  95405. 802680c: 2214 movs r2, #20
  95406. 802680e: 6ab9 ldr r1, [r7, #40] @ 0x28
  95407. 8026810: 4618 mov r0, r3
  95408. 8026812: f004 fa2c bl 802ac6e <memcpy>
  95409. /* At this point, we have either created a new entry or pointing
  95410. * to an existing one */
  95411. /* check for 'no more fragments', and update queue entry*/
  95412. is_last = (IPH_OFFSET(fraghdr) & PP_NTOHS(IP_MF)) == 0;
  95413. 8026816: 6abb ldr r3, [r7, #40] @ 0x28
  95414. 8026818: 88db ldrh r3, [r3, #6]
  95415. 802681a: b29b uxth r3, r3
  95416. 802681c: f003 0320 and.w r3, r3, #32
  95417. 8026820: 2b00 cmp r3, #0
  95418. 8026822: bf0c ite eq
  95419. 8026824: 2301 moveq r3, #1
  95420. 8026826: 2300 movne r3, #0
  95421. 8026828: b2db uxtb r3, r3
  95422. 802682a: 61fb str r3, [r7, #28]
  95423. if (is_last) {
  95424. 802682c: 69fb ldr r3, [r7, #28]
  95425. 802682e: 2b00 cmp r3, #0
  95426. 8026830: d00e beq.n 8026850 <ip4_reass+0x178>
  95427. u16_t datagram_len = (u16_t)(offset + len);
  95428. 8026832: 8cfa ldrh r2, [r7, #38] @ 0x26
  95429. 8026834: 8cbb ldrh r3, [r7, #36] @ 0x24
  95430. 8026836: 4413 add r3, r2
  95431. 8026838: 837b strh r3, [r7, #26]
  95432. if ((datagram_len < offset) || (datagram_len > (0xFFFF - IP_HLEN))) {
  95433. 802683a: 8b7a ldrh r2, [r7, #26]
  95434. 802683c: 8cfb ldrh r3, [r7, #38] @ 0x26
  95435. 802683e: 429a cmp r2, r3
  95436. 8026840: f0c0 80a0 bcc.w 8026984 <ip4_reass+0x2ac>
  95437. 8026844: 8b7b ldrh r3, [r7, #26]
  95438. 8026846: f64f 72eb movw r2, #65515 @ 0xffeb
  95439. 802684a: 4293 cmp r3, r2
  95440. 802684c: f200 809a bhi.w 8026984 <ip4_reass+0x2ac>
  95441. goto nullreturn_ipr;
  95442. }
  95443. }
  95444. /* find the right place to insert this pbuf */
  95445. /* @todo: trim pbufs if fragments are overlapping */
  95446. valid = ip_reass_chain_frag_into_datagram_and_validate(ipr, p, is_last);
  95447. 8026850: 69fa ldr r2, [r7, #28]
  95448. 8026852: 6879 ldr r1, [r7, #4]
  95449. 8026854: 6b38 ldr r0, [r7, #48] @ 0x30
  95450. 8026856: f7ff fdd5 bl 8026404 <ip_reass_chain_frag_into_datagram_and_validate>
  95451. 802685a: 6178 str r0, [r7, #20]
  95452. if (valid == IP_REASS_VALIDATE_PBUF_DROPPED) {
  95453. 802685c: 697b ldr r3, [r7, #20]
  95454. 802685e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  95455. 8026862: f000 809b beq.w 802699c <ip4_reass+0x2c4>
  95456. /* if we come here, the pbuf has been enqueued */
  95457. /* Track the current number of pbufs current 'in-flight', in order to limit
  95458. the number of fragments that may be enqueued at any one time
  95459. (overflow checked by testing against IP_REASS_MAX_PBUFS) */
  95460. ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount + clen);
  95461. 8026866: 4b48 ldr r3, [pc, #288] @ (8026988 <ip4_reass+0x2b0>)
  95462. 8026868: 881a ldrh r2, [r3, #0]
  95463. 802686a: 8c3b ldrh r3, [r7, #32]
  95464. 802686c: 4413 add r3, r2
  95465. 802686e: b29a uxth r2, r3
  95466. 8026870: 4b45 ldr r3, [pc, #276] @ (8026988 <ip4_reass+0x2b0>)
  95467. 8026872: 801a strh r2, [r3, #0]
  95468. if (is_last) {
  95469. 8026874: 69fb ldr r3, [r7, #28]
  95470. 8026876: 2b00 cmp r3, #0
  95471. 8026878: d00d beq.n 8026896 <ip4_reass+0x1be>
  95472. u16_t datagram_len = (u16_t)(offset + len);
  95473. 802687a: 8cfa ldrh r2, [r7, #38] @ 0x26
  95474. 802687c: 8cbb ldrh r3, [r7, #36] @ 0x24
  95475. 802687e: 4413 add r3, r2
  95476. 8026880: 827b strh r3, [r7, #18]
  95477. ipr->datagram_len = datagram_len;
  95478. 8026882: 6b3b ldr r3, [r7, #48] @ 0x30
  95479. 8026884: 8a7a ldrh r2, [r7, #18]
  95480. 8026886: 839a strh r2, [r3, #28]
  95481. ipr->flags |= IP_REASS_FLAG_LASTFRAG;
  95482. 8026888: 6b3b ldr r3, [r7, #48] @ 0x30
  95483. 802688a: 7f9b ldrb r3, [r3, #30]
  95484. 802688c: f043 0301 orr.w r3, r3, #1
  95485. 8026890: b2da uxtb r2, r3
  95486. 8026892: 6b3b ldr r3, [r7, #48] @ 0x30
  95487. 8026894: 779a strb r2, [r3, #30]
  95488. LWIP_DEBUGF(IP_REASS_DEBUG,
  95489. ("ip4_reass: last fragment seen, total len %"S16_F"\n",
  95490. ipr->datagram_len));
  95491. }
  95492. if (valid == IP_REASS_VALIDATE_TELEGRAM_FINISHED) {
  95493. 8026896: 697b ldr r3, [r7, #20]
  95494. 8026898: 2b01 cmp r3, #1
  95495. 802689a: d171 bne.n 8026980 <ip4_reass+0x2a8>
  95496. struct ip_reassdata *ipr_prev;
  95497. /* the totally last fragment (flag more fragments = 0) was received at least
  95498. * once AND all fragments are received */
  95499. u16_t datagram_len = (u16_t)(ipr->datagram_len + IP_HLEN);
  95500. 802689c: 6b3b ldr r3, [r7, #48] @ 0x30
  95501. 802689e: 8b9b ldrh r3, [r3, #28]
  95502. 80268a0: 3314 adds r3, #20
  95503. 80268a2: 823b strh r3, [r7, #16]
  95504. /* save the second pbuf before copying the header over the pointer */
  95505. r = ((struct ip_reass_helper *)ipr->p->payload)->next_pbuf;
  95506. 80268a4: 6b3b ldr r3, [r7, #48] @ 0x30
  95507. 80268a6: 685b ldr r3, [r3, #4]
  95508. 80268a8: 685b ldr r3, [r3, #4]
  95509. 80268aa: 681b ldr r3, [r3, #0]
  95510. 80268ac: 62fb str r3, [r7, #44] @ 0x2c
  95511. /* copy the original ip header back to the first pbuf */
  95512. fraghdr = (struct ip_hdr *)(ipr->p->payload);
  95513. 80268ae: 6b3b ldr r3, [r7, #48] @ 0x30
  95514. 80268b0: 685b ldr r3, [r3, #4]
  95515. 80268b2: 685b ldr r3, [r3, #4]
  95516. 80268b4: 62bb str r3, [r7, #40] @ 0x28
  95517. SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN);
  95518. 80268b6: 6b3b ldr r3, [r7, #48] @ 0x30
  95519. 80268b8: 3308 adds r3, #8
  95520. 80268ba: 2214 movs r2, #20
  95521. 80268bc: 4619 mov r1, r3
  95522. 80268be: 6ab8 ldr r0, [r7, #40] @ 0x28
  95523. 80268c0: f004 f9d5 bl 802ac6e <memcpy>
  95524. IPH_LEN_SET(fraghdr, lwip_htons(datagram_len));
  95525. 80268c4: 8a3b ldrh r3, [r7, #16]
  95526. 80268c6: 4618 mov r0, r3
  95527. 80268c8: f7f2 ffee bl 80198a8 <lwip_htons>
  95528. 80268cc: 4603 mov r3, r0
  95529. 80268ce: 461a mov r2, r3
  95530. 80268d0: 6abb ldr r3, [r7, #40] @ 0x28
  95531. 80268d2: 805a strh r2, [r3, #2]
  95532. IPH_OFFSET_SET(fraghdr, 0);
  95533. 80268d4: 6abb ldr r3, [r7, #40] @ 0x28
  95534. 80268d6: 2200 movs r2, #0
  95535. 80268d8: 719a strb r2, [r3, #6]
  95536. 80268da: 2200 movs r2, #0
  95537. 80268dc: 71da strb r2, [r3, #7]
  95538. IPH_CHKSUM_SET(fraghdr, 0);
  95539. 80268de: 6abb ldr r3, [r7, #40] @ 0x28
  95540. 80268e0: 2200 movs r2, #0
  95541. 80268e2: 729a strb r2, [r3, #10]
  95542. 80268e4: 2200 movs r2, #0
  95543. 80268e6: 72da strb r2, [r3, #11]
  95544. IF__NETIF_CHECKSUM_ENABLED(ip_current_input_netif(), NETIF_CHECKSUM_GEN_IP) {
  95545. IPH_CHKSUM_SET(fraghdr, inet_chksum(fraghdr, IP_HLEN));
  95546. }
  95547. #endif /* CHECKSUM_GEN_IP */
  95548. p = ipr->p;
  95549. 80268e8: 6b3b ldr r3, [r7, #48] @ 0x30
  95550. 80268ea: 685b ldr r3, [r3, #4]
  95551. 80268ec: 607b str r3, [r7, #4]
  95552. /* chain together the pbufs contained within the reass_data list. */
  95553. while (r != NULL) {
  95554. 80268ee: e00d b.n 802690c <ip4_reass+0x234>
  95555. iprh = (struct ip_reass_helper *)r->payload;
  95556. 80268f0: 6afb ldr r3, [r7, #44] @ 0x2c
  95557. 80268f2: 685b ldr r3, [r3, #4]
  95558. 80268f4: 60fb str r3, [r7, #12]
  95559. /* hide the ip header for every succeeding fragment */
  95560. pbuf_remove_header(r, IP_HLEN);
  95561. 80268f6: 2114 movs r1, #20
  95562. 80268f8: 6af8 ldr r0, [r7, #44] @ 0x2c
  95563. 80268fa: f7f4 fbff bl 801b0fc <pbuf_remove_header>
  95564. pbuf_cat(p, r);
  95565. 80268fe: 6af9 ldr r1, [r7, #44] @ 0x2c
  95566. 8026900: 6878 ldr r0, [r7, #4]
  95567. 8026902: f7f4 fd81 bl 801b408 <pbuf_cat>
  95568. r = iprh->next_pbuf;
  95569. 8026906: 68fb ldr r3, [r7, #12]
  95570. 8026908: 681b ldr r3, [r3, #0]
  95571. 802690a: 62fb str r3, [r7, #44] @ 0x2c
  95572. while (r != NULL) {
  95573. 802690c: 6afb ldr r3, [r7, #44] @ 0x2c
  95574. 802690e: 2b00 cmp r3, #0
  95575. 8026910: d1ee bne.n 80268f0 <ip4_reass+0x218>
  95576. }
  95577. /* find the previous entry in the linked list */
  95578. if (ipr == reassdatagrams) {
  95579. 8026912: 4b1e ldr r3, [pc, #120] @ (802698c <ip4_reass+0x2b4>)
  95580. 8026914: 681b ldr r3, [r3, #0]
  95581. 8026916: 6b3a ldr r2, [r7, #48] @ 0x30
  95582. 8026918: 429a cmp r2, r3
  95583. 802691a: d102 bne.n 8026922 <ip4_reass+0x24a>
  95584. ipr_prev = NULL;
  95585. 802691c: 2300 movs r3, #0
  95586. 802691e: 637b str r3, [r7, #52] @ 0x34
  95587. 8026920: e010 b.n 8026944 <ip4_reass+0x26c>
  95588. } else {
  95589. for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) {
  95590. 8026922: 4b1a ldr r3, [pc, #104] @ (802698c <ip4_reass+0x2b4>)
  95591. 8026924: 681b ldr r3, [r3, #0]
  95592. 8026926: 637b str r3, [r7, #52] @ 0x34
  95593. 8026928: e007 b.n 802693a <ip4_reass+0x262>
  95594. if (ipr_prev->next == ipr) {
  95595. 802692a: 6b7b ldr r3, [r7, #52] @ 0x34
  95596. 802692c: 681b ldr r3, [r3, #0]
  95597. 802692e: 6b3a ldr r2, [r7, #48] @ 0x30
  95598. 8026930: 429a cmp r2, r3
  95599. 8026932: d006 beq.n 8026942 <ip4_reass+0x26a>
  95600. for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) {
  95601. 8026934: 6b7b ldr r3, [r7, #52] @ 0x34
  95602. 8026936: 681b ldr r3, [r3, #0]
  95603. 8026938: 637b str r3, [r7, #52] @ 0x34
  95604. 802693a: 6b7b ldr r3, [r7, #52] @ 0x34
  95605. 802693c: 2b00 cmp r3, #0
  95606. 802693e: d1f4 bne.n 802692a <ip4_reass+0x252>
  95607. 8026940: e000 b.n 8026944 <ip4_reass+0x26c>
  95608. break;
  95609. 8026942: bf00 nop
  95610. }
  95611. }
  95612. }
  95613. /* release the sources allocate for the fragment queue entry */
  95614. ip_reass_dequeue_datagram(ipr, ipr_prev);
  95615. 8026944: 6b79 ldr r1, [r7, #52] @ 0x34
  95616. 8026946: 6b38 ldr r0, [r7, #48] @ 0x30
  95617. 8026948: f7ff fd2e bl 80263a8 <ip_reass_dequeue_datagram>
  95618. /* and adjust the number of pbufs currently queued for reassembly. */
  95619. clen = pbuf_clen(p);
  95620. 802694c: 6878 ldr r0, [r7, #4]
  95621. 802694e: f7f4 fd1b bl 801b388 <pbuf_clen>
  95622. 8026952: 4603 mov r3, r0
  95623. 8026954: 843b strh r3, [r7, #32]
  95624. LWIP_ASSERT("ip_reass_pbufcount >= clen", ip_reass_pbufcount >= clen);
  95625. 8026956: 4b0c ldr r3, [pc, #48] @ (8026988 <ip4_reass+0x2b0>)
  95626. 8026958: 881b ldrh r3, [r3, #0]
  95627. 802695a: 8c3a ldrh r2, [r7, #32]
  95628. 802695c: 429a cmp r2, r3
  95629. 802695e: d906 bls.n 802696e <ip4_reass+0x296>
  95630. 8026960: 4b0b ldr r3, [pc, #44] @ (8026990 <ip4_reass+0x2b8>)
  95631. 8026962: f240 229b movw r2, #667 @ 0x29b
  95632. 8026966: 490b ldr r1, [pc, #44] @ (8026994 <ip4_reass+0x2bc>)
  95633. 8026968: 480b ldr r0, [pc, #44] @ (8026998 <ip4_reass+0x2c0>)
  95634. 802696a: f003 fef7 bl 802a75c <iprintf>
  95635. ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - clen);
  95636. 802696e: 4b06 ldr r3, [pc, #24] @ (8026988 <ip4_reass+0x2b0>)
  95637. 8026970: 881a ldrh r2, [r3, #0]
  95638. 8026972: 8c3b ldrh r3, [r7, #32]
  95639. 8026974: 1ad3 subs r3, r2, r3
  95640. 8026976: b29a uxth r2, r3
  95641. 8026978: 4b03 ldr r3, [pc, #12] @ (8026988 <ip4_reass+0x2b0>)
  95642. 802697a: 801a strh r2, [r3, #0]
  95643. MIB2_STATS_INC(mib2.ipreasmoks);
  95644. /* Return the pbuf chain */
  95645. return p;
  95646. 802697c: 687b ldr r3, [r7, #4]
  95647. 802697e: e038 b.n 80269f2 <ip4_reass+0x31a>
  95648. }
  95649. /* the datagram is not (yet?) reassembled completely */
  95650. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_pbufcount: %d out\n", ip_reass_pbufcount));
  95651. return NULL;
  95652. 8026980: 2300 movs r3, #0
  95653. 8026982: e036 b.n 80269f2 <ip4_reass+0x31a>
  95654. goto nullreturn_ipr;
  95655. 8026984: bf00 nop
  95656. 8026986: e00a b.n 802699e <ip4_reass+0x2c6>
  95657. 8026988: 2402b108 .word 0x2402b108
  95658. 802698c: 2402b104 .word 0x2402b104
  95659. 8026990: 08031550 .word 0x08031550
  95660. 8026994: 080316c0 .word 0x080316c0
  95661. 8026998: 08031598 .word 0x08031598
  95662. goto nullreturn_ipr;
  95663. 802699c: bf00 nop
  95664. nullreturn_ipr:
  95665. LWIP_ASSERT("ipr != NULL", ipr != NULL);
  95666. 802699e: 6b3b ldr r3, [r7, #48] @ 0x30
  95667. 80269a0: 2b00 cmp r3, #0
  95668. 80269a2: d106 bne.n 80269b2 <ip4_reass+0x2da>
  95669. 80269a4: 4b15 ldr r3, [pc, #84] @ (80269fc <ip4_reass+0x324>)
  95670. 80269a6: f44f 722a mov.w r2, #680 @ 0x2a8
  95671. 80269aa: 4915 ldr r1, [pc, #84] @ (8026a00 <ip4_reass+0x328>)
  95672. 80269ac: 4815 ldr r0, [pc, #84] @ (8026a04 <ip4_reass+0x32c>)
  95673. 80269ae: f003 fed5 bl 802a75c <iprintf>
  95674. if (ipr->p == NULL) {
  95675. 80269b2: 6b3b ldr r3, [r7, #48] @ 0x30
  95676. 80269b4: 685b ldr r3, [r3, #4]
  95677. 80269b6: 2b00 cmp r3, #0
  95678. 80269b8: d116 bne.n 80269e8 <ip4_reass+0x310>
  95679. /* dropped pbuf after creating a new datagram entry: remove the entry, too */
  95680. LWIP_ASSERT("not firstalthough just enqueued", ipr == reassdatagrams);
  95681. 80269ba: 4b13 ldr r3, [pc, #76] @ (8026a08 <ip4_reass+0x330>)
  95682. 80269bc: 681b ldr r3, [r3, #0]
  95683. 80269be: 6b3a ldr r2, [r7, #48] @ 0x30
  95684. 80269c0: 429a cmp r2, r3
  95685. 80269c2: d006 beq.n 80269d2 <ip4_reass+0x2fa>
  95686. 80269c4: 4b0d ldr r3, [pc, #52] @ (80269fc <ip4_reass+0x324>)
  95687. 80269c6: f240 22ab movw r2, #683 @ 0x2ab
  95688. 80269ca: 4910 ldr r1, [pc, #64] @ (8026a0c <ip4_reass+0x334>)
  95689. 80269cc: 480d ldr r0, [pc, #52] @ (8026a04 <ip4_reass+0x32c>)
  95690. 80269ce: f003 fec5 bl 802a75c <iprintf>
  95691. ip_reass_dequeue_datagram(ipr, NULL);
  95692. 80269d2: 2100 movs r1, #0
  95693. 80269d4: 6b38 ldr r0, [r7, #48] @ 0x30
  95694. 80269d6: f7ff fce7 bl 80263a8 <ip_reass_dequeue_datagram>
  95695. 80269da: e006 b.n 80269ea <ip4_reass+0x312>
  95696. goto nullreturn;
  95697. 80269dc: bf00 nop
  95698. 80269de: e004 b.n 80269ea <ip4_reass+0x312>
  95699. goto nullreturn;
  95700. 80269e0: bf00 nop
  95701. 80269e2: e002 b.n 80269ea <ip4_reass+0x312>
  95702. goto nullreturn;
  95703. 80269e4: bf00 nop
  95704. 80269e6: e000 b.n 80269ea <ip4_reass+0x312>
  95705. }
  95706. nullreturn:
  95707. 80269e8: bf00 nop
  95708. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: nullreturn\n"));
  95709. IPFRAG_STATS_INC(ip_frag.drop);
  95710. pbuf_free(p);
  95711. 80269ea: 6878 ldr r0, [r7, #4]
  95712. 80269ec: f7f4 fc3e bl 801b26c <pbuf_free>
  95713. return NULL;
  95714. 80269f0: 2300 movs r3, #0
  95715. }
  95716. 80269f2: 4618 mov r0, r3
  95717. 80269f4: 3738 adds r7, #56 @ 0x38
  95718. 80269f6: 46bd mov sp, r7
  95719. 80269f8: bd80 pop {r7, pc}
  95720. 80269fa: bf00 nop
  95721. 80269fc: 08031550 .word 0x08031550
  95722. 8026a00: 080316dc .word 0x080316dc
  95723. 8026a04: 08031598 .word 0x08031598
  95724. 8026a08: 2402b104 .word 0x2402b104
  95725. 8026a0c: 080316e8 .word 0x080316e8
  95726. 08026a10 <ip_frag_alloc_pbuf_custom_ref>:
  95727. #if IP_FRAG
  95728. #if !LWIP_NETIF_TX_SINGLE_PBUF
  95729. /** Allocate a new struct pbuf_custom_ref */
  95730. static struct pbuf_custom_ref *
  95731. ip_frag_alloc_pbuf_custom_ref(void)
  95732. {
  95733. 8026a10: b580 push {r7, lr}
  95734. 8026a12: af00 add r7, sp, #0
  95735. return (struct pbuf_custom_ref *)memp_malloc(MEMP_FRAG_PBUF);
  95736. 8026a14: 2005 movs r0, #5
  95737. 8026a16: f7f3 fcc5 bl 801a3a4 <memp_malloc>
  95738. 8026a1a: 4603 mov r3, r0
  95739. }
  95740. 8026a1c: 4618 mov r0, r3
  95741. 8026a1e: bd80 pop {r7, pc}
  95742. 08026a20 <ip_frag_free_pbuf_custom_ref>:
  95743. /** Free a struct pbuf_custom_ref */
  95744. static void
  95745. ip_frag_free_pbuf_custom_ref(struct pbuf_custom_ref *p)
  95746. {
  95747. 8026a20: b580 push {r7, lr}
  95748. 8026a22: b082 sub sp, #8
  95749. 8026a24: af00 add r7, sp, #0
  95750. 8026a26: 6078 str r0, [r7, #4]
  95751. LWIP_ASSERT("p != NULL", p != NULL);
  95752. 8026a28: 687b ldr r3, [r7, #4]
  95753. 8026a2a: 2b00 cmp r3, #0
  95754. 8026a2c: d106 bne.n 8026a3c <ip_frag_free_pbuf_custom_ref+0x1c>
  95755. 8026a2e: 4b07 ldr r3, [pc, #28] @ (8026a4c <ip_frag_free_pbuf_custom_ref+0x2c>)
  95756. 8026a30: f44f 7231 mov.w r2, #708 @ 0x2c4
  95757. 8026a34: 4906 ldr r1, [pc, #24] @ (8026a50 <ip_frag_free_pbuf_custom_ref+0x30>)
  95758. 8026a36: 4807 ldr r0, [pc, #28] @ (8026a54 <ip_frag_free_pbuf_custom_ref+0x34>)
  95759. 8026a38: f003 fe90 bl 802a75c <iprintf>
  95760. memp_free(MEMP_FRAG_PBUF, p);
  95761. 8026a3c: 6879 ldr r1, [r7, #4]
  95762. 8026a3e: 2005 movs r0, #5
  95763. 8026a40: f7f3 fd26 bl 801a490 <memp_free>
  95764. }
  95765. 8026a44: bf00 nop
  95766. 8026a46: 3708 adds r7, #8
  95767. 8026a48: 46bd mov sp, r7
  95768. 8026a4a: bd80 pop {r7, pc}
  95769. 8026a4c: 08031550 .word 0x08031550
  95770. 8026a50: 08031708 .word 0x08031708
  95771. 8026a54: 08031598 .word 0x08031598
  95772. 08026a58 <ipfrag_free_pbuf_custom>:
  95773. /** Free-callback function to free a 'struct pbuf_custom_ref', called by
  95774. * pbuf_free. */
  95775. static void
  95776. ipfrag_free_pbuf_custom(struct pbuf *p)
  95777. {
  95778. 8026a58: b580 push {r7, lr}
  95779. 8026a5a: b084 sub sp, #16
  95780. 8026a5c: af00 add r7, sp, #0
  95781. 8026a5e: 6078 str r0, [r7, #4]
  95782. struct pbuf_custom_ref *pcr = (struct pbuf_custom_ref *)p;
  95783. 8026a60: 687b ldr r3, [r7, #4]
  95784. 8026a62: 60fb str r3, [r7, #12]
  95785. LWIP_ASSERT("pcr != NULL", pcr != NULL);
  95786. 8026a64: 68fb ldr r3, [r7, #12]
  95787. 8026a66: 2b00 cmp r3, #0
  95788. 8026a68: d106 bne.n 8026a78 <ipfrag_free_pbuf_custom+0x20>
  95789. 8026a6a: 4b11 ldr r3, [pc, #68] @ (8026ab0 <ipfrag_free_pbuf_custom+0x58>)
  95790. 8026a6c: f240 22ce movw r2, #718 @ 0x2ce
  95791. 8026a70: 4910 ldr r1, [pc, #64] @ (8026ab4 <ipfrag_free_pbuf_custom+0x5c>)
  95792. 8026a72: 4811 ldr r0, [pc, #68] @ (8026ab8 <ipfrag_free_pbuf_custom+0x60>)
  95793. 8026a74: f003 fe72 bl 802a75c <iprintf>
  95794. LWIP_ASSERT("pcr == p", (void *)pcr == (void *)p);
  95795. 8026a78: 68fa ldr r2, [r7, #12]
  95796. 8026a7a: 687b ldr r3, [r7, #4]
  95797. 8026a7c: 429a cmp r2, r3
  95798. 8026a7e: d006 beq.n 8026a8e <ipfrag_free_pbuf_custom+0x36>
  95799. 8026a80: 4b0b ldr r3, [pc, #44] @ (8026ab0 <ipfrag_free_pbuf_custom+0x58>)
  95800. 8026a82: f240 22cf movw r2, #719 @ 0x2cf
  95801. 8026a86: 490d ldr r1, [pc, #52] @ (8026abc <ipfrag_free_pbuf_custom+0x64>)
  95802. 8026a88: 480b ldr r0, [pc, #44] @ (8026ab8 <ipfrag_free_pbuf_custom+0x60>)
  95803. 8026a8a: f003 fe67 bl 802a75c <iprintf>
  95804. if (pcr->original != NULL) {
  95805. 8026a8e: 68fb ldr r3, [r7, #12]
  95806. 8026a90: 695b ldr r3, [r3, #20]
  95807. 8026a92: 2b00 cmp r3, #0
  95808. 8026a94: d004 beq.n 8026aa0 <ipfrag_free_pbuf_custom+0x48>
  95809. pbuf_free(pcr->original);
  95810. 8026a96: 68fb ldr r3, [r7, #12]
  95811. 8026a98: 695b ldr r3, [r3, #20]
  95812. 8026a9a: 4618 mov r0, r3
  95813. 8026a9c: f7f4 fbe6 bl 801b26c <pbuf_free>
  95814. }
  95815. ip_frag_free_pbuf_custom_ref(pcr);
  95816. 8026aa0: 68f8 ldr r0, [r7, #12]
  95817. 8026aa2: f7ff ffbd bl 8026a20 <ip_frag_free_pbuf_custom_ref>
  95818. }
  95819. 8026aa6: bf00 nop
  95820. 8026aa8: 3710 adds r7, #16
  95821. 8026aaa: 46bd mov sp, r7
  95822. 8026aac: bd80 pop {r7, pc}
  95823. 8026aae: bf00 nop
  95824. 8026ab0: 08031550 .word 0x08031550
  95825. 8026ab4: 08031714 .word 0x08031714
  95826. 8026ab8: 08031598 .word 0x08031598
  95827. 8026abc: 08031720 .word 0x08031720
  95828. 08026ac0 <ip4_frag>:
  95829. *
  95830. * @return ERR_OK if sent successfully, err_t otherwise
  95831. */
  95832. err_t
  95833. ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest)
  95834. {
  95835. 8026ac0: b580 push {r7, lr}
  95836. 8026ac2: b094 sub sp, #80 @ 0x50
  95837. 8026ac4: af02 add r7, sp, #8
  95838. 8026ac6: 60f8 str r0, [r7, #12]
  95839. 8026ac8: 60b9 str r1, [r7, #8]
  95840. 8026aca: 607a str r2, [r7, #4]
  95841. struct pbuf *rambuf;
  95842. #if !LWIP_NETIF_TX_SINGLE_PBUF
  95843. struct pbuf *newpbuf;
  95844. u16_t newpbuflen = 0;
  95845. 8026acc: 2300 movs r3, #0
  95846. 8026ace: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  95847. u16_t left_to_copy;
  95848. #endif
  95849. struct ip_hdr *original_iphdr;
  95850. struct ip_hdr *iphdr;
  95851. const u16_t nfb = (u16_t)((netif->mtu - IP_HLEN) / 8);
  95852. 8026ad2: 68bb ldr r3, [r7, #8]
  95853. 8026ad4: 8d1b ldrh r3, [r3, #40] @ 0x28
  95854. 8026ad6: 3b14 subs r3, #20
  95855. 8026ad8: 2b00 cmp r3, #0
  95856. 8026ada: da00 bge.n 8026ade <ip4_frag+0x1e>
  95857. 8026adc: 3307 adds r3, #7
  95858. 8026ade: 10db asrs r3, r3, #3
  95859. 8026ae0: 877b strh r3, [r7, #58] @ 0x3a
  95860. u16_t left, fragsize;
  95861. u16_t ofo;
  95862. int last;
  95863. u16_t poff = IP_HLEN;
  95864. 8026ae2: 2314 movs r3, #20
  95865. 8026ae4: 87fb strh r3, [r7, #62] @ 0x3e
  95866. u16_t tmp;
  95867. int mf_set;
  95868. original_iphdr = (struct ip_hdr *)p->payload;
  95869. 8026ae6: 68fb ldr r3, [r7, #12]
  95870. 8026ae8: 685b ldr r3, [r3, #4]
  95871. 8026aea: 637b str r3, [r7, #52] @ 0x34
  95872. iphdr = original_iphdr;
  95873. 8026aec: 6b7b ldr r3, [r7, #52] @ 0x34
  95874. 8026aee: 633b str r3, [r7, #48] @ 0x30
  95875. if (IPH_HL_BYTES(iphdr) != IP_HLEN) {
  95876. 8026af0: 6b3b ldr r3, [r7, #48] @ 0x30
  95877. 8026af2: 781b ldrb r3, [r3, #0]
  95878. 8026af4: f003 030f and.w r3, r3, #15
  95879. 8026af8: b2db uxtb r3, r3
  95880. 8026afa: 009b lsls r3, r3, #2
  95881. 8026afc: b2db uxtb r3, r3
  95882. 8026afe: 2b14 cmp r3, #20
  95883. 8026b00: d002 beq.n 8026b08 <ip4_frag+0x48>
  95884. /* ip4_frag() does not support IP options */
  95885. return ERR_VAL;
  95886. 8026b02: f06f 0305 mvn.w r3, #5
  95887. 8026b06: e110 b.n 8026d2a <ip4_frag+0x26a>
  95888. }
  95889. LWIP_ERROR("ip4_frag(): pbuf too short", p->len >= IP_HLEN, return ERR_VAL);
  95890. 8026b08: 68fb ldr r3, [r7, #12]
  95891. 8026b0a: 895b ldrh r3, [r3, #10]
  95892. 8026b0c: 2b13 cmp r3, #19
  95893. 8026b0e: d809 bhi.n 8026b24 <ip4_frag+0x64>
  95894. 8026b10: 4b88 ldr r3, [pc, #544] @ (8026d34 <ip4_frag+0x274>)
  95895. 8026b12: f44f 723f mov.w r2, #764 @ 0x2fc
  95896. 8026b16: 4988 ldr r1, [pc, #544] @ (8026d38 <ip4_frag+0x278>)
  95897. 8026b18: 4888 ldr r0, [pc, #544] @ (8026d3c <ip4_frag+0x27c>)
  95898. 8026b1a: f003 fe1f bl 802a75c <iprintf>
  95899. 8026b1e: f06f 0305 mvn.w r3, #5
  95900. 8026b22: e102 b.n 8026d2a <ip4_frag+0x26a>
  95901. /* Save original offset */
  95902. tmp = lwip_ntohs(IPH_OFFSET(iphdr));
  95903. 8026b24: 6b3b ldr r3, [r7, #48] @ 0x30
  95904. 8026b26: 88db ldrh r3, [r3, #6]
  95905. 8026b28: b29b uxth r3, r3
  95906. 8026b2a: 4618 mov r0, r3
  95907. 8026b2c: f7f2 febc bl 80198a8 <lwip_htons>
  95908. 8026b30: 4603 mov r3, r0
  95909. 8026b32: 87bb strh r3, [r7, #60] @ 0x3c
  95910. ofo = tmp & IP_OFFMASK;
  95911. 8026b34: 8fbb ldrh r3, [r7, #60] @ 0x3c
  95912. 8026b36: f3c3 030c ubfx r3, r3, #0, #13
  95913. 8026b3a: f8a7 3040 strh.w r3, [r7, #64] @ 0x40
  95914. /* already fragmented? if so, the last fragment we create must have MF, too */
  95915. mf_set = tmp & IP_MF;
  95916. 8026b3e: 8fbb ldrh r3, [r7, #60] @ 0x3c
  95917. 8026b40: f403 5300 and.w r3, r3, #8192 @ 0x2000
  95918. 8026b44: 62fb str r3, [r7, #44] @ 0x2c
  95919. left = (u16_t)(p->tot_len - IP_HLEN);
  95920. 8026b46: 68fb ldr r3, [r7, #12]
  95921. 8026b48: 891b ldrh r3, [r3, #8]
  95922. 8026b4a: 3b14 subs r3, #20
  95923. 8026b4c: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  95924. while (left) {
  95925. 8026b50: e0e1 b.n 8026d16 <ip4_frag+0x256>
  95926. /* Fill this fragment */
  95927. fragsize = LWIP_MIN(left, (u16_t)(nfb * 8));
  95928. 8026b52: 8f7b ldrh r3, [r7, #58] @ 0x3a
  95929. 8026b54: 00db lsls r3, r3, #3
  95930. 8026b56: b29b uxth r3, r3
  95931. 8026b58: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  95932. 8026b5c: 4293 cmp r3, r2
  95933. 8026b5e: bf28 it cs
  95934. 8026b60: 4613 movcs r3, r2
  95935. 8026b62: 857b strh r3, [r7, #42] @ 0x2a
  95936. /* When not using a static buffer, create a chain of pbufs.
  95937. * The first will be a PBUF_RAM holding the link and IP header.
  95938. * The rest will be PBUF_REFs mirroring the pbuf chain to be fragged,
  95939. * but limited to the size of an mtu.
  95940. */
  95941. rambuf = pbuf_alloc(PBUF_LINK, IP_HLEN, PBUF_RAM);
  95942. 8026b64: f44f 7220 mov.w r2, #640 @ 0x280
  95943. 8026b68: 2114 movs r1, #20
  95944. 8026b6a: 200e movs r0, #14
  95945. 8026b6c: f7f4 f868 bl 801ac40 <pbuf_alloc>
  95946. 8026b70: 6278 str r0, [r7, #36] @ 0x24
  95947. if (rambuf == NULL) {
  95948. 8026b72: 6a7b ldr r3, [r7, #36] @ 0x24
  95949. 8026b74: 2b00 cmp r3, #0
  95950. 8026b76: f000 80d5 beq.w 8026d24 <ip4_frag+0x264>
  95951. goto memerr;
  95952. }
  95953. LWIP_ASSERT("this needs a pbuf in one piece!",
  95954. 8026b7a: 6a7b ldr r3, [r7, #36] @ 0x24
  95955. 8026b7c: 895b ldrh r3, [r3, #10]
  95956. 8026b7e: 2b13 cmp r3, #19
  95957. 8026b80: d806 bhi.n 8026b90 <ip4_frag+0xd0>
  95958. 8026b82: 4b6c ldr r3, [pc, #432] @ (8026d34 <ip4_frag+0x274>)
  95959. 8026b84: f44f 7249 mov.w r2, #804 @ 0x324
  95960. 8026b88: 496d ldr r1, [pc, #436] @ (8026d40 <ip4_frag+0x280>)
  95961. 8026b8a: 486c ldr r0, [pc, #432] @ (8026d3c <ip4_frag+0x27c>)
  95962. 8026b8c: f003 fde6 bl 802a75c <iprintf>
  95963. (rambuf->len >= (IP_HLEN)));
  95964. SMEMCPY(rambuf->payload, original_iphdr, IP_HLEN);
  95965. 8026b90: 6a7b ldr r3, [r7, #36] @ 0x24
  95966. 8026b92: 685b ldr r3, [r3, #4]
  95967. 8026b94: 2214 movs r2, #20
  95968. 8026b96: 6b79 ldr r1, [r7, #52] @ 0x34
  95969. 8026b98: 4618 mov r0, r3
  95970. 8026b9a: f004 f868 bl 802ac6e <memcpy>
  95971. iphdr = (struct ip_hdr *)rambuf->payload;
  95972. 8026b9e: 6a7b ldr r3, [r7, #36] @ 0x24
  95973. 8026ba0: 685b ldr r3, [r3, #4]
  95974. 8026ba2: 633b str r3, [r7, #48] @ 0x30
  95975. left_to_copy = fragsize;
  95976. 8026ba4: 8d7b ldrh r3, [r7, #42] @ 0x2a
  95977. 8026ba6: f8a7 3044 strh.w r3, [r7, #68] @ 0x44
  95978. while (left_to_copy) {
  95979. 8026baa: e064 b.n 8026c76 <ip4_frag+0x1b6>
  95980. struct pbuf_custom_ref *pcr;
  95981. u16_t plen = (u16_t)(p->len - poff);
  95982. 8026bac: 68fb ldr r3, [r7, #12]
  95983. 8026bae: 895a ldrh r2, [r3, #10]
  95984. 8026bb0: 8ffb ldrh r3, [r7, #62] @ 0x3e
  95985. 8026bb2: 1ad3 subs r3, r2, r3
  95986. 8026bb4: 83fb strh r3, [r7, #30]
  95987. LWIP_ASSERT("p->len >= poff", p->len >= poff);
  95988. 8026bb6: 68fb ldr r3, [r7, #12]
  95989. 8026bb8: 895b ldrh r3, [r3, #10]
  95990. 8026bba: 8ffa ldrh r2, [r7, #62] @ 0x3e
  95991. 8026bbc: 429a cmp r2, r3
  95992. 8026bbe: d906 bls.n 8026bce <ip4_frag+0x10e>
  95993. 8026bc0: 4b5c ldr r3, [pc, #368] @ (8026d34 <ip4_frag+0x274>)
  95994. 8026bc2: f240 322d movw r2, #813 @ 0x32d
  95995. 8026bc6: 495f ldr r1, [pc, #380] @ (8026d44 <ip4_frag+0x284>)
  95996. 8026bc8: 485c ldr r0, [pc, #368] @ (8026d3c <ip4_frag+0x27c>)
  95997. 8026bca: f003 fdc7 bl 802a75c <iprintf>
  95998. newpbuflen = LWIP_MIN(left_to_copy, plen);
  95999. 8026bce: 8bfa ldrh r2, [r7, #30]
  96000. 8026bd0: f8b7 3044 ldrh.w r3, [r7, #68] @ 0x44
  96001. 8026bd4: 4293 cmp r3, r2
  96002. 8026bd6: bf28 it cs
  96003. 8026bd8: 4613 movcs r3, r2
  96004. 8026bda: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  96005. /* Is this pbuf already empty? */
  96006. if (!newpbuflen) {
  96007. 8026bde: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  96008. 8026be2: 2b00 cmp r3, #0
  96009. 8026be4: d105 bne.n 8026bf2 <ip4_frag+0x132>
  96010. poff = 0;
  96011. 8026be6: 2300 movs r3, #0
  96012. 8026be8: 87fb strh r3, [r7, #62] @ 0x3e
  96013. p = p->next;
  96014. 8026bea: 68fb ldr r3, [r7, #12]
  96015. 8026bec: 681b ldr r3, [r3, #0]
  96016. 8026bee: 60fb str r3, [r7, #12]
  96017. continue;
  96018. 8026bf0: e041 b.n 8026c76 <ip4_frag+0x1b6>
  96019. }
  96020. pcr = ip_frag_alloc_pbuf_custom_ref();
  96021. 8026bf2: f7ff ff0d bl 8026a10 <ip_frag_alloc_pbuf_custom_ref>
  96022. 8026bf6: 61b8 str r0, [r7, #24]
  96023. if (pcr == NULL) {
  96024. 8026bf8: 69bb ldr r3, [r7, #24]
  96025. 8026bfa: 2b00 cmp r3, #0
  96026. 8026bfc: d103 bne.n 8026c06 <ip4_frag+0x146>
  96027. pbuf_free(rambuf);
  96028. 8026bfe: 6a78 ldr r0, [r7, #36] @ 0x24
  96029. 8026c00: f7f4 fb34 bl 801b26c <pbuf_free>
  96030. goto memerr;
  96031. 8026c04: e08f b.n 8026d26 <ip4_frag+0x266>
  96032. }
  96033. /* Mirror this pbuf, although we might not need all of it. */
  96034. newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc,
  96035. 8026c06: 69b8 ldr r0, [r7, #24]
  96036. (u8_t *)p->payload + poff, newpbuflen);
  96037. 8026c08: 68fb ldr r3, [r7, #12]
  96038. 8026c0a: 685a ldr r2, [r3, #4]
  96039. newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc,
  96040. 8026c0c: 8ffb ldrh r3, [r7, #62] @ 0x3e
  96041. 8026c0e: 4413 add r3, r2
  96042. 8026c10: f8b7 1046 ldrh.w r1, [r7, #70] @ 0x46
  96043. 8026c14: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  96044. 8026c18: 9201 str r2, [sp, #4]
  96045. 8026c1a: 9300 str r3, [sp, #0]
  96046. 8026c1c: 4603 mov r3, r0
  96047. 8026c1e: 2241 movs r2, #65 @ 0x41
  96048. 8026c20: 2000 movs r0, #0
  96049. 8026c22: f7f4 f939 bl 801ae98 <pbuf_alloced_custom>
  96050. 8026c26: 6178 str r0, [r7, #20]
  96051. if (newpbuf == NULL) {
  96052. 8026c28: 697b ldr r3, [r7, #20]
  96053. 8026c2a: 2b00 cmp r3, #0
  96054. 8026c2c: d106 bne.n 8026c3c <ip4_frag+0x17c>
  96055. ip_frag_free_pbuf_custom_ref(pcr);
  96056. 8026c2e: 69b8 ldr r0, [r7, #24]
  96057. 8026c30: f7ff fef6 bl 8026a20 <ip_frag_free_pbuf_custom_ref>
  96058. pbuf_free(rambuf);
  96059. 8026c34: 6a78 ldr r0, [r7, #36] @ 0x24
  96060. 8026c36: f7f4 fb19 bl 801b26c <pbuf_free>
  96061. goto memerr;
  96062. 8026c3a: e074 b.n 8026d26 <ip4_frag+0x266>
  96063. }
  96064. pbuf_ref(p);
  96065. 8026c3c: 68f8 ldr r0, [r7, #12]
  96066. 8026c3e: f7f4 fbbb bl 801b3b8 <pbuf_ref>
  96067. pcr->original = p;
  96068. 8026c42: 69bb ldr r3, [r7, #24]
  96069. 8026c44: 68fa ldr r2, [r7, #12]
  96070. 8026c46: 615a str r2, [r3, #20]
  96071. pcr->pc.custom_free_function = ipfrag_free_pbuf_custom;
  96072. 8026c48: 69bb ldr r3, [r7, #24]
  96073. 8026c4a: 4a3f ldr r2, [pc, #252] @ (8026d48 <ip4_frag+0x288>)
  96074. 8026c4c: 611a str r2, [r3, #16]
  96075. /* Add it to end of rambuf's chain, but using pbuf_cat, not pbuf_chain
  96076. * so that it is removed when pbuf_dechain is later called on rambuf.
  96077. */
  96078. pbuf_cat(rambuf, newpbuf);
  96079. 8026c4e: 6979 ldr r1, [r7, #20]
  96080. 8026c50: 6a78 ldr r0, [r7, #36] @ 0x24
  96081. 8026c52: f7f4 fbd9 bl 801b408 <pbuf_cat>
  96082. left_to_copy = (u16_t)(left_to_copy - newpbuflen);
  96083. 8026c56: f8b7 2044 ldrh.w r2, [r7, #68] @ 0x44
  96084. 8026c5a: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  96085. 8026c5e: 1ad3 subs r3, r2, r3
  96086. 8026c60: f8a7 3044 strh.w r3, [r7, #68] @ 0x44
  96087. if (left_to_copy) {
  96088. 8026c64: f8b7 3044 ldrh.w r3, [r7, #68] @ 0x44
  96089. 8026c68: 2b00 cmp r3, #0
  96090. 8026c6a: d004 beq.n 8026c76 <ip4_frag+0x1b6>
  96091. poff = 0;
  96092. 8026c6c: 2300 movs r3, #0
  96093. 8026c6e: 87fb strh r3, [r7, #62] @ 0x3e
  96094. p = p->next;
  96095. 8026c70: 68fb ldr r3, [r7, #12]
  96096. 8026c72: 681b ldr r3, [r3, #0]
  96097. 8026c74: 60fb str r3, [r7, #12]
  96098. while (left_to_copy) {
  96099. 8026c76: f8b7 3044 ldrh.w r3, [r7, #68] @ 0x44
  96100. 8026c7a: 2b00 cmp r3, #0
  96101. 8026c7c: d196 bne.n 8026bac <ip4_frag+0xec>
  96102. }
  96103. }
  96104. poff = (u16_t)(poff + newpbuflen);
  96105. 8026c7e: 8ffa ldrh r2, [r7, #62] @ 0x3e
  96106. 8026c80: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  96107. 8026c84: 4413 add r3, r2
  96108. 8026c86: 87fb strh r3, [r7, #62] @ 0x3e
  96109. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  96110. /* Correct header */
  96111. last = (left <= netif->mtu - IP_HLEN);
  96112. 8026c88: 68bb ldr r3, [r7, #8]
  96113. 8026c8a: 8d1b ldrh r3, [r3, #40] @ 0x28
  96114. 8026c8c: f1a3 0213 sub.w r2, r3, #19
  96115. 8026c90: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  96116. 8026c94: 429a cmp r2, r3
  96117. 8026c96: bfcc ite gt
  96118. 8026c98: 2301 movgt r3, #1
  96119. 8026c9a: 2300 movle r3, #0
  96120. 8026c9c: b2db uxtb r3, r3
  96121. 8026c9e: 623b str r3, [r7, #32]
  96122. /* Set new offset and MF flag */
  96123. tmp = (IP_OFFMASK & (ofo));
  96124. 8026ca0: f8b7 3040 ldrh.w r3, [r7, #64] @ 0x40
  96125. 8026ca4: f3c3 030c ubfx r3, r3, #0, #13
  96126. 8026ca8: 87bb strh r3, [r7, #60] @ 0x3c
  96127. if (!last || mf_set) {
  96128. 8026caa: 6a3b ldr r3, [r7, #32]
  96129. 8026cac: 2b00 cmp r3, #0
  96130. 8026cae: d002 beq.n 8026cb6 <ip4_frag+0x1f6>
  96131. 8026cb0: 6afb ldr r3, [r7, #44] @ 0x2c
  96132. 8026cb2: 2b00 cmp r3, #0
  96133. 8026cb4: d003 beq.n 8026cbe <ip4_frag+0x1fe>
  96134. /* the last fragment has MF set if the input frame had it */
  96135. tmp = tmp | IP_MF;
  96136. 8026cb6: 8fbb ldrh r3, [r7, #60] @ 0x3c
  96137. 8026cb8: f443 5300 orr.w r3, r3, #8192 @ 0x2000
  96138. 8026cbc: 87bb strh r3, [r7, #60] @ 0x3c
  96139. }
  96140. IPH_OFFSET_SET(iphdr, lwip_htons(tmp));
  96141. 8026cbe: 8fbb ldrh r3, [r7, #60] @ 0x3c
  96142. 8026cc0: 4618 mov r0, r3
  96143. 8026cc2: f7f2 fdf1 bl 80198a8 <lwip_htons>
  96144. 8026cc6: 4603 mov r3, r0
  96145. 8026cc8: 461a mov r2, r3
  96146. 8026cca: 6b3b ldr r3, [r7, #48] @ 0x30
  96147. 8026ccc: 80da strh r2, [r3, #6]
  96148. IPH_LEN_SET(iphdr, lwip_htons((u16_t)(fragsize + IP_HLEN)));
  96149. 8026cce: 8d7b ldrh r3, [r7, #42] @ 0x2a
  96150. 8026cd0: 3314 adds r3, #20
  96151. 8026cd2: b29b uxth r3, r3
  96152. 8026cd4: 4618 mov r0, r3
  96153. 8026cd6: f7f2 fde7 bl 80198a8 <lwip_htons>
  96154. 8026cda: 4603 mov r3, r0
  96155. 8026cdc: 461a mov r2, r3
  96156. 8026cde: 6b3b ldr r3, [r7, #48] @ 0x30
  96157. 8026ce0: 805a strh r2, [r3, #2]
  96158. IPH_CHKSUM_SET(iphdr, 0);
  96159. 8026ce2: 6b3b ldr r3, [r7, #48] @ 0x30
  96160. 8026ce4: 2200 movs r2, #0
  96161. 8026ce6: 729a strb r2, [r3, #10]
  96162. 8026ce8: 2200 movs r2, #0
  96163. 8026cea: 72da strb r2, [r3, #11]
  96164. #endif /* CHECKSUM_GEN_IP */
  96165. /* No need for separate header pbuf - we allowed room for it in rambuf
  96166. * when allocated.
  96167. */
  96168. netif->output(netif, rambuf, dest);
  96169. 8026cec: 68bb ldr r3, [r7, #8]
  96170. 8026cee: 695b ldr r3, [r3, #20]
  96171. 8026cf0: 687a ldr r2, [r7, #4]
  96172. 8026cf2: 6a79 ldr r1, [r7, #36] @ 0x24
  96173. 8026cf4: 68b8 ldr r0, [r7, #8]
  96174. 8026cf6: 4798 blx r3
  96175. * recreate it next time round the loop. If we're lucky the hardware
  96176. * will have already sent the packet, the free will really free, and
  96177. * there will be zero memory penalty.
  96178. */
  96179. pbuf_free(rambuf);
  96180. 8026cf8: 6a78 ldr r0, [r7, #36] @ 0x24
  96181. 8026cfa: f7f4 fab7 bl 801b26c <pbuf_free>
  96182. left = (u16_t)(left - fragsize);
  96183. 8026cfe: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  96184. 8026d02: 8d7b ldrh r3, [r7, #42] @ 0x2a
  96185. 8026d04: 1ad3 subs r3, r2, r3
  96186. 8026d06: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  96187. ofo = (u16_t)(ofo + nfb);
  96188. 8026d0a: f8b7 2040 ldrh.w r2, [r7, #64] @ 0x40
  96189. 8026d0e: 8f7b ldrh r3, [r7, #58] @ 0x3a
  96190. 8026d10: 4413 add r3, r2
  96191. 8026d12: f8a7 3040 strh.w r3, [r7, #64] @ 0x40
  96192. while (left) {
  96193. 8026d16: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  96194. 8026d1a: 2b00 cmp r3, #0
  96195. 8026d1c: f47f af19 bne.w 8026b52 <ip4_frag+0x92>
  96196. }
  96197. MIB2_STATS_INC(mib2.ipfragoks);
  96198. return ERR_OK;
  96199. 8026d20: 2300 movs r3, #0
  96200. 8026d22: e002 b.n 8026d2a <ip4_frag+0x26a>
  96201. goto memerr;
  96202. 8026d24: bf00 nop
  96203. memerr:
  96204. MIB2_STATS_INC(mib2.ipfragfails);
  96205. return ERR_MEM;
  96206. 8026d26: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96207. }
  96208. 8026d2a: 4618 mov r0, r3
  96209. 8026d2c: 3748 adds r7, #72 @ 0x48
  96210. 8026d2e: 46bd mov sp, r7
  96211. 8026d30: bd80 pop {r7, pc}
  96212. 8026d32: bf00 nop
  96213. 8026d34: 08031550 .word 0x08031550
  96214. 8026d38: 0803172c .word 0x0803172c
  96215. 8026d3c: 08031598 .word 0x08031598
  96216. 8026d40: 08031748 .word 0x08031748
  96217. 8026d44: 08031768 .word 0x08031768
  96218. 8026d48: 08026a59 .word 0x08026a59
  96219. 08026d4c <ethernet_input>:
  96220. * @see ETHARP_SUPPORT_VLAN
  96221. * @see LWIP_HOOK_VLAN_CHECK
  96222. */
  96223. err_t
  96224. ethernet_input(struct pbuf *p, struct netif *netif)
  96225. {
  96226. 8026d4c: b580 push {r7, lr}
  96227. 8026d4e: b086 sub sp, #24
  96228. 8026d50: af00 add r7, sp, #0
  96229. 8026d52: 6078 str r0, [r7, #4]
  96230. 8026d54: 6039 str r1, [r7, #0]
  96231. struct eth_hdr *ethhdr;
  96232. u16_t type;
  96233. #if LWIP_ARP || ETHARP_SUPPORT_VLAN || LWIP_IPV6
  96234. u16_t next_hdr_offset = SIZEOF_ETH_HDR;
  96235. 8026d56: 230e movs r3, #14
  96236. 8026d58: 82fb strh r3, [r7, #22]
  96237. #endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */
  96238. LWIP_ASSERT_CORE_LOCKED();
  96239. 8026d5a: f7ea f8d1 bl 8010f00 <sys_check_core_locking>
  96240. if (p->len <= SIZEOF_ETH_HDR) {
  96241. 8026d5e: 687b ldr r3, [r7, #4]
  96242. 8026d60: 895b ldrh r3, [r3, #10]
  96243. 8026d62: 2b0e cmp r3, #14
  96244. 8026d64: d96e bls.n 8026e44 <ethernet_input+0xf8>
  96245. ETHARP_STATS_INC(etharp.drop);
  96246. MIB2_STATS_NETIF_INC(netif, ifinerrors);
  96247. goto free_and_return;
  96248. }
  96249. if (p->if_idx == NETIF_NO_INDEX) {
  96250. 8026d66: 687b ldr r3, [r7, #4]
  96251. 8026d68: 7bdb ldrb r3, [r3, #15]
  96252. 8026d6a: 2b00 cmp r3, #0
  96253. 8026d6c: d106 bne.n 8026d7c <ethernet_input+0x30>
  96254. p->if_idx = netif_get_index(netif);
  96255. 8026d6e: 683b ldr r3, [r7, #0]
  96256. 8026d70: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  96257. 8026d74: 3301 adds r3, #1
  96258. 8026d76: b2da uxtb r2, r3
  96259. 8026d78: 687b ldr r3, [r7, #4]
  96260. 8026d7a: 73da strb r2, [r3, #15]
  96261. }
  96262. /* points to packet payload, which starts with an Ethernet header */
  96263. ethhdr = (struct eth_hdr *)p->payload;
  96264. 8026d7c: 687b ldr r3, [r7, #4]
  96265. 8026d7e: 685b ldr r3, [r3, #4]
  96266. 8026d80: 613b str r3, [r7, #16]
  96267. (unsigned char)ethhdr->dest.addr[3], (unsigned char)ethhdr->dest.addr[4], (unsigned char)ethhdr->dest.addr[5],
  96268. (unsigned char)ethhdr->src.addr[0], (unsigned char)ethhdr->src.addr[1], (unsigned char)ethhdr->src.addr[2],
  96269. (unsigned char)ethhdr->src.addr[3], (unsigned char)ethhdr->src.addr[4], (unsigned char)ethhdr->src.addr[5],
  96270. lwip_htons(ethhdr->type)));
  96271. type = ethhdr->type;
  96272. 8026d82: 693b ldr r3, [r7, #16]
  96273. 8026d84: 7b1a ldrb r2, [r3, #12]
  96274. 8026d86: 7b5b ldrb r3, [r3, #13]
  96275. 8026d88: 021b lsls r3, r3, #8
  96276. 8026d8a: 4313 orrs r3, r2
  96277. 8026d8c: 81fb strh r3, [r7, #14]
  96278. #if LWIP_ARP_FILTER_NETIF
  96279. netif = LWIP_ARP_FILTER_NETIF_FN(p, netif, lwip_htons(type));
  96280. #endif /* LWIP_ARP_FILTER_NETIF*/
  96281. if (ethhdr->dest.addr[0] & 1) {
  96282. 8026d8e: 693b ldr r3, [r7, #16]
  96283. 8026d90: 781b ldrb r3, [r3, #0]
  96284. 8026d92: f003 0301 and.w r3, r3, #1
  96285. 8026d96: 2b00 cmp r3, #0
  96286. 8026d98: d023 beq.n 8026de2 <ethernet_input+0x96>
  96287. /* this might be a multicast or broadcast packet */
  96288. if (ethhdr->dest.addr[0] == LL_IP4_MULTICAST_ADDR_0) {
  96289. 8026d9a: 693b ldr r3, [r7, #16]
  96290. 8026d9c: 781b ldrb r3, [r3, #0]
  96291. 8026d9e: 2b01 cmp r3, #1
  96292. 8026da0: d10f bne.n 8026dc2 <ethernet_input+0x76>
  96293. #if LWIP_IPV4
  96294. if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) &&
  96295. 8026da2: 693b ldr r3, [r7, #16]
  96296. 8026da4: 785b ldrb r3, [r3, #1]
  96297. 8026da6: 2b00 cmp r3, #0
  96298. 8026da8: d11b bne.n 8026de2 <ethernet_input+0x96>
  96299. (ethhdr->dest.addr[2] == LL_IP4_MULTICAST_ADDR_2)) {
  96300. 8026daa: 693b ldr r3, [r7, #16]
  96301. 8026dac: 789b ldrb r3, [r3, #2]
  96302. if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) &&
  96303. 8026dae: 2b5e cmp r3, #94 @ 0x5e
  96304. 8026db0: d117 bne.n 8026de2 <ethernet_input+0x96>
  96305. /* mark the pbuf as link-layer multicast */
  96306. p->flags |= PBUF_FLAG_LLMCAST;
  96307. 8026db2: 687b ldr r3, [r7, #4]
  96308. 8026db4: 7b5b ldrb r3, [r3, #13]
  96309. 8026db6: f043 0310 orr.w r3, r3, #16
  96310. 8026dba: b2da uxtb r2, r3
  96311. 8026dbc: 687b ldr r3, [r7, #4]
  96312. 8026dbe: 735a strb r2, [r3, #13]
  96313. 8026dc0: e00f b.n 8026de2 <ethernet_input+0x96>
  96314. (ethhdr->dest.addr[1] == LL_IP6_MULTICAST_ADDR_1)) {
  96315. /* mark the pbuf as link-layer multicast */
  96316. p->flags |= PBUF_FLAG_LLMCAST;
  96317. }
  96318. #endif /* LWIP_IPV6 */
  96319. else if (eth_addr_cmp(&ethhdr->dest, &ethbroadcast)) {
  96320. 8026dc2: 693b ldr r3, [r7, #16]
  96321. 8026dc4: 2206 movs r2, #6
  96322. 8026dc6: 4928 ldr r1, [pc, #160] @ (8026e68 <ethernet_input+0x11c>)
  96323. 8026dc8: 4618 mov r0, r3
  96324. 8026dca: f003 fe2f bl 802aa2c <memcmp>
  96325. 8026dce: 4603 mov r3, r0
  96326. 8026dd0: 2b00 cmp r3, #0
  96327. 8026dd2: d106 bne.n 8026de2 <ethernet_input+0x96>
  96328. /* mark the pbuf as link-layer broadcast */
  96329. p->flags |= PBUF_FLAG_LLBCAST;
  96330. 8026dd4: 687b ldr r3, [r7, #4]
  96331. 8026dd6: 7b5b ldrb r3, [r3, #13]
  96332. 8026dd8: f043 0308 orr.w r3, r3, #8
  96333. 8026ddc: b2da uxtb r2, r3
  96334. 8026dde: 687b ldr r3, [r7, #4]
  96335. 8026de0: 735a strb r2, [r3, #13]
  96336. }
  96337. }
  96338. switch (type) {
  96339. 8026de2: 89fb ldrh r3, [r7, #14]
  96340. 8026de4: 2b08 cmp r3, #8
  96341. 8026de6: d003 beq.n 8026df0 <ethernet_input+0xa4>
  96342. 8026de8: f5b3 6fc1 cmp.w r3, #1544 @ 0x608
  96343. 8026dec: d014 beq.n 8026e18 <ethernet_input+0xcc>
  96344. }
  96345. #endif
  96346. ETHARP_STATS_INC(etharp.proterr);
  96347. ETHARP_STATS_INC(etharp.drop);
  96348. MIB2_STATS_NETIF_INC(netif, ifinunknownprotos);
  96349. goto free_and_return;
  96350. 8026dee: e032 b.n 8026e56 <ethernet_input+0x10a>
  96351. if (!(netif->flags & NETIF_FLAG_ETHARP)) {
  96352. 8026df0: 683b ldr r3, [r7, #0]
  96353. 8026df2: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  96354. 8026df6: f003 0308 and.w r3, r3, #8
  96355. 8026dfa: 2b00 cmp r3, #0
  96356. 8026dfc: d024 beq.n 8026e48 <ethernet_input+0xfc>
  96357. if (pbuf_remove_header(p, next_hdr_offset)) {
  96358. 8026dfe: 8afb ldrh r3, [r7, #22]
  96359. 8026e00: 4619 mov r1, r3
  96360. 8026e02: 6878 ldr r0, [r7, #4]
  96361. 8026e04: f7f4 f97a bl 801b0fc <pbuf_remove_header>
  96362. 8026e08: 4603 mov r3, r0
  96363. 8026e0a: 2b00 cmp r3, #0
  96364. 8026e0c: d11e bne.n 8026e4c <ethernet_input+0x100>
  96365. ip4_input(p, netif);
  96366. 8026e0e: 6839 ldr r1, [r7, #0]
  96367. 8026e10: 6878 ldr r0, [r7, #4]
  96368. 8026e12: f7fe fd2f bl 8025874 <ip4_input>
  96369. break;
  96370. 8026e16: e013 b.n 8026e40 <ethernet_input+0xf4>
  96371. if (!(netif->flags & NETIF_FLAG_ETHARP)) {
  96372. 8026e18: 683b ldr r3, [r7, #0]
  96373. 8026e1a: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  96374. 8026e1e: f003 0308 and.w r3, r3, #8
  96375. 8026e22: 2b00 cmp r3, #0
  96376. 8026e24: d014 beq.n 8026e50 <ethernet_input+0x104>
  96377. if (pbuf_remove_header(p, next_hdr_offset)) {
  96378. 8026e26: 8afb ldrh r3, [r7, #22]
  96379. 8026e28: 4619 mov r1, r3
  96380. 8026e2a: 6878 ldr r0, [r7, #4]
  96381. 8026e2c: f7f4 f966 bl 801b0fc <pbuf_remove_header>
  96382. 8026e30: 4603 mov r3, r0
  96383. 8026e32: 2b00 cmp r3, #0
  96384. 8026e34: d10e bne.n 8026e54 <ethernet_input+0x108>
  96385. etharp_input(p, netif);
  96386. 8026e36: 6839 ldr r1, [r7, #0]
  96387. 8026e38: 6878 ldr r0, [r7, #4]
  96388. 8026e3a: f7fd fe9d bl 8024b78 <etharp_input>
  96389. break;
  96390. 8026e3e: bf00 nop
  96391. }
  96392. /* This means the pbuf is freed or consumed,
  96393. so the caller doesn't have to free it again */
  96394. return ERR_OK;
  96395. 8026e40: 2300 movs r3, #0
  96396. 8026e42: e00c b.n 8026e5e <ethernet_input+0x112>
  96397. goto free_and_return;
  96398. 8026e44: bf00 nop
  96399. 8026e46: e006 b.n 8026e56 <ethernet_input+0x10a>
  96400. goto free_and_return;
  96401. 8026e48: bf00 nop
  96402. 8026e4a: e004 b.n 8026e56 <ethernet_input+0x10a>
  96403. goto free_and_return;
  96404. 8026e4c: bf00 nop
  96405. 8026e4e: e002 b.n 8026e56 <ethernet_input+0x10a>
  96406. goto free_and_return;
  96407. 8026e50: bf00 nop
  96408. 8026e52: e000 b.n 8026e56 <ethernet_input+0x10a>
  96409. goto free_and_return;
  96410. 8026e54: bf00 nop
  96411. free_and_return:
  96412. pbuf_free(p);
  96413. 8026e56: 6878 ldr r0, [r7, #4]
  96414. 8026e58: f7f4 fa08 bl 801b26c <pbuf_free>
  96415. return ERR_OK;
  96416. 8026e5c: 2300 movs r3, #0
  96417. }
  96418. 8026e5e: 4618 mov r0, r3
  96419. 8026e60: 3718 adds r7, #24
  96420. 8026e62: 46bd mov sp, r7
  96421. 8026e64: bd80 pop {r7, pc}
  96422. 8026e66: bf00 nop
  96423. 8026e68: 08031b60 .word 0x08031b60
  96424. 08026e6c <ethernet_output>:
  96425. * @return ERR_OK if the packet was sent, any other err_t on failure
  96426. */
  96427. err_t
  96428. ethernet_output(struct netif * netif, struct pbuf * p,
  96429. const struct eth_addr * src, const struct eth_addr * dst,
  96430. u16_t eth_type) {
  96431. 8026e6c: b580 push {r7, lr}
  96432. 8026e6e: b086 sub sp, #24
  96433. 8026e70: af00 add r7, sp, #0
  96434. 8026e72: 60f8 str r0, [r7, #12]
  96435. 8026e74: 60b9 str r1, [r7, #8]
  96436. 8026e76: 607a str r2, [r7, #4]
  96437. 8026e78: 603b str r3, [r7, #0]
  96438. struct eth_hdr *ethhdr;
  96439. u16_t eth_type_be = lwip_htons(eth_type);
  96440. 8026e7a: 8c3b ldrh r3, [r7, #32]
  96441. 8026e7c: 4618 mov r0, r3
  96442. 8026e7e: f7f2 fd13 bl 80198a8 <lwip_htons>
  96443. 8026e82: 4603 mov r3, r0
  96444. 8026e84: 82fb strh r3, [r7, #22]
  96445. eth_type_be = PP_HTONS(ETHTYPE_VLAN);
  96446. } else
  96447. #endif /* ETHARP_SUPPORT_VLAN && defined(LWIP_HOOK_VLAN_SET) */
  96448. {
  96449. if (pbuf_add_header(p, SIZEOF_ETH_HDR) != 0) {
  96450. 8026e86: 210e movs r1, #14
  96451. 8026e88: 68b8 ldr r0, [r7, #8]
  96452. 8026e8a: f7f4 f927 bl 801b0dc <pbuf_add_header>
  96453. 8026e8e: 4603 mov r3, r0
  96454. 8026e90: 2b00 cmp r3, #0
  96455. 8026e92: d127 bne.n 8026ee4 <ethernet_output+0x78>
  96456. goto pbuf_header_failed;
  96457. }
  96458. }
  96459. LWIP_ASSERT_CORE_LOCKED();
  96460. 8026e94: f7ea f834 bl 8010f00 <sys_check_core_locking>
  96461. ethhdr = (struct eth_hdr *)p->payload;
  96462. 8026e98: 68bb ldr r3, [r7, #8]
  96463. 8026e9a: 685b ldr r3, [r3, #4]
  96464. 8026e9c: 613b str r3, [r7, #16]
  96465. ethhdr->type = eth_type_be;
  96466. 8026e9e: 693b ldr r3, [r7, #16]
  96467. 8026ea0: 8afa ldrh r2, [r7, #22]
  96468. 8026ea2: 819a strh r2, [r3, #12]
  96469. SMEMCPY(&ethhdr->dest, dst, ETH_HWADDR_LEN);
  96470. 8026ea4: 693b ldr r3, [r7, #16]
  96471. 8026ea6: 2206 movs r2, #6
  96472. 8026ea8: 6839 ldr r1, [r7, #0]
  96473. 8026eaa: 4618 mov r0, r3
  96474. 8026eac: f003 fedf bl 802ac6e <memcpy>
  96475. SMEMCPY(&ethhdr->src, src, ETH_HWADDR_LEN);
  96476. 8026eb0: 693b ldr r3, [r7, #16]
  96477. 8026eb2: 3306 adds r3, #6
  96478. 8026eb4: 2206 movs r2, #6
  96479. 8026eb6: 6879 ldr r1, [r7, #4]
  96480. 8026eb8: 4618 mov r0, r3
  96481. 8026eba: f003 fed8 bl 802ac6e <memcpy>
  96482. LWIP_ASSERT("netif->hwaddr_len must be 6 for ethernet_output!",
  96483. 8026ebe: 68fb ldr r3, [r7, #12]
  96484. 8026ec0: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  96485. 8026ec4: 2b06 cmp r3, #6
  96486. 8026ec6: d006 beq.n 8026ed6 <ethernet_output+0x6a>
  96487. 8026ec8: 4b0a ldr r3, [pc, #40] @ (8026ef4 <ethernet_output+0x88>)
  96488. 8026eca: f44f 7299 mov.w r2, #306 @ 0x132
  96489. 8026ece: 490a ldr r1, [pc, #40] @ (8026ef8 <ethernet_output+0x8c>)
  96490. 8026ed0: 480a ldr r0, [pc, #40] @ (8026efc <ethernet_output+0x90>)
  96491. 8026ed2: f003 fc43 bl 802a75c <iprintf>
  96492. (netif->hwaddr_len == ETH_HWADDR_LEN));
  96493. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE,
  96494. ("ethernet_output: sending packet %p\n", (void *)p));
  96495. /* send the packet */
  96496. return netif->linkoutput(netif, p);
  96497. 8026ed6: 68fb ldr r3, [r7, #12]
  96498. 8026ed8: 699b ldr r3, [r3, #24]
  96499. 8026eda: 68b9 ldr r1, [r7, #8]
  96500. 8026edc: 68f8 ldr r0, [r7, #12]
  96501. 8026ede: 4798 blx r3
  96502. 8026ee0: 4603 mov r3, r0
  96503. 8026ee2: e002 b.n 8026eea <ethernet_output+0x7e>
  96504. goto pbuf_header_failed;
  96505. 8026ee4: bf00 nop
  96506. pbuf_header_failed:
  96507. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  96508. ("ethernet_output: could not allocate room for header.\n"));
  96509. LINK_STATS_INC(link.lenerr);
  96510. return ERR_BUF;
  96511. 8026ee6: f06f 0301 mvn.w r3, #1
  96512. }
  96513. 8026eea: 4618 mov r0, r3
  96514. 8026eec: 3718 adds r7, #24
  96515. 8026eee: 46bd mov sp, r7
  96516. 8026ef0: bd80 pop {r7, pc}
  96517. 8026ef2: bf00 nop
  96518. 8026ef4: 08031778 .word 0x08031778
  96519. 8026ef8: 080317b0 .word 0x080317b0
  96520. 8026efc: 080317e4 .word 0x080317e4
  96521. 08026f00 <sys_mbox_new>:
  96522. #endif
  96523. /*-----------------------------------------------------------------------------------*/
  96524. // Creates an empty mailbox.
  96525. err_t sys_mbox_new(sys_mbox_t *mbox, int size)
  96526. {
  96527. 8026f00: b580 push {r7, lr}
  96528. 8026f02: b082 sub sp, #8
  96529. 8026f04: af00 add r7, sp, #0
  96530. 8026f06: 6078 str r0, [r7, #4]
  96531. 8026f08: 6039 str r1, [r7, #0]
  96532. #if (osCMSIS < 0x20000U)
  96533. osMessageQDef(QUEUE, size, void *);
  96534. *mbox = osMessageCreate(osMessageQ(QUEUE), NULL);
  96535. #else
  96536. *mbox = osMessageQueueNew(size, sizeof(void *), NULL);
  96537. 8026f0a: 683b ldr r3, [r7, #0]
  96538. 8026f0c: 2200 movs r2, #0
  96539. 8026f0e: 2104 movs r1, #4
  96540. 8026f10: 4618 mov r0, r3
  96541. 8026f12: f7ea fd81 bl 8011a18 <osMessageQueueNew>
  96542. 8026f16: 4602 mov r2, r0
  96543. 8026f18: 687b ldr r3, [r7, #4]
  96544. 8026f1a: 601a str r2, [r3, #0]
  96545. if(lwip_stats.sys.mbox.max < lwip_stats.sys.mbox.used)
  96546. {
  96547. lwip_stats.sys.mbox.max = lwip_stats.sys.mbox.used;
  96548. }
  96549. #endif /* SYS_STATS */
  96550. if(*mbox == NULL)
  96551. 8026f1c: 687b ldr r3, [r7, #4]
  96552. 8026f1e: 681b ldr r3, [r3, #0]
  96553. 8026f20: 2b00 cmp r3, #0
  96554. 8026f22: d102 bne.n 8026f2a <sys_mbox_new+0x2a>
  96555. return ERR_MEM;
  96556. 8026f24: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96557. 8026f28: e000 b.n 8026f2c <sys_mbox_new+0x2c>
  96558. return ERR_OK;
  96559. 8026f2a: 2300 movs r3, #0
  96560. }
  96561. 8026f2c: 4618 mov r0, r3
  96562. 8026f2e: 3708 adds r7, #8
  96563. 8026f30: 46bd mov sp, r7
  96564. 8026f32: bd80 pop {r7, pc}
  96565. 08026f34 <sys_mbox_free>:
  96566. Deallocates a mailbox. If there are messages still present in the
  96567. mailbox when the mailbox is deallocated, it is an indication of a
  96568. programming error in lwIP and the developer should be notified.
  96569. */
  96570. void sys_mbox_free(sys_mbox_t *mbox)
  96571. {
  96572. 8026f34: b580 push {r7, lr}
  96573. 8026f36: b082 sub sp, #8
  96574. 8026f38: af00 add r7, sp, #0
  96575. 8026f3a: 6078 str r0, [r7, #4]
  96576. #if (osCMSIS < 0x20000U)
  96577. if(osMessageWaiting(*mbox))
  96578. #else
  96579. if(osMessageQueueGetCount(*mbox))
  96580. 8026f3c: 687b ldr r3, [r7, #4]
  96581. 8026f3e: 681b ldr r3, [r3, #0]
  96582. 8026f40: 4618 mov r0, r3
  96583. 8026f42: f7ea fe9b bl 8011c7c <osMessageQueueGetCount>
  96584. }
  96585. #if (osCMSIS < 0x20000U)
  96586. osMessageDelete(*mbox);
  96587. #else
  96588. osMessageQueueDelete(*mbox);
  96589. 8026f46: 687b ldr r3, [r7, #4]
  96590. 8026f48: 681b ldr r3, [r3, #0]
  96591. 8026f4a: 4618 mov r0, r3
  96592. 8026f4c: f7ea feb6 bl 8011cbc <osMessageQueueDelete>
  96593. #endif
  96594. #if SYS_STATS
  96595. --lwip_stats.sys.mbox.used;
  96596. #endif /* SYS_STATS */
  96597. }
  96598. 8026f50: bf00 nop
  96599. 8026f52: 3708 adds r7, #8
  96600. 8026f54: 46bd mov sp, r7
  96601. 8026f56: bd80 pop {r7, pc}
  96602. 08026f58 <sys_mbox_trypost>:
  96603. /*-----------------------------------------------------------------------------------*/
  96604. // Try to post the "msg" to the mailbox.
  96605. err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg)
  96606. {
  96607. 8026f58: b580 push {r7, lr}
  96608. 8026f5a: b084 sub sp, #16
  96609. 8026f5c: af00 add r7, sp, #0
  96610. 8026f5e: 6078 str r0, [r7, #4]
  96611. 8026f60: 6039 str r1, [r7, #0]
  96612. err_t result;
  96613. #if (osCMSIS < 0x20000U)
  96614. if(osMessagePut(*mbox, (uint32_t)msg, 0) == osOK)
  96615. #else
  96616. if(osMessageQueuePut(*mbox, &msg, 0, 0) == osOK)
  96617. 8026f62: 687b ldr r3, [r7, #4]
  96618. 8026f64: 6818 ldr r0, [r3, #0]
  96619. 8026f66: 4639 mov r1, r7
  96620. 8026f68: 2300 movs r3, #0
  96621. 8026f6a: 2200 movs r2, #0
  96622. 8026f6c: f7ea fdc8 bl 8011b00 <osMessageQueuePut>
  96623. 8026f70: 4603 mov r3, r0
  96624. 8026f72: 2b00 cmp r3, #0
  96625. 8026f74: d102 bne.n 8026f7c <sys_mbox_trypost+0x24>
  96626. #endif
  96627. {
  96628. result = ERR_OK;
  96629. 8026f76: 2300 movs r3, #0
  96630. 8026f78: 73fb strb r3, [r7, #15]
  96631. 8026f7a: e001 b.n 8026f80 <sys_mbox_trypost+0x28>
  96632. }
  96633. else
  96634. {
  96635. // could not post, queue must be full
  96636. result = ERR_MEM;
  96637. 8026f7c: 23ff movs r3, #255 @ 0xff
  96638. 8026f7e: 73fb strb r3, [r7, #15]
  96639. #if SYS_STATS
  96640. lwip_stats.sys.mbox.err++;
  96641. #endif /* SYS_STATS */
  96642. }
  96643. return result;
  96644. 8026f80: f997 300f ldrsb.w r3, [r7, #15]
  96645. }
  96646. 8026f84: 4618 mov r0, r3
  96647. 8026f86: 3710 adds r7, #16
  96648. 8026f88: 46bd mov sp, r7
  96649. 8026f8a: bd80 pop {r7, pc}
  96650. 08026f8c <sys_arch_mbox_fetch>:
  96651. Note that a function with a similar name, sys_mbox_fetch(), is
  96652. implemented by lwIP.
  96653. */
  96654. u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
  96655. {
  96656. 8026f8c: b580 push {r7, lr}
  96657. 8026f8e: b086 sub sp, #24
  96658. 8026f90: af00 add r7, sp, #0
  96659. 8026f92: 60f8 str r0, [r7, #12]
  96660. 8026f94: 60b9 str r1, [r7, #8]
  96661. 8026f96: 607a str r2, [r7, #4]
  96662. #if (osCMSIS < 0x20000U)
  96663. osEvent event;
  96664. uint32_t starttime = osKernelSysTick();
  96665. #else
  96666. osStatus_t status;
  96667. uint32_t starttime = osKernelGetTickCount();
  96668. 8026f98: f7ea f928 bl 80111ec <osKernelGetTickCount>
  96669. 8026f9c: 6178 str r0, [r7, #20]
  96670. #endif
  96671. if(timeout != 0)
  96672. 8026f9e: 687b ldr r3, [r7, #4]
  96673. 8026fa0: 2b00 cmp r3, #0
  96674. 8026fa2: d013 beq.n 8026fcc <sys_arch_mbox_fetch+0x40>
  96675. {
  96676. *msg = (void *)event.value.v;
  96677. return (osKernelSysTick() - starttime);
  96678. }
  96679. #else
  96680. status = osMessageQueueGet(*mbox, msg, 0, timeout);
  96681. 8026fa4: 68fb ldr r3, [r7, #12]
  96682. 8026fa6: 6818 ldr r0, [r3, #0]
  96683. 8026fa8: 687b ldr r3, [r7, #4]
  96684. 8026faa: 2200 movs r2, #0
  96685. 8026fac: 68b9 ldr r1, [r7, #8]
  96686. 8026fae: f7ea fe07 bl 8011bc0 <osMessageQueueGet>
  96687. 8026fb2: 6138 str r0, [r7, #16]
  96688. if (status == osOK)
  96689. 8026fb4: 693b ldr r3, [r7, #16]
  96690. 8026fb6: 2b00 cmp r3, #0
  96691. 8026fb8: d105 bne.n 8026fc6 <sys_arch_mbox_fetch+0x3a>
  96692. {
  96693. return (osKernelGetTickCount() - starttime);
  96694. 8026fba: f7ea f917 bl 80111ec <osKernelGetTickCount>
  96695. 8026fbe: 4602 mov r2, r0
  96696. 8026fc0: 697b ldr r3, [r7, #20]
  96697. 8026fc2: 1ad3 subs r3, r2, r3
  96698. 8026fc4: e00f b.n 8026fe6 <sys_arch_mbox_fetch+0x5a>
  96699. }
  96700. #endif
  96701. else
  96702. {
  96703. return SYS_ARCH_TIMEOUT;
  96704. 8026fc6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96705. 8026fca: e00c b.n 8026fe6 <sys_arch_mbox_fetch+0x5a>
  96706. #if (osCMSIS < 0x20000U)
  96707. event = osMessageGet (*mbox, osWaitForever);
  96708. *msg = (void *)event.value.v;
  96709. return (osKernelSysTick() - starttime);
  96710. #else
  96711. osMessageQueueGet(*mbox, msg, 0, osWaitForever );
  96712. 8026fcc: 68fb ldr r3, [r7, #12]
  96713. 8026fce: 6818 ldr r0, [r3, #0]
  96714. 8026fd0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96715. 8026fd4: 2200 movs r2, #0
  96716. 8026fd6: 68b9 ldr r1, [r7, #8]
  96717. 8026fd8: f7ea fdf2 bl 8011bc0 <osMessageQueueGet>
  96718. return (osKernelGetTickCount() - starttime);
  96719. 8026fdc: f7ea f906 bl 80111ec <osKernelGetTickCount>
  96720. 8026fe0: 4602 mov r2, r0
  96721. 8026fe2: 697b ldr r3, [r7, #20]
  96722. 8026fe4: 1ad3 subs r3, r2, r3
  96723. #endif
  96724. }
  96725. }
  96726. 8026fe6: 4618 mov r0, r3
  96727. 8026fe8: 3718 adds r7, #24
  96728. 8026fea: 46bd mov sp, r7
  96729. 8026fec: bd80 pop {r7, pc}
  96730. 08026fee <sys_arch_mbox_tryfetch>:
  96731. /*
  96732. Similar to sys_arch_mbox_fetch, but if message is not ready immediately, we'll
  96733. return with SYS_MBOX_EMPTY. On success, 0 is returned.
  96734. */
  96735. u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg)
  96736. {
  96737. 8026fee: b580 push {r7, lr}
  96738. 8026ff0: b082 sub sp, #8
  96739. 8026ff2: af00 add r7, sp, #0
  96740. 8026ff4: 6078 str r0, [r7, #4]
  96741. 8026ff6: 6039 str r1, [r7, #0]
  96742. if(event.status == osEventMessage)
  96743. {
  96744. *msg = (void *)event.value.v;
  96745. #else
  96746. if (osMessageQueueGet(*mbox, msg, 0, 0) == osOK)
  96747. 8026ff8: 687b ldr r3, [r7, #4]
  96748. 8026ffa: 6818 ldr r0, [r3, #0]
  96749. 8026ffc: 2300 movs r3, #0
  96750. 8026ffe: 2200 movs r2, #0
  96751. 8027000: 6839 ldr r1, [r7, #0]
  96752. 8027002: f7ea fddd bl 8011bc0 <osMessageQueueGet>
  96753. 8027006: 4603 mov r3, r0
  96754. 8027008: 2b00 cmp r3, #0
  96755. 802700a: d101 bne.n 8027010 <sys_arch_mbox_tryfetch+0x22>
  96756. {
  96757. #endif
  96758. return ERR_OK;
  96759. 802700c: 2300 movs r3, #0
  96760. 802700e: e001 b.n 8027014 <sys_arch_mbox_tryfetch+0x26>
  96761. }
  96762. else
  96763. {
  96764. return SYS_MBOX_EMPTY;
  96765. 8027010: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96766. }
  96767. }
  96768. 8027014: 4618 mov r0, r3
  96769. 8027016: 3708 adds r7, #8
  96770. 8027018: 46bd mov sp, r7
  96771. 802701a: bd80 pop {r7, pc}
  96772. 0802701c <sys_mbox_valid>:
  96773. /*----------------------------------------------------------------------------------*/
  96774. int sys_mbox_valid(sys_mbox_t *mbox)
  96775. {
  96776. 802701c: b480 push {r7}
  96777. 802701e: b083 sub sp, #12
  96778. 8027020: af00 add r7, sp, #0
  96779. 8027022: 6078 str r0, [r7, #4]
  96780. if (*mbox == SYS_MBOX_NULL)
  96781. 8027024: 687b ldr r3, [r7, #4]
  96782. 8027026: 681b ldr r3, [r3, #0]
  96783. 8027028: 2b00 cmp r3, #0
  96784. 802702a: d101 bne.n 8027030 <sys_mbox_valid+0x14>
  96785. return 0;
  96786. 802702c: 2300 movs r3, #0
  96787. 802702e: e000 b.n 8027032 <sys_mbox_valid+0x16>
  96788. else
  96789. return 1;
  96790. 8027030: 2301 movs r3, #1
  96791. }
  96792. 8027032: 4618 mov r0, r3
  96793. 8027034: 370c adds r7, #12
  96794. 8027036: 46bd mov sp, r7
  96795. 8027038: f85d 7b04 ldr.w r7, [sp], #4
  96796. 802703c: 4770 bx lr
  96797. 0802703e <sys_mbox_set_invalid>:
  96798. /*-----------------------------------------------------------------------------------*/
  96799. void sys_mbox_set_invalid(sys_mbox_t *mbox)
  96800. {
  96801. 802703e: b480 push {r7}
  96802. 8027040: b083 sub sp, #12
  96803. 8027042: af00 add r7, sp, #0
  96804. 8027044: 6078 str r0, [r7, #4]
  96805. *mbox = SYS_MBOX_NULL;
  96806. 8027046: 687b ldr r3, [r7, #4]
  96807. 8027048: 2200 movs r2, #0
  96808. 802704a: 601a str r2, [r3, #0]
  96809. }
  96810. 802704c: bf00 nop
  96811. 802704e: 370c adds r7, #12
  96812. 8027050: 46bd mov sp, r7
  96813. 8027052: f85d 7b04 ldr.w r7, [sp], #4
  96814. 8027056: 4770 bx lr
  96815. 08027058 <sys_sem_new>:
  96816. /*-----------------------------------------------------------------------------------*/
  96817. // Creates a new semaphore. The "count" argument specifies
  96818. // the initial state of the semaphore.
  96819. err_t sys_sem_new(sys_sem_t *sem, u8_t count)
  96820. {
  96821. 8027058: b580 push {r7, lr}
  96822. 802705a: b082 sub sp, #8
  96823. 802705c: af00 add r7, sp, #0
  96824. 802705e: 6078 str r0, [r7, #4]
  96825. 8027060: 460b mov r3, r1
  96826. 8027062: 70fb strb r3, [r7, #3]
  96827. #if (osCMSIS < 0x20000U)
  96828. osSemaphoreDef(SEM);
  96829. *sem = osSemaphoreCreate (osSemaphore(SEM), 1);
  96830. #else
  96831. *sem = osSemaphoreNew(UINT16_MAX, count, NULL);
  96832. 8027064: 78fb ldrb r3, [r7, #3]
  96833. 8027066: 2200 movs r2, #0
  96834. 8027068: 4619 mov r1, r3
  96835. 802706a: f64f 70ff movw r0, #65535 @ 0xffff
  96836. 802706e: f7ea fb90 bl 8011792 <osSemaphoreNew>
  96837. 8027072: 4602 mov r2, r0
  96838. 8027074: 687b ldr r3, [r7, #4]
  96839. 8027076: 601a str r2, [r3, #0]
  96840. #endif
  96841. if(*sem == NULL)
  96842. 8027078: 687b ldr r3, [r7, #4]
  96843. 802707a: 681b ldr r3, [r3, #0]
  96844. 802707c: 2b00 cmp r3, #0
  96845. 802707e: d102 bne.n 8027086 <sys_sem_new+0x2e>
  96846. {
  96847. #if SYS_STATS
  96848. ++lwip_stats.sys.sem.err;
  96849. #endif /* SYS_STATS */
  96850. return ERR_MEM;
  96851. 8027080: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96852. 8027084: e009 b.n 802709a <sys_sem_new+0x42>
  96853. }
  96854. if(count == 0) // Means it can't be taken
  96855. 8027086: 78fb ldrb r3, [r7, #3]
  96856. 8027088: 2b00 cmp r3, #0
  96857. 802708a: d105 bne.n 8027098 <sys_sem_new+0x40>
  96858. {
  96859. #if (osCMSIS < 0x20000U)
  96860. osSemaphoreWait(*sem, 0);
  96861. #else
  96862. osSemaphoreAcquire(*sem, 0);
  96863. 802708c: 687b ldr r3, [r7, #4]
  96864. 802708e: 681b ldr r3, [r3, #0]
  96865. 8027090: 2100 movs r1, #0
  96866. 8027092: 4618 mov r0, r3
  96867. 8027094: f7ea fc06 bl 80118a4 <osSemaphoreAcquire>
  96868. if (lwip_stats.sys.sem.max < lwip_stats.sys.sem.used) {
  96869. lwip_stats.sys.sem.max = lwip_stats.sys.sem.used;
  96870. }
  96871. #endif /* SYS_STATS */
  96872. return ERR_OK;
  96873. 8027098: 2300 movs r3, #0
  96874. }
  96875. 802709a: 4618 mov r0, r3
  96876. 802709c: 3708 adds r7, #8
  96877. 802709e: 46bd mov sp, r7
  96878. 80270a0: bd80 pop {r7, pc}
  96879. 080270a2 <sys_arch_sem_wait>:
  96880. Notice that lwIP implements a function with a similar name,
  96881. sys_sem_wait(), that uses the sys_arch_sem_wait() function.
  96882. */
  96883. u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout)
  96884. {
  96885. 80270a2: b580 push {r7, lr}
  96886. 80270a4: b084 sub sp, #16
  96887. 80270a6: af00 add r7, sp, #0
  96888. 80270a8: 6078 str r0, [r7, #4]
  96889. 80270aa: 6039 str r1, [r7, #0]
  96890. #if (osCMSIS < 0x20000U)
  96891. uint32_t starttime = osKernelSysTick();
  96892. #else
  96893. uint32_t starttime = osKernelGetTickCount();
  96894. 80270ac: f7ea f89e bl 80111ec <osKernelGetTickCount>
  96895. 80270b0: 60f8 str r0, [r7, #12]
  96896. #endif
  96897. if(timeout != 0)
  96898. 80270b2: 683b ldr r3, [r7, #0]
  96899. 80270b4: 2b00 cmp r3, #0
  96900. 80270b6: d011 beq.n 80270dc <sys_arch_sem_wait+0x3a>
  96901. #if (osCMSIS < 0x20000U)
  96902. if(osSemaphoreWait (*sem, timeout) == osOK)
  96903. {
  96904. return (osKernelSysTick() - starttime);
  96905. #else
  96906. if(osSemaphoreAcquire(*sem, timeout) == osOK)
  96907. 80270b8: 687b ldr r3, [r7, #4]
  96908. 80270ba: 681b ldr r3, [r3, #0]
  96909. 80270bc: 6839 ldr r1, [r7, #0]
  96910. 80270be: 4618 mov r0, r3
  96911. 80270c0: f7ea fbf0 bl 80118a4 <osSemaphoreAcquire>
  96912. 80270c4: 4603 mov r3, r0
  96913. 80270c6: 2b00 cmp r3, #0
  96914. 80270c8: d105 bne.n 80270d6 <sys_arch_sem_wait+0x34>
  96915. {
  96916. return (osKernelGetTickCount() - starttime);
  96917. 80270ca: f7ea f88f bl 80111ec <osKernelGetTickCount>
  96918. 80270ce: 4602 mov r2, r0
  96919. 80270d0: 68fb ldr r3, [r7, #12]
  96920. 80270d2: 1ad3 subs r3, r2, r3
  96921. 80270d4: e012 b.n 80270fc <sys_arch_sem_wait+0x5a>
  96922. #endif
  96923. }
  96924. else
  96925. {
  96926. return SYS_ARCH_TIMEOUT;
  96927. 80270d6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96928. 80270da: e00f b.n 80270fc <sys_arch_sem_wait+0x5a>
  96929. {
  96930. #if (osCMSIS < 0x20000U)
  96931. while(osSemaphoreWait (*sem, osWaitForever) != osOK);
  96932. return (osKernelSysTick() - starttime);
  96933. #else
  96934. while(osSemaphoreAcquire(*sem, osWaitForever) != osOK);
  96935. 80270dc: bf00 nop
  96936. 80270de: 687b ldr r3, [r7, #4]
  96937. 80270e0: 681b ldr r3, [r3, #0]
  96938. 80270e2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  96939. 80270e6: 4618 mov r0, r3
  96940. 80270e8: f7ea fbdc bl 80118a4 <osSemaphoreAcquire>
  96941. 80270ec: 4603 mov r3, r0
  96942. 80270ee: 2b00 cmp r3, #0
  96943. 80270f0: d1f5 bne.n 80270de <sys_arch_sem_wait+0x3c>
  96944. return (osKernelGetTickCount() - starttime);
  96945. 80270f2: f7ea f87b bl 80111ec <osKernelGetTickCount>
  96946. 80270f6: 4602 mov r2, r0
  96947. 80270f8: 68fb ldr r3, [r7, #12]
  96948. 80270fa: 1ad3 subs r3, r2, r3
  96949. #endif
  96950. }
  96951. }
  96952. 80270fc: 4618 mov r0, r3
  96953. 80270fe: 3710 adds r7, #16
  96954. 8027100: 46bd mov sp, r7
  96955. 8027102: bd80 pop {r7, pc}
  96956. 08027104 <sys_sem_signal>:
  96957. /*-----------------------------------------------------------------------------------*/
  96958. // Signals a semaphore
  96959. void sys_sem_signal(sys_sem_t *sem)
  96960. {
  96961. 8027104: b580 push {r7, lr}
  96962. 8027106: b082 sub sp, #8
  96963. 8027108: af00 add r7, sp, #0
  96964. 802710a: 6078 str r0, [r7, #4]
  96965. osSemaphoreRelease(*sem);
  96966. 802710c: 687b ldr r3, [r7, #4]
  96967. 802710e: 681b ldr r3, [r3, #0]
  96968. 8027110: 4618 mov r0, r3
  96969. 8027112: f7ea fc19 bl 8011948 <osSemaphoreRelease>
  96970. }
  96971. 8027116: bf00 nop
  96972. 8027118: 3708 adds r7, #8
  96973. 802711a: 46bd mov sp, r7
  96974. 802711c: bd80 pop {r7, pc}
  96975. 0802711e <sys_sem_free>:
  96976. /*-----------------------------------------------------------------------------------*/
  96977. // Deallocates a semaphore
  96978. void sys_sem_free(sys_sem_t *sem)
  96979. {
  96980. 802711e: b580 push {r7, lr}
  96981. 8027120: b082 sub sp, #8
  96982. 8027122: af00 add r7, sp, #0
  96983. 8027124: 6078 str r0, [r7, #4]
  96984. #if SYS_STATS
  96985. --lwip_stats.sys.sem.used;
  96986. #endif /* SYS_STATS */
  96987. osSemaphoreDelete(*sem);
  96988. 8027126: 687b ldr r3, [r7, #4]
  96989. 8027128: 681b ldr r3, [r3, #0]
  96990. 802712a: 4618 mov r0, r3
  96991. 802712c: f7ea fc50 bl 80119d0 <osSemaphoreDelete>
  96992. }
  96993. 8027130: bf00 nop
  96994. 8027132: 3708 adds r7, #8
  96995. 8027134: 46bd mov sp, r7
  96996. 8027136: bd80 pop {r7, pc}
  96997. 08027138 <sys_sem_valid>:
  96998. /*-----------------------------------------------------------------------------------*/
  96999. int sys_sem_valid(sys_sem_t *sem)
  97000. {
  97001. 8027138: b480 push {r7}
  97002. 802713a: b083 sub sp, #12
  97003. 802713c: af00 add r7, sp, #0
  97004. 802713e: 6078 str r0, [r7, #4]
  97005. if (*sem == SYS_SEM_NULL)
  97006. 8027140: 687b ldr r3, [r7, #4]
  97007. 8027142: 681b ldr r3, [r3, #0]
  97008. 8027144: 2b00 cmp r3, #0
  97009. 8027146: d101 bne.n 802714c <sys_sem_valid+0x14>
  97010. return 0;
  97011. 8027148: 2300 movs r3, #0
  97012. 802714a: e000 b.n 802714e <sys_sem_valid+0x16>
  97013. else
  97014. return 1;
  97015. 802714c: 2301 movs r3, #1
  97016. }
  97017. 802714e: 4618 mov r0, r3
  97018. 8027150: 370c adds r7, #12
  97019. 8027152: 46bd mov sp, r7
  97020. 8027154: f85d 7b04 ldr.w r7, [sp], #4
  97021. 8027158: 4770 bx lr
  97022. 0802715a <sys_sem_set_invalid>:
  97023. /*-----------------------------------------------------------------------------------*/
  97024. void sys_sem_set_invalid(sys_sem_t *sem)
  97025. {
  97026. 802715a: b480 push {r7}
  97027. 802715c: b083 sub sp, #12
  97028. 802715e: af00 add r7, sp, #0
  97029. 8027160: 6078 str r0, [r7, #4]
  97030. *sem = SYS_SEM_NULL;
  97031. 8027162: 687b ldr r3, [r7, #4]
  97032. 8027164: 2200 movs r2, #0
  97033. 8027166: 601a str r2, [r3, #0]
  97034. }
  97035. 8027168: bf00 nop
  97036. 802716a: 370c adds r7, #12
  97037. 802716c: 46bd mov sp, r7
  97038. 802716e: f85d 7b04 ldr.w r7, [sp], #4
  97039. 8027172: 4770 bx lr
  97040. 08027174 <sys_init>:
  97041. #else
  97042. osMutexId_t lwip_sys_mutex;
  97043. #endif
  97044. // Initialize sys arch
  97045. void sys_init(void)
  97046. {
  97047. 8027174: b580 push {r7, lr}
  97048. 8027176: af00 add r7, sp, #0
  97049. #if (osCMSIS < 0x20000U)
  97050. lwip_sys_mutex = osMutexCreate(osMutex(lwip_sys_mutex));
  97051. #else
  97052. lwip_sys_mutex = osMutexNew(NULL);
  97053. 8027178: 2000 movs r0, #0
  97054. 802717a: f7ea f9fc bl 8011576 <osMutexNew>
  97055. 802717e: 4603 mov r3, r0
  97056. 8027180: 4a01 ldr r2, [pc, #4] @ (8027188 <sys_init+0x14>)
  97057. 8027182: 6013 str r3, [r2, #0]
  97058. #endif
  97059. }
  97060. 8027184: bf00 nop
  97061. 8027186: bd80 pop {r7, pc}
  97062. 8027188: 2402b10c .word 0x2402b10c
  97063. 0802718c <sys_mutex_new>:
  97064. /* Mutexes*/
  97065. /*-----------------------------------------------------------------------------------*/
  97066. /*-----------------------------------------------------------------------------------*/
  97067. #if LWIP_COMPAT_MUTEX == 0
  97068. /* Create a new mutex*/
  97069. err_t sys_mutex_new(sys_mutex_t *mutex) {
  97070. 802718c: b580 push {r7, lr}
  97071. 802718e: b082 sub sp, #8
  97072. 8027190: af00 add r7, sp, #0
  97073. 8027192: 6078 str r0, [r7, #4]
  97074. #if (osCMSIS < 0x20000U)
  97075. osMutexDef(MUTEX);
  97076. *mutex = osMutexCreate(osMutex(MUTEX));
  97077. #else
  97078. *mutex = osMutexNew(NULL);
  97079. 8027194: 2000 movs r0, #0
  97080. 8027196: f7ea f9ee bl 8011576 <osMutexNew>
  97081. 802719a: 4602 mov r2, r0
  97082. 802719c: 687b ldr r3, [r7, #4]
  97083. 802719e: 601a str r2, [r3, #0]
  97084. #endif
  97085. if(*mutex == NULL)
  97086. 80271a0: 687b ldr r3, [r7, #4]
  97087. 80271a2: 681b ldr r3, [r3, #0]
  97088. 80271a4: 2b00 cmp r3, #0
  97089. 80271a6: d102 bne.n 80271ae <sys_mutex_new+0x22>
  97090. {
  97091. #if SYS_STATS
  97092. ++lwip_stats.sys.mutex.err;
  97093. #endif /* SYS_STATS */
  97094. return ERR_MEM;
  97095. 80271a8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97096. 80271ac: e000 b.n 80271b0 <sys_mutex_new+0x24>
  97097. ++lwip_stats.sys.mutex.used;
  97098. if (lwip_stats.sys.mutex.max < lwip_stats.sys.mutex.used) {
  97099. lwip_stats.sys.mutex.max = lwip_stats.sys.mutex.used;
  97100. }
  97101. #endif /* SYS_STATS */
  97102. return ERR_OK;
  97103. 80271ae: 2300 movs r3, #0
  97104. }
  97105. 80271b0: 4618 mov r0, r3
  97106. 80271b2: 3708 adds r7, #8
  97107. 80271b4: 46bd mov sp, r7
  97108. 80271b6: bd80 pop {r7, pc}
  97109. 080271b8 <sys_mutex_lock>:
  97110. osMutexDelete(*mutex);
  97111. }
  97112. /*-----------------------------------------------------------------------------------*/
  97113. /* Lock a mutex*/
  97114. void sys_mutex_lock(sys_mutex_t *mutex)
  97115. {
  97116. 80271b8: b580 push {r7, lr}
  97117. 80271ba: b082 sub sp, #8
  97118. 80271bc: af00 add r7, sp, #0
  97119. 80271be: 6078 str r0, [r7, #4]
  97120. #if (osCMSIS < 0x20000U)
  97121. osMutexWait(*mutex, osWaitForever);
  97122. #else
  97123. osMutexAcquire(*mutex, osWaitForever);
  97124. 80271c0: 687b ldr r3, [r7, #4]
  97125. 80271c2: 681b ldr r3, [r3, #0]
  97126. 80271c4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  97127. 80271c8: 4618 mov r0, r3
  97128. 80271ca: f7ea fa5a bl 8011682 <osMutexAcquire>
  97129. #endif
  97130. }
  97131. 80271ce: bf00 nop
  97132. 80271d0: 3708 adds r7, #8
  97133. 80271d2: 46bd mov sp, r7
  97134. 80271d4: bd80 pop {r7, pc}
  97135. 080271d6 <sys_mutex_unlock>:
  97136. /*-----------------------------------------------------------------------------------*/
  97137. /* Unlock a mutex*/
  97138. void sys_mutex_unlock(sys_mutex_t *mutex)
  97139. {
  97140. 80271d6: b580 push {r7, lr}
  97141. 80271d8: b082 sub sp, #8
  97142. 80271da: af00 add r7, sp, #0
  97143. 80271dc: 6078 str r0, [r7, #4]
  97144. osMutexRelease(*mutex);
  97145. 80271de: 687b ldr r3, [r7, #4]
  97146. 80271e0: 681b ldr r3, [r3, #0]
  97147. 80271e2: 4618 mov r0, r3
  97148. 80271e4: f7ea fa98 bl 8011718 <osMutexRelease>
  97149. }
  97150. 80271e8: bf00 nop
  97151. 80271ea: 3708 adds r7, #8
  97152. 80271ec: 46bd mov sp, r7
  97153. 80271ee: bd80 pop {r7, pc}
  97154. 080271f0 <sys_thread_new>:
  97155. function "thread()". The "arg" argument will be passed as an argument to the
  97156. thread() function. The id of the new thread is returned. Both the id and
  97157. the priority are system dependent.
  97158. */
  97159. sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread , void *arg, int stacksize, int prio)
  97160. {
  97161. 80271f0: b580 push {r7, lr}
  97162. 80271f2: b08e sub sp, #56 @ 0x38
  97163. 80271f4: af00 add r7, sp, #0
  97164. 80271f6: 60f8 str r0, [r7, #12]
  97165. 80271f8: 60b9 str r1, [r7, #8]
  97166. 80271fa: 607a str r2, [r7, #4]
  97167. 80271fc: 603b str r3, [r7, #0]
  97168. #if (osCMSIS < 0x20000U)
  97169. const osThreadDef_t os_thread_def = { (char *)name, (os_pthread)thread, (osPriority)prio, 0, stacksize};
  97170. return osThreadCreate(&os_thread_def, arg);
  97171. #else
  97172. const osThreadAttr_t attributes = {
  97173. 80271fe: f107 0314 add.w r3, r7, #20
  97174. 8027202: 2224 movs r2, #36 @ 0x24
  97175. 8027204: 2100 movs r1, #0
  97176. 8027206: 4618 mov r0, r3
  97177. 8027208: f003 fc3a bl 802aa80 <memset>
  97178. 802720c: 68fb ldr r3, [r7, #12]
  97179. 802720e: 617b str r3, [r7, #20]
  97180. 8027210: 683b ldr r3, [r7, #0]
  97181. 8027212: 62bb str r3, [r7, #40] @ 0x28
  97182. 8027214: 6c3b ldr r3, [r7, #64] @ 0x40
  97183. 8027216: 62fb str r3, [r7, #44] @ 0x2c
  97184. .name = name,
  97185. .stack_size = stacksize,
  97186. .priority = (osPriority_t)prio,
  97187. };
  97188. return osThreadNew(thread, arg, &attributes);
  97189. 8027218: f107 0314 add.w r3, r7, #20
  97190. 802721c: 461a mov r2, r3
  97191. 802721e: 6879 ldr r1, [r7, #4]
  97192. 8027220: 68b8 ldr r0, [r7, #8]
  97193. 8027222: f7e9 fff8 bl 8011216 <osThreadNew>
  97194. 8027226: 4603 mov r3, r0
  97195. #endif
  97196. }
  97197. 8027228: 4618 mov r0, r3
  97198. 802722a: 3738 adds r7, #56 @ 0x38
  97199. 802722c: 46bd mov sp, r7
  97200. 802722e: bd80 pop {r7, pc}
  97201. 08027230 <sys_arch_protect>:
  97202. Note: This function is based on FreeRTOS API, because no equivalent CMSIS-RTOS
  97203. API is available
  97204. */
  97205. sys_prot_t sys_arch_protect(void)
  97206. {
  97207. 8027230: b580 push {r7, lr}
  97208. 8027232: af00 add r7, sp, #0
  97209. #if (osCMSIS < 0x20000U)
  97210. osMutexWait(lwip_sys_mutex, osWaitForever);
  97211. #else
  97212. osMutexAcquire(lwip_sys_mutex, osWaitForever);
  97213. 8027234: 4b04 ldr r3, [pc, #16] @ (8027248 <sys_arch_protect+0x18>)
  97214. 8027236: 681b ldr r3, [r3, #0]
  97215. 8027238: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  97216. 802723c: 4618 mov r0, r3
  97217. 802723e: f7ea fa20 bl 8011682 <osMutexAcquire>
  97218. #endif
  97219. return (sys_prot_t)1;
  97220. 8027242: 2301 movs r3, #1
  97221. }
  97222. 8027244: 4618 mov r0, r3
  97223. 8027246: bd80 pop {r7, pc}
  97224. 8027248: 2402b10c .word 0x2402b10c
  97225. 0802724c <sys_arch_unprotect>:
  97226. Note: This function is based on FreeRTOS API, because no equivalent CMSIS-RTOS
  97227. API is available
  97228. */
  97229. void sys_arch_unprotect(sys_prot_t pval)
  97230. {
  97231. 802724c: b580 push {r7, lr}
  97232. 802724e: b082 sub sp, #8
  97233. 8027250: af00 add r7, sp, #0
  97234. 8027252: 6078 str r0, [r7, #4]
  97235. ( void ) pval;
  97236. osMutexRelease(lwip_sys_mutex);
  97237. 8027254: 4b04 ldr r3, [pc, #16] @ (8027268 <sys_arch_unprotect+0x1c>)
  97238. 8027256: 681b ldr r3, [r3, #0]
  97239. 8027258: 4618 mov r0, r3
  97240. 802725a: f7ea fa5d bl 8011718 <osMutexRelease>
  97241. }
  97242. 802725e: bf00 nop
  97243. 8027260: 3708 adds r7, #8
  97244. 8027262: 46bd mov sp, r7
  97245. 8027264: bd80 pop {r7, pc}
  97246. 8027266: bf00 nop
  97247. 8027268: 2402b10c .word 0x2402b10c
  97248. 0802726c <NewMessageData>:
  97249. #include <string.h>
  97250. //#include "cmsis_os.h"
  97251. osMutexId_t mqttMutex;
  97252. static void NewMessageData(MessageData* md, MQTTString* aTopicName, MQTTMessage* aMessage) {
  97253. 802726c: b480 push {r7}
  97254. 802726e: b085 sub sp, #20
  97255. 8027270: af00 add r7, sp, #0
  97256. 8027272: 60f8 str r0, [r7, #12]
  97257. 8027274: 60b9 str r1, [r7, #8]
  97258. 8027276: 607a str r2, [r7, #4]
  97259. md->topicName = aTopicName;
  97260. 8027278: 68fb ldr r3, [r7, #12]
  97261. 802727a: 68ba ldr r2, [r7, #8]
  97262. 802727c: 605a str r2, [r3, #4]
  97263. md->message = aMessage;
  97264. 802727e: 68fb ldr r3, [r7, #12]
  97265. 8027280: 687a ldr r2, [r7, #4]
  97266. 8027282: 601a str r2, [r3, #0]
  97267. }
  97268. 8027284: bf00 nop
  97269. 8027286: 3714 adds r7, #20
  97270. 8027288: 46bd mov sp, r7
  97271. 802728a: f85d 7b04 ldr.w r7, [sp], #4
  97272. 802728e: 4770 bx lr
  97273. 08027290 <getNextPacketId>:
  97274. static int getNextPacketId(MQTTClient *c) {
  97275. 8027290: b480 push {r7}
  97276. 8027292: b083 sub sp, #12
  97277. 8027294: af00 add r7, sp, #0
  97278. 8027296: 6078 str r0, [r7, #4]
  97279. return c->next_packetid = (c->next_packetid == MAX_PACKET_ID) ? 1 : c->next_packetid + 1;
  97280. 8027298: 687b ldr r3, [r7, #4]
  97281. 802729a: 681b ldr r3, [r3, #0]
  97282. 802729c: f64f 72ff movw r2, #65535 @ 0xffff
  97283. 80272a0: 4293 cmp r3, r2
  97284. 80272a2: d003 beq.n 80272ac <getNextPacketId+0x1c>
  97285. 80272a4: 687b ldr r3, [r7, #4]
  97286. 80272a6: 681b ldr r3, [r3, #0]
  97287. 80272a8: 3301 adds r3, #1
  97288. 80272aa: e000 b.n 80272ae <getNextPacketId+0x1e>
  97289. 80272ac: 2301 movs r3, #1
  97290. 80272ae: 687a ldr r2, [r7, #4]
  97291. 80272b0: 6013 str r3, [r2, #0]
  97292. 80272b2: 687b ldr r3, [r7, #4]
  97293. 80272b4: 681b ldr r3, [r3, #0]
  97294. }
  97295. 80272b6: 4618 mov r0, r3
  97296. 80272b8: 370c adds r7, #12
  97297. 80272ba: 46bd mov sp, r7
  97298. 80272bc: f85d 7b04 ldr.w r7, [sp], #4
  97299. 80272c0: 4770 bx lr
  97300. 080272c2 <sendPacket>:
  97301. static int sendPacket(MQTTClient* c, int length, Timer* timer)
  97302. {
  97303. 80272c2: b5f0 push {r4, r5, r6, r7, lr}
  97304. 80272c4: b087 sub sp, #28
  97305. 80272c6: af00 add r7, sp, #0
  97306. 80272c8: 60f8 str r0, [r7, #12]
  97307. 80272ca: 60b9 str r1, [r7, #8]
  97308. 80272cc: 607a str r2, [r7, #4]
  97309. int rc = FAILURE,
  97310. 80272ce: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97311. 80272d2: 617b str r3, [r7, #20]
  97312. sent = 0;
  97313. 80272d4: 2300 movs r3, #0
  97314. 80272d6: 613b str r3, [r7, #16]
  97315. while (sent < length && !TimerIsExpired(timer))
  97316. 80272d8: e018 b.n 802730c <sendPacket+0x4a>
  97317. {
  97318. rc = c->ipstack->mqttwrite(c->ipstack, &c->buf[sent], length, TimerLeftMS(timer));
  97319. 80272da: 68fb ldr r3, [r7, #12]
  97320. 80272dc: 6d5b ldr r3, [r3, #84] @ 0x54
  97321. 80272de: 689c ldr r4, [r3, #8]
  97322. 80272e0: 68fb ldr r3, [r7, #12]
  97323. 80272e2: 6d5d ldr r5, [r3, #84] @ 0x54
  97324. 80272e4: 68fb ldr r3, [r7, #12]
  97325. 80272e6: 691a ldr r2, [r3, #16]
  97326. 80272e8: 693b ldr r3, [r7, #16]
  97327. 80272ea: 18d6 adds r6, r2, r3
  97328. 80272ec: 6878 ldr r0, [r7, #4]
  97329. 80272ee: f000 fed3 bl 8028098 <TimerLeftMS>
  97330. 80272f2: 4603 mov r3, r0
  97331. 80272f4: 68ba ldr r2, [r7, #8]
  97332. 80272f6: 4631 mov r1, r6
  97333. 80272f8: 4628 mov r0, r5
  97334. 80272fa: 47a0 blx r4
  97335. 80272fc: 6178 str r0, [r7, #20]
  97336. if (rc < 0) // there was an error writing the data
  97337. 80272fe: 697b ldr r3, [r7, #20]
  97338. 8027300: 2b00 cmp r3, #0
  97339. 8027302: db0e blt.n 8027322 <sendPacket+0x60>
  97340. break;
  97341. sent += rc;
  97342. 8027304: 693a ldr r2, [r7, #16]
  97343. 8027306: 697b ldr r3, [r7, #20]
  97344. 8027308: 4413 add r3, r2
  97345. 802730a: 613b str r3, [r7, #16]
  97346. while (sent < length && !TimerIsExpired(timer))
  97347. 802730c: 693a ldr r2, [r7, #16]
  97348. 802730e: 68bb ldr r3, [r7, #8]
  97349. 8027310: 429a cmp r2, r3
  97350. 8027312: da07 bge.n 8027324 <sendPacket+0x62>
  97351. 8027314: 6878 ldr r0, [r7, #4]
  97352. 8027316: f000 fe7d bl 8028014 <TimerIsExpired>
  97353. 802731a: 4603 mov r3, r0
  97354. 802731c: 2b00 cmp r3, #0
  97355. 802731e: d0dc beq.n 80272da <sendPacket+0x18>
  97356. 8027320: e000 b.n 8027324 <sendPacket+0x62>
  97357. break;
  97358. 8027322: bf00 nop
  97359. }
  97360. if (sent == length)
  97361. 8027324: 693a ldr r2, [r7, #16]
  97362. 8027326: 68bb ldr r3, [r7, #8]
  97363. 8027328: 429a cmp r2, r3
  97364. 802732a: d10b bne.n 8027344 <sendPacket+0x82>
  97365. {
  97366. TimerCountdown(&c->last_sent, c->keepAliveInterval); // record the fact that we have MQTT_SUCCESSfully sent the packet
  97367. 802732c: 68fb ldr r3, [r7, #12]
  97368. 802732e: f103 0258 add.w r2, r3, #88 @ 0x58
  97369. 8027332: 68fb ldr r3, [r7, #12]
  97370. 8027334: 699b ldr r3, [r3, #24]
  97371. 8027336: 4619 mov r1, r3
  97372. 8027338: 4610 mov r0, r2
  97373. 802733a: f000 fe95 bl 8028068 <TimerCountdown>
  97374. rc = MQTT_SUCCESS;
  97375. 802733e: 2300 movs r3, #0
  97376. 8027340: 617b str r3, [r7, #20]
  97377. 8027342: e002 b.n 802734a <sendPacket+0x88>
  97378. }
  97379. else
  97380. rc = FAILURE;
  97381. 8027344: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97382. 8027348: 617b str r3, [r7, #20]
  97383. return rc;
  97384. 802734a: 697b ldr r3, [r7, #20]
  97385. }
  97386. 802734c: 4618 mov r0, r3
  97387. 802734e: 371c adds r7, #28
  97388. 8027350: 46bd mov sp, r7
  97389. 8027352: bdf0 pop {r4, r5, r6, r7, pc}
  97390. 08027354 <MQTTClientInit>:
  97391. void MQTTClientInit(MQTTClient* c, Network* network, unsigned int command_timeout_ms,
  97392. unsigned char* sendbuf, size_t sendbuf_size, unsigned char* readbuf, size_t readbuf_size)
  97393. {
  97394. 8027354: b580 push {r7, lr}
  97395. 8027356: b086 sub sp, #24
  97396. 8027358: af00 add r7, sp, #0
  97397. 802735a: 60f8 str r0, [r7, #12]
  97398. 802735c: 60b9 str r1, [r7, #8]
  97399. 802735e: 607a str r2, [r7, #4]
  97400. 8027360: 603b str r3, [r7, #0]
  97401. int i;
  97402. c->ipstack = network;
  97403. 8027362: 68fb ldr r3, [r7, #12]
  97404. 8027364: 68ba ldr r2, [r7, #8]
  97405. 8027366: 655a str r2, [r3, #84] @ 0x54
  97406. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  97407. 8027368: 2300 movs r3, #0
  97408. 802736a: 617b str r3, [r7, #20]
  97409. 802736c: e008 b.n 8027380 <MQTTClientInit+0x2c>
  97410. c->messageHandlers[i].topicFilter = 0;
  97411. 802736e: 68fb ldr r3, [r7, #12]
  97412. 8027370: 697a ldr r2, [r7, #20]
  97413. 8027372: 3205 adds r2, #5
  97414. 8027374: 2100 movs r1, #0
  97415. 8027376: f843 1032 str.w r1, [r3, r2, lsl #3]
  97416. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  97417. 802737a: 697b ldr r3, [r7, #20]
  97418. 802737c: 3301 adds r3, #1
  97419. 802737e: 617b str r3, [r7, #20]
  97420. 8027380: 697b ldr r3, [r7, #20]
  97421. 8027382: 2b04 cmp r3, #4
  97422. 8027384: ddf3 ble.n 802736e <MQTTClientInit+0x1a>
  97423. c->command_timeout_ms = command_timeout_ms;
  97424. 8027386: 68fb ldr r3, [r7, #12]
  97425. 8027388: 687a ldr r2, [r7, #4]
  97426. 802738a: 605a str r2, [r3, #4]
  97427. c->buf = sendbuf;
  97428. 802738c: 68fb ldr r3, [r7, #12]
  97429. 802738e: 683a ldr r2, [r7, #0]
  97430. 8027390: 611a str r2, [r3, #16]
  97431. c->buf_size = sendbuf_size;
  97432. 8027392: 68fb ldr r3, [r7, #12]
  97433. 8027394: 6a3a ldr r2, [r7, #32]
  97434. 8027396: 609a str r2, [r3, #8]
  97435. c->readbuf = readbuf;
  97436. 8027398: 68fb ldr r3, [r7, #12]
  97437. 802739a: 6a7a ldr r2, [r7, #36] @ 0x24
  97438. 802739c: 615a str r2, [r3, #20]
  97439. c->readbuf_size = readbuf_size;
  97440. 802739e: 68fb ldr r3, [r7, #12]
  97441. 80273a0: 6aba ldr r2, [r7, #40] @ 0x28
  97442. 80273a2: 60da str r2, [r3, #12]
  97443. c->isconnected = 0;
  97444. 80273a4: 68fb ldr r3, [r7, #12]
  97445. 80273a6: 2200 movs r2, #0
  97446. 80273a8: 621a str r2, [r3, #32]
  97447. c->cleansession = 0;
  97448. 80273aa: 68fb ldr r3, [r7, #12]
  97449. 80273ac: 2200 movs r2, #0
  97450. 80273ae: 625a str r2, [r3, #36] @ 0x24
  97451. c->ping_outstanding = 0;
  97452. 80273b0: 68fb ldr r3, [r7, #12]
  97453. 80273b2: 2200 movs r2, #0
  97454. 80273b4: 771a strb r2, [r3, #28]
  97455. c->defaultMessageHandler = NULL;
  97456. 80273b6: 68fb ldr r3, [r7, #12]
  97457. 80273b8: 2200 movs r2, #0
  97458. 80273ba: 651a str r2, [r3, #80] @ 0x50
  97459. c->next_packetid = 1;
  97460. 80273bc: 68fb ldr r3, [r7, #12]
  97461. 80273be: 2201 movs r2, #1
  97462. 80273c0: 601a str r2, [r3, #0]
  97463. TimerInit(&c->last_sent);
  97464. 80273c2: 68fb ldr r3, [r7, #12]
  97465. 80273c4: 3358 adds r3, #88 @ 0x58
  97466. 80273c6: 4618 mov r0, r3
  97467. 80273c8: f000 fe7c bl 80280c4 <TimerInit>
  97468. TimerInit(&c->last_received);
  97469. 80273cc: 68fb ldr r3, [r7, #12]
  97470. 80273ce: 3360 adds r3, #96 @ 0x60
  97471. 80273d0: 4618 mov r0, r3
  97472. 80273d2: f000 fe77 bl 80280c4 <TimerInit>
  97473. #if defined(MQTT_TASK)
  97474. MutexInit(&c->mutex);
  97475. #endif
  97476. if(mqttMutex == NULL)
  97477. 80273d6: 4b07 ldr r3, [pc, #28] @ (80273f4 <MQTTClientInit+0xa0>)
  97478. 80273d8: 681b ldr r3, [r3, #0]
  97479. 80273da: 2b00 cmp r3, #0
  97480. 80273dc: d105 bne.n 80273ea <MQTTClientInit+0x96>
  97481. {
  97482. // osMutexDef(mqttMutex);
  97483. // mqttMutex = osMutexNew(NULL);
  97484. c->mutex = osMutexNew(NULL);
  97485. 80273de: 2000 movs r0, #0
  97486. 80273e0: f7ea f8c9 bl 8011576 <osMutexNew>
  97487. 80273e4: 4602 mov r2, r0
  97488. 80273e6: 68fb ldr r3, [r7, #12]
  97489. 80273e8: 669a str r2, [r3, #104] @ 0x68
  97490. }
  97491. }
  97492. 80273ea: bf00 nop
  97493. 80273ec: 3718 adds r7, #24
  97494. 80273ee: 46bd mov sp, r7
  97495. 80273f0: bd80 pop {r7, pc}
  97496. 80273f2: bf00 nop
  97497. 80273f4: 2402b110 .word 0x2402b110
  97498. 080273f8 <decodePacket>:
  97499. static int decodePacket(MQTTClient* c, int* value, int timeout)
  97500. {
  97501. 80273f8: b590 push {r4, r7, lr}
  97502. 80273fa: b08b sub sp, #44 @ 0x2c
  97503. 80273fc: af00 add r7, sp, #0
  97504. 80273fe: 60f8 str r0, [r7, #12]
  97505. 8027400: 60b9 str r1, [r7, #8]
  97506. 8027402: 607a str r2, [r7, #4]
  97507. unsigned char i;
  97508. int multiplier = 1;
  97509. 8027404: 2301 movs r3, #1
  97510. 8027406: 627b str r3, [r7, #36] @ 0x24
  97511. int len = 0;
  97512. 8027408: 2300 movs r3, #0
  97513. 802740a: 623b str r3, [r7, #32]
  97514. const int MAX_NO_OF_REMAINING_LENGTH_BYTES = 4;
  97515. 802740c: 2304 movs r3, #4
  97516. 802740e: 61fb str r3, [r7, #28]
  97517. *value = 0;
  97518. 8027410: 68bb ldr r3, [r7, #8]
  97519. 8027412: 2200 movs r2, #0
  97520. 8027414: 601a str r2, [r3, #0]
  97521. do
  97522. {
  97523. int rc = MQTTPACKET_READ_ERROR;
  97524. 8027416: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97525. 802741a: 61bb str r3, [r7, #24]
  97526. if (++len > MAX_NO_OF_REMAINING_LENGTH_BYTES)
  97527. 802741c: 6a3b ldr r3, [r7, #32]
  97528. 802741e: 3301 adds r3, #1
  97529. 8027420: 623b str r3, [r7, #32]
  97530. 8027422: 6a3a ldr r2, [r7, #32]
  97531. 8027424: 69fb ldr r3, [r7, #28]
  97532. 8027426: 429a cmp r2, r3
  97533. 8027428: dd03 ble.n 8027432 <decodePacket+0x3a>
  97534. {
  97535. rc = MQTTPACKET_READ_ERROR; /* bad data */
  97536. 802742a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97537. 802742e: 61bb str r3, [r7, #24]
  97538. goto exit;
  97539. 8027430: e021 b.n 8027476 <decodePacket+0x7e>
  97540. }
  97541. rc = c->ipstack->mqttread(c->ipstack, &i, 1, timeout);
  97542. 8027432: 68fb ldr r3, [r7, #12]
  97543. 8027434: 6d5b ldr r3, [r3, #84] @ 0x54
  97544. 8027436: 685c ldr r4, [r3, #4]
  97545. 8027438: 68fb ldr r3, [r7, #12]
  97546. 802743a: 6d58 ldr r0, [r3, #84] @ 0x54
  97547. 802743c: f107 0117 add.w r1, r7, #23
  97548. 8027440: 687b ldr r3, [r7, #4]
  97549. 8027442: 2201 movs r2, #1
  97550. 8027444: 47a0 blx r4
  97551. 8027446: 61b8 str r0, [r7, #24]
  97552. if (rc != 1)
  97553. 8027448: 69bb ldr r3, [r7, #24]
  97554. 802744a: 2b01 cmp r3, #1
  97555. 802744c: d112 bne.n 8027474 <decodePacket+0x7c>
  97556. goto exit;
  97557. *value += (i & 127) * multiplier;
  97558. 802744e: 68bb ldr r3, [r7, #8]
  97559. 8027450: 681a ldr r2, [r3, #0]
  97560. 8027452: 7dfb ldrb r3, [r7, #23]
  97561. 8027454: f003 037f and.w r3, r3, #127 @ 0x7f
  97562. 8027458: 6a79 ldr r1, [r7, #36] @ 0x24
  97563. 802745a: fb01 f303 mul.w r3, r1, r3
  97564. 802745e: 441a add r2, r3
  97565. 8027460: 68bb ldr r3, [r7, #8]
  97566. 8027462: 601a str r2, [r3, #0]
  97567. multiplier *= 128;
  97568. 8027464: 6a7b ldr r3, [r7, #36] @ 0x24
  97569. 8027466: 01db lsls r3, r3, #7
  97570. 8027468: 627b str r3, [r7, #36] @ 0x24
  97571. } while ((i & 128) != 0);
  97572. 802746a: 7dfb ldrb r3, [r7, #23]
  97573. 802746c: b25b sxtb r3, r3
  97574. 802746e: 2b00 cmp r3, #0
  97575. 8027470: dbd1 blt.n 8027416 <decodePacket+0x1e>
  97576. exit:
  97577. 8027472: e000 b.n 8027476 <decodePacket+0x7e>
  97578. goto exit;
  97579. 8027474: bf00 nop
  97580. return len;
  97581. 8027476: 6a3b ldr r3, [r7, #32]
  97582. }
  97583. 8027478: 4618 mov r0, r3
  97584. 802747a: 372c adds r7, #44 @ 0x2c
  97585. 802747c: 46bd mov sp, r7
  97586. 802747e: bd90 pop {r4, r7, pc}
  97587. 08027480 <readPacket>:
  97588. static int readPacket(MQTTClient* c, Timer* timer)
  97589. {
  97590. 8027480: b5f0 push {r4, r5, r6, r7, lr}
  97591. 8027482: b089 sub sp, #36 @ 0x24
  97592. 8027484: af00 add r7, sp, #0
  97593. 8027486: 60f8 str r0, [r7, #12]
  97594. 8027488: 60b9 str r1, [r7, #8]
  97595. MQTTHeader header = {0};
  97596. 802748a: 2300 movs r3, #0
  97597. 802748c: 617b str r3, [r7, #20]
  97598. int len = 0;
  97599. 802748e: 2300 movs r3, #0
  97600. 8027490: 61bb str r3, [r7, #24]
  97601. int rem_len = 0;
  97602. 8027492: 2300 movs r3, #0
  97603. 8027494: 613b str r3, [r7, #16]
  97604. /* 1. read the header byte. This has the packet type in it */
  97605. int rc = c->ipstack->mqttread(c->ipstack, c->readbuf, 1, TimerLeftMS(timer));
  97606. 8027496: 68fb ldr r3, [r7, #12]
  97607. 8027498: 6d5b ldr r3, [r3, #84] @ 0x54
  97608. 802749a: 685c ldr r4, [r3, #4]
  97609. 802749c: 68fb ldr r3, [r7, #12]
  97610. 802749e: 6d5d ldr r5, [r3, #84] @ 0x54
  97611. 80274a0: 68fb ldr r3, [r7, #12]
  97612. 80274a2: 695e ldr r6, [r3, #20]
  97613. 80274a4: 68b8 ldr r0, [r7, #8]
  97614. 80274a6: f000 fdf7 bl 8028098 <TimerLeftMS>
  97615. 80274aa: 4603 mov r3, r0
  97616. 80274ac: 2201 movs r2, #1
  97617. 80274ae: 4631 mov r1, r6
  97618. 80274b0: 4628 mov r0, r5
  97619. 80274b2: 47a0 blx r4
  97620. 80274b4: 61f8 str r0, [r7, #28]
  97621. if (rc != 1)
  97622. 80274b6: 69fb ldr r3, [r7, #28]
  97623. 80274b8: 2b01 cmp r3, #1
  97624. 80274ba: d15d bne.n 8027578 <readPacket+0xf8>
  97625. goto exit;
  97626. len = 1;
  97627. 80274bc: 2301 movs r3, #1
  97628. 80274be: 61bb str r3, [r7, #24]
  97629. /* 2. read the remaining length. This is variable in itself */
  97630. decodePacket(c, &rem_len, TimerLeftMS(timer));
  97631. 80274c0: 68b8 ldr r0, [r7, #8]
  97632. 80274c2: f000 fde9 bl 8028098 <TimerLeftMS>
  97633. 80274c6: 4602 mov r2, r0
  97634. 80274c8: f107 0310 add.w r3, r7, #16
  97635. 80274cc: 4619 mov r1, r3
  97636. 80274ce: 68f8 ldr r0, [r7, #12]
  97637. 80274d0: f7ff ff92 bl 80273f8 <decodePacket>
  97638. len += MQTTPacket_encode(c->readbuf + 1, rem_len); /* put the original remaining length back into the buffer */
  97639. 80274d4: 68fb ldr r3, [r7, #12]
  97640. 80274d6: 695b ldr r3, [r3, #20]
  97641. 80274d8: 3301 adds r3, #1
  97642. 80274da: 693a ldr r2, [r7, #16]
  97643. 80274dc: 4611 mov r1, r2
  97644. 80274de: 4618 mov r0, r3
  97645. 80274e0: f001 f959 bl 8028796 <MQTTPacket_encode>
  97646. 80274e4: 4602 mov r2, r0
  97647. 80274e6: 69bb ldr r3, [r7, #24]
  97648. 80274e8: 4413 add r3, r2
  97649. 80274ea: 61bb str r3, [r7, #24]
  97650. if (rem_len > (c->readbuf_size - len))
  97651. 80274ec: 68fb ldr r3, [r7, #12]
  97652. 80274ee: 68da ldr r2, [r3, #12]
  97653. 80274f0: 69bb ldr r3, [r7, #24]
  97654. 80274f2: 1ad3 subs r3, r2, r3
  97655. 80274f4: 693a ldr r2, [r7, #16]
  97656. 80274f6: 4293 cmp r3, r2
  97657. 80274f8: d203 bcs.n 8027502 <readPacket+0x82>
  97658. {
  97659. rc = BUFFER_OVERFLOW;
  97660. 80274fa: f06f 0301 mvn.w r3, #1
  97661. 80274fe: 61fb str r3, [r7, #28]
  97662. goto exit;
  97663. 8027500: e03d b.n 802757e <readPacket+0xfe>
  97664. }
  97665. /* 3. read the rest of the buffer using a callback to supply the rest of the data */
  97666. if (rem_len > 0 && (rc = c->ipstack->mqttread(c->ipstack, c->readbuf + len, rem_len, TimerLeftMS(timer)) != rem_len)) {
  97667. 8027502: 693b ldr r3, [r7, #16]
  97668. 8027504: 2b00 cmp r3, #0
  97669. 8027506: dd20 ble.n 802754a <readPacket+0xca>
  97670. 8027508: 68fb ldr r3, [r7, #12]
  97671. 802750a: 6d5b ldr r3, [r3, #84] @ 0x54
  97672. 802750c: 685c ldr r4, [r3, #4]
  97673. 802750e: 68fb ldr r3, [r7, #12]
  97674. 8027510: 6d5d ldr r5, [r3, #84] @ 0x54
  97675. 8027512: 68fb ldr r3, [r7, #12]
  97676. 8027514: 695a ldr r2, [r3, #20]
  97677. 8027516: 69bb ldr r3, [r7, #24]
  97678. 8027518: 18d6 adds r6, r2, r3
  97679. 802751a: 693b ldr r3, [r7, #16]
  97680. 802751c: 607b str r3, [r7, #4]
  97681. 802751e: 68b8 ldr r0, [r7, #8]
  97682. 8027520: f000 fdba bl 8028098 <TimerLeftMS>
  97683. 8027524: 4603 mov r3, r0
  97684. 8027526: 687a ldr r2, [r7, #4]
  97685. 8027528: 4631 mov r1, r6
  97686. 802752a: 4628 mov r0, r5
  97687. 802752c: 47a0 blx r4
  97688. 802752e: 4602 mov r2, r0
  97689. 8027530: 693b ldr r3, [r7, #16]
  97690. 8027532: 429a cmp r2, r3
  97691. 8027534: bf14 ite ne
  97692. 8027536: 2301 movne r3, #1
  97693. 8027538: 2300 moveq r3, #0
  97694. 802753a: b2db uxtb r3, r3
  97695. 802753c: 61fb str r3, [r7, #28]
  97696. 802753e: 69fb ldr r3, [r7, #28]
  97697. 8027540: 2b00 cmp r3, #0
  97698. 8027542: d002 beq.n 802754a <readPacket+0xca>
  97699. rc = 0;
  97700. 8027544: 2300 movs r3, #0
  97701. 8027546: 61fb str r3, [r7, #28]
  97702. goto exit;
  97703. 8027548: e019 b.n 802757e <readPacket+0xfe>
  97704. }
  97705. header.byte = c->readbuf[0];
  97706. 802754a: 68fb ldr r3, [r7, #12]
  97707. 802754c: 695b ldr r3, [r3, #20]
  97708. 802754e: 781b ldrb r3, [r3, #0]
  97709. 8027550: 753b strb r3, [r7, #20]
  97710. rc = header.bits.type;
  97711. 8027552: 7d3b ldrb r3, [r7, #20]
  97712. 8027554: f3c3 1303 ubfx r3, r3, #4, #4
  97713. 8027558: b2db uxtb r3, r3
  97714. 802755a: 61fb str r3, [r7, #28]
  97715. if (c->keepAliveInterval > 0)
  97716. 802755c: 68fb ldr r3, [r7, #12]
  97717. 802755e: 699b ldr r3, [r3, #24]
  97718. 8027560: 2b00 cmp r3, #0
  97719. 8027562: d00b beq.n 802757c <readPacket+0xfc>
  97720. TimerCountdown(&c->last_received, c->keepAliveInterval); // record the fact that we have MQTT_SUCCESSfully received a packet
  97721. 8027564: 68fb ldr r3, [r7, #12]
  97722. 8027566: f103 0260 add.w r2, r3, #96 @ 0x60
  97723. 802756a: 68fb ldr r3, [r7, #12]
  97724. 802756c: 699b ldr r3, [r3, #24]
  97725. 802756e: 4619 mov r1, r3
  97726. 8027570: 4610 mov r0, r2
  97727. 8027572: f000 fd79 bl 8028068 <TimerCountdown>
  97728. 8027576: e002 b.n 802757e <readPacket+0xfe>
  97729. goto exit;
  97730. 8027578: bf00 nop
  97731. 802757a: e000 b.n 802757e <readPacket+0xfe>
  97732. exit:
  97733. 802757c: bf00 nop
  97734. return rc;
  97735. 802757e: 69fb ldr r3, [r7, #28]
  97736. }
  97737. 8027580: 4618 mov r0, r3
  97738. 8027582: 3724 adds r7, #36 @ 0x24
  97739. 8027584: 46bd mov sp, r7
  97740. 8027586: bdf0 pop {r4, r5, r6, r7, pc}
  97741. 08027588 <isTopicMatched>:
  97742. // assume topic filter and name is in correct format
  97743. // # can only be at end
  97744. // + and # can only be next to separator
  97745. static char isTopicMatched(char* topicFilter, MQTTString* topicName)
  97746. {
  97747. 8027588: b480 push {r7}
  97748. 802758a: b087 sub sp, #28
  97749. 802758c: af00 add r7, sp, #0
  97750. 802758e: 6078 str r0, [r7, #4]
  97751. 8027590: 6039 str r1, [r7, #0]
  97752. char* curf = topicFilter;
  97753. 8027592: 687b ldr r3, [r7, #4]
  97754. 8027594: 617b str r3, [r7, #20]
  97755. char* curn = topicName->lenstring.data;
  97756. 8027596: 683b ldr r3, [r7, #0]
  97757. 8027598: 689b ldr r3, [r3, #8]
  97758. 802759a: 613b str r3, [r7, #16]
  97759. char* curn_end = curn + topicName->lenstring.len;
  97760. 802759c: 683b ldr r3, [r7, #0]
  97761. 802759e: 685b ldr r3, [r3, #4]
  97762. 80275a0: 461a mov r2, r3
  97763. 80275a2: 693b ldr r3, [r7, #16]
  97764. 80275a4: 4413 add r3, r2
  97765. 80275a6: 60bb str r3, [r7, #8]
  97766. while (*curf && curn < curn_end)
  97767. 80275a8: e039 b.n 802761e <isTopicMatched+0x96>
  97768. {
  97769. if (*curn == '/' && *curf != '/')
  97770. 80275aa: 693b ldr r3, [r7, #16]
  97771. 80275ac: 781b ldrb r3, [r3, #0]
  97772. 80275ae: 2b2f cmp r3, #47 @ 0x2f
  97773. 80275b0: d103 bne.n 80275ba <isTopicMatched+0x32>
  97774. 80275b2: 697b ldr r3, [r7, #20]
  97775. 80275b4: 781b ldrb r3, [r3, #0]
  97776. 80275b6: 2b2f cmp r3, #47 @ 0x2f
  97777. 80275b8: d13a bne.n 8027630 <isTopicMatched+0xa8>
  97778. break;
  97779. if (*curf != '+' && *curf != '#' && *curf != *curn)
  97780. 80275ba: 697b ldr r3, [r7, #20]
  97781. 80275bc: 781b ldrb r3, [r3, #0]
  97782. 80275be: 2b2b cmp r3, #43 @ 0x2b
  97783. 80275c0: d009 beq.n 80275d6 <isTopicMatched+0x4e>
  97784. 80275c2: 697b ldr r3, [r7, #20]
  97785. 80275c4: 781b ldrb r3, [r3, #0]
  97786. 80275c6: 2b23 cmp r3, #35 @ 0x23
  97787. 80275c8: d005 beq.n 80275d6 <isTopicMatched+0x4e>
  97788. 80275ca: 697b ldr r3, [r7, #20]
  97789. 80275cc: 781a ldrb r2, [r3, #0]
  97790. 80275ce: 693b ldr r3, [r7, #16]
  97791. 80275d0: 781b ldrb r3, [r3, #0]
  97792. 80275d2: 429a cmp r2, r3
  97793. 80275d4: d12e bne.n 8027634 <isTopicMatched+0xac>
  97794. break;
  97795. if (*curf == '+')
  97796. 80275d6: 697b ldr r3, [r7, #20]
  97797. 80275d8: 781b ldrb r3, [r3, #0]
  97798. 80275da: 2b2b cmp r3, #43 @ 0x2b
  97799. 80275dc: d112 bne.n 8027604 <isTopicMatched+0x7c>
  97800. { // skip until we meet the next separator, or end of string
  97801. char* nextpos = curn + 1;
  97802. 80275de: 693b ldr r3, [r7, #16]
  97803. 80275e0: 3301 adds r3, #1
  97804. 80275e2: 60fb str r3, [r7, #12]
  97805. while (nextpos < curn_end && *nextpos != '/')
  97806. 80275e4: e005 b.n 80275f2 <isTopicMatched+0x6a>
  97807. nextpos = ++curn + 1;
  97808. 80275e6: 693b ldr r3, [r7, #16]
  97809. 80275e8: 3301 adds r3, #1
  97810. 80275ea: 613b str r3, [r7, #16]
  97811. 80275ec: 693b ldr r3, [r7, #16]
  97812. 80275ee: 3301 adds r3, #1
  97813. 80275f0: 60fb str r3, [r7, #12]
  97814. while (nextpos < curn_end && *nextpos != '/')
  97815. 80275f2: 68fa ldr r2, [r7, #12]
  97816. 80275f4: 68bb ldr r3, [r7, #8]
  97817. 80275f6: 429a cmp r2, r3
  97818. 80275f8: d20b bcs.n 8027612 <isTopicMatched+0x8a>
  97819. 80275fa: 68fb ldr r3, [r7, #12]
  97820. 80275fc: 781b ldrb r3, [r3, #0]
  97821. 80275fe: 2b2f cmp r3, #47 @ 0x2f
  97822. 8027600: d1f1 bne.n 80275e6 <isTopicMatched+0x5e>
  97823. 8027602: e006 b.n 8027612 <isTopicMatched+0x8a>
  97824. }
  97825. else if (*curf == '#')
  97826. 8027604: 697b ldr r3, [r7, #20]
  97827. 8027606: 781b ldrb r3, [r3, #0]
  97828. 8027608: 2b23 cmp r3, #35 @ 0x23
  97829. 802760a: d102 bne.n 8027612 <isTopicMatched+0x8a>
  97830. curn = curn_end - 1; // skip until end of string
  97831. 802760c: 68bb ldr r3, [r7, #8]
  97832. 802760e: 3b01 subs r3, #1
  97833. 8027610: 613b str r3, [r7, #16]
  97834. curf++;
  97835. 8027612: 697b ldr r3, [r7, #20]
  97836. 8027614: 3301 adds r3, #1
  97837. 8027616: 617b str r3, [r7, #20]
  97838. curn++;
  97839. 8027618: 693b ldr r3, [r7, #16]
  97840. 802761a: 3301 adds r3, #1
  97841. 802761c: 613b str r3, [r7, #16]
  97842. while (*curf && curn < curn_end)
  97843. 802761e: 697b ldr r3, [r7, #20]
  97844. 8027620: 781b ldrb r3, [r3, #0]
  97845. 8027622: 2b00 cmp r3, #0
  97846. 8027624: d007 beq.n 8027636 <isTopicMatched+0xae>
  97847. 8027626: 693a ldr r2, [r7, #16]
  97848. 8027628: 68bb ldr r3, [r7, #8]
  97849. 802762a: 429a cmp r2, r3
  97850. 802762c: d3bd bcc.n 80275aa <isTopicMatched+0x22>
  97851. 802762e: e002 b.n 8027636 <isTopicMatched+0xae>
  97852. break;
  97853. 8027630: bf00 nop
  97854. 8027632: e000 b.n 8027636 <isTopicMatched+0xae>
  97855. break;
  97856. 8027634: bf00 nop
  97857. };
  97858. return (curn == curn_end) && (*curf == '\0');
  97859. 8027636: 693a ldr r2, [r7, #16]
  97860. 8027638: 68bb ldr r3, [r7, #8]
  97861. 802763a: 429a cmp r2, r3
  97862. 802763c: d105 bne.n 802764a <isTopicMatched+0xc2>
  97863. 802763e: 697b ldr r3, [r7, #20]
  97864. 8027640: 781b ldrb r3, [r3, #0]
  97865. 8027642: 2b00 cmp r3, #0
  97866. 8027644: d101 bne.n 802764a <isTopicMatched+0xc2>
  97867. 8027646: 2301 movs r3, #1
  97868. 8027648: e000 b.n 802764c <isTopicMatched+0xc4>
  97869. 802764a: 2300 movs r3, #0
  97870. 802764c: b2db uxtb r3, r3
  97871. }
  97872. 802764e: 4618 mov r0, r3
  97873. 8027650: 371c adds r7, #28
  97874. 8027652: 46bd mov sp, r7
  97875. 8027654: f85d 7b04 ldr.w r7, [sp], #4
  97876. 8027658: 4770 bx lr
  97877. 0802765a <deliverMessage>:
  97878. int deliverMessage(MQTTClient* c, MQTTString* topicName, MQTTMessage* message)
  97879. {
  97880. 802765a: b580 push {r7, lr}
  97881. 802765c: b08a sub sp, #40 @ 0x28
  97882. 802765e: af00 add r7, sp, #0
  97883. 8027660: 60f8 str r0, [r7, #12]
  97884. 8027662: 60b9 str r1, [r7, #8]
  97885. 8027664: 607a str r2, [r7, #4]
  97886. int i;
  97887. int rc = FAILURE;
  97888. 8027666: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97889. 802766a: 623b str r3, [r7, #32]
  97890. // we have to find the right message handler - indexed by topic
  97891. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  97892. 802766c: 2300 movs r3, #0
  97893. 802766e: 627b str r3, [r7, #36] @ 0x24
  97894. 8027670: e03c b.n 80276ec <deliverMessage+0x92>
  97895. {
  97896. if (c->messageHandlers[i].topicFilter != 0 && (MQTTPacket_equals(topicName, (char*)c->messageHandlers[i].topicFilter) ||
  97897. 8027672: 68fb ldr r3, [r7, #12]
  97898. 8027674: 6a7a ldr r2, [r7, #36] @ 0x24
  97899. 8027676: 3205 adds r2, #5
  97900. 8027678: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  97901. 802767c: 2b00 cmp r3, #0
  97902. 802767e: d032 beq.n 80276e6 <deliverMessage+0x8c>
  97903. 8027680: 68fb ldr r3, [r7, #12]
  97904. 8027682: 6a7a ldr r2, [r7, #36] @ 0x24
  97905. 8027684: 3205 adds r2, #5
  97906. 8027686: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  97907. 802768a: 4619 mov r1, r3
  97908. 802768c: 68b8 ldr r0, [r7, #8]
  97909. 802768e: f001 fa51 bl 8028b34 <MQTTPacket_equals>
  97910. 8027692: 4603 mov r3, r0
  97911. 8027694: 2b00 cmp r3, #0
  97912. 8027696: d10b bne.n 80276b0 <deliverMessage+0x56>
  97913. isTopicMatched((char*)c->messageHandlers[i].topicFilter, topicName)))
  97914. 8027698: 68fb ldr r3, [r7, #12]
  97915. 802769a: 6a7a ldr r2, [r7, #36] @ 0x24
  97916. 802769c: 3205 adds r2, #5
  97917. 802769e: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  97918. 80276a2: 68b9 ldr r1, [r7, #8]
  97919. 80276a4: 4618 mov r0, r3
  97920. 80276a6: f7ff ff6f bl 8027588 <isTopicMatched>
  97921. 80276aa: 4603 mov r3, r0
  97922. if (c->messageHandlers[i].topicFilter != 0 && (MQTTPacket_equals(topicName, (char*)c->messageHandlers[i].topicFilter) ||
  97923. 80276ac: 2b00 cmp r3, #0
  97924. 80276ae: d01a beq.n 80276e6 <deliverMessage+0x8c>
  97925. {
  97926. if (c->messageHandlers[i].fp != NULL)
  97927. 80276b0: 68fa ldr r2, [r7, #12]
  97928. 80276b2: 6a7b ldr r3, [r7, #36] @ 0x24
  97929. 80276b4: 3305 adds r3, #5
  97930. 80276b6: 00db lsls r3, r3, #3
  97931. 80276b8: 4413 add r3, r2
  97932. 80276ba: 685b ldr r3, [r3, #4]
  97933. 80276bc: 2b00 cmp r3, #0
  97934. 80276be: d012 beq.n 80276e6 <deliverMessage+0x8c>
  97935. {
  97936. MessageData md;
  97937. NewMessageData(&md, topicName, message);
  97938. 80276c0: f107 0318 add.w r3, r7, #24
  97939. 80276c4: 687a ldr r2, [r7, #4]
  97940. 80276c6: 68b9 ldr r1, [r7, #8]
  97941. 80276c8: 4618 mov r0, r3
  97942. 80276ca: f7ff fdcf bl 802726c <NewMessageData>
  97943. c->messageHandlers[i].fp(&md);
  97944. 80276ce: 68fa ldr r2, [r7, #12]
  97945. 80276d0: 6a7b ldr r3, [r7, #36] @ 0x24
  97946. 80276d2: 3305 adds r3, #5
  97947. 80276d4: 00db lsls r3, r3, #3
  97948. 80276d6: 4413 add r3, r2
  97949. 80276d8: 685b ldr r3, [r3, #4]
  97950. 80276da: f107 0218 add.w r2, r7, #24
  97951. 80276de: 4610 mov r0, r2
  97952. 80276e0: 4798 blx r3
  97953. rc = MQTT_SUCCESS;
  97954. 80276e2: 2300 movs r3, #0
  97955. 80276e4: 623b str r3, [r7, #32]
  97956. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  97957. 80276e6: 6a7b ldr r3, [r7, #36] @ 0x24
  97958. 80276e8: 3301 adds r3, #1
  97959. 80276ea: 627b str r3, [r7, #36] @ 0x24
  97960. 80276ec: 6a7b ldr r3, [r7, #36] @ 0x24
  97961. 80276ee: 2b04 cmp r3, #4
  97962. 80276f0: ddbf ble.n 8027672 <deliverMessage+0x18>
  97963. }
  97964. }
  97965. }
  97966. if (rc == FAILURE && c->defaultMessageHandler != NULL)
  97967. 80276f2: 6a3b ldr r3, [r7, #32]
  97968. 80276f4: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  97969. 80276f8: d112 bne.n 8027720 <deliverMessage+0xc6>
  97970. 80276fa: 68fb ldr r3, [r7, #12]
  97971. 80276fc: 6d1b ldr r3, [r3, #80] @ 0x50
  97972. 80276fe: 2b00 cmp r3, #0
  97973. 8027700: d00e beq.n 8027720 <deliverMessage+0xc6>
  97974. {
  97975. MessageData md;
  97976. NewMessageData(&md, topicName, message);
  97977. 8027702: f107 0310 add.w r3, r7, #16
  97978. 8027706: 687a ldr r2, [r7, #4]
  97979. 8027708: 68b9 ldr r1, [r7, #8]
  97980. 802770a: 4618 mov r0, r3
  97981. 802770c: f7ff fdae bl 802726c <NewMessageData>
  97982. c->defaultMessageHandler(&md);
  97983. 8027710: 68fb ldr r3, [r7, #12]
  97984. 8027712: 6d1b ldr r3, [r3, #80] @ 0x50
  97985. 8027714: f107 0210 add.w r2, r7, #16
  97986. 8027718: 4610 mov r0, r2
  97987. 802771a: 4798 blx r3
  97988. rc = MQTT_SUCCESS;
  97989. 802771c: 2300 movs r3, #0
  97990. 802771e: 623b str r3, [r7, #32]
  97991. }
  97992. return rc;
  97993. 8027720: 6a3b ldr r3, [r7, #32]
  97994. }
  97995. 8027722: 4618 mov r0, r3
  97996. 8027724: 3728 adds r7, #40 @ 0x28
  97997. 8027726: 46bd mov sp, r7
  97998. 8027728: bd80 pop {r7, pc}
  97999. 0802772a <keepalive>:
  98000. int keepalive(MQTTClient* c)
  98001. {
  98002. 802772a: b580 push {r7, lr}
  98003. 802772c: b086 sub sp, #24
  98004. 802772e: af00 add r7, sp, #0
  98005. 8027730: 6078 str r0, [r7, #4]
  98006. int rc = MQTT_SUCCESS;
  98007. 8027732: 2300 movs r3, #0
  98008. 8027734: 617b str r3, [r7, #20]
  98009. if (c->keepAliveInterval == 0)
  98010. 8027736: 687b ldr r3, [r7, #4]
  98011. 8027738: 699b ldr r3, [r3, #24]
  98012. 802773a: 2b00 cmp r3, #0
  98013. 802773c: d03e beq.n 80277bc <keepalive+0x92>
  98014. goto exit;
  98015. if (TimerIsExpired(&c->last_sent) || TimerIsExpired(&c->last_received))
  98016. 802773e: 687b ldr r3, [r7, #4]
  98017. 8027740: 3358 adds r3, #88 @ 0x58
  98018. 8027742: 4618 mov r0, r3
  98019. 8027744: f000 fc66 bl 8028014 <TimerIsExpired>
  98020. 8027748: 4603 mov r3, r0
  98021. 802774a: 2b00 cmp r3, #0
  98022. 802774c: d107 bne.n 802775e <keepalive+0x34>
  98023. 802774e: 687b ldr r3, [r7, #4]
  98024. 8027750: 3360 adds r3, #96 @ 0x60
  98025. 8027752: 4618 mov r0, r3
  98026. 8027754: f000 fc5e bl 8028014 <TimerIsExpired>
  98027. 8027758: 4603 mov r3, r0
  98028. 802775a: 2b00 cmp r3, #0
  98029. 802775c: d030 beq.n 80277c0 <keepalive+0x96>
  98030. {
  98031. if (c->ping_outstanding)
  98032. 802775e: 687b ldr r3, [r7, #4]
  98033. 8027760: 7f1b ldrb r3, [r3, #28]
  98034. 8027762: 2b00 cmp r3, #0
  98035. 8027764: d003 beq.n 802776e <keepalive+0x44>
  98036. rc = FAILURE; /* PINGRESP not received in keepalive interval */
  98037. 8027766: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98038. 802776a: 617b str r3, [r7, #20]
  98039. 802776c: e029 b.n 80277c2 <keepalive+0x98>
  98040. else
  98041. {
  98042. Timer timer;
  98043. TimerInit(&timer);
  98044. 802776e: f107 0308 add.w r3, r7, #8
  98045. 8027772: 4618 mov r0, r3
  98046. 8027774: f000 fca6 bl 80280c4 <TimerInit>
  98047. TimerCountdownMS(&timer, 1000);
  98048. 8027778: f107 0308 add.w r3, r7, #8
  98049. 802777c: f44f 717a mov.w r1, #1000 @ 0x3e8
  98050. 8027780: 4618 mov r0, r3
  98051. 8027782: f000 fc5d bl 8028040 <TimerCountdownMS>
  98052. int len = MQTTSerialize_pingreq(c->buf, c->buf_size);
  98053. 8027786: 687b ldr r3, [r7, #4]
  98054. 8027788: 691a ldr r2, [r3, #16]
  98055. 802778a: 687b ldr r3, [r7, #4]
  98056. 802778c: 689b ldr r3, [r3, #8]
  98057. 802778e: 4619 mov r1, r3
  98058. 8027790: 4610 mov r0, r2
  98059. 8027792: f000 ff34 bl 80285fe <MQTTSerialize_pingreq>
  98060. 8027796: 6138 str r0, [r7, #16]
  98061. if (len > 0 && (rc = sendPacket(c, len, &timer)) == MQTT_SUCCESS) // send the ping packet
  98062. 8027798: 693b ldr r3, [r7, #16]
  98063. 802779a: 2b00 cmp r3, #0
  98064. 802779c: dd11 ble.n 80277c2 <keepalive+0x98>
  98065. 802779e: f107 0308 add.w r3, r7, #8
  98066. 80277a2: 461a mov r2, r3
  98067. 80277a4: 6939 ldr r1, [r7, #16]
  98068. 80277a6: 6878 ldr r0, [r7, #4]
  98069. 80277a8: f7ff fd8b bl 80272c2 <sendPacket>
  98070. 80277ac: 6178 str r0, [r7, #20]
  98071. 80277ae: 697b ldr r3, [r7, #20]
  98072. 80277b0: 2b00 cmp r3, #0
  98073. 80277b2: d106 bne.n 80277c2 <keepalive+0x98>
  98074. c->ping_outstanding = 1;
  98075. 80277b4: 687b ldr r3, [r7, #4]
  98076. 80277b6: 2201 movs r2, #1
  98077. 80277b8: 771a strb r2, [r3, #28]
  98078. 80277ba: e002 b.n 80277c2 <keepalive+0x98>
  98079. goto exit;
  98080. 80277bc: bf00 nop
  98081. 80277be: e000 b.n 80277c2 <keepalive+0x98>
  98082. }
  98083. }
  98084. exit:
  98085. 80277c0: bf00 nop
  98086. return rc;
  98087. 80277c2: 697b ldr r3, [r7, #20]
  98088. }
  98089. 80277c4: 4618 mov r0, r3
  98090. 80277c6: 3718 adds r7, #24
  98091. 80277c8: 46bd mov sp, r7
  98092. 80277ca: bd80 pop {r7, pc}
  98093. 080277cc <MQTTCleanSession>:
  98094. void MQTTCleanSession(MQTTClient* c)
  98095. {
  98096. 80277cc: b480 push {r7}
  98097. 80277ce: b085 sub sp, #20
  98098. 80277d0: af00 add r7, sp, #0
  98099. 80277d2: 6078 str r0, [r7, #4]
  98100. int i = 0;
  98101. 80277d4: 2300 movs r3, #0
  98102. 80277d6: 60fb str r3, [r7, #12]
  98103. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  98104. 80277d8: 2300 movs r3, #0
  98105. 80277da: 60fb str r3, [r7, #12]
  98106. 80277dc: e008 b.n 80277f0 <MQTTCleanSession+0x24>
  98107. c->messageHandlers[i].topicFilter = NULL;
  98108. 80277de: 687b ldr r3, [r7, #4]
  98109. 80277e0: 68fa ldr r2, [r7, #12]
  98110. 80277e2: 3205 adds r2, #5
  98111. 80277e4: 2100 movs r1, #0
  98112. 80277e6: f843 1032 str.w r1, [r3, r2, lsl #3]
  98113. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  98114. 80277ea: 68fb ldr r3, [r7, #12]
  98115. 80277ec: 3301 adds r3, #1
  98116. 80277ee: 60fb str r3, [r7, #12]
  98117. 80277f0: 68fb ldr r3, [r7, #12]
  98118. 80277f2: 2b04 cmp r3, #4
  98119. 80277f4: ddf3 ble.n 80277de <MQTTCleanSession+0x12>
  98120. }
  98121. 80277f6: bf00 nop
  98122. 80277f8: bf00 nop
  98123. 80277fa: 3714 adds r7, #20
  98124. 80277fc: 46bd mov sp, r7
  98125. 80277fe: f85d 7b04 ldr.w r7, [sp], #4
  98126. 8027802: 4770 bx lr
  98127. 08027804 <MQTTCloseSession>:
  98128. void MQTTCloseSession(MQTTClient* c)
  98129. {
  98130. 8027804: b580 push {r7, lr}
  98131. 8027806: b082 sub sp, #8
  98132. 8027808: af00 add r7, sp, #0
  98133. 802780a: 6078 str r0, [r7, #4]
  98134. c->ping_outstanding = 0;
  98135. 802780c: 687b ldr r3, [r7, #4]
  98136. 802780e: 2200 movs r2, #0
  98137. 8027810: 771a strb r2, [r3, #28]
  98138. c->isconnected = 0;
  98139. 8027812: 687b ldr r3, [r7, #4]
  98140. 8027814: 2200 movs r2, #0
  98141. 8027816: 621a str r2, [r3, #32]
  98142. if (c->cleansession)
  98143. 8027818: 687b ldr r3, [r7, #4]
  98144. 802781a: 6a5b ldr r3, [r3, #36] @ 0x24
  98145. 802781c: 2b00 cmp r3, #0
  98146. 802781e: d002 beq.n 8027826 <MQTTCloseSession+0x22>
  98147. MQTTCleanSession(c);
  98148. 8027820: 6878 ldr r0, [r7, #4]
  98149. 8027822: f7ff ffd3 bl 80277cc <MQTTCleanSession>
  98150. }
  98151. 8027826: bf00 nop
  98152. 8027828: 3708 adds r7, #8
  98153. 802782a: 46bd mov sp, r7
  98154. 802782c: bd80 pop {r7, pc}
  98155. ...
  98156. 08027830 <cycle>:
  98157. int cycle(MQTTClient* c, Timer* timer)
  98158. {
  98159. 8027830: b5f0 push {r4, r5, r6, r7, lr}
  98160. 8027832: b095 sub sp, #84 @ 0x54
  98161. 8027834: af06 add r7, sp, #24
  98162. 8027836: 6078 str r0, [r7, #4]
  98163. 8027838: 6039 str r1, [r7, #0]
  98164. int len = 0,
  98165. 802783a: 2300 movs r3, #0
  98166. 802783c: 637b str r3, [r7, #52] @ 0x34
  98167. rc = MQTT_SUCCESS;
  98168. 802783e: 2300 movs r3, #0
  98169. 8027840: 633b str r3, [r7, #48] @ 0x30
  98170. int packet_type = readPacket(c, timer); /* read the socket, see what work is due */
  98171. 8027842: 6839 ldr r1, [r7, #0]
  98172. 8027844: 6878 ldr r0, [r7, #4]
  98173. 8027846: f7ff fe1b bl 8027480 <readPacket>
  98174. 802784a: 62f8 str r0, [r7, #44] @ 0x2c
  98175. switch (packet_type)
  98176. 802784c: 6afb ldr r3, [r7, #44] @ 0x2c
  98177. 802784e: 2b0d cmp r3, #13
  98178. 8027850: d81e bhi.n 8027890 <cycle+0x60>
  98179. 8027852: a201 add r2, pc, #4 @ (adr r2, 8027858 <cycle+0x28>)
  98180. 8027854: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  98181. 8027858: 080279e7 .word 0x080279e7
  98182. 802785c: 08027891 .word 0x08027891
  98183. 8027860: 080279e7 .word 0x080279e7
  98184. 8027864: 08027897 .word 0x08027897
  98185. 8027868: 080279e7 .word 0x080279e7
  98186. 802786c: 08027963 .word 0x08027963
  98187. 8027870: 08027963 .word 0x08027963
  98188. 8027874: 080279e7 .word 0x080279e7
  98189. 8027878: 08027891 .word 0x08027891
  98190. 802787c: 080279e7 .word 0x080279e7
  98191. 8027880: 08027891 .word 0x08027891
  98192. 8027884: 080279e7 .word 0x080279e7
  98193. 8027888: 08027891 .word 0x08027891
  98194. 802788c: 080279df .word 0x080279df
  98195. {
  98196. default:
  98197. /* no more data to read, unrecoverable. Or read packet fails due to unexpected network error */
  98198. rc = packet_type;
  98199. 8027890: 6afb ldr r3, [r7, #44] @ 0x2c
  98200. 8027892: 633b str r3, [r7, #48] @ 0x30
  98201. goto exit;
  98202. 8027894: e0b9 b.n 8027a0a <cycle+0x1da>
  98203. case PUBLISH:
  98204. {
  98205. MQTTString topicName;
  98206. MQTTMessage msg;
  98207. int intQoS;
  98208. msg.payloadlen = 0; /* this is a size_t, but deserialize publish sets this as int */
  98209. 8027896: 2300 movs r3, #0
  98210. 8027898: 61fb str r3, [r7, #28]
  98211. if (MQTTDeserialize_publish(&msg.dup, &intQoS, &msg.retained, &msg.id, &topicName,
  98212. 802789a: 687b ldr r3, [r7, #4]
  98213. 802789c: 695b ldr r3, [r3, #20]
  98214. (unsigned char**)&msg.payload, (int*)&msg.payloadlen, c->readbuf, c->readbuf_size) != 1)
  98215. 802789e: 687a ldr r2, [r7, #4]
  98216. 80278a0: 68d2 ldr r2, [r2, #12]
  98217. if (MQTTDeserialize_publish(&msg.dup, &intQoS, &msg.retained, &msg.id, &topicName,
  98218. 80278a2: 4616 mov r6, r2
  98219. 80278a4: f107 0210 add.w r2, r7, #16
  98220. 80278a8: 1d15 adds r5, r2, #4
  98221. 80278aa: f107 0210 add.w r2, r7, #16
  98222. 80278ae: 1c54 adds r4, r2, #1
  98223. 80278b0: f107 010c add.w r1, r7, #12
  98224. 80278b4: f107 0210 add.w r2, r7, #16
  98225. 80278b8: 1c90 adds r0, r2, #2
  98226. 80278ba: 9604 str r6, [sp, #16]
  98227. 80278bc: 9303 str r3, [sp, #12]
  98228. 80278be: f107 0310 add.w r3, r7, #16
  98229. 80278c2: 330c adds r3, #12
  98230. 80278c4: 9302 str r3, [sp, #8]
  98231. 80278c6: f107 0310 add.w r3, r7, #16
  98232. 80278ca: 3308 adds r3, #8
  98233. 80278cc: 9301 str r3, [sp, #4]
  98234. 80278ce: f107 0320 add.w r3, r7, #32
  98235. 80278d2: 9300 str r3, [sp, #0]
  98236. 80278d4: 462b mov r3, r5
  98237. 80278d6: 4622 mov r2, r4
  98238. 80278d8: f000 fea0 bl 802861c <MQTTDeserialize_publish>
  98239. 80278dc: 4603 mov r3, r0
  98240. 80278de: 2b01 cmp r3, #1
  98241. 80278e0: f040 8090 bne.w 8027a04 <cycle+0x1d4>
  98242. goto exit;
  98243. msg.qos = (enum QoS)intQoS;
  98244. 80278e4: 68fb ldr r3, [r7, #12]
  98245. 80278e6: b2db uxtb r3, r3
  98246. 80278e8: 743b strb r3, [r7, #16]
  98247. deliverMessage(c, &topicName, &msg);
  98248. 80278ea: f107 0210 add.w r2, r7, #16
  98249. 80278ee: f107 0320 add.w r3, r7, #32
  98250. 80278f2: 4619 mov r1, r3
  98251. 80278f4: 6878 ldr r0, [r7, #4]
  98252. 80278f6: f7ff feb0 bl 802765a <deliverMessage>
  98253. if (msg.qos != QOS0)
  98254. 80278fa: 7c3b ldrb r3, [r7, #16]
  98255. 80278fc: 2b00 cmp r3, #0
  98256. 80278fe: d074 beq.n 80279ea <cycle+0x1ba>
  98257. {
  98258. if (msg.qos == QOS1)
  98259. 8027900: 7c3b ldrb r3, [r7, #16]
  98260. 8027902: 2b01 cmp r3, #1
  98261. 8027904: d10c bne.n 8027920 <cycle+0xf0>
  98262. len = MQTTSerialize_ack(c->buf, c->buf_size, PUBACK, 0, msg.id);
  98263. 8027906: 687b ldr r3, [r7, #4]
  98264. 8027908: 6918 ldr r0, [r3, #16]
  98265. 802790a: 687b ldr r3, [r7, #4]
  98266. 802790c: 689b ldr r3, [r3, #8]
  98267. 802790e: 4619 mov r1, r3
  98268. 8027910: 8abb ldrh r3, [r7, #20]
  98269. 8027912: 9300 str r3, [sp, #0]
  98270. 8027914: 2300 movs r3, #0
  98271. 8027916: 2204 movs r2, #4
  98272. 8027918: f001 f9d9 bl 8028cce <MQTTSerialize_ack>
  98273. 802791c: 6378 str r0, [r7, #52] @ 0x34
  98274. 802791e: e00e b.n 802793e <cycle+0x10e>
  98275. else if (msg.qos == QOS2)
  98276. 8027920: 7c3b ldrb r3, [r7, #16]
  98277. 8027922: 2b02 cmp r3, #2
  98278. 8027924: d10b bne.n 802793e <cycle+0x10e>
  98279. len = MQTTSerialize_ack(c->buf, c->buf_size, PUBREC, 0, msg.id);
  98280. 8027926: 687b ldr r3, [r7, #4]
  98281. 8027928: 6918 ldr r0, [r3, #16]
  98282. 802792a: 687b ldr r3, [r7, #4]
  98283. 802792c: 689b ldr r3, [r3, #8]
  98284. 802792e: 4619 mov r1, r3
  98285. 8027930: 8abb ldrh r3, [r7, #20]
  98286. 8027932: 9300 str r3, [sp, #0]
  98287. 8027934: 2300 movs r3, #0
  98288. 8027936: 2205 movs r2, #5
  98289. 8027938: f001 f9c9 bl 8028cce <MQTTSerialize_ack>
  98290. 802793c: 6378 str r0, [r7, #52] @ 0x34
  98291. if (len <= 0)
  98292. 802793e: 6b7b ldr r3, [r7, #52] @ 0x34
  98293. 8027940: 2b00 cmp r3, #0
  98294. 8027942: dc03 bgt.n 802794c <cycle+0x11c>
  98295. rc = FAILURE;
  98296. 8027944: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98297. 8027948: 633b str r3, [r7, #48] @ 0x30
  98298. 802794a: e005 b.n 8027958 <cycle+0x128>
  98299. else
  98300. rc = sendPacket(c, len, timer);
  98301. 802794c: 683a ldr r2, [r7, #0]
  98302. 802794e: 6b79 ldr r1, [r7, #52] @ 0x34
  98303. 8027950: 6878 ldr r0, [r7, #4]
  98304. 8027952: f7ff fcb6 bl 80272c2 <sendPacket>
  98305. 8027956: 6338 str r0, [r7, #48] @ 0x30
  98306. if (rc == FAILURE)
  98307. 8027958: 6b3b ldr r3, [r7, #48] @ 0x30
  98308. 802795a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  98309. 802795e: d144 bne.n 80279ea <cycle+0x1ba>
  98310. goto exit; // there was a problem
  98311. 8027960: e053 b.n 8027a0a <cycle+0x1da>
  98312. case PUBREC:
  98313. case PUBREL:
  98314. {
  98315. unsigned short mypacketid;
  98316. unsigned char dup, type;
  98317. if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
  98318. 8027962: 687b ldr r3, [r7, #4]
  98319. 8027964: 695c ldr r4, [r3, #20]
  98320. 8027966: 687b ldr r3, [r7, #4]
  98321. 8027968: 68db ldr r3, [r3, #12]
  98322. 802796a: f107 020a add.w r2, r7, #10
  98323. 802796e: f107 0109 add.w r1, r7, #9
  98324. 8027972: f107 0008 add.w r0, r7, #8
  98325. 8027976: 9300 str r3, [sp, #0]
  98326. 8027978: 4623 mov r3, r4
  98327. 802797a: f000 fec1 bl 8028700 <MQTTDeserialize_ack>
  98328. 802797e: 4603 mov r3, r0
  98329. 8027980: 2b01 cmp r3, #1
  98330. 8027982: d003 beq.n 802798c <cycle+0x15c>
  98331. rc = FAILURE;
  98332. 8027984: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98333. 8027988: 633b str r3, [r7, #48] @ 0x30
  98334. 802798a: e023 b.n 80279d4 <cycle+0x1a4>
  98335. else if ((len = MQTTSerialize_ack(c->buf, c->buf_size,
  98336. 802798c: 687b ldr r3, [r7, #4]
  98337. 802798e: 6918 ldr r0, [r3, #16]
  98338. 8027990: 687b ldr r3, [r7, #4]
  98339. 8027992: 689b ldr r3, [r3, #8]
  98340. 8027994: 4619 mov r1, r3
  98341. 8027996: 6afb ldr r3, [r7, #44] @ 0x2c
  98342. 8027998: 2b05 cmp r3, #5
  98343. 802799a: d101 bne.n 80279a0 <cycle+0x170>
  98344. 802799c: 2206 movs r2, #6
  98345. 802799e: e000 b.n 80279a2 <cycle+0x172>
  98346. 80279a0: 2207 movs r2, #7
  98347. 80279a2: 897b ldrh r3, [r7, #10]
  98348. 80279a4: 9300 str r3, [sp, #0]
  98349. 80279a6: 2300 movs r3, #0
  98350. 80279a8: f001 f991 bl 8028cce <MQTTSerialize_ack>
  98351. 80279ac: 6378 str r0, [r7, #52] @ 0x34
  98352. 80279ae: 6b7b ldr r3, [r7, #52] @ 0x34
  98353. 80279b0: 2b00 cmp r3, #0
  98354. 80279b2: dc03 bgt.n 80279bc <cycle+0x18c>
  98355. (packet_type == PUBREC) ? PUBREL : PUBCOMP, 0, mypacketid)) <= 0)
  98356. rc = FAILURE;
  98357. 80279b4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98358. 80279b8: 633b str r3, [r7, #48] @ 0x30
  98359. 80279ba: e00b b.n 80279d4 <cycle+0x1a4>
  98360. else if ((rc = sendPacket(c, len, timer)) != MQTT_SUCCESS) // send the PUBREL packet
  98361. 80279bc: 683a ldr r2, [r7, #0]
  98362. 80279be: 6b79 ldr r1, [r7, #52] @ 0x34
  98363. 80279c0: 6878 ldr r0, [r7, #4]
  98364. 80279c2: f7ff fc7e bl 80272c2 <sendPacket>
  98365. 80279c6: 6338 str r0, [r7, #48] @ 0x30
  98366. 80279c8: 6b3b ldr r3, [r7, #48] @ 0x30
  98367. 80279ca: 2b00 cmp r3, #0
  98368. 80279cc: d002 beq.n 80279d4 <cycle+0x1a4>
  98369. rc = FAILURE; // there was a problem
  98370. 80279ce: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98371. 80279d2: 633b str r3, [r7, #48] @ 0x30
  98372. if (rc == FAILURE)
  98373. 80279d4: 6b3b ldr r3, [r7, #48] @ 0x30
  98374. 80279d6: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  98375. 80279da: d108 bne.n 80279ee <cycle+0x1be>
  98376. goto exit; // there was a problem
  98377. 80279dc: e015 b.n 8027a0a <cycle+0x1da>
  98378. }
  98379. case PUBCOMP:
  98380. break;
  98381. case PINGRESP:
  98382. c->ping_outstanding = 0;
  98383. 80279de: 687b ldr r3, [r7, #4]
  98384. 80279e0: 2200 movs r2, #0
  98385. 80279e2: 771a strb r2, [r3, #28]
  98386. break;
  98387. 80279e4: e004 b.n 80279f0 <cycle+0x1c0>
  98388. break;
  98389. 80279e6: bf00 nop
  98390. 80279e8: e002 b.n 80279f0 <cycle+0x1c0>
  98391. break;
  98392. 80279ea: bf00 nop
  98393. 80279ec: e000 b.n 80279f0 <cycle+0x1c0>
  98394. break;
  98395. 80279ee: bf00 nop
  98396. }
  98397. if (keepalive(c) != MQTT_SUCCESS) {
  98398. 80279f0: 6878 ldr r0, [r7, #4]
  98399. 80279f2: f7ff fe9a bl 802772a <keepalive>
  98400. 80279f6: 4603 mov r3, r0
  98401. 80279f8: 2b00 cmp r3, #0
  98402. 80279fa: d005 beq.n 8027a08 <cycle+0x1d8>
  98403. //check only keepalive FAILURE status so that previous FAILURE status can be considered as FAULT
  98404. rc = FAILURE;
  98405. 80279fc: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98406. 8027a00: 633b str r3, [r7, #48] @ 0x30
  98407. 8027a02: e002 b.n 8027a0a <cycle+0x1da>
  98408. goto exit;
  98409. 8027a04: bf00 nop
  98410. 8027a06: e000 b.n 8027a0a <cycle+0x1da>
  98411. }
  98412. exit:
  98413. 8027a08: bf00 nop
  98414. if (rc == MQTT_SUCCESS)
  98415. 8027a0a: 6b3b ldr r3, [r7, #48] @ 0x30
  98416. 8027a0c: 2b00 cmp r3, #0
  98417. 8027a0e: d102 bne.n 8027a16 <cycle+0x1e6>
  98418. rc = packet_type;
  98419. 8027a10: 6afb ldr r3, [r7, #44] @ 0x2c
  98420. 8027a12: 633b str r3, [r7, #48] @ 0x30
  98421. 8027a14: e006 b.n 8027a24 <cycle+0x1f4>
  98422. else if (c->isconnected)
  98423. 8027a16: 687b ldr r3, [r7, #4]
  98424. 8027a18: 6a1b ldr r3, [r3, #32]
  98425. 8027a1a: 2b00 cmp r3, #0
  98426. 8027a1c: d002 beq.n 8027a24 <cycle+0x1f4>
  98427. MQTTCloseSession(c);
  98428. 8027a1e: 6878 ldr r0, [r7, #4]
  98429. 8027a20: f7ff fef0 bl 8027804 <MQTTCloseSession>
  98430. return rc;
  98431. 8027a24: 6b3b ldr r3, [r7, #48] @ 0x30
  98432. }
  98433. 8027a26: 4618 mov r0, r3
  98434. 8027a28: 373c adds r7, #60 @ 0x3c
  98435. 8027a2a: 46bd mov sp, r7
  98436. 8027a2c: bdf0 pop {r4, r5, r6, r7, pc}
  98437. 8027a2e: bf00 nop
  98438. 08027a30 <MQTTYield>:
  98439. int MQTTYield(MQTTClient* c, int timeout_ms)
  98440. {
  98441. 8027a30: b580 push {r7, lr}
  98442. 8027a32: b086 sub sp, #24
  98443. 8027a34: af00 add r7, sp, #0
  98444. 8027a36: 6078 str r0, [r7, #4]
  98445. 8027a38: 6039 str r1, [r7, #0]
  98446. int rc = MQTT_SUCCESS;
  98447. 8027a3a: 2300 movs r3, #0
  98448. 8027a3c: 617b str r3, [r7, #20]
  98449. Timer timer;
  98450. TimerInit(&timer);
  98451. 8027a3e: f107 030c add.w r3, r7, #12
  98452. 8027a42: 4618 mov r0, r3
  98453. 8027a44: f000 fb3e bl 80280c4 <TimerInit>
  98454. TimerCountdownMS(&timer, timeout_ms);
  98455. 8027a48: 683a ldr r2, [r7, #0]
  98456. 8027a4a: f107 030c add.w r3, r7, #12
  98457. 8027a4e: 4611 mov r1, r2
  98458. 8027a50: 4618 mov r0, r3
  98459. 8027a52: f000 faf5 bl 8028040 <TimerCountdownMS>
  98460. do
  98461. {
  98462. if (cycle(c, &timer) < 0)
  98463. 8027a56: f107 030c add.w r3, r7, #12
  98464. 8027a5a: 4619 mov r1, r3
  98465. 8027a5c: 6878 ldr r0, [r7, #4]
  98466. 8027a5e: f7ff fee7 bl 8027830 <cycle>
  98467. 8027a62: 4603 mov r3, r0
  98468. 8027a64: 2b00 cmp r3, #0
  98469. 8027a66: da03 bge.n 8027a70 <MQTTYield+0x40>
  98470. {
  98471. rc = FAILURE;
  98472. 8027a68: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98473. 8027a6c: 617b str r3, [r7, #20]
  98474. break;
  98475. 8027a6e: e007 b.n 8027a80 <MQTTYield+0x50>
  98476. }
  98477. } while (!TimerIsExpired(&timer));
  98478. 8027a70: f107 030c add.w r3, r7, #12
  98479. 8027a74: 4618 mov r0, r3
  98480. 8027a76: f000 facd bl 8028014 <TimerIsExpired>
  98481. 8027a7a: 4603 mov r3, r0
  98482. 8027a7c: 2b00 cmp r3, #0
  98483. 8027a7e: d0ea beq.n 8027a56 <MQTTYield+0x26>
  98484. return rc;
  98485. 8027a80: 697b ldr r3, [r7, #20]
  98486. }
  98487. 8027a82: 4618 mov r0, r3
  98488. 8027a84: 3718 adds r7, #24
  98489. 8027a86: 46bd mov sp, r7
  98490. 8027a88: bd80 pop {r7, pc}
  98491. 08027a8a <waitfor>:
  98492. }
  98493. #endif
  98494. int waitfor(MQTTClient* c, int packet_type, Timer* timer)
  98495. {
  98496. 8027a8a: b580 push {r7, lr}
  98497. 8027a8c: b086 sub sp, #24
  98498. 8027a8e: af00 add r7, sp, #0
  98499. 8027a90: 60f8 str r0, [r7, #12]
  98500. 8027a92: 60b9 str r1, [r7, #8]
  98501. 8027a94: 607a str r2, [r7, #4]
  98502. int rc = FAILURE;
  98503. 8027a96: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98504. 8027a9a: 617b str r3, [r7, #20]
  98505. do
  98506. {
  98507. if (TimerIsExpired(timer))
  98508. 8027a9c: 6878 ldr r0, [r7, #4]
  98509. 8027a9e: f000 fab9 bl 8028014 <TimerIsExpired>
  98510. 8027aa2: 4603 mov r3, r0
  98511. 8027aa4: 2b00 cmp r3, #0
  98512. 8027aa6: d10c bne.n 8027ac2 <waitfor+0x38>
  98513. break; // we timed out
  98514. rc = cycle(c, timer);
  98515. 8027aa8: 6879 ldr r1, [r7, #4]
  98516. 8027aaa: 68f8 ldr r0, [r7, #12]
  98517. 8027aac: f7ff fec0 bl 8027830 <cycle>
  98518. 8027ab0: 6178 str r0, [r7, #20]
  98519. }
  98520. while (rc != packet_type && rc >= 0);
  98521. 8027ab2: 697a ldr r2, [r7, #20]
  98522. 8027ab4: 68bb ldr r3, [r7, #8]
  98523. 8027ab6: 429a cmp r2, r3
  98524. 8027ab8: d004 beq.n 8027ac4 <waitfor+0x3a>
  98525. 8027aba: 697b ldr r3, [r7, #20]
  98526. 8027abc: 2b00 cmp r3, #0
  98527. 8027abe: daed bge.n 8027a9c <waitfor+0x12>
  98528. 8027ac0: e000 b.n 8027ac4 <waitfor+0x3a>
  98529. break; // we timed out
  98530. 8027ac2: bf00 nop
  98531. return rc;
  98532. 8027ac4: 697b ldr r3, [r7, #20]
  98533. }
  98534. 8027ac6: 4618 mov r0, r3
  98535. 8027ac8: 3718 adds r7, #24
  98536. 8027aca: 46bd mov sp, r7
  98537. 8027acc: bd80 pop {r7, pc}
  98538. ...
  98539. 08027ad0 <MQTTConnectWithResults>:
  98540. int MQTTConnectWithResults(MQTTClient* c, MQTTPacket_connectData* options, MQTTConnackData* data)
  98541. {
  98542. 8027ad0: b580 push {r7, lr}
  98543. 8027ad2: b09e sub sp, #120 @ 0x78
  98544. 8027ad4: af00 add r7, sp, #0
  98545. 8027ad6: 60f8 str r0, [r7, #12]
  98546. 8027ad8: 60b9 str r1, [r7, #8]
  98547. 8027ada: 607a str r2, [r7, #4]
  98548. Timer connect_timer;
  98549. int rc = FAILURE;
  98550. 8027adc: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98551. 8027ae0: 677b str r3, [r7, #116] @ 0x74
  98552. MQTTPacket_connectData default_options = MQTTPacket_connectData_initializer;
  98553. 8027ae2: 4a49 ldr r2, [pc, #292] @ (8027c08 <MQTTConnectWithResults+0x138>)
  98554. 8027ae4: f107 0310 add.w r3, r7, #16
  98555. 8027ae8: 4611 mov r1, r2
  98556. 8027aea: 2258 movs r2, #88 @ 0x58
  98557. 8027aec: 4618 mov r0, r3
  98558. 8027aee: f003 f8be bl 802ac6e <memcpy>
  98559. int len = 0;
  98560. 8027af2: 2300 movs r3, #0
  98561. 8027af4: 673b str r3, [r7, #112] @ 0x70
  98562. #if defined(MQTT_TASK)
  98563. MutexLock(&c->mutex);
  98564. #endif
  98565. // osMutexAcquire(mqttMutex, osWaitForever);
  98566. osMutexAcquire(c->mutex, osWaitForever);
  98567. 8027af6: 68fb ldr r3, [r7, #12]
  98568. 8027af8: 6e9b ldr r3, [r3, #104] @ 0x68
  98569. 8027afa: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  98570. 8027afe: 4618 mov r0, r3
  98571. 8027b00: f7e9 fdbf bl 8011682 <osMutexAcquire>
  98572. if (c->isconnected) /* don't send connect packet again if we are already connected */
  98573. 8027b04: 68fb ldr r3, [r7, #12]
  98574. 8027b06: 6a1b ldr r3, [r3, #32]
  98575. 8027b08: 2b00 cmp r3, #0
  98576. 8027b0a: d164 bne.n 8027bd6 <MQTTConnectWithResults+0x106>
  98577. goto exit;
  98578. TimerInit(&connect_timer);
  98579. 8027b0c: f107 0368 add.w r3, r7, #104 @ 0x68
  98580. 8027b10: 4618 mov r0, r3
  98581. 8027b12: f000 fad7 bl 80280c4 <TimerInit>
  98582. TimerCountdownMS(&connect_timer, c->command_timeout_ms);
  98583. 8027b16: 68fb ldr r3, [r7, #12]
  98584. 8027b18: 685a ldr r2, [r3, #4]
  98585. 8027b1a: f107 0368 add.w r3, r7, #104 @ 0x68
  98586. 8027b1e: 4611 mov r1, r2
  98587. 8027b20: 4618 mov r0, r3
  98588. 8027b22: f000 fa8d bl 8028040 <TimerCountdownMS>
  98589. if (options == 0)
  98590. 8027b26: 68bb ldr r3, [r7, #8]
  98591. 8027b28: 2b00 cmp r3, #0
  98592. 8027b2a: d102 bne.n 8027b32 <MQTTConnectWithResults+0x62>
  98593. options = &default_options; /* set default options if none were supplied */
  98594. 8027b2c: f107 0310 add.w r3, r7, #16
  98595. 8027b30: 60bb str r3, [r7, #8]
  98596. c->keepAliveInterval = options->keepAliveInterval;
  98597. 8027b32: 68bb ldr r3, [r7, #8]
  98598. 8027b34: 8b1b ldrh r3, [r3, #24]
  98599. 8027b36: 461a mov r2, r3
  98600. 8027b38: 68fb ldr r3, [r7, #12]
  98601. 8027b3a: 619a str r2, [r3, #24]
  98602. c->cleansession = options->cleansession;
  98603. 8027b3c: 68bb ldr r3, [r7, #8]
  98604. 8027b3e: 7e9b ldrb r3, [r3, #26]
  98605. 8027b40: 461a mov r2, r3
  98606. 8027b42: 68fb ldr r3, [r7, #12]
  98607. 8027b44: 625a str r2, [r3, #36] @ 0x24
  98608. TimerCountdown(&c->last_received, c->keepAliveInterval);
  98609. 8027b46: 68fb ldr r3, [r7, #12]
  98610. 8027b48: f103 0260 add.w r2, r3, #96 @ 0x60
  98611. 8027b4c: 68fb ldr r3, [r7, #12]
  98612. 8027b4e: 699b ldr r3, [r3, #24]
  98613. 8027b50: 4619 mov r1, r3
  98614. 8027b52: 4610 mov r0, r2
  98615. 8027b54: f000 fa88 bl 8028068 <TimerCountdown>
  98616. if ((len = MQTTSerialize_connect(c->buf, c->buf_size, options)) <= 0)
  98617. 8027b58: 68fb ldr r3, [r7, #12]
  98618. 8027b5a: 6918 ldr r0, [r3, #16]
  98619. 8027b5c: 68fb ldr r3, [r7, #12]
  98620. 8027b5e: 689b ldr r3, [r3, #8]
  98621. 8027b60: 68ba ldr r2, [r7, #8]
  98622. 8027b62: 4619 mov r1, r3
  98623. 8027b64: f000 fbd2 bl 802830c <MQTTSerialize_connect>
  98624. 8027b68: 6738 str r0, [r7, #112] @ 0x70
  98625. 8027b6a: 6f3b ldr r3, [r7, #112] @ 0x70
  98626. 8027b6c: 2b00 cmp r3, #0
  98627. 8027b6e: dd34 ble.n 8027bda <MQTTConnectWithResults+0x10a>
  98628. goto exit;
  98629. if ((rc = sendPacket(c, len, &connect_timer)) != MQTT_SUCCESS) // send the connect packet
  98630. 8027b70: f107 0368 add.w r3, r7, #104 @ 0x68
  98631. 8027b74: 461a mov r2, r3
  98632. 8027b76: 6f39 ldr r1, [r7, #112] @ 0x70
  98633. 8027b78: 68f8 ldr r0, [r7, #12]
  98634. 8027b7a: f7ff fba2 bl 80272c2 <sendPacket>
  98635. 8027b7e: 6778 str r0, [r7, #116] @ 0x74
  98636. 8027b80: 6f7b ldr r3, [r7, #116] @ 0x74
  98637. 8027b82: 2b00 cmp r3, #0
  98638. 8027b84: d12b bne.n 8027bde <MQTTConnectWithResults+0x10e>
  98639. goto exit; // there was a problem
  98640. // this will be a blocking call, wait for the connack
  98641. if (waitfor(c, CONNACK, &connect_timer) == CONNACK)
  98642. 8027b86: f107 0368 add.w r3, r7, #104 @ 0x68
  98643. 8027b8a: 461a mov r2, r3
  98644. 8027b8c: 2102 movs r1, #2
  98645. 8027b8e: 68f8 ldr r0, [r7, #12]
  98646. 8027b90: f7ff ff7b bl 8027a8a <waitfor>
  98647. 8027b94: 4603 mov r3, r0
  98648. 8027b96: 2b02 cmp r3, #2
  98649. 8027b98: d119 bne.n 8027bce <MQTTConnectWithResults+0xfe>
  98650. {
  98651. data->rc = 0;
  98652. 8027b9a: 687b ldr r3, [r7, #4]
  98653. 8027b9c: 2200 movs r2, #0
  98654. 8027b9e: 701a strb r2, [r3, #0]
  98655. data->sessionPresent = 0;
  98656. 8027ba0: 687b ldr r3, [r7, #4]
  98657. 8027ba2: 2200 movs r2, #0
  98658. 8027ba4: 705a strb r2, [r3, #1]
  98659. if (MQTTDeserialize_connack(&data->sessionPresent, &data->rc, c->readbuf, c->readbuf_size) == 1)
  98660. 8027ba6: 687b ldr r3, [r7, #4]
  98661. 8027ba8: 1c58 adds r0, r3, #1
  98662. 8027baa: 6879 ldr r1, [r7, #4]
  98663. 8027bac: 68fb ldr r3, [r7, #12]
  98664. 8027bae: 695a ldr r2, [r3, #20]
  98665. 8027bb0: 68fb ldr r3, [r7, #12]
  98666. 8027bb2: 68db ldr r3, [r3, #12]
  98667. 8027bb4: f000 fc96 bl 80284e4 <MQTTDeserialize_connack>
  98668. 8027bb8: 4603 mov r3, r0
  98669. 8027bba: 2b01 cmp r3, #1
  98670. 8027bbc: d103 bne.n 8027bc6 <MQTTConnectWithResults+0xf6>
  98671. rc = data->rc;
  98672. 8027bbe: 687b ldr r3, [r7, #4]
  98673. 8027bc0: 781b ldrb r3, [r3, #0]
  98674. 8027bc2: 677b str r3, [r7, #116] @ 0x74
  98675. 8027bc4: e00c b.n 8027be0 <MQTTConnectWithResults+0x110>
  98676. // rc = MQTT_SUCCESS;
  98677. else
  98678. rc = FAILURE;
  98679. 8027bc6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98680. 8027bca: 677b str r3, [r7, #116] @ 0x74
  98681. 8027bcc: e008 b.n 8027be0 <MQTTConnectWithResults+0x110>
  98682. }
  98683. else
  98684. rc = FAILURE;
  98685. 8027bce: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98686. 8027bd2: 677b str r3, [r7, #116] @ 0x74
  98687. 8027bd4: e004 b.n 8027be0 <MQTTConnectWithResults+0x110>
  98688. goto exit;
  98689. 8027bd6: bf00 nop
  98690. 8027bd8: e002 b.n 8027be0 <MQTTConnectWithResults+0x110>
  98691. goto exit;
  98692. 8027bda: bf00 nop
  98693. 8027bdc: e000 b.n 8027be0 <MQTTConnectWithResults+0x110>
  98694. goto exit; // there was a problem
  98695. 8027bde: bf00 nop
  98696. exit:
  98697. if (rc == MQTT_SUCCESS)
  98698. 8027be0: 6f7b ldr r3, [r7, #116] @ 0x74
  98699. 8027be2: 2b00 cmp r3, #0
  98700. 8027be4: d105 bne.n 8027bf2 <MQTTConnectWithResults+0x122>
  98701. {
  98702. c->isconnected = 1;
  98703. 8027be6: 68fb ldr r3, [r7, #12]
  98704. 8027be8: 2201 movs r2, #1
  98705. 8027bea: 621a str r2, [r3, #32]
  98706. c->ping_outstanding = 0;
  98707. 8027bec: 68fb ldr r3, [r7, #12]
  98708. 8027bee: 2200 movs r2, #0
  98709. 8027bf0: 771a strb r2, [r3, #28]
  98710. #if defined(MQTT_TASK)
  98711. MutexUnlock(&c->mutex);
  98712. #endif
  98713. // osMutexRelease(mqttMutex);
  98714. osMutexRelease(c->mutex);
  98715. 8027bf2: 68fb ldr r3, [r7, #12]
  98716. 8027bf4: 6e9b ldr r3, [r3, #104] @ 0x68
  98717. 8027bf6: 4618 mov r0, r3
  98718. 8027bf8: f7e9 fd8e bl 8011718 <osMutexRelease>
  98719. return rc;
  98720. 8027bfc: 6f7b ldr r3, [r7, #116] @ 0x74
  98721. }
  98722. 8027bfe: 4618 mov r0, r3
  98723. 8027c00: 3778 adds r7, #120 @ 0x78
  98724. 8027c02: 46bd mov sp, r7
  98725. 8027c04: bd80 pop {r7, pc}
  98726. 8027c06: bf00 nop
  98727. 8027c08: 0803180c .word 0x0803180c
  98728. 08027c0c <MQTTConnect>:
  98729. int MQTTConnect(MQTTClient* c, MQTTPacket_connectData* options)
  98730. {
  98731. 8027c0c: b580 push {r7, lr}
  98732. 8027c0e: b084 sub sp, #16
  98733. 8027c10: af00 add r7, sp, #0
  98734. 8027c12: 6078 str r0, [r7, #4]
  98735. 8027c14: 6039 str r1, [r7, #0]
  98736. MQTTConnackData data;
  98737. return MQTTConnectWithResults(c, options, &data);
  98738. 8027c16: f107 030c add.w r3, r7, #12
  98739. 8027c1a: 461a mov r2, r3
  98740. 8027c1c: 6839 ldr r1, [r7, #0]
  98741. 8027c1e: 6878 ldr r0, [r7, #4]
  98742. 8027c20: f7ff ff56 bl 8027ad0 <MQTTConnectWithResults>
  98743. 8027c24: 4603 mov r3, r0
  98744. }
  98745. 8027c26: 4618 mov r0, r3
  98746. 8027c28: 3710 adds r7, #16
  98747. 8027c2a: 46bd mov sp, r7
  98748. 8027c2c: bd80 pop {r7, pc}
  98749. 08027c2e <MQTTSetMessageHandler>:
  98750. int MQTTSetMessageHandler(MQTTClient* c, const char* topicFilter, messageHandler messageHandler)
  98751. {
  98752. 8027c2e: b580 push {r7, lr}
  98753. 8027c30: b086 sub sp, #24
  98754. 8027c32: af00 add r7, sp, #0
  98755. 8027c34: 60f8 str r0, [r7, #12]
  98756. 8027c36: 60b9 str r1, [r7, #8]
  98757. 8027c38: 607a str r2, [r7, #4]
  98758. int rc = FAILURE;
  98759. 8027c3a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98760. 8027c3e: 617b str r3, [r7, #20]
  98761. int i = -1;
  98762. 8027c40: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98763. 8027c44: 613b str r3, [r7, #16]
  98764. /* first check for an existing matching slot */
  98765. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  98766. 8027c46: 2300 movs r3, #0
  98767. 8027c48: 613b str r3, [r7, #16]
  98768. 8027c4a: e028 b.n 8027c9e <MQTTSetMessageHandler+0x70>
  98769. {
  98770. if (c->messageHandlers[i].topicFilter != NULL && strcmp(c->messageHandlers[i].topicFilter, topicFilter) == 0)
  98771. 8027c4c: 68fb ldr r3, [r7, #12]
  98772. 8027c4e: 693a ldr r2, [r7, #16]
  98773. 8027c50: 3205 adds r2, #5
  98774. 8027c52: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  98775. 8027c56: 2b00 cmp r3, #0
  98776. 8027c58: d01e beq.n 8027c98 <MQTTSetMessageHandler+0x6a>
  98777. 8027c5a: 68fb ldr r3, [r7, #12]
  98778. 8027c5c: 693a ldr r2, [r7, #16]
  98779. 8027c5e: 3205 adds r2, #5
  98780. 8027c60: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  98781. 8027c64: 68b9 ldr r1, [r7, #8]
  98782. 8027c66: 4618 mov r0, r3
  98783. 8027c68: f7d8 fb3a bl 80002e0 <strcmp>
  98784. 8027c6c: 4603 mov r3, r0
  98785. 8027c6e: 2b00 cmp r3, #0
  98786. 8027c70: d112 bne.n 8027c98 <MQTTSetMessageHandler+0x6a>
  98787. {
  98788. if (messageHandler == NULL) /* remove existing */
  98789. 8027c72: 687b ldr r3, [r7, #4]
  98790. 8027c74: 2b00 cmp r3, #0
  98791. 8027c76: d10c bne.n 8027c92 <MQTTSetMessageHandler+0x64>
  98792. {
  98793. c->messageHandlers[i].topicFilter = NULL;
  98794. 8027c78: 68fb ldr r3, [r7, #12]
  98795. 8027c7a: 693a ldr r2, [r7, #16]
  98796. 8027c7c: 3205 adds r2, #5
  98797. 8027c7e: 2100 movs r1, #0
  98798. 8027c80: f843 1032 str.w r1, [r3, r2, lsl #3]
  98799. c->messageHandlers[i].fp = NULL;
  98800. 8027c84: 68fa ldr r2, [r7, #12]
  98801. 8027c86: 693b ldr r3, [r7, #16]
  98802. 8027c88: 3305 adds r3, #5
  98803. 8027c8a: 00db lsls r3, r3, #3
  98804. 8027c8c: 4413 add r3, r2
  98805. 8027c8e: 2200 movs r2, #0
  98806. 8027c90: 605a str r2, [r3, #4]
  98807. }
  98808. rc = MQTT_SUCCESS; /* return i when adding new subscription */
  98809. 8027c92: 2300 movs r3, #0
  98810. 8027c94: 617b str r3, [r7, #20]
  98811. break;
  98812. 8027c96: e005 b.n 8027ca4 <MQTTSetMessageHandler+0x76>
  98813. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  98814. 8027c98: 693b ldr r3, [r7, #16]
  98815. 8027c9a: 3301 adds r3, #1
  98816. 8027c9c: 613b str r3, [r7, #16]
  98817. 8027c9e: 693b ldr r3, [r7, #16]
  98818. 8027ca0: 2b04 cmp r3, #4
  98819. 8027ca2: ddd3 ble.n 8027c4c <MQTTSetMessageHandler+0x1e>
  98820. }
  98821. }
  98822. /* if no existing, look for empty slot (unless we are removing) */
  98823. if (messageHandler != NULL) {
  98824. 8027ca4: 687b ldr r3, [r7, #4]
  98825. 8027ca6: 2b00 cmp r3, #0
  98826. 8027ca8: d026 beq.n 8027cf8 <MQTTSetMessageHandler+0xca>
  98827. if (rc == FAILURE)
  98828. 8027caa: 697b ldr r3, [r7, #20]
  98829. 8027cac: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  98830. 8027cb0: d112 bne.n 8027cd8 <MQTTSetMessageHandler+0xaa>
  98831. {
  98832. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  98833. 8027cb2: 2300 movs r3, #0
  98834. 8027cb4: 613b str r3, [r7, #16]
  98835. 8027cb6: e00c b.n 8027cd2 <MQTTSetMessageHandler+0xa4>
  98836. {
  98837. if (c->messageHandlers[i].topicFilter == NULL)
  98838. 8027cb8: 68fb ldr r3, [r7, #12]
  98839. 8027cba: 693a ldr r2, [r7, #16]
  98840. 8027cbc: 3205 adds r2, #5
  98841. 8027cbe: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  98842. 8027cc2: 2b00 cmp r3, #0
  98843. 8027cc4: d102 bne.n 8027ccc <MQTTSetMessageHandler+0x9e>
  98844. {
  98845. rc = MQTT_SUCCESS;
  98846. 8027cc6: 2300 movs r3, #0
  98847. 8027cc8: 617b str r3, [r7, #20]
  98848. break;
  98849. 8027cca: e005 b.n 8027cd8 <MQTTSetMessageHandler+0xaa>
  98850. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  98851. 8027ccc: 693b ldr r3, [r7, #16]
  98852. 8027cce: 3301 adds r3, #1
  98853. 8027cd0: 613b str r3, [r7, #16]
  98854. 8027cd2: 693b ldr r3, [r7, #16]
  98855. 8027cd4: 2b04 cmp r3, #4
  98856. 8027cd6: ddef ble.n 8027cb8 <MQTTSetMessageHandler+0x8a>
  98857. }
  98858. }
  98859. }
  98860. if (i < MAX_MESSAGE_HANDLERS)
  98861. 8027cd8: 693b ldr r3, [r7, #16]
  98862. 8027cda: 2b04 cmp r3, #4
  98863. 8027cdc: dc0c bgt.n 8027cf8 <MQTTSetMessageHandler+0xca>
  98864. {
  98865. c->messageHandlers[i].topicFilter = topicFilter;
  98866. 8027cde: 68fb ldr r3, [r7, #12]
  98867. 8027ce0: 693a ldr r2, [r7, #16]
  98868. 8027ce2: 3205 adds r2, #5
  98869. 8027ce4: 68b9 ldr r1, [r7, #8]
  98870. 8027ce6: f843 1032 str.w r1, [r3, r2, lsl #3]
  98871. c->messageHandlers[i].fp = messageHandler;
  98872. 8027cea: 68fa ldr r2, [r7, #12]
  98873. 8027cec: 693b ldr r3, [r7, #16]
  98874. 8027cee: 3305 adds r3, #5
  98875. 8027cf0: 00db lsls r3, r3, #3
  98876. 8027cf2: 4413 add r3, r2
  98877. 8027cf4: 687a ldr r2, [r7, #4]
  98878. 8027cf6: 605a str r2, [r3, #4]
  98879. }
  98880. }
  98881. return rc;
  98882. 8027cf8: 697b ldr r3, [r7, #20]
  98883. }
  98884. 8027cfa: 4618 mov r0, r3
  98885. 8027cfc: 3718 adds r7, #24
  98886. 8027cfe: 46bd mov sp, r7
  98887. 8027d00: bd80 pop {r7, pc}
  98888. 08027d02 <MQTTSubscribeWithResults>:
  98889. int MQTTSubscribeWithResults(MQTTClient* c, const char* topicFilter, enum QoS qos,
  98890. messageHandler messageHandler, MQTTSubackData* data)
  98891. {
  98892. 8027d02: b5b0 push {r4, r5, r7, lr}
  98893. 8027d04: b094 sub sp, #80 @ 0x50
  98894. 8027d06: af04 add r7, sp, #16
  98895. 8027d08: 60f8 str r0, [r7, #12]
  98896. 8027d0a: 60b9 str r1, [r7, #8]
  98897. 8027d0c: 603b str r3, [r7, #0]
  98898. 8027d0e: 4613 mov r3, r2
  98899. 8027d10: 71fb strb r3, [r7, #7]
  98900. int rc = FAILURE;
  98901. 8027d12: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98902. 8027d16: 63fb str r3, [r7, #60] @ 0x3c
  98903. Timer timer;
  98904. int len = 0;
  98905. 8027d18: 2300 movs r3, #0
  98906. 8027d1a: 63bb str r3, [r7, #56] @ 0x38
  98907. MQTTString topic = MQTTString_initializer;
  98908. 8027d1c: 2300 movs r3, #0
  98909. 8027d1e: 627b str r3, [r7, #36] @ 0x24
  98910. 8027d20: 2300 movs r3, #0
  98911. 8027d22: 62bb str r3, [r7, #40] @ 0x28
  98912. 8027d24: 2300 movs r3, #0
  98913. 8027d26: 62fb str r3, [r7, #44] @ 0x2c
  98914. topic.cstring = (char *)topicFilter;
  98915. 8027d28: 68bb ldr r3, [r7, #8]
  98916. 8027d2a: 627b str r3, [r7, #36] @ 0x24
  98917. #if defined(MQTT_TASK)
  98918. MutexLock(&c->mutex);
  98919. #endif
  98920. // osMutexAcquire(mqttMutex, osWaitForever);
  98921. osMutexAcquire(c->mutex, osWaitForever);
  98922. 8027d2c: 68fb ldr r3, [r7, #12]
  98923. 8027d2e: 6e9b ldr r3, [r3, #104] @ 0x68
  98924. 8027d30: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  98925. 8027d34: 4618 mov r0, r3
  98926. 8027d36: f7e9 fca4 bl 8011682 <osMutexAcquire>
  98927. if (!c->isconnected)
  98928. 8027d3a: 68fb ldr r3, [r7, #12]
  98929. 8027d3c: 6a1b ldr r3, [r3, #32]
  98930. 8027d3e: 2b00 cmp r3, #0
  98931. 8027d40: d069 beq.n 8027e16 <MQTTSubscribeWithResults+0x114>
  98932. goto exit;
  98933. TimerInit(&timer);
  98934. 8027d42: f107 0330 add.w r3, r7, #48 @ 0x30
  98935. 8027d46: 4618 mov r0, r3
  98936. 8027d48: f000 f9bc bl 80280c4 <TimerInit>
  98937. TimerCountdownMS(&timer, c->command_timeout_ms);
  98938. 8027d4c: 68fb ldr r3, [r7, #12]
  98939. 8027d4e: 685a ldr r2, [r3, #4]
  98940. 8027d50: f107 0330 add.w r3, r7, #48 @ 0x30
  98941. 8027d54: 4611 mov r1, r2
  98942. 8027d56: 4618 mov r0, r3
  98943. 8027d58: f000 f972 bl 8028040 <TimerCountdownMS>
  98944. int _qos[1] = {(int)qos};
  98945. 8027d5c: 79fb ldrb r3, [r7, #7]
  98946. 8027d5e: 623b str r3, [r7, #32]
  98947. len = MQTTSerialize_subscribe(c->buf, c->buf_size, 0, getNextPacketId(c), 1, &topic, _qos);
  98948. 8027d60: 68fb ldr r3, [r7, #12]
  98949. 8027d62: 691c ldr r4, [r3, #16]
  98950. 8027d64: 68fb ldr r3, [r7, #12]
  98951. 8027d66: 689b ldr r3, [r3, #8]
  98952. 8027d68: 461d mov r5, r3
  98953. 8027d6a: 68f8 ldr r0, [r7, #12]
  98954. 8027d6c: f7ff fa90 bl 8027290 <getNextPacketId>
  98955. 8027d70: 4603 mov r3, r0
  98956. 8027d72: b29a uxth r2, r3
  98957. 8027d74: f107 0320 add.w r3, r7, #32
  98958. 8027d78: 9302 str r3, [sp, #8]
  98959. 8027d7a: f107 0324 add.w r3, r7, #36 @ 0x24
  98960. 8027d7e: 9301 str r3, [sp, #4]
  98961. 8027d80: 2301 movs r3, #1
  98962. 8027d82: 9300 str r3, [sp, #0]
  98963. 8027d84: 4613 mov r3, r2
  98964. 8027d86: 2200 movs r2, #0
  98965. 8027d88: 4629 mov r1, r5
  98966. 8027d8a: 4620 mov r0, r4
  98967. 8027d8c: f001 f81b bl 8028dc6 <MQTTSerialize_subscribe>
  98968. 8027d90: 63b8 str r0, [r7, #56] @ 0x38
  98969. // len = MQTTSerialize_subscribe(c->buf, c->buf_size, 0, getNextPacketId(c), 1, &topic, (int*)&qos);
  98970. if (len <= 0)
  98971. 8027d92: 6bbb ldr r3, [r7, #56] @ 0x38
  98972. 8027d94: 2b00 cmp r3, #0
  98973. 8027d96: dd40 ble.n 8027e1a <MQTTSubscribeWithResults+0x118>
  98974. goto exit;
  98975. if ((rc = sendPacket(c, len, &timer)) != MQTT_SUCCESS) // send the subscribe packet
  98976. 8027d98: f107 0330 add.w r3, r7, #48 @ 0x30
  98977. 8027d9c: 461a mov r2, r3
  98978. 8027d9e: 6bb9 ldr r1, [r7, #56] @ 0x38
  98979. 8027da0: 68f8 ldr r0, [r7, #12]
  98980. 8027da2: f7ff fa8e bl 80272c2 <sendPacket>
  98981. 8027da6: 63f8 str r0, [r7, #60] @ 0x3c
  98982. 8027da8: 6bfb ldr r3, [r7, #60] @ 0x3c
  98983. 8027daa: 2b00 cmp r3, #0
  98984. 8027dac: d137 bne.n 8027e1e <MQTTSubscribeWithResults+0x11c>
  98985. goto exit; // there was a problem
  98986. if (waitfor(c, SUBACK, &timer) == SUBACK) // wait for suback
  98987. 8027dae: f107 0330 add.w r3, r7, #48 @ 0x30
  98988. 8027db2: 461a mov r2, r3
  98989. 8027db4: 2109 movs r1, #9
  98990. 8027db6: 68f8 ldr r0, [r7, #12]
  98991. 8027db8: f7ff fe67 bl 8027a8a <waitfor>
  98992. 8027dbc: 4603 mov r3, r0
  98993. 8027dbe: 2b09 cmp r3, #9
  98994. 8027dc0: d125 bne.n 8027e0e <MQTTSubscribeWithResults+0x10c>
  98995. {
  98996. int count = 0;
  98997. 8027dc2: 2300 movs r3, #0
  98998. 8027dc4: 61fb str r3, [r7, #28]
  98999. unsigned short mypacketid;
  99000. data->grantedQoS = QOS0;
  99001. 8027dc6: 6d3b ldr r3, [r7, #80] @ 0x50
  99002. 8027dc8: 2200 movs r2, #0
  99003. 8027dca: 701a strb r2, [r3, #0]
  99004. int _grantedQoS[1] = {(int)&data->grantedQoS};
  99005. 8027dcc: 6d3b ldr r3, [r7, #80] @ 0x50
  99006. 8027dce: 617b str r3, [r7, #20]
  99007. // if (MQTTDeserialize_suback(&mypacketid, 1, &count, (int*)&data->grantedQoS, c->readbuf, c->readbuf_size) == 1)
  99008. if (MQTTDeserialize_suback(&mypacketid, 1, &count, _grantedQoS, c->readbuf, c->readbuf_size) == 1)
  99009. 8027dd0: 68fb ldr r3, [r7, #12]
  99010. 8027dd2: 695b ldr r3, [r3, #20]
  99011. 8027dd4: 68fa ldr r2, [r7, #12]
  99012. 8027dd6: 68d2 ldr r2, [r2, #12]
  99013. 8027dd8: 4614 mov r4, r2
  99014. 8027dda: f107 0114 add.w r1, r7, #20
  99015. 8027dde: f107 021c add.w r2, r7, #28
  99016. 8027de2: f107 001a add.w r0, r7, #26
  99017. 8027de6: 9401 str r4, [sp, #4]
  99018. 8027de8: 9300 str r3, [sp, #0]
  99019. 8027dea: 460b mov r3, r1
  99020. 8027dec: 2101 movs r1, #1
  99021. 8027dee: f001 f866 bl 8028ebe <MQTTDeserialize_suback>
  99022. 8027df2: 4603 mov r3, r0
  99023. 8027df4: 2b01 cmp r3, #1
  99024. 8027df6: d113 bne.n 8027e20 <MQTTSubscribeWithResults+0x11e>
  99025. {
  99026. if (data->grantedQoS != 0x80)
  99027. 8027df8: 6d3b ldr r3, [r7, #80] @ 0x50
  99028. 8027dfa: 781b ldrb r3, [r3, #0]
  99029. 8027dfc: 2b80 cmp r3, #128 @ 0x80
  99030. 8027dfe: d00f beq.n 8027e20 <MQTTSubscribeWithResults+0x11e>
  99031. rc = MQTTSetMessageHandler(c, topicFilter, messageHandler);
  99032. 8027e00: 683a ldr r2, [r7, #0]
  99033. 8027e02: 68b9 ldr r1, [r7, #8]
  99034. 8027e04: 68f8 ldr r0, [r7, #12]
  99035. 8027e06: f7ff ff12 bl 8027c2e <MQTTSetMessageHandler>
  99036. 8027e0a: 63f8 str r0, [r7, #60] @ 0x3c
  99037. 8027e0c: e008 b.n 8027e20 <MQTTSubscribeWithResults+0x11e>
  99038. }
  99039. }
  99040. else
  99041. rc = FAILURE;
  99042. 8027e0e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99043. 8027e12: 63fb str r3, [r7, #60] @ 0x3c
  99044. 8027e14: e004 b.n 8027e20 <MQTTSubscribeWithResults+0x11e>
  99045. goto exit;
  99046. 8027e16: bf00 nop
  99047. 8027e18: e002 b.n 8027e20 <MQTTSubscribeWithResults+0x11e>
  99048. goto exit;
  99049. 8027e1a: bf00 nop
  99050. 8027e1c: e000 b.n 8027e20 <MQTTSubscribeWithResults+0x11e>
  99051. goto exit; // there was a problem
  99052. 8027e1e: bf00 nop
  99053. exit:
  99054. if (rc == FAILURE)
  99055. 8027e20: 6bfb ldr r3, [r7, #60] @ 0x3c
  99056. 8027e22: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  99057. 8027e26: d102 bne.n 8027e2e <MQTTSubscribeWithResults+0x12c>
  99058. MQTTCloseSession(c);
  99059. 8027e28: 68f8 ldr r0, [r7, #12]
  99060. 8027e2a: f7ff fceb bl 8027804 <MQTTCloseSession>
  99061. #if defined(MQTT_TASK)
  99062. MutexUnlock(&c->mutex);
  99063. #endif
  99064. // osMutexRelease(mqttMutex);
  99065. osMutexRelease(c->mutex);
  99066. 8027e2e: 68fb ldr r3, [r7, #12]
  99067. 8027e30: 6e9b ldr r3, [r3, #104] @ 0x68
  99068. 8027e32: 4618 mov r0, r3
  99069. 8027e34: f7e9 fc70 bl 8011718 <osMutexRelease>
  99070. return rc;
  99071. 8027e38: 6bfb ldr r3, [r7, #60] @ 0x3c
  99072. }
  99073. 8027e3a: 4618 mov r0, r3
  99074. 8027e3c: 3740 adds r7, #64 @ 0x40
  99075. 8027e3e: 46bd mov sp, r7
  99076. 8027e40: bdb0 pop {r4, r5, r7, pc}
  99077. 08027e42 <MQTTSubscribe>:
  99078. int MQTTSubscribe(MQTTClient* c, const char* topicFilter, enum QoS qos,
  99079. messageHandler messageHandler)
  99080. {
  99081. 8027e42: b580 push {r7, lr}
  99082. 8027e44: b088 sub sp, #32
  99083. 8027e46: af02 add r7, sp, #8
  99084. 8027e48: 60f8 str r0, [r7, #12]
  99085. 8027e4a: 60b9 str r1, [r7, #8]
  99086. 8027e4c: 603b str r3, [r7, #0]
  99087. 8027e4e: 4613 mov r3, r2
  99088. 8027e50: 71fb strb r3, [r7, #7]
  99089. MQTTSubackData data;
  99090. return MQTTSubscribeWithResults(c, topicFilter, qos, messageHandler, &data);
  99091. 8027e52: 79fa ldrb r2, [r7, #7]
  99092. 8027e54: f107 0314 add.w r3, r7, #20
  99093. 8027e58: 9300 str r3, [sp, #0]
  99094. 8027e5a: 683b ldr r3, [r7, #0]
  99095. 8027e5c: 68b9 ldr r1, [r7, #8]
  99096. 8027e5e: 68f8 ldr r0, [r7, #12]
  99097. 8027e60: f7ff ff4f bl 8027d02 <MQTTSubscribeWithResults>
  99098. 8027e64: 4603 mov r3, r0
  99099. }
  99100. 8027e66: 4618 mov r0, r3
  99101. 8027e68: 3718 adds r7, #24
  99102. 8027e6a: 46bd mov sp, r7
  99103. 8027e6c: bd80 pop {r7, pc}
  99104. 08027e6e <MQTTPublish>:
  99105. return rc;
  99106. }
  99107. int MQTTPublish(MQTTClient* c, const char* topicName, MQTTMessage* message)
  99108. {
  99109. 8027e6e: b5f0 push {r4, r5, r6, r7, lr}
  99110. 8027e70: b097 sub sp, #92 @ 0x5c
  99111. 8027e72: af08 add r7, sp, #32
  99112. 8027e74: 60f8 str r0, [r7, #12]
  99113. 8027e76: 60b9 str r1, [r7, #8]
  99114. 8027e78: 607a str r2, [r7, #4]
  99115. int rc = FAILURE;
  99116. 8027e7a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99117. 8027e7e: 637b str r3, [r7, #52] @ 0x34
  99118. Timer timer;
  99119. MQTTString topic = MQTTString_initializer;
  99120. 8027e80: 2300 movs r3, #0
  99121. 8027e82: 61fb str r3, [r7, #28]
  99122. 8027e84: 2300 movs r3, #0
  99123. 8027e86: 623b str r3, [r7, #32]
  99124. 8027e88: 2300 movs r3, #0
  99125. 8027e8a: 627b str r3, [r7, #36] @ 0x24
  99126. topic.cstring = (char *)topicName;
  99127. 8027e8c: 68bb ldr r3, [r7, #8]
  99128. 8027e8e: 61fb str r3, [r7, #28]
  99129. int len = 0;
  99130. 8027e90: 2300 movs r3, #0
  99131. 8027e92: 633b str r3, [r7, #48] @ 0x30
  99132. #if defined(MQTT_TASK)
  99133. MutexLock(&c->mutex);
  99134. #endif
  99135. // osMutexAcquire(mqttMutex, osWaitForever);
  99136. osMutexAcquire(c->mutex, osWaitForever);
  99137. 8027e94: 68fb ldr r3, [r7, #12]
  99138. 8027e96: 6e9b ldr r3, [r3, #104] @ 0x68
  99139. 8027e98: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  99140. 8027e9c: 4618 mov r0, r3
  99141. 8027e9e: f7e9 fbf0 bl 8011682 <osMutexAcquire>
  99142. if (!c->isconnected)
  99143. 8027ea2: 68fb ldr r3, [r7, #12]
  99144. 8027ea4: 6a1b ldr r3, [r3, #32]
  99145. 8027ea6: 2b00 cmp r3, #0
  99146. 8027ea8: f000 809b beq.w 8027fe2 <MQTTPublish+0x174>
  99147. goto exit;
  99148. TimerInit(&timer);
  99149. 8027eac: f107 0328 add.w r3, r7, #40 @ 0x28
  99150. 8027eb0: 4618 mov r0, r3
  99151. 8027eb2: f000 f907 bl 80280c4 <TimerInit>
  99152. TimerCountdownMS(&timer, c->command_timeout_ms);
  99153. 8027eb6: 68fb ldr r3, [r7, #12]
  99154. 8027eb8: 685a ldr r2, [r3, #4]
  99155. 8027eba: f107 0328 add.w r3, r7, #40 @ 0x28
  99156. 8027ebe: 4611 mov r1, r2
  99157. 8027ec0: 4618 mov r0, r3
  99158. 8027ec2: f000 f8bd bl 8028040 <TimerCountdownMS>
  99159. if (message->qos == QOS1 || message->qos == QOS2)
  99160. 8027ec6: 687b ldr r3, [r7, #4]
  99161. 8027ec8: 781b ldrb r3, [r3, #0]
  99162. 8027eca: 2b01 cmp r3, #1
  99163. 8027ecc: d003 beq.n 8027ed6 <MQTTPublish+0x68>
  99164. 8027ece: 687b ldr r3, [r7, #4]
  99165. 8027ed0: 781b ldrb r3, [r3, #0]
  99166. 8027ed2: 2b02 cmp r3, #2
  99167. 8027ed4: d106 bne.n 8027ee4 <MQTTPublish+0x76>
  99168. message->id = getNextPacketId(c);
  99169. 8027ed6: 68f8 ldr r0, [r7, #12]
  99170. 8027ed8: f7ff f9da bl 8027290 <getNextPacketId>
  99171. 8027edc: 4603 mov r3, r0
  99172. 8027ede: b29a uxth r2, r3
  99173. 8027ee0: 687b ldr r3, [r7, #4]
  99174. 8027ee2: 809a strh r2, [r3, #4]
  99175. len = MQTTSerialize_publish(c->buf, c->buf_size, 0, message->qos, message->retained, message->id,
  99176. 8027ee4: 68fb ldr r3, [r7, #12]
  99177. 8027ee6: 691b ldr r3, [r3, #16]
  99178. 8027ee8: 603b str r3, [r7, #0]
  99179. 8027eea: 68fb ldr r3, [r7, #12]
  99180. 8027eec: 689b ldr r3, [r3, #8]
  99181. 8027eee: 469c mov ip, r3
  99182. 8027ef0: 687b ldr r3, [r7, #4]
  99183. 8027ef2: 781b ldrb r3, [r3, #0]
  99184. 8027ef4: 469e mov lr, r3
  99185. 8027ef6: 687b ldr r3, [r7, #4]
  99186. 8027ef8: 785d ldrb r5, [r3, #1]
  99187. 8027efa: 687b ldr r3, [r7, #4]
  99188. 8027efc: 889e ldrh r6, [r3, #4]
  99189. topic, (unsigned char*)message->payload, message->payloadlen);
  99190. 8027efe: 687b ldr r3, [r7, #4]
  99191. 8027f00: 689b ldr r3, [r3, #8]
  99192. 8027f02: 687a ldr r2, [r7, #4]
  99193. 8027f04: 68d2 ldr r2, [r2, #12]
  99194. len = MQTTSerialize_publish(c->buf, c->buf_size, 0, message->qos, message->retained, message->id,
  99195. 8027f06: 9206 str r2, [sp, #24]
  99196. 8027f08: 9305 str r3, [sp, #20]
  99197. 8027f0a: ac02 add r4, sp, #8
  99198. 8027f0c: f107 031c add.w r3, r7, #28
  99199. 8027f10: e893 0007 ldmia.w r3, {r0, r1, r2}
  99200. 8027f14: e884 0007 stmia.w r4, {r0, r1, r2}
  99201. 8027f18: 9601 str r6, [sp, #4]
  99202. 8027f1a: 9500 str r5, [sp, #0]
  99203. 8027f1c: 4673 mov r3, lr
  99204. 8027f1e: 2200 movs r2, #0
  99205. 8027f20: 4661 mov r1, ip
  99206. 8027f22: 6838 ldr r0, [r7, #0]
  99207. 8027f24: f000 fe5d bl 8028be2 <MQTTSerialize_publish>
  99208. 8027f28: 6338 str r0, [r7, #48] @ 0x30
  99209. if (len <= 0)
  99210. 8027f2a: 6b3b ldr r3, [r7, #48] @ 0x30
  99211. 8027f2c: 2b00 cmp r3, #0
  99212. 8027f2e: dd5a ble.n 8027fe6 <MQTTPublish+0x178>
  99213. goto exit;
  99214. if ((rc = sendPacket(c, len, &timer)) != MQTT_SUCCESS) // send the subscribe packet
  99215. 8027f30: f107 0328 add.w r3, r7, #40 @ 0x28
  99216. 8027f34: 461a mov r2, r3
  99217. 8027f36: 6b39 ldr r1, [r7, #48] @ 0x30
  99218. 8027f38: 68f8 ldr r0, [r7, #12]
  99219. 8027f3a: f7ff f9c2 bl 80272c2 <sendPacket>
  99220. 8027f3e: 6378 str r0, [r7, #52] @ 0x34
  99221. 8027f40: 6b7b ldr r3, [r7, #52] @ 0x34
  99222. 8027f42: 2b00 cmp r3, #0
  99223. 8027f44: d151 bne.n 8027fea <MQTTPublish+0x17c>
  99224. goto exit; // there was a problem
  99225. if (message->qos == QOS1)
  99226. 8027f46: 687b ldr r3, [r7, #4]
  99227. 8027f48: 781b ldrb r3, [r3, #0]
  99228. 8027f4a: 2b01 cmp r3, #1
  99229. 8027f4c: d122 bne.n 8027f94 <MQTTPublish+0x126>
  99230. {
  99231. if (waitfor(c, PUBACK, &timer) == PUBACK)
  99232. 8027f4e: f107 0328 add.w r3, r7, #40 @ 0x28
  99233. 8027f52: 461a mov r2, r3
  99234. 8027f54: 2104 movs r1, #4
  99235. 8027f56: 68f8 ldr r0, [r7, #12]
  99236. 8027f58: f7ff fd97 bl 8027a8a <waitfor>
  99237. 8027f5c: 4603 mov r3, r0
  99238. 8027f5e: 2b04 cmp r3, #4
  99239. 8027f60: d114 bne.n 8027f8c <MQTTPublish+0x11e>
  99240. {
  99241. unsigned short mypacketid;
  99242. unsigned char dup, type;
  99243. if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
  99244. 8027f62: 68fb ldr r3, [r7, #12]
  99245. 8027f64: 695c ldr r4, [r3, #20]
  99246. 8027f66: 68fb ldr r3, [r7, #12]
  99247. 8027f68: 68db ldr r3, [r3, #12]
  99248. 8027f6a: f107 021a add.w r2, r7, #26
  99249. 8027f6e: f107 0119 add.w r1, r7, #25
  99250. 8027f72: f107 0018 add.w r0, r7, #24
  99251. 8027f76: 9300 str r3, [sp, #0]
  99252. 8027f78: 4623 mov r3, r4
  99253. 8027f7a: f000 fbc1 bl 8028700 <MQTTDeserialize_ack>
  99254. 8027f7e: 4603 mov r3, r0
  99255. 8027f80: 2b01 cmp r3, #1
  99256. 8027f82: d035 beq.n 8027ff0 <MQTTPublish+0x182>
  99257. rc = FAILURE;
  99258. 8027f84: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99259. 8027f88: 637b str r3, [r7, #52] @ 0x34
  99260. 8027f8a: e031 b.n 8027ff0 <MQTTPublish+0x182>
  99261. }
  99262. else
  99263. rc = FAILURE;
  99264. 8027f8c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99265. 8027f90: 637b str r3, [r7, #52] @ 0x34
  99266. 8027f92: e02d b.n 8027ff0 <MQTTPublish+0x182>
  99267. }
  99268. else if (message->qos == QOS2)
  99269. 8027f94: 687b ldr r3, [r7, #4]
  99270. 8027f96: 781b ldrb r3, [r3, #0]
  99271. 8027f98: 2b02 cmp r3, #2
  99272. 8027f9a: d128 bne.n 8027fee <MQTTPublish+0x180>
  99273. {
  99274. if (waitfor(c, PUBCOMP, &timer) == PUBCOMP)
  99275. 8027f9c: f107 0328 add.w r3, r7, #40 @ 0x28
  99276. 8027fa0: 461a mov r2, r3
  99277. 8027fa2: 2107 movs r1, #7
  99278. 8027fa4: 68f8 ldr r0, [r7, #12]
  99279. 8027fa6: f7ff fd70 bl 8027a8a <waitfor>
  99280. 8027faa: 4603 mov r3, r0
  99281. 8027fac: 2b07 cmp r3, #7
  99282. 8027fae: d114 bne.n 8027fda <MQTTPublish+0x16c>
  99283. {
  99284. unsigned short mypacketid;
  99285. unsigned char dup, type;
  99286. if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
  99287. 8027fb0: 68fb ldr r3, [r7, #12]
  99288. 8027fb2: 695c ldr r4, [r3, #20]
  99289. 8027fb4: 68fb ldr r3, [r7, #12]
  99290. 8027fb6: 68db ldr r3, [r3, #12]
  99291. 8027fb8: f107 0216 add.w r2, r7, #22
  99292. 8027fbc: f107 0115 add.w r1, r7, #21
  99293. 8027fc0: f107 0014 add.w r0, r7, #20
  99294. 8027fc4: 9300 str r3, [sp, #0]
  99295. 8027fc6: 4623 mov r3, r4
  99296. 8027fc8: f000 fb9a bl 8028700 <MQTTDeserialize_ack>
  99297. 8027fcc: 4603 mov r3, r0
  99298. 8027fce: 2b01 cmp r3, #1
  99299. 8027fd0: d00e beq.n 8027ff0 <MQTTPublish+0x182>
  99300. rc = FAILURE;
  99301. 8027fd2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99302. 8027fd6: 637b str r3, [r7, #52] @ 0x34
  99303. 8027fd8: e00a b.n 8027ff0 <MQTTPublish+0x182>
  99304. }
  99305. else
  99306. rc = FAILURE;
  99307. 8027fda: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99308. 8027fde: 637b str r3, [r7, #52] @ 0x34
  99309. 8027fe0: e006 b.n 8027ff0 <MQTTPublish+0x182>
  99310. goto exit;
  99311. 8027fe2: bf00 nop
  99312. 8027fe4: e004 b.n 8027ff0 <MQTTPublish+0x182>
  99313. goto exit;
  99314. 8027fe6: bf00 nop
  99315. 8027fe8: e002 b.n 8027ff0 <MQTTPublish+0x182>
  99316. goto exit; // there was a problem
  99317. 8027fea: bf00 nop
  99318. 8027fec: e000 b.n 8027ff0 <MQTTPublish+0x182>
  99319. }
  99320. exit:
  99321. 8027fee: bf00 nop
  99322. if (rc == FAILURE)
  99323. 8027ff0: 6b7b ldr r3, [r7, #52] @ 0x34
  99324. 8027ff2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  99325. 8027ff6: d102 bne.n 8027ffe <MQTTPublish+0x190>
  99326. MQTTCloseSession(c);
  99327. 8027ff8: 68f8 ldr r0, [r7, #12]
  99328. 8027ffa: f7ff fc03 bl 8027804 <MQTTCloseSession>
  99329. #if defined(MQTT_TASK)
  99330. MutexUnlock(&c->mutex);
  99331. #endif
  99332. // osMutexRelease(mqttMutex);
  99333. osMutexRelease(c->mutex);
  99334. 8027ffe: 68fb ldr r3, [r7, #12]
  99335. 8028000: 6e9b ldr r3, [r3, #104] @ 0x68
  99336. 8028002: 4618 mov r0, r3
  99337. 8028004: f7e9 fb88 bl 8011718 <osMutexRelease>
  99338. return rc;
  99339. 8028008: 6b7b ldr r3, [r7, #52] @ 0x34
  99340. }
  99341. 802800a: 4618 mov r0, r3
  99342. 802800c: 373c adds r7, #60 @ 0x3c
  99343. 802800e: 46bd mov sp, r7
  99344. 8028010: bdf0 pop {r4, r5, r6, r7, pc}
  99345. ...
  99346. 08028014 <TimerIsExpired>:
  99347. #define SERVER_IP4 34
  99348. uint32_t MilliTimer;
  99349. //Timer functions
  99350. char TimerIsExpired(Timer *timer) {
  99351. 8028014: b480 push {r7}
  99352. 8028016: b085 sub sp, #20
  99353. 8028018: af00 add r7, sp, #0
  99354. 802801a: 6078 str r0, [r7, #4]
  99355. long left = timer->end_time - MilliTimer;
  99356. 802801c: 687b ldr r3, [r7, #4]
  99357. 802801e: 685a ldr r2, [r3, #4]
  99358. 8028020: 4b06 ldr r3, [pc, #24] @ (802803c <TimerIsExpired+0x28>)
  99359. 8028022: 681b ldr r3, [r3, #0]
  99360. 8028024: 1ad3 subs r3, r2, r3
  99361. 8028026: 60fb str r3, [r7, #12]
  99362. return (left < 0);
  99363. 8028028: 68fb ldr r3, [r7, #12]
  99364. 802802a: 0fdb lsrs r3, r3, #31
  99365. 802802c: b2db uxtb r3, r3
  99366. }
  99367. 802802e: 4618 mov r0, r3
  99368. 8028030: 3714 adds r7, #20
  99369. 8028032: 46bd mov sp, r7
  99370. 8028034: f85d 7b04 ldr.w r7, [sp], #4
  99371. 8028038: 4770 bx lr
  99372. 802803a: bf00 nop
  99373. 802803c: 2402b114 .word 0x2402b114
  99374. 08028040 <TimerCountdownMS>:
  99375. void TimerCountdownMS(Timer *timer, unsigned int timeout) {
  99376. 8028040: b480 push {r7}
  99377. 8028042: b083 sub sp, #12
  99378. 8028044: af00 add r7, sp, #0
  99379. 8028046: 6078 str r0, [r7, #4]
  99380. 8028048: 6039 str r1, [r7, #0]
  99381. timer->end_time = MilliTimer + timeout;
  99382. 802804a: 4b06 ldr r3, [pc, #24] @ (8028064 <TimerCountdownMS+0x24>)
  99383. 802804c: 681a ldr r2, [r3, #0]
  99384. 802804e: 683b ldr r3, [r7, #0]
  99385. 8028050: 441a add r2, r3
  99386. 8028052: 687b ldr r3, [r7, #4]
  99387. 8028054: 605a str r2, [r3, #4]
  99388. }
  99389. 8028056: bf00 nop
  99390. 8028058: 370c adds r7, #12
  99391. 802805a: 46bd mov sp, r7
  99392. 802805c: f85d 7b04 ldr.w r7, [sp], #4
  99393. 8028060: 4770 bx lr
  99394. 8028062: bf00 nop
  99395. 8028064: 2402b114 .word 0x2402b114
  99396. 08028068 <TimerCountdown>:
  99397. void TimerCountdown(Timer *timer, unsigned int timeout) {
  99398. 8028068: b480 push {r7}
  99399. 802806a: b083 sub sp, #12
  99400. 802806c: af00 add r7, sp, #0
  99401. 802806e: 6078 str r0, [r7, #4]
  99402. 8028070: 6039 str r1, [r7, #0]
  99403. timer->end_time = MilliTimer + (timeout * 1000);
  99404. 8028072: 683b ldr r3, [r7, #0]
  99405. 8028074: f44f 727a mov.w r2, #1000 @ 0x3e8
  99406. 8028078: fb03 f202 mul.w r2, r3, r2
  99407. 802807c: 4b05 ldr r3, [pc, #20] @ (8028094 <TimerCountdown+0x2c>)
  99408. 802807e: 681b ldr r3, [r3, #0]
  99409. 8028080: 441a add r2, r3
  99410. 8028082: 687b ldr r3, [r7, #4]
  99411. 8028084: 605a str r2, [r3, #4]
  99412. }
  99413. 8028086: bf00 nop
  99414. 8028088: 370c adds r7, #12
  99415. 802808a: 46bd mov sp, r7
  99416. 802808c: f85d 7b04 ldr.w r7, [sp], #4
  99417. 8028090: 4770 bx lr
  99418. 8028092: bf00 nop
  99419. 8028094: 2402b114 .word 0x2402b114
  99420. 08028098 <TimerLeftMS>:
  99421. int TimerLeftMS(Timer *timer) {
  99422. 8028098: b480 push {r7}
  99423. 802809a: b085 sub sp, #20
  99424. 802809c: af00 add r7, sp, #0
  99425. 802809e: 6078 str r0, [r7, #4]
  99426. long left = timer->end_time - MilliTimer;
  99427. 80280a0: 687b ldr r3, [r7, #4]
  99428. 80280a2: 685a ldr r2, [r3, #4]
  99429. 80280a4: 4b06 ldr r3, [pc, #24] @ (80280c0 <TimerLeftMS+0x28>)
  99430. 80280a6: 681b ldr r3, [r3, #0]
  99431. 80280a8: 1ad3 subs r3, r2, r3
  99432. 80280aa: 60fb str r3, [r7, #12]
  99433. return (left < 0) ? 0 : left;
  99434. 80280ac: 68fb ldr r3, [r7, #12]
  99435. 80280ae: ea23 73e3 bic.w r3, r3, r3, asr #31
  99436. }
  99437. 80280b2: 4618 mov r0, r3
  99438. 80280b4: 3714 adds r7, #20
  99439. 80280b6: 46bd mov sp, r7
  99440. 80280b8: f85d 7b04 ldr.w r7, [sp], #4
  99441. 80280bc: 4770 bx lr
  99442. 80280be: bf00 nop
  99443. 80280c0: 2402b114 .word 0x2402b114
  99444. 080280c4 <TimerInit>:
  99445. void TimerInit(Timer *timer) {
  99446. 80280c4: b480 push {r7}
  99447. 80280c6: b083 sub sp, #12
  99448. 80280c8: af00 add r7, sp, #0
  99449. 80280ca: 6078 str r0, [r7, #4]
  99450. timer->end_time = 0;
  99451. 80280cc: 687b ldr r3, [r7, #4]
  99452. 80280ce: 2200 movs r2, #0
  99453. 80280d0: 605a str r2, [r3, #4]
  99454. }
  99455. 80280d2: bf00 nop
  99456. 80280d4: 370c adds r7, #12
  99457. 80280d6: 46bd mov sp, r7
  99458. 80280d8: f85d 7b04 ldr.w r7, [sp], #4
  99459. 80280dc: 4770 bx lr
  99460. ...
  99461. 080280e0 <NewNetwork>:
  99462. #ifdef MQTT_LWIP_SOCKET
  99463. void NewNetwork(Network *n) {
  99464. 80280e0: b480 push {r7}
  99465. 80280e2: b083 sub sp, #12
  99466. 80280e4: af00 add r7, sp, #0
  99467. 80280e6: 6078 str r0, [r7, #4]
  99468. n->socket = 0; //clear
  99469. 80280e8: 687b ldr r3, [r7, #4]
  99470. 80280ea: 2200 movs r2, #0
  99471. 80280ec: 601a str r2, [r3, #0]
  99472. n->mqttread = net_read; //receive function
  99473. 80280ee: 687b ldr r3, [r7, #4]
  99474. 80280f0: 4a06 ldr r2, [pc, #24] @ (802810c <NewNetwork+0x2c>)
  99475. 80280f2: 605a str r2, [r3, #4]
  99476. n->mqttwrite = net_write; //send function
  99477. 80280f4: 687b ldr r3, [r7, #4]
  99478. 80280f6: 4a06 ldr r2, [pc, #24] @ (8028110 <NewNetwork+0x30>)
  99479. 80280f8: 609a str r2, [r3, #8]
  99480. n->disconnect = net_disconnect; //disconnection function
  99481. 80280fa: 687b ldr r3, [r7, #4]
  99482. 80280fc: 4a05 ldr r2, [pc, #20] @ (8028114 <NewNetwork+0x34>)
  99483. 80280fe: 60da str r2, [r3, #12]
  99484. }
  99485. 8028100: bf00 nop
  99486. 8028102: 370c adds r7, #12
  99487. 8028104: 46bd mov sp, r7
  99488. 8028106: f85d 7b04 ldr.w r7, [sp], #4
  99489. 802810a: 4770 bx lr
  99490. 802810c: 080281b5 .word 0x080281b5
  99491. 8028110: 08028205 .word 0x08028205
  99492. 8028114: 0802822b .word 0x0802822b
  99493. 08028118 <ConnectNetwork>:
  99494. int ConnectNetwork(Network *n, char *ip, int port) {
  99495. 8028118: b580 push {r7, lr}
  99496. 802811a: b088 sub sp, #32
  99497. 802811c: af00 add r7, sp, #0
  99498. 802811e: 60f8 str r0, [r7, #12]
  99499. 8028120: 60b9 str r1, [r7, #8]
  99500. 8028122: 607a str r2, [r7, #4]
  99501. struct sockaddr_in server_addr;
  99502. if(n->socket)
  99503. 8028124: 68fb ldr r3, [r7, #12]
  99504. 8028126: 681b ldr r3, [r3, #0]
  99505. 8028128: 2b00 cmp r3, #0
  99506. 802812a: d004 beq.n 8028136 <ConnectNetwork+0x1e>
  99507. {
  99508. close(n->socket);
  99509. 802812c: 68fb ldr r3, [r7, #12]
  99510. 802812e: 681b ldr r3, [r3, #0]
  99511. 8028130: 4618 mov r0, r3
  99512. 8028132: f7f0 fa65 bl 8018600 <lwip_close>
  99513. }
  99514. n->socket = socket(PF_INET, SOCK_STREAM, 0); //create socket
  99515. 8028136: 2200 movs r2, #0
  99516. 8028138: 2101 movs r1, #1
  99517. 802813a: 2002 movs r0, #2
  99518. 802813c: f7f0 ff72 bl 8019024 <lwip_socket>
  99519. 8028140: 4602 mov r2, r0
  99520. 8028142: 68fb ldr r3, [r7, #12]
  99521. 8028144: 601a str r2, [r3, #0]
  99522. if(n->socket < 0)
  99523. 8028146: 68fb ldr r3, [r7, #12]
  99524. 8028148: 681b ldr r3, [r3, #0]
  99525. 802814a: 2b00 cmp r3, #0
  99526. 802814c: da05 bge.n 802815a <ConnectNetwork+0x42>
  99527. {
  99528. n->socket = 0;
  99529. 802814e: 68fb ldr r3, [r7, #12]
  99530. 8028150: 2200 movs r2, #0
  99531. 8028152: 601a str r2, [r3, #0]
  99532. return -1;
  99533. 8028154: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99534. 8028158: e028 b.n 80281ac <ConnectNetwork+0x94>
  99535. }
  99536. memset(&server_addr, 0, sizeof(struct sockaddr_in)); //broker address info
  99537. 802815a: f107 0310 add.w r3, r7, #16
  99538. 802815e: 2210 movs r2, #16
  99539. 8028160: 2100 movs r1, #0
  99540. 8028162: 4618 mov r0, r3
  99541. 8028164: f002 fc8c bl 802aa80 <memset>
  99542. server_addr.sin_family = AF_INET;
  99543. 8028168: 2302 movs r3, #2
  99544. 802816a: 747b strb r3, [r7, #17]
  99545. server_addr.sin_addr.s_addr = inet_addr(ip);
  99546. 802816c: 68b8 ldr r0, [r7, #8]
  99547. 802816e: f7fd fde0 bl 8025d32 <ipaddr_addr>
  99548. 8028172: 4603 mov r3, r0
  99549. 8028174: 617b str r3, [r7, #20]
  99550. server_addr.sin_port = htons(port);
  99551. 8028176: 687b ldr r3, [r7, #4]
  99552. 8028178: b29b uxth r3, r3
  99553. 802817a: 4618 mov r0, r3
  99554. 802817c: f7f1 fb94 bl 80198a8 <lwip_htons>
  99555. 8028180: 4603 mov r3, r0
  99556. 8028182: 827b strh r3, [r7, #18]
  99557. if(connect(n->socket, (struct sockaddr*)&server_addr, sizeof(struct sockaddr_in)) < 0) //connect to the broker
  99558. 8028184: 68fb ldr r3, [r7, #12]
  99559. 8028186: 681b ldr r3, [r3, #0]
  99560. 8028188: f107 0110 add.w r1, r7, #16
  99561. 802818c: 2210 movs r2, #16
  99562. 802818e: 4618 mov r0, r3
  99563. 8028190: f7f0 fa8c bl 80186ac <lwip_connect>
  99564. 8028194: 4603 mov r3, r0
  99565. 8028196: 2b00 cmp r3, #0
  99566. 8028198: da07 bge.n 80281aa <ConnectNetwork+0x92>
  99567. {
  99568. close(n->socket);
  99569. 802819a: 68fb ldr r3, [r7, #12]
  99570. 802819c: 681b ldr r3, [r3, #0]
  99571. 802819e: 4618 mov r0, r3
  99572. 80281a0: f7f0 fa2e bl 8018600 <lwip_close>
  99573. return -1;
  99574. 80281a4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99575. 80281a8: e000 b.n 80281ac <ConnectNetwork+0x94>
  99576. }
  99577. return 0;
  99578. 80281aa: 2300 movs r3, #0
  99579. }
  99580. 80281ac: 4618 mov r0, r3
  99581. 80281ae: 3720 adds r7, #32
  99582. 80281b0: 46bd mov sp, r7
  99583. 80281b2: bd80 pop {r7, pc}
  99584. 080281b4 <net_read>:
  99585. int net_read(Network *n, unsigned char *buffer, int len, int timeout_ms) {
  99586. 80281b4: b580 push {r7, lr}
  99587. 80281b6: b086 sub sp, #24
  99588. 80281b8: af00 add r7, sp, #0
  99589. 80281ba: 60f8 str r0, [r7, #12]
  99590. 80281bc: 60b9 str r1, [r7, #8]
  99591. 80281be: 607a str r2, [r7, #4]
  99592. 80281c0: 603b str r3, [r7, #0]
  99593. int available;
  99594. /* !!! LWIP_SO_RCVBUF must be enabled !!! */
  99595. if(ioctl(n->socket, FIONREAD, &available) < 0) return -1; //check receive buffer
  99596. 80281c2: 68fb ldr r3, [r7, #12]
  99597. 80281c4: 681b ldr r3, [r3, #0]
  99598. 80281c6: f107 0214 add.w r2, r7, #20
  99599. 80281ca: 490d ldr r1, [pc, #52] @ (8028200 <net_read+0x4c>)
  99600. 80281cc: 4618 mov r0, r3
  99601. 80281ce: f7f1 f917 bl 8019400 <lwip_ioctl>
  99602. 80281d2: 4603 mov r3, r0
  99603. 80281d4: 2b00 cmp r3, #0
  99604. 80281d6: da02 bge.n 80281de <net_read+0x2a>
  99605. 80281d8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99606. 80281dc: e00c b.n 80281f8 <net_read+0x44>
  99607. if(available > 0)
  99608. 80281de: 697b ldr r3, [r7, #20]
  99609. 80281e0: 2b00 cmp r3, #0
  99610. 80281e2: dd08 ble.n 80281f6 <net_read+0x42>
  99611. {
  99612. return recv(n->socket, buffer, len, 0);
  99613. 80281e4: 68fb ldr r3, [r7, #12]
  99614. 80281e6: 6818 ldr r0, [r3, #0]
  99615. 80281e8: 687a ldr r2, [r7, #4]
  99616. 80281ea: 2300 movs r3, #0
  99617. 80281ec: 68b9 ldr r1, [r7, #8]
  99618. 80281ee: f7f0 fdf3 bl 8018dd8 <lwip_recv>
  99619. 80281f2: 4603 mov r3, r0
  99620. 80281f4: e000 b.n 80281f8 <net_read+0x44>
  99621. }
  99622. return 0;
  99623. 80281f6: 2300 movs r3, #0
  99624. }
  99625. 80281f8: 4618 mov r0, r3
  99626. 80281fa: 3718 adds r7, #24
  99627. 80281fc: 46bd mov sp, r7
  99628. 80281fe: bd80 pop {r7, pc}
  99629. 8028200: 4004667f .word 0x4004667f
  99630. 08028204 <net_write>:
  99631. int net_write(Network *n, unsigned char *buffer, int len, int timeout_ms) {
  99632. 8028204: b580 push {r7, lr}
  99633. 8028206: b084 sub sp, #16
  99634. 8028208: af00 add r7, sp, #0
  99635. 802820a: 60f8 str r0, [r7, #12]
  99636. 802820c: 60b9 str r1, [r7, #8]
  99637. 802820e: 607a str r2, [r7, #4]
  99638. 8028210: 603b str r3, [r7, #0]
  99639. return send(n->socket, buffer, len, 0);
  99640. 8028212: 68fb ldr r3, [r7, #12]
  99641. 8028214: 6818 ldr r0, [r3, #0]
  99642. 8028216: 687a ldr r2, [r7, #4]
  99643. 8028218: 2300 movs r3, #0
  99644. 802821a: 68b9 ldr r1, [r7, #8]
  99645. 802821c: f7f0 fdf2 bl 8018e04 <lwip_send>
  99646. 8028220: 4603 mov r3, r0
  99647. }
  99648. 8028222: 4618 mov r0, r3
  99649. 8028224: 3710 adds r7, #16
  99650. 8028226: 46bd mov sp, r7
  99651. 8028228: bd80 pop {r7, pc}
  99652. 0802822a <net_disconnect>:
  99653. void net_disconnect(Network *n) {
  99654. 802822a: b580 push {r7, lr}
  99655. 802822c: b082 sub sp, #8
  99656. 802822e: af00 add r7, sp, #0
  99657. 8028230: 6078 str r0, [r7, #4]
  99658. close(n->socket);
  99659. 8028232: 687b ldr r3, [r7, #4]
  99660. 8028234: 681b ldr r3, [r3, #0]
  99661. 8028236: 4618 mov r0, r3
  99662. 8028238: f7f0 f9e2 bl 8018600 <lwip_close>
  99663. n->socket = 0;
  99664. 802823c: 687b ldr r3, [r7, #4]
  99665. 802823e: 2200 movs r2, #0
  99666. 8028240: 601a str r2, [r3, #0]
  99667. }
  99668. 8028242: bf00 nop
  99669. 8028244: 3708 adds r7, #8
  99670. 8028246: 46bd mov sp, r7
  99671. 8028248: bd80 pop {r7, pc}
  99672. 0802824a <MQTTSerialize_connectLength>:
  99673. * Determines the length of the MQTT connect packet that would be produced using the supplied connect options.
  99674. * @param options the options to be used to build the connect packet
  99675. * @return the length of buffer needed to contain the serialized version of the packet
  99676. */
  99677. int MQTTSerialize_connectLength(MQTTPacket_connectData* options)
  99678. {
  99679. 802824a: b590 push {r4, r7, lr}
  99680. 802824c: b085 sub sp, #20
  99681. 802824e: af00 add r7, sp, #0
  99682. 8028250: 6078 str r0, [r7, #4]
  99683. int len = 0;
  99684. 8028252: 2300 movs r3, #0
  99685. 8028254: 60fb str r3, [r7, #12]
  99686. FUNC_ENTRY;
  99687. if (options->MQTTVersion == 3)
  99688. 8028256: 687b ldr r3, [r7, #4]
  99689. 8028258: 7a1b ldrb r3, [r3, #8]
  99690. 802825a: 2b03 cmp r3, #3
  99691. 802825c: d102 bne.n 8028264 <MQTTSerialize_connectLength+0x1a>
  99692. len = 12; /* variable depending on MQTT or MQIsdp */
  99693. 802825e: 230c movs r3, #12
  99694. 8028260: 60fb str r3, [r7, #12]
  99695. 8028262: e005 b.n 8028270 <MQTTSerialize_connectLength+0x26>
  99696. else if (options->MQTTVersion == 4)
  99697. 8028264: 687b ldr r3, [r7, #4]
  99698. 8028266: 7a1b ldrb r3, [r3, #8]
  99699. 8028268: 2b04 cmp r3, #4
  99700. 802826a: d101 bne.n 8028270 <MQTTSerialize_connectLength+0x26>
  99701. len = 10;
  99702. 802826c: 230a movs r3, #10
  99703. 802826e: 60fb str r3, [r7, #12]
  99704. len += MQTTstrlen(options->clientID)+2;
  99705. 8028270: 687b ldr r3, [r7, #4]
  99706. 8028272: 330c adds r3, #12
  99707. 8028274: e893 0007 ldmia.w r3, {r0, r1, r2}
  99708. 8028278: f000 fc43 bl 8028b02 <MQTTstrlen>
  99709. 802827c: 4603 mov r3, r0
  99710. 802827e: 3302 adds r3, #2
  99711. 8028280: 68fa ldr r2, [r7, #12]
  99712. 8028282: 4413 add r3, r2
  99713. 8028284: 60fb str r3, [r7, #12]
  99714. if (options->willFlag)
  99715. 8028286: 687b ldr r3, [r7, #4]
  99716. 8028288: 7edb ldrb r3, [r3, #27]
  99717. 802828a: 2b00 cmp r3, #0
  99718. 802828c: d013 beq.n 80282b6 <MQTTSerialize_connectLength+0x6c>
  99719. len += MQTTstrlen(options->will.topicName)+2 + MQTTstrlen(options->will.message)+2;
  99720. 802828e: 687b ldr r3, [r7, #4]
  99721. 8028290: 3324 adds r3, #36 @ 0x24
  99722. 8028292: e893 0007 ldmia.w r3, {r0, r1, r2}
  99723. 8028296: f000 fc34 bl 8028b02 <MQTTstrlen>
  99724. 802829a: 4603 mov r3, r0
  99725. 802829c: 1c9c adds r4, r3, #2
  99726. 802829e: 687b ldr r3, [r7, #4]
  99727. 80282a0: 3330 adds r3, #48 @ 0x30
  99728. 80282a2: e893 0007 ldmia.w r3, {r0, r1, r2}
  99729. 80282a6: f000 fc2c bl 8028b02 <MQTTstrlen>
  99730. 80282aa: 4603 mov r3, r0
  99731. 80282ac: 4423 add r3, r4
  99732. 80282ae: 3302 adds r3, #2
  99733. 80282b0: 68fa ldr r2, [r7, #12]
  99734. 80282b2: 4413 add r3, r2
  99735. 80282b4: 60fb str r3, [r7, #12]
  99736. if (options->username.cstring || options->username.lenstring.data)
  99737. 80282b6: 687b ldr r3, [r7, #4]
  99738. 80282b8: 6c1b ldr r3, [r3, #64] @ 0x40
  99739. 80282ba: 2b00 cmp r3, #0
  99740. 80282bc: d103 bne.n 80282c6 <MQTTSerialize_connectLength+0x7c>
  99741. 80282be: 687b ldr r3, [r7, #4]
  99742. 80282c0: 6c9b ldr r3, [r3, #72] @ 0x48
  99743. 80282c2: 2b00 cmp r3, #0
  99744. 80282c4: d00a beq.n 80282dc <MQTTSerialize_connectLength+0x92>
  99745. len += MQTTstrlen(options->username)+2;
  99746. 80282c6: 687b ldr r3, [r7, #4]
  99747. 80282c8: 3340 adds r3, #64 @ 0x40
  99748. 80282ca: e893 0007 ldmia.w r3, {r0, r1, r2}
  99749. 80282ce: f000 fc18 bl 8028b02 <MQTTstrlen>
  99750. 80282d2: 4603 mov r3, r0
  99751. 80282d4: 3302 adds r3, #2
  99752. 80282d6: 68fa ldr r2, [r7, #12]
  99753. 80282d8: 4413 add r3, r2
  99754. 80282da: 60fb str r3, [r7, #12]
  99755. if (options->password.cstring || options->password.lenstring.data)
  99756. 80282dc: 687b ldr r3, [r7, #4]
  99757. 80282de: 6cdb ldr r3, [r3, #76] @ 0x4c
  99758. 80282e0: 2b00 cmp r3, #0
  99759. 80282e2: d103 bne.n 80282ec <MQTTSerialize_connectLength+0xa2>
  99760. 80282e4: 687b ldr r3, [r7, #4]
  99761. 80282e6: 6d5b ldr r3, [r3, #84] @ 0x54
  99762. 80282e8: 2b00 cmp r3, #0
  99763. 80282ea: d00a beq.n 8028302 <MQTTSerialize_connectLength+0xb8>
  99764. len += MQTTstrlen(options->password)+2;
  99765. 80282ec: 687b ldr r3, [r7, #4]
  99766. 80282ee: 334c adds r3, #76 @ 0x4c
  99767. 80282f0: e893 0007 ldmia.w r3, {r0, r1, r2}
  99768. 80282f4: f000 fc05 bl 8028b02 <MQTTstrlen>
  99769. 80282f8: 4603 mov r3, r0
  99770. 80282fa: 3302 adds r3, #2
  99771. 80282fc: 68fa ldr r2, [r7, #12]
  99772. 80282fe: 4413 add r3, r2
  99773. 8028300: 60fb str r3, [r7, #12]
  99774. FUNC_EXIT_RC(len);
  99775. return len;
  99776. 8028302: 68fb ldr r3, [r7, #12]
  99777. }
  99778. 8028304: 4618 mov r0, r3
  99779. 8028306: 3714 adds r7, #20
  99780. 8028308: 46bd mov sp, r7
  99781. 802830a: bd90 pop {r4, r7, pc}
  99782. 0802830c <MQTTSerialize_connect>:
  99783. * @param len the length in bytes of the supplied buffer
  99784. * @param options the options to be used to build the connect packet
  99785. * @return serialized length, or error if 0
  99786. */
  99787. int MQTTSerialize_connect(unsigned char* buf, int buflen, MQTTPacket_connectData* options)
  99788. {
  99789. 802830c: b580 push {r7, lr}
  99790. 802830e: b08a sub sp, #40 @ 0x28
  99791. 8028310: af00 add r7, sp, #0
  99792. 8028312: 60f8 str r0, [r7, #12]
  99793. 8028314: 60b9 str r1, [r7, #8]
  99794. 8028316: 607a str r2, [r7, #4]
  99795. unsigned char *ptr = buf;
  99796. 8028318: 68fb ldr r3, [r7, #12]
  99797. 802831a: 61fb str r3, [r7, #28]
  99798. MQTTHeader header = {0};
  99799. 802831c: 2300 movs r3, #0
  99800. 802831e: 61bb str r3, [r7, #24]
  99801. MQTTConnectFlags flags = {0};
  99802. 8028320: 2300 movs r3, #0
  99803. 8028322: 617b str r3, [r7, #20]
  99804. int len = 0;
  99805. 8028324: 2300 movs r3, #0
  99806. 8028326: 623b str r3, [r7, #32]
  99807. int rc = -1;
  99808. 8028328: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99809. 802832c: 627b str r3, [r7, #36] @ 0x24
  99810. FUNC_ENTRY;
  99811. if (MQTTPacket_len(len = MQTTSerialize_connectLength(options)) > buflen)
  99812. 802832e: 6878 ldr r0, [r7, #4]
  99813. 8028330: f7ff ff8b bl 802824a <MQTTSerialize_connectLength>
  99814. 8028334: 6238 str r0, [r7, #32]
  99815. 8028336: 6a38 ldr r0, [r7, #32]
  99816. 8028338: f000 fa98 bl 802886c <MQTTPacket_len>
  99817. 802833c: 4602 mov r2, r0
  99818. 802833e: 68bb ldr r3, [r7, #8]
  99819. 8028340: 4293 cmp r3, r2
  99820. 8028342: da03 bge.n 802834c <MQTTSerialize_connect+0x40>
  99821. {
  99822. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  99823. 8028344: f06f 0301 mvn.w r3, #1
  99824. 8028348: 627b str r3, [r7, #36] @ 0x24
  99825. goto exit;
  99826. 802834a: e0c2 b.n 80284d2 <MQTTSerialize_connect+0x1c6>
  99827. }
  99828. header.byte = 0;
  99829. 802834c: 2300 movs r3, #0
  99830. 802834e: 763b strb r3, [r7, #24]
  99831. header.bits.type = CONNECT;
  99832. 8028350: 7e3b ldrb r3, [r7, #24]
  99833. 8028352: 2201 movs r2, #1
  99834. 8028354: f362 1307 bfi r3, r2, #4, #4
  99835. 8028358: 763b strb r3, [r7, #24]
  99836. writeChar(&ptr, header.byte); /* write header */
  99837. 802835a: 7e3a ldrb r2, [r7, #24]
  99838. 802835c: f107 031c add.w r3, r7, #28
  99839. 8028360: 4611 mov r1, r2
  99840. 8028362: 4618 mov r0, r3
  99841. 8028364: f000 fb11 bl 802898a <writeChar>
  99842. ptr += MQTTPacket_encode(ptr, len); /* write remaining length */
  99843. 8028368: 69fb ldr r3, [r7, #28]
  99844. 802836a: 6a39 ldr r1, [r7, #32]
  99845. 802836c: 4618 mov r0, r3
  99846. 802836e: f000 fa12 bl 8028796 <MQTTPacket_encode>
  99847. 8028372: 4602 mov r2, r0
  99848. 8028374: 69fb ldr r3, [r7, #28]
  99849. 8028376: 4413 add r3, r2
  99850. 8028378: 61fb str r3, [r7, #28]
  99851. if (options->MQTTVersion == 4)
  99852. 802837a: 687b ldr r3, [r7, #4]
  99853. 802837c: 7a1b ldrb r3, [r3, #8]
  99854. 802837e: 2b04 cmp r3, #4
  99855. 8028380: d10c bne.n 802839c <MQTTSerialize_connect+0x90>
  99856. {
  99857. writeCString(&ptr, "MQTT");
  99858. 8028382: f107 031c add.w r3, r7, #28
  99859. 8028386: 4955 ldr r1, [pc, #340] @ (80284dc <MQTTSerialize_connect+0x1d0>)
  99860. 8028388: 4618 mov r0, r3
  99861. 802838a: f000 fb3c bl 8028a06 <writeCString>
  99862. writeChar(&ptr, (char) 4);
  99863. 802838e: f107 031c add.w r3, r7, #28
  99864. 8028392: 2104 movs r1, #4
  99865. 8028394: 4618 mov r0, r3
  99866. 8028396: f000 faf8 bl 802898a <writeChar>
  99867. 802839a: e00b b.n 80283b4 <MQTTSerialize_connect+0xa8>
  99868. }
  99869. else
  99870. {
  99871. writeCString(&ptr, "MQIsdp");
  99872. 802839c: f107 031c add.w r3, r7, #28
  99873. 80283a0: 494f ldr r1, [pc, #316] @ (80284e0 <MQTTSerialize_connect+0x1d4>)
  99874. 80283a2: 4618 mov r0, r3
  99875. 80283a4: f000 fb2f bl 8028a06 <writeCString>
  99876. writeChar(&ptr, (char) 3);
  99877. 80283a8: f107 031c add.w r3, r7, #28
  99878. 80283ac: 2103 movs r1, #3
  99879. 80283ae: 4618 mov r0, r3
  99880. 80283b0: f000 faeb bl 802898a <writeChar>
  99881. }
  99882. flags.all = 0;
  99883. 80283b4: 2300 movs r3, #0
  99884. 80283b6: 753b strb r3, [r7, #20]
  99885. flags.bits.cleansession = options->cleansession;
  99886. 80283b8: 687b ldr r3, [r7, #4]
  99887. 80283ba: 7e9b ldrb r3, [r3, #26]
  99888. 80283bc: f003 0301 and.w r3, r3, #1
  99889. 80283c0: b2da uxtb r2, r3
  99890. 80283c2: 7d3b ldrb r3, [r7, #20]
  99891. 80283c4: f362 0341 bfi r3, r2, #1, #1
  99892. 80283c8: 753b strb r3, [r7, #20]
  99893. flags.bits.will = (options->willFlag) ? 1 : 0;
  99894. 80283ca: 687b ldr r3, [r7, #4]
  99895. 80283cc: 7edb ldrb r3, [r3, #27]
  99896. 80283ce: 2b00 cmp r3, #0
  99897. 80283d0: bf14 ite ne
  99898. 80283d2: 2301 movne r3, #1
  99899. 80283d4: 2300 moveq r3, #0
  99900. 80283d6: b2da uxtb r2, r3
  99901. 80283d8: 7d3b ldrb r3, [r7, #20]
  99902. 80283da: f362 0382 bfi r3, r2, #2, #1
  99903. 80283de: 753b strb r3, [r7, #20]
  99904. if (flags.bits.will)
  99905. 80283e0: 7d3b ldrb r3, [r7, #20]
  99906. 80283e2: f003 0304 and.w r3, r3, #4
  99907. 80283e6: b2db uxtb r3, r3
  99908. 80283e8: 2b00 cmp r3, #0
  99909. 80283ea: d013 beq.n 8028414 <MQTTSerialize_connect+0x108>
  99910. {
  99911. flags.bits.willQoS = options->will.qos;
  99912. 80283ec: 687b ldr r3, [r7, #4]
  99913. 80283ee: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  99914. 80283f2: f003 0303 and.w r3, r3, #3
  99915. 80283f6: b2da uxtb r2, r3
  99916. 80283f8: 7d3b ldrb r3, [r7, #20]
  99917. 80283fa: f362 03c4 bfi r3, r2, #3, #2
  99918. 80283fe: 753b strb r3, [r7, #20]
  99919. flags.bits.willRetain = options->will.retained;
  99920. 8028400: 687b ldr r3, [r7, #4]
  99921. 8028402: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  99922. 8028406: f003 0301 and.w r3, r3, #1
  99923. 802840a: b2da uxtb r2, r3
  99924. 802840c: 7d3b ldrb r3, [r7, #20]
  99925. 802840e: f362 1345 bfi r3, r2, #5, #1
  99926. 8028412: 753b strb r3, [r7, #20]
  99927. }
  99928. if (options->username.cstring || options->username.lenstring.data)
  99929. 8028414: 687b ldr r3, [r7, #4]
  99930. 8028416: 6c1b ldr r3, [r3, #64] @ 0x40
  99931. 8028418: 2b00 cmp r3, #0
  99932. 802841a: d103 bne.n 8028424 <MQTTSerialize_connect+0x118>
  99933. 802841c: 687b ldr r3, [r7, #4]
  99934. 802841e: 6c9b ldr r3, [r3, #72] @ 0x48
  99935. 8028420: 2b00 cmp r3, #0
  99936. 8028422: d003 beq.n 802842c <MQTTSerialize_connect+0x120>
  99937. flags.bits.username = 1;
  99938. 8028424: 7d3b ldrb r3, [r7, #20]
  99939. 8028426: f043 0380 orr.w r3, r3, #128 @ 0x80
  99940. 802842a: 753b strb r3, [r7, #20]
  99941. if (options->password.cstring || options->password.lenstring.data)
  99942. 802842c: 687b ldr r3, [r7, #4]
  99943. 802842e: 6cdb ldr r3, [r3, #76] @ 0x4c
  99944. 8028430: 2b00 cmp r3, #0
  99945. 8028432: d103 bne.n 802843c <MQTTSerialize_connect+0x130>
  99946. 8028434: 687b ldr r3, [r7, #4]
  99947. 8028436: 6d5b ldr r3, [r3, #84] @ 0x54
  99948. 8028438: 2b00 cmp r3, #0
  99949. 802843a: d003 beq.n 8028444 <MQTTSerialize_connect+0x138>
  99950. flags.bits.password = 1;
  99951. 802843c: 7d3b ldrb r3, [r7, #20]
  99952. 802843e: f043 0340 orr.w r3, r3, #64 @ 0x40
  99953. 8028442: 753b strb r3, [r7, #20]
  99954. writeChar(&ptr, flags.all);
  99955. 8028444: 7d3a ldrb r2, [r7, #20]
  99956. 8028446: f107 031c add.w r3, r7, #28
  99957. 802844a: 4611 mov r1, r2
  99958. 802844c: 4618 mov r0, r3
  99959. 802844e: f000 fa9c bl 802898a <writeChar>
  99960. writeInt(&ptr, options->keepAliveInterval);
  99961. 8028452: 687b ldr r3, [r7, #4]
  99962. 8028454: 8b1b ldrh r3, [r3, #24]
  99963. 8028456: 461a mov r2, r3
  99964. 8028458: f107 031c add.w r3, r7, #28
  99965. 802845c: 4611 mov r1, r2
  99966. 802845e: 4618 mov r0, r3
  99967. 8028460: f000 faa8 bl 80289b4 <writeInt>
  99968. writeMQTTString(&ptr, options->clientID);
  99969. 8028464: 687b ldr r3, [r7, #4]
  99970. 8028466: f107 001c add.w r0, r7, #28
  99971. 802846a: 330c adds r3, #12
  99972. 802846c: cb0e ldmia r3, {r1, r2, r3}
  99973. 802846e: f000 fae9 bl 8028a44 <writeMQTTString>
  99974. if (options->willFlag)
  99975. 8028472: 687b ldr r3, [r7, #4]
  99976. 8028474: 7edb ldrb r3, [r3, #27]
  99977. 8028476: 2b00 cmp r3, #0
  99978. 8028478: d00d beq.n 8028496 <MQTTSerialize_connect+0x18a>
  99979. {
  99980. writeMQTTString(&ptr, options->will.topicName);
  99981. 802847a: 687b ldr r3, [r7, #4]
  99982. 802847c: f107 001c add.w r0, r7, #28
  99983. 8028480: 3324 adds r3, #36 @ 0x24
  99984. 8028482: cb0e ldmia r3, {r1, r2, r3}
  99985. 8028484: f000 fade bl 8028a44 <writeMQTTString>
  99986. writeMQTTString(&ptr, options->will.message);
  99987. 8028488: 687b ldr r3, [r7, #4]
  99988. 802848a: f107 001c add.w r0, r7, #28
  99989. 802848e: 3330 adds r3, #48 @ 0x30
  99990. 8028490: cb0e ldmia r3, {r1, r2, r3}
  99991. 8028492: f000 fad7 bl 8028a44 <writeMQTTString>
  99992. }
  99993. if (flags.bits.username)
  99994. 8028496: 7d3b ldrb r3, [r7, #20]
  99995. 8028498: f023 037f bic.w r3, r3, #127 @ 0x7f
  99996. 802849c: b2db uxtb r3, r3
  99997. 802849e: 2b00 cmp r3, #0
  99998. 80284a0: d006 beq.n 80284b0 <MQTTSerialize_connect+0x1a4>
  99999. writeMQTTString(&ptr, options->username);
  100000. 80284a2: 687b ldr r3, [r7, #4]
  100001. 80284a4: f107 001c add.w r0, r7, #28
  100002. 80284a8: 3340 adds r3, #64 @ 0x40
  100003. 80284aa: cb0e ldmia r3, {r1, r2, r3}
  100004. 80284ac: f000 faca bl 8028a44 <writeMQTTString>
  100005. if (flags.bits.password)
  100006. 80284b0: 7d3b ldrb r3, [r7, #20]
  100007. 80284b2: f003 0340 and.w r3, r3, #64 @ 0x40
  100008. 80284b6: b2db uxtb r3, r3
  100009. 80284b8: 2b00 cmp r3, #0
  100010. 80284ba: d006 beq.n 80284ca <MQTTSerialize_connect+0x1be>
  100011. writeMQTTString(&ptr, options->password);
  100012. 80284bc: 687b ldr r3, [r7, #4]
  100013. 80284be: f107 001c add.w r0, r7, #28
  100014. 80284c2: 334c adds r3, #76 @ 0x4c
  100015. 80284c4: cb0e ldmia r3, {r1, r2, r3}
  100016. 80284c6: f000 fabd bl 8028a44 <writeMQTTString>
  100017. rc = ptr - buf;
  100018. 80284ca: 69fa ldr r2, [r7, #28]
  100019. 80284cc: 68fb ldr r3, [r7, #12]
  100020. 80284ce: 1ad3 subs r3, r2, r3
  100021. 80284d0: 627b str r3, [r7, #36] @ 0x24
  100022. exit: FUNC_EXIT_RC(rc);
  100023. return rc;
  100024. 80284d2: 6a7b ldr r3, [r7, #36] @ 0x24
  100025. }
  100026. 80284d4: 4618 mov r0, r3
  100027. 80284d6: 3728 adds r7, #40 @ 0x28
  100028. 80284d8: 46bd mov sp, r7
  100029. 80284da: bd80 pop {r7, pc}
  100030. 80284dc: 08031864 .word 0x08031864
  100031. 80284e0: 0803186c .word 0x0803186c
  100032. 080284e4 <MQTTDeserialize_connack>:
  100033. * @param buf the raw buffer data, of the correct length determined by the remaining length field
  100034. * @param len the length in bytes of the data in the supplied buffer
  100035. * @return error code. 1 is success, 0 is failure
  100036. */
  100037. int MQTTDeserialize_connack(unsigned char* sessionPresent, unsigned char* connack_rc, unsigned char* buf, int buflen)
  100038. {
  100039. 80284e4: b580 push {r7, lr}
  100040. 80284e6: b08a sub sp, #40 @ 0x28
  100041. 80284e8: af00 add r7, sp, #0
  100042. 80284ea: 60f8 str r0, [r7, #12]
  100043. 80284ec: 60b9 str r1, [r7, #8]
  100044. 80284ee: 607a str r2, [r7, #4]
  100045. 80284f0: 603b str r3, [r7, #0]
  100046. MQTTHeader header = {0};
  100047. 80284f2: 2300 movs r3, #0
  100048. 80284f4: 61fb str r3, [r7, #28]
  100049. unsigned char* curdata = buf;
  100050. 80284f6: 687b ldr r3, [r7, #4]
  100051. 80284f8: 61bb str r3, [r7, #24]
  100052. unsigned char* enddata = NULL;
  100053. 80284fa: 2300 movs r3, #0
  100054. 80284fc: 623b str r3, [r7, #32]
  100055. int rc = 0;
  100056. 80284fe: 2300 movs r3, #0
  100057. 8028500: 627b str r3, [r7, #36] @ 0x24
  100058. int mylen;
  100059. MQTTConnackFlags flags = {0};
  100060. 8028502: 2300 movs r3, #0
  100061. 8028504: 613b str r3, [r7, #16]
  100062. FUNC_ENTRY;
  100063. header.byte = readChar(&curdata);
  100064. 8028506: f107 0318 add.w r3, r7, #24
  100065. 802850a: 4618 mov r0, r3
  100066. 802850c: f000 fa29 bl 8028962 <readChar>
  100067. 8028510: 4603 mov r3, r0
  100068. 8028512: 773b strb r3, [r7, #28]
  100069. if (header.bits.type != CONNACK)
  100070. 8028514: 7f3b ldrb r3, [r7, #28]
  100071. 8028516: f023 030f bic.w r3, r3, #15
  100072. 802851a: b2db uxtb r3, r3
  100073. 802851c: 2b20 cmp r3, #32
  100074. 802851e: d12e bne.n 802857e <MQTTDeserialize_connack+0x9a>
  100075. goto exit;
  100076. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  100077. 8028520: 69bb ldr r3, [r7, #24]
  100078. 8028522: f107 0214 add.w r2, r7, #20
  100079. 8028526: 4611 mov r1, r2
  100080. 8028528: 4618 mov r0, r3
  100081. 802852a: f000 f9e9 bl 8028900 <MQTTPacket_decodeBuf>
  100082. 802852e: 6278 str r0, [r7, #36] @ 0x24
  100083. 8028530: 6a7a ldr r2, [r7, #36] @ 0x24
  100084. 8028532: 69bb ldr r3, [r7, #24]
  100085. 8028534: 4413 add r3, r2
  100086. 8028536: 61bb str r3, [r7, #24]
  100087. enddata = curdata + mylen;
  100088. 8028538: 69bb ldr r3, [r7, #24]
  100089. 802853a: 697a ldr r2, [r7, #20]
  100090. 802853c: 4413 add r3, r2
  100091. 802853e: 623b str r3, [r7, #32]
  100092. if (enddata - curdata < 2)
  100093. 8028540: 69bb ldr r3, [r7, #24]
  100094. 8028542: 6a3a ldr r2, [r7, #32]
  100095. 8028544: 1ad3 subs r3, r2, r3
  100096. 8028546: 2b01 cmp r3, #1
  100097. 8028548: dd1b ble.n 8028582 <MQTTDeserialize_connack+0x9e>
  100098. goto exit;
  100099. flags.all = readChar(&curdata);
  100100. 802854a: f107 0318 add.w r3, r7, #24
  100101. 802854e: 4618 mov r0, r3
  100102. 8028550: f000 fa07 bl 8028962 <readChar>
  100103. 8028554: 4603 mov r3, r0
  100104. 8028556: 743b strb r3, [r7, #16]
  100105. *sessionPresent = flags.bits.sessionpresent;
  100106. 8028558: 7c3b ldrb r3, [r7, #16]
  100107. 802855a: f3c3 0300 ubfx r3, r3, #0, #1
  100108. 802855e: b2db uxtb r3, r3
  100109. 8028560: 461a mov r2, r3
  100110. 8028562: 68fb ldr r3, [r7, #12]
  100111. 8028564: 701a strb r2, [r3, #0]
  100112. *connack_rc = readChar(&curdata);
  100113. 8028566: f107 0318 add.w r3, r7, #24
  100114. 802856a: 4618 mov r0, r3
  100115. 802856c: f000 f9f9 bl 8028962 <readChar>
  100116. 8028570: 4603 mov r3, r0
  100117. 8028572: 461a mov r2, r3
  100118. 8028574: 68bb ldr r3, [r7, #8]
  100119. 8028576: 701a strb r2, [r3, #0]
  100120. rc = 1;
  100121. 8028578: 2301 movs r3, #1
  100122. 802857a: 627b str r3, [r7, #36] @ 0x24
  100123. 802857c: e002 b.n 8028584 <MQTTDeserialize_connack+0xa0>
  100124. goto exit;
  100125. 802857e: bf00 nop
  100126. 8028580: e000 b.n 8028584 <MQTTDeserialize_connack+0xa0>
  100127. goto exit;
  100128. 8028582: bf00 nop
  100129. exit:
  100130. FUNC_EXIT_RC(rc);
  100131. return rc;
  100132. 8028584: 6a7b ldr r3, [r7, #36] @ 0x24
  100133. }
  100134. 8028586: 4618 mov r0, r3
  100135. 8028588: 3728 adds r7, #40 @ 0x28
  100136. 802858a: 46bd mov sp, r7
  100137. 802858c: bd80 pop {r7, pc}
  100138. 0802858e <MQTTSerialize_zero>:
  100139. * @param buflen the length in bytes of the supplied buffer, to avoid overruns
  100140. * @param packettype the message type
  100141. * @return serialized length, or error if 0
  100142. */
  100143. int MQTTSerialize_zero(unsigned char* buf, int buflen, unsigned char packettype)
  100144. {
  100145. 802858e: b580 push {r7, lr}
  100146. 8028590: b088 sub sp, #32
  100147. 8028592: af00 add r7, sp, #0
  100148. 8028594: 60f8 str r0, [r7, #12]
  100149. 8028596: 60b9 str r1, [r7, #8]
  100150. 8028598: 4613 mov r3, r2
  100151. 802859a: 71fb strb r3, [r7, #7]
  100152. MQTTHeader header = {0};
  100153. 802859c: 2300 movs r3, #0
  100154. 802859e: 61bb str r3, [r7, #24]
  100155. int rc = -1;
  100156. 80285a0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  100157. 80285a4: 61fb str r3, [r7, #28]
  100158. unsigned char *ptr = buf;
  100159. 80285a6: 68fb ldr r3, [r7, #12]
  100160. 80285a8: 617b str r3, [r7, #20]
  100161. FUNC_ENTRY;
  100162. if (buflen < 2)
  100163. 80285aa: 68bb ldr r3, [r7, #8]
  100164. 80285ac: 2b01 cmp r3, #1
  100165. 80285ae: dc03 bgt.n 80285b8 <MQTTSerialize_zero+0x2a>
  100166. {
  100167. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  100168. 80285b0: f06f 0301 mvn.w r3, #1
  100169. 80285b4: 61fb str r3, [r7, #28]
  100170. goto exit;
  100171. 80285b6: e01d b.n 80285f4 <MQTTSerialize_zero+0x66>
  100172. }
  100173. header.byte = 0;
  100174. 80285b8: 2300 movs r3, #0
  100175. 80285ba: 763b strb r3, [r7, #24]
  100176. header.bits.type = packettype;
  100177. 80285bc: 79fb ldrb r3, [r7, #7]
  100178. 80285be: f003 030f and.w r3, r3, #15
  100179. 80285c2: b2da uxtb r2, r3
  100180. 80285c4: 7e3b ldrb r3, [r7, #24]
  100181. 80285c6: f362 1307 bfi r3, r2, #4, #4
  100182. 80285ca: 763b strb r3, [r7, #24]
  100183. writeChar(&ptr, header.byte); /* write header */
  100184. 80285cc: 7e3a ldrb r2, [r7, #24]
  100185. 80285ce: f107 0314 add.w r3, r7, #20
  100186. 80285d2: 4611 mov r1, r2
  100187. 80285d4: 4618 mov r0, r3
  100188. 80285d6: f000 f9d8 bl 802898a <writeChar>
  100189. ptr += MQTTPacket_encode(ptr, 0); /* write remaining length */
  100190. 80285da: 697b ldr r3, [r7, #20]
  100191. 80285dc: 2100 movs r1, #0
  100192. 80285de: 4618 mov r0, r3
  100193. 80285e0: f000 f8d9 bl 8028796 <MQTTPacket_encode>
  100194. 80285e4: 4602 mov r2, r0
  100195. 80285e6: 697b ldr r3, [r7, #20]
  100196. 80285e8: 4413 add r3, r2
  100197. 80285ea: 617b str r3, [r7, #20]
  100198. rc = ptr - buf;
  100199. 80285ec: 697a ldr r2, [r7, #20]
  100200. 80285ee: 68fb ldr r3, [r7, #12]
  100201. 80285f0: 1ad3 subs r3, r2, r3
  100202. 80285f2: 61fb str r3, [r7, #28]
  100203. exit:
  100204. FUNC_EXIT_RC(rc);
  100205. return rc;
  100206. 80285f4: 69fb ldr r3, [r7, #28]
  100207. }
  100208. 80285f6: 4618 mov r0, r3
  100209. 80285f8: 3720 adds r7, #32
  100210. 80285fa: 46bd mov sp, r7
  100211. 80285fc: bd80 pop {r7, pc}
  100212. 080285fe <MQTTSerialize_pingreq>:
  100213. * @param buf the buffer into which the packet will be serialized
  100214. * @param buflen the length in bytes of the supplied buffer, to avoid overruns
  100215. * @return serialized length, or error if 0
  100216. */
  100217. int MQTTSerialize_pingreq(unsigned char* buf, int buflen)
  100218. {
  100219. 80285fe: b580 push {r7, lr}
  100220. 8028600: b082 sub sp, #8
  100221. 8028602: af00 add r7, sp, #0
  100222. 8028604: 6078 str r0, [r7, #4]
  100223. 8028606: 6039 str r1, [r7, #0]
  100224. return MQTTSerialize_zero(buf, buflen, PINGREQ);
  100225. 8028608: 220c movs r2, #12
  100226. 802860a: 6839 ldr r1, [r7, #0]
  100227. 802860c: 6878 ldr r0, [r7, #4]
  100228. 802860e: f7ff ffbe bl 802858e <MQTTSerialize_zero>
  100229. 8028612: 4603 mov r3, r0
  100230. }
  100231. 8028614: 4618 mov r0, r3
  100232. 8028616: 3708 adds r7, #8
  100233. 8028618: 46bd mov sp, r7
  100234. 802861a: bd80 pop {r7, pc}
  100235. 0802861c <MQTTDeserialize_publish>:
  100236. * @param buflen the length in bytes of the data in the supplied buffer
  100237. * @return error code. 1 is success
  100238. */
  100239. int MQTTDeserialize_publish(unsigned char* dup, int* qos, unsigned char* retained, unsigned short* packetid, MQTTString* topicName,
  100240. unsigned char** payload, int* payloadlen, unsigned char* buf, int buflen)
  100241. {
  100242. 802861c: b580 push {r7, lr}
  100243. 802861e: b08a sub sp, #40 @ 0x28
  100244. 8028620: af00 add r7, sp, #0
  100245. 8028622: 60f8 str r0, [r7, #12]
  100246. 8028624: 60b9 str r1, [r7, #8]
  100247. 8028626: 607a str r2, [r7, #4]
  100248. 8028628: 603b str r3, [r7, #0]
  100249. MQTTHeader header = {0};
  100250. 802862a: 2300 movs r3, #0
  100251. 802862c: 61fb str r3, [r7, #28]
  100252. unsigned char* curdata = buf;
  100253. 802862e: 6bfb ldr r3, [r7, #60] @ 0x3c
  100254. 8028630: 61bb str r3, [r7, #24]
  100255. unsigned char* enddata = NULL;
  100256. 8028632: 2300 movs r3, #0
  100257. 8028634: 623b str r3, [r7, #32]
  100258. int rc = 0;
  100259. 8028636: 2300 movs r3, #0
  100260. 8028638: 627b str r3, [r7, #36] @ 0x24
  100261. int mylen = 0;
  100262. 802863a: 2300 movs r3, #0
  100263. 802863c: 617b str r3, [r7, #20]
  100264. FUNC_ENTRY;
  100265. header.byte = readChar(&curdata);
  100266. 802863e: f107 0318 add.w r3, r7, #24
  100267. 8028642: 4618 mov r0, r3
  100268. 8028644: f000 f98d bl 8028962 <readChar>
  100269. 8028648: 4603 mov r3, r0
  100270. 802864a: 773b strb r3, [r7, #28]
  100271. if (header.bits.type != PUBLISH)
  100272. 802864c: 7f3b ldrb r3, [r7, #28]
  100273. 802864e: f023 030f bic.w r3, r3, #15
  100274. 8028652: b2db uxtb r3, r3
  100275. 8028654: 2b30 cmp r3, #48 @ 0x30
  100276. 8028656: d14b bne.n 80286f0 <MQTTDeserialize_publish+0xd4>
  100277. goto exit;
  100278. *dup = header.bits.dup;
  100279. 8028658: 7f3b ldrb r3, [r7, #28]
  100280. 802865a: f3c3 03c0 ubfx r3, r3, #3, #1
  100281. 802865e: b2db uxtb r3, r3
  100282. 8028660: 461a mov r2, r3
  100283. 8028662: 68fb ldr r3, [r7, #12]
  100284. 8028664: 701a strb r2, [r3, #0]
  100285. *qos = header.bits.qos;
  100286. 8028666: 7f3b ldrb r3, [r7, #28]
  100287. 8028668: f3c3 0341 ubfx r3, r3, #1, #2
  100288. 802866c: b2db uxtb r3, r3
  100289. 802866e: 461a mov r2, r3
  100290. 8028670: 68bb ldr r3, [r7, #8]
  100291. 8028672: 601a str r2, [r3, #0]
  100292. *retained = header.bits.retain;
  100293. 8028674: 7f3b ldrb r3, [r7, #28]
  100294. 8028676: f3c3 0300 ubfx r3, r3, #0, #1
  100295. 802867a: b2db uxtb r3, r3
  100296. 802867c: 461a mov r2, r3
  100297. 802867e: 687b ldr r3, [r7, #4]
  100298. 8028680: 701a strb r2, [r3, #0]
  100299. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  100300. 8028682: 69bb ldr r3, [r7, #24]
  100301. 8028684: f107 0214 add.w r2, r7, #20
  100302. 8028688: 4611 mov r1, r2
  100303. 802868a: 4618 mov r0, r3
  100304. 802868c: f000 f938 bl 8028900 <MQTTPacket_decodeBuf>
  100305. 8028690: 6278 str r0, [r7, #36] @ 0x24
  100306. 8028692: 6a7a ldr r2, [r7, #36] @ 0x24
  100307. 8028694: 69bb ldr r3, [r7, #24]
  100308. 8028696: 4413 add r3, r2
  100309. 8028698: 61bb str r3, [r7, #24]
  100310. enddata = curdata + mylen;
  100311. 802869a: 69bb ldr r3, [r7, #24]
  100312. 802869c: 697a ldr r2, [r7, #20]
  100313. 802869e: 4413 add r3, r2
  100314. 80286a0: 623b str r3, [r7, #32]
  100315. if (!readMQTTLenString(topicName, &curdata, enddata) ||
  100316. 80286a2: f107 0318 add.w r3, r7, #24
  100317. 80286a6: 6a3a ldr r2, [r7, #32]
  100318. 80286a8: 4619 mov r1, r3
  100319. 80286aa: 6b38 ldr r0, [r7, #48] @ 0x30
  100320. 80286ac: f000 f9f8 bl 8028aa0 <readMQTTLenString>
  100321. 80286b0: 4603 mov r3, r0
  100322. 80286b2: 2b00 cmp r3, #0
  100323. 80286b4: d01e beq.n 80286f4 <MQTTDeserialize_publish+0xd8>
  100324. enddata - curdata < 0) /* do we have enough data to read the protocol version byte? */
  100325. 80286b6: 69bb ldr r3, [r7, #24]
  100326. 80286b8: 6a3a ldr r2, [r7, #32]
  100327. 80286ba: 1ad3 subs r3, r2, r3
  100328. if (!readMQTTLenString(topicName, &curdata, enddata) ||
  100329. 80286bc: 2b00 cmp r3, #0
  100330. 80286be: db19 blt.n 80286f4 <MQTTDeserialize_publish+0xd8>
  100331. goto exit;
  100332. if (*qos > 0)
  100333. 80286c0: 68bb ldr r3, [r7, #8]
  100334. 80286c2: 681b ldr r3, [r3, #0]
  100335. 80286c4: 2b00 cmp r3, #0
  100336. 80286c6: dd08 ble.n 80286da <MQTTDeserialize_publish+0xbe>
  100337. *packetid = readInt(&curdata);
  100338. 80286c8: f107 0318 add.w r3, r7, #24
  100339. 80286cc: 4618 mov r0, r3
  100340. 80286ce: f000 f92d bl 802892c <readInt>
  100341. 80286d2: 4603 mov r3, r0
  100342. 80286d4: b29a uxth r2, r3
  100343. 80286d6: 683b ldr r3, [r7, #0]
  100344. 80286d8: 801a strh r2, [r3, #0]
  100345. *payloadlen = enddata - curdata;
  100346. 80286da: 69bb ldr r3, [r7, #24]
  100347. 80286dc: 6a3a ldr r2, [r7, #32]
  100348. 80286de: 1ad2 subs r2, r2, r3
  100349. 80286e0: 6bbb ldr r3, [r7, #56] @ 0x38
  100350. 80286e2: 601a str r2, [r3, #0]
  100351. *payload = curdata;
  100352. 80286e4: 69ba ldr r2, [r7, #24]
  100353. 80286e6: 6b7b ldr r3, [r7, #52] @ 0x34
  100354. 80286e8: 601a str r2, [r3, #0]
  100355. rc = 1;
  100356. 80286ea: 2301 movs r3, #1
  100357. 80286ec: 627b str r3, [r7, #36] @ 0x24
  100358. 80286ee: e002 b.n 80286f6 <MQTTDeserialize_publish+0xda>
  100359. goto exit;
  100360. 80286f0: bf00 nop
  100361. 80286f2: e000 b.n 80286f6 <MQTTDeserialize_publish+0xda>
  100362. goto exit;
  100363. 80286f4: bf00 nop
  100364. exit:
  100365. FUNC_EXIT_RC(rc);
  100366. return rc;
  100367. 80286f6: 6a7b ldr r3, [r7, #36] @ 0x24
  100368. }
  100369. 80286f8: 4618 mov r0, r3
  100370. 80286fa: 3728 adds r7, #40 @ 0x28
  100371. 80286fc: 46bd mov sp, r7
  100372. 80286fe: bd80 pop {r7, pc}
  100373. 08028700 <MQTTDeserialize_ack>:
  100374. * @param buf the raw buffer data, of the correct length determined by the remaining length field
  100375. * @param buflen the length in bytes of the data in the supplied buffer
  100376. * @return error code. 1 is success, 0 is failure
  100377. */
  100378. int MQTTDeserialize_ack(unsigned char* packettype, unsigned char* dup, unsigned short* packetid, unsigned char* buf, int buflen)
  100379. {
  100380. 8028700: b580 push {r7, lr}
  100381. 8028702: b08a sub sp, #40 @ 0x28
  100382. 8028704: af00 add r7, sp, #0
  100383. 8028706: 60f8 str r0, [r7, #12]
  100384. 8028708: 60b9 str r1, [r7, #8]
  100385. 802870a: 607a str r2, [r7, #4]
  100386. 802870c: 603b str r3, [r7, #0]
  100387. MQTTHeader header = {0};
  100388. 802870e: 2300 movs r3, #0
  100389. 8028710: 61fb str r3, [r7, #28]
  100390. unsigned char* curdata = buf;
  100391. 8028712: 683b ldr r3, [r7, #0]
  100392. 8028714: 61bb str r3, [r7, #24]
  100393. unsigned char* enddata = NULL;
  100394. 8028716: 2300 movs r3, #0
  100395. 8028718: 623b str r3, [r7, #32]
  100396. int rc = 0;
  100397. 802871a: 2300 movs r3, #0
  100398. 802871c: 627b str r3, [r7, #36] @ 0x24
  100399. int mylen;
  100400. FUNC_ENTRY;
  100401. header.byte = readChar(&curdata);
  100402. 802871e: f107 0318 add.w r3, r7, #24
  100403. 8028722: 4618 mov r0, r3
  100404. 8028724: f000 f91d bl 8028962 <readChar>
  100405. 8028728: 4603 mov r3, r0
  100406. 802872a: 773b strb r3, [r7, #28]
  100407. *dup = header.bits.dup;
  100408. 802872c: 7f3b ldrb r3, [r7, #28]
  100409. 802872e: f3c3 03c0 ubfx r3, r3, #3, #1
  100410. 8028732: b2db uxtb r3, r3
  100411. 8028734: 461a mov r2, r3
  100412. 8028736: 68bb ldr r3, [r7, #8]
  100413. 8028738: 701a strb r2, [r3, #0]
  100414. *packettype = header.bits.type;
  100415. 802873a: 7f3b ldrb r3, [r7, #28]
  100416. 802873c: f3c3 1303 ubfx r3, r3, #4, #4
  100417. 8028740: b2db uxtb r3, r3
  100418. 8028742: 461a mov r2, r3
  100419. 8028744: 68fb ldr r3, [r7, #12]
  100420. 8028746: 701a strb r2, [r3, #0]
  100421. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  100422. 8028748: 69bb ldr r3, [r7, #24]
  100423. 802874a: f107 0214 add.w r2, r7, #20
  100424. 802874e: 4611 mov r1, r2
  100425. 8028750: 4618 mov r0, r3
  100426. 8028752: f000 f8d5 bl 8028900 <MQTTPacket_decodeBuf>
  100427. 8028756: 6278 str r0, [r7, #36] @ 0x24
  100428. 8028758: 6a7a ldr r2, [r7, #36] @ 0x24
  100429. 802875a: 69bb ldr r3, [r7, #24]
  100430. 802875c: 4413 add r3, r2
  100431. 802875e: 61bb str r3, [r7, #24]
  100432. enddata = curdata + mylen;
  100433. 8028760: 69bb ldr r3, [r7, #24]
  100434. 8028762: 697a ldr r2, [r7, #20]
  100435. 8028764: 4413 add r3, r2
  100436. 8028766: 623b str r3, [r7, #32]
  100437. if (enddata - curdata < 2)
  100438. 8028768: 69bb ldr r3, [r7, #24]
  100439. 802876a: 6a3a ldr r2, [r7, #32]
  100440. 802876c: 1ad3 subs r3, r2, r3
  100441. 802876e: 2b01 cmp r3, #1
  100442. 8028770: dd0b ble.n 802878a <MQTTDeserialize_ack+0x8a>
  100443. goto exit;
  100444. *packetid = readInt(&curdata);
  100445. 8028772: f107 0318 add.w r3, r7, #24
  100446. 8028776: 4618 mov r0, r3
  100447. 8028778: f000 f8d8 bl 802892c <readInt>
  100448. 802877c: 4603 mov r3, r0
  100449. 802877e: b29a uxth r2, r3
  100450. 8028780: 687b ldr r3, [r7, #4]
  100451. 8028782: 801a strh r2, [r3, #0]
  100452. rc = 1;
  100453. 8028784: 2301 movs r3, #1
  100454. 8028786: 627b str r3, [r7, #36] @ 0x24
  100455. 8028788: e000 b.n 802878c <MQTTDeserialize_ack+0x8c>
  100456. goto exit;
  100457. 802878a: bf00 nop
  100458. exit:
  100459. FUNC_EXIT_RC(rc);
  100460. return rc;
  100461. 802878c: 6a7b ldr r3, [r7, #36] @ 0x24
  100462. }
  100463. 802878e: 4618 mov r0, r3
  100464. 8028790: 3728 adds r7, #40 @ 0x28
  100465. 8028792: 46bd mov sp, r7
  100466. 8028794: bd80 pop {r7, pc}
  100467. 08028796 <MQTTPacket_encode>:
  100468. * @param buf the buffer into which the encoded data is written
  100469. * @param length the length to be encoded
  100470. * @return the number of bytes written to buffer
  100471. */
  100472. int MQTTPacket_encode(unsigned char* buf, int length)
  100473. {
  100474. 8028796: b480 push {r7}
  100475. 8028798: b085 sub sp, #20
  100476. 802879a: af00 add r7, sp, #0
  100477. 802879c: 6078 str r0, [r7, #4]
  100478. 802879e: 6039 str r1, [r7, #0]
  100479. int rc = 0;
  100480. 80287a0: 2300 movs r3, #0
  100481. 80287a2: 60fb str r3, [r7, #12]
  100482. FUNC_ENTRY;
  100483. do
  100484. {
  100485. char d = length % 128;
  100486. 80287a4: 683b ldr r3, [r7, #0]
  100487. 80287a6: 425a negs r2, r3
  100488. 80287a8: f003 037f and.w r3, r3, #127 @ 0x7f
  100489. 80287ac: f002 027f and.w r2, r2, #127 @ 0x7f
  100490. 80287b0: bf58 it pl
  100491. 80287b2: 4253 negpl r3, r2
  100492. 80287b4: 72fb strb r3, [r7, #11]
  100493. length /= 128;
  100494. 80287b6: 683b ldr r3, [r7, #0]
  100495. 80287b8: 2b00 cmp r3, #0
  100496. 80287ba: da00 bge.n 80287be <MQTTPacket_encode+0x28>
  100497. 80287bc: 337f adds r3, #127 @ 0x7f
  100498. 80287be: 11db asrs r3, r3, #7
  100499. 80287c0: 603b str r3, [r7, #0]
  100500. /* if there are more digits to encode, set the top bit of this digit */
  100501. if (length > 0)
  100502. 80287c2: 683b ldr r3, [r7, #0]
  100503. 80287c4: 2b00 cmp r3, #0
  100504. 80287c6: dd03 ble.n 80287d0 <MQTTPacket_encode+0x3a>
  100505. d |= 0x80;
  100506. 80287c8: 7afb ldrb r3, [r7, #11]
  100507. 80287ca: f063 037f orn r3, r3, #127 @ 0x7f
  100508. 80287ce: 72fb strb r3, [r7, #11]
  100509. buf[rc++] = d;
  100510. 80287d0: 68fb ldr r3, [r7, #12]
  100511. 80287d2: 1c5a adds r2, r3, #1
  100512. 80287d4: 60fa str r2, [r7, #12]
  100513. 80287d6: 461a mov r2, r3
  100514. 80287d8: 687b ldr r3, [r7, #4]
  100515. 80287da: 4413 add r3, r2
  100516. 80287dc: 7afa ldrb r2, [r7, #11]
  100517. 80287de: 701a strb r2, [r3, #0]
  100518. } while (length > 0);
  100519. 80287e0: 683b ldr r3, [r7, #0]
  100520. 80287e2: 2b00 cmp r3, #0
  100521. 80287e4: dcde bgt.n 80287a4 <MQTTPacket_encode+0xe>
  100522. FUNC_EXIT_RC(rc);
  100523. return rc;
  100524. 80287e6: 68fb ldr r3, [r7, #12]
  100525. }
  100526. 80287e8: 4618 mov r0, r3
  100527. 80287ea: 3714 adds r7, #20
  100528. 80287ec: 46bd mov sp, r7
  100529. 80287ee: f85d 7b04 ldr.w r7, [sp], #4
  100530. 80287f2: 4770 bx lr
  100531. 080287f4 <MQTTPacket_decode>:
  100532. * @param getcharfn pointer to function to read the next character from the data source
  100533. * @param value the decoded length returned
  100534. * @return the number of bytes read from the socket
  100535. */
  100536. int MQTTPacket_decode(int (*getcharfn)(unsigned char*, int), int* value)
  100537. {
  100538. 80287f4: b580 push {r7, lr}
  100539. 80287f6: b086 sub sp, #24
  100540. 80287f8: af00 add r7, sp, #0
  100541. 80287fa: 6078 str r0, [r7, #4]
  100542. 80287fc: 6039 str r1, [r7, #0]
  100543. unsigned char c;
  100544. int multiplier = 1;
  100545. 80287fe: 2301 movs r3, #1
  100546. 8028800: 617b str r3, [r7, #20]
  100547. int len = 0;
  100548. 8028802: 2300 movs r3, #0
  100549. 8028804: 613b str r3, [r7, #16]
  100550. #define MAX_NO_OF_REMAINING_LENGTH_BYTES 4
  100551. FUNC_ENTRY;
  100552. *value = 0;
  100553. 8028806: 683b ldr r3, [r7, #0]
  100554. 8028808: 2200 movs r2, #0
  100555. 802880a: 601a str r2, [r3, #0]
  100556. do
  100557. {
  100558. int rc = MQTTPACKET_READ_ERROR;
  100559. 802880c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  100560. 8028810: 60fb str r3, [r7, #12]
  100561. if (++len > MAX_NO_OF_REMAINING_LENGTH_BYTES)
  100562. 8028812: 693b ldr r3, [r7, #16]
  100563. 8028814: 3301 adds r3, #1
  100564. 8028816: 613b str r3, [r7, #16]
  100565. 8028818: 693b ldr r3, [r7, #16]
  100566. 802881a: 2b04 cmp r3, #4
  100567. 802881c: dd03 ble.n 8028826 <MQTTPacket_decode+0x32>
  100568. {
  100569. rc = MQTTPACKET_READ_ERROR; /* bad data */
  100570. 802881e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  100571. 8028822: 60fb str r3, [r7, #12]
  100572. goto exit;
  100573. 8028824: e01d b.n 8028862 <MQTTPacket_decode+0x6e>
  100574. }
  100575. rc = (*getcharfn)(&c, 1);
  100576. 8028826: f107 020b add.w r2, r7, #11
  100577. 802882a: 687b ldr r3, [r7, #4]
  100578. 802882c: 2101 movs r1, #1
  100579. 802882e: 4610 mov r0, r2
  100580. 8028830: 4798 blx r3
  100581. 8028832: 60f8 str r0, [r7, #12]
  100582. if (rc != 1)
  100583. 8028834: 68fb ldr r3, [r7, #12]
  100584. 8028836: 2b01 cmp r3, #1
  100585. 8028838: d112 bne.n 8028860 <MQTTPacket_decode+0x6c>
  100586. goto exit;
  100587. *value += (c & 127) * multiplier;
  100588. 802883a: 683b ldr r3, [r7, #0]
  100589. 802883c: 681a ldr r2, [r3, #0]
  100590. 802883e: 7afb ldrb r3, [r7, #11]
  100591. 8028840: f003 037f and.w r3, r3, #127 @ 0x7f
  100592. 8028844: 6979 ldr r1, [r7, #20]
  100593. 8028846: fb01 f303 mul.w r3, r1, r3
  100594. 802884a: 441a add r2, r3
  100595. 802884c: 683b ldr r3, [r7, #0]
  100596. 802884e: 601a str r2, [r3, #0]
  100597. multiplier *= 128;
  100598. 8028850: 697b ldr r3, [r7, #20]
  100599. 8028852: 01db lsls r3, r3, #7
  100600. 8028854: 617b str r3, [r7, #20]
  100601. } while ((c & 128) != 0);
  100602. 8028856: 7afb ldrb r3, [r7, #11]
  100603. 8028858: b25b sxtb r3, r3
  100604. 802885a: 2b00 cmp r3, #0
  100605. 802885c: dbd6 blt.n 802880c <MQTTPacket_decode+0x18>
  100606. exit:
  100607. 802885e: e000 b.n 8028862 <MQTTPacket_decode+0x6e>
  100608. goto exit;
  100609. 8028860: bf00 nop
  100610. FUNC_EXIT_RC(len);
  100611. return len;
  100612. 8028862: 693b ldr r3, [r7, #16]
  100613. }
  100614. 8028864: 4618 mov r0, r3
  100615. 8028866: 3718 adds r7, #24
  100616. 8028868: 46bd mov sp, r7
  100617. 802886a: bd80 pop {r7, pc}
  100618. 0802886c <MQTTPacket_len>:
  100619. int MQTTPacket_len(int rem_len)
  100620. {
  100621. 802886c: b480 push {r7}
  100622. 802886e: b083 sub sp, #12
  100623. 8028870: af00 add r7, sp, #0
  100624. 8028872: 6078 str r0, [r7, #4]
  100625. rem_len += 1; /* header byte */
  100626. 8028874: 687b ldr r3, [r7, #4]
  100627. 8028876: 3301 adds r3, #1
  100628. 8028878: 607b str r3, [r7, #4]
  100629. /* now remaining_length field */
  100630. if (rem_len < 128)
  100631. 802887a: 687b ldr r3, [r7, #4]
  100632. 802887c: 2b7f cmp r3, #127 @ 0x7f
  100633. 802887e: dc03 bgt.n 8028888 <MQTTPacket_len+0x1c>
  100634. rem_len += 1;
  100635. 8028880: 687b ldr r3, [r7, #4]
  100636. 8028882: 3301 adds r3, #1
  100637. 8028884: 607b str r3, [r7, #4]
  100638. 8028886: e012 b.n 80288ae <MQTTPacket_len+0x42>
  100639. else if (rem_len < 16384)
  100640. 8028888: 687b ldr r3, [r7, #4]
  100641. 802888a: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  100642. 802888e: da03 bge.n 8028898 <MQTTPacket_len+0x2c>
  100643. rem_len += 2;
  100644. 8028890: 687b ldr r3, [r7, #4]
  100645. 8028892: 3302 adds r3, #2
  100646. 8028894: 607b str r3, [r7, #4]
  100647. 8028896: e00a b.n 80288ae <MQTTPacket_len+0x42>
  100648. else if (rem_len < 2097151)
  100649. 8028898: 687b ldr r3, [r7, #4]
  100650. 802889a: 4a08 ldr r2, [pc, #32] @ (80288bc <MQTTPacket_len+0x50>)
  100651. 802889c: 4293 cmp r3, r2
  100652. 802889e: dc03 bgt.n 80288a8 <MQTTPacket_len+0x3c>
  100653. rem_len += 3;
  100654. 80288a0: 687b ldr r3, [r7, #4]
  100655. 80288a2: 3303 adds r3, #3
  100656. 80288a4: 607b str r3, [r7, #4]
  100657. 80288a6: e002 b.n 80288ae <MQTTPacket_len+0x42>
  100658. else
  100659. rem_len += 4;
  100660. 80288a8: 687b ldr r3, [r7, #4]
  100661. 80288aa: 3304 adds r3, #4
  100662. 80288ac: 607b str r3, [r7, #4]
  100663. return rem_len;
  100664. 80288ae: 687b ldr r3, [r7, #4]
  100665. }
  100666. 80288b0: 4618 mov r0, r3
  100667. 80288b2: 370c adds r7, #12
  100668. 80288b4: 46bd mov sp, r7
  100669. 80288b6: f85d 7b04 ldr.w r7, [sp], #4
  100670. 80288ba: 4770 bx lr
  100671. 80288bc: 001ffffe .word 0x001ffffe
  100672. 080288c0 <bufchar>:
  100673. static unsigned char* bufptr;
  100674. int bufchar(unsigned char* c, int count)
  100675. {
  100676. 80288c0: b480 push {r7}
  100677. 80288c2: b085 sub sp, #20
  100678. 80288c4: af00 add r7, sp, #0
  100679. 80288c6: 6078 str r0, [r7, #4]
  100680. 80288c8: 6039 str r1, [r7, #0]
  100681. int i;
  100682. for (i = 0; i < count; ++i)
  100683. 80288ca: 2300 movs r3, #0
  100684. 80288cc: 60fb str r3, [r7, #12]
  100685. 80288ce: e00a b.n 80288e6 <bufchar+0x26>
  100686. *c = *bufptr++;
  100687. 80288d0: 4b0a ldr r3, [pc, #40] @ (80288fc <bufchar+0x3c>)
  100688. 80288d2: 681b ldr r3, [r3, #0]
  100689. 80288d4: 1c5a adds r2, r3, #1
  100690. 80288d6: 4909 ldr r1, [pc, #36] @ (80288fc <bufchar+0x3c>)
  100691. 80288d8: 600a str r2, [r1, #0]
  100692. 80288da: 781a ldrb r2, [r3, #0]
  100693. 80288dc: 687b ldr r3, [r7, #4]
  100694. 80288de: 701a strb r2, [r3, #0]
  100695. for (i = 0; i < count; ++i)
  100696. 80288e0: 68fb ldr r3, [r7, #12]
  100697. 80288e2: 3301 adds r3, #1
  100698. 80288e4: 60fb str r3, [r7, #12]
  100699. 80288e6: 68fa ldr r2, [r7, #12]
  100700. 80288e8: 683b ldr r3, [r7, #0]
  100701. 80288ea: 429a cmp r2, r3
  100702. 80288ec: dbf0 blt.n 80288d0 <bufchar+0x10>
  100703. return count;
  100704. 80288ee: 683b ldr r3, [r7, #0]
  100705. }
  100706. 80288f0: 4618 mov r0, r3
  100707. 80288f2: 3714 adds r7, #20
  100708. 80288f4: 46bd mov sp, r7
  100709. 80288f6: f85d 7b04 ldr.w r7, [sp], #4
  100710. 80288fa: 4770 bx lr
  100711. 80288fc: 2402b118 .word 0x2402b118
  100712. 08028900 <MQTTPacket_decodeBuf>:
  100713. int MQTTPacket_decodeBuf(unsigned char* buf, int* value)
  100714. {
  100715. 8028900: b580 push {r7, lr}
  100716. 8028902: b082 sub sp, #8
  100717. 8028904: af00 add r7, sp, #0
  100718. 8028906: 6078 str r0, [r7, #4]
  100719. 8028908: 6039 str r1, [r7, #0]
  100720. bufptr = buf;
  100721. 802890a: 4a06 ldr r2, [pc, #24] @ (8028924 <MQTTPacket_decodeBuf+0x24>)
  100722. 802890c: 687b ldr r3, [r7, #4]
  100723. 802890e: 6013 str r3, [r2, #0]
  100724. return MQTTPacket_decode(bufchar, value);
  100725. 8028910: 6839 ldr r1, [r7, #0]
  100726. 8028912: 4805 ldr r0, [pc, #20] @ (8028928 <MQTTPacket_decodeBuf+0x28>)
  100727. 8028914: f7ff ff6e bl 80287f4 <MQTTPacket_decode>
  100728. 8028918: 4603 mov r3, r0
  100729. }
  100730. 802891a: 4618 mov r0, r3
  100731. 802891c: 3708 adds r7, #8
  100732. 802891e: 46bd mov sp, r7
  100733. 8028920: bd80 pop {r7, pc}
  100734. 8028922: bf00 nop
  100735. 8028924: 2402b118 .word 0x2402b118
  100736. 8028928: 080288c1 .word 0x080288c1
  100737. 0802892c <readInt>:
  100738. * Calculates an integer from two bytes read from the input buffer
  100739. * @param pptr pointer to the input buffer - incremented by the number of bytes used & returned
  100740. * @return the integer value calculated
  100741. */
  100742. int readInt(unsigned char** pptr)
  100743. {
  100744. 802892c: b480 push {r7}
  100745. 802892e: b085 sub sp, #20
  100746. 8028930: af00 add r7, sp, #0
  100747. 8028932: 6078 str r0, [r7, #4]
  100748. unsigned char* ptr = *pptr;
  100749. 8028934: 687b ldr r3, [r7, #4]
  100750. 8028936: 681b ldr r3, [r3, #0]
  100751. 8028938: 60fb str r3, [r7, #12]
  100752. int len = 256*(*ptr) + (*(ptr+1));
  100753. 802893a: 68fb ldr r3, [r7, #12]
  100754. 802893c: 781b ldrb r3, [r3, #0]
  100755. 802893e: 021b lsls r3, r3, #8
  100756. 8028940: 68fa ldr r2, [r7, #12]
  100757. 8028942: 3201 adds r2, #1
  100758. 8028944: 7812 ldrb r2, [r2, #0]
  100759. 8028946: 4413 add r3, r2
  100760. 8028948: 60bb str r3, [r7, #8]
  100761. *pptr += 2;
  100762. 802894a: 687b ldr r3, [r7, #4]
  100763. 802894c: 681b ldr r3, [r3, #0]
  100764. 802894e: 1c9a adds r2, r3, #2
  100765. 8028950: 687b ldr r3, [r7, #4]
  100766. 8028952: 601a str r2, [r3, #0]
  100767. return len;
  100768. 8028954: 68bb ldr r3, [r7, #8]
  100769. }
  100770. 8028956: 4618 mov r0, r3
  100771. 8028958: 3714 adds r7, #20
  100772. 802895a: 46bd mov sp, r7
  100773. 802895c: f85d 7b04 ldr.w r7, [sp], #4
  100774. 8028960: 4770 bx lr
  100775. 08028962 <readChar>:
  100776. * Reads one character from the input buffer.
  100777. * @param pptr pointer to the input buffer - incremented by the number of bytes used & returned
  100778. * @return the character read
  100779. */
  100780. char readChar(unsigned char** pptr)
  100781. {
  100782. 8028962: b480 push {r7}
  100783. 8028964: b085 sub sp, #20
  100784. 8028966: af00 add r7, sp, #0
  100785. 8028968: 6078 str r0, [r7, #4]
  100786. char c = **pptr;
  100787. 802896a: 687b ldr r3, [r7, #4]
  100788. 802896c: 681b ldr r3, [r3, #0]
  100789. 802896e: 781b ldrb r3, [r3, #0]
  100790. 8028970: 73fb strb r3, [r7, #15]
  100791. (*pptr)++;
  100792. 8028972: 687b ldr r3, [r7, #4]
  100793. 8028974: 681b ldr r3, [r3, #0]
  100794. 8028976: 1c5a adds r2, r3, #1
  100795. 8028978: 687b ldr r3, [r7, #4]
  100796. 802897a: 601a str r2, [r3, #0]
  100797. return c;
  100798. 802897c: 7bfb ldrb r3, [r7, #15]
  100799. }
  100800. 802897e: 4618 mov r0, r3
  100801. 8028980: 3714 adds r7, #20
  100802. 8028982: 46bd mov sp, r7
  100803. 8028984: f85d 7b04 ldr.w r7, [sp], #4
  100804. 8028988: 4770 bx lr
  100805. 0802898a <writeChar>:
  100806. * Writes one character to an output buffer.
  100807. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  100808. * @param c the character to write
  100809. */
  100810. void writeChar(unsigned char** pptr, char c)
  100811. {
  100812. 802898a: b480 push {r7}
  100813. 802898c: b083 sub sp, #12
  100814. 802898e: af00 add r7, sp, #0
  100815. 8028990: 6078 str r0, [r7, #4]
  100816. 8028992: 460b mov r3, r1
  100817. 8028994: 70fb strb r3, [r7, #3]
  100818. **pptr = c;
  100819. 8028996: 687b ldr r3, [r7, #4]
  100820. 8028998: 681b ldr r3, [r3, #0]
  100821. 802899a: 78fa ldrb r2, [r7, #3]
  100822. 802899c: 701a strb r2, [r3, #0]
  100823. (*pptr)++;
  100824. 802899e: 687b ldr r3, [r7, #4]
  100825. 80289a0: 681b ldr r3, [r3, #0]
  100826. 80289a2: 1c5a adds r2, r3, #1
  100827. 80289a4: 687b ldr r3, [r7, #4]
  100828. 80289a6: 601a str r2, [r3, #0]
  100829. }
  100830. 80289a8: bf00 nop
  100831. 80289aa: 370c adds r7, #12
  100832. 80289ac: 46bd mov sp, r7
  100833. 80289ae: f85d 7b04 ldr.w r7, [sp], #4
  100834. 80289b2: 4770 bx lr
  100835. 080289b4 <writeInt>:
  100836. * Writes an integer as 2 bytes to an output buffer.
  100837. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  100838. * @param anInt the integer to write
  100839. */
  100840. void writeInt(unsigned char** pptr, int anInt)
  100841. {
  100842. 80289b4: b480 push {r7}
  100843. 80289b6: b083 sub sp, #12
  100844. 80289b8: af00 add r7, sp, #0
  100845. 80289ba: 6078 str r0, [r7, #4]
  100846. 80289bc: 6039 str r1, [r7, #0]
  100847. **pptr = (unsigned char)(anInt / 256);
  100848. 80289be: 683b ldr r3, [r7, #0]
  100849. 80289c0: 2b00 cmp r3, #0
  100850. 80289c2: da00 bge.n 80289c6 <writeInt+0x12>
  100851. 80289c4: 33ff adds r3, #255 @ 0xff
  100852. 80289c6: 121b asrs r3, r3, #8
  100853. 80289c8: 461a mov r2, r3
  100854. 80289ca: 687b ldr r3, [r7, #4]
  100855. 80289cc: 681b ldr r3, [r3, #0]
  100856. 80289ce: b2d2 uxtb r2, r2
  100857. 80289d0: 701a strb r2, [r3, #0]
  100858. (*pptr)++;
  100859. 80289d2: 687b ldr r3, [r7, #4]
  100860. 80289d4: 681b ldr r3, [r3, #0]
  100861. 80289d6: 1c5a adds r2, r3, #1
  100862. 80289d8: 687b ldr r3, [r7, #4]
  100863. 80289da: 601a str r2, [r3, #0]
  100864. **pptr = (unsigned char)(anInt % 256);
  100865. 80289dc: 683b ldr r3, [r7, #0]
  100866. 80289de: 425a negs r2, r3
  100867. 80289e0: b2db uxtb r3, r3
  100868. 80289e2: b2d2 uxtb r2, r2
  100869. 80289e4: bf58 it pl
  100870. 80289e6: 4253 negpl r3, r2
  100871. 80289e8: 687a ldr r2, [r7, #4]
  100872. 80289ea: 6812 ldr r2, [r2, #0]
  100873. 80289ec: b2db uxtb r3, r3
  100874. 80289ee: 7013 strb r3, [r2, #0]
  100875. (*pptr)++;
  100876. 80289f0: 687b ldr r3, [r7, #4]
  100877. 80289f2: 681b ldr r3, [r3, #0]
  100878. 80289f4: 1c5a adds r2, r3, #1
  100879. 80289f6: 687b ldr r3, [r7, #4]
  100880. 80289f8: 601a str r2, [r3, #0]
  100881. }
  100882. 80289fa: bf00 nop
  100883. 80289fc: 370c adds r7, #12
  100884. 80289fe: 46bd mov sp, r7
  100885. 8028a00: f85d 7b04 ldr.w r7, [sp], #4
  100886. 8028a04: 4770 bx lr
  100887. 08028a06 <writeCString>:
  100888. * Writes a "UTF" string to an output buffer. Converts C string to length-delimited.
  100889. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  100890. * @param string the C string to write
  100891. */
  100892. void writeCString(unsigned char** pptr, const char* string)
  100893. {
  100894. 8028a06: b580 push {r7, lr}
  100895. 8028a08: b084 sub sp, #16
  100896. 8028a0a: af00 add r7, sp, #0
  100897. 8028a0c: 6078 str r0, [r7, #4]
  100898. 8028a0e: 6039 str r1, [r7, #0]
  100899. int len = strlen(string);
  100900. 8028a10: 6838 ldr r0, [r7, #0]
  100901. 8028a12: f7d7 fcc5 bl 80003a0 <strlen>
  100902. 8028a16: 4603 mov r3, r0
  100903. 8028a18: 60fb str r3, [r7, #12]
  100904. writeInt(pptr, len);
  100905. 8028a1a: 68f9 ldr r1, [r7, #12]
  100906. 8028a1c: 6878 ldr r0, [r7, #4]
  100907. 8028a1e: f7ff ffc9 bl 80289b4 <writeInt>
  100908. memcpy(*pptr, string, len);
  100909. 8028a22: 687b ldr r3, [r7, #4]
  100910. 8028a24: 681b ldr r3, [r3, #0]
  100911. 8028a26: 68fa ldr r2, [r7, #12]
  100912. 8028a28: 6839 ldr r1, [r7, #0]
  100913. 8028a2a: 4618 mov r0, r3
  100914. 8028a2c: f002 f91f bl 802ac6e <memcpy>
  100915. *pptr += len;
  100916. 8028a30: 687b ldr r3, [r7, #4]
  100917. 8028a32: 681a ldr r2, [r3, #0]
  100918. 8028a34: 68fb ldr r3, [r7, #12]
  100919. 8028a36: 441a add r2, r3
  100920. 8028a38: 687b ldr r3, [r7, #4]
  100921. 8028a3a: 601a str r2, [r3, #0]
  100922. }
  100923. 8028a3c: bf00 nop
  100924. 8028a3e: 3710 adds r7, #16
  100925. 8028a40: 46bd mov sp, r7
  100926. 8028a42: bd80 pop {r7, pc}
  100927. 08028a44 <writeMQTTString>:
  100928. return len;
  100929. }
  100930. void writeMQTTString(unsigned char** pptr, MQTTString mqttstring)
  100931. {
  100932. 8028a44: b580 push {r7, lr}
  100933. 8028a46: b084 sub sp, #16
  100934. 8028a48: af00 add r7, sp, #0
  100935. 8028a4a: 60f8 str r0, [r7, #12]
  100936. 8028a4c: 4638 mov r0, r7
  100937. 8028a4e: e880 000e stmia.w r0, {r1, r2, r3}
  100938. if (mqttstring.lenstring.len > 0)
  100939. 8028a52: 687b ldr r3, [r7, #4]
  100940. 8028a54: 2b00 cmp r3, #0
  100941. 8028a56: dd12 ble.n 8028a7e <writeMQTTString+0x3a>
  100942. {
  100943. writeInt(pptr, mqttstring.lenstring.len);
  100944. 8028a58: 687b ldr r3, [r7, #4]
  100945. 8028a5a: 4619 mov r1, r3
  100946. 8028a5c: 68f8 ldr r0, [r7, #12]
  100947. 8028a5e: f7ff ffa9 bl 80289b4 <writeInt>
  100948. memcpy(*pptr, mqttstring.lenstring.data, mqttstring.lenstring.len);
  100949. 8028a62: 68fb ldr r3, [r7, #12]
  100950. 8028a64: 681b ldr r3, [r3, #0]
  100951. 8028a66: 68b9 ldr r1, [r7, #8]
  100952. 8028a68: 687a ldr r2, [r7, #4]
  100953. 8028a6a: 4618 mov r0, r3
  100954. 8028a6c: f002 f8ff bl 802ac6e <memcpy>
  100955. *pptr += mqttstring.lenstring.len;
  100956. 8028a70: 68fb ldr r3, [r7, #12]
  100957. 8028a72: 681b ldr r3, [r3, #0]
  100958. 8028a74: 687a ldr r2, [r7, #4]
  100959. 8028a76: 441a add r2, r3
  100960. 8028a78: 68fb ldr r3, [r7, #12]
  100961. 8028a7a: 601a str r2, [r3, #0]
  100962. }
  100963. else if (mqttstring.cstring)
  100964. writeCString(pptr, mqttstring.cstring);
  100965. else
  100966. writeInt(pptr, 0);
  100967. }
  100968. 8028a7c: e00c b.n 8028a98 <writeMQTTString+0x54>
  100969. else if (mqttstring.cstring)
  100970. 8028a7e: 683b ldr r3, [r7, #0]
  100971. 8028a80: 2b00 cmp r3, #0
  100972. 8028a82: d005 beq.n 8028a90 <writeMQTTString+0x4c>
  100973. writeCString(pptr, mqttstring.cstring);
  100974. 8028a84: 683b ldr r3, [r7, #0]
  100975. 8028a86: 4619 mov r1, r3
  100976. 8028a88: 68f8 ldr r0, [r7, #12]
  100977. 8028a8a: f7ff ffbc bl 8028a06 <writeCString>
  100978. }
  100979. 8028a8e: e003 b.n 8028a98 <writeMQTTString+0x54>
  100980. writeInt(pptr, 0);
  100981. 8028a90: 2100 movs r1, #0
  100982. 8028a92: 68f8 ldr r0, [r7, #12]
  100983. 8028a94: f7ff ff8e bl 80289b4 <writeInt>
  100984. }
  100985. 8028a98: bf00 nop
  100986. 8028a9a: 3710 adds r7, #16
  100987. 8028a9c: 46bd mov sp, r7
  100988. 8028a9e: bd80 pop {r7, pc}
  100989. 08028aa0 <readMQTTLenString>:
  100990. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  100991. * @param enddata pointer to the end of the data: do not read beyond
  100992. * @return 1 if successful, 0 if not
  100993. */
  100994. int readMQTTLenString(MQTTString* mqttstring, unsigned char** pptr, unsigned char* enddata)
  100995. {
  100996. 8028aa0: b580 push {r7, lr}
  100997. 8028aa2: b086 sub sp, #24
  100998. 8028aa4: af00 add r7, sp, #0
  100999. 8028aa6: 60f8 str r0, [r7, #12]
  101000. 8028aa8: 60b9 str r1, [r7, #8]
  101001. 8028aaa: 607a str r2, [r7, #4]
  101002. int rc = 0;
  101003. 8028aac: 2300 movs r3, #0
  101004. 8028aae: 617b str r3, [r7, #20]
  101005. FUNC_ENTRY;
  101006. /* the first two bytes are the length of the string */
  101007. if (enddata - (*pptr) > 1) /* enough length to read the integer? */
  101008. 8028ab0: 68bb ldr r3, [r7, #8]
  101009. 8028ab2: 681b ldr r3, [r3, #0]
  101010. 8028ab4: 687a ldr r2, [r7, #4]
  101011. 8028ab6: 1ad3 subs r3, r2, r3
  101012. 8028ab8: 2b01 cmp r3, #1
  101013. 8028aba: dd1a ble.n 8028af2 <readMQTTLenString+0x52>
  101014. {
  101015. mqttstring->lenstring.len = readInt(pptr); /* increments pptr to point past length */
  101016. 8028abc: 68b8 ldr r0, [r7, #8]
  101017. 8028abe: f7ff ff35 bl 802892c <readInt>
  101018. 8028ac2: 4602 mov r2, r0
  101019. 8028ac4: 68fb ldr r3, [r7, #12]
  101020. 8028ac6: 605a str r2, [r3, #4]
  101021. if (&(*pptr)[mqttstring->lenstring.len] <= enddata)
  101022. 8028ac8: 68bb ldr r3, [r7, #8]
  101023. 8028aca: 681b ldr r3, [r3, #0]
  101024. 8028acc: 68fa ldr r2, [r7, #12]
  101025. 8028ace: 6852 ldr r2, [r2, #4]
  101026. 8028ad0: 4413 add r3, r2
  101027. 8028ad2: 687a ldr r2, [r7, #4]
  101028. 8028ad4: 429a cmp r2, r3
  101029. 8028ad6: d30c bcc.n 8028af2 <readMQTTLenString+0x52>
  101030. {
  101031. mqttstring->lenstring.data = (char*)*pptr;
  101032. 8028ad8: 68bb ldr r3, [r7, #8]
  101033. 8028ada: 681a ldr r2, [r3, #0]
  101034. 8028adc: 68fb ldr r3, [r7, #12]
  101035. 8028ade: 609a str r2, [r3, #8]
  101036. *pptr += mqttstring->lenstring.len;
  101037. 8028ae0: 68bb ldr r3, [r7, #8]
  101038. 8028ae2: 681b ldr r3, [r3, #0]
  101039. 8028ae4: 68fa ldr r2, [r7, #12]
  101040. 8028ae6: 6852 ldr r2, [r2, #4]
  101041. 8028ae8: 441a add r2, r3
  101042. 8028aea: 68bb ldr r3, [r7, #8]
  101043. 8028aec: 601a str r2, [r3, #0]
  101044. rc = 1;
  101045. 8028aee: 2301 movs r3, #1
  101046. 8028af0: 617b str r3, [r7, #20]
  101047. }
  101048. }
  101049. mqttstring->cstring = NULL;
  101050. 8028af2: 68fb ldr r3, [r7, #12]
  101051. 8028af4: 2200 movs r2, #0
  101052. 8028af6: 601a str r2, [r3, #0]
  101053. FUNC_EXIT_RC(rc);
  101054. return rc;
  101055. 8028af8: 697b ldr r3, [r7, #20]
  101056. }
  101057. 8028afa: 4618 mov r0, r3
  101058. 8028afc: 3718 adds r7, #24
  101059. 8028afe: 46bd mov sp, r7
  101060. 8028b00: bd80 pop {r7, pc}
  101061. 08028b02 <MQTTstrlen>:
  101062. * Return the length of the MQTTstring - C string if there is one, otherwise the length delimited string
  101063. * @param mqttstring the string to return the length of
  101064. * @return the length of the string
  101065. */
  101066. int MQTTstrlen(MQTTString mqttstring)
  101067. {
  101068. 8028b02: b580 push {r7, lr}
  101069. 8028b04: b086 sub sp, #24
  101070. 8028b06: af00 add r7, sp, #0
  101071. 8028b08: 1d3b adds r3, r7, #4
  101072. 8028b0a: e883 0007 stmia.w r3, {r0, r1, r2}
  101073. int rc = 0;
  101074. 8028b0e: 2300 movs r3, #0
  101075. 8028b10: 617b str r3, [r7, #20]
  101076. if (mqttstring.cstring)
  101077. 8028b12: 687b ldr r3, [r7, #4]
  101078. 8028b14: 2b00 cmp r3, #0
  101079. 8028b16: d006 beq.n 8028b26 <MQTTstrlen+0x24>
  101080. rc = strlen(mqttstring.cstring);
  101081. 8028b18: 687b ldr r3, [r7, #4]
  101082. 8028b1a: 4618 mov r0, r3
  101083. 8028b1c: f7d7 fc40 bl 80003a0 <strlen>
  101084. 8028b20: 4603 mov r3, r0
  101085. 8028b22: 617b str r3, [r7, #20]
  101086. 8028b24: e001 b.n 8028b2a <MQTTstrlen+0x28>
  101087. else
  101088. rc = mqttstring.lenstring.len;
  101089. 8028b26: 68bb ldr r3, [r7, #8]
  101090. 8028b28: 617b str r3, [r7, #20]
  101091. return rc;
  101092. 8028b2a: 697b ldr r3, [r7, #20]
  101093. }
  101094. 8028b2c: 4618 mov r0, r3
  101095. 8028b2e: 3718 adds r7, #24
  101096. 8028b30: 46bd mov sp, r7
  101097. 8028b32: bd80 pop {r7, pc}
  101098. 08028b34 <MQTTPacket_equals>:
  101099. * @param a the MQTTString to compare
  101100. * @param bptr the C string to compare
  101101. * @return boolean - equal or not
  101102. */
  101103. int MQTTPacket_equals(MQTTString* a, char* bptr)
  101104. {
  101105. 8028b34: b580 push {r7, lr}
  101106. 8028b36: b086 sub sp, #24
  101107. 8028b38: af00 add r7, sp, #0
  101108. 8028b3a: 6078 str r0, [r7, #4]
  101109. 8028b3c: 6039 str r1, [r7, #0]
  101110. int alen = 0,
  101111. 8028b3e: 2300 movs r3, #0
  101112. 8028b40: 617b str r3, [r7, #20]
  101113. blen = 0;
  101114. 8028b42: 2300 movs r3, #0
  101115. 8028b44: 60fb str r3, [r7, #12]
  101116. char *aptr;
  101117. if (a->cstring)
  101118. 8028b46: 687b ldr r3, [r7, #4]
  101119. 8028b48: 681b ldr r3, [r3, #0]
  101120. 8028b4a: 2b00 cmp r3, #0
  101121. 8028b4c: d00a beq.n 8028b64 <MQTTPacket_equals+0x30>
  101122. {
  101123. aptr = a->cstring;
  101124. 8028b4e: 687b ldr r3, [r7, #4]
  101125. 8028b50: 681b ldr r3, [r3, #0]
  101126. 8028b52: 613b str r3, [r7, #16]
  101127. alen = strlen(a->cstring);
  101128. 8028b54: 687b ldr r3, [r7, #4]
  101129. 8028b56: 681b ldr r3, [r3, #0]
  101130. 8028b58: 4618 mov r0, r3
  101131. 8028b5a: f7d7 fc21 bl 80003a0 <strlen>
  101132. 8028b5e: 4603 mov r3, r0
  101133. 8028b60: 617b str r3, [r7, #20]
  101134. 8028b62: e005 b.n 8028b70 <MQTTPacket_equals+0x3c>
  101135. }
  101136. else
  101137. {
  101138. aptr = a->lenstring.data;
  101139. 8028b64: 687b ldr r3, [r7, #4]
  101140. 8028b66: 689b ldr r3, [r3, #8]
  101141. 8028b68: 613b str r3, [r7, #16]
  101142. alen = a->lenstring.len;
  101143. 8028b6a: 687b ldr r3, [r7, #4]
  101144. 8028b6c: 685b ldr r3, [r3, #4]
  101145. 8028b6e: 617b str r3, [r7, #20]
  101146. }
  101147. blen = strlen(bptr);
  101148. 8028b70: 6838 ldr r0, [r7, #0]
  101149. 8028b72: f7d7 fc15 bl 80003a0 <strlen>
  101150. 8028b76: 4603 mov r3, r0
  101151. 8028b78: 60fb str r3, [r7, #12]
  101152. return (alen == blen) && (strncmp(aptr, bptr, alen) == 0);
  101153. 8028b7a: 697a ldr r2, [r7, #20]
  101154. 8028b7c: 68fb ldr r3, [r7, #12]
  101155. 8028b7e: 429a cmp r2, r3
  101156. 8028b80: d10a bne.n 8028b98 <MQTTPacket_equals+0x64>
  101157. 8028b82: 697b ldr r3, [r7, #20]
  101158. 8028b84: 461a mov r2, r3
  101159. 8028b86: 6839 ldr r1, [r7, #0]
  101160. 8028b88: 6938 ldr r0, [r7, #16]
  101161. 8028b8a: f001 ff81 bl 802aa90 <strncmp>
  101162. 8028b8e: 4603 mov r3, r0
  101163. 8028b90: 2b00 cmp r3, #0
  101164. 8028b92: d101 bne.n 8028b98 <MQTTPacket_equals+0x64>
  101165. 8028b94: 2301 movs r3, #1
  101166. 8028b96: e000 b.n 8028b9a <MQTTPacket_equals+0x66>
  101167. 8028b98: 2300 movs r3, #0
  101168. }
  101169. 8028b9a: 4618 mov r0, r3
  101170. 8028b9c: 3718 adds r7, #24
  101171. 8028b9e: 46bd mov sp, r7
  101172. 8028ba0: bd80 pop {r7, pc}
  101173. 08028ba2 <MQTTSerialize_publishLength>:
  101174. * @param topicName the topic name to be used in the publish
  101175. * @param payloadlen the length of the payload to be sent
  101176. * @return the length of buffer needed to contain the serialized version of the packet
  101177. */
  101178. int MQTTSerialize_publishLength(int qos, MQTTString topicName, int payloadlen)
  101179. {
  101180. 8028ba2: b580 push {r7, lr}
  101181. 8028ba4: b086 sub sp, #24
  101182. 8028ba6: af00 add r7, sp, #0
  101183. 8028ba8: 60f8 str r0, [r7, #12]
  101184. 8028baa: 4638 mov r0, r7
  101185. 8028bac: e880 000e stmia.w r0, {r1, r2, r3}
  101186. int len = 0;
  101187. 8028bb0: 2300 movs r3, #0
  101188. 8028bb2: 617b str r3, [r7, #20]
  101189. len += 2 + MQTTstrlen(topicName) + payloadlen;
  101190. 8028bb4: 463b mov r3, r7
  101191. 8028bb6: e893 0007 ldmia.w r3, {r0, r1, r2}
  101192. 8028bba: f7ff ffa2 bl 8028b02 <MQTTstrlen>
  101193. 8028bbe: 4603 mov r3, r0
  101194. 8028bc0: 1c9a adds r2, r3, #2
  101195. 8028bc2: 6a3b ldr r3, [r7, #32]
  101196. 8028bc4: 4413 add r3, r2
  101197. 8028bc6: 697a ldr r2, [r7, #20]
  101198. 8028bc8: 4413 add r3, r2
  101199. 8028bca: 617b str r3, [r7, #20]
  101200. if (qos > 0)
  101201. 8028bcc: 68fb ldr r3, [r7, #12]
  101202. 8028bce: 2b00 cmp r3, #0
  101203. 8028bd0: dd02 ble.n 8028bd8 <MQTTSerialize_publishLength+0x36>
  101204. len += 2; /* packetid */
  101205. 8028bd2: 697b ldr r3, [r7, #20]
  101206. 8028bd4: 3302 adds r3, #2
  101207. 8028bd6: 617b str r3, [r7, #20]
  101208. return len;
  101209. 8028bd8: 697b ldr r3, [r7, #20]
  101210. }
  101211. 8028bda: 4618 mov r0, r3
  101212. 8028bdc: 3718 adds r7, #24
  101213. 8028bde: 46bd mov sp, r7
  101214. 8028be0: bd80 pop {r7, pc}
  101215. 08028be2 <MQTTSerialize_publish>:
  101216. * @param payloadlen integer - the length of the MQTT payload
  101217. * @return the length of the serialized data. <= 0 indicates error
  101218. */
  101219. int MQTTSerialize_publish(unsigned char* buf, int buflen, unsigned char dup, int qos, unsigned char retained, unsigned short packetid,
  101220. MQTTString topicName, unsigned char* payload, int payloadlen)
  101221. {
  101222. 8028be2: b580 push {r7, lr}
  101223. 8028be4: b08a sub sp, #40 @ 0x28
  101224. 8028be6: af02 add r7, sp, #8
  101225. 8028be8: 60f8 str r0, [r7, #12]
  101226. 8028bea: 60b9 str r1, [r7, #8]
  101227. 8028bec: 603b str r3, [r7, #0]
  101228. 8028bee: 4613 mov r3, r2
  101229. 8028bf0: 71fb strb r3, [r7, #7]
  101230. unsigned char *ptr = buf;
  101231. 8028bf2: 68fb ldr r3, [r7, #12]
  101232. 8028bf4: 617b str r3, [r7, #20]
  101233. MQTTHeader header = {0};
  101234. 8028bf6: 2300 movs r3, #0
  101235. 8028bf8: 613b str r3, [r7, #16]
  101236. int rem_len = 0;
  101237. 8028bfa: 2300 movs r3, #0
  101238. 8028bfc: 61bb str r3, [r7, #24]
  101239. int rc = 0;
  101240. 8028bfe: 2300 movs r3, #0
  101241. 8028c00: 61fb str r3, [r7, #28]
  101242. FUNC_ENTRY;
  101243. if (MQTTPacket_len(rem_len = MQTTSerialize_publishLength(qos, topicName, payloadlen)) > buflen)
  101244. 8028c02: 6c3b ldr r3, [r7, #64] @ 0x40
  101245. 8028c04: 9300 str r3, [sp, #0]
  101246. 8028c06: f107 0330 add.w r3, r7, #48 @ 0x30
  101247. 8028c0a: cb0e ldmia r3, {r1, r2, r3}
  101248. 8028c0c: 6838 ldr r0, [r7, #0]
  101249. 8028c0e: f7ff ffc8 bl 8028ba2 <MQTTSerialize_publishLength>
  101250. 8028c12: 61b8 str r0, [r7, #24]
  101251. 8028c14: 69b8 ldr r0, [r7, #24]
  101252. 8028c16: f7ff fe29 bl 802886c <MQTTPacket_len>
  101253. 8028c1a: 4602 mov r2, r0
  101254. 8028c1c: 68bb ldr r3, [r7, #8]
  101255. 8028c1e: 4293 cmp r3, r2
  101256. 8028c20: da03 bge.n 8028c2a <MQTTSerialize_publish+0x48>
  101257. {
  101258. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  101259. 8028c22: f06f 0301 mvn.w r3, #1
  101260. 8028c26: 61fb str r3, [r7, #28]
  101261. goto exit;
  101262. 8028c28: e04c b.n 8028cc4 <MQTTSerialize_publish+0xe2>
  101263. }
  101264. header.bits.type = PUBLISH;
  101265. 8028c2a: 7c3b ldrb r3, [r7, #16]
  101266. 8028c2c: 2203 movs r2, #3
  101267. 8028c2e: f362 1307 bfi r3, r2, #4, #4
  101268. 8028c32: 743b strb r3, [r7, #16]
  101269. header.bits.dup = dup;
  101270. 8028c34: 79fb ldrb r3, [r7, #7]
  101271. 8028c36: f003 0301 and.w r3, r3, #1
  101272. 8028c3a: b2da uxtb r2, r3
  101273. 8028c3c: 7c3b ldrb r3, [r7, #16]
  101274. 8028c3e: f362 03c3 bfi r3, r2, #3, #1
  101275. 8028c42: 743b strb r3, [r7, #16]
  101276. header.bits.qos = qos;
  101277. 8028c44: 683b ldr r3, [r7, #0]
  101278. 8028c46: f003 0303 and.w r3, r3, #3
  101279. 8028c4a: b2da uxtb r2, r3
  101280. 8028c4c: 7c3b ldrb r3, [r7, #16]
  101281. 8028c4e: f362 0342 bfi r3, r2, #1, #2
  101282. 8028c52: 743b strb r3, [r7, #16]
  101283. header.bits.retain = retained;
  101284. 8028c54: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  101285. 8028c58: f003 0301 and.w r3, r3, #1
  101286. 8028c5c: b2da uxtb r2, r3
  101287. 8028c5e: 7c3b ldrb r3, [r7, #16]
  101288. 8028c60: f362 0300 bfi r3, r2, #0, #1
  101289. 8028c64: 743b strb r3, [r7, #16]
  101290. writeChar(&ptr, header.byte); /* write header */
  101291. 8028c66: 7c3a ldrb r2, [r7, #16]
  101292. 8028c68: f107 0314 add.w r3, r7, #20
  101293. 8028c6c: 4611 mov r1, r2
  101294. 8028c6e: 4618 mov r0, r3
  101295. 8028c70: f7ff fe8b bl 802898a <writeChar>
  101296. ptr += MQTTPacket_encode(ptr, rem_len); /* write remaining length */;
  101297. 8028c74: 697b ldr r3, [r7, #20]
  101298. 8028c76: 69b9 ldr r1, [r7, #24]
  101299. 8028c78: 4618 mov r0, r3
  101300. 8028c7a: f7ff fd8c bl 8028796 <MQTTPacket_encode>
  101301. 8028c7e: 4602 mov r2, r0
  101302. 8028c80: 697b ldr r3, [r7, #20]
  101303. 8028c82: 4413 add r3, r2
  101304. 8028c84: 617b str r3, [r7, #20]
  101305. writeMQTTString(&ptr, topicName);
  101306. 8028c86: f107 0014 add.w r0, r7, #20
  101307. 8028c8a: f107 0330 add.w r3, r7, #48 @ 0x30
  101308. 8028c8e: cb0e ldmia r3, {r1, r2, r3}
  101309. 8028c90: f7ff fed8 bl 8028a44 <writeMQTTString>
  101310. if (qos > 0)
  101311. 8028c94: 683b ldr r3, [r7, #0]
  101312. 8028c96: 2b00 cmp r3, #0
  101313. 8028c98: dd06 ble.n 8028ca8 <MQTTSerialize_publish+0xc6>
  101314. writeInt(&ptr, packetid);
  101315. 8028c9a: 8dba ldrh r2, [r7, #44] @ 0x2c
  101316. 8028c9c: f107 0314 add.w r3, r7, #20
  101317. 8028ca0: 4611 mov r1, r2
  101318. 8028ca2: 4618 mov r0, r3
  101319. 8028ca4: f7ff fe86 bl 80289b4 <writeInt>
  101320. memcpy(ptr, payload, payloadlen);
  101321. 8028ca8: 697b ldr r3, [r7, #20]
  101322. 8028caa: 6c3a ldr r2, [r7, #64] @ 0x40
  101323. 8028cac: 6bf9 ldr r1, [r7, #60] @ 0x3c
  101324. 8028cae: 4618 mov r0, r3
  101325. 8028cb0: f001 ffdd bl 802ac6e <memcpy>
  101326. ptr += payloadlen;
  101327. 8028cb4: 697a ldr r2, [r7, #20]
  101328. 8028cb6: 6c3b ldr r3, [r7, #64] @ 0x40
  101329. 8028cb8: 4413 add r3, r2
  101330. 8028cba: 617b str r3, [r7, #20]
  101331. rc = ptr - buf;
  101332. 8028cbc: 697a ldr r2, [r7, #20]
  101333. 8028cbe: 68fb ldr r3, [r7, #12]
  101334. 8028cc0: 1ad3 subs r3, r2, r3
  101335. 8028cc2: 61fb str r3, [r7, #28]
  101336. exit:
  101337. FUNC_EXIT_RC(rc);
  101338. return rc;
  101339. 8028cc4: 69fb ldr r3, [r7, #28]
  101340. }
  101341. 8028cc6: 4618 mov r0, r3
  101342. 8028cc8: 3720 adds r7, #32
  101343. 8028cca: 46bd mov sp, r7
  101344. 8028ccc: bd80 pop {r7, pc}
  101345. 08028cce <MQTTSerialize_ack>:
  101346. * @param dup the MQTT dup flag
  101347. * @param packetid the MQTT packet identifier
  101348. * @return serialized length, or error if 0
  101349. */
  101350. int MQTTSerialize_ack(unsigned char* buf, int buflen, unsigned char packettype, unsigned char dup, unsigned short packetid)
  101351. {
  101352. 8028cce: b580 push {r7, lr}
  101353. 8028cd0: b088 sub sp, #32
  101354. 8028cd2: af00 add r7, sp, #0
  101355. 8028cd4: 60f8 str r0, [r7, #12]
  101356. 8028cd6: 60b9 str r1, [r7, #8]
  101357. 8028cd8: 4611 mov r1, r2
  101358. 8028cda: 461a mov r2, r3
  101359. 8028cdc: 460b mov r3, r1
  101360. 8028cde: 71fb strb r3, [r7, #7]
  101361. 8028ce0: 4613 mov r3, r2
  101362. 8028ce2: 71bb strb r3, [r7, #6]
  101363. MQTTHeader header = {0};
  101364. 8028ce4: 2300 movs r3, #0
  101365. 8028ce6: 61bb str r3, [r7, #24]
  101366. int rc = 0;
  101367. 8028ce8: 2300 movs r3, #0
  101368. 8028cea: 61fb str r3, [r7, #28]
  101369. unsigned char *ptr = buf;
  101370. 8028cec: 68fb ldr r3, [r7, #12]
  101371. 8028cee: 617b str r3, [r7, #20]
  101372. FUNC_ENTRY;
  101373. if (buflen < 4)
  101374. 8028cf0: 68bb ldr r3, [r7, #8]
  101375. 8028cf2: 2b03 cmp r3, #3
  101376. 8028cf4: dc03 bgt.n 8028cfe <MQTTSerialize_ack+0x30>
  101377. {
  101378. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  101379. 8028cf6: f06f 0301 mvn.w r3, #1
  101380. 8028cfa: 61fb str r3, [r7, #28]
  101381. goto exit;
  101382. 8028cfc: e037 b.n 8028d6e <MQTTSerialize_ack+0xa0>
  101383. }
  101384. header.bits.type = packettype;
  101385. 8028cfe: 79fb ldrb r3, [r7, #7]
  101386. 8028d00: f003 030f and.w r3, r3, #15
  101387. 8028d04: b2da uxtb r2, r3
  101388. 8028d06: 7e3b ldrb r3, [r7, #24]
  101389. 8028d08: f362 1307 bfi r3, r2, #4, #4
  101390. 8028d0c: 763b strb r3, [r7, #24]
  101391. header.bits.dup = dup;
  101392. 8028d0e: 79bb ldrb r3, [r7, #6]
  101393. 8028d10: f003 0301 and.w r3, r3, #1
  101394. 8028d14: b2da uxtb r2, r3
  101395. 8028d16: 7e3b ldrb r3, [r7, #24]
  101396. 8028d18: f362 03c3 bfi r3, r2, #3, #1
  101397. 8028d1c: 763b strb r3, [r7, #24]
  101398. header.bits.qos = (packettype == PUBREL) ? 1 : 0;
  101399. 8028d1e: 79fb ldrb r3, [r7, #7]
  101400. 8028d20: 2b06 cmp r3, #6
  101401. 8028d22: bf0c ite eq
  101402. 8028d24: 2301 moveq r3, #1
  101403. 8028d26: 2300 movne r3, #0
  101404. 8028d28: b2db uxtb r3, r3
  101405. 8028d2a: f003 0303 and.w r3, r3, #3
  101406. 8028d2e: b2da uxtb r2, r3
  101407. 8028d30: 7e3b ldrb r3, [r7, #24]
  101408. 8028d32: f362 0342 bfi r3, r2, #1, #2
  101409. 8028d36: 763b strb r3, [r7, #24]
  101410. writeChar(&ptr, header.byte); /* write header */
  101411. 8028d38: 7e3a ldrb r2, [r7, #24]
  101412. 8028d3a: f107 0314 add.w r3, r7, #20
  101413. 8028d3e: 4611 mov r1, r2
  101414. 8028d40: 4618 mov r0, r3
  101415. 8028d42: f7ff fe22 bl 802898a <writeChar>
  101416. ptr += MQTTPacket_encode(ptr, 2); /* write remaining length */
  101417. 8028d46: 697b ldr r3, [r7, #20]
  101418. 8028d48: 2102 movs r1, #2
  101419. 8028d4a: 4618 mov r0, r3
  101420. 8028d4c: f7ff fd23 bl 8028796 <MQTTPacket_encode>
  101421. 8028d50: 4602 mov r2, r0
  101422. 8028d52: 697b ldr r3, [r7, #20]
  101423. 8028d54: 4413 add r3, r2
  101424. 8028d56: 617b str r3, [r7, #20]
  101425. writeInt(&ptr, packetid);
  101426. 8028d58: 8d3a ldrh r2, [r7, #40] @ 0x28
  101427. 8028d5a: f107 0314 add.w r3, r7, #20
  101428. 8028d5e: 4611 mov r1, r2
  101429. 8028d60: 4618 mov r0, r3
  101430. 8028d62: f7ff fe27 bl 80289b4 <writeInt>
  101431. rc = ptr - buf;
  101432. 8028d66: 697a ldr r2, [r7, #20]
  101433. 8028d68: 68fb ldr r3, [r7, #12]
  101434. 8028d6a: 1ad3 subs r3, r2, r3
  101435. 8028d6c: 61fb str r3, [r7, #28]
  101436. exit:
  101437. FUNC_EXIT_RC(rc);
  101438. return rc;
  101439. 8028d6e: 69fb ldr r3, [r7, #28]
  101440. }
  101441. 8028d70: 4618 mov r0, r3
  101442. 8028d72: 3720 adds r7, #32
  101443. 8028d74: 46bd mov sp, r7
  101444. 8028d76: bd80 pop {r7, pc}
  101445. 08028d78 <MQTTSerialize_subscribeLength>:
  101446. * @param count the number of topic filter strings in topicFilters
  101447. * @param topicFilters the array of topic filter strings to be used in the publish
  101448. * @return the length of buffer needed to contain the serialized version of the packet
  101449. */
  101450. int MQTTSerialize_subscribeLength(int count, MQTTString topicFilters[])
  101451. {
  101452. 8028d78: b580 push {r7, lr}
  101453. 8028d7a: b084 sub sp, #16
  101454. 8028d7c: af00 add r7, sp, #0
  101455. 8028d7e: 6078 str r0, [r7, #4]
  101456. 8028d80: 6039 str r1, [r7, #0]
  101457. int i;
  101458. int len = 2; /* packetid */
  101459. 8028d82: 2302 movs r3, #2
  101460. 8028d84: 60bb str r3, [r7, #8]
  101461. for (i = 0; i < count; ++i)
  101462. 8028d86: 2300 movs r3, #0
  101463. 8028d88: 60fb str r3, [r7, #12]
  101464. 8028d8a: e013 b.n 8028db4 <MQTTSerialize_subscribeLength+0x3c>
  101465. len += 2 + MQTTstrlen(topicFilters[i]) + 1; /* length + topic + req_qos */
  101466. 8028d8c: 68fa ldr r2, [r7, #12]
  101467. 8028d8e: 4613 mov r3, r2
  101468. 8028d90: 005b lsls r3, r3, #1
  101469. 8028d92: 4413 add r3, r2
  101470. 8028d94: 009b lsls r3, r3, #2
  101471. 8028d96: 461a mov r2, r3
  101472. 8028d98: 683b ldr r3, [r7, #0]
  101473. 8028d9a: 4413 add r3, r2
  101474. 8028d9c: e893 0007 ldmia.w r3, {r0, r1, r2}
  101475. 8028da0: f7ff feaf bl 8028b02 <MQTTstrlen>
  101476. 8028da4: 4603 mov r3, r0
  101477. 8028da6: 3303 adds r3, #3
  101478. 8028da8: 68ba ldr r2, [r7, #8]
  101479. 8028daa: 4413 add r3, r2
  101480. 8028dac: 60bb str r3, [r7, #8]
  101481. for (i = 0; i < count; ++i)
  101482. 8028dae: 68fb ldr r3, [r7, #12]
  101483. 8028db0: 3301 adds r3, #1
  101484. 8028db2: 60fb str r3, [r7, #12]
  101485. 8028db4: 68fa ldr r2, [r7, #12]
  101486. 8028db6: 687b ldr r3, [r7, #4]
  101487. 8028db8: 429a cmp r2, r3
  101488. 8028dba: dbe7 blt.n 8028d8c <MQTTSerialize_subscribeLength+0x14>
  101489. return len;
  101490. 8028dbc: 68bb ldr r3, [r7, #8]
  101491. }
  101492. 8028dbe: 4618 mov r0, r3
  101493. 8028dc0: 3710 adds r7, #16
  101494. 8028dc2: 46bd mov sp, r7
  101495. 8028dc4: bd80 pop {r7, pc}
  101496. 08028dc6 <MQTTSerialize_subscribe>:
  101497. * @param requestedQoSs - array of requested QoS
  101498. * @return the length of the serialized data. <= 0 indicates error
  101499. */
  101500. int MQTTSerialize_subscribe(unsigned char* buf, int buflen, unsigned char dup, unsigned short packetid, int count,
  101501. MQTTString topicFilters[], int requestedQoSs[])
  101502. {
  101503. 8028dc6: b580 push {r7, lr}
  101504. 8028dc8: b08a sub sp, #40 @ 0x28
  101505. 8028dca: af00 add r7, sp, #0
  101506. 8028dcc: 60f8 str r0, [r7, #12]
  101507. 8028dce: 60b9 str r1, [r7, #8]
  101508. 8028dd0: 4611 mov r1, r2
  101509. 8028dd2: 461a mov r2, r3
  101510. 8028dd4: 460b mov r3, r1
  101511. 8028dd6: 71fb strb r3, [r7, #7]
  101512. 8028dd8: 4613 mov r3, r2
  101513. 8028dda: 80bb strh r3, [r7, #4]
  101514. unsigned char *ptr = buf;
  101515. 8028ddc: 68fb ldr r3, [r7, #12]
  101516. 8028dde: 61bb str r3, [r7, #24]
  101517. MQTTHeader header = {0};
  101518. 8028de0: 2300 movs r3, #0
  101519. 8028de2: 617b str r3, [r7, #20]
  101520. int rem_len = 0;
  101521. 8028de4: 2300 movs r3, #0
  101522. 8028de6: 61fb str r3, [r7, #28]
  101523. int rc = 0;
  101524. 8028de8: 2300 movs r3, #0
  101525. 8028dea: 627b str r3, [r7, #36] @ 0x24
  101526. int i = 0;
  101527. 8028dec: 2300 movs r3, #0
  101528. 8028dee: 623b str r3, [r7, #32]
  101529. FUNC_ENTRY;
  101530. if (MQTTPacket_len(rem_len = MQTTSerialize_subscribeLength(count, topicFilters)) > buflen)
  101531. 8028df0: 6b79 ldr r1, [r7, #52] @ 0x34
  101532. 8028df2: 6b38 ldr r0, [r7, #48] @ 0x30
  101533. 8028df4: f7ff ffc0 bl 8028d78 <MQTTSerialize_subscribeLength>
  101534. 8028df8: 61f8 str r0, [r7, #28]
  101535. 8028dfa: 69f8 ldr r0, [r7, #28]
  101536. 8028dfc: f7ff fd36 bl 802886c <MQTTPacket_len>
  101537. 8028e00: 4602 mov r2, r0
  101538. 8028e02: 68bb ldr r3, [r7, #8]
  101539. 8028e04: 4293 cmp r3, r2
  101540. 8028e06: da03 bge.n 8028e10 <MQTTSerialize_subscribe+0x4a>
  101541. {
  101542. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  101543. 8028e08: f06f 0301 mvn.w r3, #1
  101544. 8028e0c: 627b str r3, [r7, #36] @ 0x24
  101545. goto exit;
  101546. 8028e0e: e051 b.n 8028eb4 <MQTTSerialize_subscribe+0xee>
  101547. }
  101548. header.byte = 0;
  101549. 8028e10: 2300 movs r3, #0
  101550. 8028e12: 753b strb r3, [r7, #20]
  101551. header.bits.type = SUBSCRIBE;
  101552. 8028e14: 7d3b ldrb r3, [r7, #20]
  101553. 8028e16: 2208 movs r2, #8
  101554. 8028e18: f362 1307 bfi r3, r2, #4, #4
  101555. 8028e1c: 753b strb r3, [r7, #20]
  101556. header.bits.dup = dup;
  101557. 8028e1e: 79fb ldrb r3, [r7, #7]
  101558. 8028e20: f003 0301 and.w r3, r3, #1
  101559. 8028e24: b2da uxtb r2, r3
  101560. 8028e26: 7d3b ldrb r3, [r7, #20]
  101561. 8028e28: f362 03c3 bfi r3, r2, #3, #1
  101562. 8028e2c: 753b strb r3, [r7, #20]
  101563. header.bits.qos = 1;
  101564. 8028e2e: 7d3b ldrb r3, [r7, #20]
  101565. 8028e30: 2201 movs r2, #1
  101566. 8028e32: f362 0342 bfi r3, r2, #1, #2
  101567. 8028e36: 753b strb r3, [r7, #20]
  101568. writeChar(&ptr, header.byte); /* write header */
  101569. 8028e38: 7d3a ldrb r2, [r7, #20]
  101570. 8028e3a: f107 0318 add.w r3, r7, #24
  101571. 8028e3e: 4611 mov r1, r2
  101572. 8028e40: 4618 mov r0, r3
  101573. 8028e42: f7ff fda2 bl 802898a <writeChar>
  101574. ptr += MQTTPacket_encode(ptr, rem_len); /* write remaining length */;
  101575. 8028e46: 69bb ldr r3, [r7, #24]
  101576. 8028e48: 69f9 ldr r1, [r7, #28]
  101577. 8028e4a: 4618 mov r0, r3
  101578. 8028e4c: f7ff fca3 bl 8028796 <MQTTPacket_encode>
  101579. 8028e50: 4602 mov r2, r0
  101580. 8028e52: 69bb ldr r3, [r7, #24]
  101581. 8028e54: 4413 add r3, r2
  101582. 8028e56: 61bb str r3, [r7, #24]
  101583. writeInt(&ptr, packetid);
  101584. 8028e58: 88ba ldrh r2, [r7, #4]
  101585. 8028e5a: f107 0318 add.w r3, r7, #24
  101586. 8028e5e: 4611 mov r1, r2
  101587. 8028e60: 4618 mov r0, r3
  101588. 8028e62: f7ff fda7 bl 80289b4 <writeInt>
  101589. for (i = 0; i < count; ++i)
  101590. 8028e66: 2300 movs r3, #0
  101591. 8028e68: 623b str r3, [r7, #32]
  101592. 8028e6a: e01b b.n 8028ea4 <MQTTSerialize_subscribe+0xde>
  101593. {
  101594. writeMQTTString(&ptr, topicFilters[i]);
  101595. 8028e6c: 6a3a ldr r2, [r7, #32]
  101596. 8028e6e: 4613 mov r3, r2
  101597. 8028e70: 005b lsls r3, r3, #1
  101598. 8028e72: 4413 add r3, r2
  101599. 8028e74: 009b lsls r3, r3, #2
  101600. 8028e76: 461a mov r2, r3
  101601. 8028e78: 6b7b ldr r3, [r7, #52] @ 0x34
  101602. 8028e7a: 4413 add r3, r2
  101603. 8028e7c: f107 0018 add.w r0, r7, #24
  101604. 8028e80: cb0e ldmia r3, {r1, r2, r3}
  101605. 8028e82: f7ff fddf bl 8028a44 <writeMQTTString>
  101606. writeChar(&ptr, requestedQoSs[i]);
  101607. 8028e86: 6a3b ldr r3, [r7, #32]
  101608. 8028e88: 009b lsls r3, r3, #2
  101609. 8028e8a: 6bba ldr r2, [r7, #56] @ 0x38
  101610. 8028e8c: 4413 add r3, r2
  101611. 8028e8e: 681b ldr r3, [r3, #0]
  101612. 8028e90: b2da uxtb r2, r3
  101613. 8028e92: f107 0318 add.w r3, r7, #24
  101614. 8028e96: 4611 mov r1, r2
  101615. 8028e98: 4618 mov r0, r3
  101616. 8028e9a: f7ff fd76 bl 802898a <writeChar>
  101617. for (i = 0; i < count; ++i)
  101618. 8028e9e: 6a3b ldr r3, [r7, #32]
  101619. 8028ea0: 3301 adds r3, #1
  101620. 8028ea2: 623b str r3, [r7, #32]
  101621. 8028ea4: 6a3a ldr r2, [r7, #32]
  101622. 8028ea6: 6b3b ldr r3, [r7, #48] @ 0x30
  101623. 8028ea8: 429a cmp r2, r3
  101624. 8028eaa: dbdf blt.n 8028e6c <MQTTSerialize_subscribe+0xa6>
  101625. }
  101626. rc = ptr - buf;
  101627. 8028eac: 69ba ldr r2, [r7, #24]
  101628. 8028eae: 68fb ldr r3, [r7, #12]
  101629. 8028eb0: 1ad3 subs r3, r2, r3
  101630. 8028eb2: 627b str r3, [r7, #36] @ 0x24
  101631. exit:
  101632. FUNC_EXIT_RC(rc);
  101633. return rc;
  101634. 8028eb4: 6a7b ldr r3, [r7, #36] @ 0x24
  101635. }
  101636. 8028eb6: 4618 mov r0, r3
  101637. 8028eb8: 3728 adds r7, #40 @ 0x28
  101638. 8028eba: 46bd mov sp, r7
  101639. 8028ebc: bd80 pop {r7, pc}
  101640. 08028ebe <MQTTDeserialize_suback>:
  101641. * @param buf the raw buffer data, of the correct length determined by the remaining length field
  101642. * @param buflen the length in bytes of the data in the supplied buffer
  101643. * @return error code. 1 is success, 0 is failure
  101644. */
  101645. int MQTTDeserialize_suback(unsigned short* packetid, int maxcount, int* count, int grantedQoSs[], unsigned char* buf, int buflen)
  101646. {
  101647. 8028ebe: b580 push {r7, lr}
  101648. 8028ec0: b08a sub sp, #40 @ 0x28
  101649. 8028ec2: af00 add r7, sp, #0
  101650. 8028ec4: 60f8 str r0, [r7, #12]
  101651. 8028ec6: 60b9 str r1, [r7, #8]
  101652. 8028ec8: 607a str r2, [r7, #4]
  101653. 8028eca: 603b str r3, [r7, #0]
  101654. MQTTHeader header = {0};
  101655. 8028ecc: 2300 movs r3, #0
  101656. 8028ece: 61fb str r3, [r7, #28]
  101657. unsigned char* curdata = buf;
  101658. 8028ed0: 6b3b ldr r3, [r7, #48] @ 0x30
  101659. 8028ed2: 61bb str r3, [r7, #24]
  101660. unsigned char* enddata = NULL;
  101661. 8028ed4: 2300 movs r3, #0
  101662. 8028ed6: 623b str r3, [r7, #32]
  101663. int rc = 0;
  101664. 8028ed8: 2300 movs r3, #0
  101665. 8028eda: 627b str r3, [r7, #36] @ 0x24
  101666. int mylen;
  101667. FUNC_ENTRY;
  101668. header.byte = readChar(&curdata);
  101669. 8028edc: f107 0318 add.w r3, r7, #24
  101670. 8028ee0: 4618 mov r0, r3
  101671. 8028ee2: f7ff fd3e bl 8028962 <readChar>
  101672. 8028ee6: 4603 mov r3, r0
  101673. 8028ee8: 773b strb r3, [r7, #28]
  101674. if (header.bits.type != SUBACK)
  101675. 8028eea: 7f3b ldrb r3, [r7, #28]
  101676. 8028eec: f023 030f bic.w r3, r3, #15
  101677. 8028ef0: b2db uxtb r3, r3
  101678. 8028ef2: 2b90 cmp r3, #144 @ 0x90
  101679. 8028ef4: d142 bne.n 8028f7c <MQTTDeserialize_suback+0xbe>
  101680. goto exit;
  101681. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  101682. 8028ef6: 69bb ldr r3, [r7, #24]
  101683. 8028ef8: f107 0214 add.w r2, r7, #20
  101684. 8028efc: 4611 mov r1, r2
  101685. 8028efe: 4618 mov r0, r3
  101686. 8028f00: f7ff fcfe bl 8028900 <MQTTPacket_decodeBuf>
  101687. 8028f04: 6278 str r0, [r7, #36] @ 0x24
  101688. 8028f06: 6a7a ldr r2, [r7, #36] @ 0x24
  101689. 8028f08: 69bb ldr r3, [r7, #24]
  101690. 8028f0a: 4413 add r3, r2
  101691. 8028f0c: 61bb str r3, [r7, #24]
  101692. enddata = curdata + mylen;
  101693. 8028f0e: 69bb ldr r3, [r7, #24]
  101694. 8028f10: 697a ldr r2, [r7, #20]
  101695. 8028f12: 4413 add r3, r2
  101696. 8028f14: 623b str r3, [r7, #32]
  101697. if (enddata - curdata < 2)
  101698. 8028f16: 69bb ldr r3, [r7, #24]
  101699. 8028f18: 6a3a ldr r2, [r7, #32]
  101700. 8028f1a: 1ad3 subs r3, r2, r3
  101701. 8028f1c: 2b01 cmp r3, #1
  101702. 8028f1e: dd2f ble.n 8028f80 <MQTTDeserialize_suback+0xc2>
  101703. goto exit;
  101704. *packetid = readInt(&curdata);
  101705. 8028f20: f107 0318 add.w r3, r7, #24
  101706. 8028f24: 4618 mov r0, r3
  101707. 8028f26: f7ff fd01 bl 802892c <readInt>
  101708. 8028f2a: 4603 mov r3, r0
  101709. 8028f2c: b29a uxth r2, r3
  101710. 8028f2e: 68fb ldr r3, [r7, #12]
  101711. 8028f30: 801a strh r2, [r3, #0]
  101712. *count = 0;
  101713. 8028f32: 687b ldr r3, [r7, #4]
  101714. 8028f34: 2200 movs r2, #0
  101715. 8028f36: 601a str r2, [r3, #0]
  101716. while (curdata < enddata)
  101717. 8028f38: e019 b.n 8028f6e <MQTTDeserialize_suback+0xb0>
  101718. {
  101719. if (*count > maxcount)
  101720. 8028f3a: 687b ldr r3, [r7, #4]
  101721. 8028f3c: 681b ldr r3, [r3, #0]
  101722. 8028f3e: 68ba ldr r2, [r7, #8]
  101723. 8028f40: 429a cmp r2, r3
  101724. 8028f42: da03 bge.n 8028f4c <MQTTDeserialize_suback+0x8e>
  101725. {
  101726. rc = -1;
  101727. 8028f44: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  101728. 8028f48: 627b str r3, [r7, #36] @ 0x24
  101729. goto exit;
  101730. 8028f4a: e01a b.n 8028f82 <MQTTDeserialize_suback+0xc4>
  101731. }
  101732. grantedQoSs[(*count)++] = readChar(&curdata);
  101733. 8028f4c: f107 0318 add.w r3, r7, #24
  101734. 8028f50: 4618 mov r0, r3
  101735. 8028f52: f7ff fd06 bl 8028962 <readChar>
  101736. 8028f56: 4603 mov r3, r0
  101737. 8028f58: 4618 mov r0, r3
  101738. 8028f5a: 687b ldr r3, [r7, #4]
  101739. 8028f5c: 681b ldr r3, [r3, #0]
  101740. 8028f5e: 1c59 adds r1, r3, #1
  101741. 8028f60: 687a ldr r2, [r7, #4]
  101742. 8028f62: 6011 str r1, [r2, #0]
  101743. 8028f64: 009b lsls r3, r3, #2
  101744. 8028f66: 683a ldr r2, [r7, #0]
  101745. 8028f68: 4413 add r3, r2
  101746. 8028f6a: 4602 mov r2, r0
  101747. 8028f6c: 601a str r2, [r3, #0]
  101748. while (curdata < enddata)
  101749. 8028f6e: 69bb ldr r3, [r7, #24]
  101750. 8028f70: 6a3a ldr r2, [r7, #32]
  101751. 8028f72: 429a cmp r2, r3
  101752. 8028f74: d8e1 bhi.n 8028f3a <MQTTDeserialize_suback+0x7c>
  101753. }
  101754. rc = 1;
  101755. 8028f76: 2301 movs r3, #1
  101756. 8028f78: 627b str r3, [r7, #36] @ 0x24
  101757. 8028f7a: e002 b.n 8028f82 <MQTTDeserialize_suback+0xc4>
  101758. goto exit;
  101759. 8028f7c: bf00 nop
  101760. 8028f7e: e000 b.n 8028f82 <MQTTDeserialize_suback+0xc4>
  101761. goto exit;
  101762. 8028f80: bf00 nop
  101763. exit:
  101764. FUNC_EXIT_RC(rc);
  101765. return rc;
  101766. 8028f82: 6a7b ldr r3, [r7, #36] @ 0x24
  101767. }
  101768. 8028f84: 4618 mov r0, r3
  101769. 8028f86: 3728 adds r7, #40 @ 0x28
  101770. 8028f88: 46bd mov sp, r7
  101771. 8028f8a: bd80 pop {r7, pc}
  101772. 08028f8c <malloc>:
  101773. 8028f8c: 4b02 ldr r3, [pc, #8] @ (8028f98 <malloc+0xc>)
  101774. 8028f8e: 4601 mov r1, r0
  101775. 8028f90: 6818 ldr r0, [r3, #0]
  101776. 8028f92: f000 b82d b.w 8028ff0 <_malloc_r>
  101777. 8028f96: bf00 nop
  101778. 8028f98: 240001d4 .word 0x240001d4
  101779. 08028f9c <free>:
  101780. 8028f9c: 4b02 ldr r3, [pc, #8] @ (8028fa8 <free+0xc>)
  101781. 8028f9e: 4601 mov r1, r0
  101782. 8028fa0: 6818 ldr r0, [r3, #0]
  101783. 8028fa2: f002 bc7b b.w 802b89c <_free_r>
  101784. 8028fa6: bf00 nop
  101785. 8028fa8: 240001d4 .word 0x240001d4
  101786. 08028fac <sbrk_aligned>:
  101787. 8028fac: b570 push {r4, r5, r6, lr}
  101788. 8028fae: 4e0f ldr r6, [pc, #60] @ (8028fec <sbrk_aligned+0x40>)
  101789. 8028fb0: 460c mov r4, r1
  101790. 8028fb2: 6831 ldr r1, [r6, #0]
  101791. 8028fb4: 4605 mov r5, r0
  101792. 8028fb6: b911 cbnz r1, 8028fbe <sbrk_aligned+0x12>
  101793. 8028fb8: f001 fe0a bl 802abd0 <_sbrk_r>
  101794. 8028fbc: 6030 str r0, [r6, #0]
  101795. 8028fbe: 4621 mov r1, r4
  101796. 8028fc0: 4628 mov r0, r5
  101797. 8028fc2: f001 fe05 bl 802abd0 <_sbrk_r>
  101798. 8028fc6: 1c43 adds r3, r0, #1
  101799. 8028fc8: d103 bne.n 8028fd2 <sbrk_aligned+0x26>
  101800. 8028fca: f04f 34ff mov.w r4, #4294967295 @ 0xffffffff
  101801. 8028fce: 4620 mov r0, r4
  101802. 8028fd0: bd70 pop {r4, r5, r6, pc}
  101803. 8028fd2: 1cc4 adds r4, r0, #3
  101804. 8028fd4: f024 0403 bic.w r4, r4, #3
  101805. 8028fd8: 42a0 cmp r0, r4
  101806. 8028fda: d0f8 beq.n 8028fce <sbrk_aligned+0x22>
  101807. 8028fdc: 1a21 subs r1, r4, r0
  101808. 8028fde: 4628 mov r0, r5
  101809. 8028fe0: f001 fdf6 bl 802abd0 <_sbrk_r>
  101810. 8028fe4: 3001 adds r0, #1
  101811. 8028fe6: d1f2 bne.n 8028fce <sbrk_aligned+0x22>
  101812. 8028fe8: e7ef b.n 8028fca <sbrk_aligned+0x1e>
  101813. 8028fea: bf00 nop
  101814. 8028fec: 2402b11c .word 0x2402b11c
  101815. 08028ff0 <_malloc_r>:
  101816. 8028ff0: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  101817. 8028ff4: 1ccd adds r5, r1, #3
  101818. 8028ff6: f025 0503 bic.w r5, r5, #3
  101819. 8028ffa: 3508 adds r5, #8
  101820. 8028ffc: 2d0c cmp r5, #12
  101821. 8028ffe: bf38 it cc
  101822. 8029000: 250c movcc r5, #12
  101823. 8029002: 2d00 cmp r5, #0
  101824. 8029004: 4606 mov r6, r0
  101825. 8029006: db01 blt.n 802900c <_malloc_r+0x1c>
  101826. 8029008: 42a9 cmp r1, r5
  101827. 802900a: d904 bls.n 8029016 <_malloc_r+0x26>
  101828. 802900c: 230c movs r3, #12
  101829. 802900e: 6033 str r3, [r6, #0]
  101830. 8029010: 2000 movs r0, #0
  101831. 8029012: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  101832. 8029016: f8df 80d4 ldr.w r8, [pc, #212] @ 80290ec <_malloc_r+0xfc>
  101833. 802901a: f000 f869 bl 80290f0 <__malloc_lock>
  101834. 802901e: f8d8 3000 ldr.w r3, [r8]
  101835. 8029022: 461c mov r4, r3
  101836. 8029024: bb44 cbnz r4, 8029078 <_malloc_r+0x88>
  101837. 8029026: 4629 mov r1, r5
  101838. 8029028: 4630 mov r0, r6
  101839. 802902a: f7ff ffbf bl 8028fac <sbrk_aligned>
  101840. 802902e: 1c43 adds r3, r0, #1
  101841. 8029030: 4604 mov r4, r0
  101842. 8029032: d158 bne.n 80290e6 <_malloc_r+0xf6>
  101843. 8029034: f8d8 4000 ldr.w r4, [r8]
  101844. 8029038: 4627 mov r7, r4
  101845. 802903a: 2f00 cmp r7, #0
  101846. 802903c: d143 bne.n 80290c6 <_malloc_r+0xd6>
  101847. 802903e: 2c00 cmp r4, #0
  101848. 8029040: d04b beq.n 80290da <_malloc_r+0xea>
  101849. 8029042: 6823 ldr r3, [r4, #0]
  101850. 8029044: 4639 mov r1, r7
  101851. 8029046: 4630 mov r0, r6
  101852. 8029048: eb04 0903 add.w r9, r4, r3
  101853. 802904c: f001 fdc0 bl 802abd0 <_sbrk_r>
  101854. 8029050: 4581 cmp r9, r0
  101855. 8029052: d142 bne.n 80290da <_malloc_r+0xea>
  101856. 8029054: 6821 ldr r1, [r4, #0]
  101857. 8029056: 1a6d subs r5, r5, r1
  101858. 8029058: 4629 mov r1, r5
  101859. 802905a: 4630 mov r0, r6
  101860. 802905c: f7ff ffa6 bl 8028fac <sbrk_aligned>
  101861. 8029060: 3001 adds r0, #1
  101862. 8029062: d03a beq.n 80290da <_malloc_r+0xea>
  101863. 8029064: 6823 ldr r3, [r4, #0]
  101864. 8029066: 442b add r3, r5
  101865. 8029068: 6023 str r3, [r4, #0]
  101866. 802906a: f8d8 3000 ldr.w r3, [r8]
  101867. 802906e: 685a ldr r2, [r3, #4]
  101868. 8029070: bb62 cbnz r2, 80290cc <_malloc_r+0xdc>
  101869. 8029072: f8c8 7000 str.w r7, [r8]
  101870. 8029076: e00f b.n 8029098 <_malloc_r+0xa8>
  101871. 8029078: 6822 ldr r2, [r4, #0]
  101872. 802907a: 1b52 subs r2, r2, r5
  101873. 802907c: d420 bmi.n 80290c0 <_malloc_r+0xd0>
  101874. 802907e: 2a0b cmp r2, #11
  101875. 8029080: d917 bls.n 80290b2 <_malloc_r+0xc2>
  101876. 8029082: 1961 adds r1, r4, r5
  101877. 8029084: 42a3 cmp r3, r4
  101878. 8029086: 6025 str r5, [r4, #0]
  101879. 8029088: bf18 it ne
  101880. 802908a: 6059 strne r1, [r3, #4]
  101881. 802908c: 6863 ldr r3, [r4, #4]
  101882. 802908e: bf08 it eq
  101883. 8029090: f8c8 1000 streq.w r1, [r8]
  101884. 8029094: 5162 str r2, [r4, r5]
  101885. 8029096: 604b str r3, [r1, #4]
  101886. 8029098: 4630 mov r0, r6
  101887. 802909a: f000 f82f bl 80290fc <__malloc_unlock>
  101888. 802909e: f104 000b add.w r0, r4, #11
  101889. 80290a2: 1d23 adds r3, r4, #4
  101890. 80290a4: f020 0007 bic.w r0, r0, #7
  101891. 80290a8: 1ac2 subs r2, r0, r3
  101892. 80290aa: bf1c itt ne
  101893. 80290ac: 1a1b subne r3, r3, r0
  101894. 80290ae: 50a3 strne r3, [r4, r2]
  101895. 80290b0: e7af b.n 8029012 <_malloc_r+0x22>
  101896. 80290b2: 6862 ldr r2, [r4, #4]
  101897. 80290b4: 42a3 cmp r3, r4
  101898. 80290b6: bf0c ite eq
  101899. 80290b8: f8c8 2000 streq.w r2, [r8]
  101900. 80290bc: 605a strne r2, [r3, #4]
  101901. 80290be: e7eb b.n 8029098 <_malloc_r+0xa8>
  101902. 80290c0: 4623 mov r3, r4
  101903. 80290c2: 6864 ldr r4, [r4, #4]
  101904. 80290c4: e7ae b.n 8029024 <_malloc_r+0x34>
  101905. 80290c6: 463c mov r4, r7
  101906. 80290c8: 687f ldr r7, [r7, #4]
  101907. 80290ca: e7b6 b.n 802903a <_malloc_r+0x4a>
  101908. 80290cc: 461a mov r2, r3
  101909. 80290ce: 685b ldr r3, [r3, #4]
  101910. 80290d0: 42a3 cmp r3, r4
  101911. 80290d2: d1fb bne.n 80290cc <_malloc_r+0xdc>
  101912. 80290d4: 2300 movs r3, #0
  101913. 80290d6: 6053 str r3, [r2, #4]
  101914. 80290d8: e7de b.n 8029098 <_malloc_r+0xa8>
  101915. 80290da: 230c movs r3, #12
  101916. 80290dc: 6033 str r3, [r6, #0]
  101917. 80290de: 4630 mov r0, r6
  101918. 80290e0: f000 f80c bl 80290fc <__malloc_unlock>
  101919. 80290e4: e794 b.n 8029010 <_malloc_r+0x20>
  101920. 80290e6: 6005 str r5, [r0, #0]
  101921. 80290e8: e7d6 b.n 8029098 <_malloc_r+0xa8>
  101922. 80290ea: bf00 nop
  101923. 80290ec: 2402b120 .word 0x2402b120
  101924. 080290f0 <__malloc_lock>:
  101925. 80290f0: 4801 ldr r0, [pc, #4] @ (80290f8 <__malloc_lock+0x8>)
  101926. 80290f2: f001 bdba b.w 802ac6a <__retarget_lock_acquire_recursive>
  101927. 80290f6: bf00 nop
  101928. 80290f8: 2402b264 .word 0x2402b264
  101929. 080290fc <__malloc_unlock>:
  101930. 80290fc: 4801 ldr r0, [pc, #4] @ (8029104 <__malloc_unlock+0x8>)
  101931. 80290fe: f001 bdb5 b.w 802ac6c <__retarget_lock_release_recursive>
  101932. 8029102: bf00 nop
  101933. 8029104: 2402b264 .word 0x2402b264
  101934. 08029108 <rand>:
  101935. 8029108: 4b16 ldr r3, [pc, #88] @ (8029164 <rand+0x5c>)
  101936. 802910a: b510 push {r4, lr}
  101937. 802910c: 681c ldr r4, [r3, #0]
  101938. 802910e: 6b23 ldr r3, [r4, #48] @ 0x30
  101939. 8029110: b9b3 cbnz r3, 8029140 <rand+0x38>
  101940. 8029112: 2018 movs r0, #24
  101941. 8029114: f7ff ff3a bl 8028f8c <malloc>
  101942. 8029118: 4602 mov r2, r0
  101943. 802911a: 6320 str r0, [r4, #48] @ 0x30
  101944. 802911c: b920 cbnz r0, 8029128 <rand+0x20>
  101945. 802911e: 4b12 ldr r3, [pc, #72] @ (8029168 <rand+0x60>)
  101946. 8029120: 4812 ldr r0, [pc, #72] @ (802916c <rand+0x64>)
  101947. 8029122: 2152 movs r1, #82 @ 0x52
  101948. 8029124: f001 fdbc bl 802aca0 <__assert_func>
  101949. 8029128: 4911 ldr r1, [pc, #68] @ (8029170 <rand+0x68>)
  101950. 802912a: 4b12 ldr r3, [pc, #72] @ (8029174 <rand+0x6c>)
  101951. 802912c: e9c0 1300 strd r1, r3, [r0]
  101952. 8029130: 4b11 ldr r3, [pc, #68] @ (8029178 <rand+0x70>)
  101953. 8029132: 6083 str r3, [r0, #8]
  101954. 8029134: 230b movs r3, #11
  101955. 8029136: 8183 strh r3, [r0, #12]
  101956. 8029138: 2100 movs r1, #0
  101957. 802913a: 2001 movs r0, #1
  101958. 802913c: e9c2 0104 strd r0, r1, [r2, #16]
  101959. 8029140: 6b21 ldr r1, [r4, #48] @ 0x30
  101960. 8029142: 480e ldr r0, [pc, #56] @ (802917c <rand+0x74>)
  101961. 8029144: 690b ldr r3, [r1, #16]
  101962. 8029146: 694c ldr r4, [r1, #20]
  101963. 8029148: 4a0d ldr r2, [pc, #52] @ (8029180 <rand+0x78>)
  101964. 802914a: 4358 muls r0, r3
  101965. 802914c: fb02 0004 mla r0, r2, r4, r0
  101966. 8029150: fba3 3202 umull r3, r2, r3, r2
  101967. 8029154: 3301 adds r3, #1
  101968. 8029156: eb40 0002 adc.w r0, r0, r2
  101969. 802915a: e9c1 3004 strd r3, r0, [r1, #16]
  101970. 802915e: f020 4000 bic.w r0, r0, #2147483648 @ 0x80000000
  101971. 8029162: bd10 pop {r4, pc}
  101972. 8029164: 240001d4 .word 0x240001d4
  101973. 8029168: 08031b6e .word 0x08031b6e
  101974. 802916c: 08031b85 .word 0x08031b85
  101975. 8029170: abcd330e .word 0xabcd330e
  101976. 8029174: e66d1234 .word 0xe66d1234
  101977. 8029178: 0005deec .word 0x0005deec
  101978. 802917c: 5851f42d .word 0x5851f42d
  101979. 8029180: 4c957f2d .word 0x4c957f2d
  101980. 08029184 <realloc>:
  101981. 8029184: 4b02 ldr r3, [pc, #8] @ (8029190 <realloc+0xc>)
  101982. 8029186: 460a mov r2, r1
  101983. 8029188: 4601 mov r1, r0
  101984. 802918a: 6818 ldr r0, [r3, #0]
  101985. 802918c: f000 b802 b.w 8029194 <_realloc_r>
  101986. 8029190: 240001d4 .word 0x240001d4
  101987. 08029194 <_realloc_r>:
  101988. 8029194: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  101989. 8029198: 4680 mov r8, r0
  101990. 802919a: 4615 mov r5, r2
  101991. 802919c: 460c mov r4, r1
  101992. 802919e: b921 cbnz r1, 80291aa <_realloc_r+0x16>
  101993. 80291a0: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  101994. 80291a4: 4611 mov r1, r2
  101995. 80291a6: f7ff bf23 b.w 8028ff0 <_malloc_r>
  101996. 80291aa: b92a cbnz r2, 80291b8 <_realloc_r+0x24>
  101997. 80291ac: f002 fb76 bl 802b89c <_free_r>
  101998. 80291b0: 2400 movs r4, #0
  101999. 80291b2: 4620 mov r0, r4
  102000. 80291b4: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  102001. 80291b8: f003 fbb5 bl 802c926 <_malloc_usable_size_r>
  102002. 80291bc: 4285 cmp r5, r0
  102003. 80291be: 4606 mov r6, r0
  102004. 80291c0: d802 bhi.n 80291c8 <_realloc_r+0x34>
  102005. 80291c2: ebb5 0f50 cmp.w r5, r0, lsr #1
  102006. 80291c6: d8f4 bhi.n 80291b2 <_realloc_r+0x1e>
  102007. 80291c8: 4629 mov r1, r5
  102008. 80291ca: 4640 mov r0, r8
  102009. 80291cc: f7ff ff10 bl 8028ff0 <_malloc_r>
  102010. 80291d0: 4607 mov r7, r0
  102011. 80291d2: 2800 cmp r0, #0
  102012. 80291d4: d0ec beq.n 80291b0 <_realloc_r+0x1c>
  102013. 80291d6: 42b5 cmp r5, r6
  102014. 80291d8: 462a mov r2, r5
  102015. 80291da: 4621 mov r1, r4
  102016. 80291dc: bf28 it cs
  102017. 80291de: 4632 movcs r2, r6
  102018. 80291e0: f001 fd45 bl 802ac6e <memcpy>
  102019. 80291e4: 4621 mov r1, r4
  102020. 80291e6: 4640 mov r0, r8
  102021. 80291e8: f002 fb58 bl 802b89c <_free_r>
  102022. 80291ec: 463c mov r4, r7
  102023. 80291ee: e7e0 b.n 80291b2 <_realloc_r+0x1e>
  102024. 080291f0 <sulp>:
  102025. 80291f0: b570 push {r4, r5, r6, lr}
  102026. 80291f2: 4604 mov r4, r0
  102027. 80291f4: 460d mov r5, r1
  102028. 80291f6: 4616 mov r6, r2
  102029. 80291f8: ec45 4b10 vmov d0, r4, r5
  102030. 80291fc: f003 fa58 bl 802c6b0 <__ulp>
  102031. 8029200: b17e cbz r6, 8029222 <sulp+0x32>
  102032. 8029202: f3c5 530a ubfx r3, r5, #20, #11
  102033. 8029206: f1c3 036b rsb r3, r3, #107 @ 0x6b
  102034. 802920a: 2b00 cmp r3, #0
  102035. 802920c: dd09 ble.n 8029222 <sulp+0x32>
  102036. 802920e: 051b lsls r3, r3, #20
  102037. 8029210: f103 517f add.w r1, r3, #1069547520 @ 0x3fc00000
  102038. 8029214: 2000 movs r0, #0
  102039. 8029216: f501 1140 add.w r1, r1, #3145728 @ 0x300000
  102040. 802921a: ec41 0b17 vmov d7, r0, r1
  102041. 802921e: ee20 0b07 vmul.f64 d0, d0, d7
  102042. 8029222: bd70 pop {r4, r5, r6, pc}
  102043. 8029224: 0000 movs r0, r0
  102044. ...
  102045. 08029228 <_strtod_l>:
  102046. 8029228: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  102047. 802922c: ed2d 8b0a vpush {d8-d12}
  102048. 8029230: b097 sub sp, #92 @ 0x5c
  102049. 8029232: 4688 mov r8, r1
  102050. 8029234: 920e str r2, [sp, #56] @ 0x38
  102051. 8029236: 2200 movs r2, #0
  102052. 8029238: 9212 str r2, [sp, #72] @ 0x48
  102053. 802923a: 9005 str r0, [sp, #20]
  102054. 802923c: f04f 0a00 mov.w sl, #0
  102055. 8029240: f04f 0b00 mov.w fp, #0
  102056. 8029244: 460a mov r2, r1
  102057. 8029246: 9211 str r2, [sp, #68] @ 0x44
  102058. 8029248: 7811 ldrb r1, [r2, #0]
  102059. 802924a: 292b cmp r1, #43 @ 0x2b
  102060. 802924c: d04c beq.n 80292e8 <_strtod_l+0xc0>
  102061. 802924e: d839 bhi.n 80292c4 <_strtod_l+0x9c>
  102062. 8029250: 290d cmp r1, #13
  102063. 8029252: d833 bhi.n 80292bc <_strtod_l+0x94>
  102064. 8029254: 2908 cmp r1, #8
  102065. 8029256: d833 bhi.n 80292c0 <_strtod_l+0x98>
  102066. 8029258: 2900 cmp r1, #0
  102067. 802925a: d03c beq.n 80292d6 <_strtod_l+0xae>
  102068. 802925c: 2200 movs r2, #0
  102069. 802925e: 9208 str r2, [sp, #32]
  102070. 8029260: 9d11 ldr r5, [sp, #68] @ 0x44
  102071. 8029262: 782a ldrb r2, [r5, #0]
  102072. 8029264: 2a30 cmp r2, #48 @ 0x30
  102073. 8029266: f040 80b5 bne.w 80293d4 <_strtod_l+0x1ac>
  102074. 802926a: 786a ldrb r2, [r5, #1]
  102075. 802926c: f002 02df and.w r2, r2, #223 @ 0xdf
  102076. 8029270: 2a58 cmp r2, #88 @ 0x58
  102077. 8029272: d170 bne.n 8029356 <_strtod_l+0x12e>
  102078. 8029274: 9302 str r3, [sp, #8]
  102079. 8029276: 9b08 ldr r3, [sp, #32]
  102080. 8029278: 9301 str r3, [sp, #4]
  102081. 802927a: ab12 add r3, sp, #72 @ 0x48
  102082. 802927c: 9300 str r3, [sp, #0]
  102083. 802927e: 4a8b ldr r2, [pc, #556] @ (80294ac <_strtod_l+0x284>)
  102084. 8029280: 9805 ldr r0, [sp, #20]
  102085. 8029282: ab13 add r3, sp, #76 @ 0x4c
  102086. 8029284: a911 add r1, sp, #68 @ 0x44
  102087. 8029286: f002 fbbb bl 802ba00 <__gethex>
  102088. 802928a: f010 060f ands.w r6, r0, #15
  102089. 802928e: 4604 mov r4, r0
  102090. 8029290: d005 beq.n 802929e <_strtod_l+0x76>
  102091. 8029292: 2e06 cmp r6, #6
  102092. 8029294: d12a bne.n 80292ec <_strtod_l+0xc4>
  102093. 8029296: 3501 adds r5, #1
  102094. 8029298: 2300 movs r3, #0
  102095. 802929a: 9511 str r5, [sp, #68] @ 0x44
  102096. 802929c: 9308 str r3, [sp, #32]
  102097. 802929e: 9b0e ldr r3, [sp, #56] @ 0x38
  102098. 80292a0: 2b00 cmp r3, #0
  102099. 80292a2: f040 852f bne.w 8029d04 <_strtod_l+0xadc>
  102100. 80292a6: 9b08 ldr r3, [sp, #32]
  102101. 80292a8: ec4b ab10 vmov d0, sl, fp
  102102. 80292ac: b1cb cbz r3, 80292e2 <_strtod_l+0xba>
  102103. 80292ae: eeb1 0b40 vneg.f64 d0, d0
  102104. 80292b2: b017 add sp, #92 @ 0x5c
  102105. 80292b4: ecbd 8b0a vpop {d8-d12}
  102106. 80292b8: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  102107. 80292bc: 2920 cmp r1, #32
  102108. 80292be: d1cd bne.n 802925c <_strtod_l+0x34>
  102109. 80292c0: 3201 adds r2, #1
  102110. 80292c2: e7c0 b.n 8029246 <_strtod_l+0x1e>
  102111. 80292c4: 292d cmp r1, #45 @ 0x2d
  102112. 80292c6: d1c9 bne.n 802925c <_strtod_l+0x34>
  102113. 80292c8: 2101 movs r1, #1
  102114. 80292ca: 9108 str r1, [sp, #32]
  102115. 80292cc: 1c51 adds r1, r2, #1
  102116. 80292ce: 9111 str r1, [sp, #68] @ 0x44
  102117. 80292d0: 7852 ldrb r2, [r2, #1]
  102118. 80292d2: 2a00 cmp r2, #0
  102119. 80292d4: d1c4 bne.n 8029260 <_strtod_l+0x38>
  102120. 80292d6: 9b0e ldr r3, [sp, #56] @ 0x38
  102121. 80292d8: f8cd 8044 str.w r8, [sp, #68] @ 0x44
  102122. 80292dc: 2b00 cmp r3, #0
  102123. 80292de: f040 850f bne.w 8029d00 <_strtod_l+0xad8>
  102124. 80292e2: ec4b ab10 vmov d0, sl, fp
  102125. 80292e6: e7e4 b.n 80292b2 <_strtod_l+0x8a>
  102126. 80292e8: 2100 movs r1, #0
  102127. 80292ea: e7ee b.n 80292ca <_strtod_l+0xa2>
  102128. 80292ec: 9a12 ldr r2, [sp, #72] @ 0x48
  102129. 80292ee: b13a cbz r2, 8029300 <_strtod_l+0xd8>
  102130. 80292f0: 2135 movs r1, #53 @ 0x35
  102131. 80292f2: a814 add r0, sp, #80 @ 0x50
  102132. 80292f4: f003 fad3 bl 802c89e <__copybits>
  102133. 80292f8: 9912 ldr r1, [sp, #72] @ 0x48
  102134. 80292fa: 9805 ldr r0, [sp, #20]
  102135. 80292fc: f002 fea4 bl 802c048 <_Bfree>
  102136. 8029300: 1e73 subs r3, r6, #1
  102137. 8029302: 9a13 ldr r2, [sp, #76] @ 0x4c
  102138. 8029304: 2b04 cmp r3, #4
  102139. 8029306: d806 bhi.n 8029316 <_strtod_l+0xee>
  102140. 8029308: e8df f003 tbb [pc, r3]
  102141. 802930c: 201d0314 .word 0x201d0314
  102142. 8029310: 14 .byte 0x14
  102143. 8029311: 00 .byte 0x00
  102144. 8029312: e9dd ab14 ldrd sl, fp, [sp, #80] @ 0x50
  102145. 8029316: 05e3 lsls r3, r4, #23
  102146. 8029318: bf48 it mi
  102147. 802931a: f04b 4b00 orrmi.w fp, fp, #2147483648 @ 0x80000000
  102148. 802931e: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  102149. 8029322: 0d1b lsrs r3, r3, #20
  102150. 8029324: 051b lsls r3, r3, #20
  102151. 8029326: 2b00 cmp r3, #0
  102152. 8029328: d1b9 bne.n 802929e <_strtod_l+0x76>
  102153. 802932a: f001 fc73 bl 802ac14 <__errno>
  102154. 802932e: 2322 movs r3, #34 @ 0x22
  102155. 8029330: 6003 str r3, [r0, #0]
  102156. 8029332: e7b4 b.n 802929e <_strtod_l+0x76>
  102157. 8029334: e9dd a314 ldrd sl, r3, [sp, #80] @ 0x50
  102158. 8029338: f202 4233 addw r2, r2, #1075 @ 0x433
  102159. 802933c: f423 1380 bic.w r3, r3, #1048576 @ 0x100000
  102160. 8029340: ea43 5b02 orr.w fp, r3, r2, lsl #20
  102161. 8029344: e7e7 b.n 8029316 <_strtod_l+0xee>
  102162. 8029346: f8df b16c ldr.w fp, [pc, #364] @ 80294b4 <_strtod_l+0x28c>
  102163. 802934a: e7e4 b.n 8029316 <_strtod_l+0xee>
  102164. 802934c: f06f 4b00 mvn.w fp, #2147483648 @ 0x80000000
  102165. 8029350: f04f 3aff mov.w sl, #4294967295 @ 0xffffffff
  102166. 8029354: e7df b.n 8029316 <_strtod_l+0xee>
  102167. 8029356: 9b11 ldr r3, [sp, #68] @ 0x44
  102168. 8029358: 1c5a adds r2, r3, #1
  102169. 802935a: 9211 str r2, [sp, #68] @ 0x44
  102170. 802935c: 785b ldrb r3, [r3, #1]
  102171. 802935e: 2b30 cmp r3, #48 @ 0x30
  102172. 8029360: d0f9 beq.n 8029356 <_strtod_l+0x12e>
  102173. 8029362: 2b00 cmp r3, #0
  102174. 8029364: d09b beq.n 802929e <_strtod_l+0x76>
  102175. 8029366: 2301 movs r3, #1
  102176. 8029368: 2600 movs r6, #0
  102177. 802936a: 9307 str r3, [sp, #28]
  102178. 802936c: 9b11 ldr r3, [sp, #68] @ 0x44
  102179. 802936e: 930a str r3, [sp, #40] @ 0x28
  102180. 8029370: 46b1 mov r9, r6
  102181. 8029372: 4635 mov r5, r6
  102182. 8029374: 220a movs r2, #10
  102183. 8029376: 9811 ldr r0, [sp, #68] @ 0x44
  102184. 8029378: 7804 ldrb r4, [r0, #0]
  102185. 802937a: f1a4 0330 sub.w r3, r4, #48 @ 0x30
  102186. 802937e: b2d9 uxtb r1, r3
  102187. 8029380: 2909 cmp r1, #9
  102188. 8029382: d929 bls.n 80293d8 <_strtod_l+0x1b0>
  102189. 8029384: 494a ldr r1, [pc, #296] @ (80294b0 <_strtod_l+0x288>)
  102190. 8029386: 2201 movs r2, #1
  102191. 8029388: f001 fb82 bl 802aa90 <strncmp>
  102192. 802938c: b378 cbz r0, 80293ee <_strtod_l+0x1c6>
  102193. 802938e: 2000 movs r0, #0
  102194. 8029390: 4622 mov r2, r4
  102195. 8029392: 462b mov r3, r5
  102196. 8029394: 4607 mov r7, r0
  102197. 8029396: 9006 str r0, [sp, #24]
  102198. 8029398: 2a65 cmp r2, #101 @ 0x65
  102199. 802939a: d001 beq.n 80293a0 <_strtod_l+0x178>
  102200. 802939c: 2a45 cmp r2, #69 @ 0x45
  102201. 802939e: d117 bne.n 80293d0 <_strtod_l+0x1a8>
  102202. 80293a0: b91b cbnz r3, 80293aa <_strtod_l+0x182>
  102203. 80293a2: 9b07 ldr r3, [sp, #28]
  102204. 80293a4: 4303 orrs r3, r0
  102205. 80293a6: d096 beq.n 80292d6 <_strtod_l+0xae>
  102206. 80293a8: 2300 movs r3, #0
  102207. 80293aa: f8dd 8044 ldr.w r8, [sp, #68] @ 0x44
  102208. 80293ae: f108 0201 add.w r2, r8, #1
  102209. 80293b2: 9211 str r2, [sp, #68] @ 0x44
  102210. 80293b4: f898 2001 ldrb.w r2, [r8, #1]
  102211. 80293b8: 2a2b cmp r2, #43 @ 0x2b
  102212. 80293ba: d06b beq.n 8029494 <_strtod_l+0x26c>
  102213. 80293bc: 2a2d cmp r2, #45 @ 0x2d
  102214. 80293be: d071 beq.n 80294a4 <_strtod_l+0x27c>
  102215. 80293c0: f04f 0e00 mov.w lr, #0
  102216. 80293c4: f1a2 0430 sub.w r4, r2, #48 @ 0x30
  102217. 80293c8: 2c09 cmp r4, #9
  102218. 80293ca: d979 bls.n 80294c0 <_strtod_l+0x298>
  102219. 80293cc: f8cd 8044 str.w r8, [sp, #68] @ 0x44
  102220. 80293d0: 2400 movs r4, #0
  102221. 80293d2: e094 b.n 80294fe <_strtod_l+0x2d6>
  102222. 80293d4: 2300 movs r3, #0
  102223. 80293d6: e7c7 b.n 8029368 <_strtod_l+0x140>
  102224. 80293d8: 2d08 cmp r5, #8
  102225. 80293da: f100 0001 add.w r0, r0, #1
  102226. 80293de: bfd4 ite le
  102227. 80293e0: fb02 3909 mlale r9, r2, r9, r3
  102228. 80293e4: fb02 3606 mlagt r6, r2, r6, r3
  102229. 80293e8: 3501 adds r5, #1
  102230. 80293ea: 9011 str r0, [sp, #68] @ 0x44
  102231. 80293ec: e7c3 b.n 8029376 <_strtod_l+0x14e>
  102232. 80293ee: 9b11 ldr r3, [sp, #68] @ 0x44
  102233. 80293f0: 1c5a adds r2, r3, #1
  102234. 80293f2: 9211 str r2, [sp, #68] @ 0x44
  102235. 80293f4: 785a ldrb r2, [r3, #1]
  102236. 80293f6: b375 cbz r5, 8029456 <_strtod_l+0x22e>
  102237. 80293f8: 4607 mov r7, r0
  102238. 80293fa: 462b mov r3, r5
  102239. 80293fc: f1a2 0130 sub.w r1, r2, #48 @ 0x30
  102240. 8029400: 2909 cmp r1, #9
  102241. 8029402: d913 bls.n 802942c <_strtod_l+0x204>
  102242. 8029404: 2101 movs r1, #1
  102243. 8029406: 9106 str r1, [sp, #24]
  102244. 8029408: e7c6 b.n 8029398 <_strtod_l+0x170>
  102245. 802940a: 9b11 ldr r3, [sp, #68] @ 0x44
  102246. 802940c: 1c5a adds r2, r3, #1
  102247. 802940e: 9211 str r2, [sp, #68] @ 0x44
  102248. 8029410: 785a ldrb r2, [r3, #1]
  102249. 8029412: 3001 adds r0, #1
  102250. 8029414: 2a30 cmp r2, #48 @ 0x30
  102251. 8029416: d0f8 beq.n 802940a <_strtod_l+0x1e2>
  102252. 8029418: f1a2 0331 sub.w r3, r2, #49 @ 0x31
  102253. 802941c: 2b08 cmp r3, #8
  102254. 802941e: f200 8476 bhi.w 8029d0e <_strtod_l+0xae6>
  102255. 8029422: 9b11 ldr r3, [sp, #68] @ 0x44
  102256. 8029424: 930a str r3, [sp, #40] @ 0x28
  102257. 8029426: 4607 mov r7, r0
  102258. 8029428: 2000 movs r0, #0
  102259. 802942a: 4603 mov r3, r0
  102260. 802942c: 3a30 subs r2, #48 @ 0x30
  102261. 802942e: f100 0101 add.w r1, r0, #1
  102262. 8029432: d023 beq.n 802947c <_strtod_l+0x254>
  102263. 8029434: 440f add r7, r1
  102264. 8029436: eb00 0c03 add.w ip, r0, r3
  102265. 802943a: 4619 mov r1, r3
  102266. 802943c: 240a movs r4, #10
  102267. 802943e: 4561 cmp r1, ip
  102268. 8029440: d10b bne.n 802945a <_strtod_l+0x232>
  102269. 8029442: 1c5c adds r4, r3, #1
  102270. 8029444: 4403 add r3, r0
  102271. 8029446: 2b08 cmp r3, #8
  102272. 8029448: 4404 add r4, r0
  102273. 802944a: dc11 bgt.n 8029470 <_strtod_l+0x248>
  102274. 802944c: 230a movs r3, #10
  102275. 802944e: fb03 2909 mla r9, r3, r9, r2
  102276. 8029452: 2100 movs r1, #0
  102277. 8029454: e013 b.n 802947e <_strtod_l+0x256>
  102278. 8029456: 4628 mov r0, r5
  102279. 8029458: e7dc b.n 8029414 <_strtod_l+0x1ec>
  102280. 802945a: 2908 cmp r1, #8
  102281. 802945c: f101 0101 add.w r1, r1, #1
  102282. 8029460: dc02 bgt.n 8029468 <_strtod_l+0x240>
  102283. 8029462: fb04 f909 mul.w r9, r4, r9
  102284. 8029466: e7ea b.n 802943e <_strtod_l+0x216>
  102285. 8029468: 2910 cmp r1, #16
  102286. 802946a: bfd8 it le
  102287. 802946c: 4366 mulle r6, r4
  102288. 802946e: e7e6 b.n 802943e <_strtod_l+0x216>
  102289. 8029470: 2b0f cmp r3, #15
  102290. 8029472: dcee bgt.n 8029452 <_strtod_l+0x22a>
  102291. 8029474: 230a movs r3, #10
  102292. 8029476: fb03 2606 mla r6, r3, r6, r2
  102293. 802947a: e7ea b.n 8029452 <_strtod_l+0x22a>
  102294. 802947c: 461c mov r4, r3
  102295. 802947e: 9b11 ldr r3, [sp, #68] @ 0x44
  102296. 8029480: 1c5a adds r2, r3, #1
  102297. 8029482: 9211 str r2, [sp, #68] @ 0x44
  102298. 8029484: 785a ldrb r2, [r3, #1]
  102299. 8029486: 4608 mov r0, r1
  102300. 8029488: 4623 mov r3, r4
  102301. 802948a: e7b7 b.n 80293fc <_strtod_l+0x1d4>
  102302. 802948c: 2301 movs r3, #1
  102303. 802948e: 2700 movs r7, #0
  102304. 8029490: 9306 str r3, [sp, #24]
  102305. 8029492: e786 b.n 80293a2 <_strtod_l+0x17a>
  102306. 8029494: f04f 0e00 mov.w lr, #0
  102307. 8029498: f108 0202 add.w r2, r8, #2
  102308. 802949c: 9211 str r2, [sp, #68] @ 0x44
  102309. 802949e: f898 2002 ldrb.w r2, [r8, #2]
  102310. 80294a2: e78f b.n 80293c4 <_strtod_l+0x19c>
  102311. 80294a4: f04f 0e01 mov.w lr, #1
  102312. 80294a8: e7f6 b.n 8029498 <_strtod_l+0x270>
  102313. 80294aa: bf00 nop
  102314. 80294ac: 08031bf4 .word 0x08031bf4
  102315. 80294b0: 08031bdd .word 0x08031bdd
  102316. 80294b4: 7ff00000 .word 0x7ff00000
  102317. 80294b8: 9a11 ldr r2, [sp, #68] @ 0x44
  102318. 80294ba: 1c54 adds r4, r2, #1
  102319. 80294bc: 9411 str r4, [sp, #68] @ 0x44
  102320. 80294be: 7852 ldrb r2, [r2, #1]
  102321. 80294c0: 2a30 cmp r2, #48 @ 0x30
  102322. 80294c2: d0f9 beq.n 80294b8 <_strtod_l+0x290>
  102323. 80294c4: f1a2 0431 sub.w r4, r2, #49 @ 0x31
  102324. 80294c8: 2c08 cmp r4, #8
  102325. 80294ca: d881 bhi.n 80293d0 <_strtod_l+0x1a8>
  102326. 80294cc: f1a2 0c30 sub.w ip, r2, #48 @ 0x30
  102327. 80294d0: 9a11 ldr r2, [sp, #68] @ 0x44
  102328. 80294d2: 9209 str r2, [sp, #36] @ 0x24
  102329. 80294d4: 9a11 ldr r2, [sp, #68] @ 0x44
  102330. 80294d6: 1c51 adds r1, r2, #1
  102331. 80294d8: 9111 str r1, [sp, #68] @ 0x44
  102332. 80294da: 7852 ldrb r2, [r2, #1]
  102333. 80294dc: f1a2 0430 sub.w r4, r2, #48 @ 0x30
  102334. 80294e0: 2c09 cmp r4, #9
  102335. 80294e2: d938 bls.n 8029556 <_strtod_l+0x32e>
  102336. 80294e4: 9c09 ldr r4, [sp, #36] @ 0x24
  102337. 80294e6: 1b0c subs r4, r1, r4
  102338. 80294e8: 2c08 cmp r4, #8
  102339. 80294ea: f644 641f movw r4, #19999 @ 0x4e1f
  102340. 80294ee: dc02 bgt.n 80294f6 <_strtod_l+0x2ce>
  102341. 80294f0: 4564 cmp r4, ip
  102342. 80294f2: bfa8 it ge
  102343. 80294f4: 4664 movge r4, ip
  102344. 80294f6: f1be 0f00 cmp.w lr, #0
  102345. 80294fa: d000 beq.n 80294fe <_strtod_l+0x2d6>
  102346. 80294fc: 4264 negs r4, r4
  102347. 80294fe: 2b00 cmp r3, #0
  102348. 8029500: d14e bne.n 80295a0 <_strtod_l+0x378>
  102349. 8029502: 9b07 ldr r3, [sp, #28]
  102350. 8029504: 4318 orrs r0, r3
  102351. 8029506: f47f aeca bne.w 802929e <_strtod_l+0x76>
  102352. 802950a: 9b06 ldr r3, [sp, #24]
  102353. 802950c: 2b00 cmp r3, #0
  102354. 802950e: f47f aee2 bne.w 80292d6 <_strtod_l+0xae>
  102355. 8029512: 2a69 cmp r2, #105 @ 0x69
  102356. 8029514: d027 beq.n 8029566 <_strtod_l+0x33e>
  102357. 8029516: dc24 bgt.n 8029562 <_strtod_l+0x33a>
  102358. 8029518: 2a49 cmp r2, #73 @ 0x49
  102359. 802951a: d024 beq.n 8029566 <_strtod_l+0x33e>
  102360. 802951c: 2a4e cmp r2, #78 @ 0x4e
  102361. 802951e: f47f aeda bne.w 80292d6 <_strtod_l+0xae>
  102362. 8029522: 4997 ldr r1, [pc, #604] @ (8029780 <_strtod_l+0x558>)
  102363. 8029524: a811 add r0, sp, #68 @ 0x44
  102364. 8029526: f002 fc8d bl 802be44 <__match>
  102365. 802952a: 2800 cmp r0, #0
  102366. 802952c: f43f aed3 beq.w 80292d6 <_strtod_l+0xae>
  102367. 8029530: 9b11 ldr r3, [sp, #68] @ 0x44
  102368. 8029532: 781b ldrb r3, [r3, #0]
  102369. 8029534: 2b28 cmp r3, #40 @ 0x28
  102370. 8029536: d12d bne.n 8029594 <_strtod_l+0x36c>
  102371. 8029538: 4992 ldr r1, [pc, #584] @ (8029784 <_strtod_l+0x55c>)
  102372. 802953a: aa14 add r2, sp, #80 @ 0x50
  102373. 802953c: a811 add r0, sp, #68 @ 0x44
  102374. 802953e: f002 fc95 bl 802be6c <__hexnan>
  102375. 8029542: 2805 cmp r0, #5
  102376. 8029544: d126 bne.n 8029594 <_strtod_l+0x36c>
  102377. 8029546: 9b15 ldr r3, [sp, #84] @ 0x54
  102378. 8029548: f8dd a050 ldr.w sl, [sp, #80] @ 0x50
  102379. 802954c: f043 4bff orr.w fp, r3, #2139095040 @ 0x7f800000
  102380. 8029550: f44b 0be0 orr.w fp, fp, #7340032 @ 0x700000
  102381. 8029554: e6a3 b.n 802929e <_strtod_l+0x76>
  102382. 8029556: 240a movs r4, #10
  102383. 8029558: fb04 2c0c mla ip, r4, ip, r2
  102384. 802955c: f1ac 0c30 sub.w ip, ip, #48 @ 0x30
  102385. 8029560: e7b8 b.n 80294d4 <_strtod_l+0x2ac>
  102386. 8029562: 2a6e cmp r2, #110 @ 0x6e
  102387. 8029564: e7db b.n 802951e <_strtod_l+0x2f6>
  102388. 8029566: 4988 ldr r1, [pc, #544] @ (8029788 <_strtod_l+0x560>)
  102389. 8029568: a811 add r0, sp, #68 @ 0x44
  102390. 802956a: f002 fc6b bl 802be44 <__match>
  102391. 802956e: 2800 cmp r0, #0
  102392. 8029570: f43f aeb1 beq.w 80292d6 <_strtod_l+0xae>
  102393. 8029574: 9b11 ldr r3, [sp, #68] @ 0x44
  102394. 8029576: 4985 ldr r1, [pc, #532] @ (802978c <_strtod_l+0x564>)
  102395. 8029578: 3b01 subs r3, #1
  102396. 802957a: a811 add r0, sp, #68 @ 0x44
  102397. 802957c: 9311 str r3, [sp, #68] @ 0x44
  102398. 802957e: f002 fc61 bl 802be44 <__match>
  102399. 8029582: b910 cbnz r0, 802958a <_strtod_l+0x362>
  102400. 8029584: 9b11 ldr r3, [sp, #68] @ 0x44
  102401. 8029586: 3301 adds r3, #1
  102402. 8029588: 9311 str r3, [sp, #68] @ 0x44
  102403. 802958a: f8df b214 ldr.w fp, [pc, #532] @ 80297a0 <_strtod_l+0x578>
  102404. 802958e: f04f 0a00 mov.w sl, #0
  102405. 8029592: e684 b.n 802929e <_strtod_l+0x76>
  102406. 8029594: 487e ldr r0, [pc, #504] @ (8029790 <_strtod_l+0x568>)
  102407. 8029596: f001 fb7b bl 802ac90 <nan>
  102408. 802959a: ec5b ab10 vmov sl, fp, d0
  102409. 802959e: e67e b.n 802929e <_strtod_l+0x76>
  102410. 80295a0: ee07 9a90 vmov s15, r9
  102411. 80295a4: 1be2 subs r2, r4, r7
  102412. 80295a6: eeb8 7b67 vcvt.f64.u32 d7, s15
  102413. 80295aa: 2d00 cmp r5, #0
  102414. 80295ac: bf08 it eq
  102415. 80295ae: 461d moveq r5, r3
  102416. 80295b0: 2b10 cmp r3, #16
  102417. 80295b2: 9209 str r2, [sp, #36] @ 0x24
  102418. 80295b4: 461a mov r2, r3
  102419. 80295b6: bfa8 it ge
  102420. 80295b8: 2210 movge r2, #16
  102421. 80295ba: 2b09 cmp r3, #9
  102422. 80295bc: ec5b ab17 vmov sl, fp, d7
  102423. 80295c0: dc15 bgt.n 80295ee <_strtod_l+0x3c6>
  102424. 80295c2: 1be1 subs r1, r4, r7
  102425. 80295c4: 2900 cmp r1, #0
  102426. 80295c6: f43f ae6a beq.w 802929e <_strtod_l+0x76>
  102427. 80295ca: eba4 0107 sub.w r1, r4, r7
  102428. 80295ce: dd72 ble.n 80296b6 <_strtod_l+0x48e>
  102429. 80295d0: 2916 cmp r1, #22
  102430. 80295d2: dc59 bgt.n 8029688 <_strtod_l+0x460>
  102431. 80295d4: 4b6f ldr r3, [pc, #444] @ (8029794 <_strtod_l+0x56c>)
  102432. 80295d6: 9a09 ldr r2, [sp, #36] @ 0x24
  102433. 80295d8: eb03 03c2 add.w r3, r3, r2, lsl #3
  102434. 80295dc: ed93 7b00 vldr d7, [r3]
  102435. 80295e0: ec4b ab16 vmov d6, sl, fp
  102436. 80295e4: ee27 7b06 vmul.f64 d7, d7, d6
  102437. 80295e8: ec5b ab17 vmov sl, fp, d7
  102438. 80295ec: e657 b.n 802929e <_strtod_l+0x76>
  102439. 80295ee: 4969 ldr r1, [pc, #420] @ (8029794 <_strtod_l+0x56c>)
  102440. 80295f0: eb01 01c2 add.w r1, r1, r2, lsl #3
  102441. 80295f4: ed11 5b12 vldr d5, [r1, #-72] @ 0xffffffb8
  102442. 80295f8: ee06 6a90 vmov s13, r6
  102443. 80295fc: 2b0f cmp r3, #15
  102444. 80295fe: eeb8 6b66 vcvt.f64.u32 d6, s13
  102445. 8029602: eea7 6b05 vfma.f64 d6, d7, d5
  102446. 8029606: ec5b ab16 vmov sl, fp, d6
  102447. 802960a: ddda ble.n 80295c2 <_strtod_l+0x39a>
  102448. 802960c: 1a9a subs r2, r3, r2
  102449. 802960e: 1be1 subs r1, r4, r7
  102450. 8029610: 440a add r2, r1
  102451. 8029612: 2a00 cmp r2, #0
  102452. 8029614: f340 8094 ble.w 8029740 <_strtod_l+0x518>
  102453. 8029618: f012 000f ands.w r0, r2, #15
  102454. 802961c: d00a beq.n 8029634 <_strtod_l+0x40c>
  102455. 802961e: 495d ldr r1, [pc, #372] @ (8029794 <_strtod_l+0x56c>)
  102456. 8029620: eb01 01c0 add.w r1, r1, r0, lsl #3
  102457. 8029624: ed91 7b00 vldr d7, [r1]
  102458. 8029628: ec4b ab16 vmov d6, sl, fp
  102459. 802962c: ee27 7b06 vmul.f64 d7, d7, d6
  102460. 8029630: ec5b ab17 vmov sl, fp, d7
  102461. 8029634: f032 020f bics.w r2, r2, #15
  102462. 8029638: d073 beq.n 8029722 <_strtod_l+0x4fa>
  102463. 802963a: f5b2 7f9a cmp.w r2, #308 @ 0x134
  102464. 802963e: dd47 ble.n 80296d0 <_strtod_l+0x4a8>
  102465. 8029640: 2400 movs r4, #0
  102466. 8029642: 4625 mov r5, r4
  102467. 8029644: 9407 str r4, [sp, #28]
  102468. 8029646: 4626 mov r6, r4
  102469. 8029648: 9a05 ldr r2, [sp, #20]
  102470. 802964a: f8df b154 ldr.w fp, [pc, #340] @ 80297a0 <_strtod_l+0x578>
  102471. 802964e: 2322 movs r3, #34 @ 0x22
  102472. 8029650: 6013 str r3, [r2, #0]
  102473. 8029652: f04f 0a00 mov.w sl, #0
  102474. 8029656: 9b07 ldr r3, [sp, #28]
  102475. 8029658: 2b00 cmp r3, #0
  102476. 802965a: f43f ae20 beq.w 802929e <_strtod_l+0x76>
  102477. 802965e: 9912 ldr r1, [sp, #72] @ 0x48
  102478. 8029660: 9805 ldr r0, [sp, #20]
  102479. 8029662: f002 fcf1 bl 802c048 <_Bfree>
  102480. 8029666: 9805 ldr r0, [sp, #20]
  102481. 8029668: 4631 mov r1, r6
  102482. 802966a: f002 fced bl 802c048 <_Bfree>
  102483. 802966e: 9805 ldr r0, [sp, #20]
  102484. 8029670: 4629 mov r1, r5
  102485. 8029672: f002 fce9 bl 802c048 <_Bfree>
  102486. 8029676: 9907 ldr r1, [sp, #28]
  102487. 8029678: 9805 ldr r0, [sp, #20]
  102488. 802967a: f002 fce5 bl 802c048 <_Bfree>
  102489. 802967e: 9805 ldr r0, [sp, #20]
  102490. 8029680: 4621 mov r1, r4
  102491. 8029682: f002 fce1 bl 802c048 <_Bfree>
  102492. 8029686: e60a b.n 802929e <_strtod_l+0x76>
  102493. 8029688: f1c3 0125 rsb r1, r3, #37 @ 0x25
  102494. 802968c: 1be0 subs r0, r4, r7
  102495. 802968e: 4281 cmp r1, r0
  102496. 8029690: dbbc blt.n 802960c <_strtod_l+0x3e4>
  102497. 8029692: 4a40 ldr r2, [pc, #256] @ (8029794 <_strtod_l+0x56c>)
  102498. 8029694: f1c3 030f rsb r3, r3, #15
  102499. 8029698: eb02 01c3 add.w r1, r2, r3, lsl #3
  102500. 802969c: ed91 7b00 vldr d7, [r1]
  102501. 80296a0: 9909 ldr r1, [sp, #36] @ 0x24
  102502. 80296a2: ec4b ab16 vmov d6, sl, fp
  102503. 80296a6: 1acb subs r3, r1, r3
  102504. 80296a8: eb02 02c3 add.w r2, r2, r3, lsl #3
  102505. 80296ac: ee27 7b06 vmul.f64 d7, d7, d6
  102506. 80296b0: ed92 6b00 vldr d6, [r2]
  102507. 80296b4: e796 b.n 80295e4 <_strtod_l+0x3bc>
  102508. 80296b6: 3116 adds r1, #22
  102509. 80296b8: dba8 blt.n 802960c <_strtod_l+0x3e4>
  102510. 80296ba: 4b36 ldr r3, [pc, #216] @ (8029794 <_strtod_l+0x56c>)
  102511. 80296bc: 1b3c subs r4, r7, r4
  102512. 80296be: eb03 04c4 add.w r4, r3, r4, lsl #3
  102513. 80296c2: ed94 7b00 vldr d7, [r4]
  102514. 80296c6: ec4b ab16 vmov d6, sl, fp
  102515. 80296ca: ee86 7b07 vdiv.f64 d7, d6, d7
  102516. 80296ce: e78b b.n 80295e8 <_strtod_l+0x3c0>
  102517. 80296d0: 2000 movs r0, #0
  102518. 80296d2: ec4b ab17 vmov d7, sl, fp
  102519. 80296d6: 4e30 ldr r6, [pc, #192] @ (8029798 <_strtod_l+0x570>)
  102520. 80296d8: 1112 asrs r2, r2, #4
  102521. 80296da: 4601 mov r1, r0
  102522. 80296dc: 2a01 cmp r2, #1
  102523. 80296de: dc23 bgt.n 8029728 <_strtod_l+0x500>
  102524. 80296e0: b108 cbz r0, 80296e6 <_strtod_l+0x4be>
  102525. 80296e2: ec5b ab17 vmov sl, fp, d7
  102526. 80296e6: 4a2c ldr r2, [pc, #176] @ (8029798 <_strtod_l+0x570>)
  102527. 80296e8: 482c ldr r0, [pc, #176] @ (802979c <_strtod_l+0x574>)
  102528. 80296ea: eb02 02c1 add.w r2, r2, r1, lsl #3
  102529. 80296ee: ed92 7b00 vldr d7, [r2]
  102530. 80296f2: f1ab 7b54 sub.w fp, fp, #55574528 @ 0x3500000
  102531. 80296f6: ec4b ab16 vmov d6, sl, fp
  102532. 80296fa: 4a29 ldr r2, [pc, #164] @ (80297a0 <_strtod_l+0x578>)
  102533. 80296fc: ee27 7b06 vmul.f64 d7, d7, d6
  102534. 8029700: ee17 1a90 vmov r1, s15
  102535. 8029704: 400a ands r2, r1
  102536. 8029706: 4282 cmp r2, r0
  102537. 8029708: ec5b ab17 vmov sl, fp, d7
  102538. 802970c: d898 bhi.n 8029640 <_strtod_l+0x418>
  102539. 802970e: f5a0 1080 sub.w r0, r0, #1048576 @ 0x100000
  102540. 8029712: 4282 cmp r2, r0
  102541. 8029714: bf86 itte hi
  102542. 8029716: f8df b08c ldrhi.w fp, [pc, #140] @ 80297a4 <_strtod_l+0x57c>
  102543. 802971a: f04f 3aff movhi.w sl, #4294967295 @ 0xffffffff
  102544. 802971e: f101 7b54 addls.w fp, r1, #55574528 @ 0x3500000
  102545. 8029722: 2200 movs r2, #0
  102546. 8029724: 9206 str r2, [sp, #24]
  102547. 8029726: e076 b.n 8029816 <_strtod_l+0x5ee>
  102548. 8029728: f012 0f01 tst.w r2, #1
  102549. 802972c: d004 beq.n 8029738 <_strtod_l+0x510>
  102550. 802972e: ed96 6b00 vldr d6, [r6]
  102551. 8029732: 2001 movs r0, #1
  102552. 8029734: ee27 7b06 vmul.f64 d7, d7, d6
  102553. 8029738: 3101 adds r1, #1
  102554. 802973a: 1052 asrs r2, r2, #1
  102555. 802973c: 3608 adds r6, #8
  102556. 802973e: e7cd b.n 80296dc <_strtod_l+0x4b4>
  102557. 8029740: d0ef beq.n 8029722 <_strtod_l+0x4fa>
  102558. 8029742: 4252 negs r2, r2
  102559. 8029744: f012 000f ands.w r0, r2, #15
  102560. 8029748: d00a beq.n 8029760 <_strtod_l+0x538>
  102561. 802974a: 4912 ldr r1, [pc, #72] @ (8029794 <_strtod_l+0x56c>)
  102562. 802974c: eb01 01c0 add.w r1, r1, r0, lsl #3
  102563. 8029750: ed91 7b00 vldr d7, [r1]
  102564. 8029754: ec4b ab16 vmov d6, sl, fp
  102565. 8029758: ee86 7b07 vdiv.f64 d7, d6, d7
  102566. 802975c: ec5b ab17 vmov sl, fp, d7
  102567. 8029760: 1112 asrs r2, r2, #4
  102568. 8029762: d0de beq.n 8029722 <_strtod_l+0x4fa>
  102569. 8029764: 2a1f cmp r2, #31
  102570. 8029766: dd1f ble.n 80297a8 <_strtod_l+0x580>
  102571. 8029768: 2400 movs r4, #0
  102572. 802976a: 4625 mov r5, r4
  102573. 802976c: 9407 str r4, [sp, #28]
  102574. 802976e: 4626 mov r6, r4
  102575. 8029770: 9a05 ldr r2, [sp, #20]
  102576. 8029772: 2322 movs r3, #34 @ 0x22
  102577. 8029774: f04f 0a00 mov.w sl, #0
  102578. 8029778: f04f 0b00 mov.w fp, #0
  102579. 802977c: 6013 str r3, [r2, #0]
  102580. 802977e: e76a b.n 8029656 <_strtod_l+0x42e>
  102581. 8029780: 08031d3e .word 0x08031d3e
  102582. 8029784: 08031be0 .word 0x08031be0
  102583. 8029788: 08031d36 .word 0x08031d36
  102584. 802978c: 08031dac .word 0x08031dac
  102585. 8029790: 08031da8 .word 0x08031da8
  102586. 8029794: 08031f10 .word 0x08031f10
  102587. 8029798: 08031ee8 .word 0x08031ee8
  102588. 802979c: 7ca00000 .word 0x7ca00000
  102589. 80297a0: 7ff00000 .word 0x7ff00000
  102590. 80297a4: 7fefffff .word 0x7fefffff
  102591. 80297a8: f012 0110 ands.w r1, r2, #16
  102592. 80297ac: bf18 it ne
  102593. 80297ae: 216a movne r1, #106 @ 0x6a
  102594. 80297b0: 9106 str r1, [sp, #24]
  102595. 80297b2: ec4b ab17 vmov d7, sl, fp
  102596. 80297b6: 49b0 ldr r1, [pc, #704] @ (8029a78 <_strtod_l+0x850>)
  102597. 80297b8: 2000 movs r0, #0
  102598. 80297ba: 07d6 lsls r6, r2, #31
  102599. 80297bc: d504 bpl.n 80297c8 <_strtod_l+0x5a0>
  102600. 80297be: ed91 6b00 vldr d6, [r1]
  102601. 80297c2: 2001 movs r0, #1
  102602. 80297c4: ee27 7b06 vmul.f64 d7, d7, d6
  102603. 80297c8: 1052 asrs r2, r2, #1
  102604. 80297ca: f101 0108 add.w r1, r1, #8
  102605. 80297ce: d1f4 bne.n 80297ba <_strtod_l+0x592>
  102606. 80297d0: b108 cbz r0, 80297d6 <_strtod_l+0x5ae>
  102607. 80297d2: ec5b ab17 vmov sl, fp, d7
  102608. 80297d6: 9a06 ldr r2, [sp, #24]
  102609. 80297d8: b1b2 cbz r2, 8029808 <_strtod_l+0x5e0>
  102610. 80297da: f3cb 510a ubfx r1, fp, #20, #11
  102611. 80297de: f1c1 026b rsb r2, r1, #107 @ 0x6b
  102612. 80297e2: 2a00 cmp r2, #0
  102613. 80297e4: 4658 mov r0, fp
  102614. 80297e6: dd0f ble.n 8029808 <_strtod_l+0x5e0>
  102615. 80297e8: 2a1f cmp r2, #31
  102616. 80297ea: dd55 ble.n 8029898 <_strtod_l+0x670>
  102617. 80297ec: 2a34 cmp r2, #52 @ 0x34
  102618. 80297ee: bfde ittt le
  102619. 80297f0: f04f 32ff movle.w r2, #4294967295 @ 0xffffffff
  102620. 80297f4: f1c1 014b rsble r1, r1, #75 @ 0x4b
  102621. 80297f8: 408a lslle r2, r1
  102622. 80297fa: f04f 0a00 mov.w sl, #0
  102623. 80297fe: bfcc ite gt
  102624. 8029800: f04f 7b5c movgt.w fp, #57671680 @ 0x3700000
  102625. 8029804: ea02 0b00 andle.w fp, r2, r0
  102626. 8029808: ec4b ab17 vmov d7, sl, fp
  102627. 802980c: eeb5 7b40 vcmp.f64 d7, #0.0
  102628. 8029810: eef1 fa10 vmrs APSR_nzcv, fpscr
  102629. 8029814: d0a8 beq.n 8029768 <_strtod_l+0x540>
  102630. 8029816: 990a ldr r1, [sp, #40] @ 0x28
  102631. 8029818: 9805 ldr r0, [sp, #20]
  102632. 802981a: f8cd 9000 str.w r9, [sp]
  102633. 802981e: 462a mov r2, r5
  102634. 8029820: f002 fc7a bl 802c118 <__s2b>
  102635. 8029824: 9007 str r0, [sp, #28]
  102636. 8029826: 2800 cmp r0, #0
  102637. 8029828: f43f af0a beq.w 8029640 <_strtod_l+0x418>
  102638. 802982c: 9b09 ldr r3, [sp, #36] @ 0x24
  102639. 802982e: 1b3f subs r7, r7, r4
  102640. 8029830: 2b00 cmp r3, #0
  102641. 8029832: bfb4 ite lt
  102642. 8029834: 463b movlt r3, r7
  102643. 8029836: 2300 movge r3, #0
  102644. 8029838: 930a str r3, [sp, #40] @ 0x28
  102645. 802983a: 9b09 ldr r3, [sp, #36] @ 0x24
  102646. 802983c: ed9f bb8a vldr d11, [pc, #552] @ 8029a68 <_strtod_l+0x840>
  102647. 8029840: ea23 73e3 bic.w r3, r3, r3, asr #31
  102648. 8029844: 2400 movs r4, #0
  102649. 8029846: 930d str r3, [sp, #52] @ 0x34
  102650. 8029848: 4625 mov r5, r4
  102651. 802984a: 9b07 ldr r3, [sp, #28]
  102652. 802984c: 9805 ldr r0, [sp, #20]
  102653. 802984e: 6859 ldr r1, [r3, #4]
  102654. 8029850: f002 fbba bl 802bfc8 <_Balloc>
  102655. 8029854: 4606 mov r6, r0
  102656. 8029856: 2800 cmp r0, #0
  102657. 8029858: f43f aef6 beq.w 8029648 <_strtod_l+0x420>
  102658. 802985c: 9b07 ldr r3, [sp, #28]
  102659. 802985e: 691a ldr r2, [r3, #16]
  102660. 8029860: ec4b ab19 vmov d9, sl, fp
  102661. 8029864: 3202 adds r2, #2
  102662. 8029866: f103 010c add.w r1, r3, #12
  102663. 802986a: 0092 lsls r2, r2, #2
  102664. 802986c: 300c adds r0, #12
  102665. 802986e: f001 f9fe bl 802ac6e <memcpy>
  102666. 8029872: eeb0 0b49 vmov.f64 d0, d9
  102667. 8029876: 9805 ldr r0, [sp, #20]
  102668. 8029878: aa14 add r2, sp, #80 @ 0x50
  102669. 802987a: a913 add r1, sp, #76 @ 0x4c
  102670. 802987c: f002 ff88 bl 802c790 <__d2b>
  102671. 8029880: 9012 str r0, [sp, #72] @ 0x48
  102672. 8029882: 2800 cmp r0, #0
  102673. 8029884: f43f aee0 beq.w 8029648 <_strtod_l+0x420>
  102674. 8029888: 9805 ldr r0, [sp, #20]
  102675. 802988a: 2101 movs r1, #1
  102676. 802988c: f002 fcda bl 802c244 <__i2b>
  102677. 8029890: 4605 mov r5, r0
  102678. 8029892: b940 cbnz r0, 80298a6 <_strtod_l+0x67e>
  102679. 8029894: 2500 movs r5, #0
  102680. 8029896: e6d7 b.n 8029648 <_strtod_l+0x420>
  102681. 8029898: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  102682. 802989c: fa01 f202 lsl.w r2, r1, r2
  102683. 80298a0: ea02 0a0a and.w sl, r2, sl
  102684. 80298a4: e7b0 b.n 8029808 <_strtod_l+0x5e0>
  102685. 80298a6: 9f13 ldr r7, [sp, #76] @ 0x4c
  102686. 80298a8: 9a14 ldr r2, [sp, #80] @ 0x50
  102687. 80298aa: 2f00 cmp r7, #0
  102688. 80298ac: bfab itete ge
  102689. 80298ae: 9b0a ldrge r3, [sp, #40] @ 0x28
  102690. 80298b0: 9b0d ldrlt r3, [sp, #52] @ 0x34
  102691. 80298b2: f8dd 8034 ldrge.w r8, [sp, #52] @ 0x34
  102692. 80298b6: f8dd 9028 ldrlt.w r9, [sp, #40] @ 0x28
  102693. 80298ba: bfac ite ge
  102694. 80298bc: eb07 0903 addge.w r9, r7, r3
  102695. 80298c0: eba3 0807 sublt.w r8, r3, r7
  102696. 80298c4: 9b06 ldr r3, [sp, #24]
  102697. 80298c6: 1aff subs r7, r7, r3
  102698. 80298c8: 4417 add r7, r2
  102699. 80298ca: f1c2 0336 rsb r3, r2, #54 @ 0x36
  102700. 80298ce: 4a6b ldr r2, [pc, #428] @ (8029a7c <_strtod_l+0x854>)
  102701. 80298d0: 3f01 subs r7, #1
  102702. 80298d2: 4297 cmp r7, r2
  102703. 80298d4: da51 bge.n 802997a <_strtod_l+0x752>
  102704. 80298d6: 1bd1 subs r1, r2, r7
  102705. 80298d8: 291f cmp r1, #31
  102706. 80298da: eba3 0301 sub.w r3, r3, r1
  102707. 80298de: f04f 0201 mov.w r2, #1
  102708. 80298e2: dc3e bgt.n 8029962 <_strtod_l+0x73a>
  102709. 80298e4: 408a lsls r2, r1
  102710. 80298e6: 920c str r2, [sp, #48] @ 0x30
  102711. 80298e8: 2200 movs r2, #0
  102712. 80298ea: 920b str r2, [sp, #44] @ 0x2c
  102713. 80298ec: eb09 0703 add.w r7, r9, r3
  102714. 80298f0: 4498 add r8, r3
  102715. 80298f2: 9b06 ldr r3, [sp, #24]
  102716. 80298f4: 45b9 cmp r9, r7
  102717. 80298f6: 4498 add r8, r3
  102718. 80298f8: 464b mov r3, r9
  102719. 80298fa: bfa8 it ge
  102720. 80298fc: 463b movge r3, r7
  102721. 80298fe: 4543 cmp r3, r8
  102722. 8029900: bfa8 it ge
  102723. 8029902: 4643 movge r3, r8
  102724. 8029904: 2b00 cmp r3, #0
  102725. 8029906: bfc2 ittt gt
  102726. 8029908: 1aff subgt r7, r7, r3
  102727. 802990a: eba8 0803 subgt.w r8, r8, r3
  102728. 802990e: eba9 0903 subgt.w r9, r9, r3
  102729. 8029912: 9b0a ldr r3, [sp, #40] @ 0x28
  102730. 8029914: 2b00 cmp r3, #0
  102731. 8029916: dd16 ble.n 8029946 <_strtod_l+0x71e>
  102732. 8029918: 4629 mov r1, r5
  102733. 802991a: 9805 ldr r0, [sp, #20]
  102734. 802991c: 461a mov r2, r3
  102735. 802991e: f002 fd51 bl 802c3c4 <__pow5mult>
  102736. 8029922: 4605 mov r5, r0
  102737. 8029924: 2800 cmp r0, #0
  102738. 8029926: d0b5 beq.n 8029894 <_strtod_l+0x66c>
  102739. 8029928: 4601 mov r1, r0
  102740. 802992a: 9a12 ldr r2, [sp, #72] @ 0x48
  102741. 802992c: 9805 ldr r0, [sp, #20]
  102742. 802992e: f002 fc9f bl 802c270 <__multiply>
  102743. 8029932: 900f str r0, [sp, #60] @ 0x3c
  102744. 8029934: 2800 cmp r0, #0
  102745. 8029936: f43f ae87 beq.w 8029648 <_strtod_l+0x420>
  102746. 802993a: 9912 ldr r1, [sp, #72] @ 0x48
  102747. 802993c: 9805 ldr r0, [sp, #20]
  102748. 802993e: f002 fb83 bl 802c048 <_Bfree>
  102749. 8029942: 9b0f ldr r3, [sp, #60] @ 0x3c
  102750. 8029944: 9312 str r3, [sp, #72] @ 0x48
  102751. 8029946: 2f00 cmp r7, #0
  102752. 8029948: dc1b bgt.n 8029982 <_strtod_l+0x75a>
  102753. 802994a: 9b09 ldr r3, [sp, #36] @ 0x24
  102754. 802994c: 2b00 cmp r3, #0
  102755. 802994e: dd21 ble.n 8029994 <_strtod_l+0x76c>
  102756. 8029950: 4631 mov r1, r6
  102757. 8029952: 9a0d ldr r2, [sp, #52] @ 0x34
  102758. 8029954: 9805 ldr r0, [sp, #20]
  102759. 8029956: f002 fd35 bl 802c3c4 <__pow5mult>
  102760. 802995a: 4606 mov r6, r0
  102761. 802995c: b9d0 cbnz r0, 8029994 <_strtod_l+0x76c>
  102762. 802995e: 2600 movs r6, #0
  102763. 8029960: e672 b.n 8029648 <_strtod_l+0x420>
  102764. 8029962: f1c7 477f rsb r7, r7, #4278190080 @ 0xff000000
  102765. 8029966: f507 077f add.w r7, r7, #16711680 @ 0xff0000
  102766. 802996a: f507 477b add.w r7, r7, #64256 @ 0xfb00
  102767. 802996e: 37e2 adds r7, #226 @ 0xe2
  102768. 8029970: fa02 f107 lsl.w r1, r2, r7
  102769. 8029974: 910b str r1, [sp, #44] @ 0x2c
  102770. 8029976: 920c str r2, [sp, #48] @ 0x30
  102771. 8029978: e7b8 b.n 80298ec <_strtod_l+0x6c4>
  102772. 802997a: 2200 movs r2, #0
  102773. 802997c: 920b str r2, [sp, #44] @ 0x2c
  102774. 802997e: 2201 movs r2, #1
  102775. 8029980: e7f9 b.n 8029976 <_strtod_l+0x74e>
  102776. 8029982: 9912 ldr r1, [sp, #72] @ 0x48
  102777. 8029984: 9805 ldr r0, [sp, #20]
  102778. 8029986: 463a mov r2, r7
  102779. 8029988: f002 fd76 bl 802c478 <__lshift>
  102780. 802998c: 9012 str r0, [sp, #72] @ 0x48
  102781. 802998e: 2800 cmp r0, #0
  102782. 8029990: d1db bne.n 802994a <_strtod_l+0x722>
  102783. 8029992: e659 b.n 8029648 <_strtod_l+0x420>
  102784. 8029994: f1b8 0f00 cmp.w r8, #0
  102785. 8029998: dd07 ble.n 80299aa <_strtod_l+0x782>
  102786. 802999a: 4631 mov r1, r6
  102787. 802999c: 9805 ldr r0, [sp, #20]
  102788. 802999e: 4642 mov r2, r8
  102789. 80299a0: f002 fd6a bl 802c478 <__lshift>
  102790. 80299a4: 4606 mov r6, r0
  102791. 80299a6: 2800 cmp r0, #0
  102792. 80299a8: d0d9 beq.n 802995e <_strtod_l+0x736>
  102793. 80299aa: f1b9 0f00 cmp.w r9, #0
  102794. 80299ae: dd08 ble.n 80299c2 <_strtod_l+0x79a>
  102795. 80299b0: 4629 mov r1, r5
  102796. 80299b2: 9805 ldr r0, [sp, #20]
  102797. 80299b4: 464a mov r2, r9
  102798. 80299b6: f002 fd5f bl 802c478 <__lshift>
  102799. 80299ba: 4605 mov r5, r0
  102800. 80299bc: 2800 cmp r0, #0
  102801. 80299be: f43f ae43 beq.w 8029648 <_strtod_l+0x420>
  102802. 80299c2: 9912 ldr r1, [sp, #72] @ 0x48
  102803. 80299c4: 9805 ldr r0, [sp, #20]
  102804. 80299c6: 4632 mov r2, r6
  102805. 80299c8: f002 fdde bl 802c588 <__mdiff>
  102806. 80299cc: 4604 mov r4, r0
  102807. 80299ce: 2800 cmp r0, #0
  102808. 80299d0: f43f ae3a beq.w 8029648 <_strtod_l+0x420>
  102809. 80299d4: 2300 movs r3, #0
  102810. 80299d6: f8d0 800c ldr.w r8, [r0, #12]
  102811. 80299da: 60c3 str r3, [r0, #12]
  102812. 80299dc: 4629 mov r1, r5
  102813. 80299de: f002 fdb7 bl 802c550 <__mcmp>
  102814. 80299e2: 2800 cmp r0, #0
  102815. 80299e4: da4e bge.n 8029a84 <_strtod_l+0x85c>
  102816. 80299e6: ea58 080a orrs.w r8, r8, sl
  102817. 80299ea: d174 bne.n 8029ad6 <_strtod_l+0x8ae>
  102818. 80299ec: f3cb 0313 ubfx r3, fp, #0, #20
  102819. 80299f0: 2b00 cmp r3, #0
  102820. 80299f2: d170 bne.n 8029ad6 <_strtod_l+0x8ae>
  102821. 80299f4: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  102822. 80299f8: 0d1b lsrs r3, r3, #20
  102823. 80299fa: 051b lsls r3, r3, #20
  102824. 80299fc: f1b3 6fd6 cmp.w r3, #112197632 @ 0x6b00000
  102825. 8029a00: d969 bls.n 8029ad6 <_strtod_l+0x8ae>
  102826. 8029a02: 6963 ldr r3, [r4, #20]
  102827. 8029a04: b913 cbnz r3, 8029a0c <_strtod_l+0x7e4>
  102828. 8029a06: 6923 ldr r3, [r4, #16]
  102829. 8029a08: 2b01 cmp r3, #1
  102830. 8029a0a: dd64 ble.n 8029ad6 <_strtod_l+0x8ae>
  102831. 8029a0c: 4621 mov r1, r4
  102832. 8029a0e: 2201 movs r2, #1
  102833. 8029a10: 9805 ldr r0, [sp, #20]
  102834. 8029a12: f002 fd31 bl 802c478 <__lshift>
  102835. 8029a16: 4629 mov r1, r5
  102836. 8029a18: 4604 mov r4, r0
  102837. 8029a1a: f002 fd99 bl 802c550 <__mcmp>
  102838. 8029a1e: 2800 cmp r0, #0
  102839. 8029a20: dd59 ble.n 8029ad6 <_strtod_l+0x8ae>
  102840. 8029a22: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  102841. 8029a26: 9a06 ldr r2, [sp, #24]
  102842. 8029a28: 0d1b lsrs r3, r3, #20
  102843. 8029a2a: 051b lsls r3, r3, #20
  102844. 8029a2c: 2a00 cmp r2, #0
  102845. 8029a2e: d070 beq.n 8029b12 <_strtod_l+0x8ea>
  102846. 8029a30: f1b3 6fd6 cmp.w r3, #112197632 @ 0x6b00000
  102847. 8029a34: d86d bhi.n 8029b12 <_strtod_l+0x8ea>
  102848. 8029a36: f1b3 7f5c cmp.w r3, #57671680 @ 0x3700000
  102849. 8029a3a: f67f ae99 bls.w 8029770 <_strtod_l+0x548>
  102850. 8029a3e: ed9f 7b0c vldr d7, [pc, #48] @ 8029a70 <_strtod_l+0x848>
  102851. 8029a42: ec4b ab16 vmov d6, sl, fp
  102852. 8029a46: 4b0e ldr r3, [pc, #56] @ (8029a80 <_strtod_l+0x858>)
  102853. 8029a48: ee26 7b07 vmul.f64 d7, d6, d7
  102854. 8029a4c: ee17 2a90 vmov r2, s15
  102855. 8029a50: 4013 ands r3, r2
  102856. 8029a52: ec5b ab17 vmov sl, fp, d7
  102857. 8029a56: 2b00 cmp r3, #0
  102858. 8029a58: f47f ae01 bne.w 802965e <_strtod_l+0x436>
  102859. 8029a5c: 9a05 ldr r2, [sp, #20]
  102860. 8029a5e: 2322 movs r3, #34 @ 0x22
  102861. 8029a60: 6013 str r3, [r2, #0]
  102862. 8029a62: e5fc b.n 802965e <_strtod_l+0x436>
  102863. 8029a64: f3af 8000 nop.w
  102864. 8029a68: ffc00000 .word 0xffc00000
  102865. 8029a6c: 41dfffff .word 0x41dfffff
  102866. 8029a70: 00000000 .word 0x00000000
  102867. 8029a74: 39500000 .word 0x39500000
  102868. 8029a78: 08031c08 .word 0x08031c08
  102869. 8029a7c: fffffc02 .word 0xfffffc02
  102870. 8029a80: 7ff00000 .word 0x7ff00000
  102871. 8029a84: 46d9 mov r9, fp
  102872. 8029a86: d15d bne.n 8029b44 <_strtod_l+0x91c>
  102873. 8029a88: f3cb 0313 ubfx r3, fp, #0, #20
  102874. 8029a8c: f1b8 0f00 cmp.w r8, #0
  102875. 8029a90: d02a beq.n 8029ae8 <_strtod_l+0x8c0>
  102876. 8029a92: 4aab ldr r2, [pc, #684] @ (8029d40 <_strtod_l+0xb18>)
  102877. 8029a94: 4293 cmp r3, r2
  102878. 8029a96: d12a bne.n 8029aee <_strtod_l+0x8c6>
  102879. 8029a98: 9b06 ldr r3, [sp, #24]
  102880. 8029a9a: 4652 mov r2, sl
  102881. 8029a9c: b1fb cbz r3, 8029ade <_strtod_l+0x8b6>
  102882. 8029a9e: 4ba9 ldr r3, [pc, #676] @ (8029d44 <_strtod_l+0xb1c>)
  102883. 8029aa0: ea0b 0303 and.w r3, fp, r3
  102884. 8029aa4: f1b3 6fd4 cmp.w r3, #111149056 @ 0x6a00000
  102885. 8029aa8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  102886. 8029aac: d81a bhi.n 8029ae4 <_strtod_l+0x8bc>
  102887. 8029aae: 0d1b lsrs r3, r3, #20
  102888. 8029ab0: f1c3 036b rsb r3, r3, #107 @ 0x6b
  102889. 8029ab4: fa01 f303 lsl.w r3, r1, r3
  102890. 8029ab8: 429a cmp r2, r3
  102891. 8029aba: d118 bne.n 8029aee <_strtod_l+0x8c6>
  102892. 8029abc: 4ba2 ldr r3, [pc, #648] @ (8029d48 <_strtod_l+0xb20>)
  102893. 8029abe: 4599 cmp r9, r3
  102894. 8029ac0: d102 bne.n 8029ac8 <_strtod_l+0x8a0>
  102895. 8029ac2: 3201 adds r2, #1
  102896. 8029ac4: f43f adc0 beq.w 8029648 <_strtod_l+0x420>
  102897. 8029ac8: 4b9e ldr r3, [pc, #632] @ (8029d44 <_strtod_l+0xb1c>)
  102898. 8029aca: ea09 0303 and.w r3, r9, r3
  102899. 8029ace: f503 1b80 add.w fp, r3, #1048576 @ 0x100000
  102900. 8029ad2: f04f 0a00 mov.w sl, #0
  102901. 8029ad6: 9b06 ldr r3, [sp, #24]
  102902. 8029ad8: 2b00 cmp r3, #0
  102903. 8029ada: d1b0 bne.n 8029a3e <_strtod_l+0x816>
  102904. 8029adc: e5bf b.n 802965e <_strtod_l+0x436>
  102905. 8029ade: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  102906. 8029ae2: e7e9 b.n 8029ab8 <_strtod_l+0x890>
  102907. 8029ae4: 460b mov r3, r1
  102908. 8029ae6: e7e7 b.n 8029ab8 <_strtod_l+0x890>
  102909. 8029ae8: ea53 030a orrs.w r3, r3, sl
  102910. 8029aec: d099 beq.n 8029a22 <_strtod_l+0x7fa>
  102911. 8029aee: 9b0b ldr r3, [sp, #44] @ 0x2c
  102912. 8029af0: b1c3 cbz r3, 8029b24 <_strtod_l+0x8fc>
  102913. 8029af2: ea13 0f09 tst.w r3, r9
  102914. 8029af6: d0ee beq.n 8029ad6 <_strtod_l+0x8ae>
  102915. 8029af8: 9a06 ldr r2, [sp, #24]
  102916. 8029afa: 4650 mov r0, sl
  102917. 8029afc: 4659 mov r1, fp
  102918. 8029afe: f1b8 0f00 cmp.w r8, #0
  102919. 8029b02: d013 beq.n 8029b2c <_strtod_l+0x904>
  102920. 8029b04: f7ff fb74 bl 80291f0 <sulp>
  102921. 8029b08: ee39 7b00 vadd.f64 d7, d9, d0
  102922. 8029b0c: ec5b ab17 vmov sl, fp, d7
  102923. 8029b10: e7e1 b.n 8029ad6 <_strtod_l+0x8ae>
  102924. 8029b12: f5a3 1380 sub.w r3, r3, #1048576 @ 0x100000
  102925. 8029b16: ea6f 5b13 mvn.w fp, r3, lsr #20
  102926. 8029b1a: ea6f 5b0b mvn.w fp, fp, lsl #20
  102927. 8029b1e: f04f 3aff mov.w sl, #4294967295 @ 0xffffffff
  102928. 8029b22: e7d8 b.n 8029ad6 <_strtod_l+0x8ae>
  102929. 8029b24: 9b0c ldr r3, [sp, #48] @ 0x30
  102930. 8029b26: ea13 0f0a tst.w r3, sl
  102931. 8029b2a: e7e4 b.n 8029af6 <_strtod_l+0x8ce>
  102932. 8029b2c: f7ff fb60 bl 80291f0 <sulp>
  102933. 8029b30: ee39 0b40 vsub.f64 d0, d9, d0
  102934. 8029b34: eeb5 0b40 vcmp.f64 d0, #0.0
  102935. 8029b38: eef1 fa10 vmrs APSR_nzcv, fpscr
  102936. 8029b3c: ec5b ab10 vmov sl, fp, d0
  102937. 8029b40: d1c9 bne.n 8029ad6 <_strtod_l+0x8ae>
  102938. 8029b42: e615 b.n 8029770 <_strtod_l+0x548>
  102939. 8029b44: 4629 mov r1, r5
  102940. 8029b46: 4620 mov r0, r4
  102941. 8029b48: f002 fe7a bl 802c840 <__ratio>
  102942. 8029b4c: eeb0 7b00 vmov.f64 d7, #0 @ 0x40000000 2.0
  102943. 8029b50: eeb4 0bc7 vcmpe.f64 d0, d7
  102944. 8029b54: eef1 fa10 vmrs APSR_nzcv, fpscr
  102945. 8029b58: d85d bhi.n 8029c16 <_strtod_l+0x9ee>
  102946. 8029b5a: f1b8 0f00 cmp.w r8, #0
  102947. 8029b5e: d164 bne.n 8029c2a <_strtod_l+0xa02>
  102948. 8029b60: f1ba 0f00 cmp.w sl, #0
  102949. 8029b64: d14b bne.n 8029bfe <_strtod_l+0x9d6>
  102950. 8029b66: f3cb 0313 ubfx r3, fp, #0, #20
  102951. 8029b6a: eeb7 8b00 vmov.f64 d8, #112 @ 0x3f800000 1.0
  102952. 8029b6e: 2b00 cmp r3, #0
  102953. 8029b70: d160 bne.n 8029c34 <_strtod_l+0xa0c>
  102954. 8029b72: eeb4 0bc8 vcmpe.f64 d0, d8
  102955. 8029b76: eeb6 8b00 vmov.f64 d8, #96 @ 0x3f000000 0.5
  102956. 8029b7a: eef1 fa10 vmrs APSR_nzcv, fpscr
  102957. 8029b7e: d401 bmi.n 8029b84 <_strtod_l+0x95c>
  102958. 8029b80: ee20 8b08 vmul.f64 d8, d0, d8
  102959. 8029b84: eeb1 ab48 vneg.f64 d10, d8
  102960. 8029b88: 486e ldr r0, [pc, #440] @ (8029d44 <_strtod_l+0xb1c>)
  102961. 8029b8a: 4970 ldr r1, [pc, #448] @ (8029d4c <_strtod_l+0xb24>)
  102962. 8029b8c: ea09 0700 and.w r7, r9, r0
  102963. 8029b90: 428f cmp r7, r1
  102964. 8029b92: ec53 2b1a vmov r2, r3, d10
  102965. 8029b96: d17d bne.n 8029c94 <_strtod_l+0xa6c>
  102966. 8029b98: f1a9 7b54 sub.w fp, r9, #55574528 @ 0x3500000
  102967. 8029b9c: ec4b ab1c vmov d12, sl, fp
  102968. 8029ba0: eeb0 0b4c vmov.f64 d0, d12
  102969. 8029ba4: f002 fd84 bl 802c6b0 <__ulp>
  102970. 8029ba8: 4866 ldr r0, [pc, #408] @ (8029d44 <_strtod_l+0xb1c>)
  102971. 8029baa: eea0 cb0a vfma.f64 d12, d0, d10
  102972. 8029bae: ee1c 3a90 vmov r3, s25
  102973. 8029bb2: 4a67 ldr r2, [pc, #412] @ (8029d50 <_strtod_l+0xb28>)
  102974. 8029bb4: ea03 0100 and.w r1, r3, r0
  102975. 8029bb8: 4291 cmp r1, r2
  102976. 8029bba: ec5b ab1c vmov sl, fp, d12
  102977. 8029bbe: d93c bls.n 8029c3a <_strtod_l+0xa12>
  102978. 8029bc0: ee19 2a90 vmov r2, s19
  102979. 8029bc4: 4b60 ldr r3, [pc, #384] @ (8029d48 <_strtod_l+0xb20>)
  102980. 8029bc6: 429a cmp r2, r3
  102981. 8029bc8: d104 bne.n 8029bd4 <_strtod_l+0x9ac>
  102982. 8029bca: ee19 3a10 vmov r3, s18
  102983. 8029bce: 3301 adds r3, #1
  102984. 8029bd0: f43f ad3a beq.w 8029648 <_strtod_l+0x420>
  102985. 8029bd4: f8df b170 ldr.w fp, [pc, #368] @ 8029d48 <_strtod_l+0xb20>
  102986. 8029bd8: f04f 3aff mov.w sl, #4294967295 @ 0xffffffff
  102987. 8029bdc: 9912 ldr r1, [sp, #72] @ 0x48
  102988. 8029bde: 9805 ldr r0, [sp, #20]
  102989. 8029be0: f002 fa32 bl 802c048 <_Bfree>
  102990. 8029be4: 9805 ldr r0, [sp, #20]
  102991. 8029be6: 4631 mov r1, r6
  102992. 8029be8: f002 fa2e bl 802c048 <_Bfree>
  102993. 8029bec: 9805 ldr r0, [sp, #20]
  102994. 8029bee: 4629 mov r1, r5
  102995. 8029bf0: f002 fa2a bl 802c048 <_Bfree>
  102996. 8029bf4: 9805 ldr r0, [sp, #20]
  102997. 8029bf6: 4621 mov r1, r4
  102998. 8029bf8: f002 fa26 bl 802c048 <_Bfree>
  102999. 8029bfc: e625 b.n 802984a <_strtod_l+0x622>
  103000. 8029bfe: f1ba 0f01 cmp.w sl, #1
  103001. 8029c02: d103 bne.n 8029c0c <_strtod_l+0x9e4>
  103002. 8029c04: f1bb 0f00 cmp.w fp, #0
  103003. 8029c08: f43f adb2 beq.w 8029770 <_strtod_l+0x548>
  103004. 8029c0c: eebf ab00 vmov.f64 d10, #240 @ 0xbf800000 -1.0
  103005. 8029c10: eeb7 8b00 vmov.f64 d8, #112 @ 0x3f800000 1.0
  103006. 8029c14: e7b8 b.n 8029b88 <_strtod_l+0x960>
  103007. 8029c16: eeb6 8b00 vmov.f64 d8, #96 @ 0x3f000000 0.5
  103008. 8029c1a: ee20 8b08 vmul.f64 d8, d0, d8
  103009. 8029c1e: f1b8 0f00 cmp.w r8, #0
  103010. 8029c22: d0af beq.n 8029b84 <_strtod_l+0x95c>
  103011. 8029c24: eeb0 ab48 vmov.f64 d10, d8
  103012. 8029c28: e7ae b.n 8029b88 <_strtod_l+0x960>
  103013. 8029c2a: eeb7 ab00 vmov.f64 d10, #112 @ 0x3f800000 1.0
  103014. 8029c2e: eeb0 8b4a vmov.f64 d8, d10
  103015. 8029c32: e7a9 b.n 8029b88 <_strtod_l+0x960>
  103016. 8029c34: eebf ab00 vmov.f64 d10, #240 @ 0xbf800000 -1.0
  103017. 8029c38: e7a6 b.n 8029b88 <_strtod_l+0x960>
  103018. 8029c3a: f103 7b54 add.w fp, r3, #55574528 @ 0x3500000
  103019. 8029c3e: 9b06 ldr r3, [sp, #24]
  103020. 8029c40: 46d9 mov r9, fp
  103021. 8029c42: 2b00 cmp r3, #0
  103022. 8029c44: d1ca bne.n 8029bdc <_strtod_l+0x9b4>
  103023. 8029c46: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  103024. 8029c4a: 0d1b lsrs r3, r3, #20
  103025. 8029c4c: 051b lsls r3, r3, #20
  103026. 8029c4e: 429f cmp r7, r3
  103027. 8029c50: d1c4 bne.n 8029bdc <_strtod_l+0x9b4>
  103028. 8029c52: ec51 0b18 vmov r0, r1, d8
  103029. 8029c56: f7d6 fd7f bl 8000758 <__aeabi_d2lz>
  103030. 8029c5a: f7d6 fd37 bl 80006cc <__aeabi_l2d>
  103031. 8029c5e: f3cb 0913 ubfx r9, fp, #0, #20
  103032. 8029c62: ec41 0b17 vmov d7, r0, r1
  103033. 8029c66: ea49 090a orr.w r9, r9, sl
  103034. 8029c6a: ea59 0908 orrs.w r9, r9, r8
  103035. 8029c6e: ee38 8b47 vsub.f64 d8, d8, d7
  103036. 8029c72: d03c beq.n 8029cee <_strtod_l+0xac6>
  103037. 8029c74: ed9f 7b2c vldr d7, [pc, #176] @ 8029d28 <_strtod_l+0xb00>
  103038. 8029c78: eeb4 8bc7 vcmpe.f64 d8, d7
  103039. 8029c7c: eef1 fa10 vmrs APSR_nzcv, fpscr
  103040. 8029c80: f53f aced bmi.w 802965e <_strtod_l+0x436>
  103041. 8029c84: ed9f 7b2a vldr d7, [pc, #168] @ 8029d30 <_strtod_l+0xb08>
  103042. 8029c88: eeb4 8bc7 vcmpe.f64 d8, d7
  103043. 8029c8c: eef1 fa10 vmrs APSR_nzcv, fpscr
  103044. 8029c90: dda4 ble.n 8029bdc <_strtod_l+0x9b4>
  103045. 8029c92: e4e4 b.n 802965e <_strtod_l+0x436>
  103046. 8029c94: 9906 ldr r1, [sp, #24]
  103047. 8029c96: b1e1 cbz r1, 8029cd2 <_strtod_l+0xaaa>
  103048. 8029c98: f1b7 6fd4 cmp.w r7, #111149056 @ 0x6a00000
  103049. 8029c9c: d819 bhi.n 8029cd2 <_strtod_l+0xaaa>
  103050. 8029c9e: eeb4 8bcb vcmpe.f64 d8, d11
  103051. 8029ca2: eef1 fa10 vmrs APSR_nzcv, fpscr
  103052. 8029ca6: d811 bhi.n 8029ccc <_strtod_l+0xaa4>
  103053. 8029ca8: eebc 8bc8 vcvt.u32.f64 s16, d8
  103054. 8029cac: ee18 3a10 vmov r3, s16
  103055. 8029cb0: 2b01 cmp r3, #1
  103056. 8029cb2: bf38 it cc
  103057. 8029cb4: 2301 movcc r3, #1
  103058. 8029cb6: ee08 3a10 vmov s16, r3
  103059. 8029cba: eeb8 8b48 vcvt.f64.u32 d8, s16
  103060. 8029cbe: f1b8 0f00 cmp.w r8, #0
  103061. 8029cc2: d111 bne.n 8029ce8 <_strtod_l+0xac0>
  103062. 8029cc4: eeb1 7b48 vneg.f64 d7, d8
  103063. 8029cc8: ec53 2b17 vmov r2, r3, d7
  103064. 8029ccc: f103 61d6 add.w r1, r3, #112197632 @ 0x6b00000
  103065. 8029cd0: 1bcb subs r3, r1, r7
  103066. 8029cd2: eeb0 0b49 vmov.f64 d0, d9
  103067. 8029cd6: ec43 2b1a vmov d10, r2, r3
  103068. 8029cda: f002 fce9 bl 802c6b0 <__ulp>
  103069. 8029cde: eeaa 9b00 vfma.f64 d9, d10, d0
  103070. 8029ce2: ec5b ab19 vmov sl, fp, d9
  103071. 8029ce6: e7aa b.n 8029c3e <_strtod_l+0xa16>
  103072. 8029ce8: eeb0 7b48 vmov.f64 d7, d8
  103073. 8029cec: e7ec b.n 8029cc8 <_strtod_l+0xaa0>
  103074. 8029cee: ed9f 7b12 vldr d7, [pc, #72] @ 8029d38 <_strtod_l+0xb10>
  103075. 8029cf2: eeb4 8bc7 vcmpe.f64 d8, d7
  103076. 8029cf6: eef1 fa10 vmrs APSR_nzcv, fpscr
  103077. 8029cfa: f57f af6f bpl.w 8029bdc <_strtod_l+0x9b4>
  103078. 8029cfe: e4ae b.n 802965e <_strtod_l+0x436>
  103079. 8029d00: 2300 movs r3, #0
  103080. 8029d02: 9308 str r3, [sp, #32]
  103081. 8029d04: 9a0e ldr r2, [sp, #56] @ 0x38
  103082. 8029d06: 9b11 ldr r3, [sp, #68] @ 0x44
  103083. 8029d08: 6013 str r3, [r2, #0]
  103084. 8029d0a: f7ff bacc b.w 80292a6 <_strtod_l+0x7e>
  103085. 8029d0e: 2a65 cmp r2, #101 @ 0x65
  103086. 8029d10: f43f abbc beq.w 802948c <_strtod_l+0x264>
  103087. 8029d14: 2a45 cmp r2, #69 @ 0x45
  103088. 8029d16: f43f abb9 beq.w 802948c <_strtod_l+0x264>
  103089. 8029d1a: 2301 movs r3, #1
  103090. 8029d1c: 9306 str r3, [sp, #24]
  103091. 8029d1e: f7ff bbf0 b.w 8029502 <_strtod_l+0x2da>
  103092. 8029d22: bf00 nop
  103093. 8029d24: f3af 8000 nop.w
  103094. 8029d28: 94a03595 .word 0x94a03595
  103095. 8029d2c: 3fdfffff .word 0x3fdfffff
  103096. 8029d30: 35afe535 .word 0x35afe535
  103097. 8029d34: 3fe00000 .word 0x3fe00000
  103098. 8029d38: 94a03595 .word 0x94a03595
  103099. 8029d3c: 3fcfffff .word 0x3fcfffff
  103100. 8029d40: 000fffff .word 0x000fffff
  103101. 8029d44: 7ff00000 .word 0x7ff00000
  103102. 8029d48: 7fefffff .word 0x7fefffff
  103103. 8029d4c: 7fe00000 .word 0x7fe00000
  103104. 8029d50: 7c9fffff .word 0x7c9fffff
  103105. 08029d54 <strtod>:
  103106. 8029d54: 460a mov r2, r1
  103107. 8029d56: 4601 mov r1, r0
  103108. 8029d58: 4802 ldr r0, [pc, #8] @ (8029d64 <strtod+0x10>)
  103109. 8029d5a: 4b03 ldr r3, [pc, #12] @ (8029d68 <strtod+0x14>)
  103110. 8029d5c: 6800 ldr r0, [r0, #0]
  103111. 8029d5e: f7ff ba63 b.w 8029228 <_strtod_l>
  103112. 8029d62: bf00 nop
  103113. 8029d64: 240001d4 .word 0x240001d4
  103114. 8029d68: 24000068 .word 0x24000068
  103115. 08029d6c <__cvt>:
  103116. 8029d6c: b5f0 push {r4, r5, r6, r7, lr}
  103117. 8029d6e: ed2d 8b02 vpush {d8}
  103118. 8029d72: eeb0 8b40 vmov.f64 d8, d0
  103119. 8029d76: b085 sub sp, #20
  103120. 8029d78: 4617 mov r7, r2
  103121. 8029d7a: 9d0d ldr r5, [sp, #52] @ 0x34
  103122. 8029d7c: 9e0c ldr r6, [sp, #48] @ 0x30
  103123. 8029d7e: ee18 2a90 vmov r2, s17
  103124. 8029d82: f025 0520 bic.w r5, r5, #32
  103125. 8029d86: 2a00 cmp r2, #0
  103126. 8029d88: bfb6 itet lt
  103127. 8029d8a: 222d movlt r2, #45 @ 0x2d
  103128. 8029d8c: 2200 movge r2, #0
  103129. 8029d8e: eeb1 8b40 vneglt.f64 d8, d0
  103130. 8029d92: 2d46 cmp r5, #70 @ 0x46
  103131. 8029d94: 460c mov r4, r1
  103132. 8029d96: 701a strb r2, [r3, #0]
  103133. 8029d98: d004 beq.n 8029da4 <__cvt+0x38>
  103134. 8029d9a: 2d45 cmp r5, #69 @ 0x45
  103135. 8029d9c: d100 bne.n 8029da0 <__cvt+0x34>
  103136. 8029d9e: 3401 adds r4, #1
  103137. 8029da0: 2102 movs r1, #2
  103138. 8029da2: e000 b.n 8029da6 <__cvt+0x3a>
  103139. 8029da4: 2103 movs r1, #3
  103140. 8029da6: ab03 add r3, sp, #12
  103141. 8029da8: 9301 str r3, [sp, #4]
  103142. 8029daa: ab02 add r3, sp, #8
  103143. 8029dac: 9300 str r3, [sp, #0]
  103144. 8029dae: 4622 mov r2, r4
  103145. 8029db0: 4633 mov r3, r6
  103146. 8029db2: eeb0 0b48 vmov.f64 d0, d8
  103147. 8029db6: f001 f81b bl 802adf0 <_dtoa_r>
  103148. 8029dba: 2d47 cmp r5, #71 @ 0x47
  103149. 8029dbc: d114 bne.n 8029de8 <__cvt+0x7c>
  103150. 8029dbe: 07fb lsls r3, r7, #31
  103151. 8029dc0: d50a bpl.n 8029dd8 <__cvt+0x6c>
  103152. 8029dc2: 1902 adds r2, r0, r4
  103153. 8029dc4: eeb5 8b40 vcmp.f64 d8, #0.0
  103154. 8029dc8: eef1 fa10 vmrs APSR_nzcv, fpscr
  103155. 8029dcc: bf08 it eq
  103156. 8029dce: 9203 streq r2, [sp, #12]
  103157. 8029dd0: 2130 movs r1, #48 @ 0x30
  103158. 8029dd2: 9b03 ldr r3, [sp, #12]
  103159. 8029dd4: 4293 cmp r3, r2
  103160. 8029dd6: d319 bcc.n 8029e0c <__cvt+0xa0>
  103161. 8029dd8: 9b03 ldr r3, [sp, #12]
  103162. 8029dda: 9a0e ldr r2, [sp, #56] @ 0x38
  103163. 8029ddc: 1a1b subs r3, r3, r0
  103164. 8029dde: 6013 str r3, [r2, #0]
  103165. 8029de0: b005 add sp, #20
  103166. 8029de2: ecbd 8b02 vpop {d8}
  103167. 8029de6: bdf0 pop {r4, r5, r6, r7, pc}
  103168. 8029de8: 2d46 cmp r5, #70 @ 0x46
  103169. 8029dea: eb00 0204 add.w r2, r0, r4
  103170. 8029dee: d1e9 bne.n 8029dc4 <__cvt+0x58>
  103171. 8029df0: 7803 ldrb r3, [r0, #0]
  103172. 8029df2: 2b30 cmp r3, #48 @ 0x30
  103173. 8029df4: d107 bne.n 8029e06 <__cvt+0x9a>
  103174. 8029df6: eeb5 8b40 vcmp.f64 d8, #0.0
  103175. 8029dfa: eef1 fa10 vmrs APSR_nzcv, fpscr
  103176. 8029dfe: bf1c itt ne
  103177. 8029e00: f1c4 0401 rsbne r4, r4, #1
  103178. 8029e04: 6034 strne r4, [r6, #0]
  103179. 8029e06: 6833 ldr r3, [r6, #0]
  103180. 8029e08: 441a add r2, r3
  103181. 8029e0a: e7db b.n 8029dc4 <__cvt+0x58>
  103182. 8029e0c: 1c5c adds r4, r3, #1
  103183. 8029e0e: 9403 str r4, [sp, #12]
  103184. 8029e10: 7019 strb r1, [r3, #0]
  103185. 8029e12: e7de b.n 8029dd2 <__cvt+0x66>
  103186. 08029e14 <__exponent>:
  103187. 8029e14: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  103188. 8029e16: 2900 cmp r1, #0
  103189. 8029e18: bfba itte lt
  103190. 8029e1a: 4249 neglt r1, r1
  103191. 8029e1c: 232d movlt r3, #45 @ 0x2d
  103192. 8029e1e: 232b movge r3, #43 @ 0x2b
  103193. 8029e20: 2909 cmp r1, #9
  103194. 8029e22: 7002 strb r2, [r0, #0]
  103195. 8029e24: 7043 strb r3, [r0, #1]
  103196. 8029e26: dd29 ble.n 8029e7c <__exponent+0x68>
  103197. 8029e28: f10d 0307 add.w r3, sp, #7
  103198. 8029e2c: 461d mov r5, r3
  103199. 8029e2e: 270a movs r7, #10
  103200. 8029e30: 461a mov r2, r3
  103201. 8029e32: fbb1 f6f7 udiv r6, r1, r7
  103202. 8029e36: fb07 1416 mls r4, r7, r6, r1
  103203. 8029e3a: 3430 adds r4, #48 @ 0x30
  103204. 8029e3c: f802 4c01 strb.w r4, [r2, #-1]
  103205. 8029e40: 460c mov r4, r1
  103206. 8029e42: 2c63 cmp r4, #99 @ 0x63
  103207. 8029e44: f103 33ff add.w r3, r3, #4294967295 @ 0xffffffff
  103208. 8029e48: 4631 mov r1, r6
  103209. 8029e4a: dcf1 bgt.n 8029e30 <__exponent+0x1c>
  103210. 8029e4c: 3130 adds r1, #48 @ 0x30
  103211. 8029e4e: 1e94 subs r4, r2, #2
  103212. 8029e50: f803 1c01 strb.w r1, [r3, #-1]
  103213. 8029e54: 1c41 adds r1, r0, #1
  103214. 8029e56: 4623 mov r3, r4
  103215. 8029e58: 42ab cmp r3, r5
  103216. 8029e5a: d30a bcc.n 8029e72 <__exponent+0x5e>
  103217. 8029e5c: f10d 0309 add.w r3, sp, #9
  103218. 8029e60: 1a9b subs r3, r3, r2
  103219. 8029e62: 42ac cmp r4, r5
  103220. 8029e64: bf88 it hi
  103221. 8029e66: 2300 movhi r3, #0
  103222. 8029e68: 3302 adds r3, #2
  103223. 8029e6a: 4403 add r3, r0
  103224. 8029e6c: 1a18 subs r0, r3, r0
  103225. 8029e6e: b003 add sp, #12
  103226. 8029e70: bdf0 pop {r4, r5, r6, r7, pc}
  103227. 8029e72: f813 6b01 ldrb.w r6, [r3], #1
  103228. 8029e76: f801 6f01 strb.w r6, [r1, #1]!
  103229. 8029e7a: e7ed b.n 8029e58 <__exponent+0x44>
  103230. 8029e7c: 2330 movs r3, #48 @ 0x30
  103231. 8029e7e: 3130 adds r1, #48 @ 0x30
  103232. 8029e80: 7083 strb r3, [r0, #2]
  103233. 8029e82: 70c1 strb r1, [r0, #3]
  103234. 8029e84: 1d03 adds r3, r0, #4
  103235. 8029e86: e7f1 b.n 8029e6c <__exponent+0x58>
  103236. 08029e88 <_printf_float>:
  103237. 8029e88: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  103238. 8029e8c: b08d sub sp, #52 @ 0x34
  103239. 8029e8e: 460c mov r4, r1
  103240. 8029e90: f8dd 8058 ldr.w r8, [sp, #88] @ 0x58
  103241. 8029e94: 4616 mov r6, r2
  103242. 8029e96: 461f mov r7, r3
  103243. 8029e98: 4605 mov r5, r0
  103244. 8029e9a: f000 fe0b bl 802aab4 <_localeconv_r>
  103245. 8029e9e: f8d0 b000 ldr.w fp, [r0]
  103246. 8029ea2: 4658 mov r0, fp
  103247. 8029ea4: f7d6 fa7c bl 80003a0 <strlen>
  103248. 8029ea8: 2300 movs r3, #0
  103249. 8029eaa: 930a str r3, [sp, #40] @ 0x28
  103250. 8029eac: f8d8 3000 ldr.w r3, [r8]
  103251. 8029eb0: f894 9018 ldrb.w r9, [r4, #24]
  103252. 8029eb4: 6822 ldr r2, [r4, #0]
  103253. 8029eb6: 9005 str r0, [sp, #20]
  103254. 8029eb8: 3307 adds r3, #7
  103255. 8029eba: f023 0307 bic.w r3, r3, #7
  103256. 8029ebe: f103 0108 add.w r1, r3, #8
  103257. 8029ec2: f8c8 1000 str.w r1, [r8]
  103258. 8029ec6: ed93 0b00 vldr d0, [r3]
  103259. 8029eca: ed9f 6b97 vldr d6, [pc, #604] @ 802a128 <_printf_float+0x2a0>
  103260. 8029ece: eeb0 7bc0 vabs.f64 d7, d0
  103261. 8029ed2: eeb4 7b46 vcmp.f64 d7, d6
  103262. 8029ed6: eef1 fa10 vmrs APSR_nzcv, fpscr
  103263. 8029eda: ed84 0b12 vstr d0, [r4, #72] @ 0x48
  103264. 8029ede: dd24 ble.n 8029f2a <_printf_float+0xa2>
  103265. 8029ee0: eeb5 0bc0 vcmpe.f64 d0, #0.0
  103266. 8029ee4: eef1 fa10 vmrs APSR_nzcv, fpscr
  103267. 8029ee8: d502 bpl.n 8029ef0 <_printf_float+0x68>
  103268. 8029eea: 232d movs r3, #45 @ 0x2d
  103269. 8029eec: f884 3043 strb.w r3, [r4, #67] @ 0x43
  103270. 8029ef0: 498f ldr r1, [pc, #572] @ (802a130 <_printf_float+0x2a8>)
  103271. 8029ef2: 4b90 ldr r3, [pc, #576] @ (802a134 <_printf_float+0x2ac>)
  103272. 8029ef4: f1b9 0f47 cmp.w r9, #71 @ 0x47
  103273. 8029ef8: bf94 ite ls
  103274. 8029efa: 4688 movls r8, r1
  103275. 8029efc: 4698 movhi r8, r3
  103276. 8029efe: f022 0204 bic.w r2, r2, #4
  103277. 8029f02: 2303 movs r3, #3
  103278. 8029f04: 6123 str r3, [r4, #16]
  103279. 8029f06: 6022 str r2, [r4, #0]
  103280. 8029f08: f04f 0a00 mov.w sl, #0
  103281. 8029f0c: 9700 str r7, [sp, #0]
  103282. 8029f0e: 4633 mov r3, r6
  103283. 8029f10: aa0b add r2, sp, #44 @ 0x2c
  103284. 8029f12: 4621 mov r1, r4
  103285. 8029f14: 4628 mov r0, r5
  103286. 8029f16: f000 f9d1 bl 802a2bc <_printf_common>
  103287. 8029f1a: 3001 adds r0, #1
  103288. 8029f1c: f040 8089 bne.w 802a032 <_printf_float+0x1aa>
  103289. 8029f20: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  103290. 8029f24: b00d add sp, #52 @ 0x34
  103291. 8029f26: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  103292. 8029f2a: eeb4 0b40 vcmp.f64 d0, d0
  103293. 8029f2e: eef1 fa10 vmrs APSR_nzcv, fpscr
  103294. 8029f32: d709 bvc.n 8029f48 <_printf_float+0xc0>
  103295. 8029f34: ee10 3a90 vmov r3, s1
  103296. 8029f38: 2b00 cmp r3, #0
  103297. 8029f3a: bfbc itt lt
  103298. 8029f3c: 232d movlt r3, #45 @ 0x2d
  103299. 8029f3e: f884 3043 strblt.w r3, [r4, #67] @ 0x43
  103300. 8029f42: 497d ldr r1, [pc, #500] @ (802a138 <_printf_float+0x2b0>)
  103301. 8029f44: 4b7d ldr r3, [pc, #500] @ (802a13c <_printf_float+0x2b4>)
  103302. 8029f46: e7d5 b.n 8029ef4 <_printf_float+0x6c>
  103303. 8029f48: 6863 ldr r3, [r4, #4]
  103304. 8029f4a: 1c59 adds r1, r3, #1
  103305. 8029f4c: f009 0adf and.w sl, r9, #223 @ 0xdf
  103306. 8029f50: d139 bne.n 8029fc6 <_printf_float+0x13e>
  103307. 8029f52: 2306 movs r3, #6
  103308. 8029f54: 6063 str r3, [r4, #4]
  103309. 8029f56: f442 6280 orr.w r2, r2, #1024 @ 0x400
  103310. 8029f5a: 2300 movs r3, #0
  103311. 8029f5c: 6022 str r2, [r4, #0]
  103312. 8029f5e: 9303 str r3, [sp, #12]
  103313. 8029f60: ab0a add r3, sp, #40 @ 0x28
  103314. 8029f62: e9cd 9301 strd r9, r3, [sp, #4]
  103315. 8029f66: ab09 add r3, sp, #36 @ 0x24
  103316. 8029f68: 9300 str r3, [sp, #0]
  103317. 8029f6a: 6861 ldr r1, [r4, #4]
  103318. 8029f6c: f10d 0323 add.w r3, sp, #35 @ 0x23
  103319. 8029f70: 4628 mov r0, r5
  103320. 8029f72: f7ff fefb bl 8029d6c <__cvt>
  103321. 8029f76: f1ba 0f47 cmp.w sl, #71 @ 0x47
  103322. 8029f7a: 9909 ldr r1, [sp, #36] @ 0x24
  103323. 8029f7c: 4680 mov r8, r0
  103324. 8029f7e: d129 bne.n 8029fd4 <_printf_float+0x14c>
  103325. 8029f80: 1cc8 adds r0, r1, #3
  103326. 8029f82: db02 blt.n 8029f8a <_printf_float+0x102>
  103327. 8029f84: 6863 ldr r3, [r4, #4]
  103328. 8029f86: 4299 cmp r1, r3
  103329. 8029f88: dd41 ble.n 802a00e <_printf_float+0x186>
  103330. 8029f8a: f1a9 0902 sub.w r9, r9, #2
  103331. 8029f8e: fa5f f989 uxtb.w r9, r9
  103332. 8029f92: 3901 subs r1, #1
  103333. 8029f94: 464a mov r2, r9
  103334. 8029f96: f104 0050 add.w r0, r4, #80 @ 0x50
  103335. 8029f9a: 9109 str r1, [sp, #36] @ 0x24
  103336. 8029f9c: f7ff ff3a bl 8029e14 <__exponent>
  103337. 8029fa0: 9a0a ldr r2, [sp, #40] @ 0x28
  103338. 8029fa2: 1813 adds r3, r2, r0
  103339. 8029fa4: 2a01 cmp r2, #1
  103340. 8029fa6: 4682 mov sl, r0
  103341. 8029fa8: 6123 str r3, [r4, #16]
  103342. 8029faa: dc02 bgt.n 8029fb2 <_printf_float+0x12a>
  103343. 8029fac: 6822 ldr r2, [r4, #0]
  103344. 8029fae: 07d2 lsls r2, r2, #31
  103345. 8029fb0: d501 bpl.n 8029fb6 <_printf_float+0x12e>
  103346. 8029fb2: 3301 adds r3, #1
  103347. 8029fb4: 6123 str r3, [r4, #16]
  103348. 8029fb6: f89d 3023 ldrb.w r3, [sp, #35] @ 0x23
  103349. 8029fba: 2b00 cmp r3, #0
  103350. 8029fbc: d0a6 beq.n 8029f0c <_printf_float+0x84>
  103351. 8029fbe: 232d movs r3, #45 @ 0x2d
  103352. 8029fc0: f884 3043 strb.w r3, [r4, #67] @ 0x43
  103353. 8029fc4: e7a2 b.n 8029f0c <_printf_float+0x84>
  103354. 8029fc6: f1ba 0f47 cmp.w sl, #71 @ 0x47
  103355. 8029fca: d1c4 bne.n 8029f56 <_printf_float+0xce>
  103356. 8029fcc: 2b00 cmp r3, #0
  103357. 8029fce: d1c2 bne.n 8029f56 <_printf_float+0xce>
  103358. 8029fd0: 2301 movs r3, #1
  103359. 8029fd2: e7bf b.n 8029f54 <_printf_float+0xcc>
  103360. 8029fd4: f1b9 0f65 cmp.w r9, #101 @ 0x65
  103361. 8029fd8: d9db bls.n 8029f92 <_printf_float+0x10a>
  103362. 8029fda: f1b9 0f66 cmp.w r9, #102 @ 0x66
  103363. 8029fde: d118 bne.n 802a012 <_printf_float+0x18a>
  103364. 8029fe0: 2900 cmp r1, #0
  103365. 8029fe2: 6863 ldr r3, [r4, #4]
  103366. 8029fe4: dd0b ble.n 8029ffe <_printf_float+0x176>
  103367. 8029fe6: 6121 str r1, [r4, #16]
  103368. 8029fe8: b913 cbnz r3, 8029ff0 <_printf_float+0x168>
  103369. 8029fea: 6822 ldr r2, [r4, #0]
  103370. 8029fec: 07d0 lsls r0, r2, #31
  103371. 8029fee: d502 bpl.n 8029ff6 <_printf_float+0x16e>
  103372. 8029ff0: 3301 adds r3, #1
  103373. 8029ff2: 440b add r3, r1
  103374. 8029ff4: 6123 str r3, [r4, #16]
  103375. 8029ff6: 65a1 str r1, [r4, #88] @ 0x58
  103376. 8029ff8: f04f 0a00 mov.w sl, #0
  103377. 8029ffc: e7db b.n 8029fb6 <_printf_float+0x12e>
  103378. 8029ffe: b913 cbnz r3, 802a006 <_printf_float+0x17e>
  103379. 802a000: 6822 ldr r2, [r4, #0]
  103380. 802a002: 07d2 lsls r2, r2, #31
  103381. 802a004: d501 bpl.n 802a00a <_printf_float+0x182>
  103382. 802a006: 3302 adds r3, #2
  103383. 802a008: e7f4 b.n 8029ff4 <_printf_float+0x16c>
  103384. 802a00a: 2301 movs r3, #1
  103385. 802a00c: e7f2 b.n 8029ff4 <_printf_float+0x16c>
  103386. 802a00e: f04f 0967 mov.w r9, #103 @ 0x67
  103387. 802a012: 9b0a ldr r3, [sp, #40] @ 0x28
  103388. 802a014: 4299 cmp r1, r3
  103389. 802a016: db05 blt.n 802a024 <_printf_float+0x19c>
  103390. 802a018: 6823 ldr r3, [r4, #0]
  103391. 802a01a: 6121 str r1, [r4, #16]
  103392. 802a01c: 07d8 lsls r0, r3, #31
  103393. 802a01e: d5ea bpl.n 8029ff6 <_printf_float+0x16e>
  103394. 802a020: 1c4b adds r3, r1, #1
  103395. 802a022: e7e7 b.n 8029ff4 <_printf_float+0x16c>
  103396. 802a024: 2900 cmp r1, #0
  103397. 802a026: bfd4 ite le
  103398. 802a028: f1c1 0202 rsble r2, r1, #2
  103399. 802a02c: 2201 movgt r2, #1
  103400. 802a02e: 4413 add r3, r2
  103401. 802a030: e7e0 b.n 8029ff4 <_printf_float+0x16c>
  103402. 802a032: 6823 ldr r3, [r4, #0]
  103403. 802a034: 055a lsls r2, r3, #21
  103404. 802a036: d407 bmi.n 802a048 <_printf_float+0x1c0>
  103405. 802a038: 6923 ldr r3, [r4, #16]
  103406. 802a03a: 4642 mov r2, r8
  103407. 802a03c: 4631 mov r1, r6
  103408. 802a03e: 4628 mov r0, r5
  103409. 802a040: 47b8 blx r7
  103410. 802a042: 3001 adds r0, #1
  103411. 802a044: d12a bne.n 802a09c <_printf_float+0x214>
  103412. 802a046: e76b b.n 8029f20 <_printf_float+0x98>
  103413. 802a048: f1b9 0f65 cmp.w r9, #101 @ 0x65
  103414. 802a04c: f240 80e0 bls.w 802a210 <_printf_float+0x388>
  103415. 802a050: ed94 7b12 vldr d7, [r4, #72] @ 0x48
  103416. 802a054: eeb5 7b40 vcmp.f64 d7, #0.0
  103417. 802a058: eef1 fa10 vmrs APSR_nzcv, fpscr
  103418. 802a05c: d133 bne.n 802a0c6 <_printf_float+0x23e>
  103419. 802a05e: 4a38 ldr r2, [pc, #224] @ (802a140 <_printf_float+0x2b8>)
  103420. 802a060: 2301 movs r3, #1
  103421. 802a062: 4631 mov r1, r6
  103422. 802a064: 4628 mov r0, r5
  103423. 802a066: 47b8 blx r7
  103424. 802a068: 3001 adds r0, #1
  103425. 802a06a: f43f af59 beq.w 8029f20 <_printf_float+0x98>
  103426. 802a06e: e9dd 3809 ldrd r3, r8, [sp, #36] @ 0x24
  103427. 802a072: 4543 cmp r3, r8
  103428. 802a074: db02 blt.n 802a07c <_printf_float+0x1f4>
  103429. 802a076: 6823 ldr r3, [r4, #0]
  103430. 802a078: 07d8 lsls r0, r3, #31
  103431. 802a07a: d50f bpl.n 802a09c <_printf_float+0x214>
  103432. 802a07c: 9b05 ldr r3, [sp, #20]
  103433. 802a07e: 465a mov r2, fp
  103434. 802a080: 4631 mov r1, r6
  103435. 802a082: 4628 mov r0, r5
  103436. 802a084: 47b8 blx r7
  103437. 802a086: 3001 adds r0, #1
  103438. 802a088: f43f af4a beq.w 8029f20 <_printf_float+0x98>
  103439. 802a08c: f04f 0900 mov.w r9, #0
  103440. 802a090: f108 38ff add.w r8, r8, #4294967295 @ 0xffffffff
  103441. 802a094: f104 0a1a add.w sl, r4, #26
  103442. 802a098: 45c8 cmp r8, r9
  103443. 802a09a: dc09 bgt.n 802a0b0 <_printf_float+0x228>
  103444. 802a09c: 6823 ldr r3, [r4, #0]
  103445. 802a09e: 079b lsls r3, r3, #30
  103446. 802a0a0: f100 8107 bmi.w 802a2b2 <_printf_float+0x42a>
  103447. 802a0a4: 68e0 ldr r0, [r4, #12]
  103448. 802a0a6: 9b0b ldr r3, [sp, #44] @ 0x2c
  103449. 802a0a8: 4298 cmp r0, r3
  103450. 802a0aa: bfb8 it lt
  103451. 802a0ac: 4618 movlt r0, r3
  103452. 802a0ae: e739 b.n 8029f24 <_printf_float+0x9c>
  103453. 802a0b0: 2301 movs r3, #1
  103454. 802a0b2: 4652 mov r2, sl
  103455. 802a0b4: 4631 mov r1, r6
  103456. 802a0b6: 4628 mov r0, r5
  103457. 802a0b8: 47b8 blx r7
  103458. 802a0ba: 3001 adds r0, #1
  103459. 802a0bc: f43f af30 beq.w 8029f20 <_printf_float+0x98>
  103460. 802a0c0: f109 0901 add.w r9, r9, #1
  103461. 802a0c4: e7e8 b.n 802a098 <_printf_float+0x210>
  103462. 802a0c6: 9b09 ldr r3, [sp, #36] @ 0x24
  103463. 802a0c8: 2b00 cmp r3, #0
  103464. 802a0ca: dc3b bgt.n 802a144 <_printf_float+0x2bc>
  103465. 802a0cc: 4a1c ldr r2, [pc, #112] @ (802a140 <_printf_float+0x2b8>)
  103466. 802a0ce: 2301 movs r3, #1
  103467. 802a0d0: 4631 mov r1, r6
  103468. 802a0d2: 4628 mov r0, r5
  103469. 802a0d4: 47b8 blx r7
  103470. 802a0d6: 3001 adds r0, #1
  103471. 802a0d8: f43f af22 beq.w 8029f20 <_printf_float+0x98>
  103472. 802a0dc: e9dd 3909 ldrd r3, r9, [sp, #36] @ 0x24
  103473. 802a0e0: ea59 0303 orrs.w r3, r9, r3
  103474. 802a0e4: d102 bne.n 802a0ec <_printf_float+0x264>
  103475. 802a0e6: 6823 ldr r3, [r4, #0]
  103476. 802a0e8: 07d9 lsls r1, r3, #31
  103477. 802a0ea: d5d7 bpl.n 802a09c <_printf_float+0x214>
  103478. 802a0ec: 9b05 ldr r3, [sp, #20]
  103479. 802a0ee: 465a mov r2, fp
  103480. 802a0f0: 4631 mov r1, r6
  103481. 802a0f2: 4628 mov r0, r5
  103482. 802a0f4: 47b8 blx r7
  103483. 802a0f6: 3001 adds r0, #1
  103484. 802a0f8: f43f af12 beq.w 8029f20 <_printf_float+0x98>
  103485. 802a0fc: f04f 0a00 mov.w sl, #0
  103486. 802a100: f104 0b1a add.w fp, r4, #26
  103487. 802a104: 9b09 ldr r3, [sp, #36] @ 0x24
  103488. 802a106: 425b negs r3, r3
  103489. 802a108: 4553 cmp r3, sl
  103490. 802a10a: dc01 bgt.n 802a110 <_printf_float+0x288>
  103491. 802a10c: 464b mov r3, r9
  103492. 802a10e: e794 b.n 802a03a <_printf_float+0x1b2>
  103493. 802a110: 2301 movs r3, #1
  103494. 802a112: 465a mov r2, fp
  103495. 802a114: 4631 mov r1, r6
  103496. 802a116: 4628 mov r0, r5
  103497. 802a118: 47b8 blx r7
  103498. 802a11a: 3001 adds r0, #1
  103499. 802a11c: f43f af00 beq.w 8029f20 <_printf_float+0x98>
  103500. 802a120: f10a 0a01 add.w sl, sl, #1
  103501. 802a124: e7ee b.n 802a104 <_printf_float+0x27c>
  103502. 802a126: bf00 nop
  103503. 802a128: ffffffff .word 0xffffffff
  103504. 802a12c: 7fefffff .word 0x7fefffff
  103505. 802a130: 08031d31 .word 0x08031d31
  103506. 802a134: 08031d35 .word 0x08031d35
  103507. 802a138: 08031d39 .word 0x08031d39
  103508. 802a13c: 08031d3d .word 0x08031d3d
  103509. 802a140: 08031d41 .word 0x08031d41
  103510. 802a144: 6da3 ldr r3, [r4, #88] @ 0x58
  103511. 802a146: f8dd a028 ldr.w sl, [sp, #40] @ 0x28
  103512. 802a14a: 4553 cmp r3, sl
  103513. 802a14c: bfa8 it ge
  103514. 802a14e: 4653 movge r3, sl
  103515. 802a150: 2b00 cmp r3, #0
  103516. 802a152: 4699 mov r9, r3
  103517. 802a154: dc37 bgt.n 802a1c6 <_printf_float+0x33e>
  103518. 802a156: 2300 movs r3, #0
  103519. 802a158: 9307 str r3, [sp, #28]
  103520. 802a15a: ea29 79e9 bic.w r9, r9, r9, asr #31
  103521. 802a15e: f104 021a add.w r2, r4, #26
  103522. 802a162: 6da3 ldr r3, [r4, #88] @ 0x58
  103523. 802a164: 9907 ldr r1, [sp, #28]
  103524. 802a166: 9306 str r3, [sp, #24]
  103525. 802a168: eba3 0309 sub.w r3, r3, r9
  103526. 802a16c: 428b cmp r3, r1
  103527. 802a16e: dc31 bgt.n 802a1d4 <_printf_float+0x34c>
  103528. 802a170: 9b09 ldr r3, [sp, #36] @ 0x24
  103529. 802a172: 459a cmp sl, r3
  103530. 802a174: dc3b bgt.n 802a1ee <_printf_float+0x366>
  103531. 802a176: 6823 ldr r3, [r4, #0]
  103532. 802a178: 07da lsls r2, r3, #31
  103533. 802a17a: d438 bmi.n 802a1ee <_printf_float+0x366>
  103534. 802a17c: 9b09 ldr r3, [sp, #36] @ 0x24
  103535. 802a17e: ebaa 0903 sub.w r9, sl, r3
  103536. 802a182: 9b06 ldr r3, [sp, #24]
  103537. 802a184: ebaa 0303 sub.w r3, sl, r3
  103538. 802a188: 4599 cmp r9, r3
  103539. 802a18a: bfa8 it ge
  103540. 802a18c: 4699 movge r9, r3
  103541. 802a18e: f1b9 0f00 cmp.w r9, #0
  103542. 802a192: dc34 bgt.n 802a1fe <_printf_float+0x376>
  103543. 802a194: f04f 0800 mov.w r8, #0
  103544. 802a198: ea29 79e9 bic.w r9, r9, r9, asr #31
  103545. 802a19c: f104 0b1a add.w fp, r4, #26
  103546. 802a1a0: 9b09 ldr r3, [sp, #36] @ 0x24
  103547. 802a1a2: ebaa 0303 sub.w r3, sl, r3
  103548. 802a1a6: eba3 0309 sub.w r3, r3, r9
  103549. 802a1aa: 4543 cmp r3, r8
  103550. 802a1ac: f77f af76 ble.w 802a09c <_printf_float+0x214>
  103551. 802a1b0: 2301 movs r3, #1
  103552. 802a1b2: 465a mov r2, fp
  103553. 802a1b4: 4631 mov r1, r6
  103554. 802a1b6: 4628 mov r0, r5
  103555. 802a1b8: 47b8 blx r7
  103556. 802a1ba: 3001 adds r0, #1
  103557. 802a1bc: f43f aeb0 beq.w 8029f20 <_printf_float+0x98>
  103558. 802a1c0: f108 0801 add.w r8, r8, #1
  103559. 802a1c4: e7ec b.n 802a1a0 <_printf_float+0x318>
  103560. 802a1c6: 4642 mov r2, r8
  103561. 802a1c8: 4631 mov r1, r6
  103562. 802a1ca: 4628 mov r0, r5
  103563. 802a1cc: 47b8 blx r7
  103564. 802a1ce: 3001 adds r0, #1
  103565. 802a1d0: d1c1 bne.n 802a156 <_printf_float+0x2ce>
  103566. 802a1d2: e6a5 b.n 8029f20 <_printf_float+0x98>
  103567. 802a1d4: 2301 movs r3, #1
  103568. 802a1d6: 4631 mov r1, r6
  103569. 802a1d8: 4628 mov r0, r5
  103570. 802a1da: 9206 str r2, [sp, #24]
  103571. 802a1dc: 47b8 blx r7
  103572. 802a1de: 3001 adds r0, #1
  103573. 802a1e0: f43f ae9e beq.w 8029f20 <_printf_float+0x98>
  103574. 802a1e4: 9b07 ldr r3, [sp, #28]
  103575. 802a1e6: 9a06 ldr r2, [sp, #24]
  103576. 802a1e8: 3301 adds r3, #1
  103577. 802a1ea: 9307 str r3, [sp, #28]
  103578. 802a1ec: e7b9 b.n 802a162 <_printf_float+0x2da>
  103579. 802a1ee: 9b05 ldr r3, [sp, #20]
  103580. 802a1f0: 465a mov r2, fp
  103581. 802a1f2: 4631 mov r1, r6
  103582. 802a1f4: 4628 mov r0, r5
  103583. 802a1f6: 47b8 blx r7
  103584. 802a1f8: 3001 adds r0, #1
  103585. 802a1fa: d1bf bne.n 802a17c <_printf_float+0x2f4>
  103586. 802a1fc: e690 b.n 8029f20 <_printf_float+0x98>
  103587. 802a1fe: 9a06 ldr r2, [sp, #24]
  103588. 802a200: 464b mov r3, r9
  103589. 802a202: 4442 add r2, r8
  103590. 802a204: 4631 mov r1, r6
  103591. 802a206: 4628 mov r0, r5
  103592. 802a208: 47b8 blx r7
  103593. 802a20a: 3001 adds r0, #1
  103594. 802a20c: d1c2 bne.n 802a194 <_printf_float+0x30c>
  103595. 802a20e: e687 b.n 8029f20 <_printf_float+0x98>
  103596. 802a210: f8dd 9028 ldr.w r9, [sp, #40] @ 0x28
  103597. 802a214: f1b9 0f01 cmp.w r9, #1
  103598. 802a218: dc01 bgt.n 802a21e <_printf_float+0x396>
  103599. 802a21a: 07db lsls r3, r3, #31
  103600. 802a21c: d536 bpl.n 802a28c <_printf_float+0x404>
  103601. 802a21e: 2301 movs r3, #1
  103602. 802a220: 4642 mov r2, r8
  103603. 802a222: 4631 mov r1, r6
  103604. 802a224: 4628 mov r0, r5
  103605. 802a226: 47b8 blx r7
  103606. 802a228: 3001 adds r0, #1
  103607. 802a22a: f43f ae79 beq.w 8029f20 <_printf_float+0x98>
  103608. 802a22e: 9b05 ldr r3, [sp, #20]
  103609. 802a230: 465a mov r2, fp
  103610. 802a232: 4631 mov r1, r6
  103611. 802a234: 4628 mov r0, r5
  103612. 802a236: 47b8 blx r7
  103613. 802a238: 3001 adds r0, #1
  103614. 802a23a: f43f ae71 beq.w 8029f20 <_printf_float+0x98>
  103615. 802a23e: ed94 7b12 vldr d7, [r4, #72] @ 0x48
  103616. 802a242: eeb5 7b40 vcmp.f64 d7, #0.0
  103617. 802a246: eef1 fa10 vmrs APSR_nzcv, fpscr
  103618. 802a24a: f109 39ff add.w r9, r9, #4294967295 @ 0xffffffff
  103619. 802a24e: d018 beq.n 802a282 <_printf_float+0x3fa>
  103620. 802a250: 464b mov r3, r9
  103621. 802a252: f108 0201 add.w r2, r8, #1
  103622. 802a256: 4631 mov r1, r6
  103623. 802a258: 4628 mov r0, r5
  103624. 802a25a: 47b8 blx r7
  103625. 802a25c: 3001 adds r0, #1
  103626. 802a25e: d10c bne.n 802a27a <_printf_float+0x3f2>
  103627. 802a260: e65e b.n 8029f20 <_printf_float+0x98>
  103628. 802a262: 2301 movs r3, #1
  103629. 802a264: 465a mov r2, fp
  103630. 802a266: 4631 mov r1, r6
  103631. 802a268: 4628 mov r0, r5
  103632. 802a26a: 47b8 blx r7
  103633. 802a26c: 3001 adds r0, #1
  103634. 802a26e: f43f ae57 beq.w 8029f20 <_printf_float+0x98>
  103635. 802a272: f108 0801 add.w r8, r8, #1
  103636. 802a276: 45c8 cmp r8, r9
  103637. 802a278: dbf3 blt.n 802a262 <_printf_float+0x3da>
  103638. 802a27a: 4653 mov r3, sl
  103639. 802a27c: f104 0250 add.w r2, r4, #80 @ 0x50
  103640. 802a280: e6dc b.n 802a03c <_printf_float+0x1b4>
  103641. 802a282: f04f 0800 mov.w r8, #0
  103642. 802a286: f104 0b1a add.w fp, r4, #26
  103643. 802a28a: e7f4 b.n 802a276 <_printf_float+0x3ee>
  103644. 802a28c: 2301 movs r3, #1
  103645. 802a28e: 4642 mov r2, r8
  103646. 802a290: e7e1 b.n 802a256 <_printf_float+0x3ce>
  103647. 802a292: 2301 movs r3, #1
  103648. 802a294: 464a mov r2, r9
  103649. 802a296: 4631 mov r1, r6
  103650. 802a298: 4628 mov r0, r5
  103651. 802a29a: 47b8 blx r7
  103652. 802a29c: 3001 adds r0, #1
  103653. 802a29e: f43f ae3f beq.w 8029f20 <_printf_float+0x98>
  103654. 802a2a2: f108 0801 add.w r8, r8, #1
  103655. 802a2a6: 68e3 ldr r3, [r4, #12]
  103656. 802a2a8: 990b ldr r1, [sp, #44] @ 0x2c
  103657. 802a2aa: 1a5b subs r3, r3, r1
  103658. 802a2ac: 4543 cmp r3, r8
  103659. 802a2ae: dcf0 bgt.n 802a292 <_printf_float+0x40a>
  103660. 802a2b0: e6f8 b.n 802a0a4 <_printf_float+0x21c>
  103661. 802a2b2: f04f 0800 mov.w r8, #0
  103662. 802a2b6: f104 0919 add.w r9, r4, #25
  103663. 802a2ba: e7f4 b.n 802a2a6 <_printf_float+0x41e>
  103664. 0802a2bc <_printf_common>:
  103665. 802a2bc: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  103666. 802a2c0: 4616 mov r6, r2
  103667. 802a2c2: 4698 mov r8, r3
  103668. 802a2c4: 688a ldr r2, [r1, #8]
  103669. 802a2c6: 690b ldr r3, [r1, #16]
  103670. 802a2c8: f8dd 9020 ldr.w r9, [sp, #32]
  103671. 802a2cc: 4293 cmp r3, r2
  103672. 802a2ce: bfb8 it lt
  103673. 802a2d0: 4613 movlt r3, r2
  103674. 802a2d2: 6033 str r3, [r6, #0]
  103675. 802a2d4: f891 2043 ldrb.w r2, [r1, #67] @ 0x43
  103676. 802a2d8: 4607 mov r7, r0
  103677. 802a2da: 460c mov r4, r1
  103678. 802a2dc: b10a cbz r2, 802a2e2 <_printf_common+0x26>
  103679. 802a2de: 3301 adds r3, #1
  103680. 802a2e0: 6033 str r3, [r6, #0]
  103681. 802a2e2: 6823 ldr r3, [r4, #0]
  103682. 802a2e4: 0699 lsls r1, r3, #26
  103683. 802a2e6: bf42 ittt mi
  103684. 802a2e8: 6833 ldrmi r3, [r6, #0]
  103685. 802a2ea: 3302 addmi r3, #2
  103686. 802a2ec: 6033 strmi r3, [r6, #0]
  103687. 802a2ee: 6825 ldr r5, [r4, #0]
  103688. 802a2f0: f015 0506 ands.w r5, r5, #6
  103689. 802a2f4: d106 bne.n 802a304 <_printf_common+0x48>
  103690. 802a2f6: f104 0a19 add.w sl, r4, #25
  103691. 802a2fa: 68e3 ldr r3, [r4, #12]
  103692. 802a2fc: 6832 ldr r2, [r6, #0]
  103693. 802a2fe: 1a9b subs r3, r3, r2
  103694. 802a300: 42ab cmp r3, r5
  103695. 802a302: dc26 bgt.n 802a352 <_printf_common+0x96>
  103696. 802a304: f894 3043 ldrb.w r3, [r4, #67] @ 0x43
  103697. 802a308: 6822 ldr r2, [r4, #0]
  103698. 802a30a: 3b00 subs r3, #0
  103699. 802a30c: bf18 it ne
  103700. 802a30e: 2301 movne r3, #1
  103701. 802a310: 0692 lsls r2, r2, #26
  103702. 802a312: d42b bmi.n 802a36c <_printf_common+0xb0>
  103703. 802a314: f104 0243 add.w r2, r4, #67 @ 0x43
  103704. 802a318: 4641 mov r1, r8
  103705. 802a31a: 4638 mov r0, r7
  103706. 802a31c: 47c8 blx r9
  103707. 802a31e: 3001 adds r0, #1
  103708. 802a320: d01e beq.n 802a360 <_printf_common+0xa4>
  103709. 802a322: 6823 ldr r3, [r4, #0]
  103710. 802a324: 6922 ldr r2, [r4, #16]
  103711. 802a326: f003 0306 and.w r3, r3, #6
  103712. 802a32a: 2b04 cmp r3, #4
  103713. 802a32c: bf02 ittt eq
  103714. 802a32e: 68e5 ldreq r5, [r4, #12]
  103715. 802a330: 6833 ldreq r3, [r6, #0]
  103716. 802a332: 1aed subeq r5, r5, r3
  103717. 802a334: 68a3 ldr r3, [r4, #8]
  103718. 802a336: bf0c ite eq
  103719. 802a338: ea25 75e5 biceq.w r5, r5, r5, asr #31
  103720. 802a33c: 2500 movne r5, #0
  103721. 802a33e: 4293 cmp r3, r2
  103722. 802a340: bfc4 itt gt
  103723. 802a342: 1a9b subgt r3, r3, r2
  103724. 802a344: 18ed addgt r5, r5, r3
  103725. 802a346: 2600 movs r6, #0
  103726. 802a348: 341a adds r4, #26
  103727. 802a34a: 42b5 cmp r5, r6
  103728. 802a34c: d11a bne.n 802a384 <_printf_common+0xc8>
  103729. 802a34e: 2000 movs r0, #0
  103730. 802a350: e008 b.n 802a364 <_printf_common+0xa8>
  103731. 802a352: 2301 movs r3, #1
  103732. 802a354: 4652 mov r2, sl
  103733. 802a356: 4641 mov r1, r8
  103734. 802a358: 4638 mov r0, r7
  103735. 802a35a: 47c8 blx r9
  103736. 802a35c: 3001 adds r0, #1
  103737. 802a35e: d103 bne.n 802a368 <_printf_common+0xac>
  103738. 802a360: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  103739. 802a364: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  103740. 802a368: 3501 adds r5, #1
  103741. 802a36a: e7c6 b.n 802a2fa <_printf_common+0x3e>
  103742. 802a36c: 18e1 adds r1, r4, r3
  103743. 802a36e: 1c5a adds r2, r3, #1
  103744. 802a370: 2030 movs r0, #48 @ 0x30
  103745. 802a372: f881 0043 strb.w r0, [r1, #67] @ 0x43
  103746. 802a376: 4422 add r2, r4
  103747. 802a378: f894 1045 ldrb.w r1, [r4, #69] @ 0x45
  103748. 802a37c: f882 1043 strb.w r1, [r2, #67] @ 0x43
  103749. 802a380: 3302 adds r3, #2
  103750. 802a382: e7c7 b.n 802a314 <_printf_common+0x58>
  103751. 802a384: 2301 movs r3, #1
  103752. 802a386: 4622 mov r2, r4
  103753. 802a388: 4641 mov r1, r8
  103754. 802a38a: 4638 mov r0, r7
  103755. 802a38c: 47c8 blx r9
  103756. 802a38e: 3001 adds r0, #1
  103757. 802a390: d0e6 beq.n 802a360 <_printf_common+0xa4>
  103758. 802a392: 3601 adds r6, #1
  103759. 802a394: e7d9 b.n 802a34a <_printf_common+0x8e>
  103760. ...
  103761. 0802a398 <_printf_i>:
  103762. 802a398: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}
  103763. 802a39c: 7e0f ldrb r7, [r1, #24]
  103764. 802a39e: 9e0c ldr r6, [sp, #48] @ 0x30
  103765. 802a3a0: 2f78 cmp r7, #120 @ 0x78
  103766. 802a3a2: 4691 mov r9, r2
  103767. 802a3a4: 4680 mov r8, r0
  103768. 802a3a6: 460c mov r4, r1
  103769. 802a3a8: 469a mov sl, r3
  103770. 802a3aa: f101 0243 add.w r2, r1, #67 @ 0x43
  103771. 802a3ae: d807 bhi.n 802a3c0 <_printf_i+0x28>
  103772. 802a3b0: 2f62 cmp r7, #98 @ 0x62
  103773. 802a3b2: d80a bhi.n 802a3ca <_printf_i+0x32>
  103774. 802a3b4: 2f00 cmp r7, #0
  103775. 802a3b6: f000 80d2 beq.w 802a55e <_printf_i+0x1c6>
  103776. 802a3ba: 2f58 cmp r7, #88 @ 0x58
  103777. 802a3bc: f000 80b9 beq.w 802a532 <_printf_i+0x19a>
  103778. 802a3c0: f104 0642 add.w r6, r4, #66 @ 0x42
  103779. 802a3c4: f884 7042 strb.w r7, [r4, #66] @ 0x42
  103780. 802a3c8: e03a b.n 802a440 <_printf_i+0xa8>
  103781. 802a3ca: f1a7 0363 sub.w r3, r7, #99 @ 0x63
  103782. 802a3ce: 2b15 cmp r3, #21
  103783. 802a3d0: d8f6 bhi.n 802a3c0 <_printf_i+0x28>
  103784. 802a3d2: a101 add r1, pc, #4 @ (adr r1, 802a3d8 <_printf_i+0x40>)
  103785. 802a3d4: f851 f023 ldr.w pc, [r1, r3, lsl #2]
  103786. 802a3d8: 0802a431 .word 0x0802a431
  103787. 802a3dc: 0802a445 .word 0x0802a445
  103788. 802a3e0: 0802a3c1 .word 0x0802a3c1
  103789. 802a3e4: 0802a3c1 .word 0x0802a3c1
  103790. 802a3e8: 0802a3c1 .word 0x0802a3c1
  103791. 802a3ec: 0802a3c1 .word 0x0802a3c1
  103792. 802a3f0: 0802a445 .word 0x0802a445
  103793. 802a3f4: 0802a3c1 .word 0x0802a3c1
  103794. 802a3f8: 0802a3c1 .word 0x0802a3c1
  103795. 802a3fc: 0802a3c1 .word 0x0802a3c1
  103796. 802a400: 0802a3c1 .word 0x0802a3c1
  103797. 802a404: 0802a545 .word 0x0802a545
  103798. 802a408: 0802a46f .word 0x0802a46f
  103799. 802a40c: 0802a4ff .word 0x0802a4ff
  103800. 802a410: 0802a3c1 .word 0x0802a3c1
  103801. 802a414: 0802a3c1 .word 0x0802a3c1
  103802. 802a418: 0802a567 .word 0x0802a567
  103803. 802a41c: 0802a3c1 .word 0x0802a3c1
  103804. 802a420: 0802a46f .word 0x0802a46f
  103805. 802a424: 0802a3c1 .word 0x0802a3c1
  103806. 802a428: 0802a3c1 .word 0x0802a3c1
  103807. 802a42c: 0802a507 .word 0x0802a507
  103808. 802a430: 6833 ldr r3, [r6, #0]
  103809. 802a432: 1d1a adds r2, r3, #4
  103810. 802a434: 681b ldr r3, [r3, #0]
  103811. 802a436: 6032 str r2, [r6, #0]
  103812. 802a438: f104 0642 add.w r6, r4, #66 @ 0x42
  103813. 802a43c: f884 3042 strb.w r3, [r4, #66] @ 0x42
  103814. 802a440: 2301 movs r3, #1
  103815. 802a442: e09d b.n 802a580 <_printf_i+0x1e8>
  103816. 802a444: 6833 ldr r3, [r6, #0]
  103817. 802a446: 6820 ldr r0, [r4, #0]
  103818. 802a448: 1d19 adds r1, r3, #4
  103819. 802a44a: 6031 str r1, [r6, #0]
  103820. 802a44c: 0606 lsls r6, r0, #24
  103821. 802a44e: d501 bpl.n 802a454 <_printf_i+0xbc>
  103822. 802a450: 681d ldr r5, [r3, #0]
  103823. 802a452: e003 b.n 802a45c <_printf_i+0xc4>
  103824. 802a454: 0645 lsls r5, r0, #25
  103825. 802a456: d5fb bpl.n 802a450 <_printf_i+0xb8>
  103826. 802a458: f9b3 5000 ldrsh.w r5, [r3]
  103827. 802a45c: 2d00 cmp r5, #0
  103828. 802a45e: da03 bge.n 802a468 <_printf_i+0xd0>
  103829. 802a460: 232d movs r3, #45 @ 0x2d
  103830. 802a462: 426d negs r5, r5
  103831. 802a464: f884 3043 strb.w r3, [r4, #67] @ 0x43
  103832. 802a468: 4859 ldr r0, [pc, #356] @ (802a5d0 <_printf_i+0x238>)
  103833. 802a46a: 230a movs r3, #10
  103834. 802a46c: e011 b.n 802a492 <_printf_i+0xfa>
  103835. 802a46e: 6821 ldr r1, [r4, #0]
  103836. 802a470: 6833 ldr r3, [r6, #0]
  103837. 802a472: 0608 lsls r0, r1, #24
  103838. 802a474: f853 5b04 ldr.w r5, [r3], #4
  103839. 802a478: d402 bmi.n 802a480 <_printf_i+0xe8>
  103840. 802a47a: 0649 lsls r1, r1, #25
  103841. 802a47c: bf48 it mi
  103842. 802a47e: b2ad uxthmi r5, r5
  103843. 802a480: 2f6f cmp r7, #111 @ 0x6f
  103844. 802a482: 4853 ldr r0, [pc, #332] @ (802a5d0 <_printf_i+0x238>)
  103845. 802a484: 6033 str r3, [r6, #0]
  103846. 802a486: bf14 ite ne
  103847. 802a488: 230a movne r3, #10
  103848. 802a48a: 2308 moveq r3, #8
  103849. 802a48c: 2100 movs r1, #0
  103850. 802a48e: f884 1043 strb.w r1, [r4, #67] @ 0x43
  103851. 802a492: 6866 ldr r6, [r4, #4]
  103852. 802a494: 60a6 str r6, [r4, #8]
  103853. 802a496: 2e00 cmp r6, #0
  103854. 802a498: bfa2 ittt ge
  103855. 802a49a: 6821 ldrge r1, [r4, #0]
  103856. 802a49c: f021 0104 bicge.w r1, r1, #4
  103857. 802a4a0: 6021 strge r1, [r4, #0]
  103858. 802a4a2: b90d cbnz r5, 802a4a8 <_printf_i+0x110>
  103859. 802a4a4: 2e00 cmp r6, #0
  103860. 802a4a6: d04b beq.n 802a540 <_printf_i+0x1a8>
  103861. 802a4a8: 4616 mov r6, r2
  103862. 802a4aa: fbb5 f1f3 udiv r1, r5, r3
  103863. 802a4ae: fb03 5711 mls r7, r3, r1, r5
  103864. 802a4b2: 5dc7 ldrb r7, [r0, r7]
  103865. 802a4b4: f806 7d01 strb.w r7, [r6, #-1]!
  103866. 802a4b8: 462f mov r7, r5
  103867. 802a4ba: 42bb cmp r3, r7
  103868. 802a4bc: 460d mov r5, r1
  103869. 802a4be: d9f4 bls.n 802a4aa <_printf_i+0x112>
  103870. 802a4c0: 2b08 cmp r3, #8
  103871. 802a4c2: d10b bne.n 802a4dc <_printf_i+0x144>
  103872. 802a4c4: 6823 ldr r3, [r4, #0]
  103873. 802a4c6: 07df lsls r7, r3, #31
  103874. 802a4c8: d508 bpl.n 802a4dc <_printf_i+0x144>
  103875. 802a4ca: 6923 ldr r3, [r4, #16]
  103876. 802a4cc: 6861 ldr r1, [r4, #4]
  103877. 802a4ce: 4299 cmp r1, r3
  103878. 802a4d0: bfde ittt le
  103879. 802a4d2: 2330 movle r3, #48 @ 0x30
  103880. 802a4d4: f806 3c01 strble.w r3, [r6, #-1]
  103881. 802a4d8: f106 36ff addle.w r6, r6, #4294967295 @ 0xffffffff
  103882. 802a4dc: 1b92 subs r2, r2, r6
  103883. 802a4de: 6122 str r2, [r4, #16]
  103884. 802a4e0: f8cd a000 str.w sl, [sp]
  103885. 802a4e4: 464b mov r3, r9
  103886. 802a4e6: aa03 add r2, sp, #12
  103887. 802a4e8: 4621 mov r1, r4
  103888. 802a4ea: 4640 mov r0, r8
  103889. 802a4ec: f7ff fee6 bl 802a2bc <_printf_common>
  103890. 802a4f0: 3001 adds r0, #1
  103891. 802a4f2: d14a bne.n 802a58a <_printf_i+0x1f2>
  103892. 802a4f4: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  103893. 802a4f8: b004 add sp, #16
  103894. 802a4fa: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  103895. 802a4fe: 6823 ldr r3, [r4, #0]
  103896. 802a500: f043 0320 orr.w r3, r3, #32
  103897. 802a504: 6023 str r3, [r4, #0]
  103898. 802a506: 4833 ldr r0, [pc, #204] @ (802a5d4 <_printf_i+0x23c>)
  103899. 802a508: 2778 movs r7, #120 @ 0x78
  103900. 802a50a: f884 7045 strb.w r7, [r4, #69] @ 0x45
  103901. 802a50e: 6823 ldr r3, [r4, #0]
  103902. 802a510: 6831 ldr r1, [r6, #0]
  103903. 802a512: 061f lsls r7, r3, #24
  103904. 802a514: f851 5b04 ldr.w r5, [r1], #4
  103905. 802a518: d402 bmi.n 802a520 <_printf_i+0x188>
  103906. 802a51a: 065f lsls r7, r3, #25
  103907. 802a51c: bf48 it mi
  103908. 802a51e: b2ad uxthmi r5, r5
  103909. 802a520: 6031 str r1, [r6, #0]
  103910. 802a522: 07d9 lsls r1, r3, #31
  103911. 802a524: bf44 itt mi
  103912. 802a526: f043 0320 orrmi.w r3, r3, #32
  103913. 802a52a: 6023 strmi r3, [r4, #0]
  103914. 802a52c: b11d cbz r5, 802a536 <_printf_i+0x19e>
  103915. 802a52e: 2310 movs r3, #16
  103916. 802a530: e7ac b.n 802a48c <_printf_i+0xf4>
  103917. 802a532: 4827 ldr r0, [pc, #156] @ (802a5d0 <_printf_i+0x238>)
  103918. 802a534: e7e9 b.n 802a50a <_printf_i+0x172>
  103919. 802a536: 6823 ldr r3, [r4, #0]
  103920. 802a538: f023 0320 bic.w r3, r3, #32
  103921. 802a53c: 6023 str r3, [r4, #0]
  103922. 802a53e: e7f6 b.n 802a52e <_printf_i+0x196>
  103923. 802a540: 4616 mov r6, r2
  103924. 802a542: e7bd b.n 802a4c0 <_printf_i+0x128>
  103925. 802a544: 6833 ldr r3, [r6, #0]
  103926. 802a546: 6825 ldr r5, [r4, #0]
  103927. 802a548: 6961 ldr r1, [r4, #20]
  103928. 802a54a: 1d18 adds r0, r3, #4
  103929. 802a54c: 6030 str r0, [r6, #0]
  103930. 802a54e: 062e lsls r6, r5, #24
  103931. 802a550: 681b ldr r3, [r3, #0]
  103932. 802a552: d501 bpl.n 802a558 <_printf_i+0x1c0>
  103933. 802a554: 6019 str r1, [r3, #0]
  103934. 802a556: e002 b.n 802a55e <_printf_i+0x1c6>
  103935. 802a558: 0668 lsls r0, r5, #25
  103936. 802a55a: d5fb bpl.n 802a554 <_printf_i+0x1bc>
  103937. 802a55c: 8019 strh r1, [r3, #0]
  103938. 802a55e: 2300 movs r3, #0
  103939. 802a560: 6123 str r3, [r4, #16]
  103940. 802a562: 4616 mov r6, r2
  103941. 802a564: e7bc b.n 802a4e0 <_printf_i+0x148>
  103942. 802a566: 6833 ldr r3, [r6, #0]
  103943. 802a568: 1d1a adds r2, r3, #4
  103944. 802a56a: 6032 str r2, [r6, #0]
  103945. 802a56c: 681e ldr r6, [r3, #0]
  103946. 802a56e: 6862 ldr r2, [r4, #4]
  103947. 802a570: 2100 movs r1, #0
  103948. 802a572: 4630 mov r0, r6
  103949. 802a574: f7d5 fec4 bl 8000300 <memchr>
  103950. 802a578: b108 cbz r0, 802a57e <_printf_i+0x1e6>
  103951. 802a57a: 1b80 subs r0, r0, r6
  103952. 802a57c: 6060 str r0, [r4, #4]
  103953. 802a57e: 6863 ldr r3, [r4, #4]
  103954. 802a580: 6123 str r3, [r4, #16]
  103955. 802a582: 2300 movs r3, #0
  103956. 802a584: f884 3043 strb.w r3, [r4, #67] @ 0x43
  103957. 802a588: e7aa b.n 802a4e0 <_printf_i+0x148>
  103958. 802a58a: 6923 ldr r3, [r4, #16]
  103959. 802a58c: 4632 mov r2, r6
  103960. 802a58e: 4649 mov r1, r9
  103961. 802a590: 4640 mov r0, r8
  103962. 802a592: 47d0 blx sl
  103963. 802a594: 3001 adds r0, #1
  103964. 802a596: d0ad beq.n 802a4f4 <_printf_i+0x15c>
  103965. 802a598: 6823 ldr r3, [r4, #0]
  103966. 802a59a: 079b lsls r3, r3, #30
  103967. 802a59c: d413 bmi.n 802a5c6 <_printf_i+0x22e>
  103968. 802a59e: 68e0 ldr r0, [r4, #12]
  103969. 802a5a0: 9b03 ldr r3, [sp, #12]
  103970. 802a5a2: 4298 cmp r0, r3
  103971. 802a5a4: bfb8 it lt
  103972. 802a5a6: 4618 movlt r0, r3
  103973. 802a5a8: e7a6 b.n 802a4f8 <_printf_i+0x160>
  103974. 802a5aa: 2301 movs r3, #1
  103975. 802a5ac: 4632 mov r2, r6
  103976. 802a5ae: 4649 mov r1, r9
  103977. 802a5b0: 4640 mov r0, r8
  103978. 802a5b2: 47d0 blx sl
  103979. 802a5b4: 3001 adds r0, #1
  103980. 802a5b6: d09d beq.n 802a4f4 <_printf_i+0x15c>
  103981. 802a5b8: 3501 adds r5, #1
  103982. 802a5ba: 68e3 ldr r3, [r4, #12]
  103983. 802a5bc: 9903 ldr r1, [sp, #12]
  103984. 802a5be: 1a5b subs r3, r3, r1
  103985. 802a5c0: 42ab cmp r3, r5
  103986. 802a5c2: dcf2 bgt.n 802a5aa <_printf_i+0x212>
  103987. 802a5c4: e7eb b.n 802a59e <_printf_i+0x206>
  103988. 802a5c6: 2500 movs r5, #0
  103989. 802a5c8: f104 0619 add.w r6, r4, #25
  103990. 802a5cc: e7f5 b.n 802a5ba <_printf_i+0x222>
  103991. 802a5ce: bf00 nop
  103992. 802a5d0: 08031d43 .word 0x08031d43
  103993. 802a5d4: 08031d54 .word 0x08031d54
  103994. 0802a5d8 <std>:
  103995. 802a5d8: 2300 movs r3, #0
  103996. 802a5da: b510 push {r4, lr}
  103997. 802a5dc: 4604 mov r4, r0
  103998. 802a5de: e9c0 3300 strd r3, r3, [r0]
  103999. 802a5e2: e9c0 3304 strd r3, r3, [r0, #16]
  104000. 802a5e6: 6083 str r3, [r0, #8]
  104001. 802a5e8: 8181 strh r1, [r0, #12]
  104002. 802a5ea: 6643 str r3, [r0, #100] @ 0x64
  104003. 802a5ec: 81c2 strh r2, [r0, #14]
  104004. 802a5ee: 6183 str r3, [r0, #24]
  104005. 802a5f0: 4619 mov r1, r3
  104006. 802a5f2: 2208 movs r2, #8
  104007. 802a5f4: 305c adds r0, #92 @ 0x5c
  104008. 802a5f6: f000 fa43 bl 802aa80 <memset>
  104009. 802a5fa: 4b0d ldr r3, [pc, #52] @ (802a630 <std+0x58>)
  104010. 802a5fc: 6263 str r3, [r4, #36] @ 0x24
  104011. 802a5fe: 4b0d ldr r3, [pc, #52] @ (802a634 <std+0x5c>)
  104012. 802a600: 62a3 str r3, [r4, #40] @ 0x28
  104013. 802a602: 4b0d ldr r3, [pc, #52] @ (802a638 <std+0x60>)
  104014. 802a604: 62e3 str r3, [r4, #44] @ 0x2c
  104015. 802a606: 4b0d ldr r3, [pc, #52] @ (802a63c <std+0x64>)
  104016. 802a608: 6323 str r3, [r4, #48] @ 0x30
  104017. 802a60a: 4b0d ldr r3, [pc, #52] @ (802a640 <std+0x68>)
  104018. 802a60c: 6224 str r4, [r4, #32]
  104019. 802a60e: 429c cmp r4, r3
  104020. 802a610: d006 beq.n 802a620 <std+0x48>
  104021. 802a612: f103 0268 add.w r2, r3, #104 @ 0x68
  104022. 802a616: 4294 cmp r4, r2
  104023. 802a618: d002 beq.n 802a620 <std+0x48>
  104024. 802a61a: 33d0 adds r3, #208 @ 0xd0
  104025. 802a61c: 429c cmp r4, r3
  104026. 802a61e: d105 bne.n 802a62c <std+0x54>
  104027. 802a620: f104 0058 add.w r0, r4, #88 @ 0x58
  104028. 802a624: e8bd 4010 ldmia.w sp!, {r4, lr}
  104029. 802a628: f000 bb1e b.w 802ac68 <__retarget_lock_init_recursive>
  104030. 802a62c: bd10 pop {r4, pc}
  104031. 802a62e: bf00 nop
  104032. 802a630: 0802a87d .word 0x0802a87d
  104033. 802a634: 0802a89f .word 0x0802a89f
  104034. 802a638: 0802a8d7 .word 0x0802a8d7
  104035. 802a63c: 0802a8fb .word 0x0802a8fb
  104036. 802a640: 2402b124 .word 0x2402b124
  104037. 0802a644 <stdio_exit_handler>:
  104038. 802a644: 4a02 ldr r2, [pc, #8] @ (802a650 <stdio_exit_handler+0xc>)
  104039. 802a646: 4903 ldr r1, [pc, #12] @ (802a654 <stdio_exit_handler+0x10>)
  104040. 802a648: 4803 ldr r0, [pc, #12] @ (802a658 <stdio_exit_handler+0x14>)
  104041. 802a64a: f000 b869 b.w 802a720 <_fwalk_sglue>
  104042. 802a64e: bf00 nop
  104043. 802a650: 2400005c .word 0x2400005c
  104044. 802a654: 0802cf8d .word 0x0802cf8d
  104045. 802a658: 240001d8 .word 0x240001d8
  104046. 0802a65c <cleanup_stdio>:
  104047. 802a65c: 6841 ldr r1, [r0, #4]
  104048. 802a65e: 4b0c ldr r3, [pc, #48] @ (802a690 <cleanup_stdio+0x34>)
  104049. 802a660: 4299 cmp r1, r3
  104050. 802a662: b510 push {r4, lr}
  104051. 802a664: 4604 mov r4, r0
  104052. 802a666: d001 beq.n 802a66c <cleanup_stdio+0x10>
  104053. 802a668: f002 fc90 bl 802cf8c <_fflush_r>
  104054. 802a66c: 68a1 ldr r1, [r4, #8]
  104055. 802a66e: 4b09 ldr r3, [pc, #36] @ (802a694 <cleanup_stdio+0x38>)
  104056. 802a670: 4299 cmp r1, r3
  104057. 802a672: d002 beq.n 802a67a <cleanup_stdio+0x1e>
  104058. 802a674: 4620 mov r0, r4
  104059. 802a676: f002 fc89 bl 802cf8c <_fflush_r>
  104060. 802a67a: 68e1 ldr r1, [r4, #12]
  104061. 802a67c: 4b06 ldr r3, [pc, #24] @ (802a698 <cleanup_stdio+0x3c>)
  104062. 802a67e: 4299 cmp r1, r3
  104063. 802a680: d004 beq.n 802a68c <cleanup_stdio+0x30>
  104064. 802a682: 4620 mov r0, r4
  104065. 802a684: e8bd 4010 ldmia.w sp!, {r4, lr}
  104066. 802a688: f002 bc80 b.w 802cf8c <_fflush_r>
  104067. 802a68c: bd10 pop {r4, pc}
  104068. 802a68e: bf00 nop
  104069. 802a690: 2402b124 .word 0x2402b124
  104070. 802a694: 2402b18c .word 0x2402b18c
  104071. 802a698: 2402b1f4 .word 0x2402b1f4
  104072. 0802a69c <global_stdio_init.part.0>:
  104073. 802a69c: b510 push {r4, lr}
  104074. 802a69e: 4b0b ldr r3, [pc, #44] @ (802a6cc <global_stdio_init.part.0+0x30>)
  104075. 802a6a0: 4c0b ldr r4, [pc, #44] @ (802a6d0 <global_stdio_init.part.0+0x34>)
  104076. 802a6a2: 4a0c ldr r2, [pc, #48] @ (802a6d4 <global_stdio_init.part.0+0x38>)
  104077. 802a6a4: 601a str r2, [r3, #0]
  104078. 802a6a6: 4620 mov r0, r4
  104079. 802a6a8: 2200 movs r2, #0
  104080. 802a6aa: 2104 movs r1, #4
  104081. 802a6ac: f7ff ff94 bl 802a5d8 <std>
  104082. 802a6b0: f104 0068 add.w r0, r4, #104 @ 0x68
  104083. 802a6b4: 2201 movs r2, #1
  104084. 802a6b6: 2109 movs r1, #9
  104085. 802a6b8: f7ff ff8e bl 802a5d8 <std>
  104086. 802a6bc: f104 00d0 add.w r0, r4, #208 @ 0xd0
  104087. 802a6c0: 2202 movs r2, #2
  104088. 802a6c2: e8bd 4010 ldmia.w sp!, {r4, lr}
  104089. 802a6c6: 2112 movs r1, #18
  104090. 802a6c8: f7ff bf86 b.w 802a5d8 <std>
  104091. 802a6cc: 2402b25c .word 0x2402b25c
  104092. 802a6d0: 2402b124 .word 0x2402b124
  104093. 802a6d4: 0802a645 .word 0x0802a645
  104094. 0802a6d8 <__sfp_lock_acquire>:
  104095. 802a6d8: 4801 ldr r0, [pc, #4] @ (802a6e0 <__sfp_lock_acquire+0x8>)
  104096. 802a6da: f000 bac6 b.w 802ac6a <__retarget_lock_acquire_recursive>
  104097. 802a6de: bf00 nop
  104098. 802a6e0: 2402b265 .word 0x2402b265
  104099. 0802a6e4 <__sfp_lock_release>:
  104100. 802a6e4: 4801 ldr r0, [pc, #4] @ (802a6ec <__sfp_lock_release+0x8>)
  104101. 802a6e6: f000 bac1 b.w 802ac6c <__retarget_lock_release_recursive>
  104102. 802a6ea: bf00 nop
  104103. 802a6ec: 2402b265 .word 0x2402b265
  104104. 0802a6f0 <__sinit>:
  104105. 802a6f0: b510 push {r4, lr}
  104106. 802a6f2: 4604 mov r4, r0
  104107. 802a6f4: f7ff fff0 bl 802a6d8 <__sfp_lock_acquire>
  104108. 802a6f8: 6a23 ldr r3, [r4, #32]
  104109. 802a6fa: b11b cbz r3, 802a704 <__sinit+0x14>
  104110. 802a6fc: e8bd 4010 ldmia.w sp!, {r4, lr}
  104111. 802a700: f7ff bff0 b.w 802a6e4 <__sfp_lock_release>
  104112. 802a704: 4b04 ldr r3, [pc, #16] @ (802a718 <__sinit+0x28>)
  104113. 802a706: 6223 str r3, [r4, #32]
  104114. 802a708: 4b04 ldr r3, [pc, #16] @ (802a71c <__sinit+0x2c>)
  104115. 802a70a: 681b ldr r3, [r3, #0]
  104116. 802a70c: 2b00 cmp r3, #0
  104117. 802a70e: d1f5 bne.n 802a6fc <__sinit+0xc>
  104118. 802a710: f7ff ffc4 bl 802a69c <global_stdio_init.part.0>
  104119. 802a714: e7f2 b.n 802a6fc <__sinit+0xc>
  104120. 802a716: bf00 nop
  104121. 802a718: 0802a65d .word 0x0802a65d
  104122. 802a71c: 2402b25c .word 0x2402b25c
  104123. 0802a720 <_fwalk_sglue>:
  104124. 802a720: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  104125. 802a724: 4607 mov r7, r0
  104126. 802a726: 4688 mov r8, r1
  104127. 802a728: 4614 mov r4, r2
  104128. 802a72a: 2600 movs r6, #0
  104129. 802a72c: e9d4 9501 ldrd r9, r5, [r4, #4]
  104130. 802a730: f1b9 0901 subs.w r9, r9, #1
  104131. 802a734: d505 bpl.n 802a742 <_fwalk_sglue+0x22>
  104132. 802a736: 6824 ldr r4, [r4, #0]
  104133. 802a738: 2c00 cmp r4, #0
  104134. 802a73a: d1f7 bne.n 802a72c <_fwalk_sglue+0xc>
  104135. 802a73c: 4630 mov r0, r6
  104136. 802a73e: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  104137. 802a742: 89ab ldrh r3, [r5, #12]
  104138. 802a744: 2b01 cmp r3, #1
  104139. 802a746: d907 bls.n 802a758 <_fwalk_sglue+0x38>
  104140. 802a748: f9b5 300e ldrsh.w r3, [r5, #14]
  104141. 802a74c: 3301 adds r3, #1
  104142. 802a74e: d003 beq.n 802a758 <_fwalk_sglue+0x38>
  104143. 802a750: 4629 mov r1, r5
  104144. 802a752: 4638 mov r0, r7
  104145. 802a754: 47c0 blx r8
  104146. 802a756: 4306 orrs r6, r0
  104147. 802a758: 3568 adds r5, #104 @ 0x68
  104148. 802a75a: e7e9 b.n 802a730 <_fwalk_sglue+0x10>
  104149. 0802a75c <iprintf>:
  104150. 802a75c: b40f push {r0, r1, r2, r3}
  104151. 802a75e: b507 push {r0, r1, r2, lr}
  104152. 802a760: 4906 ldr r1, [pc, #24] @ (802a77c <iprintf+0x20>)
  104153. 802a762: ab04 add r3, sp, #16
  104154. 802a764: 6808 ldr r0, [r1, #0]
  104155. 802a766: f853 2b04 ldr.w r2, [r3], #4
  104156. 802a76a: 6881 ldr r1, [r0, #8]
  104157. 802a76c: 9301 str r3, [sp, #4]
  104158. 802a76e: f002 fa71 bl 802cc54 <_vfiprintf_r>
  104159. 802a772: b003 add sp, #12
  104160. 802a774: f85d eb04 ldr.w lr, [sp], #4
  104161. 802a778: b004 add sp, #16
  104162. 802a77a: 4770 bx lr
  104163. 802a77c: 240001d4 .word 0x240001d4
  104164. 0802a780 <_puts_r>:
  104165. 802a780: 6a03 ldr r3, [r0, #32]
  104166. 802a782: b570 push {r4, r5, r6, lr}
  104167. 802a784: 6884 ldr r4, [r0, #8]
  104168. 802a786: 4605 mov r5, r0
  104169. 802a788: 460e mov r6, r1
  104170. 802a78a: b90b cbnz r3, 802a790 <_puts_r+0x10>
  104171. 802a78c: f7ff ffb0 bl 802a6f0 <__sinit>
  104172. 802a790: 6e63 ldr r3, [r4, #100] @ 0x64
  104173. 802a792: 07db lsls r3, r3, #31
  104174. 802a794: d405 bmi.n 802a7a2 <_puts_r+0x22>
  104175. 802a796: 89a3 ldrh r3, [r4, #12]
  104176. 802a798: 0598 lsls r0, r3, #22
  104177. 802a79a: d402 bmi.n 802a7a2 <_puts_r+0x22>
  104178. 802a79c: 6da0 ldr r0, [r4, #88] @ 0x58
  104179. 802a79e: f000 fa64 bl 802ac6a <__retarget_lock_acquire_recursive>
  104180. 802a7a2: 89a3 ldrh r3, [r4, #12]
  104181. 802a7a4: 0719 lsls r1, r3, #28
  104182. 802a7a6: d502 bpl.n 802a7ae <_puts_r+0x2e>
  104183. 802a7a8: 6923 ldr r3, [r4, #16]
  104184. 802a7aa: 2b00 cmp r3, #0
  104185. 802a7ac: d135 bne.n 802a81a <_puts_r+0x9a>
  104186. 802a7ae: 4621 mov r1, r4
  104187. 802a7b0: 4628 mov r0, r5
  104188. 802a7b2: f000 f8e5 bl 802a980 <__swsetup_r>
  104189. 802a7b6: b380 cbz r0, 802a81a <_puts_r+0x9a>
  104190. 802a7b8: f04f 35ff mov.w r5, #4294967295 @ 0xffffffff
  104191. 802a7bc: 6e63 ldr r3, [r4, #100] @ 0x64
  104192. 802a7be: 07da lsls r2, r3, #31
  104193. 802a7c0: d405 bmi.n 802a7ce <_puts_r+0x4e>
  104194. 802a7c2: 89a3 ldrh r3, [r4, #12]
  104195. 802a7c4: 059b lsls r3, r3, #22
  104196. 802a7c6: d402 bmi.n 802a7ce <_puts_r+0x4e>
  104197. 802a7c8: 6da0 ldr r0, [r4, #88] @ 0x58
  104198. 802a7ca: f000 fa4f bl 802ac6c <__retarget_lock_release_recursive>
  104199. 802a7ce: 4628 mov r0, r5
  104200. 802a7d0: bd70 pop {r4, r5, r6, pc}
  104201. 802a7d2: 2b00 cmp r3, #0
  104202. 802a7d4: da04 bge.n 802a7e0 <_puts_r+0x60>
  104203. 802a7d6: 69a2 ldr r2, [r4, #24]
  104204. 802a7d8: 429a cmp r2, r3
  104205. 802a7da: dc17 bgt.n 802a80c <_puts_r+0x8c>
  104206. 802a7dc: 290a cmp r1, #10
  104207. 802a7de: d015 beq.n 802a80c <_puts_r+0x8c>
  104208. 802a7e0: 6823 ldr r3, [r4, #0]
  104209. 802a7e2: 1c5a adds r2, r3, #1
  104210. 802a7e4: 6022 str r2, [r4, #0]
  104211. 802a7e6: 7019 strb r1, [r3, #0]
  104212. 802a7e8: 68a3 ldr r3, [r4, #8]
  104213. 802a7ea: f816 1f01 ldrb.w r1, [r6, #1]!
  104214. 802a7ee: 3b01 subs r3, #1
  104215. 802a7f0: 60a3 str r3, [r4, #8]
  104216. 802a7f2: 2900 cmp r1, #0
  104217. 802a7f4: d1ed bne.n 802a7d2 <_puts_r+0x52>
  104218. 802a7f6: 2b00 cmp r3, #0
  104219. 802a7f8: da11 bge.n 802a81e <_puts_r+0x9e>
  104220. 802a7fa: 4622 mov r2, r4
  104221. 802a7fc: 210a movs r1, #10
  104222. 802a7fe: 4628 mov r0, r5
  104223. 802a800: f000 f87f bl 802a902 <__swbuf_r>
  104224. 802a804: 3001 adds r0, #1
  104225. 802a806: d0d7 beq.n 802a7b8 <_puts_r+0x38>
  104226. 802a808: 250a movs r5, #10
  104227. 802a80a: e7d7 b.n 802a7bc <_puts_r+0x3c>
  104228. 802a80c: 4622 mov r2, r4
  104229. 802a80e: 4628 mov r0, r5
  104230. 802a810: f000 f877 bl 802a902 <__swbuf_r>
  104231. 802a814: 3001 adds r0, #1
  104232. 802a816: d1e7 bne.n 802a7e8 <_puts_r+0x68>
  104233. 802a818: e7ce b.n 802a7b8 <_puts_r+0x38>
  104234. 802a81a: 3e01 subs r6, #1
  104235. 802a81c: e7e4 b.n 802a7e8 <_puts_r+0x68>
  104236. 802a81e: 6823 ldr r3, [r4, #0]
  104237. 802a820: 1c5a adds r2, r3, #1
  104238. 802a822: 6022 str r2, [r4, #0]
  104239. 802a824: 220a movs r2, #10
  104240. 802a826: 701a strb r2, [r3, #0]
  104241. 802a828: e7ee b.n 802a808 <_puts_r+0x88>
  104242. ...
  104243. 0802a82c <puts>:
  104244. 802a82c: 4b02 ldr r3, [pc, #8] @ (802a838 <puts+0xc>)
  104245. 802a82e: 4601 mov r1, r0
  104246. 802a830: 6818 ldr r0, [r3, #0]
  104247. 802a832: f7ff bfa5 b.w 802a780 <_puts_r>
  104248. 802a836: bf00 nop
  104249. 802a838: 240001d4 .word 0x240001d4
  104250. 0802a83c <siprintf>:
  104251. 802a83c: b40e push {r1, r2, r3}
  104252. 802a83e: b500 push {lr}
  104253. 802a840: b09c sub sp, #112 @ 0x70
  104254. 802a842: ab1d add r3, sp, #116 @ 0x74
  104255. 802a844: 9002 str r0, [sp, #8]
  104256. 802a846: 9006 str r0, [sp, #24]
  104257. 802a848: f06f 4100 mvn.w r1, #2147483648 @ 0x80000000
  104258. 802a84c: 4809 ldr r0, [pc, #36] @ (802a874 <siprintf+0x38>)
  104259. 802a84e: 9107 str r1, [sp, #28]
  104260. 802a850: 9104 str r1, [sp, #16]
  104261. 802a852: 4909 ldr r1, [pc, #36] @ (802a878 <siprintf+0x3c>)
  104262. 802a854: f853 2b04 ldr.w r2, [r3], #4
  104263. 802a858: 9105 str r1, [sp, #20]
  104264. 802a85a: 6800 ldr r0, [r0, #0]
  104265. 802a85c: 9301 str r3, [sp, #4]
  104266. 802a85e: a902 add r1, sp, #8
  104267. 802a860: f002 f8d2 bl 802ca08 <_svfiprintf_r>
  104268. 802a864: 9b02 ldr r3, [sp, #8]
  104269. 802a866: 2200 movs r2, #0
  104270. 802a868: 701a strb r2, [r3, #0]
  104271. 802a86a: b01c add sp, #112 @ 0x70
  104272. 802a86c: f85d eb04 ldr.w lr, [sp], #4
  104273. 802a870: b003 add sp, #12
  104274. 802a872: 4770 bx lr
  104275. 802a874: 240001d4 .word 0x240001d4
  104276. 802a878: ffff0208 .word 0xffff0208
  104277. 0802a87c <__sread>:
  104278. 802a87c: b510 push {r4, lr}
  104279. 802a87e: 460c mov r4, r1
  104280. 802a880: f9b1 100e ldrsh.w r1, [r1, #14]
  104281. 802a884: f000 f992 bl 802abac <_read_r>
  104282. 802a888: 2800 cmp r0, #0
  104283. 802a88a: bfab itete ge
  104284. 802a88c: 6d63 ldrge r3, [r4, #84] @ 0x54
  104285. 802a88e: 89a3 ldrhlt r3, [r4, #12]
  104286. 802a890: 181b addge r3, r3, r0
  104287. 802a892: f423 5380 biclt.w r3, r3, #4096 @ 0x1000
  104288. 802a896: bfac ite ge
  104289. 802a898: 6563 strge r3, [r4, #84] @ 0x54
  104290. 802a89a: 81a3 strhlt r3, [r4, #12]
  104291. 802a89c: bd10 pop {r4, pc}
  104292. 0802a89e <__swrite>:
  104293. 802a89e: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  104294. 802a8a2: 461f mov r7, r3
  104295. 802a8a4: 898b ldrh r3, [r1, #12]
  104296. 802a8a6: 05db lsls r3, r3, #23
  104297. 802a8a8: 4605 mov r5, r0
  104298. 802a8aa: 460c mov r4, r1
  104299. 802a8ac: 4616 mov r6, r2
  104300. 802a8ae: d505 bpl.n 802a8bc <__swrite+0x1e>
  104301. 802a8b0: f9b1 100e ldrsh.w r1, [r1, #14]
  104302. 802a8b4: 2302 movs r3, #2
  104303. 802a8b6: 2200 movs r2, #0
  104304. 802a8b8: f000 f966 bl 802ab88 <_lseek_r>
  104305. 802a8bc: 89a3 ldrh r3, [r4, #12]
  104306. 802a8be: f9b4 100e ldrsh.w r1, [r4, #14]
  104307. 802a8c2: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  104308. 802a8c6: 81a3 strh r3, [r4, #12]
  104309. 802a8c8: 4632 mov r2, r6
  104310. 802a8ca: 463b mov r3, r7
  104311. 802a8cc: 4628 mov r0, r5
  104312. 802a8ce: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  104313. 802a8d2: f000 b98d b.w 802abf0 <_write_r>
  104314. 0802a8d6 <__sseek>:
  104315. 802a8d6: b510 push {r4, lr}
  104316. 802a8d8: 460c mov r4, r1
  104317. 802a8da: f9b1 100e ldrsh.w r1, [r1, #14]
  104318. 802a8de: f000 f953 bl 802ab88 <_lseek_r>
  104319. 802a8e2: 1c43 adds r3, r0, #1
  104320. 802a8e4: 89a3 ldrh r3, [r4, #12]
  104321. 802a8e6: bf15 itete ne
  104322. 802a8e8: 6560 strne r0, [r4, #84] @ 0x54
  104323. 802a8ea: f423 5380 biceq.w r3, r3, #4096 @ 0x1000
  104324. 802a8ee: f443 5380 orrne.w r3, r3, #4096 @ 0x1000
  104325. 802a8f2: 81a3 strheq r3, [r4, #12]
  104326. 802a8f4: bf18 it ne
  104327. 802a8f6: 81a3 strhne r3, [r4, #12]
  104328. 802a8f8: bd10 pop {r4, pc}
  104329. 0802a8fa <__sclose>:
  104330. 802a8fa: f9b1 100e ldrsh.w r1, [r1, #14]
  104331. 802a8fe: f000 b8dd b.w 802aabc <_close_r>
  104332. 0802a902 <__swbuf_r>:
  104333. 802a902: b5f8 push {r3, r4, r5, r6, r7, lr}
  104334. 802a904: 460e mov r6, r1
  104335. 802a906: 4614 mov r4, r2
  104336. 802a908: 4605 mov r5, r0
  104337. 802a90a: b118 cbz r0, 802a914 <__swbuf_r+0x12>
  104338. 802a90c: 6a03 ldr r3, [r0, #32]
  104339. 802a90e: b90b cbnz r3, 802a914 <__swbuf_r+0x12>
  104340. 802a910: f7ff feee bl 802a6f0 <__sinit>
  104341. 802a914: 69a3 ldr r3, [r4, #24]
  104342. 802a916: 60a3 str r3, [r4, #8]
  104343. 802a918: 89a3 ldrh r3, [r4, #12]
  104344. 802a91a: 071a lsls r2, r3, #28
  104345. 802a91c: d501 bpl.n 802a922 <__swbuf_r+0x20>
  104346. 802a91e: 6923 ldr r3, [r4, #16]
  104347. 802a920: b943 cbnz r3, 802a934 <__swbuf_r+0x32>
  104348. 802a922: 4621 mov r1, r4
  104349. 802a924: 4628 mov r0, r5
  104350. 802a926: f000 f82b bl 802a980 <__swsetup_r>
  104351. 802a92a: b118 cbz r0, 802a934 <__swbuf_r+0x32>
  104352. 802a92c: f04f 37ff mov.w r7, #4294967295 @ 0xffffffff
  104353. 802a930: 4638 mov r0, r7
  104354. 802a932: bdf8 pop {r3, r4, r5, r6, r7, pc}
  104355. 802a934: 6823 ldr r3, [r4, #0]
  104356. 802a936: 6922 ldr r2, [r4, #16]
  104357. 802a938: 1a98 subs r0, r3, r2
  104358. 802a93a: 6963 ldr r3, [r4, #20]
  104359. 802a93c: b2f6 uxtb r6, r6
  104360. 802a93e: 4283 cmp r3, r0
  104361. 802a940: 4637 mov r7, r6
  104362. 802a942: dc05 bgt.n 802a950 <__swbuf_r+0x4e>
  104363. 802a944: 4621 mov r1, r4
  104364. 802a946: 4628 mov r0, r5
  104365. 802a948: f002 fb20 bl 802cf8c <_fflush_r>
  104366. 802a94c: 2800 cmp r0, #0
  104367. 802a94e: d1ed bne.n 802a92c <__swbuf_r+0x2a>
  104368. 802a950: 68a3 ldr r3, [r4, #8]
  104369. 802a952: 3b01 subs r3, #1
  104370. 802a954: 60a3 str r3, [r4, #8]
  104371. 802a956: 6823 ldr r3, [r4, #0]
  104372. 802a958: 1c5a adds r2, r3, #1
  104373. 802a95a: 6022 str r2, [r4, #0]
  104374. 802a95c: 701e strb r6, [r3, #0]
  104375. 802a95e: 6962 ldr r2, [r4, #20]
  104376. 802a960: 1c43 adds r3, r0, #1
  104377. 802a962: 429a cmp r2, r3
  104378. 802a964: d004 beq.n 802a970 <__swbuf_r+0x6e>
  104379. 802a966: 89a3 ldrh r3, [r4, #12]
  104380. 802a968: 07db lsls r3, r3, #31
  104381. 802a96a: d5e1 bpl.n 802a930 <__swbuf_r+0x2e>
  104382. 802a96c: 2e0a cmp r6, #10
  104383. 802a96e: d1df bne.n 802a930 <__swbuf_r+0x2e>
  104384. 802a970: 4621 mov r1, r4
  104385. 802a972: 4628 mov r0, r5
  104386. 802a974: f002 fb0a bl 802cf8c <_fflush_r>
  104387. 802a978: 2800 cmp r0, #0
  104388. 802a97a: d0d9 beq.n 802a930 <__swbuf_r+0x2e>
  104389. 802a97c: e7d6 b.n 802a92c <__swbuf_r+0x2a>
  104390. ...
  104391. 0802a980 <__swsetup_r>:
  104392. 802a980: b538 push {r3, r4, r5, lr}
  104393. 802a982: 4b29 ldr r3, [pc, #164] @ (802aa28 <__swsetup_r+0xa8>)
  104394. 802a984: 4605 mov r5, r0
  104395. 802a986: 6818 ldr r0, [r3, #0]
  104396. 802a988: 460c mov r4, r1
  104397. 802a98a: b118 cbz r0, 802a994 <__swsetup_r+0x14>
  104398. 802a98c: 6a03 ldr r3, [r0, #32]
  104399. 802a98e: b90b cbnz r3, 802a994 <__swsetup_r+0x14>
  104400. 802a990: f7ff feae bl 802a6f0 <__sinit>
  104401. 802a994: f9b4 300c ldrsh.w r3, [r4, #12]
  104402. 802a998: 0719 lsls r1, r3, #28
  104403. 802a99a: d422 bmi.n 802a9e2 <__swsetup_r+0x62>
  104404. 802a99c: 06da lsls r2, r3, #27
  104405. 802a99e: d407 bmi.n 802a9b0 <__swsetup_r+0x30>
  104406. 802a9a0: 2209 movs r2, #9
  104407. 802a9a2: 602a str r2, [r5, #0]
  104408. 802a9a4: f043 0340 orr.w r3, r3, #64 @ 0x40
  104409. 802a9a8: 81a3 strh r3, [r4, #12]
  104410. 802a9aa: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  104411. 802a9ae: e033 b.n 802aa18 <__swsetup_r+0x98>
  104412. 802a9b0: 0758 lsls r0, r3, #29
  104413. 802a9b2: d512 bpl.n 802a9da <__swsetup_r+0x5a>
  104414. 802a9b4: 6b61 ldr r1, [r4, #52] @ 0x34
  104415. 802a9b6: b141 cbz r1, 802a9ca <__swsetup_r+0x4a>
  104416. 802a9b8: f104 0344 add.w r3, r4, #68 @ 0x44
  104417. 802a9bc: 4299 cmp r1, r3
  104418. 802a9be: d002 beq.n 802a9c6 <__swsetup_r+0x46>
  104419. 802a9c0: 4628 mov r0, r5
  104420. 802a9c2: f000 ff6b bl 802b89c <_free_r>
  104421. 802a9c6: 2300 movs r3, #0
  104422. 802a9c8: 6363 str r3, [r4, #52] @ 0x34
  104423. 802a9ca: 89a3 ldrh r3, [r4, #12]
  104424. 802a9cc: f023 0324 bic.w r3, r3, #36 @ 0x24
  104425. 802a9d0: 81a3 strh r3, [r4, #12]
  104426. 802a9d2: 2300 movs r3, #0
  104427. 802a9d4: 6063 str r3, [r4, #4]
  104428. 802a9d6: 6923 ldr r3, [r4, #16]
  104429. 802a9d8: 6023 str r3, [r4, #0]
  104430. 802a9da: 89a3 ldrh r3, [r4, #12]
  104431. 802a9dc: f043 0308 orr.w r3, r3, #8
  104432. 802a9e0: 81a3 strh r3, [r4, #12]
  104433. 802a9e2: 6923 ldr r3, [r4, #16]
  104434. 802a9e4: b94b cbnz r3, 802a9fa <__swsetup_r+0x7a>
  104435. 802a9e6: 89a3 ldrh r3, [r4, #12]
  104436. 802a9e8: f403 7320 and.w r3, r3, #640 @ 0x280
  104437. 802a9ec: f5b3 7f00 cmp.w r3, #512 @ 0x200
  104438. 802a9f0: d003 beq.n 802a9fa <__swsetup_r+0x7a>
  104439. 802a9f2: 4621 mov r1, r4
  104440. 802a9f4: 4628 mov r0, r5
  104441. 802a9f6: f002 fb29 bl 802d04c <__smakebuf_r>
  104442. 802a9fa: f9b4 300c ldrsh.w r3, [r4, #12]
  104443. 802a9fe: f013 0201 ands.w r2, r3, #1
  104444. 802aa02: d00a beq.n 802aa1a <__swsetup_r+0x9a>
  104445. 802aa04: 2200 movs r2, #0
  104446. 802aa06: 60a2 str r2, [r4, #8]
  104447. 802aa08: 6962 ldr r2, [r4, #20]
  104448. 802aa0a: 4252 negs r2, r2
  104449. 802aa0c: 61a2 str r2, [r4, #24]
  104450. 802aa0e: 6922 ldr r2, [r4, #16]
  104451. 802aa10: b942 cbnz r2, 802aa24 <__swsetup_r+0xa4>
  104452. 802aa12: f013 0080 ands.w r0, r3, #128 @ 0x80
  104453. 802aa16: d1c5 bne.n 802a9a4 <__swsetup_r+0x24>
  104454. 802aa18: bd38 pop {r3, r4, r5, pc}
  104455. 802aa1a: 0799 lsls r1, r3, #30
  104456. 802aa1c: bf58 it pl
  104457. 802aa1e: 6962 ldrpl r2, [r4, #20]
  104458. 802aa20: 60a2 str r2, [r4, #8]
  104459. 802aa22: e7f4 b.n 802aa0e <__swsetup_r+0x8e>
  104460. 802aa24: 2000 movs r0, #0
  104461. 802aa26: e7f7 b.n 802aa18 <__swsetup_r+0x98>
  104462. 802aa28: 240001d4 .word 0x240001d4
  104463. 0802aa2c <memcmp>:
  104464. 802aa2c: b510 push {r4, lr}
  104465. 802aa2e: 3901 subs r1, #1
  104466. 802aa30: 4402 add r2, r0
  104467. 802aa32: 4290 cmp r0, r2
  104468. 802aa34: d101 bne.n 802aa3a <memcmp+0xe>
  104469. 802aa36: 2000 movs r0, #0
  104470. 802aa38: e005 b.n 802aa46 <memcmp+0x1a>
  104471. 802aa3a: 7803 ldrb r3, [r0, #0]
  104472. 802aa3c: f811 4f01 ldrb.w r4, [r1, #1]!
  104473. 802aa40: 42a3 cmp r3, r4
  104474. 802aa42: d001 beq.n 802aa48 <memcmp+0x1c>
  104475. 802aa44: 1b18 subs r0, r3, r4
  104476. 802aa46: bd10 pop {r4, pc}
  104477. 802aa48: 3001 adds r0, #1
  104478. 802aa4a: e7f2 b.n 802aa32 <memcmp+0x6>
  104479. 0802aa4c <memmove>:
  104480. 802aa4c: 4288 cmp r0, r1
  104481. 802aa4e: b510 push {r4, lr}
  104482. 802aa50: eb01 0402 add.w r4, r1, r2
  104483. 802aa54: d902 bls.n 802aa5c <memmove+0x10>
  104484. 802aa56: 4284 cmp r4, r0
  104485. 802aa58: 4623 mov r3, r4
  104486. 802aa5a: d807 bhi.n 802aa6c <memmove+0x20>
  104487. 802aa5c: 1e43 subs r3, r0, #1
  104488. 802aa5e: 42a1 cmp r1, r4
  104489. 802aa60: d008 beq.n 802aa74 <memmove+0x28>
  104490. 802aa62: f811 2b01 ldrb.w r2, [r1], #1
  104491. 802aa66: f803 2f01 strb.w r2, [r3, #1]!
  104492. 802aa6a: e7f8 b.n 802aa5e <memmove+0x12>
  104493. 802aa6c: 4402 add r2, r0
  104494. 802aa6e: 4601 mov r1, r0
  104495. 802aa70: 428a cmp r2, r1
  104496. 802aa72: d100 bne.n 802aa76 <memmove+0x2a>
  104497. 802aa74: bd10 pop {r4, pc}
  104498. 802aa76: f813 4d01 ldrb.w r4, [r3, #-1]!
  104499. 802aa7a: f802 4d01 strb.w r4, [r2, #-1]!
  104500. 802aa7e: e7f7 b.n 802aa70 <memmove+0x24>
  104501. 0802aa80 <memset>:
  104502. 802aa80: 4402 add r2, r0
  104503. 802aa82: 4603 mov r3, r0
  104504. 802aa84: 4293 cmp r3, r2
  104505. 802aa86: d100 bne.n 802aa8a <memset+0xa>
  104506. 802aa88: 4770 bx lr
  104507. 802aa8a: f803 1b01 strb.w r1, [r3], #1
  104508. 802aa8e: e7f9 b.n 802aa84 <memset+0x4>
  104509. 0802aa90 <strncmp>:
  104510. 802aa90: b510 push {r4, lr}
  104511. 802aa92: b16a cbz r2, 802aab0 <strncmp+0x20>
  104512. 802aa94: 3901 subs r1, #1
  104513. 802aa96: 1884 adds r4, r0, r2
  104514. 802aa98: f810 2b01 ldrb.w r2, [r0], #1
  104515. 802aa9c: f811 3f01 ldrb.w r3, [r1, #1]!
  104516. 802aaa0: 429a cmp r2, r3
  104517. 802aaa2: d103 bne.n 802aaac <strncmp+0x1c>
  104518. 802aaa4: 42a0 cmp r0, r4
  104519. 802aaa6: d001 beq.n 802aaac <strncmp+0x1c>
  104520. 802aaa8: 2a00 cmp r2, #0
  104521. 802aaaa: d1f5 bne.n 802aa98 <strncmp+0x8>
  104522. 802aaac: 1ad0 subs r0, r2, r3
  104523. 802aaae: bd10 pop {r4, pc}
  104524. 802aab0: 4610 mov r0, r2
  104525. 802aab2: e7fc b.n 802aaae <strncmp+0x1e>
  104526. 0802aab4 <_localeconv_r>:
  104527. 802aab4: 4800 ldr r0, [pc, #0] @ (802aab8 <_localeconv_r+0x4>)
  104528. 802aab6: 4770 bx lr
  104529. 802aab8: 24000158 .word 0x24000158
  104530. 0802aabc <_close_r>:
  104531. 802aabc: b538 push {r3, r4, r5, lr}
  104532. 802aabe: 4d06 ldr r5, [pc, #24] @ (802aad8 <_close_r+0x1c>)
  104533. 802aac0: 2300 movs r3, #0
  104534. 802aac2: 4604 mov r4, r0
  104535. 802aac4: 4608 mov r0, r1
  104536. 802aac6: 602b str r3, [r5, #0]
  104537. 802aac8: f7d9 fb32 bl 8004130 <_close>
  104538. 802aacc: 1c43 adds r3, r0, #1
  104539. 802aace: d102 bne.n 802aad6 <_close_r+0x1a>
  104540. 802aad0: 682b ldr r3, [r5, #0]
  104541. 802aad2: b103 cbz r3, 802aad6 <_close_r+0x1a>
  104542. 802aad4: 6023 str r3, [r4, #0]
  104543. 802aad6: bd38 pop {r3, r4, r5, pc}
  104544. 802aad8: 2402b260 .word 0x2402b260
  104545. 0802aadc <_reclaim_reent>:
  104546. 802aadc: 4b29 ldr r3, [pc, #164] @ (802ab84 <_reclaim_reent+0xa8>)
  104547. 802aade: 681b ldr r3, [r3, #0]
  104548. 802aae0: 4283 cmp r3, r0
  104549. 802aae2: b570 push {r4, r5, r6, lr}
  104550. 802aae4: 4604 mov r4, r0
  104551. 802aae6: d04b beq.n 802ab80 <_reclaim_reent+0xa4>
  104552. 802aae8: 69c3 ldr r3, [r0, #28]
  104553. 802aaea: b1ab cbz r3, 802ab18 <_reclaim_reent+0x3c>
  104554. 802aaec: 68db ldr r3, [r3, #12]
  104555. 802aaee: b16b cbz r3, 802ab0c <_reclaim_reent+0x30>
  104556. 802aaf0: 2500 movs r5, #0
  104557. 802aaf2: 69e3 ldr r3, [r4, #28]
  104558. 802aaf4: 68db ldr r3, [r3, #12]
  104559. 802aaf6: 5959 ldr r1, [r3, r5]
  104560. 802aaf8: 2900 cmp r1, #0
  104561. 802aafa: d13b bne.n 802ab74 <_reclaim_reent+0x98>
  104562. 802aafc: 3504 adds r5, #4
  104563. 802aafe: 2d80 cmp r5, #128 @ 0x80
  104564. 802ab00: d1f7 bne.n 802aaf2 <_reclaim_reent+0x16>
  104565. 802ab02: 69e3 ldr r3, [r4, #28]
  104566. 802ab04: 4620 mov r0, r4
  104567. 802ab06: 68d9 ldr r1, [r3, #12]
  104568. 802ab08: f000 fec8 bl 802b89c <_free_r>
  104569. 802ab0c: 69e3 ldr r3, [r4, #28]
  104570. 802ab0e: 6819 ldr r1, [r3, #0]
  104571. 802ab10: b111 cbz r1, 802ab18 <_reclaim_reent+0x3c>
  104572. 802ab12: 4620 mov r0, r4
  104573. 802ab14: f000 fec2 bl 802b89c <_free_r>
  104574. 802ab18: 6961 ldr r1, [r4, #20]
  104575. 802ab1a: b111 cbz r1, 802ab22 <_reclaim_reent+0x46>
  104576. 802ab1c: 4620 mov r0, r4
  104577. 802ab1e: f000 febd bl 802b89c <_free_r>
  104578. 802ab22: 69e1 ldr r1, [r4, #28]
  104579. 802ab24: b111 cbz r1, 802ab2c <_reclaim_reent+0x50>
  104580. 802ab26: 4620 mov r0, r4
  104581. 802ab28: f000 feb8 bl 802b89c <_free_r>
  104582. 802ab2c: 6b21 ldr r1, [r4, #48] @ 0x30
  104583. 802ab2e: b111 cbz r1, 802ab36 <_reclaim_reent+0x5a>
  104584. 802ab30: 4620 mov r0, r4
  104585. 802ab32: f000 feb3 bl 802b89c <_free_r>
  104586. 802ab36: 6b61 ldr r1, [r4, #52] @ 0x34
  104587. 802ab38: b111 cbz r1, 802ab40 <_reclaim_reent+0x64>
  104588. 802ab3a: 4620 mov r0, r4
  104589. 802ab3c: f000 feae bl 802b89c <_free_r>
  104590. 802ab40: 6ba1 ldr r1, [r4, #56] @ 0x38
  104591. 802ab42: b111 cbz r1, 802ab4a <_reclaim_reent+0x6e>
  104592. 802ab44: 4620 mov r0, r4
  104593. 802ab46: f000 fea9 bl 802b89c <_free_r>
  104594. 802ab4a: 6ca1 ldr r1, [r4, #72] @ 0x48
  104595. 802ab4c: b111 cbz r1, 802ab54 <_reclaim_reent+0x78>
  104596. 802ab4e: 4620 mov r0, r4
  104597. 802ab50: f000 fea4 bl 802b89c <_free_r>
  104598. 802ab54: 6c61 ldr r1, [r4, #68] @ 0x44
  104599. 802ab56: b111 cbz r1, 802ab5e <_reclaim_reent+0x82>
  104600. 802ab58: 4620 mov r0, r4
  104601. 802ab5a: f000 fe9f bl 802b89c <_free_r>
  104602. 802ab5e: 6ae1 ldr r1, [r4, #44] @ 0x2c
  104603. 802ab60: b111 cbz r1, 802ab68 <_reclaim_reent+0x8c>
  104604. 802ab62: 4620 mov r0, r4
  104605. 802ab64: f000 fe9a bl 802b89c <_free_r>
  104606. 802ab68: 6a23 ldr r3, [r4, #32]
  104607. 802ab6a: b14b cbz r3, 802ab80 <_reclaim_reent+0xa4>
  104608. 802ab6c: 4620 mov r0, r4
  104609. 802ab6e: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  104610. 802ab72: 4718 bx r3
  104611. 802ab74: 680e ldr r6, [r1, #0]
  104612. 802ab76: 4620 mov r0, r4
  104613. 802ab78: f000 fe90 bl 802b89c <_free_r>
  104614. 802ab7c: 4631 mov r1, r6
  104615. 802ab7e: e7bb b.n 802aaf8 <_reclaim_reent+0x1c>
  104616. 802ab80: bd70 pop {r4, r5, r6, pc}
  104617. 802ab82: bf00 nop
  104618. 802ab84: 240001d4 .word 0x240001d4
  104619. 0802ab88 <_lseek_r>:
  104620. 802ab88: b538 push {r3, r4, r5, lr}
  104621. 802ab8a: 4d07 ldr r5, [pc, #28] @ (802aba8 <_lseek_r+0x20>)
  104622. 802ab8c: 4604 mov r4, r0
  104623. 802ab8e: 4608 mov r0, r1
  104624. 802ab90: 4611 mov r1, r2
  104625. 802ab92: 2200 movs r2, #0
  104626. 802ab94: 602a str r2, [r5, #0]
  104627. 802ab96: 461a mov r2, r3
  104628. 802ab98: f7d9 faf1 bl 800417e <_lseek>
  104629. 802ab9c: 1c43 adds r3, r0, #1
  104630. 802ab9e: d102 bne.n 802aba6 <_lseek_r+0x1e>
  104631. 802aba0: 682b ldr r3, [r5, #0]
  104632. 802aba2: b103 cbz r3, 802aba6 <_lseek_r+0x1e>
  104633. 802aba4: 6023 str r3, [r4, #0]
  104634. 802aba6: bd38 pop {r3, r4, r5, pc}
  104635. 802aba8: 2402b260 .word 0x2402b260
  104636. 0802abac <_read_r>:
  104637. 802abac: b538 push {r3, r4, r5, lr}
  104638. 802abae: 4d07 ldr r5, [pc, #28] @ (802abcc <_read_r+0x20>)
  104639. 802abb0: 4604 mov r4, r0
  104640. 802abb2: 4608 mov r0, r1
  104641. 802abb4: 4611 mov r1, r2
  104642. 802abb6: 2200 movs r2, #0
  104643. 802abb8: 602a str r2, [r5, #0]
  104644. 802abba: 461a mov r2, r3
  104645. 802abbc: f7d9 fa7f bl 80040be <_read>
  104646. 802abc0: 1c43 adds r3, r0, #1
  104647. 802abc2: d102 bne.n 802abca <_read_r+0x1e>
  104648. 802abc4: 682b ldr r3, [r5, #0]
  104649. 802abc6: b103 cbz r3, 802abca <_read_r+0x1e>
  104650. 802abc8: 6023 str r3, [r4, #0]
  104651. 802abca: bd38 pop {r3, r4, r5, pc}
  104652. 802abcc: 2402b260 .word 0x2402b260
  104653. 0802abd0 <_sbrk_r>:
  104654. 802abd0: b538 push {r3, r4, r5, lr}
  104655. 802abd2: 4d06 ldr r5, [pc, #24] @ (802abec <_sbrk_r+0x1c>)
  104656. 802abd4: 2300 movs r3, #0
  104657. 802abd6: 4604 mov r4, r0
  104658. 802abd8: 4608 mov r0, r1
  104659. 802abda: 602b str r3, [r5, #0]
  104660. 802abdc: f7d9 fadc bl 8004198 <_sbrk>
  104661. 802abe0: 1c43 adds r3, r0, #1
  104662. 802abe2: d102 bne.n 802abea <_sbrk_r+0x1a>
  104663. 802abe4: 682b ldr r3, [r5, #0]
  104664. 802abe6: b103 cbz r3, 802abea <_sbrk_r+0x1a>
  104665. 802abe8: 6023 str r3, [r4, #0]
  104666. 802abea: bd38 pop {r3, r4, r5, pc}
  104667. 802abec: 2402b260 .word 0x2402b260
  104668. 0802abf0 <_write_r>:
  104669. 802abf0: b538 push {r3, r4, r5, lr}
  104670. 802abf2: 4d07 ldr r5, [pc, #28] @ (802ac10 <_write_r+0x20>)
  104671. 802abf4: 4604 mov r4, r0
  104672. 802abf6: 4608 mov r0, r1
  104673. 802abf8: 4611 mov r1, r2
  104674. 802abfa: 2200 movs r2, #0
  104675. 802abfc: 602a str r2, [r5, #0]
  104676. 802abfe: 461a mov r2, r3
  104677. 802ac00: f7d9 fa7a bl 80040f8 <_write>
  104678. 802ac04: 1c43 adds r3, r0, #1
  104679. 802ac06: d102 bne.n 802ac0e <_write_r+0x1e>
  104680. 802ac08: 682b ldr r3, [r5, #0]
  104681. 802ac0a: b103 cbz r3, 802ac0e <_write_r+0x1e>
  104682. 802ac0c: 6023 str r3, [r4, #0]
  104683. 802ac0e: bd38 pop {r3, r4, r5, pc}
  104684. 802ac10: 2402b260 .word 0x2402b260
  104685. 0802ac14 <__errno>:
  104686. 802ac14: 4b01 ldr r3, [pc, #4] @ (802ac1c <__errno+0x8>)
  104687. 802ac16: 6818 ldr r0, [r3, #0]
  104688. 802ac18: 4770 bx lr
  104689. 802ac1a: bf00 nop
  104690. 802ac1c: 240001d4 .word 0x240001d4
  104691. 0802ac20 <__libc_init_array>:
  104692. 802ac20: b570 push {r4, r5, r6, lr}
  104693. 802ac22: 4d0d ldr r5, [pc, #52] @ (802ac58 <__libc_init_array+0x38>)
  104694. 802ac24: 4c0d ldr r4, [pc, #52] @ (802ac5c <__libc_init_array+0x3c>)
  104695. 802ac26: 1b64 subs r4, r4, r5
  104696. 802ac28: 10a4 asrs r4, r4, #2
  104697. 802ac2a: 2600 movs r6, #0
  104698. 802ac2c: 42a6 cmp r6, r4
  104699. 802ac2e: d109 bne.n 802ac44 <__libc_init_array+0x24>
  104700. 802ac30: 4d0b ldr r5, [pc, #44] @ (802ac60 <__libc_init_array+0x40>)
  104701. 802ac32: 4c0c ldr r4, [pc, #48] @ (802ac64 <__libc_init_array+0x44>)
  104702. 802ac34: f002 fac8 bl 802d1c8 <_init>
  104703. 802ac38: 1b64 subs r4, r4, r5
  104704. 802ac3a: 10a4 asrs r4, r4, #2
  104705. 802ac3c: 2600 movs r6, #0
  104706. 802ac3e: 42a6 cmp r6, r4
  104707. 802ac40: d105 bne.n 802ac4e <__libc_init_array+0x2e>
  104708. 802ac42: bd70 pop {r4, r5, r6, pc}
  104709. 802ac44: f855 3b04 ldr.w r3, [r5], #4
  104710. 802ac48: 4798 blx r3
  104711. 802ac4a: 3601 adds r6, #1
  104712. 802ac4c: e7ee b.n 802ac2c <__libc_init_array+0xc>
  104713. 802ac4e: f855 3b04 ldr.w r3, [r5], #4
  104714. 802ac52: 4798 blx r3
  104715. 802ac54: 3601 adds r6, #1
  104716. 802ac56: e7f2 b.n 802ac3e <__libc_init_array+0x1e>
  104717. 802ac58: 08031ff4 .word 0x08031ff4
  104718. 802ac5c: 08031ff4 .word 0x08031ff4
  104719. 802ac60: 08031ff4 .word 0x08031ff4
  104720. 802ac64: 08031ff8 .word 0x08031ff8
  104721. 0802ac68 <__retarget_lock_init_recursive>:
  104722. 802ac68: 4770 bx lr
  104723. 0802ac6a <__retarget_lock_acquire_recursive>:
  104724. 802ac6a: 4770 bx lr
  104725. 0802ac6c <__retarget_lock_release_recursive>:
  104726. 802ac6c: 4770 bx lr
  104727. 0802ac6e <memcpy>:
  104728. 802ac6e: 440a add r2, r1
  104729. 802ac70: 4291 cmp r1, r2
  104730. 802ac72: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff
  104731. 802ac76: d100 bne.n 802ac7a <memcpy+0xc>
  104732. 802ac78: 4770 bx lr
  104733. 802ac7a: b510 push {r4, lr}
  104734. 802ac7c: f811 4b01 ldrb.w r4, [r1], #1
  104735. 802ac80: f803 4f01 strb.w r4, [r3, #1]!
  104736. 802ac84: 4291 cmp r1, r2
  104737. 802ac86: d1f9 bne.n 802ac7c <memcpy+0xe>
  104738. 802ac88: bd10 pop {r4, pc}
  104739. 802ac8a: 0000 movs r0, r0
  104740. 802ac8c: 0000 movs r0, r0
  104741. ...
  104742. 0802ac90 <nan>:
  104743. 802ac90: ed9f 0b01 vldr d0, [pc, #4] @ 802ac98 <nan+0x8>
  104744. 802ac94: 4770 bx lr
  104745. 802ac96: bf00 nop
  104746. 802ac98: 00000000 .word 0x00000000
  104747. 802ac9c: 7ff80000 .word 0x7ff80000
  104748. 0802aca0 <__assert_func>:
  104749. 802aca0: b51f push {r0, r1, r2, r3, r4, lr}
  104750. 802aca2: 4614 mov r4, r2
  104751. 802aca4: 461a mov r2, r3
  104752. 802aca6: 4b09 ldr r3, [pc, #36] @ (802accc <__assert_func+0x2c>)
  104753. 802aca8: 681b ldr r3, [r3, #0]
  104754. 802acaa: 4605 mov r5, r0
  104755. 802acac: 68d8 ldr r0, [r3, #12]
  104756. 802acae: b954 cbnz r4, 802acc6 <__assert_func+0x26>
  104757. 802acb0: 4b07 ldr r3, [pc, #28] @ (802acd0 <__assert_func+0x30>)
  104758. 802acb2: 461c mov r4, r3
  104759. 802acb4: e9cd 3401 strd r3, r4, [sp, #4]
  104760. 802acb8: 9100 str r1, [sp, #0]
  104761. 802acba: 462b mov r3, r5
  104762. 802acbc: 4905 ldr r1, [pc, #20] @ (802acd4 <__assert_func+0x34>)
  104763. 802acbe: f002 f98d bl 802cfdc <fiprintf>
  104764. 802acc2: f002 fa21 bl 802d108 <abort>
  104765. 802acc6: 4b04 ldr r3, [pc, #16] @ (802acd8 <__assert_func+0x38>)
  104766. 802acc8: e7f4 b.n 802acb4 <__assert_func+0x14>
  104767. 802acca: bf00 nop
  104768. 802accc: 240001d4 .word 0x240001d4
  104769. 802acd0: 08031da8 .word 0x08031da8
  104770. 802acd4: 08031d7a .word 0x08031d7a
  104771. 802acd8: 08031d6d .word 0x08031d6d
  104772. 0802acdc <quorem>:
  104773. 802acdc: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  104774. 802ace0: 6903 ldr r3, [r0, #16]
  104775. 802ace2: 690c ldr r4, [r1, #16]
  104776. 802ace4: 42a3 cmp r3, r4
  104777. 802ace6: 4607 mov r7, r0
  104778. 802ace8: db7e blt.n 802ade8 <quorem+0x10c>
  104779. 802acea: 3c01 subs r4, #1
  104780. 802acec: f101 0814 add.w r8, r1, #20
  104781. 802acf0: 00a3 lsls r3, r4, #2
  104782. 802acf2: f100 0514 add.w r5, r0, #20
  104783. 802acf6: 9300 str r3, [sp, #0]
  104784. 802acf8: eb05 0384 add.w r3, r5, r4, lsl #2
  104785. 802acfc: 9301 str r3, [sp, #4]
  104786. 802acfe: f858 3024 ldr.w r3, [r8, r4, lsl #2]
  104787. 802ad02: f855 2024 ldr.w r2, [r5, r4, lsl #2]
  104788. 802ad06: 3301 adds r3, #1
  104789. 802ad08: 429a cmp r2, r3
  104790. 802ad0a: eb08 0984 add.w r9, r8, r4, lsl #2
  104791. 802ad0e: fbb2 f6f3 udiv r6, r2, r3
  104792. 802ad12: d32e bcc.n 802ad72 <quorem+0x96>
  104793. 802ad14: f04f 0a00 mov.w sl, #0
  104794. 802ad18: 46c4 mov ip, r8
  104795. 802ad1a: 46ae mov lr, r5
  104796. 802ad1c: 46d3 mov fp, sl
  104797. 802ad1e: f85c 3b04 ldr.w r3, [ip], #4
  104798. 802ad22: b298 uxth r0, r3
  104799. 802ad24: fb06 a000 mla r0, r6, r0, sl
  104800. 802ad28: 0c02 lsrs r2, r0, #16
  104801. 802ad2a: 0c1b lsrs r3, r3, #16
  104802. 802ad2c: fb06 2303 mla r3, r6, r3, r2
  104803. 802ad30: f8de 2000 ldr.w r2, [lr]
  104804. 802ad34: b280 uxth r0, r0
  104805. 802ad36: b292 uxth r2, r2
  104806. 802ad38: 1a12 subs r2, r2, r0
  104807. 802ad3a: 445a add r2, fp
  104808. 802ad3c: f8de 0000 ldr.w r0, [lr]
  104809. 802ad40: ea4f 4a13 mov.w sl, r3, lsr #16
  104810. 802ad44: b29b uxth r3, r3
  104811. 802ad46: ebc3 4322 rsb r3, r3, r2, asr #16
  104812. 802ad4a: eb03 4310 add.w r3, r3, r0, lsr #16
  104813. 802ad4e: b292 uxth r2, r2
  104814. 802ad50: ea42 4203 orr.w r2, r2, r3, lsl #16
  104815. 802ad54: 45e1 cmp r9, ip
  104816. 802ad56: f84e 2b04 str.w r2, [lr], #4
  104817. 802ad5a: ea4f 4b23 mov.w fp, r3, asr #16
  104818. 802ad5e: d2de bcs.n 802ad1e <quorem+0x42>
  104819. 802ad60: 9b00 ldr r3, [sp, #0]
  104820. 802ad62: 58eb ldr r3, [r5, r3]
  104821. 802ad64: b92b cbnz r3, 802ad72 <quorem+0x96>
  104822. 802ad66: 9b01 ldr r3, [sp, #4]
  104823. 802ad68: 3b04 subs r3, #4
  104824. 802ad6a: 429d cmp r5, r3
  104825. 802ad6c: 461a mov r2, r3
  104826. 802ad6e: d32f bcc.n 802add0 <quorem+0xf4>
  104827. 802ad70: 613c str r4, [r7, #16]
  104828. 802ad72: 4638 mov r0, r7
  104829. 802ad74: f001 fbec bl 802c550 <__mcmp>
  104830. 802ad78: 2800 cmp r0, #0
  104831. 802ad7a: db25 blt.n 802adc8 <quorem+0xec>
  104832. 802ad7c: 4629 mov r1, r5
  104833. 802ad7e: 2000 movs r0, #0
  104834. 802ad80: f858 2b04 ldr.w r2, [r8], #4
  104835. 802ad84: f8d1 c000 ldr.w ip, [r1]
  104836. 802ad88: fa1f fe82 uxth.w lr, r2
  104837. 802ad8c: fa1f f38c uxth.w r3, ip
  104838. 802ad90: eba3 030e sub.w r3, r3, lr
  104839. 802ad94: 4403 add r3, r0
  104840. 802ad96: 0c12 lsrs r2, r2, #16
  104841. 802ad98: ebc2 4223 rsb r2, r2, r3, asr #16
  104842. 802ad9c: eb02 421c add.w r2, r2, ip, lsr #16
  104843. 802ada0: b29b uxth r3, r3
  104844. 802ada2: ea43 4302 orr.w r3, r3, r2, lsl #16
  104845. 802ada6: 45c1 cmp r9, r8
  104846. 802ada8: f841 3b04 str.w r3, [r1], #4
  104847. 802adac: ea4f 4022 mov.w r0, r2, asr #16
  104848. 802adb0: d2e6 bcs.n 802ad80 <quorem+0xa4>
  104849. 802adb2: f855 2024 ldr.w r2, [r5, r4, lsl #2]
  104850. 802adb6: eb05 0384 add.w r3, r5, r4, lsl #2
  104851. 802adba: b922 cbnz r2, 802adc6 <quorem+0xea>
  104852. 802adbc: 3b04 subs r3, #4
  104853. 802adbe: 429d cmp r5, r3
  104854. 802adc0: 461a mov r2, r3
  104855. 802adc2: d30b bcc.n 802addc <quorem+0x100>
  104856. 802adc4: 613c str r4, [r7, #16]
  104857. 802adc6: 3601 adds r6, #1
  104858. 802adc8: 4630 mov r0, r6
  104859. 802adca: b003 add sp, #12
  104860. 802adcc: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  104861. 802add0: 6812 ldr r2, [r2, #0]
  104862. 802add2: 3b04 subs r3, #4
  104863. 802add4: 2a00 cmp r2, #0
  104864. 802add6: d1cb bne.n 802ad70 <quorem+0x94>
  104865. 802add8: 3c01 subs r4, #1
  104866. 802adda: e7c6 b.n 802ad6a <quorem+0x8e>
  104867. 802addc: 6812 ldr r2, [r2, #0]
  104868. 802adde: 3b04 subs r3, #4
  104869. 802ade0: 2a00 cmp r2, #0
  104870. 802ade2: d1ef bne.n 802adc4 <quorem+0xe8>
  104871. 802ade4: 3c01 subs r4, #1
  104872. 802ade6: e7ea b.n 802adbe <quorem+0xe2>
  104873. 802ade8: 2000 movs r0, #0
  104874. 802adea: e7ee b.n 802adca <quorem+0xee>
  104875. 802adec: 0000 movs r0, r0
  104876. ...
  104877. 0802adf0 <_dtoa_r>:
  104878. 802adf0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  104879. 802adf4: ed2d 8b02 vpush {d8}
  104880. 802adf8: 69c7 ldr r7, [r0, #28]
  104881. 802adfa: b091 sub sp, #68 @ 0x44
  104882. 802adfc: ed8d 0b02 vstr d0, [sp, #8]
  104883. 802ae00: ec55 4b10 vmov r4, r5, d0
  104884. 802ae04: 9e1c ldr r6, [sp, #112] @ 0x70
  104885. 802ae06: 9107 str r1, [sp, #28]
  104886. 802ae08: 4681 mov r9, r0
  104887. 802ae0a: 9209 str r2, [sp, #36] @ 0x24
  104888. 802ae0c: 930d str r3, [sp, #52] @ 0x34
  104889. 802ae0e: b97f cbnz r7, 802ae30 <_dtoa_r+0x40>
  104890. 802ae10: 2010 movs r0, #16
  104891. 802ae12: f7fe f8bb bl 8028f8c <malloc>
  104892. 802ae16: 4602 mov r2, r0
  104893. 802ae18: f8c9 001c str.w r0, [r9, #28]
  104894. 802ae1c: b920 cbnz r0, 802ae28 <_dtoa_r+0x38>
  104895. 802ae1e: 4ba0 ldr r3, [pc, #640] @ (802b0a0 <_dtoa_r+0x2b0>)
  104896. 802ae20: 21ef movs r1, #239 @ 0xef
  104897. 802ae22: 48a0 ldr r0, [pc, #640] @ (802b0a4 <_dtoa_r+0x2b4>)
  104898. 802ae24: f7ff ff3c bl 802aca0 <__assert_func>
  104899. 802ae28: e9c0 7701 strd r7, r7, [r0, #4]
  104900. 802ae2c: 6007 str r7, [r0, #0]
  104901. 802ae2e: 60c7 str r7, [r0, #12]
  104902. 802ae30: f8d9 301c ldr.w r3, [r9, #28]
  104903. 802ae34: 6819 ldr r1, [r3, #0]
  104904. 802ae36: b159 cbz r1, 802ae50 <_dtoa_r+0x60>
  104905. 802ae38: 685a ldr r2, [r3, #4]
  104906. 802ae3a: 604a str r2, [r1, #4]
  104907. 802ae3c: 2301 movs r3, #1
  104908. 802ae3e: 4093 lsls r3, r2
  104909. 802ae40: 608b str r3, [r1, #8]
  104910. 802ae42: 4648 mov r0, r9
  104911. 802ae44: f001 f900 bl 802c048 <_Bfree>
  104912. 802ae48: f8d9 301c ldr.w r3, [r9, #28]
  104913. 802ae4c: 2200 movs r2, #0
  104914. 802ae4e: 601a str r2, [r3, #0]
  104915. 802ae50: 1e2b subs r3, r5, #0
  104916. 802ae52: bfbb ittet lt
  104917. 802ae54: f023 4300 biclt.w r3, r3, #2147483648 @ 0x80000000
  104918. 802ae58: 9303 strlt r3, [sp, #12]
  104919. 802ae5a: 2300 movge r3, #0
  104920. 802ae5c: 2201 movlt r2, #1
  104921. 802ae5e: bfac ite ge
  104922. 802ae60: 6033 strge r3, [r6, #0]
  104923. 802ae62: 6032 strlt r2, [r6, #0]
  104924. 802ae64: 4b90 ldr r3, [pc, #576] @ (802b0a8 <_dtoa_r+0x2b8>)
  104925. 802ae66: 9e03 ldr r6, [sp, #12]
  104926. 802ae68: 43b3 bics r3, r6
  104927. 802ae6a: d110 bne.n 802ae8e <_dtoa_r+0x9e>
  104928. 802ae6c: 9a0d ldr r2, [sp, #52] @ 0x34
  104929. 802ae6e: f242 730f movw r3, #9999 @ 0x270f
  104930. 802ae72: 6013 str r3, [r2, #0]
  104931. 802ae74: f3c6 0313 ubfx r3, r6, #0, #20
  104932. 802ae78: 4323 orrs r3, r4
  104933. 802ae7a: f000 84de beq.w 802b83a <_dtoa_r+0xa4a>
  104934. 802ae7e: 9b1d ldr r3, [sp, #116] @ 0x74
  104935. 802ae80: 4f8a ldr r7, [pc, #552] @ (802b0ac <_dtoa_r+0x2bc>)
  104936. 802ae82: 2b00 cmp r3, #0
  104937. 802ae84: f000 84e0 beq.w 802b848 <_dtoa_r+0xa58>
  104938. 802ae88: 1cfb adds r3, r7, #3
  104939. 802ae8a: f000 bcdb b.w 802b844 <_dtoa_r+0xa54>
  104940. 802ae8e: ed9d 8b02 vldr d8, [sp, #8]
  104941. 802ae92: eeb5 8b40 vcmp.f64 d8, #0.0
  104942. 802ae96: eef1 fa10 vmrs APSR_nzcv, fpscr
  104943. 802ae9a: d10a bne.n 802aeb2 <_dtoa_r+0xc2>
  104944. 802ae9c: 9a0d ldr r2, [sp, #52] @ 0x34
  104945. 802ae9e: 2301 movs r3, #1
  104946. 802aea0: 6013 str r3, [r2, #0]
  104947. 802aea2: 9b1d ldr r3, [sp, #116] @ 0x74
  104948. 802aea4: b113 cbz r3, 802aeac <_dtoa_r+0xbc>
  104949. 802aea6: 9a1d ldr r2, [sp, #116] @ 0x74
  104950. 802aea8: 4b81 ldr r3, [pc, #516] @ (802b0b0 <_dtoa_r+0x2c0>)
  104951. 802aeaa: 6013 str r3, [r2, #0]
  104952. 802aeac: 4f81 ldr r7, [pc, #516] @ (802b0b4 <_dtoa_r+0x2c4>)
  104953. 802aeae: f000 bccb b.w 802b848 <_dtoa_r+0xa58>
  104954. 802aeb2: aa0e add r2, sp, #56 @ 0x38
  104955. 802aeb4: a90f add r1, sp, #60 @ 0x3c
  104956. 802aeb6: 4648 mov r0, r9
  104957. 802aeb8: eeb0 0b48 vmov.f64 d0, d8
  104958. 802aebc: f001 fc68 bl 802c790 <__d2b>
  104959. 802aec0: f3c6 530a ubfx r3, r6, #20, #11
  104960. 802aec4: 9a0e ldr r2, [sp, #56] @ 0x38
  104961. 802aec6: 9001 str r0, [sp, #4]
  104962. 802aec8: 2b00 cmp r3, #0
  104963. 802aeca: d045 beq.n 802af58 <_dtoa_r+0x168>
  104964. 802aecc: eeb0 7b48 vmov.f64 d7, d8
  104965. 802aed0: ee18 1a90 vmov r1, s17
  104966. 802aed4: f3c1 0113 ubfx r1, r1, #0, #20
  104967. 802aed8: f041 517f orr.w r1, r1, #1069547520 @ 0x3fc00000
  104968. 802aedc: f441 1140 orr.w r1, r1, #3145728 @ 0x300000
  104969. 802aee0: f2a3 33ff subw r3, r3, #1023 @ 0x3ff
  104970. 802aee4: 2500 movs r5, #0
  104971. 802aee6: ee07 1a90 vmov s15, r1
  104972. 802aeea: eeb7 6b08 vmov.f64 d6, #120 @ 0x3fc00000 1.5
  104973. 802aeee: ed9f 5b66 vldr d5, [pc, #408] @ 802b088 <_dtoa_r+0x298>
  104974. 802aef2: ee37 7b46 vsub.f64 d7, d7, d6
  104975. 802aef6: ed9f 6b66 vldr d6, [pc, #408] @ 802b090 <_dtoa_r+0x2a0>
  104976. 802aefa: eea7 6b05 vfma.f64 d6, d7, d5
  104977. 802aefe: ed9f 5b66 vldr d5, [pc, #408] @ 802b098 <_dtoa_r+0x2a8>
  104978. 802af02: ee07 3a90 vmov s15, r3
  104979. 802af06: eeb8 4be7 vcvt.f64.s32 d4, s15
  104980. 802af0a: eeb0 7b46 vmov.f64 d7, d6
  104981. 802af0e: eea4 7b05 vfma.f64 d7, d4, d5
  104982. 802af12: eefd 6bc7 vcvt.s32.f64 s13, d7
  104983. 802af16: eeb5 7bc0 vcmpe.f64 d7, #0.0
  104984. 802af1a: eef1 fa10 vmrs APSR_nzcv, fpscr
  104985. 802af1e: ee16 8a90 vmov r8, s13
  104986. 802af22: d508 bpl.n 802af36 <_dtoa_r+0x146>
  104987. 802af24: eeb8 6be6 vcvt.f64.s32 d6, s13
  104988. 802af28: eeb4 6b47 vcmp.f64 d6, d7
  104989. 802af2c: eef1 fa10 vmrs APSR_nzcv, fpscr
  104990. 802af30: bf18 it ne
  104991. 802af32: f108 38ff addne.w r8, r8, #4294967295 @ 0xffffffff
  104992. 802af36: f1b8 0f16 cmp.w r8, #22
  104993. 802af3a: d82b bhi.n 802af94 <_dtoa_r+0x1a4>
  104994. 802af3c: 495e ldr r1, [pc, #376] @ (802b0b8 <_dtoa_r+0x2c8>)
  104995. 802af3e: eb01 01c8 add.w r1, r1, r8, lsl #3
  104996. 802af42: ed91 7b00 vldr d7, [r1]
  104997. 802af46: eeb4 8bc7 vcmpe.f64 d8, d7
  104998. 802af4a: eef1 fa10 vmrs APSR_nzcv, fpscr
  104999. 802af4e: d501 bpl.n 802af54 <_dtoa_r+0x164>
  105000. 802af50: f108 38ff add.w r8, r8, #4294967295 @ 0xffffffff
  105001. 802af54: 2100 movs r1, #0
  105002. 802af56: e01e b.n 802af96 <_dtoa_r+0x1a6>
  105003. 802af58: 9b0f ldr r3, [sp, #60] @ 0x3c
  105004. 802af5a: 4413 add r3, r2
  105005. 802af5c: f203 4132 addw r1, r3, #1074 @ 0x432
  105006. 802af60: 2920 cmp r1, #32
  105007. 802af62: bfc1 itttt gt
  105008. 802af64: f1c1 0140 rsbgt r1, r1, #64 @ 0x40
  105009. 802af68: 408e lslgt r6, r1
  105010. 802af6a: f203 4112 addwgt r1, r3, #1042 @ 0x412
  105011. 802af6e: fa24 f101 lsrgt.w r1, r4, r1
  105012. 802af72: bfd6 itet le
  105013. 802af74: f1c1 0120 rsble r1, r1, #32
  105014. 802af78: 4331 orrgt r1, r6
  105015. 802af7a: fa04 f101 lslle.w r1, r4, r1
  105016. 802af7e: ee07 1a90 vmov s15, r1
  105017. 802af82: eeb8 7b67 vcvt.f64.u32 d7, s15
  105018. 802af86: 3b01 subs r3, #1
  105019. 802af88: ee17 1a90 vmov r1, s15
  105020. 802af8c: 2501 movs r5, #1
  105021. 802af8e: f1a1 71f8 sub.w r1, r1, #32505856 @ 0x1f00000
  105022. 802af92: e7a8 b.n 802aee6 <_dtoa_r+0xf6>
  105023. 802af94: 2101 movs r1, #1
  105024. 802af96: 1ad2 subs r2, r2, r3
  105025. 802af98: 1e53 subs r3, r2, #1
  105026. 802af9a: 9306 str r3, [sp, #24]
  105027. 802af9c: bf45 ittet mi
  105028. 802af9e: f1c2 0301 rsbmi r3, r2, #1
  105029. 802afa2: 9305 strmi r3, [sp, #20]
  105030. 802afa4: 2300 movpl r3, #0
  105031. 802afa6: 2300 movmi r3, #0
  105032. 802afa8: bf4c ite mi
  105033. 802afaa: 9306 strmi r3, [sp, #24]
  105034. 802afac: 9305 strpl r3, [sp, #20]
  105035. 802afae: f1b8 0f00 cmp.w r8, #0
  105036. 802afb2: 910c str r1, [sp, #48] @ 0x30
  105037. 802afb4: db18 blt.n 802afe8 <_dtoa_r+0x1f8>
  105038. 802afb6: 9b06 ldr r3, [sp, #24]
  105039. 802afb8: f8cd 8028 str.w r8, [sp, #40] @ 0x28
  105040. 802afbc: 4443 add r3, r8
  105041. 802afbe: 9306 str r3, [sp, #24]
  105042. 802afc0: 2300 movs r3, #0
  105043. 802afc2: 9a07 ldr r2, [sp, #28]
  105044. 802afc4: 2a09 cmp r2, #9
  105045. 802afc6: d849 bhi.n 802b05c <_dtoa_r+0x26c>
  105046. 802afc8: 2a05 cmp r2, #5
  105047. 802afca: bfc4 itt gt
  105048. 802afcc: 3a04 subgt r2, #4
  105049. 802afce: 9207 strgt r2, [sp, #28]
  105050. 802afd0: 9a07 ldr r2, [sp, #28]
  105051. 802afd2: f1a2 0202 sub.w r2, r2, #2
  105052. 802afd6: bfcc ite gt
  105053. 802afd8: 2400 movgt r4, #0
  105054. 802afda: 2401 movle r4, #1
  105055. 802afdc: 2a03 cmp r2, #3
  105056. 802afde: d848 bhi.n 802b072 <_dtoa_r+0x282>
  105057. 802afe0: e8df f002 tbb [pc, r2]
  105058. 802afe4: 3a2c2e0b .word 0x3a2c2e0b
  105059. 802afe8: 9b05 ldr r3, [sp, #20]
  105060. 802afea: 2200 movs r2, #0
  105061. 802afec: eba3 0308 sub.w r3, r3, r8
  105062. 802aff0: 9305 str r3, [sp, #20]
  105063. 802aff2: 920a str r2, [sp, #40] @ 0x28
  105064. 802aff4: f1c8 0300 rsb r3, r8, #0
  105065. 802aff8: e7e3 b.n 802afc2 <_dtoa_r+0x1d2>
  105066. 802affa: 2200 movs r2, #0
  105067. 802affc: 9208 str r2, [sp, #32]
  105068. 802affe: 9a09 ldr r2, [sp, #36] @ 0x24
  105069. 802b000: 2a00 cmp r2, #0
  105070. 802b002: dc39 bgt.n 802b078 <_dtoa_r+0x288>
  105071. 802b004: f04f 0b01 mov.w fp, #1
  105072. 802b008: 46da mov sl, fp
  105073. 802b00a: 465a mov r2, fp
  105074. 802b00c: f8cd b024 str.w fp, [sp, #36] @ 0x24
  105075. 802b010: f8d9 701c ldr.w r7, [r9, #28]
  105076. 802b014: 2100 movs r1, #0
  105077. 802b016: 2004 movs r0, #4
  105078. 802b018: f100 0614 add.w r6, r0, #20
  105079. 802b01c: 4296 cmp r6, r2
  105080. 802b01e: d930 bls.n 802b082 <_dtoa_r+0x292>
  105081. 802b020: 6079 str r1, [r7, #4]
  105082. 802b022: 4648 mov r0, r9
  105083. 802b024: 9304 str r3, [sp, #16]
  105084. 802b026: f000 ffcf bl 802bfc8 <_Balloc>
  105085. 802b02a: 9b04 ldr r3, [sp, #16]
  105086. 802b02c: 4607 mov r7, r0
  105087. 802b02e: 2800 cmp r0, #0
  105088. 802b030: d146 bne.n 802b0c0 <_dtoa_r+0x2d0>
  105089. 802b032: 4b22 ldr r3, [pc, #136] @ (802b0bc <_dtoa_r+0x2cc>)
  105090. 802b034: 4602 mov r2, r0
  105091. 802b036: f240 11af movw r1, #431 @ 0x1af
  105092. 802b03a: e6f2 b.n 802ae22 <_dtoa_r+0x32>
  105093. 802b03c: 2201 movs r2, #1
  105094. 802b03e: e7dd b.n 802affc <_dtoa_r+0x20c>
  105095. 802b040: 2200 movs r2, #0
  105096. 802b042: 9208 str r2, [sp, #32]
  105097. 802b044: 9a09 ldr r2, [sp, #36] @ 0x24
  105098. 802b046: eb08 0b02 add.w fp, r8, r2
  105099. 802b04a: f10b 0a01 add.w sl, fp, #1
  105100. 802b04e: 4652 mov r2, sl
  105101. 802b050: 2a01 cmp r2, #1
  105102. 802b052: bfb8 it lt
  105103. 802b054: 2201 movlt r2, #1
  105104. 802b056: e7db b.n 802b010 <_dtoa_r+0x220>
  105105. 802b058: 2201 movs r2, #1
  105106. 802b05a: e7f2 b.n 802b042 <_dtoa_r+0x252>
  105107. 802b05c: 2401 movs r4, #1
  105108. 802b05e: 2200 movs r2, #0
  105109. 802b060: e9cd 2407 strd r2, r4, [sp, #28]
  105110. 802b064: f04f 3bff mov.w fp, #4294967295 @ 0xffffffff
  105111. 802b068: 2100 movs r1, #0
  105112. 802b06a: 46da mov sl, fp
  105113. 802b06c: 2212 movs r2, #18
  105114. 802b06e: 9109 str r1, [sp, #36] @ 0x24
  105115. 802b070: e7ce b.n 802b010 <_dtoa_r+0x220>
  105116. 802b072: 2201 movs r2, #1
  105117. 802b074: 9208 str r2, [sp, #32]
  105118. 802b076: e7f5 b.n 802b064 <_dtoa_r+0x274>
  105119. 802b078: f8dd b024 ldr.w fp, [sp, #36] @ 0x24
  105120. 802b07c: 46da mov sl, fp
  105121. 802b07e: 465a mov r2, fp
  105122. 802b080: e7c6 b.n 802b010 <_dtoa_r+0x220>
  105123. 802b082: 3101 adds r1, #1
  105124. 802b084: 0040 lsls r0, r0, #1
  105125. 802b086: e7c7 b.n 802b018 <_dtoa_r+0x228>
  105126. 802b088: 636f4361 .word 0x636f4361
  105127. 802b08c: 3fd287a7 .word 0x3fd287a7
  105128. 802b090: 8b60c8b3 .word 0x8b60c8b3
  105129. 802b094: 3fc68a28 .word 0x3fc68a28
  105130. 802b098: 509f79fb .word 0x509f79fb
  105131. 802b09c: 3fd34413 .word 0x3fd34413
  105132. 802b0a0: 08031b6e .word 0x08031b6e
  105133. 802b0a4: 08031db6 .word 0x08031db6
  105134. 802b0a8: 7ff00000 .word 0x7ff00000
  105135. 802b0ac: 08031db2 .word 0x08031db2
  105136. 802b0b0: 08031d42 .word 0x08031d42
  105137. 802b0b4: 08031d41 .word 0x08031d41
  105138. 802b0b8: 08031f10 .word 0x08031f10
  105139. 802b0bc: 08031e0e .word 0x08031e0e
  105140. 802b0c0: f8d9 201c ldr.w r2, [r9, #28]
  105141. 802b0c4: f1ba 0f0e cmp.w sl, #14
  105142. 802b0c8: 6010 str r0, [r2, #0]
  105143. 802b0ca: d86f bhi.n 802b1ac <_dtoa_r+0x3bc>
  105144. 802b0cc: 2c00 cmp r4, #0
  105145. 802b0ce: d06d beq.n 802b1ac <_dtoa_r+0x3bc>
  105146. 802b0d0: f1b8 0f00 cmp.w r8, #0
  105147. 802b0d4: f340 80c2 ble.w 802b25c <_dtoa_r+0x46c>
  105148. 802b0d8: 4aca ldr r2, [pc, #808] @ (802b404 <_dtoa_r+0x614>)
  105149. 802b0da: f008 010f and.w r1, r8, #15
  105150. 802b0de: eb02 02c1 add.w r2, r2, r1, lsl #3
  105151. 802b0e2: f418 7f80 tst.w r8, #256 @ 0x100
  105152. 802b0e6: ed92 7b00 vldr d7, [r2]
  105153. 802b0ea: ea4f 1128 mov.w r1, r8, asr #4
  105154. 802b0ee: f000 80a9 beq.w 802b244 <_dtoa_r+0x454>
  105155. 802b0f2: 4ac5 ldr r2, [pc, #788] @ (802b408 <_dtoa_r+0x618>)
  105156. 802b0f4: ed92 6b08 vldr d6, [r2, #32]
  105157. 802b0f8: ee88 6b06 vdiv.f64 d6, d8, d6
  105158. 802b0fc: ed8d 6b02 vstr d6, [sp, #8]
  105159. 802b100: f001 010f and.w r1, r1, #15
  105160. 802b104: 2203 movs r2, #3
  105161. 802b106: 48c0 ldr r0, [pc, #768] @ (802b408 <_dtoa_r+0x618>)
  105162. 802b108: 2900 cmp r1, #0
  105163. 802b10a: f040 809d bne.w 802b248 <_dtoa_r+0x458>
  105164. 802b10e: ed9d 6b02 vldr d6, [sp, #8]
  105165. 802b112: ee86 7b07 vdiv.f64 d7, d6, d7
  105166. 802b116: ed8d 7b02 vstr d7, [sp, #8]
  105167. 802b11a: 990c ldr r1, [sp, #48] @ 0x30
  105168. 802b11c: ed9d 7b02 vldr d7, [sp, #8]
  105169. 802b120: 2900 cmp r1, #0
  105170. 802b122: f000 80c1 beq.w 802b2a8 <_dtoa_r+0x4b8>
  105171. 802b126: eeb7 6b00 vmov.f64 d6, #112 @ 0x3f800000 1.0
  105172. 802b12a: eeb4 7bc6 vcmpe.f64 d7, d6
  105173. 802b12e: eef1 fa10 vmrs APSR_nzcv, fpscr
  105174. 802b132: f140 80b9 bpl.w 802b2a8 <_dtoa_r+0x4b8>
  105175. 802b136: f1ba 0f00 cmp.w sl, #0
  105176. 802b13a: f000 80b5 beq.w 802b2a8 <_dtoa_r+0x4b8>
  105177. 802b13e: f1bb 0f00 cmp.w fp, #0
  105178. 802b142: dd31 ble.n 802b1a8 <_dtoa_r+0x3b8>
  105179. 802b144: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  105180. 802b148: ee27 7b06 vmul.f64 d7, d7, d6
  105181. 802b14c: ed8d 7b02 vstr d7, [sp, #8]
  105182. 802b150: f108 31ff add.w r1, r8, #4294967295 @ 0xffffffff
  105183. 802b154: 9104 str r1, [sp, #16]
  105184. 802b156: 3201 adds r2, #1
  105185. 802b158: 465c mov r4, fp
  105186. 802b15a: ed9d 6b02 vldr d6, [sp, #8]
  105187. 802b15e: eeb1 5b0c vmov.f64 d5, #28 @ 0x40e00000 7.0
  105188. 802b162: ee07 2a90 vmov s15, r2
  105189. 802b166: eeb8 7be7 vcvt.f64.s32 d7, s15
  105190. 802b16a: eea7 5b06 vfma.f64 d5, d7, d6
  105191. 802b16e: ee15 2a90 vmov r2, s11
  105192. 802b172: ec51 0b15 vmov r0, r1, d5
  105193. 802b176: f1a2 7150 sub.w r1, r2, #54525952 @ 0x3400000
  105194. 802b17a: 2c00 cmp r4, #0
  105195. 802b17c: f040 8098 bne.w 802b2b0 <_dtoa_r+0x4c0>
  105196. 802b180: eeb1 7b04 vmov.f64 d7, #20 @ 0x40a00000 5.0
  105197. 802b184: ee36 6b47 vsub.f64 d6, d6, d7
  105198. 802b188: ec41 0b17 vmov d7, r0, r1
  105199. 802b18c: eeb4 6bc7 vcmpe.f64 d6, d7
  105200. 802b190: eef1 fa10 vmrs APSR_nzcv, fpscr
  105201. 802b194: f300 8261 bgt.w 802b65a <_dtoa_r+0x86a>
  105202. 802b198: eeb1 7b47 vneg.f64 d7, d7
  105203. 802b19c: eeb4 6bc7 vcmpe.f64 d6, d7
  105204. 802b1a0: eef1 fa10 vmrs APSR_nzcv, fpscr
  105205. 802b1a4: f100 80f5 bmi.w 802b392 <_dtoa_r+0x5a2>
  105206. 802b1a8: ed8d 8b02 vstr d8, [sp, #8]
  105207. 802b1ac: 9a0f ldr r2, [sp, #60] @ 0x3c
  105208. 802b1ae: 2a00 cmp r2, #0
  105209. 802b1b0: f2c0 812c blt.w 802b40c <_dtoa_r+0x61c>
  105210. 802b1b4: f1b8 0f0e cmp.w r8, #14
  105211. 802b1b8: f300 8128 bgt.w 802b40c <_dtoa_r+0x61c>
  105212. 802b1bc: 4b91 ldr r3, [pc, #580] @ (802b404 <_dtoa_r+0x614>)
  105213. 802b1be: eb03 03c8 add.w r3, r3, r8, lsl #3
  105214. 802b1c2: ed93 6b00 vldr d6, [r3]
  105215. 802b1c6: 9b09 ldr r3, [sp, #36] @ 0x24
  105216. 802b1c8: 2b00 cmp r3, #0
  105217. 802b1ca: da03 bge.n 802b1d4 <_dtoa_r+0x3e4>
  105218. 802b1cc: f1ba 0f00 cmp.w sl, #0
  105219. 802b1d0: f340 80d2 ble.w 802b378 <_dtoa_r+0x588>
  105220. 802b1d4: eeb2 4b04 vmov.f64 d4, #36 @ 0x41200000 10.0
  105221. 802b1d8: ed9d 7b02 vldr d7, [sp, #8]
  105222. 802b1dc: 463e mov r6, r7
  105223. 802b1de: ee87 5b06 vdiv.f64 d5, d7, d6
  105224. 802b1e2: eebd 5bc5 vcvt.s32.f64 s10, d5
  105225. 802b1e6: ee15 3a10 vmov r3, s10
  105226. 802b1ea: 3330 adds r3, #48 @ 0x30
  105227. 802b1ec: f806 3b01 strb.w r3, [r6], #1
  105228. 802b1f0: 1bf3 subs r3, r6, r7
  105229. 802b1f2: 459a cmp sl, r3
  105230. 802b1f4: eeb8 3bc5 vcvt.f64.s32 d3, s10
  105231. 802b1f8: eea3 7b46 vfms.f64 d7, d3, d6
  105232. 802b1fc: f040 80f8 bne.w 802b3f0 <_dtoa_r+0x600>
  105233. 802b200: ee37 7b07 vadd.f64 d7, d7, d7
  105234. 802b204: eeb4 7bc6 vcmpe.f64 d7, d6
  105235. 802b208: eef1 fa10 vmrs APSR_nzcv, fpscr
  105236. 802b20c: f300 80dd bgt.w 802b3ca <_dtoa_r+0x5da>
  105237. 802b210: eeb4 7b46 vcmp.f64 d7, d6
  105238. 802b214: eef1 fa10 vmrs APSR_nzcv, fpscr
  105239. 802b218: d104 bne.n 802b224 <_dtoa_r+0x434>
  105240. 802b21a: ee15 3a10 vmov r3, s10
  105241. 802b21e: 07db lsls r3, r3, #31
  105242. 802b220: f100 80d3 bmi.w 802b3ca <_dtoa_r+0x5da>
  105243. 802b224: 9901 ldr r1, [sp, #4]
  105244. 802b226: 4648 mov r0, r9
  105245. 802b228: f000 ff0e bl 802c048 <_Bfree>
  105246. 802b22c: 2300 movs r3, #0
  105247. 802b22e: 9a0d ldr r2, [sp, #52] @ 0x34
  105248. 802b230: 7033 strb r3, [r6, #0]
  105249. 802b232: f108 0301 add.w r3, r8, #1
  105250. 802b236: 6013 str r3, [r2, #0]
  105251. 802b238: 9b1d ldr r3, [sp, #116] @ 0x74
  105252. 802b23a: 2b00 cmp r3, #0
  105253. 802b23c: f000 8304 beq.w 802b848 <_dtoa_r+0xa58>
  105254. 802b240: 601e str r6, [r3, #0]
  105255. 802b242: e301 b.n 802b848 <_dtoa_r+0xa58>
  105256. 802b244: 2202 movs r2, #2
  105257. 802b246: e75e b.n 802b106 <_dtoa_r+0x316>
  105258. 802b248: 07cc lsls r4, r1, #31
  105259. 802b24a: d504 bpl.n 802b256 <_dtoa_r+0x466>
  105260. 802b24c: ed90 6b00 vldr d6, [r0]
  105261. 802b250: 3201 adds r2, #1
  105262. 802b252: ee27 7b06 vmul.f64 d7, d7, d6
  105263. 802b256: 1049 asrs r1, r1, #1
  105264. 802b258: 3008 adds r0, #8
  105265. 802b25a: e755 b.n 802b108 <_dtoa_r+0x318>
  105266. 802b25c: d022 beq.n 802b2a4 <_dtoa_r+0x4b4>
  105267. 802b25e: f1c8 0100 rsb r1, r8, #0
  105268. 802b262: 4a68 ldr r2, [pc, #416] @ (802b404 <_dtoa_r+0x614>)
  105269. 802b264: f001 000f and.w r0, r1, #15
  105270. 802b268: eb02 02c0 add.w r2, r2, r0, lsl #3
  105271. 802b26c: ed92 7b00 vldr d7, [r2]
  105272. 802b270: ee28 7b07 vmul.f64 d7, d8, d7
  105273. 802b274: ed8d 7b02 vstr d7, [sp, #8]
  105274. 802b278: 4863 ldr r0, [pc, #396] @ (802b408 <_dtoa_r+0x618>)
  105275. 802b27a: 1109 asrs r1, r1, #4
  105276. 802b27c: 2400 movs r4, #0
  105277. 802b27e: 2202 movs r2, #2
  105278. 802b280: b929 cbnz r1, 802b28e <_dtoa_r+0x49e>
  105279. 802b282: 2c00 cmp r4, #0
  105280. 802b284: f43f af49 beq.w 802b11a <_dtoa_r+0x32a>
  105281. 802b288: ed8d 7b02 vstr d7, [sp, #8]
  105282. 802b28c: e745 b.n 802b11a <_dtoa_r+0x32a>
  105283. 802b28e: 07ce lsls r6, r1, #31
  105284. 802b290: d505 bpl.n 802b29e <_dtoa_r+0x4ae>
  105285. 802b292: ed90 6b00 vldr d6, [r0]
  105286. 802b296: 3201 adds r2, #1
  105287. 802b298: 2401 movs r4, #1
  105288. 802b29a: ee27 7b06 vmul.f64 d7, d7, d6
  105289. 802b29e: 1049 asrs r1, r1, #1
  105290. 802b2a0: 3008 adds r0, #8
  105291. 802b2a2: e7ed b.n 802b280 <_dtoa_r+0x490>
  105292. 802b2a4: 2202 movs r2, #2
  105293. 802b2a6: e738 b.n 802b11a <_dtoa_r+0x32a>
  105294. 802b2a8: f8cd 8010 str.w r8, [sp, #16]
  105295. 802b2ac: 4654 mov r4, sl
  105296. 802b2ae: e754 b.n 802b15a <_dtoa_r+0x36a>
  105297. 802b2b0: 4a54 ldr r2, [pc, #336] @ (802b404 <_dtoa_r+0x614>)
  105298. 802b2b2: eb02 02c4 add.w r2, r2, r4, lsl #3
  105299. 802b2b6: ed12 4b02 vldr d4, [r2, #-8]
  105300. 802b2ba: 9a08 ldr r2, [sp, #32]
  105301. 802b2bc: ec41 0b17 vmov d7, r0, r1
  105302. 802b2c0: 443c add r4, r7
  105303. 802b2c2: b34a cbz r2, 802b318 <_dtoa_r+0x528>
  105304. 802b2c4: eeb6 3b00 vmov.f64 d3, #96 @ 0x3f000000 0.5
  105305. 802b2c8: eeb7 2b00 vmov.f64 d2, #112 @ 0x3f800000 1.0
  105306. 802b2cc: 463e mov r6, r7
  105307. 802b2ce: ee83 5b04 vdiv.f64 d5, d3, d4
  105308. 802b2d2: eeb2 3b04 vmov.f64 d3, #36 @ 0x41200000 10.0
  105309. 802b2d6: ee35 7b47 vsub.f64 d7, d5, d7
  105310. 802b2da: eefd 4bc6 vcvt.s32.f64 s9, d6
  105311. 802b2de: ee14 2a90 vmov r2, s9
  105312. 802b2e2: eeb8 5be4 vcvt.f64.s32 d5, s9
  105313. 802b2e6: 3230 adds r2, #48 @ 0x30
  105314. 802b2e8: ee36 6b45 vsub.f64 d6, d6, d5
  105315. 802b2ec: eeb4 6bc7 vcmpe.f64 d6, d7
  105316. 802b2f0: eef1 fa10 vmrs APSR_nzcv, fpscr
  105317. 802b2f4: f806 2b01 strb.w r2, [r6], #1
  105318. 802b2f8: d438 bmi.n 802b36c <_dtoa_r+0x57c>
  105319. 802b2fa: ee32 5b46 vsub.f64 d5, d2, d6
  105320. 802b2fe: eeb4 5bc7 vcmpe.f64 d5, d7
  105321. 802b302: eef1 fa10 vmrs APSR_nzcv, fpscr
  105322. 802b306: d462 bmi.n 802b3ce <_dtoa_r+0x5de>
  105323. 802b308: 42a6 cmp r6, r4
  105324. 802b30a: f43f af4d beq.w 802b1a8 <_dtoa_r+0x3b8>
  105325. 802b30e: ee27 7b03 vmul.f64 d7, d7, d3
  105326. 802b312: ee26 6b03 vmul.f64 d6, d6, d3
  105327. 802b316: e7e0 b.n 802b2da <_dtoa_r+0x4ea>
  105328. 802b318: 4621 mov r1, r4
  105329. 802b31a: 463e mov r6, r7
  105330. 802b31c: ee27 7b04 vmul.f64 d7, d7, d4
  105331. 802b320: eeb2 3b04 vmov.f64 d3, #36 @ 0x41200000 10.0
  105332. 802b324: eefd 4bc6 vcvt.s32.f64 s9, d6
  105333. 802b328: ee14 2a90 vmov r2, s9
  105334. 802b32c: 3230 adds r2, #48 @ 0x30
  105335. 802b32e: f806 2b01 strb.w r2, [r6], #1
  105336. 802b332: 42a6 cmp r6, r4
  105337. 802b334: eeb8 5be4 vcvt.f64.s32 d5, s9
  105338. 802b338: ee36 6b45 vsub.f64 d6, d6, d5
  105339. 802b33c: d119 bne.n 802b372 <_dtoa_r+0x582>
  105340. 802b33e: eeb6 5b00 vmov.f64 d5, #96 @ 0x3f000000 0.5
  105341. 802b342: ee37 4b05 vadd.f64 d4, d7, d5
  105342. 802b346: eeb4 6bc4 vcmpe.f64 d6, d4
  105343. 802b34a: eef1 fa10 vmrs APSR_nzcv, fpscr
  105344. 802b34e: dc3e bgt.n 802b3ce <_dtoa_r+0x5de>
  105345. 802b350: ee35 5b47 vsub.f64 d5, d5, d7
  105346. 802b354: eeb4 6bc5 vcmpe.f64 d6, d5
  105347. 802b358: eef1 fa10 vmrs APSR_nzcv, fpscr
  105348. 802b35c: f57f af24 bpl.w 802b1a8 <_dtoa_r+0x3b8>
  105349. 802b360: 460e mov r6, r1
  105350. 802b362: 3901 subs r1, #1
  105351. 802b364: f816 3c01 ldrb.w r3, [r6, #-1]
  105352. 802b368: 2b30 cmp r3, #48 @ 0x30
  105353. 802b36a: d0f9 beq.n 802b360 <_dtoa_r+0x570>
  105354. 802b36c: f8dd 8010 ldr.w r8, [sp, #16]
  105355. 802b370: e758 b.n 802b224 <_dtoa_r+0x434>
  105356. 802b372: ee26 6b03 vmul.f64 d6, d6, d3
  105357. 802b376: e7d5 b.n 802b324 <_dtoa_r+0x534>
  105358. 802b378: d10b bne.n 802b392 <_dtoa_r+0x5a2>
  105359. 802b37a: eeb1 7b04 vmov.f64 d7, #20 @ 0x40a00000 5.0
  105360. 802b37e: ee26 6b07 vmul.f64 d6, d6, d7
  105361. 802b382: ed9d 7b02 vldr d7, [sp, #8]
  105362. 802b386: eeb4 6bc7 vcmpe.f64 d6, d7
  105363. 802b38a: eef1 fa10 vmrs APSR_nzcv, fpscr
  105364. 802b38e: f2c0 8161 blt.w 802b654 <_dtoa_r+0x864>
  105365. 802b392: 2400 movs r4, #0
  105366. 802b394: 4625 mov r5, r4
  105367. 802b396: 9b09 ldr r3, [sp, #36] @ 0x24
  105368. 802b398: 43db mvns r3, r3
  105369. 802b39a: 9304 str r3, [sp, #16]
  105370. 802b39c: 463e mov r6, r7
  105371. 802b39e: f04f 0800 mov.w r8, #0
  105372. 802b3a2: 4621 mov r1, r4
  105373. 802b3a4: 4648 mov r0, r9
  105374. 802b3a6: f000 fe4f bl 802c048 <_Bfree>
  105375. 802b3aa: 2d00 cmp r5, #0
  105376. 802b3ac: d0de beq.n 802b36c <_dtoa_r+0x57c>
  105377. 802b3ae: f1b8 0f00 cmp.w r8, #0
  105378. 802b3b2: d005 beq.n 802b3c0 <_dtoa_r+0x5d0>
  105379. 802b3b4: 45a8 cmp r8, r5
  105380. 802b3b6: d003 beq.n 802b3c0 <_dtoa_r+0x5d0>
  105381. 802b3b8: 4641 mov r1, r8
  105382. 802b3ba: 4648 mov r0, r9
  105383. 802b3bc: f000 fe44 bl 802c048 <_Bfree>
  105384. 802b3c0: 4629 mov r1, r5
  105385. 802b3c2: 4648 mov r0, r9
  105386. 802b3c4: f000 fe40 bl 802c048 <_Bfree>
  105387. 802b3c8: e7d0 b.n 802b36c <_dtoa_r+0x57c>
  105388. 802b3ca: f8cd 8010 str.w r8, [sp, #16]
  105389. 802b3ce: 4633 mov r3, r6
  105390. 802b3d0: 461e mov r6, r3
  105391. 802b3d2: f813 2d01 ldrb.w r2, [r3, #-1]!
  105392. 802b3d6: 2a39 cmp r2, #57 @ 0x39
  105393. 802b3d8: d106 bne.n 802b3e8 <_dtoa_r+0x5f8>
  105394. 802b3da: 429f cmp r7, r3
  105395. 802b3dc: d1f8 bne.n 802b3d0 <_dtoa_r+0x5e0>
  105396. 802b3de: 9a04 ldr r2, [sp, #16]
  105397. 802b3e0: 3201 adds r2, #1
  105398. 802b3e2: 9204 str r2, [sp, #16]
  105399. 802b3e4: 2230 movs r2, #48 @ 0x30
  105400. 802b3e6: 703a strb r2, [r7, #0]
  105401. 802b3e8: 781a ldrb r2, [r3, #0]
  105402. 802b3ea: 3201 adds r2, #1
  105403. 802b3ec: 701a strb r2, [r3, #0]
  105404. 802b3ee: e7bd b.n 802b36c <_dtoa_r+0x57c>
  105405. 802b3f0: ee27 7b04 vmul.f64 d7, d7, d4
  105406. 802b3f4: eeb5 7b40 vcmp.f64 d7, #0.0
  105407. 802b3f8: eef1 fa10 vmrs APSR_nzcv, fpscr
  105408. 802b3fc: f47f aeef bne.w 802b1de <_dtoa_r+0x3ee>
  105409. 802b400: e710 b.n 802b224 <_dtoa_r+0x434>
  105410. 802b402: bf00 nop
  105411. 802b404: 08031f10 .word 0x08031f10
  105412. 802b408: 08031ee8 .word 0x08031ee8
  105413. 802b40c: 9908 ldr r1, [sp, #32]
  105414. 802b40e: 2900 cmp r1, #0
  105415. 802b410: f000 80e3 beq.w 802b5da <_dtoa_r+0x7ea>
  105416. 802b414: 9907 ldr r1, [sp, #28]
  105417. 802b416: 2901 cmp r1, #1
  105418. 802b418: f300 80c8 bgt.w 802b5ac <_dtoa_r+0x7bc>
  105419. 802b41c: 2d00 cmp r5, #0
  105420. 802b41e: f000 80c1 beq.w 802b5a4 <_dtoa_r+0x7b4>
  105421. 802b422: f202 4233 addw r2, r2, #1075 @ 0x433
  105422. 802b426: 9e05 ldr r6, [sp, #20]
  105423. 802b428: 461c mov r4, r3
  105424. 802b42a: 9304 str r3, [sp, #16]
  105425. 802b42c: 9b05 ldr r3, [sp, #20]
  105426. 802b42e: 4413 add r3, r2
  105427. 802b430: 9305 str r3, [sp, #20]
  105428. 802b432: 9b06 ldr r3, [sp, #24]
  105429. 802b434: 2101 movs r1, #1
  105430. 802b436: 4413 add r3, r2
  105431. 802b438: 4648 mov r0, r9
  105432. 802b43a: 9306 str r3, [sp, #24]
  105433. 802b43c: f000 ff02 bl 802c244 <__i2b>
  105434. 802b440: 9b04 ldr r3, [sp, #16]
  105435. 802b442: 4605 mov r5, r0
  105436. 802b444: b166 cbz r6, 802b460 <_dtoa_r+0x670>
  105437. 802b446: 9a06 ldr r2, [sp, #24]
  105438. 802b448: 2a00 cmp r2, #0
  105439. 802b44a: dd09 ble.n 802b460 <_dtoa_r+0x670>
  105440. 802b44c: 42b2 cmp r2, r6
  105441. 802b44e: 9905 ldr r1, [sp, #20]
  105442. 802b450: bfa8 it ge
  105443. 802b452: 4632 movge r2, r6
  105444. 802b454: 1a89 subs r1, r1, r2
  105445. 802b456: 9105 str r1, [sp, #20]
  105446. 802b458: 9906 ldr r1, [sp, #24]
  105447. 802b45a: 1ab6 subs r6, r6, r2
  105448. 802b45c: 1a8a subs r2, r1, r2
  105449. 802b45e: 9206 str r2, [sp, #24]
  105450. 802b460: b1fb cbz r3, 802b4a2 <_dtoa_r+0x6b2>
  105451. 802b462: 9a08 ldr r2, [sp, #32]
  105452. 802b464: 2a00 cmp r2, #0
  105453. 802b466: f000 80bc beq.w 802b5e2 <_dtoa_r+0x7f2>
  105454. 802b46a: b19c cbz r4, 802b494 <_dtoa_r+0x6a4>
  105455. 802b46c: 4629 mov r1, r5
  105456. 802b46e: 4622 mov r2, r4
  105457. 802b470: 4648 mov r0, r9
  105458. 802b472: 930b str r3, [sp, #44] @ 0x2c
  105459. 802b474: f000 ffa6 bl 802c3c4 <__pow5mult>
  105460. 802b478: 9a01 ldr r2, [sp, #4]
  105461. 802b47a: 4601 mov r1, r0
  105462. 802b47c: 4605 mov r5, r0
  105463. 802b47e: 4648 mov r0, r9
  105464. 802b480: f000 fef6 bl 802c270 <__multiply>
  105465. 802b484: 9901 ldr r1, [sp, #4]
  105466. 802b486: 9004 str r0, [sp, #16]
  105467. 802b488: 4648 mov r0, r9
  105468. 802b48a: f000 fddd bl 802c048 <_Bfree>
  105469. 802b48e: 9a04 ldr r2, [sp, #16]
  105470. 802b490: 9b0b ldr r3, [sp, #44] @ 0x2c
  105471. 802b492: 9201 str r2, [sp, #4]
  105472. 802b494: 1b1a subs r2, r3, r4
  105473. 802b496: d004 beq.n 802b4a2 <_dtoa_r+0x6b2>
  105474. 802b498: 9901 ldr r1, [sp, #4]
  105475. 802b49a: 4648 mov r0, r9
  105476. 802b49c: f000 ff92 bl 802c3c4 <__pow5mult>
  105477. 802b4a0: 9001 str r0, [sp, #4]
  105478. 802b4a2: 2101 movs r1, #1
  105479. 802b4a4: 4648 mov r0, r9
  105480. 802b4a6: f000 fecd bl 802c244 <__i2b>
  105481. 802b4aa: 9b0a ldr r3, [sp, #40] @ 0x28
  105482. 802b4ac: 4604 mov r4, r0
  105483. 802b4ae: 2b00 cmp r3, #0
  105484. 802b4b0: f000 81d0 beq.w 802b854 <_dtoa_r+0xa64>
  105485. 802b4b4: 461a mov r2, r3
  105486. 802b4b6: 4601 mov r1, r0
  105487. 802b4b8: 4648 mov r0, r9
  105488. 802b4ba: f000 ff83 bl 802c3c4 <__pow5mult>
  105489. 802b4be: 9b07 ldr r3, [sp, #28]
  105490. 802b4c0: 2b01 cmp r3, #1
  105491. 802b4c2: 4604 mov r4, r0
  105492. 802b4c4: f300 8095 bgt.w 802b5f2 <_dtoa_r+0x802>
  105493. 802b4c8: 9b02 ldr r3, [sp, #8]
  105494. 802b4ca: 2b00 cmp r3, #0
  105495. 802b4cc: f040 808b bne.w 802b5e6 <_dtoa_r+0x7f6>
  105496. 802b4d0: 9b03 ldr r3, [sp, #12]
  105497. 802b4d2: f3c3 0213 ubfx r2, r3, #0, #20
  105498. 802b4d6: 2a00 cmp r2, #0
  105499. 802b4d8: f040 8087 bne.w 802b5ea <_dtoa_r+0x7fa>
  105500. 802b4dc: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  105501. 802b4e0: 0d12 lsrs r2, r2, #20
  105502. 802b4e2: 0512 lsls r2, r2, #20
  105503. 802b4e4: 2a00 cmp r2, #0
  105504. 802b4e6: f000 8082 beq.w 802b5ee <_dtoa_r+0x7fe>
  105505. 802b4ea: 9b05 ldr r3, [sp, #20]
  105506. 802b4ec: 3301 adds r3, #1
  105507. 802b4ee: 9305 str r3, [sp, #20]
  105508. 802b4f0: 9b06 ldr r3, [sp, #24]
  105509. 802b4f2: 3301 adds r3, #1
  105510. 802b4f4: 9306 str r3, [sp, #24]
  105511. 802b4f6: 2301 movs r3, #1
  105512. 802b4f8: 930b str r3, [sp, #44] @ 0x2c
  105513. 802b4fa: 9b0a ldr r3, [sp, #40] @ 0x28
  105514. 802b4fc: 2b00 cmp r3, #0
  105515. 802b4fe: f000 81af beq.w 802b860 <_dtoa_r+0xa70>
  105516. 802b502: 6922 ldr r2, [r4, #16]
  105517. 802b504: eb04 0282 add.w r2, r4, r2, lsl #2
  105518. 802b508: 6910 ldr r0, [r2, #16]
  105519. 802b50a: f000 fe4f bl 802c1ac <__hi0bits>
  105520. 802b50e: f1c0 0020 rsb r0, r0, #32
  105521. 802b512: 9b06 ldr r3, [sp, #24]
  105522. 802b514: 4418 add r0, r3
  105523. 802b516: f010 001f ands.w r0, r0, #31
  105524. 802b51a: d076 beq.n 802b60a <_dtoa_r+0x81a>
  105525. 802b51c: f1c0 0220 rsb r2, r0, #32
  105526. 802b520: 2a04 cmp r2, #4
  105527. 802b522: dd69 ble.n 802b5f8 <_dtoa_r+0x808>
  105528. 802b524: 9b05 ldr r3, [sp, #20]
  105529. 802b526: f1c0 001c rsb r0, r0, #28
  105530. 802b52a: 4403 add r3, r0
  105531. 802b52c: 9305 str r3, [sp, #20]
  105532. 802b52e: 9b06 ldr r3, [sp, #24]
  105533. 802b530: 4406 add r6, r0
  105534. 802b532: 4403 add r3, r0
  105535. 802b534: 9306 str r3, [sp, #24]
  105536. 802b536: 9b05 ldr r3, [sp, #20]
  105537. 802b538: 2b00 cmp r3, #0
  105538. 802b53a: dd05 ble.n 802b548 <_dtoa_r+0x758>
  105539. 802b53c: 9901 ldr r1, [sp, #4]
  105540. 802b53e: 461a mov r2, r3
  105541. 802b540: 4648 mov r0, r9
  105542. 802b542: f000 ff99 bl 802c478 <__lshift>
  105543. 802b546: 9001 str r0, [sp, #4]
  105544. 802b548: 9b06 ldr r3, [sp, #24]
  105545. 802b54a: 2b00 cmp r3, #0
  105546. 802b54c: dd05 ble.n 802b55a <_dtoa_r+0x76a>
  105547. 802b54e: 4621 mov r1, r4
  105548. 802b550: 461a mov r2, r3
  105549. 802b552: 4648 mov r0, r9
  105550. 802b554: f000 ff90 bl 802c478 <__lshift>
  105551. 802b558: 4604 mov r4, r0
  105552. 802b55a: 9b0c ldr r3, [sp, #48] @ 0x30
  105553. 802b55c: 2b00 cmp r3, #0
  105554. 802b55e: d056 beq.n 802b60e <_dtoa_r+0x81e>
  105555. 802b560: 9801 ldr r0, [sp, #4]
  105556. 802b562: 4621 mov r1, r4
  105557. 802b564: f000 fff4 bl 802c550 <__mcmp>
  105558. 802b568: 2800 cmp r0, #0
  105559. 802b56a: da50 bge.n 802b60e <_dtoa_r+0x81e>
  105560. 802b56c: f108 33ff add.w r3, r8, #4294967295 @ 0xffffffff
  105561. 802b570: 9304 str r3, [sp, #16]
  105562. 802b572: 9901 ldr r1, [sp, #4]
  105563. 802b574: 2300 movs r3, #0
  105564. 802b576: 220a movs r2, #10
  105565. 802b578: 4648 mov r0, r9
  105566. 802b57a: f000 fd87 bl 802c08c <__multadd>
  105567. 802b57e: 9b08 ldr r3, [sp, #32]
  105568. 802b580: 9001 str r0, [sp, #4]
  105569. 802b582: 2b00 cmp r3, #0
  105570. 802b584: f000 816e beq.w 802b864 <_dtoa_r+0xa74>
  105571. 802b588: 4629 mov r1, r5
  105572. 802b58a: 2300 movs r3, #0
  105573. 802b58c: 220a movs r2, #10
  105574. 802b58e: 4648 mov r0, r9
  105575. 802b590: f000 fd7c bl 802c08c <__multadd>
  105576. 802b594: f1bb 0f00 cmp.w fp, #0
  105577. 802b598: 4605 mov r5, r0
  105578. 802b59a: dc64 bgt.n 802b666 <_dtoa_r+0x876>
  105579. 802b59c: 9b07 ldr r3, [sp, #28]
  105580. 802b59e: 2b02 cmp r3, #2
  105581. 802b5a0: dc3e bgt.n 802b620 <_dtoa_r+0x830>
  105582. 802b5a2: e060 b.n 802b666 <_dtoa_r+0x876>
  105583. 802b5a4: 9a0e ldr r2, [sp, #56] @ 0x38
  105584. 802b5a6: f1c2 0236 rsb r2, r2, #54 @ 0x36
  105585. 802b5aa: e73c b.n 802b426 <_dtoa_r+0x636>
  105586. 802b5ac: f10a 34ff add.w r4, sl, #4294967295 @ 0xffffffff
  105587. 802b5b0: 42a3 cmp r3, r4
  105588. 802b5b2: bfbf itttt lt
  105589. 802b5b4: 1ae2 sublt r2, r4, r3
  105590. 802b5b6: 9b0a ldrlt r3, [sp, #40] @ 0x28
  105591. 802b5b8: 189b addlt r3, r3, r2
  105592. 802b5ba: 930a strlt r3, [sp, #40] @ 0x28
  105593. 802b5bc: bfae itee ge
  105594. 802b5be: 1b1c subge r4, r3, r4
  105595. 802b5c0: 4623 movlt r3, r4
  105596. 802b5c2: 2400 movlt r4, #0
  105597. 802b5c4: f1ba 0f00 cmp.w sl, #0
  105598. 802b5c8: bfb5 itete lt
  105599. 802b5ca: 9a05 ldrlt r2, [sp, #20]
  105600. 802b5cc: 9e05 ldrge r6, [sp, #20]
  105601. 802b5ce: eba2 060a sublt.w r6, r2, sl
  105602. 802b5d2: 4652 movge r2, sl
  105603. 802b5d4: bfb8 it lt
  105604. 802b5d6: 2200 movlt r2, #0
  105605. 802b5d8: e727 b.n 802b42a <_dtoa_r+0x63a>
  105606. 802b5da: 9e05 ldr r6, [sp, #20]
  105607. 802b5dc: 9d08 ldr r5, [sp, #32]
  105608. 802b5de: 461c mov r4, r3
  105609. 802b5e0: e730 b.n 802b444 <_dtoa_r+0x654>
  105610. 802b5e2: 461a mov r2, r3
  105611. 802b5e4: e758 b.n 802b498 <_dtoa_r+0x6a8>
  105612. 802b5e6: 2300 movs r3, #0
  105613. 802b5e8: e786 b.n 802b4f8 <_dtoa_r+0x708>
  105614. 802b5ea: 9b02 ldr r3, [sp, #8]
  105615. 802b5ec: e784 b.n 802b4f8 <_dtoa_r+0x708>
  105616. 802b5ee: 920b str r2, [sp, #44] @ 0x2c
  105617. 802b5f0: e783 b.n 802b4fa <_dtoa_r+0x70a>
  105618. 802b5f2: 2300 movs r3, #0
  105619. 802b5f4: 930b str r3, [sp, #44] @ 0x2c
  105620. 802b5f6: e784 b.n 802b502 <_dtoa_r+0x712>
  105621. 802b5f8: d09d beq.n 802b536 <_dtoa_r+0x746>
  105622. 802b5fa: 9b05 ldr r3, [sp, #20]
  105623. 802b5fc: 321c adds r2, #28
  105624. 802b5fe: 4413 add r3, r2
  105625. 802b600: 9305 str r3, [sp, #20]
  105626. 802b602: 9b06 ldr r3, [sp, #24]
  105627. 802b604: 4416 add r6, r2
  105628. 802b606: 4413 add r3, r2
  105629. 802b608: e794 b.n 802b534 <_dtoa_r+0x744>
  105630. 802b60a: 4602 mov r2, r0
  105631. 802b60c: e7f5 b.n 802b5fa <_dtoa_r+0x80a>
  105632. 802b60e: f1ba 0f00 cmp.w sl, #0
  105633. 802b612: f8cd 8010 str.w r8, [sp, #16]
  105634. 802b616: 46d3 mov fp, sl
  105635. 802b618: dc21 bgt.n 802b65e <_dtoa_r+0x86e>
  105636. 802b61a: 9b07 ldr r3, [sp, #28]
  105637. 802b61c: 2b02 cmp r3, #2
  105638. 802b61e: dd1e ble.n 802b65e <_dtoa_r+0x86e>
  105639. 802b620: f1bb 0f00 cmp.w fp, #0
  105640. 802b624: f47f aeb7 bne.w 802b396 <_dtoa_r+0x5a6>
  105641. 802b628: 4621 mov r1, r4
  105642. 802b62a: 465b mov r3, fp
  105643. 802b62c: 2205 movs r2, #5
  105644. 802b62e: 4648 mov r0, r9
  105645. 802b630: f000 fd2c bl 802c08c <__multadd>
  105646. 802b634: 4601 mov r1, r0
  105647. 802b636: 4604 mov r4, r0
  105648. 802b638: 9801 ldr r0, [sp, #4]
  105649. 802b63a: f000 ff89 bl 802c550 <__mcmp>
  105650. 802b63e: 2800 cmp r0, #0
  105651. 802b640: f77f aea9 ble.w 802b396 <_dtoa_r+0x5a6>
  105652. 802b644: 463e mov r6, r7
  105653. 802b646: 2331 movs r3, #49 @ 0x31
  105654. 802b648: f806 3b01 strb.w r3, [r6], #1
  105655. 802b64c: 9b04 ldr r3, [sp, #16]
  105656. 802b64e: 3301 adds r3, #1
  105657. 802b650: 9304 str r3, [sp, #16]
  105658. 802b652: e6a4 b.n 802b39e <_dtoa_r+0x5ae>
  105659. 802b654: f8cd 8010 str.w r8, [sp, #16]
  105660. 802b658: 4654 mov r4, sl
  105661. 802b65a: 4625 mov r5, r4
  105662. 802b65c: e7f2 b.n 802b644 <_dtoa_r+0x854>
  105663. 802b65e: 9b08 ldr r3, [sp, #32]
  105664. 802b660: 2b00 cmp r3, #0
  105665. 802b662: f000 8103 beq.w 802b86c <_dtoa_r+0xa7c>
  105666. 802b666: 2e00 cmp r6, #0
  105667. 802b668: dd05 ble.n 802b676 <_dtoa_r+0x886>
  105668. 802b66a: 4629 mov r1, r5
  105669. 802b66c: 4632 mov r2, r6
  105670. 802b66e: 4648 mov r0, r9
  105671. 802b670: f000 ff02 bl 802c478 <__lshift>
  105672. 802b674: 4605 mov r5, r0
  105673. 802b676: 9b0b ldr r3, [sp, #44] @ 0x2c
  105674. 802b678: 2b00 cmp r3, #0
  105675. 802b67a: d058 beq.n 802b72e <_dtoa_r+0x93e>
  105676. 802b67c: 6869 ldr r1, [r5, #4]
  105677. 802b67e: 4648 mov r0, r9
  105678. 802b680: f000 fca2 bl 802bfc8 <_Balloc>
  105679. 802b684: 4606 mov r6, r0
  105680. 802b686: b928 cbnz r0, 802b694 <_dtoa_r+0x8a4>
  105681. 802b688: 4b82 ldr r3, [pc, #520] @ (802b894 <_dtoa_r+0xaa4>)
  105682. 802b68a: 4602 mov r2, r0
  105683. 802b68c: f240 21ef movw r1, #751 @ 0x2ef
  105684. 802b690: f7ff bbc7 b.w 802ae22 <_dtoa_r+0x32>
  105685. 802b694: 692a ldr r2, [r5, #16]
  105686. 802b696: 3202 adds r2, #2
  105687. 802b698: 0092 lsls r2, r2, #2
  105688. 802b69a: f105 010c add.w r1, r5, #12
  105689. 802b69e: 300c adds r0, #12
  105690. 802b6a0: f7ff fae5 bl 802ac6e <memcpy>
  105691. 802b6a4: 2201 movs r2, #1
  105692. 802b6a6: 4631 mov r1, r6
  105693. 802b6a8: 4648 mov r0, r9
  105694. 802b6aa: f000 fee5 bl 802c478 <__lshift>
  105695. 802b6ae: 1c7b adds r3, r7, #1
  105696. 802b6b0: 9305 str r3, [sp, #20]
  105697. 802b6b2: eb07 030b add.w r3, r7, fp
  105698. 802b6b6: 9309 str r3, [sp, #36] @ 0x24
  105699. 802b6b8: 9b02 ldr r3, [sp, #8]
  105700. 802b6ba: f003 0301 and.w r3, r3, #1
  105701. 802b6be: 46a8 mov r8, r5
  105702. 802b6c0: 9308 str r3, [sp, #32]
  105703. 802b6c2: 4605 mov r5, r0
  105704. 802b6c4: 9b05 ldr r3, [sp, #20]
  105705. 802b6c6: 9801 ldr r0, [sp, #4]
  105706. 802b6c8: 4621 mov r1, r4
  105707. 802b6ca: f103 3bff add.w fp, r3, #4294967295 @ 0xffffffff
  105708. 802b6ce: f7ff fb05 bl 802acdc <quorem>
  105709. 802b6d2: 4641 mov r1, r8
  105710. 802b6d4: 9002 str r0, [sp, #8]
  105711. 802b6d6: f100 0a30 add.w sl, r0, #48 @ 0x30
  105712. 802b6da: 9801 ldr r0, [sp, #4]
  105713. 802b6dc: f000 ff38 bl 802c550 <__mcmp>
  105714. 802b6e0: 462a mov r2, r5
  105715. 802b6e2: 9006 str r0, [sp, #24]
  105716. 802b6e4: 4621 mov r1, r4
  105717. 802b6e6: 4648 mov r0, r9
  105718. 802b6e8: f000 ff4e bl 802c588 <__mdiff>
  105719. 802b6ec: 68c2 ldr r2, [r0, #12]
  105720. 802b6ee: 4606 mov r6, r0
  105721. 802b6f0: b9fa cbnz r2, 802b732 <_dtoa_r+0x942>
  105722. 802b6f2: 4601 mov r1, r0
  105723. 802b6f4: 9801 ldr r0, [sp, #4]
  105724. 802b6f6: f000 ff2b bl 802c550 <__mcmp>
  105725. 802b6fa: 4602 mov r2, r0
  105726. 802b6fc: 4631 mov r1, r6
  105727. 802b6fe: 4648 mov r0, r9
  105728. 802b700: 920a str r2, [sp, #40] @ 0x28
  105729. 802b702: f000 fca1 bl 802c048 <_Bfree>
  105730. 802b706: 9b07 ldr r3, [sp, #28]
  105731. 802b708: 9a0a ldr r2, [sp, #40] @ 0x28
  105732. 802b70a: 9e05 ldr r6, [sp, #20]
  105733. 802b70c: ea43 0102 orr.w r1, r3, r2
  105734. 802b710: 9b08 ldr r3, [sp, #32]
  105735. 802b712: 4319 orrs r1, r3
  105736. 802b714: d10f bne.n 802b736 <_dtoa_r+0x946>
  105737. 802b716: f1ba 0f39 cmp.w sl, #57 @ 0x39
  105738. 802b71a: d028 beq.n 802b76e <_dtoa_r+0x97e>
  105739. 802b71c: 9b06 ldr r3, [sp, #24]
  105740. 802b71e: 2b00 cmp r3, #0
  105741. 802b720: dd02 ble.n 802b728 <_dtoa_r+0x938>
  105742. 802b722: 9b02 ldr r3, [sp, #8]
  105743. 802b724: f103 0a31 add.w sl, r3, #49 @ 0x31
  105744. 802b728: f88b a000 strb.w sl, [fp]
  105745. 802b72c: e639 b.n 802b3a2 <_dtoa_r+0x5b2>
  105746. 802b72e: 4628 mov r0, r5
  105747. 802b730: e7bd b.n 802b6ae <_dtoa_r+0x8be>
  105748. 802b732: 2201 movs r2, #1
  105749. 802b734: e7e2 b.n 802b6fc <_dtoa_r+0x90c>
  105750. 802b736: 9b06 ldr r3, [sp, #24]
  105751. 802b738: 2b00 cmp r3, #0
  105752. 802b73a: db04 blt.n 802b746 <_dtoa_r+0x956>
  105753. 802b73c: 9907 ldr r1, [sp, #28]
  105754. 802b73e: 430b orrs r3, r1
  105755. 802b740: 9908 ldr r1, [sp, #32]
  105756. 802b742: 430b orrs r3, r1
  105757. 802b744: d120 bne.n 802b788 <_dtoa_r+0x998>
  105758. 802b746: 2a00 cmp r2, #0
  105759. 802b748: ddee ble.n 802b728 <_dtoa_r+0x938>
  105760. 802b74a: 9901 ldr r1, [sp, #4]
  105761. 802b74c: 2201 movs r2, #1
  105762. 802b74e: 4648 mov r0, r9
  105763. 802b750: f000 fe92 bl 802c478 <__lshift>
  105764. 802b754: 4621 mov r1, r4
  105765. 802b756: 9001 str r0, [sp, #4]
  105766. 802b758: f000 fefa bl 802c550 <__mcmp>
  105767. 802b75c: 2800 cmp r0, #0
  105768. 802b75e: dc03 bgt.n 802b768 <_dtoa_r+0x978>
  105769. 802b760: d1e2 bne.n 802b728 <_dtoa_r+0x938>
  105770. 802b762: f01a 0f01 tst.w sl, #1
  105771. 802b766: d0df beq.n 802b728 <_dtoa_r+0x938>
  105772. 802b768: f1ba 0f39 cmp.w sl, #57 @ 0x39
  105773. 802b76c: d1d9 bne.n 802b722 <_dtoa_r+0x932>
  105774. 802b76e: 2339 movs r3, #57 @ 0x39
  105775. 802b770: f88b 3000 strb.w r3, [fp]
  105776. 802b774: 4633 mov r3, r6
  105777. 802b776: 461e mov r6, r3
  105778. 802b778: 3b01 subs r3, #1
  105779. 802b77a: f816 2c01 ldrb.w r2, [r6, #-1]
  105780. 802b77e: 2a39 cmp r2, #57 @ 0x39
  105781. 802b780: d053 beq.n 802b82a <_dtoa_r+0xa3a>
  105782. 802b782: 3201 adds r2, #1
  105783. 802b784: 701a strb r2, [r3, #0]
  105784. 802b786: e60c b.n 802b3a2 <_dtoa_r+0x5b2>
  105785. 802b788: 2a00 cmp r2, #0
  105786. 802b78a: dd07 ble.n 802b79c <_dtoa_r+0x9ac>
  105787. 802b78c: f1ba 0f39 cmp.w sl, #57 @ 0x39
  105788. 802b790: d0ed beq.n 802b76e <_dtoa_r+0x97e>
  105789. 802b792: f10a 0301 add.w r3, sl, #1
  105790. 802b796: f88b 3000 strb.w r3, [fp]
  105791. 802b79a: e602 b.n 802b3a2 <_dtoa_r+0x5b2>
  105792. 802b79c: 9b05 ldr r3, [sp, #20]
  105793. 802b79e: 9a05 ldr r2, [sp, #20]
  105794. 802b7a0: f803 ac01 strb.w sl, [r3, #-1]
  105795. 802b7a4: 9b09 ldr r3, [sp, #36] @ 0x24
  105796. 802b7a6: 4293 cmp r3, r2
  105797. 802b7a8: d029 beq.n 802b7fe <_dtoa_r+0xa0e>
  105798. 802b7aa: 9901 ldr r1, [sp, #4]
  105799. 802b7ac: 2300 movs r3, #0
  105800. 802b7ae: 220a movs r2, #10
  105801. 802b7b0: 4648 mov r0, r9
  105802. 802b7b2: f000 fc6b bl 802c08c <__multadd>
  105803. 802b7b6: 45a8 cmp r8, r5
  105804. 802b7b8: 9001 str r0, [sp, #4]
  105805. 802b7ba: f04f 0300 mov.w r3, #0
  105806. 802b7be: f04f 020a mov.w r2, #10
  105807. 802b7c2: 4641 mov r1, r8
  105808. 802b7c4: 4648 mov r0, r9
  105809. 802b7c6: d107 bne.n 802b7d8 <_dtoa_r+0x9e8>
  105810. 802b7c8: f000 fc60 bl 802c08c <__multadd>
  105811. 802b7cc: 4680 mov r8, r0
  105812. 802b7ce: 4605 mov r5, r0
  105813. 802b7d0: 9b05 ldr r3, [sp, #20]
  105814. 802b7d2: 3301 adds r3, #1
  105815. 802b7d4: 9305 str r3, [sp, #20]
  105816. 802b7d6: e775 b.n 802b6c4 <_dtoa_r+0x8d4>
  105817. 802b7d8: f000 fc58 bl 802c08c <__multadd>
  105818. 802b7dc: 4629 mov r1, r5
  105819. 802b7de: 4680 mov r8, r0
  105820. 802b7e0: 2300 movs r3, #0
  105821. 802b7e2: 220a movs r2, #10
  105822. 802b7e4: 4648 mov r0, r9
  105823. 802b7e6: f000 fc51 bl 802c08c <__multadd>
  105824. 802b7ea: 4605 mov r5, r0
  105825. 802b7ec: e7f0 b.n 802b7d0 <_dtoa_r+0x9e0>
  105826. 802b7ee: f1bb 0f00 cmp.w fp, #0
  105827. 802b7f2: bfcc ite gt
  105828. 802b7f4: 465e movgt r6, fp
  105829. 802b7f6: 2601 movle r6, #1
  105830. 802b7f8: 443e add r6, r7
  105831. 802b7fa: f04f 0800 mov.w r8, #0
  105832. 802b7fe: 9901 ldr r1, [sp, #4]
  105833. 802b800: 2201 movs r2, #1
  105834. 802b802: 4648 mov r0, r9
  105835. 802b804: f000 fe38 bl 802c478 <__lshift>
  105836. 802b808: 4621 mov r1, r4
  105837. 802b80a: 9001 str r0, [sp, #4]
  105838. 802b80c: f000 fea0 bl 802c550 <__mcmp>
  105839. 802b810: 2800 cmp r0, #0
  105840. 802b812: dcaf bgt.n 802b774 <_dtoa_r+0x984>
  105841. 802b814: d102 bne.n 802b81c <_dtoa_r+0xa2c>
  105842. 802b816: f01a 0f01 tst.w sl, #1
  105843. 802b81a: d1ab bne.n 802b774 <_dtoa_r+0x984>
  105844. 802b81c: 4633 mov r3, r6
  105845. 802b81e: 461e mov r6, r3
  105846. 802b820: f813 2d01 ldrb.w r2, [r3, #-1]!
  105847. 802b824: 2a30 cmp r2, #48 @ 0x30
  105848. 802b826: d0fa beq.n 802b81e <_dtoa_r+0xa2e>
  105849. 802b828: e5bb b.n 802b3a2 <_dtoa_r+0x5b2>
  105850. 802b82a: 429f cmp r7, r3
  105851. 802b82c: d1a3 bne.n 802b776 <_dtoa_r+0x986>
  105852. 802b82e: 9b04 ldr r3, [sp, #16]
  105853. 802b830: 3301 adds r3, #1
  105854. 802b832: 9304 str r3, [sp, #16]
  105855. 802b834: 2331 movs r3, #49 @ 0x31
  105856. 802b836: 703b strb r3, [r7, #0]
  105857. 802b838: e5b3 b.n 802b3a2 <_dtoa_r+0x5b2>
  105858. 802b83a: 9b1d ldr r3, [sp, #116] @ 0x74
  105859. 802b83c: 4f16 ldr r7, [pc, #88] @ (802b898 <_dtoa_r+0xaa8>)
  105860. 802b83e: b11b cbz r3, 802b848 <_dtoa_r+0xa58>
  105861. 802b840: f107 0308 add.w r3, r7, #8
  105862. 802b844: 9a1d ldr r2, [sp, #116] @ 0x74
  105863. 802b846: 6013 str r3, [r2, #0]
  105864. 802b848: 4638 mov r0, r7
  105865. 802b84a: b011 add sp, #68 @ 0x44
  105866. 802b84c: ecbd 8b02 vpop {d8}
  105867. 802b850: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  105868. 802b854: 9b07 ldr r3, [sp, #28]
  105869. 802b856: 2b01 cmp r3, #1
  105870. 802b858: f77f ae36 ble.w 802b4c8 <_dtoa_r+0x6d8>
  105871. 802b85c: 9b0a ldr r3, [sp, #40] @ 0x28
  105872. 802b85e: 930b str r3, [sp, #44] @ 0x2c
  105873. 802b860: 2001 movs r0, #1
  105874. 802b862: e656 b.n 802b512 <_dtoa_r+0x722>
  105875. 802b864: f1bb 0f00 cmp.w fp, #0
  105876. 802b868: f77f aed7 ble.w 802b61a <_dtoa_r+0x82a>
  105877. 802b86c: 463e mov r6, r7
  105878. 802b86e: 9801 ldr r0, [sp, #4]
  105879. 802b870: 4621 mov r1, r4
  105880. 802b872: f7ff fa33 bl 802acdc <quorem>
  105881. 802b876: f100 0a30 add.w sl, r0, #48 @ 0x30
  105882. 802b87a: f806 ab01 strb.w sl, [r6], #1
  105883. 802b87e: 1bf2 subs r2, r6, r7
  105884. 802b880: 4593 cmp fp, r2
  105885. 802b882: ddb4 ble.n 802b7ee <_dtoa_r+0x9fe>
  105886. 802b884: 9901 ldr r1, [sp, #4]
  105887. 802b886: 2300 movs r3, #0
  105888. 802b888: 220a movs r2, #10
  105889. 802b88a: 4648 mov r0, r9
  105890. 802b88c: f000 fbfe bl 802c08c <__multadd>
  105891. 802b890: 9001 str r0, [sp, #4]
  105892. 802b892: e7ec b.n 802b86e <_dtoa_r+0xa7e>
  105893. 802b894: 08031e0e .word 0x08031e0e
  105894. 802b898: 08031da9 .word 0x08031da9
  105895. 0802b89c <_free_r>:
  105896. 802b89c: b538 push {r3, r4, r5, lr}
  105897. 802b89e: 4605 mov r5, r0
  105898. 802b8a0: 2900 cmp r1, #0
  105899. 802b8a2: d041 beq.n 802b928 <_free_r+0x8c>
  105900. 802b8a4: f851 3c04 ldr.w r3, [r1, #-4]
  105901. 802b8a8: 1f0c subs r4, r1, #4
  105902. 802b8aa: 2b00 cmp r3, #0
  105903. 802b8ac: bfb8 it lt
  105904. 802b8ae: 18e4 addlt r4, r4, r3
  105905. 802b8b0: f7fd fc1e bl 80290f0 <__malloc_lock>
  105906. 802b8b4: 4a1d ldr r2, [pc, #116] @ (802b92c <_free_r+0x90>)
  105907. 802b8b6: 6813 ldr r3, [r2, #0]
  105908. 802b8b8: b933 cbnz r3, 802b8c8 <_free_r+0x2c>
  105909. 802b8ba: 6063 str r3, [r4, #4]
  105910. 802b8bc: 6014 str r4, [r2, #0]
  105911. 802b8be: 4628 mov r0, r5
  105912. 802b8c0: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  105913. 802b8c4: f7fd bc1a b.w 80290fc <__malloc_unlock>
  105914. 802b8c8: 42a3 cmp r3, r4
  105915. 802b8ca: d908 bls.n 802b8de <_free_r+0x42>
  105916. 802b8cc: 6820 ldr r0, [r4, #0]
  105917. 802b8ce: 1821 adds r1, r4, r0
  105918. 802b8d0: 428b cmp r3, r1
  105919. 802b8d2: bf01 itttt eq
  105920. 802b8d4: 6819 ldreq r1, [r3, #0]
  105921. 802b8d6: 685b ldreq r3, [r3, #4]
  105922. 802b8d8: 1809 addeq r1, r1, r0
  105923. 802b8da: 6021 streq r1, [r4, #0]
  105924. 802b8dc: e7ed b.n 802b8ba <_free_r+0x1e>
  105925. 802b8de: 461a mov r2, r3
  105926. 802b8e0: 685b ldr r3, [r3, #4]
  105927. 802b8e2: b10b cbz r3, 802b8e8 <_free_r+0x4c>
  105928. 802b8e4: 42a3 cmp r3, r4
  105929. 802b8e6: d9fa bls.n 802b8de <_free_r+0x42>
  105930. 802b8e8: 6811 ldr r1, [r2, #0]
  105931. 802b8ea: 1850 adds r0, r2, r1
  105932. 802b8ec: 42a0 cmp r0, r4
  105933. 802b8ee: d10b bne.n 802b908 <_free_r+0x6c>
  105934. 802b8f0: 6820 ldr r0, [r4, #0]
  105935. 802b8f2: 4401 add r1, r0
  105936. 802b8f4: 1850 adds r0, r2, r1
  105937. 802b8f6: 4283 cmp r3, r0
  105938. 802b8f8: 6011 str r1, [r2, #0]
  105939. 802b8fa: d1e0 bne.n 802b8be <_free_r+0x22>
  105940. 802b8fc: 6818 ldr r0, [r3, #0]
  105941. 802b8fe: 685b ldr r3, [r3, #4]
  105942. 802b900: 6053 str r3, [r2, #4]
  105943. 802b902: 4408 add r0, r1
  105944. 802b904: 6010 str r0, [r2, #0]
  105945. 802b906: e7da b.n 802b8be <_free_r+0x22>
  105946. 802b908: d902 bls.n 802b910 <_free_r+0x74>
  105947. 802b90a: 230c movs r3, #12
  105948. 802b90c: 602b str r3, [r5, #0]
  105949. 802b90e: e7d6 b.n 802b8be <_free_r+0x22>
  105950. 802b910: 6820 ldr r0, [r4, #0]
  105951. 802b912: 1821 adds r1, r4, r0
  105952. 802b914: 428b cmp r3, r1
  105953. 802b916: bf04 itt eq
  105954. 802b918: 6819 ldreq r1, [r3, #0]
  105955. 802b91a: 685b ldreq r3, [r3, #4]
  105956. 802b91c: 6063 str r3, [r4, #4]
  105957. 802b91e: bf04 itt eq
  105958. 802b920: 1809 addeq r1, r1, r0
  105959. 802b922: 6021 streq r1, [r4, #0]
  105960. 802b924: 6054 str r4, [r2, #4]
  105961. 802b926: e7ca b.n 802b8be <_free_r+0x22>
  105962. 802b928: bd38 pop {r3, r4, r5, pc}
  105963. 802b92a: bf00 nop
  105964. 802b92c: 2402b120 .word 0x2402b120
  105965. 0802b930 <rshift>:
  105966. 802b930: 6903 ldr r3, [r0, #16]
  105967. 802b932: ebb3 1f61 cmp.w r3, r1, asr #5
  105968. 802b936: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr}
  105969. 802b93a: ea4f 1261 mov.w r2, r1, asr #5
  105970. 802b93e: f100 0414 add.w r4, r0, #20
  105971. 802b942: dd45 ble.n 802b9d0 <rshift+0xa0>
  105972. 802b944: f011 011f ands.w r1, r1, #31
  105973. 802b948: eb04 0683 add.w r6, r4, r3, lsl #2
  105974. 802b94c: eb04 0582 add.w r5, r4, r2, lsl #2
  105975. 802b950: d10c bne.n 802b96c <rshift+0x3c>
  105976. 802b952: f100 0710 add.w r7, r0, #16
  105977. 802b956: 4629 mov r1, r5
  105978. 802b958: 42b1 cmp r1, r6
  105979. 802b95a: d334 bcc.n 802b9c6 <rshift+0x96>
  105980. 802b95c: 1a9b subs r3, r3, r2
  105981. 802b95e: 009b lsls r3, r3, #2
  105982. 802b960: 1eea subs r2, r5, #3
  105983. 802b962: 4296 cmp r6, r2
  105984. 802b964: bf38 it cc
  105985. 802b966: 2300 movcc r3, #0
  105986. 802b968: 4423 add r3, r4
  105987. 802b96a: e015 b.n 802b998 <rshift+0x68>
  105988. 802b96c: f854 7022 ldr.w r7, [r4, r2, lsl #2]
  105989. 802b970: f1c1 0820 rsb r8, r1, #32
  105990. 802b974: 40cf lsrs r7, r1
  105991. 802b976: f105 0e04 add.w lr, r5, #4
  105992. 802b97a: 46a1 mov r9, r4
  105993. 802b97c: 4576 cmp r6, lr
  105994. 802b97e: 46f4 mov ip, lr
  105995. 802b980: d815 bhi.n 802b9ae <rshift+0x7e>
  105996. 802b982: 1a9a subs r2, r3, r2
  105997. 802b984: 0092 lsls r2, r2, #2
  105998. 802b986: 3a04 subs r2, #4
  105999. 802b988: 3501 adds r5, #1
  106000. 802b98a: 42ae cmp r6, r5
  106001. 802b98c: bf38 it cc
  106002. 802b98e: 2200 movcc r2, #0
  106003. 802b990: 18a3 adds r3, r4, r2
  106004. 802b992: 50a7 str r7, [r4, r2]
  106005. 802b994: b107 cbz r7, 802b998 <rshift+0x68>
  106006. 802b996: 3304 adds r3, #4
  106007. 802b998: 1b1a subs r2, r3, r4
  106008. 802b99a: 42a3 cmp r3, r4
  106009. 802b99c: ea4f 02a2 mov.w r2, r2, asr #2
  106010. 802b9a0: bf08 it eq
  106011. 802b9a2: 2300 moveq r3, #0
  106012. 802b9a4: 6102 str r2, [r0, #16]
  106013. 802b9a6: bf08 it eq
  106014. 802b9a8: 6143 streq r3, [r0, #20]
  106015. 802b9aa: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  106016. 802b9ae: f8dc c000 ldr.w ip, [ip]
  106017. 802b9b2: fa0c fc08 lsl.w ip, ip, r8
  106018. 802b9b6: ea4c 0707 orr.w r7, ip, r7
  106019. 802b9ba: f849 7b04 str.w r7, [r9], #4
  106020. 802b9be: f85e 7b04 ldr.w r7, [lr], #4
  106021. 802b9c2: 40cf lsrs r7, r1
  106022. 802b9c4: e7da b.n 802b97c <rshift+0x4c>
  106023. 802b9c6: f851 cb04 ldr.w ip, [r1], #4
  106024. 802b9ca: f847 cf04 str.w ip, [r7, #4]!
  106025. 802b9ce: e7c3 b.n 802b958 <rshift+0x28>
  106026. 802b9d0: 4623 mov r3, r4
  106027. 802b9d2: e7e1 b.n 802b998 <rshift+0x68>
  106028. 0802b9d4 <__hexdig_fun>:
  106029. 802b9d4: f1a0 0330 sub.w r3, r0, #48 @ 0x30
  106030. 802b9d8: 2b09 cmp r3, #9
  106031. 802b9da: d802 bhi.n 802b9e2 <__hexdig_fun+0xe>
  106032. 802b9dc: 3820 subs r0, #32
  106033. 802b9de: b2c0 uxtb r0, r0
  106034. 802b9e0: 4770 bx lr
  106035. 802b9e2: f1a0 0361 sub.w r3, r0, #97 @ 0x61
  106036. 802b9e6: 2b05 cmp r3, #5
  106037. 802b9e8: d801 bhi.n 802b9ee <__hexdig_fun+0x1a>
  106038. 802b9ea: 3847 subs r0, #71 @ 0x47
  106039. 802b9ec: e7f7 b.n 802b9de <__hexdig_fun+0xa>
  106040. 802b9ee: f1a0 0341 sub.w r3, r0, #65 @ 0x41
  106041. 802b9f2: 2b05 cmp r3, #5
  106042. 802b9f4: d801 bhi.n 802b9fa <__hexdig_fun+0x26>
  106043. 802b9f6: 3827 subs r0, #39 @ 0x27
  106044. 802b9f8: e7f1 b.n 802b9de <__hexdig_fun+0xa>
  106045. 802b9fa: 2000 movs r0, #0
  106046. 802b9fc: 4770 bx lr
  106047. ...
  106048. 0802ba00 <__gethex>:
  106049. 802ba00: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  106050. 802ba04: b085 sub sp, #20
  106051. 802ba06: 468a mov sl, r1
  106052. 802ba08: 9302 str r3, [sp, #8]
  106053. 802ba0a: 680b ldr r3, [r1, #0]
  106054. 802ba0c: 9001 str r0, [sp, #4]
  106055. 802ba0e: 4690 mov r8, r2
  106056. 802ba10: 1c9c adds r4, r3, #2
  106057. 802ba12: 46a1 mov r9, r4
  106058. 802ba14: f814 0b01 ldrb.w r0, [r4], #1
  106059. 802ba18: 2830 cmp r0, #48 @ 0x30
  106060. 802ba1a: d0fa beq.n 802ba12 <__gethex+0x12>
  106061. 802ba1c: eba9 0303 sub.w r3, r9, r3
  106062. 802ba20: f1a3 0b02 sub.w fp, r3, #2
  106063. 802ba24: f7ff ffd6 bl 802b9d4 <__hexdig_fun>
  106064. 802ba28: 4605 mov r5, r0
  106065. 802ba2a: 2800 cmp r0, #0
  106066. 802ba2c: d168 bne.n 802bb00 <__gethex+0x100>
  106067. 802ba2e: 49a0 ldr r1, [pc, #640] @ (802bcb0 <__gethex+0x2b0>)
  106068. 802ba30: 2201 movs r2, #1
  106069. 802ba32: 4648 mov r0, r9
  106070. 802ba34: f7ff f82c bl 802aa90 <strncmp>
  106071. 802ba38: 4607 mov r7, r0
  106072. 802ba3a: 2800 cmp r0, #0
  106073. 802ba3c: d167 bne.n 802bb0e <__gethex+0x10e>
  106074. 802ba3e: f899 0001 ldrb.w r0, [r9, #1]
  106075. 802ba42: 4626 mov r6, r4
  106076. 802ba44: f7ff ffc6 bl 802b9d4 <__hexdig_fun>
  106077. 802ba48: 2800 cmp r0, #0
  106078. 802ba4a: d062 beq.n 802bb12 <__gethex+0x112>
  106079. 802ba4c: 4623 mov r3, r4
  106080. 802ba4e: 7818 ldrb r0, [r3, #0]
  106081. 802ba50: 2830 cmp r0, #48 @ 0x30
  106082. 802ba52: 4699 mov r9, r3
  106083. 802ba54: f103 0301 add.w r3, r3, #1
  106084. 802ba58: d0f9 beq.n 802ba4e <__gethex+0x4e>
  106085. 802ba5a: f7ff ffbb bl 802b9d4 <__hexdig_fun>
  106086. 802ba5e: fab0 f580 clz r5, r0
  106087. 802ba62: 096d lsrs r5, r5, #5
  106088. 802ba64: f04f 0b01 mov.w fp, #1
  106089. 802ba68: 464a mov r2, r9
  106090. 802ba6a: 4616 mov r6, r2
  106091. 802ba6c: 3201 adds r2, #1
  106092. 802ba6e: 7830 ldrb r0, [r6, #0]
  106093. 802ba70: f7ff ffb0 bl 802b9d4 <__hexdig_fun>
  106094. 802ba74: 2800 cmp r0, #0
  106095. 802ba76: d1f8 bne.n 802ba6a <__gethex+0x6a>
  106096. 802ba78: 498d ldr r1, [pc, #564] @ (802bcb0 <__gethex+0x2b0>)
  106097. 802ba7a: 2201 movs r2, #1
  106098. 802ba7c: 4630 mov r0, r6
  106099. 802ba7e: f7ff f807 bl 802aa90 <strncmp>
  106100. 802ba82: 2800 cmp r0, #0
  106101. 802ba84: d13f bne.n 802bb06 <__gethex+0x106>
  106102. 802ba86: b944 cbnz r4, 802ba9a <__gethex+0x9a>
  106103. 802ba88: 1c74 adds r4, r6, #1
  106104. 802ba8a: 4622 mov r2, r4
  106105. 802ba8c: 4616 mov r6, r2
  106106. 802ba8e: 3201 adds r2, #1
  106107. 802ba90: 7830 ldrb r0, [r6, #0]
  106108. 802ba92: f7ff ff9f bl 802b9d4 <__hexdig_fun>
  106109. 802ba96: 2800 cmp r0, #0
  106110. 802ba98: d1f8 bne.n 802ba8c <__gethex+0x8c>
  106111. 802ba9a: 1ba4 subs r4, r4, r6
  106112. 802ba9c: 00a7 lsls r7, r4, #2
  106113. 802ba9e: 7833 ldrb r3, [r6, #0]
  106114. 802baa0: f003 03df and.w r3, r3, #223 @ 0xdf
  106115. 802baa4: 2b50 cmp r3, #80 @ 0x50
  106116. 802baa6: d13e bne.n 802bb26 <__gethex+0x126>
  106117. 802baa8: 7873 ldrb r3, [r6, #1]
  106118. 802baaa: 2b2b cmp r3, #43 @ 0x2b
  106119. 802baac: d033 beq.n 802bb16 <__gethex+0x116>
  106120. 802baae: 2b2d cmp r3, #45 @ 0x2d
  106121. 802bab0: d034 beq.n 802bb1c <__gethex+0x11c>
  106122. 802bab2: 1c71 adds r1, r6, #1
  106123. 802bab4: 2400 movs r4, #0
  106124. 802bab6: 7808 ldrb r0, [r1, #0]
  106125. 802bab8: f7ff ff8c bl 802b9d4 <__hexdig_fun>
  106126. 802babc: 1e43 subs r3, r0, #1
  106127. 802babe: b2db uxtb r3, r3
  106128. 802bac0: 2b18 cmp r3, #24
  106129. 802bac2: d830 bhi.n 802bb26 <__gethex+0x126>
  106130. 802bac4: f1a0 0210 sub.w r2, r0, #16
  106131. 802bac8: f811 0f01 ldrb.w r0, [r1, #1]!
  106132. 802bacc: f7ff ff82 bl 802b9d4 <__hexdig_fun>
  106133. 802bad0: f100 3cff add.w ip, r0, #4294967295 @ 0xffffffff
  106134. 802bad4: fa5f fc8c uxtb.w ip, ip
  106135. 802bad8: f1bc 0f18 cmp.w ip, #24
  106136. 802badc: f04f 030a mov.w r3, #10
  106137. 802bae0: d91e bls.n 802bb20 <__gethex+0x120>
  106138. 802bae2: b104 cbz r4, 802bae6 <__gethex+0xe6>
  106139. 802bae4: 4252 negs r2, r2
  106140. 802bae6: 4417 add r7, r2
  106141. 802bae8: f8ca 1000 str.w r1, [sl]
  106142. 802baec: b1ed cbz r5, 802bb2a <__gethex+0x12a>
  106143. 802baee: f1bb 0f00 cmp.w fp, #0
  106144. 802baf2: bf0c ite eq
  106145. 802baf4: 2506 moveq r5, #6
  106146. 802baf6: 2500 movne r5, #0
  106147. 802baf8: 4628 mov r0, r5
  106148. 802bafa: b005 add sp, #20
  106149. 802bafc: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  106150. 802bb00: 2500 movs r5, #0
  106151. 802bb02: 462c mov r4, r5
  106152. 802bb04: e7b0 b.n 802ba68 <__gethex+0x68>
  106153. 802bb06: 2c00 cmp r4, #0
  106154. 802bb08: d1c7 bne.n 802ba9a <__gethex+0x9a>
  106155. 802bb0a: 4627 mov r7, r4
  106156. 802bb0c: e7c7 b.n 802ba9e <__gethex+0x9e>
  106157. 802bb0e: 464e mov r6, r9
  106158. 802bb10: 462f mov r7, r5
  106159. 802bb12: 2501 movs r5, #1
  106160. 802bb14: e7c3 b.n 802ba9e <__gethex+0x9e>
  106161. 802bb16: 2400 movs r4, #0
  106162. 802bb18: 1cb1 adds r1, r6, #2
  106163. 802bb1a: e7cc b.n 802bab6 <__gethex+0xb6>
  106164. 802bb1c: 2401 movs r4, #1
  106165. 802bb1e: e7fb b.n 802bb18 <__gethex+0x118>
  106166. 802bb20: fb03 0002 mla r0, r3, r2, r0
  106167. 802bb24: e7ce b.n 802bac4 <__gethex+0xc4>
  106168. 802bb26: 4631 mov r1, r6
  106169. 802bb28: e7de b.n 802bae8 <__gethex+0xe8>
  106170. 802bb2a: eba6 0309 sub.w r3, r6, r9
  106171. 802bb2e: 3b01 subs r3, #1
  106172. 802bb30: 4629 mov r1, r5
  106173. 802bb32: 2b07 cmp r3, #7
  106174. 802bb34: dc0a bgt.n 802bb4c <__gethex+0x14c>
  106175. 802bb36: 9801 ldr r0, [sp, #4]
  106176. 802bb38: f000 fa46 bl 802bfc8 <_Balloc>
  106177. 802bb3c: 4604 mov r4, r0
  106178. 802bb3e: b940 cbnz r0, 802bb52 <__gethex+0x152>
  106179. 802bb40: 4b5c ldr r3, [pc, #368] @ (802bcb4 <__gethex+0x2b4>)
  106180. 802bb42: 4602 mov r2, r0
  106181. 802bb44: 21e4 movs r1, #228 @ 0xe4
  106182. 802bb46: 485c ldr r0, [pc, #368] @ (802bcb8 <__gethex+0x2b8>)
  106183. 802bb48: f7ff f8aa bl 802aca0 <__assert_func>
  106184. 802bb4c: 3101 adds r1, #1
  106185. 802bb4e: 105b asrs r3, r3, #1
  106186. 802bb50: e7ef b.n 802bb32 <__gethex+0x132>
  106187. 802bb52: f100 0a14 add.w sl, r0, #20
  106188. 802bb56: 2300 movs r3, #0
  106189. 802bb58: 4655 mov r5, sl
  106190. 802bb5a: 469b mov fp, r3
  106191. 802bb5c: 45b1 cmp r9, r6
  106192. 802bb5e: d337 bcc.n 802bbd0 <__gethex+0x1d0>
  106193. 802bb60: f845 bb04 str.w fp, [r5], #4
  106194. 802bb64: eba5 050a sub.w r5, r5, sl
  106195. 802bb68: 10ad asrs r5, r5, #2
  106196. 802bb6a: 6125 str r5, [r4, #16]
  106197. 802bb6c: 4658 mov r0, fp
  106198. 802bb6e: f000 fb1d bl 802c1ac <__hi0bits>
  106199. 802bb72: 016d lsls r5, r5, #5
  106200. 802bb74: f8d8 6000 ldr.w r6, [r8]
  106201. 802bb78: 1a2d subs r5, r5, r0
  106202. 802bb7a: 42b5 cmp r5, r6
  106203. 802bb7c: dd54 ble.n 802bc28 <__gethex+0x228>
  106204. 802bb7e: 1bad subs r5, r5, r6
  106205. 802bb80: 4629 mov r1, r5
  106206. 802bb82: 4620 mov r0, r4
  106207. 802bb84: f000 feae bl 802c8e4 <__any_on>
  106208. 802bb88: 4681 mov r9, r0
  106209. 802bb8a: b178 cbz r0, 802bbac <__gethex+0x1ac>
  106210. 802bb8c: 1e6b subs r3, r5, #1
  106211. 802bb8e: 1159 asrs r1, r3, #5
  106212. 802bb90: f003 021f and.w r2, r3, #31
  106213. 802bb94: f85a 1021 ldr.w r1, [sl, r1, lsl #2]
  106214. 802bb98: f04f 0901 mov.w r9, #1
  106215. 802bb9c: fa09 f202 lsl.w r2, r9, r2
  106216. 802bba0: 420a tst r2, r1
  106217. 802bba2: d003 beq.n 802bbac <__gethex+0x1ac>
  106218. 802bba4: 454b cmp r3, r9
  106219. 802bba6: dc36 bgt.n 802bc16 <__gethex+0x216>
  106220. 802bba8: f04f 0902 mov.w r9, #2
  106221. 802bbac: 4629 mov r1, r5
  106222. 802bbae: 4620 mov r0, r4
  106223. 802bbb0: f7ff febe bl 802b930 <rshift>
  106224. 802bbb4: 442f add r7, r5
  106225. 802bbb6: f8d8 3008 ldr.w r3, [r8, #8]
  106226. 802bbba: 42bb cmp r3, r7
  106227. 802bbbc: da42 bge.n 802bc44 <__gethex+0x244>
  106228. 802bbbe: 9801 ldr r0, [sp, #4]
  106229. 802bbc0: 4621 mov r1, r4
  106230. 802bbc2: f000 fa41 bl 802c048 <_Bfree>
  106231. 802bbc6: 9a0e ldr r2, [sp, #56] @ 0x38
  106232. 802bbc8: 2300 movs r3, #0
  106233. 802bbca: 6013 str r3, [r2, #0]
  106234. 802bbcc: 25a3 movs r5, #163 @ 0xa3
  106235. 802bbce: e793 b.n 802baf8 <__gethex+0xf8>
  106236. 802bbd0: f816 2d01 ldrb.w r2, [r6, #-1]!
  106237. 802bbd4: 2a2e cmp r2, #46 @ 0x2e
  106238. 802bbd6: d012 beq.n 802bbfe <__gethex+0x1fe>
  106239. 802bbd8: 2b20 cmp r3, #32
  106240. 802bbda: d104 bne.n 802bbe6 <__gethex+0x1e6>
  106241. 802bbdc: f845 bb04 str.w fp, [r5], #4
  106242. 802bbe0: f04f 0b00 mov.w fp, #0
  106243. 802bbe4: 465b mov r3, fp
  106244. 802bbe6: 7830 ldrb r0, [r6, #0]
  106245. 802bbe8: 9303 str r3, [sp, #12]
  106246. 802bbea: f7ff fef3 bl 802b9d4 <__hexdig_fun>
  106247. 802bbee: 9b03 ldr r3, [sp, #12]
  106248. 802bbf0: f000 000f and.w r0, r0, #15
  106249. 802bbf4: 4098 lsls r0, r3
  106250. 802bbf6: ea4b 0b00 orr.w fp, fp, r0
  106251. 802bbfa: 3304 adds r3, #4
  106252. 802bbfc: e7ae b.n 802bb5c <__gethex+0x15c>
  106253. 802bbfe: 45b1 cmp r9, r6
  106254. 802bc00: d8ea bhi.n 802bbd8 <__gethex+0x1d8>
  106255. 802bc02: 492b ldr r1, [pc, #172] @ (802bcb0 <__gethex+0x2b0>)
  106256. 802bc04: 9303 str r3, [sp, #12]
  106257. 802bc06: 2201 movs r2, #1
  106258. 802bc08: 4630 mov r0, r6
  106259. 802bc0a: f7fe ff41 bl 802aa90 <strncmp>
  106260. 802bc0e: 9b03 ldr r3, [sp, #12]
  106261. 802bc10: 2800 cmp r0, #0
  106262. 802bc12: d1e1 bne.n 802bbd8 <__gethex+0x1d8>
  106263. 802bc14: e7a2 b.n 802bb5c <__gethex+0x15c>
  106264. 802bc16: 1ea9 subs r1, r5, #2
  106265. 802bc18: 4620 mov r0, r4
  106266. 802bc1a: f000 fe63 bl 802c8e4 <__any_on>
  106267. 802bc1e: 2800 cmp r0, #0
  106268. 802bc20: d0c2 beq.n 802bba8 <__gethex+0x1a8>
  106269. 802bc22: f04f 0903 mov.w r9, #3
  106270. 802bc26: e7c1 b.n 802bbac <__gethex+0x1ac>
  106271. 802bc28: da09 bge.n 802bc3e <__gethex+0x23e>
  106272. 802bc2a: 1b75 subs r5, r6, r5
  106273. 802bc2c: 4621 mov r1, r4
  106274. 802bc2e: 9801 ldr r0, [sp, #4]
  106275. 802bc30: 462a mov r2, r5
  106276. 802bc32: f000 fc21 bl 802c478 <__lshift>
  106277. 802bc36: 1b7f subs r7, r7, r5
  106278. 802bc38: 4604 mov r4, r0
  106279. 802bc3a: f100 0a14 add.w sl, r0, #20
  106280. 802bc3e: f04f 0900 mov.w r9, #0
  106281. 802bc42: e7b8 b.n 802bbb6 <__gethex+0x1b6>
  106282. 802bc44: f8d8 5004 ldr.w r5, [r8, #4]
  106283. 802bc48: 42bd cmp r5, r7
  106284. 802bc4a: dd6f ble.n 802bd2c <__gethex+0x32c>
  106285. 802bc4c: 1bed subs r5, r5, r7
  106286. 802bc4e: 42ae cmp r6, r5
  106287. 802bc50: dc34 bgt.n 802bcbc <__gethex+0x2bc>
  106288. 802bc52: f8d8 300c ldr.w r3, [r8, #12]
  106289. 802bc56: 2b02 cmp r3, #2
  106290. 802bc58: d022 beq.n 802bca0 <__gethex+0x2a0>
  106291. 802bc5a: 2b03 cmp r3, #3
  106292. 802bc5c: d024 beq.n 802bca8 <__gethex+0x2a8>
  106293. 802bc5e: 2b01 cmp r3, #1
  106294. 802bc60: d115 bne.n 802bc8e <__gethex+0x28e>
  106295. 802bc62: 42ae cmp r6, r5
  106296. 802bc64: d113 bne.n 802bc8e <__gethex+0x28e>
  106297. 802bc66: 2e01 cmp r6, #1
  106298. 802bc68: d10b bne.n 802bc82 <__gethex+0x282>
  106299. 802bc6a: 9a02 ldr r2, [sp, #8]
  106300. 802bc6c: f8d8 3004 ldr.w r3, [r8, #4]
  106301. 802bc70: 6013 str r3, [r2, #0]
  106302. 802bc72: 2301 movs r3, #1
  106303. 802bc74: 6123 str r3, [r4, #16]
  106304. 802bc76: f8ca 3000 str.w r3, [sl]
  106305. 802bc7a: 9b0e ldr r3, [sp, #56] @ 0x38
  106306. 802bc7c: 2562 movs r5, #98 @ 0x62
  106307. 802bc7e: 601c str r4, [r3, #0]
  106308. 802bc80: e73a b.n 802baf8 <__gethex+0xf8>
  106309. 802bc82: 1e71 subs r1, r6, #1
  106310. 802bc84: 4620 mov r0, r4
  106311. 802bc86: f000 fe2d bl 802c8e4 <__any_on>
  106312. 802bc8a: 2800 cmp r0, #0
  106313. 802bc8c: d1ed bne.n 802bc6a <__gethex+0x26a>
  106314. 802bc8e: 9801 ldr r0, [sp, #4]
  106315. 802bc90: 4621 mov r1, r4
  106316. 802bc92: f000 f9d9 bl 802c048 <_Bfree>
  106317. 802bc96: 9a0e ldr r2, [sp, #56] @ 0x38
  106318. 802bc98: 2300 movs r3, #0
  106319. 802bc9a: 6013 str r3, [r2, #0]
  106320. 802bc9c: 2550 movs r5, #80 @ 0x50
  106321. 802bc9e: e72b b.n 802baf8 <__gethex+0xf8>
  106322. 802bca0: 9b0f ldr r3, [sp, #60] @ 0x3c
  106323. 802bca2: 2b00 cmp r3, #0
  106324. 802bca4: d1f3 bne.n 802bc8e <__gethex+0x28e>
  106325. 802bca6: e7e0 b.n 802bc6a <__gethex+0x26a>
  106326. 802bca8: 9b0f ldr r3, [sp, #60] @ 0x3c
  106327. 802bcaa: 2b00 cmp r3, #0
  106328. 802bcac: d1dd bne.n 802bc6a <__gethex+0x26a>
  106329. 802bcae: e7ee b.n 802bc8e <__gethex+0x28e>
  106330. 802bcb0: 08031bdd .word 0x08031bdd
  106331. 802bcb4: 08031e0e .word 0x08031e0e
  106332. 802bcb8: 08031e1f .word 0x08031e1f
  106333. 802bcbc: 1e6f subs r7, r5, #1
  106334. 802bcbe: f1b9 0f00 cmp.w r9, #0
  106335. 802bcc2: d130 bne.n 802bd26 <__gethex+0x326>
  106336. 802bcc4: b127 cbz r7, 802bcd0 <__gethex+0x2d0>
  106337. 802bcc6: 4639 mov r1, r7
  106338. 802bcc8: 4620 mov r0, r4
  106339. 802bcca: f000 fe0b bl 802c8e4 <__any_on>
  106340. 802bcce: 4681 mov r9, r0
  106341. 802bcd0: 117a asrs r2, r7, #5
  106342. 802bcd2: 2301 movs r3, #1
  106343. 802bcd4: f85a 2022 ldr.w r2, [sl, r2, lsl #2]
  106344. 802bcd8: f007 071f and.w r7, r7, #31
  106345. 802bcdc: 40bb lsls r3, r7
  106346. 802bcde: 4213 tst r3, r2
  106347. 802bce0: 4629 mov r1, r5
  106348. 802bce2: 4620 mov r0, r4
  106349. 802bce4: bf18 it ne
  106350. 802bce6: f049 0902 orrne.w r9, r9, #2
  106351. 802bcea: f7ff fe21 bl 802b930 <rshift>
  106352. 802bcee: f8d8 7004 ldr.w r7, [r8, #4]
  106353. 802bcf2: 1b76 subs r6, r6, r5
  106354. 802bcf4: 2502 movs r5, #2
  106355. 802bcf6: f1b9 0f00 cmp.w r9, #0
  106356. 802bcfa: d047 beq.n 802bd8c <__gethex+0x38c>
  106357. 802bcfc: f8d8 300c ldr.w r3, [r8, #12]
  106358. 802bd00: 2b02 cmp r3, #2
  106359. 802bd02: d015 beq.n 802bd30 <__gethex+0x330>
  106360. 802bd04: 2b03 cmp r3, #3
  106361. 802bd06: d017 beq.n 802bd38 <__gethex+0x338>
  106362. 802bd08: 2b01 cmp r3, #1
  106363. 802bd0a: d109 bne.n 802bd20 <__gethex+0x320>
  106364. 802bd0c: f019 0f02 tst.w r9, #2
  106365. 802bd10: d006 beq.n 802bd20 <__gethex+0x320>
  106366. 802bd12: f8da 3000 ldr.w r3, [sl]
  106367. 802bd16: ea49 0903 orr.w r9, r9, r3
  106368. 802bd1a: f019 0f01 tst.w r9, #1
  106369. 802bd1e: d10e bne.n 802bd3e <__gethex+0x33e>
  106370. 802bd20: f045 0510 orr.w r5, r5, #16
  106371. 802bd24: e032 b.n 802bd8c <__gethex+0x38c>
  106372. 802bd26: f04f 0901 mov.w r9, #1
  106373. 802bd2a: e7d1 b.n 802bcd0 <__gethex+0x2d0>
  106374. 802bd2c: 2501 movs r5, #1
  106375. 802bd2e: e7e2 b.n 802bcf6 <__gethex+0x2f6>
  106376. 802bd30: 9b0f ldr r3, [sp, #60] @ 0x3c
  106377. 802bd32: f1c3 0301 rsb r3, r3, #1
  106378. 802bd36: 930f str r3, [sp, #60] @ 0x3c
  106379. 802bd38: 9b0f ldr r3, [sp, #60] @ 0x3c
  106380. 802bd3a: 2b00 cmp r3, #0
  106381. 802bd3c: d0f0 beq.n 802bd20 <__gethex+0x320>
  106382. 802bd3e: f8d4 b010 ldr.w fp, [r4, #16]
  106383. 802bd42: f104 0314 add.w r3, r4, #20
  106384. 802bd46: ea4f 0a8b mov.w sl, fp, lsl #2
  106385. 802bd4a: eb03 018b add.w r1, r3, fp, lsl #2
  106386. 802bd4e: f04f 0c00 mov.w ip, #0
  106387. 802bd52: 4618 mov r0, r3
  106388. 802bd54: f853 2b04 ldr.w r2, [r3], #4
  106389. 802bd58: f1b2 3fff cmp.w r2, #4294967295 @ 0xffffffff
  106390. 802bd5c: d01b beq.n 802bd96 <__gethex+0x396>
  106391. 802bd5e: 3201 adds r2, #1
  106392. 802bd60: 6002 str r2, [r0, #0]
  106393. 802bd62: 2d02 cmp r5, #2
  106394. 802bd64: f104 0314 add.w r3, r4, #20
  106395. 802bd68: d13c bne.n 802bde4 <__gethex+0x3e4>
  106396. 802bd6a: f8d8 2000 ldr.w r2, [r8]
  106397. 802bd6e: 3a01 subs r2, #1
  106398. 802bd70: 42b2 cmp r2, r6
  106399. 802bd72: d109 bne.n 802bd88 <__gethex+0x388>
  106400. 802bd74: 1171 asrs r1, r6, #5
  106401. 802bd76: 2201 movs r2, #1
  106402. 802bd78: f853 3021 ldr.w r3, [r3, r1, lsl #2]
  106403. 802bd7c: f006 061f and.w r6, r6, #31
  106404. 802bd80: fa02 f606 lsl.w r6, r2, r6
  106405. 802bd84: 421e tst r6, r3
  106406. 802bd86: d13a bne.n 802bdfe <__gethex+0x3fe>
  106407. 802bd88: f045 0520 orr.w r5, r5, #32
  106408. 802bd8c: 9b0e ldr r3, [sp, #56] @ 0x38
  106409. 802bd8e: 601c str r4, [r3, #0]
  106410. 802bd90: 9b02 ldr r3, [sp, #8]
  106411. 802bd92: 601f str r7, [r3, #0]
  106412. 802bd94: e6b0 b.n 802baf8 <__gethex+0xf8>
  106413. 802bd96: 4299 cmp r1, r3
  106414. 802bd98: f843 cc04 str.w ip, [r3, #-4]
  106415. 802bd9c: d8d9 bhi.n 802bd52 <__gethex+0x352>
  106416. 802bd9e: 68a3 ldr r3, [r4, #8]
  106417. 802bda0: 459b cmp fp, r3
  106418. 802bda2: db17 blt.n 802bdd4 <__gethex+0x3d4>
  106419. 802bda4: 6861 ldr r1, [r4, #4]
  106420. 802bda6: 9801 ldr r0, [sp, #4]
  106421. 802bda8: 3101 adds r1, #1
  106422. 802bdaa: f000 f90d bl 802bfc8 <_Balloc>
  106423. 802bdae: 4681 mov r9, r0
  106424. 802bdb0: b918 cbnz r0, 802bdba <__gethex+0x3ba>
  106425. 802bdb2: 4b1a ldr r3, [pc, #104] @ (802be1c <__gethex+0x41c>)
  106426. 802bdb4: 4602 mov r2, r0
  106427. 802bdb6: 2184 movs r1, #132 @ 0x84
  106428. 802bdb8: e6c5 b.n 802bb46 <__gethex+0x146>
  106429. 802bdba: 6922 ldr r2, [r4, #16]
  106430. 802bdbc: 3202 adds r2, #2
  106431. 802bdbe: f104 010c add.w r1, r4, #12
  106432. 802bdc2: 0092 lsls r2, r2, #2
  106433. 802bdc4: 300c adds r0, #12
  106434. 802bdc6: f7fe ff52 bl 802ac6e <memcpy>
  106435. 802bdca: 4621 mov r1, r4
  106436. 802bdcc: 9801 ldr r0, [sp, #4]
  106437. 802bdce: f000 f93b bl 802c048 <_Bfree>
  106438. 802bdd2: 464c mov r4, r9
  106439. 802bdd4: 6923 ldr r3, [r4, #16]
  106440. 802bdd6: 1c5a adds r2, r3, #1
  106441. 802bdd8: eb04 0383 add.w r3, r4, r3, lsl #2
  106442. 802bddc: 6122 str r2, [r4, #16]
  106443. 802bdde: 2201 movs r2, #1
  106444. 802bde0: 615a str r2, [r3, #20]
  106445. 802bde2: e7be b.n 802bd62 <__gethex+0x362>
  106446. 802bde4: 6922 ldr r2, [r4, #16]
  106447. 802bde6: 455a cmp r2, fp
  106448. 802bde8: dd0b ble.n 802be02 <__gethex+0x402>
  106449. 802bdea: 2101 movs r1, #1
  106450. 802bdec: 4620 mov r0, r4
  106451. 802bdee: f7ff fd9f bl 802b930 <rshift>
  106452. 802bdf2: f8d8 3008 ldr.w r3, [r8, #8]
  106453. 802bdf6: 3701 adds r7, #1
  106454. 802bdf8: 42bb cmp r3, r7
  106455. 802bdfa: f6ff aee0 blt.w 802bbbe <__gethex+0x1be>
  106456. 802bdfe: 2501 movs r5, #1
  106457. 802be00: e7c2 b.n 802bd88 <__gethex+0x388>
  106458. 802be02: f016 061f ands.w r6, r6, #31
  106459. 802be06: d0fa beq.n 802bdfe <__gethex+0x3fe>
  106460. 802be08: 4453 add r3, sl
  106461. 802be0a: f1c6 0620 rsb r6, r6, #32
  106462. 802be0e: f853 0c04 ldr.w r0, [r3, #-4]
  106463. 802be12: f000 f9cb bl 802c1ac <__hi0bits>
  106464. 802be16: 42b0 cmp r0, r6
  106465. 802be18: dbe7 blt.n 802bdea <__gethex+0x3ea>
  106466. 802be1a: e7f0 b.n 802bdfe <__gethex+0x3fe>
  106467. 802be1c: 08031e0e .word 0x08031e0e
  106468. 0802be20 <L_shift>:
  106469. 802be20: f1c2 0208 rsb r2, r2, #8
  106470. 802be24: 0092 lsls r2, r2, #2
  106471. 802be26: b570 push {r4, r5, r6, lr}
  106472. 802be28: f1c2 0620 rsb r6, r2, #32
  106473. 802be2c: 6843 ldr r3, [r0, #4]
  106474. 802be2e: 6804 ldr r4, [r0, #0]
  106475. 802be30: fa03 f506 lsl.w r5, r3, r6
  106476. 802be34: 432c orrs r4, r5
  106477. 802be36: 40d3 lsrs r3, r2
  106478. 802be38: 6004 str r4, [r0, #0]
  106479. 802be3a: f840 3f04 str.w r3, [r0, #4]!
  106480. 802be3e: 4288 cmp r0, r1
  106481. 802be40: d3f4 bcc.n 802be2c <L_shift+0xc>
  106482. 802be42: bd70 pop {r4, r5, r6, pc}
  106483. 0802be44 <__match>:
  106484. 802be44: b530 push {r4, r5, lr}
  106485. 802be46: 6803 ldr r3, [r0, #0]
  106486. 802be48: 3301 adds r3, #1
  106487. 802be4a: f811 4b01 ldrb.w r4, [r1], #1
  106488. 802be4e: b914 cbnz r4, 802be56 <__match+0x12>
  106489. 802be50: 6003 str r3, [r0, #0]
  106490. 802be52: 2001 movs r0, #1
  106491. 802be54: bd30 pop {r4, r5, pc}
  106492. 802be56: f813 2b01 ldrb.w r2, [r3], #1
  106493. 802be5a: f1a2 0541 sub.w r5, r2, #65 @ 0x41
  106494. 802be5e: 2d19 cmp r5, #25
  106495. 802be60: bf98 it ls
  106496. 802be62: 3220 addls r2, #32
  106497. 802be64: 42a2 cmp r2, r4
  106498. 802be66: d0f0 beq.n 802be4a <__match+0x6>
  106499. 802be68: 2000 movs r0, #0
  106500. 802be6a: e7f3 b.n 802be54 <__match+0x10>
  106501. 0802be6c <__hexnan>:
  106502. 802be6c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  106503. 802be70: 680b ldr r3, [r1, #0]
  106504. 802be72: 6801 ldr r1, [r0, #0]
  106505. 802be74: 115e asrs r6, r3, #5
  106506. 802be76: eb02 0686 add.w r6, r2, r6, lsl #2
  106507. 802be7a: f013 031f ands.w r3, r3, #31
  106508. 802be7e: b087 sub sp, #28
  106509. 802be80: bf18 it ne
  106510. 802be82: 3604 addne r6, #4
  106511. 802be84: 2500 movs r5, #0
  106512. 802be86: 1f37 subs r7, r6, #4
  106513. 802be88: 4682 mov sl, r0
  106514. 802be8a: 4690 mov r8, r2
  106515. 802be8c: 9301 str r3, [sp, #4]
  106516. 802be8e: f846 5c04 str.w r5, [r6, #-4]
  106517. 802be92: 46b9 mov r9, r7
  106518. 802be94: 463c mov r4, r7
  106519. 802be96: 9502 str r5, [sp, #8]
  106520. 802be98: 46ab mov fp, r5
  106521. 802be9a: 784a ldrb r2, [r1, #1]
  106522. 802be9c: 1c4b adds r3, r1, #1
  106523. 802be9e: 9303 str r3, [sp, #12]
  106524. 802bea0: b342 cbz r2, 802bef4 <__hexnan+0x88>
  106525. 802bea2: 4610 mov r0, r2
  106526. 802bea4: 9105 str r1, [sp, #20]
  106527. 802bea6: 9204 str r2, [sp, #16]
  106528. 802bea8: f7ff fd94 bl 802b9d4 <__hexdig_fun>
  106529. 802beac: 2800 cmp r0, #0
  106530. 802beae: d151 bne.n 802bf54 <__hexnan+0xe8>
  106531. 802beb0: 9a04 ldr r2, [sp, #16]
  106532. 802beb2: 9905 ldr r1, [sp, #20]
  106533. 802beb4: 2a20 cmp r2, #32
  106534. 802beb6: d818 bhi.n 802beea <__hexnan+0x7e>
  106535. 802beb8: 9b02 ldr r3, [sp, #8]
  106536. 802beba: 459b cmp fp, r3
  106537. 802bebc: dd13 ble.n 802bee6 <__hexnan+0x7a>
  106538. 802bebe: 454c cmp r4, r9
  106539. 802bec0: d206 bcs.n 802bed0 <__hexnan+0x64>
  106540. 802bec2: 2d07 cmp r5, #7
  106541. 802bec4: dc04 bgt.n 802bed0 <__hexnan+0x64>
  106542. 802bec6: 462a mov r2, r5
  106543. 802bec8: 4649 mov r1, r9
  106544. 802beca: 4620 mov r0, r4
  106545. 802becc: f7ff ffa8 bl 802be20 <L_shift>
  106546. 802bed0: 4544 cmp r4, r8
  106547. 802bed2: d952 bls.n 802bf7a <__hexnan+0x10e>
  106548. 802bed4: 2300 movs r3, #0
  106549. 802bed6: f1a4 0904 sub.w r9, r4, #4
  106550. 802beda: f844 3c04 str.w r3, [r4, #-4]
  106551. 802bede: f8cd b008 str.w fp, [sp, #8]
  106552. 802bee2: 464c mov r4, r9
  106553. 802bee4: 461d mov r5, r3
  106554. 802bee6: 9903 ldr r1, [sp, #12]
  106555. 802bee8: e7d7 b.n 802be9a <__hexnan+0x2e>
  106556. 802beea: 2a29 cmp r2, #41 @ 0x29
  106557. 802beec: d157 bne.n 802bf9e <__hexnan+0x132>
  106558. 802beee: 3102 adds r1, #2
  106559. 802bef0: f8ca 1000 str.w r1, [sl]
  106560. 802bef4: f1bb 0f00 cmp.w fp, #0
  106561. 802bef8: d051 beq.n 802bf9e <__hexnan+0x132>
  106562. 802befa: 454c cmp r4, r9
  106563. 802befc: d206 bcs.n 802bf0c <__hexnan+0xa0>
  106564. 802befe: 2d07 cmp r5, #7
  106565. 802bf00: dc04 bgt.n 802bf0c <__hexnan+0xa0>
  106566. 802bf02: 462a mov r2, r5
  106567. 802bf04: 4649 mov r1, r9
  106568. 802bf06: 4620 mov r0, r4
  106569. 802bf08: f7ff ff8a bl 802be20 <L_shift>
  106570. 802bf0c: 4544 cmp r4, r8
  106571. 802bf0e: d936 bls.n 802bf7e <__hexnan+0x112>
  106572. 802bf10: f1a8 0204 sub.w r2, r8, #4
  106573. 802bf14: 4623 mov r3, r4
  106574. 802bf16: f853 1b04 ldr.w r1, [r3], #4
  106575. 802bf1a: f842 1f04 str.w r1, [r2, #4]!
  106576. 802bf1e: 429f cmp r7, r3
  106577. 802bf20: d2f9 bcs.n 802bf16 <__hexnan+0xaa>
  106578. 802bf22: 1b3b subs r3, r7, r4
  106579. 802bf24: f023 0303 bic.w r3, r3, #3
  106580. 802bf28: 3304 adds r3, #4
  106581. 802bf2a: 3401 adds r4, #1
  106582. 802bf2c: 3e03 subs r6, #3
  106583. 802bf2e: 42b4 cmp r4, r6
  106584. 802bf30: bf88 it hi
  106585. 802bf32: 2304 movhi r3, #4
  106586. 802bf34: 4443 add r3, r8
  106587. 802bf36: 2200 movs r2, #0
  106588. 802bf38: f843 2b04 str.w r2, [r3], #4
  106589. 802bf3c: 429f cmp r7, r3
  106590. 802bf3e: d2fb bcs.n 802bf38 <__hexnan+0xcc>
  106591. 802bf40: 683b ldr r3, [r7, #0]
  106592. 802bf42: b91b cbnz r3, 802bf4c <__hexnan+0xe0>
  106593. 802bf44: 4547 cmp r7, r8
  106594. 802bf46: d128 bne.n 802bf9a <__hexnan+0x12e>
  106595. 802bf48: 2301 movs r3, #1
  106596. 802bf4a: 603b str r3, [r7, #0]
  106597. 802bf4c: 2005 movs r0, #5
  106598. 802bf4e: b007 add sp, #28
  106599. 802bf50: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  106600. 802bf54: 3501 adds r5, #1
  106601. 802bf56: 2d08 cmp r5, #8
  106602. 802bf58: f10b 0b01 add.w fp, fp, #1
  106603. 802bf5c: dd06 ble.n 802bf6c <__hexnan+0x100>
  106604. 802bf5e: 4544 cmp r4, r8
  106605. 802bf60: d9c1 bls.n 802bee6 <__hexnan+0x7a>
  106606. 802bf62: 2300 movs r3, #0
  106607. 802bf64: f844 3c04 str.w r3, [r4, #-4]
  106608. 802bf68: 2501 movs r5, #1
  106609. 802bf6a: 3c04 subs r4, #4
  106610. 802bf6c: 6822 ldr r2, [r4, #0]
  106611. 802bf6e: f000 000f and.w r0, r0, #15
  106612. 802bf72: ea40 1002 orr.w r0, r0, r2, lsl #4
  106613. 802bf76: 6020 str r0, [r4, #0]
  106614. 802bf78: e7b5 b.n 802bee6 <__hexnan+0x7a>
  106615. 802bf7a: 2508 movs r5, #8
  106616. 802bf7c: e7b3 b.n 802bee6 <__hexnan+0x7a>
  106617. 802bf7e: 9b01 ldr r3, [sp, #4]
  106618. 802bf80: 2b00 cmp r3, #0
  106619. 802bf82: d0dd beq.n 802bf40 <__hexnan+0xd4>
  106620. 802bf84: f1c3 0320 rsb r3, r3, #32
  106621. 802bf88: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  106622. 802bf8c: 40da lsrs r2, r3
  106623. 802bf8e: f856 3c04 ldr.w r3, [r6, #-4]
  106624. 802bf92: 4013 ands r3, r2
  106625. 802bf94: f846 3c04 str.w r3, [r6, #-4]
  106626. 802bf98: e7d2 b.n 802bf40 <__hexnan+0xd4>
  106627. 802bf9a: 3f04 subs r7, #4
  106628. 802bf9c: e7d0 b.n 802bf40 <__hexnan+0xd4>
  106629. 802bf9e: 2004 movs r0, #4
  106630. 802bfa0: e7d5 b.n 802bf4e <__hexnan+0xe2>
  106631. 0802bfa2 <__ascii_mbtowc>:
  106632. 802bfa2: b082 sub sp, #8
  106633. 802bfa4: b901 cbnz r1, 802bfa8 <__ascii_mbtowc+0x6>
  106634. 802bfa6: a901 add r1, sp, #4
  106635. 802bfa8: b142 cbz r2, 802bfbc <__ascii_mbtowc+0x1a>
  106636. 802bfaa: b14b cbz r3, 802bfc0 <__ascii_mbtowc+0x1e>
  106637. 802bfac: 7813 ldrb r3, [r2, #0]
  106638. 802bfae: 600b str r3, [r1, #0]
  106639. 802bfb0: 7812 ldrb r2, [r2, #0]
  106640. 802bfb2: 1e10 subs r0, r2, #0
  106641. 802bfb4: bf18 it ne
  106642. 802bfb6: 2001 movne r0, #1
  106643. 802bfb8: b002 add sp, #8
  106644. 802bfba: 4770 bx lr
  106645. 802bfbc: 4610 mov r0, r2
  106646. 802bfbe: e7fb b.n 802bfb8 <__ascii_mbtowc+0x16>
  106647. 802bfc0: f06f 0001 mvn.w r0, #1
  106648. 802bfc4: e7f8 b.n 802bfb8 <__ascii_mbtowc+0x16>
  106649. ...
  106650. 0802bfc8 <_Balloc>:
  106651. 802bfc8: b570 push {r4, r5, r6, lr}
  106652. 802bfca: 69c6 ldr r6, [r0, #28]
  106653. 802bfcc: 4604 mov r4, r0
  106654. 802bfce: 460d mov r5, r1
  106655. 802bfd0: b976 cbnz r6, 802bff0 <_Balloc+0x28>
  106656. 802bfd2: 2010 movs r0, #16
  106657. 802bfd4: f7fc ffda bl 8028f8c <malloc>
  106658. 802bfd8: 4602 mov r2, r0
  106659. 802bfda: 61e0 str r0, [r4, #28]
  106660. 802bfdc: b920 cbnz r0, 802bfe8 <_Balloc+0x20>
  106661. 802bfde: 4b18 ldr r3, [pc, #96] @ (802c040 <_Balloc+0x78>)
  106662. 802bfe0: 4818 ldr r0, [pc, #96] @ (802c044 <_Balloc+0x7c>)
  106663. 802bfe2: 216b movs r1, #107 @ 0x6b
  106664. 802bfe4: f7fe fe5c bl 802aca0 <__assert_func>
  106665. 802bfe8: e9c0 6601 strd r6, r6, [r0, #4]
  106666. 802bfec: 6006 str r6, [r0, #0]
  106667. 802bfee: 60c6 str r6, [r0, #12]
  106668. 802bff0: 69e6 ldr r6, [r4, #28]
  106669. 802bff2: 68f3 ldr r3, [r6, #12]
  106670. 802bff4: b183 cbz r3, 802c018 <_Balloc+0x50>
  106671. 802bff6: 69e3 ldr r3, [r4, #28]
  106672. 802bff8: 68db ldr r3, [r3, #12]
  106673. 802bffa: f853 0025 ldr.w r0, [r3, r5, lsl #2]
  106674. 802bffe: b9b8 cbnz r0, 802c030 <_Balloc+0x68>
  106675. 802c000: 2101 movs r1, #1
  106676. 802c002: fa01 f605 lsl.w r6, r1, r5
  106677. 802c006: 1d72 adds r2, r6, #5
  106678. 802c008: 0092 lsls r2, r2, #2
  106679. 802c00a: 4620 mov r0, r4
  106680. 802c00c: f001 f883 bl 802d116 <_calloc_r>
  106681. 802c010: b160 cbz r0, 802c02c <_Balloc+0x64>
  106682. 802c012: e9c0 5601 strd r5, r6, [r0, #4]
  106683. 802c016: e00e b.n 802c036 <_Balloc+0x6e>
  106684. 802c018: 2221 movs r2, #33 @ 0x21
  106685. 802c01a: 2104 movs r1, #4
  106686. 802c01c: 4620 mov r0, r4
  106687. 802c01e: f001 f87a bl 802d116 <_calloc_r>
  106688. 802c022: 69e3 ldr r3, [r4, #28]
  106689. 802c024: 60f0 str r0, [r6, #12]
  106690. 802c026: 68db ldr r3, [r3, #12]
  106691. 802c028: 2b00 cmp r3, #0
  106692. 802c02a: d1e4 bne.n 802bff6 <_Balloc+0x2e>
  106693. 802c02c: 2000 movs r0, #0
  106694. 802c02e: bd70 pop {r4, r5, r6, pc}
  106695. 802c030: 6802 ldr r2, [r0, #0]
  106696. 802c032: f843 2025 str.w r2, [r3, r5, lsl #2]
  106697. 802c036: 2300 movs r3, #0
  106698. 802c038: e9c0 3303 strd r3, r3, [r0, #12]
  106699. 802c03c: e7f7 b.n 802c02e <_Balloc+0x66>
  106700. 802c03e: bf00 nop
  106701. 802c040: 08031b6e .word 0x08031b6e
  106702. 802c044: 08031e7f .word 0x08031e7f
  106703. 0802c048 <_Bfree>:
  106704. 802c048: b570 push {r4, r5, r6, lr}
  106705. 802c04a: 69c6 ldr r6, [r0, #28]
  106706. 802c04c: 4605 mov r5, r0
  106707. 802c04e: 460c mov r4, r1
  106708. 802c050: b976 cbnz r6, 802c070 <_Bfree+0x28>
  106709. 802c052: 2010 movs r0, #16
  106710. 802c054: f7fc ff9a bl 8028f8c <malloc>
  106711. 802c058: 4602 mov r2, r0
  106712. 802c05a: 61e8 str r0, [r5, #28]
  106713. 802c05c: b920 cbnz r0, 802c068 <_Bfree+0x20>
  106714. 802c05e: 4b09 ldr r3, [pc, #36] @ (802c084 <_Bfree+0x3c>)
  106715. 802c060: 4809 ldr r0, [pc, #36] @ (802c088 <_Bfree+0x40>)
  106716. 802c062: 218f movs r1, #143 @ 0x8f
  106717. 802c064: f7fe fe1c bl 802aca0 <__assert_func>
  106718. 802c068: e9c0 6601 strd r6, r6, [r0, #4]
  106719. 802c06c: 6006 str r6, [r0, #0]
  106720. 802c06e: 60c6 str r6, [r0, #12]
  106721. 802c070: b13c cbz r4, 802c082 <_Bfree+0x3a>
  106722. 802c072: 69eb ldr r3, [r5, #28]
  106723. 802c074: 6862 ldr r2, [r4, #4]
  106724. 802c076: 68db ldr r3, [r3, #12]
  106725. 802c078: f853 1022 ldr.w r1, [r3, r2, lsl #2]
  106726. 802c07c: 6021 str r1, [r4, #0]
  106727. 802c07e: f843 4022 str.w r4, [r3, r2, lsl #2]
  106728. 802c082: bd70 pop {r4, r5, r6, pc}
  106729. 802c084: 08031b6e .word 0x08031b6e
  106730. 802c088: 08031e7f .word 0x08031e7f
  106731. 0802c08c <__multadd>:
  106732. 802c08c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  106733. 802c090: 690d ldr r5, [r1, #16]
  106734. 802c092: 4607 mov r7, r0
  106735. 802c094: 460c mov r4, r1
  106736. 802c096: 461e mov r6, r3
  106737. 802c098: f101 0c14 add.w ip, r1, #20
  106738. 802c09c: 2000 movs r0, #0
  106739. 802c09e: f8dc 3000 ldr.w r3, [ip]
  106740. 802c0a2: b299 uxth r1, r3
  106741. 802c0a4: fb02 6101 mla r1, r2, r1, r6
  106742. 802c0a8: 0c1e lsrs r6, r3, #16
  106743. 802c0aa: 0c0b lsrs r3, r1, #16
  106744. 802c0ac: fb02 3306 mla r3, r2, r6, r3
  106745. 802c0b0: b289 uxth r1, r1
  106746. 802c0b2: 3001 adds r0, #1
  106747. 802c0b4: eb01 4103 add.w r1, r1, r3, lsl #16
  106748. 802c0b8: 4285 cmp r5, r0
  106749. 802c0ba: f84c 1b04 str.w r1, [ip], #4
  106750. 802c0be: ea4f 4613 mov.w r6, r3, lsr #16
  106751. 802c0c2: dcec bgt.n 802c09e <__multadd+0x12>
  106752. 802c0c4: b30e cbz r6, 802c10a <__multadd+0x7e>
  106753. 802c0c6: 68a3 ldr r3, [r4, #8]
  106754. 802c0c8: 42ab cmp r3, r5
  106755. 802c0ca: dc19 bgt.n 802c100 <__multadd+0x74>
  106756. 802c0cc: 6861 ldr r1, [r4, #4]
  106757. 802c0ce: 4638 mov r0, r7
  106758. 802c0d0: 3101 adds r1, #1
  106759. 802c0d2: f7ff ff79 bl 802bfc8 <_Balloc>
  106760. 802c0d6: 4680 mov r8, r0
  106761. 802c0d8: b928 cbnz r0, 802c0e6 <__multadd+0x5a>
  106762. 802c0da: 4602 mov r2, r0
  106763. 802c0dc: 4b0c ldr r3, [pc, #48] @ (802c110 <__multadd+0x84>)
  106764. 802c0de: 480d ldr r0, [pc, #52] @ (802c114 <__multadd+0x88>)
  106765. 802c0e0: 21ba movs r1, #186 @ 0xba
  106766. 802c0e2: f7fe fddd bl 802aca0 <__assert_func>
  106767. 802c0e6: 6922 ldr r2, [r4, #16]
  106768. 802c0e8: 3202 adds r2, #2
  106769. 802c0ea: f104 010c add.w r1, r4, #12
  106770. 802c0ee: 0092 lsls r2, r2, #2
  106771. 802c0f0: 300c adds r0, #12
  106772. 802c0f2: f7fe fdbc bl 802ac6e <memcpy>
  106773. 802c0f6: 4621 mov r1, r4
  106774. 802c0f8: 4638 mov r0, r7
  106775. 802c0fa: f7ff ffa5 bl 802c048 <_Bfree>
  106776. 802c0fe: 4644 mov r4, r8
  106777. 802c100: eb04 0385 add.w r3, r4, r5, lsl #2
  106778. 802c104: 3501 adds r5, #1
  106779. 802c106: 615e str r6, [r3, #20]
  106780. 802c108: 6125 str r5, [r4, #16]
  106781. 802c10a: 4620 mov r0, r4
  106782. 802c10c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  106783. 802c110: 08031e0e .word 0x08031e0e
  106784. 802c114: 08031e7f .word 0x08031e7f
  106785. 0802c118 <__s2b>:
  106786. 802c118: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  106787. 802c11c: 460c mov r4, r1
  106788. 802c11e: 4615 mov r5, r2
  106789. 802c120: 461f mov r7, r3
  106790. 802c122: 2209 movs r2, #9
  106791. 802c124: 3308 adds r3, #8
  106792. 802c126: 4606 mov r6, r0
  106793. 802c128: fb93 f3f2 sdiv r3, r3, r2
  106794. 802c12c: 2100 movs r1, #0
  106795. 802c12e: 2201 movs r2, #1
  106796. 802c130: 429a cmp r2, r3
  106797. 802c132: db09 blt.n 802c148 <__s2b+0x30>
  106798. 802c134: 4630 mov r0, r6
  106799. 802c136: f7ff ff47 bl 802bfc8 <_Balloc>
  106800. 802c13a: b940 cbnz r0, 802c14e <__s2b+0x36>
  106801. 802c13c: 4602 mov r2, r0
  106802. 802c13e: 4b19 ldr r3, [pc, #100] @ (802c1a4 <__s2b+0x8c>)
  106803. 802c140: 4819 ldr r0, [pc, #100] @ (802c1a8 <__s2b+0x90>)
  106804. 802c142: 21d3 movs r1, #211 @ 0xd3
  106805. 802c144: f7fe fdac bl 802aca0 <__assert_func>
  106806. 802c148: 0052 lsls r2, r2, #1
  106807. 802c14a: 3101 adds r1, #1
  106808. 802c14c: e7f0 b.n 802c130 <__s2b+0x18>
  106809. 802c14e: 9b08 ldr r3, [sp, #32]
  106810. 802c150: 6143 str r3, [r0, #20]
  106811. 802c152: 2d09 cmp r5, #9
  106812. 802c154: f04f 0301 mov.w r3, #1
  106813. 802c158: 6103 str r3, [r0, #16]
  106814. 802c15a: dd16 ble.n 802c18a <__s2b+0x72>
  106815. 802c15c: f104 0909 add.w r9, r4, #9
  106816. 802c160: 46c8 mov r8, r9
  106817. 802c162: 442c add r4, r5
  106818. 802c164: f818 3b01 ldrb.w r3, [r8], #1
  106819. 802c168: 4601 mov r1, r0
  106820. 802c16a: 3b30 subs r3, #48 @ 0x30
  106821. 802c16c: 220a movs r2, #10
  106822. 802c16e: 4630 mov r0, r6
  106823. 802c170: f7ff ff8c bl 802c08c <__multadd>
  106824. 802c174: 45a0 cmp r8, r4
  106825. 802c176: d1f5 bne.n 802c164 <__s2b+0x4c>
  106826. 802c178: f1a5 0408 sub.w r4, r5, #8
  106827. 802c17c: 444c add r4, r9
  106828. 802c17e: 1b2d subs r5, r5, r4
  106829. 802c180: 1963 adds r3, r4, r5
  106830. 802c182: 42bb cmp r3, r7
  106831. 802c184: db04 blt.n 802c190 <__s2b+0x78>
  106832. 802c186: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  106833. 802c18a: 340a adds r4, #10
  106834. 802c18c: 2509 movs r5, #9
  106835. 802c18e: e7f6 b.n 802c17e <__s2b+0x66>
  106836. 802c190: f814 3b01 ldrb.w r3, [r4], #1
  106837. 802c194: 4601 mov r1, r0
  106838. 802c196: 3b30 subs r3, #48 @ 0x30
  106839. 802c198: 220a movs r2, #10
  106840. 802c19a: 4630 mov r0, r6
  106841. 802c19c: f7ff ff76 bl 802c08c <__multadd>
  106842. 802c1a0: e7ee b.n 802c180 <__s2b+0x68>
  106843. 802c1a2: bf00 nop
  106844. 802c1a4: 08031e0e .word 0x08031e0e
  106845. 802c1a8: 08031e7f .word 0x08031e7f
  106846. 0802c1ac <__hi0bits>:
  106847. 802c1ac: f5b0 3f80 cmp.w r0, #65536 @ 0x10000
  106848. 802c1b0: 4603 mov r3, r0
  106849. 802c1b2: bf36 itet cc
  106850. 802c1b4: 0403 lslcc r3, r0, #16
  106851. 802c1b6: 2000 movcs r0, #0
  106852. 802c1b8: 2010 movcc r0, #16
  106853. 802c1ba: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  106854. 802c1be: bf3c itt cc
  106855. 802c1c0: 021b lslcc r3, r3, #8
  106856. 802c1c2: 3008 addcc r0, #8
  106857. 802c1c4: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  106858. 802c1c8: bf3c itt cc
  106859. 802c1ca: 011b lslcc r3, r3, #4
  106860. 802c1cc: 3004 addcc r0, #4
  106861. 802c1ce: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  106862. 802c1d2: bf3c itt cc
  106863. 802c1d4: 009b lslcc r3, r3, #2
  106864. 802c1d6: 3002 addcc r0, #2
  106865. 802c1d8: 2b00 cmp r3, #0
  106866. 802c1da: db05 blt.n 802c1e8 <__hi0bits+0x3c>
  106867. 802c1dc: f013 4f80 tst.w r3, #1073741824 @ 0x40000000
  106868. 802c1e0: f100 0001 add.w r0, r0, #1
  106869. 802c1e4: bf08 it eq
  106870. 802c1e6: 2020 moveq r0, #32
  106871. 802c1e8: 4770 bx lr
  106872. 0802c1ea <__lo0bits>:
  106873. 802c1ea: 6803 ldr r3, [r0, #0]
  106874. 802c1ec: 4602 mov r2, r0
  106875. 802c1ee: f013 0007 ands.w r0, r3, #7
  106876. 802c1f2: d00b beq.n 802c20c <__lo0bits+0x22>
  106877. 802c1f4: 07d9 lsls r1, r3, #31
  106878. 802c1f6: d421 bmi.n 802c23c <__lo0bits+0x52>
  106879. 802c1f8: 0798 lsls r0, r3, #30
  106880. 802c1fa: bf49 itett mi
  106881. 802c1fc: 085b lsrmi r3, r3, #1
  106882. 802c1fe: 089b lsrpl r3, r3, #2
  106883. 802c200: 2001 movmi r0, #1
  106884. 802c202: 6013 strmi r3, [r2, #0]
  106885. 802c204: bf5c itt pl
  106886. 802c206: 6013 strpl r3, [r2, #0]
  106887. 802c208: 2002 movpl r0, #2
  106888. 802c20a: 4770 bx lr
  106889. 802c20c: b299 uxth r1, r3
  106890. 802c20e: b909 cbnz r1, 802c214 <__lo0bits+0x2a>
  106891. 802c210: 0c1b lsrs r3, r3, #16
  106892. 802c212: 2010 movs r0, #16
  106893. 802c214: b2d9 uxtb r1, r3
  106894. 802c216: b909 cbnz r1, 802c21c <__lo0bits+0x32>
  106895. 802c218: 3008 adds r0, #8
  106896. 802c21a: 0a1b lsrs r3, r3, #8
  106897. 802c21c: 0719 lsls r1, r3, #28
  106898. 802c21e: bf04 itt eq
  106899. 802c220: 091b lsreq r3, r3, #4
  106900. 802c222: 3004 addeq r0, #4
  106901. 802c224: 0799 lsls r1, r3, #30
  106902. 802c226: bf04 itt eq
  106903. 802c228: 089b lsreq r3, r3, #2
  106904. 802c22a: 3002 addeq r0, #2
  106905. 802c22c: 07d9 lsls r1, r3, #31
  106906. 802c22e: d403 bmi.n 802c238 <__lo0bits+0x4e>
  106907. 802c230: 085b lsrs r3, r3, #1
  106908. 802c232: f100 0001 add.w r0, r0, #1
  106909. 802c236: d003 beq.n 802c240 <__lo0bits+0x56>
  106910. 802c238: 6013 str r3, [r2, #0]
  106911. 802c23a: 4770 bx lr
  106912. 802c23c: 2000 movs r0, #0
  106913. 802c23e: 4770 bx lr
  106914. 802c240: 2020 movs r0, #32
  106915. 802c242: 4770 bx lr
  106916. 0802c244 <__i2b>:
  106917. 802c244: b510 push {r4, lr}
  106918. 802c246: 460c mov r4, r1
  106919. 802c248: 2101 movs r1, #1
  106920. 802c24a: f7ff febd bl 802bfc8 <_Balloc>
  106921. 802c24e: 4602 mov r2, r0
  106922. 802c250: b928 cbnz r0, 802c25e <__i2b+0x1a>
  106923. 802c252: 4b05 ldr r3, [pc, #20] @ (802c268 <__i2b+0x24>)
  106924. 802c254: 4805 ldr r0, [pc, #20] @ (802c26c <__i2b+0x28>)
  106925. 802c256: f240 1145 movw r1, #325 @ 0x145
  106926. 802c25a: f7fe fd21 bl 802aca0 <__assert_func>
  106927. 802c25e: 2301 movs r3, #1
  106928. 802c260: 6144 str r4, [r0, #20]
  106929. 802c262: 6103 str r3, [r0, #16]
  106930. 802c264: bd10 pop {r4, pc}
  106931. 802c266: bf00 nop
  106932. 802c268: 08031e0e .word 0x08031e0e
  106933. 802c26c: 08031e7f .word 0x08031e7f
  106934. 0802c270 <__multiply>:
  106935. 802c270: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  106936. 802c274: 4614 mov r4, r2
  106937. 802c276: 690a ldr r2, [r1, #16]
  106938. 802c278: 6923 ldr r3, [r4, #16]
  106939. 802c27a: 429a cmp r2, r3
  106940. 802c27c: bfa8 it ge
  106941. 802c27e: 4623 movge r3, r4
  106942. 802c280: 460f mov r7, r1
  106943. 802c282: bfa4 itt ge
  106944. 802c284: 460c movge r4, r1
  106945. 802c286: 461f movge r7, r3
  106946. 802c288: f8d4 a010 ldr.w sl, [r4, #16]
  106947. 802c28c: f8d7 9010 ldr.w r9, [r7, #16]
  106948. 802c290: 68a3 ldr r3, [r4, #8]
  106949. 802c292: 6861 ldr r1, [r4, #4]
  106950. 802c294: eb0a 0609 add.w r6, sl, r9
  106951. 802c298: 42b3 cmp r3, r6
  106952. 802c29a: b085 sub sp, #20
  106953. 802c29c: bfb8 it lt
  106954. 802c29e: 3101 addlt r1, #1
  106955. 802c2a0: f7ff fe92 bl 802bfc8 <_Balloc>
  106956. 802c2a4: b930 cbnz r0, 802c2b4 <__multiply+0x44>
  106957. 802c2a6: 4602 mov r2, r0
  106958. 802c2a8: 4b44 ldr r3, [pc, #272] @ (802c3bc <__multiply+0x14c>)
  106959. 802c2aa: 4845 ldr r0, [pc, #276] @ (802c3c0 <__multiply+0x150>)
  106960. 802c2ac: f44f 71b1 mov.w r1, #354 @ 0x162
  106961. 802c2b0: f7fe fcf6 bl 802aca0 <__assert_func>
  106962. 802c2b4: f100 0514 add.w r5, r0, #20
  106963. 802c2b8: eb05 0886 add.w r8, r5, r6, lsl #2
  106964. 802c2bc: 462b mov r3, r5
  106965. 802c2be: 2200 movs r2, #0
  106966. 802c2c0: 4543 cmp r3, r8
  106967. 802c2c2: d321 bcc.n 802c308 <__multiply+0x98>
  106968. 802c2c4: f107 0114 add.w r1, r7, #20
  106969. 802c2c8: f104 0214 add.w r2, r4, #20
  106970. 802c2cc: eb02 028a add.w r2, r2, sl, lsl #2
  106971. 802c2d0: eb01 0389 add.w r3, r1, r9, lsl #2
  106972. 802c2d4: 9302 str r3, [sp, #8]
  106973. 802c2d6: 1b13 subs r3, r2, r4
  106974. 802c2d8: 3b15 subs r3, #21
  106975. 802c2da: f023 0303 bic.w r3, r3, #3
  106976. 802c2de: 3304 adds r3, #4
  106977. 802c2e0: f104 0715 add.w r7, r4, #21
  106978. 802c2e4: 42ba cmp r2, r7
  106979. 802c2e6: bf38 it cc
  106980. 802c2e8: 2304 movcc r3, #4
  106981. 802c2ea: 9301 str r3, [sp, #4]
  106982. 802c2ec: 9b02 ldr r3, [sp, #8]
  106983. 802c2ee: 9103 str r1, [sp, #12]
  106984. 802c2f0: 428b cmp r3, r1
  106985. 802c2f2: d80c bhi.n 802c30e <__multiply+0x9e>
  106986. 802c2f4: 2e00 cmp r6, #0
  106987. 802c2f6: dd03 ble.n 802c300 <__multiply+0x90>
  106988. 802c2f8: f858 3d04 ldr.w r3, [r8, #-4]!
  106989. 802c2fc: 2b00 cmp r3, #0
  106990. 802c2fe: d05b beq.n 802c3b8 <__multiply+0x148>
  106991. 802c300: 6106 str r6, [r0, #16]
  106992. 802c302: b005 add sp, #20
  106993. 802c304: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  106994. 802c308: f843 2b04 str.w r2, [r3], #4
  106995. 802c30c: e7d8 b.n 802c2c0 <__multiply+0x50>
  106996. 802c30e: f8b1 a000 ldrh.w sl, [r1]
  106997. 802c312: f1ba 0f00 cmp.w sl, #0
  106998. 802c316: d024 beq.n 802c362 <__multiply+0xf2>
  106999. 802c318: f104 0e14 add.w lr, r4, #20
  107000. 802c31c: 46a9 mov r9, r5
  107001. 802c31e: f04f 0c00 mov.w ip, #0
  107002. 802c322: f85e 7b04 ldr.w r7, [lr], #4
  107003. 802c326: f8d9 3000 ldr.w r3, [r9]
  107004. 802c32a: fa1f fb87 uxth.w fp, r7
  107005. 802c32e: b29b uxth r3, r3
  107006. 802c330: fb0a 330b mla r3, sl, fp, r3
  107007. 802c334: ea4f 4b17 mov.w fp, r7, lsr #16
  107008. 802c338: f8d9 7000 ldr.w r7, [r9]
  107009. 802c33c: 4463 add r3, ip
  107010. 802c33e: ea4f 4c17 mov.w ip, r7, lsr #16
  107011. 802c342: fb0a c70b mla r7, sl, fp, ip
  107012. 802c346: eb07 4713 add.w r7, r7, r3, lsr #16
  107013. 802c34a: b29b uxth r3, r3
  107014. 802c34c: ea43 4307 orr.w r3, r3, r7, lsl #16
  107015. 802c350: 4572 cmp r2, lr
  107016. 802c352: f849 3b04 str.w r3, [r9], #4
  107017. 802c356: ea4f 4c17 mov.w ip, r7, lsr #16
  107018. 802c35a: d8e2 bhi.n 802c322 <__multiply+0xb2>
  107019. 802c35c: 9b01 ldr r3, [sp, #4]
  107020. 802c35e: f845 c003 str.w ip, [r5, r3]
  107021. 802c362: 9b03 ldr r3, [sp, #12]
  107022. 802c364: f8b3 9002 ldrh.w r9, [r3, #2]
  107023. 802c368: 3104 adds r1, #4
  107024. 802c36a: f1b9 0f00 cmp.w r9, #0
  107025. 802c36e: d021 beq.n 802c3b4 <__multiply+0x144>
  107026. 802c370: 682b ldr r3, [r5, #0]
  107027. 802c372: f104 0c14 add.w ip, r4, #20
  107028. 802c376: 46ae mov lr, r5
  107029. 802c378: f04f 0a00 mov.w sl, #0
  107030. 802c37c: f8bc b000 ldrh.w fp, [ip]
  107031. 802c380: f8be 7002 ldrh.w r7, [lr, #2]
  107032. 802c384: fb09 770b mla r7, r9, fp, r7
  107033. 802c388: 4457 add r7, sl
  107034. 802c38a: b29b uxth r3, r3
  107035. 802c38c: ea43 4307 orr.w r3, r3, r7, lsl #16
  107036. 802c390: f84e 3b04 str.w r3, [lr], #4
  107037. 802c394: f85c 3b04 ldr.w r3, [ip], #4
  107038. 802c398: ea4f 4a13 mov.w sl, r3, lsr #16
  107039. 802c39c: f8be 3000 ldrh.w r3, [lr]
  107040. 802c3a0: fb09 330a mla r3, r9, sl, r3
  107041. 802c3a4: eb03 4317 add.w r3, r3, r7, lsr #16
  107042. 802c3a8: 4562 cmp r2, ip
  107043. 802c3aa: ea4f 4a13 mov.w sl, r3, lsr #16
  107044. 802c3ae: d8e5 bhi.n 802c37c <__multiply+0x10c>
  107045. 802c3b0: 9f01 ldr r7, [sp, #4]
  107046. 802c3b2: 51eb str r3, [r5, r7]
  107047. 802c3b4: 3504 adds r5, #4
  107048. 802c3b6: e799 b.n 802c2ec <__multiply+0x7c>
  107049. 802c3b8: 3e01 subs r6, #1
  107050. 802c3ba: e79b b.n 802c2f4 <__multiply+0x84>
  107051. 802c3bc: 08031e0e .word 0x08031e0e
  107052. 802c3c0: 08031e7f .word 0x08031e7f
  107053. 0802c3c4 <__pow5mult>:
  107054. 802c3c4: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  107055. 802c3c8: 4615 mov r5, r2
  107056. 802c3ca: f012 0203 ands.w r2, r2, #3
  107057. 802c3ce: 4607 mov r7, r0
  107058. 802c3d0: 460e mov r6, r1
  107059. 802c3d2: d007 beq.n 802c3e4 <__pow5mult+0x20>
  107060. 802c3d4: 4c25 ldr r4, [pc, #148] @ (802c46c <__pow5mult+0xa8>)
  107061. 802c3d6: 3a01 subs r2, #1
  107062. 802c3d8: 2300 movs r3, #0
  107063. 802c3da: f854 2022 ldr.w r2, [r4, r2, lsl #2]
  107064. 802c3de: f7ff fe55 bl 802c08c <__multadd>
  107065. 802c3e2: 4606 mov r6, r0
  107066. 802c3e4: 10ad asrs r5, r5, #2
  107067. 802c3e6: d03d beq.n 802c464 <__pow5mult+0xa0>
  107068. 802c3e8: 69fc ldr r4, [r7, #28]
  107069. 802c3ea: b97c cbnz r4, 802c40c <__pow5mult+0x48>
  107070. 802c3ec: 2010 movs r0, #16
  107071. 802c3ee: f7fc fdcd bl 8028f8c <malloc>
  107072. 802c3f2: 4602 mov r2, r0
  107073. 802c3f4: 61f8 str r0, [r7, #28]
  107074. 802c3f6: b928 cbnz r0, 802c404 <__pow5mult+0x40>
  107075. 802c3f8: 4b1d ldr r3, [pc, #116] @ (802c470 <__pow5mult+0xac>)
  107076. 802c3fa: 481e ldr r0, [pc, #120] @ (802c474 <__pow5mult+0xb0>)
  107077. 802c3fc: f240 11b3 movw r1, #435 @ 0x1b3
  107078. 802c400: f7fe fc4e bl 802aca0 <__assert_func>
  107079. 802c404: e9c0 4401 strd r4, r4, [r0, #4]
  107080. 802c408: 6004 str r4, [r0, #0]
  107081. 802c40a: 60c4 str r4, [r0, #12]
  107082. 802c40c: f8d7 801c ldr.w r8, [r7, #28]
  107083. 802c410: f8d8 4008 ldr.w r4, [r8, #8]
  107084. 802c414: b94c cbnz r4, 802c42a <__pow5mult+0x66>
  107085. 802c416: f240 2171 movw r1, #625 @ 0x271
  107086. 802c41a: 4638 mov r0, r7
  107087. 802c41c: f7ff ff12 bl 802c244 <__i2b>
  107088. 802c420: 2300 movs r3, #0
  107089. 802c422: f8c8 0008 str.w r0, [r8, #8]
  107090. 802c426: 4604 mov r4, r0
  107091. 802c428: 6003 str r3, [r0, #0]
  107092. 802c42a: f04f 0900 mov.w r9, #0
  107093. 802c42e: 07eb lsls r3, r5, #31
  107094. 802c430: d50a bpl.n 802c448 <__pow5mult+0x84>
  107095. 802c432: 4631 mov r1, r6
  107096. 802c434: 4622 mov r2, r4
  107097. 802c436: 4638 mov r0, r7
  107098. 802c438: f7ff ff1a bl 802c270 <__multiply>
  107099. 802c43c: 4631 mov r1, r6
  107100. 802c43e: 4680 mov r8, r0
  107101. 802c440: 4638 mov r0, r7
  107102. 802c442: f7ff fe01 bl 802c048 <_Bfree>
  107103. 802c446: 4646 mov r6, r8
  107104. 802c448: 106d asrs r5, r5, #1
  107105. 802c44a: d00b beq.n 802c464 <__pow5mult+0xa0>
  107106. 802c44c: 6820 ldr r0, [r4, #0]
  107107. 802c44e: b938 cbnz r0, 802c460 <__pow5mult+0x9c>
  107108. 802c450: 4622 mov r2, r4
  107109. 802c452: 4621 mov r1, r4
  107110. 802c454: 4638 mov r0, r7
  107111. 802c456: f7ff ff0b bl 802c270 <__multiply>
  107112. 802c45a: 6020 str r0, [r4, #0]
  107113. 802c45c: f8c0 9000 str.w r9, [r0]
  107114. 802c460: 4604 mov r4, r0
  107115. 802c462: e7e4 b.n 802c42e <__pow5mult+0x6a>
  107116. 802c464: 4630 mov r0, r6
  107117. 802c466: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  107118. 802c46a: bf00 nop
  107119. 802c46c: 08031ed8 .word 0x08031ed8
  107120. 802c470: 08031b6e .word 0x08031b6e
  107121. 802c474: 08031e7f .word 0x08031e7f
  107122. 0802c478 <__lshift>:
  107123. 802c478: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  107124. 802c47c: 460c mov r4, r1
  107125. 802c47e: 6849 ldr r1, [r1, #4]
  107126. 802c480: 6923 ldr r3, [r4, #16]
  107127. 802c482: eb03 1862 add.w r8, r3, r2, asr #5
  107128. 802c486: 68a3 ldr r3, [r4, #8]
  107129. 802c488: 4607 mov r7, r0
  107130. 802c48a: 4691 mov r9, r2
  107131. 802c48c: ea4f 1a62 mov.w sl, r2, asr #5
  107132. 802c490: f108 0601 add.w r6, r8, #1
  107133. 802c494: 42b3 cmp r3, r6
  107134. 802c496: db0b blt.n 802c4b0 <__lshift+0x38>
  107135. 802c498: 4638 mov r0, r7
  107136. 802c49a: f7ff fd95 bl 802bfc8 <_Balloc>
  107137. 802c49e: 4605 mov r5, r0
  107138. 802c4a0: b948 cbnz r0, 802c4b6 <__lshift+0x3e>
  107139. 802c4a2: 4602 mov r2, r0
  107140. 802c4a4: 4b28 ldr r3, [pc, #160] @ (802c548 <__lshift+0xd0>)
  107141. 802c4a6: 4829 ldr r0, [pc, #164] @ (802c54c <__lshift+0xd4>)
  107142. 802c4a8: f44f 71ef mov.w r1, #478 @ 0x1de
  107143. 802c4ac: f7fe fbf8 bl 802aca0 <__assert_func>
  107144. 802c4b0: 3101 adds r1, #1
  107145. 802c4b2: 005b lsls r3, r3, #1
  107146. 802c4b4: e7ee b.n 802c494 <__lshift+0x1c>
  107147. 802c4b6: 2300 movs r3, #0
  107148. 802c4b8: f100 0114 add.w r1, r0, #20
  107149. 802c4bc: f100 0210 add.w r2, r0, #16
  107150. 802c4c0: 4618 mov r0, r3
  107151. 802c4c2: 4553 cmp r3, sl
  107152. 802c4c4: db33 blt.n 802c52e <__lshift+0xb6>
  107153. 802c4c6: 6920 ldr r0, [r4, #16]
  107154. 802c4c8: ea2a 7aea bic.w sl, sl, sl, asr #31
  107155. 802c4cc: f104 0314 add.w r3, r4, #20
  107156. 802c4d0: f019 091f ands.w r9, r9, #31
  107157. 802c4d4: eb01 018a add.w r1, r1, sl, lsl #2
  107158. 802c4d8: eb03 0c80 add.w ip, r3, r0, lsl #2
  107159. 802c4dc: d02b beq.n 802c536 <__lshift+0xbe>
  107160. 802c4de: f1c9 0e20 rsb lr, r9, #32
  107161. 802c4e2: 468a mov sl, r1
  107162. 802c4e4: 2200 movs r2, #0
  107163. 802c4e6: 6818 ldr r0, [r3, #0]
  107164. 802c4e8: fa00 f009 lsl.w r0, r0, r9
  107165. 802c4ec: 4310 orrs r0, r2
  107166. 802c4ee: f84a 0b04 str.w r0, [sl], #4
  107167. 802c4f2: f853 2b04 ldr.w r2, [r3], #4
  107168. 802c4f6: 459c cmp ip, r3
  107169. 802c4f8: fa22 f20e lsr.w r2, r2, lr
  107170. 802c4fc: d8f3 bhi.n 802c4e6 <__lshift+0x6e>
  107171. 802c4fe: ebac 0304 sub.w r3, ip, r4
  107172. 802c502: 3b15 subs r3, #21
  107173. 802c504: f023 0303 bic.w r3, r3, #3
  107174. 802c508: 3304 adds r3, #4
  107175. 802c50a: f104 0015 add.w r0, r4, #21
  107176. 802c50e: 4584 cmp ip, r0
  107177. 802c510: bf38 it cc
  107178. 802c512: 2304 movcc r3, #4
  107179. 802c514: 50ca str r2, [r1, r3]
  107180. 802c516: b10a cbz r2, 802c51c <__lshift+0xa4>
  107181. 802c518: f108 0602 add.w r6, r8, #2
  107182. 802c51c: 3e01 subs r6, #1
  107183. 802c51e: 4638 mov r0, r7
  107184. 802c520: 612e str r6, [r5, #16]
  107185. 802c522: 4621 mov r1, r4
  107186. 802c524: f7ff fd90 bl 802c048 <_Bfree>
  107187. 802c528: 4628 mov r0, r5
  107188. 802c52a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  107189. 802c52e: f842 0f04 str.w r0, [r2, #4]!
  107190. 802c532: 3301 adds r3, #1
  107191. 802c534: e7c5 b.n 802c4c2 <__lshift+0x4a>
  107192. 802c536: 3904 subs r1, #4
  107193. 802c538: f853 2b04 ldr.w r2, [r3], #4
  107194. 802c53c: f841 2f04 str.w r2, [r1, #4]!
  107195. 802c540: 459c cmp ip, r3
  107196. 802c542: d8f9 bhi.n 802c538 <__lshift+0xc0>
  107197. 802c544: e7ea b.n 802c51c <__lshift+0xa4>
  107198. 802c546: bf00 nop
  107199. 802c548: 08031e0e .word 0x08031e0e
  107200. 802c54c: 08031e7f .word 0x08031e7f
  107201. 0802c550 <__mcmp>:
  107202. 802c550: 690a ldr r2, [r1, #16]
  107203. 802c552: 4603 mov r3, r0
  107204. 802c554: 6900 ldr r0, [r0, #16]
  107205. 802c556: 1a80 subs r0, r0, r2
  107206. 802c558: b530 push {r4, r5, lr}
  107207. 802c55a: d10e bne.n 802c57a <__mcmp+0x2a>
  107208. 802c55c: 3314 adds r3, #20
  107209. 802c55e: 3114 adds r1, #20
  107210. 802c560: eb03 0482 add.w r4, r3, r2, lsl #2
  107211. 802c564: eb01 0182 add.w r1, r1, r2, lsl #2
  107212. 802c568: f854 5d04 ldr.w r5, [r4, #-4]!
  107213. 802c56c: f851 2d04 ldr.w r2, [r1, #-4]!
  107214. 802c570: 4295 cmp r5, r2
  107215. 802c572: d003 beq.n 802c57c <__mcmp+0x2c>
  107216. 802c574: d205 bcs.n 802c582 <__mcmp+0x32>
  107217. 802c576: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  107218. 802c57a: bd30 pop {r4, r5, pc}
  107219. 802c57c: 42a3 cmp r3, r4
  107220. 802c57e: d3f3 bcc.n 802c568 <__mcmp+0x18>
  107221. 802c580: e7fb b.n 802c57a <__mcmp+0x2a>
  107222. 802c582: 2001 movs r0, #1
  107223. 802c584: e7f9 b.n 802c57a <__mcmp+0x2a>
  107224. ...
  107225. 0802c588 <__mdiff>:
  107226. 802c588: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  107227. 802c58c: 4689 mov r9, r1
  107228. 802c58e: 4606 mov r6, r0
  107229. 802c590: 4611 mov r1, r2
  107230. 802c592: 4648 mov r0, r9
  107231. 802c594: 4614 mov r4, r2
  107232. 802c596: f7ff ffdb bl 802c550 <__mcmp>
  107233. 802c59a: 1e05 subs r5, r0, #0
  107234. 802c59c: d112 bne.n 802c5c4 <__mdiff+0x3c>
  107235. 802c59e: 4629 mov r1, r5
  107236. 802c5a0: 4630 mov r0, r6
  107237. 802c5a2: f7ff fd11 bl 802bfc8 <_Balloc>
  107238. 802c5a6: 4602 mov r2, r0
  107239. 802c5a8: b928 cbnz r0, 802c5b6 <__mdiff+0x2e>
  107240. 802c5aa: 4b3f ldr r3, [pc, #252] @ (802c6a8 <__mdiff+0x120>)
  107241. 802c5ac: f240 2137 movw r1, #567 @ 0x237
  107242. 802c5b0: 483e ldr r0, [pc, #248] @ (802c6ac <__mdiff+0x124>)
  107243. 802c5b2: f7fe fb75 bl 802aca0 <__assert_func>
  107244. 802c5b6: 2301 movs r3, #1
  107245. 802c5b8: e9c0 3504 strd r3, r5, [r0, #16]
  107246. 802c5bc: 4610 mov r0, r2
  107247. 802c5be: b003 add sp, #12
  107248. 802c5c0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  107249. 802c5c4: bfbc itt lt
  107250. 802c5c6: 464b movlt r3, r9
  107251. 802c5c8: 46a1 movlt r9, r4
  107252. 802c5ca: 4630 mov r0, r6
  107253. 802c5cc: f8d9 1004 ldr.w r1, [r9, #4]
  107254. 802c5d0: bfba itte lt
  107255. 802c5d2: 461c movlt r4, r3
  107256. 802c5d4: 2501 movlt r5, #1
  107257. 802c5d6: 2500 movge r5, #0
  107258. 802c5d8: f7ff fcf6 bl 802bfc8 <_Balloc>
  107259. 802c5dc: 4602 mov r2, r0
  107260. 802c5de: b918 cbnz r0, 802c5e8 <__mdiff+0x60>
  107261. 802c5e0: 4b31 ldr r3, [pc, #196] @ (802c6a8 <__mdiff+0x120>)
  107262. 802c5e2: f240 2145 movw r1, #581 @ 0x245
  107263. 802c5e6: e7e3 b.n 802c5b0 <__mdiff+0x28>
  107264. 802c5e8: f8d9 7010 ldr.w r7, [r9, #16]
  107265. 802c5ec: 6926 ldr r6, [r4, #16]
  107266. 802c5ee: 60c5 str r5, [r0, #12]
  107267. 802c5f0: f109 0310 add.w r3, r9, #16
  107268. 802c5f4: f109 0514 add.w r5, r9, #20
  107269. 802c5f8: f104 0e14 add.w lr, r4, #20
  107270. 802c5fc: f100 0b14 add.w fp, r0, #20
  107271. 802c600: eb05 0887 add.w r8, r5, r7, lsl #2
  107272. 802c604: eb0e 0686 add.w r6, lr, r6, lsl #2
  107273. 802c608: 9301 str r3, [sp, #4]
  107274. 802c60a: 46d9 mov r9, fp
  107275. 802c60c: f04f 0c00 mov.w ip, #0
  107276. 802c610: 9b01 ldr r3, [sp, #4]
  107277. 802c612: f85e 0b04 ldr.w r0, [lr], #4
  107278. 802c616: f853 af04 ldr.w sl, [r3, #4]!
  107279. 802c61a: 9301 str r3, [sp, #4]
  107280. 802c61c: fa1f f38a uxth.w r3, sl
  107281. 802c620: 4619 mov r1, r3
  107282. 802c622: b283 uxth r3, r0
  107283. 802c624: 1acb subs r3, r1, r3
  107284. 802c626: 0c00 lsrs r0, r0, #16
  107285. 802c628: 4463 add r3, ip
  107286. 802c62a: ebc0 401a rsb r0, r0, sl, lsr #16
  107287. 802c62e: eb00 4023 add.w r0, r0, r3, asr #16
  107288. 802c632: b29b uxth r3, r3
  107289. 802c634: ea43 4300 orr.w r3, r3, r0, lsl #16
  107290. 802c638: 4576 cmp r6, lr
  107291. 802c63a: f849 3b04 str.w r3, [r9], #4
  107292. 802c63e: ea4f 4c20 mov.w ip, r0, asr #16
  107293. 802c642: d8e5 bhi.n 802c610 <__mdiff+0x88>
  107294. 802c644: 1b33 subs r3, r6, r4
  107295. 802c646: 3b15 subs r3, #21
  107296. 802c648: f023 0303 bic.w r3, r3, #3
  107297. 802c64c: 3415 adds r4, #21
  107298. 802c64e: 3304 adds r3, #4
  107299. 802c650: 42a6 cmp r6, r4
  107300. 802c652: bf38 it cc
  107301. 802c654: 2304 movcc r3, #4
  107302. 802c656: 441d add r5, r3
  107303. 802c658: 445b add r3, fp
  107304. 802c65a: 461e mov r6, r3
  107305. 802c65c: 462c mov r4, r5
  107306. 802c65e: 4544 cmp r4, r8
  107307. 802c660: d30e bcc.n 802c680 <__mdiff+0xf8>
  107308. 802c662: f108 0103 add.w r1, r8, #3
  107309. 802c666: 1b49 subs r1, r1, r5
  107310. 802c668: f021 0103 bic.w r1, r1, #3
  107311. 802c66c: 3d03 subs r5, #3
  107312. 802c66e: 45a8 cmp r8, r5
  107313. 802c670: bf38 it cc
  107314. 802c672: 2100 movcc r1, #0
  107315. 802c674: 440b add r3, r1
  107316. 802c676: f853 1d04 ldr.w r1, [r3, #-4]!
  107317. 802c67a: b191 cbz r1, 802c6a2 <__mdiff+0x11a>
  107318. 802c67c: 6117 str r7, [r2, #16]
  107319. 802c67e: e79d b.n 802c5bc <__mdiff+0x34>
  107320. 802c680: f854 1b04 ldr.w r1, [r4], #4
  107321. 802c684: 46e6 mov lr, ip
  107322. 802c686: 0c08 lsrs r0, r1, #16
  107323. 802c688: fa1c fc81 uxtah ip, ip, r1
  107324. 802c68c: 4471 add r1, lr
  107325. 802c68e: eb00 402c add.w r0, r0, ip, asr #16
  107326. 802c692: b289 uxth r1, r1
  107327. 802c694: ea41 4100 orr.w r1, r1, r0, lsl #16
  107328. 802c698: f846 1b04 str.w r1, [r6], #4
  107329. 802c69c: ea4f 4c20 mov.w ip, r0, asr #16
  107330. 802c6a0: e7dd b.n 802c65e <__mdiff+0xd6>
  107331. 802c6a2: 3f01 subs r7, #1
  107332. 802c6a4: e7e7 b.n 802c676 <__mdiff+0xee>
  107333. 802c6a6: bf00 nop
  107334. 802c6a8: 08031e0e .word 0x08031e0e
  107335. 802c6ac: 08031e7f .word 0x08031e7f
  107336. 0802c6b0 <__ulp>:
  107337. 802c6b0: b082 sub sp, #8
  107338. 802c6b2: ed8d 0b00 vstr d0, [sp]
  107339. 802c6b6: 9a01 ldr r2, [sp, #4]
  107340. 802c6b8: 4b0f ldr r3, [pc, #60] @ (802c6f8 <__ulp+0x48>)
  107341. 802c6ba: 4013 ands r3, r2
  107342. 802c6bc: f1a3 7350 sub.w r3, r3, #54525952 @ 0x3400000
  107343. 802c6c0: 2b00 cmp r3, #0
  107344. 802c6c2: dc08 bgt.n 802c6d6 <__ulp+0x26>
  107345. 802c6c4: 425b negs r3, r3
  107346. 802c6c6: f1b3 7fa0 cmp.w r3, #20971520 @ 0x1400000
  107347. 802c6ca: ea4f 5223 mov.w r2, r3, asr #20
  107348. 802c6ce: da04 bge.n 802c6da <__ulp+0x2a>
  107349. 802c6d0: f44f 2300 mov.w r3, #524288 @ 0x80000
  107350. 802c6d4: 4113 asrs r3, r2
  107351. 802c6d6: 2200 movs r2, #0
  107352. 802c6d8: e008 b.n 802c6ec <__ulp+0x3c>
  107353. 802c6da: f1a2 0314 sub.w r3, r2, #20
  107354. 802c6de: 2b1e cmp r3, #30
  107355. 802c6e0: bfda itte le
  107356. 802c6e2: f04f 4200 movle.w r2, #2147483648 @ 0x80000000
  107357. 802c6e6: 40da lsrle r2, r3
  107358. 802c6e8: 2201 movgt r2, #1
  107359. 802c6ea: 2300 movs r3, #0
  107360. 802c6ec: 4619 mov r1, r3
  107361. 802c6ee: 4610 mov r0, r2
  107362. 802c6f0: ec41 0b10 vmov d0, r0, r1
  107363. 802c6f4: b002 add sp, #8
  107364. 802c6f6: 4770 bx lr
  107365. 802c6f8: 7ff00000 .word 0x7ff00000
  107366. 0802c6fc <__b2d>:
  107367. 802c6fc: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  107368. 802c700: 6906 ldr r6, [r0, #16]
  107369. 802c702: f100 0814 add.w r8, r0, #20
  107370. 802c706: eb08 0686 add.w r6, r8, r6, lsl #2
  107371. 802c70a: 1f37 subs r7, r6, #4
  107372. 802c70c: f856 2c04 ldr.w r2, [r6, #-4]
  107373. 802c710: 4610 mov r0, r2
  107374. 802c712: f7ff fd4b bl 802c1ac <__hi0bits>
  107375. 802c716: f1c0 0320 rsb r3, r0, #32
  107376. 802c71a: 280a cmp r0, #10
  107377. 802c71c: 600b str r3, [r1, #0]
  107378. 802c71e: 491b ldr r1, [pc, #108] @ (802c78c <__b2d+0x90>)
  107379. 802c720: dc15 bgt.n 802c74e <__b2d+0x52>
  107380. 802c722: f1c0 0c0b rsb ip, r0, #11
  107381. 802c726: fa22 f30c lsr.w r3, r2, ip
  107382. 802c72a: 45b8 cmp r8, r7
  107383. 802c72c: ea43 0501 orr.w r5, r3, r1
  107384. 802c730: bf34 ite cc
  107385. 802c732: f856 3c08 ldrcc.w r3, [r6, #-8]
  107386. 802c736: 2300 movcs r3, #0
  107387. 802c738: 3015 adds r0, #21
  107388. 802c73a: fa02 f000 lsl.w r0, r2, r0
  107389. 802c73e: fa23 f30c lsr.w r3, r3, ip
  107390. 802c742: 4303 orrs r3, r0
  107391. 802c744: 461c mov r4, r3
  107392. 802c746: ec45 4b10 vmov d0, r4, r5
  107393. 802c74a: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  107394. 802c74e: 45b8 cmp r8, r7
  107395. 802c750: bf3a itte cc
  107396. 802c752: f856 3c08 ldrcc.w r3, [r6, #-8]
  107397. 802c756: f1a6 0708 subcc.w r7, r6, #8
  107398. 802c75a: 2300 movcs r3, #0
  107399. 802c75c: 380b subs r0, #11
  107400. 802c75e: d012 beq.n 802c786 <__b2d+0x8a>
  107401. 802c760: f1c0 0120 rsb r1, r0, #32
  107402. 802c764: fa23 f401 lsr.w r4, r3, r1
  107403. 802c768: 4082 lsls r2, r0
  107404. 802c76a: 4322 orrs r2, r4
  107405. 802c76c: 4547 cmp r7, r8
  107406. 802c76e: f042 557f orr.w r5, r2, #1069547520 @ 0x3fc00000
  107407. 802c772: bf8c ite hi
  107408. 802c774: f857 2c04 ldrhi.w r2, [r7, #-4]
  107409. 802c778: 2200 movls r2, #0
  107410. 802c77a: 4083 lsls r3, r0
  107411. 802c77c: 40ca lsrs r2, r1
  107412. 802c77e: f445 1540 orr.w r5, r5, #3145728 @ 0x300000
  107413. 802c782: 4313 orrs r3, r2
  107414. 802c784: e7de b.n 802c744 <__b2d+0x48>
  107415. 802c786: ea42 0501 orr.w r5, r2, r1
  107416. 802c78a: e7db b.n 802c744 <__b2d+0x48>
  107417. 802c78c: 3ff00000 .word 0x3ff00000
  107418. 0802c790 <__d2b>:
  107419. 802c790: e92d 43f7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, lr}
  107420. 802c794: 460f mov r7, r1
  107421. 802c796: 2101 movs r1, #1
  107422. 802c798: ec59 8b10 vmov r8, r9, d0
  107423. 802c79c: 4616 mov r6, r2
  107424. 802c79e: f7ff fc13 bl 802bfc8 <_Balloc>
  107425. 802c7a2: 4604 mov r4, r0
  107426. 802c7a4: b930 cbnz r0, 802c7b4 <__d2b+0x24>
  107427. 802c7a6: 4602 mov r2, r0
  107428. 802c7a8: 4b23 ldr r3, [pc, #140] @ (802c838 <__d2b+0xa8>)
  107429. 802c7aa: 4824 ldr r0, [pc, #144] @ (802c83c <__d2b+0xac>)
  107430. 802c7ac: f240 310f movw r1, #783 @ 0x30f
  107431. 802c7b0: f7fe fa76 bl 802aca0 <__assert_func>
  107432. 802c7b4: f3c9 550a ubfx r5, r9, #20, #11
  107433. 802c7b8: f3c9 0313 ubfx r3, r9, #0, #20
  107434. 802c7bc: b10d cbz r5, 802c7c2 <__d2b+0x32>
  107435. 802c7be: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  107436. 802c7c2: 9301 str r3, [sp, #4]
  107437. 802c7c4: f1b8 0300 subs.w r3, r8, #0
  107438. 802c7c8: d023 beq.n 802c812 <__d2b+0x82>
  107439. 802c7ca: 4668 mov r0, sp
  107440. 802c7cc: 9300 str r3, [sp, #0]
  107441. 802c7ce: f7ff fd0c bl 802c1ea <__lo0bits>
  107442. 802c7d2: e9dd 1200 ldrd r1, r2, [sp]
  107443. 802c7d6: b1d0 cbz r0, 802c80e <__d2b+0x7e>
  107444. 802c7d8: f1c0 0320 rsb r3, r0, #32
  107445. 802c7dc: fa02 f303 lsl.w r3, r2, r3
  107446. 802c7e0: 430b orrs r3, r1
  107447. 802c7e2: 40c2 lsrs r2, r0
  107448. 802c7e4: 6163 str r3, [r4, #20]
  107449. 802c7e6: 9201 str r2, [sp, #4]
  107450. 802c7e8: 9b01 ldr r3, [sp, #4]
  107451. 802c7ea: 61a3 str r3, [r4, #24]
  107452. 802c7ec: 2b00 cmp r3, #0
  107453. 802c7ee: bf0c ite eq
  107454. 802c7f0: 2201 moveq r2, #1
  107455. 802c7f2: 2202 movne r2, #2
  107456. 802c7f4: 6122 str r2, [r4, #16]
  107457. 802c7f6: b1a5 cbz r5, 802c822 <__d2b+0x92>
  107458. 802c7f8: f2a5 4533 subw r5, r5, #1075 @ 0x433
  107459. 802c7fc: 4405 add r5, r0
  107460. 802c7fe: 603d str r5, [r7, #0]
  107461. 802c800: f1c0 0035 rsb r0, r0, #53 @ 0x35
  107462. 802c804: 6030 str r0, [r6, #0]
  107463. 802c806: 4620 mov r0, r4
  107464. 802c808: b003 add sp, #12
  107465. 802c80a: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  107466. 802c80e: 6161 str r1, [r4, #20]
  107467. 802c810: e7ea b.n 802c7e8 <__d2b+0x58>
  107468. 802c812: a801 add r0, sp, #4
  107469. 802c814: f7ff fce9 bl 802c1ea <__lo0bits>
  107470. 802c818: 9b01 ldr r3, [sp, #4]
  107471. 802c81a: 6163 str r3, [r4, #20]
  107472. 802c81c: 3020 adds r0, #32
  107473. 802c81e: 2201 movs r2, #1
  107474. 802c820: e7e8 b.n 802c7f4 <__d2b+0x64>
  107475. 802c822: eb04 0382 add.w r3, r4, r2, lsl #2
  107476. 802c826: f2a0 4032 subw r0, r0, #1074 @ 0x432
  107477. 802c82a: 6038 str r0, [r7, #0]
  107478. 802c82c: 6918 ldr r0, [r3, #16]
  107479. 802c82e: f7ff fcbd bl 802c1ac <__hi0bits>
  107480. 802c832: ebc0 1042 rsb r0, r0, r2, lsl #5
  107481. 802c836: e7e5 b.n 802c804 <__d2b+0x74>
  107482. 802c838: 08031e0e .word 0x08031e0e
  107483. 802c83c: 08031e7f .word 0x08031e7f
  107484. 0802c840 <__ratio>:
  107485. 802c840: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  107486. 802c844: 4688 mov r8, r1
  107487. 802c846: 4669 mov r1, sp
  107488. 802c848: 4681 mov r9, r0
  107489. 802c84a: f7ff ff57 bl 802c6fc <__b2d>
  107490. 802c84e: a901 add r1, sp, #4
  107491. 802c850: 4640 mov r0, r8
  107492. 802c852: ec55 4b10 vmov r4, r5, d0
  107493. 802c856: f7ff ff51 bl 802c6fc <__b2d>
  107494. 802c85a: f8d8 3010 ldr.w r3, [r8, #16]
  107495. 802c85e: f8d9 2010 ldr.w r2, [r9, #16]
  107496. 802c862: 1ad2 subs r2, r2, r3
  107497. 802c864: e9dd 3100 ldrd r3, r1, [sp]
  107498. 802c868: 1a5b subs r3, r3, r1
  107499. 802c86a: eb03 1342 add.w r3, r3, r2, lsl #5
  107500. 802c86e: ec57 6b10 vmov r6, r7, d0
  107501. 802c872: 2b00 cmp r3, #0
  107502. 802c874: bfd6 itet le
  107503. 802c876: ebc3 3303 rsble r3, r3, r3, lsl #12
  107504. 802c87a: 462a movgt r2, r5
  107505. 802c87c: 463a movle r2, r7
  107506. 802c87e: 46ab mov fp, r5
  107507. 802c880: 46a2 mov sl, r4
  107508. 802c882: bfce itee gt
  107509. 802c884: eb02 5b03 addgt.w fp, r2, r3, lsl #20
  107510. 802c888: eb02 5303 addle.w r3, r2, r3, lsl #20
  107511. 802c88c: ee00 3a90 vmovle s1, r3
  107512. 802c890: ec4b ab17 vmov d7, sl, fp
  107513. 802c894: ee87 0b00 vdiv.f64 d0, d7, d0
  107514. 802c898: b003 add sp, #12
  107515. 802c89a: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  107516. 0802c89e <__copybits>:
  107517. 802c89e: 3901 subs r1, #1
  107518. 802c8a0: b570 push {r4, r5, r6, lr}
  107519. 802c8a2: 1149 asrs r1, r1, #5
  107520. 802c8a4: 6914 ldr r4, [r2, #16]
  107521. 802c8a6: 3101 adds r1, #1
  107522. 802c8a8: f102 0314 add.w r3, r2, #20
  107523. 802c8ac: eb00 0181 add.w r1, r0, r1, lsl #2
  107524. 802c8b0: eb03 0484 add.w r4, r3, r4, lsl #2
  107525. 802c8b4: 1f05 subs r5, r0, #4
  107526. 802c8b6: 42a3 cmp r3, r4
  107527. 802c8b8: d30c bcc.n 802c8d4 <__copybits+0x36>
  107528. 802c8ba: 1aa3 subs r3, r4, r2
  107529. 802c8bc: 3b11 subs r3, #17
  107530. 802c8be: f023 0303 bic.w r3, r3, #3
  107531. 802c8c2: 3211 adds r2, #17
  107532. 802c8c4: 42a2 cmp r2, r4
  107533. 802c8c6: bf88 it hi
  107534. 802c8c8: 2300 movhi r3, #0
  107535. 802c8ca: 4418 add r0, r3
  107536. 802c8cc: 2300 movs r3, #0
  107537. 802c8ce: 4288 cmp r0, r1
  107538. 802c8d0: d305 bcc.n 802c8de <__copybits+0x40>
  107539. 802c8d2: bd70 pop {r4, r5, r6, pc}
  107540. 802c8d4: f853 6b04 ldr.w r6, [r3], #4
  107541. 802c8d8: f845 6f04 str.w r6, [r5, #4]!
  107542. 802c8dc: e7eb b.n 802c8b6 <__copybits+0x18>
  107543. 802c8de: f840 3b04 str.w r3, [r0], #4
  107544. 802c8e2: e7f4 b.n 802c8ce <__copybits+0x30>
  107545. 0802c8e4 <__any_on>:
  107546. 802c8e4: f100 0214 add.w r2, r0, #20
  107547. 802c8e8: 6900 ldr r0, [r0, #16]
  107548. 802c8ea: 114b asrs r3, r1, #5
  107549. 802c8ec: 4298 cmp r0, r3
  107550. 802c8ee: b510 push {r4, lr}
  107551. 802c8f0: db11 blt.n 802c916 <__any_on+0x32>
  107552. 802c8f2: dd0a ble.n 802c90a <__any_on+0x26>
  107553. 802c8f4: f011 011f ands.w r1, r1, #31
  107554. 802c8f8: d007 beq.n 802c90a <__any_on+0x26>
  107555. 802c8fa: f852 4023 ldr.w r4, [r2, r3, lsl #2]
  107556. 802c8fe: fa24 f001 lsr.w r0, r4, r1
  107557. 802c902: fa00 f101 lsl.w r1, r0, r1
  107558. 802c906: 428c cmp r4, r1
  107559. 802c908: d10b bne.n 802c922 <__any_on+0x3e>
  107560. 802c90a: eb02 0383 add.w r3, r2, r3, lsl #2
  107561. 802c90e: 4293 cmp r3, r2
  107562. 802c910: d803 bhi.n 802c91a <__any_on+0x36>
  107563. 802c912: 2000 movs r0, #0
  107564. 802c914: bd10 pop {r4, pc}
  107565. 802c916: 4603 mov r3, r0
  107566. 802c918: e7f7 b.n 802c90a <__any_on+0x26>
  107567. 802c91a: f853 1d04 ldr.w r1, [r3, #-4]!
  107568. 802c91e: 2900 cmp r1, #0
  107569. 802c920: d0f5 beq.n 802c90e <__any_on+0x2a>
  107570. 802c922: 2001 movs r0, #1
  107571. 802c924: e7f6 b.n 802c914 <__any_on+0x30>
  107572. 0802c926 <_malloc_usable_size_r>:
  107573. 802c926: f851 3c04 ldr.w r3, [r1, #-4]
  107574. 802c92a: 1f18 subs r0, r3, #4
  107575. 802c92c: 2b00 cmp r3, #0
  107576. 802c92e: bfbc itt lt
  107577. 802c930: 580b ldrlt r3, [r1, r0]
  107578. 802c932: 18c0 addlt r0, r0, r3
  107579. 802c934: 4770 bx lr
  107580. 0802c936 <__ascii_wctomb>:
  107581. 802c936: 4603 mov r3, r0
  107582. 802c938: 4608 mov r0, r1
  107583. 802c93a: b141 cbz r1, 802c94e <__ascii_wctomb+0x18>
  107584. 802c93c: 2aff cmp r2, #255 @ 0xff
  107585. 802c93e: d904 bls.n 802c94a <__ascii_wctomb+0x14>
  107586. 802c940: 228a movs r2, #138 @ 0x8a
  107587. 802c942: 601a str r2, [r3, #0]
  107588. 802c944: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  107589. 802c948: 4770 bx lr
  107590. 802c94a: 700a strb r2, [r1, #0]
  107591. 802c94c: 2001 movs r0, #1
  107592. 802c94e: 4770 bx lr
  107593. 0802c950 <__ssputs_r>:
  107594. 802c950: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  107595. 802c954: 688e ldr r6, [r1, #8]
  107596. 802c956: 461f mov r7, r3
  107597. 802c958: 42be cmp r6, r7
  107598. 802c95a: 680b ldr r3, [r1, #0]
  107599. 802c95c: 4682 mov sl, r0
  107600. 802c95e: 460c mov r4, r1
  107601. 802c960: 4690 mov r8, r2
  107602. 802c962: d82d bhi.n 802c9c0 <__ssputs_r+0x70>
  107603. 802c964: f9b1 200c ldrsh.w r2, [r1, #12]
  107604. 802c968: f412 6f90 tst.w r2, #1152 @ 0x480
  107605. 802c96c: d026 beq.n 802c9bc <__ssputs_r+0x6c>
  107606. 802c96e: 6965 ldr r5, [r4, #20]
  107607. 802c970: 6909 ldr r1, [r1, #16]
  107608. 802c972: eb05 0545 add.w r5, r5, r5, lsl #1
  107609. 802c976: eba3 0901 sub.w r9, r3, r1
  107610. 802c97a: eb05 75d5 add.w r5, r5, r5, lsr #31
  107611. 802c97e: 1c7b adds r3, r7, #1
  107612. 802c980: 444b add r3, r9
  107613. 802c982: 106d asrs r5, r5, #1
  107614. 802c984: 429d cmp r5, r3
  107615. 802c986: bf38 it cc
  107616. 802c988: 461d movcc r5, r3
  107617. 802c98a: 0553 lsls r3, r2, #21
  107618. 802c98c: d527 bpl.n 802c9de <__ssputs_r+0x8e>
  107619. 802c98e: 4629 mov r1, r5
  107620. 802c990: f7fc fb2e bl 8028ff0 <_malloc_r>
  107621. 802c994: 4606 mov r6, r0
  107622. 802c996: b360 cbz r0, 802c9f2 <__ssputs_r+0xa2>
  107623. 802c998: 6921 ldr r1, [r4, #16]
  107624. 802c99a: 464a mov r2, r9
  107625. 802c99c: f7fe f967 bl 802ac6e <memcpy>
  107626. 802c9a0: 89a3 ldrh r3, [r4, #12]
  107627. 802c9a2: f423 6390 bic.w r3, r3, #1152 @ 0x480
  107628. 802c9a6: f043 0380 orr.w r3, r3, #128 @ 0x80
  107629. 802c9aa: 81a3 strh r3, [r4, #12]
  107630. 802c9ac: 6126 str r6, [r4, #16]
  107631. 802c9ae: 6165 str r5, [r4, #20]
  107632. 802c9b0: 444e add r6, r9
  107633. 802c9b2: eba5 0509 sub.w r5, r5, r9
  107634. 802c9b6: 6026 str r6, [r4, #0]
  107635. 802c9b8: 60a5 str r5, [r4, #8]
  107636. 802c9ba: 463e mov r6, r7
  107637. 802c9bc: 42be cmp r6, r7
  107638. 802c9be: d900 bls.n 802c9c2 <__ssputs_r+0x72>
  107639. 802c9c0: 463e mov r6, r7
  107640. 802c9c2: 6820 ldr r0, [r4, #0]
  107641. 802c9c4: 4632 mov r2, r6
  107642. 802c9c6: 4641 mov r1, r8
  107643. 802c9c8: f7fe f840 bl 802aa4c <memmove>
  107644. 802c9cc: 68a3 ldr r3, [r4, #8]
  107645. 802c9ce: 1b9b subs r3, r3, r6
  107646. 802c9d0: 60a3 str r3, [r4, #8]
  107647. 802c9d2: 6823 ldr r3, [r4, #0]
  107648. 802c9d4: 4433 add r3, r6
  107649. 802c9d6: 6023 str r3, [r4, #0]
  107650. 802c9d8: 2000 movs r0, #0
  107651. 802c9da: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  107652. 802c9de: 462a mov r2, r5
  107653. 802c9e0: f7fc fbd8 bl 8029194 <_realloc_r>
  107654. 802c9e4: 4606 mov r6, r0
  107655. 802c9e6: 2800 cmp r0, #0
  107656. 802c9e8: d1e0 bne.n 802c9ac <__ssputs_r+0x5c>
  107657. 802c9ea: 6921 ldr r1, [r4, #16]
  107658. 802c9ec: 4650 mov r0, sl
  107659. 802c9ee: f7fe ff55 bl 802b89c <_free_r>
  107660. 802c9f2: 230c movs r3, #12
  107661. 802c9f4: f8ca 3000 str.w r3, [sl]
  107662. 802c9f8: 89a3 ldrh r3, [r4, #12]
  107663. 802c9fa: f043 0340 orr.w r3, r3, #64 @ 0x40
  107664. 802c9fe: 81a3 strh r3, [r4, #12]
  107665. 802ca00: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  107666. 802ca04: e7e9 b.n 802c9da <__ssputs_r+0x8a>
  107667. ...
  107668. 0802ca08 <_svfiprintf_r>:
  107669. 802ca08: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  107670. 802ca0c: 4698 mov r8, r3
  107671. 802ca0e: 898b ldrh r3, [r1, #12]
  107672. 802ca10: 061b lsls r3, r3, #24
  107673. 802ca12: b09d sub sp, #116 @ 0x74
  107674. 802ca14: 4607 mov r7, r0
  107675. 802ca16: 460d mov r5, r1
  107676. 802ca18: 4614 mov r4, r2
  107677. 802ca1a: d510 bpl.n 802ca3e <_svfiprintf_r+0x36>
  107678. 802ca1c: 690b ldr r3, [r1, #16]
  107679. 802ca1e: b973 cbnz r3, 802ca3e <_svfiprintf_r+0x36>
  107680. 802ca20: 2140 movs r1, #64 @ 0x40
  107681. 802ca22: f7fc fae5 bl 8028ff0 <_malloc_r>
  107682. 802ca26: 6028 str r0, [r5, #0]
  107683. 802ca28: 6128 str r0, [r5, #16]
  107684. 802ca2a: b930 cbnz r0, 802ca3a <_svfiprintf_r+0x32>
  107685. 802ca2c: 230c movs r3, #12
  107686. 802ca2e: 603b str r3, [r7, #0]
  107687. 802ca30: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  107688. 802ca34: b01d add sp, #116 @ 0x74
  107689. 802ca36: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  107690. 802ca3a: 2340 movs r3, #64 @ 0x40
  107691. 802ca3c: 616b str r3, [r5, #20]
  107692. 802ca3e: 2300 movs r3, #0
  107693. 802ca40: 9309 str r3, [sp, #36] @ 0x24
  107694. 802ca42: 2320 movs r3, #32
  107695. 802ca44: f88d 3029 strb.w r3, [sp, #41] @ 0x29
  107696. 802ca48: f8cd 800c str.w r8, [sp, #12]
  107697. 802ca4c: 2330 movs r3, #48 @ 0x30
  107698. 802ca4e: f8df 819c ldr.w r8, [pc, #412] @ 802cbec <_svfiprintf_r+0x1e4>
  107699. 802ca52: f88d 302a strb.w r3, [sp, #42] @ 0x2a
  107700. 802ca56: f04f 0901 mov.w r9, #1
  107701. 802ca5a: 4623 mov r3, r4
  107702. 802ca5c: 469a mov sl, r3
  107703. 802ca5e: f813 2b01 ldrb.w r2, [r3], #1
  107704. 802ca62: b10a cbz r2, 802ca68 <_svfiprintf_r+0x60>
  107705. 802ca64: 2a25 cmp r2, #37 @ 0x25
  107706. 802ca66: d1f9 bne.n 802ca5c <_svfiprintf_r+0x54>
  107707. 802ca68: ebba 0b04 subs.w fp, sl, r4
  107708. 802ca6c: d00b beq.n 802ca86 <_svfiprintf_r+0x7e>
  107709. 802ca6e: 465b mov r3, fp
  107710. 802ca70: 4622 mov r2, r4
  107711. 802ca72: 4629 mov r1, r5
  107712. 802ca74: 4638 mov r0, r7
  107713. 802ca76: f7ff ff6b bl 802c950 <__ssputs_r>
  107714. 802ca7a: 3001 adds r0, #1
  107715. 802ca7c: f000 80a7 beq.w 802cbce <_svfiprintf_r+0x1c6>
  107716. 802ca80: 9a09 ldr r2, [sp, #36] @ 0x24
  107717. 802ca82: 445a add r2, fp
  107718. 802ca84: 9209 str r2, [sp, #36] @ 0x24
  107719. 802ca86: f89a 3000 ldrb.w r3, [sl]
  107720. 802ca8a: 2b00 cmp r3, #0
  107721. 802ca8c: f000 809f beq.w 802cbce <_svfiprintf_r+0x1c6>
  107722. 802ca90: 2300 movs r3, #0
  107723. 802ca92: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  107724. 802ca96: e9cd 2305 strd r2, r3, [sp, #20]
  107725. 802ca9a: f10a 0a01 add.w sl, sl, #1
  107726. 802ca9e: 9304 str r3, [sp, #16]
  107727. 802caa0: 9307 str r3, [sp, #28]
  107728. 802caa2: f88d 3053 strb.w r3, [sp, #83] @ 0x53
  107729. 802caa6: 931a str r3, [sp, #104] @ 0x68
  107730. 802caa8: 4654 mov r4, sl
  107731. 802caaa: 2205 movs r2, #5
  107732. 802caac: f814 1b01 ldrb.w r1, [r4], #1
  107733. 802cab0: 484e ldr r0, [pc, #312] @ (802cbec <_svfiprintf_r+0x1e4>)
  107734. 802cab2: f7d3 fc25 bl 8000300 <memchr>
  107735. 802cab6: 9a04 ldr r2, [sp, #16]
  107736. 802cab8: b9d8 cbnz r0, 802caf2 <_svfiprintf_r+0xea>
  107737. 802caba: 06d0 lsls r0, r2, #27
  107738. 802cabc: bf44 itt mi
  107739. 802cabe: 2320 movmi r3, #32
  107740. 802cac0: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  107741. 802cac4: 0711 lsls r1, r2, #28
  107742. 802cac6: bf44 itt mi
  107743. 802cac8: 232b movmi r3, #43 @ 0x2b
  107744. 802caca: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  107745. 802cace: f89a 3000 ldrb.w r3, [sl]
  107746. 802cad2: 2b2a cmp r3, #42 @ 0x2a
  107747. 802cad4: d015 beq.n 802cb02 <_svfiprintf_r+0xfa>
  107748. 802cad6: 9a07 ldr r2, [sp, #28]
  107749. 802cad8: 4654 mov r4, sl
  107750. 802cada: 2000 movs r0, #0
  107751. 802cadc: f04f 0c0a mov.w ip, #10
  107752. 802cae0: 4621 mov r1, r4
  107753. 802cae2: f811 3b01 ldrb.w r3, [r1], #1
  107754. 802cae6: 3b30 subs r3, #48 @ 0x30
  107755. 802cae8: 2b09 cmp r3, #9
  107756. 802caea: d94b bls.n 802cb84 <_svfiprintf_r+0x17c>
  107757. 802caec: b1b0 cbz r0, 802cb1c <_svfiprintf_r+0x114>
  107758. 802caee: 9207 str r2, [sp, #28]
  107759. 802caf0: e014 b.n 802cb1c <_svfiprintf_r+0x114>
  107760. 802caf2: eba0 0308 sub.w r3, r0, r8
  107761. 802caf6: fa09 f303 lsl.w r3, r9, r3
  107762. 802cafa: 4313 orrs r3, r2
  107763. 802cafc: 9304 str r3, [sp, #16]
  107764. 802cafe: 46a2 mov sl, r4
  107765. 802cb00: e7d2 b.n 802caa8 <_svfiprintf_r+0xa0>
  107766. 802cb02: 9b03 ldr r3, [sp, #12]
  107767. 802cb04: 1d19 adds r1, r3, #4
  107768. 802cb06: 681b ldr r3, [r3, #0]
  107769. 802cb08: 9103 str r1, [sp, #12]
  107770. 802cb0a: 2b00 cmp r3, #0
  107771. 802cb0c: bfbb ittet lt
  107772. 802cb0e: 425b neglt r3, r3
  107773. 802cb10: f042 0202 orrlt.w r2, r2, #2
  107774. 802cb14: 9307 strge r3, [sp, #28]
  107775. 802cb16: 9307 strlt r3, [sp, #28]
  107776. 802cb18: bfb8 it lt
  107777. 802cb1a: 9204 strlt r2, [sp, #16]
  107778. 802cb1c: 7823 ldrb r3, [r4, #0]
  107779. 802cb1e: 2b2e cmp r3, #46 @ 0x2e
  107780. 802cb20: d10a bne.n 802cb38 <_svfiprintf_r+0x130>
  107781. 802cb22: 7863 ldrb r3, [r4, #1]
  107782. 802cb24: 2b2a cmp r3, #42 @ 0x2a
  107783. 802cb26: d132 bne.n 802cb8e <_svfiprintf_r+0x186>
  107784. 802cb28: 9b03 ldr r3, [sp, #12]
  107785. 802cb2a: 1d1a adds r2, r3, #4
  107786. 802cb2c: 681b ldr r3, [r3, #0]
  107787. 802cb2e: 9203 str r2, [sp, #12]
  107788. 802cb30: ea43 73e3 orr.w r3, r3, r3, asr #31
  107789. 802cb34: 3402 adds r4, #2
  107790. 802cb36: 9305 str r3, [sp, #20]
  107791. 802cb38: f8df a0c0 ldr.w sl, [pc, #192] @ 802cbfc <_svfiprintf_r+0x1f4>
  107792. 802cb3c: 7821 ldrb r1, [r4, #0]
  107793. 802cb3e: 2203 movs r2, #3
  107794. 802cb40: 4650 mov r0, sl
  107795. 802cb42: f7d3 fbdd bl 8000300 <memchr>
  107796. 802cb46: b138 cbz r0, 802cb58 <_svfiprintf_r+0x150>
  107797. 802cb48: 9b04 ldr r3, [sp, #16]
  107798. 802cb4a: eba0 000a sub.w r0, r0, sl
  107799. 802cb4e: 2240 movs r2, #64 @ 0x40
  107800. 802cb50: 4082 lsls r2, r0
  107801. 802cb52: 4313 orrs r3, r2
  107802. 802cb54: 3401 adds r4, #1
  107803. 802cb56: 9304 str r3, [sp, #16]
  107804. 802cb58: f814 1b01 ldrb.w r1, [r4], #1
  107805. 802cb5c: 4824 ldr r0, [pc, #144] @ (802cbf0 <_svfiprintf_r+0x1e8>)
  107806. 802cb5e: f88d 1028 strb.w r1, [sp, #40] @ 0x28
  107807. 802cb62: 2206 movs r2, #6
  107808. 802cb64: f7d3 fbcc bl 8000300 <memchr>
  107809. 802cb68: 2800 cmp r0, #0
  107810. 802cb6a: d036 beq.n 802cbda <_svfiprintf_r+0x1d2>
  107811. 802cb6c: 4b21 ldr r3, [pc, #132] @ (802cbf4 <_svfiprintf_r+0x1ec>)
  107812. 802cb6e: bb1b cbnz r3, 802cbb8 <_svfiprintf_r+0x1b0>
  107813. 802cb70: 9b03 ldr r3, [sp, #12]
  107814. 802cb72: 3307 adds r3, #7
  107815. 802cb74: f023 0307 bic.w r3, r3, #7
  107816. 802cb78: 3308 adds r3, #8
  107817. 802cb7a: 9303 str r3, [sp, #12]
  107818. 802cb7c: 9b09 ldr r3, [sp, #36] @ 0x24
  107819. 802cb7e: 4433 add r3, r6
  107820. 802cb80: 9309 str r3, [sp, #36] @ 0x24
  107821. 802cb82: e76a b.n 802ca5a <_svfiprintf_r+0x52>
  107822. 802cb84: fb0c 3202 mla r2, ip, r2, r3
  107823. 802cb88: 460c mov r4, r1
  107824. 802cb8a: 2001 movs r0, #1
  107825. 802cb8c: e7a8 b.n 802cae0 <_svfiprintf_r+0xd8>
  107826. 802cb8e: 2300 movs r3, #0
  107827. 802cb90: 3401 adds r4, #1
  107828. 802cb92: 9305 str r3, [sp, #20]
  107829. 802cb94: 4619 mov r1, r3
  107830. 802cb96: f04f 0c0a mov.w ip, #10
  107831. 802cb9a: 4620 mov r0, r4
  107832. 802cb9c: f810 2b01 ldrb.w r2, [r0], #1
  107833. 802cba0: 3a30 subs r2, #48 @ 0x30
  107834. 802cba2: 2a09 cmp r2, #9
  107835. 802cba4: d903 bls.n 802cbae <_svfiprintf_r+0x1a6>
  107836. 802cba6: 2b00 cmp r3, #0
  107837. 802cba8: d0c6 beq.n 802cb38 <_svfiprintf_r+0x130>
  107838. 802cbaa: 9105 str r1, [sp, #20]
  107839. 802cbac: e7c4 b.n 802cb38 <_svfiprintf_r+0x130>
  107840. 802cbae: fb0c 2101 mla r1, ip, r1, r2
  107841. 802cbb2: 4604 mov r4, r0
  107842. 802cbb4: 2301 movs r3, #1
  107843. 802cbb6: e7f0 b.n 802cb9a <_svfiprintf_r+0x192>
  107844. 802cbb8: ab03 add r3, sp, #12
  107845. 802cbba: 9300 str r3, [sp, #0]
  107846. 802cbbc: 462a mov r2, r5
  107847. 802cbbe: 4b0e ldr r3, [pc, #56] @ (802cbf8 <_svfiprintf_r+0x1f0>)
  107848. 802cbc0: a904 add r1, sp, #16
  107849. 802cbc2: 4638 mov r0, r7
  107850. 802cbc4: f7fd f960 bl 8029e88 <_printf_float>
  107851. 802cbc8: 1c42 adds r2, r0, #1
  107852. 802cbca: 4606 mov r6, r0
  107853. 802cbcc: d1d6 bne.n 802cb7c <_svfiprintf_r+0x174>
  107854. 802cbce: 89ab ldrh r3, [r5, #12]
  107855. 802cbd0: 065b lsls r3, r3, #25
  107856. 802cbd2: f53f af2d bmi.w 802ca30 <_svfiprintf_r+0x28>
  107857. 802cbd6: 9809 ldr r0, [sp, #36] @ 0x24
  107858. 802cbd8: e72c b.n 802ca34 <_svfiprintf_r+0x2c>
  107859. 802cbda: ab03 add r3, sp, #12
  107860. 802cbdc: 9300 str r3, [sp, #0]
  107861. 802cbde: 462a mov r2, r5
  107862. 802cbe0: 4b05 ldr r3, [pc, #20] @ (802cbf8 <_svfiprintf_r+0x1f0>)
  107863. 802cbe2: a904 add r1, sp, #16
  107864. 802cbe4: 4638 mov r0, r7
  107865. 802cbe6: f7fd fbd7 bl 802a398 <_printf_i>
  107866. 802cbea: e7ed b.n 802cbc8 <_svfiprintf_r+0x1c0>
  107867. 802cbec: 08031fd8 .word 0x08031fd8
  107868. 802cbf0: 08031fe2 .word 0x08031fe2
  107869. 802cbf4: 08029e89 .word 0x08029e89
  107870. 802cbf8: 0802c951 .word 0x0802c951
  107871. 802cbfc: 08031fde .word 0x08031fde
  107872. 0802cc00 <__sfputc_r>:
  107873. 802cc00: 6893 ldr r3, [r2, #8]
  107874. 802cc02: 3b01 subs r3, #1
  107875. 802cc04: 2b00 cmp r3, #0
  107876. 802cc06: b410 push {r4}
  107877. 802cc08: 6093 str r3, [r2, #8]
  107878. 802cc0a: da08 bge.n 802cc1e <__sfputc_r+0x1e>
  107879. 802cc0c: 6994 ldr r4, [r2, #24]
  107880. 802cc0e: 42a3 cmp r3, r4
  107881. 802cc10: db01 blt.n 802cc16 <__sfputc_r+0x16>
  107882. 802cc12: 290a cmp r1, #10
  107883. 802cc14: d103 bne.n 802cc1e <__sfputc_r+0x1e>
  107884. 802cc16: f85d 4b04 ldr.w r4, [sp], #4
  107885. 802cc1a: f7fd be72 b.w 802a902 <__swbuf_r>
  107886. 802cc1e: 6813 ldr r3, [r2, #0]
  107887. 802cc20: 1c58 adds r0, r3, #1
  107888. 802cc22: 6010 str r0, [r2, #0]
  107889. 802cc24: 7019 strb r1, [r3, #0]
  107890. 802cc26: 4608 mov r0, r1
  107891. 802cc28: f85d 4b04 ldr.w r4, [sp], #4
  107892. 802cc2c: 4770 bx lr
  107893. 0802cc2e <__sfputs_r>:
  107894. 802cc2e: b5f8 push {r3, r4, r5, r6, r7, lr}
  107895. 802cc30: 4606 mov r6, r0
  107896. 802cc32: 460f mov r7, r1
  107897. 802cc34: 4614 mov r4, r2
  107898. 802cc36: 18d5 adds r5, r2, r3
  107899. 802cc38: 42ac cmp r4, r5
  107900. 802cc3a: d101 bne.n 802cc40 <__sfputs_r+0x12>
  107901. 802cc3c: 2000 movs r0, #0
  107902. 802cc3e: e007 b.n 802cc50 <__sfputs_r+0x22>
  107903. 802cc40: f814 1b01 ldrb.w r1, [r4], #1
  107904. 802cc44: 463a mov r2, r7
  107905. 802cc46: 4630 mov r0, r6
  107906. 802cc48: f7ff ffda bl 802cc00 <__sfputc_r>
  107907. 802cc4c: 1c43 adds r3, r0, #1
  107908. 802cc4e: d1f3 bne.n 802cc38 <__sfputs_r+0xa>
  107909. 802cc50: bdf8 pop {r3, r4, r5, r6, r7, pc}
  107910. ...
  107911. 0802cc54 <_vfiprintf_r>:
  107912. 802cc54: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  107913. 802cc58: 460d mov r5, r1
  107914. 802cc5a: b09d sub sp, #116 @ 0x74
  107915. 802cc5c: 4614 mov r4, r2
  107916. 802cc5e: 4698 mov r8, r3
  107917. 802cc60: 4606 mov r6, r0
  107918. 802cc62: b118 cbz r0, 802cc6c <_vfiprintf_r+0x18>
  107919. 802cc64: 6a03 ldr r3, [r0, #32]
  107920. 802cc66: b90b cbnz r3, 802cc6c <_vfiprintf_r+0x18>
  107921. 802cc68: f7fd fd42 bl 802a6f0 <__sinit>
  107922. 802cc6c: 6e6b ldr r3, [r5, #100] @ 0x64
  107923. 802cc6e: 07d9 lsls r1, r3, #31
  107924. 802cc70: d405 bmi.n 802cc7e <_vfiprintf_r+0x2a>
  107925. 802cc72: 89ab ldrh r3, [r5, #12]
  107926. 802cc74: 059a lsls r2, r3, #22
  107927. 802cc76: d402 bmi.n 802cc7e <_vfiprintf_r+0x2a>
  107928. 802cc78: 6da8 ldr r0, [r5, #88] @ 0x58
  107929. 802cc7a: f7fd fff6 bl 802ac6a <__retarget_lock_acquire_recursive>
  107930. 802cc7e: 89ab ldrh r3, [r5, #12]
  107931. 802cc80: 071b lsls r3, r3, #28
  107932. 802cc82: d501 bpl.n 802cc88 <_vfiprintf_r+0x34>
  107933. 802cc84: 692b ldr r3, [r5, #16]
  107934. 802cc86: b99b cbnz r3, 802ccb0 <_vfiprintf_r+0x5c>
  107935. 802cc88: 4629 mov r1, r5
  107936. 802cc8a: 4630 mov r0, r6
  107937. 802cc8c: f7fd fe78 bl 802a980 <__swsetup_r>
  107938. 802cc90: b170 cbz r0, 802ccb0 <_vfiprintf_r+0x5c>
  107939. 802cc92: 6e6b ldr r3, [r5, #100] @ 0x64
  107940. 802cc94: 07dc lsls r4, r3, #31
  107941. 802cc96: d504 bpl.n 802cca2 <_vfiprintf_r+0x4e>
  107942. 802cc98: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  107943. 802cc9c: b01d add sp, #116 @ 0x74
  107944. 802cc9e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  107945. 802cca2: 89ab ldrh r3, [r5, #12]
  107946. 802cca4: 0598 lsls r0, r3, #22
  107947. 802cca6: d4f7 bmi.n 802cc98 <_vfiprintf_r+0x44>
  107948. 802cca8: 6da8 ldr r0, [r5, #88] @ 0x58
  107949. 802ccaa: f7fd ffdf bl 802ac6c <__retarget_lock_release_recursive>
  107950. 802ccae: e7f3 b.n 802cc98 <_vfiprintf_r+0x44>
  107951. 802ccb0: 2300 movs r3, #0
  107952. 802ccb2: 9309 str r3, [sp, #36] @ 0x24
  107953. 802ccb4: 2320 movs r3, #32
  107954. 802ccb6: f88d 3029 strb.w r3, [sp, #41] @ 0x29
  107955. 802ccba: f8cd 800c str.w r8, [sp, #12]
  107956. 802ccbe: 2330 movs r3, #48 @ 0x30
  107957. 802ccc0: f8df 81ac ldr.w r8, [pc, #428] @ 802ce70 <_vfiprintf_r+0x21c>
  107958. 802ccc4: f88d 302a strb.w r3, [sp, #42] @ 0x2a
  107959. 802ccc8: f04f 0901 mov.w r9, #1
  107960. 802cccc: 4623 mov r3, r4
  107961. 802ccce: 469a mov sl, r3
  107962. 802ccd0: f813 2b01 ldrb.w r2, [r3], #1
  107963. 802ccd4: b10a cbz r2, 802ccda <_vfiprintf_r+0x86>
  107964. 802ccd6: 2a25 cmp r2, #37 @ 0x25
  107965. 802ccd8: d1f9 bne.n 802ccce <_vfiprintf_r+0x7a>
  107966. 802ccda: ebba 0b04 subs.w fp, sl, r4
  107967. 802ccde: d00b beq.n 802ccf8 <_vfiprintf_r+0xa4>
  107968. 802cce0: 465b mov r3, fp
  107969. 802cce2: 4622 mov r2, r4
  107970. 802cce4: 4629 mov r1, r5
  107971. 802cce6: 4630 mov r0, r6
  107972. 802cce8: f7ff ffa1 bl 802cc2e <__sfputs_r>
  107973. 802ccec: 3001 adds r0, #1
  107974. 802ccee: f000 80a7 beq.w 802ce40 <_vfiprintf_r+0x1ec>
  107975. 802ccf2: 9a09 ldr r2, [sp, #36] @ 0x24
  107976. 802ccf4: 445a add r2, fp
  107977. 802ccf6: 9209 str r2, [sp, #36] @ 0x24
  107978. 802ccf8: f89a 3000 ldrb.w r3, [sl]
  107979. 802ccfc: 2b00 cmp r3, #0
  107980. 802ccfe: f000 809f beq.w 802ce40 <_vfiprintf_r+0x1ec>
  107981. 802cd02: 2300 movs r3, #0
  107982. 802cd04: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  107983. 802cd08: e9cd 2305 strd r2, r3, [sp, #20]
  107984. 802cd0c: f10a 0a01 add.w sl, sl, #1
  107985. 802cd10: 9304 str r3, [sp, #16]
  107986. 802cd12: 9307 str r3, [sp, #28]
  107987. 802cd14: f88d 3053 strb.w r3, [sp, #83] @ 0x53
  107988. 802cd18: 931a str r3, [sp, #104] @ 0x68
  107989. 802cd1a: 4654 mov r4, sl
  107990. 802cd1c: 2205 movs r2, #5
  107991. 802cd1e: f814 1b01 ldrb.w r1, [r4], #1
  107992. 802cd22: 4853 ldr r0, [pc, #332] @ (802ce70 <_vfiprintf_r+0x21c>)
  107993. 802cd24: f7d3 faec bl 8000300 <memchr>
  107994. 802cd28: 9a04 ldr r2, [sp, #16]
  107995. 802cd2a: b9d8 cbnz r0, 802cd64 <_vfiprintf_r+0x110>
  107996. 802cd2c: 06d1 lsls r1, r2, #27
  107997. 802cd2e: bf44 itt mi
  107998. 802cd30: 2320 movmi r3, #32
  107999. 802cd32: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  108000. 802cd36: 0713 lsls r3, r2, #28
  108001. 802cd38: bf44 itt mi
  108002. 802cd3a: 232b movmi r3, #43 @ 0x2b
  108003. 802cd3c: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  108004. 802cd40: f89a 3000 ldrb.w r3, [sl]
  108005. 802cd44: 2b2a cmp r3, #42 @ 0x2a
  108006. 802cd46: d015 beq.n 802cd74 <_vfiprintf_r+0x120>
  108007. 802cd48: 9a07 ldr r2, [sp, #28]
  108008. 802cd4a: 4654 mov r4, sl
  108009. 802cd4c: 2000 movs r0, #0
  108010. 802cd4e: f04f 0c0a mov.w ip, #10
  108011. 802cd52: 4621 mov r1, r4
  108012. 802cd54: f811 3b01 ldrb.w r3, [r1], #1
  108013. 802cd58: 3b30 subs r3, #48 @ 0x30
  108014. 802cd5a: 2b09 cmp r3, #9
  108015. 802cd5c: d94b bls.n 802cdf6 <_vfiprintf_r+0x1a2>
  108016. 802cd5e: b1b0 cbz r0, 802cd8e <_vfiprintf_r+0x13a>
  108017. 802cd60: 9207 str r2, [sp, #28]
  108018. 802cd62: e014 b.n 802cd8e <_vfiprintf_r+0x13a>
  108019. 802cd64: eba0 0308 sub.w r3, r0, r8
  108020. 802cd68: fa09 f303 lsl.w r3, r9, r3
  108021. 802cd6c: 4313 orrs r3, r2
  108022. 802cd6e: 9304 str r3, [sp, #16]
  108023. 802cd70: 46a2 mov sl, r4
  108024. 802cd72: e7d2 b.n 802cd1a <_vfiprintf_r+0xc6>
  108025. 802cd74: 9b03 ldr r3, [sp, #12]
  108026. 802cd76: 1d19 adds r1, r3, #4
  108027. 802cd78: 681b ldr r3, [r3, #0]
  108028. 802cd7a: 9103 str r1, [sp, #12]
  108029. 802cd7c: 2b00 cmp r3, #0
  108030. 802cd7e: bfbb ittet lt
  108031. 802cd80: 425b neglt r3, r3
  108032. 802cd82: f042 0202 orrlt.w r2, r2, #2
  108033. 802cd86: 9307 strge r3, [sp, #28]
  108034. 802cd88: 9307 strlt r3, [sp, #28]
  108035. 802cd8a: bfb8 it lt
  108036. 802cd8c: 9204 strlt r2, [sp, #16]
  108037. 802cd8e: 7823 ldrb r3, [r4, #0]
  108038. 802cd90: 2b2e cmp r3, #46 @ 0x2e
  108039. 802cd92: d10a bne.n 802cdaa <_vfiprintf_r+0x156>
  108040. 802cd94: 7863 ldrb r3, [r4, #1]
  108041. 802cd96: 2b2a cmp r3, #42 @ 0x2a
  108042. 802cd98: d132 bne.n 802ce00 <_vfiprintf_r+0x1ac>
  108043. 802cd9a: 9b03 ldr r3, [sp, #12]
  108044. 802cd9c: 1d1a adds r2, r3, #4
  108045. 802cd9e: 681b ldr r3, [r3, #0]
  108046. 802cda0: 9203 str r2, [sp, #12]
  108047. 802cda2: ea43 73e3 orr.w r3, r3, r3, asr #31
  108048. 802cda6: 3402 adds r4, #2
  108049. 802cda8: 9305 str r3, [sp, #20]
  108050. 802cdaa: f8df a0d4 ldr.w sl, [pc, #212] @ 802ce80 <_vfiprintf_r+0x22c>
  108051. 802cdae: 7821 ldrb r1, [r4, #0]
  108052. 802cdb0: 2203 movs r2, #3
  108053. 802cdb2: 4650 mov r0, sl
  108054. 802cdb4: f7d3 faa4 bl 8000300 <memchr>
  108055. 802cdb8: b138 cbz r0, 802cdca <_vfiprintf_r+0x176>
  108056. 802cdba: 9b04 ldr r3, [sp, #16]
  108057. 802cdbc: eba0 000a sub.w r0, r0, sl
  108058. 802cdc0: 2240 movs r2, #64 @ 0x40
  108059. 802cdc2: 4082 lsls r2, r0
  108060. 802cdc4: 4313 orrs r3, r2
  108061. 802cdc6: 3401 adds r4, #1
  108062. 802cdc8: 9304 str r3, [sp, #16]
  108063. 802cdca: f814 1b01 ldrb.w r1, [r4], #1
  108064. 802cdce: 4829 ldr r0, [pc, #164] @ (802ce74 <_vfiprintf_r+0x220>)
  108065. 802cdd0: f88d 1028 strb.w r1, [sp, #40] @ 0x28
  108066. 802cdd4: 2206 movs r2, #6
  108067. 802cdd6: f7d3 fa93 bl 8000300 <memchr>
  108068. 802cdda: 2800 cmp r0, #0
  108069. 802cddc: d03f beq.n 802ce5e <_vfiprintf_r+0x20a>
  108070. 802cdde: 4b26 ldr r3, [pc, #152] @ (802ce78 <_vfiprintf_r+0x224>)
  108071. 802cde0: bb1b cbnz r3, 802ce2a <_vfiprintf_r+0x1d6>
  108072. 802cde2: 9b03 ldr r3, [sp, #12]
  108073. 802cde4: 3307 adds r3, #7
  108074. 802cde6: f023 0307 bic.w r3, r3, #7
  108075. 802cdea: 3308 adds r3, #8
  108076. 802cdec: 9303 str r3, [sp, #12]
  108077. 802cdee: 9b09 ldr r3, [sp, #36] @ 0x24
  108078. 802cdf0: 443b add r3, r7
  108079. 802cdf2: 9309 str r3, [sp, #36] @ 0x24
  108080. 802cdf4: e76a b.n 802cccc <_vfiprintf_r+0x78>
  108081. 802cdf6: fb0c 3202 mla r2, ip, r2, r3
  108082. 802cdfa: 460c mov r4, r1
  108083. 802cdfc: 2001 movs r0, #1
  108084. 802cdfe: e7a8 b.n 802cd52 <_vfiprintf_r+0xfe>
  108085. 802ce00: 2300 movs r3, #0
  108086. 802ce02: 3401 adds r4, #1
  108087. 802ce04: 9305 str r3, [sp, #20]
  108088. 802ce06: 4619 mov r1, r3
  108089. 802ce08: f04f 0c0a mov.w ip, #10
  108090. 802ce0c: 4620 mov r0, r4
  108091. 802ce0e: f810 2b01 ldrb.w r2, [r0], #1
  108092. 802ce12: 3a30 subs r2, #48 @ 0x30
  108093. 802ce14: 2a09 cmp r2, #9
  108094. 802ce16: d903 bls.n 802ce20 <_vfiprintf_r+0x1cc>
  108095. 802ce18: 2b00 cmp r3, #0
  108096. 802ce1a: d0c6 beq.n 802cdaa <_vfiprintf_r+0x156>
  108097. 802ce1c: 9105 str r1, [sp, #20]
  108098. 802ce1e: e7c4 b.n 802cdaa <_vfiprintf_r+0x156>
  108099. 802ce20: fb0c 2101 mla r1, ip, r1, r2
  108100. 802ce24: 4604 mov r4, r0
  108101. 802ce26: 2301 movs r3, #1
  108102. 802ce28: e7f0 b.n 802ce0c <_vfiprintf_r+0x1b8>
  108103. 802ce2a: ab03 add r3, sp, #12
  108104. 802ce2c: 9300 str r3, [sp, #0]
  108105. 802ce2e: 462a mov r2, r5
  108106. 802ce30: 4b12 ldr r3, [pc, #72] @ (802ce7c <_vfiprintf_r+0x228>)
  108107. 802ce32: a904 add r1, sp, #16
  108108. 802ce34: 4630 mov r0, r6
  108109. 802ce36: f7fd f827 bl 8029e88 <_printf_float>
  108110. 802ce3a: 4607 mov r7, r0
  108111. 802ce3c: 1c78 adds r0, r7, #1
  108112. 802ce3e: d1d6 bne.n 802cdee <_vfiprintf_r+0x19a>
  108113. 802ce40: 6e6b ldr r3, [r5, #100] @ 0x64
  108114. 802ce42: 07d9 lsls r1, r3, #31
  108115. 802ce44: d405 bmi.n 802ce52 <_vfiprintf_r+0x1fe>
  108116. 802ce46: 89ab ldrh r3, [r5, #12]
  108117. 802ce48: 059a lsls r2, r3, #22
  108118. 802ce4a: d402 bmi.n 802ce52 <_vfiprintf_r+0x1fe>
  108119. 802ce4c: 6da8 ldr r0, [r5, #88] @ 0x58
  108120. 802ce4e: f7fd ff0d bl 802ac6c <__retarget_lock_release_recursive>
  108121. 802ce52: 89ab ldrh r3, [r5, #12]
  108122. 802ce54: 065b lsls r3, r3, #25
  108123. 802ce56: f53f af1f bmi.w 802cc98 <_vfiprintf_r+0x44>
  108124. 802ce5a: 9809 ldr r0, [sp, #36] @ 0x24
  108125. 802ce5c: e71e b.n 802cc9c <_vfiprintf_r+0x48>
  108126. 802ce5e: ab03 add r3, sp, #12
  108127. 802ce60: 9300 str r3, [sp, #0]
  108128. 802ce62: 462a mov r2, r5
  108129. 802ce64: 4b05 ldr r3, [pc, #20] @ (802ce7c <_vfiprintf_r+0x228>)
  108130. 802ce66: a904 add r1, sp, #16
  108131. 802ce68: 4630 mov r0, r6
  108132. 802ce6a: f7fd fa95 bl 802a398 <_printf_i>
  108133. 802ce6e: e7e4 b.n 802ce3a <_vfiprintf_r+0x1e6>
  108134. 802ce70: 08031fd8 .word 0x08031fd8
  108135. 802ce74: 08031fe2 .word 0x08031fe2
  108136. 802ce78: 08029e89 .word 0x08029e89
  108137. 802ce7c: 0802cc2f .word 0x0802cc2f
  108138. 802ce80: 08031fde .word 0x08031fde
  108139. 0802ce84 <__sflush_r>:
  108140. 802ce84: f9b1 200c ldrsh.w r2, [r1, #12]
  108141. 802ce88: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  108142. 802ce8c: 0716 lsls r6, r2, #28
  108143. 802ce8e: 4605 mov r5, r0
  108144. 802ce90: 460c mov r4, r1
  108145. 802ce92: d454 bmi.n 802cf3e <__sflush_r+0xba>
  108146. 802ce94: 684b ldr r3, [r1, #4]
  108147. 802ce96: 2b00 cmp r3, #0
  108148. 802ce98: dc02 bgt.n 802cea0 <__sflush_r+0x1c>
  108149. 802ce9a: 6c0b ldr r3, [r1, #64] @ 0x40
  108150. 802ce9c: 2b00 cmp r3, #0
  108151. 802ce9e: dd48 ble.n 802cf32 <__sflush_r+0xae>
  108152. 802cea0: 6ae6 ldr r6, [r4, #44] @ 0x2c
  108153. 802cea2: 2e00 cmp r6, #0
  108154. 802cea4: d045 beq.n 802cf32 <__sflush_r+0xae>
  108155. 802cea6: 2300 movs r3, #0
  108156. 802cea8: f412 5280 ands.w r2, r2, #4096 @ 0x1000
  108157. 802ceac: 682f ldr r7, [r5, #0]
  108158. 802ceae: 6a21 ldr r1, [r4, #32]
  108159. 802ceb0: 602b str r3, [r5, #0]
  108160. 802ceb2: d030 beq.n 802cf16 <__sflush_r+0x92>
  108161. 802ceb4: 6d62 ldr r2, [r4, #84] @ 0x54
  108162. 802ceb6: 89a3 ldrh r3, [r4, #12]
  108163. 802ceb8: 0759 lsls r1, r3, #29
  108164. 802ceba: d505 bpl.n 802cec8 <__sflush_r+0x44>
  108165. 802cebc: 6863 ldr r3, [r4, #4]
  108166. 802cebe: 1ad2 subs r2, r2, r3
  108167. 802cec0: 6b63 ldr r3, [r4, #52] @ 0x34
  108168. 802cec2: b10b cbz r3, 802cec8 <__sflush_r+0x44>
  108169. 802cec4: 6c23 ldr r3, [r4, #64] @ 0x40
  108170. 802cec6: 1ad2 subs r2, r2, r3
  108171. 802cec8: 2300 movs r3, #0
  108172. 802ceca: 6ae6 ldr r6, [r4, #44] @ 0x2c
  108173. 802cecc: 6a21 ldr r1, [r4, #32]
  108174. 802cece: 4628 mov r0, r5
  108175. 802ced0: 47b0 blx r6
  108176. 802ced2: 1c43 adds r3, r0, #1
  108177. 802ced4: 89a3 ldrh r3, [r4, #12]
  108178. 802ced6: d106 bne.n 802cee6 <__sflush_r+0x62>
  108179. 802ced8: 6829 ldr r1, [r5, #0]
  108180. 802ceda: 291d cmp r1, #29
  108181. 802cedc: d82b bhi.n 802cf36 <__sflush_r+0xb2>
  108182. 802cede: 4a2a ldr r2, [pc, #168] @ (802cf88 <__sflush_r+0x104>)
  108183. 802cee0: 410a asrs r2, r1
  108184. 802cee2: 07d6 lsls r6, r2, #31
  108185. 802cee4: d427 bmi.n 802cf36 <__sflush_r+0xb2>
  108186. 802cee6: 2200 movs r2, #0
  108187. 802cee8: 6062 str r2, [r4, #4]
  108188. 802ceea: 04d9 lsls r1, r3, #19
  108189. 802ceec: 6922 ldr r2, [r4, #16]
  108190. 802ceee: 6022 str r2, [r4, #0]
  108191. 802cef0: d504 bpl.n 802cefc <__sflush_r+0x78>
  108192. 802cef2: 1c42 adds r2, r0, #1
  108193. 802cef4: d101 bne.n 802cefa <__sflush_r+0x76>
  108194. 802cef6: 682b ldr r3, [r5, #0]
  108195. 802cef8: b903 cbnz r3, 802cefc <__sflush_r+0x78>
  108196. 802cefa: 6560 str r0, [r4, #84] @ 0x54
  108197. 802cefc: 6b61 ldr r1, [r4, #52] @ 0x34
  108198. 802cefe: 602f str r7, [r5, #0]
  108199. 802cf00: b1b9 cbz r1, 802cf32 <__sflush_r+0xae>
  108200. 802cf02: f104 0344 add.w r3, r4, #68 @ 0x44
  108201. 802cf06: 4299 cmp r1, r3
  108202. 802cf08: d002 beq.n 802cf10 <__sflush_r+0x8c>
  108203. 802cf0a: 4628 mov r0, r5
  108204. 802cf0c: f7fe fcc6 bl 802b89c <_free_r>
  108205. 802cf10: 2300 movs r3, #0
  108206. 802cf12: 6363 str r3, [r4, #52] @ 0x34
  108207. 802cf14: e00d b.n 802cf32 <__sflush_r+0xae>
  108208. 802cf16: 2301 movs r3, #1
  108209. 802cf18: 4628 mov r0, r5
  108210. 802cf1a: 47b0 blx r6
  108211. 802cf1c: 4602 mov r2, r0
  108212. 802cf1e: 1c50 adds r0, r2, #1
  108213. 802cf20: d1c9 bne.n 802ceb6 <__sflush_r+0x32>
  108214. 802cf22: 682b ldr r3, [r5, #0]
  108215. 802cf24: 2b00 cmp r3, #0
  108216. 802cf26: d0c6 beq.n 802ceb6 <__sflush_r+0x32>
  108217. 802cf28: 2b1d cmp r3, #29
  108218. 802cf2a: d001 beq.n 802cf30 <__sflush_r+0xac>
  108219. 802cf2c: 2b16 cmp r3, #22
  108220. 802cf2e: d11e bne.n 802cf6e <__sflush_r+0xea>
  108221. 802cf30: 602f str r7, [r5, #0]
  108222. 802cf32: 2000 movs r0, #0
  108223. 802cf34: e022 b.n 802cf7c <__sflush_r+0xf8>
  108224. 802cf36: f043 0340 orr.w r3, r3, #64 @ 0x40
  108225. 802cf3a: b21b sxth r3, r3
  108226. 802cf3c: e01b b.n 802cf76 <__sflush_r+0xf2>
  108227. 802cf3e: 690f ldr r7, [r1, #16]
  108228. 802cf40: 2f00 cmp r7, #0
  108229. 802cf42: d0f6 beq.n 802cf32 <__sflush_r+0xae>
  108230. 802cf44: 0793 lsls r3, r2, #30
  108231. 802cf46: 680e ldr r6, [r1, #0]
  108232. 802cf48: bf08 it eq
  108233. 802cf4a: 694b ldreq r3, [r1, #20]
  108234. 802cf4c: 600f str r7, [r1, #0]
  108235. 802cf4e: bf18 it ne
  108236. 802cf50: 2300 movne r3, #0
  108237. 802cf52: eba6 0807 sub.w r8, r6, r7
  108238. 802cf56: 608b str r3, [r1, #8]
  108239. 802cf58: f1b8 0f00 cmp.w r8, #0
  108240. 802cf5c: dde9 ble.n 802cf32 <__sflush_r+0xae>
  108241. 802cf5e: 6a21 ldr r1, [r4, #32]
  108242. 802cf60: 6aa6 ldr r6, [r4, #40] @ 0x28
  108243. 802cf62: 4643 mov r3, r8
  108244. 802cf64: 463a mov r2, r7
  108245. 802cf66: 4628 mov r0, r5
  108246. 802cf68: 47b0 blx r6
  108247. 802cf6a: 2800 cmp r0, #0
  108248. 802cf6c: dc08 bgt.n 802cf80 <__sflush_r+0xfc>
  108249. 802cf6e: f9b4 300c ldrsh.w r3, [r4, #12]
  108250. 802cf72: f043 0340 orr.w r3, r3, #64 @ 0x40
  108251. 802cf76: 81a3 strh r3, [r4, #12]
  108252. 802cf78: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  108253. 802cf7c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  108254. 802cf80: 4407 add r7, r0
  108255. 802cf82: eba8 0800 sub.w r8, r8, r0
  108256. 802cf86: e7e7 b.n 802cf58 <__sflush_r+0xd4>
  108257. 802cf88: dfbffffe .word 0xdfbffffe
  108258. 0802cf8c <_fflush_r>:
  108259. 802cf8c: b538 push {r3, r4, r5, lr}
  108260. 802cf8e: 690b ldr r3, [r1, #16]
  108261. 802cf90: 4605 mov r5, r0
  108262. 802cf92: 460c mov r4, r1
  108263. 802cf94: b913 cbnz r3, 802cf9c <_fflush_r+0x10>
  108264. 802cf96: 2500 movs r5, #0
  108265. 802cf98: 4628 mov r0, r5
  108266. 802cf9a: bd38 pop {r3, r4, r5, pc}
  108267. 802cf9c: b118 cbz r0, 802cfa6 <_fflush_r+0x1a>
  108268. 802cf9e: 6a03 ldr r3, [r0, #32]
  108269. 802cfa0: b90b cbnz r3, 802cfa6 <_fflush_r+0x1a>
  108270. 802cfa2: f7fd fba5 bl 802a6f0 <__sinit>
  108271. 802cfa6: f9b4 300c ldrsh.w r3, [r4, #12]
  108272. 802cfaa: 2b00 cmp r3, #0
  108273. 802cfac: d0f3 beq.n 802cf96 <_fflush_r+0xa>
  108274. 802cfae: 6e62 ldr r2, [r4, #100] @ 0x64
  108275. 802cfb0: 07d0 lsls r0, r2, #31
  108276. 802cfb2: d404 bmi.n 802cfbe <_fflush_r+0x32>
  108277. 802cfb4: 0599 lsls r1, r3, #22
  108278. 802cfb6: d402 bmi.n 802cfbe <_fflush_r+0x32>
  108279. 802cfb8: 6da0 ldr r0, [r4, #88] @ 0x58
  108280. 802cfba: f7fd fe56 bl 802ac6a <__retarget_lock_acquire_recursive>
  108281. 802cfbe: 4628 mov r0, r5
  108282. 802cfc0: 4621 mov r1, r4
  108283. 802cfc2: f7ff ff5f bl 802ce84 <__sflush_r>
  108284. 802cfc6: 6e63 ldr r3, [r4, #100] @ 0x64
  108285. 802cfc8: 07da lsls r2, r3, #31
  108286. 802cfca: 4605 mov r5, r0
  108287. 802cfcc: d4e4 bmi.n 802cf98 <_fflush_r+0xc>
  108288. 802cfce: 89a3 ldrh r3, [r4, #12]
  108289. 802cfd0: 059b lsls r3, r3, #22
  108290. 802cfd2: d4e1 bmi.n 802cf98 <_fflush_r+0xc>
  108291. 802cfd4: 6da0 ldr r0, [r4, #88] @ 0x58
  108292. 802cfd6: f7fd fe49 bl 802ac6c <__retarget_lock_release_recursive>
  108293. 802cfda: e7dd b.n 802cf98 <_fflush_r+0xc>
  108294. 0802cfdc <fiprintf>:
  108295. 802cfdc: b40e push {r1, r2, r3}
  108296. 802cfde: b503 push {r0, r1, lr}
  108297. 802cfe0: 4601 mov r1, r0
  108298. 802cfe2: ab03 add r3, sp, #12
  108299. 802cfe4: 4805 ldr r0, [pc, #20] @ (802cffc <fiprintf+0x20>)
  108300. 802cfe6: f853 2b04 ldr.w r2, [r3], #4
  108301. 802cfea: 6800 ldr r0, [r0, #0]
  108302. 802cfec: 9301 str r3, [sp, #4]
  108303. 802cfee: f7ff fe31 bl 802cc54 <_vfiprintf_r>
  108304. 802cff2: b002 add sp, #8
  108305. 802cff4: f85d eb04 ldr.w lr, [sp], #4
  108306. 802cff8: b003 add sp, #12
  108307. 802cffa: 4770 bx lr
  108308. 802cffc: 240001d4 .word 0x240001d4
  108309. 0802d000 <__swhatbuf_r>:
  108310. 802d000: b570 push {r4, r5, r6, lr}
  108311. 802d002: 460c mov r4, r1
  108312. 802d004: f9b1 100e ldrsh.w r1, [r1, #14]
  108313. 802d008: 2900 cmp r1, #0
  108314. 802d00a: b096 sub sp, #88 @ 0x58
  108315. 802d00c: 4615 mov r5, r2
  108316. 802d00e: 461e mov r6, r3
  108317. 802d010: da0d bge.n 802d02e <__swhatbuf_r+0x2e>
  108318. 802d012: 89a3 ldrh r3, [r4, #12]
  108319. 802d014: f013 0f80 tst.w r3, #128 @ 0x80
  108320. 802d018: f04f 0100 mov.w r1, #0
  108321. 802d01c: bf14 ite ne
  108322. 802d01e: 2340 movne r3, #64 @ 0x40
  108323. 802d020: f44f 6380 moveq.w r3, #1024 @ 0x400
  108324. 802d024: 2000 movs r0, #0
  108325. 802d026: 6031 str r1, [r6, #0]
  108326. 802d028: 602b str r3, [r5, #0]
  108327. 802d02a: b016 add sp, #88 @ 0x58
  108328. 802d02c: bd70 pop {r4, r5, r6, pc}
  108329. 802d02e: 466a mov r2, sp
  108330. 802d030: f000 f848 bl 802d0c4 <_fstat_r>
  108331. 802d034: 2800 cmp r0, #0
  108332. 802d036: dbec blt.n 802d012 <__swhatbuf_r+0x12>
  108333. 802d038: 9901 ldr r1, [sp, #4]
  108334. 802d03a: f401 4170 and.w r1, r1, #61440 @ 0xf000
  108335. 802d03e: f5a1 5300 sub.w r3, r1, #8192 @ 0x2000
  108336. 802d042: 4259 negs r1, r3
  108337. 802d044: 4159 adcs r1, r3
  108338. 802d046: f44f 6380 mov.w r3, #1024 @ 0x400
  108339. 802d04a: e7eb b.n 802d024 <__swhatbuf_r+0x24>
  108340. 0802d04c <__smakebuf_r>:
  108341. 802d04c: 898b ldrh r3, [r1, #12]
  108342. 802d04e: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  108343. 802d050: 079d lsls r5, r3, #30
  108344. 802d052: 4606 mov r6, r0
  108345. 802d054: 460c mov r4, r1
  108346. 802d056: d507 bpl.n 802d068 <__smakebuf_r+0x1c>
  108347. 802d058: f104 0347 add.w r3, r4, #71 @ 0x47
  108348. 802d05c: 6023 str r3, [r4, #0]
  108349. 802d05e: 6123 str r3, [r4, #16]
  108350. 802d060: 2301 movs r3, #1
  108351. 802d062: 6163 str r3, [r4, #20]
  108352. 802d064: b003 add sp, #12
  108353. 802d066: bdf0 pop {r4, r5, r6, r7, pc}
  108354. 802d068: ab01 add r3, sp, #4
  108355. 802d06a: 466a mov r2, sp
  108356. 802d06c: f7ff ffc8 bl 802d000 <__swhatbuf_r>
  108357. 802d070: 9f00 ldr r7, [sp, #0]
  108358. 802d072: 4605 mov r5, r0
  108359. 802d074: 4639 mov r1, r7
  108360. 802d076: 4630 mov r0, r6
  108361. 802d078: f7fb ffba bl 8028ff0 <_malloc_r>
  108362. 802d07c: b948 cbnz r0, 802d092 <__smakebuf_r+0x46>
  108363. 802d07e: f9b4 300c ldrsh.w r3, [r4, #12]
  108364. 802d082: 059a lsls r2, r3, #22
  108365. 802d084: d4ee bmi.n 802d064 <__smakebuf_r+0x18>
  108366. 802d086: f023 0303 bic.w r3, r3, #3
  108367. 802d08a: f043 0302 orr.w r3, r3, #2
  108368. 802d08e: 81a3 strh r3, [r4, #12]
  108369. 802d090: e7e2 b.n 802d058 <__smakebuf_r+0xc>
  108370. 802d092: 89a3 ldrh r3, [r4, #12]
  108371. 802d094: 6020 str r0, [r4, #0]
  108372. 802d096: f043 0380 orr.w r3, r3, #128 @ 0x80
  108373. 802d09a: 81a3 strh r3, [r4, #12]
  108374. 802d09c: 9b01 ldr r3, [sp, #4]
  108375. 802d09e: e9c4 0704 strd r0, r7, [r4, #16]
  108376. 802d0a2: b15b cbz r3, 802d0bc <__smakebuf_r+0x70>
  108377. 802d0a4: f9b4 100e ldrsh.w r1, [r4, #14]
  108378. 802d0a8: 4630 mov r0, r6
  108379. 802d0aa: f000 f81d bl 802d0e8 <_isatty_r>
  108380. 802d0ae: b128 cbz r0, 802d0bc <__smakebuf_r+0x70>
  108381. 802d0b0: 89a3 ldrh r3, [r4, #12]
  108382. 802d0b2: f023 0303 bic.w r3, r3, #3
  108383. 802d0b6: f043 0301 orr.w r3, r3, #1
  108384. 802d0ba: 81a3 strh r3, [r4, #12]
  108385. 802d0bc: 89a3 ldrh r3, [r4, #12]
  108386. 802d0be: 431d orrs r5, r3
  108387. 802d0c0: 81a5 strh r5, [r4, #12]
  108388. 802d0c2: e7cf b.n 802d064 <__smakebuf_r+0x18>
  108389. 0802d0c4 <_fstat_r>:
  108390. 802d0c4: b538 push {r3, r4, r5, lr}
  108391. 802d0c6: 4d07 ldr r5, [pc, #28] @ (802d0e4 <_fstat_r+0x20>)
  108392. 802d0c8: 2300 movs r3, #0
  108393. 802d0ca: 4604 mov r4, r0
  108394. 802d0cc: 4608 mov r0, r1
  108395. 802d0ce: 4611 mov r1, r2
  108396. 802d0d0: 602b str r3, [r5, #0]
  108397. 802d0d2: f7d7 f839 bl 8004148 <_fstat>
  108398. 802d0d6: 1c43 adds r3, r0, #1
  108399. 802d0d8: d102 bne.n 802d0e0 <_fstat_r+0x1c>
  108400. 802d0da: 682b ldr r3, [r5, #0]
  108401. 802d0dc: b103 cbz r3, 802d0e0 <_fstat_r+0x1c>
  108402. 802d0de: 6023 str r3, [r4, #0]
  108403. 802d0e0: bd38 pop {r3, r4, r5, pc}
  108404. 802d0e2: bf00 nop
  108405. 802d0e4: 2402b260 .word 0x2402b260
  108406. 0802d0e8 <_isatty_r>:
  108407. 802d0e8: b538 push {r3, r4, r5, lr}
  108408. 802d0ea: 4d06 ldr r5, [pc, #24] @ (802d104 <_isatty_r+0x1c>)
  108409. 802d0ec: 2300 movs r3, #0
  108410. 802d0ee: 4604 mov r4, r0
  108411. 802d0f0: 4608 mov r0, r1
  108412. 802d0f2: 602b str r3, [r5, #0]
  108413. 802d0f4: f7d7 f838 bl 8004168 <_isatty>
  108414. 802d0f8: 1c43 adds r3, r0, #1
  108415. 802d0fa: d102 bne.n 802d102 <_isatty_r+0x1a>
  108416. 802d0fc: 682b ldr r3, [r5, #0]
  108417. 802d0fe: b103 cbz r3, 802d102 <_isatty_r+0x1a>
  108418. 802d100: 6023 str r3, [r4, #0]
  108419. 802d102: bd38 pop {r3, r4, r5, pc}
  108420. 802d104: 2402b260 .word 0x2402b260
  108421. 0802d108 <abort>:
  108422. 802d108: b508 push {r3, lr}
  108423. 802d10a: 2006 movs r0, #6
  108424. 802d10c: f000 f840 bl 802d190 <raise>
  108425. 802d110: 2001 movs r0, #1
  108426. 802d112: f7d6 ffc9 bl 80040a8 <_exit>
  108427. 0802d116 <_calloc_r>:
  108428. 802d116: b570 push {r4, r5, r6, lr}
  108429. 802d118: fba1 5402 umull r5, r4, r1, r2
  108430. 802d11c: b93c cbnz r4, 802d12e <_calloc_r+0x18>
  108431. 802d11e: 4629 mov r1, r5
  108432. 802d120: f7fb ff66 bl 8028ff0 <_malloc_r>
  108433. 802d124: 4606 mov r6, r0
  108434. 802d126: b928 cbnz r0, 802d134 <_calloc_r+0x1e>
  108435. 802d128: 2600 movs r6, #0
  108436. 802d12a: 4630 mov r0, r6
  108437. 802d12c: bd70 pop {r4, r5, r6, pc}
  108438. 802d12e: 220c movs r2, #12
  108439. 802d130: 6002 str r2, [r0, #0]
  108440. 802d132: e7f9 b.n 802d128 <_calloc_r+0x12>
  108441. 802d134: 462a mov r2, r5
  108442. 802d136: 4621 mov r1, r4
  108443. 802d138: f7fd fca2 bl 802aa80 <memset>
  108444. 802d13c: e7f5 b.n 802d12a <_calloc_r+0x14>
  108445. 0802d13e <_raise_r>:
  108446. 802d13e: 291f cmp r1, #31
  108447. 802d140: b538 push {r3, r4, r5, lr}
  108448. 802d142: 4605 mov r5, r0
  108449. 802d144: 460c mov r4, r1
  108450. 802d146: d904 bls.n 802d152 <_raise_r+0x14>
  108451. 802d148: 2316 movs r3, #22
  108452. 802d14a: 6003 str r3, [r0, #0]
  108453. 802d14c: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  108454. 802d150: bd38 pop {r3, r4, r5, pc}
  108455. 802d152: 6bc2 ldr r2, [r0, #60] @ 0x3c
  108456. 802d154: b112 cbz r2, 802d15c <_raise_r+0x1e>
  108457. 802d156: f852 3021 ldr.w r3, [r2, r1, lsl #2]
  108458. 802d15a: b94b cbnz r3, 802d170 <_raise_r+0x32>
  108459. 802d15c: 4628 mov r0, r5
  108460. 802d15e: f000 f831 bl 802d1c4 <_getpid_r>
  108461. 802d162: 4622 mov r2, r4
  108462. 802d164: 4601 mov r1, r0
  108463. 802d166: 4628 mov r0, r5
  108464. 802d168: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  108465. 802d16c: f000 b818 b.w 802d1a0 <_kill_r>
  108466. 802d170: 2b01 cmp r3, #1
  108467. 802d172: d00a beq.n 802d18a <_raise_r+0x4c>
  108468. 802d174: 1c59 adds r1, r3, #1
  108469. 802d176: d103 bne.n 802d180 <_raise_r+0x42>
  108470. 802d178: 2316 movs r3, #22
  108471. 802d17a: 6003 str r3, [r0, #0]
  108472. 802d17c: 2001 movs r0, #1
  108473. 802d17e: e7e7 b.n 802d150 <_raise_r+0x12>
  108474. 802d180: 2100 movs r1, #0
  108475. 802d182: f842 1024 str.w r1, [r2, r4, lsl #2]
  108476. 802d186: 4620 mov r0, r4
  108477. 802d188: 4798 blx r3
  108478. 802d18a: 2000 movs r0, #0
  108479. 802d18c: e7e0 b.n 802d150 <_raise_r+0x12>
  108480. ...
  108481. 0802d190 <raise>:
  108482. 802d190: 4b02 ldr r3, [pc, #8] @ (802d19c <raise+0xc>)
  108483. 802d192: 4601 mov r1, r0
  108484. 802d194: 6818 ldr r0, [r3, #0]
  108485. 802d196: f7ff bfd2 b.w 802d13e <_raise_r>
  108486. 802d19a: bf00 nop
  108487. 802d19c: 240001d4 .word 0x240001d4
  108488. 0802d1a0 <_kill_r>:
  108489. 802d1a0: b538 push {r3, r4, r5, lr}
  108490. 802d1a2: 4d07 ldr r5, [pc, #28] @ (802d1c0 <_kill_r+0x20>)
  108491. 802d1a4: 2300 movs r3, #0
  108492. 802d1a6: 4604 mov r4, r0
  108493. 802d1a8: 4608 mov r0, r1
  108494. 802d1aa: 4611 mov r1, r2
  108495. 802d1ac: 602b str r3, [r5, #0]
  108496. 802d1ae: f7d6 ff69 bl 8004084 <_kill>
  108497. 802d1b2: 1c43 adds r3, r0, #1
  108498. 802d1b4: d102 bne.n 802d1bc <_kill_r+0x1c>
  108499. 802d1b6: 682b ldr r3, [r5, #0]
  108500. 802d1b8: b103 cbz r3, 802d1bc <_kill_r+0x1c>
  108501. 802d1ba: 6023 str r3, [r4, #0]
  108502. 802d1bc: bd38 pop {r3, r4, r5, pc}
  108503. 802d1be: bf00 nop
  108504. 802d1c0: 2402b260 .word 0x2402b260
  108505. 0802d1c4 <_getpid_r>:
  108506. 802d1c4: f7d6 bf56 b.w 8004074 <_getpid>
  108507. 0802d1c8 <_init>:
  108508. 802d1c8: b5f8 push {r3, r4, r5, r6, r7, lr}
  108509. 802d1ca: bf00 nop
  108510. 802d1cc: bcf8 pop {r3, r4, r5, r6, r7}
  108511. 802d1ce: bc08 pop {r3}
  108512. 802d1d0: 469e mov lr, r3
  108513. 802d1d2: 4770 bx lr
  108514. 0802d1d4 <_fini>:
  108515. 802d1d4: b5f8 push {r3, r4, r5, r6, r7, lr}
  108516. 802d1d6: bf00 nop
  108517. 802d1d8: bcf8 pop {r3, r4, r5, r6, r7}
  108518. 802d1da: bc08 pop {r3}
  108519. 802d1dc: 469e mov lr, r3
  108520. 802d1de: 4770 bx lr