STM32G030_Dshot.list 332 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015
  1. STM32G030_Dshot.elf: file format elf32-littlearm
  2. Sections:
  3. Idx Name Size VMA LMA File off Algn
  4. 0 .isr_vector 000000b8 08000000 08000000 00001000 2**0
  5. CONTENTS, ALLOC, LOAD, READONLY, DATA
  6. 1 .text 00002fe0 080000b8 080000b8 000010b8 2**2
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 00000040 08003098 08003098 00004098 2**2
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM.extab 00000000 080030d8 080030d8 0000500c 2**0
  11. CONTENTS
  12. 4 .ARM 00000000 080030d8 080030d8 0000500c 2**0
  13. CONTENTS
  14. 5 .preinit_array 00000000 080030d8 080030d8 0000500c 2**0
  15. CONTENTS, ALLOC, LOAD, DATA
  16. 6 .init_array 00000004 080030d8 080030d8 000040d8 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .fini_array 00000004 080030dc 080030dc 000040dc 2**2
  19. CONTENTS, ALLOC, LOAD, DATA
  20. 8 .data 0000000c 20000000 080030e0 00005000 2**2
  21. CONTENTS, ALLOC, LOAD, DATA
  22. 9 .bss 000001d4 2000000c 080030ec 0000500c 2**2
  23. ALLOC
  24. 10 ._user_heap_stack 00000600 200001e0 080030ec 000051e0 2**0
  25. ALLOC
  26. 11 .ARM.attributes 00000028 00000000 00000000 0000500c 2**0
  27. CONTENTS, READONLY
  28. 12 .debug_info 0000a1c3 00000000 00000000 00005034 2**0
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_abbrev 00001d00 00000000 00000000 0000f1f7 2**0
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_aranges 00000b28 00000000 00000000 00010ef8 2**3
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_rnglists 0000089c 00000000 00000000 00011a20 2**0
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .debug_macro 00014370 00000000 00000000 000122bc 2**0
  37. CONTENTS, READONLY, DEBUGGING, OCTETS
  38. 17 .debug_line 0000c984 00000000 00000000 0002662c 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .debug_str 00080c0f 00000000 00000000 00032fb0 2**0
  41. CONTENTS, READONLY, DEBUGGING, OCTETS
  42. 19 .comment 00000043 00000000 00000000 000b3bbf 2**0
  43. CONTENTS, READONLY
  44. 20 .debug_frame 00002744 00000000 00000000 000b3c04 2**2
  45. CONTENTS, READONLY, DEBUGGING, OCTETS
  46. 21 .debug_line_str 0000004a 00000000 00000000 000b6348 2**0
  47. CONTENTS, READONLY, DEBUGGING, OCTETS
  48. Disassembly of section .text:
  49. 080000b8 <__do_global_dtors_aux>:
  50. 80000b8: b510 push {r4, lr}
  51. 80000ba: 4c06 ldr r4, [pc, #24] @ (80000d4 <__do_global_dtors_aux+0x1c>)
  52. 80000bc: 7823 ldrb r3, [r4, #0]
  53. 80000be: 2b00 cmp r3, #0
  54. 80000c0: d107 bne.n 80000d2 <__do_global_dtors_aux+0x1a>
  55. 80000c2: 4b05 ldr r3, [pc, #20] @ (80000d8 <__do_global_dtors_aux+0x20>)
  56. 80000c4: 2b00 cmp r3, #0
  57. 80000c6: d002 beq.n 80000ce <__do_global_dtors_aux+0x16>
  58. 80000c8: 4804 ldr r0, [pc, #16] @ (80000dc <__do_global_dtors_aux+0x24>)
  59. 80000ca: e000 b.n 80000ce <__do_global_dtors_aux+0x16>
  60. 80000cc: bf00 nop
  61. 80000ce: 2301 movs r3, #1
  62. 80000d0: 7023 strb r3, [r4, #0]
  63. 80000d2: bd10 pop {r4, pc}
  64. 80000d4: 2000000c .word 0x2000000c
  65. 80000d8: 00000000 .word 0x00000000
  66. 80000dc: 08003080 .word 0x08003080
  67. 080000e0 <frame_dummy>:
  68. 80000e0: 4b04 ldr r3, [pc, #16] @ (80000f4 <frame_dummy+0x14>)
  69. 80000e2: b510 push {r4, lr}
  70. 80000e4: 2b00 cmp r3, #0
  71. 80000e6: d003 beq.n 80000f0 <frame_dummy+0x10>
  72. 80000e8: 4903 ldr r1, [pc, #12] @ (80000f8 <frame_dummy+0x18>)
  73. 80000ea: 4804 ldr r0, [pc, #16] @ (80000fc <frame_dummy+0x1c>)
  74. 80000ec: e000 b.n 80000f0 <frame_dummy+0x10>
  75. 80000ee: bf00 nop
  76. 80000f0: bd10 pop {r4, pc}
  77. 80000f2: 46c0 nop @ (mov r8, r8)
  78. 80000f4: 00000000 .word 0x00000000
  79. 80000f8: 20000010 .word 0x20000010
  80. 80000fc: 08003080 .word 0x08003080
  81. 08000100 <__udivsi3>:
  82. 8000100: 2200 movs r2, #0
  83. 8000102: 0843 lsrs r3, r0, #1
  84. 8000104: 428b cmp r3, r1
  85. 8000106: d374 bcc.n 80001f2 <__udivsi3+0xf2>
  86. 8000108: 0903 lsrs r3, r0, #4
  87. 800010a: 428b cmp r3, r1
  88. 800010c: d35f bcc.n 80001ce <__udivsi3+0xce>
  89. 800010e: 0a03 lsrs r3, r0, #8
  90. 8000110: 428b cmp r3, r1
  91. 8000112: d344 bcc.n 800019e <__udivsi3+0x9e>
  92. 8000114: 0b03 lsrs r3, r0, #12
  93. 8000116: 428b cmp r3, r1
  94. 8000118: d328 bcc.n 800016c <__udivsi3+0x6c>
  95. 800011a: 0c03 lsrs r3, r0, #16
  96. 800011c: 428b cmp r3, r1
  97. 800011e: d30d bcc.n 800013c <__udivsi3+0x3c>
  98. 8000120: 22ff movs r2, #255 @ 0xff
  99. 8000122: 0209 lsls r1, r1, #8
  100. 8000124: ba12 rev r2, r2
  101. 8000126: 0c03 lsrs r3, r0, #16
  102. 8000128: 428b cmp r3, r1
  103. 800012a: d302 bcc.n 8000132 <__udivsi3+0x32>
  104. 800012c: 1212 asrs r2, r2, #8
  105. 800012e: 0209 lsls r1, r1, #8
  106. 8000130: d065 beq.n 80001fe <__udivsi3+0xfe>
  107. 8000132: 0b03 lsrs r3, r0, #12
  108. 8000134: 428b cmp r3, r1
  109. 8000136: d319 bcc.n 800016c <__udivsi3+0x6c>
  110. 8000138: e000 b.n 800013c <__udivsi3+0x3c>
  111. 800013a: 0a09 lsrs r1, r1, #8
  112. 800013c: 0bc3 lsrs r3, r0, #15
  113. 800013e: 428b cmp r3, r1
  114. 8000140: d301 bcc.n 8000146 <__udivsi3+0x46>
  115. 8000142: 03cb lsls r3, r1, #15
  116. 8000144: 1ac0 subs r0, r0, r3
  117. 8000146: 4152 adcs r2, r2
  118. 8000148: 0b83 lsrs r3, r0, #14
  119. 800014a: 428b cmp r3, r1
  120. 800014c: d301 bcc.n 8000152 <__udivsi3+0x52>
  121. 800014e: 038b lsls r3, r1, #14
  122. 8000150: 1ac0 subs r0, r0, r3
  123. 8000152: 4152 adcs r2, r2
  124. 8000154: 0b43 lsrs r3, r0, #13
  125. 8000156: 428b cmp r3, r1
  126. 8000158: d301 bcc.n 800015e <__udivsi3+0x5e>
  127. 800015a: 034b lsls r3, r1, #13
  128. 800015c: 1ac0 subs r0, r0, r3
  129. 800015e: 4152 adcs r2, r2
  130. 8000160: 0b03 lsrs r3, r0, #12
  131. 8000162: 428b cmp r3, r1
  132. 8000164: d301 bcc.n 800016a <__udivsi3+0x6a>
  133. 8000166: 030b lsls r3, r1, #12
  134. 8000168: 1ac0 subs r0, r0, r3
  135. 800016a: 4152 adcs r2, r2
  136. 800016c: 0ac3 lsrs r3, r0, #11
  137. 800016e: 428b cmp r3, r1
  138. 8000170: d301 bcc.n 8000176 <__udivsi3+0x76>
  139. 8000172: 02cb lsls r3, r1, #11
  140. 8000174: 1ac0 subs r0, r0, r3
  141. 8000176: 4152 adcs r2, r2
  142. 8000178: 0a83 lsrs r3, r0, #10
  143. 800017a: 428b cmp r3, r1
  144. 800017c: d301 bcc.n 8000182 <__udivsi3+0x82>
  145. 800017e: 028b lsls r3, r1, #10
  146. 8000180: 1ac0 subs r0, r0, r3
  147. 8000182: 4152 adcs r2, r2
  148. 8000184: 0a43 lsrs r3, r0, #9
  149. 8000186: 428b cmp r3, r1
  150. 8000188: d301 bcc.n 800018e <__udivsi3+0x8e>
  151. 800018a: 024b lsls r3, r1, #9
  152. 800018c: 1ac0 subs r0, r0, r3
  153. 800018e: 4152 adcs r2, r2
  154. 8000190: 0a03 lsrs r3, r0, #8
  155. 8000192: 428b cmp r3, r1
  156. 8000194: d301 bcc.n 800019a <__udivsi3+0x9a>
  157. 8000196: 020b lsls r3, r1, #8
  158. 8000198: 1ac0 subs r0, r0, r3
  159. 800019a: 4152 adcs r2, r2
  160. 800019c: d2cd bcs.n 800013a <__udivsi3+0x3a>
  161. 800019e: 09c3 lsrs r3, r0, #7
  162. 80001a0: 428b cmp r3, r1
  163. 80001a2: d301 bcc.n 80001a8 <__udivsi3+0xa8>
  164. 80001a4: 01cb lsls r3, r1, #7
  165. 80001a6: 1ac0 subs r0, r0, r3
  166. 80001a8: 4152 adcs r2, r2
  167. 80001aa: 0983 lsrs r3, r0, #6
  168. 80001ac: 428b cmp r3, r1
  169. 80001ae: d301 bcc.n 80001b4 <__udivsi3+0xb4>
  170. 80001b0: 018b lsls r3, r1, #6
  171. 80001b2: 1ac0 subs r0, r0, r3
  172. 80001b4: 4152 adcs r2, r2
  173. 80001b6: 0943 lsrs r3, r0, #5
  174. 80001b8: 428b cmp r3, r1
  175. 80001ba: d301 bcc.n 80001c0 <__udivsi3+0xc0>
  176. 80001bc: 014b lsls r3, r1, #5
  177. 80001be: 1ac0 subs r0, r0, r3
  178. 80001c0: 4152 adcs r2, r2
  179. 80001c2: 0903 lsrs r3, r0, #4
  180. 80001c4: 428b cmp r3, r1
  181. 80001c6: d301 bcc.n 80001cc <__udivsi3+0xcc>
  182. 80001c8: 010b lsls r3, r1, #4
  183. 80001ca: 1ac0 subs r0, r0, r3
  184. 80001cc: 4152 adcs r2, r2
  185. 80001ce: 08c3 lsrs r3, r0, #3
  186. 80001d0: 428b cmp r3, r1
  187. 80001d2: d301 bcc.n 80001d8 <__udivsi3+0xd8>
  188. 80001d4: 00cb lsls r3, r1, #3
  189. 80001d6: 1ac0 subs r0, r0, r3
  190. 80001d8: 4152 adcs r2, r2
  191. 80001da: 0883 lsrs r3, r0, #2
  192. 80001dc: 428b cmp r3, r1
  193. 80001de: d301 bcc.n 80001e4 <__udivsi3+0xe4>
  194. 80001e0: 008b lsls r3, r1, #2
  195. 80001e2: 1ac0 subs r0, r0, r3
  196. 80001e4: 4152 adcs r2, r2
  197. 80001e6: 0843 lsrs r3, r0, #1
  198. 80001e8: 428b cmp r3, r1
  199. 80001ea: d301 bcc.n 80001f0 <__udivsi3+0xf0>
  200. 80001ec: 004b lsls r3, r1, #1
  201. 80001ee: 1ac0 subs r0, r0, r3
  202. 80001f0: 4152 adcs r2, r2
  203. 80001f2: 1a41 subs r1, r0, r1
  204. 80001f4: d200 bcs.n 80001f8 <__udivsi3+0xf8>
  205. 80001f6: 4601 mov r1, r0
  206. 80001f8: 4152 adcs r2, r2
  207. 80001fa: 4610 mov r0, r2
  208. 80001fc: 4770 bx lr
  209. 80001fe: e7ff b.n 8000200 <__udivsi3+0x100>
  210. 8000200: b501 push {r0, lr}
  211. 8000202: 2000 movs r0, #0
  212. 8000204: f000 f806 bl 8000214 <__aeabi_idiv0>
  213. 8000208: bd02 pop {r1, pc}
  214. 800020a: 46c0 nop @ (mov r8, r8)
  215. 0800020c <__aeabi_uidivmod>:
  216. 800020c: 2900 cmp r1, #0
  217. 800020e: d0f7 beq.n 8000200 <__udivsi3+0x100>
  218. 8000210: e776 b.n 8000100 <__udivsi3>
  219. 8000212: 4770 bx lr
  220. 08000214 <__aeabi_idiv0>:
  221. 8000214: 4770 bx lr
  222. 8000216: 46c0 nop @ (mov r8, r8)
  223. 08000218 <DMA1_Channel1_IRQ>:
  224. extern DMA_HandleTypeDef hdma_tim3_ch2;
  225. DShotStruct DShot;
  226. PWMInputStruct PWMInput;
  227. void DMA1_Channel1_IRQ (DMA_HandleTypeDef *hdma) {
  228. 8000218: b590 push {r4, r7, lr}
  229. 800021a: b089 sub sp, #36 @ 0x24
  230. 800021c: af00 add r7, sp, #0
  231. 800021e: 6078 str r0, [r7, #4]
  232. uint32_t flag_it = DMA1->ISR;
  233. 8000220: 4b98 ldr r3, [pc, #608] @ (8000484 <DMA1_Channel1_IRQ+0x26c>)
  234. 8000222: 681b ldr r3, [r3, #0]
  235. 8000224: 617b str r3, [r7, #20]
  236. uint32_t source_it = hdma->Instance->CCR;
  237. 8000226: 687b ldr r3, [r7, #4]
  238. 8000228: 681b ldr r3, [r3, #0]
  239. 800022a: 681b ldr r3, [r3, #0]
  240. 800022c: 613b str r3, [r7, #16]
  241. uint16_t value;
  242. uint16_t crc_d;
  243. uint16_t crc_p;
  244. uint8_t i;
  245. uint16_t dif_min = 0xFFFF;
  246. 800022e: 2318 movs r3, #24
  247. 8000230: 18fb adds r3, r7, r3
  248. 8000232: 2201 movs r2, #1
  249. 8000234: 4252 negs r2, r2
  250. 8000236: 801a strh r2, [r3, #0]
  251. uint8_t D;
  252. if ((0U != (flag_it & (DMA_FLAG_TC1 << (hdma->ChannelIndex & 0x1CU)))) && (0U != (source_it & DMA_IT_TC)))
  253. 8000238: 687b ldr r3, [r7, #4]
  254. 800023a: 6c1b ldr r3, [r3, #64] @ 0x40
  255. 800023c: 221c movs r2, #28
  256. 800023e: 4013 ands r3, r2
  257. 8000240: 2202 movs r2, #2
  258. 8000242: 409a lsls r2, r3
  259. 8000244: 0013 movs r3, r2
  260. 8000246: 697a ldr r2, [r7, #20]
  261. 8000248: 4013 ands r3, r2
  262. 800024a: d100 bne.n 800024e <DMA1_Channel1_IRQ+0x36>
  263. 800024c: e117 b.n 800047e <DMA1_Channel1_IRQ+0x266>
  264. 800024e: 693b ldr r3, [r7, #16]
  265. 8000250: 2202 movs r2, #2
  266. 8000252: 4013 ands r3, r2
  267. 8000254: d100 bne.n 8000258 <DMA1_Channel1_IRQ+0x40>
  268. 8000256: e112 b.n 800047e <DMA1_Channel1_IRQ+0x266>
  269. {
  270. if ((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  271. 8000258: 687b ldr r3, [r7, #4]
  272. 800025a: 681b ldr r3, [r3, #0]
  273. 800025c: 681b ldr r3, [r3, #0]
  274. 800025e: 2220 movs r2, #32
  275. 8000260: 4013 ands r3, r2
  276. 8000262: d10b bne.n 800027c <DMA1_Channel1_IRQ+0x64>
  277. {
  278. // Disable the transfer complete and error interrupt
  279. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  280. 8000264: 687b ldr r3, [r7, #4]
  281. 8000266: 681b ldr r3, [r3, #0]
  282. 8000268: 681a ldr r2, [r3, #0]
  283. 800026a: 687b ldr r3, [r7, #4]
  284. 800026c: 681b ldr r3, [r3, #0]
  285. 800026e: 210a movs r1, #10
  286. 8000270: 438a bics r2, r1
  287. 8000272: 601a str r2, [r3, #0]
  288. // Change the DMA state
  289. hdma->State = HAL_DMA_STATE_READY;
  290. 8000274: 687b ldr r3, [r7, #4]
  291. 8000276: 2225 movs r2, #37 @ 0x25
  292. 8000278: 2101 movs r1, #1
  293. 800027a: 5499 strb r1, [r3, r2]
  294. }
  295. // Clear the transfer complete flag
  296. __HAL_DMA_CLEAR_FLAG(hdma, (DMA_FLAG_TC1 << (hdma->ChannelIndex & 0x1CU)));
  297. 800027c: 4b81 ldr r3, [pc, #516] @ (8000484 <DMA1_Channel1_IRQ+0x26c>)
  298. 800027e: 6859 ldr r1, [r3, #4]
  299. 8000280: 687b ldr r3, [r7, #4]
  300. 8000282: 6c1b ldr r3, [r3, #64] @ 0x40
  301. 8000284: 221c movs r2, #28
  302. 8000286: 4013 ands r3, r2
  303. 8000288: 2202 movs r2, #2
  304. 800028a: 409a lsls r2, r3
  305. 800028c: 4b7d ldr r3, [pc, #500] @ (8000484 <DMA1_Channel1_IRQ+0x26c>)
  306. 800028e: 430a orrs r2, r1
  307. 8000290: 605a str r2, [r3, #4]
  308. // Process Unlocked
  309. __HAL_UNLOCK(hdma);
  310. 8000292: 687b ldr r3, [r7, #4]
  311. 8000294: 2224 movs r2, #36 @ 0x24
  312. 8000296: 2100 movs r1, #0
  313. 8000298: 5499 strb r1, [r3, r2]
  314. TIM3->CNT = 0;
  315. 800029a: 4b7b ldr r3, [pc, #492] @ (8000488 <DMA1_Channel1_IRQ+0x270>)
  316. 800029c: 2200 movs r2, #0
  317. 800029e: 625a str r2, [r3, #36] @ 0x24
  318. // Check Packet
  319. for (i=0; i<16; i++) {
  320. 80002a0: 231b movs r3, #27
  321. 80002a2: 18fb adds r3, r7, r3
  322. 80002a4: 2200 movs r2, #0
  323. 80002a6: 701a strb r2, [r3, #0]
  324. 80002a8: e062 b.n 8000370 <DMA1_Channel1_IRQ+0x158>
  325. DShot.Dif[i] = DShot.T1[i]-DShot.T2[i];
  326. 80002aa: 201b movs r0, #27
  327. 80002ac: 183b adds r3, r7, r0
  328. 80002ae: 781b ldrb r3, [r3, #0]
  329. 80002b0: 4a76 ldr r2, [pc, #472] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  330. 80002b2: 009b lsls r3, r3, #2
  331. 80002b4: 18d3 adds r3, r2, r3
  332. 80002b6: 3304 adds r3, #4
  333. 80002b8: 681b ldr r3, [r3, #0]
  334. 80002ba: b299 uxth r1, r3
  335. 80002bc: 183b adds r3, r7, r0
  336. 80002be: 781b ldrb r3, [r3, #0]
  337. 80002c0: 4a72 ldr r2, [pc, #456] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  338. 80002c2: 3310 adds r3, #16
  339. 80002c4: 009b lsls r3, r3, #2
  340. 80002c6: 18d3 adds r3, r2, r3
  341. 80002c8: 3304 adds r3, #4
  342. 80002ca: 681b ldr r3, [r3, #0]
  343. 80002cc: b29a uxth r2, r3
  344. 80002ce: 183b adds r3, r7, r0
  345. 80002d0: 781b ldrb r3, [r3, #0]
  346. 80002d2: 1a8a subs r2, r1, r2
  347. 80002d4: b291 uxth r1, r2
  348. 80002d6: 4a6d ldr r2, [pc, #436] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  349. 80002d8: 3340 adds r3, #64 @ 0x40
  350. 80002da: 005b lsls r3, r3, #1
  351. 80002dc: 18d3 adds r3, r2, r3
  352. 80002de: 3304 adds r3, #4
  353. 80002e0: 1c0a adds r2, r1, #0
  354. 80002e2: 801a strh r2, [r3, #0]
  355. if ((DShot.Type == DShot_Auto)) {
  356. 80002e4: 4b69 ldr r3, [pc, #420] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  357. 80002e6: 789b ldrb r3, [r3, #2]
  358. 80002e8: 2b03 cmp r3, #3
  359. 80002ea: d116 bne.n 800031a <DMA1_Channel1_IRQ+0x102>
  360. if (DShot.Dif[i] < dif_min) {
  361. 80002ec: 183b adds r3, r7, r0
  362. 80002ee: 781b ldrb r3, [r3, #0]
  363. 80002f0: 4a66 ldr r2, [pc, #408] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  364. 80002f2: 3340 adds r3, #64 @ 0x40
  365. 80002f4: 005b lsls r3, r3, #1
  366. 80002f6: 18d3 adds r3, r2, r3
  367. 80002f8: 3304 adds r3, #4
  368. 80002fa: 881b ldrh r3, [r3, #0]
  369. 80002fc: 2118 movs r1, #24
  370. 80002fe: 187a adds r2, r7, r1
  371. 8000300: 8812 ldrh r2, [r2, #0]
  372. 8000302: 429a cmp r2, r3
  373. 8000304: d909 bls.n 800031a <DMA1_Channel1_IRQ+0x102>
  374. dif_min = DShot.Dif[i];
  375. 8000306: 183b adds r3, r7, r0
  376. 8000308: 781a ldrb r2, [r3, #0]
  377. 800030a: 187b adds r3, r7, r1
  378. 800030c: 495f ldr r1, [pc, #380] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  379. 800030e: 3240 adds r2, #64 @ 0x40
  380. 8000310: 0052 lsls r2, r2, #1
  381. 8000312: 188a adds r2, r1, r2
  382. 8000314: 3204 adds r2, #4
  383. 8000316: 8812 ldrh r2, [r2, #0]
  384. 8000318: 801a strh r2, [r3, #0]
  385. }
  386. }
  387. if (DShot.Dif[i] > 64000) {
  388. 800031a: 231b movs r3, #27
  389. 800031c: 18fb adds r3, r7, r3
  390. 800031e: 781b ldrb r3, [r3, #0]
  391. 8000320: 4a5a ldr r2, [pc, #360] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  392. 8000322: 3340 adds r3, #64 @ 0x40
  393. 8000324: 005b lsls r3, r3, #1
  394. 8000326: 18d3 adds r3, r2, r3
  395. 8000328: 3304 adds r3, #4
  396. 800032a: 881a ldrh r2, [r3, #0]
  397. 800032c: 23fa movs r3, #250 @ 0xfa
  398. 800032e: 021b lsls r3, r3, #8
  399. 8000330: 429a cmp r2, r3
  400. 8000332: d917 bls.n 8000364 <DMA1_Channel1_IRQ+0x14c>
  401. DShot.Restart_Counter++;
  402. 8000334: 4b55 ldr r3, [pc, #340] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  403. 8000336: 22a6 movs r2, #166 @ 0xa6
  404. 8000338: 5c9b ldrb r3, [r3, r2]
  405. 800033a: 3301 adds r3, #1
  406. 800033c: b2d9 uxtb r1, r3
  407. 800033e: 4b53 ldr r3, [pc, #332] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  408. 8000340: 22a6 movs r2, #166 @ 0xa6
  409. 8000342: 5499 strb r1, [r3, r2]
  410. if (DShot.Restart_Counter < 100) {
  411. 8000344: 4b51 ldr r3, [pc, #324] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  412. 8000346: 22a6 movs r2, #166 @ 0xa6
  413. 8000348: 5c9b ldrb r3, [r3, r2]
  414. 800034a: 2b63 cmp r3, #99 @ 0x63
  415. 800034c: d807 bhi.n 800035e <DMA1_Channel1_IRQ+0x146>
  416. Dshot_DeInit();
  417. 800034e: f000 f903 bl 8000558 <Dshot_DeInit>
  418. Dshot_Init(DShot.Type);
  419. 8000352: 4b4e ldr r3, [pc, #312] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  420. 8000354: 789b ldrb r3, [r3, #2]
  421. 8000356: 0018 movs r0, r3
  422. 8000358: f000 f89a bl 8000490 <Dshot_Init>
  423. } else {
  424. Dshot_DeInit();
  425. }
  426. return;
  427. 800035c: e08f b.n 800047e <DMA1_Channel1_IRQ+0x266>
  428. Dshot_DeInit();
  429. 800035e: f000 f8fb bl 8000558 <Dshot_DeInit>
  430. return;
  431. 8000362: e08c b.n 800047e <DMA1_Channel1_IRQ+0x266>
  432. for (i=0; i<16; i++) {
  433. 8000364: 211b movs r1, #27
  434. 8000366: 187b adds r3, r7, r1
  435. 8000368: 781a ldrb r2, [r3, #0]
  436. 800036a: 187b adds r3, r7, r1
  437. 800036c: 3201 adds r2, #1
  438. 800036e: 701a strb r2, [r3, #0]
  439. 8000370: 231b movs r3, #27
  440. 8000372: 18fb adds r3, r7, r3
  441. 8000374: 781b ldrb r3, [r3, #0]
  442. 8000376: 2b0f cmp r3, #15
  443. 8000378: d997 bls.n 80002aa <DMA1_Channel1_IRQ+0x92>
  444. }
  445. }
  446. // If DShot_Auto then autodetect 'TDif'
  447. if (DShot.Type == DShot_Auto) {
  448. 800037a: 4b44 ldr r3, [pc, #272] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  449. 800037c: 789b ldrb r3, [r3, #2]
  450. 800037e: 2b03 cmp r3, #3
  451. 8000380: d10b bne.n 800039a <DMA1_Channel1_IRQ+0x182>
  452. DShot.TDif = dif_min + (dif_min / 2);
  453. 8000382: 2118 movs r1, #24
  454. 8000384: 187b adds r3, r7, r1
  455. 8000386: 881b ldrh r3, [r3, #0]
  456. 8000388: 085b lsrs r3, r3, #1
  457. 800038a: b29a uxth r2, r3
  458. 800038c: 187b adds r3, r7, r1
  459. 800038e: 881b ldrh r3, [r3, #0]
  460. 8000390: 18d3 adds r3, r2, r3
  461. 8000392: b299 uxth r1, r3
  462. 8000394: 4b3d ldr r3, [pc, #244] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  463. 8000396: 22a4 movs r2, #164 @ 0xa4
  464. 8000398: 5299 strh r1, [r3, r2]
  465. }
  466. value = 0;
  467. 800039a: 231e movs r3, #30
  468. 800039c: 18fb adds r3, r7, r3
  469. 800039e: 2200 movs r2, #0
  470. 80003a0: 801a strh r2, [r3, #0]
  471. crc_p = 0;
  472. 80003a2: 231c movs r3, #28
  473. 80003a4: 18fb adds r3, r7, r3
  474. 80003a6: 2200 movs r2, #0
  475. 80003a8: 801a strh r2, [r3, #0]
  476. for (i=0; i<16; i++) {
  477. 80003aa: 231b movs r3, #27
  478. 80003ac: 18fb adds r3, r7, r3
  479. 80003ae: 2200 movs r2, #0
  480. 80003b0: 701a strb r2, [r3, #0]
  481. 80003b2: e03b b.n 800042c <DMA1_Channel1_IRQ+0x214>
  482. D = (DShot.Dif[i] > DShot.TDif);
  483. 80003b4: 201b movs r0, #27
  484. 80003b6: 183b adds r3, r7, r0
  485. 80003b8: 781b ldrb r3, [r3, #0]
  486. 80003ba: 4a34 ldr r2, [pc, #208] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  487. 80003bc: 3340 adds r3, #64 @ 0x40
  488. 80003be: 005b lsls r3, r3, #1
  489. 80003c0: 18d3 adds r3, r2, r3
  490. 80003c2: 3304 adds r3, #4
  491. 80003c4: 881b ldrh r3, [r3, #0]
  492. 80003c6: 4a31 ldr r2, [pc, #196] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  493. 80003c8: 21a4 movs r1, #164 @ 0xa4
  494. 80003ca: 5a52 ldrh r2, [r2, r1]
  495. 80003cc: 429a cmp r2, r3
  496. 80003ce: 419b sbcs r3, r3
  497. 80003d0: 425b negs r3, r3
  498. 80003d2: b2da uxtb r2, r3
  499. 80003d4: 210d movs r1, #13
  500. 80003d6: 187b adds r3, r7, r1
  501. 80003d8: 701a strb r2, [r3, #0]
  502. // Calculate value
  503. if (i <= 11) {
  504. 80003da: 183b adds r3, r7, r0
  505. 80003dc: 781b ldrb r3, [r3, #0]
  506. 80003de: 2b0b cmp r3, #11
  507. 80003e0: d80c bhi.n 80003fc <DMA1_Channel1_IRQ+0x1e4>
  508. value = (value << 1) | D;
  509. 80003e2: 201e movs r0, #30
  510. 80003e4: 183b adds r3, r7, r0
  511. 80003e6: 881b ldrh r3, [r3, #0]
  512. 80003e8: 005b lsls r3, r3, #1
  513. 80003ea: b21a sxth r2, r3
  514. 80003ec: 187b adds r3, r7, r1
  515. 80003ee: 781b ldrb r3, [r3, #0]
  516. 80003f0: b21b sxth r3, r3
  517. 80003f2: 4313 orrs r3, r2
  518. 80003f4: b21a sxth r2, r3
  519. 80003f6: 183b adds r3, r7, r0
  520. 80003f8: 801a strh r2, [r3, #0]
  521. 80003fa: e011 b.n 8000420 <DMA1_Channel1_IRQ+0x208>
  522. } else {
  523. if (i > 11) { // Get CRC from packet
  524. 80003fc: 231b movs r3, #27
  525. 80003fe: 18fb adds r3, r7, r3
  526. 8000400: 781b ldrb r3, [r3, #0]
  527. 8000402: 2b0b cmp r3, #11
  528. 8000404: d90c bls.n 8000420 <DMA1_Channel1_IRQ+0x208>
  529. crc_p = (crc_p << 1) | D;
  530. 8000406: 211c movs r1, #28
  531. 8000408: 187b adds r3, r7, r1
  532. 800040a: 881b ldrh r3, [r3, #0]
  533. 800040c: 005b lsls r3, r3, #1
  534. 800040e: b21a sxth r2, r3
  535. 8000410: 230d movs r3, #13
  536. 8000412: 18fb adds r3, r7, r3
  537. 8000414: 781b ldrb r3, [r3, #0]
  538. 8000416: b21b sxth r3, r3
  539. 8000418: 4313 orrs r3, r2
  540. 800041a: b21a sxth r2, r3
  541. 800041c: 187b adds r3, r7, r1
  542. 800041e: 801a strh r2, [r3, #0]
  543. for (i=0; i<16; i++) {
  544. 8000420: 211b movs r1, #27
  545. 8000422: 187b adds r3, r7, r1
  546. 8000424: 781a ldrb r2, [r3, #0]
  547. 8000426: 187b adds r3, r7, r1
  548. 8000428: 3201 adds r2, #1
  549. 800042a: 701a strb r2, [r3, #0]
  550. 800042c: 231b movs r3, #27
  551. 800042e: 18fb adds r3, r7, r3
  552. 8000430: 781b ldrb r3, [r3, #0]
  553. 8000432: 2b0f cmp r3, #15
  554. 8000434: d9be bls.n 80003b4 <DMA1_Channel1_IRQ+0x19c>
  555. }
  556. }
  557. // Calculate CRC
  558. crc_d = (value ^ (value >> 4) ^ (value >> 8)) & 0xF;
  559. 8000436: 201e movs r0, #30
  560. 8000438: 183b adds r3, r7, r0
  561. 800043a: 881b ldrh r3, [r3, #0]
  562. 800043c: 091b lsrs r3, r3, #4
  563. 800043e: b29a uxth r2, r3
  564. 8000440: 183b adds r3, r7, r0
  565. 8000442: 881b ldrh r3, [r3, #0]
  566. 8000444: 4053 eors r3, r2
  567. 8000446: b29a uxth r2, r3
  568. 8000448: 183b adds r3, r7, r0
  569. 800044a: 881b ldrh r3, [r3, #0]
  570. 800044c: 0a1b lsrs r3, r3, #8
  571. 800044e: b29b uxth r3, r3
  572. 8000450: 4053 eors r3, r2
  573. 8000452: b29a uxth r2, r3
  574. 8000454: 240e movs r4, #14
  575. 8000456: 193b adds r3, r7, r4
  576. 8000458: 210f movs r1, #15
  577. 800045a: 400a ands r2, r1
  578. 800045c: 801a strh r2, [r3, #0]
  579. // Check CRC
  580. if (crc_d == crc_p ) {
  581. 800045e: 193a adds r2, r7, r4
  582. 8000460: 231c movs r3, #28
  583. 8000462: 18fb adds r3, r7, r3
  584. 8000464: 8812 ldrh r2, [r2, #0]
  585. 8000466: 881b ldrh r3, [r3, #0]
  586. 8000468: 429a cmp r2, r3
  587. 800046a: d108 bne.n 800047e <DMA1_Channel1_IRQ+0x266>
  588. DShot.Value = (value >> 1) & 0x7FF;
  589. 800046c: 183b adds r3, r7, r0
  590. 800046e: 881b ldrh r3, [r3, #0]
  591. 8000470: 085b lsrs r3, r3, #1
  592. 8000472: b29b uxth r3, r3
  593. 8000474: 055b lsls r3, r3, #21
  594. 8000476: 0d5b lsrs r3, r3, #21
  595. 8000478: b29a uxth r2, r3
  596. 800047a: 4b04 ldr r3, [pc, #16] @ (800048c <DMA1_Channel1_IRQ+0x274>)
  597. 800047c: 801a strh r2, [r3, #0]
  598. }
  599. }
  600. }
  601. 800047e: 46bd mov sp, r7
  602. 8000480: b009 add sp, #36 @ 0x24
  603. 8000482: bd90 pop {r4, r7, pc}
  604. 8000484: 40020000 .word 0x40020000
  605. 8000488: 40000400 .word 0x40000400
  606. 800048c: 20000028 .word 0x20000028
  607. 08000490 <Dshot_Init>:
  608. void Dshot_Init(uint8_t type) {
  609. 8000490: b580 push {r7, lr}
  610. 8000492: b082 sub sp, #8
  611. 8000494: af00 add r7, sp, #0
  612. 8000496: 0002 movs r2, r0
  613. 8000498: 1dfb adds r3, r7, #7
  614. 800049a: 701a strb r2, [r3, #0]
  615. switch ( type )
  616. 800049c: 1dfb adds r3, r7, #7
  617. 800049e: 781b ldrb r3, [r3, #0]
  618. 80004a0: 2b03 cmp r3, #3
  619. 80004a2: d020 beq.n 80004e6 <Dshot_Init+0x56>
  620. 80004a4: dc27 bgt.n 80004f6 <Dshot_Init+0x66>
  621. 80004a6: 2b02 cmp r3, #2
  622. 80004a8: d015 beq.n 80004d6 <Dshot_Init+0x46>
  623. 80004aa: dc24 bgt.n 80004f6 <Dshot_Init+0x66>
  624. 80004ac: 2b00 cmp r3, #0
  625. 80004ae: d002 beq.n 80004b6 <Dshot_Init+0x26>
  626. 80004b0: 2b01 cmp r3, #1
  627. 80004b2: d008 beq.n 80004c6 <Dshot_Init+0x36>
  628. 80004b4: e01f b.n 80004f6 <Dshot_Init+0x66>
  629. {
  630. case DShot_150:
  631. DShot.TDif = DSHOT150_TIM_TRIG;
  632. 80004b6: 4b23 ldr r3, [pc, #140] @ (8000544 <Dshot_Init+0xb4>)
  633. 80004b8: 22a4 movs r2, #164 @ 0xa4
  634. 80004ba: 21d5 movs r1, #213 @ 0xd5
  635. 80004bc: 5299 strh r1, [r3, r2]
  636. DShot.Type = DShot_150;
  637. 80004be: 4b21 ldr r3, [pc, #132] @ (8000544 <Dshot_Init+0xb4>)
  638. 80004c0: 2200 movs r2, #0
  639. 80004c2: 709a strb r2, [r3, #2]
  640. break;
  641. 80004c4: e01f b.n 8000506 <Dshot_Init+0x76>
  642. case DShot_300:
  643. DShot.TDif = DSHOT300_TIM_TRIG;
  644. 80004c6: 4b1f ldr r3, [pc, #124] @ (8000544 <Dshot_Init+0xb4>)
  645. 80004c8: 22a4 movs r2, #164 @ 0xa4
  646. 80004ca: 216a movs r1, #106 @ 0x6a
  647. 80004cc: 5299 strh r1, [r3, r2]
  648. DShot.Type = DShot_300;
  649. 80004ce: 4b1d ldr r3, [pc, #116] @ (8000544 <Dshot_Init+0xb4>)
  650. 80004d0: 2201 movs r2, #1
  651. 80004d2: 709a strb r2, [r3, #2]
  652. break;
  653. 80004d4: e017 b.n 8000506 <Dshot_Init+0x76>
  654. case DShot_600:
  655. DShot.TDif = DSHOT600_TIM_TRIG;
  656. 80004d6: 4b1b ldr r3, [pc, #108] @ (8000544 <Dshot_Init+0xb4>)
  657. 80004d8: 22a4 movs r2, #164 @ 0xa4
  658. 80004da: 2135 movs r1, #53 @ 0x35
  659. 80004dc: 5299 strh r1, [r3, r2]
  660. DShot.Type = DShot_600;
  661. 80004de: 4b19 ldr r3, [pc, #100] @ (8000544 <Dshot_Init+0xb4>)
  662. 80004e0: 2202 movs r2, #2
  663. 80004e2: 709a strb r2, [r3, #2]
  664. break;
  665. 80004e4: e00f b.n 8000506 <Dshot_Init+0x76>
  666. case DShot_Auto:
  667. DShot.TDif = 0;
  668. 80004e6: 4b17 ldr r3, [pc, #92] @ (8000544 <Dshot_Init+0xb4>)
  669. 80004e8: 22a4 movs r2, #164 @ 0xa4
  670. 80004ea: 2100 movs r1, #0
  671. 80004ec: 5299 strh r1, [r3, r2]
  672. DShot.Type = DShot_Auto;
  673. 80004ee: 4b15 ldr r3, [pc, #84] @ (8000544 <Dshot_Init+0xb4>)
  674. 80004f0: 2203 movs r2, #3
  675. 80004f2: 709a strb r2, [r3, #2]
  676. break;
  677. 80004f4: e007 b.n 8000506 <Dshot_Init+0x76>
  678. default:
  679. DShot.TDif = 0;
  680. 80004f6: 4b13 ldr r3, [pc, #76] @ (8000544 <Dshot_Init+0xb4>)
  681. 80004f8: 22a4 movs r2, #164 @ 0xa4
  682. 80004fa: 2100 movs r1, #0
  683. 80004fc: 5299 strh r1, [r3, r2]
  684. DShot.Type = DShot_Auto;
  685. 80004fe: 4b11 ldr r3, [pc, #68] @ (8000544 <Dshot_Init+0xb4>)
  686. 8000500: 2203 movs r2, #3
  687. 8000502: 709a strb r2, [r3, #2]
  688. break;
  689. 8000504: 46c0 nop @ (mov r8, r8)
  690. }
  691. htim3.Init.Prescaler = 0;
  692. 8000506: 4b10 ldr r3, [pc, #64] @ (8000548 <Dshot_Init+0xb8>)
  693. 8000508: 2200 movs r2, #0
  694. 800050a: 605a str r2, [r3, #4]
  695. htim3.Init.Period = 20000;
  696. 800050c: 4b0e ldr r3, [pc, #56] @ (8000548 <Dshot_Init+0xb8>)
  697. 800050e: 4a0f ldr r2, [pc, #60] @ (800054c <Dshot_Init+0xbc>)
  698. 8000510: 60da str r2, [r3, #12]
  699. if (HAL_TIM_Base_Init(&htim3) != HAL_OK) {
  700. 8000512: 4b0d ldr r3, [pc, #52] @ (8000548 <Dshot_Init+0xb8>)
  701. 8000514: 0018 movs r0, r3
  702. 8000516: f001 fce3 bl 8001ee0 <HAL_TIM_Base_Init>
  703. 800051a: 1e03 subs r3, r0, #0
  704. 800051c: d001 beq.n 8000522 <Dshot_Init+0x92>
  705. Error_Handler();
  706. 800051e: f000 f9c3 bl 80008a8 <Error_Handler>
  707. }
  708. HAL_TIM_IC_Start_DMA(&htim3, TIM_CHANNEL_1, DShot.T1, 16);
  709. 8000522: 4a0b ldr r2, [pc, #44] @ (8000550 <Dshot_Init+0xc0>)
  710. 8000524: 4808 ldr r0, [pc, #32] @ (8000548 <Dshot_Init+0xb8>)
  711. 8000526: 2310 movs r3, #16
  712. 8000528: 2100 movs r1, #0
  713. 800052a: f001 fd91 bl 8002050 <HAL_TIM_IC_Start_DMA>
  714. HAL_TIM_IC_Start_DMA(&htim3, TIM_CHANNEL_2, DShot.T2, 16);
  715. 800052e: 4a09 ldr r2, [pc, #36] @ (8000554 <Dshot_Init+0xc4>)
  716. 8000530: 4805 ldr r0, [pc, #20] @ (8000548 <Dshot_Init+0xb8>)
  717. 8000532: 2310 movs r3, #16
  718. 8000534: 2104 movs r1, #4
  719. 8000536: f001 fd8b bl 8002050 <HAL_TIM_IC_Start_DMA>
  720. }
  721. 800053a: 46c0 nop @ (mov r8, r8)
  722. 800053c: 46bd mov sp, r7
  723. 800053e: b002 add sp, #8
  724. 8000540: bd80 pop {r7, pc}
  725. 8000542: 46c0 nop @ (mov r8, r8)
  726. 8000544: 20000028 .word 0x20000028
  727. 8000548: 200000d8 .word 0x200000d8
  728. 800054c: 00004e20 .word 0x00004e20
  729. 8000550: 2000002c .word 0x2000002c
  730. 8000554: 2000006c .word 0x2000006c
  731. 08000558 <Dshot_DeInit>:
  732. void Dshot_DeInit(void) {
  733. 8000558: b580 push {r7, lr}
  734. 800055a: af00 add r7, sp, #0
  735. HAL_TIM_IC_Stop_DMA(&htim3, TIM_CHANNEL_1);
  736. 800055c: 4b06 ldr r3, [pc, #24] @ (8000578 <Dshot_DeInit+0x20>)
  737. 800055e: 2100 movs r1, #0
  738. 8000560: 0018 movs r0, r3
  739. 8000562: f001 ff2d bl 80023c0 <HAL_TIM_IC_Stop_DMA>
  740. HAL_TIM_IC_Stop_DMA(&htim3, TIM_CHANNEL_2);
  741. 8000566: 4b04 ldr r3, [pc, #16] @ (8000578 <Dshot_DeInit+0x20>)
  742. 8000568: 2104 movs r1, #4
  743. 800056a: 0018 movs r0, r3
  744. 800056c: f001 ff28 bl 80023c0 <HAL_TIM_IC_Stop_DMA>
  745. }
  746. 8000570: 46c0 nop @ (mov r8, r8)
  747. 8000572: 46bd mov sp, r7
  748. 8000574: bd80 pop {r7, pc}
  749. 8000576: 46c0 nop @ (mov r8, r8)
  750. 8000578: 200000d8 .word 0x200000d8
  751. 0800057c <TIM3_IRQ>:
  752. uint32_t PWMInput_Get(void) {
  753. return PWMInput.Value;
  754. }
  755. void TIM3_IRQ(void) {
  756. 800057c: b580 push {r7, lr}
  757. 800057e: af00 add r7, sp, #0
  758. if (__HAL_TIM_GET_IT_SOURCE(&htim3, TIM_IT_CC1) != RESET)
  759. 8000580: 4b2c ldr r3, [pc, #176] @ (8000634 <TIM3_IRQ+0xb8>)
  760. 8000582: 681b ldr r3, [r3, #0]
  761. 8000584: 68db ldr r3, [r3, #12]
  762. 8000586: 2202 movs r2, #2
  763. 8000588: 4013 ands r3, r2
  764. 800058a: 2b02 cmp r3, #2
  765. 800058c: d110 bne.n 80005b0 <TIM3_IRQ+0x34>
  766. {
  767. if (__HAL_TIM_GET_FLAG(&htim3, TIM_FLAG_CC1) != RESET)
  768. 800058e: 4b29 ldr r3, [pc, #164] @ (8000634 <TIM3_IRQ+0xb8>)
  769. 8000590: 681b ldr r3, [r3, #0]
  770. 8000592: 691b ldr r3, [r3, #16]
  771. 8000594: 2202 movs r2, #2
  772. 8000596: 4013 ands r3, r2
  773. 8000598: 2b02 cmp r3, #2
  774. 800059a: d104 bne.n 80005a6 <TIM3_IRQ+0x2a>
  775. {
  776. __HAL_TIM_CLEAR_FLAG(&htim3, TIM_FLAG_CC1);
  777. 800059c: 4b25 ldr r3, [pc, #148] @ (8000634 <TIM3_IRQ+0xb8>)
  778. 800059e: 681b ldr r3, [r3, #0]
  779. 80005a0: 2203 movs r2, #3
  780. 80005a2: 4252 negs r2, r2
  781. 80005a4: 611a str r2, [r3, #16]
  782. }
  783. __HAL_TIM_CLEAR_IT(&htim3, TIM_IT_CC1);
  784. 80005a6: 4b23 ldr r3, [pc, #140] @ (8000634 <TIM3_IRQ+0xb8>)
  785. 80005a8: 681b ldr r3, [r3, #0]
  786. 80005aa: 2203 movs r2, #3
  787. 80005ac: 4252 negs r2, r2
  788. 80005ae: 611a str r2, [r3, #16]
  789. }
  790. if (__HAL_TIM_GET_IT_SOURCE(&htim3, TIM_IT_CC2) != RESET)
  791. 80005b0: 4b20 ldr r3, [pc, #128] @ (8000634 <TIM3_IRQ+0xb8>)
  792. 80005b2: 681b ldr r3, [r3, #0]
  793. 80005b4: 68db ldr r3, [r3, #12]
  794. 80005b6: 2204 movs r2, #4
  795. 80005b8: 4013 ands r3, r2
  796. 80005ba: 2b04 cmp r3, #4
  797. 80005bc: d11e bne.n 80005fc <TIM3_IRQ+0x80>
  798. {
  799. if (__HAL_TIM_GET_FLAG(&htim3, TIM_FLAG_CC2) != RESET)
  800. 80005be: 4b1d ldr r3, [pc, #116] @ (8000634 <TIM3_IRQ+0xb8>)
  801. 80005c0: 681b ldr r3, [r3, #0]
  802. 80005c2: 691b ldr r3, [r3, #16]
  803. 80005c4: 2204 movs r2, #4
  804. 80005c6: 4013 ands r3, r2
  805. 80005c8: 2b04 cmp r3, #4
  806. 80005ca: d112 bne.n 80005f2 <TIM3_IRQ+0x76>
  807. {
  808. __HAL_TIM_CLEAR_FLAG(&htim3, TIM_FLAG_CC2);
  809. 80005cc: 4b19 ldr r3, [pc, #100] @ (8000634 <TIM3_IRQ+0xb8>)
  810. 80005ce: 681b ldr r3, [r3, #0]
  811. 80005d0: 2205 movs r2, #5
  812. 80005d2: 4252 negs r2, r2
  813. 80005d4: 611a str r2, [r3, #16]
  814. PWMInput.Value = HAL_TIM_ReadCapturedValue(&htim3, TIM_CHANNEL_1);
  815. 80005d6: 4b17 ldr r3, [pc, #92] @ (8000634 <TIM3_IRQ+0xb8>)
  816. 80005d8: 2100 movs r1, #0
  817. 80005da: 0018 movs r0, r3
  818. 80005dc: f002 f93e bl 800285c <HAL_TIM_ReadCapturedValue>
  819. 80005e0: 0002 movs r2, r0
  820. 80005e2: 4b15 ldr r3, [pc, #84] @ (8000638 <TIM3_IRQ+0xbc>)
  821. 80005e4: 601a str r2, [r3, #0]
  822. TIM3->CNT = 0;
  823. 80005e6: 4b15 ldr r3, [pc, #84] @ (800063c <TIM3_IRQ+0xc0>)
  824. 80005e8: 2200 movs r2, #0
  825. 80005ea: 625a str r2, [r3, #36] @ 0x24
  826. PWMInput.OverCaptureCounter = 0;
  827. 80005ec: 4b12 ldr r3, [pc, #72] @ (8000638 <TIM3_IRQ+0xbc>)
  828. 80005ee: 2200 movs r2, #0
  829. 80005f0: 605a str r2, [r3, #4]
  830. }
  831. __HAL_TIM_CLEAR_IT(&htim3, TIM_IT_CC2);
  832. 80005f2: 4b10 ldr r3, [pc, #64] @ (8000634 <TIM3_IRQ+0xb8>)
  833. 80005f4: 681b ldr r3, [r3, #0]
  834. 80005f6: 2205 movs r2, #5
  835. 80005f8: 4252 negs r2, r2
  836. 80005fa: 611a str r2, [r3, #16]
  837. }
  838. if (__HAL_TIM_GET_IT_SOURCE(&htim3, TIM_IT_UPDATE) != RESET)
  839. 80005fc: 4b0d ldr r3, [pc, #52] @ (8000634 <TIM3_IRQ+0xb8>)
  840. 80005fe: 681b ldr r3, [r3, #0]
  841. 8000600: 68db ldr r3, [r3, #12]
  842. 8000602: 2201 movs r2, #1
  843. 8000604: 4013 ands r3, r2
  844. 8000606: 2b01 cmp r3, #1
  845. 8000608: d111 bne.n 800062e <TIM3_IRQ+0xb2>
  846. {
  847. __HAL_TIM_CLEAR_IT(&htim3, TIM_IT_UPDATE);
  848. 800060a: 4b0a ldr r3, [pc, #40] @ (8000634 <TIM3_IRQ+0xb8>)
  849. 800060c: 681b ldr r3, [r3, #0]
  850. 800060e: 2202 movs r2, #2
  851. 8000610: 4252 negs r2, r2
  852. 8000612: 611a str r2, [r3, #16]
  853. if (PWMInput.OverCaptureCounter > 3) {
  854. 8000614: 4b08 ldr r3, [pc, #32] @ (8000638 <TIM3_IRQ+0xbc>)
  855. 8000616: 685b ldr r3, [r3, #4]
  856. 8000618: 2b03 cmp r3, #3
  857. 800061a: d903 bls.n 8000624 <TIM3_IRQ+0xa8>
  858. PWMInput.Value = 0;
  859. 800061c: 4b06 ldr r3, [pc, #24] @ (8000638 <TIM3_IRQ+0xbc>)
  860. 800061e: 2200 movs r2, #0
  861. 8000620: 601a str r2, [r3, #0]
  862. } else {
  863. PWMInput.OverCaptureCounter++;
  864. }
  865. }
  866. }
  867. 8000622: e004 b.n 800062e <TIM3_IRQ+0xb2>
  868. PWMInput.OverCaptureCounter++;
  869. 8000624: 4b04 ldr r3, [pc, #16] @ (8000638 <TIM3_IRQ+0xbc>)
  870. 8000626: 685b ldr r3, [r3, #4]
  871. 8000628: 1c5a adds r2, r3, #1
  872. 800062a: 4b03 ldr r3, [pc, #12] @ (8000638 <TIM3_IRQ+0xbc>)
  873. 800062c: 605a str r2, [r3, #4]
  874. }
  875. 800062e: 46c0 nop @ (mov r8, r8)
  876. 8000630: 46bd mov sp, r7
  877. 8000632: bd80 pop {r7, pc}
  878. 8000634: 200000d8 .word 0x200000d8
  879. 8000638: 200000d0 .word 0x200000d0
  880. 800063c: 40000400 .word 0x40000400
  881. 08000640 <main>:
  882. /**
  883. * @brief The application entry point.
  884. * @retval int
  885. */
  886. int main(void)
  887. {
  888. 8000640: b580 push {r7, lr}
  889. 8000642: af00 add r7, sp, #0
  890. /* USER CODE END 1 */
  891. /* MCU Configuration--------------------------------------------------------*/
  892. /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  893. HAL_Init();
  894. 8000644: f000 fa7c bl 8000b40 <HAL_Init>
  895. /* USER CODE BEGIN Init */
  896. /* USER CODE END Init */
  897. /* Configure the system clock */
  898. SystemClock_Config();
  899. 8000648: f000 f80b bl 8000662 <SystemClock_Config>
  900. /* USER CODE BEGIN SysInit */
  901. /* USER CODE END SysInit */
  902. /* Initialize all configured peripherals */
  903. MX_GPIO_Init();
  904. 800064c: f000 f916 bl 800087c <MX_GPIO_Init>
  905. MX_DMA_Init();
  906. 8000650: f000 f8ee bl 8000830 <MX_DMA_Init>
  907. MX_TIM3_Init();
  908. 8000654: f000 f860 bl 8000718 <MX_TIM3_Init>
  909. /* USER CODE BEGIN 2 */
  910. User_Init();
  911. 8000658: f000 fa37 bl 8000aca <User_Init>
  912. /* Infinite loop */
  913. /* USER CODE BEGIN WHILE */
  914. while (1)
  915. {
  916. User_MainLoop();
  917. 800065c: f000 fa3d bl 8000ada <User_MainLoop>
  918. 8000660: e7fc b.n 800065c <main+0x1c>
  919. 08000662 <SystemClock_Config>:
  920. /**
  921. * @brief System Clock Configuration
  922. * @retval None
  923. */
  924. void SystemClock_Config(void)
  925. {
  926. 8000662: b590 push {r4, r7, lr}
  927. 8000664: b093 sub sp, #76 @ 0x4c
  928. 8000666: af00 add r7, sp, #0
  929. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  930. 8000668: 2414 movs r4, #20
  931. 800066a: 193b adds r3, r7, r4
  932. 800066c: 0018 movs r0, r3
  933. 800066e: 2334 movs r3, #52 @ 0x34
  934. 8000670: 001a movs r2, r3
  935. 8000672: 2100 movs r1, #0
  936. 8000674: f002 fcd8 bl 8003028 <memset>
  937. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  938. 8000678: 1d3b adds r3, r7, #4
  939. 800067a: 0018 movs r0, r3
  940. 800067c: 2310 movs r3, #16
  941. 800067e: 001a movs r2, r3
  942. 8000680: 2100 movs r1, #0
  943. 8000682: f002 fcd1 bl 8003028 <memset>
  944. /** Configure the main internal regulator output voltage
  945. */
  946. HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1);
  947. 8000686: 2380 movs r3, #128 @ 0x80
  948. 8000688: 009b lsls r3, r3, #2
  949. 800068a: 0018 movs r0, r3
  950. 800068c: f000 ff4e bl 800152c <HAL_PWREx_ControlVoltageScaling>
  951. /** Initializes the RCC Oscillators according to the specified parameters
  952. * in the RCC_OscInitTypeDef structure.
  953. */
  954. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
  955. 8000690: 193b adds r3, r7, r4
  956. 8000692: 2202 movs r2, #2
  957. 8000694: 601a str r2, [r3, #0]
  958. RCC_OscInitStruct.HSIState = RCC_HSI_ON;
  959. 8000696: 193b adds r3, r7, r4
  960. 8000698: 2280 movs r2, #128 @ 0x80
  961. 800069a: 0052 lsls r2, r2, #1
  962. 800069c: 60da str r2, [r3, #12]
  963. RCC_OscInitStruct.HSIDiv = RCC_HSI_DIV1;
  964. 800069e: 0021 movs r1, r4
  965. 80006a0: 187b adds r3, r7, r1
  966. 80006a2: 2200 movs r2, #0
  967. 80006a4: 611a str r2, [r3, #16]
  968. RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
  969. 80006a6: 187b adds r3, r7, r1
  970. 80006a8: 2240 movs r2, #64 @ 0x40
  971. 80006aa: 615a str r2, [r3, #20]
  972. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  973. 80006ac: 187b adds r3, r7, r1
  974. 80006ae: 2202 movs r2, #2
  975. 80006b0: 61da str r2, [r3, #28]
  976. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
  977. 80006b2: 187b adds r3, r7, r1
  978. 80006b4: 2202 movs r2, #2
  979. 80006b6: 621a str r2, [r3, #32]
  980. RCC_OscInitStruct.PLL.PLLM = RCC_PLLM_DIV1;
  981. 80006b8: 187b adds r3, r7, r1
  982. 80006ba: 2200 movs r2, #0
  983. 80006bc: 625a str r2, [r3, #36] @ 0x24
  984. RCC_OscInitStruct.PLL.PLLN = 8;
  985. 80006be: 187b adds r3, r7, r1
  986. 80006c0: 2208 movs r2, #8
  987. 80006c2: 629a str r2, [r3, #40] @ 0x28
  988. RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
  989. 80006c4: 187b adds r3, r7, r1
  990. 80006c6: 2280 movs r2, #128 @ 0x80
  991. 80006c8: 0292 lsls r2, r2, #10
  992. 80006ca: 62da str r2, [r3, #44] @ 0x2c
  993. RCC_OscInitStruct.PLL.PLLR = RCC_PLLR_DIV2;
  994. 80006cc: 187b adds r3, r7, r1
  995. 80006ce: 2280 movs r2, #128 @ 0x80
  996. 80006d0: 0592 lsls r2, r2, #22
  997. 80006d2: 631a str r2, [r3, #48] @ 0x30
  998. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  999. 80006d4: 187b adds r3, r7, r1
  1000. 80006d6: 0018 movs r0, r3
  1001. 80006d8: f000 ff68 bl 80015ac <HAL_RCC_OscConfig>
  1002. 80006dc: 1e03 subs r3, r0, #0
  1003. 80006de: d001 beq.n 80006e4 <SystemClock_Config+0x82>
  1004. {
  1005. Error_Handler();
  1006. 80006e0: f000 f8e2 bl 80008a8 <Error_Handler>
  1007. }
  1008. /** Initializes the CPU, AHB and APB buses clocks
  1009. */
  1010. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  1011. 80006e4: 1d3b adds r3, r7, #4
  1012. 80006e6: 2207 movs r2, #7
  1013. 80006e8: 601a str r2, [r3, #0]
  1014. |RCC_CLOCKTYPE_PCLK1;
  1015. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  1016. 80006ea: 1d3b adds r3, r7, #4
  1017. 80006ec: 2202 movs r2, #2
  1018. 80006ee: 605a str r2, [r3, #4]
  1019. RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
  1020. 80006f0: 1d3b adds r3, r7, #4
  1021. 80006f2: 2200 movs r2, #0
  1022. 80006f4: 609a str r2, [r3, #8]
  1023. RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
  1024. 80006f6: 1d3b adds r3, r7, #4
  1025. 80006f8: 2200 movs r2, #0
  1026. 80006fa: 60da str r2, [r3, #12]
  1027. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
  1028. 80006fc: 1d3b adds r3, r7, #4
  1029. 80006fe: 2102 movs r1, #2
  1030. 8000700: 0018 movs r0, r3
  1031. 8000702: f001 fa63 bl 8001bcc <HAL_RCC_ClockConfig>
  1032. 8000706: 1e03 subs r3, r0, #0
  1033. 8000708: d001 beq.n 800070e <SystemClock_Config+0xac>
  1034. {
  1035. Error_Handler();
  1036. 800070a: f000 f8cd bl 80008a8 <Error_Handler>
  1037. }
  1038. }
  1039. 800070e: 46c0 nop @ (mov r8, r8)
  1040. 8000710: 46bd mov sp, r7
  1041. 8000712: b013 add sp, #76 @ 0x4c
  1042. 8000714: bd90 pop {r4, r7, pc}
  1043. ...
  1044. 08000718 <MX_TIM3_Init>:
  1045. * @brief TIM3 Initialization Function
  1046. * @param None
  1047. * @retval None
  1048. */
  1049. static void MX_TIM3_Init(void)
  1050. {
  1051. 8000718: b580 push {r7, lr}
  1052. 800071a: b08c sub sp, #48 @ 0x30
  1053. 800071c: af00 add r7, sp, #0
  1054. /* USER CODE BEGIN TIM3_Init 0 */
  1055. /* USER CODE END TIM3_Init 0 */
  1056. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  1057. 800071e: 2320 movs r3, #32
  1058. 8000720: 18fb adds r3, r7, r3
  1059. 8000722: 0018 movs r0, r3
  1060. 8000724: 2310 movs r3, #16
  1061. 8000726: 001a movs r2, r3
  1062. 8000728: 2100 movs r1, #0
  1063. 800072a: f002 fc7d bl 8003028 <memset>
  1064. TIM_MasterConfigTypeDef sMasterConfig = {0};
  1065. 800072e: 2314 movs r3, #20
  1066. 8000730: 18fb adds r3, r7, r3
  1067. 8000732: 0018 movs r0, r3
  1068. 8000734: 230c movs r3, #12
  1069. 8000736: 001a movs r2, r3
  1070. 8000738: 2100 movs r1, #0
  1071. 800073a: f002 fc75 bl 8003028 <memset>
  1072. TIM_IC_InitTypeDef sConfigIC = {0};
  1073. 800073e: 1d3b adds r3, r7, #4
  1074. 8000740: 0018 movs r0, r3
  1075. 8000742: 2310 movs r3, #16
  1076. 8000744: 001a movs r2, r3
  1077. 8000746: 2100 movs r1, #0
  1078. 8000748: f002 fc6e bl 8003028 <memset>
  1079. /* USER CODE BEGIN TIM3_Init 1 */
  1080. /* USER CODE END TIM3_Init 1 */
  1081. htim3.Instance = TIM3;
  1082. 800074c: 4b35 ldr r3, [pc, #212] @ (8000824 <MX_TIM3_Init+0x10c>)
  1083. 800074e: 4a36 ldr r2, [pc, #216] @ (8000828 <MX_TIM3_Init+0x110>)
  1084. 8000750: 601a str r2, [r3, #0]
  1085. htim3.Init.Prescaler = 0;
  1086. 8000752: 4b34 ldr r3, [pc, #208] @ (8000824 <MX_TIM3_Init+0x10c>)
  1087. 8000754: 2200 movs r2, #0
  1088. 8000756: 605a str r2, [r3, #4]
  1089. htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
  1090. 8000758: 4b32 ldr r3, [pc, #200] @ (8000824 <MX_TIM3_Init+0x10c>)
  1091. 800075a: 2200 movs r2, #0
  1092. 800075c: 609a str r2, [r3, #8]
  1093. htim3.Init.Period = 20000;
  1094. 800075e: 4b31 ldr r3, [pc, #196] @ (8000824 <MX_TIM3_Init+0x10c>)
  1095. 8000760: 4a32 ldr r2, [pc, #200] @ (800082c <MX_TIM3_Init+0x114>)
  1096. 8000762: 60da str r2, [r3, #12]
  1097. htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  1098. 8000764: 4b2f ldr r3, [pc, #188] @ (8000824 <MX_TIM3_Init+0x10c>)
  1099. 8000766: 2200 movs r2, #0
  1100. 8000768: 611a str r2, [r3, #16]
  1101. htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  1102. 800076a: 4b2e ldr r3, [pc, #184] @ (8000824 <MX_TIM3_Init+0x10c>)
  1103. 800076c: 2200 movs r2, #0
  1104. 800076e: 619a str r2, [r3, #24]
  1105. if (HAL_TIM_Base_Init(&htim3) != HAL_OK)
  1106. 8000770: 4b2c ldr r3, [pc, #176] @ (8000824 <MX_TIM3_Init+0x10c>)
  1107. 8000772: 0018 movs r0, r3
  1108. 8000774: f001 fbb4 bl 8001ee0 <HAL_TIM_Base_Init>
  1109. 8000778: 1e03 subs r3, r0, #0
  1110. 800077a: d001 beq.n 8000780 <MX_TIM3_Init+0x68>
  1111. {
  1112. Error_Handler();
  1113. 800077c: f000 f894 bl 80008a8 <Error_Handler>
  1114. }
  1115. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  1116. 8000780: 2120 movs r1, #32
  1117. 8000782: 187b adds r3, r7, r1
  1118. 8000784: 2280 movs r2, #128 @ 0x80
  1119. 8000786: 0152 lsls r2, r2, #5
  1120. 8000788: 601a str r2, [r3, #0]
  1121. if (HAL_TIM_ConfigClockSource(&htim3, &sClockSourceConfig) != HAL_OK)
  1122. 800078a: 187a adds r2, r7, r1
  1123. 800078c: 4b25 ldr r3, [pc, #148] @ (8000824 <MX_TIM3_Init+0x10c>)
  1124. 800078e: 0011 movs r1, r2
  1125. 8000790: 0018 movs r0, r3
  1126. 8000792: f001 ff8d bl 80026b0 <HAL_TIM_ConfigClockSource>
  1127. 8000796: 1e03 subs r3, r0, #0
  1128. 8000798: d001 beq.n 800079e <MX_TIM3_Init+0x86>
  1129. {
  1130. Error_Handler();
  1131. 800079a: f000 f885 bl 80008a8 <Error_Handler>
  1132. }
  1133. if (HAL_TIM_IC_Init(&htim3) != HAL_OK)
  1134. 800079e: 4b21 ldr r3, [pc, #132] @ (8000824 <MX_TIM3_Init+0x10c>)
  1135. 80007a0: 0018 movs r0, r3
  1136. 80007a2: f001 fbf5 bl 8001f90 <HAL_TIM_IC_Init>
  1137. 80007a6: 1e03 subs r3, r0, #0
  1138. 80007a8: d001 beq.n 80007ae <MX_TIM3_Init+0x96>
  1139. {
  1140. Error_Handler();
  1141. 80007aa: f000 f87d bl 80008a8 <Error_Handler>
  1142. }
  1143. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  1144. 80007ae: 2114 movs r1, #20
  1145. 80007b0: 187b adds r3, r7, r1
  1146. 80007b2: 2200 movs r2, #0
  1147. 80007b4: 601a str r2, [r3, #0]
  1148. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  1149. 80007b6: 187b adds r3, r7, r1
  1150. 80007b8: 2200 movs r2, #0
  1151. 80007ba: 609a str r2, [r3, #8]
  1152. if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK)
  1153. 80007bc: 187a adds r2, r7, r1
  1154. 80007be: 4b19 ldr r3, [pc, #100] @ (8000824 <MX_TIM3_Init+0x10c>)
  1155. 80007c0: 0011 movs r1, r2
  1156. 80007c2: 0018 movs r0, r3
  1157. 80007c4: f002 fbce bl 8002f64 <HAL_TIMEx_MasterConfigSynchronization>
  1158. 80007c8: 1e03 subs r3, r0, #0
  1159. 80007ca: d001 beq.n 80007d0 <MX_TIM3_Init+0xb8>
  1160. {
  1161. Error_Handler();
  1162. 80007cc: f000 f86c bl 80008a8 <Error_Handler>
  1163. }
  1164. sConfigIC.ICPolarity = TIM_INPUTCHANNELPOLARITY_FALLING;
  1165. 80007d0: 1d3b adds r3, r7, #4
  1166. 80007d2: 2202 movs r2, #2
  1167. 80007d4: 601a str r2, [r3, #0]
  1168. sConfigIC.ICSelection = TIM_ICSELECTION_INDIRECTTI;
  1169. 80007d6: 1d3b adds r3, r7, #4
  1170. 80007d8: 2202 movs r2, #2
  1171. 80007da: 605a str r2, [r3, #4]
  1172. sConfigIC.ICPrescaler = TIM_ICPSC_DIV1;
  1173. 80007dc: 1d3b adds r3, r7, #4
  1174. 80007de: 2200 movs r2, #0
  1175. 80007e0: 609a str r2, [r3, #8]
  1176. sConfigIC.ICFilter = 0;
  1177. 80007e2: 1d3b adds r3, r7, #4
  1178. 80007e4: 2200 movs r2, #0
  1179. 80007e6: 60da str r2, [r3, #12]
  1180. if (HAL_TIM_IC_ConfigChannel(&htim3, &sConfigIC, TIM_CHANNEL_1) != HAL_OK)
  1181. 80007e8: 1d39 adds r1, r7, #4
  1182. 80007ea: 4b0e ldr r3, [pc, #56] @ (8000824 <MX_TIM3_Init+0x10c>)
  1183. 80007ec: 2200 movs r2, #0
  1184. 80007ee: 0018 movs r0, r3
  1185. 80007f0: f001 feba bl 8002568 <HAL_TIM_IC_ConfigChannel>
  1186. 80007f4: 1e03 subs r3, r0, #0
  1187. 80007f6: d001 beq.n 80007fc <MX_TIM3_Init+0xe4>
  1188. {
  1189. Error_Handler();
  1190. 80007f8: f000 f856 bl 80008a8 <Error_Handler>
  1191. }
  1192. sConfigIC.ICPolarity = TIM_INPUTCHANNELPOLARITY_RISING;
  1193. 80007fc: 1d3b adds r3, r7, #4
  1194. 80007fe: 2200 movs r2, #0
  1195. 8000800: 601a str r2, [r3, #0]
  1196. sConfigIC.ICSelection = TIM_ICSELECTION_DIRECTTI;
  1197. 8000802: 1d3b adds r3, r7, #4
  1198. 8000804: 2201 movs r2, #1
  1199. 8000806: 605a str r2, [r3, #4]
  1200. if (HAL_TIM_IC_ConfigChannel(&htim3, &sConfigIC, TIM_CHANNEL_2) != HAL_OK)
  1201. 8000808: 1d39 adds r1, r7, #4
  1202. 800080a: 4b06 ldr r3, [pc, #24] @ (8000824 <MX_TIM3_Init+0x10c>)
  1203. 800080c: 2204 movs r2, #4
  1204. 800080e: 0018 movs r0, r3
  1205. 8000810: f001 feaa bl 8002568 <HAL_TIM_IC_ConfigChannel>
  1206. 8000814: 1e03 subs r3, r0, #0
  1207. 8000816: d001 beq.n 800081c <MX_TIM3_Init+0x104>
  1208. {
  1209. Error_Handler();
  1210. 8000818: f000 f846 bl 80008a8 <Error_Handler>
  1211. }
  1212. /* USER CODE BEGIN TIM3_Init 2 */
  1213. /* USER CODE END TIM3_Init 2 */
  1214. }
  1215. 800081c: 46c0 nop @ (mov r8, r8)
  1216. 800081e: 46bd mov sp, r7
  1217. 8000820: b00c add sp, #48 @ 0x30
  1218. 8000822: bd80 pop {r7, pc}
  1219. 8000824: 200000d8 .word 0x200000d8
  1220. 8000828: 40000400 .word 0x40000400
  1221. 800082c: 00004e20 .word 0x00004e20
  1222. 08000830 <MX_DMA_Init>:
  1223. /**
  1224. * Enable DMA controller clock
  1225. */
  1226. static void MX_DMA_Init(void)
  1227. {
  1228. 8000830: b580 push {r7, lr}
  1229. 8000832: b082 sub sp, #8
  1230. 8000834: af00 add r7, sp, #0
  1231. /* DMA controller clock enable */
  1232. __HAL_RCC_DMA1_CLK_ENABLE();
  1233. 8000836: 4b10 ldr r3, [pc, #64] @ (8000878 <MX_DMA_Init+0x48>)
  1234. 8000838: 6b9a ldr r2, [r3, #56] @ 0x38
  1235. 800083a: 4b0f ldr r3, [pc, #60] @ (8000878 <MX_DMA_Init+0x48>)
  1236. 800083c: 2101 movs r1, #1
  1237. 800083e: 430a orrs r2, r1
  1238. 8000840: 639a str r2, [r3, #56] @ 0x38
  1239. 8000842: 4b0d ldr r3, [pc, #52] @ (8000878 <MX_DMA_Init+0x48>)
  1240. 8000844: 6b9b ldr r3, [r3, #56] @ 0x38
  1241. 8000846: 2201 movs r2, #1
  1242. 8000848: 4013 ands r3, r2
  1243. 800084a: 607b str r3, [r7, #4]
  1244. 800084c: 687b ldr r3, [r7, #4]
  1245. /* DMA interrupt init */
  1246. /* DMA1_Channel1_IRQn interrupt configuration */
  1247. HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0);
  1248. 800084e: 2200 movs r2, #0
  1249. 8000850: 2100 movs r1, #0
  1250. 8000852: 2009 movs r0, #9
  1251. 8000854: f000 faca bl 8000dec <HAL_NVIC_SetPriority>
  1252. HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn);
  1253. 8000858: 2009 movs r0, #9
  1254. 800085a: f000 fadc bl 8000e16 <HAL_NVIC_EnableIRQ>
  1255. /* DMA1_Channel2_3_IRQn interrupt configuration */
  1256. HAL_NVIC_SetPriority(DMA1_Channel2_3_IRQn, 0, 0);
  1257. 800085e: 2200 movs r2, #0
  1258. 8000860: 2100 movs r1, #0
  1259. 8000862: 200a movs r0, #10
  1260. 8000864: f000 fac2 bl 8000dec <HAL_NVIC_SetPriority>
  1261. HAL_NVIC_EnableIRQ(DMA1_Channel2_3_IRQn);
  1262. 8000868: 200a movs r0, #10
  1263. 800086a: f000 fad4 bl 8000e16 <HAL_NVIC_EnableIRQ>
  1264. }
  1265. 800086e: 46c0 nop @ (mov r8, r8)
  1266. 8000870: 46bd mov sp, r7
  1267. 8000872: b002 add sp, #8
  1268. 8000874: bd80 pop {r7, pc}
  1269. 8000876: 46c0 nop @ (mov r8, r8)
  1270. 8000878: 40021000 .word 0x40021000
  1271. 0800087c <MX_GPIO_Init>:
  1272. * @brief GPIO Initialization Function
  1273. * @param None
  1274. * @retval None
  1275. */
  1276. static void MX_GPIO_Init(void)
  1277. {
  1278. 800087c: b580 push {r7, lr}
  1279. 800087e: b082 sub sp, #8
  1280. 8000880: af00 add r7, sp, #0
  1281. /* GPIO Ports Clock Enable */
  1282. __HAL_RCC_GPIOA_CLK_ENABLE();
  1283. 8000882: 4b08 ldr r3, [pc, #32] @ (80008a4 <MX_GPIO_Init+0x28>)
  1284. 8000884: 6b5a ldr r2, [r3, #52] @ 0x34
  1285. 8000886: 4b07 ldr r3, [pc, #28] @ (80008a4 <MX_GPIO_Init+0x28>)
  1286. 8000888: 2101 movs r1, #1
  1287. 800088a: 430a orrs r2, r1
  1288. 800088c: 635a str r2, [r3, #52] @ 0x34
  1289. 800088e: 4b05 ldr r3, [pc, #20] @ (80008a4 <MX_GPIO_Init+0x28>)
  1290. 8000890: 6b5b ldr r3, [r3, #52] @ 0x34
  1291. 8000892: 2201 movs r2, #1
  1292. 8000894: 4013 ands r3, r2
  1293. 8000896: 607b str r3, [r7, #4]
  1294. 8000898: 687b ldr r3, [r7, #4]
  1295. }
  1296. 800089a: 46c0 nop @ (mov r8, r8)
  1297. 800089c: 46bd mov sp, r7
  1298. 800089e: b002 add sp, #8
  1299. 80008a0: bd80 pop {r7, pc}
  1300. 80008a2: 46c0 nop @ (mov r8, r8)
  1301. 80008a4: 40021000 .word 0x40021000
  1302. 080008a8 <Error_Handler>:
  1303. /**
  1304. * @brief This function is executed in case of error occurrence.
  1305. * @retval None
  1306. */
  1307. void Error_Handler(void)
  1308. {
  1309. 80008a8: b580 push {r7, lr}
  1310. 80008aa: af00 add r7, sp, #0
  1311. \details Disables IRQ interrupts by setting the I-bit in the CPSR.
  1312. Can only be executed in Privileged modes.
  1313. */
  1314. __STATIC_FORCEINLINE void __disable_irq(void)
  1315. {
  1316. __ASM volatile ("cpsid i" : : : "memory");
  1317. 80008ac: b672 cpsid i
  1318. }
  1319. 80008ae: 46c0 nop @ (mov r8, r8)
  1320. /* USER CODE BEGIN Error_Handler_Debug */
  1321. /* User can add his own implementation to report the HAL error return state */
  1322. __disable_irq();
  1323. while (1)
  1324. 80008b0: 46c0 nop @ (mov r8, r8)
  1325. 80008b2: e7fd b.n 80008b0 <Error_Handler+0x8>
  1326. 080008b4 <HAL_MspInit>:
  1327. /* USER CODE END 0 */
  1328. /**
  1329. * Initializes the Global MSP.
  1330. */
  1331. void HAL_MspInit(void)
  1332. {
  1333. 80008b4: b580 push {r7, lr}
  1334. 80008b6: b082 sub sp, #8
  1335. 80008b8: af00 add r7, sp, #0
  1336. /* USER CODE BEGIN MspInit 0 */
  1337. /* USER CODE END MspInit 0 */
  1338. __HAL_RCC_SYSCFG_CLK_ENABLE();
  1339. 80008ba: 4b0f ldr r3, [pc, #60] @ (80008f8 <HAL_MspInit+0x44>)
  1340. 80008bc: 6c1a ldr r2, [r3, #64] @ 0x40
  1341. 80008be: 4b0e ldr r3, [pc, #56] @ (80008f8 <HAL_MspInit+0x44>)
  1342. 80008c0: 2101 movs r1, #1
  1343. 80008c2: 430a orrs r2, r1
  1344. 80008c4: 641a str r2, [r3, #64] @ 0x40
  1345. 80008c6: 4b0c ldr r3, [pc, #48] @ (80008f8 <HAL_MspInit+0x44>)
  1346. 80008c8: 6c1b ldr r3, [r3, #64] @ 0x40
  1347. 80008ca: 2201 movs r2, #1
  1348. 80008cc: 4013 ands r3, r2
  1349. 80008ce: 607b str r3, [r7, #4]
  1350. 80008d0: 687b ldr r3, [r7, #4]
  1351. __HAL_RCC_PWR_CLK_ENABLE();
  1352. 80008d2: 4b09 ldr r3, [pc, #36] @ (80008f8 <HAL_MspInit+0x44>)
  1353. 80008d4: 6bda ldr r2, [r3, #60] @ 0x3c
  1354. 80008d6: 4b08 ldr r3, [pc, #32] @ (80008f8 <HAL_MspInit+0x44>)
  1355. 80008d8: 2180 movs r1, #128 @ 0x80
  1356. 80008da: 0549 lsls r1, r1, #21
  1357. 80008dc: 430a orrs r2, r1
  1358. 80008de: 63da str r2, [r3, #60] @ 0x3c
  1359. 80008e0: 4b05 ldr r3, [pc, #20] @ (80008f8 <HAL_MspInit+0x44>)
  1360. 80008e2: 6bda ldr r2, [r3, #60] @ 0x3c
  1361. 80008e4: 2380 movs r3, #128 @ 0x80
  1362. 80008e6: 055b lsls r3, r3, #21
  1363. 80008e8: 4013 ands r3, r2
  1364. 80008ea: 603b str r3, [r7, #0]
  1365. 80008ec: 683b ldr r3, [r7, #0]
  1366. /* System interrupt init*/
  1367. /* USER CODE BEGIN MspInit 1 */
  1368. /* USER CODE END MspInit 1 */
  1369. }
  1370. 80008ee: 46c0 nop @ (mov r8, r8)
  1371. 80008f0: 46bd mov sp, r7
  1372. 80008f2: b002 add sp, #8
  1373. 80008f4: bd80 pop {r7, pc}
  1374. 80008f6: 46c0 nop @ (mov r8, r8)
  1375. 80008f8: 40021000 .word 0x40021000
  1376. 080008fc <HAL_TIM_Base_MspInit>:
  1377. * This function configures the hardware resources used in this example
  1378. * @param htim_base: TIM_Base handle pointer
  1379. * @retval None
  1380. */
  1381. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  1382. {
  1383. 80008fc: b590 push {r4, r7, lr}
  1384. 80008fe: b08b sub sp, #44 @ 0x2c
  1385. 8000900: af00 add r7, sp, #0
  1386. 8000902: 6078 str r0, [r7, #4]
  1387. GPIO_InitTypeDef GPIO_InitStruct = {0};
  1388. 8000904: 2414 movs r4, #20
  1389. 8000906: 193b adds r3, r7, r4
  1390. 8000908: 0018 movs r0, r3
  1391. 800090a: 2314 movs r3, #20
  1392. 800090c: 001a movs r2, r3
  1393. 800090e: 2100 movs r1, #0
  1394. 8000910: f002 fb8a bl 8003028 <memset>
  1395. if(htim_base->Instance==TIM3)
  1396. 8000914: 687b ldr r3, [r7, #4]
  1397. 8000916: 681b ldr r3, [r3, #0]
  1398. 8000918: 4a4a ldr r2, [pc, #296] @ (8000a44 <HAL_TIM_Base_MspInit+0x148>)
  1399. 800091a: 4293 cmp r3, r2
  1400. 800091c: d000 beq.n 8000920 <HAL_TIM_Base_MspInit+0x24>
  1401. 800091e: e08c b.n 8000a3a <HAL_TIM_Base_MspInit+0x13e>
  1402. {
  1403. /* USER CODE BEGIN TIM3_MspInit 0 */
  1404. /* USER CODE END TIM3_MspInit 0 */
  1405. /* Peripheral clock enable */
  1406. __HAL_RCC_TIM3_CLK_ENABLE();
  1407. 8000920: 4b49 ldr r3, [pc, #292] @ (8000a48 <HAL_TIM_Base_MspInit+0x14c>)
  1408. 8000922: 6bda ldr r2, [r3, #60] @ 0x3c
  1409. 8000924: 4b48 ldr r3, [pc, #288] @ (8000a48 <HAL_TIM_Base_MspInit+0x14c>)
  1410. 8000926: 2102 movs r1, #2
  1411. 8000928: 430a orrs r2, r1
  1412. 800092a: 63da str r2, [r3, #60] @ 0x3c
  1413. 800092c: 4b46 ldr r3, [pc, #280] @ (8000a48 <HAL_TIM_Base_MspInit+0x14c>)
  1414. 800092e: 6bdb ldr r3, [r3, #60] @ 0x3c
  1415. 8000930: 2202 movs r2, #2
  1416. 8000932: 4013 ands r3, r2
  1417. 8000934: 613b str r3, [r7, #16]
  1418. 8000936: 693b ldr r3, [r7, #16]
  1419. __HAL_RCC_GPIOA_CLK_ENABLE();
  1420. 8000938: 4b43 ldr r3, [pc, #268] @ (8000a48 <HAL_TIM_Base_MspInit+0x14c>)
  1421. 800093a: 6b5a ldr r2, [r3, #52] @ 0x34
  1422. 800093c: 4b42 ldr r3, [pc, #264] @ (8000a48 <HAL_TIM_Base_MspInit+0x14c>)
  1423. 800093e: 2101 movs r1, #1
  1424. 8000940: 430a orrs r2, r1
  1425. 8000942: 635a str r2, [r3, #52] @ 0x34
  1426. 8000944: 4b40 ldr r3, [pc, #256] @ (8000a48 <HAL_TIM_Base_MspInit+0x14c>)
  1427. 8000946: 6b5b ldr r3, [r3, #52] @ 0x34
  1428. 8000948: 2201 movs r2, #1
  1429. 800094a: 4013 ands r3, r2
  1430. 800094c: 60fb str r3, [r7, #12]
  1431. 800094e: 68fb ldr r3, [r7, #12]
  1432. /**TIM3 GPIO Configuration
  1433. PA7 ------> TIM3_CH2
  1434. */
  1435. GPIO_InitStruct.Pin = PWM_DSHOT_INPUT_Pin;
  1436. 8000950: 0021 movs r1, r4
  1437. 8000952: 187b adds r3, r7, r1
  1438. 8000954: 2280 movs r2, #128 @ 0x80
  1439. 8000956: 601a str r2, [r3, #0]
  1440. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  1441. 8000958: 187b adds r3, r7, r1
  1442. 800095a: 2202 movs r2, #2
  1443. 800095c: 605a str r2, [r3, #4]
  1444. GPIO_InitStruct.Pull = GPIO_PULLDOWN;
  1445. 800095e: 187b adds r3, r7, r1
  1446. 8000960: 2202 movs r2, #2
  1447. 8000962: 609a str r2, [r3, #8]
  1448. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  1449. 8000964: 187b adds r3, r7, r1
  1450. 8000966: 2203 movs r2, #3
  1451. 8000968: 60da str r2, [r3, #12]
  1452. GPIO_InitStruct.Alternate = GPIO_AF1_TIM3;
  1453. 800096a: 187b adds r3, r7, r1
  1454. 800096c: 2201 movs r2, #1
  1455. 800096e: 611a str r2, [r3, #16]
  1456. HAL_GPIO_Init(PWM_DSHOT_INPUT_GPIO_Port, &GPIO_InitStruct);
  1457. 8000970: 187a adds r2, r7, r1
  1458. 8000972: 23a0 movs r3, #160 @ 0xa0
  1459. 8000974: 05db lsls r3, r3, #23
  1460. 8000976: 0011 movs r1, r2
  1461. 8000978: 0018 movs r0, r3
  1462. 800097a: f000 fc73 bl 8001264 <HAL_GPIO_Init>
  1463. /* TIM3 DMA Init */
  1464. /* TIM3_CH1 Init */
  1465. hdma_tim3_ch1.Instance = DMA1_Channel1;
  1466. 800097e: 4b33 ldr r3, [pc, #204] @ (8000a4c <HAL_TIM_Base_MspInit+0x150>)
  1467. 8000980: 4a33 ldr r2, [pc, #204] @ (8000a50 <HAL_TIM_Base_MspInit+0x154>)
  1468. 8000982: 601a str r2, [r3, #0]
  1469. hdma_tim3_ch1.Init.Request = DMA_REQUEST_TIM3_CH1;
  1470. 8000984: 4b31 ldr r3, [pc, #196] @ (8000a4c <HAL_TIM_Base_MspInit+0x150>)
  1471. 8000986: 2220 movs r2, #32
  1472. 8000988: 605a str r2, [r3, #4]
  1473. hdma_tim3_ch1.Init.Direction = DMA_PERIPH_TO_MEMORY;
  1474. 800098a: 4b30 ldr r3, [pc, #192] @ (8000a4c <HAL_TIM_Base_MspInit+0x150>)
  1475. 800098c: 2200 movs r2, #0
  1476. 800098e: 609a str r2, [r3, #8]
  1477. hdma_tim3_ch1.Init.PeriphInc = DMA_PINC_DISABLE;
  1478. 8000990: 4b2e ldr r3, [pc, #184] @ (8000a4c <HAL_TIM_Base_MspInit+0x150>)
  1479. 8000992: 2200 movs r2, #0
  1480. 8000994: 60da str r2, [r3, #12]
  1481. hdma_tim3_ch1.Init.MemInc = DMA_MINC_ENABLE;
  1482. 8000996: 4b2d ldr r3, [pc, #180] @ (8000a4c <HAL_TIM_Base_MspInit+0x150>)
  1483. 8000998: 2280 movs r2, #128 @ 0x80
  1484. 800099a: 611a str r2, [r3, #16]
  1485. hdma_tim3_ch1.Init.PeriphDataAlignment = DMA_PDATAALIGN_WORD;
  1486. 800099c: 4b2b ldr r3, [pc, #172] @ (8000a4c <HAL_TIM_Base_MspInit+0x150>)
  1487. 800099e: 2280 movs r2, #128 @ 0x80
  1488. 80009a0: 0092 lsls r2, r2, #2
  1489. 80009a2: 615a str r2, [r3, #20]
  1490. hdma_tim3_ch1.Init.MemDataAlignment = DMA_MDATAALIGN_WORD;
  1491. 80009a4: 4b29 ldr r3, [pc, #164] @ (8000a4c <HAL_TIM_Base_MspInit+0x150>)
  1492. 80009a6: 2280 movs r2, #128 @ 0x80
  1493. 80009a8: 0112 lsls r2, r2, #4
  1494. 80009aa: 619a str r2, [r3, #24]
  1495. hdma_tim3_ch1.Init.Mode = DMA_CIRCULAR;
  1496. 80009ac: 4b27 ldr r3, [pc, #156] @ (8000a4c <HAL_TIM_Base_MspInit+0x150>)
  1497. 80009ae: 2220 movs r2, #32
  1498. 80009b0: 61da str r2, [r3, #28]
  1499. hdma_tim3_ch1.Init.Priority = DMA_PRIORITY_LOW;
  1500. 80009b2: 4b26 ldr r3, [pc, #152] @ (8000a4c <HAL_TIM_Base_MspInit+0x150>)
  1501. 80009b4: 2200 movs r2, #0
  1502. 80009b6: 621a str r2, [r3, #32]
  1503. if (HAL_DMA_Init(&hdma_tim3_ch1) != HAL_OK)
  1504. 80009b8: 4b24 ldr r3, [pc, #144] @ (8000a4c <HAL_TIM_Base_MspInit+0x150>)
  1505. 80009ba: 0018 movs r0, r3
  1506. 80009bc: f000 fa48 bl 8000e50 <HAL_DMA_Init>
  1507. 80009c0: 1e03 subs r3, r0, #0
  1508. 80009c2: d001 beq.n 80009c8 <HAL_TIM_Base_MspInit+0xcc>
  1509. {
  1510. Error_Handler();
  1511. 80009c4: f7ff ff70 bl 80008a8 <Error_Handler>
  1512. }
  1513. __HAL_LINKDMA(htim_base,hdma[TIM_DMA_ID_CC1],hdma_tim3_ch1);
  1514. 80009c8: 687b ldr r3, [r7, #4]
  1515. 80009ca: 4a20 ldr r2, [pc, #128] @ (8000a4c <HAL_TIM_Base_MspInit+0x150>)
  1516. 80009cc: 625a str r2, [r3, #36] @ 0x24
  1517. 80009ce: 4b1f ldr r3, [pc, #124] @ (8000a4c <HAL_TIM_Base_MspInit+0x150>)
  1518. 80009d0: 687a ldr r2, [r7, #4]
  1519. 80009d2: 629a str r2, [r3, #40] @ 0x28
  1520. /* TIM3_CH2 Init */
  1521. hdma_tim3_ch2.Instance = DMA1_Channel2;
  1522. 80009d4: 4b1f ldr r3, [pc, #124] @ (8000a54 <HAL_TIM_Base_MspInit+0x158>)
  1523. 80009d6: 4a20 ldr r2, [pc, #128] @ (8000a58 <HAL_TIM_Base_MspInit+0x15c>)
  1524. 80009d8: 601a str r2, [r3, #0]
  1525. hdma_tim3_ch2.Init.Request = DMA_REQUEST_TIM3_CH2;
  1526. 80009da: 4b1e ldr r3, [pc, #120] @ (8000a54 <HAL_TIM_Base_MspInit+0x158>)
  1527. 80009dc: 2221 movs r2, #33 @ 0x21
  1528. 80009de: 605a str r2, [r3, #4]
  1529. hdma_tim3_ch2.Init.Direction = DMA_PERIPH_TO_MEMORY;
  1530. 80009e0: 4b1c ldr r3, [pc, #112] @ (8000a54 <HAL_TIM_Base_MspInit+0x158>)
  1531. 80009e2: 2200 movs r2, #0
  1532. 80009e4: 609a str r2, [r3, #8]
  1533. hdma_tim3_ch2.Init.PeriphInc = DMA_PINC_DISABLE;
  1534. 80009e6: 4b1b ldr r3, [pc, #108] @ (8000a54 <HAL_TIM_Base_MspInit+0x158>)
  1535. 80009e8: 2200 movs r2, #0
  1536. 80009ea: 60da str r2, [r3, #12]
  1537. hdma_tim3_ch2.Init.MemInc = DMA_MINC_ENABLE;
  1538. 80009ec: 4b19 ldr r3, [pc, #100] @ (8000a54 <HAL_TIM_Base_MspInit+0x158>)
  1539. 80009ee: 2280 movs r2, #128 @ 0x80
  1540. 80009f0: 611a str r2, [r3, #16]
  1541. hdma_tim3_ch2.Init.PeriphDataAlignment = DMA_PDATAALIGN_WORD;
  1542. 80009f2: 4b18 ldr r3, [pc, #96] @ (8000a54 <HAL_TIM_Base_MspInit+0x158>)
  1543. 80009f4: 2280 movs r2, #128 @ 0x80
  1544. 80009f6: 0092 lsls r2, r2, #2
  1545. 80009f8: 615a str r2, [r3, #20]
  1546. hdma_tim3_ch2.Init.MemDataAlignment = DMA_MDATAALIGN_WORD;
  1547. 80009fa: 4b16 ldr r3, [pc, #88] @ (8000a54 <HAL_TIM_Base_MspInit+0x158>)
  1548. 80009fc: 2280 movs r2, #128 @ 0x80
  1549. 80009fe: 0112 lsls r2, r2, #4
  1550. 8000a00: 619a str r2, [r3, #24]
  1551. hdma_tim3_ch2.Init.Mode = DMA_CIRCULAR;
  1552. 8000a02: 4b14 ldr r3, [pc, #80] @ (8000a54 <HAL_TIM_Base_MspInit+0x158>)
  1553. 8000a04: 2220 movs r2, #32
  1554. 8000a06: 61da str r2, [r3, #28]
  1555. hdma_tim3_ch2.Init.Priority = DMA_PRIORITY_LOW;
  1556. 8000a08: 4b12 ldr r3, [pc, #72] @ (8000a54 <HAL_TIM_Base_MspInit+0x158>)
  1557. 8000a0a: 2200 movs r2, #0
  1558. 8000a0c: 621a str r2, [r3, #32]
  1559. if (HAL_DMA_Init(&hdma_tim3_ch2) != HAL_OK)
  1560. 8000a0e: 4b11 ldr r3, [pc, #68] @ (8000a54 <HAL_TIM_Base_MspInit+0x158>)
  1561. 8000a10: 0018 movs r0, r3
  1562. 8000a12: f000 fa1d bl 8000e50 <HAL_DMA_Init>
  1563. 8000a16: 1e03 subs r3, r0, #0
  1564. 8000a18: d001 beq.n 8000a1e <HAL_TIM_Base_MspInit+0x122>
  1565. {
  1566. Error_Handler();
  1567. 8000a1a: f7ff ff45 bl 80008a8 <Error_Handler>
  1568. }
  1569. __HAL_LINKDMA(htim_base,hdma[TIM_DMA_ID_CC2],hdma_tim3_ch2);
  1570. 8000a1e: 687b ldr r3, [r7, #4]
  1571. 8000a20: 4a0c ldr r2, [pc, #48] @ (8000a54 <HAL_TIM_Base_MspInit+0x158>)
  1572. 8000a22: 629a str r2, [r3, #40] @ 0x28
  1573. 8000a24: 4b0b ldr r3, [pc, #44] @ (8000a54 <HAL_TIM_Base_MspInit+0x158>)
  1574. 8000a26: 687a ldr r2, [r7, #4]
  1575. 8000a28: 629a str r2, [r3, #40] @ 0x28
  1576. /* TIM3 interrupt Init */
  1577. HAL_NVIC_SetPriority(TIM3_IRQn, 0, 0);
  1578. 8000a2a: 2200 movs r2, #0
  1579. 8000a2c: 2100 movs r1, #0
  1580. 8000a2e: 2010 movs r0, #16
  1581. 8000a30: f000 f9dc bl 8000dec <HAL_NVIC_SetPriority>
  1582. HAL_NVIC_EnableIRQ(TIM3_IRQn);
  1583. 8000a34: 2010 movs r0, #16
  1584. 8000a36: f000 f9ee bl 8000e16 <HAL_NVIC_EnableIRQ>
  1585. /* USER CODE BEGIN TIM3_MspInit 1 */
  1586. /* USER CODE END TIM3_MspInit 1 */
  1587. }
  1588. }
  1589. 8000a3a: 46c0 nop @ (mov r8, r8)
  1590. 8000a3c: 46bd mov sp, r7
  1591. 8000a3e: b00b add sp, #44 @ 0x2c
  1592. 8000a40: bd90 pop {r4, r7, pc}
  1593. 8000a42: 46c0 nop @ (mov r8, r8)
  1594. 8000a44: 40000400 .word 0x40000400
  1595. 8000a48: 40021000 .word 0x40021000
  1596. 8000a4c: 20000124 .word 0x20000124
  1597. 8000a50: 40020008 .word 0x40020008
  1598. 8000a54: 20000180 .word 0x20000180
  1599. 8000a58: 4002001c .word 0x4002001c
  1600. 08000a5c <NMI_Handler>:
  1601. /******************************************************************************/
  1602. /**
  1603. * @brief This function handles Non maskable interrupt.
  1604. */
  1605. void NMI_Handler(void)
  1606. {
  1607. 8000a5c: b580 push {r7, lr}
  1608. 8000a5e: af00 add r7, sp, #0
  1609. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  1610. /* USER CODE END NonMaskableInt_IRQn 0 */
  1611. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  1612. while (1)
  1613. 8000a60: 46c0 nop @ (mov r8, r8)
  1614. 8000a62: e7fd b.n 8000a60 <NMI_Handler+0x4>
  1615. 08000a64 <HardFault_Handler>:
  1616. /**
  1617. * @brief This function handles Hard fault interrupt.
  1618. */
  1619. void HardFault_Handler(void)
  1620. {
  1621. 8000a64: b580 push {r7, lr}
  1622. 8000a66: af00 add r7, sp, #0
  1623. /* USER CODE BEGIN HardFault_IRQn 0 */
  1624. /* USER CODE END HardFault_IRQn 0 */
  1625. while (1)
  1626. 8000a68: 46c0 nop @ (mov r8, r8)
  1627. 8000a6a: e7fd b.n 8000a68 <HardFault_Handler+0x4>
  1628. 08000a6c <SVC_Handler>:
  1629. /**
  1630. * @brief This function handles System service call via SWI instruction.
  1631. */
  1632. void SVC_Handler(void)
  1633. {
  1634. 8000a6c: b580 push {r7, lr}
  1635. 8000a6e: af00 add r7, sp, #0
  1636. /* USER CODE END SVC_IRQn 0 */
  1637. /* USER CODE BEGIN SVC_IRQn 1 */
  1638. /* USER CODE END SVC_IRQn 1 */
  1639. }
  1640. 8000a70: 46c0 nop @ (mov r8, r8)
  1641. 8000a72: 46bd mov sp, r7
  1642. 8000a74: bd80 pop {r7, pc}
  1643. 08000a76 <PendSV_Handler>:
  1644. /**
  1645. * @brief This function handles Pendable request for system service.
  1646. */
  1647. void PendSV_Handler(void)
  1648. {
  1649. 8000a76: b580 push {r7, lr}
  1650. 8000a78: af00 add r7, sp, #0
  1651. /* USER CODE END PendSV_IRQn 0 */
  1652. /* USER CODE BEGIN PendSV_IRQn 1 */
  1653. /* USER CODE END PendSV_IRQn 1 */
  1654. }
  1655. 8000a7a: 46c0 nop @ (mov r8, r8)
  1656. 8000a7c: 46bd mov sp, r7
  1657. 8000a7e: bd80 pop {r7, pc}
  1658. 08000a80 <SysTick_Handler>:
  1659. /**
  1660. * @brief This function handles System tick timer.
  1661. */
  1662. void SysTick_Handler(void)
  1663. {
  1664. 8000a80: b580 push {r7, lr}
  1665. 8000a82: af00 add r7, sp, #0
  1666. /* USER CODE BEGIN SysTick_IRQn 0 */
  1667. /* USER CODE END SysTick_IRQn 0 */
  1668. HAL_IncTick();
  1669. 8000a84: f000 f8c6 bl 8000c14 <HAL_IncTick>
  1670. /* USER CODE BEGIN SysTick_IRQn 1 */
  1671. /* USER CODE END SysTick_IRQn 1 */
  1672. }
  1673. 8000a88: 46c0 nop @ (mov r8, r8)
  1674. 8000a8a: 46bd mov sp, r7
  1675. 8000a8c: bd80 pop {r7, pc}
  1676. ...
  1677. 08000a90 <DMA1_Channel1_IRQHandler>:
  1678. /**
  1679. * @brief This function handles DMA1 channel 1 interrupt.
  1680. */
  1681. void DMA1_Channel1_IRQHandler(void)
  1682. {
  1683. 8000a90: b580 push {r7, lr}
  1684. 8000a92: af00 add r7, sp, #0
  1685. /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */
  1686. DMA1_Channel1_IRQ(&hdma_tim3_ch1);
  1687. 8000a94: 4b03 ldr r3, [pc, #12] @ (8000aa4 <DMA1_Channel1_IRQHandler+0x14>)
  1688. 8000a96: 0018 movs r0, r3
  1689. 8000a98: f7ff fbbe bl 8000218 <DMA1_Channel1_IRQ>
  1690. /* USER CODE END DMA1_Channel1_IRQn 0 */
  1691. /* USER CODE BEGIN DMA1_Channel1_IRQn 1 */
  1692. /* USER CODE END DMA1_Channel1_IRQn 1 */
  1693. }
  1694. 8000a9c: 46c0 nop @ (mov r8, r8)
  1695. 8000a9e: 46bd mov sp, r7
  1696. 8000aa0: bd80 pop {r7, pc}
  1697. 8000aa2: 46c0 nop @ (mov r8, r8)
  1698. 8000aa4: 20000124 .word 0x20000124
  1699. 08000aa8 <DMA1_Channel2_3_IRQHandler>:
  1700. /**
  1701. * @brief This function handles DMA1 channel 2 and channel 3 interrupts.
  1702. */
  1703. void DMA1_Channel2_3_IRQHandler(void)
  1704. {
  1705. 8000aa8: b580 push {r7, lr}
  1706. 8000aaa: af00 add r7, sp, #0
  1707. /* USER CODE END DMA1_Channel2_3_IRQn 0 */
  1708. /* USER CODE BEGIN DMA1_Channel2_3_IRQn 1 */
  1709. /* USER CODE END DMA1_Channel2_3_IRQn 1 */
  1710. }
  1711. 8000aac: 46c0 nop @ (mov r8, r8)
  1712. 8000aae: 46bd mov sp, r7
  1713. 8000ab0: bd80 pop {r7, pc}
  1714. 08000ab2 <TIM3_IRQHandler>:
  1715. /**
  1716. * @brief This function handles TIM3 global interrupt.
  1717. */
  1718. void TIM3_IRQHandler(void)
  1719. {
  1720. 8000ab2: b580 push {r7, lr}
  1721. 8000ab4: af00 add r7, sp, #0
  1722. /* USER CODE BEGIN TIM3_IRQn 0 */
  1723. TIM3_IRQ();
  1724. 8000ab6: f7ff fd61 bl 800057c <TIM3_IRQ>
  1725. /* USER CODE END TIM3_IRQn 0 */
  1726. /* USER CODE BEGIN TIM3_IRQn 1 */
  1727. /* USER CODE END TIM3_IRQn 1 */
  1728. }
  1729. 8000aba: 46c0 nop @ (mov r8, r8)
  1730. 8000abc: 46bd mov sp, r7
  1731. 8000abe: bd80 pop {r7, pc}
  1732. 08000ac0 <SystemInit>:
  1733. * @brief Setup the microcontroller system.
  1734. * @param None
  1735. * @retval None
  1736. */
  1737. void SystemInit(void)
  1738. {
  1739. 8000ac0: b580 push {r7, lr}
  1740. 8000ac2: af00 add r7, sp, #0
  1741. /* Configure the Vector Table location -------------------------------------*/
  1742. #if defined(USER_VECT_TAB_ADDRESS)
  1743. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation */
  1744. #endif /* USER_VECT_TAB_ADDRESS */
  1745. }
  1746. 8000ac4: 46c0 nop @ (mov r8, r8)
  1747. 8000ac6: 46bd mov sp, r7
  1748. 8000ac8: bd80 pop {r7, pc}
  1749. 08000aca <User_Init>:
  1750. #include "main.h"
  1751. #include "user.h"
  1752. void User_Init(void) {
  1753. 8000aca: b580 push {r7, lr}
  1754. 8000acc: af00 add r7, sp, #0
  1755. //PWMInput_Init();
  1756. Dshot_Init(DShot_300);
  1757. 8000ace: 2001 movs r0, #1
  1758. 8000ad0: f7ff fcde bl 8000490 <Dshot_Init>
  1759. }
  1760. 8000ad4: 46c0 nop @ (mov r8, r8)
  1761. 8000ad6: 46bd mov sp, r7
  1762. 8000ad8: bd80 pop {r7, pc}
  1763. 08000ada <User_MainLoop>:
  1764. uint16_t ref;
  1765. void User_MainLoop(void) {
  1766. 8000ada: b580 push {r7, lr}
  1767. 8000adc: af00 add r7, sp, #0
  1768. //ref = PWMInput_Get();
  1769. HAL_Delay(100);
  1770. 8000ade: 2064 movs r0, #100 @ 0x64
  1771. 8000ae0: f000 f8b4 bl 8000c4c <HAL_Delay>
  1772. }
  1773. 8000ae4: 46c0 nop @ (mov r8, r8)
  1774. 8000ae6: 46bd mov sp, r7
  1775. 8000ae8: bd80 pop {r7, pc}
  1776. ...
  1777. 08000aec <Reset_Handler>:
  1778. .section .text.Reset_Handler
  1779. .weak Reset_Handler
  1780. .type Reset_Handler, %function
  1781. Reset_Handler:
  1782. ldr r0, =_estack
  1783. 8000aec: 480d ldr r0, [pc, #52] @ (8000b24 <LoopForever+0x2>)
  1784. mov sp, r0 /* set stack pointer */
  1785. 8000aee: 4685 mov sp, r0
  1786. /* Call the clock system initialization function.*/
  1787. bl SystemInit
  1788. 8000af0: f7ff ffe6 bl 8000ac0 <SystemInit>
  1789. /* Copy the data segment initializers from flash to SRAM */
  1790. ldr r0, =_sdata
  1791. 8000af4: 480c ldr r0, [pc, #48] @ (8000b28 <LoopForever+0x6>)
  1792. ldr r1, =_edata
  1793. 8000af6: 490d ldr r1, [pc, #52] @ (8000b2c <LoopForever+0xa>)
  1794. ldr r2, =_sidata
  1795. 8000af8: 4a0d ldr r2, [pc, #52] @ (8000b30 <LoopForever+0xe>)
  1796. movs r3, #0
  1797. 8000afa: 2300 movs r3, #0
  1798. b LoopCopyDataInit
  1799. 8000afc: e002 b.n 8000b04 <LoopCopyDataInit>
  1800. 08000afe <CopyDataInit>:
  1801. CopyDataInit:
  1802. ldr r4, [r2, r3]
  1803. 8000afe: 58d4 ldr r4, [r2, r3]
  1804. str r4, [r0, r3]
  1805. 8000b00: 50c4 str r4, [r0, r3]
  1806. adds r3, r3, #4
  1807. 8000b02: 3304 adds r3, #4
  1808. 08000b04 <LoopCopyDataInit>:
  1809. LoopCopyDataInit:
  1810. adds r4, r0, r3
  1811. 8000b04: 18c4 adds r4, r0, r3
  1812. cmp r4, r1
  1813. 8000b06: 428c cmp r4, r1
  1814. bcc CopyDataInit
  1815. 8000b08: d3f9 bcc.n 8000afe <CopyDataInit>
  1816. /* Zero fill the bss segment. */
  1817. ldr r2, =_sbss
  1818. 8000b0a: 4a0a ldr r2, [pc, #40] @ (8000b34 <LoopForever+0x12>)
  1819. ldr r4, =_ebss
  1820. 8000b0c: 4c0a ldr r4, [pc, #40] @ (8000b38 <LoopForever+0x16>)
  1821. movs r3, #0
  1822. 8000b0e: 2300 movs r3, #0
  1823. b LoopFillZerobss
  1824. 8000b10: e001 b.n 8000b16 <LoopFillZerobss>
  1825. 08000b12 <FillZerobss>:
  1826. FillZerobss:
  1827. str r3, [r2]
  1828. 8000b12: 6013 str r3, [r2, #0]
  1829. adds r2, r2, #4
  1830. 8000b14: 3204 adds r2, #4
  1831. 08000b16 <LoopFillZerobss>:
  1832. LoopFillZerobss:
  1833. cmp r2, r4
  1834. 8000b16: 42a2 cmp r2, r4
  1835. bcc FillZerobss
  1836. 8000b18: d3fb bcc.n 8000b12 <FillZerobss>
  1837. /* Call static constructors */
  1838. bl __libc_init_array
  1839. 8000b1a: f002 fa8d bl 8003038 <__libc_init_array>
  1840. /* Call the application s entry point.*/
  1841. bl main
  1842. 8000b1e: f7ff fd8f bl 8000640 <main>
  1843. 08000b22 <LoopForever>:
  1844. LoopForever:
  1845. b LoopForever
  1846. 8000b22: e7fe b.n 8000b22 <LoopForever>
  1847. ldr r0, =_estack
  1848. 8000b24: 20002000 .word 0x20002000
  1849. ldr r0, =_sdata
  1850. 8000b28: 20000000 .word 0x20000000
  1851. ldr r1, =_edata
  1852. 8000b2c: 2000000c .word 0x2000000c
  1853. ldr r2, =_sidata
  1854. 8000b30: 080030e0 .word 0x080030e0
  1855. ldr r2, =_sbss
  1856. 8000b34: 2000000c .word 0x2000000c
  1857. ldr r4, =_ebss
  1858. 8000b38: 200001e0 .word 0x200001e0
  1859. 08000b3c <ADC1_IRQHandler>:
  1860. * @retval None
  1861. */
  1862. .section .text.Default_Handler,"ax",%progbits
  1863. Default_Handler:
  1864. Infinite_Loop:
  1865. b Infinite_Loop
  1866. 8000b3c: e7fe b.n 8000b3c <ADC1_IRQHandler>
  1867. ...
  1868. 08000b40 <HAL_Init>:
  1869. * each 1ms in the SysTick_Handler() interrupt handler.
  1870. *
  1871. * @retval HAL status
  1872. */
  1873. HAL_StatusTypeDef HAL_Init(void)
  1874. {
  1875. 8000b40: b580 push {r7, lr}
  1876. 8000b42: b082 sub sp, #8
  1877. 8000b44: af00 add r7, sp, #0
  1878. HAL_StatusTypeDef status = HAL_OK;
  1879. 8000b46: 1dfb adds r3, r7, #7
  1880. 8000b48: 2200 movs r2, #0
  1881. 8000b4a: 701a strb r2, [r3, #0]
  1882. #if (INSTRUCTION_CACHE_ENABLE == 0U)
  1883. __HAL_FLASH_INSTRUCTION_CACHE_DISABLE();
  1884. #endif /* INSTRUCTION_CACHE_ENABLE */
  1885. #if (PREFETCH_ENABLE != 0U)
  1886. __HAL_FLASH_PREFETCH_BUFFER_ENABLE();
  1887. 8000b4c: 4b0b ldr r3, [pc, #44] @ (8000b7c <HAL_Init+0x3c>)
  1888. 8000b4e: 681a ldr r2, [r3, #0]
  1889. 8000b50: 4b0a ldr r3, [pc, #40] @ (8000b7c <HAL_Init+0x3c>)
  1890. 8000b52: 2180 movs r1, #128 @ 0x80
  1891. 8000b54: 0049 lsls r1, r1, #1
  1892. 8000b56: 430a orrs r2, r1
  1893. 8000b58: 601a str r2, [r3, #0]
  1894. #endif /* PREFETCH_ENABLE */
  1895. /* Use SysTick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  1896. if (HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  1897. 8000b5a: 2003 movs r0, #3
  1898. 8000b5c: f000 f810 bl 8000b80 <HAL_InitTick>
  1899. 8000b60: 1e03 subs r3, r0, #0
  1900. 8000b62: d003 beq.n 8000b6c <HAL_Init+0x2c>
  1901. {
  1902. status = HAL_ERROR;
  1903. 8000b64: 1dfb adds r3, r7, #7
  1904. 8000b66: 2201 movs r2, #1
  1905. 8000b68: 701a strb r2, [r3, #0]
  1906. 8000b6a: e001 b.n 8000b70 <HAL_Init+0x30>
  1907. }
  1908. else
  1909. {
  1910. /* Init the low level hardware */
  1911. HAL_MspInit();
  1912. 8000b6c: f7ff fea2 bl 80008b4 <HAL_MspInit>
  1913. }
  1914. /* Return function status */
  1915. return status;
  1916. 8000b70: 1dfb adds r3, r7, #7
  1917. 8000b72: 781b ldrb r3, [r3, #0]
  1918. }
  1919. 8000b74: 0018 movs r0, r3
  1920. 8000b76: 46bd mov sp, r7
  1921. 8000b78: b002 add sp, #8
  1922. 8000b7a: bd80 pop {r7, pc}
  1923. 8000b7c: 40022000 .word 0x40022000
  1924. 08000b80 <HAL_InitTick>:
  1925. * implementation in user file.
  1926. * @param TickPriority Tick interrupt priority.
  1927. * @retval HAL status
  1928. */
  1929. __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  1930. {
  1931. 8000b80: b590 push {r4, r7, lr}
  1932. 8000b82: b085 sub sp, #20
  1933. 8000b84: af00 add r7, sp, #0
  1934. 8000b86: 6078 str r0, [r7, #4]
  1935. HAL_StatusTypeDef status = HAL_OK;
  1936. 8000b88: 230f movs r3, #15
  1937. 8000b8a: 18fb adds r3, r7, r3
  1938. 8000b8c: 2200 movs r2, #0
  1939. 8000b8e: 701a strb r2, [r3, #0]
  1940. /* Check uwTickFreq for MisraC 2012 (even if uwTickFreq is a enum type that doesn't take the value zero)*/
  1941. if ((uint32_t)uwTickFreq != 0U)
  1942. 8000b90: 4b1d ldr r3, [pc, #116] @ (8000c08 <HAL_InitTick+0x88>)
  1943. 8000b92: 781b ldrb r3, [r3, #0]
  1944. 8000b94: 2b00 cmp r3, #0
  1945. 8000b96: d02b beq.n 8000bf0 <HAL_InitTick+0x70>
  1946. {
  1947. /*Configure the SysTick to have interrupt in 1ms time basis*/
  1948. if (HAL_SYSTICK_Config(SystemCoreClock / (1000U /(uint32_t)uwTickFreq)) == 0U)
  1949. 8000b98: 4b1c ldr r3, [pc, #112] @ (8000c0c <HAL_InitTick+0x8c>)
  1950. 8000b9a: 681c ldr r4, [r3, #0]
  1951. 8000b9c: 4b1a ldr r3, [pc, #104] @ (8000c08 <HAL_InitTick+0x88>)
  1952. 8000b9e: 781b ldrb r3, [r3, #0]
  1953. 8000ba0: 0019 movs r1, r3
  1954. 8000ba2: 23fa movs r3, #250 @ 0xfa
  1955. 8000ba4: 0098 lsls r0, r3, #2
  1956. 8000ba6: f7ff faab bl 8000100 <__udivsi3>
  1957. 8000baa: 0003 movs r3, r0
  1958. 8000bac: 0019 movs r1, r3
  1959. 8000bae: 0020 movs r0, r4
  1960. 8000bb0: f7ff faa6 bl 8000100 <__udivsi3>
  1961. 8000bb4: 0003 movs r3, r0
  1962. 8000bb6: 0018 movs r0, r3
  1963. 8000bb8: f000 f93d bl 8000e36 <HAL_SYSTICK_Config>
  1964. 8000bbc: 1e03 subs r3, r0, #0
  1965. 8000bbe: d112 bne.n 8000be6 <HAL_InitTick+0x66>
  1966. {
  1967. /* Configure the SysTick IRQ priority */
  1968. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  1969. 8000bc0: 687b ldr r3, [r7, #4]
  1970. 8000bc2: 2b03 cmp r3, #3
  1971. 8000bc4: d80a bhi.n 8000bdc <HAL_InitTick+0x5c>
  1972. {
  1973. HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U);
  1974. 8000bc6: 6879 ldr r1, [r7, #4]
  1975. 8000bc8: 2301 movs r3, #1
  1976. 8000bca: 425b negs r3, r3
  1977. 8000bcc: 2200 movs r2, #0
  1978. 8000bce: 0018 movs r0, r3
  1979. 8000bd0: f000 f90c bl 8000dec <HAL_NVIC_SetPriority>
  1980. uwTickPrio = TickPriority;
  1981. 8000bd4: 4b0e ldr r3, [pc, #56] @ (8000c10 <HAL_InitTick+0x90>)
  1982. 8000bd6: 687a ldr r2, [r7, #4]
  1983. 8000bd8: 601a str r2, [r3, #0]
  1984. 8000bda: e00d b.n 8000bf8 <HAL_InitTick+0x78>
  1985. }
  1986. else
  1987. {
  1988. status = HAL_ERROR;
  1989. 8000bdc: 230f movs r3, #15
  1990. 8000bde: 18fb adds r3, r7, r3
  1991. 8000be0: 2201 movs r2, #1
  1992. 8000be2: 701a strb r2, [r3, #0]
  1993. 8000be4: e008 b.n 8000bf8 <HAL_InitTick+0x78>
  1994. }
  1995. }
  1996. else
  1997. {
  1998. status = HAL_ERROR;
  1999. 8000be6: 230f movs r3, #15
  2000. 8000be8: 18fb adds r3, r7, r3
  2001. 8000bea: 2201 movs r2, #1
  2002. 8000bec: 701a strb r2, [r3, #0]
  2003. 8000bee: e003 b.n 8000bf8 <HAL_InitTick+0x78>
  2004. }
  2005. }
  2006. else
  2007. {
  2008. status = HAL_ERROR;
  2009. 8000bf0: 230f movs r3, #15
  2010. 8000bf2: 18fb adds r3, r7, r3
  2011. 8000bf4: 2201 movs r2, #1
  2012. 8000bf6: 701a strb r2, [r3, #0]
  2013. }
  2014. /* Return function status */
  2015. return status;
  2016. 8000bf8: 230f movs r3, #15
  2017. 8000bfa: 18fb adds r3, r7, r3
  2018. 8000bfc: 781b ldrb r3, [r3, #0]
  2019. }
  2020. 8000bfe: 0018 movs r0, r3
  2021. 8000c00: 46bd mov sp, r7
  2022. 8000c02: b005 add sp, #20
  2023. 8000c04: bd90 pop {r4, r7, pc}
  2024. 8000c06: 46c0 nop @ (mov r8, r8)
  2025. 8000c08: 20000008 .word 0x20000008
  2026. 8000c0c: 20000000 .word 0x20000000
  2027. 8000c10: 20000004 .word 0x20000004
  2028. 08000c14 <HAL_IncTick>:
  2029. * @note This function is declared as __weak to be overwritten in case of other
  2030. * implementations in user file.
  2031. * @retval None
  2032. */
  2033. __weak void HAL_IncTick(void)
  2034. {
  2035. 8000c14: b580 push {r7, lr}
  2036. 8000c16: af00 add r7, sp, #0
  2037. uwTick += (uint32_t)uwTickFreq;
  2038. 8000c18: 4b05 ldr r3, [pc, #20] @ (8000c30 <HAL_IncTick+0x1c>)
  2039. 8000c1a: 781b ldrb r3, [r3, #0]
  2040. 8000c1c: 001a movs r2, r3
  2041. 8000c1e: 4b05 ldr r3, [pc, #20] @ (8000c34 <HAL_IncTick+0x20>)
  2042. 8000c20: 681b ldr r3, [r3, #0]
  2043. 8000c22: 18d2 adds r2, r2, r3
  2044. 8000c24: 4b03 ldr r3, [pc, #12] @ (8000c34 <HAL_IncTick+0x20>)
  2045. 8000c26: 601a str r2, [r3, #0]
  2046. }
  2047. 8000c28: 46c0 nop @ (mov r8, r8)
  2048. 8000c2a: 46bd mov sp, r7
  2049. 8000c2c: bd80 pop {r7, pc}
  2050. 8000c2e: 46c0 nop @ (mov r8, r8)
  2051. 8000c30: 20000008 .word 0x20000008
  2052. 8000c34: 200001dc .word 0x200001dc
  2053. 08000c38 <HAL_GetTick>:
  2054. * @note This function is declared as __weak to be overwritten in case of other
  2055. * implementations in user file.
  2056. * @retval tick value
  2057. */
  2058. __weak uint32_t HAL_GetTick(void)
  2059. {
  2060. 8000c38: b580 push {r7, lr}
  2061. 8000c3a: af00 add r7, sp, #0
  2062. return uwTick;
  2063. 8000c3c: 4b02 ldr r3, [pc, #8] @ (8000c48 <HAL_GetTick+0x10>)
  2064. 8000c3e: 681b ldr r3, [r3, #0]
  2065. }
  2066. 8000c40: 0018 movs r0, r3
  2067. 8000c42: 46bd mov sp, r7
  2068. 8000c44: bd80 pop {r7, pc}
  2069. 8000c46: 46c0 nop @ (mov r8, r8)
  2070. 8000c48: 200001dc .word 0x200001dc
  2071. 08000c4c <HAL_Delay>:
  2072. * implementations in user file.
  2073. * @param Delay specifies the delay time length, in milliseconds.
  2074. * @retval None
  2075. */
  2076. __weak void HAL_Delay(uint32_t Delay)
  2077. {
  2078. 8000c4c: b580 push {r7, lr}
  2079. 8000c4e: b084 sub sp, #16
  2080. 8000c50: af00 add r7, sp, #0
  2081. 8000c52: 6078 str r0, [r7, #4]
  2082. uint32_t tickstart = HAL_GetTick();
  2083. 8000c54: f7ff fff0 bl 8000c38 <HAL_GetTick>
  2084. 8000c58: 0003 movs r3, r0
  2085. 8000c5a: 60bb str r3, [r7, #8]
  2086. uint32_t wait = Delay;
  2087. 8000c5c: 687b ldr r3, [r7, #4]
  2088. 8000c5e: 60fb str r3, [r7, #12]
  2089. /* Add a freq to guarantee minimum wait */
  2090. if (wait < HAL_MAX_DELAY)
  2091. 8000c60: 68fb ldr r3, [r7, #12]
  2092. 8000c62: 3301 adds r3, #1
  2093. 8000c64: d005 beq.n 8000c72 <HAL_Delay+0x26>
  2094. {
  2095. wait += (uint32_t)(uwTickFreq);
  2096. 8000c66: 4b0a ldr r3, [pc, #40] @ (8000c90 <HAL_Delay+0x44>)
  2097. 8000c68: 781b ldrb r3, [r3, #0]
  2098. 8000c6a: 001a movs r2, r3
  2099. 8000c6c: 68fb ldr r3, [r7, #12]
  2100. 8000c6e: 189b adds r3, r3, r2
  2101. 8000c70: 60fb str r3, [r7, #12]
  2102. }
  2103. while ((HAL_GetTick() - tickstart) < wait)
  2104. 8000c72: 46c0 nop @ (mov r8, r8)
  2105. 8000c74: f7ff ffe0 bl 8000c38 <HAL_GetTick>
  2106. 8000c78: 0002 movs r2, r0
  2107. 8000c7a: 68bb ldr r3, [r7, #8]
  2108. 8000c7c: 1ad3 subs r3, r2, r3
  2109. 8000c7e: 68fa ldr r2, [r7, #12]
  2110. 8000c80: 429a cmp r2, r3
  2111. 8000c82: d8f7 bhi.n 8000c74 <HAL_Delay+0x28>
  2112. {
  2113. }
  2114. }
  2115. 8000c84: 46c0 nop @ (mov r8, r8)
  2116. 8000c86: 46c0 nop @ (mov r8, r8)
  2117. 8000c88: 46bd mov sp, r7
  2118. 8000c8a: b004 add sp, #16
  2119. 8000c8c: bd80 pop {r7, pc}
  2120. 8000c8e: 46c0 nop @ (mov r8, r8)
  2121. 8000c90: 20000008 .word 0x20000008
  2122. 08000c94 <__NVIC_EnableIRQ>:
  2123. \details Enables a device specific interrupt in the NVIC interrupt controller.
  2124. \param [in] IRQn Device specific interrupt number.
  2125. \note IRQn must not be negative.
  2126. */
  2127. __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn)
  2128. {
  2129. 8000c94: b580 push {r7, lr}
  2130. 8000c96: b082 sub sp, #8
  2131. 8000c98: af00 add r7, sp, #0
  2132. 8000c9a: 0002 movs r2, r0
  2133. 8000c9c: 1dfb adds r3, r7, #7
  2134. 8000c9e: 701a strb r2, [r3, #0]
  2135. if ((int32_t)(IRQn) >= 0)
  2136. 8000ca0: 1dfb adds r3, r7, #7
  2137. 8000ca2: 781b ldrb r3, [r3, #0]
  2138. 8000ca4: 2b7f cmp r3, #127 @ 0x7f
  2139. 8000ca6: d809 bhi.n 8000cbc <__NVIC_EnableIRQ+0x28>
  2140. {
  2141. __COMPILER_BARRIER();
  2142. NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  2143. 8000ca8: 1dfb adds r3, r7, #7
  2144. 8000caa: 781b ldrb r3, [r3, #0]
  2145. 8000cac: 001a movs r2, r3
  2146. 8000cae: 231f movs r3, #31
  2147. 8000cb0: 401a ands r2, r3
  2148. 8000cb2: 4b04 ldr r3, [pc, #16] @ (8000cc4 <__NVIC_EnableIRQ+0x30>)
  2149. 8000cb4: 2101 movs r1, #1
  2150. 8000cb6: 4091 lsls r1, r2
  2151. 8000cb8: 000a movs r2, r1
  2152. 8000cba: 601a str r2, [r3, #0]
  2153. __COMPILER_BARRIER();
  2154. }
  2155. }
  2156. 8000cbc: 46c0 nop @ (mov r8, r8)
  2157. 8000cbe: 46bd mov sp, r7
  2158. 8000cc0: b002 add sp, #8
  2159. 8000cc2: bd80 pop {r7, pc}
  2160. 8000cc4: e000e100 .word 0xe000e100
  2161. 08000cc8 <__NVIC_SetPriority>:
  2162. \param [in] IRQn Interrupt number.
  2163. \param [in] priority Priority to set.
  2164. \note The priority cannot be set for every processor exception.
  2165. */
  2166. __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
  2167. {
  2168. 8000cc8: b590 push {r4, r7, lr}
  2169. 8000cca: b083 sub sp, #12
  2170. 8000ccc: af00 add r7, sp, #0
  2171. 8000cce: 0002 movs r2, r0
  2172. 8000cd0: 6039 str r1, [r7, #0]
  2173. 8000cd2: 1dfb adds r3, r7, #7
  2174. 8000cd4: 701a strb r2, [r3, #0]
  2175. if ((int32_t)(IRQn) >= 0)
  2176. 8000cd6: 1dfb adds r3, r7, #7
  2177. 8000cd8: 781b ldrb r3, [r3, #0]
  2178. 8000cda: 2b7f cmp r3, #127 @ 0x7f
  2179. 8000cdc: d828 bhi.n 8000d30 <__NVIC_SetPriority+0x68>
  2180. {
  2181. NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) |
  2182. 8000cde: 4a2f ldr r2, [pc, #188] @ (8000d9c <__NVIC_SetPriority+0xd4>)
  2183. 8000ce0: 1dfb adds r3, r7, #7
  2184. 8000ce2: 781b ldrb r3, [r3, #0]
  2185. 8000ce4: b25b sxtb r3, r3
  2186. 8000ce6: 089b lsrs r3, r3, #2
  2187. 8000ce8: 33c0 adds r3, #192 @ 0xc0
  2188. 8000cea: 009b lsls r3, r3, #2
  2189. 8000cec: 589b ldr r3, [r3, r2]
  2190. 8000cee: 1dfa adds r2, r7, #7
  2191. 8000cf0: 7812 ldrb r2, [r2, #0]
  2192. 8000cf2: 0011 movs r1, r2
  2193. 8000cf4: 2203 movs r2, #3
  2194. 8000cf6: 400a ands r2, r1
  2195. 8000cf8: 00d2 lsls r2, r2, #3
  2196. 8000cfa: 21ff movs r1, #255 @ 0xff
  2197. 8000cfc: 4091 lsls r1, r2
  2198. 8000cfe: 000a movs r2, r1
  2199. 8000d00: 43d2 mvns r2, r2
  2200. 8000d02: 401a ands r2, r3
  2201. 8000d04: 0011 movs r1, r2
  2202. (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn)));
  2203. 8000d06: 683b ldr r3, [r7, #0]
  2204. 8000d08: 019b lsls r3, r3, #6
  2205. 8000d0a: 22ff movs r2, #255 @ 0xff
  2206. 8000d0c: 401a ands r2, r3
  2207. 8000d0e: 1dfb adds r3, r7, #7
  2208. 8000d10: 781b ldrb r3, [r3, #0]
  2209. 8000d12: 0018 movs r0, r3
  2210. 8000d14: 2303 movs r3, #3
  2211. 8000d16: 4003 ands r3, r0
  2212. 8000d18: 00db lsls r3, r3, #3
  2213. 8000d1a: 409a lsls r2, r3
  2214. NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) |
  2215. 8000d1c: 481f ldr r0, [pc, #124] @ (8000d9c <__NVIC_SetPriority+0xd4>)
  2216. 8000d1e: 1dfb adds r3, r7, #7
  2217. 8000d20: 781b ldrb r3, [r3, #0]
  2218. 8000d22: b25b sxtb r3, r3
  2219. 8000d24: 089b lsrs r3, r3, #2
  2220. 8000d26: 430a orrs r2, r1
  2221. 8000d28: 33c0 adds r3, #192 @ 0xc0
  2222. 8000d2a: 009b lsls r3, r3, #2
  2223. 8000d2c: 501a str r2, [r3, r0]
  2224. else
  2225. {
  2226. SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) |
  2227. (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn)));
  2228. }
  2229. }
  2230. 8000d2e: e031 b.n 8000d94 <__NVIC_SetPriority+0xcc>
  2231. SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) |
  2232. 8000d30: 4a1b ldr r2, [pc, #108] @ (8000da0 <__NVIC_SetPriority+0xd8>)
  2233. 8000d32: 1dfb adds r3, r7, #7
  2234. 8000d34: 781b ldrb r3, [r3, #0]
  2235. 8000d36: 0019 movs r1, r3
  2236. 8000d38: 230f movs r3, #15
  2237. 8000d3a: 400b ands r3, r1
  2238. 8000d3c: 3b08 subs r3, #8
  2239. 8000d3e: 089b lsrs r3, r3, #2
  2240. 8000d40: 3306 adds r3, #6
  2241. 8000d42: 009b lsls r3, r3, #2
  2242. 8000d44: 18d3 adds r3, r2, r3
  2243. 8000d46: 3304 adds r3, #4
  2244. 8000d48: 681b ldr r3, [r3, #0]
  2245. 8000d4a: 1dfa adds r2, r7, #7
  2246. 8000d4c: 7812 ldrb r2, [r2, #0]
  2247. 8000d4e: 0011 movs r1, r2
  2248. 8000d50: 2203 movs r2, #3
  2249. 8000d52: 400a ands r2, r1
  2250. 8000d54: 00d2 lsls r2, r2, #3
  2251. 8000d56: 21ff movs r1, #255 @ 0xff
  2252. 8000d58: 4091 lsls r1, r2
  2253. 8000d5a: 000a movs r2, r1
  2254. 8000d5c: 43d2 mvns r2, r2
  2255. 8000d5e: 401a ands r2, r3
  2256. 8000d60: 0011 movs r1, r2
  2257. (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn)));
  2258. 8000d62: 683b ldr r3, [r7, #0]
  2259. 8000d64: 019b lsls r3, r3, #6
  2260. 8000d66: 22ff movs r2, #255 @ 0xff
  2261. 8000d68: 401a ands r2, r3
  2262. 8000d6a: 1dfb adds r3, r7, #7
  2263. 8000d6c: 781b ldrb r3, [r3, #0]
  2264. 8000d6e: 0018 movs r0, r3
  2265. 8000d70: 2303 movs r3, #3
  2266. 8000d72: 4003 ands r3, r0
  2267. 8000d74: 00db lsls r3, r3, #3
  2268. 8000d76: 409a lsls r2, r3
  2269. SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) |
  2270. 8000d78: 4809 ldr r0, [pc, #36] @ (8000da0 <__NVIC_SetPriority+0xd8>)
  2271. 8000d7a: 1dfb adds r3, r7, #7
  2272. 8000d7c: 781b ldrb r3, [r3, #0]
  2273. 8000d7e: 001c movs r4, r3
  2274. 8000d80: 230f movs r3, #15
  2275. 8000d82: 4023 ands r3, r4
  2276. 8000d84: 3b08 subs r3, #8
  2277. 8000d86: 089b lsrs r3, r3, #2
  2278. 8000d88: 430a orrs r2, r1
  2279. 8000d8a: 3306 adds r3, #6
  2280. 8000d8c: 009b lsls r3, r3, #2
  2281. 8000d8e: 18c3 adds r3, r0, r3
  2282. 8000d90: 3304 adds r3, #4
  2283. 8000d92: 601a str r2, [r3, #0]
  2284. }
  2285. 8000d94: 46c0 nop @ (mov r8, r8)
  2286. 8000d96: 46bd mov sp, r7
  2287. 8000d98: b003 add sp, #12
  2288. 8000d9a: bd90 pop {r4, r7, pc}
  2289. 8000d9c: e000e100 .word 0xe000e100
  2290. 8000da0: e000ed00 .word 0xe000ed00
  2291. 08000da4 <SysTick_Config>:
  2292. \note When the variable <b>__Vendor_SysTickConfig</b> is set to 1, then the
  2293. function <b>SysTick_Config</b> is not included. In this case, the file <b><i>device</i>.h</b>
  2294. must contain a vendor-specific implementation of this function.
  2295. */
  2296. __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks)
  2297. {
  2298. 8000da4: b580 push {r7, lr}
  2299. 8000da6: b082 sub sp, #8
  2300. 8000da8: af00 add r7, sp, #0
  2301. 8000daa: 6078 str r0, [r7, #4]
  2302. if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk)
  2303. 8000dac: 687b ldr r3, [r7, #4]
  2304. 8000dae: 1e5a subs r2, r3, #1
  2305. 8000db0: 2380 movs r3, #128 @ 0x80
  2306. 8000db2: 045b lsls r3, r3, #17
  2307. 8000db4: 429a cmp r2, r3
  2308. 8000db6: d301 bcc.n 8000dbc <SysTick_Config+0x18>
  2309. {
  2310. return (1UL); /* Reload value impossible */
  2311. 8000db8: 2301 movs r3, #1
  2312. 8000dba: e010 b.n 8000dde <SysTick_Config+0x3a>
  2313. }
  2314. SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */
  2315. 8000dbc: 4b0a ldr r3, [pc, #40] @ (8000de8 <SysTick_Config+0x44>)
  2316. 8000dbe: 687a ldr r2, [r7, #4]
  2317. 8000dc0: 3a01 subs r2, #1
  2318. 8000dc2: 605a str r2, [r3, #4]
  2319. NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */
  2320. 8000dc4: 2301 movs r3, #1
  2321. 8000dc6: 425b negs r3, r3
  2322. 8000dc8: 2103 movs r1, #3
  2323. 8000dca: 0018 movs r0, r3
  2324. 8000dcc: f7ff ff7c bl 8000cc8 <__NVIC_SetPriority>
  2325. SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
  2326. 8000dd0: 4b05 ldr r3, [pc, #20] @ (8000de8 <SysTick_Config+0x44>)
  2327. 8000dd2: 2200 movs r2, #0
  2328. 8000dd4: 609a str r2, [r3, #8]
  2329. SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk |
  2330. 8000dd6: 4b04 ldr r3, [pc, #16] @ (8000de8 <SysTick_Config+0x44>)
  2331. 8000dd8: 2207 movs r2, #7
  2332. 8000dda: 601a str r2, [r3, #0]
  2333. SysTick_CTRL_TICKINT_Msk |
  2334. SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */
  2335. return (0UL); /* Function successful */
  2336. 8000ddc: 2300 movs r3, #0
  2337. }
  2338. 8000dde: 0018 movs r0, r3
  2339. 8000de0: 46bd mov sp, r7
  2340. 8000de2: b002 add sp, #8
  2341. 8000de4: bd80 pop {r7, pc}
  2342. 8000de6: 46c0 nop @ (mov r8, r8)
  2343. 8000de8: e000e010 .word 0xe000e010
  2344. 08000dec <HAL_NVIC_SetPriority>:
  2345. * with stm32g0xx devices, this parameter is a dummy value and it is ignored, because
  2346. * no subpriority supported in Cortex M0+ based products.
  2347. * @retval None
  2348. */
  2349. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  2350. {
  2351. 8000dec: b580 push {r7, lr}
  2352. 8000dee: b084 sub sp, #16
  2353. 8000df0: af00 add r7, sp, #0
  2354. 8000df2: 60b9 str r1, [r7, #8]
  2355. 8000df4: 607a str r2, [r7, #4]
  2356. 8000df6: 210f movs r1, #15
  2357. 8000df8: 187b adds r3, r7, r1
  2358. 8000dfa: 1c02 adds r2, r0, #0
  2359. 8000dfc: 701a strb r2, [r3, #0]
  2360. /* Prevent unused argument(s) compilation warning */
  2361. UNUSED(SubPriority);
  2362. /* Check the parameters */
  2363. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  2364. NVIC_SetPriority(IRQn, PreemptPriority);
  2365. 8000dfe: 68ba ldr r2, [r7, #8]
  2366. 8000e00: 187b adds r3, r7, r1
  2367. 8000e02: 781b ldrb r3, [r3, #0]
  2368. 8000e04: b25b sxtb r3, r3
  2369. 8000e06: 0011 movs r1, r2
  2370. 8000e08: 0018 movs r0, r3
  2371. 8000e0a: f7ff ff5d bl 8000cc8 <__NVIC_SetPriority>
  2372. }
  2373. 8000e0e: 46c0 nop @ (mov r8, r8)
  2374. 8000e10: 46bd mov sp, r7
  2375. 8000e12: b004 add sp, #16
  2376. 8000e14: bd80 pop {r7, pc}
  2377. 08000e16 <HAL_NVIC_EnableIRQ>:
  2378. * This parameter can be an enumerator of IRQn_Type enumeration
  2379. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32g0xxxx.h))
  2380. * @retval None
  2381. */
  2382. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  2383. {
  2384. 8000e16: b580 push {r7, lr}
  2385. 8000e18: b082 sub sp, #8
  2386. 8000e1a: af00 add r7, sp, #0
  2387. 8000e1c: 0002 movs r2, r0
  2388. 8000e1e: 1dfb adds r3, r7, #7
  2389. 8000e20: 701a strb r2, [r3, #0]
  2390. /* Check the parameters */
  2391. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  2392. /* Enable interrupt */
  2393. NVIC_EnableIRQ(IRQn);
  2394. 8000e22: 1dfb adds r3, r7, #7
  2395. 8000e24: 781b ldrb r3, [r3, #0]
  2396. 8000e26: b25b sxtb r3, r3
  2397. 8000e28: 0018 movs r0, r3
  2398. 8000e2a: f7ff ff33 bl 8000c94 <__NVIC_EnableIRQ>
  2399. }
  2400. 8000e2e: 46c0 nop @ (mov r8, r8)
  2401. 8000e30: 46bd mov sp, r7
  2402. 8000e32: b002 add sp, #8
  2403. 8000e34: bd80 pop {r7, pc}
  2404. 08000e36 <HAL_SYSTICK_Config>:
  2405. * @param TicksNumb Specifies the ticks Number of ticks between two interrupts.
  2406. * @retval status: - 0 Function succeeded.
  2407. * - 1 Function failed.
  2408. */
  2409. uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb)
  2410. {
  2411. 8000e36: b580 push {r7, lr}
  2412. 8000e38: b082 sub sp, #8
  2413. 8000e3a: af00 add r7, sp, #0
  2414. 8000e3c: 6078 str r0, [r7, #4]
  2415. return SysTick_Config(TicksNumb);
  2416. 8000e3e: 687b ldr r3, [r7, #4]
  2417. 8000e40: 0018 movs r0, r3
  2418. 8000e42: f7ff ffaf bl 8000da4 <SysTick_Config>
  2419. 8000e46: 0003 movs r3, r0
  2420. }
  2421. 8000e48: 0018 movs r0, r3
  2422. 8000e4a: 46bd mov sp, r7
  2423. 8000e4c: b002 add sp, #8
  2424. 8000e4e: bd80 pop {r7, pc}
  2425. 08000e50 <HAL_DMA_Init>:
  2426. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  2427. * the configuration information for the specified DMA Channel.
  2428. * @retval HAL status
  2429. */
  2430. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  2431. {
  2432. 8000e50: b580 push {r7, lr}
  2433. 8000e52: b082 sub sp, #8
  2434. 8000e54: af00 add r7, sp, #0
  2435. 8000e56: 6078 str r0, [r7, #4]
  2436. /* Check the DMA handle allocation */
  2437. if (hdma == NULL)
  2438. 8000e58: 687b ldr r3, [r7, #4]
  2439. 8000e5a: 2b00 cmp r3, #0
  2440. 8000e5c: d101 bne.n 8000e62 <HAL_DMA_Init+0x12>
  2441. {
  2442. return HAL_ERROR;
  2443. 8000e5e: 2301 movs r3, #1
  2444. 8000e60: e077 b.n 8000f52 <HAL_DMA_Init+0x102>
  2445. /* DMA2 */
  2446. hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA2_Channel1) / ((uint32_t)DMA2_Channel2 - (uint32_t)DMA2_Channel1)) << 2U;
  2447. hdma->DmaBaseAddress = DMA2;
  2448. }
  2449. #else
  2450. hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA1_Channel1) / ((uint32_t)DMA1_Channel2 - (uint32_t)DMA1_Channel1)) << 2U;
  2451. 8000e62: 687b ldr r3, [r7, #4]
  2452. 8000e64: 681b ldr r3, [r3, #0]
  2453. 8000e66: 4a3d ldr r2, [pc, #244] @ (8000f5c <HAL_DMA_Init+0x10c>)
  2454. 8000e68: 4694 mov ip, r2
  2455. 8000e6a: 4463 add r3, ip
  2456. 8000e6c: 2114 movs r1, #20
  2457. 8000e6e: 0018 movs r0, r3
  2458. 8000e70: f7ff f946 bl 8000100 <__udivsi3>
  2459. 8000e74: 0003 movs r3, r0
  2460. 8000e76: 009a lsls r2, r3, #2
  2461. 8000e78: 687b ldr r3, [r7, #4]
  2462. 8000e7a: 641a str r2, [r3, #64] @ 0x40
  2463. #endif /* DMA2 */
  2464. /* Change DMA peripheral state */
  2465. hdma->State = HAL_DMA_STATE_BUSY;
  2466. 8000e7c: 687b ldr r3, [r7, #4]
  2467. 8000e7e: 2225 movs r2, #37 @ 0x25
  2468. 8000e80: 2102 movs r1, #2
  2469. 8000e82: 5499 strb r1, [r3, r2]
  2470. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR and MEM2MEM bits */
  2471. CLEAR_BIT(hdma->Instance->CCR, (DMA_CCR_PL | DMA_CCR_MSIZE | DMA_CCR_PSIZE | \
  2472. 8000e84: 687b ldr r3, [r7, #4]
  2473. 8000e86: 681b ldr r3, [r3, #0]
  2474. 8000e88: 681a ldr r2, [r3, #0]
  2475. 8000e8a: 687b ldr r3, [r7, #4]
  2476. 8000e8c: 681b ldr r3, [r3, #0]
  2477. 8000e8e: 4934 ldr r1, [pc, #208] @ (8000f60 <HAL_DMA_Init+0x110>)
  2478. 8000e90: 400a ands r2, r1
  2479. 8000e92: 601a str r2, [r3, #0]
  2480. DMA_CCR_MINC | DMA_CCR_PINC | DMA_CCR_CIRC | \
  2481. DMA_CCR_DIR | DMA_CCR_MEM2MEM));
  2482. /* Set the DMA Channel configuration */
  2483. SET_BIT(hdma->Instance->CCR, (hdma->Init.Direction | \
  2484. 8000e94: 687b ldr r3, [r7, #4]
  2485. 8000e96: 681b ldr r3, [r3, #0]
  2486. 8000e98: 6819 ldr r1, [r3, #0]
  2487. 8000e9a: 687b ldr r3, [r7, #4]
  2488. 8000e9c: 689a ldr r2, [r3, #8]
  2489. 8000e9e: 687b ldr r3, [r7, #4]
  2490. 8000ea0: 68db ldr r3, [r3, #12]
  2491. 8000ea2: 431a orrs r2, r3
  2492. 8000ea4: 687b ldr r3, [r7, #4]
  2493. 8000ea6: 691b ldr r3, [r3, #16]
  2494. 8000ea8: 431a orrs r2, r3
  2495. 8000eaa: 687b ldr r3, [r7, #4]
  2496. 8000eac: 695b ldr r3, [r3, #20]
  2497. 8000eae: 431a orrs r2, r3
  2498. 8000eb0: 687b ldr r3, [r7, #4]
  2499. 8000eb2: 699b ldr r3, [r3, #24]
  2500. 8000eb4: 431a orrs r2, r3
  2501. 8000eb6: 687b ldr r3, [r7, #4]
  2502. 8000eb8: 69db ldr r3, [r3, #28]
  2503. 8000eba: 431a orrs r2, r3
  2504. 8000ebc: 687b ldr r3, [r7, #4]
  2505. 8000ebe: 6a1b ldr r3, [r3, #32]
  2506. 8000ec0: 431a orrs r2, r3
  2507. 8000ec2: 687b ldr r3, [r7, #4]
  2508. 8000ec4: 681b ldr r3, [r3, #0]
  2509. 8000ec6: 430a orrs r2, r1
  2510. 8000ec8: 601a str r2, [r3, #0]
  2511. hdma->Init.Mode | hdma->Init.Priority));
  2512. /* Initialize parameters for DMAMUX channel :
  2513. DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask
  2514. */
  2515. DMA_CalcDMAMUXChannelBaseAndMask(hdma);
  2516. 8000eca: 687b ldr r3, [r7, #4]
  2517. 8000ecc: 0018 movs r0, r3
  2518. 8000ece: f000 f979 bl 80011c4 <DMA_CalcDMAMUXChannelBaseAndMask>
  2519. if (hdma->Init.Direction == DMA_MEMORY_TO_MEMORY)
  2520. 8000ed2: 687b ldr r3, [r7, #4]
  2521. 8000ed4: 689a ldr r2, [r3, #8]
  2522. 8000ed6: 2380 movs r3, #128 @ 0x80
  2523. 8000ed8: 01db lsls r3, r3, #7
  2524. 8000eda: 429a cmp r2, r3
  2525. 8000edc: d102 bne.n 8000ee4 <HAL_DMA_Init+0x94>
  2526. {
  2527. /* if memory to memory force the request to 0*/
  2528. hdma->Init.Request = DMA_REQUEST_MEM2MEM;
  2529. 8000ede: 687b ldr r3, [r7, #4]
  2530. 8000ee0: 2200 movs r2, #0
  2531. 8000ee2: 605a str r2, [r3, #4]
  2532. }
  2533. /* Set peripheral request to DMAMUX channel */
  2534. hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID);
  2535. 8000ee4: 687b ldr r3, [r7, #4]
  2536. 8000ee6: 685a ldr r2, [r3, #4]
  2537. 8000ee8: 687b ldr r3, [r7, #4]
  2538. 8000eea: 6c5b ldr r3, [r3, #68] @ 0x44
  2539. 8000eec: 213f movs r1, #63 @ 0x3f
  2540. 8000eee: 400a ands r2, r1
  2541. 8000ef0: 601a str r2, [r3, #0]
  2542. /* Clear the DMAMUX synchro overrun flag */
  2543. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  2544. 8000ef2: 687b ldr r3, [r7, #4]
  2545. 8000ef4: 6c9b ldr r3, [r3, #72] @ 0x48
  2546. 8000ef6: 687a ldr r2, [r7, #4]
  2547. 8000ef8: 6cd2 ldr r2, [r2, #76] @ 0x4c
  2548. 8000efa: 605a str r2, [r3, #4]
  2549. if (((hdma->Init.Request > 0UL) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR3)))
  2550. 8000efc: 687b ldr r3, [r7, #4]
  2551. 8000efe: 685b ldr r3, [r3, #4]
  2552. 8000f00: 2b00 cmp r3, #0
  2553. 8000f02: d011 beq.n 8000f28 <HAL_DMA_Init+0xd8>
  2554. 8000f04: 687b ldr r3, [r7, #4]
  2555. 8000f06: 685b ldr r3, [r3, #4]
  2556. 8000f08: 2b04 cmp r3, #4
  2557. 8000f0a: d80d bhi.n 8000f28 <HAL_DMA_Init+0xd8>
  2558. {
  2559. /* Initialize parameters for DMAMUX request generator :
  2560. DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask
  2561. */
  2562. DMA_CalcDMAMUXRequestGenBaseAndMask(hdma);
  2563. 8000f0c: 687b ldr r3, [r7, #4]
  2564. 8000f0e: 0018 movs r0, r3
  2565. 8000f10: f000 f984 bl 800121c <DMA_CalcDMAMUXRequestGenBaseAndMask>
  2566. /* Reset the DMAMUX request generator register*/
  2567. hdma->DMAmuxRequestGen->RGCR = 0U;
  2568. 8000f14: 687b ldr r3, [r7, #4]
  2569. 8000f16: 6d1b ldr r3, [r3, #80] @ 0x50
  2570. 8000f18: 2200 movs r2, #0
  2571. 8000f1a: 601a str r2, [r3, #0]
  2572. /* Clear the DMAMUX request generator overrun flag */
  2573. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  2574. 8000f1c: 687b ldr r3, [r7, #4]
  2575. 8000f1e: 6d5b ldr r3, [r3, #84] @ 0x54
  2576. 8000f20: 687a ldr r2, [r7, #4]
  2577. 8000f22: 6d92 ldr r2, [r2, #88] @ 0x58
  2578. 8000f24: 605a str r2, [r3, #4]
  2579. 8000f26: e008 b.n 8000f3a <HAL_DMA_Init+0xea>
  2580. }
  2581. else
  2582. {
  2583. hdma->DMAmuxRequestGen = 0U;
  2584. 8000f28: 687b ldr r3, [r7, #4]
  2585. 8000f2a: 2200 movs r2, #0
  2586. 8000f2c: 651a str r2, [r3, #80] @ 0x50
  2587. hdma->DMAmuxRequestGenStatus = 0U;
  2588. 8000f2e: 687b ldr r3, [r7, #4]
  2589. 8000f30: 2200 movs r2, #0
  2590. 8000f32: 655a str r2, [r3, #84] @ 0x54
  2591. hdma->DMAmuxRequestGenStatusMask = 0U;
  2592. 8000f34: 687b ldr r3, [r7, #4]
  2593. 8000f36: 2200 movs r2, #0
  2594. 8000f38: 659a str r2, [r3, #88] @ 0x58
  2595. }
  2596. /* Initialize the error code */
  2597. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  2598. 8000f3a: 687b ldr r3, [r7, #4]
  2599. 8000f3c: 2200 movs r2, #0
  2600. 8000f3e: 63da str r2, [r3, #60] @ 0x3c
  2601. /* Initialize the DMA state*/
  2602. hdma->State = HAL_DMA_STATE_READY;
  2603. 8000f40: 687b ldr r3, [r7, #4]
  2604. 8000f42: 2225 movs r2, #37 @ 0x25
  2605. 8000f44: 2101 movs r1, #1
  2606. 8000f46: 5499 strb r1, [r3, r2]
  2607. /* Release Lock */
  2608. __HAL_UNLOCK(hdma);
  2609. 8000f48: 687b ldr r3, [r7, #4]
  2610. 8000f4a: 2224 movs r2, #36 @ 0x24
  2611. 8000f4c: 2100 movs r1, #0
  2612. 8000f4e: 5499 strb r1, [r3, r2]
  2613. return HAL_OK;
  2614. 8000f50: 2300 movs r3, #0
  2615. }
  2616. 8000f52: 0018 movs r0, r3
  2617. 8000f54: 46bd mov sp, r7
  2618. 8000f56: b002 add sp, #8
  2619. 8000f58: bd80 pop {r7, pc}
  2620. 8000f5a: 46c0 nop @ (mov r8, r8)
  2621. 8000f5c: bffdfff8 .word 0xbffdfff8
  2622. 8000f60: ffff800f .word 0xffff800f
  2623. 08000f64 <HAL_DMA_Start_IT>:
  2624. * @param DataLength The length of data to be transferred from source to destination
  2625. * @retval HAL status
  2626. */
  2627. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress,
  2628. uint32_t DataLength)
  2629. {
  2630. 8000f64: b580 push {r7, lr}
  2631. 8000f66: b086 sub sp, #24
  2632. 8000f68: af00 add r7, sp, #0
  2633. 8000f6a: 60f8 str r0, [r7, #12]
  2634. 8000f6c: 60b9 str r1, [r7, #8]
  2635. 8000f6e: 607a str r2, [r7, #4]
  2636. 8000f70: 603b str r3, [r7, #0]
  2637. HAL_StatusTypeDef status = HAL_OK;
  2638. 8000f72: 2317 movs r3, #23
  2639. 8000f74: 18fb adds r3, r7, r3
  2640. 8000f76: 2200 movs r2, #0
  2641. 8000f78: 701a strb r2, [r3, #0]
  2642. /* Check the parameters */
  2643. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  2644. /* Process locked */
  2645. __HAL_LOCK(hdma);
  2646. 8000f7a: 68fb ldr r3, [r7, #12]
  2647. 8000f7c: 2224 movs r2, #36 @ 0x24
  2648. 8000f7e: 5c9b ldrb r3, [r3, r2]
  2649. 8000f80: 2b01 cmp r3, #1
  2650. 8000f82: d101 bne.n 8000f88 <HAL_DMA_Start_IT+0x24>
  2651. 8000f84: 2302 movs r3, #2
  2652. 8000f86: e06f b.n 8001068 <HAL_DMA_Start_IT+0x104>
  2653. 8000f88: 68fb ldr r3, [r7, #12]
  2654. 8000f8a: 2224 movs r2, #36 @ 0x24
  2655. 8000f8c: 2101 movs r1, #1
  2656. 8000f8e: 5499 strb r1, [r3, r2]
  2657. if (hdma->State == HAL_DMA_STATE_READY)
  2658. 8000f90: 68fb ldr r3, [r7, #12]
  2659. 8000f92: 2225 movs r2, #37 @ 0x25
  2660. 8000f94: 5c9b ldrb r3, [r3, r2]
  2661. 8000f96: b2db uxtb r3, r3
  2662. 8000f98: 2b01 cmp r3, #1
  2663. 8000f9a: d157 bne.n 800104c <HAL_DMA_Start_IT+0xe8>
  2664. {
  2665. /* Change DMA peripheral state */
  2666. hdma->State = HAL_DMA_STATE_BUSY;
  2667. 8000f9c: 68fb ldr r3, [r7, #12]
  2668. 8000f9e: 2225 movs r2, #37 @ 0x25
  2669. 8000fa0: 2102 movs r1, #2
  2670. 8000fa2: 5499 strb r1, [r3, r2]
  2671. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  2672. 8000fa4: 68fb ldr r3, [r7, #12]
  2673. 8000fa6: 2200 movs r2, #0
  2674. 8000fa8: 63da str r2, [r3, #60] @ 0x3c
  2675. /* Disable the peripheral */
  2676. __HAL_DMA_DISABLE(hdma);
  2677. 8000faa: 68fb ldr r3, [r7, #12]
  2678. 8000fac: 681b ldr r3, [r3, #0]
  2679. 8000fae: 681a ldr r2, [r3, #0]
  2680. 8000fb0: 68fb ldr r3, [r7, #12]
  2681. 8000fb2: 681b ldr r3, [r3, #0]
  2682. 8000fb4: 2101 movs r1, #1
  2683. 8000fb6: 438a bics r2, r1
  2684. 8000fb8: 601a str r2, [r3, #0]
  2685. /* Configure the source, destination address and the data length & clear flags*/
  2686. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  2687. 8000fba: 683b ldr r3, [r7, #0]
  2688. 8000fbc: 687a ldr r2, [r7, #4]
  2689. 8000fbe: 68b9 ldr r1, [r7, #8]
  2690. 8000fc0: 68f8 ldr r0, [r7, #12]
  2691. 8000fc2: f000 f8bf bl 8001144 <DMA_SetConfig>
  2692. /* Enable the transfer complete interrupt */
  2693. /* Enable the transfer Error interrupt */
  2694. if (NULL != hdma->XferHalfCpltCallback)
  2695. 8000fc6: 68fb ldr r3, [r7, #12]
  2696. 8000fc8: 6b1b ldr r3, [r3, #48] @ 0x30
  2697. 8000fca: 2b00 cmp r3, #0
  2698. 8000fcc: d008 beq.n 8000fe0 <HAL_DMA_Start_IT+0x7c>
  2699. {
  2700. /* Enable the Half transfer complete interrupt as well */
  2701. __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  2702. 8000fce: 68fb ldr r3, [r7, #12]
  2703. 8000fd0: 681b ldr r3, [r3, #0]
  2704. 8000fd2: 681a ldr r2, [r3, #0]
  2705. 8000fd4: 68fb ldr r3, [r7, #12]
  2706. 8000fd6: 681b ldr r3, [r3, #0]
  2707. 8000fd8: 210e movs r1, #14
  2708. 8000fda: 430a orrs r2, r1
  2709. 8000fdc: 601a str r2, [r3, #0]
  2710. 8000fde: e00f b.n 8001000 <HAL_DMA_Start_IT+0x9c>
  2711. }
  2712. else
  2713. {
  2714. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  2715. 8000fe0: 68fb ldr r3, [r7, #12]
  2716. 8000fe2: 681b ldr r3, [r3, #0]
  2717. 8000fe4: 681a ldr r2, [r3, #0]
  2718. 8000fe6: 68fb ldr r3, [r7, #12]
  2719. 8000fe8: 681b ldr r3, [r3, #0]
  2720. 8000fea: 2104 movs r1, #4
  2721. 8000fec: 438a bics r2, r1
  2722. 8000fee: 601a str r2, [r3, #0]
  2723. __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_TE));
  2724. 8000ff0: 68fb ldr r3, [r7, #12]
  2725. 8000ff2: 681b ldr r3, [r3, #0]
  2726. 8000ff4: 681a ldr r2, [r3, #0]
  2727. 8000ff6: 68fb ldr r3, [r7, #12]
  2728. 8000ff8: 681b ldr r3, [r3, #0]
  2729. 8000ffa: 210a movs r1, #10
  2730. 8000ffc: 430a orrs r2, r1
  2731. 8000ffe: 601a str r2, [r3, #0]
  2732. }
  2733. /* Check if DMAMUX Synchronization is enabled*/
  2734. if ((hdma->DMAmuxChannel->CCR & DMAMUX_CxCR_SE) != 0U)
  2735. 8001000: 68fb ldr r3, [r7, #12]
  2736. 8001002: 6c5b ldr r3, [r3, #68] @ 0x44
  2737. 8001004: 681a ldr r2, [r3, #0]
  2738. 8001006: 2380 movs r3, #128 @ 0x80
  2739. 8001008: 025b lsls r3, r3, #9
  2740. 800100a: 4013 ands r3, r2
  2741. 800100c: d008 beq.n 8001020 <HAL_DMA_Start_IT+0xbc>
  2742. {
  2743. /* Enable DMAMUX sync overrun IT*/
  2744. hdma->DMAmuxChannel->CCR |= DMAMUX_CxCR_SOIE;
  2745. 800100e: 68fb ldr r3, [r7, #12]
  2746. 8001010: 6c5b ldr r3, [r3, #68] @ 0x44
  2747. 8001012: 681a ldr r2, [r3, #0]
  2748. 8001014: 68fb ldr r3, [r7, #12]
  2749. 8001016: 6c5b ldr r3, [r3, #68] @ 0x44
  2750. 8001018: 2180 movs r1, #128 @ 0x80
  2751. 800101a: 0049 lsls r1, r1, #1
  2752. 800101c: 430a orrs r2, r1
  2753. 800101e: 601a str r2, [r3, #0]
  2754. }
  2755. if (hdma->DMAmuxRequestGen != 0U)
  2756. 8001020: 68fb ldr r3, [r7, #12]
  2757. 8001022: 6d1b ldr r3, [r3, #80] @ 0x50
  2758. 8001024: 2b00 cmp r3, #0
  2759. 8001026: d008 beq.n 800103a <HAL_DMA_Start_IT+0xd6>
  2760. {
  2761. /* if using DMAMUX request generator, enable the DMAMUX request generator overrun IT*/
  2762. /* enable the request gen overrun IT*/
  2763. hdma->DMAmuxRequestGen->RGCR |= DMAMUX_RGxCR_OIE;
  2764. 8001028: 68fb ldr r3, [r7, #12]
  2765. 800102a: 6d1b ldr r3, [r3, #80] @ 0x50
  2766. 800102c: 681a ldr r2, [r3, #0]
  2767. 800102e: 68fb ldr r3, [r7, #12]
  2768. 8001030: 6d1b ldr r3, [r3, #80] @ 0x50
  2769. 8001032: 2180 movs r1, #128 @ 0x80
  2770. 8001034: 0049 lsls r1, r1, #1
  2771. 8001036: 430a orrs r2, r1
  2772. 8001038: 601a str r2, [r3, #0]
  2773. }
  2774. /* Enable the Peripheral */
  2775. __HAL_DMA_ENABLE(hdma);
  2776. 800103a: 68fb ldr r3, [r7, #12]
  2777. 800103c: 681b ldr r3, [r3, #0]
  2778. 800103e: 681a ldr r2, [r3, #0]
  2779. 8001040: 68fb ldr r3, [r7, #12]
  2780. 8001042: 681b ldr r3, [r3, #0]
  2781. 8001044: 2101 movs r1, #1
  2782. 8001046: 430a orrs r2, r1
  2783. 8001048: 601a str r2, [r3, #0]
  2784. 800104a: e00a b.n 8001062 <HAL_DMA_Start_IT+0xfe>
  2785. }
  2786. else
  2787. {
  2788. /* Change the error code */
  2789. hdma->ErrorCode = HAL_DMA_ERROR_BUSY;
  2790. 800104c: 68fb ldr r3, [r7, #12]
  2791. 800104e: 2280 movs r2, #128 @ 0x80
  2792. 8001050: 63da str r2, [r3, #60] @ 0x3c
  2793. /* Process Unlocked */
  2794. __HAL_UNLOCK(hdma);
  2795. 8001052: 68fb ldr r3, [r7, #12]
  2796. 8001054: 2224 movs r2, #36 @ 0x24
  2797. 8001056: 2100 movs r1, #0
  2798. 8001058: 5499 strb r1, [r3, r2]
  2799. /* Return error status */
  2800. status = HAL_ERROR;
  2801. 800105a: 2317 movs r3, #23
  2802. 800105c: 18fb adds r3, r7, r3
  2803. 800105e: 2201 movs r2, #1
  2804. 8001060: 701a strb r2, [r3, #0]
  2805. }
  2806. return status;
  2807. 8001062: 2317 movs r3, #23
  2808. 8001064: 18fb adds r3, r7, r3
  2809. 8001066: 781b ldrb r3, [r3, #0]
  2810. }
  2811. 8001068: 0018 movs r0, r3
  2812. 800106a: 46bd mov sp, r7
  2813. 800106c: b006 add sp, #24
  2814. 800106e: bd80 pop {r7, pc}
  2815. 08001070 <HAL_DMA_Abort_IT>:
  2816. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  2817. * the configuration information for the specified DMA Channel.
  2818. * @retval HAL status
  2819. */
  2820. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  2821. {
  2822. 8001070: b580 push {r7, lr}
  2823. 8001072: b084 sub sp, #16
  2824. 8001074: af00 add r7, sp, #0
  2825. 8001076: 6078 str r0, [r7, #4]
  2826. HAL_StatusTypeDef status = HAL_OK;
  2827. 8001078: 210f movs r1, #15
  2828. 800107a: 187b adds r3, r7, r1
  2829. 800107c: 2200 movs r2, #0
  2830. 800107e: 701a strb r2, [r3, #0]
  2831. if (hdma->State != HAL_DMA_STATE_BUSY)
  2832. 8001080: 687b ldr r3, [r7, #4]
  2833. 8001082: 2225 movs r2, #37 @ 0x25
  2834. 8001084: 5c9b ldrb r3, [r3, r2]
  2835. 8001086: b2db uxtb r3, r3
  2836. 8001088: 2b02 cmp r3, #2
  2837. 800108a: d006 beq.n 800109a <HAL_DMA_Abort_IT+0x2a>
  2838. {
  2839. /* no transfer ongoing */
  2840. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  2841. 800108c: 687b ldr r3, [r7, #4]
  2842. 800108e: 2204 movs r2, #4
  2843. 8001090: 63da str r2, [r3, #60] @ 0x3c
  2844. status = HAL_ERROR;
  2845. 8001092: 187b adds r3, r7, r1
  2846. 8001094: 2201 movs r2, #1
  2847. 8001096: 701a strb r2, [r3, #0]
  2848. 8001098: e049 b.n 800112e <HAL_DMA_Abort_IT+0xbe>
  2849. }
  2850. else
  2851. {
  2852. /* Disable DMA IT */
  2853. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  2854. 800109a: 687b ldr r3, [r7, #4]
  2855. 800109c: 681b ldr r3, [r3, #0]
  2856. 800109e: 681a ldr r2, [r3, #0]
  2857. 80010a0: 687b ldr r3, [r7, #4]
  2858. 80010a2: 681b ldr r3, [r3, #0]
  2859. 80010a4: 210e movs r1, #14
  2860. 80010a6: 438a bics r2, r1
  2861. 80010a8: 601a str r2, [r3, #0]
  2862. /* Disable the channel */
  2863. __HAL_DMA_DISABLE(hdma);
  2864. 80010aa: 687b ldr r3, [r7, #4]
  2865. 80010ac: 681b ldr r3, [r3, #0]
  2866. 80010ae: 681a ldr r2, [r3, #0]
  2867. 80010b0: 687b ldr r3, [r7, #4]
  2868. 80010b2: 681b ldr r3, [r3, #0]
  2869. 80010b4: 2101 movs r1, #1
  2870. 80010b6: 438a bics r2, r1
  2871. 80010b8: 601a str r2, [r3, #0]
  2872. /* disable the DMAMUX sync overrun IT*/
  2873. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  2874. 80010ba: 687b ldr r3, [r7, #4]
  2875. 80010bc: 6c5b ldr r3, [r3, #68] @ 0x44
  2876. 80010be: 681a ldr r2, [r3, #0]
  2877. 80010c0: 687b ldr r3, [r7, #4]
  2878. 80010c2: 6c5b ldr r3, [r3, #68] @ 0x44
  2879. 80010c4: 491d ldr r1, [pc, #116] @ (800113c <HAL_DMA_Abort_IT+0xcc>)
  2880. 80010c6: 400a ands r2, r1
  2881. 80010c8: 601a str r2, [r3, #0]
  2882. /* Clear all flags */
  2883. #if defined(DMA2)
  2884. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << (hdma->ChannelIndex & 0x1CU));
  2885. #else
  2886. __HAL_DMA_CLEAR_FLAG(hdma, ((DMA_FLAG_GI1) << (hdma->ChannelIndex & 0x1CU)));
  2887. 80010ca: 4b1d ldr r3, [pc, #116] @ (8001140 <HAL_DMA_Abort_IT+0xd0>)
  2888. 80010cc: 6859 ldr r1, [r3, #4]
  2889. 80010ce: 687b ldr r3, [r7, #4]
  2890. 80010d0: 6c1b ldr r3, [r3, #64] @ 0x40
  2891. 80010d2: 221c movs r2, #28
  2892. 80010d4: 4013 ands r3, r2
  2893. 80010d6: 2201 movs r2, #1
  2894. 80010d8: 409a lsls r2, r3
  2895. 80010da: 4b19 ldr r3, [pc, #100] @ (8001140 <HAL_DMA_Abort_IT+0xd0>)
  2896. 80010dc: 430a orrs r2, r1
  2897. 80010de: 605a str r2, [r3, #4]
  2898. #endif /* DMA2 */
  2899. /* Clear the DMAMUX synchro overrun flag */
  2900. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  2901. 80010e0: 687b ldr r3, [r7, #4]
  2902. 80010e2: 6c9b ldr r3, [r3, #72] @ 0x48
  2903. 80010e4: 687a ldr r2, [r7, #4]
  2904. 80010e6: 6cd2 ldr r2, [r2, #76] @ 0x4c
  2905. 80010e8: 605a str r2, [r3, #4]
  2906. if (hdma->DMAmuxRequestGen != 0U)
  2907. 80010ea: 687b ldr r3, [r7, #4]
  2908. 80010ec: 6d1b ldr r3, [r3, #80] @ 0x50
  2909. 80010ee: 2b00 cmp r3, #0
  2910. 80010f0: d00c beq.n 800110c <HAL_DMA_Abort_IT+0x9c>
  2911. {
  2912. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/
  2913. /* disable the request gen overrun IT*/
  2914. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  2915. 80010f2: 687b ldr r3, [r7, #4]
  2916. 80010f4: 6d1b ldr r3, [r3, #80] @ 0x50
  2917. 80010f6: 681a ldr r2, [r3, #0]
  2918. 80010f8: 687b ldr r3, [r7, #4]
  2919. 80010fa: 6d1b ldr r3, [r3, #80] @ 0x50
  2920. 80010fc: 490f ldr r1, [pc, #60] @ (800113c <HAL_DMA_Abort_IT+0xcc>)
  2921. 80010fe: 400a ands r2, r1
  2922. 8001100: 601a str r2, [r3, #0]
  2923. /* Clear the DMAMUX request generator overrun flag */
  2924. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  2925. 8001102: 687b ldr r3, [r7, #4]
  2926. 8001104: 6d5b ldr r3, [r3, #84] @ 0x54
  2927. 8001106: 687a ldr r2, [r7, #4]
  2928. 8001108: 6d92 ldr r2, [r2, #88] @ 0x58
  2929. 800110a: 605a str r2, [r3, #4]
  2930. }
  2931. /* Change the DMA state */
  2932. hdma->State = HAL_DMA_STATE_READY;
  2933. 800110c: 687b ldr r3, [r7, #4]
  2934. 800110e: 2225 movs r2, #37 @ 0x25
  2935. 8001110: 2101 movs r1, #1
  2936. 8001112: 5499 strb r1, [r3, r2]
  2937. /* Process Unlocked */
  2938. __HAL_UNLOCK(hdma);
  2939. 8001114: 687b ldr r3, [r7, #4]
  2940. 8001116: 2224 movs r2, #36 @ 0x24
  2941. 8001118: 2100 movs r1, #0
  2942. 800111a: 5499 strb r1, [r3, r2]
  2943. /* Call User Abort callback */
  2944. if (hdma->XferAbortCallback != NULL)
  2945. 800111c: 687b ldr r3, [r7, #4]
  2946. 800111e: 6b9b ldr r3, [r3, #56] @ 0x38
  2947. 8001120: 2b00 cmp r3, #0
  2948. 8001122: d004 beq.n 800112e <HAL_DMA_Abort_IT+0xbe>
  2949. {
  2950. hdma->XferAbortCallback(hdma);
  2951. 8001124: 687b ldr r3, [r7, #4]
  2952. 8001126: 6b9b ldr r3, [r3, #56] @ 0x38
  2953. 8001128: 687a ldr r2, [r7, #4]
  2954. 800112a: 0010 movs r0, r2
  2955. 800112c: 4798 blx r3
  2956. }
  2957. }
  2958. return status;
  2959. 800112e: 230f movs r3, #15
  2960. 8001130: 18fb adds r3, r7, r3
  2961. 8001132: 781b ldrb r3, [r3, #0]
  2962. }
  2963. 8001134: 0018 movs r0, r3
  2964. 8001136: 46bd mov sp, r7
  2965. 8001138: b004 add sp, #16
  2966. 800113a: bd80 pop {r7, pc}
  2967. 800113c: fffffeff .word 0xfffffeff
  2968. 8001140: 40020000 .word 0x40020000
  2969. 08001144 <DMA_SetConfig>:
  2970. * @param DstAddress The destination memory Buffer address
  2971. * @param DataLength The length of data to be transferred from source to destination
  2972. * @retval HAL status
  2973. */
  2974. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  2975. {
  2976. 8001144: b580 push {r7, lr}
  2977. 8001146: b084 sub sp, #16
  2978. 8001148: af00 add r7, sp, #0
  2979. 800114a: 60f8 str r0, [r7, #12]
  2980. 800114c: 60b9 str r1, [r7, #8]
  2981. 800114e: 607a str r2, [r7, #4]
  2982. 8001150: 603b str r3, [r7, #0]
  2983. /* Clear the DMAMUX synchro overrun flag */
  2984. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  2985. 8001152: 68fb ldr r3, [r7, #12]
  2986. 8001154: 6c9b ldr r3, [r3, #72] @ 0x48
  2987. 8001156: 68fa ldr r2, [r7, #12]
  2988. 8001158: 6cd2 ldr r2, [r2, #76] @ 0x4c
  2989. 800115a: 605a str r2, [r3, #4]
  2990. if (hdma->DMAmuxRequestGen != 0U)
  2991. 800115c: 68fb ldr r3, [r7, #12]
  2992. 800115e: 6d1b ldr r3, [r3, #80] @ 0x50
  2993. 8001160: 2b00 cmp r3, #0
  2994. 8001162: d004 beq.n 800116e <DMA_SetConfig+0x2a>
  2995. {
  2996. /* Clear the DMAMUX request generator overrun flag */
  2997. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  2998. 8001164: 68fb ldr r3, [r7, #12]
  2999. 8001166: 6d5b ldr r3, [r3, #84] @ 0x54
  3000. 8001168: 68fa ldr r2, [r7, #12]
  3001. 800116a: 6d92 ldr r2, [r2, #88] @ 0x58
  3002. 800116c: 605a str r2, [r3, #4]
  3003. /* Clear all flags */
  3004. #if defined(DMA2)
  3005. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << (hdma->ChannelIndex & 0x1CU));
  3006. #else
  3007. __HAL_DMA_CLEAR_FLAG(hdma, (DMA_FLAG_GI1 << (hdma->ChannelIndex & 0x1CU)));
  3008. 800116e: 4b14 ldr r3, [pc, #80] @ (80011c0 <DMA_SetConfig+0x7c>)
  3009. 8001170: 6859 ldr r1, [r3, #4]
  3010. 8001172: 68fb ldr r3, [r7, #12]
  3011. 8001174: 6c1b ldr r3, [r3, #64] @ 0x40
  3012. 8001176: 221c movs r2, #28
  3013. 8001178: 4013 ands r3, r2
  3014. 800117a: 2201 movs r2, #1
  3015. 800117c: 409a lsls r2, r3
  3016. 800117e: 4b10 ldr r3, [pc, #64] @ (80011c0 <DMA_SetConfig+0x7c>)
  3017. 8001180: 430a orrs r2, r1
  3018. 8001182: 605a str r2, [r3, #4]
  3019. #endif /* DMA2 */
  3020. /* Configure DMA Channel data length */
  3021. hdma->Instance->CNDTR = DataLength;
  3022. 8001184: 68fb ldr r3, [r7, #12]
  3023. 8001186: 681b ldr r3, [r3, #0]
  3024. 8001188: 683a ldr r2, [r7, #0]
  3025. 800118a: 605a str r2, [r3, #4]
  3026. /* Memory to Peripheral */
  3027. if ((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  3028. 800118c: 68fb ldr r3, [r7, #12]
  3029. 800118e: 689b ldr r3, [r3, #8]
  3030. 8001190: 2b10 cmp r3, #16
  3031. 8001192: d108 bne.n 80011a6 <DMA_SetConfig+0x62>
  3032. {
  3033. /* Configure DMA Channel destination address */
  3034. hdma->Instance->CPAR = DstAddress;
  3035. 8001194: 68fb ldr r3, [r7, #12]
  3036. 8001196: 681b ldr r3, [r3, #0]
  3037. 8001198: 687a ldr r2, [r7, #4]
  3038. 800119a: 609a str r2, [r3, #8]
  3039. /* Configure DMA Channel source address */
  3040. hdma->Instance->CMAR = SrcAddress;
  3041. 800119c: 68fb ldr r3, [r7, #12]
  3042. 800119e: 681b ldr r3, [r3, #0]
  3043. 80011a0: 68ba ldr r2, [r7, #8]
  3044. 80011a2: 60da str r2, [r3, #12]
  3045. hdma->Instance->CPAR = SrcAddress;
  3046. /* Configure DMA Channel destination address */
  3047. hdma->Instance->CMAR = DstAddress;
  3048. }
  3049. }
  3050. 80011a4: e007 b.n 80011b6 <DMA_SetConfig+0x72>
  3051. hdma->Instance->CPAR = SrcAddress;
  3052. 80011a6: 68fb ldr r3, [r7, #12]
  3053. 80011a8: 681b ldr r3, [r3, #0]
  3054. 80011aa: 68ba ldr r2, [r7, #8]
  3055. 80011ac: 609a str r2, [r3, #8]
  3056. hdma->Instance->CMAR = DstAddress;
  3057. 80011ae: 68fb ldr r3, [r7, #12]
  3058. 80011b0: 681b ldr r3, [r3, #0]
  3059. 80011b2: 687a ldr r2, [r7, #4]
  3060. 80011b4: 60da str r2, [r3, #12]
  3061. }
  3062. 80011b6: 46c0 nop @ (mov r8, r8)
  3063. 80011b8: 46bd mov sp, r7
  3064. 80011ba: b004 add sp, #16
  3065. 80011bc: bd80 pop {r7, pc}
  3066. 80011be: 46c0 nop @ (mov r8, r8)
  3067. 80011c0: 40020000 .word 0x40020000
  3068. 080011c4 <DMA_CalcDMAMUXChannelBaseAndMask>:
  3069. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  3070. * the configuration information for the specified DMA Channel.
  3071. * @retval None
  3072. */
  3073. static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma)
  3074. {
  3075. 80011c4: b580 push {r7, lr}
  3076. 80011c6: b084 sub sp, #16
  3077. 80011c8: af00 add r7, sp, #0
  3078. 80011ca: 6078 str r0, [r7, #4]
  3079. /* Prepare channel_number used for DMAmuxChannelStatusMask computation */
  3080. channel_number = (((((uint32_t)hdma->Instance & 0xFFU) - 8U) / 20U) + 7U);
  3081. }
  3082. #else
  3083. /* Associate a DMA Channel to a DMAMUX channel */
  3084. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)(uint32_t)((uint32_t)DMAMUX1_Channel0 + ((hdma->ChannelIndex >> 2U) * ((uint32_t)DMAMUX1_Channel1 - (uint32_t)DMAMUX1_Channel0)));
  3085. 80011cc: 687b ldr r3, [r7, #4]
  3086. 80011ce: 6c1b ldr r3, [r3, #64] @ 0x40
  3087. 80011d0: 089b lsrs r3, r3, #2
  3088. 80011d2: 4a10 ldr r2, [pc, #64] @ (8001214 <DMA_CalcDMAMUXChannelBaseAndMask+0x50>)
  3089. 80011d4: 4694 mov ip, r2
  3090. 80011d6: 4463 add r3, ip
  3091. 80011d8: 009b lsls r3, r3, #2
  3092. 80011da: 001a movs r2, r3
  3093. 80011dc: 687b ldr r3, [r7, #4]
  3094. 80011de: 645a str r2, [r3, #68] @ 0x44
  3095. /* Prepare channel_number used for DMAmuxChannelStatusMask computation */
  3096. channel_number = (((uint32_t)hdma->Instance & 0xFFU) - 8U) / 20U;
  3097. 80011e0: 687b ldr r3, [r7, #4]
  3098. 80011e2: 681b ldr r3, [r3, #0]
  3099. 80011e4: 001a movs r2, r3
  3100. 80011e6: 23ff movs r3, #255 @ 0xff
  3101. 80011e8: 4013 ands r3, r2
  3102. 80011ea: 3b08 subs r3, #8
  3103. 80011ec: 2114 movs r1, #20
  3104. 80011ee: 0018 movs r0, r3
  3105. 80011f0: f7fe ff86 bl 8000100 <__udivsi3>
  3106. 80011f4: 0003 movs r3, r0
  3107. 80011f6: 60fb str r3, [r7, #12]
  3108. #endif /* DMA2 */
  3109. /* Initialize the field DMAmuxChannelStatus to DMAMUX1_ChannelStatus base */
  3110. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  3111. 80011f8: 687b ldr r3, [r7, #4]
  3112. 80011fa: 4a07 ldr r2, [pc, #28] @ (8001218 <DMA_CalcDMAMUXChannelBaseAndMask+0x54>)
  3113. 80011fc: 649a str r2, [r3, #72] @ 0x48
  3114. /* Initialize the field DMAmuxChannelStatusMask with the corresponding index of the DMAMUX channel selected for the current ChannelIndex */
  3115. hdma->DMAmuxChannelStatusMask = 1UL << (channel_number & 0x1FU);
  3116. 80011fe: 68fb ldr r3, [r7, #12]
  3117. 8001200: 221f movs r2, #31
  3118. 8001202: 4013 ands r3, r2
  3119. 8001204: 2201 movs r2, #1
  3120. 8001206: 409a lsls r2, r3
  3121. 8001208: 687b ldr r3, [r7, #4]
  3122. 800120a: 64da str r2, [r3, #76] @ 0x4c
  3123. }
  3124. 800120c: 46c0 nop @ (mov r8, r8)
  3125. 800120e: 46bd mov sp, r7
  3126. 8001210: b004 add sp, #16
  3127. 8001212: bd80 pop {r7, pc}
  3128. 8001214: 10008200 .word 0x10008200
  3129. 8001218: 40020880 .word 0x40020880
  3130. 0800121c <DMA_CalcDMAMUXRequestGenBaseAndMask>:
  3131. * the configuration information for the specified DMA Channel.
  3132. * @retval None
  3133. */
  3134. static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma)
  3135. {
  3136. 800121c: b580 push {r7, lr}
  3137. 800121e: b084 sub sp, #16
  3138. 8001220: af00 add r7, sp, #0
  3139. 8001222: 6078 str r0, [r7, #4]
  3140. uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID;
  3141. 8001224: 687b ldr r3, [r7, #4]
  3142. 8001226: 685b ldr r3, [r3, #4]
  3143. 8001228: 223f movs r2, #63 @ 0x3f
  3144. 800122a: 4013 ands r3, r2
  3145. 800122c: 60fb str r3, [r7, #12]
  3146. /* DMA Channels are connected to DMAMUX1 request generator blocks*/
  3147. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U)));
  3148. 800122e: 68fb ldr r3, [r7, #12]
  3149. 8001230: 4a0a ldr r2, [pc, #40] @ (800125c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x40>)
  3150. 8001232: 4694 mov ip, r2
  3151. 8001234: 4463 add r3, ip
  3152. 8001236: 009b lsls r3, r3, #2
  3153. 8001238: 001a movs r2, r3
  3154. 800123a: 687b ldr r3, [r7, #4]
  3155. 800123c: 651a str r2, [r3, #80] @ 0x50
  3156. hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus;
  3157. 800123e: 687b ldr r3, [r7, #4]
  3158. 8001240: 4a07 ldr r2, [pc, #28] @ (8001260 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x44>)
  3159. 8001242: 655a str r2, [r3, #84] @ 0x54
  3160. /* here "Request" is either DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR3, i.e. <= 4*/
  3161. hdma->DMAmuxRequestGenStatusMask = 1UL << ((request - 1U) & 0x3U);
  3162. 8001244: 68fb ldr r3, [r7, #12]
  3163. 8001246: 3b01 subs r3, #1
  3164. 8001248: 2203 movs r2, #3
  3165. 800124a: 4013 ands r3, r2
  3166. 800124c: 2201 movs r2, #1
  3167. 800124e: 409a lsls r2, r3
  3168. 8001250: 687b ldr r3, [r7, #4]
  3169. 8001252: 659a str r2, [r3, #88] @ 0x58
  3170. }
  3171. 8001254: 46c0 nop @ (mov r8, r8)
  3172. 8001256: 46bd mov sp, r7
  3173. 8001258: b004 add sp, #16
  3174. 800125a: bd80 pop {r7, pc}
  3175. 800125c: 1000823f .word 0x1000823f
  3176. 8001260: 40020940 .word 0x40020940
  3177. 08001264 <HAL_GPIO_Init>:
  3178. * @param GPIO_Init pointer to a GPIO_InitTypeDef structure that contains
  3179. * the configuration information for the specified GPIO peripheral.
  3180. * @retval None
  3181. */
  3182. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  3183. {
  3184. 8001264: b580 push {r7, lr}
  3185. 8001266: b086 sub sp, #24
  3186. 8001268: af00 add r7, sp, #0
  3187. 800126a: 6078 str r0, [r7, #4]
  3188. 800126c: 6039 str r1, [r7, #0]
  3189. uint32_t position = 0x00u;
  3190. 800126e: 2300 movs r3, #0
  3191. 8001270: 617b str r3, [r7, #20]
  3192. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  3193. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  3194. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  3195. /* Configure the port pins */
  3196. while (((GPIO_Init->Pin) >> position) != 0x00u)
  3197. 8001272: e147 b.n 8001504 <HAL_GPIO_Init+0x2a0>
  3198. {
  3199. /* Get current io position */
  3200. iocurrent = (GPIO_Init->Pin) & (1uL << position);
  3201. 8001274: 683b ldr r3, [r7, #0]
  3202. 8001276: 681b ldr r3, [r3, #0]
  3203. 8001278: 2101 movs r1, #1
  3204. 800127a: 697a ldr r2, [r7, #20]
  3205. 800127c: 4091 lsls r1, r2
  3206. 800127e: 000a movs r2, r1
  3207. 8001280: 4013 ands r3, r2
  3208. 8001282: 60fb str r3, [r7, #12]
  3209. if (iocurrent != 0x00u)
  3210. 8001284: 68fb ldr r3, [r7, #12]
  3211. 8001286: 2b00 cmp r3, #0
  3212. 8001288: d100 bne.n 800128c <HAL_GPIO_Init+0x28>
  3213. 800128a: e138 b.n 80014fe <HAL_GPIO_Init+0x29a>
  3214. {
  3215. /*--------------------- GPIO Mode Configuration ------------------------*/
  3216. /* In case of Output or Alternate function mode selection */
  3217. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  3218. 800128c: 683b ldr r3, [r7, #0]
  3219. 800128e: 685b ldr r3, [r3, #4]
  3220. 8001290: 2203 movs r2, #3
  3221. 8001292: 4013 ands r3, r2
  3222. 8001294: 2b01 cmp r3, #1
  3223. 8001296: d005 beq.n 80012a4 <HAL_GPIO_Init+0x40>
  3224. 8001298: 683b ldr r3, [r7, #0]
  3225. 800129a: 685b ldr r3, [r3, #4]
  3226. 800129c: 2203 movs r2, #3
  3227. 800129e: 4013 ands r3, r2
  3228. 80012a0: 2b02 cmp r3, #2
  3229. 80012a2: d130 bne.n 8001306 <HAL_GPIO_Init+0xa2>
  3230. {
  3231. /* Check the Speed parameter */
  3232. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  3233. /* Configure the IO Speed */
  3234. temp = GPIOx->OSPEEDR;
  3235. 80012a4: 687b ldr r3, [r7, #4]
  3236. 80012a6: 689b ldr r3, [r3, #8]
  3237. 80012a8: 613b str r3, [r7, #16]
  3238. temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u));
  3239. 80012aa: 697b ldr r3, [r7, #20]
  3240. 80012ac: 005b lsls r3, r3, #1
  3241. 80012ae: 2203 movs r2, #3
  3242. 80012b0: 409a lsls r2, r3
  3243. 80012b2: 0013 movs r3, r2
  3244. 80012b4: 43da mvns r2, r3
  3245. 80012b6: 693b ldr r3, [r7, #16]
  3246. 80012b8: 4013 ands r3, r2
  3247. 80012ba: 613b str r3, [r7, #16]
  3248. temp |= (GPIO_Init->Speed << (position * 2u));
  3249. 80012bc: 683b ldr r3, [r7, #0]
  3250. 80012be: 68da ldr r2, [r3, #12]
  3251. 80012c0: 697b ldr r3, [r7, #20]
  3252. 80012c2: 005b lsls r3, r3, #1
  3253. 80012c4: 409a lsls r2, r3
  3254. 80012c6: 0013 movs r3, r2
  3255. 80012c8: 693a ldr r2, [r7, #16]
  3256. 80012ca: 4313 orrs r3, r2
  3257. 80012cc: 613b str r3, [r7, #16]
  3258. GPIOx->OSPEEDR = temp;
  3259. 80012ce: 687b ldr r3, [r7, #4]
  3260. 80012d0: 693a ldr r2, [r7, #16]
  3261. 80012d2: 609a str r2, [r3, #8]
  3262. /* Configure the IO Output Type */
  3263. temp = GPIOx->OTYPER;
  3264. 80012d4: 687b ldr r3, [r7, #4]
  3265. 80012d6: 685b ldr r3, [r3, #4]
  3266. 80012d8: 613b str r3, [r7, #16]
  3267. temp &= ~(GPIO_OTYPER_OT0 << position) ;
  3268. 80012da: 2201 movs r2, #1
  3269. 80012dc: 697b ldr r3, [r7, #20]
  3270. 80012de: 409a lsls r2, r3
  3271. 80012e0: 0013 movs r3, r2
  3272. 80012e2: 43da mvns r2, r3
  3273. 80012e4: 693b ldr r3, [r7, #16]
  3274. 80012e6: 4013 ands r3, r2
  3275. 80012e8: 613b str r3, [r7, #16]
  3276. temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  3277. 80012ea: 683b ldr r3, [r7, #0]
  3278. 80012ec: 685b ldr r3, [r3, #4]
  3279. 80012ee: 091b lsrs r3, r3, #4
  3280. 80012f0: 2201 movs r2, #1
  3281. 80012f2: 401a ands r2, r3
  3282. 80012f4: 697b ldr r3, [r7, #20]
  3283. 80012f6: 409a lsls r2, r3
  3284. 80012f8: 0013 movs r3, r2
  3285. 80012fa: 693a ldr r2, [r7, #16]
  3286. 80012fc: 4313 orrs r3, r2
  3287. 80012fe: 613b str r3, [r7, #16]
  3288. GPIOx->OTYPER = temp;
  3289. 8001300: 687b ldr r3, [r7, #4]
  3290. 8001302: 693a ldr r2, [r7, #16]
  3291. 8001304: 605a str r2, [r3, #4]
  3292. }
  3293. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  3294. 8001306: 683b ldr r3, [r7, #0]
  3295. 8001308: 685b ldr r3, [r3, #4]
  3296. 800130a: 2203 movs r2, #3
  3297. 800130c: 4013 ands r3, r2
  3298. 800130e: 2b03 cmp r3, #3
  3299. 8001310: d017 beq.n 8001342 <HAL_GPIO_Init+0xde>
  3300. {
  3301. /* Check the Pull parameter */
  3302. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  3303. /* Activate the Pull-up or Pull down resistor for the current IO */
  3304. temp = GPIOx->PUPDR;
  3305. 8001312: 687b ldr r3, [r7, #4]
  3306. 8001314: 68db ldr r3, [r3, #12]
  3307. 8001316: 613b str r3, [r7, #16]
  3308. temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2u));
  3309. 8001318: 697b ldr r3, [r7, #20]
  3310. 800131a: 005b lsls r3, r3, #1
  3311. 800131c: 2203 movs r2, #3
  3312. 800131e: 409a lsls r2, r3
  3313. 8001320: 0013 movs r3, r2
  3314. 8001322: 43da mvns r2, r3
  3315. 8001324: 693b ldr r3, [r7, #16]
  3316. 8001326: 4013 ands r3, r2
  3317. 8001328: 613b str r3, [r7, #16]
  3318. temp |= ((GPIO_Init->Pull) << (position * 2u));
  3319. 800132a: 683b ldr r3, [r7, #0]
  3320. 800132c: 689a ldr r2, [r3, #8]
  3321. 800132e: 697b ldr r3, [r7, #20]
  3322. 8001330: 005b lsls r3, r3, #1
  3323. 8001332: 409a lsls r2, r3
  3324. 8001334: 0013 movs r3, r2
  3325. 8001336: 693a ldr r2, [r7, #16]
  3326. 8001338: 4313 orrs r3, r2
  3327. 800133a: 613b str r3, [r7, #16]
  3328. GPIOx->PUPDR = temp;
  3329. 800133c: 687b ldr r3, [r7, #4]
  3330. 800133e: 693a ldr r2, [r7, #16]
  3331. 8001340: 60da str r2, [r3, #12]
  3332. }
  3333. /* In case of Alternate function mode selection */
  3334. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  3335. 8001342: 683b ldr r3, [r7, #0]
  3336. 8001344: 685b ldr r3, [r3, #4]
  3337. 8001346: 2203 movs r2, #3
  3338. 8001348: 4013 ands r3, r2
  3339. 800134a: 2b02 cmp r3, #2
  3340. 800134c: d123 bne.n 8001396 <HAL_GPIO_Init+0x132>
  3341. /* Check the Alternate function parameters */
  3342. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  3343. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  3344. /* Configure Alternate function mapped with the current IO */
  3345. temp = GPIOx->AFR[position >> 3u];
  3346. 800134e: 697b ldr r3, [r7, #20]
  3347. 8001350: 08da lsrs r2, r3, #3
  3348. 8001352: 687b ldr r3, [r7, #4]
  3349. 8001354: 3208 adds r2, #8
  3350. 8001356: 0092 lsls r2, r2, #2
  3351. 8001358: 58d3 ldr r3, [r2, r3]
  3352. 800135a: 613b str r3, [r7, #16]
  3353. temp &= ~(0xFu << ((position & 0x07u) * 4u));
  3354. 800135c: 697b ldr r3, [r7, #20]
  3355. 800135e: 2207 movs r2, #7
  3356. 8001360: 4013 ands r3, r2
  3357. 8001362: 009b lsls r3, r3, #2
  3358. 8001364: 220f movs r2, #15
  3359. 8001366: 409a lsls r2, r3
  3360. 8001368: 0013 movs r3, r2
  3361. 800136a: 43da mvns r2, r3
  3362. 800136c: 693b ldr r3, [r7, #16]
  3363. 800136e: 4013 ands r3, r2
  3364. 8001370: 613b str r3, [r7, #16]
  3365. temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u));
  3366. 8001372: 683b ldr r3, [r7, #0]
  3367. 8001374: 691a ldr r2, [r3, #16]
  3368. 8001376: 697b ldr r3, [r7, #20]
  3369. 8001378: 2107 movs r1, #7
  3370. 800137a: 400b ands r3, r1
  3371. 800137c: 009b lsls r3, r3, #2
  3372. 800137e: 409a lsls r2, r3
  3373. 8001380: 0013 movs r3, r2
  3374. 8001382: 693a ldr r2, [r7, #16]
  3375. 8001384: 4313 orrs r3, r2
  3376. 8001386: 613b str r3, [r7, #16]
  3377. GPIOx->AFR[position >> 3u] = temp;
  3378. 8001388: 697b ldr r3, [r7, #20]
  3379. 800138a: 08da lsrs r2, r3, #3
  3380. 800138c: 687b ldr r3, [r7, #4]
  3381. 800138e: 3208 adds r2, #8
  3382. 8001390: 0092 lsls r2, r2, #2
  3383. 8001392: 6939 ldr r1, [r7, #16]
  3384. 8001394: 50d1 str r1, [r2, r3]
  3385. }
  3386. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  3387. temp = GPIOx->MODER;
  3388. 8001396: 687b ldr r3, [r7, #4]
  3389. 8001398: 681b ldr r3, [r3, #0]
  3390. 800139a: 613b str r3, [r7, #16]
  3391. temp &= ~(GPIO_MODER_MODE0 << (position * 2u));
  3392. 800139c: 697b ldr r3, [r7, #20]
  3393. 800139e: 005b lsls r3, r3, #1
  3394. 80013a0: 2203 movs r2, #3
  3395. 80013a2: 409a lsls r2, r3
  3396. 80013a4: 0013 movs r3, r2
  3397. 80013a6: 43da mvns r2, r3
  3398. 80013a8: 693b ldr r3, [r7, #16]
  3399. 80013aa: 4013 ands r3, r2
  3400. 80013ac: 613b str r3, [r7, #16]
  3401. temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u));
  3402. 80013ae: 683b ldr r3, [r7, #0]
  3403. 80013b0: 685b ldr r3, [r3, #4]
  3404. 80013b2: 2203 movs r2, #3
  3405. 80013b4: 401a ands r2, r3
  3406. 80013b6: 697b ldr r3, [r7, #20]
  3407. 80013b8: 005b lsls r3, r3, #1
  3408. 80013ba: 409a lsls r2, r3
  3409. 80013bc: 0013 movs r3, r2
  3410. 80013be: 693a ldr r2, [r7, #16]
  3411. 80013c0: 4313 orrs r3, r2
  3412. 80013c2: 613b str r3, [r7, #16]
  3413. GPIOx->MODER = temp;
  3414. 80013c4: 687b ldr r3, [r7, #4]
  3415. 80013c6: 693a ldr r2, [r7, #16]
  3416. 80013c8: 601a str r2, [r3, #0]
  3417. /*--------------------- EXTI Mode Configuration ------------------------*/
  3418. /* Configure the External Interrupt or event for the current IO */
  3419. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00u)
  3420. 80013ca: 683b ldr r3, [r7, #0]
  3421. 80013cc: 685a ldr r2, [r3, #4]
  3422. 80013ce: 23c0 movs r3, #192 @ 0xc0
  3423. 80013d0: 029b lsls r3, r3, #10
  3424. 80013d2: 4013 ands r3, r2
  3425. 80013d4: d100 bne.n 80013d8 <HAL_GPIO_Init+0x174>
  3426. 80013d6: e092 b.n 80014fe <HAL_GPIO_Init+0x29a>
  3427. {
  3428. temp = EXTI->EXTICR[position >> 2u];
  3429. 80013d8: 4a50 ldr r2, [pc, #320] @ (800151c <HAL_GPIO_Init+0x2b8>)
  3430. 80013da: 697b ldr r3, [r7, #20]
  3431. 80013dc: 089b lsrs r3, r3, #2
  3432. 80013de: 3318 adds r3, #24
  3433. 80013e0: 009b lsls r3, r3, #2
  3434. 80013e2: 589b ldr r3, [r3, r2]
  3435. 80013e4: 613b str r3, [r7, #16]
  3436. temp &= ~(0x0FuL << (8u * (position & 0x03u)));
  3437. 80013e6: 697b ldr r3, [r7, #20]
  3438. 80013e8: 2203 movs r2, #3
  3439. 80013ea: 4013 ands r3, r2
  3440. 80013ec: 00db lsls r3, r3, #3
  3441. 80013ee: 220f movs r2, #15
  3442. 80013f0: 409a lsls r2, r3
  3443. 80013f2: 0013 movs r3, r2
  3444. 80013f4: 43da mvns r2, r3
  3445. 80013f6: 693b ldr r3, [r7, #16]
  3446. 80013f8: 4013 ands r3, r2
  3447. 80013fa: 613b str r3, [r7, #16]
  3448. temp |= (GPIO_GET_INDEX(GPIOx) << (8u * (position & 0x03u)));
  3449. 80013fc: 687a ldr r2, [r7, #4]
  3450. 80013fe: 23a0 movs r3, #160 @ 0xa0
  3451. 8001400: 05db lsls r3, r3, #23
  3452. 8001402: 429a cmp r2, r3
  3453. 8001404: d013 beq.n 800142e <HAL_GPIO_Init+0x1ca>
  3454. 8001406: 687b ldr r3, [r7, #4]
  3455. 8001408: 4a45 ldr r2, [pc, #276] @ (8001520 <HAL_GPIO_Init+0x2bc>)
  3456. 800140a: 4293 cmp r3, r2
  3457. 800140c: d00d beq.n 800142a <HAL_GPIO_Init+0x1c6>
  3458. 800140e: 687b ldr r3, [r7, #4]
  3459. 8001410: 4a44 ldr r2, [pc, #272] @ (8001524 <HAL_GPIO_Init+0x2c0>)
  3460. 8001412: 4293 cmp r3, r2
  3461. 8001414: d007 beq.n 8001426 <HAL_GPIO_Init+0x1c2>
  3462. 8001416: 687b ldr r3, [r7, #4]
  3463. 8001418: 4a43 ldr r2, [pc, #268] @ (8001528 <HAL_GPIO_Init+0x2c4>)
  3464. 800141a: 4293 cmp r3, r2
  3465. 800141c: d101 bne.n 8001422 <HAL_GPIO_Init+0x1be>
  3466. 800141e: 2303 movs r3, #3
  3467. 8001420: e006 b.n 8001430 <HAL_GPIO_Init+0x1cc>
  3468. 8001422: 2305 movs r3, #5
  3469. 8001424: e004 b.n 8001430 <HAL_GPIO_Init+0x1cc>
  3470. 8001426: 2302 movs r3, #2
  3471. 8001428: e002 b.n 8001430 <HAL_GPIO_Init+0x1cc>
  3472. 800142a: 2301 movs r3, #1
  3473. 800142c: e000 b.n 8001430 <HAL_GPIO_Init+0x1cc>
  3474. 800142e: 2300 movs r3, #0
  3475. 8001430: 697a ldr r2, [r7, #20]
  3476. 8001432: 2103 movs r1, #3
  3477. 8001434: 400a ands r2, r1
  3478. 8001436: 00d2 lsls r2, r2, #3
  3479. 8001438: 4093 lsls r3, r2
  3480. 800143a: 693a ldr r2, [r7, #16]
  3481. 800143c: 4313 orrs r3, r2
  3482. 800143e: 613b str r3, [r7, #16]
  3483. EXTI->EXTICR[position >> 2u] = temp;
  3484. 8001440: 4936 ldr r1, [pc, #216] @ (800151c <HAL_GPIO_Init+0x2b8>)
  3485. 8001442: 697b ldr r3, [r7, #20]
  3486. 8001444: 089b lsrs r3, r3, #2
  3487. 8001446: 3318 adds r3, #24
  3488. 8001448: 009b lsls r3, r3, #2
  3489. 800144a: 693a ldr r2, [r7, #16]
  3490. 800144c: 505a str r2, [r3, r1]
  3491. /* Clear Rising Falling edge configuration */
  3492. temp = EXTI->RTSR1;
  3493. 800144e: 4b33 ldr r3, [pc, #204] @ (800151c <HAL_GPIO_Init+0x2b8>)
  3494. 8001450: 681b ldr r3, [r3, #0]
  3495. 8001452: 613b str r3, [r7, #16]
  3496. temp &= ~(iocurrent);
  3497. 8001454: 68fb ldr r3, [r7, #12]
  3498. 8001456: 43da mvns r2, r3
  3499. 8001458: 693b ldr r3, [r7, #16]
  3500. 800145a: 4013 ands r3, r2
  3501. 800145c: 613b str r3, [r7, #16]
  3502. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00u)
  3503. 800145e: 683b ldr r3, [r7, #0]
  3504. 8001460: 685a ldr r2, [r3, #4]
  3505. 8001462: 2380 movs r3, #128 @ 0x80
  3506. 8001464: 035b lsls r3, r3, #13
  3507. 8001466: 4013 ands r3, r2
  3508. 8001468: d003 beq.n 8001472 <HAL_GPIO_Init+0x20e>
  3509. {
  3510. temp |= iocurrent;
  3511. 800146a: 693a ldr r2, [r7, #16]
  3512. 800146c: 68fb ldr r3, [r7, #12]
  3513. 800146e: 4313 orrs r3, r2
  3514. 8001470: 613b str r3, [r7, #16]
  3515. }
  3516. EXTI->RTSR1 = temp;
  3517. 8001472: 4b2a ldr r3, [pc, #168] @ (800151c <HAL_GPIO_Init+0x2b8>)
  3518. 8001474: 693a ldr r2, [r7, #16]
  3519. 8001476: 601a str r2, [r3, #0]
  3520. temp = EXTI->FTSR1;
  3521. 8001478: 4b28 ldr r3, [pc, #160] @ (800151c <HAL_GPIO_Init+0x2b8>)
  3522. 800147a: 685b ldr r3, [r3, #4]
  3523. 800147c: 613b str r3, [r7, #16]
  3524. temp &= ~(iocurrent);
  3525. 800147e: 68fb ldr r3, [r7, #12]
  3526. 8001480: 43da mvns r2, r3
  3527. 8001482: 693b ldr r3, [r7, #16]
  3528. 8001484: 4013 ands r3, r2
  3529. 8001486: 613b str r3, [r7, #16]
  3530. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00u)
  3531. 8001488: 683b ldr r3, [r7, #0]
  3532. 800148a: 685a ldr r2, [r3, #4]
  3533. 800148c: 2380 movs r3, #128 @ 0x80
  3534. 800148e: 039b lsls r3, r3, #14
  3535. 8001490: 4013 ands r3, r2
  3536. 8001492: d003 beq.n 800149c <HAL_GPIO_Init+0x238>
  3537. {
  3538. temp |= iocurrent;
  3539. 8001494: 693a ldr r2, [r7, #16]
  3540. 8001496: 68fb ldr r3, [r7, #12]
  3541. 8001498: 4313 orrs r3, r2
  3542. 800149a: 613b str r3, [r7, #16]
  3543. }
  3544. EXTI->FTSR1 = temp;
  3545. 800149c: 4b1f ldr r3, [pc, #124] @ (800151c <HAL_GPIO_Init+0x2b8>)
  3546. 800149e: 693a ldr r2, [r7, #16]
  3547. 80014a0: 605a str r2, [r3, #4]
  3548. /* Clear EXTI line configuration */
  3549. temp = EXTI->EMR1;
  3550. 80014a2: 4a1e ldr r2, [pc, #120] @ (800151c <HAL_GPIO_Init+0x2b8>)
  3551. 80014a4: 2384 movs r3, #132 @ 0x84
  3552. 80014a6: 58d3 ldr r3, [r2, r3]
  3553. 80014a8: 613b str r3, [r7, #16]
  3554. temp &= ~(iocurrent);
  3555. 80014aa: 68fb ldr r3, [r7, #12]
  3556. 80014ac: 43da mvns r2, r3
  3557. 80014ae: 693b ldr r3, [r7, #16]
  3558. 80014b0: 4013 ands r3, r2
  3559. 80014b2: 613b str r3, [r7, #16]
  3560. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00u)
  3561. 80014b4: 683b ldr r3, [r7, #0]
  3562. 80014b6: 685a ldr r2, [r3, #4]
  3563. 80014b8: 2380 movs r3, #128 @ 0x80
  3564. 80014ba: 029b lsls r3, r3, #10
  3565. 80014bc: 4013 ands r3, r2
  3566. 80014be: d003 beq.n 80014c8 <HAL_GPIO_Init+0x264>
  3567. {
  3568. temp |= iocurrent;
  3569. 80014c0: 693a ldr r2, [r7, #16]
  3570. 80014c2: 68fb ldr r3, [r7, #12]
  3571. 80014c4: 4313 orrs r3, r2
  3572. 80014c6: 613b str r3, [r7, #16]
  3573. }
  3574. EXTI->EMR1 = temp;
  3575. 80014c8: 4914 ldr r1, [pc, #80] @ (800151c <HAL_GPIO_Init+0x2b8>)
  3576. 80014ca: 2284 movs r2, #132 @ 0x84
  3577. 80014cc: 693b ldr r3, [r7, #16]
  3578. 80014ce: 508b str r3, [r1, r2]
  3579. temp = EXTI->IMR1;
  3580. 80014d0: 4a12 ldr r2, [pc, #72] @ (800151c <HAL_GPIO_Init+0x2b8>)
  3581. 80014d2: 2380 movs r3, #128 @ 0x80
  3582. 80014d4: 58d3 ldr r3, [r2, r3]
  3583. 80014d6: 613b str r3, [r7, #16]
  3584. temp &= ~(iocurrent);
  3585. 80014d8: 68fb ldr r3, [r7, #12]
  3586. 80014da: 43da mvns r2, r3
  3587. 80014dc: 693b ldr r3, [r7, #16]
  3588. 80014de: 4013 ands r3, r2
  3589. 80014e0: 613b str r3, [r7, #16]
  3590. if ((GPIO_Init->Mode & EXTI_IT) != 0x00u)
  3591. 80014e2: 683b ldr r3, [r7, #0]
  3592. 80014e4: 685a ldr r2, [r3, #4]
  3593. 80014e6: 2380 movs r3, #128 @ 0x80
  3594. 80014e8: 025b lsls r3, r3, #9
  3595. 80014ea: 4013 ands r3, r2
  3596. 80014ec: d003 beq.n 80014f6 <HAL_GPIO_Init+0x292>
  3597. {
  3598. temp |= iocurrent;
  3599. 80014ee: 693a ldr r2, [r7, #16]
  3600. 80014f0: 68fb ldr r3, [r7, #12]
  3601. 80014f2: 4313 orrs r3, r2
  3602. 80014f4: 613b str r3, [r7, #16]
  3603. }
  3604. EXTI->IMR1 = temp;
  3605. 80014f6: 4909 ldr r1, [pc, #36] @ (800151c <HAL_GPIO_Init+0x2b8>)
  3606. 80014f8: 2280 movs r2, #128 @ 0x80
  3607. 80014fa: 693b ldr r3, [r7, #16]
  3608. 80014fc: 508b str r3, [r1, r2]
  3609. }
  3610. }
  3611. position++;
  3612. 80014fe: 697b ldr r3, [r7, #20]
  3613. 8001500: 3301 adds r3, #1
  3614. 8001502: 617b str r3, [r7, #20]
  3615. while (((GPIO_Init->Pin) >> position) != 0x00u)
  3616. 8001504: 683b ldr r3, [r7, #0]
  3617. 8001506: 681a ldr r2, [r3, #0]
  3618. 8001508: 697b ldr r3, [r7, #20]
  3619. 800150a: 40da lsrs r2, r3
  3620. 800150c: 1e13 subs r3, r2, #0
  3621. 800150e: d000 beq.n 8001512 <HAL_GPIO_Init+0x2ae>
  3622. 8001510: e6b0 b.n 8001274 <HAL_GPIO_Init+0x10>
  3623. }
  3624. }
  3625. 8001512: 46c0 nop @ (mov r8, r8)
  3626. 8001514: 46c0 nop @ (mov r8, r8)
  3627. 8001516: 46bd mov sp, r7
  3628. 8001518: b006 add sp, #24
  3629. 800151a: bd80 pop {r7, pc}
  3630. 800151c: 40021800 .word 0x40021800
  3631. 8001520: 50000400 .word 0x50000400
  3632. 8001524: 50000800 .word 0x50000800
  3633. 8001528: 50000c00 .word 0x50000c00
  3634. 0800152c <HAL_PWREx_ControlVoltageScaling>:
  3635. * cleared before returning the status. If the flag is not cleared within
  3636. * 6 microseconds, HAL_TIMEOUT status is reported.
  3637. * @retval HAL Status
  3638. */
  3639. HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling(uint32_t VoltageScaling)
  3640. {
  3641. 800152c: b580 push {r7, lr}
  3642. 800152e: b084 sub sp, #16
  3643. 8001530: af00 add r7, sp, #0
  3644. 8001532: 6078 str r0, [r7, #4]
  3645. uint32_t wait_loop_index;
  3646. assert_param(IS_PWR_VOLTAGE_SCALING_RANGE(VoltageScaling));
  3647. /* Modify voltage scaling range */
  3648. MODIFY_REG(PWR->CR1, PWR_CR1_VOS, VoltageScaling);
  3649. 8001534: 4b19 ldr r3, [pc, #100] @ (800159c <HAL_PWREx_ControlVoltageScaling+0x70>)
  3650. 8001536: 681b ldr r3, [r3, #0]
  3651. 8001538: 4a19 ldr r2, [pc, #100] @ (80015a0 <HAL_PWREx_ControlVoltageScaling+0x74>)
  3652. 800153a: 4013 ands r3, r2
  3653. 800153c: 0019 movs r1, r3
  3654. 800153e: 4b17 ldr r3, [pc, #92] @ (800159c <HAL_PWREx_ControlVoltageScaling+0x70>)
  3655. 8001540: 687a ldr r2, [r7, #4]
  3656. 8001542: 430a orrs r2, r1
  3657. 8001544: 601a str r2, [r3, #0]
  3658. /* In case of Range 1 selected, we need to ensure that main regulator reaches new value */
  3659. if (VoltageScaling == PWR_REGULATOR_VOLTAGE_SCALE1)
  3660. 8001546: 687a ldr r2, [r7, #4]
  3661. 8001548: 2380 movs r3, #128 @ 0x80
  3662. 800154a: 009b lsls r3, r3, #2
  3663. 800154c: 429a cmp r2, r3
  3664. 800154e: d11f bne.n 8001590 <HAL_PWREx_ControlVoltageScaling+0x64>
  3665. {
  3666. /* Set timeout value */
  3667. wait_loop_index = ((PWR_VOSF_SETTING_DELAY_6_US * SystemCoreClock) / 1000000U) + 1U;
  3668. 8001550: 4b14 ldr r3, [pc, #80] @ (80015a4 <HAL_PWREx_ControlVoltageScaling+0x78>)
  3669. 8001552: 681a ldr r2, [r3, #0]
  3670. 8001554: 0013 movs r3, r2
  3671. 8001556: 005b lsls r3, r3, #1
  3672. 8001558: 189b adds r3, r3, r2
  3673. 800155a: 005b lsls r3, r3, #1
  3674. 800155c: 4912 ldr r1, [pc, #72] @ (80015a8 <HAL_PWREx_ControlVoltageScaling+0x7c>)
  3675. 800155e: 0018 movs r0, r3
  3676. 8001560: f7fe fdce bl 8000100 <__udivsi3>
  3677. 8001564: 0003 movs r3, r0
  3678. 8001566: 3301 adds r3, #1
  3679. 8001568: 60fb str r3, [r7, #12]
  3680. /* Wait until VOSF is reset */
  3681. while (HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF))
  3682. 800156a: e008 b.n 800157e <HAL_PWREx_ControlVoltageScaling+0x52>
  3683. {
  3684. if (wait_loop_index != 0U)
  3685. 800156c: 68fb ldr r3, [r7, #12]
  3686. 800156e: 2b00 cmp r3, #0
  3687. 8001570: d003 beq.n 800157a <HAL_PWREx_ControlVoltageScaling+0x4e>
  3688. {
  3689. wait_loop_index--;
  3690. 8001572: 68fb ldr r3, [r7, #12]
  3691. 8001574: 3b01 subs r3, #1
  3692. 8001576: 60fb str r3, [r7, #12]
  3693. 8001578: e001 b.n 800157e <HAL_PWREx_ControlVoltageScaling+0x52>
  3694. }
  3695. else
  3696. {
  3697. return HAL_TIMEOUT;
  3698. 800157a: 2303 movs r3, #3
  3699. 800157c: e009 b.n 8001592 <HAL_PWREx_ControlVoltageScaling+0x66>
  3700. while (HAL_IS_BIT_SET(PWR->SR2, PWR_SR2_VOSF))
  3701. 800157e: 4b07 ldr r3, [pc, #28] @ (800159c <HAL_PWREx_ControlVoltageScaling+0x70>)
  3702. 8001580: 695a ldr r2, [r3, #20]
  3703. 8001582: 2380 movs r3, #128 @ 0x80
  3704. 8001584: 00db lsls r3, r3, #3
  3705. 8001586: 401a ands r2, r3
  3706. 8001588: 2380 movs r3, #128 @ 0x80
  3707. 800158a: 00db lsls r3, r3, #3
  3708. 800158c: 429a cmp r2, r3
  3709. 800158e: d0ed beq.n 800156c <HAL_PWREx_ControlVoltageScaling+0x40>
  3710. }
  3711. }
  3712. }
  3713. return HAL_OK;
  3714. 8001590: 2300 movs r3, #0
  3715. }
  3716. 8001592: 0018 movs r0, r3
  3717. 8001594: 46bd mov sp, r7
  3718. 8001596: b004 add sp, #16
  3719. 8001598: bd80 pop {r7, pc}
  3720. 800159a: 46c0 nop @ (mov r8, r8)
  3721. 800159c: 40007000 .word 0x40007000
  3722. 80015a0: fffff9ff .word 0xfffff9ff
  3723. 80015a4: 20000000 .word 0x20000000
  3724. 80015a8: 000f4240 .word 0x000f4240
  3725. 080015ac <HAL_RCC_OscConfig>:
  3726. * supported by this function. User should request a transition to LSE Off
  3727. * first and then to LSE On or LSE Bypass.
  3728. * @retval HAL status
  3729. */
  3730. HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  3731. {
  3732. 80015ac: b580 push {r7, lr}
  3733. 80015ae: b088 sub sp, #32
  3734. 80015b0: af00 add r7, sp, #0
  3735. 80015b2: 6078 str r0, [r7, #4]
  3736. uint32_t tickstart;
  3737. uint32_t temp_sysclksrc;
  3738. uint32_t temp_pllckcfg;
  3739. /* Check Null pointer */
  3740. if (RCC_OscInitStruct == NULL)
  3741. 80015b4: 687b ldr r3, [r7, #4]
  3742. 80015b6: 2b00 cmp r3, #0
  3743. 80015b8: d101 bne.n 80015be <HAL_RCC_OscConfig+0x12>
  3744. {
  3745. return HAL_ERROR;
  3746. 80015ba: 2301 movs r3, #1
  3747. 80015bc: e2f3 b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  3748. /* Check the parameters */
  3749. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  3750. /*------------------------------- HSE Configuration ------------------------*/
  3751. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  3752. 80015be: 687b ldr r3, [r7, #4]
  3753. 80015c0: 681b ldr r3, [r3, #0]
  3754. 80015c2: 2201 movs r2, #1
  3755. 80015c4: 4013 ands r3, r2
  3756. 80015c6: d100 bne.n 80015ca <HAL_RCC_OscConfig+0x1e>
  3757. 80015c8: e07c b.n 80016c4 <HAL_RCC_OscConfig+0x118>
  3758. {
  3759. /* Check the parameters */
  3760. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  3761. temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  3762. 80015ca: 4bc3 ldr r3, [pc, #780] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3763. 80015cc: 689b ldr r3, [r3, #8]
  3764. 80015ce: 2238 movs r2, #56 @ 0x38
  3765. 80015d0: 4013 ands r3, r2
  3766. 80015d2: 61bb str r3, [r7, #24]
  3767. temp_pllckcfg = __HAL_RCC_GET_PLL_OSCSOURCE();
  3768. 80015d4: 4bc0 ldr r3, [pc, #768] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3769. 80015d6: 68db ldr r3, [r3, #12]
  3770. 80015d8: 2203 movs r2, #3
  3771. 80015da: 4013 ands r3, r2
  3772. 80015dc: 617b str r3, [r7, #20]
  3773. /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */
  3774. if (((temp_sysclksrc == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (temp_pllckcfg == RCC_PLLSOURCE_HSE))
  3775. 80015de: 69bb ldr r3, [r7, #24]
  3776. 80015e0: 2b10 cmp r3, #16
  3777. 80015e2: d102 bne.n 80015ea <HAL_RCC_OscConfig+0x3e>
  3778. 80015e4: 697b ldr r3, [r7, #20]
  3779. 80015e6: 2b03 cmp r3, #3
  3780. 80015e8: d002 beq.n 80015f0 <HAL_RCC_OscConfig+0x44>
  3781. || (temp_sysclksrc == RCC_SYSCLKSOURCE_STATUS_HSE))
  3782. 80015ea: 69bb ldr r3, [r7, #24]
  3783. 80015ec: 2b08 cmp r3, #8
  3784. 80015ee: d10b bne.n 8001608 <HAL_RCC_OscConfig+0x5c>
  3785. {
  3786. if ((READ_BIT(RCC->CR, RCC_CR_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  3787. 80015f0: 4bb9 ldr r3, [pc, #740] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3788. 80015f2: 681a ldr r2, [r3, #0]
  3789. 80015f4: 2380 movs r3, #128 @ 0x80
  3790. 80015f6: 029b lsls r3, r3, #10
  3791. 80015f8: 4013 ands r3, r2
  3792. 80015fa: d062 beq.n 80016c2 <HAL_RCC_OscConfig+0x116>
  3793. 80015fc: 687b ldr r3, [r7, #4]
  3794. 80015fe: 685b ldr r3, [r3, #4]
  3795. 8001600: 2b00 cmp r3, #0
  3796. 8001602: d15e bne.n 80016c2 <HAL_RCC_OscConfig+0x116>
  3797. {
  3798. return HAL_ERROR;
  3799. 8001604: 2301 movs r3, #1
  3800. 8001606: e2ce b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  3801. }
  3802. }
  3803. else
  3804. {
  3805. /* Set the new HSE configuration ---------------------------------------*/
  3806. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  3807. 8001608: 687b ldr r3, [r7, #4]
  3808. 800160a: 685a ldr r2, [r3, #4]
  3809. 800160c: 2380 movs r3, #128 @ 0x80
  3810. 800160e: 025b lsls r3, r3, #9
  3811. 8001610: 429a cmp r2, r3
  3812. 8001612: d107 bne.n 8001624 <HAL_RCC_OscConfig+0x78>
  3813. 8001614: 4bb0 ldr r3, [pc, #704] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3814. 8001616: 681a ldr r2, [r3, #0]
  3815. 8001618: 4baf ldr r3, [pc, #700] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3816. 800161a: 2180 movs r1, #128 @ 0x80
  3817. 800161c: 0249 lsls r1, r1, #9
  3818. 800161e: 430a orrs r2, r1
  3819. 8001620: 601a str r2, [r3, #0]
  3820. 8001622: e020 b.n 8001666 <HAL_RCC_OscConfig+0xba>
  3821. 8001624: 687b ldr r3, [r7, #4]
  3822. 8001626: 685a ldr r2, [r3, #4]
  3823. 8001628: 23a0 movs r3, #160 @ 0xa0
  3824. 800162a: 02db lsls r3, r3, #11
  3825. 800162c: 429a cmp r2, r3
  3826. 800162e: d10e bne.n 800164e <HAL_RCC_OscConfig+0xa2>
  3827. 8001630: 4ba9 ldr r3, [pc, #676] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3828. 8001632: 681a ldr r2, [r3, #0]
  3829. 8001634: 4ba8 ldr r3, [pc, #672] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3830. 8001636: 2180 movs r1, #128 @ 0x80
  3831. 8001638: 02c9 lsls r1, r1, #11
  3832. 800163a: 430a orrs r2, r1
  3833. 800163c: 601a str r2, [r3, #0]
  3834. 800163e: 4ba6 ldr r3, [pc, #664] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3835. 8001640: 681a ldr r2, [r3, #0]
  3836. 8001642: 4ba5 ldr r3, [pc, #660] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3837. 8001644: 2180 movs r1, #128 @ 0x80
  3838. 8001646: 0249 lsls r1, r1, #9
  3839. 8001648: 430a orrs r2, r1
  3840. 800164a: 601a str r2, [r3, #0]
  3841. 800164c: e00b b.n 8001666 <HAL_RCC_OscConfig+0xba>
  3842. 800164e: 4ba2 ldr r3, [pc, #648] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3843. 8001650: 681a ldr r2, [r3, #0]
  3844. 8001652: 4ba1 ldr r3, [pc, #644] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3845. 8001654: 49a1 ldr r1, [pc, #644] @ (80018dc <HAL_RCC_OscConfig+0x330>)
  3846. 8001656: 400a ands r2, r1
  3847. 8001658: 601a str r2, [r3, #0]
  3848. 800165a: 4b9f ldr r3, [pc, #636] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3849. 800165c: 681a ldr r2, [r3, #0]
  3850. 800165e: 4b9e ldr r3, [pc, #632] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3851. 8001660: 499f ldr r1, [pc, #636] @ (80018e0 <HAL_RCC_OscConfig+0x334>)
  3852. 8001662: 400a ands r2, r1
  3853. 8001664: 601a str r2, [r3, #0]
  3854. /* Check the HSE State */
  3855. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  3856. 8001666: 687b ldr r3, [r7, #4]
  3857. 8001668: 685b ldr r3, [r3, #4]
  3858. 800166a: 2b00 cmp r3, #0
  3859. 800166c: d014 beq.n 8001698 <HAL_RCC_OscConfig+0xec>
  3860. {
  3861. /* Get Start Tick*/
  3862. tickstart = HAL_GetTick();
  3863. 800166e: f7ff fae3 bl 8000c38 <HAL_GetTick>
  3864. 8001672: 0003 movs r3, r0
  3865. 8001674: 613b str r3, [r7, #16]
  3866. /* Wait till HSE is ready */
  3867. while (READ_BIT(RCC->CR, RCC_CR_HSERDY) == 0U)
  3868. 8001676: e008 b.n 800168a <HAL_RCC_OscConfig+0xde>
  3869. {
  3870. if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  3871. 8001678: f7ff fade bl 8000c38 <HAL_GetTick>
  3872. 800167c: 0002 movs r2, r0
  3873. 800167e: 693b ldr r3, [r7, #16]
  3874. 8001680: 1ad3 subs r3, r2, r3
  3875. 8001682: 2b64 cmp r3, #100 @ 0x64
  3876. 8001684: d901 bls.n 800168a <HAL_RCC_OscConfig+0xde>
  3877. {
  3878. return HAL_TIMEOUT;
  3879. 8001686: 2303 movs r3, #3
  3880. 8001688: e28d b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  3881. while (READ_BIT(RCC->CR, RCC_CR_HSERDY) == 0U)
  3882. 800168a: 4b93 ldr r3, [pc, #588] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3883. 800168c: 681a ldr r2, [r3, #0]
  3884. 800168e: 2380 movs r3, #128 @ 0x80
  3885. 8001690: 029b lsls r3, r3, #10
  3886. 8001692: 4013 ands r3, r2
  3887. 8001694: d0f0 beq.n 8001678 <HAL_RCC_OscConfig+0xcc>
  3888. 8001696: e015 b.n 80016c4 <HAL_RCC_OscConfig+0x118>
  3889. }
  3890. }
  3891. else
  3892. {
  3893. /* Get Start Tick*/
  3894. tickstart = HAL_GetTick();
  3895. 8001698: f7ff face bl 8000c38 <HAL_GetTick>
  3896. 800169c: 0003 movs r3, r0
  3897. 800169e: 613b str r3, [r7, #16]
  3898. /* Wait till HSE is disabled */
  3899. while (READ_BIT(RCC->CR, RCC_CR_HSERDY) != 0U)
  3900. 80016a0: e008 b.n 80016b4 <HAL_RCC_OscConfig+0x108>
  3901. {
  3902. if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  3903. 80016a2: f7ff fac9 bl 8000c38 <HAL_GetTick>
  3904. 80016a6: 0002 movs r2, r0
  3905. 80016a8: 693b ldr r3, [r7, #16]
  3906. 80016aa: 1ad3 subs r3, r2, r3
  3907. 80016ac: 2b64 cmp r3, #100 @ 0x64
  3908. 80016ae: d901 bls.n 80016b4 <HAL_RCC_OscConfig+0x108>
  3909. {
  3910. return HAL_TIMEOUT;
  3911. 80016b0: 2303 movs r3, #3
  3912. 80016b2: e278 b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  3913. while (READ_BIT(RCC->CR, RCC_CR_HSERDY) != 0U)
  3914. 80016b4: 4b88 ldr r3, [pc, #544] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3915. 80016b6: 681a ldr r2, [r3, #0]
  3916. 80016b8: 2380 movs r3, #128 @ 0x80
  3917. 80016ba: 029b lsls r3, r3, #10
  3918. 80016bc: 4013 ands r3, r2
  3919. 80016be: d1f0 bne.n 80016a2 <HAL_RCC_OscConfig+0xf6>
  3920. 80016c0: e000 b.n 80016c4 <HAL_RCC_OscConfig+0x118>
  3921. if ((READ_BIT(RCC->CR, RCC_CR_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  3922. 80016c2: 46c0 nop @ (mov r8, r8)
  3923. }
  3924. }
  3925. }
  3926. }
  3927. /*----------------------------- HSI Configuration --------------------------*/
  3928. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  3929. 80016c4: 687b ldr r3, [r7, #4]
  3930. 80016c6: 681b ldr r3, [r3, #0]
  3931. 80016c8: 2202 movs r2, #2
  3932. 80016ca: 4013 ands r3, r2
  3933. 80016cc: d100 bne.n 80016d0 <HAL_RCC_OscConfig+0x124>
  3934. 80016ce: e099 b.n 8001804 <HAL_RCC_OscConfig+0x258>
  3935. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  3936. assert_param(IS_RCC_HSI_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  3937. assert_param(IS_RCC_HSIDIV(RCC_OscInitStruct->HSIDiv));
  3938. /* Check if HSI16 is used as system clock or as PLL source when PLL is selected as system clock */
  3939. temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  3940. 80016d0: 4b81 ldr r3, [pc, #516] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3941. 80016d2: 689b ldr r3, [r3, #8]
  3942. 80016d4: 2238 movs r2, #56 @ 0x38
  3943. 80016d6: 4013 ands r3, r2
  3944. 80016d8: 61bb str r3, [r7, #24]
  3945. temp_pllckcfg = __HAL_RCC_GET_PLL_OSCSOURCE();
  3946. 80016da: 4b7f ldr r3, [pc, #508] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3947. 80016dc: 68db ldr r3, [r3, #12]
  3948. 80016de: 2203 movs r2, #3
  3949. 80016e0: 4013 ands r3, r2
  3950. 80016e2: 617b str r3, [r7, #20]
  3951. if (((temp_sysclksrc == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (temp_pllckcfg == RCC_PLLSOURCE_HSI))
  3952. 80016e4: 69bb ldr r3, [r7, #24]
  3953. 80016e6: 2b10 cmp r3, #16
  3954. 80016e8: d102 bne.n 80016f0 <HAL_RCC_OscConfig+0x144>
  3955. 80016ea: 697b ldr r3, [r7, #20]
  3956. 80016ec: 2b02 cmp r3, #2
  3957. 80016ee: d002 beq.n 80016f6 <HAL_RCC_OscConfig+0x14a>
  3958. || (temp_sysclksrc == RCC_SYSCLKSOURCE_STATUS_HSI))
  3959. 80016f0: 69bb ldr r3, [r7, #24]
  3960. 80016f2: 2b00 cmp r3, #0
  3961. 80016f4: d135 bne.n 8001762 <HAL_RCC_OscConfig+0x1b6>
  3962. {
  3963. /* When HSI is used as system clock or as PLL input clock it can not be disabled */
  3964. if ((READ_BIT(RCC->CR, RCC_CR_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  3965. 80016f6: 4b78 ldr r3, [pc, #480] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3966. 80016f8: 681a ldr r2, [r3, #0]
  3967. 80016fa: 2380 movs r3, #128 @ 0x80
  3968. 80016fc: 00db lsls r3, r3, #3
  3969. 80016fe: 4013 ands r3, r2
  3970. 8001700: d005 beq.n 800170e <HAL_RCC_OscConfig+0x162>
  3971. 8001702: 687b ldr r3, [r7, #4]
  3972. 8001704: 68db ldr r3, [r3, #12]
  3973. 8001706: 2b00 cmp r3, #0
  3974. 8001708: d101 bne.n 800170e <HAL_RCC_OscConfig+0x162>
  3975. {
  3976. return HAL_ERROR;
  3977. 800170a: 2301 movs r3, #1
  3978. 800170c: e24b b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  3979. }
  3980. /* Otherwise, just the calibration is allowed */
  3981. else
  3982. {
  3983. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  3984. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  3985. 800170e: 4b72 ldr r3, [pc, #456] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3986. 8001710: 685b ldr r3, [r3, #4]
  3987. 8001712: 4a74 ldr r2, [pc, #464] @ (80018e4 <HAL_RCC_OscConfig+0x338>)
  3988. 8001714: 4013 ands r3, r2
  3989. 8001716: 0019 movs r1, r3
  3990. 8001718: 687b ldr r3, [r7, #4]
  3991. 800171a: 695b ldr r3, [r3, #20]
  3992. 800171c: 021a lsls r2, r3, #8
  3993. 800171e: 4b6e ldr r3, [pc, #440] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  3994. 8001720: 430a orrs r2, r1
  3995. 8001722: 605a str r2, [r3, #4]
  3996. if (temp_sysclksrc == RCC_SYSCLKSOURCE_STATUS_HSI)
  3997. 8001724: 69bb ldr r3, [r7, #24]
  3998. 8001726: 2b00 cmp r3, #0
  3999. 8001728: d112 bne.n 8001750 <HAL_RCC_OscConfig+0x1a4>
  4000. {
  4001. /* Adjust the HSI16 division factor */
  4002. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIDiv);
  4003. 800172a: 4b6b ldr r3, [pc, #428] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4004. 800172c: 681b ldr r3, [r3, #0]
  4005. 800172e: 4a6e ldr r2, [pc, #440] @ (80018e8 <HAL_RCC_OscConfig+0x33c>)
  4006. 8001730: 4013 ands r3, r2
  4007. 8001732: 0019 movs r1, r3
  4008. 8001734: 687b ldr r3, [r7, #4]
  4009. 8001736: 691a ldr r2, [r3, #16]
  4010. 8001738: 4b67 ldr r3, [pc, #412] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4011. 800173a: 430a orrs r2, r1
  4012. 800173c: 601a str r2, [r3, #0]
  4013. /* Update the SystemCoreClock global variable with HSISYS value */
  4014. SystemCoreClock = (HSI_VALUE / (1UL << ((READ_BIT(RCC->CR, RCC_CR_HSIDIV)) >> RCC_CR_HSIDIV_Pos)));
  4015. 800173e: 4b66 ldr r3, [pc, #408] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4016. 8001740: 681b ldr r3, [r3, #0]
  4017. 8001742: 0adb lsrs r3, r3, #11
  4018. 8001744: 2207 movs r2, #7
  4019. 8001746: 4013 ands r3, r2
  4020. 8001748: 4a68 ldr r2, [pc, #416] @ (80018ec <HAL_RCC_OscConfig+0x340>)
  4021. 800174a: 40da lsrs r2, r3
  4022. 800174c: 4b68 ldr r3, [pc, #416] @ (80018f0 <HAL_RCC_OscConfig+0x344>)
  4023. 800174e: 601a str r2, [r3, #0]
  4024. }
  4025. /* Adapt Systick interrupt period */
  4026. if (HAL_InitTick(uwTickPrio) != HAL_OK)
  4027. 8001750: 4b68 ldr r3, [pc, #416] @ (80018f4 <HAL_RCC_OscConfig+0x348>)
  4028. 8001752: 681b ldr r3, [r3, #0]
  4029. 8001754: 0018 movs r0, r3
  4030. 8001756: f7ff fa13 bl 8000b80 <HAL_InitTick>
  4031. 800175a: 1e03 subs r3, r0, #0
  4032. 800175c: d051 beq.n 8001802 <HAL_RCC_OscConfig+0x256>
  4033. {
  4034. return HAL_ERROR;
  4035. 800175e: 2301 movs r3, #1
  4036. 8001760: e221 b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4037. }
  4038. }
  4039. else
  4040. {
  4041. /* Check the HSI State */
  4042. if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF)
  4043. 8001762: 687b ldr r3, [r7, #4]
  4044. 8001764: 68db ldr r3, [r3, #12]
  4045. 8001766: 2b00 cmp r3, #0
  4046. 8001768: d030 beq.n 80017cc <HAL_RCC_OscConfig+0x220>
  4047. {
  4048. /* Configure the HSI16 division factor */
  4049. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIDiv);
  4050. 800176a: 4b5b ldr r3, [pc, #364] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4051. 800176c: 681b ldr r3, [r3, #0]
  4052. 800176e: 4a5e ldr r2, [pc, #376] @ (80018e8 <HAL_RCC_OscConfig+0x33c>)
  4053. 8001770: 4013 ands r3, r2
  4054. 8001772: 0019 movs r1, r3
  4055. 8001774: 687b ldr r3, [r7, #4]
  4056. 8001776: 691a ldr r2, [r3, #16]
  4057. 8001778: 4b57 ldr r3, [pc, #348] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4058. 800177a: 430a orrs r2, r1
  4059. 800177c: 601a str r2, [r3, #0]
  4060. /* Enable the Internal High Speed oscillator (HSI16). */
  4061. __HAL_RCC_HSI_ENABLE();
  4062. 800177e: 4b56 ldr r3, [pc, #344] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4063. 8001780: 681a ldr r2, [r3, #0]
  4064. 8001782: 4b55 ldr r3, [pc, #340] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4065. 8001784: 2180 movs r1, #128 @ 0x80
  4066. 8001786: 0049 lsls r1, r1, #1
  4067. 8001788: 430a orrs r2, r1
  4068. 800178a: 601a str r2, [r3, #0]
  4069. /* Get Start Tick*/
  4070. tickstart = HAL_GetTick();
  4071. 800178c: f7ff fa54 bl 8000c38 <HAL_GetTick>
  4072. 8001790: 0003 movs r3, r0
  4073. 8001792: 613b str r3, [r7, #16]
  4074. /* Wait till HSI is ready */
  4075. while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == 0U)
  4076. 8001794: e008 b.n 80017a8 <HAL_RCC_OscConfig+0x1fc>
  4077. {
  4078. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  4079. 8001796: f7ff fa4f bl 8000c38 <HAL_GetTick>
  4080. 800179a: 0002 movs r2, r0
  4081. 800179c: 693b ldr r3, [r7, #16]
  4082. 800179e: 1ad3 subs r3, r2, r3
  4083. 80017a0: 2b02 cmp r3, #2
  4084. 80017a2: d901 bls.n 80017a8 <HAL_RCC_OscConfig+0x1fc>
  4085. {
  4086. return HAL_TIMEOUT;
  4087. 80017a4: 2303 movs r3, #3
  4088. 80017a6: e1fe b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4089. while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == 0U)
  4090. 80017a8: 4b4b ldr r3, [pc, #300] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4091. 80017aa: 681a ldr r2, [r3, #0]
  4092. 80017ac: 2380 movs r3, #128 @ 0x80
  4093. 80017ae: 00db lsls r3, r3, #3
  4094. 80017b0: 4013 ands r3, r2
  4095. 80017b2: d0f0 beq.n 8001796 <HAL_RCC_OscConfig+0x1ea>
  4096. }
  4097. }
  4098. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  4099. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  4100. 80017b4: 4b48 ldr r3, [pc, #288] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4101. 80017b6: 685b ldr r3, [r3, #4]
  4102. 80017b8: 4a4a ldr r2, [pc, #296] @ (80018e4 <HAL_RCC_OscConfig+0x338>)
  4103. 80017ba: 4013 ands r3, r2
  4104. 80017bc: 0019 movs r1, r3
  4105. 80017be: 687b ldr r3, [r7, #4]
  4106. 80017c0: 695b ldr r3, [r3, #20]
  4107. 80017c2: 021a lsls r2, r3, #8
  4108. 80017c4: 4b44 ldr r3, [pc, #272] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4109. 80017c6: 430a orrs r2, r1
  4110. 80017c8: 605a str r2, [r3, #4]
  4111. 80017ca: e01b b.n 8001804 <HAL_RCC_OscConfig+0x258>
  4112. }
  4113. else
  4114. {
  4115. /* Disable the Internal High Speed oscillator (HSI16). */
  4116. __HAL_RCC_HSI_DISABLE();
  4117. 80017cc: 4b42 ldr r3, [pc, #264] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4118. 80017ce: 681a ldr r2, [r3, #0]
  4119. 80017d0: 4b41 ldr r3, [pc, #260] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4120. 80017d2: 4949 ldr r1, [pc, #292] @ (80018f8 <HAL_RCC_OscConfig+0x34c>)
  4121. 80017d4: 400a ands r2, r1
  4122. 80017d6: 601a str r2, [r3, #0]
  4123. /* Get Start Tick*/
  4124. tickstart = HAL_GetTick();
  4125. 80017d8: f7ff fa2e bl 8000c38 <HAL_GetTick>
  4126. 80017dc: 0003 movs r3, r0
  4127. 80017de: 613b str r3, [r7, #16]
  4128. /* Wait till HSI is disabled */
  4129. while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) != 0U)
  4130. 80017e0: e008 b.n 80017f4 <HAL_RCC_OscConfig+0x248>
  4131. {
  4132. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  4133. 80017e2: f7ff fa29 bl 8000c38 <HAL_GetTick>
  4134. 80017e6: 0002 movs r2, r0
  4135. 80017e8: 693b ldr r3, [r7, #16]
  4136. 80017ea: 1ad3 subs r3, r2, r3
  4137. 80017ec: 2b02 cmp r3, #2
  4138. 80017ee: d901 bls.n 80017f4 <HAL_RCC_OscConfig+0x248>
  4139. {
  4140. return HAL_TIMEOUT;
  4141. 80017f0: 2303 movs r3, #3
  4142. 80017f2: e1d8 b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4143. while (READ_BIT(RCC->CR, RCC_CR_HSIRDY) != 0U)
  4144. 80017f4: 4b38 ldr r3, [pc, #224] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4145. 80017f6: 681a ldr r2, [r3, #0]
  4146. 80017f8: 2380 movs r3, #128 @ 0x80
  4147. 80017fa: 00db lsls r3, r3, #3
  4148. 80017fc: 4013 ands r3, r2
  4149. 80017fe: d1f0 bne.n 80017e2 <HAL_RCC_OscConfig+0x236>
  4150. 8001800: e000 b.n 8001804 <HAL_RCC_OscConfig+0x258>
  4151. if ((READ_BIT(RCC->CR, RCC_CR_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  4152. 8001802: 46c0 nop @ (mov r8, r8)
  4153. }
  4154. }
  4155. }
  4156. }
  4157. /*------------------------------ LSI Configuration -------------------------*/
  4158. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  4159. 8001804: 687b ldr r3, [r7, #4]
  4160. 8001806: 681b ldr r3, [r3, #0]
  4161. 8001808: 2208 movs r2, #8
  4162. 800180a: 4013 ands r3, r2
  4163. 800180c: d047 beq.n 800189e <HAL_RCC_OscConfig+0x2f2>
  4164. {
  4165. /* Check the parameters */
  4166. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  4167. /* Check if LSI is used as system clock */
  4168. if (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_LSI)
  4169. 800180e: 4b32 ldr r3, [pc, #200] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4170. 8001810: 689b ldr r3, [r3, #8]
  4171. 8001812: 2238 movs r2, #56 @ 0x38
  4172. 8001814: 4013 ands r3, r2
  4173. 8001816: 2b18 cmp r3, #24
  4174. 8001818: d10a bne.n 8001830 <HAL_RCC_OscConfig+0x284>
  4175. {
  4176. /* When LSI is used as system clock it will not be disabled */
  4177. if ((((RCC->CSR) & RCC_CSR_LSIRDY) != 0U) && (RCC_OscInitStruct->LSIState == RCC_LSI_OFF))
  4178. 800181a: 4b2f ldr r3, [pc, #188] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4179. 800181c: 6e1b ldr r3, [r3, #96] @ 0x60
  4180. 800181e: 2202 movs r2, #2
  4181. 8001820: 4013 ands r3, r2
  4182. 8001822: d03c beq.n 800189e <HAL_RCC_OscConfig+0x2f2>
  4183. 8001824: 687b ldr r3, [r7, #4]
  4184. 8001826: 699b ldr r3, [r3, #24]
  4185. 8001828: 2b00 cmp r3, #0
  4186. 800182a: d138 bne.n 800189e <HAL_RCC_OscConfig+0x2f2>
  4187. {
  4188. return HAL_ERROR;
  4189. 800182c: 2301 movs r3, #1
  4190. 800182e: e1ba b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4191. }
  4192. }
  4193. else
  4194. {
  4195. /* Check the LSI State */
  4196. if (RCC_OscInitStruct->LSIState != RCC_LSI_OFF)
  4197. 8001830: 687b ldr r3, [r7, #4]
  4198. 8001832: 699b ldr r3, [r3, #24]
  4199. 8001834: 2b00 cmp r3, #0
  4200. 8001836: d019 beq.n 800186c <HAL_RCC_OscConfig+0x2c0>
  4201. {
  4202. /* Enable the Internal Low Speed oscillator (LSI). */
  4203. __HAL_RCC_LSI_ENABLE();
  4204. 8001838: 4b27 ldr r3, [pc, #156] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4205. 800183a: 6e1a ldr r2, [r3, #96] @ 0x60
  4206. 800183c: 4b26 ldr r3, [pc, #152] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4207. 800183e: 2101 movs r1, #1
  4208. 8001840: 430a orrs r2, r1
  4209. 8001842: 661a str r2, [r3, #96] @ 0x60
  4210. /* Get Start Tick*/
  4211. tickstart = HAL_GetTick();
  4212. 8001844: f7ff f9f8 bl 8000c38 <HAL_GetTick>
  4213. 8001848: 0003 movs r3, r0
  4214. 800184a: 613b str r3, [r7, #16]
  4215. /* Wait till LSI is ready */
  4216. while (READ_BIT(RCC->CSR, RCC_CSR_LSIRDY) == 0U)
  4217. 800184c: e008 b.n 8001860 <HAL_RCC_OscConfig+0x2b4>
  4218. {
  4219. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  4220. 800184e: f7ff f9f3 bl 8000c38 <HAL_GetTick>
  4221. 8001852: 0002 movs r2, r0
  4222. 8001854: 693b ldr r3, [r7, #16]
  4223. 8001856: 1ad3 subs r3, r2, r3
  4224. 8001858: 2b02 cmp r3, #2
  4225. 800185a: d901 bls.n 8001860 <HAL_RCC_OscConfig+0x2b4>
  4226. {
  4227. return HAL_TIMEOUT;
  4228. 800185c: 2303 movs r3, #3
  4229. 800185e: e1a2 b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4230. while (READ_BIT(RCC->CSR, RCC_CSR_LSIRDY) == 0U)
  4231. 8001860: 4b1d ldr r3, [pc, #116] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4232. 8001862: 6e1b ldr r3, [r3, #96] @ 0x60
  4233. 8001864: 2202 movs r2, #2
  4234. 8001866: 4013 ands r3, r2
  4235. 8001868: d0f1 beq.n 800184e <HAL_RCC_OscConfig+0x2a2>
  4236. 800186a: e018 b.n 800189e <HAL_RCC_OscConfig+0x2f2>
  4237. }
  4238. }
  4239. else
  4240. {
  4241. /* Disable the Internal Low Speed oscillator (LSI). */
  4242. __HAL_RCC_LSI_DISABLE();
  4243. 800186c: 4b1a ldr r3, [pc, #104] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4244. 800186e: 6e1a ldr r2, [r3, #96] @ 0x60
  4245. 8001870: 4b19 ldr r3, [pc, #100] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4246. 8001872: 2101 movs r1, #1
  4247. 8001874: 438a bics r2, r1
  4248. 8001876: 661a str r2, [r3, #96] @ 0x60
  4249. /* Get Start Tick*/
  4250. tickstart = HAL_GetTick();
  4251. 8001878: f7ff f9de bl 8000c38 <HAL_GetTick>
  4252. 800187c: 0003 movs r3, r0
  4253. 800187e: 613b str r3, [r7, #16]
  4254. /* Wait till LSI is disabled */
  4255. while (READ_BIT(RCC->CSR, RCC_CSR_LSIRDY) != 0U)
  4256. 8001880: e008 b.n 8001894 <HAL_RCC_OscConfig+0x2e8>
  4257. {
  4258. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  4259. 8001882: f7ff f9d9 bl 8000c38 <HAL_GetTick>
  4260. 8001886: 0002 movs r2, r0
  4261. 8001888: 693b ldr r3, [r7, #16]
  4262. 800188a: 1ad3 subs r3, r2, r3
  4263. 800188c: 2b02 cmp r3, #2
  4264. 800188e: d901 bls.n 8001894 <HAL_RCC_OscConfig+0x2e8>
  4265. {
  4266. return HAL_TIMEOUT;
  4267. 8001890: 2303 movs r3, #3
  4268. 8001892: e188 b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4269. while (READ_BIT(RCC->CSR, RCC_CSR_LSIRDY) != 0U)
  4270. 8001894: 4b10 ldr r3, [pc, #64] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4271. 8001896: 6e1b ldr r3, [r3, #96] @ 0x60
  4272. 8001898: 2202 movs r2, #2
  4273. 800189a: 4013 ands r3, r2
  4274. 800189c: d1f1 bne.n 8001882 <HAL_RCC_OscConfig+0x2d6>
  4275. }
  4276. }
  4277. }
  4278. }
  4279. /*------------------------------ LSE Configuration -------------------------*/
  4280. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  4281. 800189e: 687b ldr r3, [r7, #4]
  4282. 80018a0: 681b ldr r3, [r3, #0]
  4283. 80018a2: 2204 movs r2, #4
  4284. 80018a4: 4013 ands r3, r2
  4285. 80018a6: d100 bne.n 80018aa <HAL_RCC_OscConfig+0x2fe>
  4286. 80018a8: e0c6 b.n 8001a38 <HAL_RCC_OscConfig+0x48c>
  4287. {
  4288. FlagStatus pwrclkchanged = RESET;
  4289. 80018aa: 231f movs r3, #31
  4290. 80018ac: 18fb adds r3, r7, r3
  4291. 80018ae: 2200 movs r2, #0
  4292. 80018b0: 701a strb r2, [r3, #0]
  4293. /* Check the parameters */
  4294. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  4295. /* When the LSE is used as system clock, it is not allowed disable it */
  4296. if (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_LSE)
  4297. 80018b2: 4b09 ldr r3, [pc, #36] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4298. 80018b4: 689b ldr r3, [r3, #8]
  4299. 80018b6: 2238 movs r2, #56 @ 0x38
  4300. 80018b8: 4013 ands r3, r2
  4301. 80018ba: 2b20 cmp r3, #32
  4302. 80018bc: d11e bne.n 80018fc <HAL_RCC_OscConfig+0x350>
  4303. {
  4304. if ((((RCC->BDCR) & RCC_BDCR_LSERDY) != 0U) && (RCC_OscInitStruct->LSEState == RCC_LSE_OFF))
  4305. 80018be: 4b06 ldr r3, [pc, #24] @ (80018d8 <HAL_RCC_OscConfig+0x32c>)
  4306. 80018c0: 6ddb ldr r3, [r3, #92] @ 0x5c
  4307. 80018c2: 2202 movs r2, #2
  4308. 80018c4: 4013 ands r3, r2
  4309. 80018c6: d100 bne.n 80018ca <HAL_RCC_OscConfig+0x31e>
  4310. 80018c8: e0b6 b.n 8001a38 <HAL_RCC_OscConfig+0x48c>
  4311. 80018ca: 687b ldr r3, [r7, #4]
  4312. 80018cc: 689b ldr r3, [r3, #8]
  4313. 80018ce: 2b00 cmp r3, #0
  4314. 80018d0: d000 beq.n 80018d4 <HAL_RCC_OscConfig+0x328>
  4315. 80018d2: e0b1 b.n 8001a38 <HAL_RCC_OscConfig+0x48c>
  4316. {
  4317. return HAL_ERROR;
  4318. 80018d4: 2301 movs r3, #1
  4319. 80018d6: e166 b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4320. 80018d8: 40021000 .word 0x40021000
  4321. 80018dc: fffeffff .word 0xfffeffff
  4322. 80018e0: fffbffff .word 0xfffbffff
  4323. 80018e4: ffff80ff .word 0xffff80ff
  4324. 80018e8: ffffc7ff .word 0xffffc7ff
  4325. 80018ec: 00f42400 .word 0x00f42400
  4326. 80018f0: 20000000 .word 0x20000000
  4327. 80018f4: 20000004 .word 0x20000004
  4328. 80018f8: fffffeff .word 0xfffffeff
  4329. }
  4330. else
  4331. {
  4332. /* Update LSE configuration in Backup Domain control register */
  4333. /* Requires to enable write access to Backup Domain of necessary */
  4334. if (__HAL_RCC_PWR_IS_CLK_DISABLED() != 0U)
  4335. 80018fc: 4bac ldr r3, [pc, #688] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4336. 80018fe: 6bda ldr r2, [r3, #60] @ 0x3c
  4337. 8001900: 2380 movs r3, #128 @ 0x80
  4338. 8001902: 055b lsls r3, r3, #21
  4339. 8001904: 4013 ands r3, r2
  4340. 8001906: d101 bne.n 800190c <HAL_RCC_OscConfig+0x360>
  4341. 8001908: 2301 movs r3, #1
  4342. 800190a: e000 b.n 800190e <HAL_RCC_OscConfig+0x362>
  4343. 800190c: 2300 movs r3, #0
  4344. 800190e: 2b00 cmp r3, #0
  4345. 8001910: d011 beq.n 8001936 <HAL_RCC_OscConfig+0x38a>
  4346. {
  4347. __HAL_RCC_PWR_CLK_ENABLE();
  4348. 8001912: 4ba7 ldr r3, [pc, #668] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4349. 8001914: 6bda ldr r2, [r3, #60] @ 0x3c
  4350. 8001916: 4ba6 ldr r3, [pc, #664] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4351. 8001918: 2180 movs r1, #128 @ 0x80
  4352. 800191a: 0549 lsls r1, r1, #21
  4353. 800191c: 430a orrs r2, r1
  4354. 800191e: 63da str r2, [r3, #60] @ 0x3c
  4355. 8001920: 4ba3 ldr r3, [pc, #652] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4356. 8001922: 6bda ldr r2, [r3, #60] @ 0x3c
  4357. 8001924: 2380 movs r3, #128 @ 0x80
  4358. 8001926: 055b lsls r3, r3, #21
  4359. 8001928: 4013 ands r3, r2
  4360. 800192a: 60fb str r3, [r7, #12]
  4361. 800192c: 68fb ldr r3, [r7, #12]
  4362. pwrclkchanged = SET;
  4363. 800192e: 231f movs r3, #31
  4364. 8001930: 18fb adds r3, r7, r3
  4365. 8001932: 2201 movs r2, #1
  4366. 8001934: 701a strb r2, [r3, #0]
  4367. }
  4368. if (HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP))
  4369. 8001936: 4b9f ldr r3, [pc, #636] @ (8001bb4 <HAL_RCC_OscConfig+0x608>)
  4370. 8001938: 681a ldr r2, [r3, #0]
  4371. 800193a: 2380 movs r3, #128 @ 0x80
  4372. 800193c: 005b lsls r3, r3, #1
  4373. 800193e: 4013 ands r3, r2
  4374. 8001940: d11a bne.n 8001978 <HAL_RCC_OscConfig+0x3cc>
  4375. {
  4376. /* Enable write access to Backup domain */
  4377. SET_BIT(PWR->CR1, PWR_CR1_DBP);
  4378. 8001942: 4b9c ldr r3, [pc, #624] @ (8001bb4 <HAL_RCC_OscConfig+0x608>)
  4379. 8001944: 681a ldr r2, [r3, #0]
  4380. 8001946: 4b9b ldr r3, [pc, #620] @ (8001bb4 <HAL_RCC_OscConfig+0x608>)
  4381. 8001948: 2180 movs r1, #128 @ 0x80
  4382. 800194a: 0049 lsls r1, r1, #1
  4383. 800194c: 430a orrs r2, r1
  4384. 800194e: 601a str r2, [r3, #0]
  4385. /* Wait for Backup domain Write protection disable */
  4386. tickstart = HAL_GetTick();
  4387. 8001950: f7ff f972 bl 8000c38 <HAL_GetTick>
  4388. 8001954: 0003 movs r3, r0
  4389. 8001956: 613b str r3, [r7, #16]
  4390. while (HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP))
  4391. 8001958: e008 b.n 800196c <HAL_RCC_OscConfig+0x3c0>
  4392. {
  4393. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  4394. 800195a: f7ff f96d bl 8000c38 <HAL_GetTick>
  4395. 800195e: 0002 movs r2, r0
  4396. 8001960: 693b ldr r3, [r7, #16]
  4397. 8001962: 1ad3 subs r3, r2, r3
  4398. 8001964: 2b02 cmp r3, #2
  4399. 8001966: d901 bls.n 800196c <HAL_RCC_OscConfig+0x3c0>
  4400. {
  4401. return HAL_TIMEOUT;
  4402. 8001968: 2303 movs r3, #3
  4403. 800196a: e11c b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4404. while (HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP))
  4405. 800196c: 4b91 ldr r3, [pc, #580] @ (8001bb4 <HAL_RCC_OscConfig+0x608>)
  4406. 800196e: 681a ldr r2, [r3, #0]
  4407. 8001970: 2380 movs r3, #128 @ 0x80
  4408. 8001972: 005b lsls r3, r3, #1
  4409. 8001974: 4013 ands r3, r2
  4410. 8001976: d0f0 beq.n 800195a <HAL_RCC_OscConfig+0x3ae>
  4411. }
  4412. }
  4413. }
  4414. /* Set the new LSE configuration -----------------------------------------*/
  4415. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  4416. 8001978: 687b ldr r3, [r7, #4]
  4417. 800197a: 689b ldr r3, [r3, #8]
  4418. 800197c: 2b01 cmp r3, #1
  4419. 800197e: d106 bne.n 800198e <HAL_RCC_OscConfig+0x3e2>
  4420. 8001980: 4b8b ldr r3, [pc, #556] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4421. 8001982: 6dda ldr r2, [r3, #92] @ 0x5c
  4422. 8001984: 4b8a ldr r3, [pc, #552] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4423. 8001986: 2101 movs r1, #1
  4424. 8001988: 430a orrs r2, r1
  4425. 800198a: 65da str r2, [r3, #92] @ 0x5c
  4426. 800198c: e01c b.n 80019c8 <HAL_RCC_OscConfig+0x41c>
  4427. 800198e: 687b ldr r3, [r7, #4]
  4428. 8001990: 689b ldr r3, [r3, #8]
  4429. 8001992: 2b05 cmp r3, #5
  4430. 8001994: d10c bne.n 80019b0 <HAL_RCC_OscConfig+0x404>
  4431. 8001996: 4b86 ldr r3, [pc, #536] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4432. 8001998: 6dda ldr r2, [r3, #92] @ 0x5c
  4433. 800199a: 4b85 ldr r3, [pc, #532] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4434. 800199c: 2104 movs r1, #4
  4435. 800199e: 430a orrs r2, r1
  4436. 80019a0: 65da str r2, [r3, #92] @ 0x5c
  4437. 80019a2: 4b83 ldr r3, [pc, #524] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4438. 80019a4: 6dda ldr r2, [r3, #92] @ 0x5c
  4439. 80019a6: 4b82 ldr r3, [pc, #520] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4440. 80019a8: 2101 movs r1, #1
  4441. 80019aa: 430a orrs r2, r1
  4442. 80019ac: 65da str r2, [r3, #92] @ 0x5c
  4443. 80019ae: e00b b.n 80019c8 <HAL_RCC_OscConfig+0x41c>
  4444. 80019b0: 4b7f ldr r3, [pc, #508] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4445. 80019b2: 6dda ldr r2, [r3, #92] @ 0x5c
  4446. 80019b4: 4b7e ldr r3, [pc, #504] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4447. 80019b6: 2101 movs r1, #1
  4448. 80019b8: 438a bics r2, r1
  4449. 80019ba: 65da str r2, [r3, #92] @ 0x5c
  4450. 80019bc: 4b7c ldr r3, [pc, #496] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4451. 80019be: 6dda ldr r2, [r3, #92] @ 0x5c
  4452. 80019c0: 4b7b ldr r3, [pc, #492] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4453. 80019c2: 2104 movs r1, #4
  4454. 80019c4: 438a bics r2, r1
  4455. 80019c6: 65da str r2, [r3, #92] @ 0x5c
  4456. /* Check the LSE State */
  4457. if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF)
  4458. 80019c8: 687b ldr r3, [r7, #4]
  4459. 80019ca: 689b ldr r3, [r3, #8]
  4460. 80019cc: 2b00 cmp r3, #0
  4461. 80019ce: d014 beq.n 80019fa <HAL_RCC_OscConfig+0x44e>
  4462. {
  4463. /* Get Start Tick*/
  4464. tickstart = HAL_GetTick();
  4465. 80019d0: f7ff f932 bl 8000c38 <HAL_GetTick>
  4466. 80019d4: 0003 movs r3, r0
  4467. 80019d6: 613b str r3, [r7, #16]
  4468. /* Wait till LSE is ready */
  4469. while (READ_BIT(RCC->BDCR, RCC_BDCR_LSERDY) == 0U)
  4470. 80019d8: e009 b.n 80019ee <HAL_RCC_OscConfig+0x442>
  4471. {
  4472. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  4473. 80019da: f7ff f92d bl 8000c38 <HAL_GetTick>
  4474. 80019de: 0002 movs r2, r0
  4475. 80019e0: 693b ldr r3, [r7, #16]
  4476. 80019e2: 1ad3 subs r3, r2, r3
  4477. 80019e4: 4a74 ldr r2, [pc, #464] @ (8001bb8 <HAL_RCC_OscConfig+0x60c>)
  4478. 80019e6: 4293 cmp r3, r2
  4479. 80019e8: d901 bls.n 80019ee <HAL_RCC_OscConfig+0x442>
  4480. {
  4481. return HAL_TIMEOUT;
  4482. 80019ea: 2303 movs r3, #3
  4483. 80019ec: e0db b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4484. while (READ_BIT(RCC->BDCR, RCC_BDCR_LSERDY) == 0U)
  4485. 80019ee: 4b70 ldr r3, [pc, #448] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4486. 80019f0: 6ddb ldr r3, [r3, #92] @ 0x5c
  4487. 80019f2: 2202 movs r2, #2
  4488. 80019f4: 4013 ands r3, r2
  4489. 80019f6: d0f0 beq.n 80019da <HAL_RCC_OscConfig+0x42e>
  4490. 80019f8: e013 b.n 8001a22 <HAL_RCC_OscConfig+0x476>
  4491. }
  4492. }
  4493. else
  4494. {
  4495. /* Get Start Tick*/
  4496. tickstart = HAL_GetTick();
  4497. 80019fa: f7ff f91d bl 8000c38 <HAL_GetTick>
  4498. 80019fe: 0003 movs r3, r0
  4499. 8001a00: 613b str r3, [r7, #16]
  4500. /* Wait till LSE is disabled */
  4501. while (READ_BIT(RCC->BDCR, RCC_BDCR_LSERDY) != 0U)
  4502. 8001a02: e009 b.n 8001a18 <HAL_RCC_OscConfig+0x46c>
  4503. {
  4504. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  4505. 8001a04: f7ff f918 bl 8000c38 <HAL_GetTick>
  4506. 8001a08: 0002 movs r2, r0
  4507. 8001a0a: 693b ldr r3, [r7, #16]
  4508. 8001a0c: 1ad3 subs r3, r2, r3
  4509. 8001a0e: 4a6a ldr r2, [pc, #424] @ (8001bb8 <HAL_RCC_OscConfig+0x60c>)
  4510. 8001a10: 4293 cmp r3, r2
  4511. 8001a12: d901 bls.n 8001a18 <HAL_RCC_OscConfig+0x46c>
  4512. {
  4513. return HAL_TIMEOUT;
  4514. 8001a14: 2303 movs r3, #3
  4515. 8001a16: e0c6 b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4516. while (READ_BIT(RCC->BDCR, RCC_BDCR_LSERDY) != 0U)
  4517. 8001a18: 4b65 ldr r3, [pc, #404] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4518. 8001a1a: 6ddb ldr r3, [r3, #92] @ 0x5c
  4519. 8001a1c: 2202 movs r2, #2
  4520. 8001a1e: 4013 ands r3, r2
  4521. 8001a20: d1f0 bne.n 8001a04 <HAL_RCC_OscConfig+0x458>
  4522. }
  4523. }
  4524. }
  4525. /* Restore clock configuration if changed */
  4526. if (pwrclkchanged == SET)
  4527. 8001a22: 231f movs r3, #31
  4528. 8001a24: 18fb adds r3, r7, r3
  4529. 8001a26: 781b ldrb r3, [r3, #0]
  4530. 8001a28: 2b01 cmp r3, #1
  4531. 8001a2a: d105 bne.n 8001a38 <HAL_RCC_OscConfig+0x48c>
  4532. {
  4533. __HAL_RCC_PWR_CLK_DISABLE();
  4534. 8001a2c: 4b60 ldr r3, [pc, #384] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4535. 8001a2e: 6bda ldr r2, [r3, #60] @ 0x3c
  4536. 8001a30: 4b5f ldr r3, [pc, #380] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4537. 8001a32: 4962 ldr r1, [pc, #392] @ (8001bbc <HAL_RCC_OscConfig+0x610>)
  4538. 8001a34: 400a ands r2, r1
  4539. 8001a36: 63da str r2, [r3, #60] @ 0x3c
  4540. #endif /* RCC_HSI48_SUPPORT */
  4541. /*-------------------------------- PLL Configuration -----------------------*/
  4542. /* Check the parameters */
  4543. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  4544. if (RCC_OscInitStruct->PLL.PLLState != RCC_PLL_NONE)
  4545. 8001a38: 687b ldr r3, [r7, #4]
  4546. 8001a3a: 69db ldr r3, [r3, #28]
  4547. 8001a3c: 2b00 cmp r3, #0
  4548. 8001a3e: d100 bne.n 8001a42 <HAL_RCC_OscConfig+0x496>
  4549. 8001a40: e0b0 b.n 8001ba4 <HAL_RCC_OscConfig+0x5f8>
  4550. {
  4551. /* Check if the PLL is used as system clock or not */
  4552. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  4553. 8001a42: 4b5b ldr r3, [pc, #364] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4554. 8001a44: 689b ldr r3, [r3, #8]
  4555. 8001a46: 2238 movs r2, #56 @ 0x38
  4556. 8001a48: 4013 ands r3, r2
  4557. 8001a4a: 2b10 cmp r3, #16
  4558. 8001a4c: d100 bne.n 8001a50 <HAL_RCC_OscConfig+0x4a4>
  4559. 8001a4e: e078 b.n 8001b42 <HAL_RCC_OscConfig+0x596>
  4560. {
  4561. if (RCC_OscInitStruct->PLL.PLLState == RCC_PLL_ON)
  4562. 8001a50: 687b ldr r3, [r7, #4]
  4563. 8001a52: 69db ldr r3, [r3, #28]
  4564. 8001a54: 2b02 cmp r3, #2
  4565. 8001a56: d153 bne.n 8001b00 <HAL_RCC_OscConfig+0x554>
  4566. assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
  4567. #endif /* RCC_PLLQ_SUPPORT */
  4568. assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
  4569. /* Disable the main PLL. */
  4570. __HAL_RCC_PLL_DISABLE();
  4571. 8001a58: 4b55 ldr r3, [pc, #340] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4572. 8001a5a: 681a ldr r2, [r3, #0]
  4573. 8001a5c: 4b54 ldr r3, [pc, #336] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4574. 8001a5e: 4958 ldr r1, [pc, #352] @ (8001bc0 <HAL_RCC_OscConfig+0x614>)
  4575. 8001a60: 400a ands r2, r1
  4576. 8001a62: 601a str r2, [r3, #0]
  4577. /* Get Start Tick*/
  4578. tickstart = HAL_GetTick();
  4579. 8001a64: f7ff f8e8 bl 8000c38 <HAL_GetTick>
  4580. 8001a68: 0003 movs r3, r0
  4581. 8001a6a: 613b str r3, [r7, #16]
  4582. /* Wait till PLL is ready */
  4583. while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != 0U)
  4584. 8001a6c: e008 b.n 8001a80 <HAL_RCC_OscConfig+0x4d4>
  4585. {
  4586. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  4587. 8001a6e: f7ff f8e3 bl 8000c38 <HAL_GetTick>
  4588. 8001a72: 0002 movs r2, r0
  4589. 8001a74: 693b ldr r3, [r7, #16]
  4590. 8001a76: 1ad3 subs r3, r2, r3
  4591. 8001a78: 2b02 cmp r3, #2
  4592. 8001a7a: d901 bls.n 8001a80 <HAL_RCC_OscConfig+0x4d4>
  4593. {
  4594. return HAL_TIMEOUT;
  4595. 8001a7c: 2303 movs r3, #3
  4596. 8001a7e: e092 b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4597. while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != 0U)
  4598. 8001a80: 4b4b ldr r3, [pc, #300] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4599. 8001a82: 681a ldr r2, [r3, #0]
  4600. 8001a84: 2380 movs r3, #128 @ 0x80
  4601. 8001a86: 049b lsls r3, r3, #18
  4602. 8001a88: 4013 ands r3, r2
  4603. 8001a8a: d1f0 bne.n 8001a6e <HAL_RCC_OscConfig+0x4c2>
  4604. RCC_OscInitStruct->PLL.PLLN,
  4605. RCC_OscInitStruct->PLL.PLLP,
  4606. RCC_OscInitStruct->PLL.PLLQ,
  4607. RCC_OscInitStruct->PLL.PLLR);
  4608. #else /* !RCC_PLLQ_SUPPORT */
  4609. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  4610. 8001a8c: 4b48 ldr r3, [pc, #288] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4611. 8001a8e: 68db ldr r3, [r3, #12]
  4612. 8001a90: 4a4c ldr r2, [pc, #304] @ (8001bc4 <HAL_RCC_OscConfig+0x618>)
  4613. 8001a92: 4013 ands r3, r2
  4614. 8001a94: 0019 movs r1, r3
  4615. 8001a96: 687b ldr r3, [r7, #4]
  4616. 8001a98: 6a1a ldr r2, [r3, #32]
  4617. 8001a9a: 687b ldr r3, [r7, #4]
  4618. 8001a9c: 6a5b ldr r3, [r3, #36] @ 0x24
  4619. 8001a9e: 431a orrs r2, r3
  4620. 8001aa0: 687b ldr r3, [r7, #4]
  4621. 8001aa2: 6a9b ldr r3, [r3, #40] @ 0x28
  4622. 8001aa4: 021b lsls r3, r3, #8
  4623. 8001aa6: 431a orrs r2, r3
  4624. 8001aa8: 687b ldr r3, [r7, #4]
  4625. 8001aaa: 6adb ldr r3, [r3, #44] @ 0x2c
  4626. 8001aac: 431a orrs r2, r3
  4627. 8001aae: 687b ldr r3, [r7, #4]
  4628. 8001ab0: 6b1b ldr r3, [r3, #48] @ 0x30
  4629. 8001ab2: 431a orrs r2, r3
  4630. 8001ab4: 4b3e ldr r3, [pc, #248] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4631. 8001ab6: 430a orrs r2, r1
  4632. 8001ab8: 60da str r2, [r3, #12]
  4633. RCC_OscInitStruct->PLL.PLLP,
  4634. RCC_OscInitStruct->PLL.PLLR);
  4635. #endif /* RCC_PLLQ_SUPPORT */
  4636. /* Enable the main PLL. */
  4637. __HAL_RCC_PLL_ENABLE();
  4638. 8001aba: 4b3d ldr r3, [pc, #244] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4639. 8001abc: 681a ldr r2, [r3, #0]
  4640. 8001abe: 4b3c ldr r3, [pc, #240] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4641. 8001ac0: 2180 movs r1, #128 @ 0x80
  4642. 8001ac2: 0449 lsls r1, r1, #17
  4643. 8001ac4: 430a orrs r2, r1
  4644. 8001ac6: 601a str r2, [r3, #0]
  4645. /* Enable PLLR Clock output. */
  4646. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLLRCLK);
  4647. 8001ac8: 4b39 ldr r3, [pc, #228] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4648. 8001aca: 68da ldr r2, [r3, #12]
  4649. 8001acc: 4b38 ldr r3, [pc, #224] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4650. 8001ace: 2180 movs r1, #128 @ 0x80
  4651. 8001ad0: 0549 lsls r1, r1, #21
  4652. 8001ad2: 430a orrs r2, r1
  4653. 8001ad4: 60da str r2, [r3, #12]
  4654. /* Get Start Tick*/
  4655. tickstart = HAL_GetTick();
  4656. 8001ad6: f7ff f8af bl 8000c38 <HAL_GetTick>
  4657. 8001ada: 0003 movs r3, r0
  4658. 8001adc: 613b str r3, [r7, #16]
  4659. /* Wait till PLL is ready */
  4660. while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) == 0U)
  4661. 8001ade: e008 b.n 8001af2 <HAL_RCC_OscConfig+0x546>
  4662. {
  4663. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  4664. 8001ae0: f7ff f8aa bl 8000c38 <HAL_GetTick>
  4665. 8001ae4: 0002 movs r2, r0
  4666. 8001ae6: 693b ldr r3, [r7, #16]
  4667. 8001ae8: 1ad3 subs r3, r2, r3
  4668. 8001aea: 2b02 cmp r3, #2
  4669. 8001aec: d901 bls.n 8001af2 <HAL_RCC_OscConfig+0x546>
  4670. {
  4671. return HAL_TIMEOUT;
  4672. 8001aee: 2303 movs r3, #3
  4673. 8001af0: e059 b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4674. while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) == 0U)
  4675. 8001af2: 4b2f ldr r3, [pc, #188] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4676. 8001af4: 681a ldr r2, [r3, #0]
  4677. 8001af6: 2380 movs r3, #128 @ 0x80
  4678. 8001af8: 049b lsls r3, r3, #18
  4679. 8001afa: 4013 ands r3, r2
  4680. 8001afc: d0f0 beq.n 8001ae0 <HAL_RCC_OscConfig+0x534>
  4681. 8001afe: e051 b.n 8001ba4 <HAL_RCC_OscConfig+0x5f8>
  4682. }
  4683. }
  4684. else
  4685. {
  4686. /* Disable the main PLL. */
  4687. __HAL_RCC_PLL_DISABLE();
  4688. 8001b00: 4b2b ldr r3, [pc, #172] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4689. 8001b02: 681a ldr r2, [r3, #0]
  4690. 8001b04: 4b2a ldr r3, [pc, #168] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4691. 8001b06: 492e ldr r1, [pc, #184] @ (8001bc0 <HAL_RCC_OscConfig+0x614>)
  4692. 8001b08: 400a ands r2, r1
  4693. 8001b0a: 601a str r2, [r3, #0]
  4694. /* Get Start Tick*/
  4695. tickstart = HAL_GetTick();
  4696. 8001b0c: f7ff f894 bl 8000c38 <HAL_GetTick>
  4697. 8001b10: 0003 movs r3, r0
  4698. 8001b12: 613b str r3, [r7, #16]
  4699. /* Wait till PLL is disabled */
  4700. while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != 0U)
  4701. 8001b14: e008 b.n 8001b28 <HAL_RCC_OscConfig+0x57c>
  4702. {
  4703. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  4704. 8001b16: f7ff f88f bl 8000c38 <HAL_GetTick>
  4705. 8001b1a: 0002 movs r2, r0
  4706. 8001b1c: 693b ldr r3, [r7, #16]
  4707. 8001b1e: 1ad3 subs r3, r2, r3
  4708. 8001b20: 2b02 cmp r3, #2
  4709. 8001b22: d901 bls.n 8001b28 <HAL_RCC_OscConfig+0x57c>
  4710. {
  4711. return HAL_TIMEOUT;
  4712. 8001b24: 2303 movs r3, #3
  4713. 8001b26: e03e b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4714. while (READ_BIT(RCC->CR, RCC_CR_PLLRDY) != 0U)
  4715. 8001b28: 4b21 ldr r3, [pc, #132] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4716. 8001b2a: 681a ldr r2, [r3, #0]
  4717. 8001b2c: 2380 movs r3, #128 @ 0x80
  4718. 8001b2e: 049b lsls r3, r3, #18
  4719. 8001b30: 4013 ands r3, r2
  4720. 8001b32: d1f0 bne.n 8001b16 <HAL_RCC_OscConfig+0x56a>
  4721. }
  4722. /* Unselect main PLL clock source and disable main PLL outputs to save power */
  4723. #if defined(RCC_PLLQ_SUPPORT)
  4724. RCC->PLLCFGR &= ~(RCC_PLLCFGR_PLLSRC | RCC_PLLCFGR_PLLPEN | RCC_PLLCFGR_PLLQEN | RCC_PLLCFGR_PLLREN);
  4725. #else
  4726. RCC->PLLCFGR &= ~(RCC_PLLCFGR_PLLSRC | RCC_PLLCFGR_PLLPEN | RCC_PLLCFGR_PLLREN);
  4727. 8001b34: 4b1e ldr r3, [pc, #120] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4728. 8001b36: 68da ldr r2, [r3, #12]
  4729. 8001b38: 4b1d ldr r3, [pc, #116] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4730. 8001b3a: 4923 ldr r1, [pc, #140] @ (8001bc8 <HAL_RCC_OscConfig+0x61c>)
  4731. 8001b3c: 400a ands r2, r1
  4732. 8001b3e: 60da str r2, [r3, #12]
  4733. 8001b40: e030 b.n 8001ba4 <HAL_RCC_OscConfig+0x5f8>
  4734. }
  4735. }
  4736. else
  4737. {
  4738. /* Check if there is a request to disable the PLL used as System clock source */
  4739. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF)
  4740. 8001b42: 687b ldr r3, [r7, #4]
  4741. 8001b44: 69db ldr r3, [r3, #28]
  4742. 8001b46: 2b01 cmp r3, #1
  4743. 8001b48: d101 bne.n 8001b4e <HAL_RCC_OscConfig+0x5a2>
  4744. {
  4745. return HAL_ERROR;
  4746. 8001b4a: 2301 movs r3, #1
  4747. 8001b4c: e02b b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4748. }
  4749. else
  4750. {
  4751. /* Do not return HAL_ERROR if request repeats the current configuration */
  4752. temp_pllckcfg = RCC->PLLCFGR;
  4753. 8001b4e: 4b18 ldr r3, [pc, #96] @ (8001bb0 <HAL_RCC_OscConfig+0x604>)
  4754. 8001b50: 68db ldr r3, [r3, #12]
  4755. 8001b52: 617b str r3, [r7, #20]
  4756. if ((READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  4757. 8001b54: 697b ldr r3, [r7, #20]
  4758. 8001b56: 2203 movs r2, #3
  4759. 8001b58: 401a ands r2, r3
  4760. 8001b5a: 687b ldr r3, [r7, #4]
  4761. 8001b5c: 6a1b ldr r3, [r3, #32]
  4762. 8001b5e: 429a cmp r2, r3
  4763. 8001b60: d11e bne.n 8001ba0 <HAL_RCC_OscConfig+0x5f4>
  4764. (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLM) != RCC_OscInitStruct->PLL.PLLM) ||
  4765. 8001b62: 697b ldr r3, [r7, #20]
  4766. 8001b64: 2270 movs r2, #112 @ 0x70
  4767. 8001b66: 401a ands r2, r3
  4768. 8001b68: 687b ldr r3, [r7, #4]
  4769. 8001b6a: 6a5b ldr r3, [r3, #36] @ 0x24
  4770. if ((READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  4771. 8001b6c: 429a cmp r2, r3
  4772. 8001b6e: d117 bne.n 8001ba0 <HAL_RCC_OscConfig+0x5f4>
  4773. (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN << RCC_PLLCFGR_PLLN_Pos)) ||
  4774. 8001b70: 697a ldr r2, [r7, #20]
  4775. 8001b72: 23fe movs r3, #254 @ 0xfe
  4776. 8001b74: 01db lsls r3, r3, #7
  4777. 8001b76: 401a ands r2, r3
  4778. 8001b78: 687b ldr r3, [r7, #4]
  4779. 8001b7a: 6a9b ldr r3, [r3, #40] @ 0x28
  4780. 8001b7c: 021b lsls r3, r3, #8
  4781. (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLM) != RCC_OscInitStruct->PLL.PLLM) ||
  4782. 8001b7e: 429a cmp r2, r3
  4783. 8001b80: d10e bne.n 8001ba0 <HAL_RCC_OscConfig+0x5f4>
  4784. (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLP) != RCC_OscInitStruct->PLL.PLLP) ||
  4785. 8001b82: 697a ldr r2, [r7, #20]
  4786. 8001b84: 23f8 movs r3, #248 @ 0xf8
  4787. 8001b86: 039b lsls r3, r3, #14
  4788. 8001b88: 401a ands r2, r3
  4789. 8001b8a: 687b ldr r3, [r7, #4]
  4790. 8001b8c: 6adb ldr r3, [r3, #44] @ 0x2c
  4791. (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN << RCC_PLLCFGR_PLLN_Pos)) ||
  4792. 8001b8e: 429a cmp r2, r3
  4793. 8001b90: d106 bne.n 8001ba0 <HAL_RCC_OscConfig+0x5f4>
  4794. #if defined (RCC_PLLQ_SUPPORT)
  4795. (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLQ) != RCC_OscInitStruct->PLL.PLLQ) ||
  4796. #endif /* RCC_PLLQ_SUPPORT */
  4797. (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLR) != RCC_OscInitStruct->PLL.PLLR))
  4798. 8001b92: 697b ldr r3, [r7, #20]
  4799. 8001b94: 0f5b lsrs r3, r3, #29
  4800. 8001b96: 075a lsls r2, r3, #29
  4801. 8001b98: 687b ldr r3, [r7, #4]
  4802. 8001b9a: 6b1b ldr r3, [r3, #48] @ 0x30
  4803. (READ_BIT(temp_pllckcfg, RCC_PLLCFGR_PLLP) != RCC_OscInitStruct->PLL.PLLP) ||
  4804. 8001b9c: 429a cmp r2, r3
  4805. 8001b9e: d001 beq.n 8001ba4 <HAL_RCC_OscConfig+0x5f8>
  4806. {
  4807. return HAL_ERROR;
  4808. 8001ba0: 2301 movs r3, #1
  4809. 8001ba2: e000 b.n 8001ba6 <HAL_RCC_OscConfig+0x5fa>
  4810. }
  4811. }
  4812. }
  4813. }
  4814. return HAL_OK;
  4815. 8001ba4: 2300 movs r3, #0
  4816. }
  4817. 8001ba6: 0018 movs r0, r3
  4818. 8001ba8: 46bd mov sp, r7
  4819. 8001baa: b008 add sp, #32
  4820. 8001bac: bd80 pop {r7, pc}
  4821. 8001bae: 46c0 nop @ (mov r8, r8)
  4822. 8001bb0: 40021000 .word 0x40021000
  4823. 8001bb4: 40007000 .word 0x40007000
  4824. 8001bb8: 00001388 .word 0x00001388
  4825. 8001bbc: efffffff .word 0xefffffff
  4826. 8001bc0: feffffff .word 0xfeffffff
  4827. 8001bc4: 1fc1808c .word 0x1fc1808c
  4828. 8001bc8: effefffc .word 0xeffefffc
  4829. 08001bcc <HAL_RCC_ClockConfig>:
  4830. * HPRE[3:0] bits to ensure that HCLK not exceed the maximum allowed frequency
  4831. * (for more details refer to section above "Initialization/de-initialization functions")
  4832. * @retval None
  4833. */
  4834. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  4835. {
  4836. 8001bcc: b580 push {r7, lr}
  4837. 8001bce: b084 sub sp, #16
  4838. 8001bd0: af00 add r7, sp, #0
  4839. 8001bd2: 6078 str r0, [r7, #4]
  4840. 8001bd4: 6039 str r1, [r7, #0]
  4841. uint32_t tickstart;
  4842. /* Check Null pointer */
  4843. if (RCC_ClkInitStruct == NULL)
  4844. 8001bd6: 687b ldr r3, [r7, #4]
  4845. 8001bd8: 2b00 cmp r3, #0
  4846. 8001bda: d101 bne.n 8001be0 <HAL_RCC_ClockConfig+0x14>
  4847. {
  4848. return HAL_ERROR;
  4849. 8001bdc: 2301 movs r3, #1
  4850. 8001bde: e0e9 b.n 8001db4 <HAL_RCC_ClockConfig+0x1e8>
  4851. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  4852. must be correctly programmed according to the frequency of the FLASH clock
  4853. (HCLK) and the supply voltage of the device. */
  4854. /* Increasing the number of wait states because of higher CPU frequency */
  4855. if (FLatency > __HAL_FLASH_GET_LATENCY())
  4856. 8001be0: 4b76 ldr r3, [pc, #472] @ (8001dbc <HAL_RCC_ClockConfig+0x1f0>)
  4857. 8001be2: 681b ldr r3, [r3, #0]
  4858. 8001be4: 2207 movs r2, #7
  4859. 8001be6: 4013 ands r3, r2
  4860. 8001be8: 683a ldr r2, [r7, #0]
  4861. 8001bea: 429a cmp r2, r3
  4862. 8001bec: d91e bls.n 8001c2c <HAL_RCC_ClockConfig+0x60>
  4863. {
  4864. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  4865. __HAL_FLASH_SET_LATENCY(FLatency);
  4866. 8001bee: 4b73 ldr r3, [pc, #460] @ (8001dbc <HAL_RCC_ClockConfig+0x1f0>)
  4867. 8001bf0: 681b ldr r3, [r3, #0]
  4868. 8001bf2: 2207 movs r2, #7
  4869. 8001bf4: 4393 bics r3, r2
  4870. 8001bf6: 0019 movs r1, r3
  4871. 8001bf8: 4b70 ldr r3, [pc, #448] @ (8001dbc <HAL_RCC_ClockConfig+0x1f0>)
  4872. 8001bfa: 683a ldr r2, [r7, #0]
  4873. 8001bfc: 430a orrs r2, r1
  4874. 8001bfe: 601a str r2, [r3, #0]
  4875. /* Check that the new number of wait states is taken into account to access the Flash
  4876. memory by polling the FLASH_ACR register */
  4877. tickstart = HAL_GetTick();
  4878. 8001c00: f7ff f81a bl 8000c38 <HAL_GetTick>
  4879. 8001c04: 0003 movs r3, r0
  4880. 8001c06: 60fb str r3, [r7, #12]
  4881. while ((FLASH->ACR & FLASH_ACR_LATENCY) != FLatency)
  4882. 8001c08: e009 b.n 8001c1e <HAL_RCC_ClockConfig+0x52>
  4883. {
  4884. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  4885. 8001c0a: f7ff f815 bl 8000c38 <HAL_GetTick>
  4886. 8001c0e: 0002 movs r2, r0
  4887. 8001c10: 68fb ldr r3, [r7, #12]
  4888. 8001c12: 1ad3 subs r3, r2, r3
  4889. 8001c14: 4a6a ldr r2, [pc, #424] @ (8001dc0 <HAL_RCC_ClockConfig+0x1f4>)
  4890. 8001c16: 4293 cmp r3, r2
  4891. 8001c18: d901 bls.n 8001c1e <HAL_RCC_ClockConfig+0x52>
  4892. {
  4893. return HAL_TIMEOUT;
  4894. 8001c1a: 2303 movs r3, #3
  4895. 8001c1c: e0ca b.n 8001db4 <HAL_RCC_ClockConfig+0x1e8>
  4896. while ((FLASH->ACR & FLASH_ACR_LATENCY) != FLatency)
  4897. 8001c1e: 4b67 ldr r3, [pc, #412] @ (8001dbc <HAL_RCC_ClockConfig+0x1f0>)
  4898. 8001c20: 681b ldr r3, [r3, #0]
  4899. 8001c22: 2207 movs r2, #7
  4900. 8001c24: 4013 ands r3, r2
  4901. 8001c26: 683a ldr r2, [r7, #0]
  4902. 8001c28: 429a cmp r2, r3
  4903. 8001c2a: d1ee bne.n 8001c0a <HAL_RCC_ClockConfig+0x3e>
  4904. }
  4905. }
  4906. }
  4907. /*-------------------------- HCLK Configuration --------------------------*/
  4908. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  4909. 8001c2c: 687b ldr r3, [r7, #4]
  4910. 8001c2e: 681b ldr r3, [r3, #0]
  4911. 8001c30: 2202 movs r2, #2
  4912. 8001c32: 4013 ands r3, r2
  4913. 8001c34: d015 beq.n 8001c62 <HAL_RCC_ClockConfig+0x96>
  4914. {
  4915. /* Set the highest APB divider in order to ensure that we do not go through
  4916. a non-spec phase whatever we decrease or increase HCLK. */
  4917. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  4918. 8001c36: 687b ldr r3, [r7, #4]
  4919. 8001c38: 681b ldr r3, [r3, #0]
  4920. 8001c3a: 2204 movs r2, #4
  4921. 8001c3c: 4013 ands r3, r2
  4922. 8001c3e: d006 beq.n 8001c4e <HAL_RCC_ClockConfig+0x82>
  4923. {
  4924. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE, RCC_HCLK_DIV16);
  4925. 8001c40: 4b60 ldr r3, [pc, #384] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  4926. 8001c42: 689a ldr r2, [r3, #8]
  4927. 8001c44: 4b5f ldr r3, [pc, #380] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  4928. 8001c46: 21e0 movs r1, #224 @ 0xe0
  4929. 8001c48: 01c9 lsls r1, r1, #7
  4930. 8001c4a: 430a orrs r2, r1
  4931. 8001c4c: 609a str r2, [r3, #8]
  4932. }
  4933. /* Set the new HCLK clock divider */
  4934. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  4935. MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  4936. 8001c4e: 4b5d ldr r3, [pc, #372] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  4937. 8001c50: 689b ldr r3, [r3, #8]
  4938. 8001c52: 4a5d ldr r2, [pc, #372] @ (8001dc8 <HAL_RCC_ClockConfig+0x1fc>)
  4939. 8001c54: 4013 ands r3, r2
  4940. 8001c56: 0019 movs r1, r3
  4941. 8001c58: 687b ldr r3, [r7, #4]
  4942. 8001c5a: 689a ldr r2, [r3, #8]
  4943. 8001c5c: 4b59 ldr r3, [pc, #356] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  4944. 8001c5e: 430a orrs r2, r1
  4945. 8001c60: 609a str r2, [r3, #8]
  4946. }
  4947. /*------------------------- SYSCLK Configuration ---------------------------*/
  4948. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  4949. 8001c62: 687b ldr r3, [r7, #4]
  4950. 8001c64: 681b ldr r3, [r3, #0]
  4951. 8001c66: 2201 movs r2, #1
  4952. 8001c68: 4013 ands r3, r2
  4953. 8001c6a: d057 beq.n 8001d1c <HAL_RCC_ClockConfig+0x150>
  4954. {
  4955. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  4956. /* HSE is selected as System Clock Source */
  4957. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  4958. 8001c6c: 687b ldr r3, [r7, #4]
  4959. 8001c6e: 685b ldr r3, [r3, #4]
  4960. 8001c70: 2b01 cmp r3, #1
  4961. 8001c72: d107 bne.n 8001c84 <HAL_RCC_ClockConfig+0xb8>
  4962. {
  4963. /* Check the HSE ready flag */
  4964. if (READ_BIT(RCC->CR, RCC_CR_HSERDY) == 0U)
  4965. 8001c74: 4b53 ldr r3, [pc, #332] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  4966. 8001c76: 681a ldr r2, [r3, #0]
  4967. 8001c78: 2380 movs r3, #128 @ 0x80
  4968. 8001c7a: 029b lsls r3, r3, #10
  4969. 8001c7c: 4013 ands r3, r2
  4970. 8001c7e: d12b bne.n 8001cd8 <HAL_RCC_ClockConfig+0x10c>
  4971. {
  4972. return HAL_ERROR;
  4973. 8001c80: 2301 movs r3, #1
  4974. 8001c82: e097 b.n 8001db4 <HAL_RCC_ClockConfig+0x1e8>
  4975. }
  4976. }
  4977. /* PLL is selected as System Clock Source */
  4978. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  4979. 8001c84: 687b ldr r3, [r7, #4]
  4980. 8001c86: 685b ldr r3, [r3, #4]
  4981. 8001c88: 2b02 cmp r3, #2
  4982. 8001c8a: d107 bne.n 8001c9c <HAL_RCC_ClockConfig+0xd0>
  4983. {
  4984. /* Check the PLL ready flag */
  4985. if (READ_BIT(RCC->CR, RCC_CR_PLLRDY) == 0U)
  4986. 8001c8c: 4b4d ldr r3, [pc, #308] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  4987. 8001c8e: 681a ldr r2, [r3, #0]
  4988. 8001c90: 2380 movs r3, #128 @ 0x80
  4989. 8001c92: 049b lsls r3, r3, #18
  4990. 8001c94: 4013 ands r3, r2
  4991. 8001c96: d11f bne.n 8001cd8 <HAL_RCC_ClockConfig+0x10c>
  4992. {
  4993. return HAL_ERROR;
  4994. 8001c98: 2301 movs r3, #1
  4995. 8001c9a: e08b b.n 8001db4 <HAL_RCC_ClockConfig+0x1e8>
  4996. }
  4997. }
  4998. /* HSI is selected as System Clock Source */
  4999. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSI)
  5000. 8001c9c: 687b ldr r3, [r7, #4]
  5001. 8001c9e: 685b ldr r3, [r3, #4]
  5002. 8001ca0: 2b00 cmp r3, #0
  5003. 8001ca2: d107 bne.n 8001cb4 <HAL_RCC_ClockConfig+0xe8>
  5004. {
  5005. /* Check the HSI ready flag */
  5006. if (READ_BIT(RCC->CR, RCC_CR_HSIRDY) == 0U)
  5007. 8001ca4: 4b47 ldr r3, [pc, #284] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  5008. 8001ca6: 681a ldr r2, [r3, #0]
  5009. 8001ca8: 2380 movs r3, #128 @ 0x80
  5010. 8001caa: 00db lsls r3, r3, #3
  5011. 8001cac: 4013 ands r3, r2
  5012. 8001cae: d113 bne.n 8001cd8 <HAL_RCC_ClockConfig+0x10c>
  5013. {
  5014. return HAL_ERROR;
  5015. 8001cb0: 2301 movs r3, #1
  5016. 8001cb2: e07f b.n 8001db4 <HAL_RCC_ClockConfig+0x1e8>
  5017. }
  5018. }
  5019. /* LSI is selected as System Clock Source */
  5020. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_LSI)
  5021. 8001cb4: 687b ldr r3, [r7, #4]
  5022. 8001cb6: 685b ldr r3, [r3, #4]
  5023. 8001cb8: 2b03 cmp r3, #3
  5024. 8001cba: d106 bne.n 8001cca <HAL_RCC_ClockConfig+0xfe>
  5025. {
  5026. /* Check the LSI ready flag */
  5027. if (READ_BIT(RCC->CSR, RCC_CSR_LSIRDY) == 0U)
  5028. 8001cbc: 4b41 ldr r3, [pc, #260] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  5029. 8001cbe: 6e1b ldr r3, [r3, #96] @ 0x60
  5030. 8001cc0: 2202 movs r2, #2
  5031. 8001cc2: 4013 ands r3, r2
  5032. 8001cc4: d108 bne.n 8001cd8 <HAL_RCC_ClockConfig+0x10c>
  5033. {
  5034. return HAL_ERROR;
  5035. 8001cc6: 2301 movs r3, #1
  5036. 8001cc8: e074 b.n 8001db4 <HAL_RCC_ClockConfig+0x1e8>
  5037. }
  5038. /* LSE is selected as System Clock Source */
  5039. else
  5040. {
  5041. /* Check the LSE ready flag */
  5042. if (READ_BIT(RCC->BDCR, RCC_BDCR_LSERDY) == 0U)
  5043. 8001cca: 4b3e ldr r3, [pc, #248] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  5044. 8001ccc: 6ddb ldr r3, [r3, #92] @ 0x5c
  5045. 8001cce: 2202 movs r2, #2
  5046. 8001cd0: 4013 ands r3, r2
  5047. 8001cd2: d101 bne.n 8001cd8 <HAL_RCC_ClockConfig+0x10c>
  5048. {
  5049. return HAL_ERROR;
  5050. 8001cd4: 2301 movs r3, #1
  5051. 8001cd6: e06d b.n 8001db4 <HAL_RCC_ClockConfig+0x1e8>
  5052. }
  5053. }
  5054. MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource);
  5055. 8001cd8: 4b3a ldr r3, [pc, #232] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  5056. 8001cda: 689b ldr r3, [r3, #8]
  5057. 8001cdc: 2207 movs r2, #7
  5058. 8001cde: 4393 bics r3, r2
  5059. 8001ce0: 0019 movs r1, r3
  5060. 8001ce2: 687b ldr r3, [r7, #4]
  5061. 8001ce4: 685a ldr r2, [r3, #4]
  5062. 8001ce6: 4b37 ldr r3, [pc, #220] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  5063. 8001ce8: 430a orrs r2, r1
  5064. 8001cea: 609a str r2, [r3, #8]
  5065. /* Get Start Tick*/
  5066. tickstart = HAL_GetTick();
  5067. 8001cec: f7fe ffa4 bl 8000c38 <HAL_GetTick>
  5068. 8001cf0: 0003 movs r3, r0
  5069. 8001cf2: 60fb str r3, [r7, #12]
  5070. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  5071. 8001cf4: e009 b.n 8001d0a <HAL_RCC_ClockConfig+0x13e>
  5072. {
  5073. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  5074. 8001cf6: f7fe ff9f bl 8000c38 <HAL_GetTick>
  5075. 8001cfa: 0002 movs r2, r0
  5076. 8001cfc: 68fb ldr r3, [r7, #12]
  5077. 8001cfe: 1ad3 subs r3, r2, r3
  5078. 8001d00: 4a2f ldr r2, [pc, #188] @ (8001dc0 <HAL_RCC_ClockConfig+0x1f4>)
  5079. 8001d02: 4293 cmp r3, r2
  5080. 8001d04: d901 bls.n 8001d0a <HAL_RCC_ClockConfig+0x13e>
  5081. {
  5082. return HAL_TIMEOUT;
  5083. 8001d06: 2303 movs r3, #3
  5084. 8001d08: e054 b.n 8001db4 <HAL_RCC_ClockConfig+0x1e8>
  5085. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  5086. 8001d0a: 4b2e ldr r3, [pc, #184] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  5087. 8001d0c: 689b ldr r3, [r3, #8]
  5088. 8001d0e: 2238 movs r2, #56 @ 0x38
  5089. 8001d10: 401a ands r2, r3
  5090. 8001d12: 687b ldr r3, [r7, #4]
  5091. 8001d14: 685b ldr r3, [r3, #4]
  5092. 8001d16: 00db lsls r3, r3, #3
  5093. 8001d18: 429a cmp r2, r3
  5094. 8001d1a: d1ec bne.n 8001cf6 <HAL_RCC_ClockConfig+0x12a>
  5095. }
  5096. }
  5097. }
  5098. /* Decreasing the number of wait states because of lower CPU frequency */
  5099. if (FLatency < __HAL_FLASH_GET_LATENCY())
  5100. 8001d1c: 4b27 ldr r3, [pc, #156] @ (8001dbc <HAL_RCC_ClockConfig+0x1f0>)
  5101. 8001d1e: 681b ldr r3, [r3, #0]
  5102. 8001d20: 2207 movs r2, #7
  5103. 8001d22: 4013 ands r3, r2
  5104. 8001d24: 683a ldr r2, [r7, #0]
  5105. 8001d26: 429a cmp r2, r3
  5106. 8001d28: d21e bcs.n 8001d68 <HAL_RCC_ClockConfig+0x19c>
  5107. {
  5108. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  5109. __HAL_FLASH_SET_LATENCY(FLatency);
  5110. 8001d2a: 4b24 ldr r3, [pc, #144] @ (8001dbc <HAL_RCC_ClockConfig+0x1f0>)
  5111. 8001d2c: 681b ldr r3, [r3, #0]
  5112. 8001d2e: 2207 movs r2, #7
  5113. 8001d30: 4393 bics r3, r2
  5114. 8001d32: 0019 movs r1, r3
  5115. 8001d34: 4b21 ldr r3, [pc, #132] @ (8001dbc <HAL_RCC_ClockConfig+0x1f0>)
  5116. 8001d36: 683a ldr r2, [r7, #0]
  5117. 8001d38: 430a orrs r2, r1
  5118. 8001d3a: 601a str r2, [r3, #0]
  5119. /* Check that the new number of wait states is taken into account to access the Flash
  5120. memory by polling the FLASH_ACR register */
  5121. tickstart = HAL_GetTick();
  5122. 8001d3c: f7fe ff7c bl 8000c38 <HAL_GetTick>
  5123. 8001d40: 0003 movs r3, r0
  5124. 8001d42: 60fb str r3, [r7, #12]
  5125. while ((FLASH->ACR & FLASH_ACR_LATENCY) != FLatency)
  5126. 8001d44: e009 b.n 8001d5a <HAL_RCC_ClockConfig+0x18e>
  5127. {
  5128. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  5129. 8001d46: f7fe ff77 bl 8000c38 <HAL_GetTick>
  5130. 8001d4a: 0002 movs r2, r0
  5131. 8001d4c: 68fb ldr r3, [r7, #12]
  5132. 8001d4e: 1ad3 subs r3, r2, r3
  5133. 8001d50: 4a1b ldr r2, [pc, #108] @ (8001dc0 <HAL_RCC_ClockConfig+0x1f4>)
  5134. 8001d52: 4293 cmp r3, r2
  5135. 8001d54: d901 bls.n 8001d5a <HAL_RCC_ClockConfig+0x18e>
  5136. {
  5137. return HAL_TIMEOUT;
  5138. 8001d56: 2303 movs r3, #3
  5139. 8001d58: e02c b.n 8001db4 <HAL_RCC_ClockConfig+0x1e8>
  5140. while ((FLASH->ACR & FLASH_ACR_LATENCY) != FLatency)
  5141. 8001d5a: 4b18 ldr r3, [pc, #96] @ (8001dbc <HAL_RCC_ClockConfig+0x1f0>)
  5142. 8001d5c: 681b ldr r3, [r3, #0]
  5143. 8001d5e: 2207 movs r2, #7
  5144. 8001d60: 4013 ands r3, r2
  5145. 8001d62: 683a ldr r2, [r7, #0]
  5146. 8001d64: 429a cmp r2, r3
  5147. 8001d66: d1ee bne.n 8001d46 <HAL_RCC_ClockConfig+0x17a>
  5148. }
  5149. }
  5150. }
  5151. /*-------------------------- PCLK1 Configuration ---------------------------*/
  5152. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  5153. 8001d68: 687b ldr r3, [r7, #4]
  5154. 8001d6a: 681b ldr r3, [r3, #0]
  5155. 8001d6c: 2204 movs r2, #4
  5156. 8001d6e: 4013 ands r3, r2
  5157. 8001d70: d009 beq.n 8001d86 <HAL_RCC_ClockConfig+0x1ba>
  5158. {
  5159. assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider));
  5160. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE, RCC_ClkInitStruct->APB1CLKDivider);
  5161. 8001d72: 4b14 ldr r3, [pc, #80] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  5162. 8001d74: 689b ldr r3, [r3, #8]
  5163. 8001d76: 4a15 ldr r2, [pc, #84] @ (8001dcc <HAL_RCC_ClockConfig+0x200>)
  5164. 8001d78: 4013 ands r3, r2
  5165. 8001d7a: 0019 movs r1, r3
  5166. 8001d7c: 687b ldr r3, [r7, #4]
  5167. 8001d7e: 68da ldr r2, [r3, #12]
  5168. 8001d80: 4b10 ldr r3, [pc, #64] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  5169. 8001d82: 430a orrs r2, r1
  5170. 8001d84: 609a str r2, [r3, #8]
  5171. }
  5172. /* Update the SystemCoreClock global variable */
  5173. SystemCoreClock = (HAL_RCC_GetSysClockFreq() >> ((AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]) & 0x1FU));
  5174. 8001d86: f000 f829 bl 8001ddc <HAL_RCC_GetSysClockFreq>
  5175. 8001d8a: 0001 movs r1, r0
  5176. 8001d8c: 4b0d ldr r3, [pc, #52] @ (8001dc4 <HAL_RCC_ClockConfig+0x1f8>)
  5177. 8001d8e: 689b ldr r3, [r3, #8]
  5178. 8001d90: 0a1b lsrs r3, r3, #8
  5179. 8001d92: 220f movs r2, #15
  5180. 8001d94: 401a ands r2, r3
  5181. 8001d96: 4b0e ldr r3, [pc, #56] @ (8001dd0 <HAL_RCC_ClockConfig+0x204>)
  5182. 8001d98: 0092 lsls r2, r2, #2
  5183. 8001d9a: 58d3 ldr r3, [r2, r3]
  5184. 8001d9c: 221f movs r2, #31
  5185. 8001d9e: 4013 ands r3, r2
  5186. 8001da0: 000a movs r2, r1
  5187. 8001da2: 40da lsrs r2, r3
  5188. 8001da4: 4b0b ldr r3, [pc, #44] @ (8001dd4 <HAL_RCC_ClockConfig+0x208>)
  5189. 8001da6: 601a str r2, [r3, #0]
  5190. /* Configure the source of time base considering new system clocks settings*/
  5191. return HAL_InitTick(uwTickPrio);
  5192. 8001da8: 4b0b ldr r3, [pc, #44] @ (8001dd8 <HAL_RCC_ClockConfig+0x20c>)
  5193. 8001daa: 681b ldr r3, [r3, #0]
  5194. 8001dac: 0018 movs r0, r3
  5195. 8001dae: f7fe fee7 bl 8000b80 <HAL_InitTick>
  5196. 8001db2: 0003 movs r3, r0
  5197. }
  5198. 8001db4: 0018 movs r0, r3
  5199. 8001db6: 46bd mov sp, r7
  5200. 8001db8: b004 add sp, #16
  5201. 8001dba: bd80 pop {r7, pc}
  5202. 8001dbc: 40022000 .word 0x40022000
  5203. 8001dc0: 00001388 .word 0x00001388
  5204. 8001dc4: 40021000 .word 0x40021000
  5205. 8001dc8: fffff0ff .word 0xfffff0ff
  5206. 8001dcc: ffff8fff .word 0xffff8fff
  5207. 8001dd0: 08003098 .word 0x08003098
  5208. 8001dd4: 20000000 .word 0x20000000
  5209. 8001dd8: 20000004 .word 0x20000004
  5210. 08001ddc <HAL_RCC_GetSysClockFreq>:
  5211. *
  5212. *
  5213. * @retval SYSCLK frequency
  5214. */
  5215. uint32_t HAL_RCC_GetSysClockFreq(void)
  5216. {
  5217. 8001ddc: b580 push {r7, lr}
  5218. 8001dde: b086 sub sp, #24
  5219. 8001de0: af00 add r7, sp, #0
  5220. uint32_t pllvco, pllsource, pllr, pllm, hsidiv;
  5221. uint32_t sysclockfreq;
  5222. if (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI)
  5223. 8001de2: 4b3c ldr r3, [pc, #240] @ (8001ed4 <HAL_RCC_GetSysClockFreq+0xf8>)
  5224. 8001de4: 689b ldr r3, [r3, #8]
  5225. 8001de6: 2238 movs r2, #56 @ 0x38
  5226. 8001de8: 4013 ands r3, r2
  5227. 8001dea: d10f bne.n 8001e0c <HAL_RCC_GetSysClockFreq+0x30>
  5228. {
  5229. /* HSISYS can be derived for HSI16 */
  5230. hsidiv = (1UL << ((READ_BIT(RCC->CR, RCC_CR_HSIDIV)) >> RCC_CR_HSIDIV_Pos));
  5231. 8001dec: 4b39 ldr r3, [pc, #228] @ (8001ed4 <HAL_RCC_GetSysClockFreq+0xf8>)
  5232. 8001dee: 681b ldr r3, [r3, #0]
  5233. 8001df0: 0adb lsrs r3, r3, #11
  5234. 8001df2: 2207 movs r2, #7
  5235. 8001df4: 4013 ands r3, r2
  5236. 8001df6: 2201 movs r2, #1
  5237. 8001df8: 409a lsls r2, r3
  5238. 8001dfa: 0013 movs r3, r2
  5239. 8001dfc: 603b str r3, [r7, #0]
  5240. /* HSI used as system clock source */
  5241. sysclockfreq = (HSI_VALUE / hsidiv);
  5242. 8001dfe: 6839 ldr r1, [r7, #0]
  5243. 8001e00: 4835 ldr r0, [pc, #212] @ (8001ed8 <HAL_RCC_GetSysClockFreq+0xfc>)
  5244. 8001e02: f7fe f97d bl 8000100 <__udivsi3>
  5245. 8001e06: 0003 movs r3, r0
  5246. 8001e08: 613b str r3, [r7, #16]
  5247. 8001e0a: e05d b.n 8001ec8 <HAL_RCC_GetSysClockFreq+0xec>
  5248. }
  5249. else if (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE)
  5250. 8001e0c: 4b31 ldr r3, [pc, #196] @ (8001ed4 <HAL_RCC_GetSysClockFreq+0xf8>)
  5251. 8001e0e: 689b ldr r3, [r3, #8]
  5252. 8001e10: 2238 movs r2, #56 @ 0x38
  5253. 8001e12: 4013 ands r3, r2
  5254. 8001e14: 2b08 cmp r3, #8
  5255. 8001e16: d102 bne.n 8001e1e <HAL_RCC_GetSysClockFreq+0x42>
  5256. {
  5257. /* HSE used as system clock source */
  5258. sysclockfreq = HSE_VALUE;
  5259. 8001e18: 4b30 ldr r3, [pc, #192] @ (8001edc <HAL_RCC_GetSysClockFreq+0x100>)
  5260. 8001e1a: 613b str r3, [r7, #16]
  5261. 8001e1c: e054 b.n 8001ec8 <HAL_RCC_GetSysClockFreq+0xec>
  5262. }
  5263. else if (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  5264. 8001e1e: 4b2d ldr r3, [pc, #180] @ (8001ed4 <HAL_RCC_GetSysClockFreq+0xf8>)
  5265. 8001e20: 689b ldr r3, [r3, #8]
  5266. 8001e22: 2238 movs r2, #56 @ 0x38
  5267. 8001e24: 4013 ands r3, r2
  5268. 8001e26: 2b10 cmp r3, #16
  5269. 8001e28: d138 bne.n 8001e9c <HAL_RCC_GetSysClockFreq+0xc0>
  5270. /* PLL used as system clock source */
  5271. /* PLL_VCO = ((HSE_VALUE or HSI_VALUE)/ PLLM) * PLLN
  5272. SYSCLK = PLL_VCO / PLLR
  5273. */
  5274. pllsource = (RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC);
  5275. 8001e2a: 4b2a ldr r3, [pc, #168] @ (8001ed4 <HAL_RCC_GetSysClockFreq+0xf8>)
  5276. 8001e2c: 68db ldr r3, [r3, #12]
  5277. 8001e2e: 2203 movs r2, #3
  5278. 8001e30: 4013 ands r3, r2
  5279. 8001e32: 60fb str r3, [r7, #12]
  5280. pllm = ((RCC->PLLCFGR & RCC_PLLCFGR_PLLM) >> RCC_PLLCFGR_PLLM_Pos) + 1U ;
  5281. 8001e34: 4b27 ldr r3, [pc, #156] @ (8001ed4 <HAL_RCC_GetSysClockFreq+0xf8>)
  5282. 8001e36: 68db ldr r3, [r3, #12]
  5283. 8001e38: 091b lsrs r3, r3, #4
  5284. 8001e3a: 2207 movs r2, #7
  5285. 8001e3c: 4013 ands r3, r2
  5286. 8001e3e: 3301 adds r3, #1
  5287. 8001e40: 60bb str r3, [r7, #8]
  5288. switch (pllsource)
  5289. 8001e42: 68fb ldr r3, [r7, #12]
  5290. 8001e44: 2b03 cmp r3, #3
  5291. 8001e46: d10d bne.n 8001e64 <HAL_RCC_GetSysClockFreq+0x88>
  5292. {
  5293. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  5294. pllvco = (HSE_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos);
  5295. 8001e48: 68b9 ldr r1, [r7, #8]
  5296. 8001e4a: 4824 ldr r0, [pc, #144] @ (8001edc <HAL_RCC_GetSysClockFreq+0x100>)
  5297. 8001e4c: f7fe f958 bl 8000100 <__udivsi3>
  5298. 8001e50: 0003 movs r3, r0
  5299. 8001e52: 0019 movs r1, r3
  5300. 8001e54: 4b1f ldr r3, [pc, #124] @ (8001ed4 <HAL_RCC_GetSysClockFreq+0xf8>)
  5301. 8001e56: 68db ldr r3, [r3, #12]
  5302. 8001e58: 0a1b lsrs r3, r3, #8
  5303. 8001e5a: 227f movs r2, #127 @ 0x7f
  5304. 8001e5c: 4013 ands r3, r2
  5305. 8001e5e: 434b muls r3, r1
  5306. 8001e60: 617b str r3, [r7, #20]
  5307. break;
  5308. 8001e62: e00d b.n 8001e80 <HAL_RCC_GetSysClockFreq+0xa4>
  5309. case RCC_PLLSOURCE_HSI: /* HSI16 used as PLL clock source */
  5310. default: /* HSI16 used as PLL clock source */
  5311. pllvco = (HSI_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos) ;
  5312. 8001e64: 68b9 ldr r1, [r7, #8]
  5313. 8001e66: 481c ldr r0, [pc, #112] @ (8001ed8 <HAL_RCC_GetSysClockFreq+0xfc>)
  5314. 8001e68: f7fe f94a bl 8000100 <__udivsi3>
  5315. 8001e6c: 0003 movs r3, r0
  5316. 8001e6e: 0019 movs r1, r3
  5317. 8001e70: 4b18 ldr r3, [pc, #96] @ (8001ed4 <HAL_RCC_GetSysClockFreq+0xf8>)
  5318. 8001e72: 68db ldr r3, [r3, #12]
  5319. 8001e74: 0a1b lsrs r3, r3, #8
  5320. 8001e76: 227f movs r2, #127 @ 0x7f
  5321. 8001e78: 4013 ands r3, r2
  5322. 8001e7a: 434b muls r3, r1
  5323. 8001e7c: 617b str r3, [r7, #20]
  5324. break;
  5325. 8001e7e: 46c0 nop @ (mov r8, r8)
  5326. }
  5327. pllr = (((RCC->PLLCFGR & RCC_PLLCFGR_PLLR) >> RCC_PLLCFGR_PLLR_Pos) + 1U);
  5328. 8001e80: 4b14 ldr r3, [pc, #80] @ (8001ed4 <HAL_RCC_GetSysClockFreq+0xf8>)
  5329. 8001e82: 68db ldr r3, [r3, #12]
  5330. 8001e84: 0f5b lsrs r3, r3, #29
  5331. 8001e86: 2207 movs r2, #7
  5332. 8001e88: 4013 ands r3, r2
  5333. 8001e8a: 3301 adds r3, #1
  5334. 8001e8c: 607b str r3, [r7, #4]
  5335. sysclockfreq = pllvco / pllr;
  5336. 8001e8e: 6879 ldr r1, [r7, #4]
  5337. 8001e90: 6978 ldr r0, [r7, #20]
  5338. 8001e92: f7fe f935 bl 8000100 <__udivsi3>
  5339. 8001e96: 0003 movs r3, r0
  5340. 8001e98: 613b str r3, [r7, #16]
  5341. 8001e9a: e015 b.n 8001ec8 <HAL_RCC_GetSysClockFreq+0xec>
  5342. }
  5343. else if (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_LSE)
  5344. 8001e9c: 4b0d ldr r3, [pc, #52] @ (8001ed4 <HAL_RCC_GetSysClockFreq+0xf8>)
  5345. 8001e9e: 689b ldr r3, [r3, #8]
  5346. 8001ea0: 2238 movs r2, #56 @ 0x38
  5347. 8001ea2: 4013 ands r3, r2
  5348. 8001ea4: 2b20 cmp r3, #32
  5349. 8001ea6: d103 bne.n 8001eb0 <HAL_RCC_GetSysClockFreq+0xd4>
  5350. {
  5351. /* LSE used as system clock source */
  5352. sysclockfreq = LSE_VALUE;
  5353. 8001ea8: 2380 movs r3, #128 @ 0x80
  5354. 8001eaa: 021b lsls r3, r3, #8
  5355. 8001eac: 613b str r3, [r7, #16]
  5356. 8001eae: e00b b.n 8001ec8 <HAL_RCC_GetSysClockFreq+0xec>
  5357. }
  5358. else if (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_LSI)
  5359. 8001eb0: 4b08 ldr r3, [pc, #32] @ (8001ed4 <HAL_RCC_GetSysClockFreq+0xf8>)
  5360. 8001eb2: 689b ldr r3, [r3, #8]
  5361. 8001eb4: 2238 movs r2, #56 @ 0x38
  5362. 8001eb6: 4013 ands r3, r2
  5363. 8001eb8: 2b18 cmp r3, #24
  5364. 8001eba: d103 bne.n 8001ec4 <HAL_RCC_GetSysClockFreq+0xe8>
  5365. {
  5366. /* LSI used as system clock source */
  5367. sysclockfreq = LSI_VALUE;
  5368. 8001ebc: 23fa movs r3, #250 @ 0xfa
  5369. 8001ebe: 01db lsls r3, r3, #7
  5370. 8001ec0: 613b str r3, [r7, #16]
  5371. 8001ec2: e001 b.n 8001ec8 <HAL_RCC_GetSysClockFreq+0xec>
  5372. }
  5373. else
  5374. {
  5375. sysclockfreq = 0U;
  5376. 8001ec4: 2300 movs r3, #0
  5377. 8001ec6: 613b str r3, [r7, #16]
  5378. }
  5379. return sysclockfreq;
  5380. 8001ec8: 693b ldr r3, [r7, #16]
  5381. }
  5382. 8001eca: 0018 movs r0, r3
  5383. 8001ecc: 46bd mov sp, r7
  5384. 8001ece: b006 add sp, #24
  5385. 8001ed0: bd80 pop {r7, pc}
  5386. 8001ed2: 46c0 nop @ (mov r8, r8)
  5387. 8001ed4: 40021000 .word 0x40021000
  5388. 8001ed8: 00f42400 .word 0x00f42400
  5389. 8001edc: 007a1200 .word 0x007a1200
  5390. 08001ee0 <HAL_TIM_Base_Init>:
  5391. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  5392. * @param htim TIM Base handle
  5393. * @retval HAL status
  5394. */
  5395. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  5396. {
  5397. 8001ee0: b580 push {r7, lr}
  5398. 8001ee2: b082 sub sp, #8
  5399. 8001ee4: af00 add r7, sp, #0
  5400. 8001ee6: 6078 str r0, [r7, #4]
  5401. /* Check the TIM handle allocation */
  5402. if (htim == NULL)
  5403. 8001ee8: 687b ldr r3, [r7, #4]
  5404. 8001eea: 2b00 cmp r3, #0
  5405. 8001eec: d101 bne.n 8001ef2 <HAL_TIM_Base_Init+0x12>
  5406. {
  5407. return HAL_ERROR;
  5408. 8001eee: 2301 movs r3, #1
  5409. 8001ef0: e04a b.n 8001f88 <HAL_TIM_Base_Init+0xa8>
  5410. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  5411. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  5412. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  5413. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  5414. if (htim->State == HAL_TIM_STATE_RESET)
  5415. 8001ef2: 687b ldr r3, [r7, #4]
  5416. 8001ef4: 223d movs r2, #61 @ 0x3d
  5417. 8001ef6: 5c9b ldrb r3, [r3, r2]
  5418. 8001ef8: b2db uxtb r3, r3
  5419. 8001efa: 2b00 cmp r3, #0
  5420. 8001efc: d107 bne.n 8001f0e <HAL_TIM_Base_Init+0x2e>
  5421. {
  5422. /* Allocate lock resource and initialize it */
  5423. htim->Lock = HAL_UNLOCKED;
  5424. 8001efe: 687b ldr r3, [r7, #4]
  5425. 8001f00: 223c movs r2, #60 @ 0x3c
  5426. 8001f02: 2100 movs r1, #0
  5427. 8001f04: 5499 strb r1, [r3, r2]
  5428. }
  5429. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  5430. htim->Base_MspInitCallback(htim);
  5431. #else
  5432. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  5433. HAL_TIM_Base_MspInit(htim);
  5434. 8001f06: 687b ldr r3, [r7, #4]
  5435. 8001f08: 0018 movs r0, r3
  5436. 8001f0a: f7fe fcf7 bl 80008fc <HAL_TIM_Base_MspInit>
  5437. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  5438. }
  5439. /* Set the TIM state */
  5440. htim->State = HAL_TIM_STATE_BUSY;
  5441. 8001f0e: 687b ldr r3, [r7, #4]
  5442. 8001f10: 223d movs r2, #61 @ 0x3d
  5443. 8001f12: 2102 movs r1, #2
  5444. 8001f14: 5499 strb r1, [r3, r2]
  5445. /* Set the Time Base configuration */
  5446. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  5447. 8001f16: 687b ldr r3, [r7, #4]
  5448. 8001f18: 681a ldr r2, [r3, #0]
  5449. 8001f1a: 687b ldr r3, [r7, #4]
  5450. 8001f1c: 3304 adds r3, #4
  5451. 8001f1e: 0019 movs r1, r3
  5452. 8001f20: 0010 movs r0, r2
  5453. 8001f22: f000 fdcb bl 8002abc <TIM_Base_SetConfig>
  5454. /* Initialize the DMA burst operation state */
  5455. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  5456. 8001f26: 687b ldr r3, [r7, #4]
  5457. 8001f28: 2248 movs r2, #72 @ 0x48
  5458. 8001f2a: 2101 movs r1, #1
  5459. 8001f2c: 5499 strb r1, [r3, r2]
  5460. /* Initialize the TIM channels state */
  5461. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  5462. 8001f2e: 687b ldr r3, [r7, #4]
  5463. 8001f30: 223e movs r2, #62 @ 0x3e
  5464. 8001f32: 2101 movs r1, #1
  5465. 8001f34: 5499 strb r1, [r3, r2]
  5466. 8001f36: 687b ldr r3, [r7, #4]
  5467. 8001f38: 223f movs r2, #63 @ 0x3f
  5468. 8001f3a: 2101 movs r1, #1
  5469. 8001f3c: 5499 strb r1, [r3, r2]
  5470. 8001f3e: 687b ldr r3, [r7, #4]
  5471. 8001f40: 2240 movs r2, #64 @ 0x40
  5472. 8001f42: 2101 movs r1, #1
  5473. 8001f44: 5499 strb r1, [r3, r2]
  5474. 8001f46: 687b ldr r3, [r7, #4]
  5475. 8001f48: 2241 movs r2, #65 @ 0x41
  5476. 8001f4a: 2101 movs r1, #1
  5477. 8001f4c: 5499 strb r1, [r3, r2]
  5478. 8001f4e: 687b ldr r3, [r7, #4]
  5479. 8001f50: 2242 movs r2, #66 @ 0x42
  5480. 8001f52: 2101 movs r1, #1
  5481. 8001f54: 5499 strb r1, [r3, r2]
  5482. 8001f56: 687b ldr r3, [r7, #4]
  5483. 8001f58: 2243 movs r2, #67 @ 0x43
  5484. 8001f5a: 2101 movs r1, #1
  5485. 8001f5c: 5499 strb r1, [r3, r2]
  5486. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  5487. 8001f5e: 687b ldr r3, [r7, #4]
  5488. 8001f60: 2244 movs r2, #68 @ 0x44
  5489. 8001f62: 2101 movs r1, #1
  5490. 8001f64: 5499 strb r1, [r3, r2]
  5491. 8001f66: 687b ldr r3, [r7, #4]
  5492. 8001f68: 2245 movs r2, #69 @ 0x45
  5493. 8001f6a: 2101 movs r1, #1
  5494. 8001f6c: 5499 strb r1, [r3, r2]
  5495. 8001f6e: 687b ldr r3, [r7, #4]
  5496. 8001f70: 2246 movs r2, #70 @ 0x46
  5497. 8001f72: 2101 movs r1, #1
  5498. 8001f74: 5499 strb r1, [r3, r2]
  5499. 8001f76: 687b ldr r3, [r7, #4]
  5500. 8001f78: 2247 movs r2, #71 @ 0x47
  5501. 8001f7a: 2101 movs r1, #1
  5502. 8001f7c: 5499 strb r1, [r3, r2]
  5503. /* Initialize the TIM state*/
  5504. htim->State = HAL_TIM_STATE_READY;
  5505. 8001f7e: 687b ldr r3, [r7, #4]
  5506. 8001f80: 223d movs r2, #61 @ 0x3d
  5507. 8001f82: 2101 movs r1, #1
  5508. 8001f84: 5499 strb r1, [r3, r2]
  5509. return HAL_OK;
  5510. 8001f86: 2300 movs r3, #0
  5511. }
  5512. 8001f88: 0018 movs r0, r3
  5513. 8001f8a: 46bd mov sp, r7
  5514. 8001f8c: b002 add sp, #8
  5515. 8001f8e: bd80 pop {r7, pc}
  5516. 08001f90 <HAL_TIM_IC_Init>:
  5517. * Ex: call @ref HAL_TIM_IC_DeInit() before HAL_TIM_IC_Init()
  5518. * @param htim TIM Input Capture handle
  5519. * @retval HAL status
  5520. */
  5521. HAL_StatusTypeDef HAL_TIM_IC_Init(TIM_HandleTypeDef *htim)
  5522. {
  5523. 8001f90: b580 push {r7, lr}
  5524. 8001f92: b082 sub sp, #8
  5525. 8001f94: af00 add r7, sp, #0
  5526. 8001f96: 6078 str r0, [r7, #4]
  5527. /* Check the TIM handle allocation */
  5528. if (htim == NULL)
  5529. 8001f98: 687b ldr r3, [r7, #4]
  5530. 8001f9a: 2b00 cmp r3, #0
  5531. 8001f9c: d101 bne.n 8001fa2 <HAL_TIM_IC_Init+0x12>
  5532. {
  5533. return HAL_ERROR;
  5534. 8001f9e: 2301 movs r3, #1
  5535. 8001fa0: e04a b.n 8002038 <HAL_TIM_IC_Init+0xa8>
  5536. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  5537. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  5538. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  5539. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  5540. if (htim->State == HAL_TIM_STATE_RESET)
  5541. 8001fa2: 687b ldr r3, [r7, #4]
  5542. 8001fa4: 223d movs r2, #61 @ 0x3d
  5543. 8001fa6: 5c9b ldrb r3, [r3, r2]
  5544. 8001fa8: b2db uxtb r3, r3
  5545. 8001faa: 2b00 cmp r3, #0
  5546. 8001fac: d107 bne.n 8001fbe <HAL_TIM_IC_Init+0x2e>
  5547. {
  5548. /* Allocate lock resource and initialize it */
  5549. htim->Lock = HAL_UNLOCKED;
  5550. 8001fae: 687b ldr r3, [r7, #4]
  5551. 8001fb0: 223c movs r2, #60 @ 0x3c
  5552. 8001fb2: 2100 movs r1, #0
  5553. 8001fb4: 5499 strb r1, [r3, r2]
  5554. }
  5555. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  5556. htim->IC_MspInitCallback(htim);
  5557. #else
  5558. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  5559. HAL_TIM_IC_MspInit(htim);
  5560. 8001fb6: 687b ldr r3, [r7, #4]
  5561. 8001fb8: 0018 movs r0, r3
  5562. 8001fba: f000 f841 bl 8002040 <HAL_TIM_IC_MspInit>
  5563. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  5564. }
  5565. /* Set the TIM state */
  5566. htim->State = HAL_TIM_STATE_BUSY;
  5567. 8001fbe: 687b ldr r3, [r7, #4]
  5568. 8001fc0: 223d movs r2, #61 @ 0x3d
  5569. 8001fc2: 2102 movs r1, #2
  5570. 8001fc4: 5499 strb r1, [r3, r2]
  5571. /* Init the base time for the input capture */
  5572. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  5573. 8001fc6: 687b ldr r3, [r7, #4]
  5574. 8001fc8: 681a ldr r2, [r3, #0]
  5575. 8001fca: 687b ldr r3, [r7, #4]
  5576. 8001fcc: 3304 adds r3, #4
  5577. 8001fce: 0019 movs r1, r3
  5578. 8001fd0: 0010 movs r0, r2
  5579. 8001fd2: f000 fd73 bl 8002abc <TIM_Base_SetConfig>
  5580. /* Initialize the DMA burst operation state */
  5581. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  5582. 8001fd6: 687b ldr r3, [r7, #4]
  5583. 8001fd8: 2248 movs r2, #72 @ 0x48
  5584. 8001fda: 2101 movs r1, #1
  5585. 8001fdc: 5499 strb r1, [r3, r2]
  5586. /* Initialize the TIM channels state */
  5587. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  5588. 8001fde: 687b ldr r3, [r7, #4]
  5589. 8001fe0: 223e movs r2, #62 @ 0x3e
  5590. 8001fe2: 2101 movs r1, #1
  5591. 8001fe4: 5499 strb r1, [r3, r2]
  5592. 8001fe6: 687b ldr r3, [r7, #4]
  5593. 8001fe8: 223f movs r2, #63 @ 0x3f
  5594. 8001fea: 2101 movs r1, #1
  5595. 8001fec: 5499 strb r1, [r3, r2]
  5596. 8001fee: 687b ldr r3, [r7, #4]
  5597. 8001ff0: 2240 movs r2, #64 @ 0x40
  5598. 8001ff2: 2101 movs r1, #1
  5599. 8001ff4: 5499 strb r1, [r3, r2]
  5600. 8001ff6: 687b ldr r3, [r7, #4]
  5601. 8001ff8: 2241 movs r2, #65 @ 0x41
  5602. 8001ffa: 2101 movs r1, #1
  5603. 8001ffc: 5499 strb r1, [r3, r2]
  5604. 8001ffe: 687b ldr r3, [r7, #4]
  5605. 8002000: 2242 movs r2, #66 @ 0x42
  5606. 8002002: 2101 movs r1, #1
  5607. 8002004: 5499 strb r1, [r3, r2]
  5608. 8002006: 687b ldr r3, [r7, #4]
  5609. 8002008: 2243 movs r2, #67 @ 0x43
  5610. 800200a: 2101 movs r1, #1
  5611. 800200c: 5499 strb r1, [r3, r2]
  5612. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  5613. 800200e: 687b ldr r3, [r7, #4]
  5614. 8002010: 2244 movs r2, #68 @ 0x44
  5615. 8002012: 2101 movs r1, #1
  5616. 8002014: 5499 strb r1, [r3, r2]
  5617. 8002016: 687b ldr r3, [r7, #4]
  5618. 8002018: 2245 movs r2, #69 @ 0x45
  5619. 800201a: 2101 movs r1, #1
  5620. 800201c: 5499 strb r1, [r3, r2]
  5621. 800201e: 687b ldr r3, [r7, #4]
  5622. 8002020: 2246 movs r2, #70 @ 0x46
  5623. 8002022: 2101 movs r1, #1
  5624. 8002024: 5499 strb r1, [r3, r2]
  5625. 8002026: 687b ldr r3, [r7, #4]
  5626. 8002028: 2247 movs r2, #71 @ 0x47
  5627. 800202a: 2101 movs r1, #1
  5628. 800202c: 5499 strb r1, [r3, r2]
  5629. /* Initialize the TIM state*/
  5630. htim->State = HAL_TIM_STATE_READY;
  5631. 800202e: 687b ldr r3, [r7, #4]
  5632. 8002030: 223d movs r2, #61 @ 0x3d
  5633. 8002032: 2101 movs r1, #1
  5634. 8002034: 5499 strb r1, [r3, r2]
  5635. return HAL_OK;
  5636. 8002036: 2300 movs r3, #0
  5637. }
  5638. 8002038: 0018 movs r0, r3
  5639. 800203a: 46bd mov sp, r7
  5640. 800203c: b002 add sp, #8
  5641. 800203e: bd80 pop {r7, pc}
  5642. 08002040 <HAL_TIM_IC_MspInit>:
  5643. * @brief Initializes the TIM Input Capture MSP.
  5644. * @param htim TIM Input Capture handle
  5645. * @retval None
  5646. */
  5647. __weak void HAL_TIM_IC_MspInit(TIM_HandleTypeDef *htim)
  5648. {
  5649. 8002040: b580 push {r7, lr}
  5650. 8002042: b082 sub sp, #8
  5651. 8002044: af00 add r7, sp, #0
  5652. 8002046: 6078 str r0, [r7, #4]
  5653. UNUSED(htim);
  5654. /* NOTE : This function should not be modified, when the callback is needed,
  5655. the HAL_TIM_IC_MspInit could be implemented in the user file
  5656. */
  5657. }
  5658. 8002048: 46c0 nop @ (mov r8, r8)
  5659. 800204a: 46bd mov sp, r7
  5660. 800204c: b002 add sp, #8
  5661. 800204e: bd80 pop {r7, pc}
  5662. 08002050 <HAL_TIM_IC_Start_DMA>:
  5663. * @param pData The destination Buffer address.
  5664. * @param Length The length of data to be transferred from TIM peripheral to memory.
  5665. * @retval HAL status
  5666. */
  5667. HAL_StatusTypeDef HAL_TIM_IC_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, uint32_t *pData, uint16_t Length)
  5668. {
  5669. 8002050: b580 push {r7, lr}
  5670. 8002052: b086 sub sp, #24
  5671. 8002054: af00 add r7, sp, #0
  5672. 8002056: 60f8 str r0, [r7, #12]
  5673. 8002058: 60b9 str r1, [r7, #8]
  5674. 800205a: 607a str r2, [r7, #4]
  5675. 800205c: 001a movs r2, r3
  5676. 800205e: 1cbb adds r3, r7, #2
  5677. 8002060: 801a strh r2, [r3, #0]
  5678. HAL_StatusTypeDef status = HAL_OK;
  5679. 8002062: 2317 movs r3, #23
  5680. 8002064: 18fb adds r3, r7, r3
  5681. 8002066: 2200 movs r2, #0
  5682. 8002068: 701a strb r2, [r3, #0]
  5683. uint32_t tmpsmcr;
  5684. HAL_TIM_ChannelStateTypeDef channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  5685. 800206a: 68bb ldr r3, [r7, #8]
  5686. 800206c: 2b00 cmp r3, #0
  5687. 800206e: d104 bne.n 800207a <HAL_TIM_IC_Start_DMA+0x2a>
  5688. 8002070: 68fb ldr r3, [r7, #12]
  5689. 8002072: 223e movs r2, #62 @ 0x3e
  5690. 8002074: 5c9b ldrb r3, [r3, r2]
  5691. 8002076: b2db uxtb r3, r3
  5692. 8002078: e023 b.n 80020c2 <HAL_TIM_IC_Start_DMA+0x72>
  5693. 800207a: 68bb ldr r3, [r7, #8]
  5694. 800207c: 2b04 cmp r3, #4
  5695. 800207e: d104 bne.n 800208a <HAL_TIM_IC_Start_DMA+0x3a>
  5696. 8002080: 68fb ldr r3, [r7, #12]
  5697. 8002082: 223f movs r2, #63 @ 0x3f
  5698. 8002084: 5c9b ldrb r3, [r3, r2]
  5699. 8002086: b2db uxtb r3, r3
  5700. 8002088: e01b b.n 80020c2 <HAL_TIM_IC_Start_DMA+0x72>
  5701. 800208a: 68bb ldr r3, [r7, #8]
  5702. 800208c: 2b08 cmp r3, #8
  5703. 800208e: d104 bne.n 800209a <HAL_TIM_IC_Start_DMA+0x4a>
  5704. 8002090: 68fb ldr r3, [r7, #12]
  5705. 8002092: 2240 movs r2, #64 @ 0x40
  5706. 8002094: 5c9b ldrb r3, [r3, r2]
  5707. 8002096: b2db uxtb r3, r3
  5708. 8002098: e013 b.n 80020c2 <HAL_TIM_IC_Start_DMA+0x72>
  5709. 800209a: 68bb ldr r3, [r7, #8]
  5710. 800209c: 2b0c cmp r3, #12
  5711. 800209e: d104 bne.n 80020aa <HAL_TIM_IC_Start_DMA+0x5a>
  5712. 80020a0: 68fb ldr r3, [r7, #12]
  5713. 80020a2: 2241 movs r2, #65 @ 0x41
  5714. 80020a4: 5c9b ldrb r3, [r3, r2]
  5715. 80020a6: b2db uxtb r3, r3
  5716. 80020a8: e00b b.n 80020c2 <HAL_TIM_IC_Start_DMA+0x72>
  5717. 80020aa: 68bb ldr r3, [r7, #8]
  5718. 80020ac: 2b10 cmp r3, #16
  5719. 80020ae: d104 bne.n 80020ba <HAL_TIM_IC_Start_DMA+0x6a>
  5720. 80020b0: 68fb ldr r3, [r7, #12]
  5721. 80020b2: 2242 movs r2, #66 @ 0x42
  5722. 80020b4: 5c9b ldrb r3, [r3, r2]
  5723. 80020b6: b2db uxtb r3, r3
  5724. 80020b8: e003 b.n 80020c2 <HAL_TIM_IC_Start_DMA+0x72>
  5725. 80020ba: 68fb ldr r3, [r7, #12]
  5726. 80020bc: 2243 movs r2, #67 @ 0x43
  5727. 80020be: 5c9b ldrb r3, [r3, r2]
  5728. 80020c0: b2db uxtb r3, r3
  5729. 80020c2: 2216 movs r2, #22
  5730. 80020c4: 18ba adds r2, r7, r2
  5731. 80020c6: 7013 strb r3, [r2, #0]
  5732. HAL_TIM_ChannelStateTypeDef complementary_channel_state = TIM_CHANNEL_N_STATE_GET(htim, Channel);
  5733. 80020c8: 68bb ldr r3, [r7, #8]
  5734. 80020ca: 2b00 cmp r3, #0
  5735. 80020cc: d104 bne.n 80020d8 <HAL_TIM_IC_Start_DMA+0x88>
  5736. 80020ce: 68fb ldr r3, [r7, #12]
  5737. 80020d0: 2244 movs r2, #68 @ 0x44
  5738. 80020d2: 5c9b ldrb r3, [r3, r2]
  5739. 80020d4: b2db uxtb r3, r3
  5740. 80020d6: e013 b.n 8002100 <HAL_TIM_IC_Start_DMA+0xb0>
  5741. 80020d8: 68bb ldr r3, [r7, #8]
  5742. 80020da: 2b04 cmp r3, #4
  5743. 80020dc: d104 bne.n 80020e8 <HAL_TIM_IC_Start_DMA+0x98>
  5744. 80020de: 68fb ldr r3, [r7, #12]
  5745. 80020e0: 2245 movs r2, #69 @ 0x45
  5746. 80020e2: 5c9b ldrb r3, [r3, r2]
  5747. 80020e4: b2db uxtb r3, r3
  5748. 80020e6: e00b b.n 8002100 <HAL_TIM_IC_Start_DMA+0xb0>
  5749. 80020e8: 68bb ldr r3, [r7, #8]
  5750. 80020ea: 2b08 cmp r3, #8
  5751. 80020ec: d104 bne.n 80020f8 <HAL_TIM_IC_Start_DMA+0xa8>
  5752. 80020ee: 68fb ldr r3, [r7, #12]
  5753. 80020f0: 2246 movs r2, #70 @ 0x46
  5754. 80020f2: 5c9b ldrb r3, [r3, r2]
  5755. 80020f4: b2db uxtb r3, r3
  5756. 80020f6: e003 b.n 8002100 <HAL_TIM_IC_Start_DMA+0xb0>
  5757. 80020f8: 68fb ldr r3, [r7, #12]
  5758. 80020fa: 2247 movs r2, #71 @ 0x47
  5759. 80020fc: 5c9b ldrb r3, [r3, r2]
  5760. 80020fe: b2db uxtb r3, r3
  5761. 8002100: 2115 movs r1, #21
  5762. 8002102: 187a adds r2, r7, r1
  5763. 8002104: 7013 strb r3, [r2, #0]
  5764. /* Check the parameters */
  5765. assert_param(IS_TIM_CCX_CHANNEL(htim->Instance, Channel));
  5766. assert_param(IS_TIM_DMA_CC_INSTANCE(htim->Instance));
  5767. /* Set the TIM channel state */
  5768. if ((channel_state == HAL_TIM_CHANNEL_STATE_BUSY)
  5769. 8002106: 2316 movs r3, #22
  5770. 8002108: 18fb adds r3, r7, r3
  5771. 800210a: 781b ldrb r3, [r3, #0]
  5772. 800210c: 2b02 cmp r3, #2
  5773. 800210e: d003 beq.n 8002118 <HAL_TIM_IC_Start_DMA+0xc8>
  5774. || (complementary_channel_state == HAL_TIM_CHANNEL_STATE_BUSY))
  5775. 8002110: 187b adds r3, r7, r1
  5776. 8002112: 781b ldrb r3, [r3, #0]
  5777. 8002114: 2b02 cmp r3, #2
  5778. 8002116: d101 bne.n 800211c <HAL_TIM_IC_Start_DMA+0xcc>
  5779. {
  5780. return HAL_BUSY;
  5781. 8002118: 2302 movs r3, #2
  5782. 800211a: e141 b.n 80023a0 <HAL_TIM_IC_Start_DMA+0x350>
  5783. }
  5784. else if ((channel_state == HAL_TIM_CHANNEL_STATE_READY)
  5785. 800211c: 2316 movs r3, #22
  5786. 800211e: 18fb adds r3, r7, r3
  5787. 8002120: 781b ldrb r3, [r3, #0]
  5788. 8002122: 2b01 cmp r3, #1
  5789. 8002124: d156 bne.n 80021d4 <HAL_TIM_IC_Start_DMA+0x184>
  5790. && (complementary_channel_state == HAL_TIM_CHANNEL_STATE_READY))
  5791. 8002126: 2315 movs r3, #21
  5792. 8002128: 18fb adds r3, r7, r3
  5793. 800212a: 781b ldrb r3, [r3, #0]
  5794. 800212c: 2b01 cmp r3, #1
  5795. 800212e: d151 bne.n 80021d4 <HAL_TIM_IC_Start_DMA+0x184>
  5796. {
  5797. if ((pData == NULL) || (Length == 0U))
  5798. 8002130: 687b ldr r3, [r7, #4]
  5799. 8002132: 2b00 cmp r3, #0
  5800. 8002134: d003 beq.n 800213e <HAL_TIM_IC_Start_DMA+0xee>
  5801. 8002136: 1cbb adds r3, r7, #2
  5802. 8002138: 881b ldrh r3, [r3, #0]
  5803. 800213a: 2b00 cmp r3, #0
  5804. 800213c: d101 bne.n 8002142 <HAL_TIM_IC_Start_DMA+0xf2>
  5805. {
  5806. return HAL_ERROR;
  5807. 800213e: 2301 movs r3, #1
  5808. 8002140: e12e b.n 80023a0 <HAL_TIM_IC_Start_DMA+0x350>
  5809. }
  5810. else
  5811. {
  5812. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  5813. 8002142: 68bb ldr r3, [r7, #8]
  5814. 8002144: 2b00 cmp r3, #0
  5815. 8002146: d104 bne.n 8002152 <HAL_TIM_IC_Start_DMA+0x102>
  5816. 8002148: 68fb ldr r3, [r7, #12]
  5817. 800214a: 223e movs r2, #62 @ 0x3e
  5818. 800214c: 2102 movs r1, #2
  5819. 800214e: 5499 strb r1, [r3, r2]
  5820. 8002150: e023 b.n 800219a <HAL_TIM_IC_Start_DMA+0x14a>
  5821. 8002152: 68bb ldr r3, [r7, #8]
  5822. 8002154: 2b04 cmp r3, #4
  5823. 8002156: d104 bne.n 8002162 <HAL_TIM_IC_Start_DMA+0x112>
  5824. 8002158: 68fb ldr r3, [r7, #12]
  5825. 800215a: 223f movs r2, #63 @ 0x3f
  5826. 800215c: 2102 movs r1, #2
  5827. 800215e: 5499 strb r1, [r3, r2]
  5828. 8002160: e01b b.n 800219a <HAL_TIM_IC_Start_DMA+0x14a>
  5829. 8002162: 68bb ldr r3, [r7, #8]
  5830. 8002164: 2b08 cmp r3, #8
  5831. 8002166: d104 bne.n 8002172 <HAL_TIM_IC_Start_DMA+0x122>
  5832. 8002168: 68fb ldr r3, [r7, #12]
  5833. 800216a: 2240 movs r2, #64 @ 0x40
  5834. 800216c: 2102 movs r1, #2
  5835. 800216e: 5499 strb r1, [r3, r2]
  5836. 8002170: e013 b.n 800219a <HAL_TIM_IC_Start_DMA+0x14a>
  5837. 8002172: 68bb ldr r3, [r7, #8]
  5838. 8002174: 2b0c cmp r3, #12
  5839. 8002176: d104 bne.n 8002182 <HAL_TIM_IC_Start_DMA+0x132>
  5840. 8002178: 68fb ldr r3, [r7, #12]
  5841. 800217a: 2241 movs r2, #65 @ 0x41
  5842. 800217c: 2102 movs r1, #2
  5843. 800217e: 5499 strb r1, [r3, r2]
  5844. 8002180: e00b b.n 800219a <HAL_TIM_IC_Start_DMA+0x14a>
  5845. 8002182: 68bb ldr r3, [r7, #8]
  5846. 8002184: 2b10 cmp r3, #16
  5847. 8002186: d104 bne.n 8002192 <HAL_TIM_IC_Start_DMA+0x142>
  5848. 8002188: 68fb ldr r3, [r7, #12]
  5849. 800218a: 2242 movs r2, #66 @ 0x42
  5850. 800218c: 2102 movs r1, #2
  5851. 800218e: 5499 strb r1, [r3, r2]
  5852. 8002190: e003 b.n 800219a <HAL_TIM_IC_Start_DMA+0x14a>
  5853. 8002192: 68fb ldr r3, [r7, #12]
  5854. 8002194: 2243 movs r2, #67 @ 0x43
  5855. 8002196: 2102 movs r1, #2
  5856. 8002198: 5499 strb r1, [r3, r2]
  5857. TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  5858. 800219a: 68bb ldr r3, [r7, #8]
  5859. 800219c: 2b00 cmp r3, #0
  5860. 800219e: d104 bne.n 80021aa <HAL_TIM_IC_Start_DMA+0x15a>
  5861. 80021a0: 68fb ldr r3, [r7, #12]
  5862. 80021a2: 2244 movs r2, #68 @ 0x44
  5863. 80021a4: 2102 movs r1, #2
  5864. 80021a6: 5499 strb r1, [r3, r2]
  5865. if ((pData == NULL) || (Length == 0U))
  5866. 80021a8: e016 b.n 80021d8 <HAL_TIM_IC_Start_DMA+0x188>
  5867. TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  5868. 80021aa: 68bb ldr r3, [r7, #8]
  5869. 80021ac: 2b04 cmp r3, #4
  5870. 80021ae: d104 bne.n 80021ba <HAL_TIM_IC_Start_DMA+0x16a>
  5871. 80021b0: 68fb ldr r3, [r7, #12]
  5872. 80021b2: 2245 movs r2, #69 @ 0x45
  5873. 80021b4: 2102 movs r1, #2
  5874. 80021b6: 5499 strb r1, [r3, r2]
  5875. if ((pData == NULL) || (Length == 0U))
  5876. 80021b8: e00e b.n 80021d8 <HAL_TIM_IC_Start_DMA+0x188>
  5877. TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  5878. 80021ba: 68bb ldr r3, [r7, #8]
  5879. 80021bc: 2b08 cmp r3, #8
  5880. 80021be: d104 bne.n 80021ca <HAL_TIM_IC_Start_DMA+0x17a>
  5881. 80021c0: 68fb ldr r3, [r7, #12]
  5882. 80021c2: 2246 movs r2, #70 @ 0x46
  5883. 80021c4: 2102 movs r1, #2
  5884. 80021c6: 5499 strb r1, [r3, r2]
  5885. if ((pData == NULL) || (Length == 0U))
  5886. 80021c8: e006 b.n 80021d8 <HAL_TIM_IC_Start_DMA+0x188>
  5887. TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  5888. 80021ca: 68fb ldr r3, [r7, #12]
  5889. 80021cc: 2247 movs r2, #71 @ 0x47
  5890. 80021ce: 2102 movs r1, #2
  5891. 80021d0: 5499 strb r1, [r3, r2]
  5892. if ((pData == NULL) || (Length == 0U))
  5893. 80021d2: e001 b.n 80021d8 <HAL_TIM_IC_Start_DMA+0x188>
  5894. }
  5895. }
  5896. else
  5897. {
  5898. return HAL_ERROR;
  5899. 80021d4: 2301 movs r3, #1
  5900. 80021d6: e0e3 b.n 80023a0 <HAL_TIM_IC_Start_DMA+0x350>
  5901. }
  5902. /* Enable the Input Capture channel */
  5903. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  5904. 80021d8: 68fb ldr r3, [r7, #12]
  5905. 80021da: 681b ldr r3, [r3, #0]
  5906. 80021dc: 68b9 ldr r1, [r7, #8]
  5907. 80021de: 2201 movs r2, #1
  5908. 80021e0: 0018 movs r0, r3
  5909. 80021e2: f000 fe9b bl 8002f1c <TIM_CCxChannelCmd>
  5910. switch (Channel)
  5911. 80021e6: 68bb ldr r3, [r7, #8]
  5912. 80021e8: 2b0c cmp r3, #12
  5913. 80021ea: d100 bne.n 80021ee <HAL_TIM_IC_Start_DMA+0x19e>
  5914. 80021ec: e080 b.n 80022f0 <HAL_TIM_IC_Start_DMA+0x2a0>
  5915. 80021ee: 68bb ldr r3, [r7, #8]
  5916. 80021f0: 2b0c cmp r3, #12
  5917. 80021f2: d900 bls.n 80021f6 <HAL_TIM_IC_Start_DMA+0x1a6>
  5918. 80021f4: e0a1 b.n 800233a <HAL_TIM_IC_Start_DMA+0x2ea>
  5919. 80021f6: 68bb ldr r3, [r7, #8]
  5920. 80021f8: 2b08 cmp r3, #8
  5921. 80021fa: d054 beq.n 80022a6 <HAL_TIM_IC_Start_DMA+0x256>
  5922. 80021fc: 68bb ldr r3, [r7, #8]
  5923. 80021fe: 2b08 cmp r3, #8
  5924. 8002200: d900 bls.n 8002204 <HAL_TIM_IC_Start_DMA+0x1b4>
  5925. 8002202: e09a b.n 800233a <HAL_TIM_IC_Start_DMA+0x2ea>
  5926. 8002204: 68bb ldr r3, [r7, #8]
  5927. 8002206: 2b00 cmp r3, #0
  5928. 8002208: d003 beq.n 8002212 <HAL_TIM_IC_Start_DMA+0x1c2>
  5929. 800220a: 68bb ldr r3, [r7, #8]
  5930. 800220c: 2b04 cmp r3, #4
  5931. 800220e: d025 beq.n 800225c <HAL_TIM_IC_Start_DMA+0x20c>
  5932. 8002210: e093 b.n 800233a <HAL_TIM_IC_Start_DMA+0x2ea>
  5933. {
  5934. case TIM_CHANNEL_1:
  5935. {
  5936. /* Set the DMA capture callbacks */
  5937. htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMACaptureCplt;
  5938. 8002212: 68fb ldr r3, [r7, #12]
  5939. 8002214: 6a5b ldr r3, [r3, #36] @ 0x24
  5940. 8002216: 4a64 ldr r2, [pc, #400] @ (80023a8 <HAL_TIM_IC_Start_DMA+0x358>)
  5941. 8002218: 62da str r2, [r3, #44] @ 0x2c
  5942. htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt;
  5943. 800221a: 68fb ldr r3, [r7, #12]
  5944. 800221c: 6a5b ldr r3, [r3, #36] @ 0x24
  5945. 800221e: 4a63 ldr r2, [pc, #396] @ (80023ac <HAL_TIM_IC_Start_DMA+0x35c>)
  5946. 8002220: 631a str r2, [r3, #48] @ 0x30
  5947. /* Set the DMA error callback */
  5948. htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ;
  5949. 8002222: 68fb ldr r3, [r7, #12]
  5950. 8002224: 6a5b ldr r3, [r3, #36] @ 0x24
  5951. 8002226: 4a62 ldr r2, [pc, #392] @ (80023b0 <HAL_TIM_IC_Start_DMA+0x360>)
  5952. 8002228: 635a str r2, [r3, #52] @ 0x34
  5953. /* Enable the DMA channel */
  5954. if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)&htim->Instance->CCR1, (uint32_t)pData,
  5955. 800222a: 68fb ldr r3, [r7, #12]
  5956. 800222c: 6a58 ldr r0, [r3, #36] @ 0x24
  5957. 800222e: 68fb ldr r3, [r7, #12]
  5958. 8002230: 681b ldr r3, [r3, #0]
  5959. 8002232: 3334 adds r3, #52 @ 0x34
  5960. 8002234: 0019 movs r1, r3
  5961. 8002236: 687a ldr r2, [r7, #4]
  5962. 8002238: 1cbb adds r3, r7, #2
  5963. 800223a: 881b ldrh r3, [r3, #0]
  5964. 800223c: f7fe fe92 bl 8000f64 <HAL_DMA_Start_IT>
  5965. 8002240: 1e03 subs r3, r0, #0
  5966. 8002242: d001 beq.n 8002248 <HAL_TIM_IC_Start_DMA+0x1f8>
  5967. Length) != HAL_OK)
  5968. {
  5969. /* Return error status */
  5970. return HAL_ERROR;
  5971. 8002244: 2301 movs r3, #1
  5972. 8002246: e0ab b.n 80023a0 <HAL_TIM_IC_Start_DMA+0x350>
  5973. }
  5974. /* Enable the TIM Capture/Compare 1 DMA request */
  5975. __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1);
  5976. 8002248: 68fb ldr r3, [r7, #12]
  5977. 800224a: 681b ldr r3, [r3, #0]
  5978. 800224c: 68da ldr r2, [r3, #12]
  5979. 800224e: 68fb ldr r3, [r7, #12]
  5980. 8002250: 681b ldr r3, [r3, #0]
  5981. 8002252: 2180 movs r1, #128 @ 0x80
  5982. 8002254: 0089 lsls r1, r1, #2
  5983. 8002256: 430a orrs r2, r1
  5984. 8002258: 60da str r2, [r3, #12]
  5985. break;
  5986. 800225a: e073 b.n 8002344 <HAL_TIM_IC_Start_DMA+0x2f4>
  5987. }
  5988. case TIM_CHANNEL_2:
  5989. {
  5990. /* Set the DMA capture callbacks */
  5991. htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMACaptureCplt;
  5992. 800225c: 68fb ldr r3, [r7, #12]
  5993. 800225e: 6a9b ldr r3, [r3, #40] @ 0x28
  5994. 8002260: 4a51 ldr r2, [pc, #324] @ (80023a8 <HAL_TIM_IC_Start_DMA+0x358>)
  5995. 8002262: 62da str r2, [r3, #44] @ 0x2c
  5996. htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt;
  5997. 8002264: 68fb ldr r3, [r7, #12]
  5998. 8002266: 6a9b ldr r3, [r3, #40] @ 0x28
  5999. 8002268: 4a50 ldr r2, [pc, #320] @ (80023ac <HAL_TIM_IC_Start_DMA+0x35c>)
  6000. 800226a: 631a str r2, [r3, #48] @ 0x30
  6001. /* Set the DMA error callback */
  6002. htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ;
  6003. 800226c: 68fb ldr r3, [r7, #12]
  6004. 800226e: 6a9b ldr r3, [r3, #40] @ 0x28
  6005. 8002270: 4a4f ldr r2, [pc, #316] @ (80023b0 <HAL_TIM_IC_Start_DMA+0x360>)
  6006. 8002272: 635a str r2, [r3, #52] @ 0x34
  6007. /* Enable the DMA channel */
  6008. if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)&htim->Instance->CCR2, (uint32_t)pData,
  6009. 8002274: 68fb ldr r3, [r7, #12]
  6010. 8002276: 6a98 ldr r0, [r3, #40] @ 0x28
  6011. 8002278: 68fb ldr r3, [r7, #12]
  6012. 800227a: 681b ldr r3, [r3, #0]
  6013. 800227c: 3338 adds r3, #56 @ 0x38
  6014. 800227e: 0019 movs r1, r3
  6015. 8002280: 687a ldr r2, [r7, #4]
  6016. 8002282: 1cbb adds r3, r7, #2
  6017. 8002284: 881b ldrh r3, [r3, #0]
  6018. 8002286: f7fe fe6d bl 8000f64 <HAL_DMA_Start_IT>
  6019. 800228a: 1e03 subs r3, r0, #0
  6020. 800228c: d001 beq.n 8002292 <HAL_TIM_IC_Start_DMA+0x242>
  6021. Length) != HAL_OK)
  6022. {
  6023. /* Return error status */
  6024. return HAL_ERROR;
  6025. 800228e: 2301 movs r3, #1
  6026. 8002290: e086 b.n 80023a0 <HAL_TIM_IC_Start_DMA+0x350>
  6027. }
  6028. /* Enable the TIM Capture/Compare 2 DMA request */
  6029. __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2);
  6030. 8002292: 68fb ldr r3, [r7, #12]
  6031. 8002294: 681b ldr r3, [r3, #0]
  6032. 8002296: 68da ldr r2, [r3, #12]
  6033. 8002298: 68fb ldr r3, [r7, #12]
  6034. 800229a: 681b ldr r3, [r3, #0]
  6035. 800229c: 2180 movs r1, #128 @ 0x80
  6036. 800229e: 00c9 lsls r1, r1, #3
  6037. 80022a0: 430a orrs r2, r1
  6038. 80022a2: 60da str r2, [r3, #12]
  6039. break;
  6040. 80022a4: e04e b.n 8002344 <HAL_TIM_IC_Start_DMA+0x2f4>
  6041. }
  6042. case TIM_CHANNEL_3:
  6043. {
  6044. /* Set the DMA capture callbacks */
  6045. htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMACaptureCplt;
  6046. 80022a6: 68fb ldr r3, [r7, #12]
  6047. 80022a8: 6adb ldr r3, [r3, #44] @ 0x2c
  6048. 80022aa: 4a3f ldr r2, [pc, #252] @ (80023a8 <HAL_TIM_IC_Start_DMA+0x358>)
  6049. 80022ac: 62da str r2, [r3, #44] @ 0x2c
  6050. htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt;
  6051. 80022ae: 68fb ldr r3, [r7, #12]
  6052. 80022b0: 6adb ldr r3, [r3, #44] @ 0x2c
  6053. 80022b2: 4a3e ldr r2, [pc, #248] @ (80023ac <HAL_TIM_IC_Start_DMA+0x35c>)
  6054. 80022b4: 631a str r2, [r3, #48] @ 0x30
  6055. /* Set the DMA error callback */
  6056. htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ;
  6057. 80022b6: 68fb ldr r3, [r7, #12]
  6058. 80022b8: 6adb ldr r3, [r3, #44] @ 0x2c
  6059. 80022ba: 4a3d ldr r2, [pc, #244] @ (80023b0 <HAL_TIM_IC_Start_DMA+0x360>)
  6060. 80022bc: 635a str r2, [r3, #52] @ 0x34
  6061. /* Enable the DMA channel */
  6062. if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)&htim->Instance->CCR3, (uint32_t)pData,
  6063. 80022be: 68fb ldr r3, [r7, #12]
  6064. 80022c0: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6065. 80022c2: 68fb ldr r3, [r7, #12]
  6066. 80022c4: 681b ldr r3, [r3, #0]
  6067. 80022c6: 333c adds r3, #60 @ 0x3c
  6068. 80022c8: 0019 movs r1, r3
  6069. 80022ca: 687a ldr r2, [r7, #4]
  6070. 80022cc: 1cbb adds r3, r7, #2
  6071. 80022ce: 881b ldrh r3, [r3, #0]
  6072. 80022d0: f7fe fe48 bl 8000f64 <HAL_DMA_Start_IT>
  6073. 80022d4: 1e03 subs r3, r0, #0
  6074. 80022d6: d001 beq.n 80022dc <HAL_TIM_IC_Start_DMA+0x28c>
  6075. Length) != HAL_OK)
  6076. {
  6077. /* Return error status */
  6078. return HAL_ERROR;
  6079. 80022d8: 2301 movs r3, #1
  6080. 80022da: e061 b.n 80023a0 <HAL_TIM_IC_Start_DMA+0x350>
  6081. }
  6082. /* Enable the TIM Capture/Compare 3 DMA request */
  6083. __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3);
  6084. 80022dc: 68fb ldr r3, [r7, #12]
  6085. 80022de: 681b ldr r3, [r3, #0]
  6086. 80022e0: 68da ldr r2, [r3, #12]
  6087. 80022e2: 68fb ldr r3, [r7, #12]
  6088. 80022e4: 681b ldr r3, [r3, #0]
  6089. 80022e6: 2180 movs r1, #128 @ 0x80
  6090. 80022e8: 0109 lsls r1, r1, #4
  6091. 80022ea: 430a orrs r2, r1
  6092. 80022ec: 60da str r2, [r3, #12]
  6093. break;
  6094. 80022ee: e029 b.n 8002344 <HAL_TIM_IC_Start_DMA+0x2f4>
  6095. }
  6096. case TIM_CHANNEL_4:
  6097. {
  6098. /* Set the DMA capture callbacks */
  6099. htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMACaptureCplt;
  6100. 80022f0: 68fb ldr r3, [r7, #12]
  6101. 80022f2: 6b1b ldr r3, [r3, #48] @ 0x30
  6102. 80022f4: 4a2c ldr r2, [pc, #176] @ (80023a8 <HAL_TIM_IC_Start_DMA+0x358>)
  6103. 80022f6: 62da str r2, [r3, #44] @ 0x2c
  6104. htim->hdma[TIM_DMA_ID_CC4]->XferHalfCpltCallback = TIM_DMACaptureHalfCplt;
  6105. 80022f8: 68fb ldr r3, [r7, #12]
  6106. 80022fa: 6b1b ldr r3, [r3, #48] @ 0x30
  6107. 80022fc: 4a2b ldr r2, [pc, #172] @ (80023ac <HAL_TIM_IC_Start_DMA+0x35c>)
  6108. 80022fe: 631a str r2, [r3, #48] @ 0x30
  6109. /* Set the DMA error callback */
  6110. htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ;
  6111. 8002300: 68fb ldr r3, [r7, #12]
  6112. 8002302: 6b1b ldr r3, [r3, #48] @ 0x30
  6113. 8002304: 4a2a ldr r2, [pc, #168] @ (80023b0 <HAL_TIM_IC_Start_DMA+0x360>)
  6114. 8002306: 635a str r2, [r3, #52] @ 0x34
  6115. /* Enable the DMA channel */
  6116. if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)&htim->Instance->CCR4, (uint32_t)pData,
  6117. 8002308: 68fb ldr r3, [r7, #12]
  6118. 800230a: 6b18 ldr r0, [r3, #48] @ 0x30
  6119. 800230c: 68fb ldr r3, [r7, #12]
  6120. 800230e: 681b ldr r3, [r3, #0]
  6121. 8002310: 3340 adds r3, #64 @ 0x40
  6122. 8002312: 0019 movs r1, r3
  6123. 8002314: 687a ldr r2, [r7, #4]
  6124. 8002316: 1cbb adds r3, r7, #2
  6125. 8002318: 881b ldrh r3, [r3, #0]
  6126. 800231a: f7fe fe23 bl 8000f64 <HAL_DMA_Start_IT>
  6127. 800231e: 1e03 subs r3, r0, #0
  6128. 8002320: d001 beq.n 8002326 <HAL_TIM_IC_Start_DMA+0x2d6>
  6129. Length) != HAL_OK)
  6130. {
  6131. /* Return error status */
  6132. return HAL_ERROR;
  6133. 8002322: 2301 movs r3, #1
  6134. 8002324: e03c b.n 80023a0 <HAL_TIM_IC_Start_DMA+0x350>
  6135. }
  6136. /* Enable the TIM Capture/Compare 4 DMA request */
  6137. __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC4);
  6138. 8002326: 68fb ldr r3, [r7, #12]
  6139. 8002328: 681b ldr r3, [r3, #0]
  6140. 800232a: 68da ldr r2, [r3, #12]
  6141. 800232c: 68fb ldr r3, [r7, #12]
  6142. 800232e: 681b ldr r3, [r3, #0]
  6143. 8002330: 2180 movs r1, #128 @ 0x80
  6144. 8002332: 0149 lsls r1, r1, #5
  6145. 8002334: 430a orrs r2, r1
  6146. 8002336: 60da str r2, [r3, #12]
  6147. break;
  6148. 8002338: e004 b.n 8002344 <HAL_TIM_IC_Start_DMA+0x2f4>
  6149. }
  6150. default:
  6151. status = HAL_ERROR;
  6152. 800233a: 2317 movs r3, #23
  6153. 800233c: 18fb adds r3, r7, r3
  6154. 800233e: 2201 movs r2, #1
  6155. 8002340: 701a strb r2, [r3, #0]
  6156. break;
  6157. 8002342: 46c0 nop @ (mov r8, r8)
  6158. }
  6159. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  6160. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  6161. 8002344: 68fb ldr r3, [r7, #12]
  6162. 8002346: 681b ldr r3, [r3, #0]
  6163. 8002348: 4a1a ldr r2, [pc, #104] @ (80023b4 <HAL_TIM_IC_Start_DMA+0x364>)
  6164. 800234a: 4293 cmp r3, r2
  6165. 800234c: d004 beq.n 8002358 <HAL_TIM_IC_Start_DMA+0x308>
  6166. 800234e: 68fb ldr r3, [r7, #12]
  6167. 8002350: 681b ldr r3, [r3, #0]
  6168. 8002352: 4a19 ldr r2, [pc, #100] @ (80023b8 <HAL_TIM_IC_Start_DMA+0x368>)
  6169. 8002354: 4293 cmp r3, r2
  6170. 8002356: d116 bne.n 8002386 <HAL_TIM_IC_Start_DMA+0x336>
  6171. {
  6172. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  6173. 8002358: 68fb ldr r3, [r7, #12]
  6174. 800235a: 681b ldr r3, [r3, #0]
  6175. 800235c: 689b ldr r3, [r3, #8]
  6176. 800235e: 4a17 ldr r2, [pc, #92] @ (80023bc <HAL_TIM_IC_Start_DMA+0x36c>)
  6177. 8002360: 4013 ands r3, r2
  6178. 8002362: 613b str r3, [r7, #16]
  6179. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  6180. 8002364: 693b ldr r3, [r7, #16]
  6181. 8002366: 2b06 cmp r3, #6
  6182. 8002368: d016 beq.n 8002398 <HAL_TIM_IC_Start_DMA+0x348>
  6183. 800236a: 693a ldr r2, [r7, #16]
  6184. 800236c: 2380 movs r3, #128 @ 0x80
  6185. 800236e: 025b lsls r3, r3, #9
  6186. 8002370: 429a cmp r2, r3
  6187. 8002372: d011 beq.n 8002398 <HAL_TIM_IC_Start_DMA+0x348>
  6188. {
  6189. __HAL_TIM_ENABLE(htim);
  6190. 8002374: 68fb ldr r3, [r7, #12]
  6191. 8002376: 681b ldr r3, [r3, #0]
  6192. 8002378: 681a ldr r2, [r3, #0]
  6193. 800237a: 68fb ldr r3, [r7, #12]
  6194. 800237c: 681b ldr r3, [r3, #0]
  6195. 800237e: 2101 movs r1, #1
  6196. 8002380: 430a orrs r2, r1
  6197. 8002382: 601a str r2, [r3, #0]
  6198. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  6199. 8002384: e008 b.n 8002398 <HAL_TIM_IC_Start_DMA+0x348>
  6200. }
  6201. }
  6202. else
  6203. {
  6204. __HAL_TIM_ENABLE(htim);
  6205. 8002386: 68fb ldr r3, [r7, #12]
  6206. 8002388: 681b ldr r3, [r3, #0]
  6207. 800238a: 681a ldr r2, [r3, #0]
  6208. 800238c: 68fb ldr r3, [r7, #12]
  6209. 800238e: 681b ldr r3, [r3, #0]
  6210. 8002390: 2101 movs r1, #1
  6211. 8002392: 430a orrs r2, r1
  6212. 8002394: 601a str r2, [r3, #0]
  6213. 8002396: e000 b.n 800239a <HAL_TIM_IC_Start_DMA+0x34a>
  6214. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  6215. 8002398: 46c0 nop @ (mov r8, r8)
  6216. }
  6217. /* Return function status */
  6218. return status;
  6219. 800239a: 2317 movs r3, #23
  6220. 800239c: 18fb adds r3, r7, r3
  6221. 800239e: 781b ldrb r3, [r3, #0]
  6222. }
  6223. 80023a0: 0018 movs r0, r3
  6224. 80023a2: 46bd mov sp, r7
  6225. 80023a4: b006 add sp, #24
  6226. 80023a6: bd80 pop {r7, pc}
  6227. 80023a8: 08002989 .word 0x08002989
  6228. 80023ac: 08002a53 .word 0x08002a53
  6229. 80023b0: 080028f5 .word 0x080028f5
  6230. 80023b4: 40012c00 .word 0x40012c00
  6231. 80023b8: 40000400 .word 0x40000400
  6232. 80023bc: 00010007 .word 0x00010007
  6233. 080023c0 <HAL_TIM_IC_Stop_DMA>:
  6234. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  6235. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  6236. * @retval HAL status
  6237. */
  6238. HAL_StatusTypeDef HAL_TIM_IC_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel)
  6239. {
  6240. 80023c0: b580 push {r7, lr}
  6241. 80023c2: b084 sub sp, #16
  6242. 80023c4: af00 add r7, sp, #0
  6243. 80023c6: 6078 str r0, [r7, #4]
  6244. 80023c8: 6039 str r1, [r7, #0]
  6245. HAL_StatusTypeDef status = HAL_OK;
  6246. 80023ca: 230f movs r3, #15
  6247. 80023cc: 18fb adds r3, r7, r3
  6248. 80023ce: 2200 movs r2, #0
  6249. 80023d0: 701a strb r2, [r3, #0]
  6250. /* Check the parameters */
  6251. assert_param(IS_TIM_CCX_CHANNEL(htim->Instance, Channel));
  6252. assert_param(IS_TIM_DMA_CC_INSTANCE(htim->Instance));
  6253. /* Disable the Input Capture channel */
  6254. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE);
  6255. 80023d2: 687b ldr r3, [r7, #4]
  6256. 80023d4: 681b ldr r3, [r3, #0]
  6257. 80023d6: 6839 ldr r1, [r7, #0]
  6258. 80023d8: 2200 movs r2, #0
  6259. 80023da: 0018 movs r0, r3
  6260. 80023dc: f000 fd9e bl 8002f1c <TIM_CCxChannelCmd>
  6261. switch (Channel)
  6262. 80023e0: 683b ldr r3, [r7, #0]
  6263. 80023e2: 2b0c cmp r3, #12
  6264. 80023e4: d039 beq.n 800245a <HAL_TIM_IC_Stop_DMA+0x9a>
  6265. 80023e6: 683b ldr r3, [r7, #0]
  6266. 80023e8: 2b0c cmp r3, #12
  6267. 80023ea: d844 bhi.n 8002476 <HAL_TIM_IC_Stop_DMA+0xb6>
  6268. 80023ec: 683b ldr r3, [r7, #0]
  6269. 80023ee: 2b08 cmp r3, #8
  6270. 80023f0: d025 beq.n 800243e <HAL_TIM_IC_Stop_DMA+0x7e>
  6271. 80023f2: 683b ldr r3, [r7, #0]
  6272. 80023f4: 2b08 cmp r3, #8
  6273. 80023f6: d83e bhi.n 8002476 <HAL_TIM_IC_Stop_DMA+0xb6>
  6274. 80023f8: 683b ldr r3, [r7, #0]
  6275. 80023fa: 2b00 cmp r3, #0
  6276. 80023fc: d003 beq.n 8002406 <HAL_TIM_IC_Stop_DMA+0x46>
  6277. 80023fe: 683b ldr r3, [r7, #0]
  6278. 8002400: 2b04 cmp r3, #4
  6279. 8002402: d00e beq.n 8002422 <HAL_TIM_IC_Stop_DMA+0x62>
  6280. 8002404: e037 b.n 8002476 <HAL_TIM_IC_Stop_DMA+0xb6>
  6281. {
  6282. case TIM_CHANNEL_1:
  6283. {
  6284. /* Disable the TIM Capture/Compare 1 DMA request */
  6285. __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1);
  6286. 8002406: 687b ldr r3, [r7, #4]
  6287. 8002408: 681b ldr r3, [r3, #0]
  6288. 800240a: 68da ldr r2, [r3, #12]
  6289. 800240c: 687b ldr r3, [r7, #4]
  6290. 800240e: 681b ldr r3, [r3, #0]
  6291. 8002410: 494f ldr r1, [pc, #316] @ (8002550 <HAL_TIM_IC_Stop_DMA+0x190>)
  6292. 8002412: 400a ands r2, r1
  6293. 8002414: 60da str r2, [r3, #12]
  6294. (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]);
  6295. 8002416: 687b ldr r3, [r7, #4]
  6296. 8002418: 6a5b ldr r3, [r3, #36] @ 0x24
  6297. 800241a: 0018 movs r0, r3
  6298. 800241c: f7fe fe28 bl 8001070 <HAL_DMA_Abort_IT>
  6299. break;
  6300. 8002420: e02e b.n 8002480 <HAL_TIM_IC_Stop_DMA+0xc0>
  6301. }
  6302. case TIM_CHANNEL_2:
  6303. {
  6304. /* Disable the TIM Capture/Compare 2 DMA request */
  6305. __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2);
  6306. 8002422: 687b ldr r3, [r7, #4]
  6307. 8002424: 681b ldr r3, [r3, #0]
  6308. 8002426: 68da ldr r2, [r3, #12]
  6309. 8002428: 687b ldr r3, [r7, #4]
  6310. 800242a: 681b ldr r3, [r3, #0]
  6311. 800242c: 4949 ldr r1, [pc, #292] @ (8002554 <HAL_TIM_IC_Stop_DMA+0x194>)
  6312. 800242e: 400a ands r2, r1
  6313. 8002430: 60da str r2, [r3, #12]
  6314. (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]);
  6315. 8002432: 687b ldr r3, [r7, #4]
  6316. 8002434: 6a9b ldr r3, [r3, #40] @ 0x28
  6317. 8002436: 0018 movs r0, r3
  6318. 8002438: f7fe fe1a bl 8001070 <HAL_DMA_Abort_IT>
  6319. break;
  6320. 800243c: e020 b.n 8002480 <HAL_TIM_IC_Stop_DMA+0xc0>
  6321. }
  6322. case TIM_CHANNEL_3:
  6323. {
  6324. /* Disable the TIM Capture/Compare 3 DMA request */
  6325. __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3);
  6326. 800243e: 687b ldr r3, [r7, #4]
  6327. 8002440: 681b ldr r3, [r3, #0]
  6328. 8002442: 68da ldr r2, [r3, #12]
  6329. 8002444: 687b ldr r3, [r7, #4]
  6330. 8002446: 681b ldr r3, [r3, #0]
  6331. 8002448: 4943 ldr r1, [pc, #268] @ (8002558 <HAL_TIM_IC_Stop_DMA+0x198>)
  6332. 800244a: 400a ands r2, r1
  6333. 800244c: 60da str r2, [r3, #12]
  6334. (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]);
  6335. 800244e: 687b ldr r3, [r7, #4]
  6336. 8002450: 6adb ldr r3, [r3, #44] @ 0x2c
  6337. 8002452: 0018 movs r0, r3
  6338. 8002454: f7fe fe0c bl 8001070 <HAL_DMA_Abort_IT>
  6339. break;
  6340. 8002458: e012 b.n 8002480 <HAL_TIM_IC_Stop_DMA+0xc0>
  6341. }
  6342. case TIM_CHANNEL_4:
  6343. {
  6344. /* Disable the TIM Capture/Compare 4 DMA request */
  6345. __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC4);
  6346. 800245a: 687b ldr r3, [r7, #4]
  6347. 800245c: 681b ldr r3, [r3, #0]
  6348. 800245e: 68da ldr r2, [r3, #12]
  6349. 8002460: 687b ldr r3, [r7, #4]
  6350. 8002462: 681b ldr r3, [r3, #0]
  6351. 8002464: 493d ldr r1, [pc, #244] @ (800255c <HAL_TIM_IC_Stop_DMA+0x19c>)
  6352. 8002466: 400a ands r2, r1
  6353. 8002468: 60da str r2, [r3, #12]
  6354. (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC4]);
  6355. 800246a: 687b ldr r3, [r7, #4]
  6356. 800246c: 6b1b ldr r3, [r3, #48] @ 0x30
  6357. 800246e: 0018 movs r0, r3
  6358. 8002470: f7fe fdfe bl 8001070 <HAL_DMA_Abort_IT>
  6359. break;
  6360. 8002474: e004 b.n 8002480 <HAL_TIM_IC_Stop_DMA+0xc0>
  6361. }
  6362. default:
  6363. status = HAL_ERROR;
  6364. 8002476: 230f movs r3, #15
  6365. 8002478: 18fb adds r3, r7, r3
  6366. 800247a: 2201 movs r2, #1
  6367. 800247c: 701a strb r2, [r3, #0]
  6368. break;
  6369. 800247e: 46c0 nop @ (mov r8, r8)
  6370. }
  6371. if (status == HAL_OK)
  6372. 8002480: 230f movs r3, #15
  6373. 8002482: 18fb adds r3, r7, r3
  6374. 8002484: 781b ldrb r3, [r3, #0]
  6375. 8002486: 2b00 cmp r3, #0
  6376. 8002488: d15b bne.n 8002542 <HAL_TIM_IC_Stop_DMA+0x182>
  6377. {
  6378. /* Disable the Peripheral */
  6379. __HAL_TIM_DISABLE(htim);
  6380. 800248a: 687b ldr r3, [r7, #4]
  6381. 800248c: 681b ldr r3, [r3, #0]
  6382. 800248e: 6a1b ldr r3, [r3, #32]
  6383. 8002490: 4a33 ldr r2, [pc, #204] @ (8002560 <HAL_TIM_IC_Stop_DMA+0x1a0>)
  6384. 8002492: 4013 ands r3, r2
  6385. 8002494: d10d bne.n 80024b2 <HAL_TIM_IC_Stop_DMA+0xf2>
  6386. 8002496: 687b ldr r3, [r7, #4]
  6387. 8002498: 681b ldr r3, [r3, #0]
  6388. 800249a: 6a1b ldr r3, [r3, #32]
  6389. 800249c: 4a31 ldr r2, [pc, #196] @ (8002564 <HAL_TIM_IC_Stop_DMA+0x1a4>)
  6390. 800249e: 4013 ands r3, r2
  6391. 80024a0: d107 bne.n 80024b2 <HAL_TIM_IC_Stop_DMA+0xf2>
  6392. 80024a2: 687b ldr r3, [r7, #4]
  6393. 80024a4: 681b ldr r3, [r3, #0]
  6394. 80024a6: 681a ldr r2, [r3, #0]
  6395. 80024a8: 687b ldr r3, [r7, #4]
  6396. 80024aa: 681b ldr r3, [r3, #0]
  6397. 80024ac: 2101 movs r1, #1
  6398. 80024ae: 438a bics r2, r1
  6399. 80024b0: 601a str r2, [r3, #0]
  6400. /* Set the TIM channel state */
  6401. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY);
  6402. 80024b2: 683b ldr r3, [r7, #0]
  6403. 80024b4: 2b00 cmp r3, #0
  6404. 80024b6: d104 bne.n 80024c2 <HAL_TIM_IC_Stop_DMA+0x102>
  6405. 80024b8: 687b ldr r3, [r7, #4]
  6406. 80024ba: 223e movs r2, #62 @ 0x3e
  6407. 80024bc: 2101 movs r1, #1
  6408. 80024be: 5499 strb r1, [r3, r2]
  6409. 80024c0: e023 b.n 800250a <HAL_TIM_IC_Stop_DMA+0x14a>
  6410. 80024c2: 683b ldr r3, [r7, #0]
  6411. 80024c4: 2b04 cmp r3, #4
  6412. 80024c6: d104 bne.n 80024d2 <HAL_TIM_IC_Stop_DMA+0x112>
  6413. 80024c8: 687b ldr r3, [r7, #4]
  6414. 80024ca: 223f movs r2, #63 @ 0x3f
  6415. 80024cc: 2101 movs r1, #1
  6416. 80024ce: 5499 strb r1, [r3, r2]
  6417. 80024d0: e01b b.n 800250a <HAL_TIM_IC_Stop_DMA+0x14a>
  6418. 80024d2: 683b ldr r3, [r7, #0]
  6419. 80024d4: 2b08 cmp r3, #8
  6420. 80024d6: d104 bne.n 80024e2 <HAL_TIM_IC_Stop_DMA+0x122>
  6421. 80024d8: 687b ldr r3, [r7, #4]
  6422. 80024da: 2240 movs r2, #64 @ 0x40
  6423. 80024dc: 2101 movs r1, #1
  6424. 80024de: 5499 strb r1, [r3, r2]
  6425. 80024e0: e013 b.n 800250a <HAL_TIM_IC_Stop_DMA+0x14a>
  6426. 80024e2: 683b ldr r3, [r7, #0]
  6427. 80024e4: 2b0c cmp r3, #12
  6428. 80024e6: d104 bne.n 80024f2 <HAL_TIM_IC_Stop_DMA+0x132>
  6429. 80024e8: 687b ldr r3, [r7, #4]
  6430. 80024ea: 2241 movs r2, #65 @ 0x41
  6431. 80024ec: 2101 movs r1, #1
  6432. 80024ee: 5499 strb r1, [r3, r2]
  6433. 80024f0: e00b b.n 800250a <HAL_TIM_IC_Stop_DMA+0x14a>
  6434. 80024f2: 683b ldr r3, [r7, #0]
  6435. 80024f4: 2b10 cmp r3, #16
  6436. 80024f6: d104 bne.n 8002502 <HAL_TIM_IC_Stop_DMA+0x142>
  6437. 80024f8: 687b ldr r3, [r7, #4]
  6438. 80024fa: 2242 movs r2, #66 @ 0x42
  6439. 80024fc: 2101 movs r1, #1
  6440. 80024fe: 5499 strb r1, [r3, r2]
  6441. 8002500: e003 b.n 800250a <HAL_TIM_IC_Stop_DMA+0x14a>
  6442. 8002502: 687b ldr r3, [r7, #4]
  6443. 8002504: 2243 movs r2, #67 @ 0x43
  6444. 8002506: 2101 movs r1, #1
  6445. 8002508: 5499 strb r1, [r3, r2]
  6446. TIM_CHANNEL_N_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY);
  6447. 800250a: 683b ldr r3, [r7, #0]
  6448. 800250c: 2b00 cmp r3, #0
  6449. 800250e: d104 bne.n 800251a <HAL_TIM_IC_Stop_DMA+0x15a>
  6450. 8002510: 687b ldr r3, [r7, #4]
  6451. 8002512: 2244 movs r2, #68 @ 0x44
  6452. 8002514: 2101 movs r1, #1
  6453. 8002516: 5499 strb r1, [r3, r2]
  6454. 8002518: e013 b.n 8002542 <HAL_TIM_IC_Stop_DMA+0x182>
  6455. 800251a: 683b ldr r3, [r7, #0]
  6456. 800251c: 2b04 cmp r3, #4
  6457. 800251e: d104 bne.n 800252a <HAL_TIM_IC_Stop_DMA+0x16a>
  6458. 8002520: 687b ldr r3, [r7, #4]
  6459. 8002522: 2245 movs r2, #69 @ 0x45
  6460. 8002524: 2101 movs r1, #1
  6461. 8002526: 5499 strb r1, [r3, r2]
  6462. 8002528: e00b b.n 8002542 <HAL_TIM_IC_Stop_DMA+0x182>
  6463. 800252a: 683b ldr r3, [r7, #0]
  6464. 800252c: 2b08 cmp r3, #8
  6465. 800252e: d104 bne.n 800253a <HAL_TIM_IC_Stop_DMA+0x17a>
  6466. 8002530: 687b ldr r3, [r7, #4]
  6467. 8002532: 2246 movs r2, #70 @ 0x46
  6468. 8002534: 2101 movs r1, #1
  6469. 8002536: 5499 strb r1, [r3, r2]
  6470. 8002538: e003 b.n 8002542 <HAL_TIM_IC_Stop_DMA+0x182>
  6471. 800253a: 687b ldr r3, [r7, #4]
  6472. 800253c: 2247 movs r2, #71 @ 0x47
  6473. 800253e: 2101 movs r1, #1
  6474. 8002540: 5499 strb r1, [r3, r2]
  6475. }
  6476. /* Return function status */
  6477. return status;
  6478. 8002542: 230f movs r3, #15
  6479. 8002544: 18fb adds r3, r7, r3
  6480. 8002546: 781b ldrb r3, [r3, #0]
  6481. }
  6482. 8002548: 0018 movs r0, r3
  6483. 800254a: 46bd mov sp, r7
  6484. 800254c: b004 add sp, #16
  6485. 800254e: bd80 pop {r7, pc}
  6486. 8002550: fffffdff .word 0xfffffdff
  6487. 8002554: fffffbff .word 0xfffffbff
  6488. 8002558: fffff7ff .word 0xfffff7ff
  6489. 800255c: ffffefff .word 0xffffefff
  6490. 8002560: 00001111 .word 0x00001111
  6491. 8002564: 00000444 .word 0x00000444
  6492. 08002568 <HAL_TIM_IC_ConfigChannel>:
  6493. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  6494. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  6495. * @retval HAL status
  6496. */
  6497. HAL_StatusTypeDef HAL_TIM_IC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_IC_InitTypeDef *sConfig, uint32_t Channel)
  6498. {
  6499. 8002568: b580 push {r7, lr}
  6500. 800256a: b086 sub sp, #24
  6501. 800256c: af00 add r7, sp, #0
  6502. 800256e: 60f8 str r0, [r7, #12]
  6503. 8002570: 60b9 str r1, [r7, #8]
  6504. 8002572: 607a str r2, [r7, #4]
  6505. HAL_StatusTypeDef status = HAL_OK;
  6506. 8002574: 2317 movs r3, #23
  6507. 8002576: 18fb adds r3, r7, r3
  6508. 8002578: 2200 movs r2, #0
  6509. 800257a: 701a strb r2, [r3, #0]
  6510. assert_param(IS_TIM_IC_SELECTION(sConfig->ICSelection));
  6511. assert_param(IS_TIM_IC_PRESCALER(sConfig->ICPrescaler));
  6512. assert_param(IS_TIM_IC_FILTER(sConfig->ICFilter));
  6513. /* Process Locked */
  6514. __HAL_LOCK(htim);
  6515. 800257c: 68fb ldr r3, [r7, #12]
  6516. 800257e: 223c movs r2, #60 @ 0x3c
  6517. 8002580: 5c9b ldrb r3, [r3, r2]
  6518. 8002582: 2b01 cmp r3, #1
  6519. 8002584: d101 bne.n 800258a <HAL_TIM_IC_ConfigChannel+0x22>
  6520. 8002586: 2302 movs r3, #2
  6521. 8002588: e08c b.n 80026a4 <HAL_TIM_IC_ConfigChannel+0x13c>
  6522. 800258a: 68fb ldr r3, [r7, #12]
  6523. 800258c: 223c movs r2, #60 @ 0x3c
  6524. 800258e: 2101 movs r1, #1
  6525. 8002590: 5499 strb r1, [r3, r2]
  6526. if (Channel == TIM_CHANNEL_1)
  6527. 8002592: 687b ldr r3, [r7, #4]
  6528. 8002594: 2b00 cmp r3, #0
  6529. 8002596: d11b bne.n 80025d0 <HAL_TIM_IC_ConfigChannel+0x68>
  6530. {
  6531. /* TI1 Configuration */
  6532. TIM_TI1_SetConfig(htim->Instance,
  6533. 8002598: 68fb ldr r3, [r7, #12]
  6534. 800259a: 6818 ldr r0, [r3, #0]
  6535. sConfig->ICPolarity,
  6536. 800259c: 68bb ldr r3, [r7, #8]
  6537. 800259e: 6819 ldr r1, [r3, #0]
  6538. sConfig->ICSelection,
  6539. 80025a0: 68bb ldr r3, [r7, #8]
  6540. 80025a2: 685a ldr r2, [r3, #4]
  6541. sConfig->ICFilter);
  6542. 80025a4: 68bb ldr r3, [r7, #8]
  6543. 80025a6: 68db ldr r3, [r3, #12]
  6544. TIM_TI1_SetConfig(htim->Instance,
  6545. 80025a8: f000 fb02 bl 8002bb0 <TIM_TI1_SetConfig>
  6546. /* Reset the IC1PSC Bits */
  6547. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC1PSC;
  6548. 80025ac: 68fb ldr r3, [r7, #12]
  6549. 80025ae: 681b ldr r3, [r3, #0]
  6550. 80025b0: 699a ldr r2, [r3, #24]
  6551. 80025b2: 68fb ldr r3, [r7, #12]
  6552. 80025b4: 681b ldr r3, [r3, #0]
  6553. 80025b6: 210c movs r1, #12
  6554. 80025b8: 438a bics r2, r1
  6555. 80025ba: 619a str r2, [r3, #24]
  6556. /* Set the IC1PSC value */
  6557. htim->Instance->CCMR1 |= sConfig->ICPrescaler;
  6558. 80025bc: 68fb ldr r3, [r7, #12]
  6559. 80025be: 681b ldr r3, [r3, #0]
  6560. 80025c0: 6999 ldr r1, [r3, #24]
  6561. 80025c2: 68bb ldr r3, [r7, #8]
  6562. 80025c4: 689a ldr r2, [r3, #8]
  6563. 80025c6: 68fb ldr r3, [r7, #12]
  6564. 80025c8: 681b ldr r3, [r3, #0]
  6565. 80025ca: 430a orrs r2, r1
  6566. 80025cc: 619a str r2, [r3, #24]
  6567. 80025ce: e062 b.n 8002696 <HAL_TIM_IC_ConfigChannel+0x12e>
  6568. }
  6569. else if (Channel == TIM_CHANNEL_2)
  6570. 80025d0: 687b ldr r3, [r7, #4]
  6571. 80025d2: 2b04 cmp r3, #4
  6572. 80025d4: d11c bne.n 8002610 <HAL_TIM_IC_ConfigChannel+0xa8>
  6573. {
  6574. /* TI2 Configuration */
  6575. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  6576. TIM_TI2_SetConfig(htim->Instance,
  6577. 80025d6: 68fb ldr r3, [r7, #12]
  6578. 80025d8: 6818 ldr r0, [r3, #0]
  6579. sConfig->ICPolarity,
  6580. 80025da: 68bb ldr r3, [r7, #8]
  6581. 80025dc: 6819 ldr r1, [r3, #0]
  6582. sConfig->ICSelection,
  6583. 80025de: 68bb ldr r3, [r7, #8]
  6584. 80025e0: 685a ldr r2, [r3, #4]
  6585. sConfig->ICFilter);
  6586. 80025e2: 68bb ldr r3, [r7, #8]
  6587. 80025e4: 68db ldr r3, [r3, #12]
  6588. TIM_TI2_SetConfig(htim->Instance,
  6589. 80025e6: f000 fb63 bl 8002cb0 <TIM_TI2_SetConfig>
  6590. /* Reset the IC2PSC Bits */
  6591. htim->Instance->CCMR1 &= ~TIM_CCMR1_IC2PSC;
  6592. 80025ea: 68fb ldr r3, [r7, #12]
  6593. 80025ec: 681b ldr r3, [r3, #0]
  6594. 80025ee: 699a ldr r2, [r3, #24]
  6595. 80025f0: 68fb ldr r3, [r7, #12]
  6596. 80025f2: 681b ldr r3, [r3, #0]
  6597. 80025f4: 492d ldr r1, [pc, #180] @ (80026ac <HAL_TIM_IC_ConfigChannel+0x144>)
  6598. 80025f6: 400a ands r2, r1
  6599. 80025f8: 619a str r2, [r3, #24]
  6600. /* Set the IC2PSC value */
  6601. htim->Instance->CCMR1 |= (sConfig->ICPrescaler << 8U);
  6602. 80025fa: 68fb ldr r3, [r7, #12]
  6603. 80025fc: 681b ldr r3, [r3, #0]
  6604. 80025fe: 6999 ldr r1, [r3, #24]
  6605. 8002600: 68bb ldr r3, [r7, #8]
  6606. 8002602: 689b ldr r3, [r3, #8]
  6607. 8002604: 021a lsls r2, r3, #8
  6608. 8002606: 68fb ldr r3, [r7, #12]
  6609. 8002608: 681b ldr r3, [r3, #0]
  6610. 800260a: 430a orrs r2, r1
  6611. 800260c: 619a str r2, [r3, #24]
  6612. 800260e: e042 b.n 8002696 <HAL_TIM_IC_ConfigChannel+0x12e>
  6613. }
  6614. else if (Channel == TIM_CHANNEL_3)
  6615. 8002610: 687b ldr r3, [r7, #4]
  6616. 8002612: 2b08 cmp r3, #8
  6617. 8002614: d11b bne.n 800264e <HAL_TIM_IC_ConfigChannel+0xe6>
  6618. {
  6619. /* TI3 Configuration */
  6620. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  6621. TIM_TI3_SetConfig(htim->Instance,
  6622. 8002616: 68fb ldr r3, [r7, #12]
  6623. 8002618: 6818 ldr r0, [r3, #0]
  6624. sConfig->ICPolarity,
  6625. 800261a: 68bb ldr r3, [r7, #8]
  6626. 800261c: 6819 ldr r1, [r3, #0]
  6627. sConfig->ICSelection,
  6628. 800261e: 68bb ldr r3, [r7, #8]
  6629. 8002620: 685a ldr r2, [r3, #4]
  6630. sConfig->ICFilter);
  6631. 8002622: 68bb ldr r3, [r7, #8]
  6632. 8002624: 68db ldr r3, [r3, #12]
  6633. TIM_TI3_SetConfig(htim->Instance,
  6634. 8002626: f000 fbb7 bl 8002d98 <TIM_TI3_SetConfig>
  6635. /* Reset the IC3PSC Bits */
  6636. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC3PSC;
  6637. 800262a: 68fb ldr r3, [r7, #12]
  6638. 800262c: 681b ldr r3, [r3, #0]
  6639. 800262e: 69da ldr r2, [r3, #28]
  6640. 8002630: 68fb ldr r3, [r7, #12]
  6641. 8002632: 681b ldr r3, [r3, #0]
  6642. 8002634: 210c movs r1, #12
  6643. 8002636: 438a bics r2, r1
  6644. 8002638: 61da str r2, [r3, #28]
  6645. /* Set the IC3PSC value */
  6646. htim->Instance->CCMR2 |= sConfig->ICPrescaler;
  6647. 800263a: 68fb ldr r3, [r7, #12]
  6648. 800263c: 681b ldr r3, [r3, #0]
  6649. 800263e: 69d9 ldr r1, [r3, #28]
  6650. 8002640: 68bb ldr r3, [r7, #8]
  6651. 8002642: 689a ldr r2, [r3, #8]
  6652. 8002644: 68fb ldr r3, [r7, #12]
  6653. 8002646: 681b ldr r3, [r3, #0]
  6654. 8002648: 430a orrs r2, r1
  6655. 800264a: 61da str r2, [r3, #28]
  6656. 800264c: e023 b.n 8002696 <HAL_TIM_IC_ConfigChannel+0x12e>
  6657. }
  6658. else if (Channel == TIM_CHANNEL_4)
  6659. 800264e: 687b ldr r3, [r7, #4]
  6660. 8002650: 2b0c cmp r3, #12
  6661. 8002652: d11c bne.n 800268e <HAL_TIM_IC_ConfigChannel+0x126>
  6662. {
  6663. /* TI4 Configuration */
  6664. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  6665. TIM_TI4_SetConfig(htim->Instance,
  6666. 8002654: 68fb ldr r3, [r7, #12]
  6667. 8002656: 6818 ldr r0, [r3, #0]
  6668. sConfig->ICPolarity,
  6669. 8002658: 68bb ldr r3, [r7, #8]
  6670. 800265a: 6819 ldr r1, [r3, #0]
  6671. sConfig->ICSelection,
  6672. 800265c: 68bb ldr r3, [r7, #8]
  6673. 800265e: 685a ldr r2, [r3, #4]
  6674. sConfig->ICFilter);
  6675. 8002660: 68bb ldr r3, [r7, #8]
  6676. 8002662: 68db ldr r3, [r3, #12]
  6677. TIM_TI4_SetConfig(htim->Instance,
  6678. 8002664: f000 fbd8 bl 8002e18 <TIM_TI4_SetConfig>
  6679. /* Reset the IC4PSC Bits */
  6680. htim->Instance->CCMR2 &= ~TIM_CCMR2_IC4PSC;
  6681. 8002668: 68fb ldr r3, [r7, #12]
  6682. 800266a: 681b ldr r3, [r3, #0]
  6683. 800266c: 69da ldr r2, [r3, #28]
  6684. 800266e: 68fb ldr r3, [r7, #12]
  6685. 8002670: 681b ldr r3, [r3, #0]
  6686. 8002672: 490e ldr r1, [pc, #56] @ (80026ac <HAL_TIM_IC_ConfigChannel+0x144>)
  6687. 8002674: 400a ands r2, r1
  6688. 8002676: 61da str r2, [r3, #28]
  6689. /* Set the IC4PSC value */
  6690. htim->Instance->CCMR2 |= (sConfig->ICPrescaler << 8U);
  6691. 8002678: 68fb ldr r3, [r7, #12]
  6692. 800267a: 681b ldr r3, [r3, #0]
  6693. 800267c: 69d9 ldr r1, [r3, #28]
  6694. 800267e: 68bb ldr r3, [r7, #8]
  6695. 8002680: 689b ldr r3, [r3, #8]
  6696. 8002682: 021a lsls r2, r3, #8
  6697. 8002684: 68fb ldr r3, [r7, #12]
  6698. 8002686: 681b ldr r3, [r3, #0]
  6699. 8002688: 430a orrs r2, r1
  6700. 800268a: 61da str r2, [r3, #28]
  6701. 800268c: e003 b.n 8002696 <HAL_TIM_IC_ConfigChannel+0x12e>
  6702. }
  6703. else
  6704. {
  6705. status = HAL_ERROR;
  6706. 800268e: 2317 movs r3, #23
  6707. 8002690: 18fb adds r3, r7, r3
  6708. 8002692: 2201 movs r2, #1
  6709. 8002694: 701a strb r2, [r3, #0]
  6710. }
  6711. __HAL_UNLOCK(htim);
  6712. 8002696: 68fb ldr r3, [r7, #12]
  6713. 8002698: 223c movs r2, #60 @ 0x3c
  6714. 800269a: 2100 movs r1, #0
  6715. 800269c: 5499 strb r1, [r3, r2]
  6716. return status;
  6717. 800269e: 2317 movs r3, #23
  6718. 80026a0: 18fb adds r3, r7, r3
  6719. 80026a2: 781b ldrb r3, [r3, #0]
  6720. }
  6721. 80026a4: 0018 movs r0, r3
  6722. 80026a6: 46bd mov sp, r7
  6723. 80026a8: b006 add sp, #24
  6724. 80026aa: bd80 pop {r7, pc}
  6725. 80026ac: fffff3ff .word 0xfffff3ff
  6726. 080026b0 <HAL_TIM_ConfigClockSource>:
  6727. * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that
  6728. * contains the clock source information for the TIM peripheral.
  6729. * @retval HAL status
  6730. */
  6731. HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig)
  6732. {
  6733. 80026b0: b580 push {r7, lr}
  6734. 80026b2: b084 sub sp, #16
  6735. 80026b4: af00 add r7, sp, #0
  6736. 80026b6: 6078 str r0, [r7, #4]
  6737. 80026b8: 6039 str r1, [r7, #0]
  6738. HAL_StatusTypeDef status = HAL_OK;
  6739. 80026ba: 230f movs r3, #15
  6740. 80026bc: 18fb adds r3, r7, r3
  6741. 80026be: 2200 movs r2, #0
  6742. 80026c0: 701a strb r2, [r3, #0]
  6743. uint32_t tmpsmcr;
  6744. /* Process Locked */
  6745. __HAL_LOCK(htim);
  6746. 80026c2: 687b ldr r3, [r7, #4]
  6747. 80026c4: 223c movs r2, #60 @ 0x3c
  6748. 80026c6: 5c9b ldrb r3, [r3, r2]
  6749. 80026c8: 2b01 cmp r3, #1
  6750. 80026ca: d101 bne.n 80026d0 <HAL_TIM_ConfigClockSource+0x20>
  6751. 80026cc: 2302 movs r3, #2
  6752. 80026ce: e0bc b.n 800284a <HAL_TIM_ConfigClockSource+0x19a>
  6753. 80026d0: 687b ldr r3, [r7, #4]
  6754. 80026d2: 223c movs r2, #60 @ 0x3c
  6755. 80026d4: 2101 movs r1, #1
  6756. 80026d6: 5499 strb r1, [r3, r2]
  6757. htim->State = HAL_TIM_STATE_BUSY;
  6758. 80026d8: 687b ldr r3, [r7, #4]
  6759. 80026da: 223d movs r2, #61 @ 0x3d
  6760. 80026dc: 2102 movs r1, #2
  6761. 80026de: 5499 strb r1, [r3, r2]
  6762. /* Check the parameters */
  6763. assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource));
  6764. /* Reset the SMS, TS, ECE, ETPS and ETRF bits */
  6765. tmpsmcr = htim->Instance->SMCR;
  6766. 80026e0: 687b ldr r3, [r7, #4]
  6767. 80026e2: 681b ldr r3, [r3, #0]
  6768. 80026e4: 689b ldr r3, [r3, #8]
  6769. 80026e6: 60bb str r3, [r7, #8]
  6770. tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS);
  6771. 80026e8: 68bb ldr r3, [r7, #8]
  6772. 80026ea: 4a5a ldr r2, [pc, #360] @ (8002854 <HAL_TIM_ConfigClockSource+0x1a4>)
  6773. 80026ec: 4013 ands r3, r2
  6774. 80026ee: 60bb str r3, [r7, #8]
  6775. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  6776. 80026f0: 68bb ldr r3, [r7, #8]
  6777. 80026f2: 4a59 ldr r2, [pc, #356] @ (8002858 <HAL_TIM_ConfigClockSource+0x1a8>)
  6778. 80026f4: 4013 ands r3, r2
  6779. 80026f6: 60bb str r3, [r7, #8]
  6780. htim->Instance->SMCR = tmpsmcr;
  6781. 80026f8: 687b ldr r3, [r7, #4]
  6782. 80026fa: 681b ldr r3, [r3, #0]
  6783. 80026fc: 68ba ldr r2, [r7, #8]
  6784. 80026fe: 609a str r2, [r3, #8]
  6785. switch (sClockSourceConfig->ClockSource)
  6786. 8002700: 683b ldr r3, [r7, #0]
  6787. 8002702: 681b ldr r3, [r3, #0]
  6788. 8002704: 2280 movs r2, #128 @ 0x80
  6789. 8002706: 0192 lsls r2, r2, #6
  6790. 8002708: 4293 cmp r3, r2
  6791. 800270a: d040 beq.n 800278e <HAL_TIM_ConfigClockSource+0xde>
  6792. 800270c: 2280 movs r2, #128 @ 0x80
  6793. 800270e: 0192 lsls r2, r2, #6
  6794. 8002710: 4293 cmp r3, r2
  6795. 8002712: d900 bls.n 8002716 <HAL_TIM_ConfigClockSource+0x66>
  6796. 8002714: e088 b.n 8002828 <HAL_TIM_ConfigClockSource+0x178>
  6797. 8002716: 2280 movs r2, #128 @ 0x80
  6798. 8002718: 0152 lsls r2, r2, #5
  6799. 800271a: 4293 cmp r3, r2
  6800. 800271c: d100 bne.n 8002720 <HAL_TIM_ConfigClockSource+0x70>
  6801. 800271e: e088 b.n 8002832 <HAL_TIM_ConfigClockSource+0x182>
  6802. 8002720: 2280 movs r2, #128 @ 0x80
  6803. 8002722: 0152 lsls r2, r2, #5
  6804. 8002724: 4293 cmp r3, r2
  6805. 8002726: d900 bls.n 800272a <HAL_TIM_ConfigClockSource+0x7a>
  6806. 8002728: e07e b.n 8002828 <HAL_TIM_ConfigClockSource+0x178>
  6807. 800272a: 2b70 cmp r3, #112 @ 0x70
  6808. 800272c: d018 beq.n 8002760 <HAL_TIM_ConfigClockSource+0xb0>
  6809. 800272e: d900 bls.n 8002732 <HAL_TIM_ConfigClockSource+0x82>
  6810. 8002730: e07a b.n 8002828 <HAL_TIM_ConfigClockSource+0x178>
  6811. 8002732: 2b60 cmp r3, #96 @ 0x60
  6812. 8002734: d04f beq.n 80027d6 <HAL_TIM_ConfigClockSource+0x126>
  6813. 8002736: d900 bls.n 800273a <HAL_TIM_ConfigClockSource+0x8a>
  6814. 8002738: e076 b.n 8002828 <HAL_TIM_ConfigClockSource+0x178>
  6815. 800273a: 2b50 cmp r3, #80 @ 0x50
  6816. 800273c: d03b beq.n 80027b6 <HAL_TIM_ConfigClockSource+0x106>
  6817. 800273e: d900 bls.n 8002742 <HAL_TIM_ConfigClockSource+0x92>
  6818. 8002740: e072 b.n 8002828 <HAL_TIM_ConfigClockSource+0x178>
  6819. 8002742: 2b40 cmp r3, #64 @ 0x40
  6820. 8002744: d057 beq.n 80027f6 <HAL_TIM_ConfigClockSource+0x146>
  6821. 8002746: d900 bls.n 800274a <HAL_TIM_ConfigClockSource+0x9a>
  6822. 8002748: e06e b.n 8002828 <HAL_TIM_ConfigClockSource+0x178>
  6823. 800274a: 2b30 cmp r3, #48 @ 0x30
  6824. 800274c: d063 beq.n 8002816 <HAL_TIM_ConfigClockSource+0x166>
  6825. 800274e: d86b bhi.n 8002828 <HAL_TIM_ConfigClockSource+0x178>
  6826. 8002750: 2b20 cmp r3, #32
  6827. 8002752: d060 beq.n 8002816 <HAL_TIM_ConfigClockSource+0x166>
  6828. 8002754: d868 bhi.n 8002828 <HAL_TIM_ConfigClockSource+0x178>
  6829. 8002756: 2b00 cmp r3, #0
  6830. 8002758: d05d beq.n 8002816 <HAL_TIM_ConfigClockSource+0x166>
  6831. 800275a: 2b10 cmp r3, #16
  6832. 800275c: d05b beq.n 8002816 <HAL_TIM_ConfigClockSource+0x166>
  6833. 800275e: e063 b.n 8002828 <HAL_TIM_ConfigClockSource+0x178>
  6834. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  6835. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  6836. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  6837. /* Configure the ETR Clock source */
  6838. TIM_ETR_SetConfig(htim->Instance,
  6839. 8002760: 687b ldr r3, [r7, #4]
  6840. 8002762: 6818 ldr r0, [r3, #0]
  6841. sClockSourceConfig->ClockPrescaler,
  6842. 8002764: 683b ldr r3, [r7, #0]
  6843. 8002766: 6899 ldr r1, [r3, #8]
  6844. sClockSourceConfig->ClockPolarity,
  6845. 8002768: 683b ldr r3, [r7, #0]
  6846. 800276a: 685a ldr r2, [r3, #4]
  6847. sClockSourceConfig->ClockFilter);
  6848. 800276c: 683b ldr r3, [r7, #0]
  6849. 800276e: 68db ldr r3, [r3, #12]
  6850. TIM_ETR_SetConfig(htim->Instance,
  6851. 8002770: f000 fbb4 bl 8002edc <TIM_ETR_SetConfig>
  6852. /* Select the External clock mode1 and the ETRF trigger */
  6853. tmpsmcr = htim->Instance->SMCR;
  6854. 8002774: 687b ldr r3, [r7, #4]
  6855. 8002776: 681b ldr r3, [r3, #0]
  6856. 8002778: 689b ldr r3, [r3, #8]
  6857. 800277a: 60bb str r3, [r7, #8]
  6858. tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
  6859. 800277c: 68bb ldr r3, [r7, #8]
  6860. 800277e: 2277 movs r2, #119 @ 0x77
  6861. 8002780: 4313 orrs r3, r2
  6862. 8002782: 60bb str r3, [r7, #8]
  6863. /* Write to TIMx SMCR */
  6864. htim->Instance->SMCR = tmpsmcr;
  6865. 8002784: 687b ldr r3, [r7, #4]
  6866. 8002786: 681b ldr r3, [r3, #0]
  6867. 8002788: 68ba ldr r2, [r7, #8]
  6868. 800278a: 609a str r2, [r3, #8]
  6869. break;
  6870. 800278c: e052 b.n 8002834 <HAL_TIM_ConfigClockSource+0x184>
  6871. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  6872. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  6873. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  6874. /* Configure the ETR Clock source */
  6875. TIM_ETR_SetConfig(htim->Instance,
  6876. 800278e: 687b ldr r3, [r7, #4]
  6877. 8002790: 6818 ldr r0, [r3, #0]
  6878. sClockSourceConfig->ClockPrescaler,
  6879. 8002792: 683b ldr r3, [r7, #0]
  6880. 8002794: 6899 ldr r1, [r3, #8]
  6881. sClockSourceConfig->ClockPolarity,
  6882. 8002796: 683b ldr r3, [r7, #0]
  6883. 8002798: 685a ldr r2, [r3, #4]
  6884. sClockSourceConfig->ClockFilter);
  6885. 800279a: 683b ldr r3, [r7, #0]
  6886. 800279c: 68db ldr r3, [r3, #12]
  6887. TIM_ETR_SetConfig(htim->Instance,
  6888. 800279e: f000 fb9d bl 8002edc <TIM_ETR_SetConfig>
  6889. /* Enable the External clock mode2 */
  6890. htim->Instance->SMCR |= TIM_SMCR_ECE;
  6891. 80027a2: 687b ldr r3, [r7, #4]
  6892. 80027a4: 681b ldr r3, [r3, #0]
  6893. 80027a6: 689a ldr r2, [r3, #8]
  6894. 80027a8: 687b ldr r3, [r7, #4]
  6895. 80027aa: 681b ldr r3, [r3, #0]
  6896. 80027ac: 2180 movs r1, #128 @ 0x80
  6897. 80027ae: 01c9 lsls r1, r1, #7
  6898. 80027b0: 430a orrs r2, r1
  6899. 80027b2: 609a str r2, [r3, #8]
  6900. break;
  6901. 80027b4: e03e b.n 8002834 <HAL_TIM_ConfigClockSource+0x184>
  6902. /* Check TI1 input conditioning related parameters */
  6903. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  6904. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  6905. TIM_TI1_ConfigInputStage(htim->Instance,
  6906. 80027b6: 687b ldr r3, [r7, #4]
  6907. 80027b8: 6818 ldr r0, [r3, #0]
  6908. sClockSourceConfig->ClockPolarity,
  6909. 80027ba: 683b ldr r3, [r7, #0]
  6910. 80027bc: 6859 ldr r1, [r3, #4]
  6911. sClockSourceConfig->ClockFilter);
  6912. 80027be: 683b ldr r3, [r7, #0]
  6913. 80027c0: 68db ldr r3, [r3, #12]
  6914. TIM_TI1_ConfigInputStage(htim->Instance,
  6915. 80027c2: 001a movs r2, r3
  6916. 80027c4: f000 fa46 bl 8002c54 <TIM_TI1_ConfigInputStage>
  6917. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
  6918. 80027c8: 687b ldr r3, [r7, #4]
  6919. 80027ca: 681b ldr r3, [r3, #0]
  6920. 80027cc: 2150 movs r1, #80 @ 0x50
  6921. 80027ce: 0018 movs r0, r3
  6922. 80027d0: f000 fb68 bl 8002ea4 <TIM_ITRx_SetConfig>
  6923. break;
  6924. 80027d4: e02e b.n 8002834 <HAL_TIM_ConfigClockSource+0x184>
  6925. /* Check TI2 input conditioning related parameters */
  6926. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  6927. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  6928. TIM_TI2_ConfigInputStage(htim->Instance,
  6929. 80027d6: 687b ldr r3, [r7, #4]
  6930. 80027d8: 6818 ldr r0, [r3, #0]
  6931. sClockSourceConfig->ClockPolarity,
  6932. 80027da: 683b ldr r3, [r7, #0]
  6933. 80027dc: 6859 ldr r1, [r3, #4]
  6934. sClockSourceConfig->ClockFilter);
  6935. 80027de: 683b ldr r3, [r7, #0]
  6936. 80027e0: 68db ldr r3, [r3, #12]
  6937. TIM_TI2_ConfigInputStage(htim->Instance,
  6938. 80027e2: 001a movs r2, r3
  6939. 80027e4: f000 faa6 bl 8002d34 <TIM_TI2_ConfigInputStage>
  6940. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
  6941. 80027e8: 687b ldr r3, [r7, #4]
  6942. 80027ea: 681b ldr r3, [r3, #0]
  6943. 80027ec: 2160 movs r1, #96 @ 0x60
  6944. 80027ee: 0018 movs r0, r3
  6945. 80027f0: f000 fb58 bl 8002ea4 <TIM_ITRx_SetConfig>
  6946. break;
  6947. 80027f4: e01e b.n 8002834 <HAL_TIM_ConfigClockSource+0x184>
  6948. /* Check TI1 input conditioning related parameters */
  6949. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  6950. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  6951. TIM_TI1_ConfigInputStage(htim->Instance,
  6952. 80027f6: 687b ldr r3, [r7, #4]
  6953. 80027f8: 6818 ldr r0, [r3, #0]
  6954. sClockSourceConfig->ClockPolarity,
  6955. 80027fa: 683b ldr r3, [r7, #0]
  6956. 80027fc: 6859 ldr r1, [r3, #4]
  6957. sClockSourceConfig->ClockFilter);
  6958. 80027fe: 683b ldr r3, [r7, #0]
  6959. 8002800: 68db ldr r3, [r3, #12]
  6960. TIM_TI1_ConfigInputStage(htim->Instance,
  6961. 8002802: 001a movs r2, r3
  6962. 8002804: f000 fa26 bl 8002c54 <TIM_TI1_ConfigInputStage>
  6963. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
  6964. 8002808: 687b ldr r3, [r7, #4]
  6965. 800280a: 681b ldr r3, [r3, #0]
  6966. 800280c: 2140 movs r1, #64 @ 0x40
  6967. 800280e: 0018 movs r0, r3
  6968. 8002810: f000 fb48 bl 8002ea4 <TIM_ITRx_SetConfig>
  6969. break;
  6970. 8002814: e00e b.n 8002834 <HAL_TIM_ConfigClockSource+0x184>
  6971. case TIM_CLOCKSOURCE_ITR3:
  6972. {
  6973. /* Check whether or not the timer instance supports internal trigger input */
  6974. assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance));
  6975. TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
  6976. 8002816: 687b ldr r3, [r7, #4]
  6977. 8002818: 681a ldr r2, [r3, #0]
  6978. 800281a: 683b ldr r3, [r7, #0]
  6979. 800281c: 681b ldr r3, [r3, #0]
  6980. 800281e: 0019 movs r1, r3
  6981. 8002820: 0010 movs r0, r2
  6982. 8002822: f000 fb3f bl 8002ea4 <TIM_ITRx_SetConfig>
  6983. break;
  6984. 8002826: e005 b.n 8002834 <HAL_TIM_ConfigClockSource+0x184>
  6985. }
  6986. default:
  6987. status = HAL_ERROR;
  6988. 8002828: 230f movs r3, #15
  6989. 800282a: 18fb adds r3, r7, r3
  6990. 800282c: 2201 movs r2, #1
  6991. 800282e: 701a strb r2, [r3, #0]
  6992. break;
  6993. 8002830: e000 b.n 8002834 <HAL_TIM_ConfigClockSource+0x184>
  6994. break;
  6995. 8002832: 46c0 nop @ (mov r8, r8)
  6996. }
  6997. htim->State = HAL_TIM_STATE_READY;
  6998. 8002834: 687b ldr r3, [r7, #4]
  6999. 8002836: 223d movs r2, #61 @ 0x3d
  7000. 8002838: 2101 movs r1, #1
  7001. 800283a: 5499 strb r1, [r3, r2]
  7002. __HAL_UNLOCK(htim);
  7003. 800283c: 687b ldr r3, [r7, #4]
  7004. 800283e: 223c movs r2, #60 @ 0x3c
  7005. 8002840: 2100 movs r1, #0
  7006. 8002842: 5499 strb r1, [r3, r2]
  7007. return status;
  7008. 8002844: 230f movs r3, #15
  7009. 8002846: 18fb adds r3, r7, r3
  7010. 8002848: 781b ldrb r3, [r3, #0]
  7011. }
  7012. 800284a: 0018 movs r0, r3
  7013. 800284c: 46bd mov sp, r7
  7014. 800284e: b004 add sp, #16
  7015. 8002850: bd80 pop {r7, pc}
  7016. 8002852: 46c0 nop @ (mov r8, r8)
  7017. 8002854: ffceff88 .word 0xffceff88
  7018. 8002858: ffff00ff .word 0xffff00ff
  7019. 0800285c <HAL_TIM_ReadCapturedValue>:
  7020. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  7021. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  7022. * @retval Captured value
  7023. */
  7024. uint32_t HAL_TIM_ReadCapturedValue(const TIM_HandleTypeDef *htim, uint32_t Channel)
  7025. {
  7026. 800285c: b580 push {r7, lr}
  7027. 800285e: b084 sub sp, #16
  7028. 8002860: af00 add r7, sp, #0
  7029. 8002862: 6078 str r0, [r7, #4]
  7030. 8002864: 6039 str r1, [r7, #0]
  7031. uint32_t tmpreg = 0U;
  7032. 8002866: 2300 movs r3, #0
  7033. 8002868: 60fb str r3, [r7, #12]
  7034. switch (Channel)
  7035. 800286a: 683b ldr r3, [r7, #0]
  7036. 800286c: 2b0c cmp r3, #12
  7037. 800286e: d01e beq.n 80028ae <HAL_TIM_ReadCapturedValue+0x52>
  7038. 8002870: 683b ldr r3, [r7, #0]
  7039. 8002872: 2b0c cmp r3, #12
  7040. 8002874: d820 bhi.n 80028b8 <HAL_TIM_ReadCapturedValue+0x5c>
  7041. 8002876: 683b ldr r3, [r7, #0]
  7042. 8002878: 2b08 cmp r3, #8
  7043. 800287a: d013 beq.n 80028a4 <HAL_TIM_ReadCapturedValue+0x48>
  7044. 800287c: 683b ldr r3, [r7, #0]
  7045. 800287e: 2b08 cmp r3, #8
  7046. 8002880: d81a bhi.n 80028b8 <HAL_TIM_ReadCapturedValue+0x5c>
  7047. 8002882: 683b ldr r3, [r7, #0]
  7048. 8002884: 2b00 cmp r3, #0
  7049. 8002886: d003 beq.n 8002890 <HAL_TIM_ReadCapturedValue+0x34>
  7050. 8002888: 683b ldr r3, [r7, #0]
  7051. 800288a: 2b04 cmp r3, #4
  7052. 800288c: d005 beq.n 800289a <HAL_TIM_ReadCapturedValue+0x3e>
  7053. break;
  7054. }
  7055. default:
  7056. break;
  7057. 800288e: e013 b.n 80028b8 <HAL_TIM_ReadCapturedValue+0x5c>
  7058. tmpreg = htim->Instance->CCR1;
  7059. 8002890: 687b ldr r3, [r7, #4]
  7060. 8002892: 681b ldr r3, [r3, #0]
  7061. 8002894: 6b5b ldr r3, [r3, #52] @ 0x34
  7062. 8002896: 60fb str r3, [r7, #12]
  7063. break;
  7064. 8002898: e00f b.n 80028ba <HAL_TIM_ReadCapturedValue+0x5e>
  7065. tmpreg = htim->Instance->CCR2;
  7066. 800289a: 687b ldr r3, [r7, #4]
  7067. 800289c: 681b ldr r3, [r3, #0]
  7068. 800289e: 6b9b ldr r3, [r3, #56] @ 0x38
  7069. 80028a0: 60fb str r3, [r7, #12]
  7070. break;
  7071. 80028a2: e00a b.n 80028ba <HAL_TIM_ReadCapturedValue+0x5e>
  7072. tmpreg = htim->Instance->CCR3;
  7073. 80028a4: 687b ldr r3, [r7, #4]
  7074. 80028a6: 681b ldr r3, [r3, #0]
  7075. 80028a8: 6bdb ldr r3, [r3, #60] @ 0x3c
  7076. 80028aa: 60fb str r3, [r7, #12]
  7077. break;
  7078. 80028ac: e005 b.n 80028ba <HAL_TIM_ReadCapturedValue+0x5e>
  7079. tmpreg = htim->Instance->CCR4;
  7080. 80028ae: 687b ldr r3, [r7, #4]
  7081. 80028b0: 681b ldr r3, [r3, #0]
  7082. 80028b2: 6c1b ldr r3, [r3, #64] @ 0x40
  7083. 80028b4: 60fb str r3, [r7, #12]
  7084. break;
  7085. 80028b6: e000 b.n 80028ba <HAL_TIM_ReadCapturedValue+0x5e>
  7086. break;
  7087. 80028b8: 46c0 nop @ (mov r8, r8)
  7088. }
  7089. return tmpreg;
  7090. 80028ba: 68fb ldr r3, [r7, #12]
  7091. }
  7092. 80028bc: 0018 movs r0, r3
  7093. 80028be: 46bd mov sp, r7
  7094. 80028c0: b004 add sp, #16
  7095. 80028c2: bd80 pop {r7, pc}
  7096. 080028c4 <HAL_TIM_IC_CaptureCallback>:
  7097. * @brief Input Capture callback in non-blocking mode
  7098. * @param htim TIM IC handle
  7099. * @retval None
  7100. */
  7101. __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  7102. {
  7103. 80028c4: b580 push {r7, lr}
  7104. 80028c6: b082 sub sp, #8
  7105. 80028c8: af00 add r7, sp, #0
  7106. 80028ca: 6078 str r0, [r7, #4]
  7107. UNUSED(htim);
  7108. /* NOTE : This function should not be modified, when the callback is needed,
  7109. the HAL_TIM_IC_CaptureCallback could be implemented in the user file
  7110. */
  7111. }
  7112. 80028cc: 46c0 nop @ (mov r8, r8)
  7113. 80028ce: 46bd mov sp, r7
  7114. 80028d0: b002 add sp, #8
  7115. 80028d2: bd80 pop {r7, pc}
  7116. 080028d4 <HAL_TIM_IC_CaptureHalfCpltCallback>:
  7117. * @brief Input Capture half complete callback in non-blocking mode
  7118. * @param htim TIM IC handle
  7119. * @retval None
  7120. */
  7121. __weak void HAL_TIM_IC_CaptureHalfCpltCallback(TIM_HandleTypeDef *htim)
  7122. {
  7123. 80028d4: b580 push {r7, lr}
  7124. 80028d6: b082 sub sp, #8
  7125. 80028d8: af00 add r7, sp, #0
  7126. 80028da: 6078 str r0, [r7, #4]
  7127. UNUSED(htim);
  7128. /* NOTE : This function should not be modified, when the callback is needed,
  7129. the HAL_TIM_IC_CaptureHalfCpltCallback could be implemented in the user file
  7130. */
  7131. }
  7132. 80028dc: 46c0 nop @ (mov r8, r8)
  7133. 80028de: 46bd mov sp, r7
  7134. 80028e0: b002 add sp, #8
  7135. 80028e2: bd80 pop {r7, pc}
  7136. 080028e4 <HAL_TIM_ErrorCallback>:
  7137. * @brief Timer error callback in non-blocking mode
  7138. * @param htim TIM handle
  7139. * @retval None
  7140. */
  7141. __weak void HAL_TIM_ErrorCallback(TIM_HandleTypeDef *htim)
  7142. {
  7143. 80028e4: b580 push {r7, lr}
  7144. 80028e6: b082 sub sp, #8
  7145. 80028e8: af00 add r7, sp, #0
  7146. 80028ea: 6078 str r0, [r7, #4]
  7147. UNUSED(htim);
  7148. /* NOTE : This function should not be modified, when the callback is needed,
  7149. the HAL_TIM_ErrorCallback could be implemented in the user file
  7150. */
  7151. }
  7152. 80028ec: 46c0 nop @ (mov r8, r8)
  7153. 80028ee: 46bd mov sp, r7
  7154. 80028f0: b002 add sp, #8
  7155. 80028f2: bd80 pop {r7, pc}
  7156. 080028f4 <TIM_DMAError>:
  7157. * @brief TIM DMA error callback
  7158. * @param hdma pointer to DMA handle.
  7159. * @retval None
  7160. */
  7161. void TIM_DMAError(DMA_HandleTypeDef *hdma)
  7162. {
  7163. 80028f4: b580 push {r7, lr}
  7164. 80028f6: b084 sub sp, #16
  7165. 80028f8: af00 add r7, sp, #0
  7166. 80028fa: 6078 str r0, [r7, #4]
  7167. TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  7168. 80028fc: 687b ldr r3, [r7, #4]
  7169. 80028fe: 6a9b ldr r3, [r3, #40] @ 0x28
  7170. 8002900: 60fb str r3, [r7, #12]
  7171. if (hdma == htim->hdma[TIM_DMA_ID_CC1])
  7172. 8002902: 68fb ldr r3, [r7, #12]
  7173. 8002904: 6a5b ldr r3, [r3, #36] @ 0x24
  7174. 8002906: 687a ldr r2, [r7, #4]
  7175. 8002908: 429a cmp r2, r3
  7176. 800290a: d107 bne.n 800291c <TIM_DMAError+0x28>
  7177. {
  7178. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  7179. 800290c: 68fb ldr r3, [r7, #12]
  7180. 800290e: 2201 movs r2, #1
  7181. 8002910: 771a strb r2, [r3, #28]
  7182. TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY);
  7183. 8002912: 68fb ldr r3, [r7, #12]
  7184. 8002914: 223e movs r2, #62 @ 0x3e
  7185. 8002916: 2101 movs r1, #1
  7186. 8002918: 5499 strb r1, [r3, r2]
  7187. 800291a: e02a b.n 8002972 <TIM_DMAError+0x7e>
  7188. }
  7189. else if (hdma == htim->hdma[TIM_DMA_ID_CC2])
  7190. 800291c: 68fb ldr r3, [r7, #12]
  7191. 800291e: 6a9b ldr r3, [r3, #40] @ 0x28
  7192. 8002920: 687a ldr r2, [r7, #4]
  7193. 8002922: 429a cmp r2, r3
  7194. 8002924: d107 bne.n 8002936 <TIM_DMAError+0x42>
  7195. {
  7196. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  7197. 8002926: 68fb ldr r3, [r7, #12]
  7198. 8002928: 2202 movs r2, #2
  7199. 800292a: 771a strb r2, [r3, #28]
  7200. TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY);
  7201. 800292c: 68fb ldr r3, [r7, #12]
  7202. 800292e: 223f movs r2, #63 @ 0x3f
  7203. 8002930: 2101 movs r1, #1
  7204. 8002932: 5499 strb r1, [r3, r2]
  7205. 8002934: e01d b.n 8002972 <TIM_DMAError+0x7e>
  7206. }
  7207. else if (hdma == htim->hdma[TIM_DMA_ID_CC3])
  7208. 8002936: 68fb ldr r3, [r7, #12]
  7209. 8002938: 6adb ldr r3, [r3, #44] @ 0x2c
  7210. 800293a: 687a ldr r2, [r7, #4]
  7211. 800293c: 429a cmp r2, r3
  7212. 800293e: d107 bne.n 8002950 <TIM_DMAError+0x5c>
  7213. {
  7214. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  7215. 8002940: 68fb ldr r3, [r7, #12]
  7216. 8002942: 2204 movs r2, #4
  7217. 8002944: 771a strb r2, [r3, #28]
  7218. TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY);
  7219. 8002946: 68fb ldr r3, [r7, #12]
  7220. 8002948: 2240 movs r2, #64 @ 0x40
  7221. 800294a: 2101 movs r1, #1
  7222. 800294c: 5499 strb r1, [r3, r2]
  7223. 800294e: e010 b.n 8002972 <TIM_DMAError+0x7e>
  7224. }
  7225. else if (hdma == htim->hdma[TIM_DMA_ID_CC4])
  7226. 8002950: 68fb ldr r3, [r7, #12]
  7227. 8002952: 6b1b ldr r3, [r3, #48] @ 0x30
  7228. 8002954: 687a ldr r2, [r7, #4]
  7229. 8002956: 429a cmp r2, r3
  7230. 8002958: d107 bne.n 800296a <TIM_DMAError+0x76>
  7231. {
  7232. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  7233. 800295a: 68fb ldr r3, [r7, #12]
  7234. 800295c: 2208 movs r2, #8
  7235. 800295e: 771a strb r2, [r3, #28]
  7236. TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY);
  7237. 8002960: 68fb ldr r3, [r7, #12]
  7238. 8002962: 2241 movs r2, #65 @ 0x41
  7239. 8002964: 2101 movs r1, #1
  7240. 8002966: 5499 strb r1, [r3, r2]
  7241. 8002968: e003 b.n 8002972 <TIM_DMAError+0x7e>
  7242. }
  7243. else
  7244. {
  7245. htim->State = HAL_TIM_STATE_READY;
  7246. 800296a: 68fb ldr r3, [r7, #12]
  7247. 800296c: 223d movs r2, #61 @ 0x3d
  7248. 800296e: 2101 movs r1, #1
  7249. 8002970: 5499 strb r1, [r3, r2]
  7250. }
  7251. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  7252. htim->ErrorCallback(htim);
  7253. #else
  7254. HAL_TIM_ErrorCallback(htim);
  7255. 8002972: 68fb ldr r3, [r7, #12]
  7256. 8002974: 0018 movs r0, r3
  7257. 8002976: f7ff ffb5 bl 80028e4 <HAL_TIM_ErrorCallback>
  7258. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  7259. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  7260. 800297a: 68fb ldr r3, [r7, #12]
  7261. 800297c: 2200 movs r2, #0
  7262. 800297e: 771a strb r2, [r3, #28]
  7263. }
  7264. 8002980: 46c0 nop @ (mov r8, r8)
  7265. 8002982: 46bd mov sp, r7
  7266. 8002984: b004 add sp, #16
  7267. 8002986: bd80 pop {r7, pc}
  7268. 08002988 <TIM_DMACaptureCplt>:
  7269. * @brief TIM DMA Capture complete callback.
  7270. * @param hdma pointer to DMA handle.
  7271. * @retval None
  7272. */
  7273. void TIM_DMACaptureCplt(DMA_HandleTypeDef *hdma)
  7274. {
  7275. 8002988: b580 push {r7, lr}
  7276. 800298a: b084 sub sp, #16
  7277. 800298c: af00 add r7, sp, #0
  7278. 800298e: 6078 str r0, [r7, #4]
  7279. TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  7280. 8002990: 687b ldr r3, [r7, #4]
  7281. 8002992: 6a9b ldr r3, [r3, #40] @ 0x28
  7282. 8002994: 60fb str r3, [r7, #12]
  7283. if (hdma == htim->hdma[TIM_DMA_ID_CC1])
  7284. 8002996: 68fb ldr r3, [r7, #12]
  7285. 8002998: 6a5b ldr r3, [r3, #36] @ 0x24
  7286. 800299a: 687a ldr r2, [r7, #4]
  7287. 800299c: 429a cmp r2, r3
  7288. 800299e: d10f bne.n 80029c0 <TIM_DMACaptureCplt+0x38>
  7289. {
  7290. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  7291. 80029a0: 68fb ldr r3, [r7, #12]
  7292. 80029a2: 2201 movs r2, #1
  7293. 80029a4: 771a strb r2, [r3, #28]
  7294. if (hdma->Init.Mode == DMA_NORMAL)
  7295. 80029a6: 687b ldr r3, [r7, #4]
  7296. 80029a8: 69db ldr r3, [r3, #28]
  7297. 80029aa: 2b00 cmp r3, #0
  7298. 80029ac: d146 bne.n 8002a3c <TIM_DMACaptureCplt+0xb4>
  7299. {
  7300. TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY);
  7301. 80029ae: 68fb ldr r3, [r7, #12]
  7302. 80029b0: 223e movs r2, #62 @ 0x3e
  7303. 80029b2: 2101 movs r1, #1
  7304. 80029b4: 5499 strb r1, [r3, r2]
  7305. TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY);
  7306. 80029b6: 68fb ldr r3, [r7, #12]
  7307. 80029b8: 2244 movs r2, #68 @ 0x44
  7308. 80029ba: 2101 movs r1, #1
  7309. 80029bc: 5499 strb r1, [r3, r2]
  7310. 80029be: e03d b.n 8002a3c <TIM_DMACaptureCplt+0xb4>
  7311. }
  7312. }
  7313. else if (hdma == htim->hdma[TIM_DMA_ID_CC2])
  7314. 80029c0: 68fb ldr r3, [r7, #12]
  7315. 80029c2: 6a9b ldr r3, [r3, #40] @ 0x28
  7316. 80029c4: 687a ldr r2, [r7, #4]
  7317. 80029c6: 429a cmp r2, r3
  7318. 80029c8: d10f bne.n 80029ea <TIM_DMACaptureCplt+0x62>
  7319. {
  7320. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  7321. 80029ca: 68fb ldr r3, [r7, #12]
  7322. 80029cc: 2202 movs r2, #2
  7323. 80029ce: 771a strb r2, [r3, #28]
  7324. if (hdma->Init.Mode == DMA_NORMAL)
  7325. 80029d0: 687b ldr r3, [r7, #4]
  7326. 80029d2: 69db ldr r3, [r3, #28]
  7327. 80029d4: 2b00 cmp r3, #0
  7328. 80029d6: d131 bne.n 8002a3c <TIM_DMACaptureCplt+0xb4>
  7329. {
  7330. TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY);
  7331. 80029d8: 68fb ldr r3, [r7, #12]
  7332. 80029da: 223f movs r2, #63 @ 0x3f
  7333. 80029dc: 2101 movs r1, #1
  7334. 80029de: 5499 strb r1, [r3, r2]
  7335. TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY);
  7336. 80029e0: 68fb ldr r3, [r7, #12]
  7337. 80029e2: 2245 movs r2, #69 @ 0x45
  7338. 80029e4: 2101 movs r1, #1
  7339. 80029e6: 5499 strb r1, [r3, r2]
  7340. 80029e8: e028 b.n 8002a3c <TIM_DMACaptureCplt+0xb4>
  7341. }
  7342. }
  7343. else if (hdma == htim->hdma[TIM_DMA_ID_CC3])
  7344. 80029ea: 68fb ldr r3, [r7, #12]
  7345. 80029ec: 6adb ldr r3, [r3, #44] @ 0x2c
  7346. 80029ee: 687a ldr r2, [r7, #4]
  7347. 80029f0: 429a cmp r2, r3
  7348. 80029f2: d10f bne.n 8002a14 <TIM_DMACaptureCplt+0x8c>
  7349. {
  7350. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  7351. 80029f4: 68fb ldr r3, [r7, #12]
  7352. 80029f6: 2204 movs r2, #4
  7353. 80029f8: 771a strb r2, [r3, #28]
  7354. if (hdma->Init.Mode == DMA_NORMAL)
  7355. 80029fa: 687b ldr r3, [r7, #4]
  7356. 80029fc: 69db ldr r3, [r3, #28]
  7357. 80029fe: 2b00 cmp r3, #0
  7358. 8002a00: d11c bne.n 8002a3c <TIM_DMACaptureCplt+0xb4>
  7359. {
  7360. TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY);
  7361. 8002a02: 68fb ldr r3, [r7, #12]
  7362. 8002a04: 2240 movs r2, #64 @ 0x40
  7363. 8002a06: 2101 movs r1, #1
  7364. 8002a08: 5499 strb r1, [r3, r2]
  7365. TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY);
  7366. 8002a0a: 68fb ldr r3, [r7, #12]
  7367. 8002a0c: 2246 movs r2, #70 @ 0x46
  7368. 8002a0e: 2101 movs r1, #1
  7369. 8002a10: 5499 strb r1, [r3, r2]
  7370. 8002a12: e013 b.n 8002a3c <TIM_DMACaptureCplt+0xb4>
  7371. }
  7372. }
  7373. else if (hdma == htim->hdma[TIM_DMA_ID_CC4])
  7374. 8002a14: 68fb ldr r3, [r7, #12]
  7375. 8002a16: 6b1b ldr r3, [r3, #48] @ 0x30
  7376. 8002a18: 687a ldr r2, [r7, #4]
  7377. 8002a1a: 429a cmp r2, r3
  7378. 8002a1c: d10e bne.n 8002a3c <TIM_DMACaptureCplt+0xb4>
  7379. {
  7380. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  7381. 8002a1e: 68fb ldr r3, [r7, #12]
  7382. 8002a20: 2208 movs r2, #8
  7383. 8002a22: 771a strb r2, [r3, #28]
  7384. if (hdma->Init.Mode == DMA_NORMAL)
  7385. 8002a24: 687b ldr r3, [r7, #4]
  7386. 8002a26: 69db ldr r3, [r3, #28]
  7387. 8002a28: 2b00 cmp r3, #0
  7388. 8002a2a: d107 bne.n 8002a3c <TIM_DMACaptureCplt+0xb4>
  7389. {
  7390. TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY);
  7391. 8002a2c: 68fb ldr r3, [r7, #12]
  7392. 8002a2e: 2241 movs r2, #65 @ 0x41
  7393. 8002a30: 2101 movs r1, #1
  7394. 8002a32: 5499 strb r1, [r3, r2]
  7395. TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY);
  7396. 8002a34: 68fb ldr r3, [r7, #12]
  7397. 8002a36: 2247 movs r2, #71 @ 0x47
  7398. 8002a38: 2101 movs r1, #1
  7399. 8002a3a: 5499 strb r1, [r3, r2]
  7400. }
  7401. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  7402. htim->IC_CaptureCallback(htim);
  7403. #else
  7404. HAL_TIM_IC_CaptureCallback(htim);
  7405. 8002a3c: 68fb ldr r3, [r7, #12]
  7406. 8002a3e: 0018 movs r0, r3
  7407. 8002a40: f7ff ff40 bl 80028c4 <HAL_TIM_IC_CaptureCallback>
  7408. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  7409. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  7410. 8002a44: 68fb ldr r3, [r7, #12]
  7411. 8002a46: 2200 movs r2, #0
  7412. 8002a48: 771a strb r2, [r3, #28]
  7413. }
  7414. 8002a4a: 46c0 nop @ (mov r8, r8)
  7415. 8002a4c: 46bd mov sp, r7
  7416. 8002a4e: b004 add sp, #16
  7417. 8002a50: bd80 pop {r7, pc}
  7418. 08002a52 <TIM_DMACaptureHalfCplt>:
  7419. * @brief TIM DMA Capture half complete callback.
  7420. * @param hdma pointer to DMA handle.
  7421. * @retval None
  7422. */
  7423. void TIM_DMACaptureHalfCplt(DMA_HandleTypeDef *hdma)
  7424. {
  7425. 8002a52: b580 push {r7, lr}
  7426. 8002a54: b084 sub sp, #16
  7427. 8002a56: af00 add r7, sp, #0
  7428. 8002a58: 6078 str r0, [r7, #4]
  7429. TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  7430. 8002a5a: 687b ldr r3, [r7, #4]
  7431. 8002a5c: 6a9b ldr r3, [r3, #40] @ 0x28
  7432. 8002a5e: 60fb str r3, [r7, #12]
  7433. if (hdma == htim->hdma[TIM_DMA_ID_CC1])
  7434. 8002a60: 68fb ldr r3, [r7, #12]
  7435. 8002a62: 6a5b ldr r3, [r3, #36] @ 0x24
  7436. 8002a64: 687a ldr r2, [r7, #4]
  7437. 8002a66: 429a cmp r2, r3
  7438. 8002a68: d103 bne.n 8002a72 <TIM_DMACaptureHalfCplt+0x20>
  7439. {
  7440. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  7441. 8002a6a: 68fb ldr r3, [r7, #12]
  7442. 8002a6c: 2201 movs r2, #1
  7443. 8002a6e: 771a strb r2, [r3, #28]
  7444. 8002a70: e019 b.n 8002aa6 <TIM_DMACaptureHalfCplt+0x54>
  7445. }
  7446. else if (hdma == htim->hdma[TIM_DMA_ID_CC2])
  7447. 8002a72: 68fb ldr r3, [r7, #12]
  7448. 8002a74: 6a9b ldr r3, [r3, #40] @ 0x28
  7449. 8002a76: 687a ldr r2, [r7, #4]
  7450. 8002a78: 429a cmp r2, r3
  7451. 8002a7a: d103 bne.n 8002a84 <TIM_DMACaptureHalfCplt+0x32>
  7452. {
  7453. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  7454. 8002a7c: 68fb ldr r3, [r7, #12]
  7455. 8002a7e: 2202 movs r2, #2
  7456. 8002a80: 771a strb r2, [r3, #28]
  7457. 8002a82: e010 b.n 8002aa6 <TIM_DMACaptureHalfCplt+0x54>
  7458. }
  7459. else if (hdma == htim->hdma[TIM_DMA_ID_CC3])
  7460. 8002a84: 68fb ldr r3, [r7, #12]
  7461. 8002a86: 6adb ldr r3, [r3, #44] @ 0x2c
  7462. 8002a88: 687a ldr r2, [r7, #4]
  7463. 8002a8a: 429a cmp r2, r3
  7464. 8002a8c: d103 bne.n 8002a96 <TIM_DMACaptureHalfCplt+0x44>
  7465. {
  7466. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  7467. 8002a8e: 68fb ldr r3, [r7, #12]
  7468. 8002a90: 2204 movs r2, #4
  7469. 8002a92: 771a strb r2, [r3, #28]
  7470. 8002a94: e007 b.n 8002aa6 <TIM_DMACaptureHalfCplt+0x54>
  7471. }
  7472. else if (hdma == htim->hdma[TIM_DMA_ID_CC4])
  7473. 8002a96: 68fb ldr r3, [r7, #12]
  7474. 8002a98: 6b1b ldr r3, [r3, #48] @ 0x30
  7475. 8002a9a: 687a ldr r2, [r7, #4]
  7476. 8002a9c: 429a cmp r2, r3
  7477. 8002a9e: d102 bne.n 8002aa6 <TIM_DMACaptureHalfCplt+0x54>
  7478. {
  7479. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  7480. 8002aa0: 68fb ldr r3, [r7, #12]
  7481. 8002aa2: 2208 movs r2, #8
  7482. 8002aa4: 771a strb r2, [r3, #28]
  7483. }
  7484. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  7485. htim->IC_CaptureHalfCpltCallback(htim);
  7486. #else
  7487. HAL_TIM_IC_CaptureHalfCpltCallback(htim);
  7488. 8002aa6: 68fb ldr r3, [r7, #12]
  7489. 8002aa8: 0018 movs r0, r3
  7490. 8002aaa: f7ff ff13 bl 80028d4 <HAL_TIM_IC_CaptureHalfCpltCallback>
  7491. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  7492. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  7493. 8002aae: 68fb ldr r3, [r7, #12]
  7494. 8002ab0: 2200 movs r2, #0
  7495. 8002ab2: 771a strb r2, [r3, #28]
  7496. }
  7497. 8002ab4: 46c0 nop @ (mov r8, r8)
  7498. 8002ab6: 46bd mov sp, r7
  7499. 8002ab8: b004 add sp, #16
  7500. 8002aba: bd80 pop {r7, pc}
  7501. 08002abc <TIM_Base_SetConfig>:
  7502. * @param TIMx TIM peripheral
  7503. * @param Structure TIM Base configuration structure
  7504. * @retval None
  7505. */
  7506. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
  7507. {
  7508. 8002abc: b580 push {r7, lr}
  7509. 8002abe: b084 sub sp, #16
  7510. 8002ac0: af00 add r7, sp, #0
  7511. 8002ac2: 6078 str r0, [r7, #4]
  7512. 8002ac4: 6039 str r1, [r7, #0]
  7513. uint32_t tmpcr1;
  7514. tmpcr1 = TIMx->CR1;
  7515. 8002ac6: 687b ldr r3, [r7, #4]
  7516. 8002ac8: 681b ldr r3, [r3, #0]
  7517. 8002aca: 60fb str r3, [r7, #12]
  7518. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  7519. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  7520. 8002acc: 687b ldr r3, [r7, #4]
  7521. 8002ace: 4a32 ldr r2, [pc, #200] @ (8002b98 <TIM_Base_SetConfig+0xdc>)
  7522. 8002ad0: 4293 cmp r3, r2
  7523. 8002ad2: d003 beq.n 8002adc <TIM_Base_SetConfig+0x20>
  7524. 8002ad4: 687b ldr r3, [r7, #4]
  7525. 8002ad6: 4a31 ldr r2, [pc, #196] @ (8002b9c <TIM_Base_SetConfig+0xe0>)
  7526. 8002ad8: 4293 cmp r3, r2
  7527. 8002ada: d108 bne.n 8002aee <TIM_Base_SetConfig+0x32>
  7528. {
  7529. /* Select the Counter Mode */
  7530. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  7531. 8002adc: 68fb ldr r3, [r7, #12]
  7532. 8002ade: 2270 movs r2, #112 @ 0x70
  7533. 8002ae0: 4393 bics r3, r2
  7534. 8002ae2: 60fb str r3, [r7, #12]
  7535. tmpcr1 |= Structure->CounterMode;
  7536. 8002ae4: 683b ldr r3, [r7, #0]
  7537. 8002ae6: 685b ldr r3, [r3, #4]
  7538. 8002ae8: 68fa ldr r2, [r7, #12]
  7539. 8002aea: 4313 orrs r3, r2
  7540. 8002aec: 60fb str r3, [r7, #12]
  7541. }
  7542. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  7543. 8002aee: 687b ldr r3, [r7, #4]
  7544. 8002af0: 4a29 ldr r2, [pc, #164] @ (8002b98 <TIM_Base_SetConfig+0xdc>)
  7545. 8002af2: 4293 cmp r3, r2
  7546. 8002af4: d00f beq.n 8002b16 <TIM_Base_SetConfig+0x5a>
  7547. 8002af6: 687b ldr r3, [r7, #4]
  7548. 8002af8: 4a28 ldr r2, [pc, #160] @ (8002b9c <TIM_Base_SetConfig+0xe0>)
  7549. 8002afa: 4293 cmp r3, r2
  7550. 8002afc: d00b beq.n 8002b16 <TIM_Base_SetConfig+0x5a>
  7551. 8002afe: 687b ldr r3, [r7, #4]
  7552. 8002b00: 4a27 ldr r2, [pc, #156] @ (8002ba0 <TIM_Base_SetConfig+0xe4>)
  7553. 8002b02: 4293 cmp r3, r2
  7554. 8002b04: d007 beq.n 8002b16 <TIM_Base_SetConfig+0x5a>
  7555. 8002b06: 687b ldr r3, [r7, #4]
  7556. 8002b08: 4a26 ldr r2, [pc, #152] @ (8002ba4 <TIM_Base_SetConfig+0xe8>)
  7557. 8002b0a: 4293 cmp r3, r2
  7558. 8002b0c: d003 beq.n 8002b16 <TIM_Base_SetConfig+0x5a>
  7559. 8002b0e: 687b ldr r3, [r7, #4]
  7560. 8002b10: 4a25 ldr r2, [pc, #148] @ (8002ba8 <TIM_Base_SetConfig+0xec>)
  7561. 8002b12: 4293 cmp r3, r2
  7562. 8002b14: d108 bne.n 8002b28 <TIM_Base_SetConfig+0x6c>
  7563. {
  7564. /* Set the clock division */
  7565. tmpcr1 &= ~TIM_CR1_CKD;
  7566. 8002b16: 68fb ldr r3, [r7, #12]
  7567. 8002b18: 4a24 ldr r2, [pc, #144] @ (8002bac <TIM_Base_SetConfig+0xf0>)
  7568. 8002b1a: 4013 ands r3, r2
  7569. 8002b1c: 60fb str r3, [r7, #12]
  7570. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  7571. 8002b1e: 683b ldr r3, [r7, #0]
  7572. 8002b20: 68db ldr r3, [r3, #12]
  7573. 8002b22: 68fa ldr r2, [r7, #12]
  7574. 8002b24: 4313 orrs r3, r2
  7575. 8002b26: 60fb str r3, [r7, #12]
  7576. }
  7577. /* Set the auto-reload preload */
  7578. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  7579. 8002b28: 68fb ldr r3, [r7, #12]
  7580. 8002b2a: 2280 movs r2, #128 @ 0x80
  7581. 8002b2c: 4393 bics r3, r2
  7582. 8002b2e: 001a movs r2, r3
  7583. 8002b30: 683b ldr r3, [r7, #0]
  7584. 8002b32: 695b ldr r3, [r3, #20]
  7585. 8002b34: 4313 orrs r3, r2
  7586. 8002b36: 60fb str r3, [r7, #12]
  7587. TIMx->CR1 = tmpcr1;
  7588. 8002b38: 687b ldr r3, [r7, #4]
  7589. 8002b3a: 68fa ldr r2, [r7, #12]
  7590. 8002b3c: 601a str r2, [r3, #0]
  7591. /* Set the Autoreload value */
  7592. TIMx->ARR = (uint32_t)Structure->Period ;
  7593. 8002b3e: 683b ldr r3, [r7, #0]
  7594. 8002b40: 689a ldr r2, [r3, #8]
  7595. 8002b42: 687b ldr r3, [r7, #4]
  7596. 8002b44: 62da str r2, [r3, #44] @ 0x2c
  7597. /* Set the Prescaler value */
  7598. TIMx->PSC = Structure->Prescaler;
  7599. 8002b46: 683b ldr r3, [r7, #0]
  7600. 8002b48: 681a ldr r2, [r3, #0]
  7601. 8002b4a: 687b ldr r3, [r7, #4]
  7602. 8002b4c: 629a str r2, [r3, #40] @ 0x28
  7603. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  7604. 8002b4e: 687b ldr r3, [r7, #4]
  7605. 8002b50: 4a11 ldr r2, [pc, #68] @ (8002b98 <TIM_Base_SetConfig+0xdc>)
  7606. 8002b52: 4293 cmp r3, r2
  7607. 8002b54: d007 beq.n 8002b66 <TIM_Base_SetConfig+0xaa>
  7608. 8002b56: 687b ldr r3, [r7, #4]
  7609. 8002b58: 4a12 ldr r2, [pc, #72] @ (8002ba4 <TIM_Base_SetConfig+0xe8>)
  7610. 8002b5a: 4293 cmp r3, r2
  7611. 8002b5c: d003 beq.n 8002b66 <TIM_Base_SetConfig+0xaa>
  7612. 8002b5e: 687b ldr r3, [r7, #4]
  7613. 8002b60: 4a11 ldr r2, [pc, #68] @ (8002ba8 <TIM_Base_SetConfig+0xec>)
  7614. 8002b62: 4293 cmp r3, r2
  7615. 8002b64: d103 bne.n 8002b6e <TIM_Base_SetConfig+0xb2>
  7616. {
  7617. /* Set the Repetition Counter value */
  7618. TIMx->RCR = Structure->RepetitionCounter;
  7619. 8002b66: 683b ldr r3, [r7, #0]
  7620. 8002b68: 691a ldr r2, [r3, #16]
  7621. 8002b6a: 687b ldr r3, [r7, #4]
  7622. 8002b6c: 631a str r2, [r3, #48] @ 0x30
  7623. }
  7624. /* Generate an update event to reload the Prescaler
  7625. and the repetition counter (only for advanced timer) value immediately */
  7626. TIMx->EGR = TIM_EGR_UG;
  7627. 8002b6e: 687b ldr r3, [r7, #4]
  7628. 8002b70: 2201 movs r2, #1
  7629. 8002b72: 615a str r2, [r3, #20]
  7630. /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */
  7631. if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE))
  7632. 8002b74: 687b ldr r3, [r7, #4]
  7633. 8002b76: 691b ldr r3, [r3, #16]
  7634. 8002b78: 2201 movs r2, #1
  7635. 8002b7a: 4013 ands r3, r2
  7636. 8002b7c: 2b01 cmp r3, #1
  7637. 8002b7e: d106 bne.n 8002b8e <TIM_Base_SetConfig+0xd2>
  7638. {
  7639. /* Clear the update flag */
  7640. CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE);
  7641. 8002b80: 687b ldr r3, [r7, #4]
  7642. 8002b82: 691b ldr r3, [r3, #16]
  7643. 8002b84: 2201 movs r2, #1
  7644. 8002b86: 4393 bics r3, r2
  7645. 8002b88: 001a movs r2, r3
  7646. 8002b8a: 687b ldr r3, [r7, #4]
  7647. 8002b8c: 611a str r2, [r3, #16]
  7648. }
  7649. }
  7650. 8002b8e: 46c0 nop @ (mov r8, r8)
  7651. 8002b90: 46bd mov sp, r7
  7652. 8002b92: b004 add sp, #16
  7653. 8002b94: bd80 pop {r7, pc}
  7654. 8002b96: 46c0 nop @ (mov r8, r8)
  7655. 8002b98: 40012c00 .word 0x40012c00
  7656. 8002b9c: 40000400 .word 0x40000400
  7657. 8002ba0: 40002000 .word 0x40002000
  7658. 8002ba4: 40014400 .word 0x40014400
  7659. 8002ba8: 40014800 .word 0x40014800
  7660. 8002bac: fffffcff .word 0xfffffcff
  7661. 08002bb0 <TIM_TI1_SetConfig>:
  7662. * (on channel2 path) is used as the input signal. Therefore CCMR1 must be
  7663. * protected against un-initialized filter and polarity values.
  7664. */
  7665. void TIM_TI1_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  7666. uint32_t TIM_ICFilter)
  7667. {
  7668. 8002bb0: b580 push {r7, lr}
  7669. 8002bb2: b086 sub sp, #24
  7670. 8002bb4: af00 add r7, sp, #0
  7671. 8002bb6: 60f8 str r0, [r7, #12]
  7672. 8002bb8: 60b9 str r1, [r7, #8]
  7673. 8002bba: 607a str r2, [r7, #4]
  7674. 8002bbc: 603b str r3, [r7, #0]
  7675. uint32_t tmpccmr1;
  7676. uint32_t tmpccer;
  7677. /* Disable the Channel 1: Reset the CC1E Bit */
  7678. tmpccer = TIMx->CCER;
  7679. 8002bbe: 68fb ldr r3, [r7, #12]
  7680. 8002bc0: 6a1b ldr r3, [r3, #32]
  7681. 8002bc2: 613b str r3, [r7, #16]
  7682. TIMx->CCER &= ~TIM_CCER_CC1E;
  7683. 8002bc4: 68fb ldr r3, [r7, #12]
  7684. 8002bc6: 6a1b ldr r3, [r3, #32]
  7685. 8002bc8: 2201 movs r2, #1
  7686. 8002bca: 4393 bics r3, r2
  7687. 8002bcc: 001a movs r2, r3
  7688. 8002bce: 68fb ldr r3, [r7, #12]
  7689. 8002bd0: 621a str r2, [r3, #32]
  7690. tmpccmr1 = TIMx->CCMR1;
  7691. 8002bd2: 68fb ldr r3, [r7, #12]
  7692. 8002bd4: 699b ldr r3, [r3, #24]
  7693. 8002bd6: 617b str r3, [r7, #20]
  7694. /* Select the Input */
  7695. if (IS_TIM_CC2_INSTANCE(TIMx) != RESET)
  7696. 8002bd8: 68fb ldr r3, [r7, #12]
  7697. 8002bda: 4a1c ldr r2, [pc, #112] @ (8002c4c <TIM_TI1_SetConfig+0x9c>)
  7698. 8002bdc: 4293 cmp r3, r2
  7699. 8002bde: d003 beq.n 8002be8 <TIM_TI1_SetConfig+0x38>
  7700. 8002be0: 68fb ldr r3, [r7, #12]
  7701. 8002be2: 4a1b ldr r2, [pc, #108] @ (8002c50 <TIM_TI1_SetConfig+0xa0>)
  7702. 8002be4: 4293 cmp r3, r2
  7703. 8002be6: d101 bne.n 8002bec <TIM_TI1_SetConfig+0x3c>
  7704. 8002be8: 2301 movs r3, #1
  7705. 8002bea: e000 b.n 8002bee <TIM_TI1_SetConfig+0x3e>
  7706. 8002bec: 2300 movs r3, #0
  7707. 8002bee: 2b00 cmp r3, #0
  7708. 8002bf0: d008 beq.n 8002c04 <TIM_TI1_SetConfig+0x54>
  7709. {
  7710. tmpccmr1 &= ~TIM_CCMR1_CC1S;
  7711. 8002bf2: 697b ldr r3, [r7, #20]
  7712. 8002bf4: 2203 movs r2, #3
  7713. 8002bf6: 4393 bics r3, r2
  7714. 8002bf8: 617b str r3, [r7, #20]
  7715. tmpccmr1 |= TIM_ICSelection;
  7716. 8002bfa: 697a ldr r2, [r7, #20]
  7717. 8002bfc: 687b ldr r3, [r7, #4]
  7718. 8002bfe: 4313 orrs r3, r2
  7719. 8002c00: 617b str r3, [r7, #20]
  7720. 8002c02: e003 b.n 8002c0c <TIM_TI1_SetConfig+0x5c>
  7721. }
  7722. else
  7723. {
  7724. tmpccmr1 |= TIM_CCMR1_CC1S_0;
  7725. 8002c04: 697b ldr r3, [r7, #20]
  7726. 8002c06: 2201 movs r2, #1
  7727. 8002c08: 4313 orrs r3, r2
  7728. 8002c0a: 617b str r3, [r7, #20]
  7729. }
  7730. /* Set the filter */
  7731. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  7732. 8002c0c: 697b ldr r3, [r7, #20]
  7733. 8002c0e: 22f0 movs r2, #240 @ 0xf0
  7734. 8002c10: 4393 bics r3, r2
  7735. 8002c12: 617b str r3, [r7, #20]
  7736. tmpccmr1 |= ((TIM_ICFilter << 4U) & TIM_CCMR1_IC1F);
  7737. 8002c14: 683b ldr r3, [r7, #0]
  7738. 8002c16: 011b lsls r3, r3, #4
  7739. 8002c18: 22ff movs r2, #255 @ 0xff
  7740. 8002c1a: 4013 ands r3, r2
  7741. 8002c1c: 697a ldr r2, [r7, #20]
  7742. 8002c1e: 4313 orrs r3, r2
  7743. 8002c20: 617b str r3, [r7, #20]
  7744. /* Select the Polarity and set the CC1E Bit */
  7745. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  7746. 8002c22: 693b ldr r3, [r7, #16]
  7747. 8002c24: 220a movs r2, #10
  7748. 8002c26: 4393 bics r3, r2
  7749. 8002c28: 613b str r3, [r7, #16]
  7750. tmpccer |= (TIM_ICPolarity & (TIM_CCER_CC1P | TIM_CCER_CC1NP));
  7751. 8002c2a: 68bb ldr r3, [r7, #8]
  7752. 8002c2c: 220a movs r2, #10
  7753. 8002c2e: 4013 ands r3, r2
  7754. 8002c30: 693a ldr r2, [r7, #16]
  7755. 8002c32: 4313 orrs r3, r2
  7756. 8002c34: 613b str r3, [r7, #16]
  7757. /* Write to TIMx CCMR1 and CCER registers */
  7758. TIMx->CCMR1 = tmpccmr1;
  7759. 8002c36: 68fb ldr r3, [r7, #12]
  7760. 8002c38: 697a ldr r2, [r7, #20]
  7761. 8002c3a: 619a str r2, [r3, #24]
  7762. TIMx->CCER = tmpccer;
  7763. 8002c3c: 68fb ldr r3, [r7, #12]
  7764. 8002c3e: 693a ldr r2, [r7, #16]
  7765. 8002c40: 621a str r2, [r3, #32]
  7766. }
  7767. 8002c42: 46c0 nop @ (mov r8, r8)
  7768. 8002c44: 46bd mov sp, r7
  7769. 8002c46: b006 add sp, #24
  7770. 8002c48: bd80 pop {r7, pc}
  7771. 8002c4a: 46c0 nop @ (mov r8, r8)
  7772. 8002c4c: 40012c00 .word 0x40012c00
  7773. 8002c50: 40000400 .word 0x40000400
  7774. 08002c54 <TIM_TI1_ConfigInputStage>:
  7775. * @param TIM_ICFilter Specifies the Input Capture Filter.
  7776. * This parameter must be a value between 0x00 and 0x0F.
  7777. * @retval None
  7778. */
  7779. static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  7780. {
  7781. 8002c54: b580 push {r7, lr}
  7782. 8002c56: b086 sub sp, #24
  7783. 8002c58: af00 add r7, sp, #0
  7784. 8002c5a: 60f8 str r0, [r7, #12]
  7785. 8002c5c: 60b9 str r1, [r7, #8]
  7786. 8002c5e: 607a str r2, [r7, #4]
  7787. uint32_t tmpccmr1;
  7788. uint32_t tmpccer;
  7789. /* Disable the Channel 1: Reset the CC1E Bit */
  7790. tmpccer = TIMx->CCER;
  7791. 8002c60: 68fb ldr r3, [r7, #12]
  7792. 8002c62: 6a1b ldr r3, [r3, #32]
  7793. 8002c64: 617b str r3, [r7, #20]
  7794. TIMx->CCER &= ~TIM_CCER_CC1E;
  7795. 8002c66: 68fb ldr r3, [r7, #12]
  7796. 8002c68: 6a1b ldr r3, [r3, #32]
  7797. 8002c6a: 2201 movs r2, #1
  7798. 8002c6c: 4393 bics r3, r2
  7799. 8002c6e: 001a movs r2, r3
  7800. 8002c70: 68fb ldr r3, [r7, #12]
  7801. 8002c72: 621a str r2, [r3, #32]
  7802. tmpccmr1 = TIMx->CCMR1;
  7803. 8002c74: 68fb ldr r3, [r7, #12]
  7804. 8002c76: 699b ldr r3, [r3, #24]
  7805. 8002c78: 613b str r3, [r7, #16]
  7806. /* Set the filter */
  7807. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  7808. 8002c7a: 693b ldr r3, [r7, #16]
  7809. 8002c7c: 22f0 movs r2, #240 @ 0xf0
  7810. 8002c7e: 4393 bics r3, r2
  7811. 8002c80: 613b str r3, [r7, #16]
  7812. tmpccmr1 |= (TIM_ICFilter << 4U);
  7813. 8002c82: 687b ldr r3, [r7, #4]
  7814. 8002c84: 011b lsls r3, r3, #4
  7815. 8002c86: 693a ldr r2, [r7, #16]
  7816. 8002c88: 4313 orrs r3, r2
  7817. 8002c8a: 613b str r3, [r7, #16]
  7818. /* Select the Polarity and set the CC1E Bit */
  7819. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  7820. 8002c8c: 697b ldr r3, [r7, #20]
  7821. 8002c8e: 220a movs r2, #10
  7822. 8002c90: 4393 bics r3, r2
  7823. 8002c92: 617b str r3, [r7, #20]
  7824. tmpccer |= TIM_ICPolarity;
  7825. 8002c94: 697a ldr r2, [r7, #20]
  7826. 8002c96: 68bb ldr r3, [r7, #8]
  7827. 8002c98: 4313 orrs r3, r2
  7828. 8002c9a: 617b str r3, [r7, #20]
  7829. /* Write to TIMx CCMR1 and CCER registers */
  7830. TIMx->CCMR1 = tmpccmr1;
  7831. 8002c9c: 68fb ldr r3, [r7, #12]
  7832. 8002c9e: 693a ldr r2, [r7, #16]
  7833. 8002ca0: 619a str r2, [r3, #24]
  7834. TIMx->CCER = tmpccer;
  7835. 8002ca2: 68fb ldr r3, [r7, #12]
  7836. 8002ca4: 697a ldr r2, [r7, #20]
  7837. 8002ca6: 621a str r2, [r3, #32]
  7838. }
  7839. 8002ca8: 46c0 nop @ (mov r8, r8)
  7840. 8002caa: 46bd mov sp, r7
  7841. 8002cac: b006 add sp, #24
  7842. 8002cae: bd80 pop {r7, pc}
  7843. 08002cb0 <TIM_TI2_SetConfig>:
  7844. * (on channel1 path) is used as the input signal. Therefore CCMR1 must be
  7845. * protected against un-initialized filter and polarity values.
  7846. */
  7847. static void TIM_TI2_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  7848. uint32_t TIM_ICFilter)
  7849. {
  7850. 8002cb0: b580 push {r7, lr}
  7851. 8002cb2: b086 sub sp, #24
  7852. 8002cb4: af00 add r7, sp, #0
  7853. 8002cb6: 60f8 str r0, [r7, #12]
  7854. 8002cb8: 60b9 str r1, [r7, #8]
  7855. 8002cba: 607a str r2, [r7, #4]
  7856. 8002cbc: 603b str r3, [r7, #0]
  7857. uint32_t tmpccmr1;
  7858. uint32_t tmpccer;
  7859. /* Disable the Channel 2: Reset the CC2E Bit */
  7860. tmpccer = TIMx->CCER;
  7861. 8002cbe: 68fb ldr r3, [r7, #12]
  7862. 8002cc0: 6a1b ldr r3, [r3, #32]
  7863. 8002cc2: 617b str r3, [r7, #20]
  7864. TIMx->CCER &= ~TIM_CCER_CC2E;
  7865. 8002cc4: 68fb ldr r3, [r7, #12]
  7866. 8002cc6: 6a1b ldr r3, [r3, #32]
  7867. 8002cc8: 2210 movs r2, #16
  7868. 8002cca: 4393 bics r3, r2
  7869. 8002ccc: 001a movs r2, r3
  7870. 8002cce: 68fb ldr r3, [r7, #12]
  7871. 8002cd0: 621a str r2, [r3, #32]
  7872. tmpccmr1 = TIMx->CCMR1;
  7873. 8002cd2: 68fb ldr r3, [r7, #12]
  7874. 8002cd4: 699b ldr r3, [r3, #24]
  7875. 8002cd6: 613b str r3, [r7, #16]
  7876. /* Select the Input */
  7877. tmpccmr1 &= ~TIM_CCMR1_CC2S;
  7878. 8002cd8: 693b ldr r3, [r7, #16]
  7879. 8002cda: 4a14 ldr r2, [pc, #80] @ (8002d2c <TIM_TI2_SetConfig+0x7c>)
  7880. 8002cdc: 4013 ands r3, r2
  7881. 8002cde: 613b str r3, [r7, #16]
  7882. tmpccmr1 |= (TIM_ICSelection << 8U);
  7883. 8002ce0: 687b ldr r3, [r7, #4]
  7884. 8002ce2: 021b lsls r3, r3, #8
  7885. 8002ce4: 693a ldr r2, [r7, #16]
  7886. 8002ce6: 4313 orrs r3, r2
  7887. 8002ce8: 613b str r3, [r7, #16]
  7888. /* Set the filter */
  7889. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  7890. 8002cea: 693b ldr r3, [r7, #16]
  7891. 8002cec: 4a10 ldr r2, [pc, #64] @ (8002d30 <TIM_TI2_SetConfig+0x80>)
  7892. 8002cee: 4013 ands r3, r2
  7893. 8002cf0: 613b str r3, [r7, #16]
  7894. tmpccmr1 |= ((TIM_ICFilter << 12U) & TIM_CCMR1_IC2F);
  7895. 8002cf2: 683b ldr r3, [r7, #0]
  7896. 8002cf4: 031b lsls r3, r3, #12
  7897. 8002cf6: 041b lsls r3, r3, #16
  7898. 8002cf8: 0c1b lsrs r3, r3, #16
  7899. 8002cfa: 693a ldr r2, [r7, #16]
  7900. 8002cfc: 4313 orrs r3, r2
  7901. 8002cfe: 613b str r3, [r7, #16]
  7902. /* Select the Polarity and set the CC2E Bit */
  7903. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  7904. 8002d00: 697b ldr r3, [r7, #20]
  7905. 8002d02: 22a0 movs r2, #160 @ 0xa0
  7906. 8002d04: 4393 bics r3, r2
  7907. 8002d06: 617b str r3, [r7, #20]
  7908. tmpccer |= ((TIM_ICPolarity << 4U) & (TIM_CCER_CC2P | TIM_CCER_CC2NP));
  7909. 8002d08: 68bb ldr r3, [r7, #8]
  7910. 8002d0a: 011b lsls r3, r3, #4
  7911. 8002d0c: 22a0 movs r2, #160 @ 0xa0
  7912. 8002d0e: 4013 ands r3, r2
  7913. 8002d10: 697a ldr r2, [r7, #20]
  7914. 8002d12: 4313 orrs r3, r2
  7915. 8002d14: 617b str r3, [r7, #20]
  7916. /* Write to TIMx CCMR1 and CCER registers */
  7917. TIMx->CCMR1 = tmpccmr1 ;
  7918. 8002d16: 68fb ldr r3, [r7, #12]
  7919. 8002d18: 693a ldr r2, [r7, #16]
  7920. 8002d1a: 619a str r2, [r3, #24]
  7921. TIMx->CCER = tmpccer;
  7922. 8002d1c: 68fb ldr r3, [r7, #12]
  7923. 8002d1e: 697a ldr r2, [r7, #20]
  7924. 8002d20: 621a str r2, [r3, #32]
  7925. }
  7926. 8002d22: 46c0 nop @ (mov r8, r8)
  7927. 8002d24: 46bd mov sp, r7
  7928. 8002d26: b006 add sp, #24
  7929. 8002d28: bd80 pop {r7, pc}
  7930. 8002d2a: 46c0 nop @ (mov r8, r8)
  7931. 8002d2c: fffffcff .word 0xfffffcff
  7932. 8002d30: ffff0fff .word 0xffff0fff
  7933. 08002d34 <TIM_TI2_ConfigInputStage>:
  7934. * @param TIM_ICFilter Specifies the Input Capture Filter.
  7935. * This parameter must be a value between 0x00 and 0x0F.
  7936. * @retval None
  7937. */
  7938. static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  7939. {
  7940. 8002d34: b580 push {r7, lr}
  7941. 8002d36: b086 sub sp, #24
  7942. 8002d38: af00 add r7, sp, #0
  7943. 8002d3a: 60f8 str r0, [r7, #12]
  7944. 8002d3c: 60b9 str r1, [r7, #8]
  7945. 8002d3e: 607a str r2, [r7, #4]
  7946. uint32_t tmpccmr1;
  7947. uint32_t tmpccer;
  7948. /* Disable the Channel 2: Reset the CC2E Bit */
  7949. tmpccer = TIMx->CCER;
  7950. 8002d40: 68fb ldr r3, [r7, #12]
  7951. 8002d42: 6a1b ldr r3, [r3, #32]
  7952. 8002d44: 617b str r3, [r7, #20]
  7953. TIMx->CCER &= ~TIM_CCER_CC2E;
  7954. 8002d46: 68fb ldr r3, [r7, #12]
  7955. 8002d48: 6a1b ldr r3, [r3, #32]
  7956. 8002d4a: 2210 movs r2, #16
  7957. 8002d4c: 4393 bics r3, r2
  7958. 8002d4e: 001a movs r2, r3
  7959. 8002d50: 68fb ldr r3, [r7, #12]
  7960. 8002d52: 621a str r2, [r3, #32]
  7961. tmpccmr1 = TIMx->CCMR1;
  7962. 8002d54: 68fb ldr r3, [r7, #12]
  7963. 8002d56: 699b ldr r3, [r3, #24]
  7964. 8002d58: 613b str r3, [r7, #16]
  7965. /* Set the filter */
  7966. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  7967. 8002d5a: 693b ldr r3, [r7, #16]
  7968. 8002d5c: 4a0d ldr r2, [pc, #52] @ (8002d94 <TIM_TI2_ConfigInputStage+0x60>)
  7969. 8002d5e: 4013 ands r3, r2
  7970. 8002d60: 613b str r3, [r7, #16]
  7971. tmpccmr1 |= (TIM_ICFilter << 12U);
  7972. 8002d62: 687b ldr r3, [r7, #4]
  7973. 8002d64: 031b lsls r3, r3, #12
  7974. 8002d66: 693a ldr r2, [r7, #16]
  7975. 8002d68: 4313 orrs r3, r2
  7976. 8002d6a: 613b str r3, [r7, #16]
  7977. /* Select the Polarity and set the CC2E Bit */
  7978. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  7979. 8002d6c: 697b ldr r3, [r7, #20]
  7980. 8002d6e: 22a0 movs r2, #160 @ 0xa0
  7981. 8002d70: 4393 bics r3, r2
  7982. 8002d72: 617b str r3, [r7, #20]
  7983. tmpccer |= (TIM_ICPolarity << 4U);
  7984. 8002d74: 68bb ldr r3, [r7, #8]
  7985. 8002d76: 011b lsls r3, r3, #4
  7986. 8002d78: 697a ldr r2, [r7, #20]
  7987. 8002d7a: 4313 orrs r3, r2
  7988. 8002d7c: 617b str r3, [r7, #20]
  7989. /* Write to TIMx CCMR1 and CCER registers */
  7990. TIMx->CCMR1 = tmpccmr1 ;
  7991. 8002d7e: 68fb ldr r3, [r7, #12]
  7992. 8002d80: 693a ldr r2, [r7, #16]
  7993. 8002d82: 619a str r2, [r3, #24]
  7994. TIMx->CCER = tmpccer;
  7995. 8002d84: 68fb ldr r3, [r7, #12]
  7996. 8002d86: 697a ldr r2, [r7, #20]
  7997. 8002d88: 621a str r2, [r3, #32]
  7998. }
  7999. 8002d8a: 46c0 nop @ (mov r8, r8)
  8000. 8002d8c: 46bd mov sp, r7
  8001. 8002d8e: b006 add sp, #24
  8002. 8002d90: bd80 pop {r7, pc}
  8003. 8002d92: 46c0 nop @ (mov r8, r8)
  8004. 8002d94: ffff0fff .word 0xffff0fff
  8005. 08002d98 <TIM_TI3_SetConfig>:
  8006. * (on channel1 path) is used as the input signal. Therefore CCMR2 must be
  8007. * protected against un-initialized filter and polarity values.
  8008. */
  8009. static void TIM_TI3_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  8010. uint32_t TIM_ICFilter)
  8011. {
  8012. 8002d98: b580 push {r7, lr}
  8013. 8002d9a: b086 sub sp, #24
  8014. 8002d9c: af00 add r7, sp, #0
  8015. 8002d9e: 60f8 str r0, [r7, #12]
  8016. 8002da0: 60b9 str r1, [r7, #8]
  8017. 8002da2: 607a str r2, [r7, #4]
  8018. 8002da4: 603b str r3, [r7, #0]
  8019. uint32_t tmpccmr2;
  8020. uint32_t tmpccer;
  8021. /* Disable the Channel 3: Reset the CC3E Bit */
  8022. tmpccer = TIMx->CCER;
  8023. 8002da6: 68fb ldr r3, [r7, #12]
  8024. 8002da8: 6a1b ldr r3, [r3, #32]
  8025. 8002daa: 617b str r3, [r7, #20]
  8026. TIMx->CCER &= ~TIM_CCER_CC3E;
  8027. 8002dac: 68fb ldr r3, [r7, #12]
  8028. 8002dae: 6a1b ldr r3, [r3, #32]
  8029. 8002db0: 4a17 ldr r2, [pc, #92] @ (8002e10 <TIM_TI3_SetConfig+0x78>)
  8030. 8002db2: 401a ands r2, r3
  8031. 8002db4: 68fb ldr r3, [r7, #12]
  8032. 8002db6: 621a str r2, [r3, #32]
  8033. tmpccmr2 = TIMx->CCMR2;
  8034. 8002db8: 68fb ldr r3, [r7, #12]
  8035. 8002dba: 69db ldr r3, [r3, #28]
  8036. 8002dbc: 613b str r3, [r7, #16]
  8037. /* Select the Input */
  8038. tmpccmr2 &= ~TIM_CCMR2_CC3S;
  8039. 8002dbe: 693b ldr r3, [r7, #16]
  8040. 8002dc0: 2203 movs r2, #3
  8041. 8002dc2: 4393 bics r3, r2
  8042. 8002dc4: 613b str r3, [r7, #16]
  8043. tmpccmr2 |= TIM_ICSelection;
  8044. 8002dc6: 693a ldr r2, [r7, #16]
  8045. 8002dc8: 687b ldr r3, [r7, #4]
  8046. 8002dca: 4313 orrs r3, r2
  8047. 8002dcc: 613b str r3, [r7, #16]
  8048. /* Set the filter */
  8049. tmpccmr2 &= ~TIM_CCMR2_IC3F;
  8050. 8002dce: 693b ldr r3, [r7, #16]
  8051. 8002dd0: 22f0 movs r2, #240 @ 0xf0
  8052. 8002dd2: 4393 bics r3, r2
  8053. 8002dd4: 613b str r3, [r7, #16]
  8054. tmpccmr2 |= ((TIM_ICFilter << 4U) & TIM_CCMR2_IC3F);
  8055. 8002dd6: 683b ldr r3, [r7, #0]
  8056. 8002dd8: 011b lsls r3, r3, #4
  8057. 8002dda: 22ff movs r2, #255 @ 0xff
  8058. 8002ddc: 4013 ands r3, r2
  8059. 8002dde: 693a ldr r2, [r7, #16]
  8060. 8002de0: 4313 orrs r3, r2
  8061. 8002de2: 613b str r3, [r7, #16]
  8062. /* Select the Polarity and set the CC3E Bit */
  8063. tmpccer &= ~(TIM_CCER_CC3P | TIM_CCER_CC3NP);
  8064. 8002de4: 697b ldr r3, [r7, #20]
  8065. 8002de6: 4a0b ldr r2, [pc, #44] @ (8002e14 <TIM_TI3_SetConfig+0x7c>)
  8066. 8002de8: 4013 ands r3, r2
  8067. 8002dea: 617b str r3, [r7, #20]
  8068. tmpccer |= ((TIM_ICPolarity << 8U) & (TIM_CCER_CC3P | TIM_CCER_CC3NP));
  8069. 8002dec: 68bb ldr r3, [r7, #8]
  8070. 8002dee: 021a lsls r2, r3, #8
  8071. 8002df0: 23a0 movs r3, #160 @ 0xa0
  8072. 8002df2: 011b lsls r3, r3, #4
  8073. 8002df4: 4013 ands r3, r2
  8074. 8002df6: 697a ldr r2, [r7, #20]
  8075. 8002df8: 4313 orrs r3, r2
  8076. 8002dfa: 617b str r3, [r7, #20]
  8077. /* Write to TIMx CCMR2 and CCER registers */
  8078. TIMx->CCMR2 = tmpccmr2;
  8079. 8002dfc: 68fb ldr r3, [r7, #12]
  8080. 8002dfe: 693a ldr r2, [r7, #16]
  8081. 8002e00: 61da str r2, [r3, #28]
  8082. TIMx->CCER = tmpccer;
  8083. 8002e02: 68fb ldr r3, [r7, #12]
  8084. 8002e04: 697a ldr r2, [r7, #20]
  8085. 8002e06: 621a str r2, [r3, #32]
  8086. }
  8087. 8002e08: 46c0 nop @ (mov r8, r8)
  8088. 8002e0a: 46bd mov sp, r7
  8089. 8002e0c: b006 add sp, #24
  8090. 8002e0e: bd80 pop {r7, pc}
  8091. 8002e10: fffffeff .word 0xfffffeff
  8092. 8002e14: fffff5ff .word 0xfffff5ff
  8093. 08002e18 <TIM_TI4_SetConfig>:
  8094. * protected against un-initialized filter and polarity values.
  8095. * @retval None
  8096. */
  8097. static void TIM_TI4_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICSelection,
  8098. uint32_t TIM_ICFilter)
  8099. {
  8100. 8002e18: b580 push {r7, lr}
  8101. 8002e1a: b086 sub sp, #24
  8102. 8002e1c: af00 add r7, sp, #0
  8103. 8002e1e: 60f8 str r0, [r7, #12]
  8104. 8002e20: 60b9 str r1, [r7, #8]
  8105. 8002e22: 607a str r2, [r7, #4]
  8106. 8002e24: 603b str r3, [r7, #0]
  8107. uint32_t tmpccmr2;
  8108. uint32_t tmpccer;
  8109. /* Disable the Channel 4: Reset the CC4E Bit */
  8110. tmpccer = TIMx->CCER;
  8111. 8002e26: 68fb ldr r3, [r7, #12]
  8112. 8002e28: 6a1b ldr r3, [r3, #32]
  8113. 8002e2a: 617b str r3, [r7, #20]
  8114. TIMx->CCER &= ~TIM_CCER_CC4E;
  8115. 8002e2c: 68fb ldr r3, [r7, #12]
  8116. 8002e2e: 6a1b ldr r3, [r3, #32]
  8117. 8002e30: 4a18 ldr r2, [pc, #96] @ (8002e94 <TIM_TI4_SetConfig+0x7c>)
  8118. 8002e32: 401a ands r2, r3
  8119. 8002e34: 68fb ldr r3, [r7, #12]
  8120. 8002e36: 621a str r2, [r3, #32]
  8121. tmpccmr2 = TIMx->CCMR2;
  8122. 8002e38: 68fb ldr r3, [r7, #12]
  8123. 8002e3a: 69db ldr r3, [r3, #28]
  8124. 8002e3c: 613b str r3, [r7, #16]
  8125. /* Select the Input */
  8126. tmpccmr2 &= ~TIM_CCMR2_CC4S;
  8127. 8002e3e: 693b ldr r3, [r7, #16]
  8128. 8002e40: 4a15 ldr r2, [pc, #84] @ (8002e98 <TIM_TI4_SetConfig+0x80>)
  8129. 8002e42: 4013 ands r3, r2
  8130. 8002e44: 613b str r3, [r7, #16]
  8131. tmpccmr2 |= (TIM_ICSelection << 8U);
  8132. 8002e46: 687b ldr r3, [r7, #4]
  8133. 8002e48: 021b lsls r3, r3, #8
  8134. 8002e4a: 693a ldr r2, [r7, #16]
  8135. 8002e4c: 4313 orrs r3, r2
  8136. 8002e4e: 613b str r3, [r7, #16]
  8137. /* Set the filter */
  8138. tmpccmr2 &= ~TIM_CCMR2_IC4F;
  8139. 8002e50: 693b ldr r3, [r7, #16]
  8140. 8002e52: 4a12 ldr r2, [pc, #72] @ (8002e9c <TIM_TI4_SetConfig+0x84>)
  8141. 8002e54: 4013 ands r3, r2
  8142. 8002e56: 613b str r3, [r7, #16]
  8143. tmpccmr2 |= ((TIM_ICFilter << 12U) & TIM_CCMR2_IC4F);
  8144. 8002e58: 683b ldr r3, [r7, #0]
  8145. 8002e5a: 031b lsls r3, r3, #12
  8146. 8002e5c: 041b lsls r3, r3, #16
  8147. 8002e5e: 0c1b lsrs r3, r3, #16
  8148. 8002e60: 693a ldr r2, [r7, #16]
  8149. 8002e62: 4313 orrs r3, r2
  8150. 8002e64: 613b str r3, [r7, #16]
  8151. /* Select the Polarity and set the CC4E Bit */
  8152. tmpccer &= ~(TIM_CCER_CC4P | TIM_CCER_CC4NP);
  8153. 8002e66: 697b ldr r3, [r7, #20]
  8154. 8002e68: 4a0d ldr r2, [pc, #52] @ (8002ea0 <TIM_TI4_SetConfig+0x88>)
  8155. 8002e6a: 4013 ands r3, r2
  8156. 8002e6c: 617b str r3, [r7, #20]
  8157. tmpccer |= ((TIM_ICPolarity << 12U) & (TIM_CCER_CC4P | TIM_CCER_CC4NP));
  8158. 8002e6e: 68bb ldr r3, [r7, #8]
  8159. 8002e70: 031a lsls r2, r3, #12
  8160. 8002e72: 23a0 movs r3, #160 @ 0xa0
  8161. 8002e74: 021b lsls r3, r3, #8
  8162. 8002e76: 4013 ands r3, r2
  8163. 8002e78: 697a ldr r2, [r7, #20]
  8164. 8002e7a: 4313 orrs r3, r2
  8165. 8002e7c: 617b str r3, [r7, #20]
  8166. /* Write to TIMx CCMR2 and CCER registers */
  8167. TIMx->CCMR2 = tmpccmr2;
  8168. 8002e7e: 68fb ldr r3, [r7, #12]
  8169. 8002e80: 693a ldr r2, [r7, #16]
  8170. 8002e82: 61da str r2, [r3, #28]
  8171. TIMx->CCER = tmpccer ;
  8172. 8002e84: 68fb ldr r3, [r7, #12]
  8173. 8002e86: 697a ldr r2, [r7, #20]
  8174. 8002e88: 621a str r2, [r3, #32]
  8175. }
  8176. 8002e8a: 46c0 nop @ (mov r8, r8)
  8177. 8002e8c: 46bd mov sp, r7
  8178. 8002e8e: b006 add sp, #24
  8179. 8002e90: bd80 pop {r7, pc}
  8180. 8002e92: 46c0 nop @ (mov r8, r8)
  8181. 8002e94: ffffefff .word 0xffffefff
  8182. 8002e98: fffffcff .word 0xfffffcff
  8183. 8002e9c: ffff0fff .word 0xffff0fff
  8184. 8002ea0: ffff5fff .word 0xffff5fff
  8185. 08002ea4 <TIM_ITRx_SetConfig>:
  8186. * @arg TIM_TS_TI2FP2: Filtered Timer Input 2
  8187. * @arg TIM_TS_ETRF: External Trigger input
  8188. * @retval None
  8189. */
  8190. static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
  8191. {
  8192. 8002ea4: b580 push {r7, lr}
  8193. 8002ea6: b084 sub sp, #16
  8194. 8002ea8: af00 add r7, sp, #0
  8195. 8002eaa: 6078 str r0, [r7, #4]
  8196. 8002eac: 6039 str r1, [r7, #0]
  8197. uint32_t tmpsmcr;
  8198. /* Get the TIMx SMCR register value */
  8199. tmpsmcr = TIMx->SMCR;
  8200. 8002eae: 687b ldr r3, [r7, #4]
  8201. 8002eb0: 689b ldr r3, [r3, #8]
  8202. 8002eb2: 60fb str r3, [r7, #12]
  8203. /* Reset the TS Bits */
  8204. tmpsmcr &= ~TIM_SMCR_TS;
  8205. 8002eb4: 68fb ldr r3, [r7, #12]
  8206. 8002eb6: 4a08 ldr r2, [pc, #32] @ (8002ed8 <TIM_ITRx_SetConfig+0x34>)
  8207. 8002eb8: 4013 ands r3, r2
  8208. 8002eba: 60fb str r3, [r7, #12]
  8209. /* Set the Input Trigger source and the slave mode*/
  8210. tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
  8211. 8002ebc: 683a ldr r2, [r7, #0]
  8212. 8002ebe: 68fb ldr r3, [r7, #12]
  8213. 8002ec0: 4313 orrs r3, r2
  8214. 8002ec2: 2207 movs r2, #7
  8215. 8002ec4: 4313 orrs r3, r2
  8216. 8002ec6: 60fb str r3, [r7, #12]
  8217. /* Write to TIMx SMCR */
  8218. TIMx->SMCR = tmpsmcr;
  8219. 8002ec8: 687b ldr r3, [r7, #4]
  8220. 8002eca: 68fa ldr r2, [r7, #12]
  8221. 8002ecc: 609a str r2, [r3, #8]
  8222. }
  8223. 8002ece: 46c0 nop @ (mov r8, r8)
  8224. 8002ed0: 46bd mov sp, r7
  8225. 8002ed2: b004 add sp, #16
  8226. 8002ed4: bd80 pop {r7, pc}
  8227. 8002ed6: 46c0 nop @ (mov r8, r8)
  8228. 8002ed8: ffcfff8f .word 0xffcfff8f
  8229. 08002edc <TIM_ETR_SetConfig>:
  8230. * This parameter must be a value between 0x00 and 0x0F
  8231. * @retval None
  8232. */
  8233. void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
  8234. uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
  8235. {
  8236. 8002edc: b580 push {r7, lr}
  8237. 8002ede: b086 sub sp, #24
  8238. 8002ee0: af00 add r7, sp, #0
  8239. 8002ee2: 60f8 str r0, [r7, #12]
  8240. 8002ee4: 60b9 str r1, [r7, #8]
  8241. 8002ee6: 607a str r2, [r7, #4]
  8242. 8002ee8: 603b str r3, [r7, #0]
  8243. uint32_t tmpsmcr;
  8244. tmpsmcr = TIMx->SMCR;
  8245. 8002eea: 68fb ldr r3, [r7, #12]
  8246. 8002eec: 689b ldr r3, [r3, #8]
  8247. 8002eee: 617b str r3, [r7, #20]
  8248. /* Reset the ETR Bits */
  8249. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  8250. 8002ef0: 697b ldr r3, [r7, #20]
  8251. 8002ef2: 4a09 ldr r2, [pc, #36] @ (8002f18 <TIM_ETR_SetConfig+0x3c>)
  8252. 8002ef4: 4013 ands r3, r2
  8253. 8002ef6: 617b str r3, [r7, #20]
  8254. /* Set the Prescaler, the Filter value and the Polarity */
  8255. tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
  8256. 8002ef8: 683b ldr r3, [r7, #0]
  8257. 8002efa: 021a lsls r2, r3, #8
  8258. 8002efc: 687b ldr r3, [r7, #4]
  8259. 8002efe: 431a orrs r2, r3
  8260. 8002f00: 68bb ldr r3, [r7, #8]
  8261. 8002f02: 4313 orrs r3, r2
  8262. 8002f04: 697a ldr r2, [r7, #20]
  8263. 8002f06: 4313 orrs r3, r2
  8264. 8002f08: 617b str r3, [r7, #20]
  8265. /* Write to TIMx SMCR */
  8266. TIMx->SMCR = tmpsmcr;
  8267. 8002f0a: 68fb ldr r3, [r7, #12]
  8268. 8002f0c: 697a ldr r2, [r7, #20]
  8269. 8002f0e: 609a str r2, [r3, #8]
  8270. }
  8271. 8002f10: 46c0 nop @ (mov r8, r8)
  8272. 8002f12: 46bd mov sp, r7
  8273. 8002f14: b006 add sp, #24
  8274. 8002f16: bd80 pop {r7, pc}
  8275. 8002f18: ffff00ff .word 0xffff00ff
  8276. 08002f1c <TIM_CCxChannelCmd>:
  8277. * @param ChannelState specifies the TIM Channel CCxE bit new state.
  8278. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
  8279. * @retval None
  8280. */
  8281. void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
  8282. {
  8283. 8002f1c: b580 push {r7, lr}
  8284. 8002f1e: b086 sub sp, #24
  8285. 8002f20: af00 add r7, sp, #0
  8286. 8002f22: 60f8 str r0, [r7, #12]
  8287. 8002f24: 60b9 str r1, [r7, #8]
  8288. 8002f26: 607a str r2, [r7, #4]
  8289. /* Check the parameters */
  8290. assert_param(IS_TIM_CC1_INSTANCE(TIMx));
  8291. assert_param(IS_TIM_CHANNELS(Channel));
  8292. tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */
  8293. 8002f28: 68bb ldr r3, [r7, #8]
  8294. 8002f2a: 221f movs r2, #31
  8295. 8002f2c: 4013 ands r3, r2
  8296. 8002f2e: 2201 movs r2, #1
  8297. 8002f30: 409a lsls r2, r3
  8298. 8002f32: 0013 movs r3, r2
  8299. 8002f34: 617b str r3, [r7, #20]
  8300. /* Reset the CCxE Bit */
  8301. TIMx->CCER &= ~tmp;
  8302. 8002f36: 68fb ldr r3, [r7, #12]
  8303. 8002f38: 6a1b ldr r3, [r3, #32]
  8304. 8002f3a: 697a ldr r2, [r7, #20]
  8305. 8002f3c: 43d2 mvns r2, r2
  8306. 8002f3e: 401a ands r2, r3
  8307. 8002f40: 68fb ldr r3, [r7, #12]
  8308. 8002f42: 621a str r2, [r3, #32]
  8309. /* Set or reset the CCxE Bit */
  8310. TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */
  8311. 8002f44: 68fb ldr r3, [r7, #12]
  8312. 8002f46: 6a1a ldr r2, [r3, #32]
  8313. 8002f48: 68bb ldr r3, [r7, #8]
  8314. 8002f4a: 211f movs r1, #31
  8315. 8002f4c: 400b ands r3, r1
  8316. 8002f4e: 6879 ldr r1, [r7, #4]
  8317. 8002f50: 4099 lsls r1, r3
  8318. 8002f52: 000b movs r3, r1
  8319. 8002f54: 431a orrs r2, r3
  8320. 8002f56: 68fb ldr r3, [r7, #12]
  8321. 8002f58: 621a str r2, [r3, #32]
  8322. }
  8323. 8002f5a: 46c0 nop @ (mov r8, r8)
  8324. 8002f5c: 46bd mov sp, r7
  8325. 8002f5e: b006 add sp, #24
  8326. 8002f60: bd80 pop {r7, pc}
  8327. ...
  8328. 08002f64 <HAL_TIMEx_MasterConfigSynchronization>:
  8329. * mode.
  8330. * @retval HAL status
  8331. */
  8332. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  8333. const TIM_MasterConfigTypeDef *sMasterConfig)
  8334. {
  8335. 8002f64: b580 push {r7, lr}
  8336. 8002f66: b084 sub sp, #16
  8337. 8002f68: af00 add r7, sp, #0
  8338. 8002f6a: 6078 str r0, [r7, #4]
  8339. 8002f6c: 6039 str r1, [r7, #0]
  8340. assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance));
  8341. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  8342. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  8343. /* Check input state */
  8344. __HAL_LOCK(htim);
  8345. 8002f6e: 687b ldr r3, [r7, #4]
  8346. 8002f70: 223c movs r2, #60 @ 0x3c
  8347. 8002f72: 5c9b ldrb r3, [r3, r2]
  8348. 8002f74: 2b01 cmp r3, #1
  8349. 8002f76: d101 bne.n 8002f7c <HAL_TIMEx_MasterConfigSynchronization+0x18>
  8350. 8002f78: 2302 movs r3, #2
  8351. 8002f7a: e04a b.n 8003012 <HAL_TIMEx_MasterConfigSynchronization+0xae>
  8352. 8002f7c: 687b ldr r3, [r7, #4]
  8353. 8002f7e: 223c movs r2, #60 @ 0x3c
  8354. 8002f80: 2101 movs r1, #1
  8355. 8002f82: 5499 strb r1, [r3, r2]
  8356. /* Change the handler state */
  8357. htim->State = HAL_TIM_STATE_BUSY;
  8358. 8002f84: 687b ldr r3, [r7, #4]
  8359. 8002f86: 223d movs r2, #61 @ 0x3d
  8360. 8002f88: 2102 movs r1, #2
  8361. 8002f8a: 5499 strb r1, [r3, r2]
  8362. /* Get the TIMx CR2 register value */
  8363. tmpcr2 = htim->Instance->CR2;
  8364. 8002f8c: 687b ldr r3, [r7, #4]
  8365. 8002f8e: 681b ldr r3, [r3, #0]
  8366. 8002f90: 685b ldr r3, [r3, #4]
  8367. 8002f92: 60fb str r3, [r7, #12]
  8368. /* Get the TIMx SMCR register value */
  8369. tmpsmcr = htim->Instance->SMCR;
  8370. 8002f94: 687b ldr r3, [r7, #4]
  8371. 8002f96: 681b ldr r3, [r3, #0]
  8372. 8002f98: 689b ldr r3, [r3, #8]
  8373. 8002f9a: 60bb str r3, [r7, #8]
  8374. /* If the timer supports ADC synchronization through TRGO2, set the master mode selection 2 */
  8375. if (IS_TIM_TRGO2_INSTANCE(htim->Instance))
  8376. 8002f9c: 687b ldr r3, [r7, #4]
  8377. 8002f9e: 681b ldr r3, [r3, #0]
  8378. 8002fa0: 4a1e ldr r2, [pc, #120] @ (800301c <HAL_TIMEx_MasterConfigSynchronization+0xb8>)
  8379. 8002fa2: 4293 cmp r3, r2
  8380. 8002fa4: d108 bne.n 8002fb8 <HAL_TIMEx_MasterConfigSynchronization+0x54>
  8381. {
  8382. /* Check the parameters */
  8383. assert_param(IS_TIM_TRGO2_SOURCE(sMasterConfig->MasterOutputTrigger2));
  8384. /* Clear the MMS2 bits */
  8385. tmpcr2 &= ~TIM_CR2_MMS2;
  8386. 8002fa6: 68fb ldr r3, [r7, #12]
  8387. 8002fa8: 4a1d ldr r2, [pc, #116] @ (8003020 <HAL_TIMEx_MasterConfigSynchronization+0xbc>)
  8388. 8002faa: 4013 ands r3, r2
  8389. 8002fac: 60fb str r3, [r7, #12]
  8390. /* Select the TRGO2 source*/
  8391. tmpcr2 |= sMasterConfig->MasterOutputTrigger2;
  8392. 8002fae: 683b ldr r3, [r7, #0]
  8393. 8002fb0: 685b ldr r3, [r3, #4]
  8394. 8002fb2: 68fa ldr r2, [r7, #12]
  8395. 8002fb4: 4313 orrs r3, r2
  8396. 8002fb6: 60fb str r3, [r7, #12]
  8397. }
  8398. /* Reset the MMS Bits */
  8399. tmpcr2 &= ~TIM_CR2_MMS;
  8400. 8002fb8: 68fb ldr r3, [r7, #12]
  8401. 8002fba: 2270 movs r2, #112 @ 0x70
  8402. 8002fbc: 4393 bics r3, r2
  8403. 8002fbe: 60fb str r3, [r7, #12]
  8404. /* Select the TRGO source */
  8405. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  8406. 8002fc0: 683b ldr r3, [r7, #0]
  8407. 8002fc2: 681b ldr r3, [r3, #0]
  8408. 8002fc4: 68fa ldr r2, [r7, #12]
  8409. 8002fc6: 4313 orrs r3, r2
  8410. 8002fc8: 60fb str r3, [r7, #12]
  8411. /* Update TIMx CR2 */
  8412. htim->Instance->CR2 = tmpcr2;
  8413. 8002fca: 687b ldr r3, [r7, #4]
  8414. 8002fcc: 681b ldr r3, [r3, #0]
  8415. 8002fce: 68fa ldr r2, [r7, #12]
  8416. 8002fd0: 605a str r2, [r3, #4]
  8417. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  8418. 8002fd2: 687b ldr r3, [r7, #4]
  8419. 8002fd4: 681b ldr r3, [r3, #0]
  8420. 8002fd6: 4a11 ldr r2, [pc, #68] @ (800301c <HAL_TIMEx_MasterConfigSynchronization+0xb8>)
  8421. 8002fd8: 4293 cmp r3, r2
  8422. 8002fda: d004 beq.n 8002fe6 <HAL_TIMEx_MasterConfigSynchronization+0x82>
  8423. 8002fdc: 687b ldr r3, [r7, #4]
  8424. 8002fde: 681b ldr r3, [r3, #0]
  8425. 8002fe0: 4a10 ldr r2, [pc, #64] @ (8003024 <HAL_TIMEx_MasterConfigSynchronization+0xc0>)
  8426. 8002fe2: 4293 cmp r3, r2
  8427. 8002fe4: d10c bne.n 8003000 <HAL_TIMEx_MasterConfigSynchronization+0x9c>
  8428. {
  8429. /* Reset the MSM Bit */
  8430. tmpsmcr &= ~TIM_SMCR_MSM;
  8431. 8002fe6: 68bb ldr r3, [r7, #8]
  8432. 8002fe8: 2280 movs r2, #128 @ 0x80
  8433. 8002fea: 4393 bics r3, r2
  8434. 8002fec: 60bb str r3, [r7, #8]
  8435. /* Set master mode */
  8436. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  8437. 8002fee: 683b ldr r3, [r7, #0]
  8438. 8002ff0: 689b ldr r3, [r3, #8]
  8439. 8002ff2: 68ba ldr r2, [r7, #8]
  8440. 8002ff4: 4313 orrs r3, r2
  8441. 8002ff6: 60bb str r3, [r7, #8]
  8442. /* Update TIMx SMCR */
  8443. htim->Instance->SMCR = tmpsmcr;
  8444. 8002ff8: 687b ldr r3, [r7, #4]
  8445. 8002ffa: 681b ldr r3, [r3, #0]
  8446. 8002ffc: 68ba ldr r2, [r7, #8]
  8447. 8002ffe: 609a str r2, [r3, #8]
  8448. }
  8449. /* Change the htim state */
  8450. htim->State = HAL_TIM_STATE_READY;
  8451. 8003000: 687b ldr r3, [r7, #4]
  8452. 8003002: 223d movs r2, #61 @ 0x3d
  8453. 8003004: 2101 movs r1, #1
  8454. 8003006: 5499 strb r1, [r3, r2]
  8455. __HAL_UNLOCK(htim);
  8456. 8003008: 687b ldr r3, [r7, #4]
  8457. 800300a: 223c movs r2, #60 @ 0x3c
  8458. 800300c: 2100 movs r1, #0
  8459. 800300e: 5499 strb r1, [r3, r2]
  8460. return HAL_OK;
  8461. 8003010: 2300 movs r3, #0
  8462. }
  8463. 8003012: 0018 movs r0, r3
  8464. 8003014: 46bd mov sp, r7
  8465. 8003016: b004 add sp, #16
  8466. 8003018: bd80 pop {r7, pc}
  8467. 800301a: 46c0 nop @ (mov r8, r8)
  8468. 800301c: 40012c00 .word 0x40012c00
  8469. 8003020: ff0fffff .word 0xff0fffff
  8470. 8003024: 40000400 .word 0x40000400
  8471. 08003028 <memset>:
  8472. 8003028: 0003 movs r3, r0
  8473. 800302a: 1882 adds r2, r0, r2
  8474. 800302c: 4293 cmp r3, r2
  8475. 800302e: d100 bne.n 8003032 <memset+0xa>
  8476. 8003030: 4770 bx lr
  8477. 8003032: 7019 strb r1, [r3, #0]
  8478. 8003034: 3301 adds r3, #1
  8479. 8003036: e7f9 b.n 800302c <memset+0x4>
  8480. 08003038 <__libc_init_array>:
  8481. 8003038: b570 push {r4, r5, r6, lr}
  8482. 800303a: 2600 movs r6, #0
  8483. 800303c: 4c0c ldr r4, [pc, #48] @ (8003070 <__libc_init_array+0x38>)
  8484. 800303e: 4d0d ldr r5, [pc, #52] @ (8003074 <__libc_init_array+0x3c>)
  8485. 8003040: 1b64 subs r4, r4, r5
  8486. 8003042: 10a4 asrs r4, r4, #2
  8487. 8003044: 42a6 cmp r6, r4
  8488. 8003046: d109 bne.n 800305c <__libc_init_array+0x24>
  8489. 8003048: 2600 movs r6, #0
  8490. 800304a: f000 f819 bl 8003080 <_init>
  8491. 800304e: 4c0a ldr r4, [pc, #40] @ (8003078 <__libc_init_array+0x40>)
  8492. 8003050: 4d0a ldr r5, [pc, #40] @ (800307c <__libc_init_array+0x44>)
  8493. 8003052: 1b64 subs r4, r4, r5
  8494. 8003054: 10a4 asrs r4, r4, #2
  8495. 8003056: 42a6 cmp r6, r4
  8496. 8003058: d105 bne.n 8003066 <__libc_init_array+0x2e>
  8497. 800305a: bd70 pop {r4, r5, r6, pc}
  8498. 800305c: 00b3 lsls r3, r6, #2
  8499. 800305e: 58eb ldr r3, [r5, r3]
  8500. 8003060: 4798 blx r3
  8501. 8003062: 3601 adds r6, #1
  8502. 8003064: e7ee b.n 8003044 <__libc_init_array+0xc>
  8503. 8003066: 00b3 lsls r3, r6, #2
  8504. 8003068: 58eb ldr r3, [r5, r3]
  8505. 800306a: 4798 blx r3
  8506. 800306c: 3601 adds r6, #1
  8507. 800306e: e7f2 b.n 8003056 <__libc_init_array+0x1e>
  8508. 8003070: 080030d8 .word 0x080030d8
  8509. 8003074: 080030d8 .word 0x080030d8
  8510. 8003078: 080030dc .word 0x080030dc
  8511. 800307c: 080030d8 .word 0x080030d8
  8512. 08003080 <_init>:
  8513. 8003080: b5f8 push {r3, r4, r5, r6, r7, lr}
  8514. 8003082: 46c0 nop @ (mov r8, r8)
  8515. 8003084: bcf8 pop {r3, r4, r5, r6, r7}
  8516. 8003086: bc08 pop {r3}
  8517. 8003088: 469e mov lr, r3
  8518. 800308a: 4770 bx lr
  8519. 0800308c <_fini>:
  8520. 800308c: b5f8 push {r3, r4, r5, r6, r7, lr}
  8521. 800308e: 46c0 nop @ (mov r8, r8)
  8522. 8003090: bcf8 pop {r3, r4, r5, r6, r7}
  8523. 8003092: bc08 pop {r3}
  8524. 8003094: 469e mov lr, r3
  8525. 8003096: 4770 bx lr