STM32F030_ENC28J60.list 182 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851
  1. STM32F030_ENC28J60.elf: file format elf32-littlearm
  2. Sections:
  3. Idx Name Size VMA LMA File off Algn
  4. 0 .isr_vector 000000c0 08000000 08000000 00010000 2**0
  5. CONTENTS, ALLOC, LOAD, READONLY, DATA
  6. 1 .text 000019cc 080000c0 080000c0 000100c0 2**2
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 00000038 08001a8c 08001a8c 00011a8c 2**2
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM.extab 00000000 08001ac4 08001ac4 00020010 2**0
  11. CONTENTS
  12. 4 .ARM 00000000 08001ac4 08001ac4 00020010 2**0
  13. CONTENTS
  14. 5 .preinit_array 00000000 08001ac4 08001ac4 00020010 2**0
  15. CONTENTS, ALLOC, LOAD, DATA
  16. 6 .init_array 00000004 08001ac4 08001ac4 00011ac4 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .fini_array 00000004 08001ac8 08001ac8 00011ac8 2**2
  19. CONTENTS, ALLOC, LOAD, DATA
  20. 8 .data 00000010 20000000 08001acc 00020000 2**2
  21. CONTENTS, ALLOC, LOAD, DATA
  22. 9 .bss 000000d4 20000010 08001adc 00020010 2**2
  23. ALLOC
  24. 10 ._user_heap_stack 00000604 200000e4 08001adc 000200e4 2**0
  25. ALLOC
  26. 11 .ARM.attributes 00000028 00000000 00000000 00020010 2**0
  27. CONTENTS, READONLY
  28. 12 .debug_info 0000c890 00000000 00000000 00020038 2**0
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_abbrev 00001d0c 00000000 00000000 0002c8c8 2**0
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_loc 0000a99f 00000000 00000000 0002e5d4 2**0
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_aranges 00000ac8 00000000 00000000 00038f78 2**3
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .debug_ranges 00000a48 00000000 00000000 00039a40 2**3
  37. CONTENTS, READONLY, DEBUGGING, OCTETS
  38. 17 .debug_macro 00002ad1 00000000 00000000 0003a488 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .debug_line 000108df 00000000 00000000 0003cf59 2**0
  41. CONTENTS, READONLY, DEBUGGING, OCTETS
  42. 19 .debug_str 0005e418 00000000 00000000 0004d838 2**0
  43. CONTENTS, READONLY, DEBUGGING, OCTETS
  44. 20 .comment 00000050 00000000 00000000 000abc50 2**0
  45. CONTENTS, READONLY
  46. 21 .debug_frame 00001c24 00000000 00000000 000abca0 2**2
  47. CONTENTS, READONLY, DEBUGGING, OCTETS
  48. Disassembly of section .text:
  49. 080000c0 <__do_global_dtors_aux>:
  50. 80000c0: b510 push {r4, lr}
  51. 80000c2: 4c06 ldr r4, [pc, #24] ; (80000dc <__do_global_dtors_aux+0x1c>)
  52. 80000c4: 7823 ldrb r3, [r4, #0]
  53. 80000c6: 2b00 cmp r3, #0
  54. 80000c8: d107 bne.n 80000da <__do_global_dtors_aux+0x1a>
  55. 80000ca: 4b05 ldr r3, [pc, #20] ; (80000e0 <__do_global_dtors_aux+0x20>)
  56. 80000cc: 2b00 cmp r3, #0
  57. 80000ce: d002 beq.n 80000d6 <__do_global_dtors_aux+0x16>
  58. 80000d0: 4804 ldr r0, [pc, #16] ; (80000e4 <__do_global_dtors_aux+0x24>)
  59. 80000d2: e000 b.n 80000d6 <__do_global_dtors_aux+0x16>
  60. 80000d4: bf00 nop
  61. 80000d6: 2301 movs r3, #1
  62. 80000d8: 7023 strb r3, [r4, #0]
  63. 80000da: bd10 pop {r4, pc}
  64. 80000dc: 20000010 .word 0x20000010
  65. 80000e0: 00000000 .word 0x00000000
  66. 80000e4: 08001a74 .word 0x08001a74
  67. 080000e8 <frame_dummy>:
  68. 80000e8: 4b04 ldr r3, [pc, #16] ; (80000fc <frame_dummy+0x14>)
  69. 80000ea: b510 push {r4, lr}
  70. 80000ec: 2b00 cmp r3, #0
  71. 80000ee: d003 beq.n 80000f8 <frame_dummy+0x10>
  72. 80000f0: 4903 ldr r1, [pc, #12] ; (8000100 <frame_dummy+0x18>)
  73. 80000f2: 4804 ldr r0, [pc, #16] ; (8000104 <frame_dummy+0x1c>)
  74. 80000f4: e000 b.n 80000f8 <frame_dummy+0x10>
  75. 80000f6: bf00 nop
  76. 80000f8: bd10 pop {r4, pc}
  77. 80000fa: 46c0 nop ; (mov r8, r8)
  78. 80000fc: 00000000 .word 0x00000000
  79. 8000100: 20000014 .word 0x20000014
  80. 8000104: 08001a74 .word 0x08001a74
  81. 08000108 <__udivsi3>:
  82. 8000108: 2200 movs r2, #0
  83. 800010a: 0843 lsrs r3, r0, #1
  84. 800010c: 428b cmp r3, r1
  85. 800010e: d374 bcc.n 80001fa <__udivsi3+0xf2>
  86. 8000110: 0903 lsrs r3, r0, #4
  87. 8000112: 428b cmp r3, r1
  88. 8000114: d35f bcc.n 80001d6 <__udivsi3+0xce>
  89. 8000116: 0a03 lsrs r3, r0, #8
  90. 8000118: 428b cmp r3, r1
  91. 800011a: d344 bcc.n 80001a6 <__udivsi3+0x9e>
  92. 800011c: 0b03 lsrs r3, r0, #12
  93. 800011e: 428b cmp r3, r1
  94. 8000120: d328 bcc.n 8000174 <__udivsi3+0x6c>
  95. 8000122: 0c03 lsrs r3, r0, #16
  96. 8000124: 428b cmp r3, r1
  97. 8000126: d30d bcc.n 8000144 <__udivsi3+0x3c>
  98. 8000128: 22ff movs r2, #255 ; 0xff
  99. 800012a: 0209 lsls r1, r1, #8
  100. 800012c: ba12 rev r2, r2
  101. 800012e: 0c03 lsrs r3, r0, #16
  102. 8000130: 428b cmp r3, r1
  103. 8000132: d302 bcc.n 800013a <__udivsi3+0x32>
  104. 8000134: 1212 asrs r2, r2, #8
  105. 8000136: 0209 lsls r1, r1, #8
  106. 8000138: d065 beq.n 8000206 <__udivsi3+0xfe>
  107. 800013a: 0b03 lsrs r3, r0, #12
  108. 800013c: 428b cmp r3, r1
  109. 800013e: d319 bcc.n 8000174 <__udivsi3+0x6c>
  110. 8000140: e000 b.n 8000144 <__udivsi3+0x3c>
  111. 8000142: 0a09 lsrs r1, r1, #8
  112. 8000144: 0bc3 lsrs r3, r0, #15
  113. 8000146: 428b cmp r3, r1
  114. 8000148: d301 bcc.n 800014e <__udivsi3+0x46>
  115. 800014a: 03cb lsls r3, r1, #15
  116. 800014c: 1ac0 subs r0, r0, r3
  117. 800014e: 4152 adcs r2, r2
  118. 8000150: 0b83 lsrs r3, r0, #14
  119. 8000152: 428b cmp r3, r1
  120. 8000154: d301 bcc.n 800015a <__udivsi3+0x52>
  121. 8000156: 038b lsls r3, r1, #14
  122. 8000158: 1ac0 subs r0, r0, r3
  123. 800015a: 4152 adcs r2, r2
  124. 800015c: 0b43 lsrs r3, r0, #13
  125. 800015e: 428b cmp r3, r1
  126. 8000160: d301 bcc.n 8000166 <__udivsi3+0x5e>
  127. 8000162: 034b lsls r3, r1, #13
  128. 8000164: 1ac0 subs r0, r0, r3
  129. 8000166: 4152 adcs r2, r2
  130. 8000168: 0b03 lsrs r3, r0, #12
  131. 800016a: 428b cmp r3, r1
  132. 800016c: d301 bcc.n 8000172 <__udivsi3+0x6a>
  133. 800016e: 030b lsls r3, r1, #12
  134. 8000170: 1ac0 subs r0, r0, r3
  135. 8000172: 4152 adcs r2, r2
  136. 8000174: 0ac3 lsrs r3, r0, #11
  137. 8000176: 428b cmp r3, r1
  138. 8000178: d301 bcc.n 800017e <__udivsi3+0x76>
  139. 800017a: 02cb lsls r3, r1, #11
  140. 800017c: 1ac0 subs r0, r0, r3
  141. 800017e: 4152 adcs r2, r2
  142. 8000180: 0a83 lsrs r3, r0, #10
  143. 8000182: 428b cmp r3, r1
  144. 8000184: d301 bcc.n 800018a <__udivsi3+0x82>
  145. 8000186: 028b lsls r3, r1, #10
  146. 8000188: 1ac0 subs r0, r0, r3
  147. 800018a: 4152 adcs r2, r2
  148. 800018c: 0a43 lsrs r3, r0, #9
  149. 800018e: 428b cmp r3, r1
  150. 8000190: d301 bcc.n 8000196 <__udivsi3+0x8e>
  151. 8000192: 024b lsls r3, r1, #9
  152. 8000194: 1ac0 subs r0, r0, r3
  153. 8000196: 4152 adcs r2, r2
  154. 8000198: 0a03 lsrs r3, r0, #8
  155. 800019a: 428b cmp r3, r1
  156. 800019c: d301 bcc.n 80001a2 <__udivsi3+0x9a>
  157. 800019e: 020b lsls r3, r1, #8
  158. 80001a0: 1ac0 subs r0, r0, r3
  159. 80001a2: 4152 adcs r2, r2
  160. 80001a4: d2cd bcs.n 8000142 <__udivsi3+0x3a>
  161. 80001a6: 09c3 lsrs r3, r0, #7
  162. 80001a8: 428b cmp r3, r1
  163. 80001aa: d301 bcc.n 80001b0 <__udivsi3+0xa8>
  164. 80001ac: 01cb lsls r3, r1, #7
  165. 80001ae: 1ac0 subs r0, r0, r3
  166. 80001b0: 4152 adcs r2, r2
  167. 80001b2: 0983 lsrs r3, r0, #6
  168. 80001b4: 428b cmp r3, r1
  169. 80001b6: d301 bcc.n 80001bc <__udivsi3+0xb4>
  170. 80001b8: 018b lsls r3, r1, #6
  171. 80001ba: 1ac0 subs r0, r0, r3
  172. 80001bc: 4152 adcs r2, r2
  173. 80001be: 0943 lsrs r3, r0, #5
  174. 80001c0: 428b cmp r3, r1
  175. 80001c2: d301 bcc.n 80001c8 <__udivsi3+0xc0>
  176. 80001c4: 014b lsls r3, r1, #5
  177. 80001c6: 1ac0 subs r0, r0, r3
  178. 80001c8: 4152 adcs r2, r2
  179. 80001ca: 0903 lsrs r3, r0, #4
  180. 80001cc: 428b cmp r3, r1
  181. 80001ce: d301 bcc.n 80001d4 <__udivsi3+0xcc>
  182. 80001d0: 010b lsls r3, r1, #4
  183. 80001d2: 1ac0 subs r0, r0, r3
  184. 80001d4: 4152 adcs r2, r2
  185. 80001d6: 08c3 lsrs r3, r0, #3
  186. 80001d8: 428b cmp r3, r1
  187. 80001da: d301 bcc.n 80001e0 <__udivsi3+0xd8>
  188. 80001dc: 00cb lsls r3, r1, #3
  189. 80001de: 1ac0 subs r0, r0, r3
  190. 80001e0: 4152 adcs r2, r2
  191. 80001e2: 0883 lsrs r3, r0, #2
  192. 80001e4: 428b cmp r3, r1
  193. 80001e6: d301 bcc.n 80001ec <__udivsi3+0xe4>
  194. 80001e8: 008b lsls r3, r1, #2
  195. 80001ea: 1ac0 subs r0, r0, r3
  196. 80001ec: 4152 adcs r2, r2
  197. 80001ee: 0843 lsrs r3, r0, #1
  198. 80001f0: 428b cmp r3, r1
  199. 80001f2: d301 bcc.n 80001f8 <__udivsi3+0xf0>
  200. 80001f4: 004b lsls r3, r1, #1
  201. 80001f6: 1ac0 subs r0, r0, r3
  202. 80001f8: 4152 adcs r2, r2
  203. 80001fa: 1a41 subs r1, r0, r1
  204. 80001fc: d200 bcs.n 8000200 <__udivsi3+0xf8>
  205. 80001fe: 4601 mov r1, r0
  206. 8000200: 4152 adcs r2, r2
  207. 8000202: 4610 mov r0, r2
  208. 8000204: 4770 bx lr
  209. 8000206: e7ff b.n 8000208 <__udivsi3+0x100>
  210. 8000208: b501 push {r0, lr}
  211. 800020a: 2000 movs r0, #0
  212. 800020c: f000 f8f0 bl 80003f0 <__aeabi_idiv0>
  213. 8000210: bd02 pop {r1, pc}
  214. 8000212: 46c0 nop ; (mov r8, r8)
  215. 08000214 <__aeabi_uidivmod>:
  216. 8000214: 2900 cmp r1, #0
  217. 8000216: d0f7 beq.n 8000208 <__udivsi3+0x100>
  218. 8000218: e776 b.n 8000108 <__udivsi3>
  219. 800021a: 4770 bx lr
  220. 0800021c <__divsi3>:
  221. 800021c: 4603 mov r3, r0
  222. 800021e: 430b orrs r3, r1
  223. 8000220: d47f bmi.n 8000322 <__divsi3+0x106>
  224. 8000222: 2200 movs r2, #0
  225. 8000224: 0843 lsrs r3, r0, #1
  226. 8000226: 428b cmp r3, r1
  227. 8000228: d374 bcc.n 8000314 <__divsi3+0xf8>
  228. 800022a: 0903 lsrs r3, r0, #4
  229. 800022c: 428b cmp r3, r1
  230. 800022e: d35f bcc.n 80002f0 <__divsi3+0xd4>
  231. 8000230: 0a03 lsrs r3, r0, #8
  232. 8000232: 428b cmp r3, r1
  233. 8000234: d344 bcc.n 80002c0 <__divsi3+0xa4>
  234. 8000236: 0b03 lsrs r3, r0, #12
  235. 8000238: 428b cmp r3, r1
  236. 800023a: d328 bcc.n 800028e <__divsi3+0x72>
  237. 800023c: 0c03 lsrs r3, r0, #16
  238. 800023e: 428b cmp r3, r1
  239. 8000240: d30d bcc.n 800025e <__divsi3+0x42>
  240. 8000242: 22ff movs r2, #255 ; 0xff
  241. 8000244: 0209 lsls r1, r1, #8
  242. 8000246: ba12 rev r2, r2
  243. 8000248: 0c03 lsrs r3, r0, #16
  244. 800024a: 428b cmp r3, r1
  245. 800024c: d302 bcc.n 8000254 <__divsi3+0x38>
  246. 800024e: 1212 asrs r2, r2, #8
  247. 8000250: 0209 lsls r1, r1, #8
  248. 8000252: d065 beq.n 8000320 <__divsi3+0x104>
  249. 8000254: 0b03 lsrs r3, r0, #12
  250. 8000256: 428b cmp r3, r1
  251. 8000258: d319 bcc.n 800028e <__divsi3+0x72>
  252. 800025a: e000 b.n 800025e <__divsi3+0x42>
  253. 800025c: 0a09 lsrs r1, r1, #8
  254. 800025e: 0bc3 lsrs r3, r0, #15
  255. 8000260: 428b cmp r3, r1
  256. 8000262: d301 bcc.n 8000268 <__divsi3+0x4c>
  257. 8000264: 03cb lsls r3, r1, #15
  258. 8000266: 1ac0 subs r0, r0, r3
  259. 8000268: 4152 adcs r2, r2
  260. 800026a: 0b83 lsrs r3, r0, #14
  261. 800026c: 428b cmp r3, r1
  262. 800026e: d301 bcc.n 8000274 <__divsi3+0x58>
  263. 8000270: 038b lsls r3, r1, #14
  264. 8000272: 1ac0 subs r0, r0, r3
  265. 8000274: 4152 adcs r2, r2
  266. 8000276: 0b43 lsrs r3, r0, #13
  267. 8000278: 428b cmp r3, r1
  268. 800027a: d301 bcc.n 8000280 <__divsi3+0x64>
  269. 800027c: 034b lsls r3, r1, #13
  270. 800027e: 1ac0 subs r0, r0, r3
  271. 8000280: 4152 adcs r2, r2
  272. 8000282: 0b03 lsrs r3, r0, #12
  273. 8000284: 428b cmp r3, r1
  274. 8000286: d301 bcc.n 800028c <__divsi3+0x70>
  275. 8000288: 030b lsls r3, r1, #12
  276. 800028a: 1ac0 subs r0, r0, r3
  277. 800028c: 4152 adcs r2, r2
  278. 800028e: 0ac3 lsrs r3, r0, #11
  279. 8000290: 428b cmp r3, r1
  280. 8000292: d301 bcc.n 8000298 <__divsi3+0x7c>
  281. 8000294: 02cb lsls r3, r1, #11
  282. 8000296: 1ac0 subs r0, r0, r3
  283. 8000298: 4152 adcs r2, r2
  284. 800029a: 0a83 lsrs r3, r0, #10
  285. 800029c: 428b cmp r3, r1
  286. 800029e: d301 bcc.n 80002a4 <__divsi3+0x88>
  287. 80002a0: 028b lsls r3, r1, #10
  288. 80002a2: 1ac0 subs r0, r0, r3
  289. 80002a4: 4152 adcs r2, r2
  290. 80002a6: 0a43 lsrs r3, r0, #9
  291. 80002a8: 428b cmp r3, r1
  292. 80002aa: d301 bcc.n 80002b0 <__divsi3+0x94>
  293. 80002ac: 024b lsls r3, r1, #9
  294. 80002ae: 1ac0 subs r0, r0, r3
  295. 80002b0: 4152 adcs r2, r2
  296. 80002b2: 0a03 lsrs r3, r0, #8
  297. 80002b4: 428b cmp r3, r1
  298. 80002b6: d301 bcc.n 80002bc <__divsi3+0xa0>
  299. 80002b8: 020b lsls r3, r1, #8
  300. 80002ba: 1ac0 subs r0, r0, r3
  301. 80002bc: 4152 adcs r2, r2
  302. 80002be: d2cd bcs.n 800025c <__divsi3+0x40>
  303. 80002c0: 09c3 lsrs r3, r0, #7
  304. 80002c2: 428b cmp r3, r1
  305. 80002c4: d301 bcc.n 80002ca <__divsi3+0xae>
  306. 80002c6: 01cb lsls r3, r1, #7
  307. 80002c8: 1ac0 subs r0, r0, r3
  308. 80002ca: 4152 adcs r2, r2
  309. 80002cc: 0983 lsrs r3, r0, #6
  310. 80002ce: 428b cmp r3, r1
  311. 80002d0: d301 bcc.n 80002d6 <__divsi3+0xba>
  312. 80002d2: 018b lsls r3, r1, #6
  313. 80002d4: 1ac0 subs r0, r0, r3
  314. 80002d6: 4152 adcs r2, r2
  315. 80002d8: 0943 lsrs r3, r0, #5
  316. 80002da: 428b cmp r3, r1
  317. 80002dc: d301 bcc.n 80002e2 <__divsi3+0xc6>
  318. 80002de: 014b lsls r3, r1, #5
  319. 80002e0: 1ac0 subs r0, r0, r3
  320. 80002e2: 4152 adcs r2, r2
  321. 80002e4: 0903 lsrs r3, r0, #4
  322. 80002e6: 428b cmp r3, r1
  323. 80002e8: d301 bcc.n 80002ee <__divsi3+0xd2>
  324. 80002ea: 010b lsls r3, r1, #4
  325. 80002ec: 1ac0 subs r0, r0, r3
  326. 80002ee: 4152 adcs r2, r2
  327. 80002f0: 08c3 lsrs r3, r0, #3
  328. 80002f2: 428b cmp r3, r1
  329. 80002f4: d301 bcc.n 80002fa <__divsi3+0xde>
  330. 80002f6: 00cb lsls r3, r1, #3
  331. 80002f8: 1ac0 subs r0, r0, r3
  332. 80002fa: 4152 adcs r2, r2
  333. 80002fc: 0883 lsrs r3, r0, #2
  334. 80002fe: 428b cmp r3, r1
  335. 8000300: d301 bcc.n 8000306 <__divsi3+0xea>
  336. 8000302: 008b lsls r3, r1, #2
  337. 8000304: 1ac0 subs r0, r0, r3
  338. 8000306: 4152 adcs r2, r2
  339. 8000308: 0843 lsrs r3, r0, #1
  340. 800030a: 428b cmp r3, r1
  341. 800030c: d301 bcc.n 8000312 <__divsi3+0xf6>
  342. 800030e: 004b lsls r3, r1, #1
  343. 8000310: 1ac0 subs r0, r0, r3
  344. 8000312: 4152 adcs r2, r2
  345. 8000314: 1a41 subs r1, r0, r1
  346. 8000316: d200 bcs.n 800031a <__divsi3+0xfe>
  347. 8000318: 4601 mov r1, r0
  348. 800031a: 4152 adcs r2, r2
  349. 800031c: 4610 mov r0, r2
  350. 800031e: 4770 bx lr
  351. 8000320: e05d b.n 80003de <__divsi3+0x1c2>
  352. 8000322: 0fca lsrs r2, r1, #31
  353. 8000324: d000 beq.n 8000328 <__divsi3+0x10c>
  354. 8000326: 4249 negs r1, r1
  355. 8000328: 1003 asrs r3, r0, #32
  356. 800032a: d300 bcc.n 800032e <__divsi3+0x112>
  357. 800032c: 4240 negs r0, r0
  358. 800032e: 4053 eors r3, r2
  359. 8000330: 2200 movs r2, #0
  360. 8000332: 469c mov ip, r3
  361. 8000334: 0903 lsrs r3, r0, #4
  362. 8000336: 428b cmp r3, r1
  363. 8000338: d32d bcc.n 8000396 <__divsi3+0x17a>
  364. 800033a: 0a03 lsrs r3, r0, #8
  365. 800033c: 428b cmp r3, r1
  366. 800033e: d312 bcc.n 8000366 <__divsi3+0x14a>
  367. 8000340: 22fc movs r2, #252 ; 0xfc
  368. 8000342: 0189 lsls r1, r1, #6
  369. 8000344: ba12 rev r2, r2
  370. 8000346: 0a03 lsrs r3, r0, #8
  371. 8000348: 428b cmp r3, r1
  372. 800034a: d30c bcc.n 8000366 <__divsi3+0x14a>
  373. 800034c: 0189 lsls r1, r1, #6
  374. 800034e: 1192 asrs r2, r2, #6
  375. 8000350: 428b cmp r3, r1
  376. 8000352: d308 bcc.n 8000366 <__divsi3+0x14a>
  377. 8000354: 0189 lsls r1, r1, #6
  378. 8000356: 1192 asrs r2, r2, #6
  379. 8000358: 428b cmp r3, r1
  380. 800035a: d304 bcc.n 8000366 <__divsi3+0x14a>
  381. 800035c: 0189 lsls r1, r1, #6
  382. 800035e: d03a beq.n 80003d6 <__divsi3+0x1ba>
  383. 8000360: 1192 asrs r2, r2, #6
  384. 8000362: e000 b.n 8000366 <__divsi3+0x14a>
  385. 8000364: 0989 lsrs r1, r1, #6
  386. 8000366: 09c3 lsrs r3, r0, #7
  387. 8000368: 428b cmp r3, r1
  388. 800036a: d301 bcc.n 8000370 <__divsi3+0x154>
  389. 800036c: 01cb lsls r3, r1, #7
  390. 800036e: 1ac0 subs r0, r0, r3
  391. 8000370: 4152 adcs r2, r2
  392. 8000372: 0983 lsrs r3, r0, #6
  393. 8000374: 428b cmp r3, r1
  394. 8000376: d301 bcc.n 800037c <__divsi3+0x160>
  395. 8000378: 018b lsls r3, r1, #6
  396. 800037a: 1ac0 subs r0, r0, r3
  397. 800037c: 4152 adcs r2, r2
  398. 800037e: 0943 lsrs r3, r0, #5
  399. 8000380: 428b cmp r3, r1
  400. 8000382: d301 bcc.n 8000388 <__divsi3+0x16c>
  401. 8000384: 014b lsls r3, r1, #5
  402. 8000386: 1ac0 subs r0, r0, r3
  403. 8000388: 4152 adcs r2, r2
  404. 800038a: 0903 lsrs r3, r0, #4
  405. 800038c: 428b cmp r3, r1
  406. 800038e: d301 bcc.n 8000394 <__divsi3+0x178>
  407. 8000390: 010b lsls r3, r1, #4
  408. 8000392: 1ac0 subs r0, r0, r3
  409. 8000394: 4152 adcs r2, r2
  410. 8000396: 08c3 lsrs r3, r0, #3
  411. 8000398: 428b cmp r3, r1
  412. 800039a: d301 bcc.n 80003a0 <__divsi3+0x184>
  413. 800039c: 00cb lsls r3, r1, #3
  414. 800039e: 1ac0 subs r0, r0, r3
  415. 80003a0: 4152 adcs r2, r2
  416. 80003a2: 0883 lsrs r3, r0, #2
  417. 80003a4: 428b cmp r3, r1
  418. 80003a6: d301 bcc.n 80003ac <__divsi3+0x190>
  419. 80003a8: 008b lsls r3, r1, #2
  420. 80003aa: 1ac0 subs r0, r0, r3
  421. 80003ac: 4152 adcs r2, r2
  422. 80003ae: d2d9 bcs.n 8000364 <__divsi3+0x148>
  423. 80003b0: 0843 lsrs r3, r0, #1
  424. 80003b2: 428b cmp r3, r1
  425. 80003b4: d301 bcc.n 80003ba <__divsi3+0x19e>
  426. 80003b6: 004b lsls r3, r1, #1
  427. 80003b8: 1ac0 subs r0, r0, r3
  428. 80003ba: 4152 adcs r2, r2
  429. 80003bc: 1a41 subs r1, r0, r1
  430. 80003be: d200 bcs.n 80003c2 <__divsi3+0x1a6>
  431. 80003c0: 4601 mov r1, r0
  432. 80003c2: 4663 mov r3, ip
  433. 80003c4: 4152 adcs r2, r2
  434. 80003c6: 105b asrs r3, r3, #1
  435. 80003c8: 4610 mov r0, r2
  436. 80003ca: d301 bcc.n 80003d0 <__divsi3+0x1b4>
  437. 80003cc: 4240 negs r0, r0
  438. 80003ce: 2b00 cmp r3, #0
  439. 80003d0: d500 bpl.n 80003d4 <__divsi3+0x1b8>
  440. 80003d2: 4249 negs r1, r1
  441. 80003d4: 4770 bx lr
  442. 80003d6: 4663 mov r3, ip
  443. 80003d8: 105b asrs r3, r3, #1
  444. 80003da: d300 bcc.n 80003de <__divsi3+0x1c2>
  445. 80003dc: 4240 negs r0, r0
  446. 80003de: b501 push {r0, lr}
  447. 80003e0: 2000 movs r0, #0
  448. 80003e2: f000 f805 bl 80003f0 <__aeabi_idiv0>
  449. 80003e6: bd02 pop {r1, pc}
  450. 080003e8 <__aeabi_idivmod>:
  451. 80003e8: 2900 cmp r1, #0
  452. 80003ea: d0f8 beq.n 80003de <__divsi3+0x1c2>
  453. 80003ec: e716 b.n 800021c <__divsi3>
  454. 80003ee: 4770 bx lr
  455. 080003f0 <__aeabi_idiv0>:
  456. 80003f0: 4770 bx lr
  457. 80003f2: 46c0 nop ; (mov r8, r8)
  458. 080003f4 <maincpp>:
  459. volatile uint16_t pwm2freqnew = 10000;
  460. volatile uint16_t val;
  461. volatile uint32_t pwm1counter;
  462. volatile uint32_t pwm1period;
  463. void maincpp()
  464. {
  465. 80003f4: b510 push {r4, lr}
  466. HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1);
  467. 80003f6: 2100 movs r1, #0
  468. 80003f8: 4819 ldr r0, [pc, #100] ; (8000460 <maincpp+0x6c>)
  469. 80003fa: f001 fa39 bl 8001870 <HAL_TIM_PWM_Start>
  470. 80003fe: e011 b.n 8000424 <maincpp+0x30>
  471. htim1.Instance->ARR = pwm1freq;
  472. }
  473. if(pwm2freq != pwm2freqnew)
  474. {
  475. val = (360000/pwm2freqnew)-1;
  476. 8000400: 4c18 ldr r4, [pc, #96] ; (8000464 <maincpp+0x70>)
  477. 8000402: 8821 ldrh r1, [r4, #0]
  478. 8000404: b289 uxth r1, r1
  479. 8000406: 4818 ldr r0, [pc, #96] ; (8000468 <maincpp+0x74>)
  480. 8000408: f7ff ff08 bl 800021c <__divsi3>
  481. 800040c: 3801 subs r0, #1
  482. 800040e: b280 uxth r0, r0
  483. 8000410: 4b16 ldr r3, [pc, #88] ; (800046c <maincpp+0x78>)
  484. 8000412: 8018 strh r0, [r3, #0]
  485. pwm1freqnew = val;
  486. 8000414: 881b ldrh r3, [r3, #0]
  487. 8000416: b29b uxth r3, r3
  488. 8000418: 4a15 ldr r2, [pc, #84] ; (8000470 <maincpp+0x7c>)
  489. 800041a: 8013 strh r3, [r2, #0]
  490. pwm2freq = pwm2freqnew;
  491. 800041c: 8823 ldrh r3, [r4, #0]
  492. 800041e: b29b uxth r3, r3
  493. 8000420: 4a14 ldr r2, [pc, #80] ; (8000474 <maincpp+0x80>)
  494. 8000422: 8013 strh r3, [r2, #0]
  495. if(pwm1freq != pwm1freqnew)
  496. 8000424: 4b14 ldr r3, [pc, #80] ; (8000478 <maincpp+0x84>)
  497. 8000426: 881a ldrh r2, [r3, #0]
  498. 8000428: b292 uxth r2, r2
  499. 800042a: 4b11 ldr r3, [pc, #68] ; (8000470 <maincpp+0x7c>)
  500. 800042c: 881b ldrh r3, [r3, #0]
  501. 800042e: b29b uxth r3, r3
  502. 8000430: 429a cmp r2, r3
  503. 8000432: d00c beq.n 800044e <maincpp+0x5a>
  504. pwm1freq = pwm1freqnew;
  505. 8000434: 4b0e ldr r3, [pc, #56] ; (8000470 <maincpp+0x7c>)
  506. 8000436: 881a ldrh r2, [r3, #0]
  507. 8000438: b292 uxth r2, r2
  508. 800043a: 4b0f ldr r3, [pc, #60] ; (8000478 <maincpp+0x84>)
  509. 800043c: 801a strh r2, [r3, #0]
  510. htim1.Instance->CCR1 = (pwm1freq/2);
  511. 800043e: 881a ldrh r2, [r3, #0]
  512. 8000440: 4907 ldr r1, [pc, #28] ; (8000460 <maincpp+0x6c>)
  513. 8000442: 6809 ldr r1, [r1, #0]
  514. 8000444: 0852 lsrs r2, r2, #1
  515. 8000446: 634a str r2, [r1, #52] ; 0x34
  516. htim1.Instance->ARR = pwm1freq;
  517. 8000448: 881b ldrh r3, [r3, #0]
  518. 800044a: b29b uxth r3, r3
  519. 800044c: 62cb str r3, [r1, #44] ; 0x2c
  520. if(pwm2freq != pwm2freqnew)
  521. 800044e: 4b09 ldr r3, [pc, #36] ; (8000474 <maincpp+0x80>)
  522. 8000450: 881a ldrh r2, [r3, #0]
  523. 8000452: b292 uxth r2, r2
  524. 8000454: 4b03 ldr r3, [pc, #12] ; (8000464 <maincpp+0x70>)
  525. 8000456: 881b ldrh r3, [r3, #0]
  526. 8000458: b29b uxth r3, r3
  527. 800045a: 429a cmp r2, r3
  528. 800045c: d1d0 bne.n 8000400 <maincpp+0xc>
  529. 800045e: e7e1 b.n 8000424 <maincpp+0x30>
  530. 8000460: 20000098 .word 0x20000098
  531. 8000464: 20000002 .word 0x20000002
  532. 8000468: 00057e40 .word 0x00057e40
  533. 800046c: 20000030 .word 0x20000030
  534. 8000470: 20000000 .word 0x20000000
  535. 8000474: 2000002e .word 0x2000002e
  536. 8000478: 2000002c .word 0x2000002c
  537. 0800047c <MX_GPIO_Init>:
  538. /* USER CODE END 1 */
  539. /** Configure pins
  540. */
  541. void MX_GPIO_Init(void)
  542. {
  543. 800047c: b5f0 push {r4, r5, r6, r7, lr}
  544. 800047e: 46c6 mov lr, r8
  545. 8000480: b500 push {lr}
  546. 8000482: b088 sub sp, #32
  547. GPIO_InitTypeDef GPIO_InitStruct = {0};
  548. 8000484: 2214 movs r2, #20
  549. 8000486: 2100 movs r1, #0
  550. 8000488: a803 add r0, sp, #12
  551. 800048a: f001 faeb bl 8001a64 <memset>
  552. /* GPIO Ports Clock Enable */
  553. __HAL_RCC_GPIOF_CLK_ENABLE();
  554. 800048e: 4b2a ldr r3, [pc, #168] ; (8000538 <MX_GPIO_Init+0xbc>)
  555. 8000490: 6959 ldr r1, [r3, #20]
  556. 8000492: 2080 movs r0, #128 ; 0x80
  557. 8000494: 03c0 lsls r0, r0, #15
  558. 8000496: 4301 orrs r1, r0
  559. 8000498: 6159 str r1, [r3, #20]
  560. 800049a: 695a ldr r2, [r3, #20]
  561. 800049c: 4002 ands r2, r0
  562. 800049e: 9200 str r2, [sp, #0]
  563. 80004a0: 9a00 ldr r2, [sp, #0]
  564. __HAL_RCC_GPIOA_CLK_ENABLE();
  565. 80004a2: 6959 ldr r1, [r3, #20]
  566. 80004a4: 2080 movs r0, #128 ; 0x80
  567. 80004a6: 0280 lsls r0, r0, #10
  568. 80004a8: 4301 orrs r1, r0
  569. 80004aa: 6159 str r1, [r3, #20]
  570. 80004ac: 695a ldr r2, [r3, #20]
  571. 80004ae: 4002 ands r2, r0
  572. 80004b0: 9201 str r2, [sp, #4]
  573. 80004b2: 9a01 ldr r2, [sp, #4]
  574. __HAL_RCC_GPIOB_CLK_ENABLE();
  575. 80004b4: 695a ldr r2, [r3, #20]
  576. 80004b6: 2180 movs r1, #128 ; 0x80
  577. 80004b8: 02c9 lsls r1, r1, #11
  578. 80004ba: 430a orrs r2, r1
  579. 80004bc: 615a str r2, [r3, #20]
  580. 80004be: 695b ldr r3, [r3, #20]
  581. 80004c0: 400b ands r3, r1
  582. 80004c2: 9302 str r3, [sp, #8]
  583. 80004c4: 9b02 ldr r3, [sp, #8]
  584. /*Configure GPIO pin Output Level */
  585. HAL_GPIO_WritePin(GPIOA, ENC_RST_Pin|ENC_CS_Pin, GPIO_PIN_RESET);
  586. 80004c6: 2390 movs r3, #144 ; 0x90
  587. 80004c8: 05db lsls r3, r3, #23
  588. 80004ca: 4698 mov r8, r3
  589. 80004cc: 2200 movs r2, #0
  590. 80004ce: 2118 movs r1, #24
  591. 80004d0: 0018 movs r0, r3
  592. 80004d2: f000 fb41 bl 8000b58 <HAL_GPIO_WritePin>
  593. /*Configure GPIO pin Output Level */
  594. HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_RESET);
  595. 80004d6: 4d19 ldr r5, [pc, #100] ; (800053c <MX_GPIO_Init+0xc0>)
  596. 80004d8: 2200 movs r2, #0
  597. 80004da: 2102 movs r1, #2
  598. 80004dc: 0028 movs r0, r5
  599. 80004de: f000 fb3b bl 8000b58 <HAL_GPIO_WritePin>
  600. /*Configure GPIO pin : PF1 */
  601. GPIO_InitStruct.Pin = GPIO_PIN_1;
  602. 80004e2: 2702 movs r7, #2
  603. 80004e4: 9703 str r7, [sp, #12]
  604. GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING;
  605. 80004e6: 2388 movs r3, #136 ; 0x88
  606. 80004e8: 035b lsls r3, r3, #13
  607. 80004ea: 9304 str r3, [sp, #16]
  608. GPIO_InitStruct.Pull = GPIO_NOPULL;
  609. 80004ec: 2400 movs r4, #0
  610. 80004ee: 9405 str r4, [sp, #20]
  611. HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
  612. 80004f0: a903 add r1, sp, #12
  613. 80004f2: 4813 ldr r0, [pc, #76] ; (8000540 <MX_GPIO_Init+0xc4>)
  614. 80004f4: f000 fa6a bl 80009cc <HAL_GPIO_Init>
  615. /*Configure GPIO pins : PAPin PAPin */
  616. GPIO_InitStruct.Pin = ENC_RST_Pin|ENC_CS_Pin;
  617. 80004f8: 2318 movs r3, #24
  618. 80004fa: 9303 str r3, [sp, #12]
  619. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  620. 80004fc: 2601 movs r6, #1
  621. 80004fe: 9604 str r6, [sp, #16]
  622. GPIO_InitStruct.Pull = GPIO_NOPULL;
  623. 8000500: 9405 str r4, [sp, #20]
  624. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  625. 8000502: 9406 str r4, [sp, #24]
  626. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  627. 8000504: a903 add r1, sp, #12
  628. 8000506: 4640 mov r0, r8
  629. 8000508: f000 fa60 bl 80009cc <HAL_GPIO_Init>
  630. /*Configure GPIO pin : PtPin */
  631. GPIO_InitStruct.Pin = LED1_Pin;
  632. 800050c: 9703 str r7, [sp, #12]
  633. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  634. 800050e: 9604 str r6, [sp, #16]
  635. GPIO_InitStruct.Pull = GPIO_NOPULL;
  636. 8000510: 9405 str r4, [sp, #20]
  637. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  638. 8000512: 2303 movs r3, #3
  639. 8000514: 9306 str r3, [sp, #24]
  640. HAL_GPIO_Init(LED1_GPIO_Port, &GPIO_InitStruct);
  641. 8000516: a903 add r1, sp, #12
  642. 8000518: 0028 movs r0, r5
  643. 800051a: f000 fa57 bl 80009cc <HAL_GPIO_Init>
  644. /* EXTI interrupt init*/
  645. HAL_NVIC_SetPriority(EXTI0_1_IRQn, 0, 0);
  646. 800051e: 2200 movs r2, #0
  647. 8000520: 2100 movs r1, #0
  648. 8000522: 2005 movs r0, #5
  649. 8000524: f000 f9fa bl 800091c <HAL_NVIC_SetPriority>
  650. HAL_NVIC_EnableIRQ(EXTI0_1_IRQn);
  651. 8000528: 2005 movs r0, #5
  652. 800052a: f000 fa27 bl 800097c <HAL_NVIC_EnableIRQ>
  653. }
  654. 800052e: b008 add sp, #32
  655. 8000530: bc80 pop {r7}
  656. 8000532: 46b8 mov r8, r7
  657. 8000534: bdf0 pop {r4, r5, r6, r7, pc}
  658. 8000536: 46c0 nop ; (mov r8, r8)
  659. 8000538: 40021000 .word 0x40021000
  660. 800053c: 48000400 .word 0x48000400
  661. 8000540: 48001400 .word 0x48001400
  662. 08000544 <Error_Handler>:
  663. \details Disables IRQ interrupts by setting the I-bit in the CPSR.
  664. Can only be executed in Privileged modes.
  665. */
  666. __STATIC_FORCEINLINE void __disable_irq(void)
  667. {
  668. __ASM volatile ("cpsid i" : : : "memory");
  669. 8000544: b672 cpsid i
  670. void Error_Handler(void)
  671. {
  672. /* USER CODE BEGIN Error_Handler_Debug */
  673. /* User can add his own implementation to report the HAL error return state */
  674. __disable_irq();
  675. while (1)
  676. 8000546: e7fe b.n 8000546 <Error_Handler+0x2>
  677. 08000548 <SystemClock_Config>:
  678. {
  679. 8000548: b500 push {lr}
  680. 800054a: b091 sub sp, #68 ; 0x44
  681. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  682. 800054c: 2230 movs r2, #48 ; 0x30
  683. 800054e: 2100 movs r1, #0
  684. 8000550: a804 add r0, sp, #16
  685. 8000552: f001 fa87 bl 8001a64 <memset>
  686. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  687. 8000556: 2210 movs r2, #16
  688. 8000558: 2100 movs r1, #0
  689. 800055a: 4668 mov r0, sp
  690. 800055c: f001 fa82 bl 8001a64 <memset>
  691. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
  692. 8000560: 2302 movs r3, #2
  693. 8000562: 9304 str r3, [sp, #16]
  694. RCC_OscInitStruct.HSIState = RCC_HSI_ON;
  695. 8000564: 2201 movs r2, #1
  696. 8000566: 9207 str r2, [sp, #28]
  697. RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
  698. 8000568: 320f adds r2, #15
  699. 800056a: 9208 str r2, [sp, #32]
  700. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  701. 800056c: 930c str r3, [sp, #48] ; 0x30
  702. RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL9;
  703. 800056e: 23e0 movs r3, #224 ; 0xe0
  704. 8000570: 035b lsls r3, r3, #13
  705. 8000572: 930e str r3, [sp, #56] ; 0x38
  706. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  707. 8000574: a804 add r0, sp, #16
  708. 8000576: f000 fb05 bl 8000b84 <HAL_RCC_OscConfig>
  709. 800057a: 2800 cmp r0, #0
  710. 800057c: d10e bne.n 800059c <SystemClock_Config+0x54>
  711. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  712. 800057e: 2307 movs r3, #7
  713. 8000580: 9300 str r3, [sp, #0]
  714. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  715. 8000582: 3b05 subs r3, #5
  716. 8000584: 9301 str r3, [sp, #4]
  717. RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
  718. 8000586: 2300 movs r3, #0
  719. 8000588: 9302 str r3, [sp, #8]
  720. RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
  721. 800058a: 9303 str r3, [sp, #12]
  722. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK)
  723. 800058c: 2101 movs r1, #1
  724. 800058e: 4668 mov r0, sp
  725. 8000590: f000 fd7e bl 8001090 <HAL_RCC_ClockConfig>
  726. 8000594: 2800 cmp r0, #0
  727. 8000596: d103 bne.n 80005a0 <SystemClock_Config+0x58>
  728. }
  729. 8000598: b011 add sp, #68 ; 0x44
  730. 800059a: bd00 pop {pc}
  731. Error_Handler();
  732. 800059c: f7ff ffd2 bl 8000544 <Error_Handler>
  733. Error_Handler();
  734. 80005a0: f7ff ffd0 bl 8000544 <Error_Handler>
  735. 080005a4 <main>:
  736. {
  737. 80005a4: b510 push {r4, lr}
  738. HAL_Init();
  739. 80005a6: f000 f997 bl 80008d8 <HAL_Init>
  740. SystemClock_Config();
  741. 80005aa: f7ff ffcd bl 8000548 <SystemClock_Config>
  742. MX_GPIO_Init();
  743. 80005ae: f7ff ff65 bl 800047c <MX_GPIO_Init>
  744. MX_SPI1_Init();
  745. 80005b2: f000 f805 bl 80005c0 <MX_SPI1_Init>
  746. MX_TIM1_Init();
  747. 80005b6: f000 f8c1 bl 800073c <MX_TIM1_Init>
  748. maincpp();
  749. 80005ba: f7ff ff1b bl 80003f4 <maincpp>
  750. while (1)
  751. 80005be: e7fe b.n 80005be <main+0x1a>
  752. 080005c0 <MX_SPI1_Init>:
  753. SPI_HandleTypeDef hspi1;
  754. /* SPI1 init function */
  755. void MX_SPI1_Init(void)
  756. {
  757. 80005c0: b510 push {r4, lr}
  758. /* USER CODE END SPI1_Init 0 */
  759. /* USER CODE BEGIN SPI1_Init 1 */
  760. /* USER CODE END SPI1_Init 1 */
  761. hspi1.Instance = SPI1;
  762. 80005c2: 4811 ldr r0, [pc, #68] ; (8000608 <MX_SPI1_Init+0x48>)
  763. 80005c4: 4b11 ldr r3, [pc, #68] ; (800060c <MX_SPI1_Init+0x4c>)
  764. 80005c6: 6003 str r3, [r0, #0]
  765. hspi1.Init.Mode = SPI_MODE_MASTER;
  766. 80005c8: 2382 movs r3, #130 ; 0x82
  767. 80005ca: 005b lsls r3, r3, #1
  768. 80005cc: 6043 str r3, [r0, #4]
  769. hspi1.Init.Direction = SPI_DIRECTION_2LINES;
  770. 80005ce: 2300 movs r3, #0
  771. 80005d0: 6083 str r3, [r0, #8]
  772. hspi1.Init.DataSize = SPI_DATASIZE_8BIT;
  773. 80005d2: 22e0 movs r2, #224 ; 0xe0
  774. 80005d4: 00d2 lsls r2, r2, #3
  775. 80005d6: 60c2 str r2, [r0, #12]
  776. hspi1.Init.CLKPolarity = SPI_POLARITY_LOW;
  777. 80005d8: 6103 str r3, [r0, #16]
  778. hspi1.Init.CLKPhase = SPI_PHASE_1EDGE;
  779. 80005da: 6143 str r3, [r0, #20]
  780. hspi1.Init.NSS = SPI_NSS_SOFT;
  781. 80005dc: 2280 movs r2, #128 ; 0x80
  782. 80005de: 0092 lsls r2, r2, #2
  783. 80005e0: 6182 str r2, [r0, #24]
  784. hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2;
  785. 80005e2: 61c3 str r3, [r0, #28]
  786. hspi1.Init.FirstBit = SPI_FIRSTBIT_MSB;
  787. 80005e4: 6203 str r3, [r0, #32]
  788. hspi1.Init.TIMode = SPI_TIMODE_DISABLE;
  789. 80005e6: 6243 str r3, [r0, #36] ; 0x24
  790. hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
  791. 80005e8: 6283 str r3, [r0, #40] ; 0x28
  792. hspi1.Init.CRCPolynomial = 7;
  793. 80005ea: 3afa subs r2, #250 ; 0xfa
  794. 80005ec: 3aff subs r2, #255 ; 0xff
  795. 80005ee: 62c2 str r2, [r0, #44] ; 0x2c
  796. hspi1.Init.CRCLength = SPI_CRC_LENGTH_DATASIZE;
  797. 80005f0: 6303 str r3, [r0, #48] ; 0x30
  798. hspi1.Init.NSSPMode = SPI_NSS_PULSE_ENABLE;
  799. 80005f2: 3308 adds r3, #8
  800. 80005f4: 6343 str r3, [r0, #52] ; 0x34
  801. if (HAL_SPI_Init(&hspi1) != HAL_OK)
  802. 80005f6: f000 fde5 bl 80011c4 <HAL_SPI_Init>
  803. 80005fa: 2800 cmp r0, #0
  804. 80005fc: d100 bne.n 8000600 <MX_SPI1_Init+0x40>
  805. }
  806. /* USER CODE BEGIN SPI1_Init 2 */
  807. /* USER CODE END SPI1_Init 2 */
  808. }
  809. 80005fe: bd10 pop {r4, pc}
  810. Error_Handler();
  811. 8000600: f7ff ffa0 bl 8000544 <Error_Handler>
  812. }
  813. 8000604: e7fb b.n 80005fe <MX_SPI1_Init+0x3e>
  814. 8000606: 46c0 nop ; (mov r8, r8)
  815. 8000608: 20000034 .word 0x20000034
  816. 800060c: 40013000 .word 0x40013000
  817. 08000610 <HAL_SPI_MspInit>:
  818. void HAL_SPI_MspInit(SPI_HandleTypeDef* spiHandle)
  819. {
  820. 8000610: b510 push {r4, lr}
  821. 8000612: b088 sub sp, #32
  822. 8000614: 0004 movs r4, r0
  823. GPIO_InitTypeDef GPIO_InitStruct = {0};
  824. 8000616: 2214 movs r2, #20
  825. 8000618: 2100 movs r1, #0
  826. 800061a: a803 add r0, sp, #12
  827. 800061c: f001 fa22 bl 8001a64 <memset>
  828. if(spiHandle->Instance==SPI1)
  829. 8000620: 6822 ldr r2, [r4, #0]
  830. 8000622: 4b12 ldr r3, [pc, #72] ; (800066c <HAL_SPI_MspInit+0x5c>)
  831. 8000624: 429a cmp r2, r3
  832. 8000626: d001 beq.n 800062c <HAL_SPI_MspInit+0x1c>
  833. /* USER CODE BEGIN SPI1_MspInit 1 */
  834. /* USER CODE END SPI1_MspInit 1 */
  835. }
  836. }
  837. 8000628: b008 add sp, #32
  838. 800062a: bd10 pop {r4, pc}
  839. __HAL_RCC_SPI1_CLK_ENABLE();
  840. 800062c: 4b10 ldr r3, [pc, #64] ; (8000670 <HAL_SPI_MspInit+0x60>)
  841. 800062e: 6999 ldr r1, [r3, #24]
  842. 8000630: 2080 movs r0, #128 ; 0x80
  843. 8000632: 0140 lsls r0, r0, #5
  844. 8000634: 4301 orrs r1, r0
  845. 8000636: 6199 str r1, [r3, #24]
  846. 8000638: 699a ldr r2, [r3, #24]
  847. 800063a: 4002 ands r2, r0
  848. 800063c: 9201 str r2, [sp, #4]
  849. 800063e: 9a01 ldr r2, [sp, #4]
  850. __HAL_RCC_GPIOA_CLK_ENABLE();
  851. 8000640: 695a ldr r2, [r3, #20]
  852. 8000642: 2180 movs r1, #128 ; 0x80
  853. 8000644: 0289 lsls r1, r1, #10
  854. 8000646: 430a orrs r2, r1
  855. 8000648: 615a str r2, [r3, #20]
  856. 800064a: 695b ldr r3, [r3, #20]
  857. 800064c: 400b ands r3, r1
  858. 800064e: 9302 str r3, [sp, #8]
  859. 8000650: 9b02 ldr r3, [sp, #8]
  860. GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7;
  861. 8000652: 23e0 movs r3, #224 ; 0xe0
  862. 8000654: 9303 str r3, [sp, #12]
  863. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  864. 8000656: 3bde subs r3, #222 ; 0xde
  865. 8000658: 9304 str r3, [sp, #16]
  866. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  867. 800065a: 3301 adds r3, #1
  868. 800065c: 9306 str r3, [sp, #24]
  869. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  870. 800065e: 2090 movs r0, #144 ; 0x90
  871. 8000660: a903 add r1, sp, #12
  872. 8000662: 05c0 lsls r0, r0, #23
  873. 8000664: f000 f9b2 bl 80009cc <HAL_GPIO_Init>
  874. }
  875. 8000668: e7de b.n 8000628 <HAL_SPI_MspInit+0x18>
  876. 800066a: 46c0 nop ; (mov r8, r8)
  877. 800066c: 40013000 .word 0x40013000
  878. 8000670: 40021000 .word 0x40021000
  879. 08000674 <HAL_MspInit>:
  880. /* USER CODE END 0 */
  881. /**
  882. * Initializes the Global MSP.
  883. */
  884. void HAL_MspInit(void)
  885. {
  886. 8000674: b082 sub sp, #8
  887. /* USER CODE BEGIN MspInit 0 */
  888. /* USER CODE END MspInit 0 */
  889. __HAL_RCC_SYSCFG_CLK_ENABLE();
  890. 8000676: 4b0a ldr r3, [pc, #40] ; (80006a0 <HAL_MspInit+0x2c>)
  891. 8000678: 6999 ldr r1, [r3, #24]
  892. 800067a: 2201 movs r2, #1
  893. 800067c: 4311 orrs r1, r2
  894. 800067e: 6199 str r1, [r3, #24]
  895. 8000680: 6999 ldr r1, [r3, #24]
  896. 8000682: 400a ands r2, r1
  897. 8000684: 9200 str r2, [sp, #0]
  898. 8000686: 9a00 ldr r2, [sp, #0]
  899. __HAL_RCC_PWR_CLK_ENABLE();
  900. 8000688: 69da ldr r2, [r3, #28]
  901. 800068a: 2180 movs r1, #128 ; 0x80
  902. 800068c: 0549 lsls r1, r1, #21
  903. 800068e: 430a orrs r2, r1
  904. 8000690: 61da str r2, [r3, #28]
  905. 8000692: 69db ldr r3, [r3, #28]
  906. 8000694: 400b ands r3, r1
  907. 8000696: 9301 str r3, [sp, #4]
  908. 8000698: 9b01 ldr r3, [sp, #4]
  909. /* System interrupt init*/
  910. /* USER CODE BEGIN MspInit 1 */
  911. /* USER CODE END MspInit 1 */
  912. }
  913. 800069a: b002 add sp, #8
  914. 800069c: 4770 bx lr
  915. 800069e: 46c0 nop ; (mov r8, r8)
  916. 80006a0: 40021000 .word 0x40021000
  917. 080006a4 <NMI_Handler>:
  918. {
  919. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  920. /* USER CODE END NonMaskableInt_IRQn 0 */
  921. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  922. while (1)
  923. 80006a4: e7fe b.n 80006a4 <NMI_Handler>
  924. 080006a6 <HardFault_Handler>:
  925. void HardFault_Handler(void)
  926. {
  927. /* USER CODE BEGIN HardFault_IRQn 0 */
  928. /* USER CODE END HardFault_IRQn 0 */
  929. while (1)
  930. 80006a6: e7fe b.n 80006a6 <HardFault_Handler>
  931. 080006a8 <SVC_Handler>:
  932. /* USER CODE END SVC_IRQn 0 */
  933. /* USER CODE BEGIN SVC_IRQn 1 */
  934. /* USER CODE END SVC_IRQn 1 */
  935. }
  936. 80006a8: 4770 bx lr
  937. 080006aa <PendSV_Handler>:
  938. /* USER CODE END PendSV_IRQn 0 */
  939. /* USER CODE BEGIN PendSV_IRQn 1 */
  940. /* USER CODE END PendSV_IRQn 1 */
  941. }
  942. 80006aa: 4770 bx lr
  943. 080006ac <SysTick_Handler>:
  944. /**
  945. * @brief This function handles System tick timer.
  946. */
  947. void SysTick_Handler(void)
  948. {
  949. 80006ac: b510 push {r4, lr}
  950. /* USER CODE BEGIN SysTick_IRQn 0 */
  951. /* USER CODE END SysTick_IRQn 0 */
  952. HAL_IncTick();
  953. 80006ae: f000 f923 bl 80008f8 <HAL_IncTick>
  954. /* USER CODE BEGIN SysTick_IRQn 1 */
  955. /* USER CODE END SysTick_IRQn 1 */
  956. }
  957. 80006b2: bd10 pop {r4, pc}
  958. 080006b4 <EXTI0_1_IRQHandler>:
  959. /**
  960. * @brief This function handles EXTI line 0 and 1 interrupts.
  961. */
  962. void EXTI0_1_IRQHandler(void)
  963. {
  964. 80006b4: b510 push {r4, lr}
  965. /* USER CODE BEGIN EXTI0_1_IRQn 0 */
  966. /* USER CODE END EXTI0_1_IRQn 0 */
  967. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_1);
  968. 80006b6: 2002 movs r0, #2
  969. 80006b8: f000 fa56 bl 8000b68 <HAL_GPIO_EXTI_IRQHandler>
  970. /* USER CODE BEGIN EXTI0_1_IRQn 1 */
  971. /* USER CODE END EXTI0_1_IRQn 1 */
  972. }
  973. 80006bc: bd10 pop {r4, pc}
  974. 080006be <SystemInit>:
  975. before branch to main program. This call is made inside
  976. the "startup_stm32f0xx.s" file.
  977. User can setups the default system clock (System clock source, PLL Multiplier
  978. and Divider factors, AHB/APBx prescalers and Flash settings).
  979. */
  980. }
  981. 80006be: 4770 bx lr
  982. 080006c0 <HAL_TIM_Base_MspInit>:
  983. HAL_TIM_MspPostInit(&htim1);
  984. }
  985. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* tim_baseHandle)
  986. {
  987. 80006c0: b082 sub sp, #8
  988. if(tim_baseHandle->Instance==TIM1)
  989. 80006c2: 6802 ldr r2, [r0, #0]
  990. 80006c4: 4b07 ldr r3, [pc, #28] ; (80006e4 <HAL_TIM_Base_MspInit+0x24>)
  991. 80006c6: 429a cmp r2, r3
  992. 80006c8: d001 beq.n 80006ce <HAL_TIM_Base_MspInit+0xe>
  993. __HAL_RCC_TIM1_CLK_ENABLE();
  994. /* USER CODE BEGIN TIM1_MspInit 1 */
  995. /* USER CODE END TIM1_MspInit 1 */
  996. }
  997. }
  998. 80006ca: b002 add sp, #8
  999. 80006cc: 4770 bx lr
  1000. __HAL_RCC_TIM1_CLK_ENABLE();
  1001. 80006ce: 4a06 ldr r2, [pc, #24] ; (80006e8 <HAL_TIM_Base_MspInit+0x28>)
  1002. 80006d0: 6991 ldr r1, [r2, #24]
  1003. 80006d2: 2080 movs r0, #128 ; 0x80
  1004. 80006d4: 0100 lsls r0, r0, #4
  1005. 80006d6: 4301 orrs r1, r0
  1006. 80006d8: 6191 str r1, [r2, #24]
  1007. 80006da: 6993 ldr r3, [r2, #24]
  1008. 80006dc: 4003 ands r3, r0
  1009. 80006de: 9301 str r3, [sp, #4]
  1010. 80006e0: 9b01 ldr r3, [sp, #4]
  1011. }
  1012. 80006e2: e7f2 b.n 80006ca <HAL_TIM_Base_MspInit+0xa>
  1013. 80006e4: 40012c00 .word 0x40012c00
  1014. 80006e8: 40021000 .word 0x40021000
  1015. 080006ec <HAL_TIM_MspPostInit>:
  1016. void HAL_TIM_MspPostInit(TIM_HandleTypeDef* timHandle)
  1017. {
  1018. 80006ec: b510 push {r4, lr}
  1019. 80006ee: b086 sub sp, #24
  1020. 80006f0: 0004 movs r4, r0
  1021. GPIO_InitTypeDef GPIO_InitStruct = {0};
  1022. 80006f2: 2214 movs r2, #20
  1023. 80006f4: 2100 movs r1, #0
  1024. 80006f6: a801 add r0, sp, #4
  1025. 80006f8: f001 f9b4 bl 8001a64 <memset>
  1026. if(timHandle->Instance==TIM1)
  1027. 80006fc: 6822 ldr r2, [r4, #0]
  1028. 80006fe: 4b0d ldr r3, [pc, #52] ; (8000734 <HAL_TIM_MspPostInit+0x48>)
  1029. 8000700: 429a cmp r2, r3
  1030. 8000702: d001 beq.n 8000708 <HAL_TIM_MspPostInit+0x1c>
  1031. /* USER CODE BEGIN TIM1_MspPostInit 1 */
  1032. /* USER CODE END TIM1_MspPostInit 1 */
  1033. }
  1034. }
  1035. 8000704: b006 add sp, #24
  1036. 8000706: bd10 pop {r4, pc}
  1037. __HAL_RCC_GPIOA_CLK_ENABLE();
  1038. 8000708: 4a0b ldr r2, [pc, #44] ; (8000738 <HAL_TIM_MspPostInit+0x4c>)
  1039. 800070a: 6951 ldr r1, [r2, #20]
  1040. 800070c: 2080 movs r0, #128 ; 0x80
  1041. 800070e: 0280 lsls r0, r0, #10
  1042. 8000710: 4301 orrs r1, r0
  1043. 8000712: 6151 str r1, [r2, #20]
  1044. 8000714: 6953 ldr r3, [r2, #20]
  1045. 8000716: 4003 ands r3, r0
  1046. 8000718: 9300 str r3, [sp, #0]
  1047. 800071a: 9b00 ldr r3, [sp, #0]
  1048. GPIO_InitStruct.Pin = GPIO_PIN_8;
  1049. 800071c: 2380 movs r3, #128 ; 0x80
  1050. 800071e: 005b lsls r3, r3, #1
  1051. 8000720: 9301 str r3, [sp, #4]
  1052. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  1053. 8000722: 3bfe subs r3, #254 ; 0xfe
  1054. 8000724: 9302 str r3, [sp, #8]
  1055. GPIO_InitStruct.Alternate = GPIO_AF2_TIM1;
  1056. 8000726: 9305 str r3, [sp, #20]
  1057. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  1058. 8000728: 2090 movs r0, #144 ; 0x90
  1059. 800072a: a901 add r1, sp, #4
  1060. 800072c: 05c0 lsls r0, r0, #23
  1061. 800072e: f000 f94d bl 80009cc <HAL_GPIO_Init>
  1062. }
  1063. 8000732: e7e7 b.n 8000704 <HAL_TIM_MspPostInit+0x18>
  1064. 8000734: 40012c00 .word 0x40012c00
  1065. 8000738: 40021000 .word 0x40021000
  1066. 0800073c <MX_TIM1_Init>:
  1067. {
  1068. 800073c: b500 push {lr}
  1069. 800073e: b097 sub sp, #92 ; 0x5c
  1070. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  1071. 8000740: 2210 movs r2, #16
  1072. 8000742: 2100 movs r1, #0
  1073. 8000744: a812 add r0, sp, #72 ; 0x48
  1074. 8000746: f001 f98d bl 8001a64 <memset>
  1075. TIM_MasterConfigTypeDef sMasterConfig = {0};
  1076. 800074a: 2208 movs r2, #8
  1077. 800074c: 2100 movs r1, #0
  1078. 800074e: a810 add r0, sp, #64 ; 0x40
  1079. 8000750: f001 f988 bl 8001a64 <memset>
  1080. TIM_OC_InitTypeDef sConfigOC = {0};
  1081. 8000754: 221c movs r2, #28
  1082. 8000756: 2100 movs r1, #0
  1083. 8000758: a809 add r0, sp, #36 ; 0x24
  1084. 800075a: f001 f983 bl 8001a64 <memset>
  1085. TIM_BreakDeadTimeConfigTypeDef sBreakDeadTimeConfig = {0};
  1086. 800075e: 2220 movs r2, #32
  1087. 8000760: 2100 movs r1, #0
  1088. 8000762: a801 add r0, sp, #4
  1089. 8000764: f001 f97e bl 8001a64 <memset>
  1090. htim1.Instance = TIM1;
  1091. 8000768: 4830 ldr r0, [pc, #192] ; (800082c <MX_TIM1_Init+0xf0>)
  1092. 800076a: 4b31 ldr r3, [pc, #196] ; (8000830 <MX_TIM1_Init+0xf4>)
  1093. 800076c: 6003 str r3, [r0, #0]
  1094. htim1.Init.Prescaler = 100-1;
  1095. 800076e: 2363 movs r3, #99 ; 0x63
  1096. 8000770: 6043 str r3, [r0, #4]
  1097. htim1.Init.CounterMode = TIM_COUNTERMODE_UP;
  1098. 8000772: 2300 movs r3, #0
  1099. 8000774: 6083 str r3, [r0, #8]
  1100. htim1.Init.Period = 3600;
  1101. 8000776: 22e1 movs r2, #225 ; 0xe1
  1102. 8000778: 0112 lsls r2, r2, #4
  1103. 800077a: 60c2 str r2, [r0, #12]
  1104. htim1.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  1105. 800077c: 6103 str r3, [r0, #16]
  1106. htim1.Init.RepetitionCounter = 0;
  1107. 800077e: 6143 str r3, [r0, #20]
  1108. htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  1109. 8000780: 6183 str r3, [r0, #24]
  1110. if (HAL_TIM_Base_Init(&htim1) != HAL_OK)
  1111. 8000782: f000 fec7 bl 8001514 <HAL_TIM_Base_Init>
  1112. 8000786: 2800 cmp r0, #0
  1113. 8000788: d13e bne.n 8000808 <MX_TIM1_Init+0xcc>
  1114. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  1115. 800078a: 2380 movs r3, #128 ; 0x80
  1116. 800078c: 015b lsls r3, r3, #5
  1117. 800078e: 9312 str r3, [sp, #72] ; 0x48
  1118. if (HAL_TIM_ConfigClockSource(&htim1, &sClockSourceConfig) != HAL_OK)
  1119. 8000790: a912 add r1, sp, #72 ; 0x48
  1120. 8000792: 4826 ldr r0, [pc, #152] ; (800082c <MX_TIM1_Init+0xf0>)
  1121. 8000794: f000 ffda bl 800174c <HAL_TIM_ConfigClockSource>
  1122. 8000798: 2800 cmp r0, #0
  1123. 800079a: d138 bne.n 800080e <MX_TIM1_Init+0xd2>
  1124. if (HAL_TIM_PWM_Init(&htim1) != HAL_OK)
  1125. 800079c: 4823 ldr r0, [pc, #140] ; (800082c <MX_TIM1_Init+0xf0>)
  1126. 800079e: f000 fee5 bl 800156c <HAL_TIM_PWM_Init>
  1127. 80007a2: 2800 cmp r0, #0
  1128. 80007a4: d136 bne.n 8000814 <MX_TIM1_Init+0xd8>
  1129. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  1130. 80007a6: 2300 movs r3, #0
  1131. 80007a8: 9310 str r3, [sp, #64] ; 0x40
  1132. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  1133. 80007aa: 9311 str r3, [sp, #68] ; 0x44
  1134. if (HAL_TIMEx_MasterConfigSynchronization(&htim1, &sMasterConfig) != HAL_OK)
  1135. 80007ac: a910 add r1, sp, #64 ; 0x40
  1136. 80007ae: 481f ldr r0, [pc, #124] ; (800082c <MX_TIM1_Init+0xf0>)
  1137. 80007b0: f001 f8d0 bl 8001954 <HAL_TIMEx_MasterConfigSynchronization>
  1138. 80007b4: 2800 cmp r0, #0
  1139. 80007b6: d130 bne.n 800081a <MX_TIM1_Init+0xde>
  1140. sConfigOC.OCMode = TIM_OCMODE_PWM1;
  1141. 80007b8: 2360 movs r3, #96 ; 0x60
  1142. 80007ba: 9309 str r3, [sp, #36] ; 0x24
  1143. sConfigOC.Pulse = 1800;
  1144. 80007bc: 23e1 movs r3, #225 ; 0xe1
  1145. 80007be: 00db lsls r3, r3, #3
  1146. 80007c0: 930a str r3, [sp, #40] ; 0x28
  1147. sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
  1148. 80007c2: 2300 movs r3, #0
  1149. 80007c4: 930b str r3, [sp, #44] ; 0x2c
  1150. sConfigOC.OCNPolarity = TIM_OCNPOLARITY_HIGH;
  1151. 80007c6: 930c str r3, [sp, #48] ; 0x30
  1152. sConfigOC.OCFastMode = TIM_OCFAST_ENABLE;
  1153. 80007c8: 2204 movs r2, #4
  1154. 80007ca: 920d str r2, [sp, #52] ; 0x34
  1155. sConfigOC.OCIdleState = TIM_OCIDLESTATE_RESET;
  1156. 80007cc: 930e str r3, [sp, #56] ; 0x38
  1157. sConfigOC.OCNIdleState = TIM_OCNIDLESTATE_RESET;
  1158. 80007ce: 930f str r3, [sp, #60] ; 0x3c
  1159. if (HAL_TIM_PWM_ConfigChannel(&htim1, &sConfigOC, TIM_CHANNEL_1) != HAL_OK)
  1160. 80007d0: 2200 movs r2, #0
  1161. 80007d2: a909 add r1, sp, #36 ; 0x24
  1162. 80007d4: 4815 ldr r0, [pc, #84] ; (800082c <MX_TIM1_Init+0xf0>)
  1163. 80007d6: f000 ff35 bl 8001644 <HAL_TIM_PWM_ConfigChannel>
  1164. 80007da: 2800 cmp r0, #0
  1165. 80007dc: d120 bne.n 8000820 <MX_TIM1_Init+0xe4>
  1166. sBreakDeadTimeConfig.OffStateRunMode = TIM_OSSR_DISABLE;
  1167. 80007de: 2300 movs r3, #0
  1168. 80007e0: 9301 str r3, [sp, #4]
  1169. sBreakDeadTimeConfig.OffStateIDLEMode = TIM_OSSI_DISABLE;
  1170. 80007e2: 9302 str r3, [sp, #8]
  1171. sBreakDeadTimeConfig.LockLevel = TIM_LOCKLEVEL_OFF;
  1172. 80007e4: 9303 str r3, [sp, #12]
  1173. sBreakDeadTimeConfig.DeadTime = 0;
  1174. 80007e6: 9304 str r3, [sp, #16]
  1175. sBreakDeadTimeConfig.BreakState = TIM_BREAK_DISABLE;
  1176. 80007e8: 9305 str r3, [sp, #20]
  1177. sBreakDeadTimeConfig.BreakPolarity = TIM_BREAKPOLARITY_HIGH;
  1178. 80007ea: 2280 movs r2, #128 ; 0x80
  1179. 80007ec: 0192 lsls r2, r2, #6
  1180. 80007ee: 9206 str r2, [sp, #24]
  1181. sBreakDeadTimeConfig.AutomaticOutput = TIM_AUTOMATICOUTPUT_DISABLE;
  1182. 80007f0: 9308 str r3, [sp, #32]
  1183. if (HAL_TIMEx_ConfigBreakDeadTime(&htim1, &sBreakDeadTimeConfig) != HAL_OK)
  1184. 80007f2: a901 add r1, sp, #4
  1185. 80007f4: 480d ldr r0, [pc, #52] ; (800082c <MX_TIM1_Init+0xf0>)
  1186. 80007f6: f001 f8db bl 80019b0 <HAL_TIMEx_ConfigBreakDeadTime>
  1187. 80007fa: 2800 cmp r0, #0
  1188. 80007fc: d113 bne.n 8000826 <MX_TIM1_Init+0xea>
  1189. HAL_TIM_MspPostInit(&htim1);
  1190. 80007fe: 480b ldr r0, [pc, #44] ; (800082c <MX_TIM1_Init+0xf0>)
  1191. 8000800: f7ff ff74 bl 80006ec <HAL_TIM_MspPostInit>
  1192. }
  1193. 8000804: b017 add sp, #92 ; 0x5c
  1194. 8000806: bd00 pop {pc}
  1195. Error_Handler();
  1196. 8000808: f7ff fe9c bl 8000544 <Error_Handler>
  1197. 800080c: e7bd b.n 800078a <MX_TIM1_Init+0x4e>
  1198. Error_Handler();
  1199. 800080e: f7ff fe99 bl 8000544 <Error_Handler>
  1200. 8000812: e7c3 b.n 800079c <MX_TIM1_Init+0x60>
  1201. Error_Handler();
  1202. 8000814: f7ff fe96 bl 8000544 <Error_Handler>
  1203. 8000818: e7c5 b.n 80007a6 <MX_TIM1_Init+0x6a>
  1204. Error_Handler();
  1205. 800081a: f7ff fe93 bl 8000544 <Error_Handler>
  1206. 800081e: e7cb b.n 80007b8 <MX_TIM1_Init+0x7c>
  1207. Error_Handler();
  1208. 8000820: f7ff fe90 bl 8000544 <Error_Handler>
  1209. 8000824: e7db b.n 80007de <MX_TIM1_Init+0xa2>
  1210. Error_Handler();
  1211. 8000826: f7ff fe8d bl 8000544 <Error_Handler>
  1212. 800082a: e7e8 b.n 80007fe <MX_TIM1_Init+0xc2>
  1213. 800082c: 20000098 .word 0x20000098
  1214. 8000830: 40012c00 .word 0x40012c00
  1215. 08000834 <Reset_Handler>:
  1216. .section .text.Reset_Handler
  1217. .weak Reset_Handler
  1218. .type Reset_Handler, %function
  1219. Reset_Handler:
  1220. ldr r0, =_estack
  1221. 8000834: 480d ldr r0, [pc, #52] ; (800086c <LoopForever+0x2>)
  1222. mov sp, r0 /* set stack pointer */
  1223. 8000836: 4685 mov sp, r0
  1224. /* Copy the data segment initializers from flash to SRAM */
  1225. ldr r0, =_sdata
  1226. 8000838: 480d ldr r0, [pc, #52] ; (8000870 <LoopForever+0x6>)
  1227. ldr r1, =_edata
  1228. 800083a: 490e ldr r1, [pc, #56] ; (8000874 <LoopForever+0xa>)
  1229. ldr r2, =_sidata
  1230. 800083c: 4a0e ldr r2, [pc, #56] ; (8000878 <LoopForever+0xe>)
  1231. movs r3, #0
  1232. 800083e: 2300 movs r3, #0
  1233. b LoopCopyDataInit
  1234. 8000840: e002 b.n 8000848 <LoopCopyDataInit>
  1235. 08000842 <CopyDataInit>:
  1236. CopyDataInit:
  1237. ldr r4, [r2, r3]
  1238. 8000842: 58d4 ldr r4, [r2, r3]
  1239. str r4, [r0, r3]
  1240. 8000844: 50c4 str r4, [r0, r3]
  1241. adds r3, r3, #4
  1242. 8000846: 3304 adds r3, #4
  1243. 08000848 <LoopCopyDataInit>:
  1244. LoopCopyDataInit:
  1245. adds r4, r0, r3
  1246. 8000848: 18c4 adds r4, r0, r3
  1247. cmp r4, r1
  1248. 800084a: 428c cmp r4, r1
  1249. bcc CopyDataInit
  1250. 800084c: d3f9 bcc.n 8000842 <CopyDataInit>
  1251. /* Zero fill the bss segment. */
  1252. ldr r2, =_sbss
  1253. 800084e: 4a0b ldr r2, [pc, #44] ; (800087c <LoopForever+0x12>)
  1254. ldr r4, =_ebss
  1255. 8000850: 4c0b ldr r4, [pc, #44] ; (8000880 <LoopForever+0x16>)
  1256. movs r3, #0
  1257. 8000852: 2300 movs r3, #0
  1258. b LoopFillZerobss
  1259. 8000854: e001 b.n 800085a <LoopFillZerobss>
  1260. 08000856 <FillZerobss>:
  1261. FillZerobss:
  1262. str r3, [r2]
  1263. 8000856: 6013 str r3, [r2, #0]
  1264. adds r2, r2, #4
  1265. 8000858: 3204 adds r2, #4
  1266. 0800085a <LoopFillZerobss>:
  1267. LoopFillZerobss:
  1268. cmp r2, r4
  1269. 800085a: 42a2 cmp r2, r4
  1270. bcc FillZerobss
  1271. 800085c: d3fb bcc.n 8000856 <FillZerobss>
  1272. /* Call the clock system intitialization function.*/
  1273. bl SystemInit
  1274. 800085e: f7ff ff2e bl 80006be <SystemInit>
  1275. /* Call static constructors */
  1276. bl __libc_init_array
  1277. 8000862: f001 f8db bl 8001a1c <__libc_init_array>
  1278. /* Call the application's entry point.*/
  1279. bl main
  1280. 8000866: f7ff fe9d bl 80005a4 <main>
  1281. 0800086a <LoopForever>:
  1282. LoopForever:
  1283. b LoopForever
  1284. 800086a: e7fe b.n 800086a <LoopForever>
  1285. ldr r0, =_estack
  1286. 800086c: 20001000 .word 0x20001000
  1287. ldr r0, =_sdata
  1288. 8000870: 20000000 .word 0x20000000
  1289. ldr r1, =_edata
  1290. 8000874: 20000010 .word 0x20000010
  1291. ldr r2, =_sidata
  1292. 8000878: 08001acc .word 0x08001acc
  1293. ldr r2, =_sbss
  1294. 800087c: 20000010 .word 0x20000010
  1295. ldr r4, =_ebss
  1296. 8000880: 200000e4 .word 0x200000e4
  1297. 08000884 <ADC1_IRQHandler>:
  1298. * @retval : None
  1299. */
  1300. .section .text.Default_Handler,"ax",%progbits
  1301. Default_Handler:
  1302. Infinite_Loop:
  1303. b Infinite_Loop
  1304. 8000884: e7fe b.n 8000884 <ADC1_IRQHandler>
  1305. ...
  1306. 08000888 <HAL_InitTick>:
  1307. * implementation in user file.
  1308. * @param TickPriority Tick interrupt priority.
  1309. * @retval HAL status
  1310. */
  1311. __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  1312. {
  1313. 8000888: b510 push {r4, lr}
  1314. 800088a: 0004 movs r4, r0
  1315. /*Configure the SysTick to have interrupt in 1ms time basis*/
  1316. if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U)
  1317. 800088c: 4b0f ldr r3, [pc, #60] ; (80008cc <HAL_InitTick+0x44>)
  1318. 800088e: 7819 ldrb r1, [r3, #0]
  1319. 8000890: 20fa movs r0, #250 ; 0xfa
  1320. 8000892: 0080 lsls r0, r0, #2
  1321. 8000894: f7ff fc38 bl 8000108 <__udivsi3>
  1322. 8000898: 0001 movs r1, r0
  1323. 800089a: 4b0d ldr r3, [pc, #52] ; (80008d0 <HAL_InitTick+0x48>)
  1324. 800089c: 6818 ldr r0, [r3, #0]
  1325. 800089e: f7ff fc33 bl 8000108 <__udivsi3>
  1326. 80008a2: f000 f877 bl 8000994 <HAL_SYSTICK_Config>
  1327. 80008a6: 2800 cmp r0, #0
  1328. 80008a8: d10d bne.n 80008c6 <HAL_InitTick+0x3e>
  1329. {
  1330. return HAL_ERROR;
  1331. }
  1332. /* Configure the SysTick IRQ priority */
  1333. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  1334. 80008aa: 2c03 cmp r4, #3
  1335. 80008ac: d901 bls.n 80008b2 <HAL_InitTick+0x2a>
  1336. HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U);
  1337. uwTickPrio = TickPriority;
  1338. }
  1339. else
  1340. {
  1341. return HAL_ERROR;
  1342. 80008ae: 2001 movs r0, #1
  1343. 80008b0: e00a b.n 80008c8 <HAL_InitTick+0x40>
  1344. HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U);
  1345. 80008b2: 3001 adds r0, #1
  1346. 80008b4: 2200 movs r2, #0
  1347. 80008b6: 0021 movs r1, r4
  1348. 80008b8: 4240 negs r0, r0
  1349. 80008ba: f000 f82f bl 800091c <HAL_NVIC_SetPriority>
  1350. uwTickPrio = TickPriority;
  1351. 80008be: 4b05 ldr r3, [pc, #20] ; (80008d4 <HAL_InitTick+0x4c>)
  1352. 80008c0: 601c str r4, [r3, #0]
  1353. }
  1354. /* Return function status */
  1355. return HAL_OK;
  1356. 80008c2: 2000 movs r0, #0
  1357. 80008c4: e000 b.n 80008c8 <HAL_InitTick+0x40>
  1358. return HAL_ERROR;
  1359. 80008c6: 2001 movs r0, #1
  1360. }
  1361. 80008c8: bd10 pop {r4, pc}
  1362. 80008ca: 46c0 nop ; (mov r8, r8)
  1363. 80008cc: 20000008 .word 0x20000008
  1364. 80008d0: 20000004 .word 0x20000004
  1365. 80008d4: 2000000c .word 0x2000000c
  1366. 080008d8 <HAL_Init>:
  1367. {
  1368. 80008d8: b510 push {r4, lr}
  1369. __HAL_FLASH_PREFETCH_BUFFER_ENABLE();
  1370. 80008da: 4a06 ldr r2, [pc, #24] ; (80008f4 <HAL_Init+0x1c>)
  1371. 80008dc: 6813 ldr r3, [r2, #0]
  1372. 80008de: 2110 movs r1, #16
  1373. 80008e0: 430b orrs r3, r1
  1374. 80008e2: 6013 str r3, [r2, #0]
  1375. HAL_InitTick(TICK_INT_PRIORITY);
  1376. 80008e4: 2003 movs r0, #3
  1377. 80008e6: f7ff ffcf bl 8000888 <HAL_InitTick>
  1378. HAL_MspInit();
  1379. 80008ea: f7ff fec3 bl 8000674 <HAL_MspInit>
  1380. }
  1381. 80008ee: 2000 movs r0, #0
  1382. 80008f0: bd10 pop {r4, pc}
  1383. 80008f2: 46c0 nop ; (mov r8, r8)
  1384. 80008f4: 40022000 .word 0x40022000
  1385. 080008f8 <HAL_IncTick>:
  1386. * implementations in user file.
  1387. * @retval None
  1388. */
  1389. __weak void HAL_IncTick(void)
  1390. {
  1391. uwTick += uwTickFreq;
  1392. 80008f8: 4a03 ldr r2, [pc, #12] ; (8000908 <HAL_IncTick+0x10>)
  1393. 80008fa: 6811 ldr r1, [r2, #0]
  1394. 80008fc: 4b03 ldr r3, [pc, #12] ; (800090c <HAL_IncTick+0x14>)
  1395. 80008fe: 781b ldrb r3, [r3, #0]
  1396. 8000900: 185b adds r3, r3, r1
  1397. 8000902: 6013 str r3, [r2, #0]
  1398. }
  1399. 8000904: 4770 bx lr
  1400. 8000906: 46c0 nop ; (mov r8, r8)
  1401. 8000908: 200000e0 .word 0x200000e0
  1402. 800090c: 20000008 .word 0x20000008
  1403. 08000910 <HAL_GetTick>:
  1404. * implementations in user file.
  1405. * @retval tick value
  1406. */
  1407. __weak uint32_t HAL_GetTick(void)
  1408. {
  1409. return uwTick;
  1410. 8000910: 4b01 ldr r3, [pc, #4] ; (8000918 <HAL_GetTick+0x8>)
  1411. 8000912: 6818 ldr r0, [r3, #0]
  1412. }
  1413. 8000914: 4770 bx lr
  1414. 8000916: 46c0 nop ; (mov r8, r8)
  1415. 8000918: 200000e0 .word 0x200000e0
  1416. 0800091c <HAL_NVIC_SetPriority>:
  1417. * with stm32f0xx devices, this parameter is a dummy value and it is ignored, because
  1418. * no subpriority supported in Cortex M0 based products.
  1419. * @retval None
  1420. */
  1421. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  1422. {
  1423. 800091c: b570 push {r4, r5, r6, lr}
  1424. \param [in] priority Priority to set.
  1425. \note The priority cannot be set for every processor exception.
  1426. */
  1427. __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
  1428. {
  1429. if ((int32_t)(IRQn) >= 0)
  1430. 800091e: 2800 cmp r0, #0
  1431. 8000920: db11 blt.n 8000946 <HAL_NVIC_SetPriority+0x2a>
  1432. {
  1433. NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) |
  1434. 8000922: 0883 lsrs r3, r0, #2
  1435. 8000924: 4e13 ldr r6, [pc, #76] ; (8000974 <HAL_NVIC_SetPriority+0x58>)
  1436. 8000926: 33c0 adds r3, #192 ; 0xc0
  1437. 8000928: 009b lsls r3, r3, #2
  1438. 800092a: 599d ldr r5, [r3, r6]
  1439. 800092c: 2403 movs r4, #3
  1440. 800092e: 4020 ands r0, r4
  1441. 8000930: 00c0 lsls r0, r0, #3
  1442. 8000932: 22ff movs r2, #255 ; 0xff
  1443. 8000934: 0014 movs r4, r2
  1444. 8000936: 4084 lsls r4, r0
  1445. 8000938: 43a5 bics r5, r4
  1446. (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn)));
  1447. 800093a: 0189 lsls r1, r1, #6
  1448. 800093c: 400a ands r2, r1
  1449. 800093e: 4082 lsls r2, r0
  1450. NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) |
  1451. 8000940: 432a orrs r2, r5
  1452. 8000942: 519a str r2, [r3, r6]
  1453. /* Check the parameters */
  1454. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  1455. NVIC_SetPriority(IRQn,PreemptPriority);
  1456. }
  1457. 8000944: bd70 pop {r4, r5, r6, pc}
  1458. }
  1459. else
  1460. {
  1461. SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) |
  1462. 8000946: 230f movs r3, #15
  1463. 8000948: 4003 ands r3, r0
  1464. 800094a: 3b08 subs r3, #8
  1465. 800094c: 089b lsrs r3, r3, #2
  1466. 800094e: 3306 adds r3, #6
  1467. 8000950: 009b lsls r3, r3, #2
  1468. 8000952: 4a09 ldr r2, [pc, #36] ; (8000978 <HAL_NVIC_SetPriority+0x5c>)
  1469. 8000954: 4694 mov ip, r2
  1470. 8000956: 4463 add r3, ip
  1471. 8000958: 685c ldr r4, [r3, #4]
  1472. 800095a: 2203 movs r2, #3
  1473. 800095c: 4010 ands r0, r2
  1474. 800095e: 00c0 lsls r0, r0, #3
  1475. 8000960: 32fc adds r2, #252 ; 0xfc
  1476. 8000962: 0015 movs r5, r2
  1477. 8000964: 4085 lsls r5, r0
  1478. 8000966: 43ac bics r4, r5
  1479. (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn)));
  1480. 8000968: 0189 lsls r1, r1, #6
  1481. 800096a: 400a ands r2, r1
  1482. 800096c: 4082 lsls r2, r0
  1483. SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) |
  1484. 800096e: 4322 orrs r2, r4
  1485. 8000970: 605a str r2, [r3, #4]
  1486. 8000972: e7e7 b.n 8000944 <HAL_NVIC_SetPriority+0x28>
  1487. 8000974: e000e100 .word 0xe000e100
  1488. 8000978: e000ed00 .word 0xe000ed00
  1489. 0800097c <HAL_NVIC_EnableIRQ>:
  1490. if ((int32_t)(IRQn) >= 0)
  1491. 800097c: 2800 cmp r0, #0
  1492. 800097e: db05 blt.n 800098c <HAL_NVIC_EnableIRQ+0x10>
  1493. NVIC->ISER[0U] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  1494. 8000980: 231f movs r3, #31
  1495. 8000982: 4018 ands r0, r3
  1496. 8000984: 3b1e subs r3, #30
  1497. 8000986: 4083 lsls r3, r0
  1498. 8000988: 4a01 ldr r2, [pc, #4] ; (8000990 <HAL_NVIC_EnableIRQ+0x14>)
  1499. 800098a: 6013 str r3, [r2, #0]
  1500. /* Check the parameters */
  1501. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  1502. /* Enable interrupt */
  1503. NVIC_EnableIRQ(IRQn);
  1504. }
  1505. 800098c: 4770 bx lr
  1506. 800098e: 46c0 nop ; (mov r8, r8)
  1507. 8000990: e000e100 .word 0xe000e100
  1508. 08000994 <HAL_SYSTICK_Config>:
  1509. function <b>SysTick_Config</b> is not included. In this case, the file <b><i>device</i>.h</b>
  1510. must contain a vendor-specific implementation of this function.
  1511. */
  1512. __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks)
  1513. {
  1514. if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk)
  1515. 8000994: 3801 subs r0, #1
  1516. 8000996: 2380 movs r3, #128 ; 0x80
  1517. 8000998: 045b lsls r3, r3, #17
  1518. 800099a: 4298 cmp r0, r3
  1519. 800099c: d20f bcs.n 80009be <HAL_SYSTICK_Config+0x2a>
  1520. {
  1521. return (1UL); /* Reload value impossible */
  1522. }
  1523. SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */
  1524. 800099e: 4a09 ldr r2, [pc, #36] ; (80009c4 <HAL_SYSTICK_Config+0x30>)
  1525. 80009a0: 6050 str r0, [r2, #4]
  1526. SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) |
  1527. 80009a2: 4809 ldr r0, [pc, #36] ; (80009c8 <HAL_SYSTICK_Config+0x34>)
  1528. 80009a4: 6a03 ldr r3, [r0, #32]
  1529. 80009a6: 021b lsls r3, r3, #8
  1530. 80009a8: 0a1b lsrs r3, r3, #8
  1531. 80009aa: 21c0 movs r1, #192 ; 0xc0
  1532. 80009ac: 0609 lsls r1, r1, #24
  1533. 80009ae: 430b orrs r3, r1
  1534. 80009b0: 6203 str r3, [r0, #32]
  1535. NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */
  1536. SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
  1537. 80009b2: 2300 movs r3, #0
  1538. 80009b4: 6093 str r3, [r2, #8]
  1539. SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk |
  1540. 80009b6: 3307 adds r3, #7
  1541. 80009b8: 6013 str r3, [r2, #0]
  1542. SysTick_CTRL_TICKINT_Msk |
  1543. SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */
  1544. return (0UL); /* Function successful */
  1545. 80009ba: 2000 movs r0, #0
  1546. * - 1 Function failed.
  1547. */
  1548. uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb)
  1549. {
  1550. return SysTick_Config(TicksNumb);
  1551. }
  1552. 80009bc: 4770 bx lr
  1553. return (1UL); /* Reload value impossible */
  1554. 80009be: 2001 movs r0, #1
  1555. return SysTick_Config(TicksNumb);
  1556. 80009c0: e7fc b.n 80009bc <HAL_SYSTICK_Config+0x28>
  1557. 80009c2: 46c0 nop ; (mov r8, r8)
  1558. 80009c4: e000e010 .word 0xe000e010
  1559. 80009c8: e000ed00 .word 0xe000ed00
  1560. 080009cc <HAL_GPIO_Init>:
  1561. * @param GPIO_Init pointer to a GPIO_InitTypeDef structure that contains
  1562. * the configuration information for the specified GPIO peripheral.
  1563. * @retval None
  1564. */
  1565. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  1566. {
  1567. 80009cc: b5f0 push {r4, r5, r6, r7, lr}
  1568. 80009ce: b083 sub sp, #12
  1569. uint32_t position = 0x00u;
  1570. 80009d0: 2300 movs r3, #0
  1571. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  1572. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  1573. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  1574. /* Configure the port pins */
  1575. while (((GPIO_Init->Pin) >> position) != 0x00u)
  1576. 80009d2: e057 b.n 8000a84 <HAL_GPIO_Init+0xb8>
  1577. ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  1578. {
  1579. /* Check the Speed parameter */
  1580. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  1581. /* Configure the IO Speed */
  1582. temp = GPIOx->OSPEEDR;
  1583. 80009d4: 6884 ldr r4, [r0, #8]
  1584. temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2u));
  1585. 80009d6: 005f lsls r7, r3, #1
  1586. 80009d8: 2603 movs r6, #3
  1587. 80009da: 40be lsls r6, r7
  1588. 80009dc: 43b4 bics r4, r6
  1589. 80009de: 0026 movs r6, r4
  1590. temp |= (GPIO_Init->Speed << (position * 2u));
  1591. 80009e0: 68cc ldr r4, [r1, #12]
  1592. 80009e2: 40bc lsls r4, r7
  1593. 80009e4: 4334 orrs r4, r6
  1594. GPIOx->OSPEEDR = temp;
  1595. 80009e6: 6084 str r4, [r0, #8]
  1596. /* Configure the IO Output Type */
  1597. temp = GPIOx->OTYPER;
  1598. 80009e8: 6844 ldr r4, [r0, #4]
  1599. temp &= ~(GPIO_OTYPER_OT_0 << position) ;
  1600. 80009ea: 4394 bics r4, r2
  1601. temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  1602. 80009ec: 684a ldr r2, [r1, #4]
  1603. 80009ee: 0916 lsrs r6, r2, #4
  1604. 80009f0: 2201 movs r2, #1
  1605. 80009f2: 4032 ands r2, r6
  1606. 80009f4: 409a lsls r2, r3
  1607. 80009f6: 4322 orrs r2, r4
  1608. GPIOx->OTYPER = temp;
  1609. 80009f8: 6042 str r2, [r0, #4]
  1610. 80009fa: e053 b.n 8000aa4 <HAL_GPIO_Init+0xd8>
  1611. /* Check the Alternate function parameters */
  1612. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  1613. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  1614. /* Configure Alternate function mapped with the current IO */
  1615. temp = GPIOx->AFR[position >> 3u];
  1616. 80009fc: 08dc lsrs r4, r3, #3
  1617. 80009fe: 3408 adds r4, #8
  1618. 8000a00: 00a4 lsls r4, r4, #2
  1619. 8000a02: 5826 ldr r6, [r4, r0]
  1620. temp &= ~(0xFu << ((position & 0x07u) * 4u));
  1621. 8000a04: 3205 adds r2, #5
  1622. 8000a06: 401a ands r2, r3
  1623. 8000a08: 0092 lsls r2, r2, #2
  1624. 8000a0a: 270f movs r7, #15
  1625. 8000a0c: 4097 lsls r7, r2
  1626. 8000a0e: 43be bics r6, r7
  1627. temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u));
  1628. 8000a10: 690f ldr r7, [r1, #16]
  1629. 8000a12: 4097 lsls r7, r2
  1630. 8000a14: 003a movs r2, r7
  1631. 8000a16: 4332 orrs r2, r6
  1632. GPIOx->AFR[position >> 3u] = temp;
  1633. 8000a18: 5022 str r2, [r4, r0]
  1634. 8000a1a: e057 b.n 8000acc <HAL_GPIO_Init+0x100>
  1635. /* Enable SYSCFG Clock */
  1636. __HAL_RCC_SYSCFG_CLK_ENABLE();
  1637. temp = SYSCFG->EXTICR[position >> 2u];
  1638. temp &= ~(0x0FuL << (4u * (position & 0x03u)));
  1639. temp |= (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u)));
  1640. 8000a1c: 2603 movs r6, #3
  1641. 8000a1e: e000 b.n 8000a22 <HAL_GPIO_Init+0x56>
  1642. 8000a20: 2600 movs r6, #0
  1643. 8000a22: 40a6 lsls r6, r4
  1644. 8000a24: 0034 movs r4, r6
  1645. 8000a26: 433c orrs r4, r7
  1646. SYSCFG->EXTICR[position >> 2u] = temp;
  1647. 8000a28: 3202 adds r2, #2
  1648. 8000a2a: 0092 lsls r2, r2, #2
  1649. 8000a2c: 4e44 ldr r6, [pc, #272] ; (8000b40 <HAL_GPIO_Init+0x174>)
  1650. 8000a2e: 5194 str r4, [r2, r6]
  1651. /* Clear EXTI line configuration */
  1652. temp = EXTI->IMR;
  1653. 8000a30: 4a44 ldr r2, [pc, #272] ; (8000b44 <HAL_GPIO_Init+0x178>)
  1654. 8000a32: 6814 ldr r4, [r2, #0]
  1655. temp &= ~(iocurrent);
  1656. 8000a34: 43ea mvns r2, r5
  1657. 8000a36: 0026 movs r6, r4
  1658. 8000a38: 43ae bics r6, r5
  1659. if((GPIO_Init->Mode & EXTI_IT) != 0x00u)
  1660. 8000a3a: 684f ldr r7, [r1, #4]
  1661. 8000a3c: 03ff lsls r7, r7, #15
  1662. 8000a3e: d501 bpl.n 8000a44 <HAL_GPIO_Init+0x78>
  1663. {
  1664. temp |= iocurrent;
  1665. 8000a40: 432c orrs r4, r5
  1666. 8000a42: 0026 movs r6, r4
  1667. }
  1668. EXTI->IMR = temp;
  1669. 8000a44: 4c3f ldr r4, [pc, #252] ; (8000b44 <HAL_GPIO_Init+0x178>)
  1670. 8000a46: 6026 str r6, [r4, #0]
  1671. temp = EXTI->EMR;
  1672. 8000a48: 6864 ldr r4, [r4, #4]
  1673. temp &= ~(iocurrent);
  1674. 8000a4a: 0026 movs r6, r4
  1675. 8000a4c: 4016 ands r6, r2
  1676. if((GPIO_Init->Mode & EXTI_EVT) != 0x00u)
  1677. 8000a4e: 684f ldr r7, [r1, #4]
  1678. 8000a50: 03bf lsls r7, r7, #14
  1679. 8000a52: d501 bpl.n 8000a58 <HAL_GPIO_Init+0x8c>
  1680. {
  1681. temp |= iocurrent;
  1682. 8000a54: 432c orrs r4, r5
  1683. 8000a56: 0026 movs r6, r4
  1684. }
  1685. EXTI->EMR = temp;
  1686. 8000a58: 4c3a ldr r4, [pc, #232] ; (8000b44 <HAL_GPIO_Init+0x178>)
  1687. 8000a5a: 6066 str r6, [r4, #4]
  1688. /* Clear Rising Falling edge configuration */
  1689. temp = EXTI->RTSR;
  1690. 8000a5c: 68a4 ldr r4, [r4, #8]
  1691. temp &= ~(iocurrent);
  1692. 8000a5e: 0026 movs r6, r4
  1693. 8000a60: 4016 ands r6, r2
  1694. if((GPIO_Init->Mode & TRIGGER_RISING) != 0x00u)
  1695. 8000a62: 684f ldr r7, [r1, #4]
  1696. 8000a64: 02ff lsls r7, r7, #11
  1697. 8000a66: d501 bpl.n 8000a6c <HAL_GPIO_Init+0xa0>
  1698. {
  1699. temp |= iocurrent;
  1700. 8000a68: 432c orrs r4, r5
  1701. 8000a6a: 0026 movs r6, r4
  1702. }
  1703. EXTI->RTSR = temp;
  1704. 8000a6c: 4c35 ldr r4, [pc, #212] ; (8000b44 <HAL_GPIO_Init+0x178>)
  1705. 8000a6e: 60a6 str r6, [r4, #8]
  1706. temp = EXTI->FTSR;
  1707. 8000a70: 68e4 ldr r4, [r4, #12]
  1708. temp &= ~(iocurrent);
  1709. 8000a72: 4022 ands r2, r4
  1710. if((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00u)
  1711. 8000a74: 684e ldr r6, [r1, #4]
  1712. 8000a76: 02b6 lsls r6, r6, #10
  1713. 8000a78: d501 bpl.n 8000a7e <HAL_GPIO_Init+0xb2>
  1714. {
  1715. temp |= iocurrent;
  1716. 8000a7a: 002a movs r2, r5
  1717. 8000a7c: 4322 orrs r2, r4
  1718. }
  1719. EXTI->FTSR = temp;
  1720. 8000a7e: 4c31 ldr r4, [pc, #196] ; (8000b44 <HAL_GPIO_Init+0x178>)
  1721. 8000a80: 60e2 str r2, [r4, #12]
  1722. }
  1723. }
  1724. position++;
  1725. 8000a82: 3301 adds r3, #1
  1726. while (((GPIO_Init->Pin) >> position) != 0x00u)
  1727. 8000a84: 680c ldr r4, [r1, #0]
  1728. 8000a86: 0022 movs r2, r4
  1729. 8000a88: 40da lsrs r2, r3
  1730. 8000a8a: d057 beq.n 8000b3c <HAL_GPIO_Init+0x170>
  1731. iocurrent = (GPIO_Init->Pin) & (1uL << position);
  1732. 8000a8c: 2201 movs r2, #1
  1733. 8000a8e: 409a lsls r2, r3
  1734. 8000a90: 0025 movs r5, r4
  1735. 8000a92: 4015 ands r5, r2
  1736. if (iocurrent != 0x00u)
  1737. 8000a94: 4214 tst r4, r2
  1738. 8000a96: d0f4 beq.n 8000a82 <HAL_GPIO_Init+0xb6>
  1739. if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) ||
  1740. 8000a98: 2403 movs r4, #3
  1741. 8000a9a: 684e ldr r6, [r1, #4]
  1742. 8000a9c: 4034 ands r4, r6
  1743. 8000a9e: 3c01 subs r4, #1
  1744. 8000aa0: 2c01 cmp r4, #1
  1745. 8000aa2: d997 bls.n 80009d4 <HAL_GPIO_Init+0x8>
  1746. if((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  1747. 8000aa4: 2203 movs r2, #3
  1748. 8000aa6: 684c ldr r4, [r1, #4]
  1749. 8000aa8: 4022 ands r2, r4
  1750. 8000aaa: 2a03 cmp r2, #3
  1751. 8000aac: d009 beq.n 8000ac2 <HAL_GPIO_Init+0xf6>
  1752. temp = GPIOx->PUPDR;
  1753. 8000aae: 68c2 ldr r2, [r0, #12]
  1754. temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2u));
  1755. 8000ab0: 005e lsls r6, r3, #1
  1756. 8000ab2: 2403 movs r4, #3
  1757. 8000ab4: 40b4 lsls r4, r6
  1758. 8000ab6: 43a2 bics r2, r4
  1759. 8000ab8: 0014 movs r4, r2
  1760. temp |= ((GPIO_Init->Pull) << (position * 2u));
  1761. 8000aba: 688a ldr r2, [r1, #8]
  1762. 8000abc: 40b2 lsls r2, r6
  1763. 8000abe: 4322 orrs r2, r4
  1764. GPIOx->PUPDR = temp;
  1765. 8000ac0: 60c2 str r2, [r0, #12]
  1766. if((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  1767. 8000ac2: 2203 movs r2, #3
  1768. 8000ac4: 684c ldr r4, [r1, #4]
  1769. 8000ac6: 4022 ands r2, r4
  1770. 8000ac8: 2a02 cmp r2, #2
  1771. 8000aca: d097 beq.n 80009fc <HAL_GPIO_Init+0x30>
  1772. temp = GPIOx->MODER;
  1773. 8000acc: 6804 ldr r4, [r0, #0]
  1774. temp &= ~(GPIO_MODER_MODER0 << (position * 2u));
  1775. 8000ace: 005e lsls r6, r3, #1
  1776. 8000ad0: 2203 movs r2, #3
  1777. 8000ad2: 0017 movs r7, r2
  1778. 8000ad4: 40b7 lsls r7, r6
  1779. 8000ad6: 43bc bics r4, r7
  1780. temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u));
  1781. 8000ad8: 684f ldr r7, [r1, #4]
  1782. 8000ada: 403a ands r2, r7
  1783. 8000adc: 40b2 lsls r2, r6
  1784. 8000ade: 4322 orrs r2, r4
  1785. GPIOx->MODER = temp;
  1786. 8000ae0: 6002 str r2, [r0, #0]
  1787. if((GPIO_Init->Mode & EXTI_MODE) != 0x00u)
  1788. 8000ae2: 22c0 movs r2, #192 ; 0xc0
  1789. 8000ae4: 0292 lsls r2, r2, #10
  1790. 8000ae6: 684c ldr r4, [r1, #4]
  1791. 8000ae8: 4214 tst r4, r2
  1792. 8000aea: d0ca beq.n 8000a82 <HAL_GPIO_Init+0xb6>
  1793. __HAL_RCC_SYSCFG_CLK_ENABLE();
  1794. 8000aec: 4c16 ldr r4, [pc, #88] ; (8000b48 <HAL_GPIO_Init+0x17c>)
  1795. 8000aee: 69a6 ldr r6, [r4, #24]
  1796. 8000af0: 2201 movs r2, #1
  1797. 8000af2: 4316 orrs r6, r2
  1798. 8000af4: 61a6 str r6, [r4, #24]
  1799. 8000af6: 69a4 ldr r4, [r4, #24]
  1800. 8000af8: 4022 ands r2, r4
  1801. 8000afa: 9201 str r2, [sp, #4]
  1802. 8000afc: 9a01 ldr r2, [sp, #4]
  1803. temp = SYSCFG->EXTICR[position >> 2u];
  1804. 8000afe: 089a lsrs r2, r3, #2
  1805. 8000b00: 1c94 adds r4, r2, #2
  1806. 8000b02: 00a4 lsls r4, r4, #2
  1807. 8000b04: 4e0e ldr r6, [pc, #56] ; (8000b40 <HAL_GPIO_Init+0x174>)
  1808. 8000b06: 59a7 ldr r7, [r4, r6]
  1809. temp &= ~(0x0FuL << (4u * (position & 0x03u)));
  1810. 8000b08: 2403 movs r4, #3
  1811. 8000b0a: 401c ands r4, r3
  1812. 8000b0c: 00a4 lsls r4, r4, #2
  1813. 8000b0e: 260f movs r6, #15
  1814. 8000b10: 40a6 lsls r6, r4
  1815. 8000b12: 43b7 bics r7, r6
  1816. temp |= (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u)));
  1817. 8000b14: 2690 movs r6, #144 ; 0x90
  1818. 8000b16: 05f6 lsls r6, r6, #23
  1819. 8000b18: 42b0 cmp r0, r6
  1820. 8000b1a: d081 beq.n 8000a20 <HAL_GPIO_Init+0x54>
  1821. 8000b1c: 4e0b ldr r6, [pc, #44] ; (8000b4c <HAL_GPIO_Init+0x180>)
  1822. 8000b1e: 42b0 cmp r0, r6
  1823. 8000b20: d008 beq.n 8000b34 <HAL_GPIO_Init+0x168>
  1824. 8000b22: 4e0b ldr r6, [pc, #44] ; (8000b50 <HAL_GPIO_Init+0x184>)
  1825. 8000b24: 42b0 cmp r0, r6
  1826. 8000b26: d007 beq.n 8000b38 <HAL_GPIO_Init+0x16c>
  1827. 8000b28: 4e0a ldr r6, [pc, #40] ; (8000b54 <HAL_GPIO_Init+0x188>)
  1828. 8000b2a: 42b0 cmp r0, r6
  1829. 8000b2c: d100 bne.n 8000b30 <HAL_GPIO_Init+0x164>
  1830. 8000b2e: e775 b.n 8000a1c <HAL_GPIO_Init+0x50>
  1831. 8000b30: 2605 movs r6, #5
  1832. 8000b32: e776 b.n 8000a22 <HAL_GPIO_Init+0x56>
  1833. 8000b34: 2601 movs r6, #1
  1834. 8000b36: e774 b.n 8000a22 <HAL_GPIO_Init+0x56>
  1835. 8000b38: 2602 movs r6, #2
  1836. 8000b3a: e772 b.n 8000a22 <HAL_GPIO_Init+0x56>
  1837. }
  1838. }
  1839. 8000b3c: b003 add sp, #12
  1840. 8000b3e: bdf0 pop {r4, r5, r6, r7, pc}
  1841. 8000b40: 40010000 .word 0x40010000
  1842. 8000b44: 40010400 .word 0x40010400
  1843. 8000b48: 40021000 .word 0x40021000
  1844. 8000b4c: 48000400 .word 0x48000400
  1845. 8000b50: 48000800 .word 0x48000800
  1846. 8000b54: 48000c00 .word 0x48000c00
  1847. 08000b58 <HAL_GPIO_WritePin>:
  1848. {
  1849. /* Check the parameters */
  1850. assert_param(IS_GPIO_PIN(GPIO_Pin));
  1851. assert_param(IS_GPIO_PIN_ACTION(PinState));
  1852. if (PinState != GPIO_PIN_RESET)
  1853. 8000b58: 2a00 cmp r2, #0
  1854. 8000b5a: d001 beq.n 8000b60 <HAL_GPIO_WritePin+0x8>
  1855. {
  1856. GPIOx->BSRR = (uint32_t)GPIO_Pin;
  1857. 8000b5c: 6181 str r1, [r0, #24]
  1858. }
  1859. else
  1860. {
  1861. GPIOx->BRR = (uint32_t)GPIO_Pin;
  1862. }
  1863. }
  1864. 8000b5e: 4770 bx lr
  1865. GPIOx->BRR = (uint32_t)GPIO_Pin;
  1866. 8000b60: 6281 str r1, [r0, #40] ; 0x28
  1867. }
  1868. 8000b62: e7fc b.n 8000b5e <HAL_GPIO_WritePin+0x6>
  1869. 08000b64 <HAL_GPIO_EXTI_Callback>:
  1870. UNUSED(GPIO_Pin);
  1871. /* NOTE: This function should not be modified, when the callback is needed,
  1872. the HAL_GPIO_EXTI_Callback could be implemented in the user file
  1873. */
  1874. }
  1875. 8000b64: 4770 bx lr
  1876. ...
  1877. 08000b68 <HAL_GPIO_EXTI_IRQHandler>:
  1878. {
  1879. 8000b68: b510 push {r4, lr}
  1880. if(__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != 0x00u)
  1881. 8000b6a: 4b05 ldr r3, [pc, #20] ; (8000b80 <HAL_GPIO_EXTI_IRQHandler+0x18>)
  1882. 8000b6c: 695b ldr r3, [r3, #20]
  1883. 8000b6e: 4218 tst r0, r3
  1884. 8000b70: d100 bne.n 8000b74 <HAL_GPIO_EXTI_IRQHandler+0xc>
  1885. }
  1886. 8000b72: bd10 pop {r4, pc}
  1887. __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);
  1888. 8000b74: 4b02 ldr r3, [pc, #8] ; (8000b80 <HAL_GPIO_EXTI_IRQHandler+0x18>)
  1889. 8000b76: 6158 str r0, [r3, #20]
  1890. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  1891. 8000b78: f7ff fff4 bl 8000b64 <HAL_GPIO_EXTI_Callback>
  1892. }
  1893. 8000b7c: e7f9 b.n 8000b72 <HAL_GPIO_EXTI_IRQHandler+0xa>
  1894. 8000b7e: 46c0 nop ; (mov r8, r8)
  1895. 8000b80: 40010400 .word 0x40010400
  1896. 08000b84 <HAL_RCC_OscConfig>:
  1897. * supported by this macro. User should request a transition to HSE Off
  1898. * first and then HSE On or HSE Bypass.
  1899. * @retval HAL status
  1900. */
  1901. HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  1902. {
  1903. 8000b84: b570 push {r4, r5, r6, lr}
  1904. 8000b86: b082 sub sp, #8
  1905. 8000b88: 1e04 subs r4, r0, #0
  1906. uint32_t tickstart;
  1907. uint32_t pll_config;
  1908. uint32_t pll_config2;
  1909. /* Check Null pointer */
  1910. if(RCC_OscInitStruct == NULL)
  1911. 8000b8a: d100 bne.n 8000b8e <HAL_RCC_OscConfig+0xa>
  1912. 8000b8c: e22e b.n 8000fec <HAL_RCC_OscConfig+0x468>
  1913. /* Check the parameters */
  1914. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  1915. /*------------------------------- HSE Configuration ------------------------*/
  1916. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  1917. 8000b8e: 6803 ldr r3, [r0, #0]
  1918. 8000b90: 07db lsls r3, r3, #31
  1919. 8000b92: d526 bpl.n 8000be2 <HAL_RCC_OscConfig+0x5e>
  1920. {
  1921. /* Check the parameters */
  1922. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  1923. /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */
  1924. if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE)
  1925. 8000b94: 4bae ldr r3, [pc, #696] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  1926. 8000b96: 685a ldr r2, [r3, #4]
  1927. 8000b98: 230c movs r3, #12
  1928. 8000b9a: 4013 ands r3, r2
  1929. 8000b9c: 2b04 cmp r3, #4
  1930. 8000b9e: d018 beq.n 8000bd2 <HAL_RCC_OscConfig+0x4e>
  1931. || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE)))
  1932. 8000ba0: 4bab ldr r3, [pc, #684] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  1933. 8000ba2: 685a ldr r2, [r3, #4]
  1934. 8000ba4: 230c movs r3, #12
  1935. 8000ba6: 4013 ands r3, r2
  1936. 8000ba8: 2b08 cmp r3, #8
  1937. 8000baa: d00e beq.n 8000bca <HAL_RCC_OscConfig+0x46>
  1938. }
  1939. }
  1940. else
  1941. {
  1942. /* Set the new HSE configuration ---------------------------------------*/
  1943. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  1944. 8000bac: 6863 ldr r3, [r4, #4]
  1945. 8000bae: 2b01 cmp r3, #1
  1946. 8000bb0: d03c beq.n 8000c2c <HAL_RCC_OscConfig+0xa8>
  1947. 8000bb2: 2b00 cmp r3, #0
  1948. 8000bb4: d151 bne.n 8000c5a <HAL_RCC_OscConfig+0xd6>
  1949. 8000bb6: 4ba6 ldr r3, [pc, #664] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  1950. 8000bb8: 681a ldr r2, [r3, #0]
  1951. 8000bba: 49a6 ldr r1, [pc, #664] ; (8000e54 <HAL_RCC_OscConfig+0x2d0>)
  1952. 8000bbc: 400a ands r2, r1
  1953. 8000bbe: 601a str r2, [r3, #0]
  1954. 8000bc0: 681a ldr r2, [r3, #0]
  1955. 8000bc2: 49a5 ldr r1, [pc, #660] ; (8000e58 <HAL_RCC_OscConfig+0x2d4>)
  1956. 8000bc4: 400a ands r2, r1
  1957. 8000bc6: 601a str r2, [r3, #0]
  1958. 8000bc8: e036 b.n 8000c38 <HAL_RCC_OscConfig+0xb4>
  1959. || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE)))
  1960. 8000bca: 4ba1 ldr r3, [pc, #644] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  1961. 8000bcc: 685b ldr r3, [r3, #4]
  1962. 8000bce: 03db lsls r3, r3, #15
  1963. 8000bd0: d5ec bpl.n 8000bac <HAL_RCC_OscConfig+0x28>
  1964. if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  1965. 8000bd2: 4b9f ldr r3, [pc, #636] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  1966. 8000bd4: 681b ldr r3, [r3, #0]
  1967. 8000bd6: 039b lsls r3, r3, #14
  1968. 8000bd8: d503 bpl.n 8000be2 <HAL_RCC_OscConfig+0x5e>
  1969. 8000bda: 6863 ldr r3, [r4, #4]
  1970. 8000bdc: 2b00 cmp r3, #0
  1971. 8000bde: d100 bne.n 8000be2 <HAL_RCC_OscConfig+0x5e>
  1972. 8000be0: e207 b.n 8000ff2 <HAL_RCC_OscConfig+0x46e>
  1973. }
  1974. }
  1975. }
  1976. }
  1977. /*----------------------------- HSI Configuration --------------------------*/
  1978. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  1979. 8000be2: 6823 ldr r3, [r4, #0]
  1980. 8000be4: 079b lsls r3, r3, #30
  1981. 8000be6: d572 bpl.n 8000cce <HAL_RCC_OscConfig+0x14a>
  1982. /* Check the parameters */
  1983. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  1984. assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  1985. /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */
  1986. if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI)
  1987. 8000be8: 4b99 ldr r3, [pc, #612] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  1988. 8000bea: 685b ldr r3, [r3, #4]
  1989. 8000bec: 220c movs r2, #12
  1990. 8000bee: 421a tst r2, r3
  1991. 8000bf0: d05d beq.n 8000cae <HAL_RCC_OscConfig+0x12a>
  1992. || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI)))
  1993. 8000bf2: 4b97 ldr r3, [pc, #604] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  1994. 8000bf4: 685a ldr r2, [r3, #4]
  1995. 8000bf6: 230c movs r3, #12
  1996. 8000bf8: 4013 ands r3, r2
  1997. 8000bfa: 2b08 cmp r3, #8
  1998. 8000bfc: d053 beq.n 8000ca6 <HAL_RCC_OscConfig+0x122>
  1999. }
  2000. }
  2001. else
  2002. {
  2003. /* Check the HSI State */
  2004. if(RCC_OscInitStruct->HSIState != RCC_HSI_OFF)
  2005. 8000bfe: 68e3 ldr r3, [r4, #12]
  2006. 8000c00: 2b00 cmp r3, #0
  2007. 8000c02: d100 bne.n 8000c06 <HAL_RCC_OscConfig+0x82>
  2008. 8000c04: e085 b.n 8000d12 <HAL_RCC_OscConfig+0x18e>
  2009. {
  2010. /* Enable the Internal High Speed oscillator (HSI). */
  2011. __HAL_RCC_HSI_ENABLE();
  2012. 8000c06: 4a92 ldr r2, [pc, #584] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2013. 8000c08: 6813 ldr r3, [r2, #0]
  2014. 8000c0a: 2101 movs r1, #1
  2015. 8000c0c: 430b orrs r3, r1
  2016. 8000c0e: 6013 str r3, [r2, #0]
  2017. /* Get Start Tick */
  2018. tickstart = HAL_GetTick();
  2019. 8000c10: f7ff fe7e bl 8000910 <HAL_GetTick>
  2020. 8000c14: 0005 movs r5, r0
  2021. /* Wait till HSI is ready */
  2022. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  2023. 8000c16: 4b8e ldr r3, [pc, #568] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2024. 8000c18: 681b ldr r3, [r3, #0]
  2025. 8000c1a: 079b lsls r3, r3, #30
  2026. 8000c1c: d470 bmi.n 8000d00 <HAL_RCC_OscConfig+0x17c>
  2027. {
  2028. if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
  2029. 8000c1e: f7ff fe77 bl 8000910 <HAL_GetTick>
  2030. 8000c22: 1b40 subs r0, r0, r5
  2031. 8000c24: 2802 cmp r0, #2
  2032. 8000c26: d9f6 bls.n 8000c16 <HAL_RCC_OscConfig+0x92>
  2033. {
  2034. return HAL_TIMEOUT;
  2035. 8000c28: 2003 movs r0, #3
  2036. 8000c2a: e1e0 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2037. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  2038. 8000c2c: 4a88 ldr r2, [pc, #544] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2039. 8000c2e: 6811 ldr r1, [r2, #0]
  2040. 8000c30: 2380 movs r3, #128 ; 0x80
  2041. 8000c32: 025b lsls r3, r3, #9
  2042. 8000c34: 430b orrs r3, r1
  2043. 8000c36: 6013 str r3, [r2, #0]
  2044. if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  2045. 8000c38: 6863 ldr r3, [r4, #4]
  2046. 8000c3a: 2b00 cmp r3, #0
  2047. 8000c3c: d025 beq.n 8000c8a <HAL_RCC_OscConfig+0x106>
  2048. tickstart = HAL_GetTick();
  2049. 8000c3e: f7ff fe67 bl 8000910 <HAL_GetTick>
  2050. 8000c42: 0005 movs r5, r0
  2051. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  2052. 8000c44: 4b82 ldr r3, [pc, #520] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2053. 8000c46: 681b ldr r3, [r3, #0]
  2054. 8000c48: 039b lsls r3, r3, #14
  2055. 8000c4a: d4ca bmi.n 8000be2 <HAL_RCC_OscConfig+0x5e>
  2056. if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE)
  2057. 8000c4c: f7ff fe60 bl 8000910 <HAL_GetTick>
  2058. 8000c50: 1b40 subs r0, r0, r5
  2059. 8000c52: 2864 cmp r0, #100 ; 0x64
  2060. 8000c54: d9f6 bls.n 8000c44 <HAL_RCC_OscConfig+0xc0>
  2061. return HAL_TIMEOUT;
  2062. 8000c56: 2003 movs r0, #3
  2063. 8000c58: e1c9 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2064. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  2065. 8000c5a: 2b05 cmp r3, #5
  2066. 8000c5c: d009 beq.n 8000c72 <HAL_RCC_OscConfig+0xee>
  2067. 8000c5e: 4b7c ldr r3, [pc, #496] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2068. 8000c60: 681a ldr r2, [r3, #0]
  2069. 8000c62: 497c ldr r1, [pc, #496] ; (8000e54 <HAL_RCC_OscConfig+0x2d0>)
  2070. 8000c64: 400a ands r2, r1
  2071. 8000c66: 601a str r2, [r3, #0]
  2072. 8000c68: 681a ldr r2, [r3, #0]
  2073. 8000c6a: 497b ldr r1, [pc, #492] ; (8000e58 <HAL_RCC_OscConfig+0x2d4>)
  2074. 8000c6c: 400a ands r2, r1
  2075. 8000c6e: 601a str r2, [r3, #0]
  2076. 8000c70: e7e2 b.n 8000c38 <HAL_RCC_OscConfig+0xb4>
  2077. 8000c72: 4b77 ldr r3, [pc, #476] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2078. 8000c74: 6819 ldr r1, [r3, #0]
  2079. 8000c76: 2280 movs r2, #128 ; 0x80
  2080. 8000c78: 02d2 lsls r2, r2, #11
  2081. 8000c7a: 430a orrs r2, r1
  2082. 8000c7c: 601a str r2, [r3, #0]
  2083. 8000c7e: 6819 ldr r1, [r3, #0]
  2084. 8000c80: 2280 movs r2, #128 ; 0x80
  2085. 8000c82: 0252 lsls r2, r2, #9
  2086. 8000c84: 430a orrs r2, r1
  2087. 8000c86: 601a str r2, [r3, #0]
  2088. 8000c88: e7d6 b.n 8000c38 <HAL_RCC_OscConfig+0xb4>
  2089. tickstart = HAL_GetTick();
  2090. 8000c8a: f7ff fe41 bl 8000910 <HAL_GetTick>
  2091. 8000c8e: 0005 movs r5, r0
  2092. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
  2093. 8000c90: 4b6f ldr r3, [pc, #444] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2094. 8000c92: 681b ldr r3, [r3, #0]
  2095. 8000c94: 039b lsls r3, r3, #14
  2096. 8000c96: d5a4 bpl.n 8000be2 <HAL_RCC_OscConfig+0x5e>
  2097. if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE)
  2098. 8000c98: f7ff fe3a bl 8000910 <HAL_GetTick>
  2099. 8000c9c: 1b40 subs r0, r0, r5
  2100. 8000c9e: 2864 cmp r0, #100 ; 0x64
  2101. 8000ca0: d9f6 bls.n 8000c90 <HAL_RCC_OscConfig+0x10c>
  2102. return HAL_TIMEOUT;
  2103. 8000ca2: 2003 movs r0, #3
  2104. 8000ca4: e1a3 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2105. || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI)))
  2106. 8000ca6: 4b6a ldr r3, [pc, #424] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2107. 8000ca8: 685b ldr r3, [r3, #4]
  2108. 8000caa: 03db lsls r3, r3, #15
  2109. 8000cac: d4a7 bmi.n 8000bfe <HAL_RCC_OscConfig+0x7a>
  2110. if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
  2111. 8000cae: 4b68 ldr r3, [pc, #416] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2112. 8000cb0: 681b ldr r3, [r3, #0]
  2113. 8000cb2: 079b lsls r3, r3, #30
  2114. 8000cb4: d503 bpl.n 8000cbe <HAL_RCC_OscConfig+0x13a>
  2115. 8000cb6: 68e3 ldr r3, [r4, #12]
  2116. 8000cb8: 2b01 cmp r3, #1
  2117. 8000cba: d000 beq.n 8000cbe <HAL_RCC_OscConfig+0x13a>
  2118. 8000cbc: e19b b.n 8000ff6 <HAL_RCC_OscConfig+0x472>
  2119. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  2120. 8000cbe: 4964 ldr r1, [pc, #400] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2121. 8000cc0: 680b ldr r3, [r1, #0]
  2122. 8000cc2: 22f8 movs r2, #248 ; 0xf8
  2123. 8000cc4: 4393 bics r3, r2
  2124. 8000cc6: 6922 ldr r2, [r4, #16]
  2125. 8000cc8: 00d2 lsls r2, r2, #3
  2126. 8000cca: 4313 orrs r3, r2
  2127. 8000ccc: 600b str r3, [r1, #0]
  2128. }
  2129. }
  2130. }
  2131. }
  2132. /*------------------------------ LSI Configuration -------------------------*/
  2133. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  2134. 8000cce: 6823 ldr r3, [r4, #0]
  2135. 8000cd0: 071b lsls r3, r3, #28
  2136. 8000cd2: d544 bpl.n 8000d5e <HAL_RCC_OscConfig+0x1da>
  2137. {
  2138. /* Check the parameters */
  2139. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  2140. /* Check the LSI State */
  2141. if(RCC_OscInitStruct->LSIState != RCC_LSI_OFF)
  2142. 8000cd4: 69e3 ldr r3, [r4, #28]
  2143. 8000cd6: 2b00 cmp r3, #0
  2144. 8000cd8: d02e beq.n 8000d38 <HAL_RCC_OscConfig+0x1b4>
  2145. {
  2146. /* Enable the Internal Low Speed oscillator (LSI). */
  2147. __HAL_RCC_LSI_ENABLE();
  2148. 8000cda: 4a5d ldr r2, [pc, #372] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2149. 8000cdc: 6a53 ldr r3, [r2, #36] ; 0x24
  2150. 8000cde: 2101 movs r1, #1
  2151. 8000ce0: 430b orrs r3, r1
  2152. 8000ce2: 6253 str r3, [r2, #36] ; 0x24
  2153. /* Get Start Tick */
  2154. tickstart = HAL_GetTick();
  2155. 8000ce4: f7ff fe14 bl 8000910 <HAL_GetTick>
  2156. 8000ce8: 0005 movs r5, r0
  2157. /* Wait till LSI is ready */
  2158. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
  2159. 8000cea: 4b59 ldr r3, [pc, #356] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2160. 8000cec: 6a5b ldr r3, [r3, #36] ; 0x24
  2161. 8000cee: 079b lsls r3, r3, #30
  2162. 8000cf0: d435 bmi.n 8000d5e <HAL_RCC_OscConfig+0x1da>
  2163. {
  2164. if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE)
  2165. 8000cf2: f7ff fe0d bl 8000910 <HAL_GetTick>
  2166. 8000cf6: 1b40 subs r0, r0, r5
  2167. 8000cf8: 2802 cmp r0, #2
  2168. 8000cfa: d9f6 bls.n 8000cea <HAL_RCC_OscConfig+0x166>
  2169. {
  2170. return HAL_TIMEOUT;
  2171. 8000cfc: 2003 movs r0, #3
  2172. 8000cfe: e176 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2173. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  2174. 8000d00: 4953 ldr r1, [pc, #332] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2175. 8000d02: 680b ldr r3, [r1, #0]
  2176. 8000d04: 22f8 movs r2, #248 ; 0xf8
  2177. 8000d06: 4393 bics r3, r2
  2178. 8000d08: 6922 ldr r2, [r4, #16]
  2179. 8000d0a: 00d2 lsls r2, r2, #3
  2180. 8000d0c: 4313 orrs r3, r2
  2181. 8000d0e: 600b str r3, [r1, #0]
  2182. 8000d10: e7dd b.n 8000cce <HAL_RCC_OscConfig+0x14a>
  2183. __HAL_RCC_HSI_DISABLE();
  2184. 8000d12: 4a4f ldr r2, [pc, #316] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2185. 8000d14: 6813 ldr r3, [r2, #0]
  2186. 8000d16: 2101 movs r1, #1
  2187. 8000d18: 438b bics r3, r1
  2188. 8000d1a: 6013 str r3, [r2, #0]
  2189. tickstart = HAL_GetTick();
  2190. 8000d1c: f7ff fdf8 bl 8000910 <HAL_GetTick>
  2191. 8000d20: 0005 movs r5, r0
  2192. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
  2193. 8000d22: 4b4b ldr r3, [pc, #300] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2194. 8000d24: 681b ldr r3, [r3, #0]
  2195. 8000d26: 079b lsls r3, r3, #30
  2196. 8000d28: d5d1 bpl.n 8000cce <HAL_RCC_OscConfig+0x14a>
  2197. if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
  2198. 8000d2a: f7ff fdf1 bl 8000910 <HAL_GetTick>
  2199. 8000d2e: 1b40 subs r0, r0, r5
  2200. 8000d30: 2802 cmp r0, #2
  2201. 8000d32: d9f6 bls.n 8000d22 <HAL_RCC_OscConfig+0x19e>
  2202. return HAL_TIMEOUT;
  2203. 8000d34: 2003 movs r0, #3
  2204. 8000d36: e15a b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2205. }
  2206. }
  2207. else
  2208. {
  2209. /* Disable the Internal Low Speed oscillator (LSI). */
  2210. __HAL_RCC_LSI_DISABLE();
  2211. 8000d38: 4a45 ldr r2, [pc, #276] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2212. 8000d3a: 6a53 ldr r3, [r2, #36] ; 0x24
  2213. 8000d3c: 2101 movs r1, #1
  2214. 8000d3e: 438b bics r3, r1
  2215. 8000d40: 6253 str r3, [r2, #36] ; 0x24
  2216. /* Get Start Tick */
  2217. tickstart = HAL_GetTick();
  2218. 8000d42: f7ff fde5 bl 8000910 <HAL_GetTick>
  2219. 8000d46: 0005 movs r5, r0
  2220. /* Wait till LSI is disabled */
  2221. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
  2222. 8000d48: 4b41 ldr r3, [pc, #260] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2223. 8000d4a: 6a5b ldr r3, [r3, #36] ; 0x24
  2224. 8000d4c: 079b lsls r3, r3, #30
  2225. 8000d4e: d506 bpl.n 8000d5e <HAL_RCC_OscConfig+0x1da>
  2226. {
  2227. if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE)
  2228. 8000d50: f7ff fdde bl 8000910 <HAL_GetTick>
  2229. 8000d54: 1b40 subs r0, r0, r5
  2230. 8000d56: 2802 cmp r0, #2
  2231. 8000d58: d9f6 bls.n 8000d48 <HAL_RCC_OscConfig+0x1c4>
  2232. {
  2233. return HAL_TIMEOUT;
  2234. 8000d5a: 2003 movs r0, #3
  2235. 8000d5c: e147 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2236. }
  2237. }
  2238. }
  2239. }
  2240. /*------------------------------ LSE Configuration -------------------------*/
  2241. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  2242. 8000d5e: 6823 ldr r3, [r4, #0]
  2243. 8000d60: 075b lsls r3, r3, #29
  2244. 8000d62: d400 bmi.n 8000d66 <HAL_RCC_OscConfig+0x1e2>
  2245. 8000d64: e080 b.n 8000e68 <HAL_RCC_OscConfig+0x2e4>
  2246. /* Check the parameters */
  2247. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  2248. /* Update LSE configuration in Backup Domain control register */
  2249. /* Requires to enable write access to Backup Domain of necessary */
  2250. if(__HAL_RCC_PWR_IS_CLK_DISABLED())
  2251. 8000d66: 4b3a ldr r3, [pc, #232] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2252. 8000d68: 69db ldr r3, [r3, #28]
  2253. 8000d6a: 00db lsls r3, r3, #3
  2254. 8000d6c: d41d bmi.n 8000daa <HAL_RCC_OscConfig+0x226>
  2255. {
  2256. __HAL_RCC_PWR_CLK_ENABLE();
  2257. 8000d6e: 4a38 ldr r2, [pc, #224] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2258. 8000d70: 69d1 ldr r1, [r2, #28]
  2259. 8000d72: 2080 movs r0, #128 ; 0x80
  2260. 8000d74: 0540 lsls r0, r0, #21
  2261. 8000d76: 4301 orrs r1, r0
  2262. 8000d78: 61d1 str r1, [r2, #28]
  2263. 8000d7a: 69d3 ldr r3, [r2, #28]
  2264. 8000d7c: 4003 ands r3, r0
  2265. 8000d7e: 9301 str r3, [sp, #4]
  2266. 8000d80: 9b01 ldr r3, [sp, #4]
  2267. pwrclkchanged = SET;
  2268. 8000d82: 2501 movs r5, #1
  2269. }
  2270. if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  2271. 8000d84: 4b35 ldr r3, [pc, #212] ; (8000e5c <HAL_RCC_OscConfig+0x2d8>)
  2272. 8000d86: 681b ldr r3, [r3, #0]
  2273. 8000d88: 05db lsls r3, r3, #23
  2274. 8000d8a: d510 bpl.n 8000dae <HAL_RCC_OscConfig+0x22a>
  2275. }
  2276. }
  2277. }
  2278. /* Set the new LSE configuration -----------------------------------------*/
  2279. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  2280. 8000d8c: 68a3 ldr r3, [r4, #8]
  2281. 8000d8e: 2b01 cmp r3, #1
  2282. 8000d90: d021 beq.n 8000dd6 <HAL_RCC_OscConfig+0x252>
  2283. 8000d92: 2b00 cmp r3, #0
  2284. 8000d94: d136 bne.n 8000e04 <HAL_RCC_OscConfig+0x280>
  2285. 8000d96: 4b2e ldr r3, [pc, #184] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2286. 8000d98: 6a1a ldr r2, [r3, #32]
  2287. 8000d9a: 2101 movs r1, #1
  2288. 8000d9c: 438a bics r2, r1
  2289. 8000d9e: 621a str r2, [r3, #32]
  2290. 8000da0: 6a1a ldr r2, [r3, #32]
  2291. 8000da2: 3103 adds r1, #3
  2292. 8000da4: 438a bics r2, r1
  2293. 8000da6: 621a str r2, [r3, #32]
  2294. 8000da8: e01a b.n 8000de0 <HAL_RCC_OscConfig+0x25c>
  2295. FlagStatus pwrclkchanged = RESET;
  2296. 8000daa: 2500 movs r5, #0
  2297. 8000dac: e7ea b.n 8000d84 <HAL_RCC_OscConfig+0x200>
  2298. SET_BIT(PWR->CR, PWR_CR_DBP);
  2299. 8000dae: 4a2b ldr r2, [pc, #172] ; (8000e5c <HAL_RCC_OscConfig+0x2d8>)
  2300. 8000db0: 6811 ldr r1, [r2, #0]
  2301. 8000db2: 2380 movs r3, #128 ; 0x80
  2302. 8000db4: 005b lsls r3, r3, #1
  2303. 8000db6: 430b orrs r3, r1
  2304. 8000db8: 6013 str r3, [r2, #0]
  2305. tickstart = HAL_GetTick();
  2306. 8000dba: f7ff fda9 bl 8000910 <HAL_GetTick>
  2307. 8000dbe: 0006 movs r6, r0
  2308. while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  2309. 8000dc0: 4b26 ldr r3, [pc, #152] ; (8000e5c <HAL_RCC_OscConfig+0x2d8>)
  2310. 8000dc2: 681b ldr r3, [r3, #0]
  2311. 8000dc4: 05db lsls r3, r3, #23
  2312. 8000dc6: d4e1 bmi.n 8000d8c <HAL_RCC_OscConfig+0x208>
  2313. if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  2314. 8000dc8: f7ff fda2 bl 8000910 <HAL_GetTick>
  2315. 8000dcc: 1b80 subs r0, r0, r6
  2316. 8000dce: 2864 cmp r0, #100 ; 0x64
  2317. 8000dd0: d9f6 bls.n 8000dc0 <HAL_RCC_OscConfig+0x23c>
  2318. return HAL_TIMEOUT;
  2319. 8000dd2: 2003 movs r0, #3
  2320. 8000dd4: e10b b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2321. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  2322. 8000dd6: 4a1e ldr r2, [pc, #120] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2323. 8000dd8: 6a13 ldr r3, [r2, #32]
  2324. 8000dda: 2101 movs r1, #1
  2325. 8000ddc: 430b orrs r3, r1
  2326. 8000dde: 6213 str r3, [r2, #32]
  2327. /* Check the LSE State */
  2328. if(RCC_OscInitStruct->LSEState != RCC_LSE_OFF)
  2329. 8000de0: 68a3 ldr r3, [r4, #8]
  2330. 8000de2: 2b00 cmp r3, #0
  2331. 8000de4: d024 beq.n 8000e30 <HAL_RCC_OscConfig+0x2ac>
  2332. {
  2333. /* Get Start Tick */
  2334. tickstart = HAL_GetTick();
  2335. 8000de6: f7ff fd93 bl 8000910 <HAL_GetTick>
  2336. 8000dea: 0006 movs r6, r0
  2337. /* Wait till LSE is ready */
  2338. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
  2339. 8000dec: 4b18 ldr r3, [pc, #96] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2340. 8000dee: 6a1b ldr r3, [r3, #32]
  2341. 8000df0: 079b lsls r3, r3, #30
  2342. 8000df2: d437 bmi.n 8000e64 <HAL_RCC_OscConfig+0x2e0>
  2343. {
  2344. if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
  2345. 8000df4: f7ff fd8c bl 8000910 <HAL_GetTick>
  2346. 8000df8: 1b80 subs r0, r0, r6
  2347. 8000dfa: 4b19 ldr r3, [pc, #100] ; (8000e60 <HAL_RCC_OscConfig+0x2dc>)
  2348. 8000dfc: 4298 cmp r0, r3
  2349. 8000dfe: d9f5 bls.n 8000dec <HAL_RCC_OscConfig+0x268>
  2350. {
  2351. return HAL_TIMEOUT;
  2352. 8000e00: 2003 movs r0, #3
  2353. 8000e02: e0f4 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2354. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  2355. 8000e04: 2b05 cmp r3, #5
  2356. 8000e06: d009 beq.n 8000e1c <HAL_RCC_OscConfig+0x298>
  2357. 8000e08: 4b11 ldr r3, [pc, #68] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2358. 8000e0a: 6a1a ldr r2, [r3, #32]
  2359. 8000e0c: 2101 movs r1, #1
  2360. 8000e0e: 438a bics r2, r1
  2361. 8000e10: 621a str r2, [r3, #32]
  2362. 8000e12: 6a1a ldr r2, [r3, #32]
  2363. 8000e14: 3103 adds r1, #3
  2364. 8000e16: 438a bics r2, r1
  2365. 8000e18: 621a str r2, [r3, #32]
  2366. 8000e1a: e7e1 b.n 8000de0 <HAL_RCC_OscConfig+0x25c>
  2367. 8000e1c: 4b0c ldr r3, [pc, #48] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2368. 8000e1e: 6a1a ldr r2, [r3, #32]
  2369. 8000e20: 2104 movs r1, #4
  2370. 8000e22: 430a orrs r2, r1
  2371. 8000e24: 621a str r2, [r3, #32]
  2372. 8000e26: 6a1a ldr r2, [r3, #32]
  2373. 8000e28: 3903 subs r1, #3
  2374. 8000e2a: 430a orrs r2, r1
  2375. 8000e2c: 621a str r2, [r3, #32]
  2376. 8000e2e: e7d7 b.n 8000de0 <HAL_RCC_OscConfig+0x25c>
  2377. }
  2378. }
  2379. else
  2380. {
  2381. /* Get Start Tick */
  2382. tickstart = HAL_GetTick();
  2383. 8000e30: f7ff fd6e bl 8000910 <HAL_GetTick>
  2384. 8000e34: 0006 movs r6, r0
  2385. /* Wait till LSE is disabled */
  2386. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
  2387. 8000e36: 4b06 ldr r3, [pc, #24] ; (8000e50 <HAL_RCC_OscConfig+0x2cc>)
  2388. 8000e38: 6a1b ldr r3, [r3, #32]
  2389. 8000e3a: 079b lsls r3, r3, #30
  2390. 8000e3c: d512 bpl.n 8000e64 <HAL_RCC_OscConfig+0x2e0>
  2391. {
  2392. if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
  2393. 8000e3e: f7ff fd67 bl 8000910 <HAL_GetTick>
  2394. 8000e42: 1b80 subs r0, r0, r6
  2395. 8000e44: 4b06 ldr r3, [pc, #24] ; (8000e60 <HAL_RCC_OscConfig+0x2dc>)
  2396. 8000e46: 4298 cmp r0, r3
  2397. 8000e48: d9f5 bls.n 8000e36 <HAL_RCC_OscConfig+0x2b2>
  2398. {
  2399. return HAL_TIMEOUT;
  2400. 8000e4a: 2003 movs r0, #3
  2401. 8000e4c: e0cf b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2402. 8000e4e: 46c0 nop ; (mov r8, r8)
  2403. 8000e50: 40021000 .word 0x40021000
  2404. 8000e54: fffeffff .word 0xfffeffff
  2405. 8000e58: fffbffff .word 0xfffbffff
  2406. 8000e5c: 40007000 .word 0x40007000
  2407. 8000e60: 00001388 .word 0x00001388
  2408. }
  2409. }
  2410. }
  2411. /* Require to disable power clock if necessary */
  2412. if(pwrclkchanged == SET)
  2413. 8000e64: 2d01 cmp r5, #1
  2414. 8000e66: d033 beq.n 8000ed0 <HAL_RCC_OscConfig+0x34c>
  2415. __HAL_RCC_PWR_CLK_DISABLE();
  2416. }
  2417. }
  2418. /*----------------------------- HSI14 Configuration --------------------------*/
  2419. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI14) == RCC_OSCILLATORTYPE_HSI14)
  2420. 8000e68: 6823 ldr r3, [r4, #0]
  2421. 8000e6a: 06db lsls r3, r3, #27
  2422. 8000e6c: d510 bpl.n 8000e90 <HAL_RCC_OscConfig+0x30c>
  2423. /* Check the parameters */
  2424. assert_param(IS_RCC_HSI14(RCC_OscInitStruct->HSI14State));
  2425. assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSI14CalibrationValue));
  2426. /* Check the HSI14 State */
  2427. if(RCC_OscInitStruct->HSI14State == RCC_HSI14_ON)
  2428. 8000e6e: 6963 ldr r3, [r4, #20]
  2429. 8000e70: 2b01 cmp r3, #1
  2430. 8000e72: d033 beq.n 8000edc <HAL_RCC_OscConfig+0x358>
  2431. }
  2432. /* Adjusts the Internal High Speed oscillator 14Mhz (HSI14) calibration value. */
  2433. __HAL_RCC_HSI14_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSI14CalibrationValue);
  2434. }
  2435. else if(RCC_OscInitStruct->HSI14State == RCC_HSI14_ADC_CONTROL)
  2436. 8000e74: 3305 adds r3, #5
  2437. 8000e76: d151 bne.n 8000f1c <HAL_RCC_OscConfig+0x398>
  2438. {
  2439. /* Enable ADC control of the Internal High Speed oscillator HSI14 */
  2440. __HAL_RCC_HSI14ADC_ENABLE();
  2441. 8000e78: 4a65 ldr r2, [pc, #404] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2442. 8000e7a: 6b53 ldr r3, [r2, #52] ; 0x34
  2443. 8000e7c: 2104 movs r1, #4
  2444. 8000e7e: 438b bics r3, r1
  2445. 8000e80: 6353 str r3, [r2, #52] ; 0x34
  2446. /* Adjusts the Internal High Speed oscillator 14Mhz (HSI14) calibration value. */
  2447. __HAL_RCC_HSI14_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSI14CalibrationValue);
  2448. 8000e82: 6b53 ldr r3, [r2, #52] ; 0x34
  2449. 8000e84: 31f4 adds r1, #244 ; 0xf4
  2450. 8000e86: 438b bics r3, r1
  2451. 8000e88: 69a1 ldr r1, [r4, #24]
  2452. 8000e8a: 00c9 lsls r1, r1, #3
  2453. 8000e8c: 430b orrs r3, r1
  2454. 8000e8e: 6353 str r3, [r2, #52] ; 0x34
  2455. #endif /* RCC_HSI48_SUPPORT */
  2456. /*-------------------------------- PLL Configuration -----------------------*/
  2457. /* Check the parameters */
  2458. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  2459. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  2460. 8000e90: 6a23 ldr r3, [r4, #32]
  2461. 8000e92: 2b00 cmp r3, #0
  2462. 8000e94: d100 bne.n 8000e98 <HAL_RCC_OscConfig+0x314>
  2463. 8000e96: e0b0 b.n 8000ffa <HAL_RCC_OscConfig+0x476>
  2464. {
  2465. /* Check if the PLL is used as system clock or not */
  2466. if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  2467. 8000e98: 4a5d ldr r2, [pc, #372] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2468. 8000e9a: 6851 ldr r1, [r2, #4]
  2469. 8000e9c: 220c movs r2, #12
  2470. 8000e9e: 400a ands r2, r1
  2471. 8000ea0: 2a08 cmp r2, #8
  2472. 8000ea2: d100 bne.n 8000ea6 <HAL_RCC_OscConfig+0x322>
  2473. 8000ea4: e08a b.n 8000fbc <HAL_RCC_OscConfig+0x438>
  2474. {
  2475. if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  2476. 8000ea6: 2b02 cmp r3, #2
  2477. 8000ea8: d04f beq.n 8000f4a <HAL_RCC_OscConfig+0x3c6>
  2478. }
  2479. }
  2480. else
  2481. {
  2482. /* Disable the main PLL. */
  2483. __HAL_RCC_PLL_DISABLE();
  2484. 8000eaa: 4a59 ldr r2, [pc, #356] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2485. 8000eac: 6813 ldr r3, [r2, #0]
  2486. 8000eae: 4959 ldr r1, [pc, #356] ; (8001014 <HAL_RCC_OscConfig+0x490>)
  2487. 8000eb0: 400b ands r3, r1
  2488. 8000eb2: 6013 str r3, [r2, #0]
  2489. /* Get Start Tick */
  2490. tickstart = HAL_GetTick();
  2491. 8000eb4: f7ff fd2c bl 8000910 <HAL_GetTick>
  2492. 8000eb8: 0004 movs r4, r0
  2493. /* Wait till PLL is disabled */
  2494. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  2495. 8000eba: 4b55 ldr r3, [pc, #340] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2496. 8000ebc: 681b ldr r3, [r3, #0]
  2497. 8000ebe: 019b lsls r3, r3, #6
  2498. 8000ec0: d57a bpl.n 8000fb8 <HAL_RCC_OscConfig+0x434>
  2499. {
  2500. if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
  2501. 8000ec2: f7ff fd25 bl 8000910 <HAL_GetTick>
  2502. 8000ec6: 1b00 subs r0, r0, r4
  2503. 8000ec8: 2802 cmp r0, #2
  2504. 8000eca: d9f6 bls.n 8000eba <HAL_RCC_OscConfig+0x336>
  2505. {
  2506. return HAL_TIMEOUT;
  2507. 8000ecc: 2003 movs r0, #3
  2508. 8000ece: e08e b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2509. __HAL_RCC_PWR_CLK_DISABLE();
  2510. 8000ed0: 4a4f ldr r2, [pc, #316] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2511. 8000ed2: 69d3 ldr r3, [r2, #28]
  2512. 8000ed4: 4950 ldr r1, [pc, #320] ; (8001018 <HAL_RCC_OscConfig+0x494>)
  2513. 8000ed6: 400b ands r3, r1
  2514. 8000ed8: 61d3 str r3, [r2, #28]
  2515. 8000eda: e7c5 b.n 8000e68 <HAL_RCC_OscConfig+0x2e4>
  2516. __HAL_RCC_HSI14ADC_DISABLE();
  2517. 8000edc: 4b4c ldr r3, [pc, #304] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2518. 8000ede: 6b5a ldr r2, [r3, #52] ; 0x34
  2519. 8000ee0: 2104 movs r1, #4
  2520. 8000ee2: 430a orrs r2, r1
  2521. 8000ee4: 635a str r2, [r3, #52] ; 0x34
  2522. __HAL_RCC_HSI14_ENABLE();
  2523. 8000ee6: 6b5a ldr r2, [r3, #52] ; 0x34
  2524. 8000ee8: 3903 subs r1, #3
  2525. 8000eea: 430a orrs r2, r1
  2526. 8000eec: 635a str r2, [r3, #52] ; 0x34
  2527. tickstart = HAL_GetTick();
  2528. 8000eee: f7ff fd0f bl 8000910 <HAL_GetTick>
  2529. 8000ef2: 0005 movs r5, r0
  2530. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) == RESET)
  2531. 8000ef4: 4b46 ldr r3, [pc, #280] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2532. 8000ef6: 6b5b ldr r3, [r3, #52] ; 0x34
  2533. 8000ef8: 079b lsls r3, r3, #30
  2534. 8000efa: d406 bmi.n 8000f0a <HAL_RCC_OscConfig+0x386>
  2535. if((HAL_GetTick() - tickstart) > HSI14_TIMEOUT_VALUE)
  2536. 8000efc: f7ff fd08 bl 8000910 <HAL_GetTick>
  2537. 8000f00: 1b40 subs r0, r0, r5
  2538. 8000f02: 2802 cmp r0, #2
  2539. 8000f04: d9f6 bls.n 8000ef4 <HAL_RCC_OscConfig+0x370>
  2540. return HAL_TIMEOUT;
  2541. 8000f06: 2003 movs r0, #3
  2542. 8000f08: e071 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2543. __HAL_RCC_HSI14_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSI14CalibrationValue);
  2544. 8000f0a: 4941 ldr r1, [pc, #260] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2545. 8000f0c: 6b4b ldr r3, [r1, #52] ; 0x34
  2546. 8000f0e: 22f8 movs r2, #248 ; 0xf8
  2547. 8000f10: 4393 bics r3, r2
  2548. 8000f12: 69a2 ldr r2, [r4, #24]
  2549. 8000f14: 00d2 lsls r2, r2, #3
  2550. 8000f16: 4313 orrs r3, r2
  2551. 8000f18: 634b str r3, [r1, #52] ; 0x34
  2552. 8000f1a: e7b9 b.n 8000e90 <HAL_RCC_OscConfig+0x30c>
  2553. __HAL_RCC_HSI14ADC_DISABLE();
  2554. 8000f1c: 4b3c ldr r3, [pc, #240] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2555. 8000f1e: 6b5a ldr r2, [r3, #52] ; 0x34
  2556. 8000f20: 2104 movs r1, #4
  2557. 8000f22: 430a orrs r2, r1
  2558. 8000f24: 635a str r2, [r3, #52] ; 0x34
  2559. __HAL_RCC_HSI14_DISABLE();
  2560. 8000f26: 6b5a ldr r2, [r3, #52] ; 0x34
  2561. 8000f28: 3903 subs r1, #3
  2562. 8000f2a: 438a bics r2, r1
  2563. 8000f2c: 635a str r2, [r3, #52] ; 0x34
  2564. tickstart = HAL_GetTick();
  2565. 8000f2e: f7ff fcef bl 8000910 <HAL_GetTick>
  2566. 8000f32: 0005 movs r5, r0
  2567. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) != RESET)
  2568. 8000f34: 4b36 ldr r3, [pc, #216] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2569. 8000f36: 6b5b ldr r3, [r3, #52] ; 0x34
  2570. 8000f38: 079b lsls r3, r3, #30
  2571. 8000f3a: d5a9 bpl.n 8000e90 <HAL_RCC_OscConfig+0x30c>
  2572. if((HAL_GetTick() - tickstart) > HSI14_TIMEOUT_VALUE)
  2573. 8000f3c: f7ff fce8 bl 8000910 <HAL_GetTick>
  2574. 8000f40: 1b40 subs r0, r0, r5
  2575. 8000f42: 2802 cmp r0, #2
  2576. 8000f44: d9f6 bls.n 8000f34 <HAL_RCC_OscConfig+0x3b0>
  2577. return HAL_TIMEOUT;
  2578. 8000f46: 2003 movs r0, #3
  2579. 8000f48: e051 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2580. __HAL_RCC_PLL_DISABLE();
  2581. 8000f4a: 4a31 ldr r2, [pc, #196] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2582. 8000f4c: 6813 ldr r3, [r2, #0]
  2583. 8000f4e: 4931 ldr r1, [pc, #196] ; (8001014 <HAL_RCC_OscConfig+0x490>)
  2584. 8000f50: 400b ands r3, r1
  2585. 8000f52: 6013 str r3, [r2, #0]
  2586. tickstart = HAL_GetTick();
  2587. 8000f54: f7ff fcdc bl 8000910 <HAL_GetTick>
  2588. 8000f58: 0005 movs r5, r0
  2589. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
  2590. 8000f5a: 4b2d ldr r3, [pc, #180] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2591. 8000f5c: 681b ldr r3, [r3, #0]
  2592. 8000f5e: 019b lsls r3, r3, #6
  2593. 8000f60: d506 bpl.n 8000f70 <HAL_RCC_OscConfig+0x3ec>
  2594. if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
  2595. 8000f62: f7ff fcd5 bl 8000910 <HAL_GetTick>
  2596. 8000f66: 1b40 subs r0, r0, r5
  2597. 8000f68: 2802 cmp r0, #2
  2598. 8000f6a: d9f6 bls.n 8000f5a <HAL_RCC_OscConfig+0x3d6>
  2599. return HAL_TIMEOUT;
  2600. 8000f6c: 2003 movs r0, #3
  2601. 8000f6e: e03e b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2602. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  2603. 8000f70: 4b27 ldr r3, [pc, #156] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2604. 8000f72: 6ada ldr r2, [r3, #44] ; 0x2c
  2605. 8000f74: 210f movs r1, #15
  2606. 8000f76: 438a bics r2, r1
  2607. 8000f78: 6ae1 ldr r1, [r4, #44] ; 0x2c
  2608. 8000f7a: 430a orrs r2, r1
  2609. 8000f7c: 62da str r2, [r3, #44] ; 0x2c
  2610. 8000f7e: 685a ldr r2, [r3, #4]
  2611. 8000f80: 4926 ldr r1, [pc, #152] ; (800101c <HAL_RCC_OscConfig+0x498>)
  2612. 8000f82: 400a ands r2, r1
  2613. 8000f84: 6aa1 ldr r1, [r4, #40] ; 0x28
  2614. 8000f86: 6a60 ldr r0, [r4, #36] ; 0x24
  2615. 8000f88: 4301 orrs r1, r0
  2616. 8000f8a: 430a orrs r2, r1
  2617. 8000f8c: 605a str r2, [r3, #4]
  2618. __HAL_RCC_PLL_ENABLE();
  2619. 8000f8e: 6819 ldr r1, [r3, #0]
  2620. 8000f90: 2280 movs r2, #128 ; 0x80
  2621. 8000f92: 0452 lsls r2, r2, #17
  2622. 8000f94: 430a orrs r2, r1
  2623. 8000f96: 601a str r2, [r3, #0]
  2624. tickstart = HAL_GetTick();
  2625. 8000f98: f7ff fcba bl 8000910 <HAL_GetTick>
  2626. 8000f9c: 0004 movs r4, r0
  2627. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  2628. 8000f9e: 4b1c ldr r3, [pc, #112] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2629. 8000fa0: 681b ldr r3, [r3, #0]
  2630. 8000fa2: 019b lsls r3, r3, #6
  2631. 8000fa4: d406 bmi.n 8000fb4 <HAL_RCC_OscConfig+0x430>
  2632. if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
  2633. 8000fa6: f7ff fcb3 bl 8000910 <HAL_GetTick>
  2634. 8000faa: 1b00 subs r0, r0, r4
  2635. 8000fac: 2802 cmp r0, #2
  2636. 8000fae: d9f6 bls.n 8000f9e <HAL_RCC_OscConfig+0x41a>
  2637. return HAL_TIMEOUT;
  2638. 8000fb0: 2003 movs r0, #3
  2639. 8000fb2: e01c b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2640. }
  2641. }
  2642. }
  2643. }
  2644. return HAL_OK;
  2645. 8000fb4: 2000 movs r0, #0
  2646. 8000fb6: e01a b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2647. 8000fb8: 2000 movs r0, #0
  2648. 8000fba: e018 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2649. if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF)
  2650. 8000fbc: 2b01 cmp r3, #1
  2651. 8000fbe: d01e beq.n 8000ffe <HAL_RCC_OscConfig+0x47a>
  2652. pll_config = RCC->CFGR;
  2653. 8000fc0: 4b13 ldr r3, [pc, #76] ; (8001010 <HAL_RCC_OscConfig+0x48c>)
  2654. 8000fc2: 685a ldr r2, [r3, #4]
  2655. pll_config2 = RCC->CFGR2;
  2656. 8000fc4: 6ad9 ldr r1, [r3, #44] ; 0x2c
  2657. if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  2658. 8000fc6: 2380 movs r3, #128 ; 0x80
  2659. 8000fc8: 025b lsls r3, r3, #9
  2660. 8000fca: 4013 ands r3, r2
  2661. 8000fcc: 6a60 ldr r0, [r4, #36] ; 0x24
  2662. 8000fce: 4283 cmp r3, r0
  2663. 8000fd0: d117 bne.n 8001002 <HAL_RCC_OscConfig+0x47e>
  2664. (READ_BIT(pll_config2, RCC_CFGR2_PREDIV) != RCC_OscInitStruct->PLL.PREDIV) ||
  2665. 8000fd2: 230f movs r3, #15
  2666. 8000fd4: 400b ands r3, r1
  2667. if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  2668. 8000fd6: 6ae1 ldr r1, [r4, #44] ; 0x2c
  2669. 8000fd8: 428b cmp r3, r1
  2670. 8000fda: d114 bne.n 8001006 <HAL_RCC_OscConfig+0x482>
  2671. (READ_BIT(pll_config, RCC_CFGR_PLLMUL) != RCC_OscInitStruct->PLL.PLLMUL))
  2672. 8000fdc: 23f0 movs r3, #240 ; 0xf0
  2673. 8000fde: 039b lsls r3, r3, #14
  2674. 8000fe0: 401a ands r2, r3
  2675. 8000fe2: 6aa3 ldr r3, [r4, #40] ; 0x28
  2676. (READ_BIT(pll_config2, RCC_CFGR2_PREDIV) != RCC_OscInitStruct->PLL.PREDIV) ||
  2677. 8000fe4: 429a cmp r2, r3
  2678. 8000fe6: d110 bne.n 800100a <HAL_RCC_OscConfig+0x486>
  2679. return HAL_OK;
  2680. 8000fe8: 2000 movs r0, #0
  2681. 8000fea: e000 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2682. return HAL_ERROR;
  2683. 8000fec: 2001 movs r0, #1
  2684. }
  2685. 8000fee: b002 add sp, #8
  2686. 8000ff0: bd70 pop {r4, r5, r6, pc}
  2687. return HAL_ERROR;
  2688. 8000ff2: 2001 movs r0, #1
  2689. 8000ff4: e7fb b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2690. return HAL_ERROR;
  2691. 8000ff6: 2001 movs r0, #1
  2692. 8000ff8: e7f9 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2693. return HAL_OK;
  2694. 8000ffa: 2000 movs r0, #0
  2695. 8000ffc: e7f7 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2696. return HAL_ERROR;
  2697. 8000ffe: 2001 movs r0, #1
  2698. 8001000: e7f5 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2699. return HAL_ERROR;
  2700. 8001002: 2001 movs r0, #1
  2701. 8001004: e7f3 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2702. 8001006: 2001 movs r0, #1
  2703. 8001008: e7f1 b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2704. 800100a: 2001 movs r0, #1
  2705. 800100c: e7ef b.n 8000fee <HAL_RCC_OscConfig+0x46a>
  2706. 800100e: 46c0 nop ; (mov r8, r8)
  2707. 8001010: 40021000 .word 0x40021000
  2708. 8001014: feffffff .word 0xfeffffff
  2709. 8001018: efffffff .word 0xefffffff
  2710. 800101c: ffc2ffff .word 0xffc2ffff
  2711. 08001020 <HAL_RCC_GetSysClockFreq>:
  2712. * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect.
  2713. *
  2714. * @retval SYSCLK frequency
  2715. */
  2716. uint32_t HAL_RCC_GetSysClockFreq(void)
  2717. {
  2718. 8001020: b510 push {r4, lr}
  2719. 8001022: b088 sub sp, #32
  2720. const uint8_t aPLLMULFactorTable[16] = { 2U, 3U, 4U, 5U, 6U, 7U, 8U, 9U,
  2721. 8001024: aa04 add r2, sp, #16
  2722. 8001026: 4b16 ldr r3, [pc, #88] ; (8001080 <HAL_RCC_GetSysClockFreq+0x60>)
  2723. 8001028: cb13 ldmia r3!, {r0, r1, r4}
  2724. 800102a: c213 stmia r2!, {r0, r1, r4}
  2725. 800102c: 681b ldr r3, [r3, #0]
  2726. 800102e: 6013 str r3, [r2, #0]
  2727. 10U, 11U, 12U, 13U, 14U, 15U, 16U, 16U};
  2728. const uint8_t aPredivFactorTable[16] = { 1U, 2U, 3U, 4U, 5U, 6U, 7U, 8U,
  2729. 8001030: 466a mov r2, sp
  2730. 8001032: 4b14 ldr r3, [pc, #80] ; (8001084 <HAL_RCC_GetSysClockFreq+0x64>)
  2731. 8001034: cb13 ldmia r3!, {r0, r1, r4}
  2732. 8001036: c213 stmia r2!, {r0, r1, r4}
  2733. 8001038: 681b ldr r3, [r3, #0]
  2734. 800103a: 6013 str r3, [r2, #0]
  2735. 9U,10U, 11U, 12U, 13U, 14U, 15U, 16U};
  2736. uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U;
  2737. uint32_t sysclockfreq = 0U;
  2738. tmpreg = RCC->CFGR;
  2739. 800103c: 4b12 ldr r3, [pc, #72] ; (8001088 <HAL_RCC_GetSysClockFreq+0x68>)
  2740. 800103e: 685a ldr r2, [r3, #4]
  2741. /* Get SYSCLK source -------------------------------------------------------*/
  2742. switch (tmpreg & RCC_CFGR_SWS)
  2743. 8001040: 230c movs r3, #12
  2744. 8001042: 4013 ands r3, r2
  2745. 8001044: 2b08 cmp r3, #8
  2746. 8001046: d002 beq.n 800104e <HAL_RCC_GetSysClockFreq+0x2e>
  2747. {
  2748. case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */
  2749. {
  2750. sysclockfreq = HSE_VALUE;
  2751. 8001048: 4810 ldr r0, [pc, #64] ; (800108c <HAL_RCC_GetSysClockFreq+0x6c>)
  2752. sysclockfreq = HSI_VALUE;
  2753. break;
  2754. }
  2755. }
  2756. return sysclockfreq;
  2757. }
  2758. 800104a: b008 add sp, #32
  2759. 800104c: bd10 pop {r4, pc}
  2760. pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMUL) >> RCC_CFGR_PLLMUL_BITNUMBER];
  2761. 800104e: 0c91 lsrs r1, r2, #18
  2762. 8001050: 3307 adds r3, #7
  2763. 8001052: 4019 ands r1, r3
  2764. 8001054: a804 add r0, sp, #16
  2765. 8001056: 5c44 ldrb r4, [r0, r1]
  2766. prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV) >> RCC_CFGR2_PREDIV_BITNUMBER];
  2767. 8001058: 490b ldr r1, [pc, #44] ; (8001088 <HAL_RCC_GetSysClockFreq+0x68>)
  2768. 800105a: 6ac9 ldr r1, [r1, #44] ; 0x2c
  2769. 800105c: 400b ands r3, r1
  2770. 800105e: 4669 mov r1, sp
  2771. 8001060: 5cc9 ldrb r1, [r1, r3]
  2772. if ((tmpreg & RCC_CFGR_PLLSRC) == RCC_PLLSOURCE_HSE)
  2773. 8001062: 03d3 lsls r3, r2, #15
  2774. 8001064: d504 bpl.n 8001070 <HAL_RCC_GetSysClockFreq+0x50>
  2775. pllclk = (uint32_t)((uint64_t) HSE_VALUE / (uint64_t) (prediv)) * ((uint64_t) pllmul);
  2776. 8001066: 4809 ldr r0, [pc, #36] ; (800108c <HAL_RCC_GetSysClockFreq+0x6c>)
  2777. 8001068: f7ff f84e bl 8000108 <__udivsi3>
  2778. 800106c: 4360 muls r0, r4
  2779. 800106e: e7ec b.n 800104a <HAL_RCC_GetSysClockFreq+0x2a>
  2780. pllclk = (uint32_t)((uint64_t) (HSI_VALUE >> 1U) * ((uint64_t) pllmul));
  2781. 8001070: 0163 lsls r3, r4, #5
  2782. 8001072: 1b1b subs r3, r3, r4
  2783. 8001074: 0198 lsls r0, r3, #6
  2784. 8001076: 1ac0 subs r0, r0, r3
  2785. 8001078: 00c0 lsls r0, r0, #3
  2786. 800107a: 1900 adds r0, r0, r4
  2787. 800107c: 0200 lsls r0, r0, #8
  2788. 800107e: e7e4 b.n 800104a <HAL_RCC_GetSysClockFreq+0x2a>
  2789. 8001080: 08001a9c .word 0x08001a9c
  2790. 8001084: 08001ab0 .word 0x08001ab0
  2791. 8001088: 40021000 .word 0x40021000
  2792. 800108c: 007a1200 .word 0x007a1200
  2793. 08001090 <HAL_RCC_ClockConfig>:
  2794. {
  2795. 8001090: b570 push {r4, r5, r6, lr}
  2796. 8001092: 0004 movs r4, r0
  2797. 8001094: 000d movs r5, r1
  2798. if(RCC_ClkInitStruct == NULL)
  2799. 8001096: 2800 cmp r0, #0
  2800. 8001098: d100 bne.n 800109c <HAL_RCC_ClockConfig+0xc>
  2801. 800109a: e07e b.n 800119a <HAL_RCC_ClockConfig+0x10a>
  2802. if(FLatency > __HAL_FLASH_GET_LATENCY())
  2803. 800109c: 4b43 ldr r3, [pc, #268] ; (80011ac <HAL_RCC_ClockConfig+0x11c>)
  2804. 800109e: 681a ldr r2, [r3, #0]
  2805. 80010a0: 2301 movs r3, #1
  2806. 80010a2: 4013 ands r3, r2
  2807. 80010a4: 428b cmp r3, r1
  2808. 80010a6: d20a bcs.n 80010be <HAL_RCC_ClockConfig+0x2e>
  2809. __HAL_FLASH_SET_LATENCY(FLatency);
  2810. 80010a8: 4940 ldr r1, [pc, #256] ; (80011ac <HAL_RCC_ClockConfig+0x11c>)
  2811. 80010aa: 680b ldr r3, [r1, #0]
  2812. 80010ac: 2201 movs r2, #1
  2813. 80010ae: 4393 bics r3, r2
  2814. 80010b0: 432b orrs r3, r5
  2815. 80010b2: 600b str r3, [r1, #0]
  2816. if(__HAL_FLASH_GET_LATENCY() != FLatency)
  2817. 80010b4: 680b ldr r3, [r1, #0]
  2818. 80010b6: 401a ands r2, r3
  2819. 80010b8: 42aa cmp r2, r5
  2820. 80010ba: d000 beq.n 80010be <HAL_RCC_ClockConfig+0x2e>
  2821. 80010bc: e06f b.n 800119e <HAL_RCC_ClockConfig+0x10e>
  2822. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  2823. 80010be: 6823 ldr r3, [r4, #0]
  2824. 80010c0: 079a lsls r2, r3, #30
  2825. 80010c2: d50e bpl.n 80010e2 <HAL_RCC_ClockConfig+0x52>
  2826. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  2827. 80010c4: 075b lsls r3, r3, #29
  2828. 80010c6: d505 bpl.n 80010d4 <HAL_RCC_ClockConfig+0x44>
  2829. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE, RCC_HCLK_DIV16);
  2830. 80010c8: 4a39 ldr r2, [pc, #228] ; (80011b0 <HAL_RCC_ClockConfig+0x120>)
  2831. 80010ca: 6851 ldr r1, [r2, #4]
  2832. 80010cc: 23e0 movs r3, #224 ; 0xe0
  2833. 80010ce: 00db lsls r3, r3, #3
  2834. 80010d0: 430b orrs r3, r1
  2835. 80010d2: 6053 str r3, [r2, #4]
  2836. MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  2837. 80010d4: 4a36 ldr r2, [pc, #216] ; (80011b0 <HAL_RCC_ClockConfig+0x120>)
  2838. 80010d6: 6853 ldr r3, [r2, #4]
  2839. 80010d8: 21f0 movs r1, #240 ; 0xf0
  2840. 80010da: 438b bics r3, r1
  2841. 80010dc: 68a1 ldr r1, [r4, #8]
  2842. 80010de: 430b orrs r3, r1
  2843. 80010e0: 6053 str r3, [r2, #4]
  2844. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  2845. 80010e2: 6823 ldr r3, [r4, #0]
  2846. 80010e4: 07db lsls r3, r3, #31
  2847. 80010e6: d52d bpl.n 8001144 <HAL_RCC_ClockConfig+0xb4>
  2848. if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  2849. 80010e8: 6863 ldr r3, [r4, #4]
  2850. 80010ea: 2b01 cmp r3, #1
  2851. 80010ec: d01e beq.n 800112c <HAL_RCC_ClockConfig+0x9c>
  2852. else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  2853. 80010ee: 2b02 cmp r3, #2
  2854. 80010f0: d022 beq.n 8001138 <HAL_RCC_ClockConfig+0xa8>
  2855. if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
  2856. 80010f2: 4a2f ldr r2, [pc, #188] ; (80011b0 <HAL_RCC_ClockConfig+0x120>)
  2857. 80010f4: 6812 ldr r2, [r2, #0]
  2858. 80010f6: 0792 lsls r2, r2, #30
  2859. 80010f8: d553 bpl.n 80011a2 <HAL_RCC_ClockConfig+0x112>
  2860. __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource);
  2861. 80010fa: 492d ldr r1, [pc, #180] ; (80011b0 <HAL_RCC_ClockConfig+0x120>)
  2862. 80010fc: 684a ldr r2, [r1, #4]
  2863. 80010fe: 2003 movs r0, #3
  2864. 8001100: 4382 bics r2, r0
  2865. 8001102: 4313 orrs r3, r2
  2866. 8001104: 604b str r3, [r1, #4]
  2867. tickstart = HAL_GetTick();
  2868. 8001106: f7ff fc03 bl 8000910 <HAL_GetTick>
  2869. 800110a: 0006 movs r6, r0
  2870. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  2871. 800110c: 4b28 ldr r3, [pc, #160] ; (80011b0 <HAL_RCC_ClockConfig+0x120>)
  2872. 800110e: 685b ldr r3, [r3, #4]
  2873. 8001110: 220c movs r2, #12
  2874. 8001112: 401a ands r2, r3
  2875. 8001114: 6863 ldr r3, [r4, #4]
  2876. 8001116: 009b lsls r3, r3, #2
  2877. 8001118: 429a cmp r2, r3
  2878. 800111a: d013 beq.n 8001144 <HAL_RCC_ClockConfig+0xb4>
  2879. if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
  2880. 800111c: f7ff fbf8 bl 8000910 <HAL_GetTick>
  2881. 8001120: 1b80 subs r0, r0, r6
  2882. 8001122: 4b24 ldr r3, [pc, #144] ; (80011b4 <HAL_RCC_ClockConfig+0x124>)
  2883. 8001124: 4298 cmp r0, r3
  2884. 8001126: d9f1 bls.n 800110c <HAL_RCC_ClockConfig+0x7c>
  2885. return HAL_TIMEOUT;
  2886. 8001128: 2003 movs r0, #3
  2887. 800112a: e035 b.n 8001198 <HAL_RCC_ClockConfig+0x108>
  2888. if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  2889. 800112c: 4a20 ldr r2, [pc, #128] ; (80011b0 <HAL_RCC_ClockConfig+0x120>)
  2890. 800112e: 6812 ldr r2, [r2, #0]
  2891. 8001130: 0392 lsls r2, r2, #14
  2892. 8001132: d4e2 bmi.n 80010fa <HAL_RCC_ClockConfig+0x6a>
  2893. return HAL_ERROR;
  2894. 8001134: 2001 movs r0, #1
  2895. 8001136: e02f b.n 8001198 <HAL_RCC_ClockConfig+0x108>
  2896. if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  2897. 8001138: 4a1d ldr r2, [pc, #116] ; (80011b0 <HAL_RCC_ClockConfig+0x120>)
  2898. 800113a: 6812 ldr r2, [r2, #0]
  2899. 800113c: 0192 lsls r2, r2, #6
  2900. 800113e: d4dc bmi.n 80010fa <HAL_RCC_ClockConfig+0x6a>
  2901. return HAL_ERROR;
  2902. 8001140: 2001 movs r0, #1
  2903. 8001142: e029 b.n 8001198 <HAL_RCC_ClockConfig+0x108>
  2904. if(FLatency < __HAL_FLASH_GET_LATENCY())
  2905. 8001144: 4b19 ldr r3, [pc, #100] ; (80011ac <HAL_RCC_ClockConfig+0x11c>)
  2906. 8001146: 681a ldr r2, [r3, #0]
  2907. 8001148: 2301 movs r3, #1
  2908. 800114a: 4013 ands r3, r2
  2909. 800114c: 42ab cmp r3, r5
  2910. 800114e: d909 bls.n 8001164 <HAL_RCC_ClockConfig+0xd4>
  2911. __HAL_FLASH_SET_LATENCY(FLatency);
  2912. 8001150: 4916 ldr r1, [pc, #88] ; (80011ac <HAL_RCC_ClockConfig+0x11c>)
  2913. 8001152: 680b ldr r3, [r1, #0]
  2914. 8001154: 2201 movs r2, #1
  2915. 8001156: 4393 bics r3, r2
  2916. 8001158: 432b orrs r3, r5
  2917. 800115a: 600b str r3, [r1, #0]
  2918. if(__HAL_FLASH_GET_LATENCY() != FLatency)
  2919. 800115c: 680b ldr r3, [r1, #0]
  2920. 800115e: 401a ands r2, r3
  2921. 8001160: 42aa cmp r2, r5
  2922. 8001162: d120 bne.n 80011a6 <HAL_RCC_ClockConfig+0x116>
  2923. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  2924. 8001164: 6823 ldr r3, [r4, #0]
  2925. 8001166: 075b lsls r3, r3, #29
  2926. 8001168: d506 bpl.n 8001178 <HAL_RCC_ClockConfig+0xe8>
  2927. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE, RCC_ClkInitStruct->APB1CLKDivider);
  2928. 800116a: 4a11 ldr r2, [pc, #68] ; (80011b0 <HAL_RCC_ClockConfig+0x120>)
  2929. 800116c: 6853 ldr r3, [r2, #4]
  2930. 800116e: 4912 ldr r1, [pc, #72] ; (80011b8 <HAL_RCC_ClockConfig+0x128>)
  2931. 8001170: 400b ands r3, r1
  2932. 8001172: 68e1 ldr r1, [r4, #12]
  2933. 8001174: 430b orrs r3, r1
  2934. 8001176: 6053 str r3, [r2, #4]
  2935. SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CFGR_HPRE_BITNUMBER];
  2936. 8001178: f7ff ff52 bl 8001020 <HAL_RCC_GetSysClockFreq>
  2937. 800117c: 4b0c ldr r3, [pc, #48] ; (80011b0 <HAL_RCC_ClockConfig+0x120>)
  2938. 800117e: 685a ldr r2, [r3, #4]
  2939. 8001180: 0912 lsrs r2, r2, #4
  2940. 8001182: 230f movs r3, #15
  2941. 8001184: 4013 ands r3, r2
  2942. 8001186: 4a0d ldr r2, [pc, #52] ; (80011bc <HAL_RCC_ClockConfig+0x12c>)
  2943. 8001188: 5cd3 ldrb r3, [r2, r3]
  2944. 800118a: 40d8 lsrs r0, r3
  2945. 800118c: 4b0c ldr r3, [pc, #48] ; (80011c0 <HAL_RCC_ClockConfig+0x130>)
  2946. 800118e: 6018 str r0, [r3, #0]
  2947. HAL_InitTick (TICK_INT_PRIORITY);
  2948. 8001190: 2003 movs r0, #3
  2949. 8001192: f7ff fb79 bl 8000888 <HAL_InitTick>
  2950. return HAL_OK;
  2951. 8001196: 2000 movs r0, #0
  2952. }
  2953. 8001198: bd70 pop {r4, r5, r6, pc}
  2954. return HAL_ERROR;
  2955. 800119a: 2001 movs r0, #1
  2956. 800119c: e7fc b.n 8001198 <HAL_RCC_ClockConfig+0x108>
  2957. return HAL_ERROR;
  2958. 800119e: 2001 movs r0, #1
  2959. 80011a0: e7fa b.n 8001198 <HAL_RCC_ClockConfig+0x108>
  2960. return HAL_ERROR;
  2961. 80011a2: 2001 movs r0, #1
  2962. 80011a4: e7f8 b.n 8001198 <HAL_RCC_ClockConfig+0x108>
  2963. return HAL_ERROR;
  2964. 80011a6: 2001 movs r0, #1
  2965. 80011a8: e7f6 b.n 8001198 <HAL_RCC_ClockConfig+0x108>
  2966. 80011aa: 46c0 nop ; (mov r8, r8)
  2967. 80011ac: 40022000 .word 0x40022000
  2968. 80011b0: 40021000 .word 0x40021000
  2969. 80011b4: 00001388 .word 0x00001388
  2970. 80011b8: fffff8ff .word 0xfffff8ff
  2971. 80011bc: 08001a8c .word 0x08001a8c
  2972. 80011c0: 20000004 .word 0x20000004
  2973. 080011c4 <HAL_SPI_Init>:
  2974. * @param hspi pointer to a SPI_HandleTypeDef structure that contains
  2975. * the configuration information for SPI module.
  2976. * @retval HAL status
  2977. */
  2978. HAL_StatusTypeDef HAL_SPI_Init(SPI_HandleTypeDef *hspi)
  2979. {
  2980. 80011c4: b570 push {r4, r5, r6, lr}
  2981. 80011c6: 1e04 subs r4, r0, #0
  2982. uint32_t frxth;
  2983. /* Check the SPI handle allocation */
  2984. if (hspi == NULL)
  2985. 80011c8: d100 bne.n 80011cc <HAL_SPI_Init+0x8>
  2986. 80011ca: e078 b.n 80012be <HAL_SPI_Init+0xfa>
  2987. assert_param(IS_SPI_NSS(hspi->Init.NSS));
  2988. assert_param(IS_SPI_NSSP(hspi->Init.NSSPMode));
  2989. assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler));
  2990. assert_param(IS_SPI_FIRST_BIT(hspi->Init.FirstBit));
  2991. assert_param(IS_SPI_TIMODE(hspi->Init.TIMode));
  2992. if (hspi->Init.TIMode == SPI_TIMODE_DISABLE)
  2993. 80011cc: 6a43 ldr r3, [r0, #36] ; 0x24
  2994. 80011ce: 2b00 cmp r3, #0
  2995. 80011d0: d107 bne.n 80011e2 <HAL_SPI_Init+0x1e>
  2996. {
  2997. assert_param(IS_SPI_CPOL(hspi->Init.CLKPolarity));
  2998. assert_param(IS_SPI_CPHA(hspi->Init.CLKPhase));
  2999. if (hspi->Init.Mode == SPI_MODE_MASTER)
  3000. 80011d2: 3305 adds r3, #5
  3001. 80011d4: 33ff adds r3, #255 ; 0xff
  3002. 80011d6: 6842 ldr r2, [r0, #4]
  3003. 80011d8: 429a cmp r2, r3
  3004. 80011da: d005 beq.n 80011e8 <HAL_SPI_Init+0x24>
  3005. assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler));
  3006. }
  3007. else
  3008. {
  3009. /* Baudrate prescaler not use in Motoraola Slave mode. force to default value */
  3010. hspi->Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2;
  3011. 80011dc: 2300 movs r3, #0
  3012. 80011de: 61c3 str r3, [r0, #28]
  3013. 80011e0: e002 b.n 80011e8 <HAL_SPI_Init+0x24>
  3014. else
  3015. {
  3016. assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler));
  3017. /* Force polarity and phase to TI protocaol requirements */
  3018. hspi->Init.CLKPolarity = SPI_POLARITY_LOW;
  3019. 80011e2: 2300 movs r3, #0
  3020. 80011e4: 6103 str r3, [r0, #16]
  3021. hspi->Init.CLKPhase = SPI_PHASE_1EDGE;
  3022. 80011e6: 6143 str r3, [r0, #20]
  3023. {
  3024. assert_param(IS_SPI_CRC_POLYNOMIAL(hspi->Init.CRCPolynomial));
  3025. assert_param(IS_SPI_CRC_LENGTH(hspi->Init.CRCLength));
  3026. }
  3027. #else
  3028. hspi->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
  3029. 80011e8: 2300 movs r3, #0
  3030. 80011ea: 62a3 str r3, [r4, #40] ; 0x28
  3031. #endif /* USE_SPI_CRC */
  3032. if (hspi->State == HAL_SPI_STATE_RESET)
  3033. 80011ec: 335d adds r3, #93 ; 0x5d
  3034. 80011ee: 5ce3 ldrb r3, [r4, r3]
  3035. 80011f0: 2b00 cmp r3, #0
  3036. 80011f2: d05a beq.n 80012aa <HAL_SPI_Init+0xe6>
  3037. /* Init the low level hardware : GPIO, CLOCK, NVIC... */
  3038. HAL_SPI_MspInit(hspi);
  3039. #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */
  3040. }
  3041. hspi->State = HAL_SPI_STATE_BUSY;
  3042. 80011f4: 235d movs r3, #93 ; 0x5d
  3043. 80011f6: 2202 movs r2, #2
  3044. 80011f8: 54e2 strb r2, [r4, r3]
  3045. /* Disable the selected SPI peripheral */
  3046. __HAL_SPI_DISABLE(hspi);
  3047. 80011fa: 6822 ldr r2, [r4, #0]
  3048. 80011fc: 6813 ldr r3, [r2, #0]
  3049. 80011fe: 2140 movs r1, #64 ; 0x40
  3050. 8001200: 438b bics r3, r1
  3051. 8001202: 6013 str r3, [r2, #0]
  3052. /* Align by default the rs fifo threshold on the data size */
  3053. if (hspi->Init.DataSize > SPI_DATASIZE_8BIT)
  3054. 8001204: 68e3 ldr r3, [r4, #12]
  3055. 8001206: 22e0 movs r2, #224 ; 0xe0
  3056. 8001208: 00d2 lsls r2, r2, #3
  3057. 800120a: 4293 cmp r3, r2
  3058. 800120c: d954 bls.n 80012b8 <HAL_SPI_Init+0xf4>
  3059. {
  3060. frxth = SPI_RXFIFO_THRESHOLD_HF;
  3061. 800120e: 2200 movs r2, #0
  3062. {
  3063. frxth = SPI_RXFIFO_THRESHOLD_QF;
  3064. }
  3065. /* CRC calculation is valid only for 16Bit and 8 Bit */
  3066. if ((hspi->Init.DataSize != SPI_DATASIZE_16BIT) && (hspi->Init.DataSize != SPI_DATASIZE_8BIT))
  3067. 8001210: 21f0 movs r1, #240 ; 0xf0
  3068. 8001212: 0109 lsls r1, r1, #4
  3069. 8001214: 428b cmp r3, r1
  3070. 8001216: d005 beq.n 8001224 <HAL_SPI_Init+0x60>
  3071. 8001218: 21e0 movs r1, #224 ; 0xe0
  3072. 800121a: 00c9 lsls r1, r1, #3
  3073. 800121c: 428b cmp r3, r1
  3074. 800121e: d001 beq.n 8001224 <HAL_SPI_Init+0x60>
  3075. {
  3076. /* CRC must be disabled */
  3077. hspi->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
  3078. 8001220: 2300 movs r3, #0
  3079. 8001222: 62a3 str r3, [r4, #40] ; 0x28
  3080. }
  3081. /*----------------------- SPIx CR1 & CR2 Configuration ---------------------*/
  3082. /* Configure : SPI Mode, Communication Mode, Clock polarity and phase, NSS management,
  3083. Communication speed, First bit and CRC calculation state */
  3084. WRITE_REG(hspi->Instance->CR1, ((hspi->Init.Mode & (SPI_CR1_MSTR | SPI_CR1_SSI)) |
  3085. 8001224: 2382 movs r3, #130 ; 0x82
  3086. 8001226: 005b lsls r3, r3, #1
  3087. 8001228: 6861 ldr r1, [r4, #4]
  3088. 800122a: 400b ands r3, r1
  3089. 800122c: 2184 movs r1, #132 ; 0x84
  3090. 800122e: 0209 lsls r1, r1, #8
  3091. 8001230: 68a0 ldr r0, [r4, #8]
  3092. 8001232: 4001 ands r1, r0
  3093. 8001234: 430b orrs r3, r1
  3094. 8001236: 2102 movs r1, #2
  3095. 8001238: 6920 ldr r0, [r4, #16]
  3096. 800123a: 4001 ands r1, r0
  3097. 800123c: 430b orrs r3, r1
  3098. 800123e: 2101 movs r1, #1
  3099. 8001240: 6960 ldr r0, [r4, #20]
  3100. 8001242: 4008 ands r0, r1
  3101. 8001244: 4303 orrs r3, r0
  3102. 8001246: 2080 movs r0, #128 ; 0x80
  3103. 8001248: 0080 lsls r0, r0, #2
  3104. 800124a: 69a5 ldr r5, [r4, #24]
  3105. 800124c: 4028 ands r0, r5
  3106. 800124e: 4303 orrs r3, r0
  3107. 8001250: 2038 movs r0, #56 ; 0x38
  3108. 8001252: 69e5 ldr r5, [r4, #28]
  3109. 8001254: 4028 ands r0, r5
  3110. 8001256: 4303 orrs r3, r0
  3111. 8001258: 2080 movs r0, #128 ; 0x80
  3112. 800125a: 6a25 ldr r5, [r4, #32]
  3113. 800125c: 4028 ands r0, r5
  3114. 800125e: 4303 orrs r3, r0
  3115. 8001260: 2080 movs r0, #128 ; 0x80
  3116. 8001262: 0180 lsls r0, r0, #6
  3117. 8001264: 6aa5 ldr r5, [r4, #40] ; 0x28
  3118. 8001266: 4028 ands r0, r5
  3119. 8001268: 4303 orrs r3, r0
  3120. 800126a: 6820 ldr r0, [r4, #0]
  3121. 800126c: 6003 str r3, [r0, #0]
  3122. }
  3123. }
  3124. #endif /* USE_SPI_CRC */
  3125. /* Configure : NSS management, TI Mode, NSS Pulse, Data size and Rx Fifo threshold */
  3126. WRITE_REG(hspi->Instance->CR2, (((hspi->Init.NSS >> 16U) & SPI_CR2_SSOE) |
  3127. 800126e: 8b60 ldrh r0, [r4, #26]
  3128. 8001270: 2304 movs r3, #4
  3129. 8001272: 4003 ands r3, r0
  3130. 8001274: 2010 movs r0, #16
  3131. 8001276: 6a65 ldr r5, [r4, #36] ; 0x24
  3132. 8001278: 4028 ands r0, r5
  3133. 800127a: 4303 orrs r3, r0
  3134. 800127c: 2008 movs r0, #8
  3135. 800127e: 6b65 ldr r5, [r4, #52] ; 0x34
  3136. 8001280: 4028 ands r0, r5
  3137. 8001282: 4303 orrs r3, r0
  3138. 8001284: 20f0 movs r0, #240 ; 0xf0
  3139. 8001286: 0100 lsls r0, r0, #4
  3140. 8001288: 68e5 ldr r5, [r4, #12]
  3141. 800128a: 4028 ands r0, r5
  3142. 800128c: 4303 orrs r3, r0
  3143. 800128e: 6820 ldr r0, [r4, #0]
  3144. 8001290: 4313 orrs r3, r2
  3145. 8001292: 6043 str r3, [r0, #4]
  3146. }
  3147. #endif /* USE_SPI_CRC */
  3148. #if defined(SPI_I2SCFGR_I2SMOD)
  3149. /* Activate the SPI mode (Make sure that I2SMOD bit in I2SCFGR register is reset) */
  3150. CLEAR_BIT(hspi->Instance->I2SCFGR, SPI_I2SCFGR_I2SMOD);
  3151. 8001294: 6822 ldr r2, [r4, #0]
  3152. 8001296: 69d3 ldr r3, [r2, #28]
  3153. 8001298: 480a ldr r0, [pc, #40] ; (80012c4 <HAL_SPI_Init+0x100>)
  3154. 800129a: 4003 ands r3, r0
  3155. 800129c: 61d3 str r3, [r2, #28]
  3156. #endif /* SPI_I2SCFGR_I2SMOD */
  3157. hspi->ErrorCode = HAL_SPI_ERROR_NONE;
  3158. 800129e: 2300 movs r3, #0
  3159. 80012a0: 6623 str r3, [r4, #96] ; 0x60
  3160. hspi->State = HAL_SPI_STATE_READY;
  3161. 80012a2: 335d adds r3, #93 ; 0x5d
  3162. 80012a4: 54e1 strb r1, [r4, r3]
  3163. return HAL_OK;
  3164. 80012a6: 2000 movs r0, #0
  3165. }
  3166. 80012a8: bd70 pop {r4, r5, r6, pc}
  3167. hspi->Lock = HAL_UNLOCKED;
  3168. 80012aa: 335c adds r3, #92 ; 0x5c
  3169. 80012ac: 2200 movs r2, #0
  3170. 80012ae: 54e2 strb r2, [r4, r3]
  3171. HAL_SPI_MspInit(hspi);
  3172. 80012b0: 0020 movs r0, r4
  3173. 80012b2: f7ff f9ad bl 8000610 <HAL_SPI_MspInit>
  3174. 80012b6: e79d b.n 80011f4 <HAL_SPI_Init+0x30>
  3175. frxth = SPI_RXFIFO_THRESHOLD_QF;
  3176. 80012b8: 2280 movs r2, #128 ; 0x80
  3177. 80012ba: 0152 lsls r2, r2, #5
  3178. 80012bc: e7a8 b.n 8001210 <HAL_SPI_Init+0x4c>
  3179. return HAL_ERROR;
  3180. 80012be: 2001 movs r0, #1
  3181. 80012c0: e7f2 b.n 80012a8 <HAL_SPI_Init+0xe4>
  3182. 80012c2: 46c0 nop ; (mov r8, r8)
  3183. 80012c4: fffff7ff .word 0xfffff7ff
  3184. 080012c8 <TIM_OC1_SetConfig>:
  3185. * @param TIMx to select the TIM peripheral
  3186. * @param OC_Config The output configuration structure
  3187. * @retval None
  3188. */
  3189. static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
  3190. {
  3191. 80012c8: b530 push {r4, r5, lr}
  3192. uint32_t tmpccmrx;
  3193. uint32_t tmpccer;
  3194. uint32_t tmpcr2;
  3195. /* Disable the Channel 1: Reset the CC1E Bit */
  3196. TIMx->CCER &= ~TIM_CCER_CC1E;
  3197. 80012ca: 6a03 ldr r3, [r0, #32]
  3198. 80012cc: 2201 movs r2, #1
  3199. 80012ce: 4393 bics r3, r2
  3200. 80012d0: 6203 str r3, [r0, #32]
  3201. /* Get the TIMx CCER register value */
  3202. tmpccer = TIMx->CCER;
  3203. 80012d2: 6a03 ldr r3, [r0, #32]
  3204. /* Get the TIMx CR2 register value */
  3205. tmpcr2 = TIMx->CR2;
  3206. 80012d4: 6842 ldr r2, [r0, #4]
  3207. /* Get the TIMx CCMR1 register value */
  3208. tmpccmrx = TIMx->CCMR1;
  3209. 80012d6: 6984 ldr r4, [r0, #24]
  3210. /* Reset the Output Compare Mode Bits */
  3211. tmpccmrx &= ~TIM_CCMR1_OC1M;
  3212. tmpccmrx &= ~TIM_CCMR1_CC1S;
  3213. 80012d8: 2573 movs r5, #115 ; 0x73
  3214. 80012da: 43ac bics r4, r5
  3215. /* Select the Output Compare Mode */
  3216. tmpccmrx |= OC_Config->OCMode;
  3217. 80012dc: 680d ldr r5, [r1, #0]
  3218. 80012de: 432c orrs r4, r5
  3219. /* Reset the Output Polarity level */
  3220. tmpccer &= ~TIM_CCER_CC1P;
  3221. 80012e0: 2502 movs r5, #2
  3222. 80012e2: 43ab bics r3, r5
  3223. /* Set the Output Compare Polarity */
  3224. tmpccer |= OC_Config->OCPolarity;
  3225. 80012e4: 688d ldr r5, [r1, #8]
  3226. 80012e6: 432b orrs r3, r5
  3227. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1))
  3228. 80012e8: 4d11 ldr r5, [pc, #68] ; (8001330 <TIM_OC1_SetConfig+0x68>)
  3229. 80012ea: 42a8 cmp r0, r5
  3230. 80012ec: d005 beq.n 80012fa <TIM_OC1_SetConfig+0x32>
  3231. 80012ee: 4d11 ldr r5, [pc, #68] ; (8001334 <TIM_OC1_SetConfig+0x6c>)
  3232. 80012f0: 42a8 cmp r0, r5
  3233. 80012f2: d002 beq.n 80012fa <TIM_OC1_SetConfig+0x32>
  3234. 80012f4: 4d10 ldr r5, [pc, #64] ; (8001338 <TIM_OC1_SetConfig+0x70>)
  3235. 80012f6: 42a8 cmp r0, r5
  3236. 80012f8: d105 bne.n 8001306 <TIM_OC1_SetConfig+0x3e>
  3237. {
  3238. /* Check parameters */
  3239. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  3240. /* Reset the Output N Polarity level */
  3241. tmpccer &= ~TIM_CCER_CC1NP;
  3242. 80012fa: 2508 movs r5, #8
  3243. 80012fc: 43ab bics r3, r5
  3244. /* Set the Output N Polarity */
  3245. tmpccer |= OC_Config->OCNPolarity;
  3246. 80012fe: 68cd ldr r5, [r1, #12]
  3247. 8001300: 432b orrs r3, r5
  3248. /* Reset the Output N State */
  3249. tmpccer &= ~TIM_CCER_CC1NE;
  3250. 8001302: 2504 movs r5, #4
  3251. 8001304: 43ab bics r3, r5
  3252. }
  3253. if (IS_TIM_BREAK_INSTANCE(TIMx))
  3254. 8001306: 4d0a ldr r5, [pc, #40] ; (8001330 <TIM_OC1_SetConfig+0x68>)
  3255. 8001308: 42a8 cmp r0, r5
  3256. 800130a: d005 beq.n 8001318 <TIM_OC1_SetConfig+0x50>
  3257. 800130c: 4d09 ldr r5, [pc, #36] ; (8001334 <TIM_OC1_SetConfig+0x6c>)
  3258. 800130e: 42a8 cmp r0, r5
  3259. 8001310: d002 beq.n 8001318 <TIM_OC1_SetConfig+0x50>
  3260. 8001312: 4d09 ldr r5, [pc, #36] ; (8001338 <TIM_OC1_SetConfig+0x70>)
  3261. 8001314: 42a8 cmp r0, r5
  3262. 8001316: d105 bne.n 8001324 <TIM_OC1_SetConfig+0x5c>
  3263. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  3264. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  3265. /* Reset the Output Compare and Output Compare N IDLE State */
  3266. tmpcr2 &= ~TIM_CR2_OIS1;
  3267. tmpcr2 &= ~TIM_CR2_OIS1N;
  3268. 8001318: 4d08 ldr r5, [pc, #32] ; (800133c <TIM_OC1_SetConfig+0x74>)
  3269. 800131a: 402a ands r2, r5
  3270. /* Set the Output Idle state */
  3271. tmpcr2 |= OC_Config->OCIdleState;
  3272. 800131c: 694d ldr r5, [r1, #20]
  3273. 800131e: 432a orrs r2, r5
  3274. /* Set the Output N Idle state */
  3275. tmpcr2 |= OC_Config->OCNIdleState;
  3276. 8001320: 698d ldr r5, [r1, #24]
  3277. 8001322: 432a orrs r2, r5
  3278. }
  3279. /* Write to TIMx CR2 */
  3280. TIMx->CR2 = tmpcr2;
  3281. 8001324: 6042 str r2, [r0, #4]
  3282. /* Write to TIMx CCMR1 */
  3283. TIMx->CCMR1 = tmpccmrx;
  3284. 8001326: 6184 str r4, [r0, #24]
  3285. /* Set the Capture Compare Register value */
  3286. TIMx->CCR1 = OC_Config->Pulse;
  3287. 8001328: 684a ldr r2, [r1, #4]
  3288. 800132a: 6342 str r2, [r0, #52] ; 0x34
  3289. /* Write to TIMx CCER */
  3290. TIMx->CCER = tmpccer;
  3291. 800132c: 6203 str r3, [r0, #32]
  3292. }
  3293. 800132e: bd30 pop {r4, r5, pc}
  3294. 8001330: 40012c00 .word 0x40012c00
  3295. 8001334: 40014400 .word 0x40014400
  3296. 8001338: 40014800 .word 0x40014800
  3297. 800133c: fffffcff .word 0xfffffcff
  3298. 08001340 <TIM_OC3_SetConfig>:
  3299. * @param TIMx to select the TIM peripheral
  3300. * @param OC_Config The output configuration structure
  3301. * @retval None
  3302. */
  3303. static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
  3304. {
  3305. 8001340: b570 push {r4, r5, r6, lr}
  3306. uint32_t tmpccmrx;
  3307. uint32_t tmpccer;
  3308. uint32_t tmpcr2;
  3309. /* Disable the Channel 3: Reset the CC2E Bit */
  3310. TIMx->CCER &= ~TIM_CCER_CC3E;
  3311. 8001342: 6a03 ldr r3, [r0, #32]
  3312. 8001344: 4a18 ldr r2, [pc, #96] ; (80013a8 <TIM_OC3_SetConfig+0x68>)
  3313. 8001346: 4013 ands r3, r2
  3314. 8001348: 6203 str r3, [r0, #32]
  3315. /* Get the TIMx CCER register value */
  3316. tmpccer = TIMx->CCER;
  3317. 800134a: 6a03 ldr r3, [r0, #32]
  3318. /* Get the TIMx CR2 register value */
  3319. tmpcr2 = TIMx->CR2;
  3320. 800134c: 6844 ldr r4, [r0, #4]
  3321. /* Get the TIMx CCMR2 register value */
  3322. tmpccmrx = TIMx->CCMR2;
  3323. 800134e: 69c2 ldr r2, [r0, #28]
  3324. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  3325. tmpccmrx &= ~TIM_CCMR2_OC3M;
  3326. tmpccmrx &= ~TIM_CCMR2_CC3S;
  3327. 8001350: 2573 movs r5, #115 ; 0x73
  3328. 8001352: 43aa bics r2, r5
  3329. /* Select the Output Compare Mode */
  3330. tmpccmrx |= OC_Config->OCMode;
  3331. 8001354: 680e ldr r6, [r1, #0]
  3332. 8001356: 4316 orrs r6, r2
  3333. /* Reset the Output Polarity level */
  3334. tmpccer &= ~TIM_CCER_CC3P;
  3335. 8001358: 4a14 ldr r2, [pc, #80] ; (80013ac <TIM_OC3_SetConfig+0x6c>)
  3336. 800135a: 4013 ands r3, r2
  3337. /* Set the Output Compare Polarity */
  3338. tmpccer |= (OC_Config->OCPolarity << 8U);
  3339. 800135c: 688a ldr r2, [r1, #8]
  3340. 800135e: 0212 lsls r2, r2, #8
  3341. 8001360: 4313 orrs r3, r2
  3342. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3))
  3343. 8001362: 4a13 ldr r2, [pc, #76] ; (80013b0 <TIM_OC3_SetConfig+0x70>)
  3344. 8001364: 4290 cmp r0, r2
  3345. 8001366: d016 beq.n 8001396 <TIM_OC3_SetConfig+0x56>
  3346. tmpccer |= (OC_Config->OCNPolarity << 8U);
  3347. /* Reset the Output N State */
  3348. tmpccer &= ~TIM_CCER_CC3NE;
  3349. }
  3350. if (IS_TIM_BREAK_INSTANCE(TIMx))
  3351. 8001368: 4a11 ldr r2, [pc, #68] ; (80013b0 <TIM_OC3_SetConfig+0x70>)
  3352. 800136a: 4290 cmp r0, r2
  3353. 800136c: d005 beq.n 800137a <TIM_OC3_SetConfig+0x3a>
  3354. 800136e: 4a11 ldr r2, [pc, #68] ; (80013b4 <TIM_OC3_SetConfig+0x74>)
  3355. 8001370: 4290 cmp r0, r2
  3356. 8001372: d002 beq.n 800137a <TIM_OC3_SetConfig+0x3a>
  3357. 8001374: 4a10 ldr r2, [pc, #64] ; (80013b8 <TIM_OC3_SetConfig+0x78>)
  3358. 8001376: 4290 cmp r0, r2
  3359. 8001378: d107 bne.n 800138a <TIM_OC3_SetConfig+0x4a>
  3360. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  3361. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  3362. /* Reset the Output Compare and Output Compare N IDLE State */
  3363. tmpcr2 &= ~TIM_CR2_OIS3;
  3364. tmpcr2 &= ~TIM_CR2_OIS3N;
  3365. 800137a: 4a10 ldr r2, [pc, #64] ; (80013bc <TIM_OC3_SetConfig+0x7c>)
  3366. 800137c: 4022 ands r2, r4
  3367. /* Set the Output Idle state */
  3368. tmpcr2 |= (OC_Config->OCIdleState << 4U);
  3369. 800137e: 694c ldr r4, [r1, #20]
  3370. 8001380: 0124 lsls r4, r4, #4
  3371. 8001382: 4314 orrs r4, r2
  3372. /* Set the Output N Idle state */
  3373. tmpcr2 |= (OC_Config->OCNIdleState << 4U);
  3374. 8001384: 698a ldr r2, [r1, #24]
  3375. 8001386: 0115 lsls r5, r2, #4
  3376. 8001388: 432c orrs r4, r5
  3377. }
  3378. /* Write to TIMx CR2 */
  3379. TIMx->CR2 = tmpcr2;
  3380. 800138a: 6044 str r4, [r0, #4]
  3381. /* Write to TIMx CCMR2 */
  3382. TIMx->CCMR2 = tmpccmrx;
  3383. 800138c: 61c6 str r6, [r0, #28]
  3384. /* Set the Capture Compare Register value */
  3385. TIMx->CCR3 = OC_Config->Pulse;
  3386. 800138e: 684a ldr r2, [r1, #4]
  3387. 8001390: 63c2 str r2, [r0, #60] ; 0x3c
  3388. /* Write to TIMx CCER */
  3389. TIMx->CCER = tmpccer;
  3390. 8001392: 6203 str r3, [r0, #32]
  3391. }
  3392. 8001394: bd70 pop {r4, r5, r6, pc}
  3393. tmpccer &= ~TIM_CCER_CC3NP;
  3394. 8001396: 4a0a ldr r2, [pc, #40] ; (80013c0 <TIM_OC3_SetConfig+0x80>)
  3395. 8001398: 401a ands r2, r3
  3396. tmpccer |= (OC_Config->OCNPolarity << 8U);
  3397. 800139a: 68cb ldr r3, [r1, #12]
  3398. 800139c: 021b lsls r3, r3, #8
  3399. 800139e: 4313 orrs r3, r2
  3400. tmpccer &= ~TIM_CCER_CC3NE;
  3401. 80013a0: 4a08 ldr r2, [pc, #32] ; (80013c4 <TIM_OC3_SetConfig+0x84>)
  3402. 80013a2: 4013 ands r3, r2
  3403. 80013a4: e7e0 b.n 8001368 <TIM_OC3_SetConfig+0x28>
  3404. 80013a6: 46c0 nop ; (mov r8, r8)
  3405. 80013a8: fffffeff .word 0xfffffeff
  3406. 80013ac: fffffdff .word 0xfffffdff
  3407. 80013b0: 40012c00 .word 0x40012c00
  3408. 80013b4: 40014400 .word 0x40014400
  3409. 80013b8: 40014800 .word 0x40014800
  3410. 80013bc: ffffcfff .word 0xffffcfff
  3411. 80013c0: fffff7ff .word 0xfffff7ff
  3412. 80013c4: fffffbff .word 0xfffffbff
  3413. 080013c8 <TIM_OC4_SetConfig>:
  3414. * @param TIMx to select the TIM peripheral
  3415. * @param OC_Config The output configuration structure
  3416. * @retval None
  3417. */
  3418. static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
  3419. {
  3420. 80013c8: b530 push {r4, r5, lr}
  3421. uint32_t tmpccmrx;
  3422. uint32_t tmpccer;
  3423. uint32_t tmpcr2;
  3424. /* Disable the Channel 4: Reset the CC4E Bit */
  3425. TIMx->CCER &= ~TIM_CCER_CC4E;
  3426. 80013ca: 6a03 ldr r3, [r0, #32]
  3427. 80013cc: 4a11 ldr r2, [pc, #68] ; (8001414 <TIM_OC4_SetConfig+0x4c>)
  3428. 80013ce: 4013 ands r3, r2
  3429. 80013d0: 6203 str r3, [r0, #32]
  3430. /* Get the TIMx CCER register value */
  3431. tmpccer = TIMx->CCER;
  3432. 80013d2: 6a03 ldr r3, [r0, #32]
  3433. /* Get the TIMx CR2 register value */
  3434. tmpcr2 = TIMx->CR2;
  3435. 80013d4: 6845 ldr r5, [r0, #4]
  3436. /* Get the TIMx CCMR2 register value */
  3437. tmpccmrx = TIMx->CCMR2;
  3438. 80013d6: 69c2 ldr r2, [r0, #28]
  3439. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  3440. tmpccmrx &= ~TIM_CCMR2_OC4M;
  3441. tmpccmrx &= ~TIM_CCMR2_CC4S;
  3442. 80013d8: 4c0f ldr r4, [pc, #60] ; (8001418 <TIM_OC4_SetConfig+0x50>)
  3443. 80013da: 4022 ands r2, r4
  3444. /* Select the Output Compare Mode */
  3445. tmpccmrx |= (OC_Config->OCMode << 8U);
  3446. 80013dc: 680c ldr r4, [r1, #0]
  3447. 80013de: 0224 lsls r4, r4, #8
  3448. 80013e0: 4322 orrs r2, r4
  3449. /* Reset the Output Polarity level */
  3450. tmpccer &= ~TIM_CCER_CC4P;
  3451. 80013e2: 4c0e ldr r4, [pc, #56] ; (800141c <TIM_OC4_SetConfig+0x54>)
  3452. 80013e4: 401c ands r4, r3
  3453. /* Set the Output Compare Polarity */
  3454. tmpccer |= (OC_Config->OCPolarity << 12U);
  3455. 80013e6: 688b ldr r3, [r1, #8]
  3456. 80013e8: 031b lsls r3, r3, #12
  3457. 80013ea: 4323 orrs r3, r4
  3458. if (IS_TIM_BREAK_INSTANCE(TIMx))
  3459. 80013ec: 4c0c ldr r4, [pc, #48] ; (8001420 <TIM_OC4_SetConfig+0x58>)
  3460. 80013ee: 42a0 cmp r0, r4
  3461. 80013f0: d005 beq.n 80013fe <TIM_OC4_SetConfig+0x36>
  3462. 80013f2: 4c0c ldr r4, [pc, #48] ; (8001424 <TIM_OC4_SetConfig+0x5c>)
  3463. 80013f4: 42a0 cmp r0, r4
  3464. 80013f6: d002 beq.n 80013fe <TIM_OC4_SetConfig+0x36>
  3465. 80013f8: 4c0b ldr r4, [pc, #44] ; (8001428 <TIM_OC4_SetConfig+0x60>)
  3466. 80013fa: 42a0 cmp r0, r4
  3467. 80013fc: d104 bne.n 8001408 <TIM_OC4_SetConfig+0x40>
  3468. {
  3469. /* Check parameters */
  3470. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  3471. /* Reset the Output Compare IDLE State */
  3472. tmpcr2 &= ~TIM_CR2_OIS4;
  3473. 80013fe: 4c0b ldr r4, [pc, #44] ; (800142c <TIM_OC4_SetConfig+0x64>)
  3474. 8001400: 4025 ands r5, r4
  3475. /* Set the Output Idle state */
  3476. tmpcr2 |= (OC_Config->OCIdleState << 6U);
  3477. 8001402: 694c ldr r4, [r1, #20]
  3478. 8001404: 01a4 lsls r4, r4, #6
  3479. 8001406: 4325 orrs r5, r4
  3480. }
  3481. /* Write to TIMx CR2 */
  3482. TIMx->CR2 = tmpcr2;
  3483. 8001408: 6045 str r5, [r0, #4]
  3484. /* Write to TIMx CCMR2 */
  3485. TIMx->CCMR2 = tmpccmrx;
  3486. 800140a: 61c2 str r2, [r0, #28]
  3487. /* Set the Capture Compare Register value */
  3488. TIMx->CCR4 = OC_Config->Pulse;
  3489. 800140c: 684a ldr r2, [r1, #4]
  3490. 800140e: 6402 str r2, [r0, #64] ; 0x40
  3491. /* Write to TIMx CCER */
  3492. TIMx->CCER = tmpccer;
  3493. 8001410: 6203 str r3, [r0, #32]
  3494. }
  3495. 8001412: bd30 pop {r4, r5, pc}
  3496. 8001414: ffffefff .word 0xffffefff
  3497. 8001418: ffff8cff .word 0xffff8cff
  3498. 800141c: ffffdfff .word 0xffffdfff
  3499. 8001420: 40012c00 .word 0x40012c00
  3500. 8001424: 40014400 .word 0x40014400
  3501. 8001428: 40014800 .word 0x40014800
  3502. 800142c: ffffbfff .word 0xffffbfff
  3503. 08001430 <TIM_TI1_ConfigInputStage>:
  3504. * @param TIM_ICFilter Specifies the Input Capture Filter.
  3505. * This parameter must be a value between 0x00 and 0x0F.
  3506. * @retval None
  3507. */
  3508. static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  3509. {
  3510. 8001430: b530 push {r4, r5, lr}
  3511. uint32_t tmpccmr1;
  3512. uint32_t tmpccer;
  3513. /* Disable the Channel 1: Reset the CC1E Bit */
  3514. tmpccer = TIMx->CCER;
  3515. 8001432: 6a03 ldr r3, [r0, #32]
  3516. TIMx->CCER &= ~TIM_CCER_CC1E;
  3517. 8001434: 6a04 ldr r4, [r0, #32]
  3518. 8001436: 2501 movs r5, #1
  3519. 8001438: 43ac bics r4, r5
  3520. 800143a: 6204 str r4, [r0, #32]
  3521. tmpccmr1 = TIMx->CCMR1;
  3522. 800143c: 6984 ldr r4, [r0, #24]
  3523. /* Set the filter */
  3524. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  3525. 800143e: 35ef adds r5, #239 ; 0xef
  3526. 8001440: 43ac bics r4, r5
  3527. tmpccmr1 |= (TIM_ICFilter << 4U);
  3528. 8001442: 0112 lsls r2, r2, #4
  3529. 8001444: 4322 orrs r2, r4
  3530. /* Select the Polarity and set the CC1E Bit */
  3531. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  3532. 8001446: 240a movs r4, #10
  3533. 8001448: 43a3 bics r3, r4
  3534. tmpccer |= TIM_ICPolarity;
  3535. 800144a: 430b orrs r3, r1
  3536. /* Write to TIMx CCMR1 and CCER registers */
  3537. TIMx->CCMR1 = tmpccmr1;
  3538. 800144c: 6182 str r2, [r0, #24]
  3539. TIMx->CCER = tmpccer;
  3540. 800144e: 6203 str r3, [r0, #32]
  3541. }
  3542. 8001450: bd30 pop {r4, r5, pc}
  3543. ...
  3544. 08001454 <TIM_TI2_ConfigInputStage>:
  3545. * @param TIM_ICFilter Specifies the Input Capture Filter.
  3546. * This parameter must be a value between 0x00 and 0x0F.
  3547. * @retval None
  3548. */
  3549. static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  3550. {
  3551. 8001454: b530 push {r4, r5, lr}
  3552. uint32_t tmpccmr1;
  3553. uint32_t tmpccer;
  3554. /* Disable the Channel 2: Reset the CC2E Bit */
  3555. TIMx->CCER &= ~TIM_CCER_CC2E;
  3556. 8001456: 6a03 ldr r3, [r0, #32]
  3557. 8001458: 2410 movs r4, #16
  3558. 800145a: 43a3 bics r3, r4
  3559. 800145c: 6203 str r3, [r0, #32]
  3560. tmpccmr1 = TIMx->CCMR1;
  3561. 800145e: 6984 ldr r4, [r0, #24]
  3562. tmpccer = TIMx->CCER;
  3563. 8001460: 6a03 ldr r3, [r0, #32]
  3564. /* Set the filter */
  3565. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  3566. 8001462: 4d05 ldr r5, [pc, #20] ; (8001478 <TIM_TI2_ConfigInputStage+0x24>)
  3567. 8001464: 402c ands r4, r5
  3568. tmpccmr1 |= (TIM_ICFilter << 12U);
  3569. 8001466: 0312 lsls r2, r2, #12
  3570. 8001468: 4322 orrs r2, r4
  3571. /* Select the Polarity and set the CC2E Bit */
  3572. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  3573. 800146a: 24a0 movs r4, #160 ; 0xa0
  3574. 800146c: 43a3 bics r3, r4
  3575. tmpccer |= (TIM_ICPolarity << 4U);
  3576. 800146e: 0109 lsls r1, r1, #4
  3577. 8001470: 4319 orrs r1, r3
  3578. /* Write to TIMx CCMR1 and CCER registers */
  3579. TIMx->CCMR1 = tmpccmr1 ;
  3580. 8001472: 6182 str r2, [r0, #24]
  3581. TIMx->CCER = tmpccer;
  3582. 8001474: 6201 str r1, [r0, #32]
  3583. }
  3584. 8001476: bd30 pop {r4, r5, pc}
  3585. 8001478: ffff0fff .word 0xffff0fff
  3586. 0800147c <TIM_ITRx_SetConfig>:
  3587. static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
  3588. {
  3589. uint32_t tmpsmcr;
  3590. /* Get the TIMx SMCR register value */
  3591. tmpsmcr = TIMx->SMCR;
  3592. 800147c: 6883 ldr r3, [r0, #8]
  3593. /* Reset the TS Bits */
  3594. tmpsmcr &= ~TIM_SMCR_TS;
  3595. 800147e: 2270 movs r2, #112 ; 0x70
  3596. 8001480: 4393 bics r3, r2
  3597. /* Set the Input Trigger source and the slave mode*/
  3598. tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
  3599. 8001482: 430b orrs r3, r1
  3600. 8001484: 2107 movs r1, #7
  3601. 8001486: 430b orrs r3, r1
  3602. /* Write to TIMx SMCR */
  3603. TIMx->SMCR = tmpsmcr;
  3604. 8001488: 6083 str r3, [r0, #8]
  3605. }
  3606. 800148a: 4770 bx lr
  3607. 0800148c <HAL_TIM_PWM_MspInit>:
  3608. }
  3609. 800148c: 4770 bx lr
  3610. ...
  3611. 08001490 <TIM_Base_SetConfig>:
  3612. tmpcr1 = TIMx->CR1;
  3613. 8001490: 6803 ldr r3, [r0, #0]
  3614. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  3615. 8001492: 4a1a ldr r2, [pc, #104] ; (80014fc <TIM_Base_SetConfig+0x6c>)
  3616. 8001494: 4290 cmp r0, r2
  3617. 8001496: d002 beq.n 800149e <TIM_Base_SetConfig+0xe>
  3618. 8001498: 4a19 ldr r2, [pc, #100] ; (8001500 <TIM_Base_SetConfig+0x70>)
  3619. 800149a: 4290 cmp r0, r2
  3620. 800149c: d103 bne.n 80014a6 <TIM_Base_SetConfig+0x16>
  3621. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  3622. 800149e: 2270 movs r2, #112 ; 0x70
  3623. 80014a0: 4393 bics r3, r2
  3624. tmpcr1 |= Structure->CounterMode;
  3625. 80014a2: 684a ldr r2, [r1, #4]
  3626. 80014a4: 4313 orrs r3, r2
  3627. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  3628. 80014a6: 4a15 ldr r2, [pc, #84] ; (80014fc <TIM_Base_SetConfig+0x6c>)
  3629. 80014a8: 4290 cmp r0, r2
  3630. 80014aa: d00b beq.n 80014c4 <TIM_Base_SetConfig+0x34>
  3631. 80014ac: 4a14 ldr r2, [pc, #80] ; (8001500 <TIM_Base_SetConfig+0x70>)
  3632. 80014ae: 4290 cmp r0, r2
  3633. 80014b0: d008 beq.n 80014c4 <TIM_Base_SetConfig+0x34>
  3634. 80014b2: 4a14 ldr r2, [pc, #80] ; (8001504 <TIM_Base_SetConfig+0x74>)
  3635. 80014b4: 4290 cmp r0, r2
  3636. 80014b6: d005 beq.n 80014c4 <TIM_Base_SetConfig+0x34>
  3637. 80014b8: 4a13 ldr r2, [pc, #76] ; (8001508 <TIM_Base_SetConfig+0x78>)
  3638. 80014ba: 4290 cmp r0, r2
  3639. 80014bc: d002 beq.n 80014c4 <TIM_Base_SetConfig+0x34>
  3640. 80014be: 4a13 ldr r2, [pc, #76] ; (800150c <TIM_Base_SetConfig+0x7c>)
  3641. 80014c0: 4290 cmp r0, r2
  3642. 80014c2: d103 bne.n 80014cc <TIM_Base_SetConfig+0x3c>
  3643. tmpcr1 &= ~TIM_CR1_CKD;
  3644. 80014c4: 4a12 ldr r2, [pc, #72] ; (8001510 <TIM_Base_SetConfig+0x80>)
  3645. 80014c6: 4013 ands r3, r2
  3646. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  3647. 80014c8: 68ca ldr r2, [r1, #12]
  3648. 80014ca: 4313 orrs r3, r2
  3649. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  3650. 80014cc: 2280 movs r2, #128 ; 0x80
  3651. 80014ce: 4393 bics r3, r2
  3652. 80014d0: 694a ldr r2, [r1, #20]
  3653. 80014d2: 4313 orrs r3, r2
  3654. TIMx->CR1 = tmpcr1;
  3655. 80014d4: 6003 str r3, [r0, #0]
  3656. TIMx->ARR = (uint32_t)Structure->Period ;
  3657. 80014d6: 688b ldr r3, [r1, #8]
  3658. 80014d8: 62c3 str r3, [r0, #44] ; 0x2c
  3659. TIMx->PSC = Structure->Prescaler;
  3660. 80014da: 680b ldr r3, [r1, #0]
  3661. 80014dc: 6283 str r3, [r0, #40] ; 0x28
  3662. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  3663. 80014de: 4b07 ldr r3, [pc, #28] ; (80014fc <TIM_Base_SetConfig+0x6c>)
  3664. 80014e0: 4298 cmp r0, r3
  3665. 80014e2: d005 beq.n 80014f0 <TIM_Base_SetConfig+0x60>
  3666. 80014e4: 4b08 ldr r3, [pc, #32] ; (8001508 <TIM_Base_SetConfig+0x78>)
  3667. 80014e6: 4298 cmp r0, r3
  3668. 80014e8: d002 beq.n 80014f0 <TIM_Base_SetConfig+0x60>
  3669. 80014ea: 4b08 ldr r3, [pc, #32] ; (800150c <TIM_Base_SetConfig+0x7c>)
  3670. 80014ec: 4298 cmp r0, r3
  3671. 80014ee: d101 bne.n 80014f4 <TIM_Base_SetConfig+0x64>
  3672. TIMx->RCR = Structure->RepetitionCounter;
  3673. 80014f0: 690b ldr r3, [r1, #16]
  3674. 80014f2: 6303 str r3, [r0, #48] ; 0x30
  3675. TIMx->EGR = TIM_EGR_UG;
  3676. 80014f4: 2301 movs r3, #1
  3677. 80014f6: 6143 str r3, [r0, #20]
  3678. }
  3679. 80014f8: 4770 bx lr
  3680. 80014fa: 46c0 nop ; (mov r8, r8)
  3681. 80014fc: 40012c00 .word 0x40012c00
  3682. 8001500: 40000400 .word 0x40000400
  3683. 8001504: 40002000 .word 0x40002000
  3684. 8001508: 40014400 .word 0x40014400
  3685. 800150c: 40014800 .word 0x40014800
  3686. 8001510: fffffcff .word 0xfffffcff
  3687. 08001514 <HAL_TIM_Base_Init>:
  3688. {
  3689. 8001514: b570 push {r4, r5, r6, lr}
  3690. 8001516: 1e04 subs r4, r0, #0
  3691. if (htim == NULL)
  3692. 8001518: d026 beq.n 8001568 <HAL_TIM_Base_Init+0x54>
  3693. if (htim->State == HAL_TIM_STATE_RESET)
  3694. 800151a: 233d movs r3, #61 ; 0x3d
  3695. 800151c: 5cc3 ldrb r3, [r0, r3]
  3696. 800151e: 2b00 cmp r3, #0
  3697. 8001520: d01c beq.n 800155c <HAL_TIM_Base_Init+0x48>
  3698. htim->State = HAL_TIM_STATE_BUSY;
  3699. 8001522: 253d movs r5, #61 ; 0x3d
  3700. 8001524: 2302 movs r3, #2
  3701. 8001526: 5563 strb r3, [r4, r5]
  3702. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  3703. 8001528: 0021 movs r1, r4
  3704. 800152a: c901 ldmia r1!, {r0}
  3705. 800152c: f7ff ffb0 bl 8001490 <TIM_Base_SetConfig>
  3706. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  3707. 8001530: 2301 movs r3, #1
  3708. 8001532: 2246 movs r2, #70 ; 0x46
  3709. 8001534: 54a3 strb r3, [r4, r2]
  3710. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  3711. 8001536: 3a08 subs r2, #8
  3712. 8001538: 54a3 strb r3, [r4, r2]
  3713. 800153a: 3201 adds r2, #1
  3714. 800153c: 54a3 strb r3, [r4, r2]
  3715. 800153e: 3201 adds r2, #1
  3716. 8001540: 54a3 strb r3, [r4, r2]
  3717. 8001542: 3201 adds r2, #1
  3718. 8001544: 54a3 strb r3, [r4, r2]
  3719. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  3720. 8001546: 3201 adds r2, #1
  3721. 8001548: 54a3 strb r3, [r4, r2]
  3722. 800154a: 3201 adds r2, #1
  3723. 800154c: 54a3 strb r3, [r4, r2]
  3724. 800154e: 3201 adds r2, #1
  3725. 8001550: 54a3 strb r3, [r4, r2]
  3726. 8001552: 3201 adds r2, #1
  3727. 8001554: 54a3 strb r3, [r4, r2]
  3728. htim->State = HAL_TIM_STATE_READY;
  3729. 8001556: 5563 strb r3, [r4, r5]
  3730. return HAL_OK;
  3731. 8001558: 2000 movs r0, #0
  3732. }
  3733. 800155a: bd70 pop {r4, r5, r6, pc}
  3734. htim->Lock = HAL_UNLOCKED;
  3735. 800155c: 333c adds r3, #60 ; 0x3c
  3736. 800155e: 2200 movs r2, #0
  3737. 8001560: 54c2 strb r2, [r0, r3]
  3738. HAL_TIM_Base_MspInit(htim);
  3739. 8001562: f7ff f8ad bl 80006c0 <HAL_TIM_Base_MspInit>
  3740. 8001566: e7dc b.n 8001522 <HAL_TIM_Base_Init+0xe>
  3741. return HAL_ERROR;
  3742. 8001568: 2001 movs r0, #1
  3743. 800156a: e7f6 b.n 800155a <HAL_TIM_Base_Init+0x46>
  3744. 0800156c <HAL_TIM_PWM_Init>:
  3745. {
  3746. 800156c: b570 push {r4, r5, r6, lr}
  3747. 800156e: 1e04 subs r4, r0, #0
  3748. if (htim == NULL)
  3749. 8001570: d026 beq.n 80015c0 <HAL_TIM_PWM_Init+0x54>
  3750. if (htim->State == HAL_TIM_STATE_RESET)
  3751. 8001572: 233d movs r3, #61 ; 0x3d
  3752. 8001574: 5cc3 ldrb r3, [r0, r3]
  3753. 8001576: 2b00 cmp r3, #0
  3754. 8001578: d01c beq.n 80015b4 <HAL_TIM_PWM_Init+0x48>
  3755. htim->State = HAL_TIM_STATE_BUSY;
  3756. 800157a: 253d movs r5, #61 ; 0x3d
  3757. 800157c: 2302 movs r3, #2
  3758. 800157e: 5563 strb r3, [r4, r5]
  3759. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  3760. 8001580: 0021 movs r1, r4
  3761. 8001582: c901 ldmia r1!, {r0}
  3762. 8001584: f7ff ff84 bl 8001490 <TIM_Base_SetConfig>
  3763. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  3764. 8001588: 2301 movs r3, #1
  3765. 800158a: 2246 movs r2, #70 ; 0x46
  3766. 800158c: 54a3 strb r3, [r4, r2]
  3767. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  3768. 800158e: 3a08 subs r2, #8
  3769. 8001590: 54a3 strb r3, [r4, r2]
  3770. 8001592: 3201 adds r2, #1
  3771. 8001594: 54a3 strb r3, [r4, r2]
  3772. 8001596: 3201 adds r2, #1
  3773. 8001598: 54a3 strb r3, [r4, r2]
  3774. 800159a: 3201 adds r2, #1
  3775. 800159c: 54a3 strb r3, [r4, r2]
  3776. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  3777. 800159e: 3201 adds r2, #1
  3778. 80015a0: 54a3 strb r3, [r4, r2]
  3779. 80015a2: 3201 adds r2, #1
  3780. 80015a4: 54a3 strb r3, [r4, r2]
  3781. 80015a6: 3201 adds r2, #1
  3782. 80015a8: 54a3 strb r3, [r4, r2]
  3783. 80015aa: 3201 adds r2, #1
  3784. 80015ac: 54a3 strb r3, [r4, r2]
  3785. htim->State = HAL_TIM_STATE_READY;
  3786. 80015ae: 5563 strb r3, [r4, r5]
  3787. return HAL_OK;
  3788. 80015b0: 2000 movs r0, #0
  3789. }
  3790. 80015b2: bd70 pop {r4, r5, r6, pc}
  3791. htim->Lock = HAL_UNLOCKED;
  3792. 80015b4: 333c adds r3, #60 ; 0x3c
  3793. 80015b6: 2200 movs r2, #0
  3794. 80015b8: 54c2 strb r2, [r0, r3]
  3795. HAL_TIM_PWM_MspInit(htim);
  3796. 80015ba: f7ff ff67 bl 800148c <HAL_TIM_PWM_MspInit>
  3797. 80015be: e7dc b.n 800157a <HAL_TIM_PWM_Init+0xe>
  3798. return HAL_ERROR;
  3799. 80015c0: 2001 movs r0, #1
  3800. 80015c2: e7f6 b.n 80015b2 <HAL_TIM_PWM_Init+0x46>
  3801. 080015c4 <TIM_OC2_SetConfig>:
  3802. {
  3803. 80015c4: b530 push {r4, r5, lr}
  3804. TIMx->CCER &= ~TIM_CCER_CC2E;
  3805. 80015c6: 6a03 ldr r3, [r0, #32]
  3806. 80015c8: 2210 movs r2, #16
  3807. 80015ca: 4393 bics r3, r2
  3808. 80015cc: 6203 str r3, [r0, #32]
  3809. tmpccer = TIMx->CCER;
  3810. 80015ce: 6a03 ldr r3, [r0, #32]
  3811. tmpcr2 = TIMx->CR2;
  3812. 80015d0: 6845 ldr r5, [r0, #4]
  3813. tmpccmrx = TIMx->CCMR1;
  3814. 80015d2: 6984 ldr r4, [r0, #24]
  3815. tmpccmrx &= ~TIM_CCMR1_CC2S;
  3816. 80015d4: 4a16 ldr r2, [pc, #88] ; (8001630 <TIM_OC2_SetConfig+0x6c>)
  3817. 80015d6: 4014 ands r4, r2
  3818. tmpccmrx |= (OC_Config->OCMode << 8U);
  3819. 80015d8: 680a ldr r2, [r1, #0]
  3820. 80015da: 0212 lsls r2, r2, #8
  3821. 80015dc: 4314 orrs r4, r2
  3822. tmpccer &= ~TIM_CCER_CC2P;
  3823. 80015de: 2220 movs r2, #32
  3824. 80015e0: 4393 bics r3, r2
  3825. tmpccer |= (OC_Config->OCPolarity << 4U);
  3826. 80015e2: 688a ldr r2, [r1, #8]
  3827. 80015e4: 0112 lsls r2, r2, #4
  3828. 80015e6: 4313 orrs r3, r2
  3829. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2))
  3830. 80015e8: 4a12 ldr r2, [pc, #72] ; (8001634 <TIM_OC2_SetConfig+0x70>)
  3831. 80015ea: 4290 cmp r0, r2
  3832. 80015ec: d016 beq.n 800161c <TIM_OC2_SetConfig+0x58>
  3833. if (IS_TIM_BREAK_INSTANCE(TIMx))
  3834. 80015ee: 4a11 ldr r2, [pc, #68] ; (8001634 <TIM_OC2_SetConfig+0x70>)
  3835. 80015f0: 4290 cmp r0, r2
  3836. 80015f2: d005 beq.n 8001600 <TIM_OC2_SetConfig+0x3c>
  3837. 80015f4: 4a10 ldr r2, [pc, #64] ; (8001638 <TIM_OC2_SetConfig+0x74>)
  3838. 80015f6: 4290 cmp r0, r2
  3839. 80015f8: d002 beq.n 8001600 <TIM_OC2_SetConfig+0x3c>
  3840. 80015fa: 4a10 ldr r2, [pc, #64] ; (800163c <TIM_OC2_SetConfig+0x78>)
  3841. 80015fc: 4290 cmp r0, r2
  3842. 80015fe: d107 bne.n 8001610 <TIM_OC2_SetConfig+0x4c>
  3843. tmpcr2 &= ~TIM_CR2_OIS2N;
  3844. 8001600: 4a0f ldr r2, [pc, #60] ; (8001640 <TIM_OC2_SetConfig+0x7c>)
  3845. 8001602: 402a ands r2, r5
  3846. tmpcr2 |= (OC_Config->OCIdleState << 2U);
  3847. 8001604: 694d ldr r5, [r1, #20]
  3848. 8001606: 00ad lsls r5, r5, #2
  3849. 8001608: 4315 orrs r5, r2
  3850. tmpcr2 |= (OC_Config->OCNIdleState << 2U);
  3851. 800160a: 698a ldr r2, [r1, #24]
  3852. 800160c: 0092 lsls r2, r2, #2
  3853. 800160e: 4315 orrs r5, r2
  3854. TIMx->CR2 = tmpcr2;
  3855. 8001610: 6045 str r5, [r0, #4]
  3856. TIMx->CCMR1 = tmpccmrx;
  3857. 8001612: 6184 str r4, [r0, #24]
  3858. TIMx->CCR2 = OC_Config->Pulse;
  3859. 8001614: 684a ldr r2, [r1, #4]
  3860. 8001616: 6382 str r2, [r0, #56] ; 0x38
  3861. TIMx->CCER = tmpccer;
  3862. 8001618: 6203 str r3, [r0, #32]
  3863. }
  3864. 800161a: bd30 pop {r4, r5, pc}
  3865. tmpccer &= ~TIM_CCER_CC2NP;
  3866. 800161c: 2280 movs r2, #128 ; 0x80
  3867. 800161e: 4393 bics r3, r2
  3868. 8001620: 001a movs r2, r3
  3869. tmpccer |= (OC_Config->OCNPolarity << 4U);
  3870. 8001622: 68cb ldr r3, [r1, #12]
  3871. 8001624: 011b lsls r3, r3, #4
  3872. 8001626: 4313 orrs r3, r2
  3873. tmpccer &= ~TIM_CCER_CC2NE;
  3874. 8001628: 2240 movs r2, #64 ; 0x40
  3875. 800162a: 4393 bics r3, r2
  3876. 800162c: e7df b.n 80015ee <TIM_OC2_SetConfig+0x2a>
  3877. 800162e: 46c0 nop ; (mov r8, r8)
  3878. 8001630: ffff8cff .word 0xffff8cff
  3879. 8001634: 40012c00 .word 0x40012c00
  3880. 8001638: 40014400 .word 0x40014400
  3881. 800163c: 40014800 .word 0x40014800
  3882. 8001640: fffff3ff .word 0xfffff3ff
  3883. 08001644 <HAL_TIM_PWM_ConfigChannel>:
  3884. {
  3885. 8001644: b570 push {r4, r5, r6, lr}
  3886. 8001646: 0004 movs r4, r0
  3887. 8001648: 000d movs r5, r1
  3888. __HAL_LOCK(htim);
  3889. 800164a: 233c movs r3, #60 ; 0x3c
  3890. 800164c: 5cc3 ldrb r3, [r0, r3]
  3891. 800164e: 2b01 cmp r3, #1
  3892. 8001650: d100 bne.n 8001654 <HAL_TIM_PWM_ConfigChannel+0x10>
  3893. 8001652: e06a b.n 800172a <HAL_TIM_PWM_ConfigChannel+0xe6>
  3894. 8001654: 233c movs r3, #60 ; 0x3c
  3895. 8001656: 2101 movs r1, #1
  3896. 8001658: 54c1 strb r1, [r0, r3]
  3897. switch (Channel)
  3898. 800165a: 2a08 cmp r2, #8
  3899. 800165c: d050 beq.n 8001700 <HAL_TIM_PWM_ConfigChannel+0xbc>
  3900. 800165e: d81c bhi.n 800169a <HAL_TIM_PWM_ConfigChannel+0x56>
  3901. 8001660: 2a00 cmp r2, #0
  3902. 8001662: d038 beq.n 80016d6 <HAL_TIM_PWM_ConfigChannel+0x92>
  3903. 8001664: 2a04 cmp r2, #4
  3904. 8001666: d116 bne.n 8001696 <HAL_TIM_PWM_ConfigChannel+0x52>
  3905. TIM_OC2_SetConfig(htim->Instance, sConfig);
  3906. 8001668: 0029 movs r1, r5
  3907. 800166a: 6800 ldr r0, [r0, #0]
  3908. 800166c: f7ff ffaa bl 80015c4 <TIM_OC2_SetConfig>
  3909. htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE;
  3910. 8001670: 6822 ldr r2, [r4, #0]
  3911. 8001672: 6991 ldr r1, [r2, #24]
  3912. 8001674: 2380 movs r3, #128 ; 0x80
  3913. 8001676: 011b lsls r3, r3, #4
  3914. 8001678: 430b orrs r3, r1
  3915. 800167a: 6193 str r3, [r2, #24]
  3916. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE;
  3917. 800167c: 6822 ldr r2, [r4, #0]
  3918. 800167e: 6993 ldr r3, [r2, #24]
  3919. 8001680: 492b ldr r1, [pc, #172] ; (8001730 <HAL_TIM_PWM_ConfigChannel+0xec>)
  3920. 8001682: 400b ands r3, r1
  3921. 8001684: 6193 str r3, [r2, #24]
  3922. htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U;
  3923. 8001686: 6821 ldr r1, [r4, #0]
  3924. 8001688: 698b ldr r3, [r1, #24]
  3925. 800168a: 692a ldr r2, [r5, #16]
  3926. 800168c: 0212 lsls r2, r2, #8
  3927. 800168e: 4313 orrs r3, r2
  3928. 8001690: 618b str r3, [r1, #24]
  3929. HAL_StatusTypeDef status = HAL_OK;
  3930. 8001692: 2000 movs r0, #0
  3931. break;
  3932. 8001694: e01b b.n 80016ce <HAL_TIM_PWM_ConfigChannel+0x8a>
  3933. switch (Channel)
  3934. 8001696: 0008 movs r0, r1
  3935. 8001698: e019 b.n 80016ce <HAL_TIM_PWM_ConfigChannel+0x8a>
  3936. 800169a: 2a0c cmp r2, #12
  3937. 800169c: d116 bne.n 80016cc <HAL_TIM_PWM_ConfigChannel+0x88>
  3938. TIM_OC4_SetConfig(htim->Instance, sConfig);
  3939. 800169e: 0029 movs r1, r5
  3940. 80016a0: 6800 ldr r0, [r0, #0]
  3941. 80016a2: f7ff fe91 bl 80013c8 <TIM_OC4_SetConfig>
  3942. htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE;
  3943. 80016a6: 6822 ldr r2, [r4, #0]
  3944. 80016a8: 69d1 ldr r1, [r2, #28]
  3945. 80016aa: 2380 movs r3, #128 ; 0x80
  3946. 80016ac: 011b lsls r3, r3, #4
  3947. 80016ae: 430b orrs r3, r1
  3948. 80016b0: 61d3 str r3, [r2, #28]
  3949. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE;
  3950. 80016b2: 6822 ldr r2, [r4, #0]
  3951. 80016b4: 69d3 ldr r3, [r2, #28]
  3952. 80016b6: 491e ldr r1, [pc, #120] ; (8001730 <HAL_TIM_PWM_ConfigChannel+0xec>)
  3953. 80016b8: 400b ands r3, r1
  3954. 80016ba: 61d3 str r3, [r2, #28]
  3955. htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U;
  3956. 80016bc: 6821 ldr r1, [r4, #0]
  3957. 80016be: 69cb ldr r3, [r1, #28]
  3958. 80016c0: 692a ldr r2, [r5, #16]
  3959. 80016c2: 0212 lsls r2, r2, #8
  3960. 80016c4: 4313 orrs r3, r2
  3961. 80016c6: 61cb str r3, [r1, #28]
  3962. HAL_StatusTypeDef status = HAL_OK;
  3963. 80016c8: 2000 movs r0, #0
  3964. break;
  3965. 80016ca: e000 b.n 80016ce <HAL_TIM_PWM_ConfigChannel+0x8a>
  3966. switch (Channel)
  3967. 80016cc: 2001 movs r0, #1
  3968. __HAL_UNLOCK(htim);
  3969. 80016ce: 233c movs r3, #60 ; 0x3c
  3970. 80016d0: 2200 movs r2, #0
  3971. 80016d2: 54e2 strb r2, [r4, r3]
  3972. }
  3973. 80016d4: bd70 pop {r4, r5, r6, pc}
  3974. TIM_OC1_SetConfig(htim->Instance, sConfig);
  3975. 80016d6: 0029 movs r1, r5
  3976. 80016d8: 6800 ldr r0, [r0, #0]
  3977. 80016da: f7ff fdf5 bl 80012c8 <TIM_OC1_SetConfig>
  3978. htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE;
  3979. 80016de: 6822 ldr r2, [r4, #0]
  3980. 80016e0: 6993 ldr r3, [r2, #24]
  3981. 80016e2: 2108 movs r1, #8
  3982. 80016e4: 430b orrs r3, r1
  3983. 80016e6: 6193 str r3, [r2, #24]
  3984. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE;
  3985. 80016e8: 6822 ldr r2, [r4, #0]
  3986. 80016ea: 6993 ldr r3, [r2, #24]
  3987. 80016ec: 3904 subs r1, #4
  3988. 80016ee: 438b bics r3, r1
  3989. 80016f0: 6193 str r3, [r2, #24]
  3990. htim->Instance->CCMR1 |= sConfig->OCFastMode;
  3991. 80016f2: 6822 ldr r2, [r4, #0]
  3992. 80016f4: 6993 ldr r3, [r2, #24]
  3993. 80016f6: 6929 ldr r1, [r5, #16]
  3994. 80016f8: 430b orrs r3, r1
  3995. 80016fa: 6193 str r3, [r2, #24]
  3996. HAL_StatusTypeDef status = HAL_OK;
  3997. 80016fc: 2000 movs r0, #0
  3998. break;
  3999. 80016fe: e7e6 b.n 80016ce <HAL_TIM_PWM_ConfigChannel+0x8a>
  4000. TIM_OC3_SetConfig(htim->Instance, sConfig);
  4001. 8001700: 0029 movs r1, r5
  4002. 8001702: 6800 ldr r0, [r0, #0]
  4003. 8001704: f7ff fe1c bl 8001340 <TIM_OC3_SetConfig>
  4004. htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE;
  4005. 8001708: 6822 ldr r2, [r4, #0]
  4006. 800170a: 69d3 ldr r3, [r2, #28]
  4007. 800170c: 2108 movs r1, #8
  4008. 800170e: 430b orrs r3, r1
  4009. 8001710: 61d3 str r3, [r2, #28]
  4010. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE;
  4011. 8001712: 6822 ldr r2, [r4, #0]
  4012. 8001714: 69d3 ldr r3, [r2, #28]
  4013. 8001716: 3904 subs r1, #4
  4014. 8001718: 438b bics r3, r1
  4015. 800171a: 61d3 str r3, [r2, #28]
  4016. htim->Instance->CCMR2 |= sConfig->OCFastMode;
  4017. 800171c: 6822 ldr r2, [r4, #0]
  4018. 800171e: 69d3 ldr r3, [r2, #28]
  4019. 8001720: 6929 ldr r1, [r5, #16]
  4020. 8001722: 430b orrs r3, r1
  4021. 8001724: 61d3 str r3, [r2, #28]
  4022. HAL_StatusTypeDef status = HAL_OK;
  4023. 8001726: 2000 movs r0, #0
  4024. break;
  4025. 8001728: e7d1 b.n 80016ce <HAL_TIM_PWM_ConfigChannel+0x8a>
  4026. __HAL_LOCK(htim);
  4027. 800172a: 2002 movs r0, #2
  4028. 800172c: e7d2 b.n 80016d4 <HAL_TIM_PWM_ConfigChannel+0x90>
  4029. 800172e: 46c0 nop ; (mov r8, r8)
  4030. 8001730: fffffbff .word 0xfffffbff
  4031. 08001734 <TIM_ETR_SetConfig>:
  4032. * This parameter must be a value between 0x00 and 0x0F
  4033. * @retval None
  4034. */
  4035. void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
  4036. uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
  4037. {
  4038. 8001734: b530 push {r4, r5, lr}
  4039. uint32_t tmpsmcr;
  4040. tmpsmcr = TIMx->SMCR;
  4041. 8001736: 6884 ldr r4, [r0, #8]
  4042. /* Reset the ETR Bits */
  4043. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  4044. 8001738: 4d03 ldr r5, [pc, #12] ; (8001748 <TIM_ETR_SetConfig+0x14>)
  4045. 800173a: 402c ands r4, r5
  4046. /* Set the Prescaler, the Filter value and the Polarity */
  4047. tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
  4048. 800173c: 021b lsls r3, r3, #8
  4049. 800173e: 4313 orrs r3, r2
  4050. 8001740: 430b orrs r3, r1
  4051. 8001742: 4323 orrs r3, r4
  4052. /* Write to TIMx SMCR */
  4053. TIMx->SMCR = tmpsmcr;
  4054. 8001744: 6083 str r3, [r0, #8]
  4055. }
  4056. 8001746: bd30 pop {r4, r5, pc}
  4057. 8001748: ffff00ff .word 0xffff00ff
  4058. 0800174c <HAL_TIM_ConfigClockSource>:
  4059. {
  4060. 800174c: b510 push {r4, lr}
  4061. 800174e: 0004 movs r4, r0
  4062. __HAL_LOCK(htim);
  4063. 8001750: 233c movs r3, #60 ; 0x3c
  4064. 8001752: 5cc3 ldrb r3, [r0, r3]
  4065. 8001754: 2b01 cmp r3, #1
  4066. 8001756: d100 bne.n 800175a <HAL_TIM_ConfigClockSource+0xe>
  4067. 8001758: e078 b.n 800184c <HAL_TIM_ConfigClockSource+0x100>
  4068. 800175a: 233c movs r3, #60 ; 0x3c
  4069. 800175c: 2201 movs r2, #1
  4070. 800175e: 54c2 strb r2, [r0, r3]
  4071. htim->State = HAL_TIM_STATE_BUSY;
  4072. 8001760: 3301 adds r3, #1
  4073. 8001762: 3201 adds r2, #1
  4074. 8001764: 54c2 strb r2, [r0, r3]
  4075. tmpsmcr = htim->Instance->SMCR;
  4076. 8001766: 6802 ldr r2, [r0, #0]
  4077. 8001768: 6893 ldr r3, [r2, #8]
  4078. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  4079. 800176a: 4839 ldr r0, [pc, #228] ; (8001850 <HAL_TIM_ConfigClockSource+0x104>)
  4080. 800176c: 4003 ands r3, r0
  4081. htim->Instance->SMCR = tmpsmcr;
  4082. 800176e: 6093 str r3, [r2, #8]
  4083. switch (sClockSourceConfig->ClockSource)
  4084. 8001770: 680b ldr r3, [r1, #0]
  4085. 8001772: 2b60 cmp r3, #96 ; 0x60
  4086. 8001774: d050 beq.n 8001818 <HAL_TIM_ConfigClockSource+0xcc>
  4087. 8001776: d82a bhi.n 80017ce <HAL_TIM_ConfigClockSource+0x82>
  4088. 8001778: 2b40 cmp r3, #64 ; 0x40
  4089. 800177a: d058 beq.n 800182e <HAL_TIM_ConfigClockSource+0xe2>
  4090. 800177c: d90c bls.n 8001798 <HAL_TIM_ConfigClockSource+0x4c>
  4091. 800177e: 2b50 cmp r3, #80 ; 0x50
  4092. 8001780: d123 bne.n 80017ca <HAL_TIM_ConfigClockSource+0x7e>
  4093. TIM_TI1_ConfigInputStage(htim->Instance,
  4094. 8001782: 68ca ldr r2, [r1, #12]
  4095. 8001784: 6849 ldr r1, [r1, #4]
  4096. 8001786: 6820 ldr r0, [r4, #0]
  4097. 8001788: f7ff fe52 bl 8001430 <TIM_TI1_ConfigInputStage>
  4098. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
  4099. 800178c: 2150 movs r1, #80 ; 0x50
  4100. 800178e: 6820 ldr r0, [r4, #0]
  4101. 8001790: f7ff fe74 bl 800147c <TIM_ITRx_SetConfig>
  4102. HAL_StatusTypeDef status = HAL_OK;
  4103. 8001794: 2000 movs r0, #0
  4104. break;
  4105. 8001796: e005 b.n 80017a4 <HAL_TIM_ConfigClockSource+0x58>
  4106. switch (sClockSourceConfig->ClockSource)
  4107. 8001798: 2b20 cmp r3, #32
  4108. 800179a: d00e beq.n 80017ba <HAL_TIM_ConfigClockSource+0x6e>
  4109. 800179c: d909 bls.n 80017b2 <HAL_TIM_ConfigClockSource+0x66>
  4110. 800179e: 2b30 cmp r3, #48 ; 0x30
  4111. 80017a0: d00b beq.n 80017ba <HAL_TIM_ConfigClockSource+0x6e>
  4112. status = HAL_ERROR;
  4113. 80017a2: 2001 movs r0, #1
  4114. htim->State = HAL_TIM_STATE_READY;
  4115. 80017a4: 233d movs r3, #61 ; 0x3d
  4116. 80017a6: 2201 movs r2, #1
  4117. 80017a8: 54e2 strb r2, [r4, r3]
  4118. __HAL_UNLOCK(htim);
  4119. 80017aa: 3b01 subs r3, #1
  4120. 80017ac: 2200 movs r2, #0
  4121. 80017ae: 54e2 strb r2, [r4, r3]
  4122. }
  4123. 80017b0: bd10 pop {r4, pc}
  4124. switch (sClockSourceConfig->ClockSource)
  4125. 80017b2: 2b00 cmp r3, #0
  4126. 80017b4: d001 beq.n 80017ba <HAL_TIM_ConfigClockSource+0x6e>
  4127. 80017b6: 2b10 cmp r3, #16
  4128. 80017b8: d105 bne.n 80017c6 <HAL_TIM_ConfigClockSource+0x7a>
  4129. TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
  4130. 80017ba: 0019 movs r1, r3
  4131. 80017bc: 6820 ldr r0, [r4, #0]
  4132. 80017be: f7ff fe5d bl 800147c <TIM_ITRx_SetConfig>
  4133. HAL_StatusTypeDef status = HAL_OK;
  4134. 80017c2: 2000 movs r0, #0
  4135. break;
  4136. 80017c4: e7ee b.n 80017a4 <HAL_TIM_ConfigClockSource+0x58>
  4137. status = HAL_ERROR;
  4138. 80017c6: 2001 movs r0, #1
  4139. 80017c8: e7ec b.n 80017a4 <HAL_TIM_ConfigClockSource+0x58>
  4140. 80017ca: 2001 movs r0, #1
  4141. 80017cc: e7ea b.n 80017a4 <HAL_TIM_ConfigClockSource+0x58>
  4142. switch (sClockSourceConfig->ClockSource)
  4143. 80017ce: 2280 movs r2, #128 ; 0x80
  4144. 80017d0: 0152 lsls r2, r2, #5
  4145. 80017d2: 4293 cmp r3, r2
  4146. 80017d4: d036 beq.n 8001844 <HAL_TIM_ConfigClockSource+0xf8>
  4147. 80017d6: 2280 movs r2, #128 ; 0x80
  4148. 80017d8: 0192 lsls r2, r2, #6
  4149. 80017da: 4293 cmp r3, r2
  4150. 80017dc: d10d bne.n 80017fa <HAL_TIM_ConfigClockSource+0xae>
  4151. TIM_ETR_SetConfig(htim->Instance,
  4152. 80017de: 68cb ldr r3, [r1, #12]
  4153. 80017e0: 684a ldr r2, [r1, #4]
  4154. 80017e2: 6889 ldr r1, [r1, #8]
  4155. 80017e4: 6820 ldr r0, [r4, #0]
  4156. 80017e6: f7ff ffa5 bl 8001734 <TIM_ETR_SetConfig>
  4157. htim->Instance->SMCR |= TIM_SMCR_ECE;
  4158. 80017ea: 6822 ldr r2, [r4, #0]
  4159. 80017ec: 6891 ldr r1, [r2, #8]
  4160. 80017ee: 2380 movs r3, #128 ; 0x80
  4161. 80017f0: 01db lsls r3, r3, #7
  4162. 80017f2: 430b orrs r3, r1
  4163. 80017f4: 6093 str r3, [r2, #8]
  4164. HAL_StatusTypeDef status = HAL_OK;
  4165. 80017f6: 2000 movs r0, #0
  4166. break;
  4167. 80017f8: e7d4 b.n 80017a4 <HAL_TIM_ConfigClockSource+0x58>
  4168. switch (sClockSourceConfig->ClockSource)
  4169. 80017fa: 2b70 cmp r3, #112 ; 0x70
  4170. 80017fc: d124 bne.n 8001848 <HAL_TIM_ConfigClockSource+0xfc>
  4171. TIM_ETR_SetConfig(htim->Instance,
  4172. 80017fe: 68cb ldr r3, [r1, #12]
  4173. 8001800: 684a ldr r2, [r1, #4]
  4174. 8001802: 6889 ldr r1, [r1, #8]
  4175. 8001804: 6820 ldr r0, [r4, #0]
  4176. 8001806: f7ff ff95 bl 8001734 <TIM_ETR_SetConfig>
  4177. tmpsmcr = htim->Instance->SMCR;
  4178. 800180a: 6822 ldr r2, [r4, #0]
  4179. 800180c: 6893 ldr r3, [r2, #8]
  4180. tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
  4181. 800180e: 2177 movs r1, #119 ; 0x77
  4182. 8001810: 430b orrs r3, r1
  4183. htim->Instance->SMCR = tmpsmcr;
  4184. 8001812: 6093 str r3, [r2, #8]
  4185. HAL_StatusTypeDef status = HAL_OK;
  4186. 8001814: 2000 movs r0, #0
  4187. break;
  4188. 8001816: e7c5 b.n 80017a4 <HAL_TIM_ConfigClockSource+0x58>
  4189. TIM_TI2_ConfigInputStage(htim->Instance,
  4190. 8001818: 68ca ldr r2, [r1, #12]
  4191. 800181a: 6849 ldr r1, [r1, #4]
  4192. 800181c: 6820 ldr r0, [r4, #0]
  4193. 800181e: f7ff fe19 bl 8001454 <TIM_TI2_ConfigInputStage>
  4194. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
  4195. 8001822: 2160 movs r1, #96 ; 0x60
  4196. 8001824: 6820 ldr r0, [r4, #0]
  4197. 8001826: f7ff fe29 bl 800147c <TIM_ITRx_SetConfig>
  4198. HAL_StatusTypeDef status = HAL_OK;
  4199. 800182a: 2000 movs r0, #0
  4200. break;
  4201. 800182c: e7ba b.n 80017a4 <HAL_TIM_ConfigClockSource+0x58>
  4202. TIM_TI1_ConfigInputStage(htim->Instance,
  4203. 800182e: 68ca ldr r2, [r1, #12]
  4204. 8001830: 6849 ldr r1, [r1, #4]
  4205. 8001832: 6820 ldr r0, [r4, #0]
  4206. 8001834: f7ff fdfc bl 8001430 <TIM_TI1_ConfigInputStage>
  4207. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
  4208. 8001838: 2140 movs r1, #64 ; 0x40
  4209. 800183a: 6820 ldr r0, [r4, #0]
  4210. 800183c: f7ff fe1e bl 800147c <TIM_ITRx_SetConfig>
  4211. HAL_StatusTypeDef status = HAL_OK;
  4212. 8001840: 2000 movs r0, #0
  4213. break;
  4214. 8001842: e7af b.n 80017a4 <HAL_TIM_ConfigClockSource+0x58>
  4215. switch (sClockSourceConfig->ClockSource)
  4216. 8001844: 2000 movs r0, #0
  4217. 8001846: e7ad b.n 80017a4 <HAL_TIM_ConfigClockSource+0x58>
  4218. status = HAL_ERROR;
  4219. 8001848: 2001 movs r0, #1
  4220. 800184a: e7ab b.n 80017a4 <HAL_TIM_ConfigClockSource+0x58>
  4221. __HAL_LOCK(htim);
  4222. 800184c: 2002 movs r0, #2
  4223. 800184e: e7af b.n 80017b0 <HAL_TIM_ConfigClockSource+0x64>
  4224. 8001850: ffff0088 .word 0xffff0088
  4225. 08001854 <TIM_CCxChannelCmd>:
  4226. * @param ChannelState specifies the TIM Channel CCxE bit new state.
  4227. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
  4228. * @retval None
  4229. */
  4230. void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
  4231. {
  4232. 8001854: b510 push {r4, lr}
  4233. /* Check the parameters */
  4234. assert_param(IS_TIM_CC1_INSTANCE(TIMx));
  4235. assert_param(IS_TIM_CHANNELS(Channel));
  4236. tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */
  4237. 8001856: 231f movs r3, #31
  4238. 8001858: 4019 ands r1, r3
  4239. 800185a: 2401 movs r4, #1
  4240. 800185c: 408c lsls r4, r1
  4241. /* Reset the CCxE Bit */
  4242. TIMx->CCER &= ~tmp;
  4243. 800185e: 6a03 ldr r3, [r0, #32]
  4244. 8001860: 43a3 bics r3, r4
  4245. 8001862: 6203 str r3, [r0, #32]
  4246. /* Set or reset the CCxE Bit */
  4247. TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */
  4248. 8001864: 6a03 ldr r3, [r0, #32]
  4249. 8001866: 408a lsls r2, r1
  4250. 8001868: 4313 orrs r3, r2
  4251. 800186a: 6203 str r3, [r0, #32]
  4252. }
  4253. 800186c: bd10 pop {r4, pc}
  4254. ...
  4255. 08001870 <HAL_TIM_PWM_Start>:
  4256. {
  4257. 8001870: b510 push {r4, lr}
  4258. 8001872: 0004 movs r4, r0
  4259. if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY)
  4260. 8001874: 2900 cmp r1, #0
  4261. 8001876: d12c bne.n 80018d2 <HAL_TIM_PWM_Start+0x62>
  4262. 8001878: 233e movs r3, #62 ; 0x3e
  4263. 800187a: 5cc3 ldrb r3, [r0, r3]
  4264. 800187c: 3b01 subs r3, #1
  4265. 800187e: 1e5a subs r2, r3, #1
  4266. 8001880: 4193 sbcs r3, r2
  4267. 8001882: b2db uxtb r3, r3
  4268. 8001884: 2b00 cmp r3, #0
  4269. 8001886: d158 bne.n 800193a <HAL_TIM_PWM_Start+0xca>
  4270. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  4271. 8001888: 2900 cmp r1, #0
  4272. 800188a: d13b bne.n 8001904 <HAL_TIM_PWM_Start+0x94>
  4273. 800188c: 333e adds r3, #62 ; 0x3e
  4274. 800188e: 2202 movs r2, #2
  4275. 8001890: 54e2 strb r2, [r4, r3]
  4276. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  4277. 8001892: 2201 movs r2, #1
  4278. 8001894: 6820 ldr r0, [r4, #0]
  4279. 8001896: f7ff ffdd bl 8001854 <TIM_CCxChannelCmd>
  4280. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  4281. 800189a: 6823 ldr r3, [r4, #0]
  4282. 800189c: 4a29 ldr r2, [pc, #164] ; (8001944 <HAL_TIM_PWM_Start+0xd4>)
  4283. 800189e: 4293 cmp r3, r2
  4284. 80018a0: d005 beq.n 80018ae <HAL_TIM_PWM_Start+0x3e>
  4285. 80018a2: 4a29 ldr r2, [pc, #164] ; (8001948 <HAL_TIM_PWM_Start+0xd8>)
  4286. 80018a4: 4293 cmp r3, r2
  4287. 80018a6: d002 beq.n 80018ae <HAL_TIM_PWM_Start+0x3e>
  4288. 80018a8: 4a28 ldr r2, [pc, #160] ; (800194c <HAL_TIM_PWM_Start+0xdc>)
  4289. 80018aa: 4293 cmp r3, r2
  4290. 80018ac: d104 bne.n 80018b8 <HAL_TIM_PWM_Start+0x48>
  4291. __HAL_TIM_MOE_ENABLE(htim);
  4292. 80018ae: 6c59 ldr r1, [r3, #68] ; 0x44
  4293. 80018b0: 2280 movs r2, #128 ; 0x80
  4294. 80018b2: 0212 lsls r2, r2, #8
  4295. 80018b4: 430a orrs r2, r1
  4296. 80018b6: 645a str r2, [r3, #68] ; 0x44
  4297. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  4298. 80018b8: 6823 ldr r3, [r4, #0]
  4299. 80018ba: 4a22 ldr r2, [pc, #136] ; (8001944 <HAL_TIM_PWM_Start+0xd4>)
  4300. 80018bc: 4293 cmp r3, r2
  4301. 80018be: d031 beq.n 8001924 <HAL_TIM_PWM_Start+0xb4>
  4302. 80018c0: 4a23 ldr r2, [pc, #140] ; (8001950 <HAL_TIM_PWM_Start+0xe0>)
  4303. 80018c2: 4293 cmp r3, r2
  4304. 80018c4: d02e beq.n 8001924 <HAL_TIM_PWM_Start+0xb4>
  4305. __HAL_TIM_ENABLE(htim);
  4306. 80018c6: 681a ldr r2, [r3, #0]
  4307. 80018c8: 2101 movs r1, #1
  4308. 80018ca: 430a orrs r2, r1
  4309. 80018cc: 601a str r2, [r3, #0]
  4310. return HAL_OK;
  4311. 80018ce: 2000 movs r0, #0
  4312. 80018d0: e034 b.n 800193c <HAL_TIM_PWM_Start+0xcc>
  4313. if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY)
  4314. 80018d2: 2904 cmp r1, #4
  4315. 80018d4: d008 beq.n 80018e8 <HAL_TIM_PWM_Start+0x78>
  4316. 80018d6: 2908 cmp r1, #8
  4317. 80018d8: d00d beq.n 80018f6 <HAL_TIM_PWM_Start+0x86>
  4318. 80018da: 2341 movs r3, #65 ; 0x41
  4319. 80018dc: 5cc3 ldrb r3, [r0, r3]
  4320. 80018de: 3b01 subs r3, #1
  4321. 80018e0: 1e5a subs r2, r3, #1
  4322. 80018e2: 4193 sbcs r3, r2
  4323. 80018e4: b2db uxtb r3, r3
  4324. 80018e6: e7cd b.n 8001884 <HAL_TIM_PWM_Start+0x14>
  4325. 80018e8: 233f movs r3, #63 ; 0x3f
  4326. 80018ea: 5cc3 ldrb r3, [r0, r3]
  4327. 80018ec: 3b01 subs r3, #1
  4328. 80018ee: 1e5a subs r2, r3, #1
  4329. 80018f0: 4193 sbcs r3, r2
  4330. 80018f2: b2db uxtb r3, r3
  4331. 80018f4: e7c6 b.n 8001884 <HAL_TIM_PWM_Start+0x14>
  4332. 80018f6: 2340 movs r3, #64 ; 0x40
  4333. 80018f8: 5cc3 ldrb r3, [r0, r3]
  4334. 80018fa: 3b01 subs r3, #1
  4335. 80018fc: 1e5a subs r2, r3, #1
  4336. 80018fe: 4193 sbcs r3, r2
  4337. 8001900: b2db uxtb r3, r3
  4338. 8001902: e7bf b.n 8001884 <HAL_TIM_PWM_Start+0x14>
  4339. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  4340. 8001904: 2904 cmp r1, #4
  4341. 8001906: d005 beq.n 8001914 <HAL_TIM_PWM_Start+0xa4>
  4342. 8001908: 2908 cmp r1, #8
  4343. 800190a: d007 beq.n 800191c <HAL_TIM_PWM_Start+0xac>
  4344. 800190c: 2341 movs r3, #65 ; 0x41
  4345. 800190e: 2202 movs r2, #2
  4346. 8001910: 54e2 strb r2, [r4, r3]
  4347. 8001912: e7be b.n 8001892 <HAL_TIM_PWM_Start+0x22>
  4348. 8001914: 233f movs r3, #63 ; 0x3f
  4349. 8001916: 2202 movs r2, #2
  4350. 8001918: 54e2 strb r2, [r4, r3]
  4351. 800191a: e7ba b.n 8001892 <HAL_TIM_PWM_Start+0x22>
  4352. 800191c: 2340 movs r3, #64 ; 0x40
  4353. 800191e: 2202 movs r2, #2
  4354. 8001920: 54e2 strb r2, [r4, r3]
  4355. 8001922: e7b6 b.n 8001892 <HAL_TIM_PWM_Start+0x22>
  4356. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  4357. 8001924: 6899 ldr r1, [r3, #8]
  4358. 8001926: 2207 movs r2, #7
  4359. 8001928: 400a ands r2, r1
  4360. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  4361. 800192a: 2a06 cmp r2, #6
  4362. 800192c: d007 beq.n 800193e <HAL_TIM_PWM_Start+0xce>
  4363. __HAL_TIM_ENABLE(htim);
  4364. 800192e: 681a ldr r2, [r3, #0]
  4365. 8001930: 2101 movs r1, #1
  4366. 8001932: 430a orrs r2, r1
  4367. 8001934: 601a str r2, [r3, #0]
  4368. return HAL_OK;
  4369. 8001936: 2000 movs r0, #0
  4370. 8001938: e000 b.n 800193c <HAL_TIM_PWM_Start+0xcc>
  4371. return HAL_ERROR;
  4372. 800193a: 2001 movs r0, #1
  4373. }
  4374. 800193c: bd10 pop {r4, pc}
  4375. return HAL_OK;
  4376. 800193e: 2000 movs r0, #0
  4377. 8001940: e7fc b.n 800193c <HAL_TIM_PWM_Start+0xcc>
  4378. 8001942: 46c0 nop ; (mov r8, r8)
  4379. 8001944: 40012c00 .word 0x40012c00
  4380. 8001948: 40014400 .word 0x40014400
  4381. 800194c: 40014800 .word 0x40014800
  4382. 8001950: 40000400 .word 0x40000400
  4383. 08001954 <HAL_TIMEx_MasterConfigSynchronization>:
  4384. * mode.
  4385. * @retval HAL status
  4386. */
  4387. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  4388. TIM_MasterConfigTypeDef *sMasterConfig)
  4389. {
  4390. 8001954: b530 push {r4, r5, lr}
  4391. assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance));
  4392. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  4393. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  4394. /* Check input state */
  4395. __HAL_LOCK(htim);
  4396. 8001956: 233c movs r3, #60 ; 0x3c
  4397. 8001958: 5cc3 ldrb r3, [r0, r3]
  4398. 800195a: 2b01 cmp r3, #1
  4399. 800195c: d021 beq.n 80019a2 <HAL_TIMEx_MasterConfigSynchronization+0x4e>
  4400. 800195e: 233c movs r3, #60 ; 0x3c
  4401. 8001960: 2201 movs r2, #1
  4402. 8001962: 54c2 strb r2, [r0, r3]
  4403. /* Change the handler state */
  4404. htim->State = HAL_TIM_STATE_BUSY;
  4405. 8001964: 3301 adds r3, #1
  4406. 8001966: 3201 adds r2, #1
  4407. 8001968: 54c2 strb r2, [r0, r3]
  4408. /* Get the TIMx CR2 register value */
  4409. tmpcr2 = htim->Instance->CR2;
  4410. 800196a: 6803 ldr r3, [r0, #0]
  4411. 800196c: 685a ldr r2, [r3, #4]
  4412. /* Get the TIMx SMCR register value */
  4413. tmpsmcr = htim->Instance->SMCR;
  4414. 800196e: 689c ldr r4, [r3, #8]
  4415. /* Reset the MMS Bits */
  4416. tmpcr2 &= ~TIM_CR2_MMS;
  4417. 8001970: 2570 movs r5, #112 ; 0x70
  4418. 8001972: 43aa bics r2, r5
  4419. /* Select the TRGO source */
  4420. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  4421. 8001974: 680d ldr r5, [r1, #0]
  4422. 8001976: 432a orrs r2, r5
  4423. /* Update TIMx CR2 */
  4424. htim->Instance->CR2 = tmpcr2;
  4425. 8001978: 605a str r2, [r3, #4]
  4426. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  4427. 800197a: 6803 ldr r3, [r0, #0]
  4428. 800197c: 4a0a ldr r2, [pc, #40] ; (80019a8 <HAL_TIMEx_MasterConfigSynchronization+0x54>)
  4429. 800197e: 4293 cmp r3, r2
  4430. 8001980: d002 beq.n 8001988 <HAL_TIMEx_MasterConfigSynchronization+0x34>
  4431. 8001982: 4a0a ldr r2, [pc, #40] ; (80019ac <HAL_TIMEx_MasterConfigSynchronization+0x58>)
  4432. 8001984: 4293 cmp r3, r2
  4433. 8001986: d104 bne.n 8001992 <HAL_TIMEx_MasterConfigSynchronization+0x3e>
  4434. {
  4435. /* Reset the MSM Bit */
  4436. tmpsmcr &= ~TIM_SMCR_MSM;
  4437. 8001988: 2280 movs r2, #128 ; 0x80
  4438. 800198a: 4394 bics r4, r2
  4439. /* Set master mode */
  4440. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  4441. 800198c: 684a ldr r2, [r1, #4]
  4442. 800198e: 4314 orrs r4, r2
  4443. /* Update TIMx SMCR */
  4444. htim->Instance->SMCR = tmpsmcr;
  4445. 8001990: 609c str r4, [r3, #8]
  4446. }
  4447. /* Change the htim state */
  4448. htim->State = HAL_TIM_STATE_READY;
  4449. 8001992: 233d movs r3, #61 ; 0x3d
  4450. 8001994: 2201 movs r2, #1
  4451. 8001996: 54c2 strb r2, [r0, r3]
  4452. __HAL_UNLOCK(htim);
  4453. 8001998: 3b01 subs r3, #1
  4454. 800199a: 2200 movs r2, #0
  4455. 800199c: 54c2 strb r2, [r0, r3]
  4456. return HAL_OK;
  4457. 800199e: 2000 movs r0, #0
  4458. }
  4459. 80019a0: bd30 pop {r4, r5, pc}
  4460. __HAL_LOCK(htim);
  4461. 80019a2: 2002 movs r0, #2
  4462. 80019a4: e7fc b.n 80019a0 <HAL_TIMEx_MasterConfigSynchronization+0x4c>
  4463. 80019a6: 46c0 nop ; (mov r8, r8)
  4464. 80019a8: 40012c00 .word 0x40012c00
  4465. 80019ac: 40000400 .word 0x40000400
  4466. 080019b0 <HAL_TIMEx_ConfigBreakDeadTime>:
  4467. * interrupt can be enabled by calling the @ref __HAL_TIM_ENABLE_IT macro.
  4468. * @retval HAL status
  4469. */
  4470. HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim,
  4471. TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig)
  4472. {
  4473. 80019b0: b510 push {r4, lr}
  4474. assert_param(IS_TIM_BREAK_STATE(sBreakDeadTimeConfig->BreakState));
  4475. assert_param(IS_TIM_BREAK_POLARITY(sBreakDeadTimeConfig->BreakPolarity));
  4476. assert_param(IS_TIM_AUTOMATIC_OUTPUT_STATE(sBreakDeadTimeConfig->AutomaticOutput));
  4477. /* Check input state */
  4478. __HAL_LOCK(htim);
  4479. 80019b2: 233c movs r3, #60 ; 0x3c
  4480. 80019b4: 5cc3 ldrb r3, [r0, r3]
  4481. 80019b6: 2b01 cmp r3, #1
  4482. 80019b8: d021 beq.n 80019fe <HAL_TIMEx_ConfigBreakDeadTime+0x4e>
  4483. 80019ba: 223c movs r2, #60 ; 0x3c
  4484. 80019bc: 2301 movs r3, #1
  4485. 80019be: 5483 strb r3, [r0, r2]
  4486. /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State,
  4487. the OSSI State, the dead time value and the Automatic Output Enable Bit */
  4488. /* Set the BDTR bits */
  4489. MODIFY_REG(tmpbdtr, TIM_BDTR_DTG, sBreakDeadTimeConfig->DeadTime);
  4490. MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, sBreakDeadTimeConfig->LockLevel);
  4491. 80019c0: 4b10 ldr r3, [pc, #64] ; (8001a04 <HAL_TIMEx_ConfigBreakDeadTime+0x54>)
  4492. 80019c2: 68cc ldr r4, [r1, #12]
  4493. 80019c4: 4023 ands r3, r4
  4494. 80019c6: 688c ldr r4, [r1, #8]
  4495. 80019c8: 4323 orrs r3, r4
  4496. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode);
  4497. 80019ca: 4c0f ldr r4, [pc, #60] ; (8001a08 <HAL_TIMEx_ConfigBreakDeadTime+0x58>)
  4498. 80019cc: 4023 ands r3, r4
  4499. 80019ce: 684c ldr r4, [r1, #4]
  4500. 80019d0: 4323 orrs r3, r4
  4501. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode);
  4502. 80019d2: 4c0e ldr r4, [pc, #56] ; (8001a0c <HAL_TIMEx_ConfigBreakDeadTime+0x5c>)
  4503. 80019d4: 4023 ands r3, r4
  4504. 80019d6: 680c ldr r4, [r1, #0]
  4505. 80019d8: 4323 orrs r3, r4
  4506. MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState);
  4507. 80019da: 4c0d ldr r4, [pc, #52] ; (8001a10 <HAL_TIMEx_ConfigBreakDeadTime+0x60>)
  4508. 80019dc: 4023 ands r3, r4
  4509. 80019de: 690c ldr r4, [r1, #16]
  4510. 80019e0: 4323 orrs r3, r4
  4511. MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity);
  4512. 80019e2: 4c0c ldr r4, [pc, #48] ; (8001a14 <HAL_TIMEx_ConfigBreakDeadTime+0x64>)
  4513. 80019e4: 4023 ands r3, r4
  4514. 80019e6: 694c ldr r4, [r1, #20]
  4515. 80019e8: 4323 orrs r3, r4
  4516. MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput);
  4517. 80019ea: 4c0b ldr r4, [pc, #44] ; (8001a18 <HAL_TIMEx_ConfigBreakDeadTime+0x68>)
  4518. 80019ec: 4023 ands r3, r4
  4519. 80019ee: 69c9 ldr r1, [r1, #28]
  4520. 80019f0: 430b orrs r3, r1
  4521. /* Set TIMx_BDTR */
  4522. htim->Instance->BDTR = tmpbdtr;
  4523. 80019f2: 6801 ldr r1, [r0, #0]
  4524. 80019f4: 644b str r3, [r1, #68] ; 0x44
  4525. __HAL_UNLOCK(htim);
  4526. 80019f6: 2300 movs r3, #0
  4527. 80019f8: 5483 strb r3, [r0, r2]
  4528. return HAL_OK;
  4529. 80019fa: 2000 movs r0, #0
  4530. }
  4531. 80019fc: bd10 pop {r4, pc}
  4532. __HAL_LOCK(htim);
  4533. 80019fe: 2002 movs r0, #2
  4534. 8001a00: e7fc b.n 80019fc <HAL_TIMEx_ConfigBreakDeadTime+0x4c>
  4535. 8001a02: 46c0 nop ; (mov r8, r8)
  4536. 8001a04: fffffcff .word 0xfffffcff
  4537. 8001a08: fffffbff .word 0xfffffbff
  4538. 8001a0c: fffff7ff .word 0xfffff7ff
  4539. 8001a10: ffffefff .word 0xffffefff
  4540. 8001a14: ffffdfff .word 0xffffdfff
  4541. 8001a18: ffffbfff .word 0xffffbfff
  4542. 08001a1c <__libc_init_array>:
  4543. 8001a1c: b570 push {r4, r5, r6, lr}
  4544. 8001a1e: 2600 movs r6, #0
  4545. 8001a20: 4d0c ldr r5, [pc, #48] ; (8001a54 <__libc_init_array+0x38>)
  4546. 8001a22: 4c0d ldr r4, [pc, #52] ; (8001a58 <__libc_init_array+0x3c>)
  4547. 8001a24: 1b64 subs r4, r4, r5
  4548. 8001a26: 10a4 asrs r4, r4, #2
  4549. 8001a28: 42a6 cmp r6, r4
  4550. 8001a2a: d109 bne.n 8001a40 <__libc_init_array+0x24>
  4551. 8001a2c: 2600 movs r6, #0
  4552. 8001a2e: f000 f821 bl 8001a74 <_init>
  4553. 8001a32: 4d0a ldr r5, [pc, #40] ; (8001a5c <__libc_init_array+0x40>)
  4554. 8001a34: 4c0a ldr r4, [pc, #40] ; (8001a60 <__libc_init_array+0x44>)
  4555. 8001a36: 1b64 subs r4, r4, r5
  4556. 8001a38: 10a4 asrs r4, r4, #2
  4557. 8001a3a: 42a6 cmp r6, r4
  4558. 8001a3c: d105 bne.n 8001a4a <__libc_init_array+0x2e>
  4559. 8001a3e: bd70 pop {r4, r5, r6, pc}
  4560. 8001a40: 00b3 lsls r3, r6, #2
  4561. 8001a42: 58eb ldr r3, [r5, r3]
  4562. 8001a44: 4798 blx r3
  4563. 8001a46: 3601 adds r6, #1
  4564. 8001a48: e7ee b.n 8001a28 <__libc_init_array+0xc>
  4565. 8001a4a: 00b3 lsls r3, r6, #2
  4566. 8001a4c: 58eb ldr r3, [r5, r3]
  4567. 8001a4e: 4798 blx r3
  4568. 8001a50: 3601 adds r6, #1
  4569. 8001a52: e7f2 b.n 8001a3a <__libc_init_array+0x1e>
  4570. 8001a54: 08001ac4 .word 0x08001ac4
  4571. 8001a58: 08001ac4 .word 0x08001ac4
  4572. 8001a5c: 08001ac4 .word 0x08001ac4
  4573. 8001a60: 08001ac8 .word 0x08001ac8
  4574. 08001a64 <memset>:
  4575. 8001a64: 0003 movs r3, r0
  4576. 8001a66: 1882 adds r2, r0, r2
  4577. 8001a68: 4293 cmp r3, r2
  4578. 8001a6a: d100 bne.n 8001a6e <memset+0xa>
  4579. 8001a6c: 4770 bx lr
  4580. 8001a6e: 7019 strb r1, [r3, #0]
  4581. 8001a70: 3301 adds r3, #1
  4582. 8001a72: e7f9 b.n 8001a68 <memset+0x4>
  4583. 08001a74 <_init>:
  4584. 8001a74: b5f8 push {r3, r4, r5, r6, r7, lr}
  4585. 8001a76: 46c0 nop ; (mov r8, r8)
  4586. 8001a78: bcf8 pop {r3, r4, r5, r6, r7}
  4587. 8001a7a: bc08 pop {r3}
  4588. 8001a7c: 469e mov lr, r3
  4589. 8001a7e: 4770 bx lr
  4590. 08001a80 <_fini>:
  4591. 8001a80: b5f8 push {r3, r4, r5, r6, r7, lr}
  4592. 8001a82: 46c0 nop ; (mov r8, r8)
  4593. 8001a84: bcf8 pop {r3, r4, r5, r6, r7}
  4594. 8001a86: bc08 pop {r3}
  4595. 8001a88: 469e mov lr, r3
  4596. 8001a8a: 4770 bx lr